/* Page layout for the public site, translated from the mid-fi prototype.
   Tokens and components live in organic.css. */

body { background: var(--color-bg); }
a { color: var(--link, var(--color-accent-700)); }
a:hover { color: var(--color-text); }
button { font: inherit; color: inherit; }
.btn, .tag { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.shell { min-height: 100vh; display: flex; flex-direction: column; }
/* Pages use the full browser width, with the same side margins as the
   header and footer; .bleed breaks out of them to run edge to edge. */
:root { --gutter: clamp(20px, 4vw, 56px); }
.gutter { padding-left: var(--gutter); padding-right: var(--gutter); }
.bleed { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); border-radius: 0; }

/* — header — */
.site-header {
  position: sticky; top: 0; z-index: 20; background: var(--color-bg);
  display: flex; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 16px;
}
.wordmark { font: 26px/1 var(--font-heading); letter-spacing: .02em; color: var(--color-text); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
/* Size comes from admin → Site (inline style). */
.wordmark .logo { display: block; max-width: min(320px, 45vw); object-fit: contain; flex: none; }
/* An SVG logo with a custom color: the logo's shape masks a solid fill.
   The invisible image keeps the size and proportions. */
.logo-tint { position: relative; display: inline-flex; flex: none; }
.logo-tint .logo, .logo-tint .story-logo { opacity: 0; }
.story-logo-wrap { display: flex; width: fit-content; max-width: 100%; margin: 16px 0 20px; }
.story-logo-wrap .story-logo { margin: 0; }
.logo-tint::after {
  content: ""; position: absolute; inset: 0; background: var(--logo-color);
  -webkit-mask: var(--logo-url) center / contain no-repeat; mask: var(--logo-url) center / contain no-repeat;
}
.wordmark:hover { color: var(--color-text); }
.spacer { flex: 1; }

main.container {
  flex: 1; width: 100%; margin: 0 auto;
  padding-top: 12px; padding-bottom: 80px;
}

.stack { display: flex; flex-direction: column; }
.gap-6 { gap: 6px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.gap-22 { gap: 22px; } .gap-24 { gap: 24px; } .gap-28 { gap: 28px; } .gap-32 { gap: 32px; } .gap-36 { gap: 36px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.self-start { align-self: flex-start; }
.muted { color: var(--color-neutral-800); }
.small { font-size: 13px; }
.pretty { text-wrap: pretty; }
.maxw-420 { max-width: 420px; } .maxw-440 { max-width: 440px; } .maxw-460 { max-width: 460px; } .maxw-760 { max-width: 760px; }

.grid { display: grid; }
.cols-240 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.cols-300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-items: start; }
.cols-220 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }

.page-title { font-size: clamp(36px, 5vw, 60px); margin: 0; }
.page-title.lg { font-size: clamp(40px, 6vw, 72px); line-height: 1.1; }
.day-name { font: 22px var(--font-heading); color: var(--color-neutral-700); }

.card.pad-20 { padding: 20px; } .card.pad-24 { padding: 24px; gap: 10px; } .card.pad-28 { padding: 28px; }
.card .big { font: 36px/1.05 var(--font-heading); }
.card .sub { color: var(--color-neutral-800); }

/* — image slots: real photos or flat placeholders — */
.photo {
  border-radius: var(--card-radius, var(--radius-lg)); background: var(--color-surface); overflow: hidden;
  display: flex; align-items: flex-end; padding: 18px; color: var(--color-neutral-700); font-size: 13px;
  position: relative;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo.wide { height: clamp(240px, 38vw, 440px); padding: 20px; }
.photo.r43 { aspect-ratio: 4 / 3; }
.photo.sq { aspect-ratio: 1; align-items: center; justify-content: center; padding: 0; }
.photo.circle { aspect-ratio: 1; border-radius: 50%; align-items: center; justify-content: center; padding: 0; }

/* — home — */
.story h2 { font-size: 34px; }
/* Size comes from admin → Home (inline style); max-width keeps it inside
   the column on small screens, and contain avoids stretching. */
.story-logo { display: block; max-width: 100%; object-fit: contain; object-position: left center; margin: 16px 0 20px; }
/* Story alone in its row (Membership card hidden): heading left, text right,
   so it uses the full width without overly long lines. */
@media (min-width: 760px) {
  .story.solo { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 48px; align-items: start; }
  .story.solo > * { grid-column: 2; }
  .story.solo > .story-head { grid-column: 1; grid-row: 1 / span 99; }
  .story.solo h2 { margin: 0; }
  .story.solo p { font-size: 17px; }
  .story.solo .btn { justify-self: start; }
}
.club-card { padding: 24px; flex-direction: row; gap: 20px; align-items: center; }
.club-card .dot { width: 96px; height: 96px; flex: none; border-radius: 50%; background: var(--color-neutral-300); overflow: hidden; }
.club-card .dot img { width: 100%; height: 100%; object-fit: cover; }

/* — taproom — */
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.week { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); gap: 10px; }
.week .card { padding: 16px; gap: 4px; }
.week .today { box-shadow: inset 0 0 0 2px var(--color-accent-2); }
.week .closed { opacity: .6; }
.week .d { font: 18px var(--font-heading); }
.week .h { font-size: 15px; font-weight: 700; }
.week .n { font-size: 13px; }

.faq details { border-bottom: 1px solid var(--color-divider); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; cursor: pointer; font-weight: 600; font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 20px var(--font-heading); color: var(--color-accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; color: var(--color-neutral-800); }

/* — taplist — */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips .tag { cursor: pointer; font-size: 13px; padding: 6px 14px; text-decoration: none; }
.taps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 32px 24px; }
.beer { display: flex; flex-direction: column; gap: 6px; }
.beer .art { aspect-ratio: 1; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--color-neutral-700); overflow: hidden; }
.beer .art img { width: 100%; height: 100%; object-fit: cover; }
/* Label art shows whole: a circle would cut off a square label's corners,
   so beers with an image get a square (the site's card corners) and the
   image is stretched to fill it exactly. */
