/* ===================================================================
   Whistle Hop Brewing Company — Design Tokens & Base Styles
   =================================================================== */

:root {
  /* --- Brand palette (pulled from logo: pine green / hop gold / navy) --- */
  --color-pine-900: #142214;
  --color-pine-800: #1d331d;
  --color-pine-700: #274527;
  --color-pine-600: #345c34;
  --color-gold-600: #b9821f;
  --color-gold-500: #d9a62e;
  --color-gold-400: #e7bc4f;
  --color-gold-300: #f2d381;
  --color-navy-900: #0f1116;
  --color-navy-800: #171a22;
  --color-cream-100: #fbf6ea;
  --color-cream-200: #f4ecd8;
  --color-cream-300: #ead9b7;
  --color-ink-900: #201a10;
  --color-ink-700: #4a3f2c;
  --color-beer-amber: #e69a2e;
  --color-beer-amber-dark: #b96e17;
  --color-foam: #fff6e2;
  --color-success: #3f7d43;
  --color-error: #a4372a;

  /* semantic tokens */
  --bg-page: var(--color-cream-100);
  --bg-surface: #ffffff;
  --bg-inverse: var(--color-pine-900);
  --text-primary: var(--color-ink-900);
  --text-secondary: var(--color-ink-700);
  --text-on-dark: var(--color-cream-100);
  --text-on-dark-muted: #c9c2ac;
  --accent: var(--color-gold-500);
  --accent-strong: var(--color-gold-600);
  --border-subtle: rgba(32, 26, 16, 0.12);
  --border-on-dark: rgba(251, 246, 234, 0.16);

  /* typography */
  --font-display: "Bebas Neue", "Oswald", sans-serif;
  --font-retro: "Lobster", "Pacifico", cursive;
  --font-body: "Mulish", "Nunito Sans", -apple-system, sans-serif;

  /* spacing scale (8pt rhythm) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --space-9: 128px;

  /* radius / shadow / motion */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 6px rgba(20, 34, 20, 0.12);
  --shadow-md: 0 8px 24px rgba(20, 34, 20, 0.16);
  --shadow-lg: 0 20px 48px rgba(15, 17, 22, 0.28);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --container-max: 1200px;
}

