/* ──────────────────────────────────────────────────────────────
   category-guide — generic config-driven local guide theme.
   Default look: "Coffee Bag" (kraft paper, ink borders, label type).
   Colors are --cg-* tokens; view.php sets them from the guide config.
   ────────────────────────────────────────────────────────────── */

:root {
  --cg-paper: #e9dcc4;
  --cg-card: #f3e8d6;
  --cg-ink: #3b2a1f;
  --cg-body: #4a3626;
  --cg-soft: #5a4530;
  --cg-muted: #8a7355;
  --cg-meta: #8a5a3a;
  --cg-rule: #c9b590;
  --cg-accent: #b5502e;
  --cg-input: #fffaf0;
  --cg-gutter: 56px;
  --cg-max: 1440px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--cg-ink);
  background:
    repeating-linear-gradient(0deg, rgba(59,42,31,.025) 0, rgba(59,42,31,.025) 1px, transparent 1px, transparent 3px),
    var(--cg-paper);
  -webkit-font-smoothing: antialiased;
  /* Decorations (coffee ring etc.) may hang past the edge — never let them
     add a horizontal scroll. clip, not hidden, so the sticky bar still works. */
  overflow-x: clip;
}
a { color: var(--cg-accent); text-decoration: none; }
.cg-display { font-family: 'Archivo Black', 'Manrope', sans-serif; font-weight: 400; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main, .cg-hero, .cg-chrome, .cg-foot { max-width: var(--cg-max); margin-left: auto; margin-right: auto; }

/* ── Chrome ── */
.cg-chrome {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px var(--cg-gutter); border-bottom: 2px solid var(--cg-ink);
  font-size: 12px; font-weight: 700; letter-spacing: .6px;
}
.cg-crumbs { text-transform: uppercase; }
.cg-crumbs a { color: var(--cg-ink); }
.cg-crumbs a:hover { color: var(--cg-accent); }
.cg-crumbs span { margin: 0 8px; }
.cg-crumbs b { color: var(--cg-accent); }
.cg-back { color: var(--cg-ink); white-space: nowrap; }
.cg-back:hover { color: var(--cg-accent); }

/* ── Hero ── */
.cg-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding: 56px var(--cg-gutter) 40px; }
.cg-hero-copy { max-width: 760px; }
.cg-hero-art { position: relative; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cg-kicker {
  display: inline-block; padding: 5px 12px; margin-bottom: 20px;
  background: var(--cg-accent); color: var(--cg-card);
  font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
}
.cg-hero h1 { margin: 0; font-size: 64px; line-height: .98; letter-spacing: -.5px; text-transform: uppercase; }
.cg-stats { display: flex; flex-wrap: wrap; margin-top: 26px; padding: 10px 0; border-top: 2px solid var(--cg-ink); border-bottom: 2px solid var(--cg-ink); }
.cg-stats > div { padding: 0 22px; border-right: 1px solid var(--cg-muted); display: flex; align-items: baseline; }
.cg-stats > div:first-child { padding-left: 0; }
.cg-stats > div:last-child { border-right: 0; }
.cg-stats span { font-size: 20px; }
.cg-stats b { font-size: 11px; font-weight: 700; letter-spacing: .5px; margin-left: 6px; }
.cg-stats > div:last-child b:only-child { margin-left: 0; }
.cg-intro { margin: 22px 0 0; max-width: 600px; font-size: 15px; line-height: 1.65; color: var(--cg-body); }
.cg-stamp {
  flex-shrink: 0; width: 150px; height: 150px; border-radius: 50%;
  border: 3px dashed var(--cg-ink); display: flex; align-items: center; justify-content: center;
  text-align: center; transform: rotate(-9deg);
}
.cg-stamp .cg-display { font-size: 13px; line-height: 1.5; letter-spacing: .5px; text-transform: uppercase; }
.cg-stamp small { font-size: 10px; }

/* ── Sticky section bar ── */
.cg-jump-bar {
  position: sticky; top: 0; z-index: 200;
  background: var(--cg-paper); border-top: 2px solid var(--cg-ink); border-bottom: 2px solid var(--cg-ink);
  margin-bottom: 34px;
}
.cg-jump { display: flex; gap: 8px; overflow-x: auto; max-width: var(--cg-max); margin: 0 auto; padding: 10px var(--cg-gutter); scrollbar-width: none; }
.cg-jump::-webkit-scrollbar { display: none; }
.cg-jump a {
  flex-shrink: 0; padding: 7px 12px; border: 2px solid var(--cg-ink); background: var(--cg-card);
  color: var(--cg-ink); font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  transition: background 120ms, color 120ms;
}
.cg-jump a:hover { background: var(--cg-ink); color: var(--cg-card); }
.cg-jump a.is-on { background: var(--cg-accent); border-color: var(--cg-accent); color: var(--cg-card); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── Back to top ── */
.cg-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--cg-ink); background: var(--cg-accent); color: var(--cg-card); cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 3px 3px 0 var(--cg-ink);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.cg-top[hidden] { display: none; }
.cg-top:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--cg-ink); }
.cg-top:focus-visible { outline: 2px solid var(--cg-ink); outline-offset: 3px; }

