/* ==========================================================================
   Showcase Template Package — Shared Design System ("House Style")
   --------------------------------------------------------------------------
   ONE stylesheet consumed by every template page. Pages link this file and
   only ADD a tiny per-template accent override block (see "Theming" below).
   Do NOT redefine the base structural classes in template pages.

   Built by worker-1 (task t-001). Framework-free, dependency-free.

   Contents
     1. Design tokens (:root custom properties)
     2. Modern CSS reset
     3. Base element styles
     4. Layout: .container, .section, .grid
     5. Components: .card, .btn, .badge, .nav, .hero, .footer
     6. Utilities: .text-center, .stack, .visually-hidden
     7. Responsive breakpoints (min-width 480 / 768 / 1024)

   Theming (how per-template skins work)
     Wrap the page body in <body class="theme-NAME"> and add a SMALL inline
     <style> that overrides only the accent tokens, e.g.

       body.theme-business {
         --accent: #2563EB;
         --accent-soft: #DBEAFE;
         --accent-contrast: #ffffff;
       }

     The dark gallery skin may additionally override --bg / --surface / --text
     / --border. Everything else inherits from the house system below, so the
     accent "just works" across nav, buttons, links, hero, badges, focus rings.
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* --- Colors: neutral "house" light palette ---------------------------- */
  --bg: #f8fafc;             /* near-white page background (slate-50)       */
  --surface: #ffffff;        /* cards, nav, raised surfaces                 */
  --text: #1e293b;           /* dark slate body text (slate-800)           */
  --text-muted: #64748b;     /* secondary text (slate-500)                 */
  --border: #e2e8f0;         /* hairline borders / dividers (slate-200)    */

  /* Accent — the single per-template override point. Neutral default.      */
  --accent: #6366f1;         /* indigo-500 (house default)                 */
  --accent-soft: #e0e7ff;    /* tint for soft backgrounds (indigo-100)     */
  --accent-contrast: #ffffff;/* text/icon color that sits on --accent      */

  /* --- Typography ------------------------------------------------------- */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
               Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica,
                  Arial, sans-serif;

  /* Modular type scale (rem). Base = 16px. */
  --fs-xs: 0.75rem;     /* 12px */
  --fs-sm: 0.875rem;    /* 14px */
  --fs-base: 1rem;      /* 16px */
  --fs-lg: 1.125rem;    /* 18px */
  --fs-xl: 1.375rem;    /* 22px */
  --fs-2xl: 1.875rem;   /* 30px */
  --fs-3xl: 2.5rem;     /* 40px */

  --lh-tight: 1.2;
  --lh-normal: 1.6;

  /* --- Spacing: 4px base scale ----------------------------------------- */
  --space-1: 0.25rem;   /*  4px */
  --space-2: 0.5rem;    /*  8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-7: 1.75rem;   /* 28px */
  --space-8: 2rem;      /* 32px */
  --space-9: 2.25rem;   /* 36px */
  --space-10: 2.5rem;   /* 40px */
  --space-11: 2.75rem;  /* 44px */
  --space-12: 3rem;     /* 48px */

  /* --- Radius ----------------------------------------------------------- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-full: 999px;

  /* --- Shadows ---------------------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06),
               0 1px 1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08),
               0 2px 4px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.14),
               0 6px 12px rgba(15, 23, 42, 0.08);

  /* --- Layout ----------------------------------------------------------- */
  --container-max: 1200px;
}


/* ==========================================================================
   2. MODERN CSS RESET
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   3. BASE ELEMENT STYLES
   ========================================================================== */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  color: var(--text);
  background-color: var(--bg);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  font-weight: 700;
  color: var(--text);
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }

/* Inline text links inherit the active accent so skins recolor them. */
.section a:not(.btn),
.hero a:not(.btn),
.footer a:not(.btn) {
  color: var(--accent);
}
.section a:not(.btn):hover,
.hero a:not(.btn):hover,
.footer a:not(.btn):hover {
  text-decoration: underline;
}

/* Consistent, accent-aware focus ring for every interactive element. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.nav__toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}


/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

/* .container — centered, max-width, responsive horizontal padding. */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

/* .section — consistent vertical rhythm between page blocks. */
.section {
  padding-block: var(--space-10);
}

