/**
 * WBD 2026 — Design tokens, typography, custom utilities.
 * Loaded after app.css to override defaults.
 */

@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Playfair+Display:ital,wght@0,400..800;1,400..700&display=swap');

:root {
  /* WBD 2026 brand palette — navy / indigo / violet / ice white */
  --wbd-cream:  #F5F2FB; /* Soft Ice White — light bg + text on dark */
  --wbd-sand:   #E9E3F6; /* light violet secondary surface */
  --wbd-ink:    #002555; /* Deep Medical Navy — text + dark ink surfaces */
  --wbd-muted:  #5C6086;
  --wbd-line:   #DED5F0;
  /* Legacy 'teal' tokens -> navy / indigo (dark brand surfaces) */
  --wbd-teal:        #002555;
  --wbd-teal-deep:   #001A40;
  --wbd-teal-mid:    #291C74;
  --wbd-teal-soft:   #DCD3F0;
  /* Legacy 'coral' tokens -> Conference Violet (accents / highlights) */
  --wbd-coral:       #6E0DA8;
  --wbd-coral-deep:  #52077E;
  --wbd-coral-soft:  #E7D6F5;
  --wbd-sage:   #CFC7EA;
  --wbd-ochre:  #291C74;

  /* New semantic tokens */
  --wbd-navy:        #002555;
  --wbd-navy-deep:   #001A40;
  --wbd-indigo:      #291C74;
  --wbd-violet:      #6E0DA8;
  --wbd-violet-deep: #52077E;
  --wbd-violet-soft: #E7D6F5;
  --wbd-ice:         #F5F2FB;
  --wbd-ice-deep:    #E9E3F6;
  /* CTA neon green (primary). Secondary accent = violet (no orange). */
  --wbd-lime:        #19E6A0;
  --wbd-lime-deep:   #12C488;
  --wbd-flame:       #6E0DA8;
  --wbd-flame-deep:  #52077E;
  /* Preserved conference green (Banner 4 speaker gradient) */
  --wbd-green:       #0E4F4C;
  --wbd-green-deep:  #073431;
}