/* ── Sections ── */
.cg-section { padding: 8px var(--cg-gutter) 46px; scroll-margin-top: 70px; }
.cg-section-title { margin: 0 0 24px; padding-bottom: 10px; border-bottom: 3px solid var(--cg-ink); font-size: 22px; }
.cg-section-intro { margin: -4px 0 20px; max-width: 760px; font-size: 13.5px; line-height: 1.6; color: var(--cg-soft); }
/* First three picks are big cards (3-up); the rest run 4-up and smaller,
   so 7 picks read 3 + 4. Flex rather than grid so a short last row
   centers instead of hanging on the left. */
.cg-grid { --cg-cols: 3; --cg-cols-more: 4; display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.cg-grid > .cg-card { flex: 0 0 calc((100% - (var(--cg-cols) - 1) * 22px) / var(--cg-cols)); min-width: 0; }
/* Compact 4-up cards only where there are 4 columns; below 1080px every
   card is the same size and style. */
@media (min-width: 1081px) {
  .cg-grid > .cg-card:nth-child(n+4) { flex-basis: calc((100% - (var(--cg-cols-more) - 1) * 22px) / var(--cg-cols-more)); padding: 16px; }
  .cg-grid > .cg-card:nth-child(n+4) .cg-card-photo { margin: -16px -16px 0; aspect-ratio: 4 / 3; }
  .cg-grid > .cg-card:nth-child(n+4) .cg-card-icon { width: 36px; height: 36px; margin-top: -18px; }
  .cg-grid > .cg-card:nth-child(n+4) .cg-card-name { font-size: 13.5px; }
  .cg-grid > .cg-card:nth-child(n+4) .cg-card-loc { font-size: 10px; }
  .cg-grid > .cg-card:nth-child(n+4) .cg-card-copy { font-size: 12px; }
}

.cg-card {
  position: relative; display: flex; flex-direction: column; padding: 20px;
  background: var(--cg-card); border: 2px solid var(--cg-ink); color: var(--cg-ink);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.cg-card:hover, .cg-card:focus-visible { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--cg-ink); outline: none; }
.cg-card-photo {
  position: relative; margin: -20px -20px 0; aspect-ratio: 3 / 2; overflow: hidden;
  border-bottom: 2px solid var(--cg-ink); background: var(--cg-rule); color: var(--cg-muted);
  display: flex; align-items: center; justify-content: center;
}
.cg-card-photo img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: sepia(.12) saturate(.95); transition: transform 300ms ease; }
.cg-card:hover .cg-card-photo img { transform: scale(1.04); }
.cg-card-photo-ph { width: 34%; height: auto; opacity: .55; }
.cg-card-icon {
  position: relative; z-index: 1; width: 42px; height: 42px; margin: -21px 0 12px; border-radius: 50%;
  border: 2px solid var(--cg-accent); background: var(--cg-card); color: var(--cg-accent);
  display: flex; align-items: center; justify-content: center;
}
.cg-card-name { margin: 0 0 6px; font-size: 15px; line-height: 1.3; }
.cg-card-loc { font-size: 10.5px; font-weight: 700; color: var(--cg-meta); letter-spacing: .5px; margin-bottom: 8px; }
.cg-rule { height: 1px; background: var(--cg-rule); margin: 10px 0; }
.cg-card-copy { margin: 0; flex-grow: 1; font-size: 12.5px; line-height: 1.55; color: var(--cg-body); }
.cg-pick {
  position: absolute; z-index: 2; top: 12px; right: 12px; padding: 3px 8px;
  border: 2px solid var(--cg-accent); background: var(--cg-card); color: var(--cg-accent);
  font-size: 9.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; transform: rotate(3deg);
}

