/* ═══════════════════════════════════════════════════════════════════════════
   FAZLEY — PUBLIC SITE
   Header, footer, page-builder blocks, catalogue cards, article layout,
   booking calendar and the help desk.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Ground ────────────────────────────────────────────────────────────── */

/* Flat paper. No ambient gradient wash — the page is held together by
   typography and rules, which is what makes it read as printed matter. */
body.site { background: var(--bg); }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 300;
  background: var(--brand);
  color: var(--brand-ink);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  font-size: var(--step--1);
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ── Announcement bar ──────────────────────────────────────────────────── */

.announce {
  background: var(--brand);
  color: var(--brand-ink);
  font-size: var(--step--2);
  font-weight: 550;
  text-align: center;
  padding: 0.5rem 1rem;
  letter-spacing: 0.01em;
}
.announce a { text-decoration: underline; text-underline-offset: 2px; }

/* ── Header ────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--base), background var(--base);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.site-header.is-static { position: relative; }

.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 4.4rem; }

.brand-lockup { display: inline-flex; align-items: center; gap: 0.6rem; flex: 0 0 auto; }
.brand-lockup img { height: 1.9rem; width: auto; }
.brand-mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--text);
  font-weight: 500;
}
.brand-mark b { font-weight: 500; }
/* .brand-dot now lives in brand.css — every layout loads that, this one only
   the public site, and the mark was invisible in the control room as a result. */

.primary-nav { display: flex; align-items: center; gap: 0.15rem; margin-left: auto; }
.nav-link {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: var(--step--1);
  color: var(--text-2);
  font-weight: 500;
  transition: color var(--fast), background var(--fast);
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.22rem;
  height: 1.5px;
  background: var(--brand);
  border-radius: 2px;
}

.nav-group { position: relative; }
.nav-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 12rem;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--fast);
  z-index: 10;
}
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu a { display: block; padding: 0.5rem 0.7rem; border-radius: 7px; font-size: var(--step--1); color: var(--text-2); }
.nav-menu a:hover { background: var(--surface-2); color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; flex: 0 0 auto; }

.icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.95rem;
  transition: all var(--fast);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }

.nav-toggle { display: none; }
@media (max-width: 940px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-grid; }
  .header-cta { display: none; }
  /* The nav normally carries the auto margin that pushes everything right.
     With it hidden the actions have to anchor themselves. */
  .header-actions { margin-left: auto; }
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--bg);
  padding: 5rem 1.5rem 2rem;
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform var(--base);
}
.mobile-nav.is-open { transform: none; }

/* Direct children only. Scoping this to `a` alone would also catch the buttons
   at the foot of the menu and strip their horizontal padding, leaving the
   border sitting on the text. */
.mobile-nav > a {
  display: block;
  padding: 0.9rem 0;
  font-size: var(--step-2);
  font-family: var(--font-display);
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

/* Roomier than the desktop button: a comfortable thumb target, and enough
   breathing room that the label never crowds the edge. */
.mobile-nav .btn {
  padding: 0.9em 1.75em;
  font-size: var(--step-0);
  min-height: 2.9rem;
}

.mobile-nav .close {
  position: absolute;
  top: 1.4rem;
  right: 1.5rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--muted);
}

/* ── Footer ────────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-about { max-width: 26rem; color: var(--muted); font-size: var(--step--1); line-height: 1.7; }
.footer-col h4 {
  font-size: var(--step--2);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: 1rem;
}
.footer-col a { display: block; padding: 0.32rem 0; font-size: var(--step--1); color: var(--text-2); transition: color var(--fast); }
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--step--2);
  color: var(--faint);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-legal a:hover { color: var(--text-2); }

.social-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.social-row a {
  width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.8rem;
  transition: all var(--fast);
}
.social-row a:hover { color: var(--brand); border-color: var(--brand-line); transform: translateY(-2px); }

.newsletter-form { display: flex; gap: 0.5rem; margin-top: 1.1rem; max-width: 22rem; }
.newsletter-form .input { flex: 1; }

/* ═══ PAGE-BUILDER BLOCKS ══════════════════════════════════════════════ */