/* ---------- Reset overrides from theme base ---------- */
html,
:host,
body,
h1, h2, h3, h4, h5, h6,
code, kbd, samp, pre {
  font-family: 'Figtree', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

body.wbd-body {
  background: var(--wbd-cream) !important;
  color: var(--wbd-ink) !important;
  font-weight: 400 !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  -webkit-font-smoothing: antialiased;
}

body.wbd-body p { margin-bottom: 0 !important; }

/* Force native (non-smooth) scrolling. Belt + braces against any legacy CSS. */
html, body { scroll-behavior: auto !important; }

/* ---------- Custom logo sizing ---------- */
/* the_custom_logo() outputs <a class="custom-logo-link"><img class="custom-logo"></a>.
   Constrain by height so the natural image dimensions never leak into the layout. */
.wbd-logo { display: inline-flex; align-items: center; }
.wbd-logo .custom-logo-link {
  display: inline-flex !important;
  align-items: center;
  height: 100%;
  line-height: 0;
  background: transparent !important;
}
.wbd-logo .custom-logo {
  display: block !important;
  width: auto !important;
  object-fit: contain;
  max-width: none !important;
}
.wbd-logo--header { height: 40px; display: block; }
.wbd-logo--header .custom-logo { height: 40px !important; max-height: 40px; display: block; }
.wbd-logo--footer { height: 56px; }
.wbd-logo--footer .custom-logo { height: 56px !important; max-height: 56px; }
@media (max-width: 640px) {
  .wbd-logo--header { height: 34px; }
  .wbd-logo--header .custom-logo { height: 34px !important; max-height: 34px; }
}

/* ---------- GSAP animation reveal states ---------- */
/* Initial hidden state — replaced once GSAP animates in. */
[data-anim="fade-up"]   { opacity: 0; transform: translateY(24px); }
[data-anim="fade-in"]   { opacity: 0; }
[data-anim="hero-line"] { opacity: 0; transform: translateY(28px); }
.gsap-ready [data-anim] { will-change: transform, opacity; }
/* If JS doesn't run, reveal everything after 600ms so nothing stays invisible. */
@media (prefers-reduced-motion: reduce) {
  [data-anim] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Typography utilities ---------- */
.font-display {
  font-family: 'Figtree', system-ui, sans-serif !important;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.2;
}

.tracking-tightest { letter-spacing: -0.03em; }
.tracking-tighter  { letter-spacing: -0.02em; }
.tracking-label    { letter-spacing: 0.14em; }

/* ---------- Brand colors ---------- */
.bg-cream      { background-color: var(--wbd-cream) !important; }
.bg-sand       { background-color: var(--wbd-sand) !important; }
.bg-ink        { background-color: var(--wbd-ink) !important; }
.bg-teal       { background-color: var(--wbd-teal) !important; }
.bg-teal-deep  { background-color: var(--wbd-teal-deep) !important; }
.bg-teal-mid   { background-color: var(--wbd-teal-mid) !important; }
.bg-teal-soft  { background-color: var(--wbd-teal-soft) !important; }
.bg-coral      { background-color: var(--wbd-coral) !important; }
.bg-coral-deep { background-color: var(--wbd-coral-deep) !important; }
.bg-coral-soft { background-color: var(--wbd-coral-soft) !important; }
.bg-sage       { background-color: var(--wbd-sage) !important; }
.bg-ochre      { background-color: var(--wbd-ochre) !important; }

.text-cream  { color: var(--wbd-cream) !important; }
.text-sand   { color: var(--wbd-sand) !important; }
.text-ink    { color: var(--wbd-ink) !important; }
.text-muted  { color: var(--wbd-muted) !important; }
.text-teal       { color: var(--wbd-teal) !important; }
.text-teal-deep  { color: var(--wbd-teal-deep) !important; }
.text-coral      { color: var(--wbd-coral) !important; }
.text-coral-soft { color: var(--wbd-coral-soft) !important; }
.text-coral-deep { color: var(--wbd-coral-deep) !important; }
.text-sage       { color: var(--wbd-sage) !important; }
.text-ochre      { color: var(--wbd-ochre) !important; }

/* New brand tokens — explicit utilities (insurance against precompiled app.css) */
.bg-navy        { background-color: var(--wbd-navy) !important; }
.bg-navy-deep   { background-color: var(--wbd-navy-deep) !important; }
.bg-indigo      { background-color: var(--wbd-indigo) !important; }
.bg-violet      { background-color: var(--wbd-violet) !important; }
.bg-violet-deep { background-color: var(--wbd-violet-deep) !important; }
.bg-violet-soft { background-color: var(--wbd-violet-soft) !important; }
.bg-ice         { background-color: var(--wbd-ice) !important; }
.bg-ice-deep    { background-color: var(--wbd-ice-deep) !important; }
.bg-lime        { background-color: var(--wbd-lime) !important; }
.bg-lime-deep   { background-color: var(--wbd-lime-deep) !important; }
.bg-flame       { background-color: var(--wbd-flame) !important; }
.bg-flame-deep  { background-color: var(--wbd-flame-deep) !important; }
.bg-green       { background-color: var(--wbd-green) !important; }
.bg-green-deep  { background-color: var(--wbd-green-deep) !important; }

.text-navy   { color: var(--wbd-navy) !important; }
.text-indigo { color: var(--wbd-indigo) !important; }
.text-violet { color: var(--wbd-violet) !important; }
.text-ice    { color: var(--wbd-ice) !important; }
.text-lime   { color: var(--wbd-lime) !important; }
.text-flame  { color: var(--wbd-flame) !important; }

.border-navy   { border-color: var(--wbd-navy) !important; }
.border-violet { border-color: var(--wbd-violet) !important; }
.border-lime   { border-color: var(--wbd-lime) !important; }
.border-flame  { border-color: var(--wbd-flame) !important; }
.border-ice    { border-color: var(--wbd-ice) !important; }

/* Readability: accent text (violet #6E0DA8 / navy) is too dark to read on a
   dark surface, so accents flip to lime inside any dark/violet section. */
.bg-teal .text-coral,  .bg-teal-deep .text-coral,  .bg-teal-mid .text-coral,
.bg-ink .text-coral,   .bg-navy .text-coral,       .bg-navy-deep .text-coral,
.bg-indigo .text-coral,.bg-violet .text-coral,     .bg-violet-deep .text-coral,
.bg-coral .text-coral, .bg-coral-deep .text-coral, .bg-green .text-coral, .bg-green-deep .text-coral,
.bg-teal .text-coral-deep, .bg-ink .text-coral-deep, .bg-navy .text-coral-deep,
.bg-teal .text-ochre,  .bg-ink .text-ochre,        .bg-navy .text-ochre,  .bg-indigo .text-ochre, .bg-coral .text-ochre,
.bg-teal .text-teal,   .bg-ink .text-teal,         .bg-navy .text-teal,   .bg-coral .text-teal {
  color: var(--wbd-lime) !important;
}

.border-line     { border-color: var(--wbd-line) !important; }
.border-cream    { border-color: var(--wbd-cream) !important; }

.divide-line > * + * { border-color: var(--wbd-line) !important; }

.ring-teal       { --tw-ring-color: var(--wbd-teal); }

.hover\:bg-sand:hover        { background-color: var(--wbd-sand) !important; }
.hover\:bg-teal:hover        { background-color: var(--wbd-teal) !important; }
.hover\:bg-coral-deep:hover  { background-color: var(--wbd-coral-deep) !important; }
.hover\:text-ink:hover       { color: var(--wbd-ink) !important; }

.placeholder-cream\/50::placeholder { color: rgba(250, 247, 242, 0.5); }

/* ---------- Misc components ---------- */
.rule { border-top: 1px solid var(--wbd-line); }
.dotted-rule {
  background-image: radial-gradient(circle, var(--wbd-teal) 1px, transparent 1.2px);
  background-size: 10px 2px;
  background-repeat: repeat-x;
  height: 2px;
}

.underline-link {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 2px;
  text-decoration: none !important;
}

/* Override theme's .editor a underline */
.wbd-body a::after { display: none !important; }

/* Marquee */
.marquee-mask {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
@keyframes wbd-scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.scroll-x { animation: wbd-scroll-x 60s linear infinite; }
.scroll-x:hover { animation-play-state: paused; }

/* Grain overlay */
.grain { position: relative; }
.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background-image: radial-gradient(#000 1px, transparent 1px);
  background-size: 3px 3px;
}

/* FAQ details */
details[open] summary .chev { transform: rotate(45deg); }
.chev { transition: transform .25s ease; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

/* Tab buttons */
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.tab-btn.is-active { background: var(--wbd-teal) !important; color: var(--wbd-cream) !important; border-color: var(--wbd-teal) !important; }

/* Drawer */
body.wbd-no-scroll { overflow: hidden; }

/* Cookie banner */
.wbd-cookies {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  padding: 1rem;
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
@media (min-width: 640px) {
  .wbd-cookies { padding: 1.5rem; }
}
.wbd-cookies.is-visible { transform: translateY(0); pointer-events: auto; }
.wbd-cookies.hidden { display: none; }

/* Hide-on-scroll-down header behavior. JS toggles `is-hidden` based on direction. */
.wbd-header {
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.wbd-header.is-hidden { transform: translateY(-100%); }

/* Override the legacy theme's #page > header rules. The original CSS forces
   `position: relative` (defeating Tailwind's `sticky`) and `z-index: 2147483647`.
   Restore sticky positioning and a sane stacking value. */
#page > header.wbd-header {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
}
#page > header.wbd-header > div.fixed,
#page > header.wbd-header > div {
  z-index: 40 !important;
}
/* WordPress admin bar offset — only on desktop where the admin bar is
   position:fixed. On mobile (≤782px) the admin bar is position:absolute and
   scrolls away with the page, so an offset would leave a permanent gap. */
@media (min-width: 783px) {
  .admin-bar #page > header.wbd-header { top: 32px !important; }
}

/* Reset default WordPress nav menu list styles when used inside our nav */
.wbd-menu, .wbd-menu li { list-style: none; padding: 0; margin: 0; }
.wbd-menu { display: flex; align-items: center; gap: 0.25rem; }
.wbd-menu a {
  display: inline-flex; align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  font-size: 13.5px; font-weight: 500;
  color: var(--wbd-ink);
  transition: background-color .15s ease;
  white-space: nowrap;
}
@media (min-width: 1280px) {
  .wbd-menu a { padding: 0.5rem 0.875rem; font-size: 14px; }
}
.wbd-menu a:hover { background: var(--wbd-sand); }
.wbd-menu .current-menu-item > a,
.wbd-menu .current_page_item > a { background: var(--wbd-ink); color: var(--wbd-cream); }

/* Dropdown nav */
.wbd-menu .has-dropdown { position: relative; }
.wbd-menu .has-dropdown > a { padding-right: 0.625rem; }
.wbd-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 6px;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--wbd-line);
  border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(14, 79, 76, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 50;
  list-style: none;
}
/* Bridge the hover gap between trigger and dropdown */
.wbd-menu .has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%; left: 0; right: 0; height: 12px;
}
.wbd-menu .has-dropdown:hover > .wbd-dropdown,
.wbd-menu .has-dropdown:focus-within > .wbd-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}
.wbd-menu .has-dropdown:hover > a svg,
.wbd-menu .has-dropdown:focus-within > a svg { transform: rotate(180deg); }
.wbd-dropdown li { display: block; }
.wbd-dropdown a {
  display: block !important;
  padding: 10px 14px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 500;
  color: var(--wbd-ink);
  white-space: nowrap;
  background: transparent;
}
.wbd-dropdown a:hover { background: var(--wbd-sand) !important; color: var(--wbd-ink) !important; }
@media (min-width: 1280px) {
  .wbd-dropdown a { font-size: 14px !important; padding: 11px 16px !important; }
}

/* Section padding helpers */
.wbd-section { padding-top: 80px; padding-bottom: 80px; }
@media (min-width: 640px) { .wbd-section { padding-top: 128px; padding-bottom: 128px; } }

/* Container override — keep 1240px max for content */
.wbd-container {
  max-width: 1240px !important;
  margin-left: auto; margin-right: auto;
  padding-left: 1.25rem; padding-right: 1.25rem;
  width: 100%;
}
@media (min-width: 640px) {
  .wbd-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* Disable theme's .container override inside our pages */
.wbd-body .container { max-width: 1240px !important; padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
@media (max-width: 640px) {
  .wbd-body .container { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
}

/* Buttons — neon green (primary) CTAs; violet for secondary accents. No orange. */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 3.5rem; padding: 0 1.75rem;
  border-radius: 9999px;
  background: var(--wbd-lime); color: var(--wbd-navy);
  font-size: 15px; font-weight: 700;
  box-shadow: 0 10px 30px -10px rgba(25, 230, 160, 0.55);
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn-primary:hover { background: var(--wbd-lime-deep); box-shadow: 0 14px 36px -10px rgba(25, 230, 160, 0.7); transform: translateY(-1px); }

.btn-flame {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 3.5rem; padding: 0 1.75rem;
  border-radius: 9999px;
  background: var(--wbd-flame); color: #fff;
  font-size: 15px; font-weight: 700;
  box-shadow: 0 10px 30px -10px rgba(110, 13, 168, 0.5);
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn-flame:hover { background: var(--wbd-flame-deep); box-shadow: 0 14px 36px -10px rgba(110, 13, 168, 0.65); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex; align-items: center;
  height: 3.5rem; padding: 0 1.75rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(0, 37, 85, 0.25);
  color: var(--wbd-navy);
  font-size: 15px; font-weight: 600;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-secondary:hover { background: var(--wbd-ice-deep); border-color: rgba(0, 37, 85, 0.45); }

/* Outline button for dark (navy/violet) backgrounds — e.g. hero secondary CTA */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 3.5rem; padding: 0 1.75rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(245, 242, 251, 0.35);
  color: var(--wbd-ice);
  font-size: 15px; font-weight: 600;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-ghost:hover { background: rgba(245, 242, 251, 0.12); border-color: rgba(245, 242, 251, 0.6); }

.btn-dark {
  display: inline-flex; align-items: center; gap: 0.375rem;
  height: 2.5rem; padding: 0 1.25rem;
  border-radius: 9999px;
  background: var(--wbd-navy); color: var(--wbd-ice);
  font-size: 14px; font-weight: 600;
  transition: background-color .15s ease;
}
.btn-dark:hover { background: var(--wbd-violet); }

/* ============================================================
   HERO CAROUSEL — 5 rotating slides (Speaker-Conference style)
   ============================================================ */
.wbd-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 680px;
  background: linear-gradient(135deg, var(--wbd-navy) 0%, var(--wbd-indigo) 58%, var(--wbd-violet) 128%);
  color: var(--wbd-ice);
}
@media (min-width: 1024px) {
  .wbd-hero { min-height: min(86vh, 880px); }
}
/* Phones (<640px): committee & speakers slides drop to a 3-col grid = 2 card rows
   (~820px tall), which clips past the 680px base. Give the hero room so the
   tallest slide fits without hiding its top under the sticky header. */
@media (max-width: 639px) {
  .wbd-hero { min-height: 860px; }
}
/* Decorative glow */
.wbd-hero::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  right: -12%; top: -22%;
  background: radial-gradient(circle, rgba(110,13,168,0.55), transparent 62%);
  filter: blur(8px);
}

.wbd-hero-track { position: absolute; inset: 0; z-index: 1; }

.wbd-hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; visibility: hidden;
  transform: scale(1.015);
  transition: opacity .7s ease, transform 1.1s ease, visibility .7s;
  pointer-events: none;
}
.wbd-hero-slide.is-active {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
}
/* Per-slide background override (e.g. green speakers slide) */
.wbd-hero-bg {
  position: absolute; inset: 0; z-index: -1;
}
.wbd-hero-bg--green { background: linear-gradient(130deg, var(--wbd-green-deep) 0%, var(--wbd-green) 55%, var(--wbd-navy) 120%); }

/* Persistent date badge, identical on every slide.
   Mobile: bottom-right, stacked above the arrow controls (right edge aligns with
   the .wbd-container 20px padding). ≥640px: top-right corner. */
.wbd-hero-badge {
  position: absolute; z-index: 20;
  right: 20px; bottom: 80px;
  display: flex; align-items: center; gap: 14px;
  color: var(--wbd-ice);
}
@media (min-width: 640px) { .wbd-hero-badge { top: 28px; right: 32px; bottom: auto; gap: 18px; } }
.wbd-hero-badge .sep { width: 1px; align-self: stretch; background: rgba(245,242,251,0.35); }
.wbd-hero-badge .dates { line-height: 1.05; font-weight: 800; letter-spacing: -0.01em; }

/* Parallelogram "window" panels */
.wbd-skew {
  position: relative; overflow: hidden;
  border-radius: 16px;
  transform: skewX(-9deg);
  box-shadow: 0 30px 60px -34px rgba(0,0,0,0.7);
  background: rgba(245,242,251,0.06);
}
.wbd-skew > .wbd-skew-fill,
.wbd-skew > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: skewX(9deg) scale(1.28);
}
.wbd-skew > .wbd-skew-veil {
  position: absolute; inset: 0;
  transform: skewX(9deg) scale(1.28);
}

/* Controls */
.wbd-hero-arrow {
  width: 46px; height: 46px; border-radius: 9999px;
  border: 1px solid rgba(245,242,251,0.28);
  color: var(--wbd-ice);
  display: grid; place-items: center;
  background: rgba(0,37,85,0.25);
  backdrop-filter: blur(4px);
  transition: background .2s, border-color .2s, transform .2s;
}
.wbd-hero-arrow:hover { background: rgba(245,242,251,0.14); border-color: rgba(245,242,251,0.55); }
.wbd-hero-arrow:active { transform: scale(0.94); }

.wbd-hero-dots { display: flex; align-items: center; gap: 8px; }
.wbd-hero-dot {
  width: 26px; height: 4px; border-radius: 9999px;
  background: rgba(245,242,251,0.28);
  transition: background .35s ease, width .35s ease;
}
.wbd-hero-dot.is-active { background: var(--wbd-lime); width: 46px; }

/* Next-button countdown ring */
.wbd-hero-arrow--timer { position: relative; border-color: transparent; }
.wbd-hero-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.wbd-hero-ring .track { fill: none; stroke: rgba(245, 242, 251, 0.22); stroke-width: 2; }
.wbd-hero-ring .prog  { fill: none; stroke: var(--wbd-lime); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 138.23; stroke-dashoffset: 0; }
.wbd-hero-arrow--timer.is-counting .prog { animation: wbd-hero-ring var(--hero-delay, 5000ms) linear forwards; }
@keyframes wbd-hero-ring { to { stroke-dashoffset: 138.23; } }
@media (prefers-reduced-motion: reduce) { .wbd-hero-arrow--timer.is-counting .prog { animation: none; } }

/* Mobile full-bleed slide image (cluster hidden on small screens) */
.wbd-hero-mobile-bg { position: absolute; inset: 0; z-index: -1; opacity: 0.22; object-fit: cover; width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) {
  .wbd-hero-slide { transition: opacity .25s ease; transform: none; }
}

/* Page hero (inner pages) */
.page-hero { padding-top: 80px; padding-bottom: 56px; }
@media (min-width: 640px) { .page-hero { padding-top: 120px; padding-bottom: 80px; } }
.page-hero h1 {
  font-size: 56px; line-height: 0.95; font-weight: 600; letter-spacing: -0.03em;
}
@media (min-width: 640px) { .page-hero h1 { font-size: 96px; } }
@media (min-width: 1024px) { .page-hero h1 { font-size: 120px; } }

/* Admin bar offset is handled above in the #page > header.wbd-header block.
   Old duplicated rules removed (they were forcing top:46px on mobile, creating
   a permanent gap because WP admin bar isn't fixed on mobile front-end). */

/* Legal page prose (Privacy, Terms, Cookies, Code of Conduct) */
.wbd-legal-prose h2 {
  font-family: 'Figtree', sans-serif;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--wbd-ink);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .wbd-legal-prose h2 { font-size: 28px; }
}
.wbd-legal-prose h2:first-child { margin-top: 0; }
.wbd-legal-prose h3 {
  font-family: 'Figtree', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--wbd-ink);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.wbd-legal-prose p { margin-bottom: 1.25rem; }
.wbd-legal-prose ul, .wbd-legal-prose ol { margin: 0 0 1.25rem 1.25rem; padding: 0; }
.wbd-legal-prose ul { list-style: disc; }
.wbd-legal-prose ol { list-style: decimal; }
.wbd-legal-prose li { margin-bottom: 0.5rem; }
.wbd-legal-prose li::marker { color: var(--wbd-coral); }
.wbd-legal-prose a { color: var(--wbd-teal); text-decoration: underline; text-underline-offset: 3px; }
.wbd-legal-prose a:hover { color: var(--wbd-teal-deep); }
.wbd-legal-prose strong { color: var(--wbd-ink); font-weight: 600; }
.wbd-legal-prose blockquote {
  border-left: 3px solid var(--wbd-coral);
  padding-left: 1.25rem;
  font-style: italic;
  margin: 1.5rem 0;
  color: var(--wbd-ink);
}
.wbd-legal-prose hr { border: 0; border-top: 1px solid var(--wbd-line); margin: 2.5rem 0; }
.wbd-legal-prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 14px; }
.wbd-legal-prose th, .wbd-legal-prose td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--wbd-line); text-align: left; }
.wbd-legal-prose th { font-weight: 600; background: var(--wbd-sand); }

/* Remove unwanted theme base styles inside our content */
.wbd-body h1, .wbd-body h2, .wbd-body h3, .wbd-body h4, .wbd-body h5, .wbd-body h6 {
  font-weight: inherit !important;
  color: inherit !important;
}
