/* ==========================================================================
   The Applied AI Practicum
   Design system v2. Hand-authored, no framework, no build step.

   Everything here derives from the mark: three bars brightening into a solid
   P. Palette, radius ratio and the bar device all come out of that drawing.
   Full rationale: brand/WEBSITE-DESIGN-GUIDELINES.md

   Contents
     01  tokens
     02  webfonts
     03  reset and base
     04  typography
     05  layout — shell, bands, rail
     06  masthead
     07  page cover
     08  facts strip
     09  section furniture
     10  the bar device
     11  units and the progression
     12  cards, panels, spines
     13  callouts
     14  tables
     15  buttons
     16  forms
     17  sessions accordion
     18  price
     19  documents index
     20  footer
     21  utilities
     22  print
   ========================================================================== */

/* ------------------------------------------------------------ 01 tokens */

:root {
  /* ground */
  --paper:        #FAF7F1;
  --paper-raised: #F4F0E6;
  --paper-deep:   #EDE8DA;

  /* ink */
  --ink:    #191A17;   /* 16.35 : 1 */
  --ink-2:  #3C3E38;   /* 10.13 : 1 */
  --muted:  #5F6259;   /*  5.81 : 1 */
  --muted-2:#737667;   /*  4.35 : 1  large text only */

  /* the mark's three */
  --pine:       #2B4A3B;   /* 9.15 : 1  structure, authority */
  --pine-deep:  #1E3A2D;   /* 11.56 : 1 hover, pressed */
  --pine-tint:  #E8EEE9;
  --moss:       #70844C;   /* 3.86 : 1  graphics + 21px only */
  --moss-deep:  #5A6C3C;   /* 5.39 : 1  moss as text */
  --moss-tint:  #EDEFE0;
  --sand:       #DBCF83;   /* 1.48 : 1  FILL ONLY */
  --ochre:      #7E6F28;   /* 4.69 : 1  sand as foreground */
  --sand-tint:  #F6F2E2;

  /* lines */
  --hairline:   #DDD8CA;
  --hairline-2: #CFC9B6;

  /* dark ground — the logo and pine bands only */
  --dark-ground: #16211C;
  --pine-lift:   #4E7A62;
  --moss-lift:   #93AC66;
  --on-pine:     #D8E2DA;   /* secondary text on pine */
  --on-pine-3:   #A9BCB0;   /* tertiary text on pine */
  --pine-rule:   rgba(250, 247, 241, 0.18);

  /* state */
  --focus:      #2B4A3B;
  --danger:     #8A3324;
  --danger-tint:#F6E9E5;

  /* type */
  --display: "Plein", "Plein Fallback", "Helvetica Neue", Arial, sans-serif;
  --text:    "Switzer", "Switzer Fallback", "Helvetica Neue", Arial, sans-serif;
  --mono:    ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --s-12: 0.75rem;    --s-14: 0.875rem;  --s-16: 1rem;      --s-18: 1.125rem;
  --s-21: 1.3125rem;  --s-25: 1.5625rem; --s-30: 1.875rem;  --s-36: 2.25rem;
  --s-43: 2.6875rem;  --s-52: 3.25rem;   --s-62: 3.875rem;  --s-80: 5rem;

  /* space */
  --sp-0:  4px;  --sp-1:  8px;  --sp-2: 12px; --sp-3: 16px; --sp-4: 24px;
  --sp-5: 32px;  --sp-6: 48px;  --sp-7: 64px; --sp-8: 96px; --sp-9: 128px;

  /* radius — 0.17 x element height, capped at 24 */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-tile: 21.9%;

  /* measure */
  --shell:        1220px;
  --measure:      68ch;
  --measure-lede: 38ch;
  --measure-wide: 82ch;

  /* the bar device */
  --bar-h:   10px;
  --bar-gap:  8px;
  --bar-r:    2px;

  --head-h: 72px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --dur:  160ms;
}

/* --------------------------------------------------------- 02 webfonts */
/* Plein and Switzer, Indian Type Foundry, ITF Free Font Licence.
   Complete variable files as released — the licence prohibits subsetting.
   Served from this site, so no third party sees a visitor's IP address. */

