@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap");

:root {
  --bg: #e4ddd0;
  --bg-deep: #d6cec0;
  --surface: #f3eee4;
  --ink: #1a2420;
  --muted: #5a675f;
  --border: #c5bcae;
  --accent: #1f6b4a;
  --accent-hover: #175a3d;
  --accent-deep: #144833;
  --accent-soft: #e6f2eb;
  --link: #1f6b4a;
  --gold: #a67c00;
  --gold-bright: #c9a227;
  --gold-soft: #f5edd4;
  --badge-a-bg: #1f6b4a;
  --badge-a-fg: #f7fff9;
  --badge-b-bg: #8a7320;
  --badge-c-bg: #a85a2a;
  --radius-card: 16px;
  --radius-badge: 12px;
  --radius-btn: 10px;
  --shadow-card: 0 1px 2px rgba(26,36,32,.04), 0 10px 28px rgba(26,36,32,.07);
  --shadow-card-hover: 0 2px 4px rgba(26,36,32,.06), 0 16px 40px rgba(26,36,32,.10);
  --shadow-btn: 0 1px 2px rgba(26,36,32,.08), 0 6px 16px rgba(31,107,74,.28);
  --shadow-btn-hover: 0 2px 4px rgba(26,36,32,.10), 0 10px 24px rgba(31,107,74,.38);
  --font-ui: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --frost-panel: rgba(14, 22, 18, 0.72);
  --aside-w: 32%;
  --sticky-top: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ── Top nav over hero ── */
.topnav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: linear-gradient(180deg, rgba(18,28,24,.55) 0%, rgba(18,28,24,.18) 70%, transparent 100%);
}
.topnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.topnav-brand .mini-seal {
  width: 28px; height: 28px;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.35));
}
.topnav-brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fffcf7;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.topnav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.topnav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255,252,247,.88);
  text-decoration: none;
  border-radius: 8px;
  letter-spacing: 0.01em;
  transition: background .18s, color .18s;
}
.topnav-links a:hover {
  background: rgba(255,252,247,.12);
  color: #fff;
}
.topnav-links a.is-active {
  background: rgba(255,252,247,.18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,252,247,.22);
}
.topnav-links a.nav-claim {
  background: var(--accent);
  color: #f7fff9;
  margin-left: 6px;
  box-shadow: 0 2px 8px rgba(31,107,74,.35);
}
.topnav-links a.nav-claim:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* Cream-page topnav (disclaimer) */
body.page-cream .topnav {
  position: relative;
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  margin-bottom: 1.5rem;
}
body.page-cream .topnav-brand span { color: var(--ink); text-shadow: none; }
body.page-cream .topnav-brand .mini-seal { filter: none; }
body.page-cream .topnav-links a {
  color: var(--accent);
}
body.page-cream .topnav-links a:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
body.page-cream .topnav-links a.is-active {
  background: var(--accent-soft);
  color: var(--accent-deep);
  box-shadow: inset 0 0 0 1px #c5ddcf;
}
body.page-cream .topnav-links a.nav-claim {
  background: var(--accent);
  color: #f7fff9;
}
body.page-cream .topnav-links a.nav-claim:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* ── Hero ── */
.hero {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1a2420;
  border-radius: 0;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(0.82) contrast(1.04) brightness(0.88);
  transform: scale(1.02);
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(14,22,18,.50) 0%,
      rgba(14,22,18,.22) 28%,
      rgba(14,22,18,.15) 48%,
      rgba(228,221,208,.55) 78%,
      var(--bg) 100%),
    linear-gradient(105deg,
      rgba(14,22,18,.55) 0%,
      rgba(14,22,18,.28) 42%,
      rgba(14,22,18,.08) 70%,
      transparent 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 28px 36px;
}
/* Frosted brand panel — geo-nav lives inside (geo-banner-v1) */
.brand-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 26px 24px;
  background: var(--frost-panel);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(255,252,247,.14);
  border-radius: 18px;
  box-shadow:
    0 4px 24px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.08);
  width: 100%;
  max-width: 100%;
}
.brand-top {
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand-panel .seal {
  width: 72px; height: 72px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.4));
}
.brand-panel .brand-copy { min-width: 0; }
.provenance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(201, 162, 39, 0.55);
  color: #e8d48b;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
  margin-bottom: 10px;
  font-weight: 600;
}
.brand-panel h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  color: #fffcf7;
  line-height: 1.08;
}
.brand-panel .tagline {
  margin: 6px 0 0;
  font-size: 1.02rem;
  font-weight: 500;
  color: rgba(255,252,247,.95);
  letter-spacing: -0.01em;
}
.brand-panel .loc {
  margin: 10px 0 0;
  color: rgba(232,228,216,.92);
  font-size: 0.94rem;
  font-weight: 500;
}
.brand-panel .loc span { opacity: 0.55; margin: 0 7px; }