/* .grid — responsive auto layout. Base = single column (mobile-first). */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
/* .grid--2 / .grid--3 collapse to 1 column on mobile, expand at breakpoints. */
.grid--2,
.grid--3 {
  grid-template-columns: 1fr;
}


/* ==========================================================================
   5. COMPONENTS
   ========================================================================== */

/* --- Card -------------------------------------------------------------- */
.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card > * + * {
  margin-top: var(--space-3);
}

/* --- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;            /* accessible tap target */
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease,
              box-shadow 0.18s ease;
}
.btn:active {
  transform: translateY(1px);
}

/* Primary = filled with accent. */
.btn--primary {
  background-color: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  /* darken slightly without needing a separate token */
  background-color: color-mix(in srgb, var(--accent) 85%, #000);
  border-color: color-mix(in srgb, var(--accent) 85%, #000);
  box-shadow: var(--shadow-md);
}

/* Ghost = outlined, accent text. */
.btn--ghost {
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--ghost:hover {
  background-color: var(--accent-soft);
}

/* --- Badge ------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  background-color: var(--accent-soft);
  border-radius: var(--radius-full);
}

/* --- Navigation -------------------------------------------------------- */
.nav {
  position: relative;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 60px;
}
/* Brand / wordmark inside the nav (optional .nav__brand on the logo link). */
.nav__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* Links: on mobile they collapse behind the hamburger toggle. */
.nav__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  list-style: none;

  /* Mobile: dropdown panel, hidden until toggled open. */
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: var(--space-3) var(--space-4);
  z-index: 50;

  /* Hidden state (collapsed). The toggle sets [data-open] / aria-expanded. */
  display: none;
}
/* Open state — toggled by the hamburger (JS sets data-open="true"). */
.nav__links[data-open="true"] {
  display: flex;
}
.nav__links a {
  display: block;
  padding: var(--space-3) var(--space-3);
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text);
}
.nav__links a:hover {
  color: var(--accent);
  background-color: var(--accent-soft);
}
/* Mark the active page with aria-current="page". */
.nav__links a[aria-current="page"] {
  color: var(--accent);
  font-weight: 700;
}

/* Hamburger toggle button — visible only on mobile. */
.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin-inline: auto;
  background-color: var(--text);
  border-radius: var(--radius-full);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
/* Animate to an "X" when open. */
.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: var(--space-12);
  /* Accent-aware wash so each skin tints its hero automatically. */
  background:
    linear-gradient(160deg,
      var(--accent-soft) 0%,
      var(--surface) 70%);
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: var(--fs-2xl);
  max-width: 22ch;
}
.hero p {
  color: var(--text-muted);
  font-size: var(--fs-lg);
  max-width: 60ch;
  margin-top: var(--space-4);
}
.hero .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-7);
}
/* Optional eyebrow above the hero headline. */
.hero__eyebrow {
  display: inline-block;
  margin-bottom: var(--space-4);
}

/* --- Footer ------------------------------------------------------------ */
.footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: var(--space-8);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.footer a {
  color: var(--text-muted);
}
.footer a:hover {
  color: var(--accent);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}


/* ==========================================================================
   6. UTILITIES
   ========================================================================== */
.text-center {
  text-align: center;
}

/* .stack — vertical flow with even spacing between direct children. */
.stack {
  display: flex;
  flex-direction: column;
}
.stack > * + * {
  margin-top: var(--space-4);
}

/* .visually-hidden — accessible to screen readers, hidden visually. */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS (mobile-first, min-width)
   ========================================================================== */

/* --- >= 480px : larger phones / small tablets -------------------------- */
@media (min-width: 480px) {
  .container {
    padding-inline: var(--space-6);
  }
  .hero h1 {
    font-size: var(--fs-3xl);
  }
}

/* --- >= 768px : tablets — reveal desktop nav, 2-col grids --------------- */
@media (min-width: 768px) {
  .section {
    padding-block: var(--space-12);
  }

  /* Grids expand. */
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Nav switches to a horizontal inline bar; hide the hamburger. */
  .nav__toggle {
    display: none;
  }
  .nav__links {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--space-2);
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    display: flex;           /* always visible on desktop */
  }
  .nav__links a {
    min-height: auto;
  }

  .hero {
    padding-block: calc(var(--space-12) + var(--space-6));
  }
}