/* ---------------------------------------------------------------------
   Reset
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 var(--space-3);
  color: var(--text-primary);
}
/* Large titles get the retro script; smaller headings stay clean & condensed. */
h1, h2 {
  font-family: var(--font-retro);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.12;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
h4 { font-size: 1.15rem; letter-spacing: 0.08em; }

p { margin: 0 0 var(--space-3); max-width: 62ch; }
.on-dark p { color: var(--text-on-dark-muted); }

.eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.on-dark .eyebrow { color: var(--color-gold-400); }
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

/* ---------------------------------------------------------------------
   Layout helpers
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (max-width: 640px) {
  .container { padding-inline: var(--space-3); }
}

.section { padding-block: var(--space-8); }
@media (max-width: 768px) {
  .section { padding-block: var(--space-6); }
}
.section--tight { padding-block: var(--space-6); }
.section--dark { background: var(--bg-inverse); color: var(--text-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--text-on-dark); }
.section--navy { background: var(--color-navy-900); color: var(--text-on-dark); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: var(--text-on-dark); }
.section--cream { background: var(--color-cream-200); }
.section--surface { background: var(--bg-surface); }

.section-head { max-width: 700px; margin-bottom: var(--space-6); }
.section-head--center { margin-inline: auto; text-align: center; }

.grid {
  display: grid;
  gap: var(--space-5);
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out),
              background var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
  min-height: 48px;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent);
  color: var(--color-navy-900);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-gold-400); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.on-light .btn-outline:hover { background: rgba(20,34,20,0.06); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn:disabled:active { transform: none; }
.btn[hidden] { display: none; }

/* ---------------------------------------------------------------------
   Header / Nav
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 22, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-on-dark);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-2);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-on-dark);
}
.brand img { height: 56px; width: auto; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  line-height: 1.1;
}
.brand__name span { display: block; font-size: 0.65rem; letter-spacing: 0.3em; color: var(--color-gold-400); }

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.nav__links {
  display: flex;
  gap: var(--space-4);
}
.nav__links a {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: var(--text-on-dark-muted);
  padding-block: var(--space-2);
  position: relative;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--color-gold-400); }
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--color-gold-400);
  border-radius: var(--radius-pill);
}
.nav__social {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}
.nav__social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-on-dark);
  color: var(--text-on-dark-muted);
  transition: border-color var(--duration-base), color var(--duration-base), transform var(--duration-fast);
}
.nav__social a:hover { color: var(--color-gold-400); border-color: var(--color-gold-400); transform: translateY(-2px); }
.nav__social svg { width: 16px; height: 16px; fill: currentColor; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-on-dark);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; fill: currentColor; }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    height: calc(100dvh - 72px);
    background: var(--color-navy-900);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-5) var(--space-4);
    gap: var(--space-5);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-base) var(--ease-out);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links { flex-direction: column; gap: var(--space-1); }
  .nav__links a { font-size: 1.4rem; padding-block: var(--space-2); }
  .nav__social { padding-top: var(--space-3); border-top: 1px solid var(--border-on-dark); }
}

/* ---------------------------------------------------------------------
   Full-page beer field (homepage only) — the amber gradient + carbonation
   bubbles run behind the entire page, not just the hero. Content sections
   sit directly on it (transparent) or float on top as dark glass panels.
   --------------------------------------------------------------------- */
.beer-field {
  position: relative;
  background: linear-gradient(
    180deg,
    #fef2c8 0%,
    #fce08d 6%,
    #f9cd54 14%,
    #f4bd45 24%,
    #eeae3d 36%,
    #e7a338 50%,
    #dd9832 66%,
    #d28d2c 83%,
    #c78428 100%
  );
}
.beer-field__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.beer-field__bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.beer-field > .retro-reel,
.beer-field > .hero,
.beer-field > .marquee,
.beer-field > .section {
  position: relative;
  z-index: 1;
}
.beer-field > .hero { background: transparent; }

.glass-panel {
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
}
.glass-panel--dark {
  background: var(--color-navy-900);
  color: var(--text-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-panel--dark h1, .glass-panel--dark h2, .glass-panel--dark h3, .glass-panel--dark h4 {
  color: var(--text-on-dark);
}
.glass-panel--dark p { color: var(--text-on-dark-muted); }
.glass-panel--dark a:not(.btn) { color: var(--color-gold-400); }

/* Gold eyebrow text blends into the amber field — use dark ink there,
   but keep gold inside the dark glass panels where it has contrast. */
.beer-field .eyebrow { color: var(--color-navy-900); }
.glass-panel--dark .eyebrow { color: var(--color-gold-400); }

/* Gold primary buttons wash out against the amber field further down the
   page (gradient darkens toward the bottom) — use a dark pill instead so
   contrast holds regardless of scroll position. */
.beer-field .btn-primary {
  background: var(--color-navy-900);
  color: var(--color-cream-100);
}
.beer-field .btn-primary:hover { background: #1c2029; }
@media (max-width: 640px) {
  .glass-panel { padding: var(--space-5); }
}

/* ---------------------------------------------------------------------
   Hero / bubble animation
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #fef2c8 0%, #fce08d 10%, #f9cd54 30%, #f2b843 65%, #eaa93f 100%);
  color: var(--color-navy-900);
}
.hero canvas#beer-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero__foam {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 140px;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 3px 5px rgba(32, 26, 16, 0.15));
}
.hero__foam::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 140' preserveAspectRatio='none'%3E%3Cpath d='M0,24 L-0.2,24 Q10.5,24 10.5,34.7 L10.5,80.4 A19.5,19.5 0 0 0 49.5,80.4 L49.5,34.7 Q49.5,24 60.2,24 L85.2,24 Q101.2,24 101.2,40.0 L101.2,55.2 A29.2,29.2 0 0 0 159.6,55.2 L159.6,40.0 Q159.6,24 175.6,24 L246.9,24 Q260.5,24 260.5,37.7 L260.5,50.9 A24.9,24.9 0 0 0 310.3,50.9 L310.3,37.7 Q310.3,24 324.0,24 L362.0,24 Q378.0,24 378.0,40.0 L378.0,81.7 A38.3,38.3 0 0 0 454.7,81.7 L454.7,40.0 Q454.7,24 470.7,24 L540.8,24 Q556.8,24 556.8,40.0 L556.8,57.1 A31.1,31.1 0 0 0 619.0,57.1 L619.0,40.0 Q619.0,24 635.0,24 L683.8,24 Q699.8,24 699.8,40.0 L699.8,110.6 A31.3,31.3 0 0 0 762.3,110.6 L762.3,40.0 Q762.3,24 778.3,24 L800,24 L800,0 L0,0 Z' fill='%23fff6e2' stroke='rgba(255,241,214,0.9)' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,17,22,0.05) 0%, rgba(15,17,22,0.35) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 3;
  padding-top: 90px;
}
.hero__logo {
  width: 148px;
  height: auto;
  margin-bottom: var(--space-4);
  filter: drop-shadow(0 10px 24px rgba(15,17,22,0.35));
}
.hero__eyebrow {
  font-family: var(--font-display);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--color-navy-900);
  opacity: 0.75;
  margin-bottom: var(--space-2);
}
.hero h1 {
  color: var(--color-navy-900);
  text-shadow: 0 2px 0 rgba(255,255,255,0.15);
  max-width: 14ch;
}
.hero p.lede {
  max-width: 46ch;
  font-size: 1.15rem;
  color: rgba(15,17,22,0.82);
  font-weight: 600;
}
.hero__actions, .cta-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}
.hero .hero__actions .btn-outline { border-color: var(--color-navy-900); color: var(--color-navy-900); }
.hero .hero__actions .btn-outline:hover { background: rgba(15,17,22,0.08); }

.hero--compact { min-height: 46vh; }
.hero--compact .hero__content { padding-top: 60px; padding-bottom: var(--space-6); }

@media (max-width: 640px) {
  .hero { min-height: 100vh; }
  .hero__logo { width: 108px; }
}

/* ---------------------------------------------------------------------
   Retro video reel (Stein Cam)
   --------------------------------------------------------------------- */
.retro-reel {
  position: relative;
  overflow: hidden;
  height: 58vh;
  min-height: 340px;
  max-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Retro-TV bezel: the full 16:9 picture sits centered, and this dark molded
     "cabinet" shows as bars down each side when the frame is wider than the
     video. As the viewport narrows toward 16:9 the bars shrink to nothing. */
  background: linear-gradient(90deg, #080705 0%, #241c15 15%, #17110a 50%, #241c15 85%, #080705 100%);
}
.retro-reel__video {
  flex: none;
  height: 100%;
  width: auto;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  box-shadow: 0 0 0 2px #050409, 0 0 26px 9px rgba(0, 0, 0, 0.62);
  filter: sepia(0.55) saturate(1.45) contrast(1.08) brightness(1.18) hue-rotate(-8deg);
}
.retro-reel__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.14) 0px,
    rgba(0, 0, 0, 0.14) 1px,
    transparent 2px,
    transparent 3px
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}
.retro-reel__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.42) 100%);
  pointer-events: none;
}
.retro-reel__grain {
  position: absolute;
  inset: -12%;
  opacity: 0.16;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: retro-grain 0.6s steps(3) infinite;
}
@keyframes retro-grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2%, 1%); }
  66% { transform: translate(1%, -2%); }
  100% { transform: translate(0, 0); }
}
.retro-reel__hud {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: var(--color-cream-100);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.retro-reel__rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e5453f;
  box-shadow: 0 0 6px rgba(229, 69, 63, 0.9);
  animation: retro-blink 1.1s steps(1) infinite;
}
@keyframes retro-blink {
  50% { opacity: 0.15; }
}
.retro-reel__timecode { font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .retro-reel { height: 48vh; min-height: 260px; }
}

