/* ══════════════════════════════════════════════════════════════════════
   Design 1c — "Clean & modern": white, big type, information-first,
   one green accent.

   Values come from the handoff's 1c cards (design/project/…Design Options.dc.html):
   the 1040px desktop card is the layout at ≥1040px, the 375px phone card is
   the layout at 375px, and clamp() interpolates type and spacing between
   them (slope = difference ÷ 665px, i.e. vw = difference ÷ 6.65).

   Contrast (tools/theme_check.mjs, WCAG 2 AA). Where a handoff colour fails
   for small text it keeps its large/decorative job and small text uses the
   nearest passing shade:
   - green #2f8f5b is 3.9:1 on the ground and 3.6:1 on the tint card: it
     colours the big headline's accent words, the status dot, keg bars and
     other decoration. Small green text is --accent #297c4f (4.9:1 on the
     ground, 4.6:1 on the tint; white on it 5.1:1).
   - muted #6b736d passes on the ground (4.7:1) and white (4.9:1) but not on
     the tint card (4.4:1), where --muted-tint #656d67 (4.8:1) is used.
   - the placeholder #8a918c (3.2:1) is drawn in --muted instead.
   - the field border #d5d8d3 (1.4:1) would leave the email field without a
     visible edge; it is --field-line #8c928d (3:1 against white).
   ══════════════════════════════════════════════════════════════════════ */

:root {
  /* tokens every design provides (the inline editor and admin bar use them) */
  --bg: #fbfbf9;
  --surface: #ffffff;
  --raised: #ffffff;
  --text: #161a17;
  --muted: #6b736d;
  --accent: #297c4f;
  --accent-ink: #ffffff;
  --divider: #e4e6e2;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;

  /* 1c's own palette */
  --green: #2f8f5b;          /* large display text and decoration only */
  --lede: #4a524c;
  --nav: #3d453f;
  --line: #e4e6e2;
  --line-strong: #c4c9c3;
  --field-line: #8c928d;
  --tint: #eef4ef;
  --tint-rule: rgba(0, 0, 0, .08);
  --muted-tint: #656d67;
  --well: #f0f2ee;           /* the phone nav's track */
  --hatch-a: #eceeea;
  --hatch-b: #e3e6e1;
  --error: #b3261e;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;
  --radius-card: 12px;
  --radius-field: 8px;

  /* 20px gutters on a 375px phone, 40px from 750px up; content tops out at 1120px */
  --gutter: clamp(20px, 5.34vw, 40px);
  --shell: 1120px;
}

