/* Design 3 "Current energy": theme layer over styles.css. Text sizes come from the base --fs-* tokens. */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}

/* The dark set. In light mode the footer and the staging tools take it again, so they read the same in both modes. */
.theme-3,
.theme-3[data-mode="light"] .site-footer,
.theme-3[data-mode="light"] .staging-bar,
.theme-3[data-mode="light"] #design-switcher,
.theme-3[data-mode="light"] .d3-spec,
.theme-3[data-mode="light"] .aside-card {
  color-scheme: dark;
  --d3-base: #05120C;
  --d3-deep: #030B07;
  --d3-band: #0A2117;
  --d3-lift: #081C13;
  --d3-volt: #3DF58F;
  --d3-on-volt: #04140C;
  /* Accent for text and lines. Light mode darkens it; --d3-volt stays electric for fills. */
  --d3-accent: var(--d3-volt);
  --d3-accent-rgb: 61,245,143;
  --d3-mint: #9FEBC0;
  --d3-mint-rgb: 159,235,192;
  --d3-on-mint: #04140C;
  --d3-cta-bg: var(--d3-volt);
  --d3-cta-fg: var(--d3-on-volt);
  --d3-cta-sub: #0B3A22;
  --d3-cta-spin: rgba(4,20,12,.3);
  --d3-cta-hover-bg: #FFFFFF;
  --d3-cta-hover-fg: var(--d3-on-volt);
  --d3-hi: #FFFFFF;
  --d3-soft: #C2D6CA;
  --d3-dim: #B4C9BD;
  --d3-closed: #C5CEC8;
  --d3-field: #6F9482;
  --d3-paper: #F3F7F4;
  --d3-gold: #FFC45C;
  --d3-glass: rgba(5,18,12,.74);
  --d3-glass-solid: rgba(5,18,12,.96);
  --d3-bar-shadow: 0 20px 44px -24px rgba(0,0,0,.95);
  --d3-hair: rgba(159,235,192,.16);
  --d3-scrim-rgb: 3,11,7;
  --d3-pop: #0A2218;
  --d3-pop-line: #24503A;
  --d3-pop-hover: #17402E;
  --d3-pop-cur: #123324;
  --d3-pop-shadow: 0 30px 60px -24px rgba(0,0,0,.9);
  --d3-panel: #06170F;
  --d3-panel-shadow: 0 40px 70px -30px #000;
  --d3-err-bg: #2A0F0C;
  --d3-err-fg: #FFE3DF;
  --d3-err-on: #2A0F0C;

  /* Base tokens that styles.css uses as text colours now carry light values. */
  --forest-900: #F2FAF5;
  --forest-800: #0B2319;
  --forest-700: var(--d3-mint);
  --forest-600: var(--d3-mint);
  --logo-dark: var(--d3-volt);
  --logo-green: var(--d3-volt);
  --fresh: var(--d3-mint);
  --mint: #153A29;
  --mint-2: #0F2C1F;
  --warm: var(--d3-base);
  --ink: #E6F0EA;
  --muted: #A9BFB2;
  --line: #1E4130;
  --line-dark: rgba(159,235,192,.2);
  --amber-bg: #2B2206;
  --amber-ink: #FFD98A;
  --error: #FF9D90;
  --shadow: 0 24px 50px -28px rgba(0,0,0,.8);
}
.theme-3 {
  --d3-display: "Archivo", "Inter", Arial, Helvetica, sans-serif;
  --section: clamp(88px, 11vw, 168px);
  --header: 100px;
  --r-sm: 6px; --r: 12px; --r-lg: 18px;
  --tile: #0B2319;
  --tile-line: #1E4130;
}

/* The light set: warm paper, forest ink. Electric green stays on the buttons, the dark bands and the hero glow. */
.theme-3[data-mode="light"] {
  color-scheme: light;
  --d3-base: #F7F5EE;
  --d3-deep: #EEEBE0;
  --d3-band: #F1EEE5;
  --d3-lift: #EEEBE0;
  --d3-accent: #0A6B3B;
  --d3-accent-rgb: 10,107,59;
  --d3-mint: #19543E;
  --d3-mint-rgb: 8,37,26;
  --d3-on-mint: #FFFFFF;
  --d3-cta-bg: #08251A;
  --d3-cta-fg: var(--d3-volt);
  --d3-cta-sub: #BFE9D0;
  --d3-cta-spin: rgba(61,245,143,.3);
  --d3-cta-hover-bg: #0E3B28;
  --d3-cta-hover-fg: #FFFFFF;
  --d3-hi: #08251A;
  --d3-soft: #3F5249;
  --d3-dim: #4A5D54;
  --d3-closed: #5A6861;
  --d3-field: #5E786B;
  --d3-paper: #FFFFFF;
  --d3-gold: #B27A08;
  --d3-glass: rgba(250,249,244,.9);
  --d3-glass-solid: rgba(250,249,244,.97);
  --d3-bar-shadow: 0 18px 40px -26px rgba(8,37,26,.5);
  --d3-hair: rgba(8,37,26,.14);
  --d3-scrim-rgb: 247,245,238;
  --d3-pop: #FFFFFF;
  --d3-pop-line: #DDDACB;
  --d3-pop-hover: #E4EFE6;
  --d3-pop-cur: #EFF5EF;
  --d3-pop-shadow: 0 30px 60px -30px rgba(8,37,26,.45);
  --d3-panel: #FBFAF5;
  --d3-panel-shadow: 0 40px 70px -36px rgba(8,37,26,.5);
  --d3-err-bg: #FFF6F5;
  --d3-err-fg: #5A130D;
  --d3-err-on: #FFFFFF;

  --forest-900: #08251A;
  --forest-800: #123F2D;
  --logo-dark: var(--d3-accent);
  --logo-green: var(--d3-accent);
  --mint: #E4EFE6;
  --mint-2: #EFF5EF;
  --ink: #1C2A24;
  --muted: #46564F;
  --line: #DDDACB;
  --line-dark: rgba(8,37,26,.2);
  --amber-bg: #FFF1CC;
  --amber-ink: #5A4100;
  --error: #A7261B;
  --shadow: 0 24px 50px -30px rgba(8,37,26,.4);
  --tile: #FFFFFF;
  --tile-line: #DDDACB;
}
.theme-3 .surface, .theme-3 .surface-2 { --tile: #123324; --tile-line: #24503A; }
.theme-3[data-mode="light"] .surface, .theme-3[data-mode="light"] .surface-2 { --tile: #FFFFFF; --tile-line: #D6D3C3; }
.theme-3 .section.on-dark { --tile: #1A4634; --tile-line: #2E6148; }
.theme-3[data-mode="light"] .section.on-dark { --tile: #FFFFFF; --tile-line: #CFDFD3; }
.theme-3[data-mode="light"] .site-footer { --tile-line: #1E4130; }

.theme-3 body { background: var(--d3-base); }
.theme-3 h1, .theme-3 h2, .theme-3 h3 { font-family: var(--d3-display); }
/* Condensed heavy caps echo the lettering of the Green Pacer wordmark. */
.theme-3 h1 { font-stretch: 80%; font-weight: 800; letter-spacing: -0.005em; line-height: 1.04; }
.theme-3 .hero h1 { font-stretch: 76%; letter-spacing: 0; line-height: 1; text-transform: uppercase; }
.theme-3 h2 { font-stretch: 84%; font-weight: 750; letter-spacing: -0.005em; line-height: 1.08; }
.theme-3 h3 { font-stretch: 92%; font-weight: 700; letter-spacing: 0; }
.theme-3 .lead { color: var(--ink); }
.theme-3 a:hover { color: var(--d3-hi); text-decoration-color: var(--d3-accent); }
.theme-3 :focus-visible, .theme-3 .on-dark :focus-visible { outline-color: var(--d3-accent); }
.theme-3 .skip-link { background: var(--d3-cta-bg); color: var(--d3-cta-fg); }

/* ---------- Surfaces: one dark field, bands told apart by a hairline and a faint lift ---------- */
.theme-3 .white { background: var(--d3-base); }
.theme-3 .surface, .theme-3 .surface-2 { background: linear-gradient(180deg, var(--d3-lift) 0%, var(--d3-base) 100%); }
.theme-3 .on-dark { background: var(--d3-band); color: var(--ink); }
.theme-3 .on-dark .muted, .theme-3 .on-dark .head p { color: var(--d3-soft); }
.theme-3 main > .surface, .theme-3 main > .section.on-dark, .theme-3 .site-footer { position: relative; }
/* The current line: every band opens with a volt trace that fades out to the right. */
.theme-3 main > .surface::before, .theme-3 main > .section.on-dark::before, .theme-3 .site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--d3-accent-rgb),.7) 0%, var(--d3-hair) 34%, var(--d3-hair) 100%);
}

/* Upcoming-training band: the load curve runs behind the rows. */
.theme-3 main > .section.on-dark:not(.tight) {
  background: var(--d3-band) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 600' preserveAspectRatio='none'%3E%3Cpath d='M-20 520C260 520 360 210 700 210S1120 420 1460 90' fill='none' stroke='%233DF58F' stroke-opacity='.22' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M-20 570C300 570 420 300 760 300S1160 480 1460 200' fill='none' stroke='%233DF58F' stroke-opacity='.12' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* The tracked uppercase label comes from the old ZAINI4EE site. */
.theme-3 .eyebrow, .theme-3 .on-dark .eyebrow, .theme-3 .hero .eyebrow {
  color: var(--d3-accent); font-weight: 650; text-transform: uppercase; letter-spacing: .2em; line-height: 1.35; gap: 14px; margin-bottom: 18px;
}
.theme-3 .eyebrow::before { width: 34px; height: 2px; border-radius: 0; background: var(--d3-accent); flex: none; }

.theme-3 .head { position: relative; padding-bottom: clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--tile-line); }
.theme-3 .head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: min(180px, 40%); height: 3px; background: var(--d3-accent); transform-origin: left; }
.theme-3 .head p, .theme-3 .on-dark .head p { color: var(--d3-soft); }
.theme-3 .course-block .head { border-bottom: 0; padding-bottom: 0; }
.theme-3 .course-block .head::after { display: none; }