@font-face {
  font-family: "Plein";
  src: url("assets/fonts/Plein-Variable.woff2") format("woff2-variations");
  font-weight: 300 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("assets/fonts/Switzer-Variable.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* Metric-matched fallbacks: the swap moves text by a hair instead of
   reflowing a headline. Derived from each family's average lowercase
   advance against Arial. */
@font-face {
  font-family: "Plein Fallback";
  src: local("Helvetica Neue"), local("Arial"), local("Liberation Sans");
  size-adjust: 98%; ascent-override: 103%; descent-override: 27%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Switzer Fallback";
  src: local("Helvetica Neue"), local("Arial"), local("Liberation Sans");
  size-adjust: 100%; ascent-override: 98%; descent-override: 25%;
  line-gap-override: 0%;
}

/* --------------------------------------------------- 03 reset and base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + var(--sp-4));
}
@media (max-width: 860px) { html { scroll-padding-top: var(--sp-4); } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--s-18);
  font-weight: 400;
  line-height: 1.60;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
::selection { background: var(--pine); color: var(--paper); }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
.band--pine :where(a, button, summary):focus-visible { outline-color: var(--sand); }

.skip {
  position: absolute; left: var(--sp-3); top: -100px; z-index: 100;
  background: var(--pine); color: var(--paper);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-sm);
  font-weight: 600; font-size: var(--s-16); text-decoration: none;
}
.skip:focus { top: var(--sp-3); }

.vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------- 04 typography */

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-weight: 700;
  font-size: clamp(var(--s-36), 5.0vw, var(--s-62));
  line-height: 1.04;
  letter-spacing: -0.022em;
}
h2 {
  font-weight: 700;
  font-size: clamp(var(--s-25), 3.2vw, var(--s-36));
  line-height: 1.12;
  letter-spacing: -0.016em;
}
h3 {
  font-weight: 600;
  font-size: var(--s-21);
  line-height: 1.24;
  letter-spacing: -0.008em;
}
h4 { font-weight: 600; font-size: var(--s-18); line-height: 1.30; }
h5 { font-weight: 600; font-size: var(--s-16); line-height: 1.35; }

p { margin: 0; max-width: var(--measure); }
p + p { margin-top: var(--sp-3); }

a { color: var(--pine); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--pine-deep); }

strong, b { font-weight: 600; }
em { font-style: italic; }
code, kbd, samp { font-family: var(--mono); font-size: 0.92em; }

.lede {
  font-family: var(--text);
  font-size: clamp(var(--s-18), 2.1vw, var(--s-25));
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink-2);
  max-width: 42ch;
  margin: 0;
}

.eyebrow {
  font-family: var(--text);
  font-weight: 600;
  font-size: var(--s-12);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.note {
  font-size: var(--s-14);
  line-height: 1.55;
  color: var(--muted);
  max-width: var(--measure-wide);
  margin: 0;
}

.measure      { max-width: var(--measure); }
.measure-wide { max-width: var(--measure-wide); }
.tabular, table, .figure { font-variant-numeric: tabular-nums; }

/* pull quote — the course's own lines, set large. sand underlay is the
   only place sand appears behind type. */
.pull {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(var(--s-21), 2.6vw, var(--s-30));
  line-height: 1.26;
  letter-spacing: -0.012em;
  color: var(--pine);
  max-width: 24ch;
  margin: 0;
}
.pull--mark {
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background-image: linear-gradient(to top, var(--sand) 0.30em, rgba(0,0,0,0) 0.30em);
  padding-inline: 0.06em;
}

/* ---------------------------------------- 05 layout: shell, bands, rail */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
@media (min-width: 1000px) { .shell { padding-inline: var(--sp-6); } }

.band { padding-block: var(--sp-7); }
@media (min-width: 860px) { .band { padding-block: var(--sp-8); } }

.band--raised { background: var(--paper-raised); }
.band--deep   { background: var(--paper-deep); }
.band--sand   { background: var(--sand-tint); }
.band--tight  { padding-block: var(--sp-6); }

.band--pine {
  background: var(--pine);
  color: var(--on-pine);
}
.band--pine h1, .band--pine h2, .band--pine h3, .band--pine h4 { color: var(--paper); }
.band--pine .eyebrow { color: var(--sand); }
.band--pine .lede    { color: var(--on-pine); }
.band--pine .note    { color: var(--on-pine-3); }
.band--pine a:not(.btn) { color: var(--paper); }
.band--pine .rule    { background: var(--pine-rule); }

.rule { height: 1px; background: var(--hairline); border: 0; margin: 0; }

/* two-column split: body left, aside right */
.split {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split       { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--sp-7); align-items: start; }
  .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--wide { grid-template-columns: minmax(0, 1fr) 420px; }
  .split--flip { grid-template-columns: 340px minmax(0, 1fr); }
}

