/* =====================================================================
   Chocolate Near You: design system
   White and cocoa brown, with a quiet gold accent for a festive touch.
   ===================================================================== */

:root {
  --cocoa-900: #2a1810;
  --cocoa-800: #3b2216;
  --cocoa-700: #4a2c1d;
  --cocoa-600: #6b4128;
  --cocoa-500: #8a5a3b;
  --cocoa-200: #e6d5c6;
  --cocoa-100: #f3eae2;
  --cocoa-50: #faf6f2;
  --gold: #b88a44;
  --gold-soft: #ead9b8;
  --white: #ffffff;
  --ink: #241710;
  --ink-2: #4b3a30;
  --muted: #6e5d52;
  --line: #eadfd5;
  --star: #c9902f;

  --shadow-sm: 0 1px 2px rgba(42, 24, 16, 0.06), 0 2px 8px rgba(42, 24, 16, 0.05);
  --shadow-md: 0 6px 18px rgba(42, 24, 16, 0.09);
  --radius: 10px;
  --wrap: 1180px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  /* 18px body at 1.8 line height. splitLongParagraphs() in build.mjs keeps
     paragraphs to roughly three or four lines at this size. */
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--cocoa-900);
  margin: 0 0 0.55em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); margin-top: 1.6em; }
h3 { font-size: 1.22rem; }
.section > .wrap > h2:first-child, .section > .wrap-narrow > h2:first-child { margin-top: 0; }

p { margin: 0 0 1.05em; }
a { color: var(--cocoa-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cocoa-900); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.3em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.small { font-size: 0.92rem; color: var(--muted); }
.missing { color: var(--muted); font-style: italic; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--cocoa-700); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip-link:focus { top: 8px; color: #fff; }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font: 600 1rem/1.2 var(--font-body);
  padding: 0.7rem 1.25rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; max-width: 100%;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--cocoa-700); color: #fff; }
.btn-primary:hover { background: var(--cocoa-900); color: #fff; }
.btn-dark { background: var(--cocoa-900); color: #fff; border-radius: 0 999px 999px 0; }
.btn-dark:hover { background: var(--cocoa-700); color: #fff; }
.btn-outline { background: #fff; color: var(--cocoa-700); border-color: var(--cocoa-200); }
.btn-outline:hover { border-color: var(--cocoa-600); color: var(--cocoa-900); }
.btn-ghost { background: var(--cocoa-50); color: var(--cocoa-700); }
.btn-ghost:hover { background: var(--cocoa-100); color: var(--cocoa-900); }
.btn-sm { padding: 0.42rem 0.9rem; font-size: 0.9rem; }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1.05rem; }

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(6px);
  border-bottom: 1px solid var(--line);
}
/* A thin ribbon of gold dots: the one festive flourish, kept quiet. */
.site-header::before {
  content: ""; display: block; height: 4px;
  background: linear-gradient(90deg, var(--cocoa-700), var(--cocoa-500) 50%, var(--cocoa-700));
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--cocoa-900); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-display); }
.brand-text b { font-size: 1.25rem; font-weight: 700; }
.brand-text span { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-family: var(--font-body); font-weight: 600; }
.main-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 0.45rem 0.85rem; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.98rem;
}
.main-nav a:hover { background: var(--cocoa-50); color: var(--cocoa-900); }
.main-nav a[aria-current="page"] { background: var(--cocoa-100); color: var(--cocoa-900); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; font: 600 0.95rem var(--font-body); padding: 0.45rem 0.9rem;
    border: 1px solid var(--cocoa-200); background: #fff; color: var(--cocoa-800); border-radius: 999px; cursor: pointer;
  }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 0.5rem 1.25rem 1rem; }
}