/* ── ground ─────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  /* short pages (thanks, 404) keep the footer at the bottom of the screen */
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 800; }
p { margin: 0; }
b, strong { font-weight: 700; }
a { color: inherit; text-underline-offset: 3px; }
button, input { font: inherit; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 16px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip { border-radius: var(--radius-field); }
/* the sign-up honeypot: present for bots, never for people */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap {
  width: 100%;
  max-width: calc(var(--shell) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Accent words. The owners mark them with <mark> in the editor. In big
   type (≥ 18.66px bold counts as large) they take the handoff's green;
   in small text the readable one. */
mark { background: none; color: var(--accent); }
.hero-title mark, .page-title mark, .band-h mark, .sec-h mark { color: var(--green); }

/* ── buttons, links, chips, cards ───────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius-field); border: 1px solid transparent;
  font: 700 16px/1.2 var(--font-body); letter-spacing: -.01em;
  text-align: center; text-decoration: none; cursor: pointer;
}
.btn-ink { background: var(--text); color: #fff; border-color: var(--text); }
.btn-ink:hover { background: #000; border-color: #000; }
.btn-line { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--text); }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: 15px; }

.text-link { color: var(--accent); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 8px 10px; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(18px, 14.62px + .9vw, 24px);
}
.card--tint { background: var(--tint); border-color: var(--tint); }
.card-h { font-size: clamp(17px, 16.44px + .15vw, 18px); line-height: 1.25; letter-spacing: -.02em; }
.card-kicker { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Jump links above the tap list and the menu. */
.chips ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none; color: var(--text);
}
.chips a:hover { border-color: var(--text); }
.chip-count { font-weight: 400; color: var(--muted); }
.chips { margin-bottom: 28px; }

/* The style filter (?style=) sits above the section chips; the chosen one is filled in. */
.chips.tap-styles { margin-bottom: 12px; }
.tap-styles a[aria-current] { background: var(--text); border-color: var(--text); color: var(--bg); }
.tap-styles a[aria-current] .chip-count { color: inherit; }

.empty { color: var(--muted); padding: 12px 0; }
.card--tint .empty { color: var(--muted-tint); }
.sample-note {
  display: inline-block; margin: 8px 0 12px; padding: 4px 10px;
  font-size: 13px; font-weight: 700; color: var(--accent);
  border: 1px dashed var(--accent); border-radius: 999px;
}

/* Owner-written rich text: paragraphs, lists, h2/h3, quotes and links from the editor. */
.prose > * + * { margin-top: .75em; }
.prose h2 { font-size: clamp(20px, 17.74px + .6vw, 24px); line-height: 1.2; letter-spacing: -.02em; margin-top: 1.2em; }
.prose h3 { font-size: 17px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; margin-top: 1.2em; }
.prose h2 + *, .prose h3 + * { margin-top: .3em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-block: 0; }
.prose li + li { margin-top: .25em; }
.prose li::marker { color: var(--green); }
.prose blockquote { margin-inline: 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--green); color: var(--lede); }
.prose a, [data-block] a { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }
.prose > :first-child { margin-top: 0; }

/* ── photo placeholders (handoff hatch) ─────────────────────────────── */

.photo-slot {
  position: relative; overflow: hidden;
  border-radius: var(--radius-card);
  background: repeating-linear-gradient(45deg, var(--hatch-a) 0 10px, var(--hatch-b) 10px 20px);
}
/* base.css draws the admin-only slot label and makes an uploaded <img> cover
   the slot; a flat tone sits behind it while the photo loads. */
.photo-slot.has-photo { background: var(--hatch-b); }

/* ── header ─────────────────────────────────────────────────────────── */

.head-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "logo status" "nav nav";
  align-items: center;
  column-gap: 12px;
  padding-block: 6px 4px;
}
.logo {
  grid-area: logo; justify-self: start;
  font-size: clamp(16px, 15.44px + .15vw, 17px); font-weight: 800; line-height: 44px;
  letter-spacing: -.02em; white-space: nowrap; text-decoration: none; color: var(--text);
}

.head-status { grid-area: status; justify-self: end; }
.status {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-size: 13px; font-weight: 600; line-height: 1.25; white-space: nowrap;
  text-decoration: none; color: var(--text);
}
.status:hover { text-decoration: underline; }
.status-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.status--closed .status-dot { background: #a3aaa4; }
.status--neutral .status-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.status-long { display: none; }
/* A holiday or special hours today or tomorrow: one short line under the
   status ("Closed tomorrow"), inside the same link and its 44px. */
.status-text { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.status-note { font-size: 12px; font-weight: 700; line-height: 1.2; color: var(--accent); }

/* Phone nav: the handoff shows none. Five links in a quiet segmented track
   under the logo — always visible, no menu button, no script — with the
   current page lifted onto a white segment. The track scrolls sideways
   inside itself if a wide fallback font ever needs it. */
.site-nav { grid-area: nav; margin-top: 2px; }
.site-nav ul {
  list-style: none; margin: 0; padding: 4px;
  display: flex; gap: 2px;
  background: var(--well); border-radius: var(--radius-card);
  overflow-x: auto; scrollbar-width: none;
}
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav li { flex: 1 1 auto; display: flex; }
.site-nav a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 0 10px;
  border-radius: 9px; white-space: nowrap;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; color: var(--nav);
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] {
  background: var(--surface); color: var(--text);
  box-shadow: 0 1px 2px rgba(22, 26, 23, .08), 0 0 0 1px var(--line);
}

@media (max-width: 359px) {
  .site-nav a { padding: 0 6px; font-size: 14px; }
  .status { font-size: 12px; }
}

@media (min-width: 860px) {
  .head-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo nav status";
    column-gap: 24px;
    padding-block: 11px;
  }
  .status { gap: 8px; font-size: 14px; }
  .status-long { display: inline; }
  .status-short { display: none; }
  .site-nav { margin: 0; }
  .site-nav ul { justify-content: center; gap: clamp(20px, 2.9vw, 30px); padding: 0; background: none; border-radius: 0; overflow: visible; }
  .site-nav li { flex: none; }
  .site-nav a { padding: 0; min-width: 0; border-radius: 0; }
  .site-nav a[aria-current="page"] {
    background: none; box-shadow: none; color: var(--text);
    text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 8px;
  }
}