.cols {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 899px) { .cols--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* sticky contents rail, long pages only */
.with-rail { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }
@media (min-width: 1080px) {
  .with-rail { grid-template-columns: 224px minmax(0, 1fr); gap: var(--sp-7); align-items: start; }
}

.rail { position: static; }
@media (min-width: 1080px) {
  .rail { position: sticky; top: calc(var(--head-h) + var(--sp-4)); }
}
.rail > .eyebrow { margin-bottom: var(--sp-3); }
.rail ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rail a {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: var(--sp-2);
  align-items: baseline;
  padding: var(--sp-1) 0;
  font-size: var(--s-14);
  line-height: 1.35;
  color: var(--muted);
  text-decoration: none;
}
.rail a::before {
  content: "";
  height: 4px; width: 14px;
  border-radius: 1px;
  background: var(--hairline-2);
  transform: translateY(-3px);
  transition: background var(--dur) var(--ease), width var(--dur) var(--ease);
}
.rail a:hover { color: var(--ink); }
.rail a:hover::before { background: var(--moss); }
.rail a[aria-current="true"] { color: var(--pine); font-weight: 600; }
.rail a[aria-current="true"]::before { background: var(--pine); }

/* mobile: the same list inside a disclosure */
.rail-m { margin-bottom: var(--sp-5); }
@media (min-width: 1080px) { .rail-m { display: none; } }
@media (max-width: 1079px) { .rail-d { display: none; } }
.rail-m > summary {
  cursor: pointer;
  list-style: none;
  font-size: var(--s-14);
  font-weight: 600;
  color: var(--pine);
  padding: var(--sp-2) 0;
  border-block: 1px solid var(--hairline);
}
.rail-m > summary::-webkit-details-marker { display: none; }
.rail-m > summary::after { content: " ↓"; }
.rail-m[open] > summary::after { content: " ↑"; }
.rail-m .rail { padding-block: var(--sp-3); }

/* ------------------------------------------------------- 06 masthead */

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
@supports not (backdrop-filter: blur(2px)) { .masthead { background: var(--paper); } }

.masthead__in {
  min-height: var(--head-h);
  display: flex; align-items: center; gap: var(--sp-4);
  justify-content: space-between;
  padding-block: var(--sp-2);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand img, .brand svg { height: 34px; width: auto; }
@media (max-width: 560px) { .brand img, .brand svg { height: 28px; } }

.nav { display: flex; align-items: center; gap: var(--sp-0); flex-wrap: wrap; justify-content: flex-end; }
.nav a:not(.btn) {
  font-size: var(--s-14);
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r-xs);
  white-space: nowrap;
}
.nav a:not(.btn):hover { background: var(--pine-tint); color: var(--pine); }
.nav a:not(.btn)[aria-current="page"] { color: var(--pine); font-weight: 600; }
.nav .btn { margin-left: var(--sp-2); }

@media (max-width: 860px) {
  /* two rows of nav plus a sticky bar eats too much of a phone viewport */
  .masthead { position: static; }
  .masthead__in { flex-wrap: wrap; row-gap: var(--sp-1); }
  .nav { width: 100%; justify-content: flex-start; overflow-x: auto;
         padding-bottom: var(--sp-1); margin-inline: calc(var(--sp-4) * -1);
         padding-inline: var(--sp-4); scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav .btn { display: none; }
}

/* ----------------------------------------------------- 07 page cover */
/* Every page opens on the same pine band. It is the cover of the document. */

.cover { padding-block: var(--sp-7) var(--sp-7); }
@media (min-width: 860px) { .cover { padding-block: var(--sp-8) var(--sp-8); } }
.cover__in { display: flex; flex-direction: column; gap: var(--sp-4); }
.cover h1 { max-width: 18ch; }
.cover--wide h1 { max-width: 22ch; }
.cover .lede { max-width: 46ch; }
.cover__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-1); }