/* Geo nav (State → County → City) */
.geo-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid rgba(255,252,247,.12);
}
.geo-nav-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(232,228,216,.78);
}
.geo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  align-items: flex-end;
}
.geo-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1 1 140px;
}
.geo-field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232,228,216,.88);
}
.geo-field select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a2420;
  background: rgba(255,252,247,.94)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231f6b4a' d='M1.2 1.2L6 6l4.8-4.8' stroke='%231f6b4a' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  border: 1.5px solid rgba(255,252,247,.35);
  border-radius: 10px;
  padding: 11px 36px 11px 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  transition: border-color .15s, box-shadow .15s;
}
.geo-field select:focus {
  outline: none;
  border-color: rgba(31,107,74,.85);
  box-shadow: 0 0 0 3px rgba(31,107,74,.35), 0 2px 8px rgba(0,0,0,.18);
}
.geo-field select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.geo-arrow {
  display: none;
  align-self: center;
  color: rgba(255,252,247,.45);
  font-size: 1.1rem;
  padding-bottom: 10px;
  flex: 0 0 auto;
}
@media (min-width: 720px) {
  .geo-arrow { display: block; }
  .geo-field { flex: 1 1 160px; max-width: 220px; }
}
@media (max-width: 560px) {
  .geo-field { flex: 1 1 100%; max-width: none; }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border-radius: var(--radius-btn);
  padding: 13px 22px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, box-shadow .18s, transform .15s, border-color .18s, color .18s;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #f7fff9;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-btn-hover);
}
.btn-secondary {
  background: rgba(14, 22, 18, 0.55);
  color: #fffcf7;
  border: 1.5px solid rgba(255,252,247,.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.btn-secondary:hover {
  background: rgba(14, 22, 18, 0.72);
  border-color: rgba(255,252,247,.75);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent-hover);
}
.btn-lg {
  padding: 15px 28px;
  font-size: 1.02rem;
  border-radius: 12px;
}

/* ── Layout ── */
.wrap {
  max-width: none;
  margin: 0;
  padding: 18px 0 48px;
}
body.page-cream .wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 8px 28px 80px;
}
body.page-cream .topnav {
  position: static;
  padding: 18px 0 8px;
  background: none;
}
body.page-cream .topnav-brand span { color: var(--accent-deep); text-shadow: none; }
body.page-cream .topnav-links a { color: var(--muted); }
body.page-cream .topnav-links a.is-active,
body.page-cream .topnav-links a:hover { color: var(--accent-deep); background: var(--accent-soft); }
body.page-cream .topnav-links a.nav-claim { color: #f7fff9; }

.lede {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.05rem;
  max-width: 42em;
  margin: 0 0 8px;
}
.lede strong { color: var(--ink); font-weight: 600; }
.hint { color: var(--muted); font-size: 0.85rem; margin: 0 0 1rem; }
.section { margin-top: 36px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.section h2, h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}
.section-meta, .results-meta {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}
.results-meta { margin: 0 0 0.85rem; }

.grade-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 24px 0 0;
  padding: 16px 18px;
  background: var(--accent-soft);
  border: 1px solid #c5ddcf;
  border-radius: 14px;
}
.grade-callout .mini-seal {
  width: 46px; height: 46px;
  flex-shrink: 0;
}
.grade-callout p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink);
}
.grade-callout p span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 3px;
}