/* ── home: hero ─────────────────────────────────────────────────────── */

.hero {
  display: grid;
  padding-block: clamp(24px, 1.44px + 6.02vw, 64px) clamp(16px, 2.47px + 3.61vw, 40px);
}
.hero-title {
  /* The handoff sets 46px on a 375px phone and 76px at 1040px, and means
     three lines. In Manrope 800 the longest default line, "Daily happy
     hour.", is 7.75em wide, so the size follows the column instead: 42px at
     375px (46px would wrap it), 35px at 320px, 76px once there's room. */
  font-size: clamp(34px, 12.6vw - 5px, 76px); line-height: 1;
  letter-spacing: -.04em; text-wrap: pretty;
}
.hero-lede {
  margin-top: 16px; max-width: 46ch;
  font-size: clamp(16px, 15.44px + .15vw, 17px); line-height: 1.55; color: var(--lede);
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 2fr 1fr; gap: 48px; align-items: end; }
  .hero-title { font-size: clamp(34px, 8.6vw - 11px, 76px); }
  .hero-lede { margin-top: 0; }
}

/* ── home: stat cards ───────────────────────────────────────────────── */

.stats { padding-bottom: clamp(20px, 4.21px + 4.21vw, 48px); }
.stat-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 6.62px + .9vw, 16px);
}
.stat-grid > li { display: flex; min-width: 0; }
.stat {
  flex: 1; display: block; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(16px, 12.62px + .9vw, 22px);
  color: var(--text); text-decoration: none;
}
a.stat:hover { border-color: var(--line-strong); background: var(--surface); }
.stat-num {
  display: block;
  font-size: clamp(30px, 24.36px + 1.5vw, 40px); font-weight: 800; line-height: 1;
  letter-spacing: -.03em; overflow-wrap: anywhere;
}
.stat-unit { font-size: clamp(16px, 12.62px + .9vw, 22px); color: var(--muted); }
.stat-label {
  display: block; margin-top: clamp(4px, 2.87px + .3vw, 6px);
  font-size: clamp(12px, 10.87px + .3vw, 14px); line-height: 1.4; color: var(--muted);
}
.stat-long { display: none; }
/* The Google rating is Content → Hours & details (the "rating" text fill);
   with none set, its card goes and the others share the row. */
.stat-grid > .stat-rating:has([data-fill-text="rating"]:empty) { display: none; }
@media (min-width: 720px) {
  .stat-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .stat-long { display: inline; }
  .stat-short { display: none; }
}

/* ── home: taps + this week + kitchen ───────────────────────────────── */

.home-main { padding-top: 8px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 8px; }
.sec-h { font-size: clamp(20px, 17.74px + .6vw, 24px); line-height: 1.2; letter-spacing: -.02em; }
.sec-meta { font-size: clamp(13px, 12.44px + .15vw, 14px); color: var(--muted); }
/* padding grows the tap area to 44px; the negative margin keeps the line's height */
.sec-meta a { display: inline-block; padding-block: 12px; margin-block: -12px; color: var(--muted); text-decoration: none; }
.sec-meta a:hover { color: var(--text); text-decoration: underline; }
.updated:has(> [data-fill-text]:empty) { display: none; }
.home-taps .updated { display: none; }

.home-side { display: grid; gap: 20px; margin-top: 20px; align-content: start; }

.week .card-h { margin-bottom: 6px; }
.wk-list { list-style: none; margin: 0; padding: 0; }
.wk {
  display: flex; gap: 12px; min-height: 44px; padding: 9px 0;
  border-top: 1px solid var(--tint-rule);
  font-size: 14px; line-height: 1.4; color: inherit; text-decoration: none;
}
.wk:hover .wk-title { text-decoration: underline; }
.wk-date { flex: none; width: 3.75em; white-space: nowrap; font-weight: 700; color: var(--accent); }
.wk-body { min-width: 0; }
.wk-title { display: block; font-weight: 700; }
.wk-time { display: block; font-size: 12px; color: var(--muted-tint); }
/* webcal: does nothing where no calendar app claims it (most Android phones,
   many desktops), so the plain .ics file sits beside it. */
.cal-link { display: flex; flex-wrap: wrap; column-gap: 14px; margin-top: 4px; font-size: 13px; font-weight: 700; }
.cal-link a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: none; }
.cal-link a:hover { text-decoration: underline; }