/* Chimney Rock showcase video — vertical clip shown uncropped and centered */
.cr-video {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  margin: var(--space-5) auto 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: #000;
}

/* Marquee ribbon */
.marquee {
  background: var(--color-pine-900);
  color: var(--color-gold-400);
  overflow: hidden;
  border-top: 1px solid var(--border-on-dark);
  border-bottom: 1px solid var(--border-on-dark);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  font-size: 1rem;
  padding: var(--space-3) var(--space-5);
  white-space: nowrap;
}
.marquee__track span:nth-child(odd) { color: var(--color-cream-200); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------------
   Cards
   --------------------------------------------------------------------- */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-cream-300); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: var(--space-4); }
.card__tag {
  display: inline-block;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--accent-strong);
  background: rgba(217, 166, 46, 0.14);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-2);
}

.icon-tile {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-pine-800);
  color: var(--color-gold-400);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-3);
}
.icon-tile svg { width: 28px; height: 28px; fill: currentColor; }

.stat {
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--accent-strong);
}
.stat span { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); }
.section--dark .stat strong, .section--navy .stat strong { color: var(--accent); }
.section--dark .stat span, .section--navy .stat span { color: var(--text-on-dark-muted); }

/* ---------------------------------------------------------------------
   Beer menu
   --------------------------------------------------------------------- */
.beer-category {
  margin-bottom: var(--space-7);
}
.beer-category__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-pine-800);
  padding-bottom: var(--space-2);
}
.beer-category__head h2 { margin: 0; }
.beer-category__count {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}
.beer-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (max-width: 700px) { .beer-list { grid-template-columns: 1fr; } }

.beer-item {
  display: flex;
  gap: var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  align-items: center;
}
.beer-item__media {
  width: 84px; height: 84px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-cream-300);
}
.beer-item__media img { width: 100%; height: 100%; object-fit: cover; }
.beer-item__name { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.03em; margin-bottom: 2px; }
.beer-item__style { font-size: 0.85rem; color: var(--accent-strong); letter-spacing: 0.05em; margin-bottom: 4px; }
.beer-item__meta { font-size: 0.85rem; color: var(--text-secondary); }

