/* Quad City Restaurants — "River town" design (design canvas: claude.ai/artifact/1j3CTQ9kt3AVoqM9aAixkF).
   Every text/background pair meets WCAG 2.1 AA (project doc color-scheme-accessibility.md):
   - --orange is for badges with --ink text only (5.3:1). Orange text, buttons and prices use --burnt (4.6:1 on cream, 4.9:1 on white).
   - --river links: 5.1:1 on cream, 5.5:1 on white. --muted: 6.4:1 on cream.
   When you change this file, bump CSS_VERSION in src/views/layout.tsx (the file is cached for a year). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/inter-latin-var-5.3.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin-var-5.3.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #1f3a5f;
  --river: #2e6f95;
  --cream: #faf6ef;
  --orange: #e8692c;
  --burnt: #bf4c15;
  --burnt-dark: #9e3e10;
  --ink: #1c1c1c;
  --text-2: #4a4740;   /* secondary text, 8:1 on cream */
  --muted: #5a564e;    /* small notes, 6.9:1 on cream */
  --line: #e6dfd2;
  --line-2: #cfc6b5;   /* control borders */
  --mist: #e7eef4;     /* pale blue panels, navy text 9.7:1 */
  --on-navy-2: #d9e4ee;
  --card: #ffffff;
  --radius: 12px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.6 var(--font-body); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 560px) { .wrap { padding: 0 1rem; } }

