/* Where to Eat (/where-to-eat). Built on site.css tokens only. The pages
   wear Food and Drink's identity from the color pass: the copper page band
   and the coffee-mug stamp (MM_SECTION_THEME 'eat' in server/site/stamps.php),
   so accents here use --sec (the section color) and fall back to ink.
   "Open Now" is a rubber stamp in postmark red. Every hook is an eat-* class. */

.eat-page { max-width: var(--wrap); }
.eat-band .band-inner { max-width: var(--wrap); }
.eat-page.detail { max-width: 980px; }

/* Sections */
.eat-section { margin: 36px 0 0; }
.eat-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin: 0 0 14px; padding-top: 10px; border-top: 3px solid var(--sec, var(--ink)); }
.eat-section-title { font: 700 clamp(22px, 2.6vw, 28px)/1.2 var(--slab); margin: 0; }
.eat-section > .eat-section-title { margin: 0 0 14px; padding-top: 10px; border-top: 3px solid var(--sec, var(--ink)); }
.eat-section-title a { text-decoration: none; }
.eat-section-title a:hover { text-decoration: underline; }
.eat-see-all { white-space: nowrap; }

/* Card grid */
.eat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.eat-card { display: flex; flex-direction: column; min-width: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.eat-card-media { display: block; aspect-ratio: 4 / 3; background: var(--cream-deep); overflow: hidden; }
.eat-card-photo { width: 100%; height: 100%; object-fit: cover; }
.eat-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.eat-card-media--stamp { display: grid; place-items: center; background: var(--sec, var(--ink)); --stamp-hole: var(--sec, var(--ink)); }
.eat-card-media--stamp .stamp { transform: none; }
.eat-card-flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; min-height: 0; }
.eat-card-flags:empty { display: none; }
.eat-card-title { margin: 0; font: 700 21px/1.25 var(--slab); overflow-wrap: anywhere; }
.eat-card-title a { text-decoration: none; }
.eat-card-title a:hover { text-decoration: underline; }
.eat-card-meta, .eat-place-eyebrow { margin: 0; color: var(--muted); font: 600 13px/1.4 var(--label); letter-spacing: .08em; text-transform: uppercase; }
.eat-card-rating { margin: 0; font-size: 16px; color: var(--ink-soft); }
.eat-card-notes { margin: 2px 0 0; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.eat-card--closed .eat-card-photo { filter: grayscale(.6); }

/* Badges */
.eat-badge, .eat-open {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 3px;
  font: 600 11px/1 var(--label); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.eat-badge--featured { background: var(--sec, var(--ink)); color: var(--on-sec, var(--cream)); }
.eat-badge--sponsored { border: 1.5px solid var(--ink); color: var(--ink); }
.eat-badge--closed { background: var(--red); color: var(--paper); }
.eat-badge--paused { border: 1.5px solid var(--red); color: var(--red); }
.eat-open { border: 1.5px solid var(--red); color: var(--red); }
.eat-open-until { margin-left: 4px; letter-spacing: .06em; text-transform: none; font-weight: 500; }
.eat-price { letter-spacing: .04em; }
.eat-rating-num { font-weight: 600; color: var(--ink); }
.eat-rating-count { color: var(--muted); }

/* Awards */
.eat-awards { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.eat-award { font: 600 12px/1.35 var(--label); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); padding-left: 14px; position: relative; }
.eat-award::before { content: ""; position: absolute; left: 0; top: .35em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--red); }
.eat-award--winner::before { background: var(--red); }
.eat-award a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.eat-award a:hover { border-bottom-color: currentColor; }

/* Town rows */
.eat-rows { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--sec, var(--ink)); }
.eat-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 4px 18px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.eat-row-name { font: 700 19px/1.3 var(--slab); text-decoration: none; overflow-wrap: anywhere; }
.eat-row-name:hover { text-decoration: underline; }
.eat-row-meta { color: var(--muted); font: 600 13px/1.4 var(--label); letter-spacing: .08em; text-transform: uppercase; }
.eat-row-flags { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: flex-end; font-size: 15px; }
.eat-row--closed .eat-row-name { color: var(--ink-soft); }