.kitchen .card-h { margin-bottom: 4px; }
.food { list-style: none; margin: 0; padding: 0; }
.food-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 44px; padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px; line-height: 1.4;
}
.food-row--link { color: inherit; text-decoration: none; }
.food-row--link:hover span:first-child { text-decoration: underline; }
.food-price { font-weight: 700; white-space: nowrap; }

/* Sample or practice prices say so, to everyone (Menu.mode); the register's own prices say where they're from. */
.menu-note {
  display: inline-block; margin-top: 12px; padding: 4px 12px;
  font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--accent);
  border: 1px dashed currentColor; border-radius: 999px;
}
[data-fill="menu"] > .menu-note { margin: 0 0 24px; }
.menu-source { margin-bottom: 24px; font-size: 15px; color: var(--muted); }

/* The patio slot is a wide desktop photo in the handoff; the phone card has
   none, so an empty hatch isn't shown there — an uploaded photo is. */
.home-photo { padding-top: 20px; }
.wide-photo { aspect-ratio: 16 / 9; border-radius: 14px; }
.home-photo:not(:has(.has-photo)) { display: none; }

@media (min-width: 720px) {
  .home-photo, .home-photo:not(:has(.has-photo)) { display: block; padding-top: 0; }
  .wide-photo { aspect-ratio: 21 / 7; }
  .home-taps .updated { display: inline; }
  .home-taps .updated:has(> [data-fill-text]:empty) { display: none; }
}

@media (min-width: 960px) {
  .home-main {
    display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start;
    padding-top: 0; padding-bottom: 56px;
  }
  .home-side { gap: 16px; margin-top: 0; }
  .week .card-h { margin-bottom: 10px; }
  .wk { gap: 12px; padding: 10px 0; font-size: 15px; }
  .wk-time { font-size: 13px; }
  .cal-link { margin-top: 10px; margin-bottom: -12px; }
  .cal-link a { min-height: 0; padding-block: 12px; margin-block: -12px; }
  .kitchen .card-h { margin-bottom: 6px; }
  .food-row { padding: 9px 0; font-size: 15px; }
}
@media (min-width: 720px) and (max-width: 959px) {
  .home-main { padding-bottom: 40px; }
  .home-side { grid-template-columns: 1fr 1fr; align-items: start; margin-top: 32px; }
}

/* ── tap rows ───────────────────────────────────────────────────────── */

.tap-list { list-style: none; margin: 0; padding: 0; }
/* the empty state sits on the same hairline the first row would */
.taps-fill > .empty { border-top: 1px solid var(--line); }

/* phone row: number · name / brewery · style · ABV · price (handoff phone card) */
.tap {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  column-gap: 10px;
  align-items: first baseline;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 15px; line-height: 1.4;
}
.tap-n { grid-column: 1; grid-row: 1; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tap-main { grid-column: 2; grid-row: 1 / span 2; min-width: 0; overflow-wrap: anywhere; }
.tap-name { display: block; font-weight: 700; }
.tap-line { display: block; font-size: 13px; color: var(--muted); }
.tap-price { grid-column: 3; grid-row: 1; font-weight: 700; text-align: right; white-space: nowrap; }
.tap-by, .tap-style, .tap-abv, .tap-from { display: none; }

.tap-new {
  display: inline-block; margin: 2px 0; padding: 1px 8px;
  font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); background: var(--tint); border-radius: 999px;
}