/* ----------------------------------------------------------- page heads */
.page-head { background: var(--cocoa-50); border-bottom: 1px solid var(--line); padding: 1.6rem 0 1.8rem; }
.page-head h1 { margin-bottom: 0.35em; }
.lede { font-size: 1.08rem; color: var(--ink-2); max-width: 62ch; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.3rem; list-style: none; padding: 0; margin: 0 0 0.8rem; font-size: 0.88rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.3rem; color: var(--cocoa-200); }
.breadcrumbs a { color: var(--muted); }
.notice { background: #fff8e8; border: 1px solid var(--gold-soft); padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.95rem; }

.section { padding: 2.6rem 0; }
.section-alt { background: var(--cocoa-50); border-block: 1px solid var(--line); }

/* -------------------------------------------------------------- hero */
.hero { background: linear-gradient(180deg, var(--cocoa-50), #fff); padding: 2.5rem 0 1.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.82rem; font-weight: 600; color: var(--gold); margin-bottom: 0.5rem; }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.4rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.25rem 0; }
.hero-search { display: flex; max-width: 520px; }
.hero-search input {
  flex: 1; min-width: 0; font: 1rem var(--font-body); padding: 0.75rem 1rem;
  border: 2px solid var(--cocoa-200); border-right: 0; border-radius: 999px 0 0 999px; background: #fff;
}
.hero-search input:focus { outline: none; border-color: var(--cocoa-600); }
.near-me-status { min-height: 1.8em; margin-top: 0.75rem; color: var(--muted); font-size: 0.95rem; }
/* Fixed aspect box so the banner reserves its space before it loads. */
.hero-media { margin: 0; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #f4f2f0; box-shadow: var(--shadow-md); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero-media .hero-mark { object-fit: contain; padding: 18%; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16 / 9; order: -1; }
  .hero-media img { object-position: center 50%; }
}

/* ------------------------------------------------------------ grids */
.state-grid, .city-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.5rem;
}
.state-grid a {
  display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.65rem 0.9rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--cocoa-900); font-weight: 500;
}
.state-grid a:hover { border-color: var(--cocoa-500); box-shadow: var(--shadow-sm); }
.state-grid span, .city-grid span { color: var(--muted); font-size: 0.9rem; font-weight: 400; }
.city-grid li { padding: 0.35rem 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 0.5rem; }

.chips { list-style: none; padding: 0; margin: 0.4rem 0 0.8rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.75rem;
  border: 1px solid var(--cocoa-200); border-radius: 999px; background: #fff;
  font-size: 0.88rem; line-height: 1.6; color: var(--cocoa-700); text-decoration: none;
}
.chip:hover { background: var(--cocoa-100); border-color: var(--cocoa-500); color: var(--cocoa-900); }
.chip span { color: var(--muted); font-size: 0.82rem; }
.chips-lg .chip { font-size: 1rem; padding: 0.4rem 1rem; }

.card-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--cocoa-100); }
.card-body { padding: 0.9rem 1rem 1rem; }
.card-body h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.card-body p { margin: 0; }
.near-list .card-body h3 { margin-bottom: 0.15rem; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.post-card h3 { margin-bottom: 0.4rem; }
.post-card p { font-size: 0.98rem; margin: 0; }
.post-card .post-card-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.3rem; }

.find-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.find-grid li { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.find-grid h2 { font-size: 1.25rem; margin: 0 0 0.4rem; }
.find-grid p { font-size: 0.98rem; margin-bottom: 0.4rem; }

/* -------------------------------------------------------- hub pieces */
.stat-strip { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.stat-strip li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.55rem 1rem; min-width: 120px; }
.stat-strip b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--cocoa-800); line-height: 1.2; }
.stat-strip span { font-size: 0.85rem; color: var(--muted); }