/* Hero — an editorial opening spread. Asymmetric by default, ruled off at the
   bottom, with the supporting copy set in a narrow measure beside the headline
   rather than centred underneath it. */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.hero-full { min-height: min(78vh, 820px); display: flex; align-items: center; }
.hero-inner { position: relative; max-width: 62rem; }
.hero.is-center .hero-inner { margin-inline: auto; text-align: center; }
.hero.is-center .eyebrow { justify-content: center; }

.hero h1 {
  font-size: var(--step-6);
  margin-block: 1.25rem 0;
  max-width: 20ch;
  letter-spacing: -0.032em;
}
.hero.is-center h1 { margin-inline: auto; }

/* The rule between headline and standfirst is the whole device. */
.hero-sub {
  position: relative;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem);
  color: var(--text-2);
  max-width: 34rem;
  line-height: 1.65;
}
.hero.is-center .hero-sub { margin-inline: auto; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.hero.is-center .hero-actions { justify-content: center; }

/* Trust marks set as a ruled row of small caps, not floating pills. */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2rem;
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--2);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.hero.is-center .hero-badges { justify-content: center; }

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } }
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.hero-visual img { width: 100%; }

/* Marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee var(--speed, 34s) linear infinite; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.marquee-track span::after { content: '◆'; font-size: 0.5em; color: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Stats */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat-cell { background: var(--surface); padding: 1.75rem 1.5rem; }
.stat-value { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; color: var(--text); letter-spacing: -0.03em; }
.stat-value sup { font-size: 0.45em; color: var(--brand); vertical-align: super; margin-left: 0.1em; }
.stat-label { font-size: var(--step--2); color: var(--muted); margin-top: 0.6rem; letter-spacing: 0.03em; }

/* Features — numbered entries separated by rules, the way a printed capability
   list is set. No card chrome, no tinted icon tiles. */
.feature-card {
  position: relative;
  padding: 1.6rem 0 0;
  border-top: 2px solid var(--text);
  background: none;
  transition: border-color var(--base);
}
.feature-card:hover { border-top-color: var(--brand); }
.feature-index {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--brand);
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}
.feature-icon {
  display: block;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1;
}
.feature-card h3 { font-size: var(--step-1); margin-bottom: 0.5rem; letter-spacing: -0.015em; }
.feature-card p { font-size: var(--step--1); color: var(--muted); line-height: 1.7; }

/* Split */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.is-reverse .split-media { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.is-reverse .split-media { order: 0; } }
.split-media img { border-radius: var(--radius-lg); border: 1px solid var(--line); width: 100%; }
.split-bullets { margin-top: 1.5rem; display: grid; gap: 0.7rem; }
.split-bullets li { display: flex; gap: 0.7rem; font-size: var(--step--1); color: var(--text-2); }
.split-bullets li::before { content: '→'; color: var(--brand); flex: 0 0 auto; }

/* Showcase cards */
.showcase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; }

.showcase-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: all var(--base);
}
.showcase-card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: var(--shadow); }
.showcase-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  position: relative;
  overflow: hidden;
}
.showcase-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.showcase-card:hover .showcase-thumb img { transform: scale(1.04); }
.showcase-thumb-empty {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--faint);
}
.showcase-flags { position: absolute; top: 0.75rem; left: 0.75rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.showcase-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; gap: 0.6rem; }
.showcase-body h3 { font-size: var(--step-1); letter-spacing: -0.02em; }
.showcase-body p { font-size: var(--step--1); color: var(--muted); line-height: 1.6; flex: 1; }
.showcase-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-top: 0.85rem; border-top: 1px solid var(--line); font-size: var(--step--2); color: var(--faint); }
.showcase-price { font-family: var(--font-display); font-size: var(--step-1); color: var(--brand); }

