/* ==========================================================================
   Home Yoga Studio - stylesheet
   Colours and sizes are defined once as variables below ("design tokens").
   ========================================================================== */

/* ---- Fonts (self-hosted, Open Font Licence) ---- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Size-matched fallbacks keep text from jumping while fonts load. */
@font-face { font-family: 'Fraunces Fallback'; src: local('Georgia'); size-adjust: 102%; ascent-override: 96%; descent-override: 25%; }
@font-face { font-family: 'DM Sans Fallback'; src: local('Arial'); size-adjust: 98%; ascent-override: 96%; descent-override: 30%; }

/* ---- Design tokens ---- */
:root {
  --cream: #f8f4ec;
  --paper: #fffdf8;
  --sand: #efe7da;
  --sand-2: #e6dbc9;
  --line: #e2d9ca;
  --sage-50: #f1f4ec;
  --sage-100: #e5ebdc;
  --sage-300: #b9c5ac;
  --sage-500: #8a9a78;
  --sage-700: #56664a;
  --sage-800: #45533b;
  --olive: #6e7448;
  --terracotta: #b5654a;
  --terracotta-700: #96503a;
  --gold: #b8975a;
  --ink: #2d2c29;
  --ink-2: #4a4741;
  --muted: #67635b;
  --danger: #a33a2c;
  --success: #3f6b3a;
  --focus: #96503a;

  --font-head: 'Fraunces', 'Fraunces Fallback', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'DM Sans', 'DM Sans Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow-s: 0 1px 2px rgba(45, 44, 41, 0.05), 0 2px 8px rgba(45, 44, 41, 0.05);
  --shadow: 0 2px 6px rgba(45, 44, 41, 0.04), 0 14px 34px rgba(45, 44, 41, 0.08);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 8vw, 104px);
  --header-h: 72px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, .h3, .h4, .h5 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: var(--ink);
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.6rem + 3.2vw, 4rem); font-weight: 350; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.6rem); }
h3, .h3 { font-size: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem); }
h4, .h4 { font-size: 1.2rem; }
h5, .h5 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
a { color: var(--sage-800); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--terracotta-700); }
strong { font-weight: 600; }
address { font-style: normal; }
code { font-size: 0.9em; background: var(--sand); padding: 0.1em 0.35em; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sage-300); color: var(--ink); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.narrow { max-width: 780px; }
.container.narrow { width: min(100% - 2 * var(--gutter), 780px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.lead { font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); color: var(--ink-2); line-height: 1.6; }
.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--terracotta-700); margin-bottom: 0.9rem;
}
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 0.7rem 1rem; border-radius: var(--radius-s);
}
.skip-link:focus { top: 12px; color: var(--paper); }
main:focus { outline: none; }
.placeholder {
  background: #fbefcf; color: #6b4e12; border-bottom: 2px dotted #b8975a;
  padding: 0 0.2em; border-radius: 3px; font-style: normal;
}