/* Towns block */
.eat-towns { margin: 40px 0 0; }
.eat-towns .eat-section-title { margin: 0 0 12px; padding-top: 10px; border-top: 3px solid var(--sec, var(--ink)); }
.eat-towns ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.eat-towns a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--rule); border-radius: 6px;
  background: var(--paper); text-decoration: none; font: 600 14px/1 var(--label); letter-spacing: .1em; text-transform: uppercase;
}
.eat-towns a:hover { border-color: var(--ink); }
.eat-towns a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.eat-count { color: var(--muted); font-weight: 500; }
.eat-towns a[aria-current="page"] .eat-count { color: var(--cream-deep); }

/* Restaurant page */
.eat-place-head { margin: 0 0 18px; }
.eat-place-head .detail-title { margin: 6px 0 10px; }
.eat-place-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
.eat-stamp {
  display: inline-flex; flex-direction: column; align-items: center; margin: 0 0 18px; padding: 8px 16px 7px;
  border: 3px double currentColor; border-radius: 6px; transform: rotate(-3deg); mix-blend-mode: multiply;
  font: 600 18px/1 var(--label); letter-spacing: .2em; text-transform: uppercase;
}
.eat-stamp--open { color: var(--red); }
.eat-stamp--shut { color: var(--muted); transform: rotate(2deg); }
.eat-stamp-sub { margin-top: 5px; font-size: 12px; letter-spacing: .12em; }
.eat-facts dd .eat-awards { margin: 0; }
.eat-notes { margin: 22px 0; padding: 18px 20px; background: var(--paper); border-left: 4px solid var(--sec, var(--ink)); border-radius: 0 6px 6px 0; }
.eat-notes-title, .eat-hours-title { font: 600 14px/1.3 var(--label); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 10px; }
.eat-notes .detail-body p:last-child { margin-bottom: 0; }
.eat-hours { margin: 22px 0; }
.eat-hours-table { border-collapse: collapse; width: 100%; max-width: 30em; font-size: 17px; }
.eat-hours-table th, .eat-hours-table td { text-align: left; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.eat-hours-table th { font: 600 13px/1.6 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); width: 9.5em; }
.eat-hours-table .eat-today th, .eat-hours-table .eat-today td { color: var(--ink); font-weight: 600; }
.eat-hours-table .eat-today th::after { content: " (today)"; letter-spacing: .04em; text-transform: none; font-weight: 500; color: var(--red); }
.eat-hours-note, .eat-update-note { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.eat-place-figure figcaption { margin-top: 6px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.eat-place-figure figcaption a { color: inherit; }
.eat-closed-date { color: var(--ink-soft); }
.eat-google-credit { font-size: 14px; }

/* Award winners page */
.eat-award-programs { color: var(--muted); font: 600 14px/1.3 var(--label); letter-spacing: .12em; text-transform: uppercase; margin-left: 8px; }
.eat-award-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; }
.eat-award-cat-title { margin: 0 0 6px; font: 700 19px/1.25 var(--slab); }
.eat-award-list { list-style: none; margin: 0; padding: 0; }
.eat-award-item { padding: 6px 0; border-bottom: 1px solid var(--rule); line-height: 1.4; }
.eat-award-result { display: inline-block; min-width: 5.5em; font: 600 11px/1 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eat-award-item.eat-award--winner .eat-award-result { color: var(--red); }
.eat-award-place { font-weight: 600; text-decoration: none; }
.eat-award-place:hover { text-decoration: underline; }
.eat-award-source { font-size: 14px; color: var(--muted); }

@media (max-width: 960px) {
  .eat-grid, .eat-award-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .eat-place-grid { grid-template-columns: 1fr; }
  .eat-place-figure { order: -1; }
}
@media (max-width: 640px) {
  .eat-grid, .eat-award-cats { grid-template-columns: 1fr; gap: 16px; }
  .eat-row { grid-template-columns: 1fr; }
  .eat-row-flags { justify-content: flex-start; }
  .eat-card-title { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .eat-stamp { transform: none; } }