/* ---------- Buttons: controls are capsules, surfaces keep a small radius ---------- */
.theme-3 .btn { border-radius: 999px; font-weight: 650; letter-spacing: .005em; }
.theme-3 .btn-primary, .theme-3 .btn-light { background: var(--d3-cta-bg); color: var(--d3-cta-fg); border-color: var(--d3-cta-bg); }
.theme-3 .btn-primary:hover, .theme-3 .btn-light:hover { background: var(--d3-cta-hover-bg); border-color: var(--d3-cta-hover-bg); color: var(--d3-cta-hover-fg); box-shadow: none; }
.theme-3 .btn-secondary, .theme-3 .btn-ghost-light { background: transparent; color: var(--d3-hi); border-color: rgba(var(--d3-mint-rgb),.6); backdrop-filter: none; }
.theme-3 .btn-secondary:hover, .theme-3 .btn-ghost-light:hover { background: var(--d3-mint); color: var(--d3-on-mint); border-color: var(--d3-mint); }
.theme-3 .btn .spinner { border-color: var(--d3-cta-spin); border-top-color: var(--d3-cta-fg); }
.theme-3 .link-arrow { color: var(--d3-mint); }
.theme-3 .link-arrow:hover { color: var(--d3-hi); }

/* ---------- Header: a floating capsule, the one glass surface on the page ---------- */
.theme-3 .site-header { position: fixed; top: 14px; left: 0; right: 0; padding: 0 clamp(10px, 2.4vw, 28px); background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; pointer-events: none; }
.theme-3 .site-header .wrap {
  position: relative; pointer-events: auto; max-width: 1400px; min-height: 68px; padding: 8px 10px 8px 24px; gap: 14px;
  border-radius: 999px; border: 1px solid var(--d3-hair); background: var(--d3-glass-solid); box-shadow: var(--d3-bar-shadow);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .theme-3 .site-header .wrap { background: var(--d3-glass); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
}
.theme-3 .brand img { height: 40px; }
.theme-3 .nav-link, .theme-3 .nav-item > details > summary { color: var(--ink); font-weight: 550; border-radius: 999px; min-height: 48px; }
.theme-3 .nav-link:hover, .theme-3 .nav-item > details > summary:hover, .theme-3 .nav-item > details[open] > summary { background: rgba(var(--d3-mint-rgb),.12); color: var(--d3-hi); }
.theme-3 .nav-link[aria-current="page"], .theme-3 .nav-item.is-current > details > summary { color: var(--d3-accent); box-shadow: none; border-radius: 999px; }
.theme-3 .nav-cta .btn { min-height: 50px; padding: 10px 24px; }
.theme-3 .menu { margin-top: 14px; background: var(--d3-pop); border-radius: var(--r-lg); box-shadow: var(--d3-pop-shadow), 0 0 0 1px var(--d3-pop-line); }
.theme-3 .menu a { color: var(--d3-hi); }
.theme-3 .menu a span { color: var(--d3-dim); }
.theme-3 .menu a:hover, .theme-3 .menu a:focus-visible { background: var(--d3-pop-hover); color: var(--d3-hi); }
.theme-3 .menu a[aria-current="page"] { background: var(--d3-pop-cur); box-shadow: none; color: var(--d3-accent); }
.theme-3 .menu-toggle { min-height: 50px; background: transparent; color: var(--d3-hi); border: 1px solid rgba(var(--d3-mint-rgb),.6); border-radius: 999px; }
.theme-3 .menu-toggle:hover, .theme-3 .menu-toggle[aria-expanded="true"] { background: rgba(var(--d3-mint-rgb),.14); }

/* Mode toggle: a two-seat switch at the end of the capsule. The thumb sits under the mode in use. */
.theme-3 .mode-toggle {
  flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 72px; min-height: 48px; padding: 0;
  background: none; border: 0; border-radius: 999px; color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.theme-3 .mode-toggle .seats {
  position: relative; display: grid; grid-template-columns: 31px 31px; align-items: center; justify-items: center; height: 38px; padding: 0 3px;
  border: 1px solid rgba(var(--d3-mint-rgb),.6); border-radius: 999px; transition: background-color .2s ease;
}
.theme-3 .mode-toggle:hover .seats { background: rgba(var(--d3-mint-rgb),.14); }
.theme-3 .mode-toggle .seats::before {
  content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: 31px; border-radius: 999px;
  background: var(--d3-cta-bg); transform: translateX(31px); transition: transform .28s var(--ease);
}
.theme-3 .mode-toggle svg { position: relative; width: 18px; height: 18px; }
.theme-3 .mode-toggle .moon, .theme-3[data-mode="light"] .mode-toggle .sun { color: var(--d3-cta-fg); }
.theme-3[data-mode="light"] .mode-toggle .moon { color: inherit; }
.theme-3[data-mode="light"] .mode-toggle .seats::before { transform: none; }
@media (prefers-reduced-motion: reduce) { .theme-3 .mode-toggle .seats::before { transition: none; } }
/* Two lockups sit in the header and the loader; each mode shows the one drawn for its ground. */
.theme-3:not([data-mode="light"]) .logo-on-light, .theme-3[data-mode="light"] .logo-on-dark { display: none; }
@media (min-width: 1361px) { .theme-3 .nav { margin-left: auto; } }
/* Just above the menu breakpoint the full nav and the switch only fit with a tighter capsule. */
@media (min-width: 1361px) and (max-width: 1479px) {
  .theme-3 .site-header .wrap { gap: 8px; padding-left: 20px; }
  .theme-3 .brand img { height: 34px; }
  .theme-3 .nav-link, .theme-3 .nav-item > details > summary { padding-left: 11px; padding-right: 11px; }
  .theme-3 .nav-cta { margin-left: 4px; }
  .theme-3 .nav-cta .btn { padding: 10px 18px; }
  .theme-3 .mode-toggle { min-width: 62px; }
  .theme-3 .mode-toggle .seats { grid-template-columns: 26px 26px; }
  .theme-3 .mode-toggle .seats::before { width: 26px; transform: translateX(26px); }
}
@media (max-width: 1360px) {
  .theme-3 .menu-toggle { margin-left: auto; }
  .theme-3 .site-header .wrap { padding-left: 20px; }
  .theme-3 .nav {
    top: calc(100% + 10px); max-height: calc(100vh - var(--header) - 24px); max-height: calc(100svh - var(--header) - 24px);
    padding: 10px 22px 22px; border-radius: 24px; border: 1px solid var(--d3-pop-line); background: var(--d3-panel); box-shadow: var(--d3-panel-shadow);
  }
  .theme-3 .nav-link, .theme-3 .nav-item > details > summary { border-radius: 0; border-bottom-color: var(--tile-line); min-height: 56px; }
  .theme-3 .nav-link:hover, .theme-3 .nav-item > details > summary:hover, .theme-3 .nav-item > details[open] > summary { background: transparent; }
  .theme-3 .nav-link[aria-current="page"], .theme-3 .nav-item.is-current > details > summary { border-radius: 0; box-shadow: none; padding-left: 8px; }
  .theme-3 .menu { margin-top: 0; background: transparent; box-shadow: none; border-radius: 0; }
  .theme-3 .nav-cta .btn { min-height: 56px; }
}
@media (max-width: 350px) {
  .theme-3 .menu-toggle .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 520px) {
  .theme-3 { --header: 88px; }
  .theme-3 .site-header { top: 10px; }
  .theme-3 .site-header .wrap { min-height: 62px; padding: 6px 8px 6px 16px; gap: 6px; }
  /* The lockup gives up height so the Menu button and the mode switch both fit beside it. */
  .theme-3 .brand img { height: clamp(22px, calc(17.6vw - 39px), 34px); }
  .theme-3 .menu-toggle { min-height: 48px; padding: 8px 12px; flex: none; }
  /* On a phone the switch folds to one round button that shows the mode a tap brings. */
  .theme-3 .mode-toggle { min-width: 48px; }
  .theme-3 .mode-toggle .seats { grid-template-columns: 46px; height: 48px; padding: 0; }
  .theme-3 .mode-toggle .seats::before, .theme-3 .mode-toggle .moon, .theme-3[data-mode="light"] .mode-toggle .sun { display: none; }
  .theme-3 .mode-toggle .sun, .theme-3[data-mode="light"] .mode-toggle .moon { display: block; color: var(--d3-hi); }
}

/* ---------- Energy-flow motif ---------- */
.theme-3 .flow .track { stroke: rgba(var(--d3-accent-rgb),.3); }
.theme-3 .flow .pulse { stroke: var(--d3-accent); }

/* ---------- Heroes: current drawn into a loop ----------
   The canvas (js/hero-fx.js, preset streams-dark) draws the strands. The --fx-* values place the form
   for both the canvas and the glow under it, and the glow alone is what shows without JavaScript. */
.theme-3 .hero, .theme-3 .page-hero {
  --fx-cx: .81; --fx-cy: .44; --fx-rw: .27; --fx-rh: .4; --fx-horizon: .88; --fx-calm-x: .6; --fx-calm-y: 2;
  --fx-r: min(calc(var(--fx-rw) * 100vw), calc(var(--fx-rh) * 100svh));
  display: flex; flex-direction: column; color: var(--ink);
  background:
    radial-gradient(ellipse 34% 9% at calc(var(--fx-cx) * 100%) 97%, rgba(var(--d3-accent-rgb),.16), rgba(var(--d3-accent-rgb),0) 100%),
    linear-gradient(345deg, rgba(var(--d3-accent-rgb),0) 20%, rgba(var(--d3-accent-rgb),.07) 33%, rgba(var(--d3-accent-rgb),0) 46%),
    linear-gradient(180deg, var(--d3-deep) 0%, var(--d3-base) 100%);
}
.theme-3 .hero-fx { position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; pointer-events: none; }
.theme-3 .hero::before, .theme-3 .page-hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: calc(var(--fx-cx) * 100%); top: calc(var(--fx-cy) * 100%);
  width: calc(var(--fx-r) * 2.56); height: calc(var(--fx-r) * 1.62);
  translate: -50% -50%; rotate: -15.5deg; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--d3-accent-rgb),0) 44%, rgba(var(--d3-accent-rgb),.34) 64%, rgba(120,250,180,.55) 76%, rgba(255,196,92,.26) 87%, rgba(var(--d3-accent-rgb),0) 100%);
  filter: blur(calc(var(--fx-r) * .07));
  transition: opacity 1.4s ease;
}
/* Once the strands are running the glow drops back to a bloom behind them. */
.theme-3 .fx-live::before { opacity: .3; }
/* Scrim over the form, under the text: the headline side stays dark at every frame. */
.theme-3 .hero::after, .theme-3 .page-hero::after, .theme-3 .page-hero.has-media::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(var(--d3-scrim-rgb),.92) 0%, rgba(var(--d3-scrim-rgb),.84) 36%, rgba(var(--d3-scrim-rgb),0) 68%);
}