/* ---------------------------------------------------------------------
   Timeline (Chimney Rock)
   --------------------------------------------------------------------- */
.timeline {
  position: relative;
  padding-left: var(--space-5);
  border-left: 2px solid var(--border-on-dark);
}
.timeline__item { position: relative; padding-bottom: var(--space-6); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: calc(-1 * var(--space-5) - 6px);
  top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-gold-400);
  box-shadow: 0 0 0 4px rgba(217,166,46,0.2);
}
.timeline__item.is-active .timeline__dot { background: var(--color-gold-400); animation: pulse 2s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217,166,46,0.5); }
  100% { box-shadow: 0 0 0 12px rgba(217,166,46,0); }
}
.timeline__date { font-family: var(--font-display); letter-spacing: 0.1em; color: var(--color-gold-400); font-size: 0.85rem; margin-bottom: 4px; }

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */
.field { margin-bottom: var(--space-4); }
.field label {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  margin-bottom: var(--space-2);
}
.field .hint { font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--duration-base), box-shadow var(--duration-base);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 4px rgba(217,166,46,0.22);
}
.field.has-error input, .field.has-error textarea { border-color: var(--color-error); }
.field .error-text { display: none; color: var(--color-error); font-size: 0.82rem; margin-top: 4px; }
.field.has-error .error-text { display: block; }
.field .required { color: var(--color-error); margin-left: 2px; }

.form-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
}

.form-status {
  display: none;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  margin-top: var(--space-3);
  font-size: 0.92rem;
}
.form-status.is-visible { display: flex; }
.form-status.is-success { background: rgba(63,125,67,0.12); color: var(--color-success); }
.form-status.is-error { background: rgba(164,55,42,0.12); color: var(--color-error); }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer {
  background: var(--color-navy-900);
  color: var(--text-on-dark-muted);
  padding-block: var(--space-7) var(--space-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border-on-dark);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 { color: var(--color-gold-400); margin-bottom: var(--space-3); }
.footer-grid ul li { margin-bottom: var(--space-2); }
.footer-grid a:hover { color: var(--color-gold-400); }
.footer-brand img { height: 64px; margin-bottom: var(--space-3); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-4);
  font-size: 0.85rem;
}
.footer-bottom a { color: var(--text-on-dark-muted); }
.footer-bottom a:hover { color: var(--color-gold-400); }

/* ---------------------------------------------------------------------
   Misc utilities
   --------------------------------------------------------------------- */
.badge-row { display: flex; gap: var(--space-5); align-items: center; flex-wrap: wrap; }
.badge-row img { height: 56px; width: auto; opacity: 0.9; }
.medal-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.medal-row img { height: 74px; width: auto; display: block; filter: drop-shadow(0 4px 9px rgba(0, 0, 0, 0.4)); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-gold-400);
  color: var(--color-navy-900);
  padding: 10px 16px;
  z-index: 200;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
}
.skip-link:focus { left: var(--space-3); top: var(--space-3); }