/* keg level: a slim bar in tenths, quiet on purpose */
.tap-keg { grid-column: 3; grid-row: 2; justify-self: end; align-self: center; width: 36px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.tap-keg > span { display: block; height: 100%; width: 0; background: var(--green); }
.tap-keg--unknown { visibility: hidden; }
.keg-1 > span { width: 10%; } .keg-2 > span { width: 20%; } .keg-3 > span { width: 30%; }
.keg-4 > span { width: 40%; } .keg-5 > span { width: 50%; } .keg-6 > span { width: 60%; }
.keg-7 > span { width: 70%; } .keg-8 > span { width: 80%; } .keg-9 > span { width: 90%; }
.keg-10 > span { width: 100%; }
.keg-0 > span, .keg-1 > span, .keg-2 > span { background: var(--muted); }

@media (min-width: 720px) {
  /* desktop row: 28px · name brewery · style · 70px ABV · 60px price. The
     handoff's style column is 130px, which real DigitalPour styles ("Hard
     Seltzer w/ Mango, Calamansi, Chamomile…") turn into a five-line cell;
     it starts at 130px and takes a share of any extra width instead. */
  .tap {
    grid-template-columns: 28px minmax(0, 1.4fr) minmax(130px, 1fr) 70px 60px;
    column-gap: 16px; align-items: baseline;
    padding: 16px 0; font-size: 16px;
  }
  .tap > * { grid-row: 1; }
  .tap-n { font-size: 14px; }
  .tap-main { grid-row: 1; }
  .tap-name { display: inline; }
  .tap-by { display: inline; font-weight: 400; color: var(--muted); }
  .tap-line { display: none; }
  .tap-style { display: block; grid-column: 3; color: var(--muted); overflow-wrap: anywhere; }
  /* the homepage shows four rows at a glance: a long style stops at two
     lines there (screen readers still get all of it; /taps/ shows it whole) */
  .tap:not(.tap--page) .tap-style { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .tap-abv { display: block; grid-column: 4; color: var(--muted); }
  .tap-price { grid-column: 5; }
  .tap-new { margin: 0 0 0 8px; vertical-align: 2px; }

  /* the full list spans the whole shell, so style takes a share of the width
     instead of a fixed column, keeping it near the name it describes */
  .tap--page { grid-template-columns: 28px minmax(0, 3fr) minmax(0, 2fr) 64px 44px 60px; }
  .tap--page .tap-from { display: block; font-size: 14px; color: var(--muted); }
  .tap--page .tap-keg { grid-column: 5; grid-row: 1; align-self: center; }
  .tap--page .tap-price { grid-column: 6; }
}

/* /taps/ groups */
.group-h { font-size: clamp(20px, 19.44px + .15vw, 21px); line-height: 1.2; letter-spacing: -.02em; margin-bottom: 8px; }
.group-count { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-left: 4px; }

/* ── sign-up band and forms ─────────────────────────────────────────── */

.band-row { display: grid; gap: 12px; padding-block: 28px 8px; }
.band-h { font-size: clamp(24px, 20.62px + .9vw, 30px); line-height: 1.15; letter-spacing: -.03em; text-wrap: balance; }
.band-note { margin-top: 6px; font-size: 14px; color: var(--muted); }

.signup { display: flex; flex-direction: column; gap: 8px; }
.signup input[type="email"] {
  flex: none; min-width: 0; min-height: 50px;
  padding: 13px 16px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--field-line); border-radius: var(--radius-field);
  font-size: 16px;   /* under 16px and iOS zooms the page on focus */
}
.signup input[type="email"]::placeholder { color: var(--muted); opacity: 1; }
.signup input[type="email"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--text); border-radius: var(--radius-field); }
.signup button {
  min-height: 50px; padding: 13px 22px;
  background: var(--text); color: #fff;
  border: 0; border-radius: var(--radius-field);
  font-weight: 700; font-size: 16px; line-height: 1.2; letter-spacing: -.01em; cursor: pointer;
}
.signup button:hover { background: #000; }
.signup button:focus-visible { border-radius: var(--radius-field); }
.signup button:disabled, .signup button[aria-busy="true"] { opacity: .7; cursor: progress; }

/* subscribe.js writes the outcome here with data-state="busy|done|error";
   nothing shows until it does. */
[data-subscribe-status] { flex-basis: 100%; font-size: 15px; font-weight: 600; color: var(--text); }
[data-subscribe-status]:empty { display: none; }
[data-subscribe-status][data-state="busy"] { color: var(--muted); font-weight: 400; }
[data-subscribe-status][data-state="done"] { color: var(--accent); }
[data-subscribe-status][data-state="done"]::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: 1px;
  border-radius: 50%; background: var(--green);
}
[data-subscribe-status][data-state="error"] { color: var(--error); }

@media (min-width: 720px) {
  .band-row { grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-block: 56px; }
  .signup { flex-direction: row; flex-wrap: wrap; }
  .signup input[type="email"] { flex: 1 1 160px; }
}

/* ── footer ─────────────────────────────────────────────────────────── */

.site-foot { color: var(--muted); font-size: 12px; line-height: 1.6; }
.foot-row { display: grid; padding-block: 20px max(20px, env(safe-area-inset-bottom)); }
/* The landmark is a live text fill: an owner can clear it in the admin, and
   an empty one must not leave a stray separator behind. */