/* Home: one full screen. The headline stacks at the lower left and the three aims close the frame as a slim bar. */
.theme-3 .hero { min-height: 100vh; min-height: 100svh; }
.theme-3 .hero > .hero-media { display: none; }
/* Home keeps Design 1's plant photo as a dim plate under the strands; the scrim holds the headline side dark. */
.theme-3 .hero > .hero-media.d3-hero-photo {
  display: block; opacity: .34;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 28%, #000 82%); mask-image: linear-gradient(90deg, rgba(0,0,0,0) 28%, #000 82%);
}
.theme-3 .hero > .d3-hero-photo img { filter: grayscale(1) contrast(1.08); }
.theme-3[data-mode="light"] .hero > .hero-media.d3-hero-photo { mix-blend-mode: multiply; opacity: .26; }
@media (max-width: 760px) {
  .theme-3 .hero > .hero-media.d3-hero-photo { opacity: .3; -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,0) 46%, #000 92%); mask-image: linear-gradient(0deg, rgba(0,0,0,0) 46%, #000 92%); }
}
.theme-3 .hero > .wrap { flex: 1; justify-content: flex-end; min-height: 0; padding-top: calc(var(--header) + 40px); padding-bottom: clamp(28px, 4.4vh, 52px); }
.theme-3 .hero-company { color: var(--d3-mint); font-weight: 600; margin-bottom: 18px; }
.theme-3 .hero h1 { max-width: 19ch; }
.theme-3 .hero .lead { color: var(--ink); max-width: 34rem; margin: 22px 0 32px; }
.theme-3 .hero-strip { position: static; }
.theme-3 .hero-strip .flow { display: none; }
.theme-3 .hero-strip ol { display: flex; flex-wrap: wrap; gap: 6px clamp(22px, 3.4vw, 52px); padding: 18px 0 92px; border-top: 1px solid var(--d3-hair); }
.theme-3 .hero-strip li { padding: 0 0 0 22px; font-size: var(--fs-small); font-weight: 500; color: var(--d3-soft); }
.theme-3 .hero-strip li::before { top: calc(.8em - 1px); left: 0; width: 10px; height: 2px; border: 0; border-radius: 0; background: var(--d3-gold); box-shadow: none; }

/* Inner pages: the same form in a shorter band. */
.theme-3 .page-hero {
  --fx-cx: .8; --fx-cy: .52; --fx-rw: .2; --fx-rh: .37;
  --fx-r: min(20vw, 23vh);
  justify-content: flex-end; min-height: min(62vh, 660px);
}
.theme-3 .page-hero .wrap { padding-top: calc(var(--header) + 44px); padding-bottom: clamp(40px, 5.5vw, 72px); }
.theme-3 .page-hero h1 { max-width: 22ch; }
.theme-3 .page-hero .lead { color: var(--ink); max-width: 40rem; }
.theme-3 .page-hero .flow { display: none; }
/* A page photograph stays as a faint plate behind the loop. */
.theme-3 .page-hero.has-media .hero-media {
  opacity: .14;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 40%, #000 88%); mask-image: linear-gradient(90deg, rgba(0,0,0,0) 40%, #000 88%);
}
.theme-3 .page-hero.has-media .hero-media img { filter: grayscale(1) contrast(1.08); }
.theme-3 .crumbs { color: var(--d3-dim); }
.theme-3 .crumbs a { color: var(--d3-mint); }
.theme-3 .crumbs li:not(:last-child)::after { color: var(--d3-field); }

@media (max-width: 760px) {
  .theme-3 .hero, .theme-3 .page-hero { --fx-cx: .68; --fx-cy: .19; --fx-rw: .36; --fx-rh: .2; --fx-calm-x: .02; --fx-calm-y: .17; }
  .theme-3 .hero::after, .theme-3 .page-hero::after, .theme-3 .page-hero.has-media::after {
    background: linear-gradient(0deg, rgba(var(--d3-scrim-rgb),.95) 0%, rgba(var(--d3-scrim-rgb),.9) 66%, rgba(var(--d3-scrim-rgb),0) 88%);
  }
  .theme-3 .hero > .wrap { padding-top: calc(var(--header) + 150px); padding-bottom: 26px; }
  .theme-3 .hero-strip ol { flex-direction: column; gap: 4px; padding: 14px 0 92px; }
  .theme-3 .hero-strip ol::before { display: none; }
  .theme-3 .hero-strip li { padding: 0 0 0 22px; }
  .theme-3 .hero-strip li::before { left: 0; top: calc(.8em - 1px); }
  .theme-3 .page-hero { --fx-cx: .8; --fx-cy: .16; --fx-rw: .3; --fx-rh: .2; --fx-calm-y: .16; --fx-r: 30vw; min-height: 0; }
  .theme-3 .page-hero .wrap { padding-top: calc(var(--header) + 96px); }
  .theme-3 .page-hero.has-media .hero-media { opacity: .2; -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,0) 40%, #000 90%); mask-image: linear-gradient(0deg, rgba(0,0,0,0) 40%, #000 90%); }
}