/* --- >= 1024px : desktop — 3-col grids, roomier type ------------------- */
@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero h1 {
    font-size: var(--fs-3xl);
  }
}


/* ==========================================================================
   8. LAYOUT PRIMITIVES (Round 2 — additive; existing classes untouched)
   --------------------------------------------------------------------------
   Reusable, responsive, a11y-friendly layout building blocks that template
   pages COMPOSE instead of writing ad-hoc CSS. Every primitive is mobile-first
   (no horizontal page scroll at 360px), token-driven (inherits per-template
   --accent / --surface / --border / --space-* etc.), and reduced-motion safe.

   Quick map:
     .feature-row         alternating media+text rows (story sections)
     .logo-wall           muted trust band of logo/partner items
     .matrix              feature×plan comparison grid (mobile-scroll or stack)
     .fee-list            itemized line-item rows with right-aligned amounts
     .bento               asymmetric mosaic of varied-size tiles
     .ticker              full-width pausable marquee
     .stepper             numbered step indicator + .booking-aside summary
     .board               editorial multi-column layout
     .masonry             CSS-columns masonry gallery
   ========================================================================== */


/* --- 8.1 Feature row --------------------------------------------------- */
/* Usage: <div class="feature-row"><div class="feature-row__media">…</div>
          <div class="feature-row__body">…</div></div>  (--reverse flips order) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr;        /* mobile: stacked, media on top */
  gap: var(--space-6);
  align-items: center;
}
.feature-row__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--accent-soft);   /* accent-aware placeholder fill */
  min-height: 200px;
}
.feature-row__media > img,
.feature-row__media > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-row__body > * + * {
  margin-top: var(--space-3);
}

@media (min-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
  /* --reverse: place the media on the right on desktop only. */
  .feature-row--reverse .feature-row__media {
    order: 2;
  }
}


/* --- 8.2 Logo wall ----------------------------------------------------- */
/* Usage: <ul class="logo-wall"><li class="logo-wall__item">ACME</li>…</ul> */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-4);
  align-items: stretch;
  list-style: none;
}
.logo-wall__item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 64px;
  padding: var(--space-4);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);                 /* muted by default … */
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  filter: grayscale(1);
  opacity: 0.8;
  transition: color 0.18s ease, opacity 0.18s ease,
              filter 0.18s ease, border-color 0.18s ease;
}
.logo-wall__item:hover {                     /* … brighten to accent on hover */
  color: var(--accent);
  border-color: var(--accent);
  filter: grayscale(0);
  opacity: 1;
}


/* --- 8.3 Comparison matrix -------------------------------------------- */
/* Usage: wrap in <div class="matrix-wrap"> so it scrolls horizontally on
   mobile without pushing the page. <div class="matrix"> holds .matrix__col
   columns; add --featured to highlight one plan column. */
.matrix-wrap {
  width: 100%;
  overflow-x: auto;                          /* contains overflow to itself */
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
}
.matrix {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);     /* each plan column min width */
  min-width: max-content;                    /* force scroll vs. squish */
  gap: 1px;
  background-color: var(--border);           /* gap lines */
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.matrix__col {
  background-color: var(--surface);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.matrix__col > * {
  min-height: 28px;
}
.matrix--featured {
  background-color: var(--accent-soft);
  box-shadow: inset 0 0 0 2px var(--accent);
  position: relative;
  z-index: 1;
}
/* On wider screens the matrix can breathe to full width (no scroll needed). */
@media (min-width: 768px) {
  .matrix {
    min-width: 100%;
  }
}


/* --- 8.4 Fee list ------------------------------------------------------ */
/* Usage: <dl class="fee-list"><div class="fee-list__row"><dt>Label
   <span class="fee-list__note">note</span></dt><dd>$120</dd></div>… plus an
   optional <div class="fee-list__row fee-list__total">…</div> */
.fee-list {
  display: flex;
  flex-direction: column;
}
.fee-list__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
}
.fee-list__row > dt {
  font-weight: 600;
  margin: 0;
}
.fee-list__row > dd {
  margin: 0;
  font-variant-numeric: tabular-nums;        /* aligned figures */
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}
.fee-list__note {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--text-muted);
}
.fee-list__total {
  border-bottom: none;
  border-top: 2px solid var(--accent);
  margin-top: var(--space-2);
  font-size: var(--fs-lg);
}
.fee-list__total > dt,
.fee-list__total > dd {
  color: var(--accent);
  font-weight: 800;
}