.divider-tree {
  height: 28px;
  background-repeat: repeat-x;
  background-size: 28px 28px;
  opacity: 0.6;
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------------------------------------------------------------------
   Event type tags
   --------------------------------------------------------------------- */
.card__tag--event {
  color: var(--accent-strong);
  background: rgba(217, 166, 46, 0.14);
}
.card__tag--food-truck {
  color: var(--color-success);
  background: rgba(63, 125, 67, 0.14);
}

/* ---------------------------------------------------------------------
   Events calendar
   --------------------------------------------------------------------- */
.calendar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.calendar__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.calendar__month {
  margin: 0;
  font-size: 1.5rem;
}
.calendar__nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: background var(--duration-base), border-color var(--duration-base);
}
.calendar__nav:hover { background: var(--color-cream-200); border-color: var(--accent-strong); }
.calendar__nav svg { width: 18px; height: 18px; fill: currentColor; }

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.calendar__day {
  position: relative;
  aspect-ratio: 1;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--color-cream-200);
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--text-primary);
  transition: background var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast);
}
.calendar__day:hover { background: var(--color-cream-300); }
.calendar__day:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.calendar__day--pad { background: transparent; cursor: default; pointer-events: none; }
.calendar__day.is-today { border-color: var(--accent-strong); }
.calendar__day.has-events { font-weight: 700; }
.calendar__day.is-selected {
  background: var(--color-pine-800);
  color: var(--text-on-dark);
  border-color: var(--color-pine-800);
}
.calendar__day-num { font-size: 0.95rem; }
.calendar__day-dots { display: flex; gap: 3px; }
.calendar__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.calendar__dot--event { background: var(--accent-strong); }
.calendar__dot--food-truck { background: var(--color-success); }
.calendar__day.is-selected .calendar__dot--event { background: var(--color-gold-400); }
.calendar__day.is-selected .calendar__dot--food-truck { background: #7fd087; }

.calendar__legend {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}
.calendar__legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.calendar__detail {
  margin-top: var(--space-5);
  padding: var(--space-5);
  background: var(--color-cream-200);
  border-radius: var(--radius-lg);
  min-height: 80px;
}
.calendar__detail-heading { margin-bottom: var(--space-3); }
.calendar__detail-list {
  display: grid;
  gap: var(--space-4);
}
.calendar__detail-item h4 { margin: 4px 0 2px; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.02em; }
.calendar__detail-time { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 4px; }
.calendar__detail-item p a,
.manage-row__desc a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.calendar__detail-media {
  margin-bottom: var(--space-3);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: 320px;
}
.calendar__detail-media img { width: 100%; height: auto; display: block; }
.calendar__prompt { color: var(--text-secondary); margin: 0; }

@media (max-width: 620px) {
  .calendar { padding: var(--space-4); }
  .calendar__day { min-height: 40px; }
  .calendar__day-num { font-size: 0.82rem; }
  .calendar__weekdays { font-size: 0.65rem; }
}

/* ---------------------------------------------------------------------
   Hero "Today" widget
   --------------------------------------------------------------------- */
.hero-today {
  margin-top: var(--space-5);
  padding: var(--space-4);
  max-width: 460px;
  background: rgba(255, 246, 226, 0.55);
  border: 1px solid rgba(15, 17, 22, 0.15);
  border-radius: var(--radius-md);
  backdrop-filter: blur(6px);
}
.hero-today__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-2);
}
.hero-today__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-navy-900);
  opacity: 0.4;
}
.hero-today__dot--live {
  background: var(--color-success);
  opacity: 1;
  box-shadow: 0 0 0 0 rgba(63, 125, 67, 0.5);
  animation: hero-today-pulse 2s infinite;
}
@keyframes hero-today-pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 125, 67, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(63, 125, 67, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 125, 67, 0); }
}
.hero-today__label {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  color: var(--color-navy-900);
}
.hero-today__list { display: grid; gap: var(--space-2); margin-bottom: var(--space-2); }
.hero-today__item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.92rem;
}
.hero-today__item.has-thumb { flex-wrap: nowrap; }
.hero-today__thumb {
  width: 1.5in;
  height: 1.5in;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid rgba(15, 17, 22, 0.15);
}
.hero-today__item-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.hero-today__item-title { font-weight: 700; color: var(--color-navy-900); }
.hero-today__item-time { font-size: 0.8rem; color: rgba(15, 17, 22, 0.65); }
.hero-today__empty { margin: 0; font-size: 0.92rem; color: rgba(15, 17, 22, 0.75); }
.hero-today__empty a, .hero-today__link {
  color: var(--color-navy-900);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero-today__link { display: inline-block; font-size: 0.85rem; margin-top: 2px; }

@media (max-width: 640px) {
  .hero-today { max-width: none; }
}

/* ---------------------------------------------------------------------
   Manage events (admin tool)
   --------------------------------------------------------------------- */
.manage-list { display: grid; gap: var(--space-3); }
.manage-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.manage-row__media {
  width: 64px; height: 64px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-cream-300);
}
.manage-row__media img { width: 100%; height: 100%; object-fit: cover; }
.manage-row__main { display: flex; flex-direction: column; gap: 2px; max-width: 60ch; flex: 1; min-width: 0; }
.manage-row__main strong { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.02em; }
.manage-row__date { font-size: 0.85rem; color: var(--text-secondary); }
.manage-row__desc { margin: 4px 0 0; font-size: 0.9rem; }
.manage-row__actions { display: flex; gap: var(--space-2); flex-shrink: 0; flex-wrap: wrap; }
.manage-row__actions .btn { padding: 10px 18px; min-height: 40px; font-size: 0.9rem; }
.manage-row__delete { border-color: var(--color-error); color: var(--color-error); }
.manage-row__delete:hover { background: rgba(164, 55, 42, 0.08); }

/* ---------------------------------------------------------------------
   Homepage "Now Pouring" carousel
   --------------------------------------------------------------------- */
.tap-carousel {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
}
.tap-carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}
.tap-carousel__track {
  display: flex;
  transition: transform 600ms var(--ease-out);
  will-change: transform;
}
.tap-slide {
  flex: 0 0 100%;
  width: 100%;
  display: grid;
  grid-template-columns: 42% 1fr;
  align-items: stretch;
}
.tap-slide__media {
  background: var(--color-cream-300);
  min-width: 0;
  min-height: 360px;
  overflow: hidden;
}
.tap-slide__media img { width: 100%; height: 100%; object-fit: cover; }
.tap-slide__body {
  padding: var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-2);
}
.tap-slide__body h3 { margin: 0; display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; }
.tap-slide__abv {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-strong);
  background: rgba(217, 166, 46, 0.16);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}