.cover--home .cover__grid {
  display: grid; gap: var(--sp-6); grid-template-columns: 1fr; align-items: end;
}
@media (min-width: 980px) {
  .cover--home .cover__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--sp-8); }
}

/* the unit ladder — the mark, exploded into information */
.ladder { display: flex; flex-direction: column; gap: var(--sp-2); }
.ladder__row {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  font-size: var(--s-14);
  line-height: 1.3;
}
.ladder__row b { font-family: var(--display); font-weight: 600; font-size: var(--s-16); }
.ladder__row span { font-variant-numeric: tabular-nums; opacity: 0.72; white-space: nowrap; }
.ladder__row--1 { background: var(--pine-lift); color: #0E1A14; }
.ladder__row--2 { background: var(--moss-lift); color: #1A2010; }
.ladder__row--3 { background: var(--sand);      color: #2A2608; }
.ladder__row--p {
  background: var(--paper); color: var(--pine);
  padding-block: var(--sp-4);
  border-radius: var(--r-md);
  margin-top: var(--sp-1);
}
.ladder__row--p b { font-size: var(--s-18); }
.ladder__cap { color: var(--on-pine-3); font-size: var(--s-12); letter-spacing: 0.04em; }

/* ---------------------------------------------------- 08 facts strip */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(172px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border-block: 1px solid var(--hairline);
}
.facts > div {
  background: var(--paper);
  padding: var(--sp-3) var(--sp-3);
  display: flex; flex-direction: column; gap: 2px;
}
.band--raised .facts > div { background: var(--paper-raised); }
.facts dt, .facts .k {
  font-size: var(--s-12); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.facts dd, .facts .v {
  margin: 0; font-size: var(--s-16); line-height: 1.35; color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------ 09 section furniture */

.section { padding-block: var(--sp-7); }
@media (min-width: 860px) { .section { padding-block: var(--sp-8); } }
.section + .section { border-top: 1px solid var(--hairline); }
.section--tight { padding-block: var(--sp-6); }

.section__head { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.section__head h2 { max-width: 22ch; }
.section__head .lede,
.section__head p { max-width: var(--measure); }
.section__head--split { margin-bottom: var(--sp-6); }

.stack   { display: flex; flex-direction: column; gap: var(--sp-3); }
.stack-4 { display: flex; flex-direction: column; gap: var(--sp-4); }
.stack-5 { display: flex; flex-direction: column; gap: var(--sp-5); }
.stack-6 { display: flex; flex-direction: column; gap: var(--sp-6); }

/* a 120px bar opening a section, in the section's own colour */
.tick { height: 6px; width: 120px; border-radius: 1px; background: var(--pine); }
.tick--moss { background: var(--moss); }
.tick--sand { background: var(--sand); }

/* -------------------------------------------------- 10 the bar device */

.bars { display: flex; flex-direction: column; gap: var(--bar-gap); width: 100%; }
.bars > i {
  display: block; height: var(--bar-h); border-radius: var(--bar-r);
  background: var(--hairline);
}
.bars > i.on-1 { background: var(--pine); }
.bars > i.on-2 { background: var(--moss); }
.bars > i.on-3 { background: var(--sand); }
.bars--sm { --bar-h: 6px; --bar-gap: 5px; --bar-r: 1px; }

/* the 22-week progression, one segment per unit */
.progress { display: flex; flex-direction: column; gap: var(--sp-2); }
.progress__track { display: flex; gap: 5px; }
.progress__seg {
  height: 14px; border-radius: 2px; background: var(--hairline);
  position: relative;
}
.progress__seg--1 { background: var(--pine); flex: 6; }
.progress__seg--2 { background: var(--moss); flex: 6; }
.progress__seg--3 { background: var(--sand); flex: 6; }
.progress__seg--4 { background: var(--pine); flex: 2; }
.progress__labels {
  display: flex; gap: 5px; font-size: var(--s-12); color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.progress__labels > span { line-height: 1.3; }
.progress__labels > span:nth-child(1) { flex: 6; }
.progress__labels > span:nth-child(2) { flex: 6; }
.progress__labels > span:nth-child(3) { flex: 6; }
.progress__labels > span:nth-child(4) { flex: 2; }
@media (max-width: 700px) { .progress__labels { font-size: 10px; } }

/* -------------------------------------- 11 units and the progression */

.unit {
  position: relative;
  background: var(--paper-raised);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  overflow: hidden;
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.unit::before {
  content: ""; position: absolute; left: 0; top: var(--sp-4); bottom: var(--sp-4);
  width: 4px; border-radius: 0 2px 2px 0; background: var(--hairline-2);
}
.unit--1::before { background: var(--pine); }
.unit--2::before { background: var(--moss); }
.unit--3::before { background: var(--sand); }
.unit--4::before { background: var(--pine); top: 0; bottom: 0; }
.unit--4 { background: var(--pine-tint); }
.unit__n {
  font-size: var(--s-12); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.unit h3 { margin: 0; }
.unit p { font-size: var(--s-16); color: var(--ink-2); }
.unit__meta {
  font-size: var(--s-14); color: var(--muted); font-variant-numeric: tabular-nums;
  margin-top: auto; padding-top: var(--sp-2);
}

/* the unit heading on the curriculum page */
.unit-head {
  display: flex; flex-direction: column; gap: var(--sp-2);
  padding-left: var(--sp-4);
  border-left: 6px solid var(--hairline-2);
}
.unit-head--1 { border-left-color: var(--pine); }
.unit-head--2 { border-left-color: var(--moss); }
.unit-head--3 { border-left-color: var(--sand); }
.unit-head--4 { border-left-color: var(--pine); }
.unit-head__meta { font-size: var(--s-14); color: var(--muted); font-variant-numeric: tabular-nums; }

/* ------------------------------------------ 12 cards, panels, spines */

.card {
  background: var(--paper-raised);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.card--flat  { background: transparent; padding: 0; }
.card--tint  { background: var(--pine-tint); }
.card--sand  { background: var(--sand-tint); }
.card--pine  { background: var(--pine); color: var(--on-pine); }
.card--pine h3, .card--pine h4, .card--pine .figure { color: var(--paper); }
.card--pine .eyebrow { color: var(--sand); }
.card h3, .card h4 { margin: 0; }
.card p { font-size: var(--s-16); color: var(--ink-2); max-width: none; }
.card--pine p { color: var(--on-pine); }

.panel {
  background: var(--paper-raised);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}
.panel--deep { background: var(--paper-deep); }

/* a list where each item is opened by a small pine bar */
.marked { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-4); }
.marked > li { position: relative; padding-left: 38px; }
.marked > li::before {
  content: ""; position: absolute; left: 0; top: 0.68em;
  height: 4px; width: 22px; border-radius: 1px; background: var(--pine);
}
.marked--moss > li::before { background: var(--moss); }
.marked--sand > li::before { background: var(--sand); }
.marked--rule > li { padding-bottom: var(--sp-4); border-bottom: 1px solid var(--hairline); }
.marked--rule > li:last-child { padding-bottom: 0; border-bottom: 0; }
.marked b { font-weight: 600; color: var(--ink); }
.marked p { max-width: none; }

/* plain prose list */
.list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--sp-3); }
.list > li {
  position: relative; padding-left: 26px;
  max-width: var(--measure-wide); line-height: 1.55;
}
.list > li::before {
  content: ""; position: absolute; left: 0; top: 0.52em;
  width: 10px; height: 10px; border-radius: 2px; background: var(--hairline-2);
}
.list--pine > li::before { background: var(--pine); }
.list--sand > li::before { background: var(--sand); }

/* numbered steps, tabular figures */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: var(--sp-5); }
.steps > li { position: relative; padding-left: 64px; counter-increment: step; }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0.05em;
  font-family: var(--display); font-weight: 700; font-size: var(--s-21);
  color: var(--pine); font-variant-numeric: tabular-nums; line-height: 1.2;
}
.steps h3, .steps h4 { margin-bottom: var(--sp-1); }

/* the "produces" chip — the one thing every session leaves behind */
.artifact {
  display: inline-flex; align-items: flex-start; gap: var(--sp-2);
  background: var(--sand-tint);
  border-radius: var(--r-sm);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--s-14);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: var(--measure-wide);
}
.artifact::before {
  content: ""; flex: 0 0 auto; width: 14px; height: 14px;
  border-radius: 2px; background: var(--sand); transform: translateY(0.28em);
}
.artifact b { color: var(--ochre); font-weight: 600; }

.badge {
  display: inline-block; align-self: flex-start;
  font-size: var(--s-12); font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px var(--sp-2); border-radius: var(--r-xs);
  background: var(--pine-tint); color: var(--pine);
}
.badge--sand { background: var(--sand-tint); color: var(--ochre); }
.badge--moss { background: var(--moss-tint); color: var(--moss-deep); }

/* ------------------------------------------------------ 13 callouts */

.callout {
  position: relative;
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  overflow: hidden;
  display: flex; flex-direction: column; gap: var(--sp-1);
  max-width: var(--measure-wide);
}
.callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.callout__k {
  font-size: var(--s-12); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.callout p { font-size: var(--s-16); max-width: none; }

.callout--note { background: var(--pine-tint); }
.callout--note::before { background: var(--pine); }
.callout--note .callout__k { color: var(--pine); }

.callout--prog { background: var(--moss-tint); }
.callout--prog::before { background: var(--moss); }
.callout--prog .callout__k { color: var(--moss-deep); }

.callout--out { background: var(--sand-tint); }
.callout--out::before { background: var(--sand); }
.callout--out .callout__k { color: var(--ochre); }

.callout--caution { background: var(--danger-tint); }
.callout--caution::before { background: var(--danger); }
.callout--caution .callout__k { color: var(--danger); }

/* --------------------------------------------------------- 14 tables */

.table-wrap {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper-raised);
}
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: var(--s-16); }
caption {
  text-align: left; font-size: var(--s-14); color: var(--muted);
  padding: 0 0 var(--sp-2);
}
th {
  text-align: left; font-weight: 600; font-size: var(--s-14);
  background: var(--paper-deep); color: var(--ink);
  padding: var(--sp-2) var(--sp-4); white-space: nowrap;
}
td { padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--hairline); vertical-align: top; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.total td { background: var(--paper-deep); font-weight: 600; }
tr.hl td { background: var(--sand-tint); }

/* label / value rows, the workhorse of the finance and spec blocks */
.kv { display: flex; flex-direction: column; gap: 0; }
.kv > div {
  display: flex; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-2) 0; border-bottom: 1px solid var(--hairline);
  font-size: var(--s-16);
}
.kv > div:last-child { border-bottom: 0; }
.kv dt, .kv .k { color: var(--muted); }
.kv dd, .kv .v { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }

/* -------------------------------------------------------- 15 buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding-inline: var(--sp-4);
  border: 0; border-radius: var(--r-sm);
  font-family: var(--text); font-weight: 600; font-size: var(--s-16);
  letter-spacing: 0.005em; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  background: var(--pine); color: var(--paper);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { background: var(--pine-deep); color: var(--paper); }

.btn--secondary {
  background: transparent; color: var(--pine);
  box-shadow: inset 0 0 0 1.5px var(--pine);
}
.btn--secondary:hover { background: var(--pine-tint); color: var(--pine-deep); }

.btn--onpine { background: var(--paper); color: var(--pine); }
.btn--onpine:hover { background: #fff; color: var(--pine-deep); }
.btn--onpine-ghost {
  background: transparent; color: var(--paper);
  box-shadow: inset 0 0 0 1.5px rgba(250, 247, 241, 0.45);
}
.btn--onpine-ghost:hover { background: rgba(250, 247, 241, 0.10); color: var(--paper); }

.btn--quiet {
  background: transparent; color: var(--pine);
  padding-inline: var(--sp-1); min-height: 32px;
  text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.btn--quiet:hover { background: transparent; color: var(--pine-deep); }

.btn--sm { min-height: 36px; font-size: var(--s-14); padding-inline: var(--sp-3); border-radius: 6px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }

/* ---------------------------------------------------------- 16 forms */

.form { display: flex; flex-direction: column; gap: var(--sp-4); max-width: 34rem; }
.field { display: flex; flex-direction: column; gap: var(--sp-1); }
.field > label {
  font-size: var(--s-14); font-weight: 600; color: var(--ink);
}
.field .req { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select {
  font-family: var(--text); font-size: var(--s-16); color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--hairline-2);
  border-radius: var(--r-sm);
  padding: var(--sp-2) var(--sp-3);
  min-height: 48px;
  width: 100%;
}
.field textarea { min-height: 120px; line-height: 1.5; resize: vertical; padding-block: var(--sp-2); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus { border-color: var(--pine); }
.field .hint { font-size: var(--s-14); color: var(--muted); }
.field .err { font-size: var(--s-14); color: var(--danger); display: none; }
.field .err::before { content: "△ "; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }
.field.is-invalid .err { display: block; }
.form__status { font-size: var(--s-14); color: var(--muted); min-height: 1.4em; }
.hp { position: absolute; left: -9999px; }

.form--onpine .field > label { color: var(--paper); }
.form--onpine .field .hint { color: var(--on-pine-3); }
.form--onpine .field input,
.form--onpine .field textarea {
  background: rgba(250, 247, 241, 0.06);
  border-color: rgba(250, 247, 241, 0.34);
  color: var(--paper);
}
.form--onpine .field input::placeholder,
.form--onpine .field textarea::placeholder { color: var(--on-pine-3); }
.form--onpine .field input:focus,
.form--onpine .field textarea:focus { border-color: var(--sand); }
.form--onpine .form__status { color: var(--on-pine-3); }
.form--onpine .field .err { color: #F0B7A8; }

/* --------------------------------------------- 17 sessions accordion */

.sessions { display: flex; flex-direction: column; gap: var(--sp-1); }
.sessions details {
  background: var(--paper-raised);
  border-radius: var(--r-md);
  overflow: hidden;
}
.sessions details[open] { background: var(--paper-deep); }
.sessions summary {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 28px;
  align-items: baseline;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  cursor: pointer;
  list-style: none;
}
.sessions summary::-webkit-details-marker { display: none; }
.sessions summary:hover { background: var(--paper-deep); }
.s-num {
  font-size: var(--s-12); font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.s-title {
  font-family: var(--display); font-weight: 600; font-size: var(--s-18);
  line-height: 1.3; margin: 0; color: var(--ink); display: block;
}
.s-teaser {
  grid-column: 2; font-size: var(--s-14); color: var(--muted); line-height: 1.45;
  display: block; margin-top: 2px;
}
.s-mark {
  font-family: var(--display); font-weight: 600; font-size: var(--s-21);
  color: var(--pine); justify-self: end; line-height: 1;
}
details[open] .s-mark { transform: rotate(45deg); }
.s-body {
  padding: 0 var(--sp-4) var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.s-body p { font-size: var(--s-16); color: var(--ink-2); max-width: var(--measure-wide); }
@media (max-width: 620px) {
  .sessions summary { grid-template-columns: minmax(0, 1fr) 28px; }
  .s-num { grid-column: 1; }
  .s-title, .s-teaser { grid-column: 1; }
  .s-mark { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
}

/* ---------------------------------------------------------- 18 price */

.price { display: flex; flex-direction: column; gap: var(--sp-3); }
.figure {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(var(--s-43), 6vw, var(--s-62));
  line-height: 1; letter-spacing: -0.03em; color: var(--pine);
}
.card--pine .figure { color: var(--paper); }
.price__unit { font-size: var(--s-14); color: var(--muted); max-width: 30ch; }
.card--pine .price__unit { color: var(--on-pine-3); }
.card--pine .kv > div { border-bottom-color: var(--pine-rule); }
.card--pine .kv .k { color: var(--on-pine-3); }
.card--pine .kv .v { color: var(--paper); }

/* ----------------------------------------------- 19 documents index */

.docs { display: flex; flex-direction: column; gap: 0; }
.docs a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--sp-3); align-items: baseline;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none; color: var(--ink);
}
.docs a:last-child { border-bottom: 0; }
.docs a:hover { color: var(--pine); }
.docs a:hover .docs__t { text-decoration: underline; }
.docs__t { font-weight: 500; font-size: var(--s-16); }
.docs__m { font-size: var(--s-14); color: var(--muted); text-align: right; white-space: nowrap; }

/* --------------------------------------------- 19a review quotes */

/* Verbatim customer reviews of the travel business, used as evidence of the
   methods rather than of the course. Deliberately plain: no cards, no lift,
   no decoration. A quotation that looks designed looks chosen. */

.quote {
  display: flex; flex-direction: column; gap: var(--sp-2);
  margin: 0; padding-top: var(--sp-3);
  border-top: 3px solid var(--hairline-2);
}
.quote > * { margin: 0; }
.quote--1 { border-top-color: var(--pine); }
.quote--2 { border-top-color: var(--moss); }
.quote--3 { border-top-color: var(--sand); }
.quote__t {
  font-size: var(--s-18); line-height: 1.5; color: var(--ink);
  max-width: 46ch; text-wrap: pretty;
}
.quote__a {
  display: flex; flex-wrap: wrap; gap: var(--sp-0) var(--sp-2);
  align-items: baseline;
  font-size: var(--s-14); color: var(--muted);
}
.quote__a b { color: var(--ink-2); font-weight: 600; }
.quote__stars { color: var(--ochre); letter-spacing: 0.06em; white-space: nowrap; }

.quotes-stack { display: flex; flex-direction: column; gap: var(--sp-5); }

/* --------------------------------------------------------- 20 footer */

.footer {
  background: var(--pine-deep);
  color: var(--on-pine);
  padding-block: var(--sp-7) var(--sp-6);
  margin-top: 0;
}
.footer a { color: var(--paper); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__top {
  display: grid; gap: var(--sp-6); grid-template-columns: 1fr;
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--pine-rule);
}
@media (min-width: 780px)  { .footer__top { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-7); } }
.footer__brand { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__brand img { height: 48px; width: auto; }
.footer__blurb { font-size: var(--s-14); line-height: 1.55; color: var(--on-pine-3); max-width: 40ch; }
.footer h2, .footer .footer__h {
  font-family: var(--text); font-size: var(--s-12); font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--sand);
  margin-bottom: var(--sp-3);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.footer li { font-size: var(--s-14); line-height: 1.4; }
.footer__legal {
  padding-top: var(--sp-4);
  font-size: var(--s-12); line-height: 1.6; color: var(--on-pine-3);
  max-width: 88ch;
}

/* ------------------------------------------------------ 21 utilities */

.mt-1 { margin-top: var(--sp-1); }  .mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }  .mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }  .mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mb-3 { margin-bottom: var(--sp-3); } .mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------- 22 print */

@media print {
  :root { --paper: #fff; --paper-raised: #fff; --paper-deep: #fff; }
  .masthead, .footer, .rail, .rail-m, .skip, .cover__actions, .actions,
  .btn, .form, .nav { display: none !important; }
  body { font-size: 10.5pt; line-height: 1.45; color: #000; background: #fff; }
  .band, .section { padding-block: 12pt; break-inside: avoid; }
  .band--pine { background: #fff !important; color: #000 !important; border-bottom: 1pt solid #000; }
  .band--pine h1, .band--pine .lede, .band--pine .eyebrow { color: #000 !important; }
  .cover { padding-block: 0 12pt; }
  h1 { font-size: 22pt; } h2 { font-size: 15pt; } h3 { font-size: 12pt; }
  .sessions details { background: #fff; border: 0.5pt solid #999; margin-bottom: 6pt; }
  .sessions details summary { padding: 6pt; }
  .s-body { padding: 0 6pt 6pt; }
  .card, .panel, .unit, .callout, .artifact { background: #fff !important; border: 0.5pt solid #999; }
  .callout::before, .unit::before { display: none; }
  a { color: #000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #444; }
  table, .table-wrap { background: #fff; }
  th { background: #eee; }
  .progress__seg { border: 0.5pt solid #000; }
}

/* ---------------------------------------------------------------- photograph
   One photograph, shown whole rather than cropped to a banner shape. The frame
   carries the corner radius; the image keeps its own proportions. */
.photo-band { padding-block: var(--sp-6) 0; }
.photo { margin: 0 auto; max-width: 880px; }
.photo__frame {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--paper-deep);
}
.photo__frame img { display: block; width: 100%; height: auto; }
.photo__cap {
  margin-top: var(--sp-2);
  font-size: var(--s-14);
  line-height: 1.55;
  color: var(--muted);
  max-width: 68ch;
}
@media print { .photo-band { display: none; } }