/* Article cards */
.post-card { display: flex; flex-direction: column; gap: 0.85rem; }
.post-card-media { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.03); }
.post-card h3 { font-size: var(--step-1); line-height: 1.25; transition: color var(--fast); }
.post-card:hover h3 { color: var(--brand); }
.post-card-meta { display: flex; align-items: center; gap: 0.6rem; font-size: var(--step--2); color: var(--faint); }
.post-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.post-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
@media (max-width: 800px) { .post-featured { grid-template-columns: 1fr; } }
.post-featured h2 { font-size: var(--step-3); margin-block: 0.7rem 0.85rem; }

/* Testimonials */
.quote-card { padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 1.25rem; }
.quote-mark { font-family: var(--font-display); font-size: 3rem; line-height: 0.6; color: var(--brand); opacity: 0.5; }
.quote-card blockquote { font-size: var(--step-0); line-height: 1.65; color: var(--text-2); flex: 1; }
.quote-author { display: flex; align-items: center; gap: 0.75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.quote-author strong { display: block; font-size: var(--step--1); }
.quote-author span { font-size: var(--step--2); color: var(--muted); }
.stars { color: var(--brand); display: inline-flex; gap: 2px; align-items: center; }

/* Logos */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.logo-wall > * { background: var(--surface); display: grid; place-items: center; padding: 1.75rem 1rem; min-height: 6rem; }
.logo-wall img { max-height: 2.2rem; width: auto; filter: grayscale(1); opacity: 0.55; transition: all var(--base); }
.logo-wall a:hover img { filter: none; opacity: 1; }
.logo-wall span { font-family: var(--font-display); font-size: var(--step-1); color: var(--faint); }

/* Team */
.team-card { text-align: center; }
.team-card .avatar { margin-inline: auto; margin-bottom: 0.9rem; }
.team-card h3 { font-size: var(--step-0); }
.team-card p { font-size: var(--step--2); color: var(--muted); }

/* Pricing */
.price-card { padding: 1.9rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 1.1rem; }
.price-card.is-featured { border-color: var(--brand-line); background: linear-gradient(180deg, var(--brand-soft), transparent 40%), var(--surface); }
.price-amount { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; letter-spacing: -0.03em; }
.price-amount span { font-family: var(--font-sans); font-size: var(--step--1); color: var(--muted); letter-spacing: 0; }
.price-features { display: grid; gap: 0.55rem; flex: 1; }
.price-features li { display: flex; gap: 0.6rem; font-size: var(--step--1); color: var(--text-2); }
.price-features li::before { content: '✓'; color: var(--brand); }

/* FAQ */
.faq-list { display: grid; gap: 0.75rem; max-width: 48rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.faq-item summary {
  padding: 1.15rem 1.35rem;
  cursor: pointer;
  font-weight: 550;
  font-size: var(--step-0);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color var(--fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--brand); font-size: 1.3rem; line-height: 1; transition: transform var(--base); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--brand); }
.faq-answer { padding: 0 1.35rem 1.35rem; color: var(--text-2); font-size: var(--step--1); line-height: 1.7; }

/* Gallery */
.gallery-grid { display: grid; gap: 0.85rem; }
.gallery-grid figure { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.gallery-grid figcaption { padding: 0.6rem 0.85rem; font-size: var(--step--2); color: var(--muted); background: var(--surface-2); }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; display: grid; gap: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0.3rem; top: 0.5rem; bottom: 0.5rem; width: 1px; background: var(--line-strong); }
.timeline-item { position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.78rem;
  top: 0.55rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline-date { font-family: var(--font-mono); font-size: var(--step--2); color: var(--brand); letter-spacing: 0.06em; }
.timeline-item h3 { font-size: var(--step-0); margin-block: 0.3rem; }
.timeline-item p { font-size: var(--step--1); color: var(--muted); }

/* CTA */
.cta-panel {
  padding: clamp(2.25rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(140deg, color-mix(in srgb, var(--brand) 12%, var(--surface)), var(--surface) 60%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-panel h2 { font-size: var(--step-4); }
.cta-panel .hero-actions { justify-content: center; }
.cta-accent { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.cta-accent h2, .cta-accent p, .cta-accent .eyebrow { color: var(--brand-ink); }
.cta-accent .eyebrow { opacity: 0.7; }

/* Newsletter block */
.newsletter-block { text-align: center; max-width: 32rem; margin-inline: auto; }
.newsletter-block .newsletter-form { margin-inline: auto; }

/* Video */
.video-embed { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface-2); }
.video-embed iframe { width: 100%; height: 100%; border: 0; }

/* ═══ CATALOGUE PAGES ══════════════════════════════════════════════════ */

.page-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(1.75rem, 3vw, 2.75rem); }
.page-head h1 { font-size: var(--step-5); margin-block: 0.85rem 1rem; }
.page-head .lede { max-width: 44rem; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: var(--step--2); color: var(--faint); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs li + li::before { content: '/'; margin-right: 0.5rem; opacity: 0.5; }
.breadcrumbs li { display: flex; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 0;
  border-block: 1px solid var(--line);
  margin-bottom: 2.5rem;
}
.filter-bar form { display: contents; }
.filter-search { position: relative; min-width: 13rem; flex: 1 1 13rem; max-width: 22rem; }
.filter-search .input { padding-left: 2.25rem; }
.filter-search::before { content: '⌕'; position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--faint); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 2.3rem; height: 2.3rem;
  display: inline-grid; place-items: center;
  padding-inline: 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--text-2);
  transition: all var(--fast);
}
.pagination a:hover { border-color: var(--brand-line); color: var(--brand); }
.pagination .is-current { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.pagination .is-disabled { opacity: 0.35; pointer-events: none; }

/* ── Article ───────────────────────────────────────────────────────────── */

.article-head { max-width: 46rem; padding-block: clamp(2.5rem, 6vw, 4.5rem) 2rem; }
.article-head h1 { font-size: var(--step-5); margin-block: 1rem 1.25rem; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; font-size: var(--step--2); color: var(--muted); }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); margin-bottom: clamp(2rem, 4vw, 3rem); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; } .article-aside { display: none; } }
.article-aside { position: sticky; top: 6rem; font-size: var(--step--2); }
.article-aside h4 { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.85rem; }
.toc a { display: block; padding: 0.32rem 0 0.32rem 0.75rem; border-left: 2px solid var(--line); color: var(--muted); transition: all var(--fast); }
.toc a:hover, .toc a.is-active { color: var(--brand); border-color: var(--brand); }
.toc .lvl-3 { padding-left: 1.5rem; }

.share-row { display: flex; gap: 0.4rem; margin-top: 1.75rem; }

/* Answer-first summary. Deliberately plain — it has to survive being lifted
   out of the page and pasted into a generated answer. */
.article-takeaways {
  border-left: 2px solid var(--brand);
  padding: 0.25rem 0 0.25rem 1.35rem;
  margin-bottom: 2.25rem;
}
.article-takeaways h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}
.article-takeaways .takeaway-lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.article-takeaways ul { display: grid; gap: 0.5rem; }
.article-takeaways li {
  position: relative;
  padding-left: 1.1rem;
  font-size: var(--step--1);
  color: var(--text-2);
  line-height: 1.65;
}
.article-takeaways li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.citation-block {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.citation-block h3 {
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.citation-block p { font-size: var(--step--2); color: var(--text-2); line-height: 1.7; }

.author-box { display: flex; gap: 1rem; align-items: center; padding: 1.35rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-block: 2.5rem 2rem; }

.comment-list { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.comment { display: flex; gap: 0.9rem; }
.comment-body { flex: 1; }
.comment-body header { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.25rem; }
.comment-body strong { font-size: var(--step--1); }
.comment-body time { font-size: var(--step--2); color: var(--faint); }
.comment-body .prose { font-size: var(--step--1); }

/* ── Detail pages ──────────────────────────────────────────────────────── */

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 960px) { .detail-layout { grid-template-columns: 1fr; } }
.detail-aside { position: sticky; top: 6rem; display: grid; gap: 1rem; }

.spec-list { display: grid; gap: 0; }
.spec-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.spec-list > div:last-child { border-bottom: 0; }
.spec-list dt { color: var(--muted); }
.spec-list dd { color: var(--text); text-align: right; font-weight: 500; }

.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.metric-grid > div { background: var(--surface); padding: 1.1rem; }
.metric-grid dt { font-size: var(--step--2); color: var(--muted); }
.metric-grid dd { font-family: var(--font-display); font-size: var(--step-2); margin-top: 0.2rem; }

.gallery-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0.85rem; margin-top: 2rem; }
.gallery-strip img { border-radius: var(--radius-sm); border: 1px solid var(--line); width: 100%; }

/* ── Booking ───────────────────────────────────────────────────────────── */

.booking-layout { display: grid; grid-template-columns: 19rem minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
@media (max-width: 860px) { .booking-layout { grid-template-columns: 1fr; } }
.booking-side { padding: 1.9rem; border-right: 1px solid var(--line); background: var(--surface-2); }
.booking-main { padding: 1.9rem; }

.cal { --cell: 2.65rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.cal-head h3 { font-size: var(--step-0); }
.cal-weekdays, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3rem; }
.cal-weekdays span { text-align: center; font-size: var(--step--2); color: var(--faint); padding-bottom: 0.4rem; font-family: var(--font-mono); }
.cal-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: var(--step--1);
  border: 1px solid transparent;
  color: var(--faint);
  position: relative;
  transition: all var(--fast);
}
.cal-day.is-available { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); cursor: pointer; }
.cal-day.is-available:hover { border-color: var(--brand); color: var(--brand); }
.cal-day.is-selected { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.cal-day.is-today::after { content: ''; position: absolute; bottom: 5px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr)); gap: 0.55rem; }
.slot {
  padding: 0.7rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  text-align: center;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: all var(--fast);
}
.slot:hover { border-color: var(--brand); color: var(--brand); }
.slot input { position: absolute; opacity: 0; }
.slot:has(input:checked) { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }

.booking-type-card { display: flex; gap: 1.25rem; align-items: center; padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: all var(--base); }
.booking-type-card:hover { border-color: var(--brand-line); transform: translateX(4px); }
.booking-type-dot { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; flex: 0 0 auto; }

/* ── Help desk ─────────────────────────────────────────────────────────── */

.ticket-thread { display: grid; gap: 1rem; }
.ticket-msg { padding: 1.15rem 1.35rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.ticket-msg.is-staff { border-color: var(--brand-line); background: linear-gradient(180deg, var(--brand-soft), transparent 70%), var(--surface); }
.ticket-msg header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; font-size: var(--step--2); color: var(--muted); }
.ticket-msg header strong { color: var(--text); font-size: var(--step--1); }

.status-open { color: var(--info); } .status-pending { color: var(--warn); }
.status-answered { color: var(--brand); } .status-resolved, .status-closed { color: var(--ok); }

/* ── Search results ────────────────────────────────────────────────────── */

.result-row { display: flex; gap: 1.1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.result-row:hover h3 { color: var(--brand); }
.result-thumb { width: 5rem; height: 3.6rem; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); flex: 0 0 auto; background: var(--surface-2); }

/* ── Error & maintenance ───────────────────────────────────────────────── */

.state-page { min-height: 68vh; display: grid; place-items: center; text-align: center; padding-block: 4rem; }
.state-code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 11rem); line-height: 0.9; color: var(--brand); opacity: 0.22; letter-spacing: -0.05em; }
.state-page h1 { font-size: var(--step-3); margin-block: 1rem 0.75rem; }

/* ── Auth: the secondary route ─────────────────────────────────────────── */

/* The label sits on the rule, so the alternative action reads as a genuine
   second option rather than a footnote under the form. */
.auth-alt {
  position: relative;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.auth-alt-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding-inline: 0.75rem;
  background: var(--bg);
  font-size: var(--step--2);
  color: var(--muted);
}

/* ── Cookie banner ─────────────────────────────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 190;
  max-width: 26rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  font-size: var(--step--1);
}