.beer .art.has-image { border-radius: var(--card-radius, 16px); }
.beer .art.has-image img { display: block; object-fit: fill; }
.beer .name { font: 20px/1.15 var(--font-heading); margin-top: 6px; text-transform: uppercase; letter-spacing: .02em; }
.beer-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.beer-tags .tag { font-size: 11px; font-weight: 600; padding: 3px 10px; }
.beer .meta { font-size: 13px; font-weight: 600; color: var(--color-neutral-800); text-transform: uppercase; letter-spacing: .04em; }
.beer .desc { font-size: 13px; color: var(--color-neutral-800); text-wrap: pretty; }

/* — store — */
.banner {
  border-radius: var(--btn-radius, 999px); background: var(--card-bg, var(--color-surface)); box-shadow: var(--card-shadow, none);
  padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 14px; font-weight: 600;
}
.banner .btn { padding: 0; font-size: 14px; }
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px; align-items: center; }
.hero .photo.circle { max-width: 440px; width: 100%; color: var(--color-neutral-800); }
.hero h1 { font-size: clamp(40px, 5vw, 64px); margin: 0; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 24px; }
.product-tile { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; }
.product-tile:hover { color: inherit; }
.product-tile .name { font: 18px/1.15 var(--font-heading); margin-top: 4px; }
.product-tile:hover .photo { box-shadow: var(--shadow-md); }
.soldout { opacity: .55; }

.product { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px; margin-top: 16px; align-items: start; }
.product h1 { font-size: clamp(36px, 4.5vw, 56px); margin: 0; }
.price { font: 24px var(--font-heading); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--color-divider); border-radius: var(--btn-radius, 999px); overflow: hidden; }
.qty button { background: none; border: 0; cursor: pointer; padding: 7px 14px; font-size: 15px; }
.qty button:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.qty input { width: 40px; border: 0; background: none; text-align: center; font: inherit; font-size: 14px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pickup-note { font-size: 13px; color: var(--color-neutral-800); }

/* — cart — */
.cart-row { display: grid; grid-template-columns: 72px 1fr auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--color-divider); }
.cart-row .photo { width: 72px; height: 72px; border-radius: var(--radius-md); }
.cart-total { display: flex; justify-content: space-between; font: 22px var(--font-heading); padding: 16px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alert { padding: 12px 18px; border-radius: var(--radius-md); background: var(--color-accent-100); color: var(--color-accent-900); font-size: 14px; }
.alert.ok { background: var(--color-accent-2-100); color: var(--color-accent-2-900); }
.field-error { color: var(--color-accent-700); font-size: 12px; margin-top: 4px; display: block; }
@media (max-width: 560px) {
  .cart-row { grid-template-columns: 56px 1fr; }
  .cart-row .photo { width: 56px; height: 56px; }
  .cart-row > :nth-child(3), .cart-row > :nth-child(4) { grid-column: 2; }
  .two { grid-template-columns: 1fr; }
}

/* — about — */
.timeline { border-left: 4px solid var(--color-accent-2-300); padding-left: 28px; display: flex; flex-direction: column; gap: 26px; margin-left: 8px; }
.timeline .item { display: flex; flex-direction: column; gap: 4px; position: relative; }
.timeline .item::before { content: ""; position: absolute; left: -39px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--color-accent-2); }
.timeline .year { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--link, var(--color-accent-700)); }
.timeline .t { font: 22px/1.2 var(--font-heading); }
.timeline .d { color: var(--color-neutral-800); }
/* About photos: circle, rounded square, circle (as labeled in the admin). */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 28px); }
.trio .photo { aspect-ratio: 1; padding: 0; border-radius: var(--card-radius, var(--radius-lg)); }
.trio .photo:nth-child(odd) { border-radius: 50%; }

