
  /* Caveat, subset to exactly the six characters the signature uses:
     em dash, space, J, o, e, l. That is 3 KB instead of 36 KB for the full
     Latin set. The unicode-range makes the narrowness explicit — any other
     character simply falls through to the fallback rather than going missing.
     If the signature text ever changes, regenerate the subset.
     Caveat is Open Font License; see /fonts/Caveat-OFL.txt. */
  @font-face {
    font-family: "Caveat Signature";
    src: url("/fonts/caveat-signature.woff2") format("woff2");
    font-weight: 400; font-style: normal; font-display: swap;
    unicode-range: U+0020, U+004A, U+0065, U+006C, U+006F, U+2014;
  }

  :root {
    color-scheme: light;
    --bg: #F6F8FC;
    --bg-raised: #FFFFFF;
    --bg-sunken: #EDF1F8;
    --ink: #0A3161;
    --ink-2: #3C5480;
    --muted: #5B6B90;
    --line: #E2E7F0;
    --line-strong: #CDD7E6;
    --accent: #B31942;
    --accent-ink: #FFFFFF;
    --accent-soft: #FCE9EE;
    --accent-on-ink: #FF7E9B;
    --mark-red: #B31942;
    --mark-blue: #0A3161;
    --open: #1C7C54;
    --open-soft: #E3F1EA;
    --closed: #9E2B25;
    --closed-soft: #F9EAE8;
    --footer-bg: #08294F;
    --footer-ink: #F4F7FC;
    --footer-line: #1C4172;
    --footer-muted: #94A7C6;
    --wash-a: rgba(10,49,97,.23);
    --wash-b: rgba(179,25,66,.185);
    --wash-c: rgba(10,49,97,.17);
    --wash-d: rgba(179,25,66,.14);
    --shadow-card: 0 1px 2px rgba(10,49,97,.06), 0 4px 16px rgba(10,49,97,.07);
    --shadow-pop: 0 2px 6px rgba(10,49,97,.10), 0 16px 40px rgba(10,49,97,.16);
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }
  a { color: var(--accent); text-decoration: none; }
  a:hover { text-decoration: underline; }
  button { font: inherit; cursor: pointer; }
  :is(a, button, input):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

  .wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

  /* Homepage only. z-index:-1 paints it over the page ground but under every
     in-flow block, so cards, nav and footer stay opaque on top of it.
     Radial gradients rather than blur() — this animates for the whole visit. */
  .bg-wash { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
  .bg-wash i { position: absolute; display: block; border-radius: 50%; will-change: transform; }
  .bg-wash i:nth-child(1) {
    width: 40vmax; height: 40vmax; top: -10vmax; left: -8vmax;
    background: radial-gradient(circle, var(--wash-a), transparent 58%);
    animation: wash1 14s ease-in-out infinite;
  }
  .bg-wash i:nth-child(2) {
    width: 36vmax; height: 36vmax; top: -4vmax; right: -8vmax;
    background: radial-gradient(circle, var(--wash-b), transparent 56%);
    animation: wash2 17s ease-in-out infinite;
  }
  .bg-wash i:nth-child(3) {
    width: 32vmax; height: 32vmax; bottom: -12vmax; left: 30vmax;
    background: radial-gradient(circle, var(--wash-c), transparent 60%);
    animation: wash3 12s ease-in-out infinite;
  }
  .bg-wash i:nth-child(4) {
    width: 34vmax; height: 34vmax; top: 26vmax; left: 4vmax;
    background: radial-gradient(circle, var(--wash-d), transparent 58%);
    animation: wash4 19s ease-in-out infinite;
  }
  /* Perceived motion scales with alpha x speed / falloff-radius. Big soft
     blooms are invisible in motion no matter how fast they go, because the
     colour gradient under any given pixel is nearly flat. So these are kept
     small with a tight falloff, and travel further than their own diameter. */
  @keyframes wash1 {
    0%,100% { transform: translate3d(0,0,0) scale(1); }
    33%     { transform: translate3d(19vmax,8vmax,0) scale(1.16); }
    66%     { transform: translate3d(7vmax,18vmax,0) scale(0.90); }
  }
  @keyframes wash2 {
    0%,100% { transform: translate3d(0,0,0) scale(1.06); }
    33%     { transform: translate3d(-17vmax,12vmax,0) scale(0.92); }
    66%     { transform: translate3d(-6vmax,-14vmax,0) scale(1.14); }
  }
  @keyframes wash3 {
    0%,100% { transform: translate3d(0,0,0) scale(1); }
    33%     { transform: translate3d(-15vmax,-11vmax,0) scale(1.14); }
    66%     { transform: translate3d(14vmax,-4vmax,0) scale(0.92); }
  }
  @keyframes wash4 {
    0%,100% { transform: translate3d(0,0,0) scale(1.04); }
    33%     { transform: translate3d(13vmax,-12vmax,0) scale(0.92); }
    66%     { transform: translate3d(-14vmax,6vmax,0) scale(1.14); }
  }

  /* ---------- Nav ---------- */
  .nav {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner { display: flex; align-items: center; gap: 24px; height: 56px; }
  .brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 16px; letter-spacing: -0.022em; }
  .brand:hover { text-decoration: none; }
  .brand-mark { display: flex; flex: none; }
  .brand-mark svg { display: block; }
  .bw-l { font-weight: 300; color: var(--ink-2); }
  .nav-links { display: flex; gap: 4px; margin-left: 8px; }
  .nav-links a {
    color: var(--muted); font-weight: 500; font-size: 13.5px;
    padding: 6px 10px; border-radius: 8px;
  }
  .nav-links a:hover { color: var(--ink); background: var(--bg-sunken); text-decoration: none; }
  .nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
  .fresh-chip {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12px; font-weight: 500; color: var(--muted);
    border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
    background: var(--bg-raised);
  }
  .fresh-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--open); }

  /* ---------- Hero ---------- */
  .hero { padding: 72px 0 40px; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: center; }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted); margin-bottom: 18px;
  }
  h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.04; letter-spacing: -0.035em; font-weight: 800;
    text-wrap: balance;
  }
  .grad { color: var(--accent); }
  .hero-sub { max-width: 44ch; color: var(--ink-2); font-size: 16.5px; margin: 0 0 28px; }

  .search {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-raised); border: 1px solid var(--line-strong);
    border-radius: 14px; padding: 8px 8px 8px 16px;
    box-shadow: var(--shadow-card);
    max-width: 560px;
  }
  .search svg { flex: none; color: var(--muted); }
  .search input {
    flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
    font: inherit; font-size: 15.5px; padding: 8px 0;
  }
  .search input::placeholder { color: var(--muted); }
  .search input:focus { outline: none; }
  .search button[type="submit"] {
    flex: none; border: 0; border-radius: 10px; padding: 10px 20px;
    background: var(--ink); color: var(--bg);
    font-weight: 600; font-size: 14.5px;
  }
  .search button[type="submit"]:hover { opacity: .88; }
  .nearme {
    flex: none; display: inline-flex; align-items: center; gap: 6px;
    border: 0; background: transparent; color: var(--accent);
    font-weight: 600; font-size: 13.5px; padding: 8px 10px; border-radius: 8px;
    border-left: 1px solid var(--line); border-radius: 0 8px 8px 0;
  }
  .nearme:hover { color: var(--ink); }

  .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
  .chip {
    display: inline-flex; align-items: center; gap: 7px;
    border: 1px solid var(--line-strong); border-radius: 999px;
    background: var(--bg-raised); color: var(--ink-2);
    font-size: 13px; font-weight: 500; padding: 7px 13px;
    transition: border-color .12s, background .12s, color .12s;
  }
  .chip:hover { border-color: var(--ink); }
  .chip[aria-pressed="true"] {
    background: var(--ink); border-color: var(--ink); color: var(--bg);
  }
  .chip .cdot { width: 7px; height: 7px; border-radius: 50%; background: var(--mark-red); }
  .chip[aria-pressed="true"] .cdot { background: var(--accent-on-ink); }

  /* hero visual: floating mini-cards */
  .hero-visual { position: relative; height: 300px; }
  .mini {
    position: absolute; background: var(--bg-raised);
    border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow-pop); padding: 14px 16px;
    width: 250px;
  }
  .mini .m-label { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
  .mini .m-title { font-weight: 650; font-size: 14.5px; letter-spacing: -0.01em; }
  .mini .m-line { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
  .mini .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
  .mini-1 { top: 8px; right: 30px; transform: rotate(2deg); animation: float1 7s ease-in-out infinite; }
  .mini-2 { top: 118px; right: 84px; transform: rotate(-2deg); animation: float2 8s ease-in-out infinite; }
  .mini-3 { top: 224px; right: 12px; transform: rotate(1.5deg); width: 224px; animation: float1 9s ease-in-out infinite; }
  @keyframes float1 { 50% { translate: 0 -6px; } }
  @keyframes float2 { 50% { translate: 0 6px; } }

  /* ---------- Sections ---------- */
  section { padding: 40px 0; }
  .sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; flex-wrap: wrap; }
  .sec-head h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
  .sec-count { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
  .sec-note { color: var(--muted); font-size: 12.5px; margin: 0 0 20px; }
  .sec-note em { font-style: normal; border-bottom: 1px dashed var(--line-strong); }

  /* ---------- Result cards ---------- */
  .cards { display: flex; flex-direction: column; gap: 10px; }
  .card {
    display: grid; grid-template-columns: 46px minmax(0,1fr) auto; gap: 16px; align-items: center;
    width: 100%; text-align: left;
    background: var(--bg-raised); border: 1px solid var(--line); border-radius: 16px;
    padding: 16px 18px; color: var(--ink);
    box-shadow: var(--shadow-card);
    transition: border-color .12s, transform .12s;
  }
  .card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
  .card[aria-current="true"] { border-color: var(--accent); }
  .card.hidden { display: none; }
  .tile {
    width: 46px; height: 46px; border-radius: 12px; flex: none; align-self: start;
    background: var(--bg-sunken); border: 1px solid var(--line); overflow: hidden;
  }
  .tile svg { width: 100%; height: 100%; display: block; }
  .tile .streets path { stroke: var(--line-strong); stroke-width: 2; fill: none; }
  .c-body { min-width: 0; }
  .c-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 650; font-size: 15.5px; letter-spacing: -0.01em; }
  .b247 {
    display: inline-flex; align-items: center;
    font-size: 10.5px; font-weight: 700; letter-spacing: .05em;
    color: var(--accent-ink);
    background: var(--accent);
    border-radius: 999px; padding: 2.5px 9px;
  }
  .c-addr { color: var(--muted); font-size: 13px; margin-top: 2px; }
  .c-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
  .c-meta .stat { display: inline-flex; align-items: center; gap: 6px; }
  .c-meta .k { color: var(--muted); }
  .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
  .dot.open { background: var(--open); }
  .dot.closed { background: var(--closed); }
  .c-go { color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; align-self: center; }
  .card:hover .c-go { color: var(--accent); }
  .no-results {
    display: none; padding: 28px; text-align: center; color: var(--muted);
    border: 1px dashed var(--line-strong); border-radius: 16px; font-size: 14px;
  }
  .no-results.show { display: block; }

  /* ---------- Location modal ---------- */
  .overlay {
    position: fixed; inset: 0; z-index: 100;
    background: color-mix(in srgb, var(--ink) 34%, transparent);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center; padding: 20px;
  }
  .overlay[hidden] { display: none; }
  .modal {
    background: var(--bg-raised); color: var(--ink);
    width: min(660px, 100%); max-height: min(88vh, 820px);
    border-radius: 20px; border: 1px solid var(--line);
    box-shadow: var(--shadow-pop);
    display: flex; flex-direction: column; overflow: hidden;
  }
  .m-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .m-hero { position: relative; height: 116px; flex: none; background: var(--bg-sunken); border-bottom: 1px solid var(--line); }
  .m-hero svg { width: 100%; height: 100%; display: block; }
  .m-hero .streets path { stroke: var(--line-strong); stroke-width: 2; fill: none; }
  .m-close {
    position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
    border-radius: 50%; border: 1px solid var(--line-strong);
    background: var(--bg-raised); color: var(--ink); font-size: 15px; line-height: 1;
    display: grid; place-items: center;
  }
  .m-close:hover { border-color: var(--ink); }
  .m-body { padding: 18px 24px 20px; }
  .m-name { margin: 0; font-size: 21px; font-weight: 750; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .m-sub { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
  .m-status { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
  .m-status .stat { display: inline-flex; align-items: center; gap: 6px; }
  .m-status .k { color: var(--muted); }
  .m-actions { display: flex; gap: 8px; margin: 16px 0 2px; }
  .btn {
    flex: 1; text-align: center; border-radius: 10px; padding: 9px 12px;
    font-weight: 600; font-size: 13.5px; border: 1px solid var(--line-strong);
    background: var(--bg-raised); color: var(--ink);
  }
  .btn:hover { border-color: var(--ink); text-decoration: none; }
  .btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .btn.primary:hover { opacity: .88; }
  .m-body h4 { margin: 20px 0 10px; font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .m-hours { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .hsvc { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg-sunken); }
  .hsvc-name { font-weight: 650; font-size: 13px; margin-bottom: 7px; }
  .hrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 12.5px; color: var(--ink-2); padding: 2.5px 0; font-variant-numeric: tabular-nums; }
  .hrow .hdays { color: var(--muted); flex: none; }
  .hrow .hval { text-align: right; }
  .hrow.today .hdays, .hrow.today .hval { color: var(--accent); font-weight: 600; }
  .allday {
    display: inline-flex; font-size: 11px; font-weight: 700; letter-spacing: .04em;
    color: var(--open); background: var(--open-soft); border-radius: 999px; padding: 1.5px 8px;
  }
  .svc-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
  .svc {
    font-size: 12.5px; font-weight: 500; color: var(--ink-2);
    background: var(--bg-sunken); border: 1px solid var(--line); border-radius: 999px; padding: 4.5px 11px;
  }
  .m-nav {
    flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    border-top: 1px solid var(--line); padding: 8px 14px; background: var(--bg-raised);
  }
  .m-nav button {
    border: 0; background: transparent; color: var(--accent);
    font-weight: 600; font-size: 13.5px; padding: 8px 12px; border-radius: 8px;
  }
  .m-nav button:hover { background: var(--accent-soft); }
  .m-count { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }

  /* ---------- Browse states ---------- */
  .states { }
  .state-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px 20px; margin-top: 18px; }
  .state {
    display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; color: var(--ink);
  }
  .state:hover { background: var(--bg-sunken); text-decoration: none; }
  .s-badge {
    width: 40px; height: 40px; border-radius: 50%; flex: none;
    display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12.5px;
  }
  .s-name { font-weight: 600; font-size: 14px; line-height: 1.25; }
  .s-count { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
  .states-foot { margin-top: 16px; }
  .states-foot a { font-weight: 600; font-size: 13.5px; }

  /* ---------- Pipeline ---------- */
  .pipeline { border-top: 1px solid var(--line); }
  .pipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 20px; }
  .pipe {
    background: var(--bg-raised); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px;
    box-shadow: var(--shadow-card);
  }
  .pipe .p-num { font-size: 26px; font-weight: 750; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
  .pipe .p-num .grad { font-weight: 750; }
  .pipe .p-label { font-weight: 650; font-size: 14px; margin-top: 2px; }
  .pipe p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

  /* ---------- Footer ---------- */
  footer {
    background: var(--footer-bg); color: var(--footer-ink); margin-top: 48px;
    --mark-red: #FF7A87; --mark-blue: #8FB4F0;
  }
  .foot-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding: 44px 0 40px; flex-wrap: wrap; }
  .foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; letter-spacing: -0.022em; color: var(--footer-ink); }
  .foot-brand .bw-l { font-weight: 300; color: var(--footer-muted); }
  .foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
  .foot-links a { color: var(--footer-muted); font-size: 13px; }
  .foot-links a:hover { color: var(--footer-ink); text-decoration: none; }
  .disclaimer {
    border-top: 1px solid var(--footer-line); padding: 18px 0 26px;
    color: var(--footer-muted); font-size: 12px; max-width: 72ch; line-height: 1.6;
  }

  /* ---------- Responsive ---------- */
  .menu-btn {
    display: none; width: 36px; height: 36px; border-radius: 9px;
    border: 1px solid var(--line-strong); background: var(--bg-raised); color: var(--ink);
    place-items: center; cursor: pointer;
  }
  .menu-btn[aria-expanded="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .mobile-menu {
    position: absolute; top: 52px; right: 24px; left: auto;
    width: max-content; min-width: 150px;
    background: var(--bg-raised); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow-pop); display: none; flex-direction: column; padding: 6px;
  }
  .mobile-menu:not([hidden]) { display: flex; }
  .mobile-menu a {
    padding: 10px 14px; font-size: 15px; font-weight: 600; color: var(--ink);
    text-align: right; border-radius: 8px; white-space: nowrap;
  }
  .mobile-menu a:hover { background: var(--bg-sunken); text-decoration: none; }

  /* ---------- About page ---------- */
  /* The story is a letter, on an airmail lettersheet. The chevron border is two
     stacked backgrounds rather than a mask: the paper is clipped to padding-box
     and paints over the chevrons, so only the border band shows through. That
     trick needs no extra element and no mask-composite, which Safari spells
     differently. Serif is deliberate — the rest of the site stays on the UI sans. */
  .about-copy {
    position: relative;
    max-width: 64ch; margin-top: 4px;
    display: flex; flex-direction: column; gap: 19px;
    border: 9px solid transparent; border-radius: 2px;
    background:
      linear-gradient(var(--bg-raised), var(--bg-raised)) padding-box,
      repeating-linear-gradient(45deg,
        var(--accent) 0 11px, var(--bg-raised) 11px 22px,
        var(--mark-blue) 22px 33px, var(--bg-raised) 33px 44px) border-box;
    box-shadow: 0 1px 2px rgba(10,49,97,.07), 0 14px 40px rgba(10,49,97,.13);
    padding: 42px 44px 36px;
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
    font-size: 16.5px; line-height: 1.78; color: var(--ink-2);
  }
  .about-copy p { margin: 0; }
  .about-copy em { font-style: italic; }
  .about-copy .lede { font-size: 19.5px; font-weight: 700; color: var(--ink); line-height: 1.45; }
  .about-sig {
    margin-top: 14px; font-size: 12px; font-weight: 650;
    letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  }
  .about-head { max-width: 62ch; }
  /* Outranks .page-head h1 regardless of source order. */
  .page-head .about-head h1 {
    margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  }
  .about-head .about-sig {
    margin-top: 11px; display: flex; align-items: center; flex-wrap: wrap; gap: 0 9px;
  }
  /* The credit line is uppercase + tracked; the wordmark must opt out of both. */
  .about-sig .about-logo {
    display: inline-flex; align-items: center; gap: 7px;
    text-transform: none; letter-spacing: -0.022em;
    font-size: 15px; font-weight: 800; color: var(--ink);
  }
  .about-logo .brand-mark svg { display: block; }
  .about-slash { font-weight: 300; color: var(--muted); text-transform: none; }
  .about-signoff {
    margin-top: 6px; font-family: "Caveat Signature", "Snell Roundhand", "Brush Script MT", cursive;
    font-size: 40px; line-height: 1.05; font-weight: 400; color: var(--ink);
  }

  @media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .fresh-chip { display: none; }
    .menu-btn { display: grid; }
    .hero-visual { display: none; }
    .state-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .pipe-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
  }
  @media (max-width: 600px) {
    .wrap { padding: 0 16px; }
    .about-copy { padding: 26px 22px 24px; font-size: 16px; border-width: 7px; }
    .mobile-menu { right: 16px; }   /* stay flush with the menu button */
    .hero { padding: 44px 0 24px; }
    section { padding: 30px 0; }
    .search { padding: 6px 6px 6px 12px; }
    .search button[type="submit"] { padding: 9px 14px; }
    .nearme span { display: none; }
    .card { grid-template-columns: 46px minmax(0,1fr); padding: 14px; }
    .c-go { display: none; }
    .c-meta { flex-direction: column; gap: 4px; }
    .overlay { padding: 0; align-items: flex-end; }
    .modal { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; border-left: 0; border-right: 0; border-bottom: 0; }
    .m-hero { height: 96px; }
    .m-body { padding: 16px 18px 18px; }
    .m-hours { grid-template-columns: minmax(0, 1fr); }
    .m-actions { flex-wrap: wrap; }
    .foot-inner { flex-direction: column; gap: 20px; }
  }

  /* ---------- Search page ---------- */
  .page-head { padding: 28px 0 4px; }
  .page-head h1 { margin: 0 0 4px; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
  .page-head p { margin: 0; color: var(--muted); font-size: 14px; }
  .search-block { margin-top: 14px; }
  .search-block .chips { margin-top: 12px; }
  .adv {
    background: var(--bg-raised); border: 1px solid var(--line); border-radius: 16px;
    padding: 12px 16px; margin-top: 12px; display: flex; flex-direction: column; gap: 10px;
    box-shadow: var(--shadow-card);
  }
  /* One flowing row of control groups; each group keeps its label welded to its
     inputs so a wrap never orphans a label. */
  .adv-row { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
  .adv-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .adv-label { font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
  .adv-hint { color: var(--muted); font-size: 12px; white-space: nowrap; }
  .adv-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    border-top: 1px solid var(--line); padding-top: 9px;
  }
  .adv select, .adv input[type="time"] {
    font: inherit; font-size: 13px; color: var(--ink);
    background: var(--bg-sunken); border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 10px;
  }
  .adv select:focus, .adv input[type="time"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
  .svc-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 3px 14px; width: 100%; }
  .svc-checks label { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); padding: 3px 0; cursor: pointer; }
  .svc-checks input { accent-color: var(--accent); width: 15px; height: 15px; }
  .adv-toggle {
    border: 0; background: transparent; color: var(--accent); font-weight: 600; font-size: 13px;
    padding: 2px 0; text-align: left; width: fit-content;
  }
  .adv-toggle:hover { text-decoration: underline; }
  .adv-clear { border: 0; background: transparent; color: var(--muted); font-size: 12.5px; padding: 2px 0; width: fit-content; }
  .adv-clear:hover { color: var(--closed); }
  .empty-state {
    padding: 48px 24px; text-align: center; color: var(--muted);
    border: 1px dashed var(--line-strong); border-radius: 16px; font-size: 14.5px;
  }

  /* ---------- States page ---------- */
  .all-states { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px 20px; margin-top: 22px; }
  .all-states .s-sub { color: var(--muted); font-size: 12px; }
  .sec-divider { margin: 34px 0 6px; font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  @media (max-width: 900px) { .all-states { grid-template-columns: repeat(2, minmax(0,1fr)); } }
  @media (max-width: 480px) { .all-states { grid-template-columns: 1fr; } }