.jump { display: grid; gap: 0.5rem 2rem; grid-template-columns: 1fr 1fr; margin-bottom: 1rem; }
.jump-title { font-size: 1rem; font-family: var(--font-body); font-weight: 600; margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
@media (max-width: 760px) { .jump { grid-template-columns: 1fr; } }

.toolbar {
  display: flex; flex-wrap: wrap; align-items: end; gap: 0.75rem 1rem;
  padding: 0.9rem 1rem; margin: 1rem 0 1.25rem; background: var(--cocoa-50); border: 1px solid var(--line); border-radius: var(--radius);
}
.toolbar-field { display: flex; flex-direction: column; font-size: 0.85rem; color: var(--muted); gap: 0.2rem; }
.toolbar-field input, .toolbar-field select {
  font: 0.98rem var(--font-body); padding: 0.45rem 0.6rem; border: 1px solid var(--cocoa-200); border-radius: 8px; background: #fff; color: var(--ink); min-width: 170px;
}
.toolbar-check { display: flex; align-items: center; gap: 0.4rem; font-size: 0.95rem; padding-bottom: 0.45rem; }
.toolbar-count { margin: 0 0 0.45rem auto; font-size: 0.9rem; color: var(--muted); }

/* ------------------------------------------------------------ entries */
.entries { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.entry { border-top: 1px solid var(--line); padding: 1.5rem 0; }
.entry:first-child { border-top: 0; }
.entry-head { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.entry-head h3 { margin: 0; font-size: 1.35rem; }
.entry-head h3 a { color: var(--cocoa-900); text-decoration: none; }
.entry-head h3 a:hover { text-decoration: underline; }
.entry-rank {
  flex: none; display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--cocoa-700); color: #fff; font: 700 1.05rem var(--font-display);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--gold-soft);
}
.entry-grid { display: grid; grid-template-columns: 220px 1fr; gap: 1.25rem; }
.entry-media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--radius); background: var(--cocoa-100); }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; margin: 0 0 0.5rem; font-size: 0.95rem; }
.entry-place { color: var(--muted); }
.entry-summary { margin-bottom: 0.8rem; }
.entry-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.entry-compact { padding: 1.1rem 0; }
.entry-compact .entry-head h3 { font-size: 1.12rem; }
.entry-compact .entry-rank { width: 1.9rem; height: 1.9rem; font-size: 0.92rem; }
.tag-sample { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; background: #fff1d6; color: #7a5413; border-radius: 4px; padding: 0.1rem 0.45rem; }
.entry.is-hidden, .entry-ad.is-hidden { display: none; }
.open-badge { font-size: 0.78rem; font-weight: 600; border-radius: 999px; padding: 0.05rem 0.55rem; }
.open-badge.is-open { background: #e6f2e4; color: #2f6a2a; }
.open-badge.is-closed { background: var(--cocoa-100); color: var(--muted); }
@media (max-width: 680px) {
  .entry-grid { grid-template-columns: 1fr; }
  .entry-media img { aspect-ratio: 16 / 9; }
}

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem 1.25rem; margin: 0 0 0.6rem; font-size: 0.95rem; }
.facts div { min-width: 0; }
.facts dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.hours-line { display: block; line-height: 1.6; }
.hours-line b { font-weight: 600; color: var(--ink-2); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

.rating { display: inline-flex; align-items: center; gap: 0.35rem; }
.rating b { color: var(--cocoa-900); }
.rating-count { color: var(--muted); }
.rating-none { color: var(--muted); font-style: italic; }
/* Stars are a CSS mask over a filled bar, so they need no glyphs or icons. */
.stars {
  --star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L10 14.9l-5.2 2.7 1-5.8L1.5 7.7l5.9-.9z'/%3E%3C/svg%3E");
  display: inline-block; width: 88px; height: 17px;
  background: linear-gradient(90deg, var(--star) var(--pct), var(--cocoa-200) var(--pct));
  -webkit-mask: var(--star-mask) left center / 17.6px 17px repeat-x;
  mask: var(--star-mask) left center / 17.6px 17px repeat-x;
}

/* ------------------------------------------------------------ ads
   Height is reserved up front so a late ad never shifts the content. */
.ad-slot {
  display: block; min-height: 300px; margin: 1.75rem auto; text-align: center;
  background: var(--cocoa-50); border-radius: var(--radius); overflow: hidden; contain: layout;
}
.ad-slot-inFeed { min-height: 180px; margin: 0.5rem 0; }
.ad-label { margin: 0; padding-top: 0.25rem; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.entry-ad { list-style: none; border-top: 1px solid var(--line); padding: 0.75rem 0; }
@media (min-width: 900px) { .ad-slot-display { min-height: 280px; } }

/* -------------------------------------------------------- detail page */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; align-items: start; }
.detail-hero { margin: 0 0 1.5rem; }
.detail-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--cocoa-100); }
.detail-side { position: sticky; top: 90px; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; background: #fff; box-shadow: var(--shadow-sm); }
.side-card h2 { font-size: 1.2rem; margin-top: 0; }
.side-card .facts { grid-template-columns: 1fr; }
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
}
.hours-table { border-collapse: collapse; width: 100%; max-width: 440px; margin-bottom: 0.8rem; }
.hours-table th, .hours-table td { text-align: left; padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours-table th { width: 40%; color: var(--ink-2); }
.hours-table tr.is-today { background: var(--cocoa-100); font-weight: 600; }
.hours-table tr.is-today th { font-weight: 600; }
.rating-bars { max-width: 440px; margin-bottom: 1rem; }
.rating-bar { display: grid; grid-template-columns: 56px 1fr 60px; gap: 0.6rem; align-items: center; font-size: 0.9rem; }
.rating-bar .bar { height: 9px; background: var(--cocoa-100); border-radius: 9px; overflow: hidden; }
.rating-bar .bar span { display: block; height: 100%; background: var(--star); }
.rating-bar span:last-child { text-align: right; color: var(--muted); }
.mini-list { padding-left: 1.3em; columns: 2 300px; column-gap: 2rem; }
.mini-list li { break-inside: avoid; margin-bottom: 0.3rem; }
.mini-list span { color: var(--muted); font-size: 0.9rem; }

/* ------------------------------------------------------------- prose */
.prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.35em; }
.byline { color: var(--muted); font-size: 0.95rem; }
.callout { background: var(--cocoa-50); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 2rem 0; }
.callout h2 { font-size: 1.3rem; margin-top: 0; }
.link-list { padding-left: 1.2em; }
.link-list.cols { columns: 3 200px; column-gap: 2rem; }
.link-list li { break-inside: avoid; }