.foot-landmark { display: block; }
.foot-landmark:empty { display: none; }
.foot-links { display: flex; flex-wrap: wrap; column-gap: 20px; }
.foot-links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }
/* phone and email, a line of their own once either is filled in */
.foot-contact:not(:has(a:not([hidden]))) { display: none; }
/* a dot between the links that are showing, however many settings are empty */
.foot-links a:not([hidden]) ~ a:not([hidden])::before { content: "·"; position: absolute; left: -12px; color: var(--muted); }

/* the handoff's desktop footer sits under a hairline; the phone card has none */
@media (min-width: 720px) {
  .site-foot { border-top: 1px solid var(--line); }
}
@media (min-width: 960px) {
  .site-foot { font-size: 13px; }
  .foot-landmark { display: inline; }
  .foot-landmark::before { content: " · "; }
  .foot-row { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 0 24px; padding-block: 22px 30px; }
  .foot-contact { grid-column: 1 / -1; }
  .foot-links { column-gap: 16px; }
  .foot-links a { min-height: 0; }
  .foot-links a:not([hidden]) ~ a:not([hidden])::before { left: -10px; }
}

/* ── inner pages ────────────────────────────────────────────────────── */

.page-head {
  display: grid;
  padding-block: clamp(28px, 11.08px + 4.51vw, 58px) clamp(24px, 17.23px + 1.8vw, 36px);
}
.page-title {
  font-size: clamp(38px, 23.34px + 3.91vw, 64px); line-height: 1.02;
  letter-spacing: -.04em; text-wrap: balance;
}
/* Inner-page headings are one short line, so unlike the hero the intro
   goes under the heading rather than beside it: set beside a one-line
   heading, a four-line intro would float above it. */
.page-side { margin-top: clamp(14px, 12.87px + .3vw, 16px); max-width: 60ch; }
.page-intro { font-size: clamp(16px, 15.44px + .15vw, 18px); line-height: 1.55; color: var(--lede); }
.page-meta { margin-top: 12px; font-size: 14px; color: var(--muted); }
.page-side .actions { margin-top: 20px; }
.page-body { padding-bottom: clamp(40px, 29.85px + 2.71vw, 58px); }

/* menu */
.menu-layout { display: grid; gap: 32px; align-items: start; }
.hh-card .card-h { margin-bottom: 12px; }
.hh-when { display: grid; gap: 2px; }
.hh-window { font-size: clamp(30px, 26.62px + .9vw, 36px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.hh-days { font-size: 14px; color: var(--muted-tint); }
.hh-now { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--accent); }
.hh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hh-items { list-style: none; margin: 16px 0 0; padding: 0; }
.hh-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--tint-rule);
}
.hh-name { font-weight: 700; }
.hh-price { font-weight: 700; }
.hh-desc { grid-column: 1 / -1; font-size: 13px; color: var(--muted-tint); }
.hh-intro { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--tint-rule); font-size: 15px; color: var(--lede); }
.hh-card .empty { padding-bottom: 0; }

.menu-sec + .menu-sec { margin-top: 40px; }
.menu-items { list-style: none; margin: 0; padding: 0; }
.menu-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.menu-item-name { font-weight: 700; font-size: clamp(16px, 15.44px + .15vw, 17px); line-height: 1.35; }
.menu-item-price { font-weight: 700; font-size: clamp(16px, 15.44px + .15vw, 17px); white-space: nowrap; }
.menu-item-desc, .menu-item-vars { grid-column: 1; color: var(--muted); font-size: 14px; line-height: 1.45; }
.empty-card { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 6px 20px 8px; }
.empty-card .text-link { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 960px) {
  .menu-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
  .hh-card { grid-column: 2; grid-row: 1; position: sticky; top: 24px; }
  .menu-main { grid-column: 1; grid-row: 1; }
}

/* events */
.event-list { display: grid; gap: 32px; align-items: start; }
.regulars .card-h { margin-bottom: 6px; }
.regulars-list { list-style: none; margin: 0; padding: 0; }
.regulars-list li { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; border-top: 1px solid var(--tint-rule); }
/* 44px to tap, but the negative margin lets the "when" line sit close under it */
.regular-name { flex-basis: 100%; padding-block: 12px; margin-bottom: -14px; font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--text); text-decoration: none; }
.regular-name:hover { text-decoration: underline; }
.regular-when { font-size: 13px; color: var(--muted-tint); }
.regular-ics { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; }
.regular-ics:hover { text-decoration: underline; }