/* ── Directory ── */
.cg-directory { position: relative; margin: 0 var(--cg-gutter) 50px; padding: 26px 28px 22px; border: 2px dashed var(--cg-muted); scroll-margin-top: 90px; }
.cg-directory-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; }
.cg-directory-head h2 { margin: 0 0 6px; font-size: 20px; }
.cg-directory-head p { margin: 0; max-width: 620px; font-size: 13px; line-height: 1.65; color: var(--cg-soft); }
.cg-search input {
  width: 260px; height: 42px; padding: 0 14px; border: 2px solid var(--cg-ink); border-bottom: 4px solid var(--cg-accent); border-radius: 0;
  background: var(--cg-input); color: var(--cg-ink); font: inherit; font-size: 13px;
}
/* Native search/email styling (Safari, iOS) ignores custom borders. */
.cg-search input, .cg-cta-form input { -webkit-appearance: none; appearance: none; box-shadow: none; }
.cg-search input::-webkit-search-decoration { -webkit-appearance: none; }
.cg-search input:focus, .cg-cta-form input:focus { outline: none; border-bottom-color: var(--cg-ink); background: #fff; }
.cg-directory-grid { columns: 3 260px; column-gap: 28px; }
.cg-hood { break-inside: avoid; margin-bottom: 20px; }
.cg-hood[hidden] { display: none; }
.cg-hood-name { padding-bottom: 6px; margin-bottom: 6px; border-bottom: 2px solid var(--cg-accent); color: var(--cg-accent); font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.cg-hood-name span { color: var(--cg-muted); margin-left: 4px; }
.cg-hood ul { list-style: none; margin: 0; padding: 0; }
.cg-hood li { padding: 6px 0; border-bottom: 1px dashed var(--cg-rule); }
.cg-hood li[hidden] { display: none; }
.cg-hood li a { display: block; color: var(--cg-ink); font-size: 13.5px; font-weight: 700; }
.cg-hood li a:hover { color: var(--cg-accent); }
.cg-hood li small { display: block; margin-top: 1px; font-size: 11.5px; color: var(--cg-muted); }
.cg-star { font-style: normal; color: var(--cg-accent); font-size: 11px; }
.cg-directory-empty { margin: 0; font-size: 13px; color: var(--cg-soft); }
.cg-directory-foot { margin: 6px 0 0; font-size: 13px; font-weight: 700; }

/* ── Newsletter ── */
.cg-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  margin: 0 var(--cg-gutter) 50px; padding: 30px 34px; border: 3px solid var(--cg-ink); background: var(--cg-card);
}
.cg-cta h2 { margin: 0 0 8px; font-size: 20px; }
.cg-cta p { margin: 0; max-width: 420px; font-size: 13px; color: var(--cg-soft); }
.cg-cta-form { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; justify-content: flex-end; }
.cg-cta-form input {
  width: 220px; height: 44px; padding: 0 14px; border: 2px solid var(--cg-ink); border-bottom: 4px solid var(--cg-accent); border-radius: 0;
  background: var(--cg-input); color: var(--cg-ink); font: inherit; font-size: 13px;
}
.cg-cta-form button, .cg-cta-link {
  height: 44px; padding: 0 22px; border: 0; background: var(--cg-accent); color: var(--cg-card);
  display: inline-flex; align-items: center; font: inherit; font-size: 13px; font-weight: 800; letter-spacing: .5px; cursor: pointer;
}
.cg-cta-form button:disabled { opacity: .6; cursor: default; }
.cg-cta-msg { flex-basis: 100%; text-align: right; font-size: 12px !important; }

/* ── FAQ ── */
.cg-faq { padding: 0 var(--cg-gutter) 20px; scroll-margin-top: 70px; }
.cg-faq h2 { margin: 0 0 20px; font-size: 24px; }
.cg-faq-list { border: 2px solid var(--cg-ink); }
.cg-faq details { border-bottom: 1px dashed var(--cg-muted); }
.cg-faq details:last-child { border-bottom: 0; }
.cg-faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 20px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 700;
}
.cg-faq summary::-webkit-details-marker { display: none; }
.cg-faq summary::after { content: '+'; font-family: 'Archivo Black', sans-serif; font-size: 16px; color: var(--cg-accent); }
.cg-faq details[open] summary::after { content: '\2212'; }
.cg-faq details p { margin: 0; padding: 0 20px 18px; font-size: 15.5px; line-height: 1.65; color: var(--cg-body); }