/* ── Toolbar / chips ── */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1rem;
  align-items: center;
}
.toolbar input[type="search"] {
  flex: 1 1 12rem;
  min-width: 10rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.toolbar input[type="search"]:focus,
.toolbar select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31,107,74,.15);
}
.show-size {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}
.show-size select {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: 0 1px 2px rgba(26,36,32,.04);
  cursor: pointer;
}
.sorts { display: flex; flex-wrap: wrap; gap: 8px; }
.sorts button,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: all .15s;
  box-shadow: 0 1px 2px rgba(26,36,32,.04);
  font-family: var(--font-ui);
}
.sorts button:hover,
.chip:hover {
  border-color: #b8b0a0;
  background: #faf7f0;
}
.sorts button.is-active,
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #f7fff9;
  box-shadow: 0 2px 8px rgba(31,107,74,.25);
}
.sorts button .dir {
  display: inline-block;
  min-width: 0.9em;
  margin-left: 0.15rem;
  opacity: 0.35;
}
.sorts button.is-active .dir { opacity: 1; color: #f7fff9; }

.grid { display: grid; gap: 14px; }
.empty {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 1.5rem;
  text-align: center;
  background: var(--surface);
  border: 1px dashed #c9c0ae;
  border-radius: var(--radius-card);
}

/* Unseeded place waitlist panel */
.empty-panel {
  background: var(--surface);
  border: 1px dashed #c4bba8;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.empty-panel[hidden] { display: none !important; }
.empty-panel h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.empty-panel p {
  margin: 0 auto 20px;
  max-width: 36em;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}
.empty-panel .btn-primary { margin: 0 auto; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 20px 20px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 20px;
  transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--shadow-card-hover); }
.card-main { min-width: 0; }
.name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: -0.018em;
  line-height: 1.25;
  margin: 0;
}
.meta {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 4px;
  font-weight: 500;
}
.price { color: var(--ink); letter-spacing: 0.02em; }
.price .dim { opacity: 0.35; }
.signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin-top: 10px;
}
.signal {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 4.5rem;
}
.signal-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}
.signal-value {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.2;
  font-weight: 600;
}
.signal-value.stars {
  color: var(--gold);
  letter-spacing: 0.06em;
}
.vibe {
  font-size: 0.9rem;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}
.contact {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 6px 0 0;
}
.contact div { margin: 0.15rem 0; word-break: break-word; }
.links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
a.record {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.84rem;
  border-bottom: 1.5px solid transparent;
  transition: border-color .15s;
}
a.record:hover { border-bottom-color: var(--link); }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 11px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-deep);
  background: linear-gradient(180deg, #f4faf6 0%, #e8f3ec 100%);
  border: 1px solid #b5d4c4;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(31,107,74,.08), inset 0 1px 0 rgba(255,255,255,.7);
  transition: all .15s;
  font-family: var(--font-ui);
}
.menu-btn:hover {
  background: linear-gradient(180deg, #eaf5ee 0%, #d8ebe0 100%);
  border-color: #8fbfa5;
  box-shadow: 0 2px 6px rgba(31,107,74,.14);
}
.menu-btn svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
  opacity: 0.85;
}

/* Filled grade plate */
.badge {
  width: 96px;
  background: var(--badge-a-bg);
  color: var(--badge-a-fg);
  border-radius: var(--radius-badge);
  text-align: center;
  padding: 12px 8px 0;
  align-self: start;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 4px 12px rgba(31,107,74,.22);
  flex-shrink: 0;
}
.badge.grade-b { background: var(--badge-b-bg); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 4px 12px rgba(138,115,32,.22); }
.badge.grade-c,
.badge.grade-d,
.badge.grade-f { background: var(--badge-c-bg); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 4px 12px rgba(168,90,42,.22); }
.badge .lbl {
  font-size: 9px;
  letter-spacing: 0.16em;
  font-weight: 700;
  opacity: 0.88;
}
.badge .letter {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.05;
  margin: 2px 0 1px;
}
.badge .score {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.95;
  padding-bottom: 9px;
}
.badge .when {
  font-size: 9px;
  line-height: 1.35;
  padding: 8px 6px 9px;
  margin: 0 -8px;
  background: rgba(0,0,0,.20);
  border-radius: 0 0 var(--radius-badge) var(--radius-badge);
  color: rgba(247,255,249,.88);
  font-weight: 500;
}