/* — events — */
.featured { padding: 28px; flex-direction: row; flex-wrap: wrap; gap: 32px; align-items: center; }
.featured .circle-art { width: 200px; height: 200px; border-radius: 50%; background: var(--color-surface); flex: none; overflow: hidden; }
.featured .circle-art img { width: 100%; height: 100%; object-fit: cover; }
.list-row { display: flex; gap: 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--color-divider); flex-wrap: wrap; }
.list-row .date { font: 20px var(--font-heading); width: 80px; color: var(--link, var(--color-accent-700)); }
.list-row .body { flex: 1; display: flex; flex-direction: column; min-width: 160px; }

/* — club / where / contact — */
.waitlist { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 20px 24px; border-radius: var(--card-radius, var(--radius-lg)); border: 1px dashed var(--color-neutral-500); }
.waitlist span { font-weight: 600; flex: 1; min-width: 200px; }
.waitlist .input { max-width: 260px; }
.stockist { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--color-divider); flex-wrap: wrap; }
.wholesale { padding: 24px; flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }

/* — footer — */
.site-footer {
  background: var(--color-surface); padding-top: 40px; padding-bottom: 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 28px; font-size: 14px;
}
.site-footer .col { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.site-footer .wm { font: 22px var(--font-heading); }
.site-footer .link { padding: 2px 0; font-family: var(--font-body); }
.site-footer form { display: flex; gap: 8px; width: 100%; }

/* — full-screen menu — */
.menu {
  position: fixed; inset: 0; z-index: 50; background: var(--color-text); color: var(--color-bg);
  overflow: auto; padding-top: 16px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 32px;
}
.menu[hidden] { display: none; }
.menu-top { display: flex; align-items: center; justify-content: space-between; }
.btn-dark { border: 1px solid color-mix(in srgb, var(--color-bg) 40%, transparent); color: var(--color-bg); background: transparent; }
.btn-dark:hover { background: color-mix(in srgb, var(--color-bg) 10%, transparent); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px; align-items: start; }
.menu-main { display: flex; flex-direction: column; gap: 4px; }
.menu-main a { font: clamp(44px, 7vw, 80px)/1.08 var(--font-heading); color: inherit; text-decoration: none; }
.menu-side { display: flex; flex-direction: column; gap: 18px; font-size: 15px; }
.menu-side .st { font: 24px var(--font-heading); }
.menu-more { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.menu-more a { font-size: 17px; font-weight: 600; color: inherit; text-decoration: none; }
.menu a:hover { color: color-mix(in srgb, var(--color-bg) 70%, transparent); }
.menu .wordmark { color: inherit; }

/* — age gate — */
.gate {
  position: fixed; inset: 0; z-index: 60; background: var(--color-text); color: var(--color-bg);
  display: flex; align-items: center; padding: clamp(24px, 6vw, 96px);
}
.age-ok .gate, .gate[hidden] { display: none; }
.gate-inner { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.gate .kicker { font: 600 12px ui-monospace, Menlo, monospace; letter-spacing: .14em; color: color-mix(in srgb, var(--color-bg) 75%, transparent); }
.gate h1, .gate .gate-title { font: clamp(40px, 6vw, 68px)/1.05 var(--font-heading); margin: 0; }
.gate .bar { display: block; height: 12px; border-radius: 999px; background: color-mix(in srgb, var(--color-bg) 25%, transparent); max-width: 100%; }
.gate p { margin: 0; font-size: 17px; }
.gate label { display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: 15px; }
.gate input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--color-accent); }
.gate .btn { font-size: 16px; padding: 12px 24px; }
.gate .denied { color: var(--color-bg); font-weight: 600; }

/* — preview banner — */
.preview-bar {
  position: sticky; top: 0; z-index: 70; background: #2d4a1f; color: #eef6e6;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-align: center; padding: 6px;
}
.preview-bar + .shell .site-header { top: 28px; }

@media (max-width: 440px) {
  .site-header { gap: 8px; }
  .wordmark { font-size: 22px; gap: 6px; }
  .wordmark .logo { max-height: 32px; max-width: 30vw; }
}
@media (max-width: 420px) {
  /* Not enough room for logo + wordmark + status + cart + menu: keep the mark. */
  .site-header .wordmark.has-logo .wm-text { display: none; }
  .site-header .btn { padding: 8px 10px; letter-spacing: normal; }
  .site-header .tag { padding: 3px 8px; font-size: 10px; }
  .site-header .spacer { flex: 1 1 0; min-width: 0; }
}

@media (max-width: 360px) {
  /* Smallest phones: no room for the status tag; it's in the menu and the Hours card. */
  .site-header > .tag { display: none; }
}

/* — themed components —
   Variables come from admin → Colors (internal/theme); the fallbacks match
   organic.css so the page still renders without them. */
.card { background: var(--card-bg, var(--color-surface)); box-shadow: var(--card-shadow, none); border-radius: var(--card-radius, calc(var(--radius-lg) * 1.15)); }
.card-kicker { color: var(--link, var(--color-accent)); }
.btn { border-radius: var(--btn-radius, 999px); text-transform: var(--btn-case, none); letter-spacing: var(--btn-track, normal); }
.btn-primary { background: var(--btn-bg, var(--color-accent)); color: var(--btn-ink, var(--color-bg)); border-color: var(--btn-bg, var(--color-accent)); }
.btn-primary:hover, .btn-primary:active { background: color-mix(in srgb, var(--btn-bg, var(--color-accent)) 84%, var(--btn-ink, #fff)); color: var(--btn-ink, var(--color-bg)); }
.btn-secondary { background: var(--btn2-bg, transparent); color: var(--btn2-ink, var(--color-text)); border-color: var(--btn2-border, var(--color-divider)); }
.btn-secondary:hover, .btn-secondary:active { color: var(--btn2-ink, var(--color-text)); box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--btn2-ink, var(--color-text)) 9%, transparent); }
.btn-ghost, .btn-ghost:hover { color: var(--link, var(--color-accent)); }
.tag { border-radius: var(--tag-radius, 999px); }
.input, .seg { border-radius: var(--btn-radius, 999px); }
textarea.input { border-radius: min(var(--card-radius, 16px), 16px); }
.tag-accent { background: var(--color-accent-2-100); color: var(--color-accent-2-800); }
.tag-outline { border-color: var(--link, var(--color-accent)); color: var(--link, var(--color-accent)); }
.menu .btn-primary, .gate .btn-primary { background: var(--color-bg); color: var(--color-text); border-color: var(--color-bg); }
.alert { background: var(--color-accent-2-100); color: var(--color-accent-2-900); }

/* — full-width home media: photo, rotating photos or video — */
.hero-media { position: relative; height: clamp(320px, 62vh, 720px); background: var(--color-surface); overflow: hidden; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-placeholder { position: absolute; left: var(--gutter); bottom: 20px; font-size: 13px; color: var(--color-neutral-700); }
.slideshow .slide { opacity: 0; transition: opacity 1.2s ease; }
.slideshow .slide.active { opacity: 1; }
.hero-toggle {
  position: absolute; right: var(--gutter); bottom: 18px; width: 40px; height: 40px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center;
  background: color-mix(in srgb, #000 45%, transparent); color: #fff; backdrop-filter: blur(4px);
}
.hero-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.hero-toggle .i-play, .hero-toggle.paused .i-pause { display: none; }
.hero-toggle.paused .i-play { display: block; }
.hero-toggle:hover { background: color-mix(in srgb, #000 65%, transparent); }
.hero-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .slideshow .slide { transition: none; } }
/* The home hero is flush under the header when it comes first. */
.page-home > .hero-media:first-child { margin-top: -12px; }

/* Home Hours card: its own colors (admin → Home; white by default). */
.hours-card { background: var(--hc-bg, #fff); color: var(--hc-ink, var(--color-text)); }
.hours-card .card-kicker, .hours-card .sub { color: var(--hc-ink, var(--color-text)); }
.hours-card .card-kicker { opacity: .75; }

/* — taproom map (Mapbox; see static/js/map.js) — */
.map-block { position: relative; }
.map-canvas { position: relative; height: clamp(380px, 60vh, 620px); background: #e8e8e8; }
.map-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #666; font-size: 14px; }
.map-pin { background: none; border: 0; padding: 0; cursor: pointer; width: 34px; height: 45px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); }
.map-pin svg { width: 100%; height: 100%; }
.map-pin path { fill: var(--btn-bg, var(--color-accent)); }
.map-pin circle { fill: var(--btn-ink, #fff); }
/* Dark translucent window chrome, as on BarleyBoard's map. */
.map-window, .map-block .mapboxgl-popup-content {
  background: rgba(38, 38, 38, .92); color: #f0f0f0; border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px; box-shadow: 0 1px 6px rgba(0,0,0,.45); backdrop-filter: blur(2px);
}
.map-block .mapboxgl-popup-content { padding: 0; }
.map-block .mapboxgl-popup-close-button { color: #cfcfcf; font-size: 18px; padding: 2px 7px 0 0; }
.map-block .mapboxgl-popup-tip { border-top-color: rgba(38,38,38,.92) !important; border-bottom-color: rgba(38,38,38,.92) !important; }
.mp-card { padding: 13px 15px 14px; min-width: 200px; font: 13px/1.4 var(--font-body); }
.mp-name { font: 17px/1.2 var(--font-heading); color: #fff; margin-bottom: 9px; }
.mp-row { display: flex; gap: 8px; color: #ccc; margin: 5px 0; }
.mp-row svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 2px; fill: none; stroke: #9a9a9a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mp-row a, .mp-ext, .dir-msg a { color: #9fcaff; }
.mp-dir-btn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 14px; border: 0; cursor: pointer;
  background: var(--btn-bg, #2b6cb0); color: var(--btn-ink, #fff); border-radius: var(--btn-radius, 999px);
  font: 13px var(--font-heading); text-transform: var(--btn-case, none); letter-spacing: var(--btn-track, normal);
}
.mp-dir-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.mp-ext { display: block; margin-top: 8px; font-size: 12px; }
.map-dir { width: 290px; max-width: calc(100vw - 20px); max-height: calc(100% - 40px); overflow-y: auto; font: 13px/1.4 var(--font-body); }
.map-modes { display: flex; gap: 2px; padding: 6px; }
.map-modes button { flex: 1; border: 0; background: transparent; color: #ddd; cursor: pointer; padding: 5px 8px; border-radius: 6px; font: 600 12px var(--font-body); text-transform: uppercase; letter-spacing: .03em; }
.map-modes button:hover { background: rgba(255,255,255,.08); color: #fff; }
.map-modes button[aria-pressed="true"] { background: var(--btn-bg, #2b6cb0); color: var(--btn-ink, #fff); }
.dir-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 13px; border-top: 1px solid rgba(255,255,255,.12); }
.dir-summary { font: 16px var(--font-heading); color: #fff; }
.dir-clear { background: none; border: 0; color: #9fcaff; cursor: pointer; font-weight: 600; }
.dir-steps { list-style: none; margin: 0; padding: 2px 0 6px; }
.dir-steps li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 13px; color: #ddd; border-top: 1px solid rgba(255,255,255,.07); }
.dir-steps .d { color: #9a9a9a; white-space: nowrap; }
.dir-msg { margin: 0; padding: 8px 13px 10px; color: #ddd; border-top: 1px solid rgba(255,255,255,.12); }
.rt-badge { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--font-body); color: #fff; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); }
.rt-start { background: #2e7d32; }
.rt-finish { background: #c62828; }
@media (max-width: 640px) {
  .map-dir { width: auto; }
  .map-block .mapboxgl-ctrl-top-right { left: 50px; }
}

/* Taproom: photo across the top (flush under the header); map in the
   details row beside menus & FAQ. */
.taproom-photo { height: clamp(280px, 52vh, 620px); }
.stack > .taproom-photo:first-child { margin-top: -36px; }
/* Week tiles leading the Taproom page sit a little below the header. */
.stack > .week:first-child { margin-top: 4px; }
.map-inline .map-canvas { height: clamp(320px, 38vw, 520px); border-radius: var(--card-radius, var(--radius-lg)); overflow: hidden; }
.stockist { align-items: flex-start; }
.stockist-info { gap: 2px; }
.stockist-links a { text-decoration: none; }
.stockist-links a:hover { text-decoration: underline; }
.where-intro { margin: 8px 0 0; font-size: 17px; color: var(--color-neutral-800); }

/* — Where to buy: list beside a sticky map (stacked on phones) — */
.map-pin-small { width: 24px; height: 32px; }
.map-pin-small path { fill: var(--color-text); }
.map-pin-small circle { fill: var(--color-bg); }
.where-map .map-canvas { height: clamp(320px, 55vh, 560px); border-radius: var(--card-radius, var(--radius-lg)); overflow: hidden; }
.show-on-map { align-self: flex-start; padding: 2px 0; font-size: 13px; font-family: var(--font-body); font-weight: 600; }
@media (min-width: 900px) {
  .where-layout { display: grid; grid-template-columns: minmax(320px, 2fr) minmax(0, 3fr); gap: 40px; align-items: start; }
  .where-layout .where-list { grid-row: 1; grid-column: 1; }
  .where-layout .where-map { grid-row: 1; grid-column: 2; position: sticky; top: 90px; }
  .where-map .map-canvas { height: calc(100vh - 130px); max-height: 760px; }
}
@media (max-width: 899px) {
  .where-map { margin-bottom: 20px; }
}

.where-search .input { flex: 1 1 220px; max-width: 360px; min-width: 0; }
.where-search .input::-webkit-search-cancel-button { cursor: pointer; }
.stockist[hidden] { display: none; }

/* Store tabs */
.tabbar { display: flex; gap: 4px 24px; flex-wrap: wrap; border-bottom: 1px solid var(--color-divider); margin-bottom: 24px; }
.tabbar a { padding: 10px 2px 12px; margin-bottom: -1px; border-bottom: 3px solid transparent; text-decoration: none; color: var(--color-neutral-700); font: 20px/1.1 var(--font-heading); }
.tabbar a:hover { color: var(--color-fg, inherit); }
.tabbar a[aria-selected="true"] { color: var(--color-fg, inherit); border-bottom-color: currentColor; }
.tabbar a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }
.products[hidden] { display: none; }

/* Product options (sizes, packs) */
.options { border: 0; padding: 0; margin: 0; }
.options legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.option { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 96px; padding: 10px 16px; border: 1.5px solid var(--color-divider); border-radius: var(--card-radius, 14px); cursor: pointer; background: var(--color-surface, transparent); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option-name { font-weight: 600; }
.option-price { font-size: 14px; color: var(--color-neutral-700); }
.option:hover { border-color: var(--color-neutral-700); }
.option:has(input:checked) { border-color: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.option:has(input:focus-visible) { outline: 2px solid currentColor; outline-offset: 2px; }
.option.soldout { opacity: .5; cursor: not-allowed; text-decoration: line-through; }

/* Where to buy header: title, intro and search on the left; wholesale on the right */
.where-head { display: grid; gap: 20px 40px; }
.wholesale-cta { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.wholesale-cta .btn { margin-bottom: 6px; }
@media (min-width: 900px) {
  .where-head { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .where-head .where-title, .where-head .where-search { grid-column: 1; }
  .wholesale-cta { grid-column: 2; grid-row: 1 / span 2; align-items: flex-end; text-align: right; }
}

/* Header wordmark with a smaller line (e.g. ARTISAN ALES) spread to the
   exact width of the wordmark: the grid is as wide as the big text, and
   the small letters are spaced edge to edge across it. */
.wm-stack { display: inline-grid; line-height: 1; }
.wm-sub { display: flex; justify-content: space-between; font-size: .38em; letter-spacing: 0; margin-top: .3em; text-transform: uppercase; }
.wm-sub .wm-gap { width: .5em; }

/* Home story: the logo sits centered under the heading (the heading block
   is only as wide as its text, so the logo centers on the words). */
.story-head { display: flex; flex-direction: column; align-items: center; width: fit-content; max-width: 100%; }
.story-head h2 { align-self: stretch; }
.story-head .story-logo, .story-head .story-logo-wrap { margin-left: auto; margin-right: auto; object-position: center; }

/* Footer: the same logo + COVERT / ARTISAN ALES lockup as the header. */
.footer-brand { margin-bottom: 8px; }
.footer-brand .wordmark { font-size: 22px; }