/* ── More guides (shared partial markup) ── */
.more-guides { max-width: var(--cg-max); margin: 0 auto; padding: 30px var(--cg-gutter) 60px; }
.more-guides-inner { padding-top: 30px; border-top: 3px solid var(--cg-ink); }
.more-guides-weekend-line { margin: 0 0 18px; font-size: 13px; color: var(--cg-soft); }
.more-guides-weekend-line a { font-weight: 700; }
.more-guides-label { margin-bottom: 16px; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: var(--cg-meta); text-transform: uppercase; }
.more-guides-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.more-guide-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--cg-ink); background: var(--cg-card); color: var(--cg-ink); }
.more-guide-card:hover { box-shadow: 3px 3px 0 var(--cg-ink); }
.more-guide-icon { font-size: 20px; }
.more-guide-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.more-guide-kicker { font-size: 10px; font-weight: 800; color: var(--cg-accent); letter-spacing: .5px; text-transform: uppercase; }
.more-guide-title { font-family: 'Archivo Black', sans-serif; font-size: 13px; line-height: 1.3; }
.more-guide-arrow { color: var(--cg-accent); font-weight: 800; }

.cg-foot { padding: 20px var(--cg-gutter); border-top: 2px solid var(--cg-ink); color: var(--cg-muted); font-size: 12px; font-weight: 700; }