.why-health {
  margin-top: 0.65rem;
  border-top: 1px solid var(--border);
  padding-top: 0.45rem;
  grid-column: 1 / -1;
}
.why-health summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  list-style: none;
}
.why-health summary::-webkit-details-marker { display: none; }
.why-health summary::before { content: "▸ "; opacity: 0.8; }
.why-health[open] summary::before { content: "▾ "; }
.why-health ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.why-health li { margin: 0.2rem 0; }

/* ── Claim ── */
.claim-section {
  margin-top: 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.claim-banner {
  background:
    linear-gradient(135deg, rgba(14,22,18,.88) 0%, rgba(31,107,74,.75) 100%),
    url("assets/food-table.jpg") center/cover;
  padding: 28px 32px;
  color: #fffcf7;
}
.claim-banner h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  color: #fffcf7;
}
.claim-banner p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255,252,247,.88);
  max-width: 36em;
  line-height: 1.5;
}
.claim-form {
  padding: 28px 32px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label .opt {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  opacity: .7;
}
.field input,
.field textarea {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31,107,74,.15);
}
.field textarea { min-height: 88px; resize: vertical; }
.claim-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.ok {
  display: none;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  grid-column: 1 / -1;
}
.ok.show { display: block; }

.footer-note, footer {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* Disclaimer content */
.disc { margin: 1.5rem 0; }
.disc h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.disc ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.disc li { margin: 0.35rem 0; }
.disc a { color: var(--link); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid transparent; }
.disc a:hover { border-bottom-color: var(--link); }
.page-cream h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}
.page-cream .place {
  margin: 0 0 1rem;
  color: var(--muted);
  font-weight: 500;
}
.page-cream .back-link {
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
}
.page-cream .back-link:hover { border-bottom-color: var(--link); }

@media (max-width: 640px) {
  .claim-form { grid-template-columns: 1fr; }
  .brand-panel { padding: 18px 16px 20px; }
  .brand-panel .seal { width: 56px; height: 56px; }
  .brand-top { align-items: flex-start; }
  .hero-inner { padding: 64px 16px 24px; }
  .topnav-links a:not(.nav-claim):not(.is-active) { display: none; }
  .card { grid-template-columns: 1fr; }
  .badge { justify-self: start; }
}


/* ═══════════════ PAGE SHELL · two-column sticky tally rail ═══════════════ */
.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 28px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, var(--aside-w));
  gap: 28px 32px;
  align-items: stretch;
}
.page-main { min-width: 0; }
.page-aside {
  min-width: 0;
  align-self: stretch;
  height: 100%;
}
.page-aside-sticky {
  position: sticky;
  top: var(--sticky-top);
  z-index: 5;
}
.aside-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Tally table graphic (cream/gold) */
.tally-table {
  width: 100%;
  padding: 14px 14px 15px;
  background: linear-gradient(180deg, #fffcf7 0%, #f3eee4 55%, #e4ddd0 100%);
  border: 1.5px solid rgba(201, 162, 39, 0.62);
  border-radius: 16px;
  box-shadow:
    0 6px 22px rgba(26,36,32,.10),
    inset 0 1px 0 rgba(255,255,255,.85),
    inset 0 0 0 2px rgba(255,252,247,.5);
  position: relative;
}
.tally-table::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 12px;
  border: 1px solid rgba(31,107,74,.14);
  pointer-events: none;
}
.tally-table-cap {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
  padding: 0 2px 8px;
  border-bottom: 1px solid rgba(166, 124, 0, 0.28);
  position: relative;
}
.score-table .tally-table-cap {
  color: var(--accent-deep);
  border-bottom-color: rgba(31, 107, 74, 0.22);
}
.score-table .tally-table-cap .cap-hint {
  display: block;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 3px;
  text-transform: none;
}
.tally-table table {
  width: 100%;
  border-collapse: collapse;
  position: relative;
}
.tally-table tr + tr td {
  border-top: 1px solid rgba(31, 107, 74, 0.10);
}
.tally-table td {
  padding: 9px 4px;
  vertical-align: baseline;
}
.tally-table .tally-lbl {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  line-height: 1.2;
  width: 58%;
  padding-right: 8px;
}
.tally-table .tally-val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: -0.03em;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}
.tally-table .tally-val.is-blank {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(26, 36, 32, 0.28);
  letter-spacing: 0;
}
.tally-table tr.is-nationwide .tally-lbl {
  font-size: 0.78rem;
  color: var(--accent-deep);
}
.tally-table tr.is-nationwide .tally-val { font-size: 1.55rem; }
.tally-table .tally-sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(31, 107, 74, 0.72);
  margin-top: 2px;
}
.tally-table tr.is-blank .tally-lbl { color: rgba(31, 107, 74, 0.45); }
.tally-table tr.is-blank .tally-sub { color: rgba(31, 107, 74, 0.35); }