.month + .month { margin-top: 40px; }
.ev-list { list-style: none; margin: 0; padding: 0; }
.ev {
  position: relative;
  display: grid; grid-template-columns: clamp(44px, 40.62px + .9vw, 50px) minmax(0, 1fr); column-gap: clamp(12px, 9.74px + .6vw, 16px);
  padding: 16px 0; border-top: 1px solid var(--line);
}
.ev-date { display: grid; align-content: start; padding-top: 2px; }
.ev-dow { font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--accent); }
.ev-day { font-size: clamp(26px, 24.87px + .3vw, 28px); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.ev-body { min-width: 0; }
/* No size is stored with an event picture, so the box keeps its shape while it loads. */
.ev-img { display: block; width: 100%; max-width: 480px; aspect-ratio: 16 / 9; margin: 2px 0 12px; border-radius: var(--radius); overflow: hidden; background: var(--hatch-b); }
.ev-img img { width: 100%; height: 100%; object-fit: cover; }
.ev-flag { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.ev-title { font-size: clamp(17px, 16.44px + .15vw, 18px); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.ev-meta { font-size: 15px; color: var(--muted); }
.ev-note { font-size: 15px; color: var(--lede); }
.ev-desc { margin-top: 8px; font-size: 16px; max-width: 60ch; }
.ev-desc > * + * { margin-top: .6em; }
.ev-desc a { color: var(--accent); font-weight: 600; }
.ev-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 8px; margin-bottom: -6px; }
.ev-ics { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; }
.ev-ics:hover { text-decoration: underline; }
.anchor { position: absolute; top: 0; left: 0; }   /* a scroll target that takes no room */
.empty--card { border: 1px solid var(--line); border-radius: var(--radius-card); padding: 18px 20px; }

@media (min-width: 960px) {
  .event-list { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; }
  .regulars { grid-column: 2; grid-row: 1; position: sticky; top: 24px; }
  .upcoming { grid-column: 1; grid-row: 1; }
}

/* visit */
.visit-grid { display: grid; gap: 16px; }
.visit-find .card-kicker, .visit-hours .card-kicker { margin-bottom: 10px; }
.visit-addr { font-size: clamp(20px, 17.74px + .6vw, 24px); font-weight: 800; line-height: 1.25; letter-spacing: -.02em; }
.visit-landmark { margin-top: 4px; font-size: 15px; color: var(--muted); }
.visit-landmark:has(> [data-fill-text]:empty) { display: none; }
.visit-find .actions { margin-top: 20px; }
/* Phone, email and Facebook: each only once the owners have filled it in. */
.visit-contact { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; column-gap: 20px; }
.visit-contact li { max-width: 100%; }
.visit-contact a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; color: var(--accent); font-weight: 700; text-decoration: none; }
.visit-contact a:hover { text-decoration: underline; }
.visit-contact li:has(> a[hidden]), .visit-contact:not(:has(a:not([hidden]))) { display: none; }
.visit-photo { aspect-ratio: 16 / 10; }
.hours { width: 100%; border-collapse: collapse; font-size: 16px; }
.hours th, .hours td { padding: 10px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; vertical-align: baseline; }
.hours th { padding-right: 16px; }
.hours td { text-align: right; font-weight: 700; white-space: nowrap; }
.hours .is-today th { font-weight: 700; }
.today-tag {
  margin-left: 6px; padding: 1px 8px; border-radius: 999px; vertical-align: 1px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); background: var(--tint);
}
.hours-note { margin-top: 10px; color: var(--muted); font-size: 15px; }
/* holidays and special hours in the next three weeks */
.hours-special { margin-top: 22px; }
.hours-special-h { margin-bottom: 6px; }
.hours-label { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }
.visit-hh { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--accent); }
.visit-hh:empty { display: none; }

.about-grid { display: grid; gap: 40px; padding-block: 16px clamp(40px, 29.85px + 2.71vw, 58px); }
.about .sec-h, .faq .sec-h { margin-bottom: 14px; }
.about-body, .faq-body { font-size: clamp(16px, 15.44px + .15vw, 17px); line-height: 1.6; max-width: 62ch; }
.faq-body h3 { padding-top: 14px; border-top: 1px solid var(--line); }
.faq-body h3:first-child { margin-top: 0; }
.faq-body p { color: var(--lede); }