.faq details { border-bottom: 1px solid var(--line); padding: 0.75rem 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--cocoa-900); list-style-position: outside; }
.faq .faq-a { padding-top: 0.5rem; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ map */
.map-frame { height: min(70vh, 620px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--cocoa-50); margin-bottom: 0.6rem; }
.map-loading { padding: 1.5rem; color: var(--muted); }
.map-index { columns: 3 240px; column-gap: 2rem; }
.map-index section { break-inside: avoid; margin-bottom: 1rem; }
.map-index h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.map-index ul { padding-left: 1.1em; margin: 0; font-size: 0.95rem; }

/* ----------------------------------------------------------- search */
.search-box input {
  width: 100%; font: 1.1rem var(--font-body); padding: 0.85rem 1.1rem;
  border: 2px solid var(--cocoa-200); border-radius: 999px;
}
.search-box input:focus { outline: none; border-color: var(--cocoa-600); }
.search-results { list-style: none; padding: 0; }
.search-results li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.search-results .kind { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); font-weight: 600; }
.search-results a { font-weight: 600; font-size: 1.08rem; }
.search-results p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ----------------------------------------------------------- footer */
.site-footer { background: var(--cocoa-900); color: #e9ddd3; padding: 2.5rem 0 1.5rem; margin-top: 2rem; }
.site-footer a { color: #f3e8de; }
.footer-brand { display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 1.5rem; }
.footer-brand b { font-family: var(--font-display); font-size: 1.2rem; color: #fff; }
.footer-brand p { margin: 0.2rem 0 0; font-size: 0.95rem; color: #cdbcae; max-width: 60ch; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 1.2rem; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.footer-nav a { text-decoration: none; font-size: 0.95rem; }
.footer-nav a:hover { text-decoration: underline; }
.social { gap: 0.6rem !important; }
.social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.social a:hover { background: rgba(255, 255, 255, 0.18); }
.footer-legal { margin-top: 1.25rem; font-size: 0.85rem; color: #b9a698; }
.footer-legal p { margin: 0; }

.empty { color: var(--muted); padding: 1rem 0; }

/* ---------------------------------------------------- blog listicles */
.state-lists-grid { columns: 3 260px; column-gap: 2rem; }
.state-lists { break-inside: avoid; margin-bottom: 1.2rem; }
.state-lists h3 { font-size: 1.08rem; margin-bottom: 0.2rem; }
.state-lists ul { padding-left: 1.1em; margin: 0; font-size: 0.95rem; }
.callout-inline { background: var(--cocoa-50); border-left: 4px solid var(--gold); padding: 0.7rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; }
.table-scroll { overflow-x: auto; margin-bottom: 1rem; }
.compare { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.compare th, .compare td { text-align: left; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); }
.compare th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.prose .entries { padding-left: 0; }
.prose .entry-grid { grid-template-columns: 170px 1fr; }
@media (max-width: 680px) { .prose .entry-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Personality layer: chocolate-shop elegance.
   Deep ganache bands, chocolate drips, arch-framed photography, circular
   speciality portraits, gold ornament and italic serif accents.
   ===================================================================== */

:root {
  --ganache: #24140d;
  --cream: #fbf6f0;
  --gold: #b8873e;
  --gold-light: #e3c48d;
  --drip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 36'%3E%3Cpath d='M0 0H120V8C110 8 108 30 98 30C88 30 88 14 78 12C68 10 66 22 56 22C46 22 44 8 34 8C24 8 22 34 12 34C4 34 2 8 0 8Z'/%3E%3C/svg%3E");
}

h1, h2, h3 { letter-spacing: -0.015em; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--cocoa-600); }

/* announcement bar + header ribbon */
.announce {
  background: var(--ganache); color: var(--gold-light);
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0.4rem 0.9rem;
  padding: 0.45rem 1rem; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.announce a { color: #fff; text-decoration: none; }
.announce a:hover { text-decoration: underline; color: #fff; }
.site-header::before { display: none; }
.site-header::after {
  content: ""; display: block; height: 6px;
  background: repeating-linear-gradient(90deg, var(--cocoa-700) 0 12px, transparent 12px 18px);
  opacity: 0.85;
}
.main-nav a { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; font-weight: 600; }

/* buttons: crisp and lettered, like a shop sign */
.btn { border-radius: 4px; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.82rem; padding: 0.8rem 1.35rem; }
.btn-sm { font-size: 0.74rem; padding: 0.5rem 0.9rem; }
.btn-lg { font-size: 0.9rem; padding: 0.95rem 1.6rem; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #9d722f; color: #fff; }
.btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-light:hover { background: #fff; color: var(--ganache); }
.btn-dark { border-radius: 0 4px 4px 0; }
.hero-search input { border-radius: 4px 0 0 4px; }

/* eyebrows and section titles with gold ornament */
.eyebrow { color: var(--gold); letter-spacing: 0.22em; font-size: 0.76rem; }
.eyebrow-center { display: flex; align-items: center; justify-content: center; gap: 0.9rem; text-align: center; }
.eyebrow-center::before, .eyebrow-center::after { content: ""; width: 42px; height: 1px; background: var(--gold); }
.eyebrow-light { color: var(--gold-light); }
.section-title { text-align: center; margin-top: 0; }
.section-title::after { content: "\2726"; display: block; font-size: 0.9rem; color: var(--gold); margin-top: 0.35rem; }
.subhead { text-align: center; margin: 2.5rem 0 1rem; font-style: italic; font-weight: 400; color: var(--cocoa-600); }
.center { text-align: center; }
.section-cream { background: var(--cream); }

/* hero: listing photo under a ganache wash */
.hero {
  position: relative; overflow: hidden; padding: 0; color: #fff;
  background: radial-gradient(ellipse at 80% 20%, #5a3522 0%, var(--ganache) 65%);
  min-height: min(78vh, 640px); display: flex; align-items: center;
}
.hero .bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(36, 20, 13, 0.94) 0%, rgba(36, 20, 13, 0.78) 45%, rgba(36, 20, 13, 0.35) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 4rem 0 3.5rem; max-width: var(--wrap); }
.hero-inner > * { max-width: 640px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.3rem); line-height: 1.02; margin-bottom: 0.4em; }
.hero h1 em { display: block; font-size: 0.42em; line-height: 1.3; margin-top: 0.5em; color: var(--gold-light); letter-spacing: 0; }
.hero .lede { color: #eadcd0; }
.hero .near-me-status { color: var(--gold-light); }
.hero-credit { font-size: 0.78rem; color: rgba(255, 255, 255, 0.65); margin: 0.5rem 0 0; }
.hero-credit a { color: rgba(255, 255, 255, 0.85); }
.hero-search input { border-color: transparent; }

/* chocolate drip */
.drip {
  height: 34px; background: var(--ganache); margin-top: -1px;
  -webkit-mask: var(--drip) left top / 120px 34px repeat-x; mask: var(--drip) left top / 120px 34px repeat-x;
}
.drip-up { transform: scaleY(-1); margin: 2rem 0 -1px; }
.site-footer { margin-top: 0; background: var(--ganache); }

/* circular speciality portraits */
.circles {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.6rem 1rem;
}
.circles a { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--cocoa-900); }
.circle-img {
  width: 138px; height: 138px; border-radius: 50%; overflow: hidden; background: var(--cocoa-100);
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--gold-light), var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.circle-img img { width: 100%; height: 100%; object-fit: cover; }
.circles a:hover .circle-img { transform: translateY(-4px); box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--gold), var(--shadow-md); }
.circle-label { margin-top: 0.9rem; font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }
.circle-count { font-size: 0.82rem; color: var(--muted); }

/* photo tiles */
.tiles { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tile a {
  position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, var(--cocoa-600), var(--ganache)); color: #fff; text-decoration: none;
}
.tile .bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.tile a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36, 20, 13, 0) 35%, rgba(36, 20, 13, 0.88) 100%); }
.tile a:hover .bg-img { transform: scale(1.05); }
.tile-copy { position: absolute; left: 1.3rem; right: 1.3rem; bottom: 1.2rem; z-index: 1; display: flex; flex-direction: column; }
.tile-kicker { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-light); }
.tile-title { font-family: var(--font-display); font-size: 1.85rem; line-height: 1.15; font-weight: 600; }
.tile-cta { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0.35rem; text-decoration: underline; text-underline-offset: 4px; }
.tile:first-child { grid-column: span 2; grid-row: span 2; }
.tile:first-child a { aspect-ratio: auto; height: 100%; min-height: 320px; }
.tile:first-child .tile-title { font-size: 2.6rem; }
@media (max-width: 760px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile:first-child { grid-column: span 2; grid-row: auto; }
  .tile:first-child a { aspect-ratio: 16 / 10; min-height: 0; }
  .tile-title { font-size: 1.3rem; }
}

/* ganache band */
.section-ganache {
  background: radial-gradient(ellipse at 15% 0%, #4a2c1d 0%, var(--ganache) 60%); color: #eadcd0;
  border-block: 0;
}
.section-ganache h2 { color: #fff; margin-top: 0.2em; }
.ganache-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.ganache-stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ganache-stats a {
  display: block; padding: 1.2rem 1.3rem; border: 1px solid rgba(227, 196, 141, 0.35); border-radius: 12px;
  text-decoration: none; color: #eadcd0; transition: background-color 0.2s ease, border-color 0.2s ease;
}
.ganache-stats a:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--gold-light); }
.ganache-stats b { display: block; font-family: var(--font-display); font-size: 2.2rem; color: var(--gold-light); line-height: 1.1; }
.ganache-stats span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; }
@media (max-width: 860px) { .ganache-grid { grid-template-columns: 1fr; } }

/* page heads with an arch-framed featured photo */
.page-head {
  background-color: var(--cream);
  background-image: radial-gradient(rgba(107, 65, 40, 0.07) 1px, transparent 1.2px);
  background-size: 18px 18px;
  padding: 2rem 0 2.3rem;
}
.page-head-grid { display: block; }
.page-head.has-feature .page-head-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 2.5rem; align-items: center; }
.feature { margin: 0; }
.feature img {
  width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; background: var(--cocoa-100);
  border-radius: 999px 999px 16px 16px / 260px 260px 16px 16px;
  box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--gold-light), var(--shadow-md);
}
.feature figcaption { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 0.8rem; }
.feature figcaption a { color: var(--muted); }
@media (max-width: 860px) {
  .page-head.has-feature .page-head-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature { order: -1; max-width: 520px; }
  .feature img { aspect-ratio: 16 / 10; border-radius: 16px; }
}
.page-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); }