/* Score table · circular medallions */
.score-table td {
  vertical-align: middle;
  padding: 8px 4px;
}
.score-table .tally-val {
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  line-height: 1;
  width: 42%;
}
.score-table tr.is-nationwide .tally-val { font-size: inherit; }
.score-table .tally-val.is-blank {
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(26, 36, 32, 0.28);
  text-align: right;
}

.grade-medallion {
  --med-face: #1f6b4a;
  --med-face-hi: #2a8058;
  --med-ink: #f7fff9;
  --med-ink-soft: #c8e6d4;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-left: auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, var(--med-face-hi) 0%, var(--med-face) 72%);
  border: 2.5px solid #c9a227;
  box-shadow:
    0 0 0 1.5px #1f6b4a,
    0 0 0 3px rgba(201, 162, 39, 0.55),
    0 3px 10px rgba(26, 36, 32, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  position: relative;
  flex-shrink: 0;
}
.grade-medallion::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(247, 255, 249, 0.28);
  pointer-events: none;
}
.grade-medallion .med-letter {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--med-ink);
  line-height: 1;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.grade-medallion .med-letter.is-long {
  font-size: 1.05rem;
  letter-spacing: -0.04em;
}
.grade-medallion .med-score {
  position: relative;
  z-index: 1;
  font-family: var(--font-ui);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--med-ink-soft);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-top: 2px;
}
tr.is-nationwide .grade-medallion { width: 60px; height: 60px; }
tr.is-nationwide .grade-medallion .med-letter { font-size: 1.4rem; }
tr.is-nationwide .grade-medallion .med-letter.is-long { font-size: 1.12rem; }
tr.is-nationwide .grade-medallion .med-score { font-size: 0.62rem; }

.grade-medallion.grade-a {
  --med-face: #1a5a3e;
  --med-face-hi: #2a8058;
  --med-ink: #f7fff9;
  --med-ink-soft: #c8e6d4;
}
.grade-medallion.grade-b {
  --med-face: #8a6500;
  --med-face-hi: #c9a227;
  --med-ink: #fffaf0;
  --med-ink-soft: #f0e2b0;
  border-color: #e8d48b;
  box-shadow:
    0 0 0 1.5px #6b4e00,
    0 0 0 3px rgba(201, 162, 39, 0.45),
    0 3px 10px rgba(26, 36, 32, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.grade-medallion.grade-c {
  --med-face: #8a4a28;
  --med-face-hi: #c47a45;
  --med-ink: #fff8f2;
  --med-ink-soft: #f0d4c0;
  border-color: #d4a574;
  box-shadow:
    0 0 0 1.5px #5c3018,
    0 0 0 3px rgba(196, 122, 69, 0.4),
    0 3px 10px rgba(26, 36, 32, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.grade-medallion.grade-d,
.grade-medallion.grade-f {
  --med-face: #5a3a3a;
  --med-face-hi: #7a5050;
  --med-ink: #fff5f5;
  --med-ink-soft: #e0c8c8;
  border-color: #a08080;
  box-shadow:
    0 0 0 1.5px #3a2424,
    0 0 0 3px rgba(90, 58, 58, 0.35),
    0 3px 10px rgba(26, 36, 32, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

@media (max-width: 860px) {
  .page-shell {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 12px 16px 48px;
  }
  .page-aside-sticky { position: static; }
  .tally-table { max-width: 360px; }
  .hero { min-height: 380px; border-radius: 0; }
}

/* Empty GradeLocal ★ / unset price */
.signal-empty { align-items: flex-start; }
.stars-empty {
  color: rgba(166, 124, 0, 0.45);
  letter-spacing: 0.06em;
  font-size: 1.05rem;
}
.first-rate {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.signal-count {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}
.price-empty { opacity: 0.35; }
.price-unset {
  margin-left: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}