/* ---------- Cards ---------- */
.theme-3 .card { background: var(--tile); border-color: var(--tile-line); }
.theme-3 .card p { color: var(--muted); }
/* Glow is kept for one thing: the card under the pointer or keyboard focus. */
.theme-3 a.card:hover, .theme-3 a.card:focus-visible { transform: translateY(-3px); border-color: var(--d3-accent); box-shadow: 0 0 0 1px var(--d3-accent), 0 22px 60px -22px rgba(var(--d3-accent-rgb),.55); }
.theme-3 a.card:hover h3 { color: var(--d3-accent); }
.theme-3 .card .icon { border-radius: var(--r-sm); background: transparent; border: 1.5px solid var(--d3-accent); color: var(--d3-accent); }
.theme-3 .pillar .ph { background: var(--mint); }
.theme-3 .pillar .num { font-family: var(--d3-display); font-stretch: 76%; font-weight: 800; line-height: 1.1; letter-spacing: .04em; color: var(--d3-accent); font-variant-numeric: tabular-nums; }
.theme-3 .ticks li, .theme-3 .on-dark .ticks li { color: var(--ink); }
.theme-3 .ticks li::before, .theme-3 .on-dark .ticks li::before {
  border-radius: 2px; background-color: rgba(var(--d3-accent-rgb),.14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.5' fill='none' stroke='%233DF58F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Facts read as meter readouts: tall condensed numerals over a rule. */
.theme-3 .facts-row { gap: clamp(20px, 3vw, 40px); }
.theme-3 .fact { background: transparent; border: 0; border-top: 2px solid var(--tile-line); border-radius: 0; padding: 22px 0 0; position: relative; }
.theme-3 .fact::before { content: ""; position: absolute; left: 0; top: -2px; width: 44px; height: 2px; background: var(--d3-accent); }
.theme-3 .fact b { font-family: var(--d3-display); font-stretch: 72%; font-weight: 800; line-height: 1; letter-spacing: 0; color: var(--d3-accent); font-variant-numeric: tabular-nums; margin-bottom: 10px; }
.theme-3 .fact span { color: var(--d3-soft); }

/* Client logos are coloured files on white, so they stay on paper tiles. */
.theme-3 .logo-wall li { background: var(--d3-paper); color: #1C2A24; border: 0; border-radius: var(--r-sm); }
.theme-3 .logo-wall img { mix-blend-mode: multiply; }

.theme-3 .split .ph { border-radius: var(--r-lg); background: var(--mint); }
.theme-3 .split .caption { color: var(--muted); }
.theme-3 .founder-fig figcaption img { background: var(--d3-paper); border-radius: var(--r-sm); padding: 10px 14px; }

/* People */
.theme-3 .person { background: var(--tile); border-color: var(--tile-line); }
.theme-3 .person .ph, .theme-3 .people-strip .ph { background: #DCE7E0; }
.theme-3 .person .role { color: var(--d3-accent); }
.theme-3 .people-strip .ph { border-radius: var(--r); }
.theme-3 .people-strip strong { color: var(--d3-hi); }
.theme-3 .people-strip a:hover strong { color: var(--d3-accent); }
.theme-3 .people-strip a:hover .ph img { transform: scale(1.04); }
.theme-3 .people-strip .ph img { transition: transform .5s var(--ease); }

/* Sessions */
.theme-3 .session, .theme-3 .on-dark .session { background: var(--tile); border-color: var(--tile-line); transition: border-color .2s ease; }
.theme-3 .session:hover { border-color: var(--d3-mint); }
.theme-3 .session h3 a:not(.btn) { color: var(--d3-hi); text-decoration: none; }
.theme-3 .session h3 a:not(.btn):hover { color: var(--d3-accent); text-decoration: underline; }
.theme-3 .date-tile, .theme-3 .on-dark .date-tile { background: var(--d3-base); border-radius: var(--r-sm); border-bottom: 3px solid var(--d3-accent); }
.theme-3 .date-tile b, .theme-3 .on-dark .date-tile b { font-family: var(--d3-display); font-stretch: 72%; font-weight: 800; color: var(--d3-hi); letter-spacing: 0; }
.theme-3 .date-tile span, .theme-3 .on-dark .date-tile span { color: var(--d3-accent); }
.theme-3 .meta, .theme-3 .on-dark .meta { color: var(--d3-soft); }
.theme-3 .meta svg, .theme-3 .on-dark .meta svg { color: var(--d3-mint); }
.theme-3 .badge { border-radius: var(--r-sm); background: rgba(255,217,138,.1); }
.theme-3 .badge.green { background: rgba(var(--d3-accent-rgb),.1); color: var(--d3-mint); border-color: rgba(var(--d3-mint-rgb),.5); }
.theme-3 .badge.closed { background: transparent; color: var(--d3-closed); border-color: var(--d3-field); }
.theme-3 .session.closed { background: transparent; border-style: dashed; }
.theme-3 .session.closed .date-tile { background: var(--tile); border-bottom-color: var(--d3-field); }
.theme-3 .session.closed h3, .theme-3 .session.closed .date-tile b { color: var(--d3-closed); }
.theme-3 .session.closed .date-tile span { color: var(--d3-closed); }
.theme-3 .empty, .theme-3 .on-dark .empty { background: var(--tile); border-color: var(--d3-field); }
.theme-3 .prose ul.sessions, .theme-3 .prose ul.meta { padding-left: 0; max-width: none; }
.theme-3 .prose .session { grid-template-columns: auto minmax(0, 1fr); margin-bottom: 0; }
.theme-3 .prose .session .btn, .theme-3 .prose .session > .badge { grid-column: 1 / -1; justify-self: start; }
.theme-3 .prose .meta li { margin-bottom: 0; }

/* Contact options */
.theme-3 .contact-options a,
.theme-3 .white .contact-options a, .theme-3 .surface .contact-options a { background: var(--tile); border-color: var(--tile-line); color: var(--d3-hi); transition: border-color .2s ease, transform .2s var(--ease), background-color .2s ease; }
.theme-3 .contact-options a:hover { background: var(--tile); border-color: var(--d3-accent); color: var(--d3-hi); }
.theme-3 .contact-options span, .theme-3 .white .contact-options span, .theme-3 .surface .contact-options span { color: var(--d3-soft); }
.theme-3 .contact-options svg, .theme-3 .white .contact-options svg, .theme-3 .surface .contact-options svg { color: var(--d3-accent); }
.theme-3 .contact-options .primary a { background: var(--d3-cta-bg); border-color: var(--d3-cta-bg); color: var(--d3-cta-fg); }
.theme-3 .contact-options .primary a span { color: var(--d3-cta-sub); }
.theme-3 .contact-options .primary svg { color: var(--d3-cta-fg); }
.theme-3 .contact-options .primary a:hover { background: var(--d3-cta-hover-bg); border-color: var(--d3-cta-hover-bg); color: var(--d3-cta-hover-fg); }

/* Service detail */
.theme-3 .prose h2 { padding-top: 22px; border-top: 1px solid var(--tile-line); }
.theme-3 .prose h2:first-child, .theme-3 .prose .note + h2 { border-top: 0; padding-top: 0; }
.theme-3 .aside-card { background: var(--tile); border-color: var(--tile-line); border-top: 3px solid var(--d3-accent); }
.theme-3 .aside-card p { color: var(--muted); }
.theme-3 .steps li::before, .theme-3 .method li::before {
  border-radius: var(--r-sm); background: transparent; border: 1.5px solid var(--d3-accent); color: var(--d3-accent);
  font-family: var(--d3-display); font-stretch: 76%; font-weight: 800;
}
.theme-3 .note { background: var(--tile); border-left-color: var(--d3-accent); border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* Closing band: the loop returns once, as a still glow behind the last call to action. */
.theme-3 main > .section.tight.on-dark { background: var(--d3-deep); overflow: hidden; isolation: isolate; }
.theme-3 main > .section.tight.on-dark::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: -14%; top: 50%; width: min(760px, 78vw); aspect-ratio: 2.56 / 1.62;
  translate: 0 -50%; rotate: -15.5deg; border-radius: 50%; opacity: .5;
  background: radial-gradient(closest-side, rgba(var(--d3-accent-rgb),0) 44%, rgba(var(--d3-accent-rgb),.34) 64%, rgba(120,250,180,.55) 76%, rgba(255,196,92,.26) 87%, rgba(var(--d3-accent-rgb),0) 100%);
  filter: blur(22px);
}
.theme-3 .section.tight.on-dark .btn-ghost-light { background: var(--d3-deep); }
.theme-3 .section.tight.on-dark .btn-ghost-light:hover { background: var(--d3-mint); }
.theme-3 .callout-band h2 { max-width: 20ch; }

/* Method */
.theme-3 .method li { background: var(--tile); border-color: var(--tile-line); }
.theme-3 .method p { color: var(--muted); }

/* Timeline */
.theme-3 .timeline::before { background: var(--tile-line); }
.theme-3 .timeline li::before { background: var(--d3-base); border-color: var(--d3-accent); border-radius: 2px; transform: rotate(45deg); }
.theme-3 .surface .timeline li::before { background: var(--d3-band); }
.theme-3 .timeline .yr { font-family: var(--d3-display); font-stretch: 76%; font-weight: 800; color: var(--d3-accent); }
.theme-3 .timeline strong { color: var(--d3-hi); }

.theme-3 .cred-list, .theme-3 .profile-list { border-top: 2px solid var(--d3-accent); }
.theme-3 .cred-list li, .theme-3 .profile-list > div { border-bottom-color: var(--tile-line); }
.theme-3 .cred-list .h { color: var(--d3-mint); text-transform: uppercase; letter-spacing: .12em; }

/* Values */
.theme-3 .values li { background: var(--tile); border-color: var(--tile-line); border-radius: var(--r); }
.theme-3 .values svg { color: var(--d3-accent); }
.theme-3 .values p { color: var(--d3-soft); }

/* Resources */
.theme-3 .article-list a { background: var(--tile); border-color: var(--tile-line); }
.theme-3 .article-list a:hover { border-color: var(--d3-accent); box-shadow: 0 0 0 1px var(--d3-accent); }
.theme-3 .article-list a:hover h3 { color: var(--d3-accent); }
.theme-3 .article-list .topic { color: var(--d3-accent); text-transform: uppercase; letter-spacing: .12em; }
.theme-3 .article-list a > * { grid-column: 1; }
.theme-3 .article-list a > .go { grid-column: 2; grid-row: 1 / span 3; }
.theme-3 .article-list .go { border-radius: var(--r-sm); border-color: var(--d3-accent); color: var(--d3-accent); }
.theme-3 .video-grid .thumb { border-radius: var(--r-sm); background: var(--tile); }
.theme-3 .video-grid .play { border-radius: var(--r-sm); background: var(--d3-cta-bg); box-shadow: none; }
.theme-3 .video-grid .play::before { border-left-color: var(--d3-cta-fg); }
.theme-3 .video-grid a:hover h3 { color: var(--d3-accent); }
.theme-3 .video-grid span { color: var(--muted); }
.theme-3 .gallery figure { background: var(--tile); border-color: var(--tile-line); }

/* ---------- Forms ---------- */
.theme-3 .form-card { background: var(--tile); border-color: var(--tile-line); border-top: 3px solid var(--d3-accent); }
.theme-3 .field label, .theme-3 .field legend, .theme-3 .fieldset legend { color: var(--d3-hi); }
.theme-3 .field input, .theme-3 .field select, .theme-3 .field textarea { background-color: var(--d3-base); color: var(--d3-hi); border-color: var(--d3-field); border-radius: var(--r-sm); }
.theme-3 .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%239FEBC0' stroke-width='2.2'/%3E%3C/svg%3E"); }
.theme-3 .field input:focus, .theme-3 .field select:focus, .theme-3 .field textarea:focus { border-color: var(--d3-accent); box-shadow: 0 0 0 4px rgba(var(--d3-accent-rgb),.3); }
.theme-3 .field.invalid input, .theme-3 .field.invalid select, .theme-3 .field.invalid textarea { border-color: var(--error); }
.theme-3 .field.invalid .err::before { color: var(--d3-err-on); }
.theme-3 .choice { background: var(--d3-base); border-color: var(--d3-field); border-radius: var(--r-sm); color: var(--d3-hi); }
.theme-3 .choice input { accent-color: var(--d3-accent); }
.theme-3 .choice:has(input:checked) { border-color: var(--d3-accent); background: var(--mint-2); box-shadow: 0 0 0 3px rgba(var(--d3-accent-rgb),.22); }
.theme-3 .form-section-title { border-top-color: var(--tile-line); }
.theme-3 .error-summary { background: var(--d3-err-bg); color: var(--d3-err-fg); }
.theme-3 .form-status.ok { background: var(--mint-2); border-color: var(--d3-accent); }
.theme-3 .form-status.fail { border-color: var(--amber-line); }
.theme-3 .selection { background: var(--d3-base); border: 1px solid var(--d3-field); border-left: 3px solid var(--d3-accent); }
.theme-3 .selection dt { color: var(--muted); }

/* ---------- Footer ---------- */
.theme-3 .site-footer { background: var(--d3-deep); color: var(--d3-soft); overflow: visible; }
.theme-3 .site-footer a, .theme-3 .site-footer.on-dark a:not(.btn) { color: var(--ink); }
.theme-3 .site-footer a:hover, .theme-3 .site-footer.on-dark a:not(.btn):hover { color: var(--d3-accent); }
.theme-3 .footer-top h2 { font-family: var(--font); color: var(--d3-accent); font-weight: 650; text-transform: uppercase; letter-spacing: .2em; }
.theme-3 .footer-bottom { border-top-color: var(--tile-line); }

/* ---------- Organisation chart ---------- */
.theme-3 .org-node { background: var(--tile); border-color: var(--tile-line); color: var(--ink); transition: border-color .2s ease; }
.theme-3 .org-node strong { color: var(--d3-hi); }
.theme-3 .org-node:hover { border-color: var(--d3-accent); color: var(--ink); }
.theme-3 .org-lead { background: var(--d3-cta-bg); border-color: var(--d3-cta-bg); color: var(--d3-cta-sub); }
.theme-3 .org-lead strong { font-family: var(--d3-display); font-stretch: 88%; font-weight: 750; color: var(--d3-cta-fg); }
.theme-3 .org-lead:hover { background: var(--d3-cta-hover-bg); border-color: var(--d3-cta-hover-bg); color: var(--d3-cta-sub); }
.theme-3 .org-lead:focus-visible { outline-color: var(--d3-hi); }
.theme-3 .org-lead::after, .theme-3 .org-row li::before, .theme-3 .org-row li::after { background: #2F8F5E; }

/* ---------- Events table ---------- */
.theme-3 .events-table thead th { color: var(--d3-mint); text-transform: uppercase; letter-spacing: .12em; border-bottom: 2px solid var(--d3-accent); }
.theme-3 .events-table th, .theme-3 .events-table td { border-bottom-color: var(--tile-line); }
.theme-3 .events-table tbody th { color: var(--d3-hi); }
.theme-3 .events-table tbody tr:hover { background: var(--tile); }
@media (max-width: 600px) {
  .theme-3 .events-table tbody { display: grid; gap: 12px; }
  .theme-3 .events-table tr { background: var(--tile); border: 1px solid var(--tile-line); border-left: 3px solid var(--d3-accent); border-radius: var(--r-sm); padding: 18px 20px; }
  .theme-3 .events-table tbody th { padding-bottom: 6px; }
  .theme-3 .events-table td::before { color: var(--d3-mint); }
}

/* ---------- Staging tools and design switcher (colours only) ---------- */
.theme-3 .staging-bar, .theme-3 #design-switcher { background: #0D2A1E; color: var(--ink); border-color: #2A5A42; box-shadow: 0 14px 36px -12px rgba(0,0,0,.9); }
.theme-3 .staging-bar button[aria-pressed="true"], .theme-3 #design-switcher a[aria-current="page"] { background: var(--d3-volt); color: var(--d3-on-volt); }
.theme-3 .staging-bar button[aria-pressed="true"] { border-color: var(--d3-volt); }
.theme-3 #design-switcher a:hover { background: #17402E; }
.theme-3 #design-switcher a[aria-current="page"]:hover { background: var(--d3-volt); }
.theme-3 #design-switcher a:focus-visible, .theme-3 #design-switcher a[aria-current="page"]:focus-visible { outline-color: #FFFFFF; }

/* ---------- Light mode: what the token swap does not reach ---------- */
.theme-3[data-mode="light"] .hero h1, .theme-3[data-mode="light"] .page-hero h1 { color: var(--d3-hi); }
.theme-3[data-mode="light"] .hero a:not(.btn):hover, .theme-3[data-mode="light"] .page-hero a:not(.btn):hover { color: var(--d3-hi); }
/* On paper the glow keeps the electric green and the strands over it turn to ink. */
.theme-3[data-mode="light"] .hero::before, .theme-3[data-mode="light"] .page-hero::before {
  background: radial-gradient(closest-side, rgba(61,245,143,0) 44%, rgba(61,245,143,.42) 64%, rgba(61,245,143,.6) 76%, rgba(255,196,92,.42) 87%, rgba(61,245,143,0) 100%);
}
.theme-3[data-mode="light"] .fx-live::before { opacity: .4; }
.theme-3[data-mode="light"] .page-hero.has-media .hero-media { mix-blend-mode: multiply; opacity: .16; }
.theme-3[data-mode="light"] .ticks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.3l2.6 2.6L13 6.5' fill='none' stroke='%230A6B3B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.theme-3[data-mode="light"] .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2319543E' stroke-width='2.2'/%3E%3C/svg%3E"); }
.theme-3[data-mode="light"] .badge { background: var(--amber-bg); }
.theme-3[data-mode="light"] .badge.green { background: rgba(var(--d3-accent-rgb),.1); }
.theme-3[data-mode="light"] .badge.closed { background: transparent; }
.theme-3[data-mode="light"] .logo-wall li { border: 1px solid var(--tile-line); }
/* In light mode the dark bands turn to pale mint, so the whole page reads light. Only the footer stays dark. */
.theme-3[data-mode="light"] main > .section.on-dark { background-color: #E3EEE5; }
.theme-3[data-mode="light"] main > .section.on-dark:not(.tight) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 600' preserveAspectRatio='none'%3E%3Cpath d='M-20 520C260 520 360 210 700 210S1120 420 1460 90' fill='none' stroke='%230A6B3B' stroke-opacity='.18' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M-20 570C300 570 420 300 760 300S1160 480 1460 200' fill='none' stroke='%230A6B3B' stroke-opacity='.1' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
.theme-3[data-mode="light"] .section.on-dark :is(h1, h2, h3, h4) { color: var(--d3-hi); }
.theme-3[data-mode="light"] .section.on-dark a:not(.btn):hover { color: var(--d3-hi); }
.theme-3[data-mode="light"] .section.tight.on-dark .btn-ghost-light { background: transparent; }
.theme-3[data-mode="light"] .section.tight.on-dark .btn-ghost-light:hover { background: var(--d3-mint); }

/* ---------- Page loader ---------- */
.theme-3 #page-loader { --loader-bg: var(--d3-base); --loader-line: var(--d3-accent); --loader-dot: #EFFFF5; --loader-track: var(--d3-hair); --loader-glow: rgba(var(--d3-accent-rgb),.7); --loader-shade: rgba(0,0,0,.7); }
.theme-3 #page-loader::after { background: var(--d3-accent); }
.theme-3[data-mode="light"] #page-loader { --loader-line: #08251A; --loader-dot: #0A8F4C; --loader-glow: rgba(10,107,59,.3); --loader-shade: rgba(8,37,26,.3); }

/* ---------- Scroll motion (pure CSS, only where view timelines exist) ---------- */
@keyframes d3-in { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes d3-draw { from { transform: scaleX(0); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* backwards fill only: a finished reveal must not leave a stacking context over the staging tooltips. */
    .theme-3 main > .section > .wrap > * { animation: d3-in linear backwards; animation-timeline: view(); animation-range: entry 0% entry 200px; }
    .theme-3 .head::after { animation: d3-draw linear backwards; animation-timeline: view(); animation-range: entry 40px cover 28%; }
    .theme-3 body.show-confirm main > .section > .wrap > * { animation: none; }
  }
}

.theme-3 .prose .session h3 { margin-top: 0; }
.theme-3 .error-summary[hidden] + .form-section-title { border-top: 0; padding-top: 0; margin-top: 0; }

/* ==========================================================================
   Inner pages: control-room layouts. Listings are panels, dates sit on a rail,
   detail pages open with a spec panel. Markup comes from _build/pages_d3_inner.py.
   ========================================================================== */

/* Spec panels stay dark in light mode; the dark token set is assigned to them in the first rule. */
.theme-3 .d3-spec, .theme-3 .aside-card { color: var(--ink); }
.theme-3[data-mode="light"] .d3-spec, .theme-3[data-mode="light"] .aside-card { --tile: #0B2319; --tile-line: #1E4130; }

/* Status lamp: lit only where a date is open for registration. */
.theme-3 .d3-lamp { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--d3-field); }
.theme-3 .d3-lamp.is-live { background: var(--d3-accent); border-color: var(--d3-accent); box-shadow: 0 0 0 4px rgba(var(--d3-accent-rgb),.22); }

/* Readouts: a small label over a condensed value. */
.theme-3 .d3-read { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 24px; margin: 0; }
.theme-3 .d3-read > div { padding: 12px 0; border-top: 1px solid var(--tile-line); min-width: 0; }
.theme-3 .d3-read dt { font-size: var(--fs-small); line-height: 1.3; color: var(--muted); }
.theme-3 .d3-read dd { margin: 2px 0 0; font-family: var(--d3-display); font-stretch: 84%; font-weight: 700; line-height: 1.25; color: var(--d3-hi); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.theme-3 .d3-read dd a { color: var(--d3-accent); }

/* ---------- Course dashboard ---------- */
.theme-3 .d3-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.theme-3 .d3-tiles + h3 { margin-top: 56px; }
.theme-3 .d3-tile { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 20px 24px 24px; background: var(--tile); border: 1px solid var(--tile-line); border-radius: var(--r); }
.theme-3 .d3-tile.is-live { border-color: var(--d3-accent); }
/* Course photo as the tile header; it fades into the tile so the status row reads as part of the same panel. */
.theme-3 .d3-tile-ph { position: relative; margin: -20px -24px 4px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0; background: var(--mint); }
.theme-3 .d3-tile-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.theme-3 .d3-tile-ph::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(180deg, rgba(11,35,25,0), var(--tile)); pointer-events: none; }
.theme-3[data-mode="light"] .d3-tile-ph::after { background: linear-gradient(180deg, rgba(255,255,255,0), var(--tile)); }
.theme-3 .d3-tile:not(.is-live) .d3-tile-ph img { filter: saturate(.55); }
.theme-3 .d3-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; font-size: var(--fs-small); font-weight: 600; line-height: 1.3; color: var(--d3-soft); }
.theme-3 .d3-tile.is-live .d3-status > span:not(.badge):not(.d3-lamp) { color: var(--d3-accent); }
.theme-3 .d3-status .badge { margin-left: auto; }
.theme-3 .d3-tile h3 { font-size: var(--fs-h3); line-height: 1.15; }
.theme-3 .d3-tile h3 a { color: var(--d3-hi); text-decoration: none; }
.theme-3 .d3-tile h3 a:hover { color: var(--d3-accent); text-decoration: underline; }
.theme-3 .d3-sum { margin: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
.theme-3 .d3-tile .d3-read { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: auto; padding-top: 6px; }
.theme-3 .d3-read .d3-wide { grid-column: 1 / -1; }
.theme-3 .d3-tile-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; }
.theme-3 .d3-tile-act .btn { min-height: 48px; padding: 10px 22px; }

/* ---------- Date rail: sessions and milestones sit as nodes on the current line ---------- */
.theme-3 .d3-rail, .theme-3 .timeline {
  list-style: none; position: relative; margin: 0; padding: 0; max-width: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 44px 0;
}
.theme-3 .d3-rail::before, .theme-3 .timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 2px; background: var(--tile-line); }
.theme-3 .d3-stop, .theme-3 .timeline li {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; padding: 34px 28px 0 0;
  border-top: 2px solid var(--d3-accent);
  background: linear-gradient(180deg, rgba(var(--d3-accent-rgb),.13), rgba(var(--d3-accent-rgb),0) 44px);
}
.theme-3 .d3-stop::before, .theme-3 .timeline li::before {
  content: ""; position: absolute; left: 0; top: -8px; width: 14px; height: 14px; border: 0; border-radius: 50%; transform: none;
  background: var(--d3-accent); box-shadow: 0 0 0 4px rgba(var(--d3-accent-rgb),.22);
}
.theme-3 .d3-stop.is-closed { border-top-color: var(--d3-field); background: none; }
.theme-3 .d3-stop.is-closed::before { background: var(--d3-base); border: 2px solid var(--d3-field); box-shadow: none; }
.theme-3 .d3-stop.is-empty { grid-column: 1 / -1; }
.theme-3 .d3-stop.is-empty p { max-width: var(--read); margin: 0; color: var(--muted); }
.theme-3 .d3-when { margin: 0; line-height: 1; }
.theme-3 .d3-when b { display: block; font-family: var(--d3-display); font-size: var(--fs-h2); font-stretch: 72%; font-weight: 800; color: var(--d3-hi); font-variant-numeric: tabular-nums; }
.theme-3 .d3-when span { display: block; margin-top: 6px; font-size: var(--fs-small); font-weight: 600; color: var(--d3-accent); }
.theme-3 .d3-stop.is-closed .d3-when b, .theme-3 .d3-stop.is-closed .d3-when span, .theme-3 .d3-stop.is-closed h3 { color: var(--d3-closed); }
.theme-3 .d3-stop h3 { font-size: var(--fs-h3); line-height: 1.15; }
.theme-3 .d3-stop h3 a { color: var(--d3-hi); text-decoration: none; }
.theme-3 .d3-stop h3 a:hover { color: var(--d3-accent); text-decoration: underline; }
.theme-3 .d3-stop .meta { flex-direction: column; gap: 6px; padding: 0; }
.theme-3 .d3-stop > .btn, .theme-3 .d3-stop > .badge { margin-top: auto; }
.theme-3 .timeline li { gap: 6px; }
.theme-3 .timeline .yr { font-size: var(--fs-h3); font-stretch: 72%; line-height: 1; text-align: left; }
.theme-3 .timeline strong { line-height: 1.3; }
@media (max-width: 640px) {
  .theme-3 .d3-rail, .theme-3 .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .theme-3 .d3-rail::before, .theme-3 .timeline::before { display: none; }
  .theme-3 .d3-stop, .theme-3 .timeline li {
    padding: 0 0 34px 26px; border-top: 0; border-left: 2px solid var(--d3-accent);
    background: linear-gradient(90deg, rgba(var(--d3-accent-rgb),.13), rgba(var(--d3-accent-rgb),0) 44px);
  }
  .theme-3 .d3-stop.is-closed { border-left-color: var(--d3-field); background: none; }
  .theme-3 .d3-stop:last-child, .theme-3 .timeline li:last-child { padding-bottom: 6px; }
  .theme-3 .d3-stop::before, .theme-3 .timeline li::before { left: -8px; top: 2px; }
  .theme-3 .d3-stop > .btn { width: 100%; }
}

/* ---------- Course detail: spec panel first, then the two lists, then the dates ---------- */
.theme-3 .d3-specband { padding: clamp(28px, 4vw, 48px) 0 0; }
.theme-3 .d3-specband + .section { padding-top: clamp(48px, 6vw, 80px); }
.theme-3 .d3-spec {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, auto); gap: 24px clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(24px, 3vw, 40px); background: var(--tile); border: 1px solid var(--tile-line); border-top: 3px solid var(--d3-accent); border-radius: var(--r);
}
.theme-3 .d3-spec h2 { font-size: var(--fs-h3); margin-bottom: 14px; }
.theme-3 .d3-spec .d3-read dd { font-size: var(--fs-h3); }
.theme-3 .d3-next { display: flex; align-items: center; gap: 12px; }
.theme-3 .d3-claims { margin: 14px 0 0; padding: 0; }
.theme-3 .d3-spec-act { display: grid; gap: 14px; }
.theme-3 .d3-spec-act .btn { width: 100%; }
.theme-3 .d3-spec-act .direct { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; font-size: var(--fs-small); }
.theme-3 .d3-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 5vw, 72px); }
.theme-3 .d3-cols .prose h2 { padding-bottom: 14px; margin-bottom: 18px; border-bottom: 2px solid var(--d3-accent); }
.theme-3 .d3-dates { margin-top: clamp(56px, 7vw, 96px); }
.theme-3 .d3-dates > h2 { font-size: var(--fs-h3); margin-bottom: 28px; }
@media (max-width: 900px) {
  .theme-3 .d3-spec, .theme-3 .d3-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Service and article detail: the enquiry panel moves above the text, headings become a label column ---------- */
.theme-3 main > .section:has(> .detail) { padding-top: clamp(28px, 4vw, 48px); }
.theme-3 .detail { grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 64px); }
.theme-3 .detail > .aside-card {
  order: -1; position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(24px, 3vw, 40px);
}
.theme-3 .detail:has(> article) > .aside-card { order: 1; }
.theme-3 .detail > .aside-card > * { grid-column: 1; }
.theme-3 .detail > .aside-card > p { max-width: 60ch; margin: 0; }
.theme-3 .detail > .aside-card > .btn { grid-column: 2; grid-row: 1 / span 2; width: auto; margin: 0; }
.theme-3 .detail > .aside-card > hr { display: none; }
.theme-3 .detail > .aside-card > .direct { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 32px; margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--tile-line); }
@media (max-width: 760px) {
  .theme-3 .detail > .aside-card { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .theme-3 .detail > .aside-card > .btn { grid-column: 1; grid-row: auto; width: 100%; margin-top: 8px; }
}
@media (min-width: 1000px) {
  .theme-3 .detail > .prose { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 72px); align-items: start; }
  .theme-3 .detail > .prose > * { grid-column: 2; }
  .theme-3 .detail > .prose > h2 { grid-column: 1; margin: 44px 0 0; padding-top: 20px; border-top: 2px solid var(--d3-accent); }
  .theme-3 .detail > .prose > h2 + * { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--tile-line); }
  .theme-3 .detail > .prose > h2:first-child, .theme-3 .detail > .prose > h2:first-child + * { margin-top: 0; }
}