.tap-slide__style { color: var(--accent-strong); letter-spacing: 0.03em; font-weight: 600; margin: 0; }
.tap-slide__body p { margin: 0; }

.tap-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-navy-900);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--duration-base), transform var(--duration-fast);
  z-index: 2;
}
.tap-carousel__arrow:hover { background: #fff; }
.tap-carousel__arrow:active { transform: translateY(-50%) scale(0.94); }
.tap-carousel__arrow svg { width: 20px; height: 20px; fill: currentColor; }
.tap-carousel__arrow--prev { left: -10px; }
.tap-carousel__arrow--next { right: -10px; }

.tap-carousel__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}
.tap-carousel__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(15, 17, 22, 0.22);
  cursor: pointer;
  transition: background var(--duration-base), transform var(--duration-base);
}
.tap-carousel__dot:hover { background: rgba(15, 17, 22, 0.4); }
.tap-carousel__dot.is-active { background: var(--accent-strong); transform: scale(1.25); }

@media (max-width: 640px) {
  .tap-slide { grid-template-columns: 1fr; }
  .tap-slide__media { aspect-ratio: 4 / 5; }
  .tap-slide__body { padding: var(--space-4); text-align: center; align-items: center; }
  .tap-slide__body h3 { justify-content: center; }
  .tap-carousel__arrow--prev { left: 4px; }
  .tap-carousel__arrow--next { right: 4px; }
}

/* ---------------------------------------------------------------------
   Beer item library (tap manager)
   --------------------------------------------------------------------- */
.beer-item__abv {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
  background: rgba(217, 166, 46, 0.16);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  margin-left: 8px;
  vertical-align: middle;
}

.library-list { display: grid; gap: var(--space-3); }
.library-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-base), box-shadow var(--duration-base);
}
.library-row.is-on-tap { border-color: rgba(217, 166, 46, 0.55); box-shadow: inset 3px 0 0 var(--accent); }
.library-row__media {
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-cream-300);
  flex-shrink: 0;
}
.library-row__media img { width: 100%; height: 100%; object-fit: cover; }
.library-row__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.library-row__main strong { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.02em; }
.library-row__abv { font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; color: var(--accent-strong); }
.library-row__style { font-size: 0.85rem; color: var(--accent-strong); letter-spacing: 0.03em; }
.library-row__desc { margin: 4px 0 0; font-size: 0.88rem; color: var(--text-secondary); }
.library-row__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
}
.library-row__actions { display: flex; gap: var(--space-2); }
.library-row__delete { border-color: var(--color-error); color: var(--color-error); }
.library-row__delete:hover { background: rgba(164, 55, 42, 0.08); }

@media (max-width: 720px) {
  .library-row { grid-template-columns: 56px 1fr; grid-template-areas: "media main" "controls controls"; }
  .library-row__media { width: 56px; height: 56px; grid-area: media; }
  .library-row__main { grid-area: main; }
  .library-row__controls { grid-area: controls; flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Toggle switch */
label.switch {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  user-select: none;
  margin: 0;
}
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track {
  position: relative;
  width: 46px; height: 26px;
  border-radius: var(--radius-pill);
  background: var(--color-cream-300);
  border: 1px solid var(--border-subtle);
  transition: background var(--duration-base);
  flex-shrink: 0;
}
.switch__thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-out);
}
.switch input:checked + .switch__track { background: var(--accent); border-color: var(--accent-strong); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.switch__label { font-family: var(--font-display); letter-spacing: 0.06em; font-size: 0.85rem; color: var(--text-secondary); }
.switch input:checked ~ .switch__label { color: var(--accent-strong); }

.field--inline { display: flex; align-items: center; }

/* Image path field with live preview */
.image-field { display: flex; gap: var(--space-3); align-items: flex-start; }
.image-field__preview {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--color-cream-300);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.image-field__input { flex: 1; min-width: 0; }
.image-field__input .hint { margin-top: 6px; }
.image-field__preview { object-position: center; }
.image-field input[type="file"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.image-field input[type="file"]::file-selector-button {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  padding: 8px 16px;
  margin-right: var(--space-3);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--color-cream-100);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--duration-base), border-color var(--duration-base);
}
.image-field input[type="file"]::file-selector-button:hover {
  background: var(--color-cream-200);
  border-color: var(--accent-strong);
}
.linklike {
  background: none;
  border: 0;
  padding: 0;
  color: var(--color-error);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.image-advanced { margin-top: var(--space-2); }
.image-advanced summary {
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.image-advanced input[type="text"] {
  width: 100%;
  min-height: 44px;
  margin-top: var(--space-2);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.image-advanced input[type="text"]:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(217,166,46,0.2);
}

/* Category editor */
.category-list { display: grid; gap: var(--space-2); margin: var(--space-4) 0; }
.category-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--color-cream-100);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.category-row__handle { display: flex; flex-direction: column; gap: 2px; }
.category-row__move {
  width: 22px; height: 16px;
  line-height: 1;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.7rem;
}
.category-row__move:hover:not(:disabled) { border-color: var(--accent-strong); color: var(--accent-strong); }
.category-row__move:disabled { opacity: 0.3; cursor: default; }
.category-row__label {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 8px 12px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  transition: border-color var(--duration-base), box-shadow var(--duration-base);
}
.category-row__label:hover { border-color: var(--border-subtle); }
.category-row__label:focus { outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(217,166,46,0.2); }
.category-row__count { font-size: 0.8rem; color: var(--text-secondary); white-space: nowrap; }
.category-row__slideshow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.category-row__slideshow input { width: 16px; height: 16px; accent-color: var(--accent-strong); cursor: pointer; }
.category-row__delete {
  padding: 8px 14px;
  min-height: 40px;
  font-size: 0.85rem;
  border-color: var(--color-error);
  color: var(--color-error);
}
.category-row__delete:hover { background: rgba(164, 55, 42, 0.08); }
.category-add { display: flex; gap: var(--space-2); }
.category-add input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface);
  font-family: var(--font-body);
  font-size: 1rem;
}
.category-add input:focus { outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 4px rgba(217,166,46,0.22); }
@media (max-width: 560px) {
  .category-row { flex-wrap: wrap; }
  .category-row__label { flex-basis: 100%; order: -1; }
  .category-add { flex-direction: column; }
}