/* ── Listing popover (markup from _listing_overlay.php) ── */
.listing-overlay {
  position: fixed; inset: 0; z-index: 1300; display: flex; align-items: center; justify-content: center;
  padding: 1rem; background: rgba(30, 20, 12, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.listing-overlay[hidden] { display: none; }
.listing-overlay-dialog {
  position: relative; width: min(820px, 100%); max-height: calc(100dvh - 2rem);
  background: var(--cg-card); border: 3px solid var(--cg-ink); box-shadow: 8px 8px 0 var(--cg-ink);
  display: flex; flex-direction: column; overflow: hidden;
}
.listing-overlay-loading { display: flex; align-items: center; justify-content: center; min-height: 260px; }
.listing-overlay-loading[hidden] { display: none; }
.listing-overlay-spinner { width: 52px; height: 52px; opacity: .6; }
.listing-overlay-content { display: flex; overflow: hidden; flex: 1; min-height: 0; }
.listing-overlay-content[hidden] { display: none; }
.listing-overlay-hero { position: relative; flex: 0 0 300px; min-height: 320px; background: var(--cg-rule); border-right: 2px solid var(--cg-ink); }
.listing-overlay-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.listing-overlay-close {
  position: absolute; top: .6rem; right: .6rem; z-index: 1; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--cg-ink); background: var(--cg-card); color: var(--cg-ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.listing-overlay-close:hover { background: var(--cg-accent); color: var(--cg-card); }
.listing-overlay-body { flex: 1; display: flex; flex-direction: column; overflow-y: auto; min-height: 0; padding: 1.5rem 1.75rem 1.25rem; color: var(--cg-ink); }
.listing-overlay-title { margin: 0 0 .25rem; font-family: 'Archivo Black', sans-serif; font-weight: 400; font-size: 1.5rem; line-height: 1.15; text-transform: uppercase; }
.listing-overlay-subtitle { font-size: .8rem; color: var(--cg-meta); margin-bottom: .8rem; }
.listing-overlay-meta { margin-bottom: .9rem; padding-bottom: .9rem; border-bottom: 1px dashed var(--cg-muted); }
.listing-overlay-info { display: flex; flex-direction: column; gap: .35rem; margin-top: .55rem; font-size: .8rem; color: var(--cg-soft); }
.listing-overlay-info-row { display: flex; align-items: flex-start; gap: .45rem; }
.listing-overlay-info-row .fa { flex-shrink: 0; width: 14px; margin-top: .15em; text-align: center; color: var(--cg-accent); }
.listing-overlay-info-row a { color: inherit; text-decoration: underline; }
.listing-overlay-hours > div { display: flex; flex-direction: column; gap: .1rem; line-height: 1.5; }
.listing-overlay-actions { display: flex; gap: .5rem; margin-top: .8rem; }
.listing-overlay-actions:empty { display: none; }
.lo-icon-circle {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--cg-ink); color: var(--cg-ink);
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.lo-icon-circle:hover { background: var(--cg-accent); border-color: var(--cg-accent); color: var(--cg-card); }
.listing-overlay-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .8rem; }
.listing-overlay-tags:empty { display: none; }
.lo-tag-pill { padding: 3px 8px; border: 1px solid var(--cg-muted); font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--cg-soft); }
.listing-overlay-desc { flex: 1; font-size: .88rem; line-height: 1.7; color: var(--cg-body); }
.listing-overlay-desc p { margin: 0; }
.listing-overlay-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.1rem; padding-top: .85rem; border-top: 1px dashed var(--cg-muted); }
.listing-overlay-full-link, .listing-overlay-edit-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--cg-ink); }
.listing-overlay-edit-link { color: var(--cg-muted); }
body.listing-overlay-open { overflow: hidden; }
.lo-hours-row-wrap { flex-direction: column; align-items: flex-start; gap: .4rem; margin-top: .8rem; }
.lo-status-line { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.lo-status-badge { padding: .15em .55em; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.lo-status-open { background: rgba(85,120,70,.18); color: #3c5a2e; }
.lo-status-closed { background: rgba(181,80,46,.15); color: var(--cg-accent); }
.lo-status-detail { font-size: .78rem; color: var(--cg-soft); }
.lo-hours-toggle { display: inline-flex; align-items: center; gap: .35rem; padding: 0; border: 0; background: none; font: inherit; font-size: .78rem; color: var(--cg-soft); cursor: pointer; }
.lo-hours-chevron { font-size: .65rem; transition: transform 200ms; }
.lo-hours-toggle[aria-expanded="true"] .lo-hours-chevron { transform: rotate(180deg); }
.listing-overlay-hours-plain { display: flex; flex-direction: column; gap: .1rem; margin-left: .3rem; font-size: .78rem; line-height: 1.55; }

/* ── Decorations (config 'decor'; _decor_{name}.php sprite) ── */
.cg-awning {
  height: 34px;
  background:
    repeating-linear-gradient(90deg, var(--cg-accent) 0 36px, var(--cg-card) 36px 72px);
  -webkit-mask: radial-gradient(18px at 18px 16px, #000 98%, transparent) 0 0 / 36px 100% repeat-x, linear-gradient(#000 0 0) 0 0 / 100% 16px no-repeat;
          mask: radial-gradient(18px at 18px 16px, #000 98%, transparent) 0 0 / 36px 100% repeat-x, linear-gradient(#000 0 0) 0 0 / 100% 16px no-repeat;
  filter: drop-shadow(0 3px 0 rgba(59,42,31,.18));
}
.cg-decor .cg-hero-art { width: 300px; height: 260px; }
.cg-hero-cup { width: 230px; height: 230px; color: var(--cg-ink); opacity: .9; }
.cg-decor .cg-stamp { position: absolute; right: -10px; bottom: -6px; width: 128px; height: 128px; background: var(--cg-paper); }
.cg-decor .cg-stamp .cg-display { font-size: 11px; }
.cgd-steam { animation: cgSteam 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
.cgd-steam-2 { animation-delay: .6s; }
.cgd-steam-3 { animation-delay: 1.2s; }
@keyframes cgSteam {
  0%   { opacity: 0; transform: translateY(8px) scaleY(.85); }
  35%  { opacity: .85; }
  100% { opacity: 0; transform: translateY(-10px) scaleY(1.1); }
}
.cg-hero-bean { position: absolute; width: 26px; height: 26px; color: var(--cg-accent); }
.cg-hero-bean-1 { top: 18px; left: 6px; transform: rotate(-20deg); }
.cg-hero-bean-2 { top: 64px; left: 36px; width: 18px; height: 18px; transform: rotate(40deg); opacity: .7; }
.cg-hero-bean-3 { bottom: 26px; left: 0; width: 22px; height: 22px; transform: rotate(80deg); }

.cg-beans { display: flex; justify-content: center; gap: 18px; padding: 4px var(--cg-gutter) 34px; color: var(--cg-muted); }
.cg-beans svg { width: 18px; height: 18px; }
.cg-beans svg:nth-child(odd) { transform: rotate(35deg); }
.cg-beans svg:nth-child(even) { transform: rotate(-25deg); color: var(--cg-accent); }
.cg-section { position: relative; }
.cg-doodle { position: absolute; top: -6px; right: var(--cg-gutter); height: 46px; width: auto; color: var(--cg-accent); opacity: .8; transform: rotate(8deg); }
.cg-doodle-bean { height: 34px; }
.cg-tape {
  position: absolute; z-index: 2; top: -6px; left: 50%; width: 84px; height: 22px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(243,232,214,.78); border-left: 1px dashed rgba(59,42,31,.25); border-right: 1px dashed rgba(59,42,31,.25);
  box-shadow: 0 1px 2px rgba(59,42,31,.15);
}
.cg-grid .cg-card:nth-child(even) .cg-tape { transform: translateX(-50%) rotate(4deg); }
.cg-ring { position: absolute; top: -48px; right: max(-36px, calc(8px - var(--cg-gutter))); width: 150px; height: 150px; color: var(--cg-meta); opacity: .32; pointer-events: none; transform: rotate(-18deg); }
.cg-decor .cg-cta { border-style: solid; outline: 2px dashed var(--cg-muted); outline-offset: -10px; }
@media (prefers-reduced-motion: reduce) {
  .cgd-steam { animation: none; opacity: .6; }
  .cg-card, .cg-card-photo img { transition: none; }
}

/* ── Responsive ── */
@media (max-width: 1080px) {
  :root { --cg-gutter: 32px; }
  .cg-grid { --cg-cols: 2; }
  .cg-ring { right: 0; }
  .more-guides-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-hero h1 { font-size: 52px; }
}
@media (max-width: 680px) {
  :root { --cg-gutter: 16px; }
  .cg-chrome { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cg-hero { flex-direction: column-reverse; gap: 20px; padding-top: 28px; }
  .cg-stamp { width: 104px; height: 104px; align-self: flex-end; margin-bottom: -60px; }
  .cg-hero-art { align-self: flex-end; }
  .cg-decor .cg-hero-art { width: 170px; height: 150px; margin-bottom: -40px; }
  .cg-hero-cup { width: 130px; height: 130px; }
  .cg-decor .cg-stamp { width: 84px; height: 84px; margin: 0; right: -6px; bottom: -4px; }
  .cg-decor .cg-stamp .cg-display { font-size: 8px; }
  .cg-hero-bean-2 { display: none; }
  .cg-doodle { height: 30px; }
  .cg-ring { width: 90px; height: 90px; top: -30px; right: 0; }
  .cg-beans { gap: 12px; }
  .cg-stamp .cg-display { font-size: 10px; }
  .cg-stamp small { font-size: 8px; }
  .cg-hero h1 { font-size: 38px; }
  .cg-stats > div { padding: 4px 12px; }
  .cg-grid { --cg-cols: 1; }
  .more-guides-grid { grid-template-columns: 1fr; }
  .cg-section-title { font-size: 18px; }
  .cg-directory { padding: 20px 16px; }
  .cg-directory-head { flex-direction: column; align-items: stretch; }
  .cg-search input { width: 100%; }
  .cg-cta { flex-direction: column; align-items: stretch; padding: 22px 18px; }
  .cg-cta-form { justify-content: stretch; }
  .cg-cta-form input { flex: 1; width: auto; min-width: 0; }
  .listing-overlay { padding: 0; align-items: flex-end; }
  .listing-overlay-dialog { width: 100%; max-height: 90dvh; box-shadow: none; }
  .listing-overlay-content { flex-direction: column; }
  .listing-overlay-hero { flex: 0 0 200px; min-height: 200px; border-right: 0; border-bottom: 2px solid var(--cg-ink); }
}