/* ---- Buttons and links ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.75rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sage-800); color: #fff; }
.btn-primary:hover { background: #374430; color: #fff; }
.btn-secondary { background: transparent; color: var(--sage-800); border-color: var(--sage-700); }
.btn-secondary:hover { background: var(--sage-100); color: var(--sage-800); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--sand); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #862e23; color: #fff; }
.btn-small { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 0.95rem; }
.btn-large { min-height: 54px; padding: 0.9rem 2rem; font-size: 1.05rem; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }
.link-button {
  background: none; border: 0; padding: 0; font: inherit; color: inherit;
  text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer;
}
.text-link { font-weight: 600; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 244, 236, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(226, 217, 202, 0.7);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.logo-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--font-head); font-size: 1.3rem; letter-spacing: -0.01em; white-space: nowrap; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.nav-list { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 0.55rem 0.7rem; border-radius: 999px; text-decoration: none;
  color: var(--ink-2); font-weight: 500; font-size: 0.98rem;
}
.nav-list a:hover { background: var(--sand); color: var(--ink); }
.nav-list a[aria-current='page'], .nav-list a.is-section { color: var(--sage-800); background: var(--sage-100); }
.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0.5rem 0.9rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 600 0.95rem var(--font-body); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform 0.2s;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1060px) {
  .header-inner { flex-wrap: wrap; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: 0.75rem; padding: 0 0 1rem; margin: 0; }
  .nav-list { flex-direction: column; }
  .nav-list a { padding: 0.75rem 0.9rem; font-size: 1.05rem; }
  .nav-cta { width: 100%; }
}
@media (max-width: 1060px) and (scripting: enabled) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; }
  .site-nav.is-open { display: flex; }
}

/* ---- Hero ---- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; right: -12vw; top: -10vw; width: 55vw; height: 55vw; max-width: 760px; max-height: 760px;
  border-radius: 50%; background: var(--sand); opacity: 0.7; z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-grid-page { grid-template-columns: 1fr 1fr; }
.hero-copy h1 { margin-bottom: 0.45em; }
.hero-note {
  display: flex; gap: 0.75rem; align-items: flex-start; max-width: 34rem;
  font-size: 0.95rem; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.9rem 1.1rem; margin: 0;
}
.hero-note .icon { width: 22px; height: 22px; flex: none; color: var(--sage-700); margin-top: 2px; }
.hero-media img { width: 100%; }
picture.arch img { border-radius: 999px 999px var(--radius-l) var(--radius-l); aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow); }
picture.rounded img { border-radius: var(--radius-l); aspect-ratio: 3 / 2; object-fit: cover; box-shadow: var(--shadow); }
.hero-media { position: relative; }
.page-hero { padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 6vw, 80px); }
.page-hero-simple { padding-bottom: clamp(32px, 4vw, 48px); }
.page-hero .lead { max-width: 44rem; }
@media (max-width: 860px) {
  .hero-grid, .hero-grid-page { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; }
  .hero::before { width: 120vw; height: 120vw; right: -50vw; top: -40vw; }
  picture.arch img { aspect-ratio: 1 / 1; border-radius: 240px 240px var(--radius-l) var(--radius-l); }
}
@media (max-width: 480px) {
  .header-inner { gap: 0.75rem; }
  .brand { gap: 0.5rem; }
  .logo-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 1.12rem; }
  .nav-toggle { padding: 0.45rem 0.8rem; }
}

/* ---- Breadcrumbs ---- */
.breadcrumbs { padding-top: 1.1rem; font-size: 0.9rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 0.4rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--ink-2); }

/* ---- Sections ---- */
.section { padding: var(--section) 0; }
/* Off-screen sections are rendered only when scrolled near (faster first load). */
main > .section ~ .section, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 700px; }
.section-flush-top { padding-top: 0; }
.section-tint { background: var(--paper); border-block: 1px solid rgba(226, 217, 202, 0.6); }
.section-sage { background: var(--sage-50); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-bottom: 0; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.section-head-row .section-head { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 860px) { .split, .two-col { grid-template-columns: 1fr; } }
/* Let grid columns shrink so wide tables scroll inside their box instead of the page. */
.split > *, .two-col > *, .hero-grid > *, .booking-layout > *, .footer-grid > * { min-width: 0; }

/* ---- Cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 1.75rem); }
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-s);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--ink-2); font-size: 0.98rem; }
.card-title { font-size: 1.35rem; margin: 0.35rem 0 0.5rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.stretched-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.card .stretched-link:focus-visible { outline: none; }
.card-link { margin-top: auto; font-weight: 600; color: var(--sage-800); font-size: 0.95rem; }
.card:hover .arrow { transform: translateX(3px); }
.arrow { display: inline-block; transition: transform 0.2s; }
.meta-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.badge {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  background: var(--sage-100); color: var(--sage-800); padding: 0.25rem 0.65rem; border-radius: 999px;
}
.badge-quiet { background: var(--sand); color: var(--ink-2); }
.post-meta { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.25rem; }

/* ---- Features / icons ---- */
.icon { width: 24px; height: 24px; }
.feature-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--sage-100); color: var(--sage-800); flex: none;
}
.feature-grid { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); }
.feature-grid-3 { grid-template-columns: repeat(3, 1fr); }
.feature-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .feature-grid-3, .feature-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid-3, .feature-grid-4 { grid-template-columns: 1fr; } }
.feature h3 { margin: 1rem 0 0.4rem; font-size: 1.25rem; }
.feature p { color: var(--ink-2); margin: 0; font-size: 0.98rem; }
.offer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.offer-list li {
  display: flex; gap: 1rem; align-items: flex-start; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem;
}
.offer-list h3 { font-size: 1.2rem; margin: 0.2rem 0 0.3rem; }
.offer-list h3 a { color: var(--ink); text-decoration: none; }
.offer-list h3 a:hover { text-decoration: underline; }
.offer-list p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }

/* ---- Steps ---- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2rem); counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { background: var(--paper); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--sage-100); }
.step-num {
  font-family: var(--font-head); font-style: italic; font-size: 2.4rem; line-height: 1;
  color: var(--terracotta); display: block; margin-bottom: 0.75rem;
}
.steps h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }

/* ---- Pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1060px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: 0.25rem;
}
.price-card h2, .price-card h3 { font-size: 1.3rem; margin: 0; }
.price-card p { color: var(--ink-2); font-size: 0.97rem; }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.price-card .tick-list { font-size: 0.95rem; }
.price-card.is-featured { border-color: var(--sage-500); box-shadow: 0 0 0 1px var(--sage-500), var(--shadow-s); }
.price-line { margin: 0.4rem 0 0.75rem; }
.price-amount { font-family: var(--font-head); font-size: 2rem; color: var(--ink); }
.price-per { color: var(--muted); font-size: 0.92rem; }
.price-tbc { font-size: 0.95rem; }

/* ---- Instructor ---- */
.instructor { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 860px) { .instructor { grid-template-columns: 1fr; } .instructor-media { max-width: 360px; } }
.instructor-photo { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-l); object-fit: cover; }
.instructor-photo-placeholder {
  display: grid; place-content: center; justify-items: center; gap: 1rem;
  background: var(--sage-100); color: var(--sage-700); border: 2px dashed var(--sage-300);
}
.instructor-photo-placeholder svg { width: 96px; height: 96px; }
.instructor-role { color: var(--terracotta-700); font-weight: 600; margin-top: -0.4rem; }
.facts { display: grid; gap: 0.9rem; margin: 1.5rem 0; }
.facts div { border-left: 3px solid var(--sage-300); padding-left: 1rem; }
.facts dt { font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0.15rem 0 0; }

/* ---- Quotes ---- */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.quote-card { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.quote-card blockquote { margin: 0 0 1rem; font-family: var(--font-head); font-size: 1.15rem; line-height: 1.5; }
.quote-card figcaption { font-weight: 600; }
.quote-card figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; }