/* ---------- Articles: bento with the guide as the lead tile ---------- */
.theme-3 .d3-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.theme-3 .d3-bento a { position: relative; overflow: hidden; height: 100%; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; align-items: start; gap: 8px; padding: 24px; }
.theme-3 .d3-bento a > * { position: relative; }
.theme-3 .d3-bento a > .go { grid-column: 1; grid-row: auto; justify-self: end; margin-top: 12px; }
.theme-3 .d3-bento .is-lead { grid-column: span 2; grid-row: span 2; }
.theme-3 .d3-bento .is-lead a { grid-template-rows: 1fr auto auto auto; min-height: 340px; border-top: 3px solid var(--d3-accent); padding: clamp(26px, 3vw, 44px); }
.theme-3 .d3-bento .is-lead .topic { align-self: end; }
.theme-3 .d3-bento .is-lead h3 { font-size: var(--fs-h2); max-width: 20ch; line-height: 1.08; }
.theme-3 .d3-bento .is-lead p { font-size: var(--fs-body); max-width: 44ch; }
@media (max-width: 1000px) {
  .theme-3 .d3-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme-3 .d3-bento .is-lead { grid-row: auto; }
  .theme-3 .d3-bento .is-lead a { min-height: 340px; }
}
@media (max-width: 640px) {
  .theme-3 .d3-bento { grid-template-columns: minmax(0, 1fr); }
  .theme-3 .d3-bento .is-lead { grid-column: auto; }
}