/* stat strip as links */
.stat-strip a { display: block; text-decoration: none; color: inherit; }
.stat-strip li { transition: border-color 0.2s ease, transform 0.2s ease; }
.stat-strip li:hover { border-color: var(--gold); transform: translateY(-2px); }

/* whole cards are clickable; inner links stay on top */
.card, .post-card { position: relative; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.card:hover, .post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card h3 a::after, .post-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card .rating-count, .card .card-media { position: relative; z-index: 2; }
.card { border-radius: 14px; }
.post-card { padding: 0; overflow: hidden; border-radius: 14px; display: flex; flex-direction: column; }
.post-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--cocoa-100); }
.post-card-body { padding: 1.1rem 1.25rem 1.3rem; }
.post-card h3 a { color: var(--cocoa-900); text-decoration: none; }

/* entries get a touch more polish */
.entry-media img { border-radius: 12px; box-shadow: var(--shadow-sm); }
.entry-rank { background: var(--ganache); box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--gold-light); }
.chip { border-color: var(--gold-light); }
.state-grid a { border-radius: 6px; }
.state-grid a:hover { border-color: var(--gold); }
.facts dd a { color: var(--ink-2); }
.facts dd a:hover { color: var(--cocoa-900); }
.circles { display: flex; flex-wrap: wrap; justify-content: center; }
.circles li { width: 150px; }
@media (max-width: 600px) {
  .announce { font-size: 0.68rem; letter-spacing: 0.08em; }
  .announce span { display: none; }
  .circles { gap: 1.2rem 0.5rem; }
  .circles li { width: calc(33.33% - 0.4rem); }
  .circle-img { width: 92px; height: 92px; }
  .circle-label { font-size: 0.95rem; margin-top: 0.6rem; }
  .hero-inner { padding: 2.5rem 0 2.5rem; }
}