a { color: var(--river); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--burnt); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
.lead { font-size: 1.15rem; line-height: 1.55; color: var(--text-2); max-width: 44rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: .5rem; background: #fff; color: var(--navy); padding: .6rem 1rem; z-index: 10; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 1rem; }

/* ---------- buttons, chips, badges ---------- */
.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: 0 1.15rem;
  border-radius: 8px; border: 0; background: var(--burnt); color: #fff; font: 600 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover, button:hover { background: var(--burnt-dark); color: #fff; }
.btn-line { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-line:hover { background: var(--mist); color: var(--navy); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chip, .chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); font-size: .9rem; font-weight: 500; text-decoration: none; }
.chip:hover, .chips a:hover { border-color: var(--navy); color: var(--navy); }
.chip[aria-current], .chips [aria-current] { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px;
  background: var(--navy); border: 1px solid var(--navy); color: #fff; font-size: .9rem; font-weight: 600; }
.chip .count, .chips .count { color: var(--muted); margin-left: .45rem; font-weight: 400; font-size: .85em; }
.chip[aria-current] .count, .chips [aria-current] .count { color: var(--on-navy-2); }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: .2rem .65rem; border-radius: 999px; background: var(--orange); color: var(--ink); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li { font-size: .85rem; background: #f3eee4; color: var(--ink); border-radius: 8px; padding: .25rem .65rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.card > h2 { font-size: 1.35rem; margin-bottom: .75rem; }
.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { padding-top: 3rem; padding-bottom: 3rem; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; margin-bottom: 1.25rem; }
.section-head a { font-weight: 600; }

/* ---------- forms ---------- */
input[type="search"], input[type="email"], select { font: inherit; min-height: 46px; padding: 0 .9rem; border: 1px solid var(--line-2); border-radius: 8px;
  background: #fff; color: var(--ink); width: 100%; }
input::placeholder { color: #6b675f; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .82rem; font-weight: 600; color: var(--navy); }

/* ---------- header ---------- */
.site-header { background: var(--navy); color: var(--cream); }
.site-header :focus-visible { outline-color: var(--orange); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-top: .9rem; padding-bottom: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--cream); text-decoration: none; font: 700 1.3rem/1 var(--font-head); }
.brand:hover { color: #fff; }
.brand svg { flex: 0 0 auto; }
.header-search { display: flex; gap: .5rem; flex: 0 1 22rem; }
.header-search input { min-height: 44px; border: 0; }
.header-search button { background: var(--orange); color: var(--ink); }
.header-search button:hover { background: #f08a56; color: var(--ink); }
.city-nav { display: flex; flex-wrap: wrap; gap: .1rem 1.4rem; padding-bottom: .7rem; font-size: .95rem; font-weight: 500; }
.city-nav a { color: var(--cream); text-decoration: none; padding: .35rem 0; }
.city-nav a:hover, .city-nav a[aria-current] { color: #fff; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 6px; }
@media (max-width: 640px) { .header-search { flex: 1 1 100%; } }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--cream); margin-top: 0; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: var(--orange); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.5rem 2rem; padding-top: 2.5rem; padding-bottom: 2rem; font-size: .95rem; }
.footer-grid h2 { font: 600 1rem/1.3 var(--font-body); color: var(--cream); margin-bottom: .6rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; line-height: 2; }
.footer-note { color: var(--on-navy-2); font-size: .875rem; line-height: 1.6; }

/* ---------- breadcrumbs ---------- */
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; font-size: .9rem; color: var(--text-2); }
.crumbs li + li::before { content: "›"; margin-right: .3rem; color: var(--muted); }

/* ---------- page heads ---------- */
.page-head { padding-top: 1.25rem; padding-bottom: 2rem; }
.page-head .crumbs { margin-bottom: 1rem; }
.page-head .lead { margin-top: .75rem; }
.page-head.band { padding-bottom: 2rem; }

/* ---------- home ---------- */
.hero { padding-top: 3.5rem; padding-bottom: 2.5rem; }
.eyebrow { display: block; font: 600 1rem/1.3 var(--font-body); color: var(--river); letter-spacing: .02em; margin-bottom: .6rem; }
.hero h1 { max-width: 48rem; }
.hero .lead { margin: 1rem 0 1.75rem; }
.search-box { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; max-width: 56rem; }
.search-box .field { flex: 1 1 18rem; }
.search-box button { min-height: 46px; }
.quick { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.quick > span { font-size: .9rem; font-weight: 600; color: var(--text-2); margin-right: .25rem; }
.soon { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; color: var(--text-2); }
.city-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; }
.city-tiles a { display: flex; flex-direction: column; gap: .25rem; min-height: 96px; padding: 1.3rem 1.25rem; border-radius: var(--radius); background: var(--navy);
  color: var(--cream); text-decoration: none; }
.city-tiles a:hover { background: #2a4b77; color: #fff; }
.city-tiles strong { font: 700 1.5rem/1.1 var(--font-head); }
.city-tiles span { font-size: .875rem; color: var(--on-navy-2); }
.sub-h { margin: 2.5rem 0 1rem; }
.owner-box { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; border: 2px solid var(--navy); border-radius: 14px; padding: 1.75rem; }
.owner-box p { margin-top: .5rem; color: var(--text-2); }

/* ---------- cuisine tiles (city page) ---------- */
.cuisine-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; }
.cuisine-tiles a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; min-height: 60px; padding: .6rem 1rem; border-radius: 10px;
  background: var(--navy); color: var(--cream); font-weight: 600; text-decoration: none; line-height: 1.25; }
.cuisine-tiles a:hover { background: #2a4b77; color: #fff; }
.cuisine-tiles .count { font-weight: 400; font-size: .85rem; color: var(--on-navy-2); }

/* ---------- filter bar ---------- */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.25rem; }
.filter-bar > span { font-size: .9rem; font-weight: 600; color: var(--navy); margin-right: .25rem; }

/* ---------- place cards ---------- */
.places { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: .9rem; }
.place { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.tile { flex: 0 0 56px; height: 56px; border-radius: 10px; background: var(--mist); color: var(--navy); display: flex; align-items: center; justify-content: center;
  font: 700 1.3rem/1 var(--font-head); }
.place-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.place h3 { font: 600 1.1rem/1.3 var(--font-body); color: var(--ink); }
.place h3 a { color: var(--ink); text-decoration: none; }
.place h3 a:hover { color: var(--navy); text-decoration: underline; }
.place-meta { font-size: .9rem; color: var(--text-2); }
.place .tags { margin-top: .35rem; }
.status { font-size: .875rem; font-weight: 600; }
.status::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; margin-right: .4em; vertical-align: .08em; background: currentColor; }
.status-open { color: var(--river); }
.status-closed { color: var(--muted); }
.status-unknown { color: var(--muted); font-weight: 500; }
.status-unknown::before { display: none; }
.empty { padding: 1.25rem; background: #fff; border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ---------- restaurant page ---------- */
.r-head { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; padding-top: 1.25rem; padding-bottom: 1.75rem; }
.r-tile { flex: 0 0 168px; height: 168px; border-radius: 14px; background: var(--navy); color: var(--cream); display: flex; align-items: center; justify-content: center;
  font: 700 3.6rem/1 var(--font-head); }
.r-info { flex: 999 1 28rem; display: flex; flex-direction: column; gap: .55rem; }
.r-info .meta { font-size: 1.05rem; color: var(--text-2); }
.r-info .status { font-size: 1rem; }
.r-reviews { font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
@media (max-width: 560px) {
  .r-tile { flex-basis: 96px; height: 96px; font-size: 2.2rem; }
  .actions .btn { flex: 1 1 calc(50% - .6rem); }
  .actions .btn-call { flex-basis: 100%; }
}
.r-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; padding-bottom: 3rem; }
.r-main { flex: 999 1 34rem; min-width: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.r-side { flex: 1 1 20rem; display: flex; flex-direction: column; gap: 1.25rem; }
.about p + p { margin-top: .9rem; }
.about p { font-size: 1.05rem; line-height: 1.7; }
.facts { display: grid; gap: 1rem; }
.facts h3 { font: 600 .9rem/1.3 var(--font-body); color: var(--navy); margin-bottom: .45rem; }
.link-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.link-list a { display: inline-block; padding: .35rem 0; font-weight: 500; }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { text-align: left; padding: .4rem .5rem; font-weight: 400; }
.hours td { text-align: right; }
.hours tr.today th, .hours tr.today td { background: var(--mist); font-weight: 600; }
.hours tr.today th { border-radius: 6px 0 0 6px; }
.hours tr.today td { border-radius: 0 6px 6px 0; }
.addr { font-size: 1rem; line-height: 1.6; }
.owner-card { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.owner-card h2 { color: var(--cream); font-size: 1.2rem; }
.owner-card p { margin-top: .5rem; color: var(--cream); }
.more { padding-top: 2.5rem; padding-bottom: 3rem; }
.more h2 { margin-bottom: 1.1rem; }
.more .after { margin-top: 1.1rem; font-weight: 600; }

/* ---------- brand page ---------- */
.b-head { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.b-head .r-tile { flex-basis: 112px; height: 112px; font-size: 2.6rem; }
.loc-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.loc-cards li { display: flex; flex-direction: column; gap: .4rem; }
.loc-cards h3 { font-size: 1.3rem; color: var(--ink); }
.loc-cards .links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .4rem; font-weight: 600; }

/* ---------- search ---------- */
.search-page .search-box { margin: 1.25rem 0 1rem; }
.result-count { margin-bottom: 1rem; font: 600 1rem/1.4 var(--font-body); color: var(--text-2); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* phones: two tiles per row so city and cuisine pages don't turn into a long column */
@media (max-width: 560px) {
  .city-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .city-tiles a { min-height: 80px; padding: 1rem; }
  .city-tiles strong { font-size: 1.2rem; }
  .cuisine-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .cuisine-tiles a { min-height: 64px; font-size: .9rem; padding: .6rem .75rem; }
}