/* ---------- Videos: bento with the first recording as the lead ---------- */
.theme-3 .d3-bento-v { gap: 28px 18px; }
.theme-3 .d3-bento-v li:first-child h3 { font-size: var(--fs-h3); }
@media (min-width: 1061px) {
  .theme-3 .d3-bento-v li:first-child { grid-column: span 2; grid-row: span 2; }
  .theme-3 .d3-bento-v li:first-child a { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; height: 100%; }
  .theme-3 .d3-bento-v li:first-child .thumb { aspect-ratio: auto; height: 100%; min-height: 0; }
  .theme-3 .d3-bento-v li:first-child .thumb img { object-fit: contain; background: var(--d3-deep); }
}
@media (min-width: 601px) and (max-width: 1060px) {
  .theme-3 .d3-bento-v li:first-child { grid-column: span 2; }
}

/* ---------- Events: years down a line ---------- */
.theme-3 .d3-events { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; }
.theme-3 .d3-events > li { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 0 clamp(24px, 4vw, 48px); }
.theme-3 .d3-ev-date { margin: 0; text-align: right; font-family: var(--d3-display); font-size: var(--fs-h2); font-stretch: 72%; font-weight: 800; line-height: 1; color: var(--d3-accent); font-variant-numeric: tabular-nums; }
.theme-3 .d3-ev-body { position: relative; min-width: 0; padding: 0 0 clamp(40px, 5vw, 64px) clamp(24px, 4vw, 48px); border-left: 2px solid var(--tile-line); }
.theme-3 .d3-events > li:last-child .d3-ev-body { padding-bottom: 8px; }
.theme-3 .d3-ev-body::before { content: ""; position: absolute; left: -8px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--d3-accent); box-shadow: 0 0 0 4px rgba(var(--d3-accent-rgb),.22); }
.theme-3 .d3-ev-body h2 { font-size: var(--fs-h3); margin-bottom: 16px; }
.theme-3 .d3-ev-body .d3-read { max-width: 820px; }
@media (max-width: 640px) {
  .theme-3 .d3-events > li { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .theme-3 .d3-ev-date { text-align: left; }
  .theme-3 .d3-ev-body { margin-left: 7px; }
}

/* ---------- Gallery: contact sheet with one large frame ---------- */
.theme-3 .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.theme-3 .gallery figure { display: flex; flex-direction: column; height: 100%; border-radius: var(--r-sm); }
.theme-3 .gallery figcaption { padding: 12px 14px 4px; }
.theme-3 .gallery-download { margin: auto 14px 8px; }
@media (min-width: 901px) {
  .theme-3 .gallery li:first-child { grid-column: span 2; grid-row: span 2; }
  .theme-3 .gallery li:first-child img { flex: 1; min-height: 0; aspect-ratio: auto; }
}
@media (max-width: 900px) { .theme-3 .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .theme-3 .gallery { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Team: spec sheets, the role is the tag ---------- */
.theme-3 .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.theme-3 .person { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); align-items: stretch; scroll-margin-top: calc(var(--header) + 20px); }
.theme-3 .person .ph { aspect-ratio: auto; min-height: 210px; }
.theme-3 .person .body { display: flex; flex-direction: column; align-items: flex-start; padding: 20px 24px 24px; }
.theme-3 .person .role { order: -1; margin: 0 0 12px; padding: 4px 10px; border-radius: var(--r-sm); background: rgba(var(--d3-accent-rgb),.14); border: 1px solid rgba(var(--d3-accent-rgb),.5); color: var(--d3-accent); line-height: 1.3; }
.theme-3 .person h3 { margin-bottom: 8px; }
.theme-3 .person.lead-person { grid-column: 1 / -1; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); border-top: 3px solid var(--d3-accent); }
.theme-3 .person.lead-person .ph { min-height: 340px; }
.theme-3 .person.lead-person .body { padding: clamp(24px, 3vw, 44px); align-self: stretch; justify-content: center; }
.theme-3 .person.lead-person .eyebrow { order: -2; }
@media (max-width: 1060px) { .theme-3 .people { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .theme-3 .person, .theme-3 .person.lead-person { grid-template-columns: minmax(0, 1fr); }
  .theme-3 .person .ph, .theme-3 .person.lead-person .ph { aspect-ratio: 4 / 3; min-height: 0; }
}

/* ---------- Clients: group label beside a tight logo matrix on paper plates ---------- */
.theme-3 .logo-group { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0 clamp(28px, 4vw, 56px); align-items: start; padding-top: 28px; border-top: 2px solid var(--tile-line); position: relative; }
.theme-3 .logo-group::before { content: ""; position: absolute; left: 0; top: -2px; width: 120px; height: 2px; background: var(--d3-accent); }
.theme-3 .logo-group > h3, .theme-3 .logo-group > p { grid-column: 1; }
.theme-3 .logo-group > p { margin-bottom: 0; }
.theme-3 .logo-group > .logo-wall { grid-column: 2; grid-row: 1 / span 2; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
.theme-3 .logo-group .logo-wall li { height: 84px; padding: 12px 14px; border-radius: 3px; }
.theme-3 .logo-group .logo-wall img { max-height: 52px; }
@media (max-width: 1100px) { .theme-3 .logo-group > .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .theme-3 .logo-group { grid-template-columns: minmax(0, 1fr); }
  .theme-3 .logo-group > .logo-wall { grid-column: 1; grid-row: auto; margin-top: 22px; }
}
@media (max-width: 520px) { .theme-3 .logo-group > .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } .theme-3 .logo-group .logo-wall li { height: 72px; padding: 10px; } }

/* ---------- Qualifications: one panel per holder ---------- */
.theme-3 .d3-holders { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 14px; }
.theme-3 .d3-holder { break-inside: avoid; margin: 0 0 14px; background: var(--tile); border: 1px solid var(--tile-line); border-radius: var(--r); overflow: hidden; }
.theme-3 .d3-holder-head { padding: 16px 22px 18px; border-bottom: 2px solid var(--d3-accent); }
.theme-3 .d3-holder-head h3 { font-size: var(--fs-h3); }
.theme-3 .d3-key, .theme-3 .d3-key-row { font-size: var(--fs-small); color: var(--muted); }
.theme-3 .d3-key { display: block; }
.theme-3 .d3-holder ul { list-style: none; margin: 0; padding: 0 22px 6px; }
.theme-3 .d3-holder ul li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 4px 20px; padding: 12px 0; border-top: 1px solid var(--tile-line); line-height: 1.35; }
.theme-3 .d3-holder ul li:first-child { border-top: 0; padding-bottom: 6px; }
.theme-3 .d3-holder strong { color: var(--d3-hi); }
.theme-3 .d3-holder li > span { color: var(--d3-soft); }
.theme-3 .d3-holder .d3-key-row > span { color: var(--muted); }
@media (max-width: 900px) { .theme-3 .d3-holders { columns: 1; } }
@media (max-width: 520px) {
  .theme-3 .d3-holder ul li { grid-template-columns: minmax(0, 1fr); }
  .theme-3 .d3-holder .d3-key-row { display: none; }
}

/* ---------- Sector and topic lists: one ruled panel instead of separate cards ---------- */
.theme-3 ul.grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--tile-line); border-radius: var(--r); overflow: hidden; background: var(--tile); }
.theme-3 ul.grid.g3 > .card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-content: start; align-items: start; padding: 20px 24px; background: none; border: 0; border-radius: 0; box-shadow: inset -1px -1px 0 var(--tile-line); }
.theme-3 ul.grid.g3 > .card .icon { grid-row: 1 / span 2; width: 44px; height: 44px; margin: 0; }
.theme-3 ul.grid.g3 > .card .icon svg { width: 24px; height: 24px; }
.theme-3 ul.grid.g3 > .card h3 { margin: 0; align-self: center; line-height: 1.25; }
.theme-3 ul.grid.g3 > .card p { grid-column: 2; margin: 0; font-size: var(--fs-small); }
@media (max-width: 760px) { .theme-3 ul.grid.g3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Forms: contact rail on the left, labels beside their fields ---------- */
.theme-3 .form { max-width: none; }
.theme-3 .form-section-title { display: flex; align-items: center; gap: 18px; padding-top: 0; border-top: 0; margin-top: 14px; }
.theme-3 .form-section-title::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--d3-accent), var(--tile-line) 120px); }
.theme-3 .field input, .theme-3 .field select, .theme-3 .field textarea { border-width: 1px; border-bottom-width: 2px; }
.theme-3 .choice { border-width: 1px; border-bottom-width: 2px; }
.theme-3 .side-help .card { border-top: 3px solid var(--d3-accent); padding: 24px; }
@media (min-width: 961px) {
  .theme-3 .form-layout { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 3.4vw, 48px); }
  .theme-3 .form-layout > .side-help { order: -1; position: sticky; top: calc(var(--header) + 20px); }
}
@media (min-width: 1180px) {
  .theme-3 .form .field { grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 6px 28px; align-items: start; }
  .theme-3 .form .field > label { grid-column: 1; padding-top: 16px; line-height: 1.3; }
  .theme-3 .form .field > .hint { grid-column: 1; grid-row: 2; margin: 0; }
  .theme-3 .form .field > input, .theme-3 .form .field > select, .theme-3 .form .field > textarea { grid-column: 2; grid-row: 1 / span 2; }
  .theme-3 .form .field > .err { grid-column: 2; }
  .theme-3 .form .fieldset { display: block; padding-left: 258px; }
  .theme-3 .form .fieldset > legend { float: left; width: 230px; margin-left: -258px; padding-top: 16px; line-height: 1.3; }
  .theme-3 .form .fieldset > .err { margin-top: 8px; }
  .theme-3 .form .privacy-note, .theme-3 .form .form-actions { margin-left: 258px; }
}