@media (min-width: 720px) {
  .visit-grid { grid-template-columns: 1fr 1fr; }
  .visit-photo { grid-column: 1 / -1; aspect-ratio: 21 / 8; }
}
@media (min-width: 1040px) {
  .visit-grid { grid-template-columns: 1fr 1fr 1.1fr; align-items: stretch; }
  .visit-photo { grid-column: auto; aspect-ratio: auto; min-height: 260px; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 56px; padding-top: 32px; }
}

/* subscribe, unsubscribe, thanks, 404 */
.signup-page { display: grid; gap: 28px; padding-block: clamp(28px, 11.08px + 4.51vw, 58px) clamp(48px, 30px + 4.8vw, 80px); }
.signup-page .page-intro { margin-top: 16px; max-width: 52ch; }
.signup-card { padding: clamp(18px, 14.62px + .9vw, 24px); background: var(--surface); }
.signup-side .notice { margin: 0 0 16px; }
@media (min-width: 960px) {
  .signup-page { grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: end; }
}

.notice {
  margin-top: 20px; padding: 14px 16px;
  border-left: 3px solid var(--green); border-radius: var(--radius-field);
  background: var(--tint); color: var(--text);
  font-size: 16px; max-width: 60ch;
}
.message { padding-block: clamp(40px, 16.5px + 6.3vw, 96px) clamp(48px, 24.5px + 6.3vw, 104px); }
.message .page-title { max-width: 16ch; }
.message-lead { margin-top: 16px; font-size: clamp(17px, 16.44px + .15vw, 18px); line-height: 1.55; color: var(--lede); max-width: 52ch; }
.message .actions { margin-top: 28px; }
.message .actions .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.unsub { margin-top: 4px; }
.unsub-form { margin-top: 20px; }
/* Once the edge reveals "you're off the list" (or "that link didn't work"),
   the button has done its job. ~, not +: the other, still hidden notice sits
   between the one showing and the button. */
.notice:not([hidden]) ~ .unsub { display: none; }
/* /subscribe/thanks/?offline=1: no email went, so the line about one on its way goes too */
.message > .notice:not([hidden]) ~ .message-lead { display: none; }

@media (max-width: 479px) {
  .message .actions .btn, .cal-actions .btn, .visit-find .btn { flex: 1 1 100%; }
}

@media print {
  .site-nav, .band, .skip { display: none; }
  body { background: #fff; }
}

/* ── what Nick's system adds to a row (functions/_lib/themes/tap-bits.js) ──
   A brewery logo, the glass size when it isn't the usual pour, the beer's
   description behind a tap, and what's tapping soon. A list from a source
   without them has none of these elements, so nothing here moves it. */
.tap--logo .tap-main { position: relative; padding-left: 52px; min-height: 40px; }
.tap-logo {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px;
  border-radius: 10px; overflow: hidden;
  background: #fff;   /* half the logos are dark ink on nothing */
  box-shadow: 0 0 0 1px var(--divider);
}
.tap-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tap-logo--none { visibility: hidden; }
.tap-pour { display: block; font-size: 12px; font-weight: 400; color: var(--muted); white-space: nowrap; }
/* The summary is a 44px target; the negative margins take back the air that
   would otherwise make a row with a description half again as tall. */
.tap-about { margin: -4px 0 -10px; font-size: 14px; color: var(--muted); }
.tap-about[open] { margin-bottom: 0; }
.tap-about summary {
  display: inline-block; min-height: 44px; padding-block: 12px; box-sizing: border-box;
  cursor: pointer; color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
  list-style: none;
}
.tap-about summary::-webkit-details-marker { display: none; }
.tap-about summary::after { content: " +"; }
.tap-about[open] summary::after { content: " \2212"; }
.tap-about p { margin: 0 0 8px; max-width: 60ch; line-height: 1.5; color: var(--lede); overflow-wrap: anywhere; }
.soon-list { list-style: none; margin: 0; padding: 0; }
.soon {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.soon-name { grid-column: 1; font-weight: 700; }
.soon-meta { grid-column: 1; grid-row: 2; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.soon-tap { grid-column: 2; grid-row: 1; color: var(--muted); font-size: 14px; white-space: nowrap; }
.pour-note { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