/* ---------------------------------------------------------------------
   Interactive grounds map — 80s retro / synthwave UI
   --------------------------------------------------------------------- */
.section--arcade {
  position: relative;
  background: radial-gradient(120% 80% at 50% 0%, #3a1b63 0%, #1c0f3a 45%, #120a2b 100%);
  color: #f4ecff;
  overflow: hidden;
  isolation: isolate;
}
.section--arcade::before {
  content: "";
  position: absolute;
  inset: 45% 0 0 0;
  background:
    linear-gradient(rgba(255,63,180,0), rgba(255,63,180,0.14)),
    repeating-linear-gradient(90deg, rgba(53,230,255,0.28) 0 2px, transparent 2px 64px),
    repeating-linear-gradient(rgba(53,230,255,0.28) 0 2px, transparent 2px 64px);
  transform: perspective(420px) rotateX(62deg);
  transform-origin: 50% 100%;
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}
.section--arcade::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #35e6ff, #ff3fb4, #ffcc33, #35e6ff);
  z-index: 2;
}
.section--arcade h2 { color: #fff; text-shadow: 0 0 18px rgba(255,63,180,0.6); }
.section--arcade .eyebrow { color: #35e6ff; }
.section--arcade .section-head p { color: #d9cff2; }

.activity-map { position: relative; max-width: 1040px; margin: 0 auto; }
.map-frame {
  position: relative;
  border-radius: 18px;
  padding: 10px;
  background: linear-gradient(145deg, #ff3fb4, #7a2bd6 40%, #35e6ff);
  box-shadow: 0 0 0 2px rgba(0,0,0,0.4), 0 18px 50px rgba(10,4,30,0.7), 0 0 42px rgba(255,63,180,0.35);
}
.map-frame__inner {
  border-radius: 12px;
  overflow: hidden;
  background: #f6efd8;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.35);
}
.map-svg { display: block; width: 100%; height: auto; }

/* Illustrated map photo + pin overlay */
.map-photo-wrap { position: relative; line-height: 0; }
.map-photo { display: block; width: 100%; height: auto; }
.map-pins-overlay { position: absolute; inset: 0; pointer-events: none; }
.map-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  z-index: 1;
}
.map-hotspot:focus-visible { outline: none; }
.map-hotspot__pin {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(26px, 3.4vw, 38px);
  height: clamp(26px, 3.4vw, 38px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff7ad0, #ff2f9a 60%, #d81b7e);
  border: 2px solid #2a0a20;
  box-shadow: 0 3px 8px rgba(0,0,0,0.45), 0 0 12px rgba(255,63,180,0.75);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.map-hotspot__pin::before {
  /* pulsing halo */
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255,63,180,0.65);
  animation: mapPinPulse 2.1s ease-out infinite;
}
.map-hotspot__num {
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1;
}
.map-hotspot__label {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: #14082a;
  background: #35e6ff;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4), 0 0 14px rgba(53,230,255,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.map-hotspot:hover .map-hotspot__pin,
.map-hotspot:focus-visible .map-hotspot__pin,
.map-hotspot.is-active .map-hotspot__pin {
  transform: scale(1.32);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5), 0 0 20px rgba(255,63,180,1);
}
.map-hotspot:hover .map-hotspot__label,
.map-hotspot:focus-visible .map-hotspot__label,
.map-hotspot.is-active .map-hotspot__label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.map-hotspot:focus-visible .map-hotspot__pin { outline: 3px solid #ffcc33; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .map-hotspot__pin::before { animation: none; }
}
.map-hint {
  text-align: center;
  margin-top: var(--space-3);
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  color: #35e6ff;
  text-transform: uppercase;
}

.map-zone { cursor: pointer; }
.map-zone__art {
  transition: transform 180ms var(--ease-out), filter 180ms var(--ease-out);
  transform-box: fill-box;
  transform-origin: center;
}
.map-zone:hover .map-zone__art,
.map-zone.is-hover .map-zone__art,
.map-zone.is-active .map-zone__art {
  transform: translateY(-5px) scale(1.03);
  filter: drop-shadow(0 8px 10px rgba(0,0,0,0.45)) drop-shadow(0 0 10px rgba(53,230,255,0.9));
}
.map-zone:focus { outline: none; }
.map-zone:focus-visible .map-zone__art {
  filter: drop-shadow(0 0 12px rgba(255,204,51,0.95));
}

.map-pin { pointer-events: none; }
.map-pin__body { fill: #ff2f9a; stroke: #2a0a20; stroke-width: 2; }
.map-pin__dot { fill: #14082a; stroke: #ff7ad0; stroke-width: 1.5; }
.map-pin__num { fill: #fff; font-family: var(--font-display); font-size: 13px; }
.map-pin__pulse {
  fill: rgba(255,63,180,0.55);
  transform-box: fill-box;
  transform-origin: center;
  animation: mapPinPulse 2.1s ease-out infinite;
}
.map-pin__body, .map-pin__dot, .map-pin__num {
  transition: transform 180ms var(--ease-out);
  transform-box: fill-box;
  transform-origin: center;
}
.map-pin.is-hover .map-pin__body, .map-pin.is-active .map-pin__body,
.map-pin.is-hover .map-pin__dot, .map-pin.is-active .map-pin__dot,
.map-pin.is-hover .map-pin__num, .map-pin.is-active .map-pin__num { transform: scale(1.28); }
@keyframes mapPinPulse {
  0% { transform: scale(0.5); opacity: 0.75; }
  70% { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}

.map-panel { position: fixed; inset: 0; z-index: 1000; visibility: hidden; pointer-events: none; }
.map-panel.is-open { visibility: visible; pointer-events: auto; }
.map-panel__scrim {
  position: absolute; inset: 0;
  background: rgba(10,4,26,0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
}
.map-panel.is-open .map-panel__scrim { opacity: 1; }
.map-panel__sheet {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(460px, 92vw);
  background: linear-gradient(180deg, #1c0f3a, #14082a);
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, #35e6ff, #ff3fb4, #ffcc33) 1;
  box-shadow: -24px 0 60px rgba(0,0,0,0.6);
  transform: translateX(104%);
  transition: transform 360ms var(--ease-out);
  overflow-y: auto;
  outline: none;
}
.map-panel.is-open .map-panel__sheet { transform: translateX(0); }
.map-panel__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,63,180,0.7);
  background: rgba(20,8,42,0.7);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: background 200ms, transform 150ms;
}
.map-panel__close:hover { background: #ff3fb4; transform: rotate(90deg); }
.map-panel__media {
  background: #0e0722;
  border-bottom: 3px solid rgba(53,230,255,0.5);
}
.map-panel__media img { width: 100%; height: auto; display: block; }
.map-panel__video { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.map-panel__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-panel__noimg {
  width: 100%; aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-retro);
  font-size: 1.8rem;
  color: #ff7ad0;
  text-align: center;
  padding: var(--space-4);
  background: repeating-linear-gradient(45deg, rgba(255,63,180,0.08) 0 10px, transparent 10px 20px), #160a30;
}
.map-panel__body { padding: var(--space-5) var(--space-5) var(--space-6); }
.map-panel__num {
  display: inline-block;
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: #14082a;
  background: #35e6ff;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
  box-shadow: 0 0 14px rgba(53,230,255,0.7);
}
.map-panel__title {
  color: #fff;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  margin: 0 0 var(--space-3);
  text-shadow: 0 0 16px rgba(255,63,180,0.5);
}
.map-panel__desc { color: #ddd2f5; font-size: 1.02rem; line-height: 1.65; max-width: none; margin: 0; }

@media (max-width: 560px) {
  .map-panel__sheet { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .map-pin__pulse { animation: none; opacity: 0.4; }
  .map-zone__art, .map-panel__sheet, .map-panel__scrim { transition: none; }
}