/* ---- FAQ accordion ---- */
.faq-list { display: grid; gap: 0.75rem; margin-bottom: 1.5rem; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); }
.section-tint .faq-item { background: var(--cream); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1rem 3rem 1rem 1.25rem; position: relative; border-radius: var(--radius-s);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; position: absolute; right: 1.25rem; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--sage-700); border-bottom: 2px solid var(--sage-700); transform: rotate(45deg); transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-q { display: inline; font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
.faq-a { padding: 0 1.25rem 1.1rem; color: var(--ink-2); }
.faq-a p:last-child { margin-bottom: 0; }
.faq-group { margin-bottom: 2.5rem; }
.faq-group h2 { font-size: 1.6rem; }

/* ---- CTA band ---- */
.cta-band { background: var(--sage-800); color: #f6f3ea; }
.cta-band h2 { color: #fff; margin-bottom: 0.3em; }
.cta-band .lead { color: #e7eadf; margin: 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band .btn-row { margin: 0; }
.cta-band .btn-primary { background: var(--paper); color: var(--sage-800); }
.cta-band .btn-primary:hover { background: #fff; color: var(--ink); }
.cta-band .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.cta-band .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.cta-band :focus-visible { outline-color: #f3d9a4; }

/* ---- Notes, lists ---- */
.note { background: var(--sand); border-radius: var(--radius-s); padding: 1rem 1.25rem; margin: 1.5rem 0; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note-safety { background: var(--sage-50); border-left: 4px solid var(--sage-500); }
.note-warning { background: #fbefe4; border-left: 4px solid var(--terracotta); }
.note-success { background: #eaf2e6; border-left: 4px solid var(--success); }
.note-quiet { background: transparent; border: 1px dashed var(--line); padding: 0.6rem 0.9rem; }
.tick-list, .dash-list { list-style: none; padding: 0; }
.tick-list li { position: relative; padding-left: 1.75rem; margin-bottom: 0.55rem; }
.tick-list li::before {
  content: ''; position: absolute; left: 0.15rem; top: 0.45em; width: 0.9rem; height: 0.5rem;
  border-left: 2px solid var(--sage-700); border-bottom: 2px solid var(--sage-700); transform: rotate(-45deg);
}
.dash-list li { position: relative; padding-left: 1.25rem; margin-bottom: 0.45rem; }
.dash-list li::before { content: ''; position: absolute; left: 0; top: 0.8em; width: 0.6rem; height: 2px; background: var(--terracotta); }
.numbered li { margin-bottom: 0.5rem; padding-left: 0.25rem; }
.sources { margin: 2rem 0 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--paper); font-size: 0.93rem; }
.sources h2 { margin-bottom: 0.5rem; }
.sources ul { margin: 0; padding-left: 1.1rem; }

/* ---- Class page ---- */
.quick-facts { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.quick-facts li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0.7rem 0.9rem; display: flex; flex-direction: column; }
.qf-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.format-steps { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: fmt; }
@media (max-width: 900px) { .format-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .format-steps { grid-template-columns: 1fr; } }
.format-steps li { counter-increment: fmt; background: var(--cream); border-radius: var(--radius); padding: 1.25rem; border-top: 3px solid var(--sage-300); }
.format-steps li::before { content: counter(fmt, decimal-leading-zero); font-family: var(--font-head); color: var(--terracotta); font-size: 1.1rem; }
.format-steps h3 { font-size: 1.15rem; margin: 0.35rem 0; }
.format-steps p { margin: 0; color: var(--ink-2); font-size: 0.96rem; }
.times-box { background: var(--cream); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.times-box h3 { font-size: 1.2rem; }
.session-times { list-style: none; padding: 0; margin: 0 0 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.session-times li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.9rem; font-size: 0.95rem; }
.session-day { font-weight: 600; }
.session-dur { color: var(--muted); }
.local-time { display: inline-block; color: var(--muted); font-size: 0.85em; margin-left: 0.25em; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 760px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.detail-card h3 { display: flex; align-items: center; gap: 0.75rem; font-size: 1.25rem; }
.detail-card .feature-icon { width: 40px; height: 40px; }
.detail-card p { color: var(--ink-2); font-size: 0.98rem; }
.detail-sub { font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 1rem 0 0.5rem; }
.related-posts-title { margin-top: 3rem; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
th, td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--sand); font-weight: 600; font-size: 0.88rem; letter-spacing: 0.03em; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.planner td { height: 2.6rem; min-width: 5rem; }

/* ---- Timetables ---- */
.week-grid { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.75rem; }
@media (max-width: 1000px) { .week-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .week-grid { grid-template-columns: repeat(2, 1fr); } }
.week-day { background: var(--cream); border-radius: var(--radius-s); padding: 1rem; }
.week-day h3 { font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; margin-bottom: 0.5rem; }
.week-day ul { list-style: none; padding: 0; margin: 0; font-size: 0.92rem; }
.week-day li { margin-bottom: 0.5rem; }
.week-day time { display: block; font-weight: 600; }
.schedule { display: grid; gap: 1rem; }
.schedule-day { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; align-items: start; }
.schedule-day h2 { margin: 0.35rem 0 0; }
@media (max-width: 640px) { .schedule-day { grid-template-columns: 1fr; } }
.schedule-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.schedule-item { display: grid; grid-template-columns: 8rem 1fr auto; gap: 1rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.schedule-item:last-child { border-bottom: 0; }
.schedule-time, .schedule-class { display: flex; flex-direction: column; }
.schedule-time time { font-weight: 600; font-size: 1.05rem; }
.schedule-class a { font-weight: 600; text-decoration: none; color: var(--ink); }
.schedule-class a:hover { text-decoration: underline; }
@media (max-width: 520px) { .schedule-item { grid-template-columns: 1fr auto; } .schedule-time { grid-column: 1 / -1; flex-direction: row; gap: 0.6rem; align-items: baseline; } }

/* ---- Misc page parts ---- */
.topic-nav ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.topic-nav a, .link-pills a {
  display: inline-block; padding: 0.45rem 0.95rem; border-radius: 999px; background: var(--paper);
  border: 1px solid var(--line); text-decoration: none; font-size: 0.93rem; color: var(--ink-2);
}
.topic-nav a:hover, .link-pills a:hover { border-color: var(--sage-500); color: var(--sage-800); }
.link-pills { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 0; }
@media (max-width: 760px) { .glossary { grid-template-columns: 1fr; } }
.glossary-item { background: var(--cream); border-radius: var(--radius-s); padding: 1rem 1.25rem; }
.glossary dt { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 0.25rem; }
.glossary dd { margin: 0; }
.glossary dd p { margin-bottom: 0.4rem; }
.library-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.pagination ul { list-style: none; display: flex; gap: 0.5rem; padding: 0; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; }
.pagination span[aria-current] { background: var(--sage-800); color: #fff; border-color: var(--sage-800); }

/* ---- Articles and policies ---- */
.article-header { padding-top: clamp(24px, 4vw, 48px); }
.article-header h1 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.3rem); }
.article-media { margin: 1.5rem auto clamp(2rem, 4vw, 3rem); }
.article-media img { width: 100%; border-radius: var(--radius-l); aspect-ratio: 3 / 2; max-height: 640px; object-fit: cover; }
.article-layout, .legal-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: clamp(2rem, 5vw, 4rem); justify-content: center; padding-bottom: var(--section); }
.legal-layout { padding-bottom: 0; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: 0.92rem; }
.toc ol { padding-left: 1.1rem; margin: 0; }
.toc li { margin-bottom: 0.45rem; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--sage-800); text-decoration: underline; }
@media (max-width: 960px) {
  .article-layout, .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 1rem 1.25rem; }
}
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); }
.prose h3 { margin-top: 1.8em; font-size: 1.3rem; }
.prose section:first-child h2 { margin-top: 0; }
.prose li { margin-bottom: 0.45rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose .note { font-size: 1rem; }
.prose table { font-size: 0.95rem; }

/* ---- Forms ---- */
.form { display: grid; gap: 1.25rem; }
.form-step { border: 0; padding: 0 0 1.75rem; margin: 0 0 0.5rem; border-bottom: 1px solid var(--line); display: grid; gap: 1.1rem; min-width: 0; }
.form-step:last-of-type { border-bottom: 0; }
.form-step > legend { font-family: var(--font-head); font-size: 1.45rem; padding: 0; margin-bottom: 0.9rem; }
.step-label { display: block; font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--terracotta-700); }
.field { display: grid; gap: 0.4rem; min-width: 0; align-content: start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
label, .label { font-weight: 600; font-size: 0.97rem; }
.optional { font-weight: 400; color: var(--muted); }
input[type='text'], input[type='email'], input[type='tel'], input[type='date'], input[type='search'], input[type='password'], select, textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #b9b0a1; border-radius: var(--radius-s);
}
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
input:focus, select:focus, textarea:focus { border-color: var(--sage-700); }
[aria-invalid='true'] { border-color: var(--danger) !important; }
.hint { font-size: 0.88rem; color: var(--muted); margin: 0; }
.field-error { color: var(--danger); font-weight: 600; font-size: 0.92rem; margin: 0; }
.field-error::before { content: '! '; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; }
.field-check input { width: 22px; height: 22px; margin: 0.15rem 0 0; accent-color: var(--sage-800); }
.field-check label { font-weight: 400; }
.form-error-summary { border: 2px solid var(--danger); background: #fbefe4; border-radius: var(--radius-s); padding: 1rem 1.25rem; }
.form-error-summary h2 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.form-error-summary ul { margin: 0; }
.form-error-summary a { color: var(--danger); font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
@media (max-width: 760px) { .choice-grid { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice label {
  display: grid; gap: 0.25rem; height: 100%; padding: 1rem 1.1rem; border-radius: var(--radius);
  border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; font-weight: 400;
}
.choice label strong { font-weight: 600; }
.choice-icon { color: var(--sage-700); }
.choice input:checked + label { border-color: var(--sage-700); background: var(--sage-50); box-shadow: 0 0 0 1px var(--sage-700); }
.choice input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.slot-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.slot-fieldset legend { margin-bottom: 0.5rem; }
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.slot label { display: grid; padding: 0.7rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: #fff; cursor: pointer; font-weight: 600; }
.slot label span { font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.slot input:checked + label { border-color: var(--sage-700); background: var(--sage-50); box-shadow: 0 0 0 1px var(--sage-700); }
.slot input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.slot input:disabled + label { opacity: 0.55; cursor: not-allowed; text-decoration: line-through; }
.slot-message { color: var(--ink-2); background: var(--sand); padding: 0.75rem 1rem; border-radius: var(--radius-s); margin: 0; }
.date-chips ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.date-chips button {
  min-height: 40px; padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); font: 500 0.9rem var(--font-body); cursor: pointer; color: var(--ink-2);
}
.date-chips button:hover, .date-chips button[aria-pressed='true'] { border-color: var(--sage-700); color: var(--sage-800); background: var(--sage-50); }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 960px) { .booking-layout { grid-template-columns: 1fr; } }
.booking-main { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.25rem, 3vw, 2.25rem); min-width: 0; }
.booking-aside { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 960px) { .booking-aside { position: static; } }
.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.aside-card p:last-child { margin-bottom: 0; }
.mini-steps { padding-left: 1.2rem; margin: 0; font-size: 0.95rem; }
.mini-steps li { margin-bottom: 0.45rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.75rem; }
.contact-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.contact-list .icon { color: var(--sage-700); flex: none; margin-top: 2px; }
.search-form { display: flex; gap: 0.6rem; margin-top: 1.5rem; flex-wrap: wrap; }
.search-form input { flex: 1 1 240px; }
.search-results { list-style: none; padding: 0; display: grid; gap: 1rem; }
.search-results li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 1rem 1.25rem; }
.search-results a { font-family: var(--font-head); font-size: 1.2rem; }
.search-results p { margin: 0.25rem 0 0; color: var(--ink-2); font-size: 0.95rem; }
.search-results mark { background: #fbefcf; color: inherit; }

/* ---- Thank-you and booking status ---- */
.summary-list { display: grid; gap: 0; margin: 1.5rem 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.summary-list div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.8rem 1.2rem; border-bottom: 1px solid var(--line); }
.summary-list div:last-child { border-bottom: 0; }
.summary-list dt { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.summary-list dd { margin: 0; }
@media (max-width: 520px) { .summary-list div { grid-template-columns: 1fr; gap: 0.1rem; } }
.status { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 0.88rem; font-weight: 600; }
.status-pending { background: #fbefcf; color: #6b4e12; }
.status-confirmed { background: #e2efdc; color: #2f5329; }
.status-cancelled { background: #f3dfd8; color: #7a2c1f; }
.cancel-box { margin-top: 2rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }

/* ---- Footer ---- */
.site-footer { background: #2f3a29; color: #e9e6dc; padding: clamp(48px, 6vw, 80px) 0 2rem; font-size: 0.95rem; }
.site-footer a { color: #f3efe4; }
.site-footer a:hover { color: #f3d9a4; }
.site-footer :focus-visible { outline-color: #f3d9a4; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem 2rem; }
.footer-newsletter { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 2rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.brand-footer { color: #fff; margin-bottom: 1rem; }
.brand-footer:hover { color: #fff; }
.footer-brand p { color: #d8d4c8; max-width: 26rem; }
.footer-heading { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #cbd3bf; margin-bottom: 1rem; }
.footer-col ul, .footer-contact, .social-links { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a, .footer-contact a, .social-links a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-contact li { margin-bottom: 0.35rem; }
.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.site-footer .placeholder { background: #4a4430; color: #f6e7bd; border-bottom-color: #c9a86a; }
.newsletter-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 2rem; align-items: end; }
.newsletter-form > h2, .newsletter-form > p, .newsletter-form .form-error-summary { grid-column: 1 / -1; margin: 0; }
.newsletter-form label { color: #f3efe4; }
.newsletter-form .field-check { grid-column: 1 / -1; }
.newsletter-form .field-check label { font-size: 0.9rem; }
.newsletter-form .btn { justify-self: start; }
.newsletter-form .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.newsletter-form .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.newsletter-form .field-error { color: #ffb4a4; }
.newsletter-form .form-error-summary { background: #4a2a22; border-color: #ffb4a4; }
.newsletter-form .form-error-summary a, .newsletter-form .form-error-summary h2 { color: #ffd9cf; }
.newsletter-form .hint, .site-footer .small { color: #cfcabd; }
@media (max-width: 640px) { .newsletter-form { grid-template-columns: 1fr; } }
.link-button { color: inherit; }
.footer-col .link-button { text-decoration: none; color: #f3efe4; }
.footer-col .link-button:hover { text-decoration: underline; color: #f3d9a4; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; color: #cfcabd; font-size: 0.88rem; }
.footer-bottom p { margin: 0; }

/* ---- Cookie banner and dialog ---- */
.cookie-banner { position: fixed; inset: auto 0 0 0; z-index: 60; padding: 0 var(--gutter) var(--gutter); pointer-events: none; }
.cookie-banner-inner {
  pointer-events: auto; max-width: 860px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 10px 40px rgba(45, 44, 41, 0.18); padding: 1.25rem 1.5rem;
}
.cookie-banner-inner p { font-size: 0.95rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-dialog { border: 0; border-radius: var(--radius-l); padding: 0; max-width: 560px; width: calc(100% - 2 * var(--gutter)); box-shadow: 0 20px 60px rgba(45, 44, 41, 0.3); background: var(--paper); color: var(--ink); }
.cookie-dialog::backdrop { background: rgba(45, 44, 41, 0.45); }
.cookie-form { padding: 1.75rem; }
.cookie-form fieldset { border: 0; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: 0.75rem; }
.consent-row { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: start; background: var(--cream); padding: 0.9rem 1rem; border-radius: var(--radius-s); }
.consent-row input { width: 22px; height: 22px; margin-top: 0.15rem; accent-color: var(--sage-800); }
.consent-row label { display: grid; gap: 0.15rem; font-weight: 400; }
.consent-row label .small { color: var(--muted); }

/* ---- Admin ---- */
.admin { background: var(--cream); }
.admin-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.admin-header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; flex-wrap: wrap; }
.admin-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-left: auto; font-weight: 500; }
.admin-nav form { display: inline; }
.admin-main { padding: 2rem 0 4rem; }
.admin-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem; }
.admin-card.narrow { max-width: 460px; margin: 3rem auto; }
.admin-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.admin-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.admin-tabs a { padding: 0.4rem 0.9rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; background: var(--paper); font-size: 0.92rem; }
.admin-tabs a[aria-current] { background: var(--sage-800); color: #fff; border-color: var(--sage-800); }
.admin-table td { font-size: 0.93rem; }
.admin-actions { display: grid; gap: 0.4rem; min-width: 150px; }
.admin-actions summary { list-style: none; }
.admin-actions summary::-webkit-details-marker { display: none; }
.admin-actions details form { margin-top: 0.4rem; }
.admin-message { white-space: pre-wrap; max-width: 40ch; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.check-list li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: start; }
.check-state { display: inline-block; text-align: center; font-size: 0.8rem; font-weight: 700; border-radius: 999px; padding: 0.2rem 0.6rem; }
.is-ok .check-state { background: #e2efdc; color: #2f5329; }
.is-todo .check-state { background: #fbe1d6; color: #7a2c1f; }
.is-optional .check-state { background: var(--sand); color: var(--ink-2); }

/* ---- Motion preferences ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .card:hover { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---- Print ---- */
@media print {
  .site-header, .site-footer, .cookie-banner, .cta-band, .breadcrumbs, .btn, .toc { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section, .page-hero { padding: 12pt 0; }
  .section-tint { border: 0; }
  a { color: inherit; }
  .planner td { height: 28pt; }
}