/* --- 8.5 Bento mosaic -------------------------------------------------- */
/* Usage: <div class="bento"><div class="bento__item bento__item--wide">…</div>
   …</div>. Tiles vary in size via --wide / --tall / --lg modifiers. */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);     /* mobile: 2 cols */
  grid-auto-rows: minmax(120px, auto);
  gap: var(--space-4);
}
.bento__item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-3);
  overflow: hidden;
}
/* On the smallest screens, wide/lg tiles take the full row for legibility. */
.bento__item--wide,
.bento__item--lg {
  grid-column: span 2;
}
@media (min-width: 768px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);   /* desktop: 4-col mosaic */
  }
  .bento__item--wide { grid-column: span 2; }
  .bento__item--tall { grid-row: span 2; }
  .bento__item--lg   { grid-column: span 2; grid-row: span 2; }
}


/* --- 8.6 Ticker (marquee) ---------------------------------------------- */
/* Usage: <div class="ticker"><div class="ticker__track">…repeat content
   twice for a seamless loop…</div></div>. Pauses on hover; fully static
   under prefers-reduced-motion. */
.ticker {
  width: 100%;
  overflow: hidden;
  background-color: var(--accent-soft);
  border-block: 1px solid var(--border);
  padding-block: var(--space-3);
}
.ticker__track {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: var(--space-8);
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll 28s linear infinite;
}
.ticker:hover .ticker__track {
  animation-play-state: paused;              /* pause on hover */
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }      /* assumes content duplicated x2 */
}


/* --- 8.7 Stepper + booking aside -------------------------------------- */
/* Usage: <ol class="stepper"><li class="stepper__step is-done">…</li>
   <li class="stepper__step is-active">…</li><li class="stepper__step">…</li>
   </ol>. Pair with <aside class="booking-aside"> for an order summary. */
.stepper {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  list-style: none;
  counter-reset: step;
}
.stepper__step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.stepper__step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  background-color: var(--surface);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.stepper__step.is-active {
  color: var(--accent);
}
.stepper__step.is-active::before {
  border-color: var(--accent);
  color: var(--accent);
}
.stepper__step.is-done {
  color: var(--text);
}
.stepper__step.is-done::before {
  content: "\2713";                           /* checkmark */
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

.booking-aside {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
}
.booking-aside > * + * {
  margin-top: var(--space-3);
}
@media (min-width: 768px) {
  .booking-aside {
    position: sticky;                         /* sticky summary on desktop */
    top: var(--space-6);
  }
}


/* --- 8.8 Editorial board ----------------------------------------------- */
/* Usage: <div class="board"><div class="board__col">…</div>…</div>. Newspaper-
   style multi-column layout; single column on mobile. */
.board {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
.board__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.board__col > * {
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-5);
}
.board__col > *:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
@media (min-width: 768px) {
  .board {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}
@media (min-width: 1024px) {
  .board {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* --- 8.9 Masonry ------------------------------------------------------- */
/* Usage: <div class="masonry"><figure class="masonry__item">…</figure>…</div>.
   CSS-columns masonry; items must not split across columns. */
.masonry {
  column-count: 1;                            /* mobile: single column */
  column-gap: var(--space-4);
}
.masonry > * {
  break-inside: avoid;                        /* keep each item intact */
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: var(--space-4);
}
@media (min-width: 480px) {
  .masonry { column-count: 2; }
}
@media (min-width: 768px) {
  .masonry { column-count: 3; }
}
@media (min-width: 1024px) {
  .masonry { column-count: 4; }
}


/* --- 8.10 Reduced-motion safety for Round 2 primitives ----------------- */
/* Neutralize the ticker marquee and any opt-in reveal transitions for users
   who prefer reduced motion. (Global reset in §2 already zeroes durations,
   but we also fully stop the looping ticker translate here.) */
@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation: none !important;
    transform: none !important;
  }
}