/* =====================================================================
   Mobile
   ===================================================================== */

/* Long lists: the browser skips layout and paint for offscreen entries. */
.entry { content-visibility: auto; contain-intrinsic-size: auto 560px; }
.entry-compact { contain-intrinsic-size: auto 300px; }

button, .btn, .chip, a { touch-action: manipulation; -webkit-tap-highlight-color: rgba(184, 135, 62, 0.18); }

.to-top {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--ganache); color: var(--gold-light);
  box-shadow: var(--shadow-md); opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

.mobile-actions { display: none; }

@media (max-width: 760px) {
  body { font-size: 17.5px; }
  .wrap, .wrap-narrow { width: min(100% - 2rem, var(--wrap)); }
  .section { padding: 2rem 0; }
  h2 { margin-top: 1.3em; }

  /* inputs at 16px+ so iOS does not zoom on focus */
  input, select, textarea { font-size: 16px !important; }
  .toolbar { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .toolbar-field input, .toolbar-field select { width: 100%; min-width: 0; min-height: 44px; }
  .toolbar-check { min-height: 40px; padding: 0; }
  .toolbar-count { margin: 0; }
  .hero-search input, .hero-search .btn { min-height: 50px; }

  /* tap targets: 44px for buttons, comfortable spacing for links */
  .btn { min-height: 44px; }
  .entry-actions { gap: 0.5rem; }
  .entry-actions .btn { flex: 1 1 auto; }
  .chip { padding: 0.45rem 0.95rem; min-height: 40px; }
  .chips { gap: 0.5rem; }
  .breadcrumbs a { display: inline-block; padding: 0.35rem 0; }
  .footer-nav ul { gap: 0.1rem 1.25rem; }
  .footer-nav a { display: inline-block; padding: 0.55rem 0; }
  .social a { width: 44px; height: 44px; }
  .city-grid li { padding: 0; }
  .city-grid a { display: inline-block; padding: 0.55rem 0; }
  .mini-list li, .link-list li, .map-index li, .state-lists li { padding: 0.3rem 0; }
  .facts dd a, .rating-count { display: inline-block; padding: 0.2rem 0; }
  .main-nav a { padding: 0.8rem 0.9rem; }
  .faq summary { padding: 0.35rem 0; }

  /* compact entries: photo floats beside the summary */
  .entry-grid { display: block; }
  .entry-media { float: right; width: 108px; margin: 0.2rem 0 0.6rem 0.9rem; }
  .entry-media img { aspect-ratio: 1 / 1; border-radius: 10px; }
  .entry-body::after { content: ""; display: table; clear: both; }
  .entry-head h3 { font-size: 1.2rem; }
  .entry { padding: 1.25rem 0; }
  .facts { clear: both; }

  .stat-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .stat-strip li { min-width: 0; }

  /* listing pages: sticky quick actions within thumb reach */
  .listing-page { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .listing-page .to-top { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .mobile-actions {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: var(--ganache); padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom)); gap: 0.5rem;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
  }
  .mobile-actions a {
    flex: 1; display: grid; place-items: center; min-height: 46px; border-radius: 6px;
    background: rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  }
  .mobile-actions a:first-child { background: var(--gold); }

  /* maps */
  .map-frame { height: 62vh; }
  .leaflet-touch .leaflet-bar a { width: 42px; height: 42px; line-height: 42px; font-size: 20px; }

  .ad-slot-display { min-height: 280px; }
  .page-head { padding: 1.4rem 0 1.8rem; }
  .ganache-stats b { font-size: 1.8rem; }
}
@media (min-width: 761px) { .map-hint { display: none; } }
@media (max-width: 760px) {
  .entry-head h3 a, .card h3 a, .post-card h3 a, .link-list a, .search-results a,
  .state-lists a, .map-index a, .mini-list a, .map-index h3 a, .link-list h3 a, h3 > a {
    display: inline-block; padding: 0.4rem 0;
  }
  .toolbar-check input { width: 24px; height: 24px; accent-color: var(--cocoa-700); }
}
/* anchor jumps land below the sticky header */
[id] { scroll-margin-top: 92px; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.find-cta { margin-top: 2rem; }
.find-index-title { margin-top: 3rem; }
.find-grid li { position: relative; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.find-grid li:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.find-grid h2 a { text-decoration: none; color: var(--cocoa-900); }
.find-grid h2 a::after { content: ""; position: absolute; inset: 0; }

/* sitewide affiliate banner, inside the announcement bar */
.announce { padding: 0.5rem 1rem; }
.announce-promo { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 0.6rem; }
.announce-go {
  background: var(--gold); color: #fff; border-radius: 3px; padding: 0.15rem 0.55rem;
  font-size: 0.7rem; letter-spacing: 0.12em;
}
.announce-promo:hover .announce-go { background: #9d722f; }
.announce-note { color: rgba(227, 196, 141, 0.75); font-size: 0.66rem; letter-spacing: 0.1em; }
@media (max-width: 600px) {
  .announce span.announce-note { display: inline; }
  .announce-extra { display: none; }
  .announce span.announce-go { display: inline; }
  .announce-promo { padding: 0.35rem 0; }
}
@media (max-width: 600px) {
  .announce { flex-wrap: nowrap; gap: 0.5rem; padding: 0.4rem 0.75rem; letter-spacing: 0.06em; }
  .announce-promo { gap: 0.45rem; white-space: nowrap; }
  .announce-go { padding: 0.15rem 0.45rem; letter-spacing: 0.08em; }
  .announce-note { font-size: 0.6rem; letter-spacing: 0.04em; white-space: nowrap; }
}
