/* ==========================================================================
   ScaffSkills - shared stylesheet

   One file for every page. Replaces 4,591 lines of per-page inline CSS.

   :root below is the single source of truth for the brand. A reskin is a
   change here, not a change to any page. See docs/brand-spec.md.

   Structure
     1  Tokens
     2  Reset and base elements
     3  Layout
     4  Type
     5  Buttons
     6  Header and footer
     7  Components
     8  Page bridges
     9  Responsive

   Section 8 is deliberate. The live pages use semantic class names
   (.container, .article-body, .takeaway, .cta-block) and renaming them would
   mean editing markup that scripts read. Styling the existing names instead
   keeps the diff to one <link> per page, which is what makes the integration
   contract check meaningful.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1  TOKENS
   -------------------------------------------------------------------------- */
:root{
  --bg:#FFFFFF;
  --ink:#0B1929;
  --body:#3D3D3D;
  --muted-strong:#565656;   /* the floor for anything under 16px */
  --muted:#6E6E6E;          /* large decorative grey only, never small text */
  --line:#E6E6E6;
  --soft:#F6F6F6;
  --accent:#1F5BFF;
  --tint:#EEF3FF;
  --ok:#0A7A3B;
  --err:#B3261E;

  /* The learning highlight. Ink on marketing pages, blue inside a lesson.
     Components reference --hl so the same markup is correct in both places. */
  --hl:var(--ink);
  --hlsoft:var(--soft);

  --sans:"Inter",system-ui,-apple-system,Helvetica,Arial,sans-serif;
  --mono:"Barlow Condensed","Inter",ui-monospace,SFMono-Regular,Menlo,monospace;

  --wrap:1360px;
  --gut:40px;
  --nav-h:68px;

  --r-card:20px;
  --r-panel:16px;
  --r-input:10px;
  --r-pill:999px;

  color-scheme:light;
}

body.blue{ --hl:var(--accent); --hlsoft:var(--tint); }

/* --------------------------------------------------------------------------
   2  RESET AND BASE
   -------------------------------------------------------------------------- */
*,*::before,*::after{box-sizing:border-box}
html{background:var(--bg);-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font-family:var(--sans);font-size:17px;line-height:1.6;font-weight:400;
  -webkit-font-smoothing:antialiased;text-wrap:pretty;
}
img,svg,video{max-width:100%;height:auto;display:block}
a{color:var(--ink);text-decoration-color:var(--line);text-underline-offset:3px}
a:hover{text-decoration-color:var(--ink)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
hr{border:0;border-top:1px solid var(--line);margin:40px 0}
::selection{background:var(--tint);color:var(--ink)}

/* --------------------------------------------------------------------------
   3  LAYOUT
   -------------------------------------------------------------------------- */
.wrap,.container,.nav-inner,.footer-inner{
  max-width:var(--wrap);margin-inline:auto;
  padding-inline:var(--gut);
  width:100%;
}
/* Prose pages read at a shorter measure than marketing pages. */
.container{max-width:760px}

/* --------------------------------------------------------------------------
   4  TYPE
   -------------------------------------------------------------------------- */
h1,h2,h3,h4{margin:0;font-weight:700;letter-spacing:-.035em;line-height:1.06;text-wrap:balance}
h1{font-size:clamp(38px,5.2vw,68px);letter-spacing:-.045em;line-height:.99}
h2{font-size:clamp(30px,3.1vw,46px)}
h3{font-size:clamp(20px,1.6vw,24px);font-weight:600;letter-spacing:-.02em;line-height:1.2}
h4{font-size:18px;font-weight:600;letter-spacing:-.01em;line-height:1.3}
p{margin:0 0 1em}
p:last-child{margin-bottom:0}

/* Mono labels. Sentence case at 13px; capitals only at the 12px tier. */
.mono,.kicker,.byline,.footer-copy,.footer-legal{
  font-family:var(--mono);font-size:13px;letter-spacing:.02em;
  color:var(--muted-strong);text-transform:none;font-weight:400;
}
.caps,.meta{
  font-family:var(--mono);font-size:12px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted-strong);
}

.lead{font-size:20px;line-height:1.55;color:var(--ink)}

/* --------------------------------------------------------------------------
   5  BUTTONS
   One language. Black pill by default; white pill on a photo or a black
   card; outline only for secondary in-course actions. No blue, no grey fill.
   -------------------------------------------------------------------------- */
.btn,.btn-primary,.btn-outline,.nav-cta,.cta-primary{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  height:48px;padding:0 22px;border:1px solid transparent;border-radius:var(--r-pill);
  font-family:var(--sans);font-size:16px;font-weight:500;letter-spacing:-.01em;
  line-height:1;text-decoration:none;cursor:pointer;
  background:var(--ink);color:#fff;
  transition:background .15s,color .15s,border-color .15s;
}
.btn:hover,.btn-primary:hover,.nav-cta:hover,.cta-primary:hover{background:#262626;color:#fff}

.btn.sm,.btn-sm{height:38px;padding:0 16px;font-size:15px}

/* Secondary, in-course. Also the disabled state: an outline, never a grey fill. */
.btn.line,.btn-outline{background:transparent;color:var(--ink);border-color:var(--line)}
.btn.line:hover,.btn-outline:hover{background:var(--soft);color:var(--ink);border-color:var(--ink)}
.btn[disabled],.btn:disabled,button[disabled]{
  background:transparent;color:var(--muted-strong);border-color:var(--line);
  cursor:not-allowed;
}

/* On a photo or a black card the pill inverts. */
.on-photo .btn,.on-dark .btn,.on-dark .btn-primary,.on-dark .cta-primary{
  background:#fff;color:var(--ink);box-shadow:0 2px 14px rgba(0,0,0,.18);
}
.on-photo .btn:hover,.on-dark .btn:hover{background:#F0F0F0;color:var(--ink)}
.on-dark .btn-outline{background:transparent;color:#fff;border-color:rgba(255,255,255,.35)}
.on-dark .btn-outline:hover{background:rgba(255,255,255,.1);border-color:#fff;color:#fff}

/* A text button must not look like a filled one. */
.nav-login{
  background:none;border:0;padding:0 4px;font:500 16px/1 var(--sans);
  color:var(--ink);cursor:pointer;letter-spacing:-.01em;
}
.nav-login:hover{color:var(--body)}

/* --------------------------------------------------------------------------
   6  HEADER AND FOOTER
   One canonical pair, in partials/. Two header variants: the Memberstack
   one for the 13 pages that load Memberstack, and a plain one for the other
   36. Putting data-ms-* on a page with no Memberstack script would show
   "Log in" and "Sign out" at the same time.
   -------------------------------------------------------------------------- */
nav,.site-nav{
  position:sticky;top:0;z-index:50;
  background:var(--bg);border-bottom:1px solid var(--line);
  height:var(--nav-h);display:flex;align-items:center;padding:0;
}
.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:24px}
.nav-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap;justify-content:flex-end;min-width:0}

/* The wordmark: lowercase, light, with the blue tower mark. "Scaff" and
   "Skills" stay as separate spans because that is the live markup. */
.logo{
  display:inline-flex;align-items:center;
  font-family:var(--sans);font-size:26px;font-weight:300;letter-spacing:-.035em;
  line-height:1;text-transform:lowercase;text-decoration:none;color:var(--ink);
}
/* The mark is spaced from the wordmark, but the two wordmark spans must sit
   tight: a flex gap would open "scaff skills". */
.logo:hover{color:var(--ink)}
.logo-scaff,.logo-skills{color:var(--ink);font-weight:300;text-transform:lowercase}
.logo svg{width:1.08em;height:1.08em;color:var(--accent);flex:none;margin-right:.34em}

footer,.footer{
  background:var(--bg);border-top:1px solid var(--line);
  padding:48px 0 40px;margin-top:0;
}
.footer-inner{display:flex;align-items:flex-start;justify-content:space-between;gap:32px;flex-wrap:wrap}
.footer-links{display:flex;gap:22px;flex-wrap:wrap}
.footer-links a{font-size:15px;color:var(--body);text-decoration:none}
.footer-links a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.footer-legal,.footer-copy{display:block;margin-top:28px;color:var(--muted-strong)}


/* --------------------------------------------------------------------------
   7  COMPONENTS
   -------------------------------------------------------------------------- */

/* Article and guide template --------------------------------------------- */

/* The page head is white with a hairline, not a dark band. One focal point:
   the headline. The kicker and byline sit around it in mono. */
.page-header{
  background:var(--bg);border-bottom:1px solid var(--line);
  padding:72px 0 44px;
}
.page-header .kicker{
  display:block;margin:0 0 18px;
  font-family:var(--mono);font-size:12px;font-weight:400;letter-spacing:.06em;
  text-transform:uppercase;color:var(--accent);
}
.page-header h1{
  margin:0 0 18px;color:var(--ink);text-transform:none;
  font-family:var(--sans);font-weight:700;
  font-size:clamp(32px,4vw,52px);letter-spacing:-.04em;line-height:1.02;
}
.page-header .byline{color:var(--muted-strong)}

.content{padding:56px 0 96px}

.article-body p{margin:0 0 22px;color:var(--body);font-size:18px;line-height:1.65}
.article-body h2{
  margin:48px 0 16px;color:var(--ink);text-transform:none;
  font-family:var(--sans);font-weight:700;font-size:28px;
  letter-spacing:-.03em;line-height:1.12;
}
.article-body a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:3px}
.article-body a:hover{color:var(--accent)}
.article-body ul,.article-body ol{margin:0 0 22px;padding-left:22px;color:var(--body);font-size:18px;line-height:1.65}
.takeaway ul li,.article-body li a{font-size:inherit}
.article-body li{margin-bottom:10px}
.article-body .lead{font-size:21px;line-height:1.5;color:var(--ink)}

sup.cite{font-size:12px;font-weight:500;line-height:0}
sup.cite a{color:var(--accent);text-decoration:none}

/* The takeaway is a soft panel with a hairline, not a coloured bar. */
.takeaway{
  background:var(--soft);border:1px solid var(--line);border-radius:var(--r-panel);
  padding:28px 32px;margin:40px 0;
}
.takeaway h2{margin-top:0;font-size:22px}
.takeaway ul{margin:10px 0 0;padding-left:20px}
.takeaway li{color:var(--body);font-size:17px;line-height:1.6;margin-bottom:10px}
.takeaway li:last-child{margin-bottom:0}

/* A closing statement, set like a small headline. Sentence case.
   Scoped through .article-body because `.article-body p` outranks a bare
   class and would hold it at body size. */
.article-body .closer,.closer{
  margin:44px 0;color:var(--ink);text-transform:none;
  font-family:var(--sans);font-weight:700;font-size:26px;
  letter-spacing:-.03em;line-height:1.15;
}

.references{margin-top:64px;padding-top:28px;border-top:1px solid var(--line)}
.references h2{
  margin:0 0 16px;color:var(--muted-strong);
  font-family:var(--mono);font-size:12px;font-weight:400;
  letter-spacing:.06em;text-transform:uppercase;
}
.references ol{margin:0;padding-left:20px}
.references li{font-size:15px;color:var(--muted-strong);line-height:1.6;margin-bottom:10px}
.references a{color:var(--muted-strong);text-decoration:underline;text-decoration-color:var(--line)}
.references a:hover{color:var(--ink)}

/* The end-of-article call to action is the one black card on the page. */
.cta-block{
  background:var(--ink);border-radius:var(--r-card);
  padding:48px 40px;margin-top:64px;text-align:center;
}
.cta-block h2{
  margin:0 0 12px;color:#fff;text-transform:none;
  font-family:var(--sans);font-weight:700;font-size:clamp(26px,2.4vw,34px);
  letter-spacing:-.035em;line-height:1.08;
}
.cta-block p{margin:0 0 28px;color:rgba(255,255,255,.72);font-size:17px;line-height:1.55}
.cta-btns{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.cta-block .btn-primary,.cta-block .cta-primary{background:#fff;color:var(--ink)}
.cta-block .btn-primary:hover,.cta-block .cta-primary:hover{background:#F0F0F0;color:var(--ink)}
.cta-block .btn-outline{background:transparent;color:#fff;border-color:rgba(255,255,255,.35)}
.cta-block .btn-outline:hover{background:rgba(255,255,255,.1);border-color:#fff;color:#fff}

/* Cookie banner -----------------------------------------------------------
   Appearance is assets/css/cookie-banner.css, inlined by scaff-overlays.js
   so pages that do not load this file get the same bar. The markup keeps
   its inline display:none, because the page script toggles .style.display
   directly. Do not restyle #scaff-cookie-banner here. */


/* --------------------------------------------------------------------------
   8  HOMEPAGE

   The live markup keeps its class names. Renaming them would mean editing
   markup that scripts read, for no gain the reader can see.
   -------------------------------------------------------------------------- */

/* Section rhythm. Every band is white; the dark ones become black cards or
   plain white with a hairline, because the page has one background. */
.section{padding:120px 0}
.section--dark,.section--navy,.section--mist{background:var(--bg)}
.section--mist{background:var(--soft)}

.section-intro{display:flex;flex-direction:column;gap:18px;margin-bottom:56px;max-width:22em}
.section-intro--center{margin-inline:auto;text-align:center;align-items:center}

.eyebrow,.eyebrow--light{
  font-family:var(--mono);font-size:13px;font-weight:400;letter-spacing:.02em;
  text-transform:none;color:var(--muted-strong);
}
.h-section{
  margin:0;font-family:var(--sans);font-weight:700;text-transform:none;
  font-size:clamp(30px,3.1vw,46px);letter-spacing:-.035em;line-height:1.06;
  color:var(--ink);text-wrap:balance;
}
.h-section--light{color:var(--ink)}
.h-card{margin:0 0 10px;font-size:20px;font-weight:600;letter-spacing:-.02em;line-height:1.25}

/* Proof bar --------------------------------------------------------------- */
.proof-bar{padding:28px 0;border-bottom:1px solid var(--line)}
.proof-bar-inner{display:flex;align-items:center;gap:24px}
.proof-bar-line{flex:1;height:1px;background:var(--line)}
.proof-bar-text{margin:0;font-size:15px;color:var(--muted-strong);text-align:center;flex:0 1 auto;min-width:0;max-width:60ch}
.proof-bar-text strong{color:var(--ink);font-weight:500}

/* Hero --------------------------------------------------------------------
   Scoped to body.site. The dashboard also has a .hero, and an unscoped rule
   would put the Elizabeth Tower photograph behind it.
   The photo and solid ink overlay come from .photo-band (end of file). */
.site .hero{
  position:relative;isolation:isolate;
  padding:clamp(96px,13vh,150px) 0 clamp(88px,12vh,130px);
}
.site .hero-inner{display:flex;flex-direction:column;align-items:flex-start;gap:0;max-width:var(--wrap)}
/* Hero text is held to the scrim's dark end. A box that runs on into the
   bright right-hand side measures as failing even when the words do not,
   and a line that long reads badly over a photograph anyway. */
.site .hero .eyebrow{color:rgba(255,255,255,.86);margin-bottom:22px;max-width:46ch}
.h-display{
  margin:0 0 24px;color:#fff;font-family:var(--sans);font-weight:700;text-transform:none;
  font-size:clamp(40px,5.4vw,74px);letter-spacing:-.045em;line-height:.99;max-width:14em;
}
/* The second half of the headline is quieter, not a different colour. */
.h-display .dim{color:rgba(255,255,255,.74)}
.site .hero-sub{
  margin:0 0 32px;max-width:46ch;color:rgba(255,255,255,.88);
  font-size:19px;line-height:1.55;
}
.hero-sub em{font-style:normal;color:rgba(255,255,255,.7)}
.site .hero-actions{display:flex;align-items:center;gap:28px;flex-wrap:wrap}
/* One button above the fold. The secondary action stays, as a link. */
.site .hero .btn--primary{background:#fff;color:var(--ink);box-shadow:0 2px 18px rgba(0,0,0,.22)}
.site .hero .btn--primary:hover{background:#F0F0F0;color:var(--ink)}
.site .hero .btn--outline{
  background:none;border:0;padding:0;height:auto;color:#fff;
  text-decoration:underline;text-decoration-color:rgba(255,255,255,.5);text-underline-offset:5px;
}
.site .hero .btn--outline:hover{background:none;text-decoration-color:#fff}
.btn-note{margin:18px 0 0;font-family:var(--mono);font-size:13px;color:var(--muted-strong)}
.btn-note--light{color:rgba(255,255,255,.72)}
.site .hero .btn-note{margin-top:20px;max-width:46ch;color:rgba(255,255,255,.82)}

/* The product moment: the course on a real screen, once on the page. */
.device{margin:0 0 56px}
.device img{width:100%;max-width:880px;margin-inline:auto;border-radius:var(--r-panel)}
.device figcaption{
  margin-top:16px;text-align:center;
  font-family:var(--mono);font-size:13px;color:var(--muted-strong);
}

/* Pain list: a numbered register of what the course delivers. */
.pain-list{
  list-style:none;margin:0;padding:0;
  border-top:1.5px solid var(--ink);counter-reset:pain;
}
.pain-list li{
  counter-increment:pain;display:grid;grid-template-columns:52px minmax(0,1fr);
  gap:8px 20px;align-items:baseline;padding:22px 0;border-bottom:1px solid var(--line);
}
.pain-list li::before{
  content:counter(pain,decimal-leading-zero);
  font-family:var(--mono);font-size:12px;letter-spacing:.06em;color:var(--muted-strong);
}
.pain-list li>div{display:flex;flex-direction:column;gap:7px}
.pain-list strong{font-size:19px;font-weight:600;letter-spacing:-.02em;line-height:1.25;color:var(--ink)}
.pain-list span{font-size:17px;line-height:1.55;color:var(--body)}
.pain-close{margin:36px 0 0;font-size:19px;line-height:1.5;color:var(--ink);max-width:48ch}

/* What else people try, and why it does not work. */
.fail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(248px,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r-card);overflow:hidden}
.fail-card{background:var(--bg);padding:32px 28px}
.fail-card-label{
  margin:0 0 14px;font-family:var(--mono);font-size:12px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted-strong);
}
.fail-card h3{margin:0 0 10px;font-size:19px;font-weight:600;letter-spacing:-.02em}
.fail-card p{margin:0;font-size:16px;line-height:1.55;color:var(--body)}
.fail-bridge{margin:40px auto 0;max-width:46ch;text-align:center;font-size:19px;line-height:1.5;color:var(--ink)}

/* The answer: three numbered cards. */
.solution-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(268px,1fr));gap:28px}
.sol-card{border:1px solid var(--line);border-radius:var(--r-card);padding:32px 28px}
.sol-num{
  margin-bottom:18px;font-family:var(--mono);font-size:12px;letter-spacing:.06em;
  color:var(--muted-strong);
}
.sol-card p{margin:0;font-size:16px;line-height:1.55;color:var(--body)}

/* The nine modules, as a hairline register. */
/* The module list and the outcomes list sit side by side, so they are set
   to the same specification: the number in a mono gutter rather than baked
   into the heading text, and the same type sizes. Mirrors .pain-list. */
.offer-grid{border-top:1.5px solid var(--ink);counter-reset:offer}
.offer-item{
  counter-increment:offer;
  display:grid;grid-template-columns:52px minmax(0,1fr);gap:8px 20px;
  align-items:baseline;padding:22px 0;border-bottom:1px solid var(--line);
}
.offer-item::before{
  content:counter(offer,decimal-leading-zero);
  font-family:var(--mono);font-size:12px;letter-spacing:.06em;color:var(--muted-strong);
}
.offer-item > div{display:flex;flex-direction:column;gap:7px}
/* Emoji are ruled out by the brand guidelines, and an icon beside every row
   is ruled out too. The number in the gutter carries the sequence. */
.offer-icon{display:none}
.offer-item h3{margin:0;font-size:19px;font-weight:600;letter-spacing:-.02em;line-height:1.25;color:var(--ink)}
.offer-item p{margin:0;font-size:17px;line-height:1.55;color:var(--body)}

/* Three steps. */
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(248px,1fr));gap:28px}
.step{border-top:1.5px solid var(--ink);padding-top:22px}
.step-num{
  margin-bottom:14px;font-family:var(--mono);font-size:12px;letter-spacing:.06em;
  color:var(--muted-strong);
}
.step h3{margin:0 0 10px;font-size:19px;font-weight:600;letter-spacing:-.02em}
.step p{margin:0;font-size:16px;line-height:1.55;color:var(--body)}

/* About. */
.about-inner{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:56px;align-items:start}
.about-copy p{font-size:18px;line-height:1.62;color:var(--body)}
.about-copy strong{color:var(--ink);font-weight:600}
.about-card{background:var(--soft);border:1px solid var(--line);border-radius:var(--r-card);padding:32px 28px}
.about-card-label{
  margin:0 0 14px;font-family:var(--mono);font-size:12px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted-strong);
}
.about-card p{margin:0 0 14px;font-size:16px;line-height:1.55;color:var(--body)}
.about-card p:last-child{margin-bottom:0}

/* Pricing: two cards, the paid one black. */
.pricing-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:28px;align-items:stretch}
.price-card{
  display:flex;flex-direction:column;
  border:1px solid var(--line);border-radius:var(--r-card);padding:36px 32px;
}
.price-card--featured{background:var(--ink);border-color:var(--ink);color:#fff}
.price-tier{
  margin:0 0 18px;font-family:var(--mono);font-size:12px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted-strong);
}
.price-card--featured .price-tier{color:rgba(255,255,255,.7)}
.price-amount{font-size:clamp(44px,4.4vw,60px);font-weight:700;letter-spacing:-.045em;line-height:1}
.price-period{margin:12px 0 0;font-size:16px;color:var(--body)}
.price-card--featured .price-period{color:rgba(255,255,255,.75)}
.price-divider{margin:28px 0;border:0;border-top:1px solid var(--line)}
.price-card--featured .price-divider{border-color:rgba(255,255,255,.22)}
.price-features{list-style:none;margin:0 0 32px;padding:0;display:flex;flex-direction:column;gap:12px}
.price-features li{position:relative;padding-left:22px;font-size:16px;line-height:1.5;color:var(--body)}
.price-features li::before{
  content:"";position:absolute;left:0;top:.52em;width:9px;height:9px;
  border:1.5px solid var(--ink);
}
.price-card--featured .price-features li{color:rgba(255,255,255,.85)}
.price-card--featured .price-features li::before{border-color:rgba(255,255,255,.6)}
.price-card .btn{margin-top:auto;width:100%}
.price-card--featured .btn,.btn--dark{background:#fff;color:var(--ink)}
.price-card--featured .btn:hover,.btn--dark:hover{background:#F0F0F0;color:var(--ink)}

/* Guarantee. */
.guarantee-inner{display:flex;gap:28px;align-items:flex-start;max-width:72ch;margin-inline:auto}
.guarantee-icon{display:none}
.guarantee-copy h2{
  margin:0 0 14px;font-family:var(--sans);font-weight:700;font-size:clamp(26px,2.4vw,34px);
  letter-spacing:-.035em;line-height:1.08;text-transform:none;
}
.guarantee-copy p{font-size:17px;line-height:1.6;color:var(--body)}

/* FAQ. */
.faq-list{border-top:1.5px solid var(--ink);max-width:76ch;margin-inline:auto}
.faq-list details{border-bottom:1px solid var(--line)}
.faq-list summary{
  list-style:none;cursor:pointer;padding:22px 32px 22px 0;position:relative;
  font-size:19px;font-weight:500;letter-spacing:-.015em;color:var(--ink);
}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::after{
  content:"";position:absolute;right:6px;top:50%;width:10px;height:10px;
  border-right:1.5px solid var(--ink);border-bottom:1.5px solid var(--ink);
  transform:translateY(-70%) rotate(45deg);transition:transform .18s;
}
.faq-list details[open] summary::after{transform:translateY(-30%) rotate(225deg)}
.faq-answer{margin:0 0 24px;max-width:70ch;font-size:17px;line-height:1.62;color:var(--body)}

/* The closing call to action, and the one on the article template. */
.cta-block.section--dark,.section--dark>.wrap>.cta-block{background:var(--ink)}

/* ==========================================================================
   FOLDED MODULE STYLES

   scaff-module.css, scaff-interactive.css and scaff-lifts.css, brought in so
   the site has one stylesheet. Rebuilt by tools/fold-module-css.mjs: do not
   hand-edit this block, put overrides in LESSON OVERRIDES below it.
   ========================================================================== */

/* ---- from assets/scaff-module.css ---- */
@media(max-width:680px){ .container{padding:0 20px;} }

/* NAV */
@media(max-width:680px){ .nav-inner{padding:0 20px;} }
.scroll-bar-track { position:fixed; top:60px; left:0; right:0; height:3px; background:rgba(255,255,255,0.07); z-index:99; }
.scroll-bar-fill { height:100%; background:var(--accent); width:0%; transition:width 0.1s linear; }
.nav-back { color:var(--cloud); font-size:13px; font-weight:500; text-decoration:none; display:flex; align-items:center; gap:6px; transition:color 0.2s; }
.nav-back:hover{color:var(--white);}
.nav-module-label { color:var(--cloud); font-size:12px; font-weight:500; letter-spacing:0.3px; }
@media(max-width:480px){ .nav-module-label{display:none;} }

/* FREE BANNER */
.free-banner { background:rgba(31, 91, 255,0.12); border-bottom:1px solid rgba(31, 91, 255,0.2); padding:10px 40px; text-align:center; margin-top:63px; }
.free-banner p { color:var(--ink); font-size:13px; font-weight:500; }
.free-banner strong{color:var(--accent-dk);}

/* MODULE HEADER */
.module-header { background:var(--ink); padding:115px 0 44px; position:relative; overflow:hidden; }
.module-header::after { content:''; position:absolute; bottom:0; left:0; right:0; height:1px; background:var(--ink); }
.module-eyebrow { display:flex; align-items:center; gap:10px; margin-bottom:20px; }
.mod-num-pill { background:rgba(31, 91, 255,0.18); border:1px solid rgba(31, 91, 255,0.35); color:var(--accent); font-size:11px; font-weight:700; letter-spacing:1.5px; padding:4px 12px; border-radius:4px; }
.mod-course-label { color:var(--steel); font-size:12px; font-weight:500; }
.module-header h1 { font-family:var(--sans); font-weight:900; font-size:clamp(40px,6vw,72px); line-height:0.95; color:var(--white); letter-spacing:-0.5px; margin-bottom:18px; }
.module-header .subtitle { color:var(--cloud); font-size:17px; max-width:560px; line-height:1.5; }

/* MODULE INTRO VIDEO */
.module-intro-video { width:min(1100px,calc(100vw - 32px)); margin:32px 0 36px; margin-left:50%; transform:translateX(-50%); border-radius:10px; overflow:hidden; background:var(--ink); border:1px solid rgba(31, 91, 255,0.22); box-shadow:0 4px 28px rgba(0,0,0,0.18); }
.miv-header { display:flex; align-items:center; gap:10px; padding:10px 16px; background:rgba(31, 91, 255,0.09); border-bottom:1px solid rgba(31, 91, 255,0.15); }
.miv-platform-badge { width:22px; height:22px; background:var(--accent); border-radius:4px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.miv-platform-badge svg{fill:white;width:12px;height:12px;}
.miv-label-text { font-size:11px; font-weight:700; letter-spacing:1.2px; color:var(--cloud); flex:1; }
.miv-duration { font-size:11px; color:var(--steel); font-weight:500; letter-spacing:0.3px; }
.miv-player { position:relative; width:100%; padding-bottom:56.25%; }
.miv-placeholder { position:absolute; top:0; left:0; width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; background:#0a1929; }
.miv-play-circle { width:68px; height:68px; border-radius:50%; background:rgba(31, 91, 255,0.12); border:2px solid rgba(31, 91, 255,0.28); display:flex; align-items:center; justify-content:center; }
.miv-play-circle svg{fill:rgba(31, 91, 255,0.55);width:30px;height:30px;margin-left:4px;}
.miv-coming-soon { color:var(--cloud); font-size:15px; font-weight:600; margin:0!important; }
.miv-hosted-note { color:var(--steel); font-size:12px; margin:0!important; }

/* ABOUT BOX / OBJECTIVES */
.about-box { border-left:4px solid var(--accent); background:var(--white); border-radius:0 8px 8px 0; padding:32px 36px; margin:24px 0; box-shadow:0 2px 16px rgba(10, 10, 10,0.06); }
.about-box-title { font-family:var(--sans); font-weight:700; font-size:18px; letter-spacing:0.3px; color:var(--ink); margin-bottom:16px; }
.objectives { list-style:none; display:flex; flex-direction:column; gap:10px; }
.objectives li { display:flex; align-items:flex-start; gap:12px; color:var(--text-body); font-size:15px; line-height:1.5; }
.obj-tick { width:20px; height:20px; background:var(--accent); border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:1px; }
.obj-tick svg{width:10px;height:10px;fill:var(--white);}
.about-meta { display:flex; gap:24px; margin-top:20px; padding-top:20px; border-top:1px solid var(--border); flex-wrap:wrap; }
.meta-item { color:var(--text-muted); font-size:13px; font-weight:500; }
.meta-item strong{color:var(--ink);}

/* CONTENT SECTIONS */
.content-section { padding:36px 0; border-bottom:1px solid var(--border); }
.content-section:last-of-type{border-bottom:none;}
.section-heading { font-family:var(--sans); font-weight:800; font-size:clamp(26px,3.5vw,38px); color:var(--ink); letter-spacing:-0.3px; margin-bottom:8px; padding-bottom:14px; border-bottom:2px solid var(--accent); display:inline-block; }
.content-section p { color:var(--text-body); font-size:16px; line-height:1.75; margin-bottom:14px; margin-top:12px; }
.content-section p:last-child{margin-bottom:0;}
.sub-heading { font-family:var(--sans); font-weight:700; font-size:22px; color:var(--navy); margin:32px 0 10px; letter-spacing:0.2px; }
.sub-heading-sm { font-family:var(--sans); font-weight:700; font-size:17px; color:var(--navy); margin:24px 0 8px; letter-spacing:0.2px; }
.content-list { list-style:none; display:flex; flex-direction:column; gap:12px; margin:16px 0 20px; padding:0; }
.content-list li { position:relative; padding-left:20px; font-size:15px; color:var(--text-body); line-height:1.65; }
.content-list li::before { content:'\2014'; position:absolute; left:0; color:var(--accent); font-weight:700; }

/* INFO BOX */
.info-box { background:var(--mist); border-left:3px solid var(--accent); border-radius:0 6px 6px 0; padding:20px 24px; margin:28px 0; }
.info-box-label { font-size:11px; font-weight:700; letter-spacing:1.5px; color:var(--accent); margin-bottom:8px; }
.info-box p { color:var(--text-body); font-size:15px; line-height:1.65; margin:0!important; }

/* V2 CALLOUT BANNERS */
.v2-banner { border-radius:6px; overflow:hidden; margin:32px 0; border:1px solid rgba(0,0,0,0.08); }
.v2-banner-hdr { color:#fff; padding:12px 20px; font-weight:700; font-size:11px; letter-spacing:1.2px; }
.v2-banner-hdr--navy { background:#0B1929; }
.v2-banner-hdr--grey { background:#565656; }
.v2-banner-hdr--slate { background:#0B1929; }
.v2-banner-body { padding:18px 20px; background:var(--white); }
.v2-banner-body p { font-size:15px; color:var(--text-body); line-height:1.7; margin:0 0 10px!important; }
.v2-banner-body p:last-child{ margin:0!important; }
.v2-banner-body ul { list-style:none; padding:0; display:flex; flex-direction:column; gap:6px; margin:8px 0 0; }
.v2-banner-body ul li { font-size:14px; color:var(--text-body); line-height:1.6; padding-left:16px; position:relative; }
.v2-banner-body ul li::before { content:'\2014'; position:absolute; left:0; color:var(--accent); font-weight:700; }

/* V2 TEACHING POINT */
.v2-tp { background:rgba(10, 10, 10,0.08); border-left:4px solid #0B1929; border-radius:0 6px 6px 0; padding:16px 20px; margin:24px 0; }
.v2-tp-label { font-size:10px; font-weight:700; letter-spacing:1.5px; color:#565656; margin-bottom:6px; }
.v2-tp p { font-size:15px; color:var(--text-body); line-height:1.65; margin:0!important; font-weight:600; }

/* V2 SOURCE REFS */
.v2-src { padding:14px 18px; border-radius:0 6px 6px 0; margin:16px 0; font-size:14px; color:var(--text-body); line-height:1.65; }
.v2-src-label { font-size:10px; font-weight:700; letter-spacing:1.5px; margin-bottom:5px; display:block; }
.v2-src p { margin:0!important; font-size:14px; line-height:1.65; color:var(--text-body); }
.v2-src--nasc { background:rgba(10, 10, 10,0.07); border-left:3px solid #0B1929; }
.v2-src--nasc .v2-src-label { color:#0B1929; }
.v2-src--rics { background:rgba(10, 10, 10,0.06); border-left:3px solid #0B1929; }
.v2-src--rics .v2-src-label { color:#0B1929; }
.v2-src--ciob { background:rgba(10, 10, 10,0.07); border-left:3px solid #0B1929; }
.v2-src--ciob .v2-src-label { color:#0B1929; }
.v2-src--law { background:rgba(10, 10, 10,0.06); border-left:3px solid #0B1929; }
.v2-src--law .v2-src-label { color:#0B1929; }
.v2-src--case { background:rgba(10, 10, 10,0.05); border-left:3px solid #0B1929; border-style:dashed; border-width:0 0 0 3px; }
.v2-src--case .v2-src-label { color:#0B1929; }
.v2-src--industry { background:rgba(10, 10, 10,0.04); border-left:3px solid #565656; }
.v2-src--industry .v2-src-label { color:#3D3D3D; }

/* V2 VISUAL COMPANION */
.v2-vc { padding:12px 16px; background:rgba(10, 10, 10,0.06); border:1px solid rgba(10, 10, 10,0.2); border-radius:6px; margin:18px 0; font-size:13px; font-style:italic; color:var(--text-muted); }
.v2-vc-label { font-size:10px; font-weight:700; letter-spacing:1.5px; color:#0B1929; margin-bottom:4px; font-style:normal; display:block; }

/* V2 INDUSTRY FACTS BOX */
.v2-facts { background:var(--ink); border-radius:8px; padding:24px 28px; margin:28px 0; }
.v2-facts-label { font-size:10px; font-weight:700; letter-spacing:2px; color:var(--accent); margin-bottom:14px; }
.v2-facts ul { list-style:none; padding:0; display:flex; flex-direction:column; gap:12px; }
.v2-facts ul li { color:var(--steel); font-size:14px; line-height:1.65; padding-left:18px; position:relative; }
.v2-facts ul li::before { content:'\2014'; position:absolute; left:0; color:var(--accent); font-weight:700; }
.v2-facts ul li strong { color:var(--cloud); }

/* THREE-COLUMN CARDS */
.three-col-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:24px 0; }
@media(max-width:680px){ .three-col-cards{grid-template-columns:1fr;} }
.three-col-card { background:var(--white); border-radius:8px; overflow:hidden; border:1px solid var(--border); box-shadow:0 2px 8px rgba(10, 10, 10,0.05); }
.tcc-header { background:var(--navy); padding:10px 14px; }
.tcc-category { font-size:10px; font-weight:700; letter-spacing:1.8px; color:var(--cloud); display:block; margin-bottom:2px; }
.tcc-org { font-family:var(--sans); font-weight:800; font-size:22px; color:var(--white); }
.tcc-body { padding:14px; }
.tcc-full-name { font-size:12px; font-weight:600; color:var(--accent); margin-bottom:6px; letter-spacing:0.2px; }
.tcc-body p { font-size:13px; color:var(--text-body); line-height:1.55; margin:0!important; }

/* NASC REFERENCE BOX */
.nasc-ref-box { background:var(--ink); border-left:3px solid var(--accent); border-radius:0 8px 8px 0; padding:22px 26px; margin:28px 0; }
.nasc-ref-label { font-size:10px; font-weight:700; letter-spacing:2px; color:var(--accent); margin-bottom:6px; }
.nasc-ref-title { font-family:var(--sans); font-weight:800; font-size:15px; color:var(--white); margin-bottom:12px; letter-spacing:0.3px; line-height:1.2; }
.nasc-ref-box p { color:var(--steel)!important; font-size:14px; line-height:1.6; margin:0 0 8px!important; }
.nasc-ref-box p:last-child{margin-bottom:0!important;}
.nasc-ref-box em{color:var(--cloud); font-style:italic;}
.nasc-ref-list { list-style:none; padding:0; display:flex; flex-direction:column; gap:5px; margin-top:10px; }
.nasc-ref-list li { color:var(--steel); font-size:13px; line-height:1.55; padding-left:16px; position:relative; }
.nasc-ref-list li::before { content:'\2014'; position:absolute; left:0; color:var(--accent); font-weight:700; }

/* COMPARE GRID */
.compare-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:24px 0; }
@media(max-width:540px){ .compare-grid{grid-template-columns:1fr;} }
.compare-card { background:var(--mist); border-radius:10px; padding:24px; border-top:3px solid var(--border); }
.compare-card.compare-highlight { background:rgba(31, 91, 255,0.06); border-top-color:var(--accent); }
.compare-card h4 { font-family:var(--sans); font-weight:700; font-size:15px; color:var(--ink); margin:0 0 10px; letter-spacing:0.3px; }
.compare-card p { font-size:14px; color:var(--text-body); line-height:1.6; margin:0!important; }

/* CM CHECKLIST */
.cm-checklist { background:var(--mist); border-left:4px solid var(--accent); border-radius:0 8px 8px 0; padding:22px 26px; margin:28px 0; }
.cm-checklist-title { font-family:var(--sans); font-weight:800; font-size:15px; color:var(--accent); margin-bottom:14px; letter-spacing:0.5px; }
.cm-checklist-list { list-style:none; padding:0; display:flex; flex-direction:column; gap:8px; }
.cm-checklist-list li { display:flex; align-items:flex-start; gap:10px; font-size:14px; color:var(--text-body); line-height:1.55; }
.cm-tick { width:18px; height:18px; background:var(--accent); border-radius:4px; display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:1px; }
.cm-tick svg{width:9px;height:9px;fill:var(--white);}

/* KEY CLAUSES / DARK RULE BOX */
.dark-rule-box { background:var(--ink); border-radius:8px; padding:24px 28px; margin:28px 0; }
.dark-rule-label { font-size:10px; font-weight:700; letter-spacing:2px; color:var(--accent); margin-bottom:6px; }
.dark-rule-title { font-family:var(--sans); font-weight:800; font-size:17px; color:var(--white); margin-bottom:12px; letter-spacing:0.2px; line-height:1.2; }
.dark-rule-box p { color:var(--steel)!important; font-size:14px; line-height:1.65; margin:0 0 8px!important; }
.dark-rule-box p:last-child{margin-bottom:0!important;}
.dark-rule-list { list-style:none; padding:0; display:flex; flex-direction:column; gap:6px; margin-top:10px; }
.dark-rule-list li { color:var(--steel); font-size:13px; line-height:1.55; padding-left:16px; position:relative; }
.dark-rule-list li::before{content:'\2014';position:absolute;left:0;color:var(--accent);font-weight:700;}

/* ROLE CARDS */
.role-card { display:flex; align-items:flex-start; gap:18px; margin:28px 0 16px; padding:20px 24px; background:var(--mist); border-radius:10px; border-left:4px solid var(--accent); }
.role-card.role-you { background:rgba(31, 91, 255,0.06); border:2px solid rgba(31, 91, 255,0.2); border-left:4px solid var(--accent); }
.role-icon { flex-shrink:0; width:48px; height:48px; background:var(--ink); border-radius:10px; display:flex; align-items:center; justify-content:center; }
.role-icon svg{width:24px;height:24px;}
.role-icon.role-you-icon{background:var(--accent);}
.role-card-text h3 { font-family:var(--sans); font-weight:700; font-size:18px; color:var(--navy); margin:0 0 4px; letter-spacing:0.2px; }
.role-card-text .role-oneliner { font-size:14px; color:var(--text-muted); margin:0; line-height:1.5; }

/* HIERARCHY CHAIN */
.hier-chain-wrap { background:var(--ink); border-radius:10px; padding:32px 28px; margin:32px 0; display:flex; flex-direction:column; align-items:center; gap:0; }
.hier-chain-node { background:var(--ink-mid); border:1px solid var(--slate); border-radius:7px; padding:14px 28px; text-align:center; width:100%; max-width:500px; }
.hier-chain-node.you-node { background:rgba(31, 91, 255,0.15); border-color:var(--accent); }
.hier-chain-node-title { font-family:var(--sans); font-weight:700; font-size:14px; color:var(--white); letter-spacing:0.5px; }
.hier-chain-node-sub { font-size:12px; color:var(--steel); margin-top:4px; line-height:1.45; }
.hier-chain-arrow { width:2px; height:24px; background:var(--slate); margin:0 auto; position:relative; flex-shrink:0; }
.hier-chain-arrow::after { content:''; position:absolute; bottom:-1px; left:50%; transform:translateX(-50%); border-left:5px solid transparent; border-right:5px solid transparent; border-top:6px solid var(--slate); }

/* LIFECYCLE CHAIN */
.lifecycle-wrap { background:var(--ink); border-radius:10px; padding:28px; margin:28px 0; display:flex; flex-direction:column; gap:0; }
.lifecycle-row { display:grid; grid-template-columns:80px 1fr; gap:16px; align-items:flex-start; margin-bottom:0; }
.lifecycle-num { font-family:var(--sans); font-weight:900; font-size:32px; color:rgba(31, 91, 255,0.25); line-height:1; padding-top:14px; text-align:center; }
.lifecycle-node { background:var(--ink-mid); border:1px solid var(--slate); border-radius:6px; padding:14px 18px; margin-bottom:8px; }
.lifecycle-node-title { font-family:var(--sans); font-weight:700; font-size:14px; color:var(--white); letter-spacing:0.5px; margin-bottom:4px; }
.lifecycle-node-sub { font-size:12px; color:var(--steel); line-height:1.5; }

/* ACTION CHECKLIST */
.action-checklist { background:var(--mist); border-left:4px solid var(--accent); border-radius:0 8px 8px 0; padding:22px 26px; margin:28px 0; }
.action-checklist-title { font-family:var(--sans); font-weight:800; font-size:15px; color:var(--accent); margin-bottom:14px; letter-spacing:0.5px; }
.action-list { list-style:none; padding:0; display:flex; flex-direction:column; gap:8px; }
.action-list li { display:flex; align-items:flex-start; gap:10px; font-size:14px; color:var(--text-body); line-height:1.55; }
.action-box { width:16px; height:16px; border:2px solid var(--accent); border-radius:3px; flex-shrink:0; margin-top:2px; }

/* CONTRACT FORMS MATRIX */
.contract-matrix { margin:28px 0; border-radius:8px; overflow:hidden; border:1px solid var(--border); }
.cmat-row { display:grid; grid-template-columns:140px repeat(4,1fr); }
@media(max-width:640px){ .cmat-row{grid-template-columns:90px repeat(4,1fr);} }
.cmat-header-row { background:var(--ink); }
.cmat-cell { padding:10px 12px; font-size:13px; color:var(--text-body); line-height:1.4; border-right:1px solid var(--border); }
.cmat-cell:last-child { border-right:none; }
.cmat-label-col { font-weight:600; font-size:12px; color:var(--text-muted); background:var(--mist); }
.cmat-head-cell { font-family:var(--sans); font-weight:800; font-size:15px; color:var(--white); letter-spacing:0.3px; }
.cmat-head.cmat-warn { color:#565656; }
.cmat-alt { background:var(--mist); }
.cmat-warn-cell { color:#565656; background:rgba(230, 230, 230,0.07); }
.cmat-head-cell.cmat-warn { color:#565656; }
.cmat-yes { color:var(--success); font-weight:700; }
.cmat-no { color:var(--text-muted); }
.cmat-low { color:var(--success); font-weight:600; }
.cmat-med { color:#0B1929; font-weight:600; }
.cmat-high { color:var(--fail); font-weight:700; }

/* LEGAL PYRAMID */
.legal-pyramid { margin:28px 0; display:flex; flex-direction:column; gap:4px; }
.lp-layer { border-radius:6px; padding:14px 20px; position:relative; }
.lp-top { background:rgba(10, 10, 10,0.08); border:1px solid rgba(10, 10, 10,0.2); }
.lp-mid { background:rgba(31, 91, 255,0.08); border:1px solid rgba(31, 91, 255,0.2); }
.lp-base { background:rgba(10, 10, 10,0.08); border:1px solid rgba(10, 10, 10,0.2); }
.lp-contract { background:var(--mist); border:1px solid var(--border); border-top:3px solid var(--accent); }
.lp-label { font-size:10px; font-weight:700; letter-spacing:1.5px; color:var(--text-muted); margin-bottom:3px; }
.lp-top .lp-label { color:#0B1929; }
.lp-mid .lp-label { color:var(--accent-dk); }
.lp-base .lp-label { color:#0B1929; }
.lp-contract .lp-label { color:var(--accent); }
.lp-title { font-family:var(--sans); font-weight:800; font-size:17px; color:var(--ink); letter-spacing:0.3px; margin-bottom:3px; }
.lp-sub { font-size:12px; color:var(--text-muted); }

/* CASE CARDS */
.case-cards { display:flex; flex-direction:column; gap:12px; margin:24px 0; }
.case-card { background:var(--mist); border-radius:8px; padding:18px 22px; border-left:3px solid #0B1929; }
.case-card-citation { font-size:11px; font-weight:700; letter-spacing:0.5px; color:#0B1929; margin-bottom:6px; }
.case-card-rule { font-size:14px; color:var(--text-body); line-height:1.6; margin:0; }

/* DOWNLOADS */
.dl-section { background:var(--ink); border-radius:12px; padding:40px; margin:48px 0 0; }
@media(max-width:480px){ .dl-section{padding:24px 20px;} }
.dl-hdr { margin-bottom:28px; padding-bottom:20px; border-bottom:1px solid rgba(255,255,255,0.1); }
.dl-hdr h2 { font-family:var(--sans); font-weight:800; font-size:28px; color:var(--white); margin-bottom:4px; }
.dl-hdr p { color:var(--steel); font-size:14px; margin:0; }
.dl-featured { display:flex; align-items:center; gap:20px; background:rgba(31, 91, 255,0.12); border:1px solid rgba(31, 91, 255,0.3); border-radius:10px; padding:22px 24px; margin-bottom:16px; text-decoration:none; transition:background 0.2s,border-color 0.2s; }
.dl-featured:hover { background:rgba(31, 91, 255,0.2); border-color:rgba(31, 91, 255,0.5); }
.dl-featured-icon { flex-shrink:0; width:52px; height:52px; background:var(--accent); border-radius:10px; display:flex; align-items:center; justify-content:center; }
.dl-featured-icon svg { width:24px; height:24px; fill:none; stroke:var(--white); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.dl-featured-text { flex:1; }
.dl-featured-text strong { display:block; font-family:var(--sans); font-weight:800; font-size:19px; color:var(--white); letter-spacing:0.3px; margin-bottom:3px; }
.dl-featured-text span { font-size:13px; color:var(--steel); }
.dl-badge { flex-shrink:0; display:inline-flex; align-items:center; gap:6px; padding:9px 16px; background:var(--accent); border-radius:6px; font-family:var(--sans); font-weight:700; font-size:14px; letter-spacing:0.5px; color:var(--white); white-space:nowrap; }
.dl-badge svg { width:14px; height:14px; fill:none; stroke:var(--white); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
@media(max-width:540px){ .dl-featured{flex-wrap:wrap;} .dl-badge{width:100%;justify-content:center;} }
.dl-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media(max-width:560px){ .dl-grid{grid-template-columns:1fr;} }
.dl-card { display:flex; align-items:center; gap:14px; background:var(--ink-mid); border:1px solid rgba(255,255,255,0.07); border-radius:8px; padding:16px 18px; text-decoration:none; transition:border-color 0.2s,background 0.2s; }
.dl-card:hover { border-color:rgba(31, 91, 255,0.35); background:rgba(31, 91, 255,0.05); }
.dl-card-icon { flex-shrink:0; width:40px; height:40px; background:rgba(31, 91, 255,0.1); border-radius:8px; display:flex; align-items:center; justify-content:center; }
.dl-card-icon svg { width:18px; height:18px; fill:none; stroke:var(--accent); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.dl-card-text { flex:1; min-width:0; }
.dl-card-text strong { display:block; font-size:13px; font-weight:600; color:var(--cloud); margin-bottom:2px; line-height:1.3; }
.dl-card-text span { font-size:12px; color:var(--steel); line-height:1.3; display:block; }
.dl-card-arrow { flex-shrink:0; }
.dl-card-arrow svg { width:16px; height:16px; fill:none; stroke:var(--slate); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; transition:stroke 0.2s; }
.dl-card:hover .dl-card-arrow svg { stroke:var(--accent); }

/* QUIZ */
.quiz-section { background:var(--ink); border-radius:12px; padding:40px; margin:56px 0 0; }
@media(max-width:480px){ .quiz-section{padding:24px 20px;} }
.quiz-header{margin-bottom:32px;padding-bottom:24px;border-bottom:1px solid rgba(255,255,255,0.1);}
.quiz-header h2 { font-family:var(--sans); font-weight:800; font-size:28px; color:var(--white); margin-bottom:6px; }
.quiz-header p{color:var(--steel);font-size:14px;margin:0;}
.quiz-question{margin-bottom:28px;}
.quiz-question p { font-size:15px; font-weight:600; color:var(--cloud); margin-bottom:12px; line-height:1.5; }
.q-num { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; background:var(--accent); color:var(--white); border-radius:50%; font-size:12px; font-weight:700; margin-right:8px; flex-shrink:0; }
.quiz-options{list-style:none;display:flex;flex-direction:column;gap:8px;}
.quiz-options li label { display:flex; align-items:flex-start; gap:10px; padding:12px 16px; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); border-radius:6px; cursor:pointer; font-size:14px; color:var(--cloud); line-height:1.5; transition:border-color 0.15s,background 0.15s; }
.quiz-options li label:hover{border-color:var(--accent);background:rgba(31, 91, 255,0.1);}
.quiz-options li input[type="radio"]{margin-top:2px;accent-color:var(--accent);flex-shrink:0;}
.quiz-options li.correct label{border-color:var(--success);background:var(--success-lt);color:var(--success);font-weight:600;}
.quiz-options li.incorrect label{border-color:var(--fail);background:var(--fail-lt);color:var(--fail);}
.quiz-submit-row{display:flex;gap:12px;margin-top:28px;flex-wrap:wrap;}
.btn { font-family:var(--sans); font-weight:700; font-size:16px; letter-spacing:0.6px; padding:13px 28px; border-radius:6px; border:none; cursor:pointer; transition:background 0.2s,transform 0.15s; }
.btn-primary{background:var(--accent);color:var(--white);}
.btn-primary:hover{background:var(--accent-dk);transform:translateY(-1px);}
.btn-secondary{background:rgba(255,255,255,0.07);color:var(--cloud);border:1px solid rgba(255,255,255,0.15);}
.btn-secondary:hover{border-color:var(--accent);color:var(--accent);}
.quiz-result { margin-top:20px; padding:16px 20px; border-radius:6px; font-size:15px; font-weight:600; display:none; }
.quiz-result.pass{background:var(--success-lt);color:var(--success);border:1px solid #86EFAC;}
.quiz-result.fail{background:var(--fail-lt);color:var(--fail);border:1px solid #FCA5A5;}

/* COMPLETION */
.completion-capture { display:none; background:var(--ink); border-radius:12px; padding:48px 40px; margin:32px 0 56px; position:relative; overflow:hidden; }
.completion-capture::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--accent); }
.completion-heading { font-family:var(--sans); font-weight:900; font-size:clamp(32px,5vw,52px); line-height:0.95; color:var(--white); margin-bottom:12px; }
.completion-heading span{color:var(--accent);}
.completion-sub{color:var(--steel);font-size:16px;line-height:1.6;margin-bottom:32px;max-width:480px;}
.completion-coming { background:rgba(31, 91, 255,0.1); border:1px solid rgba(31, 91, 255,0.2); border-radius:8px; padding:20px 24px; margin-top:16px; }
.coming-label { font-size:11px; font-weight:700; letter-spacing:1.5px; color:var(--accent); margin-bottom:10px; }
.coming-list{list-style:none;display:flex;flex-direction:column;gap:6px;}
.coming-list li { color:var(--cloud); font-size:14px; display:flex; align-items:center; gap:8px; }
.coming-list li::before{content:'';width:5px;height:5px;background:var(--accent);border-radius:50%;flex-shrink:0;}

/* REFERENCES */
.references-section{padding:48px 0;border-top:1px solid var(--border);}
.references-section h3 { font-family:var(--sans); font-weight:700; font-size:20px; color:var(--ink); margin-bottom:6px; letter-spacing:0.3px; }
.references-section h4 { font-family:var(--sans); font-weight:700; font-size:14px; color:var(--navy); margin:20px 0 8px; letter-spacing:0.5px; }
.ref-list{list-style:none;display:flex;flex-direction:column;gap:8px;margin-bottom:8px;}
.ref-list li { font-size:13px; color:var(--text-muted); line-height:1.6; padding-left:16px; border-left:2px solid var(--border); }
.ref-list li strong{color:var(--text-body);}

/* FOOTER */
@media(max-width:680px){footer{padding:20px;}}
/* LOCKED STATE (free-tier signup gate) */
.locked-state { background: var(--mist); padding: 64px 40px; border-bottom: 1px solid var(--border); }
@media (max-width: 680px) { .locked-state { padding: 48px 20px; } }
.locked-box { max-width: 500px; margin: 0 auto; text-align: center; }
.locked-icon { width: 56px; height: 56px; background: rgba(31, 91, 255,0.1); border: 1px solid rgba(31, 91, 255,0.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.locked-icon svg { stroke: var(--accent); }
.locked-box h2 { font-family:var(--sans); font-weight: 800; font-size: 30px; color: var(--text-dark); margin-bottom: 12px; letter-spacing: 0.2px; }
.locked-box p { color: var(--text-body); font-size: 16px; line-height: 1.65; max-width: 400px; margin: 0 auto 28px; }
.locked-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--white); font-family:var(--sans); font-weight: 700; font-size: 18px; letter-spacing: 0.5px; padding: 14px 28px; border-radius: 6px; text-decoration: none; transition: background 0.2s, transform 0.15s; }
.locked-cta:hover { background: var(--accent-dk); transform: translateY(-1px); }
.locked-note { font-size: 13px; color: var(--text-muted); margin-top: 16px; }
.locked-login { background: none; border: none; color: var(--accent); font-size: 13px; font-family: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

/* COMPARISON TABLE (v2 module additions) */
.cmp-table { width:100%; border-collapse:collapse; margin:24px 0; border:1px solid var(--border); border-radius:8px; overflow:hidden; font-size:13px; }
.cmp-table thead th { background:var(--ink); color:var(--white); font-family:var(--sans); font-weight:800; font-size:14px; letter-spacing:0.4px; padding:12px 14px; text-align:left; border-right:1px solid rgba(255,255,255,0.08); }
.cmp-table thead th:last-child { border-right:none; }
.cmp-table thead th.cmp-topic { background:var(--navy); }
.cmp-table tbody td { padding:12px 14px; vertical-align:top; line-height:1.55; color:var(--text-body); border-top:1px solid var(--border); border-right:1px solid var(--border); }
.cmp-table tbody td:last-child { border-right:none; }
.cmp-table tbody td.cmp-row-label { background:var(--mist); font-weight:600; color:var(--ink); font-size:12px; letter-spacing:0.3px; width:140px; }
@media(max-width:680px) { .cmp-table tbody td.cmp-row-label { width:auto; } .cmp-table { font-size:12px; } .cmp-table thead th, .cmp-table tbody td { padding:10px 12px; } }
/* Phones: the table scrolls sideways inside its own box so the page stays the screen width */
@media(max-width:680px) { .cmp-table { display:block; max-width:100%; overflow-x:auto; -webkit-overflow-scrolling:touch; } }
.cmp-flow-arrow td { background:var(--mist); border-top:none !important; border-right:none !important; text-align:center; padding:4px 0; line-height:1; }
.cmp-flow-arrow td svg { display:inline-block; vertical-align:middle; }

/* DOWNLOADS (pre-quiz resources block) */
.download-section { margin: 48px 0 0; }
.download-inner { display: flex; align-items: center; gap: 16px; background: var(--mist); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 8px; padding: 20px 24px; }
.download-inner + .download-inner { margin-top: 10px; }
.download-icon { flex-shrink: 0; width: 48px; height: 48px; background: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--white); }
.download-icon svg { stroke: var(--white); }
.download-text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.download-text strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.download-text span { font-size: 13px; color: var(--text-muted); }
.download-btn { flex-shrink: 0; display: inline-block; padding: 10px 20px; background: var(--accent); color: var(--white); border: 1.5px solid var(--accent); border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background 0.15s, color 0.15s; white-space: nowrap; cursor: pointer; }
.download-btn:hover { background: var(--accent-dk); border-color: var(--accent-dk); }
.download-btn--outline { background: transparent; color: var(--accent); }
.download-btn--outline:hover { background: var(--accent); color: var(--white); }
.download-btn--disabled, .download-btn--disabled:hover { background: var(--mist); color: var(--text-muted); border-color: var(--border); cursor: not-allowed; pointer-events: none; }
.download-inner--secondary { background: var(--white); }
.download-icon--light { background: var(--mist); color: var(--navy); }
.download-icon--light svg { stroke: var(--navy); }
@media (max-width: 540px) {
  .download-inner { flex-wrap: wrap; }
  .download-btn { width: 100%; text-align: center; }
}

/* CONTINUE CTA on completion-capture, matches site CTA family
   (Barlow Condensed uppercase). Label kept short so it doesn't crowd
   the chevron. */
.continue-cta { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; background: var(--accent); color: var(--white); border-radius: 6px; text-decoration: none; font-family:var(--sans); font-weight: 700; font-size: 17px; letter-spacing: 0.5px; transition: background 0.2s, transform 0.15s; }
.continue-cta:hover { background: var(--accent-dk); transform: translateY(-1px); }
.continue-cta svg { flex-shrink: 0; }

/* COURSE CERTIFICATE FORM (module9 completion-capture). Ported from the pre-stepper module8 inline styles so the text reads on the dark box. */
.completion-capture .completion-grid { display:grid; grid-template-columns:1fr 1fr; gap:48px; }
@media(max-width:680px) { .completion-capture .completion-grid { grid-template-columns:1fr; gap:32px; } }
.completion-capture .completion-modules { margin-top:24px; display:flex; flex-direction:column; gap:8px; }
.completion-capture .comp-mod-item { display:flex; align-items:center; gap:10px; font-size:13px; line-height:1.45; color:var(--steel); }
.completion-capture .comp-mod-item.done { color:var(--cloud); }
.completion-capture .comp-mod-item.done::before { content:'\2713'; width:18px; height:18px; background:rgba(22,163,74,0.2); border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:10px; color:#4ade80; flex-shrink:0; }
.completion-capture .comp-mod-item.current { color:var(--accent); font-weight:600; }
.completion-capture .comp-mod-item.current::before { content:''; width:18px; height:18px; background:var(--accent); border-radius:50%; flex-shrink:0; }
.completion-capture .completion-form-box { background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12); border-radius:10px; padding:28px; }
@media(max-width:680px) { .completion-capture .completion-form-box { padding:22px 18px; } }
.completion-capture .completion-form-box h3 { font-family:var(--sans); font-weight:700; font-size:20px; line-height:1.2; color:var(--white); margin-bottom:8px; }
.completion-capture .form-desc { color:var(--cloud); font-size:14px; line-height:1.55; margin:6px 0 20px; }
.completion-capture .completion-form-fields { display:flex; flex-direction:column; gap:10px; }
.completion-capture .completion-form-fields input { width:100%; padding:12px 14px; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.15); border-radius:6px; color:var(--white); font-size:16px; font-family:inherit; outline:none; transition:border-color 0.2s; }
.completion-capture .completion-form-fields input::placeholder { color:var(--steel); }
.completion-capture .completion-form-fields input:focus { border-color:var(--accent); }
.completion-capture .cert-download-btn { display:inline-flex; align-items:center; justify-content:center; width:100%; padding:13px; background:var(--accent); color:var(--white); border:none; border-radius:6px; font-family:var(--sans); font-weight:700; font-size:16px; letter-spacing:0.5px; cursor:pointer; margin-top:4px; transition:background 0.2s; }
.completion-capture .cert-download-btn:hover { background:var(--accent-dk); }
.completion-capture .cert-privacy { font-size:12px; line-height:1.5; color:var(--steel); margin-top:12px; text-align:center; }
.completion-capture #signup-confirmed { text-align:center; padding:24px 0; }
.completion-capture #signup-confirmed h4 { font-family:var(--sans); font-weight:700; font-size:22px; color:var(--white); margin-bottom:8px; }
.completion-capture #signup-confirmed p { color:var(--cloud); font-size:14px; }
.completion-capture .linkedin-actions { margin-top:16px; padding-top:14px; border-top:1px solid rgba(255,255,255,0.1); display:flex; flex-direction:column; gap:8px; }
.completion-capture .linkedin-actions-label { font-size:11px; font-weight:600; letter-spacing:0.5px; color:var(--steel); margin-bottom:2px; }
.completion-capture .linkedin-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; width:100%; padding:10px 16px; border-radius:6px; font-size:13px; font-weight:600; font-family:inherit; cursor:pointer; border:none; text-decoration:none; transition:opacity 0.15s; }
.completion-capture .linkedin-btn:hover { opacity:0.85; }
.completion-capture .linkedin-btn-primary { background:#0A66C2; color:var(--white); }
.completion-capture .linkedin-btn-secondary { background:rgba(10,102,194,0.12); color:#5B9BD5; border:1px solid rgba(10,102,194,0.28); }

/* UPGRADE PROMPT inside the completion box (M1 and M2, free members only,
   CD-20261023-1). M1 uses the outline button so Continue stays the main step. */
.upgrade-line { margin-top:28px; padding-top:22px; border-top:1px solid rgba(255,255,255,0.12); }
.upgrade-line-text { color:var(--cloud); font-size:15px; line-height:1.6; margin-bottom:16px; max-width:480px; }
.upgrade-line--main { margin-top:0; padding-top:0; border-top:0; }
.upgrade-line--main .upgrade-line-text { color:var(--steel); font-size:16px; }
.continue-cta--outline { background:transparent; color:var(--white); border:1.5px solid var(--accent); padding:12.5px 26.5px; }
.continue-cta--outline:hover { background:rgba(31, 91, 255,0.16); }
.coming-list .coming-paid { color:var(--steel); }

/* ---- from assets/scaff-interactive.css ---- */
/* ScaffSkills interactive components, shared styles.
   Inherits palette variables from the host page (no :root redefine).
   All classes are .scaff- prefixed and scope safely inside any module
   page's existing style block. */

.scaff-scenario {
  background: var(--ink, #0B1929);
  border-radius: 12px;
  padding: 36px 32px;
  margin: 40px 0;
  color: var(--cloud, #E6E6E6);
  font-family:var(--sans);
}
@media (max-width: 480px) {
  .scaff-scenario { padding: 24px 20px; }
}

.scaff-scenario__header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.scaff-scenario__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--accent, #1F5BFF);
  margin-bottom: 8px;
}
.scaff-scenario__title {
  font-family:var(--sans);
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 32px);
  color: #FFFFFF;
  letter-spacing: 0.2px;
  margin: 0;
  line-height: 1.05;
}

.scaff-card {
  animation: scaff-fade-in 220ms ease-out;
}
@keyframes scaff-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.scaff-card__step {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--steel, #565656);
  margin: 0 0 12px;
}
.scaff-card__prompt {
  font-size: 17px;
  line-height: 1.6;
  color: #FFFFFF;
  margin: 0 0 22px;
}
.scaff-card__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--white, #FFFFFF);
  margin: 0 0 16px;
}
.scaff-card__meta {
  font-size: 13px;
  line-height: 1.55;
  color: var(--steel, #565656);
  margin: 0 0 16px;
  font-style: italic;
}
.scaff-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.scaff-options {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.scaff-options__item { margin: 0; }
.scaff-options__btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  padding: 16px 18px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--white, #FFFFFF);
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.scaff-options__btn:hover,
.scaff-options__btn:focus-visible {
  border-color: var(--accent, #1F5BFF);
  background: rgba(31, 91, 255,0.10);
  outline: none;
}
.scaff-options__btn:active { transform: translateY(1px); }
.scaff-options__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--accent, #1F5BFF);
  color: #FFFFFF;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.scaff-options__label { flex: 1 1 auto; }

.scaff-btn {
  font-family:var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.6px;
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
}
.scaff-btn--primary {
  background: var(--accent, #1F5BFF);
  color: #FFFFFF;
}
.scaff-btn--primary:hover { background: var(--accent-dk, #262626); transform: translateY(-1px); }
.scaff-btn--ghost {
  background: transparent;
  color: var(--cloud, #E6E6E6);
  border: 1px solid rgba(255,255,255,0.18);
}
.scaff-btn--ghost:hover { border-color: var(--accent, #1F5BFF); color: var(--accent, #1F5BFF); }

.scaff-outcome-badge {
  display: inline-block;
  font-family:var(--sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1.2px;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.scaff-outcome-badge[data-outcome="good"]  { background: var(--success-lt, #E6F4EC); color: var(--success, #0A7A3B); }
.scaff-outcome-badge[data-outcome="bad"]   { background: var(--fail-lt, #FBEAE9);    color: var(--fail, #B3261E); }
.scaff-outcome-badge[data-outcome="mixed"] { background: rgba(246, 246, 246,0.16);         color: #565656; }

.scaff-block {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--accent, #1F5BFF);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 14px 0;
}
.scaff-block--lesson { border-left-color: var(--success, #0A7A3B); }
.scaff-block__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--accent, #1F5BFF);
  margin: 0 0 8px;
}
.scaff-block--lesson .scaff-block__label { color: var(--success, #0A7A3B); }
.scaff-block__body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--white, #FFFFFF);
  margin: 0;
}
.scaff-block__ref {
  font-size: 12px;
  color: var(--steel, #565656);
  font-style: italic;
  margin: 10px 0 0;
}

/* INTERACTIVE DIAGRAM
   Indented expandable tree, brand-light card for use within a normal
   content section. Mirrors info-box styling so it sits naturally next
   to existing static components. */
.scaff-diagram {
  background: var(--mist, #F6F6F6);
  border: 1px solid var(--border, #E6E6E6);
  border-radius: 12px;
  padding: 28px 28px 24px;
  margin: 32px 0;
  font-family:var(--sans);
}
@media (max-width: 480px) {
  .scaff-diagram { padding: 22px 18px 20px; }
}
.scaff-diagram__header { margin-bottom: 22px; }
.scaff-diagram__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--accent, #1F5BFF);
  margin-bottom: 6px;
}
.scaff-diagram__title {
  font-family:var(--sans);
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--ink, #0B1929);
  margin: 0 0 8px;
}
.scaff-diagram__intro {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-body, #3D3D3D);
  margin: 0;
}
.scaff-diagram__hint {
  font-size: 12px;
  color: var(--text-muted, #565656);
  margin: 16px 0 4px;
  font-style: italic;
}
.scaff-diagram__progress {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--accent, #1F5BFF);
  margin: 4px 0 0;
}

.scaff-tree { list-style: none; padding: 0; margin: 0; }
.scaff-tree--nested { margin-top: 8px; padding-left: 22px; border-left: 1px dashed rgba(31, 91, 255,0.35); margin-left: 14px; }
.scaff-tree__item { margin: 0 0 10px; }
.scaff-tree__card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--white, #FFFFFF);
  border: 1px solid var(--border, #E6E6E6);
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink, #0B1929);
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.scaff-tree__card:hover,
.scaff-tree__card:focus-visible {
  border-color: var(--accent, #1F5BFF);
  background: rgba(31, 91, 255,0.04);
  outline: none;
}
.scaff-tree__item.is-open > .scaff-tree__card {
  border-color: var(--accent, #1F5BFF);
  background: rgba(31, 91, 255,0.06);
}
.scaff-tree__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--accent, #1F5BFF);
  color: var(--white, #FFFFFF);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}
.scaff-tree__label { flex: 1 1 auto; }

.scaff-tree__panel {
  display: none;
  background: var(--white, #FFFFFF);
  border-left: 3px solid var(--accent, #1F5BFF);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 6px 0 0 12px;
}
.scaff-tree__item.is-open > .scaff-tree__panel { display: block; }
.scaff-tree__detail {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-body, #3D3D3D);
  margin: 0;
}
.scaff-tree__ref {
  font-size: 12px;
  font-style: italic;
  color: var(--text-muted, #565656);
  margin: 8px 0 0;
}

/* SORT-INTO-BUCKETS
   Each item is a row: label on the left, bucket buttons on the right.
   On reveal, rows colour green/red and feedback appears below. */
.scaff-sort {
  background: var(--mist, #F6F6F6);
  border: 1px solid var(--border, #E6E6E6);
  border-radius: 12px;
  padding: 28px 28px 24px;
  margin: 32px 0;
  font-family:var(--sans);
}
@media (max-width: 480px) {
  .scaff-sort { padding: 22px 18px 20px; }
}
.scaff-sort__header { margin-bottom: 18px; }
.scaff-sort__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--accent, #1F5BFF);
  margin-bottom: 6px;
}
.scaff-sort__title {
  font-family:var(--sans);
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--ink, #0B1929);
  margin: 0 0 8px;
}
.scaff-sort__intro {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-body, #3D3D3D);
  margin: 0 0 12px;
}
.scaff-sort__summary { margin-bottom: 14px; }
.scaff-sort__score {
  display: inline-block;
  font-family:var(--sans);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1.2px;
  padding: 6px 14px;
  border-radius: 4px;
  margin: 0;
}
.scaff-sort__score[data-outcome="good"]  { background: var(--success-lt, #E6F4EC); color: var(--success, #0A7A3B); }
.scaff-sort__score[data-outcome="mixed"] { background: rgba(246, 246, 246,0.16);         color: #565656; }
.scaff-sort__score[data-outcome="bad"]   { background: var(--fail-lt, #FBEAE9);     color: var(--fail, #B3261E); }

.scaff-sort__list { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 10px; }
.scaff-sort__item {
  background: var(--white, #FFFFFF);
  border: 1px solid var(--border, #E6E6E6);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 640px) {
  .scaff-sort__item { flex-direction: row; align-items: center; justify-content: space-between; }
}
.scaff-sort__item.is-correct { border-color: var(--success, #0A7A3B); background: rgba(22,163,74,0.05); }
.scaff-sort__item.is-wrong   { border-color: var(--fail, #B3261E);    background: rgba(220,38,38,0.05); }
.scaff-sort__label {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink, #0B1929);
  flex: 1 1 auto;
}
.scaff-sort__buckets { display: flex; gap: 6px; flex-wrap: wrap; }
.scaff-sort__bucket-btn {
  font-family:var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.6px;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid var(--border, #E6E6E6);
  background: var(--white, #FFFFFF);
  color: var(--text-body, #3D3D3D);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.scaff-sort__bucket-btn:hover,
.scaff-sort__bucket-btn:focus-visible { border-color: var(--accent, #1F5BFF); color: var(--accent, #1F5BFF); outline: none; }
.scaff-sort__bucket-btn.is-selected { background: var(--accent, #1F5BFF); border-color: var(--accent, #1F5BFF); color: var(--white, #FFFFFF); }
.scaff-sort__feedback {
  flex-basis: 100%;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-body, #3D3D3D);
  margin: 0;
  padding-top: 8px;
  border-top: 1px dashed var(--border, #E6E6E6);
}
.scaff-sort__item.is-correct .scaff-sort__feedback { color: var(--success, #0A7A3B); }
.scaff-sort__item.is-wrong   .scaff-sort__feedback { color: var(--fail, #B3261E); }
.scaff-sort__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* AUDIO NARRATION
   Dark-card treatment so the player feels distinct from text content
   and reads as a "press play" affordance. Transcript inherits page
   readability rules. */
.scaff-audio {
  background: var(--ink, #0B1929);
  border-radius: 12px;
  padding: 28px 28px 24px;
  margin: 32px 0;
  color: var(--cloud, #E6E6E6);
  font-family:var(--sans);
}
@media (max-width: 480px) {
  .scaff-audio { padding: 22px 18px 20px; }
}
.scaff-audio__header { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.10); }
.scaff-audio__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--accent, #1F5BFF);
  margin-bottom: 6px;
}
.scaff-audio__title {
  font-family:var(--sans);
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--white, #FFFFFF);
  margin: 0 0 4px;
}
.scaff-audio__voice {
  font-size: 12px;
  color: var(--steel, #565656);
  margin: 0;
}

.scaff-audio__player {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 18px;
}
.scaff-audio__player--placeholder {
  border-style: dashed;
  border-color: rgba(230, 230, 230,0.4);
  background: rgba(246, 246, 246,0.10);
}
.scaff-audio__pending {
  display: inline-block;
  font-family:var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.2px;
  color: #565656;
  background: rgba(230, 230, 230,0.12);
  border: 1px solid rgba(230, 230, 230,0.35);
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.scaff-audio__placeholder-note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--cloud, #E6E6E6);
  margin: 0;
}
.scaff-audio__controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
.scaff-audio__play {
  font-family:var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.6px;
  background: var(--accent, #1F5BFF);
  color: var(--white, #FFFFFF);
  border: none;
  border-radius: 4px;
  padding: 8px 18px;
  cursor: pointer;
  min-width: 70px;
}
.scaff-audio__play:hover { background: var(--accent-dk, #262626); }
.scaff-audio__bar {
  flex: 1 1 auto;
  height: 6px;
  background: rgba(255,255,255,0.10);
  border-radius: 3px;
  overflow: hidden;
}
.scaff-audio__bar-fill {
  width: 0;
  height: 100%;
  background: var(--accent, #1F5BFF);
  transition: width 0.1s linear;
}
.scaff-audio__time {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--steel, #565656);
  min-width: 80px;
  text-align: right;
}

.scaff-audio__transcript-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--steel, #565656);
  margin: 0 0 10px;
}
.scaff-audio__line {
  font-size: 14px;
  line-height: 1.7;
  color: var(--white, #FFFFFF);
  margin: 0 0 10px;
}
.scaff-audio__speaker {
  font-weight: 700;
  color: var(--white, #FFFFFF);
}

/* SEQUENTIAL FLOW CHART
   Vertical numbered process. Each step is a card with a one-line
   summary visible and a detail panel that opens on tap. Connecting
   line between numbers shows sequence. Mirrors the live lifecycle-wrap
   visual language so the interactive version reads as a natural
   evolution of the existing static pattern. */
.scaff-flow {
  background: var(--ink, #0B1929);
  border-radius: 12px;
  padding: 28px;
  margin: 32px 0;
  color: var(--cloud, #E6E6E6);
  font-family:var(--sans);
}
@media (max-width: 480px) {
  .scaff-flow { padding: 22px 18px; }
}
.scaff-flow__header { margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.10); }
.scaff-flow__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--accent, #1F5BFF);
  margin-bottom: 6px;
}
.scaff-flow__title {
  font-family:var(--sans);
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--white, #FFFFFF);
  margin: 0 0 6px;
}
.scaff-flow__intro {
  font-size: 14px;
  line-height: 1.6;
  color: var(--white, #FFFFFF);
  margin: 0;
}

.scaff-flow__list { list-style: none; padding: 0; margin: 0; }
.scaff-flow__item {
  position: relative;
  display: flex;
  gap: 18px;
  margin: 0 0 18px;
}
.scaff-flow__item:last-child { margin-bottom: 0; }
.scaff-flow__item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 52px;
  bottom: -18px;
  width: 2px;
  background: rgba(31, 91, 255,0.30);
}
.scaff-flow__item.is-open:not(:last-child)::before { background: rgba(31, 91, 255,0.60); }

.scaff-flow__num {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family:var(--sans);
  font-weight: 900;
  font-size: 22px;
  color: rgba(230, 230, 230,0.55);
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.10);
  border-radius: 50%;
  line-height: 1;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.scaff-flow__item.is-open .scaff-flow__num {
  color: var(--white, #FFFFFF);
  border-color: var(--accent, #1F5BFF);
  background: var(--accent, #1F5BFF);
}

.scaff-flow__main { flex: 1 1 auto; min-width: 0; }
.scaff-flow__card {
  width: 100%;
  display: block;
  text-align: left;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.scaff-flow__card:hover,
.scaff-flow__card:focus-visible {
  border-color: var(--accent, #1F5BFF);
  background: rgba(31, 91, 255,0.08);
  outline: none;
}
.scaff-flow__item.is-open .scaff-flow__card {
  border-color: var(--accent, #1F5BFF);
  background: rgba(31, 91, 255,0.10);
}

.scaff-flow__card-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.scaff-flow__step-title {
  font-family:var(--sans);
  font-weight: 800;
  font-size: 15px;
  color: var(--white, #FFFFFF);
  letter-spacing: 0.5px;
  flex: 0 0 auto;
}
.scaff-flow__step-summary {
  font-size: 13px;
  color: var(--steel, #565656);
  flex: 1 1 200px;
  line-height: 1.5;
}
.scaff-flow__expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--accent, #1F5BFF);
  color: var(--white, #FFFFFF);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  flex: 0 0 auto;
  line-height: 1;
}

.scaff-flow__panel {
  display: none;
  background: rgba(0,0,0,0.20);
  border-left: 3px solid var(--accent, #1F5BFF);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  margin: 10px 0 0;
}
.scaff-flow__item.is-open .scaff-flow__panel { display: block; }
.scaff-flow__detail {
  font-size: 14px;
  line-height: 1.7;
  color: var(--white, #FFFFFF);
  margin: 0;
}
.scaff-flow__ref {
  font-size: 12px;
  color: var(--steel, #565656);
  font-style: italic;
  margin: 8px 0 0;
}

.scaff-flow__hint {
  font-size: 12px;
  color: var(--steel, #565656);
  margin: 18px 0 4px;
  font-style: italic;
}
.scaff-flow__progress {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--accent, #1F5BFF);
  margin: 4px 0 0;
}

/* CHAIN ENHANCE
   Progressive enhancement for existing .hier-chain-wrap and
   .lifecycle-wrap blocks. The existing visual is preserved; these
   rules add affordances (pointer cursor, +/- marker, hover lift)
   and the styles for the expandable detail panel inserted under
   each clickable node. */
.scaff-chain-host { position: relative; }
.scaff-chain__hint {
  font-size: 12px;
  color: var(--steel, #565656);
  margin: 0 0 16px;
  font-style: italic;
  text-align: center;
}
.scaff-chain-node {
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.scaff-chain-node:hover,
.scaff-chain-node:focus-visible {
  border-color: var(--accent, #1F5BFF);
  outline: none;
  transform: translateY(-1px);
}
.scaff-chain-node.is-open {
  border-color: var(--accent, #1F5BFF);
  background: rgba(31, 91, 255,0.10);
}
.scaff-chain-marker {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: var(--cloud, #E6E6E6);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.scaff-chain-node.is-open .scaff-chain-marker {
  background: var(--accent, #1F5BFF);
  color: var(--white, #FFFFFF);
  border-color: var(--accent, #1F5BFF);
}

.scaff-chain-panel {
  display: none;
  background: rgba(31, 91, 255,0.10);
  border: 1px solid rgba(31, 91, 255,0.30);
  border-left: 4px solid var(--accent, #1F5BFF);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 10px auto;
  max-width: 500px;
  width: 100%;
  box-sizing: border-box;
  animation: scaff-fade-in 200ms ease-out;
}
.scaff-chain-panel.is-open { display: block; }
.scaff-chain-panel__detail {
  font-size: 14px;
  line-height: 1.7;
  color: var(--white, #FFFFFF);
  margin: 0;
}
.scaff-chain-panel__ref {
  font-size: 12px;
  color: var(--cloud, #E6E6E6);
  font-style: italic;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

/* Lifecycle-specific: panel sits in the flex container as a sibling
   of .lifecycle-row, indented past the number column. width:auto lets
   the panel respect the parent's right padding rather than overflowing. */
.lifecycle-wrap > .scaff-chain-panel {
  max-width: none;
  width: auto;
  margin: 8px 0 12px 96px;
}
@media (max-width: 480px) {
  .lifecycle-wrap > .scaff-chain-panel { margin-left: 0; }
}

/* SPECIFICITY OVERRIDES, host-page conflicts
   The live module pages (and the sandbox copies of them) carry rules
   like `.content-section p { color: var(--text-body); ... }` with
   specificity 0,1,1. That out-specifies a plain `.scaff-card__body`
   rule (0,1,0) regardless of source order, so all our white body
   text was being pulled back to the dark text colour intended for
   light backgrounds. The qualified selectors below sit at 0,2,0,
   which beats the host page rules. Kept as a single block at the
   end of the stylesheet so they can be audited or peeled off as a
   group if the host CSS is ever cleaned up. */

.scaff-scenario .scaff-card__body,
.scaff-scenario .scaff-card__prompt,
.scaff-scenario .scaff-options__btn,
.scaff-scenario .scaff-block__body { color: var(--white, #FFFFFF); }
.scaff-scenario .scaff-card__meta,
.scaff-scenario .scaff-card__step,
.scaff-scenario .scaff-block__ref { color: var(--steel, #565656); }
.scaff-scenario .scaff-block__label { color: var(--accent, #1F5BFF); }
.scaff-scenario .scaff-block--lesson .scaff-block__label { color: var(--success, #0A7A3B); }

.scaff-flow .scaff-flow__intro,
.scaff-flow .scaff-flow__detail { color: var(--white, #FFFFFF); }
.scaff-flow .scaff-flow__step-summary,
.scaff-flow .scaff-flow__ref,
.scaff-flow .scaff-flow__hint { color: var(--steel, #565656); }

.scaff-audio .scaff-audio__line,
.scaff-audio .scaff-audio__placeholder-note { color: var(--white, #FFFFFF); }
.scaff-audio .scaff-audio__voice { color: var(--steel, #565656); }

.scaff-chain-panel .scaff-chain-panel__detail { color: var(--white, #FFFFFF); }
.scaff-chain-panel .scaff-chain-panel__ref { color: var(--cloud, #E6E6E6); }

/* ---- from assets/scaff-lifts.css ---- */
/* ScaffSkills lift stepper: module content delivered one lift at a time.
   Generic layer, configured per page via window.SCAFF_LIFTS. */
.lift-hud { position: sticky; top: 0; z-index: 900; background: var(--ink, #0B1929); border-bottom: 1px solid rgba(230, 230, 230,0.25); padding: 12px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
/* Overlays (audit item 3): anything the page scrolls to (headings, quick checks, quiz questions,
   submit row, completion box) lands below the sticky HUD instead of under it. */
.lift h2, .lift h3, .micro-check, .quiz-question, .quiz-submit-row, .completion-capture { scroll-margin-top: 72px; }
@media (max-width: 680px) { .lift h2, .lift h3, .micro-check, .quiz-question, .quiz-submit-row, .completion-capture { scroll-margin-top: 104px; } }
.lift-hud-label { font-family:var(--sans); font-weight: 800; font-size: 18px; letter-spacing: 0.5px; color: #fff; white-space: nowrap; }
.lift-hud-label span { color: var(--accent, #1F5BFF); }
.lift-storeys { display: flex; gap: 5px; flex: 1; min-width: 160px; }
.lift-storey { height: 8px; flex: 1; border-radius: 3px; background: rgba(230, 230, 230,0.2); }
.lift-storey.done { background: var(--accent, #1F5BFF); }
.lift-storey.now { background: var(--accent, #1F5BFF); opacity: 0.55; animation: liftpulse 1.6s infinite; }
@keyframes liftpulse { 50% { opacity: 1; } }
.lift-hud-time { font: 500 12px 'Inter', sans-serif; color: #565656; white-space: nowrap; }
.lift-feedback-bar { background: rgba(31, 91, 255,0.07); border-bottom: 1px solid rgba(31, 91, 255,0.25); padding: 9px 20px; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; text-align: center; }
.lift-feedback-bar .lift-fb-text { font: 500 12.5px 'Inter', sans-serif; color: var(--text-muted, #565656); }
.lift-feedback-bar .lift-fb-link { font: 600 12.5px 'Inter', sans-serif; color: var(--accent, #1F5BFF); text-decoration: none; white-space: nowrap; }
.lift-feedback-bar .lift-fb-link:hover { color: var(--accent-dk, #262626); text-decoration: underline; }
.lift { display: none; }
.lift.active { display: block; animation: liftin 0.35s ease; }
@keyframes liftin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.lift-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 36px 0 30px; padding-top: 20px; border-top: 1px solid rgba(230, 230, 230,0.35); flex-wrap: wrap; }
.lift-btn { font-family:var(--sans); font-weight: 700; font-size: 17px; letter-spacing: 0.5px; padding: 13px 26px; border-radius: 6px; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.lift-btn-next { background: var(--accent, #1F5BFF); color: #fff; }
.lift-btn-next:hover { background: var(--accent-dk, #262626); }
.lift-btn-next:disabled { background: #3D3D3D; cursor: not-allowed; opacity: 0.6; }
.lift-btn-back { background: transparent; color: #565656; border: 1px solid rgba(86, 86, 86,0.4); }
.lift-nav .lift-fb-link { font: 600 13px 'Inter', sans-serif; color: var(--accent, #1F5BFF); text-decoration: none; white-space: nowrap; }
.lift-nav .lift-fb-link:hover { color: var(--accent-dk, #262626); text-decoration: underline; }
@media (max-width: 480px) { .lift-nav .lift-fb-link { order: 3; flex-basis: 100%; text-align: center; } }
.rule-card { margin: 30px 0 6px; background:var(--ink); border-left: 4px solid var(--accent, #1F5BFF); border-radius: 8px; padding: 18px 22px; }
.rule-card .rc-kicker { font: 700 10px 'Inter', sans-serif; letter-spacing: 2px; color: var(--accent, #1F5BFF); margin-bottom: 6px; }
.rule-card .rc-text { font-family:var(--sans); font-weight: 700; font-size: 21px; line-height: 1.25; color: #fff; }
.micro-check { margin: 28px 0 4px; background: rgba(31, 91, 255,0.07); border: 1px solid rgba(31, 91, 255,0.35); border-radius: 8px; padding: 20px 22px; }
.micro-check .mc-kicker { font: 700 10px 'Inter', sans-serif; letter-spacing: 2px; color: var(--accent, #1F5BFF); margin-bottom: 8px; }
.micro-check .mc-q { font: 600 15px/1.5 'Inter', sans-serif; margin-bottom: 12px; }
.micro-check label { display: block; font: 500 14px 'Inter', sans-serif; padding: 9px 12px; border: 1px solid rgba(86, 86, 86,0.4); border-radius: 6px; margin-bottom: 8px; cursor: pointer; }
.micro-check label:hover { border-color: var(--accent, #1F5BFF); }
.micro-check .mc-fb { display: none; font: 500 13.5px/1.55 'Inter', sans-serif; margin-top: 10px; padding: 12px 14px; border-radius: 6px; }
.micro-check .mc-fb.ok { display: block; background: rgba(31, 91, 255,0.15); }
.micro-check .mc-fb.no { display: block; border: 1px solid rgba(86, 86, 86,0.5); }
.lift-gate-note { font: 500 12px 'Inter', sans-serif; color: #565656; margin-top: 8px; flex-basis: 100%; }
/* After the first lift: compact module banner so the lesson starts higher. Text is unchanged. */
body.lift-past-first .module-header { padding: 84px 0 18px; }
body.lift-past-first .module-header .module-eyebrow { margin-bottom: 6px; }
body.lift-past-first .module-header h1 { font-size: 26px; line-height: 1.05; margin-bottom: 0; }
body.lift-past-first .module-header .subtitle { display: none; }

/* ==========================================================================
   LESSON OVERRIDES

   The folded block above was written against the old dark palette. Rather
   than rewrite 200 selectors' worth of var() references, the old token names
   are re-pointed at the brand tokens here, and the handful of components
   that need more than a colour swap are corrected below.
   ========================================================================== */
:root{
  /* Old names, new values. site.css :root above remains the only place a
     brand colour is defined. */
  --navy:var(--ink);
  --ink-mid:#262626;
  --slate:var(--body);
  --steel:var(--muted-strong);
  --cloud:var(--line);
  --mist:var(--soft);
  --white:var(--bg);
  --accent-dk:#262626;
  --text-dark:var(--ink);
  --text-body:var(--body);
  --text-muted:var(--muted-strong);
  --success:var(--ok);
  --success-lt:#E6F4EC;
  --fail:var(--err);
  --fail-lt:#FBEAE9;
  --border:var(--line);
}

/* Lesson pages promote blue to the learning colour, as the brand sets out. */
body.lesson{--hl:var(--accent);--hlsoft:var(--tint)}

/* The lesson nav is light like everywhere else, and sits in the flow rather
   than fixed, because the page below it no longer allows for a fixed bar. */
.nav-module-label{color:var(--muted-strong);font-size:15px;font-weight:400;letter-spacing:0;min-width:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-back{color:var(--ink);font-size:15px;font-weight:500;text-decoration:none;display:flex;align-items:center;gap:6px;flex:none}
.nav-back:hover{color:var(--body);text-decoration:underline;text-underline-offset:3px}

/* Module head. Was a dark band with an uppercase Barlow headline. */
.module-header{background:var(--bg);border-bottom:1px solid var(--line);padding:64px 0 40px}
.module-header h1{
  margin:0 0 14px;color:var(--ink);font-family:var(--sans);font-weight:700;
  font-size:clamp(32px,4vw,52px);letter-spacing:-.04em;line-height:1.02;
}
.module-header .subtitle{color:var(--body);font-size:19px;line-height:1.5;max-width:52ch}
.module-eyebrow{display:flex;align-items:center;gap:14px;margin-bottom:20px;flex-wrap:wrap}
.mod-num-pill{
  background:var(--ink);color:#fff;border-radius:var(--r-pill);padding:6px 14px;
  font-family:var(--mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;
}
.mod-course-label{font-family:var(--mono);font-size:13px;color:var(--muted-strong)}

/* Section headings inside a lesson. */
.section-heading{
  margin:56px 0 18px;color:var(--ink);font-family:var(--sans);font-weight:700;
  font-size:28px;letter-spacing:-.03em;line-height:1.12;
}
.sub-heading{margin:36px 0 12px;font-size:21px;font-weight:600;letter-spacing:-.02em;color:var(--ink)}
.sub-heading-sm{margin:28px 0 10px;font-size:18px;font-weight:600;letter-spacing:-.01em;color:var(--ink)}
.content-section p{color:var(--body);font-size:18px;line-height:1.65}

/* Every label that was uppercase Barlow is now 12px mono, which is the one
   tier the brand still sets in capitals. */
.info-box-label,.dark-rule-label,.nasc-ref-label,.v2-facts-label,.v2-src-label,
.v2-vc-label,.v2-tp-label,.action-checklist-title,.cm-checklist-title,
.about-box-title,.dl-badge,.coming-label,.quiz-header p,.miv-label-text,
.lifecycle-num,.q-num,.tcc-category,.tcc-org,.references-section h3{
  font-family:var(--mono);font-size:12px;font-weight:400;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted-strong);
}

/* Panels: soft fill, hairline, brand radius. No coloured left bars. */
.info-box,.nasc-ref-box,.about-box,.v2-facts,.v2-src,.v2-tp,.action-box,
.action-checklist,.cm-checklist,.case-card,.three-col-card,.compare-card,
.role-card,.dl-card,.locked-box,.free-banner,.v2-banner,.completion-capture{
  background:var(--soft);border:1px solid var(--line);border-left-width:1px;
  border-radius:var(--r-panel);
}
.dark-rule-box{background:var(--ink);border:0;border-radius:var(--r-panel);color:#fff}
.dark-rule-box p,.dark-rule-list li{color:rgba(255,255,255,.82)}
.dark-rule-title{color:#fff;font-family:var(--sans);font-weight:600;letter-spacing:-.02em}
.dark-rule-label{color:rgba(255,255,255,.6)}

/* Buttons inside a lesson follow the one button language. */
.btn-primary,.download-btn,.continue-cta,.cert-download-btn{
  background:var(--ink);color:#fff;border:1px solid transparent;border-radius:var(--r-pill);
  font-family:var(--sans);font-weight:500;font-size:16px;letter-spacing:-.01em;
}
.btn-secondary,.download-btn--outline,.continue-cta--outline{
  background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:var(--r-pill);
  font-family:var(--sans);font-weight:500;font-size:16px;
}
.download-btn--disabled{background:transparent;color:var(--muted-strong);border:1px solid var(--line)}

/* Quiz. Right and wrong read as tint and hairline, not as filled blocks. */
.quiz-options li label{
  border:1px solid var(--line);border-radius:var(--r-input);
  font-size:17px;color:var(--body);
}
.quiz-options li label:hover{border-color:var(--ink);background:var(--soft)}
.quiz-options li.correct label{border-color:var(--ok);background:var(--success-lt);color:var(--ink)}
.quiz-options li.incorrect label{border-color:var(--err);background:var(--fail-lt);color:var(--ink)}
.quiz-question p{font-size:19px;font-weight:500;letter-spacing:-.015em;color:var(--ink)}

/* The reading progress bar uses the learning colour. */
.scroll-bar-track{background:var(--line)}
.scroll-bar-fill{background:var(--hl)}


/* The lift bar. Was a dark fixed band with blue segments. */
.lift-hud{
  background:var(--bg);border-bottom:1px solid var(--line);
  padding:14px var(--gut);gap:18px;
}
.lift-hud-label{font-family:var(--mono);font-size:12px;font-weight:400;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted-strong)}
.lift-hud-label span{color:var(--ink);font-weight:400}
.lift-storey{height:3px;border-radius:0;background:var(--line)}
.lift-storey.done{background:var(--hl)}
.lift-storey.now{background:var(--hl);opacity:.45;animation:none}
.lift-hud-time{font-family:var(--mono);font-size:12px;color:var(--muted-strong)}
.lift-feedback-bar{background:var(--soft);border-bottom:1px solid var(--line);padding:10px var(--gut)}
.lift-feedback-bar .lift-fb-text{font-family:var(--sans);font-size:14px;color:var(--muted-strong)}

/* The reading progress bar sits under the nav, not over a dark one. */
.scroll-bar-track{top:var(--nav-h);height:2px;background:var(--line)}

/* Section headings: a hairline rule, not a blue one under every heading.
   The brand allows one accent underline per headline, on marketing pages. */
.section-heading{
  display:block;font-weight:700;font-size:clamp(24px,2.6vw,32px);
  letter-spacing:-.03em;line-height:1.12;
  padding-bottom:0;border-bottom:0;margin:56px 0 16px;
}

/* Panel headers were solid navy, grey and slate bars. */
.v2-banner-hdr{
  background:var(--soft);color:var(--muted-strong);
  border-bottom:1px solid var(--line);
  font-family:var(--mono);font-size:12px;font-weight:400;letter-spacing:.06em;
  text-transform:uppercase;padding:12px 20px;
}
.v2-banner-hdr--navy,.v2-banner-hdr--grey,.v2-banner-hdr--slate{background:var(--soft)}

/* Disabled is an outline, never a grey fill. */
.quiz-submit-row .btn-primary[disabled],.quiz-submit-row button[disabled],
.btn-primary[disabled],.download-btn[disabled],button[disabled].btn-primary{
  background:transparent;color:var(--muted-strong);border:1px solid var(--line);
  opacity:1;cursor:not-allowed;
}

/* The lift's continue button follows the one button language, and its
   disabled state is an outline rather than a grey fill. */
.lift-btn{
  height:48px;padding:0 22px;border-radius:var(--r-pill);border:1px solid transparent;
  font-family:var(--sans);font-size:16px;font-weight:500;letter-spacing:-.01em;cursor:pointer;
}
.lift-btn-next{background:var(--ink);color:#fff}
.lift-btn-next:hover:not([disabled]){background:#262626}
.lift-btn[disabled],.lift-btn-next[disabled]{
  background:transparent;color:var(--muted-strong);border-color:var(--line);
  opacity:1;cursor:not-allowed;
}
.lift-btn-back,.lift-btn-prev,.lift-btn-outline{background:transparent;color:var(--ink);border:1px solid var(--line)}
.lift-btn-back:hover{background:var(--soft);border-color:var(--ink);color:var(--ink)}

/* Inline check boxes inside a lift use the learning tint. */
.micro-check{background:var(--hlsoft);border:1px solid var(--line);border-radius:var(--r-panel)}


/* Interactive components in lifts 2 to 9 ---------------------------------
   These came across still wearing the old palette: dark diagram panels,
   source labels in six colours, red case citations, a navy gradient rule
   card, and three oranges that the governing file prohibits outright. */
.lifecycle-wrap,.hier-chain-wrap{
  background:var(--bg);border:1px solid var(--line);border-radius:var(--r-panel);padding:28px;
}
.lifecycle-node,.hier-chain-node{background:var(--bg);border:1px solid var(--line);border-radius:var(--r-input)}
.lifecycle-node:hover,.hier-chain-node:hover{border-color:var(--ink);background:var(--soft)}
.lifecycle-node-title,.hier-chain-node-title{
  color:var(--ink);font-family:var(--sans);font-weight:600;font-size:16px;letter-spacing:-.01em;
}
.lifecycle-node-sub,.hier-chain-node-sub{color:var(--body);font-size:14px}
.lifecycle-num{font-family:var(--mono);font-weight:400;font-size:12px;letter-spacing:.06em;color:var(--muted-strong)}
.hier-chain-node.you-node{border-color:var(--hl);border-width:1.5px;background:var(--hlsoft)}
.role-card.role-you{background:var(--hlsoft);border-color:var(--line)}
.compare-card.compare-highlight{background:var(--hlsoft)}
.scaff-chain__hint{color:var(--muted-strong);font-style:normal}
/* The expand marker was a white glyph on a dark row. */
.scaff-chain-marker{color:var(--muted-strong);border:1px solid var(--line);background:var(--bg)}
.scaff-chain-node.is-open .scaff-chain-marker{color:#fff;background:var(--ink);border-color:var(--ink)}

/* The legal floor: a stack, not four colours. */
.lp-layer,.lp-top,.lp-mid,.lp-base{background:var(--soft);border:1px solid var(--line)}
.lp-contract{background:var(--hlsoft);border:1px solid var(--line);border-top:2px solid var(--hl)}
.lp-label,.lp-top .lp-label,.lp-mid .lp-label,.lp-base .lp-label{
  font-family:var(--mono);font-size:12px;font-weight:400;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted-strong);
}
.lp-contract .lp-label{color:var(--hl)}
.lp-title{font-family:var(--sans);font-weight:600;font-size:17px;letter-spacing:-.015em;color:var(--ink)}
.lp-sub{color:var(--body);font-size:14px}

/* Sources: one hairline, one label style. */
.v2-src,.v2-src--nasc,.v2-src--rics,.v2-src--ciob,.v2-src--law,.v2-src--case,.v2-src--industry{
  border:1px solid var(--line);border-style:solid;border-width:1px;background:var(--soft);
}
.v2-src--nasc .v2-src-label,.v2-src--rics .v2-src-label,.v2-src--ciob .v2-src-label,
.v2-src--law .v2-src-label,.v2-src--case .v2-src-label,.v2-src--industry .v2-src-label{color:var(--muted-strong)}
/* Module teaching callouts use brand accent (no orange). */
.v2-tp{background:var(--soft);border:1px solid var(--line);border-radius:var(--r-panel)}
.v2-tp-label{color:var(--muted-strong)}

.case-card{border:1px solid var(--line);border-radius:var(--r-panel)}
.case-card-citation{
  font-family:var(--mono);font-size:12px;font-weight:400;letter-spacing:.06em;
  text-transform:none;color:var(--muted-strong);
}
.case-card-rule{font-size:16px;color:var(--body)}

/* The rule on site: the one black card inside a lift. */
.rule-card{background:var(--ink);border:0;border-radius:var(--r-panel);padding:24px 28px;margin:32px 0}
.rule-card .rc-kicker{
  font-family:var(--mono);font-size:12px;font-weight:400;letter-spacing:.06em;
  text-transform:uppercase;color:rgba(255,255,255,.62);margin-bottom:8px;
}
.rc-text{color:#fff;font-family:var(--sans);font-weight:600;font-size:19px;letter-spacing:-.015em;line-height:1.35}

/* Exercises. */
.scaff-sort__eyebrow,.scaff-scenario__eyebrow,.mc-kicker{
  font-family:var(--mono);font-size:12px;font-weight:400;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted-strong);
}
.scaff-sort__title,.scaff-scenario__title{
  font-family:var(--sans);font-weight:700;font-size:24px;letter-spacing:-.03em;color:var(--ink);
}
.mc-q{font-size:18px;font-weight:500;letter-spacing:-.015em;color:var(--ink)}
.scaff-btn{
  height:48px;padding:0 22px;border-radius:var(--r-pill);border:1px solid transparent;
  background:var(--ink);color:#fff;
  font-family:var(--sans);font-size:16px;font-weight:500;letter-spacing:-.01em;cursor:pointer;
}
.scaff-btn:hover:not([disabled]){background:#262626}
.scaff-btn--ghost,.scaff-btn--secondary,.scaff-btn[data-role="reset"]{
  background:transparent;color:var(--ink);border-color:var(--line);
}
.scaff-btn[disabled]{background:transparent;color:var(--muted-strong);border-color:var(--line);opacity:1}
.scaff-sort__bucket-btn{border:1px solid var(--line);border-radius:var(--r-pill);background:var(--bg);color:var(--body)}
.scaff-sort__bucket-btn:hover{border-color:var(--ink);color:var(--ink)}
.scaff-sort__bucket-btn[aria-pressed="true"],.scaff-sort__bucket-btn.is-picked{
  background:var(--ink);border-color:var(--ink);color:#fff;
}

/* Video frame and module pill borders were the old accent at low alpha. */
.module-intro-video{border:1px solid var(--line);border-radius:var(--r-panel)}
.miv-header{background:var(--soft);border-bottom:1px solid var(--line)}
.lift-nav{border-top:1px solid var(--line)}
.lift-gate-note{color:var(--muted-strong);border:0;outline:0}

/* The knowledge check and the downloads were dark slabs. The colour map
   turned their navy into brand black, which passes a palette check and is
   still wrong: a black panel 2,000px tall is not a design. */
.quiz-section,.dl-section,.download-section{
  background:var(--bg);border:1px solid var(--line);border-radius:var(--r-card);padding:40px;
}
.quiz-header{border-bottom:1px solid var(--line)}
.quiz-header h2{color:var(--ink);font-family:var(--sans);font-weight:700;font-size:28px;letter-spacing:-.03em}
.quiz-header p{color:var(--muted-strong);font-size:15px}
.quiz-question p{font-size:18px;font-weight:500;letter-spacing:-.015em;color:var(--ink)}
.quiz-options li label{
  background:var(--bg);border:1px solid var(--line);border-radius:var(--r-input);
  color:var(--body);font-size:17px;padding:14px 18px;
}
.quiz-options li label:hover{border-color:var(--ink);background:var(--soft)}
.quiz-options li input[type="radio"]{accent-color:var(--hl)}
.quiz-options li.correct label{border-color:var(--ok);background:var(--success-lt);color:var(--ink);font-weight:500}
.quiz-options li.incorrect label{border-color:var(--err);background:var(--fail-lt);color:var(--ink)}
.quiz-result{border-radius:var(--r-input);font-weight:500}

.dl-hdr h2,.download-section h2{color:var(--ink)}
.download-inner{background:var(--bg);border:1px solid var(--line);border-radius:var(--r-panel)}
.download-inner:hover{border-color:var(--ink)}
.download-text strong{color:var(--ink);font-weight:600;font-size:17px;letter-spacing:-.015em}
.download-text span{color:var(--body);font-size:15px}
/* Downloads are secondary actions on a page of them: outline, not a wall of
   black pills, and never blue. */
.download-btn,.download-btn--outline{
  background:transparent;color:var(--ink);border:1px solid var(--line);
  border-radius:var(--r-pill);height:40px;padding:0 18px;
  font-family:var(--sans);font-size:15px;font-weight:500;
}
.download-btn:hover{background:var(--soft);border-color:var(--ink);color:var(--ink)}
.download-icon,.dl-card-icon,.dl-featured-icon{background:var(--soft);border:1px solid var(--line)}
.download-icon svg,.dl-card-icon svg,.dl-featured-icon svg{color:var(--hl)}

/* The quiz submit is the one primary action in the knowledge check. */
.quiz-submit-row .btn-primary,#quiz-submit{background:var(--ink);color:#fff;border-radius:var(--r-pill)}
.quiz-submit-row .btn-primary:hover:not([disabled]),#quiz-submit:hover:not([disabled]){background:#262626}

/* The completion and certificate block closes the module: one black card. */
.completion-capture{background:var(--ink);border:0;border-radius:var(--r-card);color:#fff}
.completion-heading{color:#fff;font-family:var(--sans);font-weight:700;letter-spacing:-.03em}
.completion-sub,.completion-capture .form-desc{color:rgba(255,255,255,.75)}
.completion-capture .completion-form-box{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.16);border-radius:var(--r-panel)}
.completion-capture .completion-form-fields input{
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.22);
  border-radius:var(--r-input);color:#fff;
}
.completion-capture .completion-form-fields input::placeholder{color:rgba(255,255,255,.5)}
.completion-capture .cert-download-btn{background:#fff;color:var(--ink);border-radius:var(--r-pill)}
.completion-capture .cert-download-btn:hover{background:#F0F0F0;color:var(--ink)}
.completion-capture .cert-privacy{color:rgba(255,255,255,.6)}

/* The completion block is a black card, so everything on it inverts:
   a white pill for the primary action, a hairline panel for the list. */
.completion-coming{
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.16);
  border-radius:var(--r-panel);
}
.coming-label{color:rgba(255,255,255,.6)}
.coming-list li{color:rgba(255,255,255,.85);font-size:16px}
.coming-list li::before{background:rgba(255,255,255,.45);width:4px;height:4px}
.coming-list .coming-paid{color:rgba(255,255,255,.5)}
.continue-cta{
  background:#fff;color:var(--ink);border:1px solid transparent;border-radius:var(--r-pill);
  height:48px;padding:0 22px;font-family:var(--sans);font-weight:500;font-size:16px;letter-spacing:-.01em;
}
.continue-cta:hover{background:#F0F0F0;color:var(--ink)}
.continue-cta svg{color:var(--ink)}
.continue-cta--outline{
  background:transparent;color:#fff;border:1px solid rgba(255,255,255,.35);
}
.continue-cta--outline:hover{background:rgba(255,255,255,.1);color:#fff;border-color:#fff}
.continue-cta--outline svg{color:#fff}
.upgrade-line,.upgrade-line-text{color:rgba(255,255,255,.75)}

/* The fail panel: the result line carries the red, the review links do not.
   Four lines of red link text is a lot of red for a status colour. */
.quiz-result.fail{background:var(--fail-lt);color:var(--err);border:1px solid rgba(179,38,30,.25)}
.quiz-result.pass{background:var(--success-lt);color:var(--ok);border:1px solid rgba(10,122,59,.25)}
.quiz-result .quiz-review,.quiz-result ul,.quiz-result li{color:var(--ink)}
.quiz-result a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--err);text-underline-offset:3px}
.quiz-result a:hover{color:var(--err)}

/* Previous-module link. Lifted out of the footer on modules 2 to 9: it is
   lesson navigation, and the canonical footer would have dropped it. */
.module-prev{
  max-width:var(--wrap);margin-inline:auto;padding:0 var(--gut) 48px;
}
.module-prev a{
  display:inline-flex;align-items:center;gap:8px;
  font-size:15px;font-weight:500;color:var(--ink);text-decoration:none;
}
.module-prev a:hover{text-decoration:underline;text-underline-offset:3px}

/* Section narration. Was a dark slab with an amber "pending" badge. */
.scaff-audio{
  background:var(--soft);border:1px solid var(--line);border-radius:var(--r-panel);
}
.scaff-audio__header{border-bottom:1px solid var(--line)}
.scaff-audio__eyebrow{
  font-family:var(--mono);font-size:12px;font-weight:400;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted-strong);
}
.scaff-audio__title{
  font-family:var(--sans);font-weight:600;font-size:19px;letter-spacing:-.02em;color:var(--ink);
}
.scaff-audio__voice,.scaff-audio__placeholder-note{color:var(--muted-strong);font-size:14px}
.scaff-audio__player,.scaff-audio__player--placeholder{
  background:var(--bg);border:1px solid var(--line);border-radius:var(--r-input);
}
/* A section with no narration yet is a neutral state, not a warning. */
.scaff-audio__pending{
  background:var(--bg);border:1px solid var(--line);border-radius:var(--r-pill);
  color:var(--muted-strong);
  font-family:var(--mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;
}
.scaff-audio__play{background:var(--ink);color:#fff;border:0;border-radius:var(--r-pill)}
.scaff-audio__play:hover{background:#262626}

/* --------------------------------------------------------------------------
   REGISTER, INTRO AND THE DASHBOARD

   These three keep their own nav. A back link on register, the module label
   and a member-aware link on intro, and the greeting with sign-out on the
   dashboard, whose #nav-greeting and #signout-btn are read by JavaScript.
   The canonical marketing header does none of those jobs, and putting
   "Start free" on the register page would be absurd.
   -------------------------------------------------------------------------- */

/* Register ---------------------------------------------------------------- */
.register-wrap{max-width:560px;margin-inline:auto;padding:72px var(--gut) 96px}
.register-wrap .eyebrow{display:block;margin-bottom:18px}
.register-heading{
  margin:0 0 18px;font-family:var(--sans);font-weight:700;
  font-size:clamp(38px,5vw,62px);letter-spacing:-.045em;line-height:.99;color:var(--ink);
}
.register-heading span{color:var(--muted)}
.register-sub{margin:0 0 32px;font-size:18px;line-height:1.55;color:var(--body)}

.module-pills{display:flex;flex-direction:column;gap:0;margin:0 0 40px;border-top:1.5px solid var(--ink)}
.module-pill{
  display:flex;align-items:baseline;gap:16px;
  padding:16px 0;border-bottom:1px solid var(--line);
  font-size:17px;color:var(--body);
}
.pill-num{
  font-family:var(--mono);font-size:12px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted-strong);flex:none;min-width:28px;
}

.form-card{border:1px solid var(--line);border-radius:var(--r-card);padding:36px 32px;background:var(--bg)}
.form-card h2{
  margin:0 0 28px;font-family:var(--sans);font-weight:600;font-size:21px;
  letter-spacing:-.02em;line-height:1.25;color:var(--ink);
}
.field{display:flex;flex-direction:column;gap:8px;margin-bottom:20px}
.field label{font-size:15px;font-weight:500;color:var(--ink)}
.field input{
  height:48px;padding:0 14px;
  border:1px solid var(--line);border-radius:var(--r-input);background:var(--bg);
  font-family:var(--sans);font-size:17px;color:var(--ink);
}
.field input::placeholder{color:var(--muted-strong)}
.field input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
.field input:user-invalid{border-color:var(--err)}


.submit-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;
  height:52px;padding:0 22px;border:1px solid transparent;border-radius:var(--r-pill);
  background:var(--ink);color:#fff;cursor:pointer;
  font-family:var(--sans);font-size:17px;font-weight:500;letter-spacing:-.01em;
}
.submit-btn:hover:not([disabled]){background:#262626}
.submit-btn[disabled]{background:transparent;color:var(--muted-strong);border-color:var(--line);cursor:not-allowed}

.error-msg{display:none;margin:16px 0 0;font-size:15px;color:var(--err)}
.error-msg.show{display:block}
.form-note{margin:16px 0 0;font-size:15px;line-height:1.5;color:var(--muted-strong)}
#next-note{padding-top:16px;border-top:1px solid var(--line)}

@media (max-width:900px){
  .register-wrap{padding:48px var(--gut) 64px}
  .form-card{padding:26px 20px}
}

/* Course dashboard (body.app) --------------------------------------------
   The module grid is built by script in course.html, so these class names
   are fixed by that code: .module-card with .passed and .locked, and inside
   it .left, .num, .body, .title, .badge, .progress, .action. */
.app nav .nav-right{display:flex;align-items:center;gap:18px;margin-left:auto}
.app .nav-greeting{font-size:15px;color:var(--muted-strong)}
.app .nav-signout{
  background:none;border:0;padding:0;cursor:pointer;
  font:500 15px/1 var(--sans);color:var(--ink);
}
.app .nav-signout:hover{color:var(--body)}

.app main{max-width:var(--wrap);margin-inline:auto;padding:0 var(--gut)}
.app .hero{background:none;padding:72px 0 40px;border-bottom:1px solid var(--line)}
.app .hero .eyebrow{display:block;margin-bottom:18px}
.app .hero h1{
  margin:0 0 14px;font-family:var(--sans);font-weight:700;
  font-size:clamp(34px,4.2vw,56px);letter-spacing:-.045em;line-height:1;color:var(--ink);
}
.app .hero h1 .name{color:var(--muted)}
.app .hero .lead{margin:0;font-size:19px;line-height:1.5;color:var(--body);max-width:52ch}

.resume-card{
  display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;
  margin-top:32px;padding:24px 28px;
  background:var(--soft);border:1px solid var(--line);border-radius:var(--r-card);
}
.resume-card .meta{display:flex;flex-direction:column;gap:6px;min-width:0}
.resume-card .pill{
  font-family:var(--mono);font-size:12px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted-strong);
}
.resume-card .title{font-size:20px;font-weight:600;letter-spacing:-.02em;color:var(--ink)}
.resume-card .note{font-size:15px;color:var(--muted-strong)}
.resume-card .cta{
  display:inline-flex;align-items:center;justify-content:center;flex:none;
  height:48px;padding:0 22px;border-radius:var(--r-pill);
  background:var(--ink);color:#fff;text-decoration:none;
  font-size:16px;font-weight:500;letter-spacing:-.01em;
}
.resume-card .cta:hover{background:#262626;color:#fff}

.app .modules{padding:56px 0 96px}
.app .modules h2{
  margin:0 0 10px;font-family:var(--sans);font-weight:700;
  font-size:clamp(28px,2.8vw,38px);letter-spacing:-.035em;color:var(--ink);
}
.course-status{margin:0 0 28px;font-size:15px;color:var(--muted-strong)}

/* The nine modules read as a register, one row each. */
.module-grid{display:flex;flex-direction:column;border-top:1.5px solid var(--ink)}
.module-card{
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:18px 0;border-bottom:1px solid var(--line);
}
.module-card .left{display:flex;align-items:baseline;gap:18px;min-width:0}
.module-card .num{
  font-family:var(--mono);font-size:12px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted-strong);flex:none;min-width:46px;
}
.module-card .body{display:flex;flex-direction:column;gap:4px;min-width:0}
.module-card .title{font-size:18px;font-weight:500;letter-spacing:-.015em;color:var(--ink)}
.module-card .badge{
  font-family:var(--mono);font-size:12px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted-strong);
}
.module-card .progress{font-size:14px;color:var(--muted-strong);margin-top:4px}
.module-card .action{font-size:15px;font-weight:500;color:var(--ink);flex:none}
.module-card.passed .num{color:var(--ok)}
.module-card.passed .badge{color:var(--ok)}
.module-card.locked .title,.module-card.locked .num{color:var(--muted-strong)}
.module-card.locked .badge{color:var(--muted-strong)}
/* The skeleton badge was --line, which is 1.25:1 and effectively invisible.
   On a slow connection this is the first thing a member sees, so it reads
   like any other label. */
.module-card.loading .badge{color:var(--muted-strong)}

/* The upgrade banner is the one black card on the dashboard. */
.upgrade-banner{margin:0 0 72px}
.upgrade-banner .inner{
  display:flex;align-items:center;justify-content:space-between;gap:28px;flex-wrap:wrap;
  background:var(--ink);border-radius:var(--r-card);padding:36px 40px;
}
.upgrade-banner h3{
  margin:0 0 8px;color:#fff;font-family:var(--sans);font-weight:700;
  font-size:clamp(22px,2.2vw,30px);letter-spacing:-.03em;
}
.upgrade-banner p{margin:0;color:rgba(255,255,255,.75);font-size:17px}
.upgrade-cta{
  display:inline-flex;align-items:center;justify-content:center;flex:none;
  height:48px;padding:0 22px;border-radius:var(--r-pill);
  background:#fff;color:var(--ink);text-decoration:none;
  font-family:var(--sans);font-size:16px;font-weight:500;letter-spacing:-.01em;
}
.upgrade-cta:hover{background:#F0F0F0;color:var(--ink)}

@media (max-width:900px){
  .app .hero{padding:48px 0 28px}
  .app .modules{padding:40px 0 64px}
  .module-card{flex-direction:column;align-items:flex-start;gap:8px}
  .module-card .action{align-self:flex-end;margin-top:-28px}
  .resume-card{flex-direction:column;align-items:stretch}
  .resume-card .cta{width:100%}
  .upgrade-banner .inner{padding:26px 22px;flex-direction:column;align-items:flex-start}
}

/* Intro -------------------------------------------------------------------
   Its own 425 lines of inline CSS came out; these replace them. */
.content-wrap{max-width:760px;margin-inline:auto;padding:0 var(--gut)}
.page-eyebrow{display:flex;align-items:center;gap:12px;margin-bottom:18px;flex-wrap:wrap}
.eyebrow-pill{
  background:var(--ink);color:#fff;border-radius:var(--r-pill);padding:6px 14px;
  font-family:var(--mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;
}
.eyebrow-label{font-family:var(--mono);font-size:13px;color:var(--muted-strong)}
.page-header .subtitle{color:var(--body);font-size:19px;line-height:1.55;max-width:52ch}

/* The nine modules, as a numbered register. */
.module-list{margin:28px 0 0;padding:0;list-style:none;border-top:1.5px solid var(--ink)}
.module-item{
  display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:6px 18px;
  align-items:baseline;padding:20px 0;border-bottom:1px solid var(--line);
}
.module-num{
  font-family:var(--mono);font-size:12px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted-strong);
}
.module-info{grid-column:2;display:flex;flex-direction:column;gap:6px;min-width:0}
.module-info strong{font-size:18px;font-weight:600;letter-spacing:-.02em;color:var(--ink)}
.module-info{font-size:16px;line-height:1.55;color:var(--body)}
.locked-badge,.free-badge{
  grid-column:3;justify-self:end;align-self:start;white-space:nowrap;
  font-family:var(--mono);font-size:12px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted-strong);
}
.free-module .free-badge{color:var(--ok)}

/* The closing card: the one black card on the page. */
.cta-block{
  background:var(--ink);border-radius:var(--r-card);
  padding:56px 48px;margin:72px 0 96px;text-align:left;
}
.cta-heading{
  margin:0 0 16px;color:#fff;font-family:var(--sans);font-weight:700;
  font-size:clamp(34px,4vw,52px);letter-spacing:-.045em;line-height:1;
}
.cta-heading span{color:rgba(255,255,255,.6)}
.cta-sub{margin:0 0 28px;color:rgba(255,255,255,.78);font-size:18px;line-height:1.5;max-width:48ch}
.cta-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  height:48px;padding:0 22px;border-radius:var(--r-pill);
  background:#fff;color:var(--ink);text-decoration:none;
  font-family:var(--sans);font-size:16px;font-weight:500;letter-spacing:-.01em;
}
.cta-btn:hover{background:#F0F0F0;color:var(--ink)}
.cta-note{margin:24px 0 0;color:rgba(255,255,255,.6);font-size:15px;line-height:1.5;max-width:52ch}

@media (max-width:900px){
  .module-item{grid-template-columns:40px minmax(0,1fr);row-gap:8px}
  .locked-badge,.free-badge{grid-column:2;justify-self:start}
  .cta-block{padding:36px 24px;margin:48px 0 64px}
}

/* The 15px floor ---------------------------------------------------------
   Brief section 3: nothing a buyer needs to read is under 15px, and the
   only 12px tier is mono metadata. The folded stylesheets set a lot of
   lesson content at 13px and 14px, which review by eye did not catch on
   Modules 1 or 2 either. tools/layout-audit.mjs found it. */
.meta-item,.meta-item strong,
.cmp-table thead th,.cmp-table thead th.cmp-topic,
.lifecycle-node-sub,.hier-chain-node-sub,.lp-sub,
.role-oneliner,.role-card-text p,
.takeaway li,.action-list li,.cm-checklist-list li,.content-list li,
.coming-list li,.dark-rule-list li,.nasc-ref-list li,.v2-facts ul li,
.v2-banner-body ul li,.scaff-scenario li,.scaff-card__body li,
.ref-list li,.references-section li,.references-section p,
.comp-mod-item,.cert-privacy,.cert-ref-line,
.tcc-body p,.tcc-full-name,.compare-card p,.three-col-card p{
  font-size:15px;line-height:1.55;
}
.scaff-sort__bucket-btn,.scaff-sort__label{font-size:15px}
.references-section h4{font-size:15px;font-weight:600}

/* Sub-heads are 600, not 700: 700 belongs to h1 and h2. */
.scaff-sort__title,.scaff-scenario__title,.role-card-text h3,
.compare-card h4,.three-col-card h3,.fail-card h3,
.completion-capture h3,.completion-form-box h3,.locked-box h2{
  font-weight:600;
}
.references-section h3{font-weight:400}

/* Scoped harder, because the folded block carries these at higher
   specificity than a bare class. */
body.lesson .cmp-table{font-size:16px}
body.lesson .cmp-table tbody td{font-size:16px;line-height:1.55}
body.lesson .cmp-table tbody td.cmp-row-label{font-size:15px;letter-spacing:0}
body.lesson .cmp-table thead th,body.lesson .cmp-table thead th.cmp-topic{font-size:15px}
body.lesson .role-card-text .role-oneliner{font-size:15px}
body.lesson .role-card-text h3{font-size:17px}
body.lesson .micro-check label,body.lesson .scaff-card label,
body.lesson .quiz-options li label{font-size:16px}
body.lesson .references-section p,body.lesson .ref-list li,
body.lesson .cert-privacy,body.lesson .comp-mod-item{font-size:15px}

/* The 12px mono tier, which the brand does allow. These were 10px and 11px
   in a proportional face, which is neither one thing nor the other. */
body.lesson .miv-duration,.miv-duration,body.lesson .micro-check .mc-kicker,
body.lesson .mc-kicker,body.lesson .rc-kicker,
body.lesson .lift-feedback-bar .lift-fb-text{
  font-family:var(--mono);font-size:12px;font-weight:400;letter-spacing:.06em;
  text-transform:uppercase;
}
/* There are two of these: one in the bar at the top of a lift and one in
   the lift's own nav at the bottom. They were styled by different rules. */
body.lesson .lift-fb-link,body.lesson .lift-nav .lift-fb-link{
  font-family:var(--sans);font-size:15px;font-weight:500;color:var(--ink);
}
body.lesson .lift-fb-link:hover{color:var(--body);text-decoration:underline}
body.lesson .lift-gate-note{font-size:15px;color:var(--muted-strong)}
body.lesson .references-section p,body.lesson .references-section li,
body.lesson .completion-capture p,body.lesson .completion-capture li{font-size:15px}
body.lesson .references-section h3{
  font-family:var(--mono);font-size:12px;font-weight:400;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted-strong);
}

/* The last of the sub-15px lesson text, including two component families
   that only Module 2 uses (scaff-diagram and scaff-flow) and so were never
   on screen while Module 1 was being reviewed. */
body.lesson .v2-banner-body p,body.lesson .v2-src p,body.lesson .free-banner p,
body.lesson .scaff-flow__step-summary,body.lesson .scaff-flow__step-detail,
body.lesson .scaff-diagram p,body.lesson .scaff-diagram__note,
body.lesson .scaff-card__body p,body.lesson .scaff-scenario p,
body.lesson .case-card-rule,body.lesson .info-box p{font-size:15px;line-height:1.6}
body.lesson .scaff-diagram__eyebrow,body.lesson .scaff-flow__eyebrow{
  font-family:var(--mono);font-size:12px;font-weight:400;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted-strong);
}
body.lesson .compare-card p,body.lesson .dark-rule-box p,
body.lesson .references-section p,body.lesson .references-section li{font-size:15px;line-height:1.6}
/* The references heading is the 12px mono tier, so weight 400 there is
   correct and the audit's 600 expectation does not apply to it. */
body.lesson .scaff-diagram__title,body.lesson .scaff-flow__title{
  font-family:var(--sans);font-weight:600;font-size:21px;letter-spacing:-.02em;color:var(--ink);
}

/* Mobile overflow -------------------------------------------------------
   Three causes, all white-space:nowrap on something that is not short.
   Found by tools/layout-audit.mjs at 375px; the desktop view hides it
   completely. */

/* The lift bar's title is as long as the lift is called. */
body.lesson .lift-hud-label{white-space:normal;min-width:0}
body.lesson .lift-hud{flex-wrap:wrap;row-gap:8px}
body.lesson .lift-storeys{min-width:120px}

/* Flow step titles run to a full sentence in modules 5, 6 and 8. They
   carry flex:0 0 auto, so wrapping alone does not help: the flex item has
   to be allowed to shrink, and its parent to let it. */
body.lesson .scaff-flow__step-title{
  white-space:normal;overflow-wrap:anywhere;flex:1 1 auto;min-width:0;
}
/* Let the title shrink rather than letting the row wrap: wrapping at
   desktop pushed the expand marker onto its own line on long steps. */
body.lesson .scaff-flow__step,body.lesson .scaff-flow__row,
body.lesson .scaff-flow__steps{min-width:0}
@media (max-width:680px){
  body.lesson .scaff-flow__step,body.lesson .scaff-flow__row{flex-wrap:wrap}
}

/* The comparison tables already scroll under 680px, which is the right
   pattern for a four-column table on a phone. The scroll container needs
   to be the table's own box, and it needs to say so to a screen reader. */
@media (max-width:680px){
  body.lesson .cmp-table{display:block;max-width:100%;overflow-x:auto}
  body.lesson .cmp-table thead,body.lesson .cmp-table tbody{display:table;width:max-content;min-width:100%}
}

/* Capitals, explicitly off. The fold strips text-transform from the three
   module stylesheets, but something re-applies it to section headings, and
   a rule that relies on an absence is a rule waiting to break. */
body.lesson .section-heading,body.lesson .sub-heading,body.lesson .sub-heading-sm,
body.lesson .module-header h1,body.lesson h2,body.lesson h3,body.lesson h4{
  text-transform:none;
}

/* The process flow was another dark slab: its navy became brand black, so
   it passed the palette check and was still a black wall. Same treatment as
   the lifecycle and hierarchy diagrams. */
body.lesson .scaff-flow{
  background:var(--bg);border:1px solid var(--line);border-radius:var(--r-panel);
}
body.lesson .scaff-flow__header{border-bottom:1px solid var(--line)}
body.lesson .scaff-flow__step{
  background:var(--bg);border:1px solid var(--line);border-radius:var(--r-input);
}
body.lesson .scaff-flow__step:hover{border-color:var(--ink);background:var(--soft)}
body.lesson .scaff-flow__step-title{color:var(--ink);font-weight:600;letter-spacing:-.01em}
body.lesson .scaff-flow__step-summary,body.lesson .scaff-flow__step-detail{color:var(--body)}
body.lesson .scaff-flow__num,body.lesson .scaff-flow__step-num{
  font-family:var(--mono);font-size:12px;letter-spacing:.06em;color:var(--muted-strong);
}
body.lesson .scaff-flow__intro{color:var(--body)}
/* "Opened 0 of 9 steps" is a status line, so it belongs in the mono tier. */
body.lesson .scaff-flow__summary,body.lesson .scaff-sort__summary{
  font-family:var(--mono);font-size:12px;font-weight:400;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted-strong);
}

/* --------------------------------------------------------------------------
   PROSE, FAQ, LISTINGS AND THE TWO SEO PAGES

   These nine reuse the article template's container, page-header, kicker,
   cta-block and button classes. What follows is only the handful of classes
   they add on top.
   -------------------------------------------------------------------------- */

/* Legal pages ------------------------------------------------------------ */
.content h2{
  margin:48px 0 14px;font-family:var(--sans);font-weight:700;font-size:26px;
  letter-spacing:-.03em;line-height:1.15;color:var(--ink);
}
.content h3{margin:32px 0 10px;font-size:19px;font-weight:600;letter-spacing:-.02em}
.content p,.content li{color:var(--body);font-size:17px;line-height:1.65}
.content ul,.content ol{margin:0 0 20px;padding-left:22px}
.content li{margin-bottom:9px}
.content a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--accent);text-underline-offset:3px}
.content strong{color:var(--ink);font-weight:600}

/* Three columns of policy detail do not fit a phone, so the table scrolls
   rather than pushing the page sideways. */
.cookie-table-wrap,.cookie-table{width:100%;border-collapse:collapse;margin:24px 0;border:1px solid var(--line);border-radius:var(--r-panel);overflow:hidden}
@media (max-width:680px){
  .cookie-table{display:block;overflow-x:auto;border-radius:var(--r-panel)}
  .cookie-table thead,.cookie-table tbody{display:table;width:max-content;min-width:100%}
}
.cookie-table th,.cookie-table td{padding:12px 16px;text-align:left;font-size:15px;line-height:1.55;border-bottom:1px solid var(--line)}
.cookie-table th{background:var(--soft);color:var(--muted-strong);font-family:var(--mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;font-weight:400}
.cookie-table td{color:var(--body)}
.cookie-table tr:last-child td{border-bottom:0}

.highlight-box{background:var(--soft);border:1px solid var(--line);border-radius:var(--r-panel);padding:24px 28px;margin:32px 0}
.highlight-box p:last-child{margin-bottom:0}

/* FAQ -------------------------------------------------------------------- */
.faq-item{border-bottom:1px solid var(--line);padding:24px 0}
.faq-item:first-of-type{border-top:1.5px solid var(--ink)}
.faq-q{margin:0 0 10px;font-size:19px;font-weight:500;letter-spacing:-.015em;color:var(--ink)}
.faq-a{margin:0;max-width:70ch;font-size:17px;line-height:1.62;color:var(--body)}

/* Listings: articles and newsletter ------------------------------------- */
.entry{display:block;padding:22px 0;border-bottom:1px solid var(--line);text-decoration:none}
.entry:first-of-type{border-top:1.5px solid var(--ink)}
.entry:hover .entry-title{text-decoration:underline;text-underline-offset:3px}
.entry-date{
  display:block;margin-bottom:8px;
  font-family:var(--mono);font-size:12px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted-strong);
}
.entry-title{display:block;margin-bottom:6px;font-size:20px;font-weight:600;letter-spacing:-.02em;color:var(--ink)}
.entry-desc{display:block;max-width:70ch;font-size:16px;line-height:1.55;color:var(--body)}
.tag{
  display:inline-block;margin-left:10px;padding:3px 10px;border:1px solid var(--line);border-radius:var(--r-pill);
  font-family:var(--mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted-strong);
}
.all-link{display:inline-block;margin-top:24px;font-size:16px;font-weight:500;color:var(--ink)}
.fineprint{margin-top:28px;font-size:15px;line-height:1.55;color:var(--muted-strong)}
.card{border:1px solid var(--line);border-radius:var(--r-card);padding:32px 28px}
.layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:48px;align-items:start}

/* Two buttons sized by the script that injects them, both under the floor:
   the consent settings panel's "Save my choices" and the newsletter form's
   submit. */
/* #verify-btn carries no class of its own. */
.content button,.submit,button.submit,#verify-btn{
  min-height:48px;padding:0 22px;border:1px solid transparent;border-radius:var(--r-pill);
  background:var(--ink);color:#fff;cursor:pointer;
  font-family:var(--sans);font-size:16px;font-weight:500;letter-spacing:-.01em;
}
.content button:hover,.submit:hover,#verify-btn:hover{background:#262626;color:#fff}

/* The two SEO pages ------------------------------------------------------ */
.subtitle,.intro{color:var(--body);font-size:19px;line-height:1.55;max-width:52ch}
.cta-section{
  background:var(--ink);border-radius:var(--r-card);padding:48px 40px;margin:64px 0 0;text-align:center;
}
.cta-section h2{color:#fff;margin-top:0}
.cta-section p{color:rgba(255,255,255,.75)}
.cta-buttons{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:28px}
.cta-section .btn-primary{background:#fff;color:var(--ink)}
.cta-section .btn-outline{background:transparent;color:#fff;border-color:rgba(255,255,255,.35)}
.cta-eyebrow{
  display:block;margin-bottom:12px;
  font-family:var(--mono);font-size:12px;letter-spacing:.06em;
  text-transform:uppercase;color:rgba(255,255,255,.6);
}

@media (max-width:900px){
  .layout{grid-template-columns:1fr;gap:28px}
  .cta-section{padding:36px 22px}
  .cta-buttons{flex-direction:column}
  .cta-buttons .btn-primary,.cta-buttons .btn-outline{width:100%}
  .content h2{font-size:23px;margin-top:36px}
}

/* --------------------------------------------------------------------------
   FREE STUFF, VERIFY AND THE TWO FEEDBACK FORMS
   -------------------------------------------------------------------------- */

/* Free stuff: a register of downloads, each behind an email gate. */
.dl-grid{display:flex;flex-direction:column;border-top:1.5px solid var(--ink)}
.dl-card{
  display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;
  padding:22px 0;border-bottom:1px solid var(--line);
  background:none;border-radius:0;border-left:0;border-right:0;border-top:0;
}
.dl-card-head{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}
.dl-card-head h3,.dl-card h3{margin:0;font-size:19px;font-weight:600;letter-spacing:-.02em;color:var(--ink)}
.dl-card p{margin:0;font-size:16px;line-height:1.55;color:var(--body);max-width:68ch}
.dl-pill{
  font-family:var(--mono);font-size:12px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted-strong);
}
.dl-btn{
  display:inline-flex;align-items:center;justify-content:center;flex:none;
  height:44px;padding:0 20px;border:1px solid var(--line);border-radius:var(--r-pill);
  background:transparent;color:var(--ink);text-decoration:none;cursor:pointer;
  font-family:var(--sans);font-size:16px;font-weight:500;
}
.dl-btn:hover{background:var(--soft);border-color:var(--ink);color:var(--ink)}
.cta-strip{
  background:var(--ink);border-radius:var(--r-card);padding:40px;margin:64px 0 0;color:#fff;
}
.cta-strip h2{color:#fff;margin:0 0 10px}
.cta-strip p{color:rgba(255,255,255,.75);margin:0 0 24px}

/* The email gate. It sits over the page, so it is a card on a scrim. */
.gate-overlay{position:fixed;inset:0;z-index:1000;background:rgba(10,10,10,.6);display:none;align-items:center;justify-content:center;padding:20px}
.gate-overlay.open{display:flex}
.gate-box{
  background:var(--bg);border-radius:var(--r-card);padding:36px 32px;
  max-width:460px;width:100%;box-shadow:0 24px 64px rgba(0,0,0,.22);
}
.gate-box h3{margin:0 0 10px;font-size:22px;font-weight:600;letter-spacing:-.02em}
.gate-help,.gate-consent{font-size:15px;line-height:1.5;color:var(--muted-strong)}
.gate-file{font-family:var(--mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted-strong)}
.gate-err{color:var(--err);font-size:15px}
.gate-done{color:var(--ok);font-size:15px}
.gate-close{background:none;border:0;cursor:pointer;color:var(--muted-strong);font-size:22px;line-height:1}
.gate-close:hover{color:var(--ink)}

/* Verify: one field, one answer. */
.hero-eyebrow{
  display:block;margin-bottom:16px;
  font-family:var(--mono);font-size:12px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted-strong);
}
.input-row{display:flex;gap:12px;flex-wrap:wrap;margin:28px 0 12px}
.input-row input{
  flex:1;min-width:220px;height:48px;padding:0 14px;
  border:1px solid var(--line);border-radius:var(--r-input);background:var(--bg);
  font-family:var(--mono);font-size:16px;color:var(--ink);
}
.input-row input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
.hint{font-size:15px;color:var(--muted-strong)}
.cert-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:0;border-top:1.5px solid var(--ink);margin-top:28px}
.cert-field,.cert-ref-field{display:flex;flex-direction:column;gap:6px;padding:18px 0;border-bottom:1px solid var(--line)}
.cert-field .ref-val,.ref-val{font-size:18px;font-weight:500;letter-spacing:-.015em;color:var(--ink)}
.cert-ref-field .ref-val{font-family:var(--mono);font-size:16px;letter-spacing:.02em}
.result-badge{display:inline-flex;align-items:center;gap:10px;margin-bottom:20px}
.badge-label{font-family:var(--mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase}
.result-verified .badge-label{color:var(--ok)}
.result-not-found .badge-label,.result-error .badge-label{color:var(--err)}
.badge-icon,.nf-icon{width:28px;height:28px;flex:none}
.nf-head{font-size:20px;font-weight:600;letter-spacing:-.02em;color:var(--ink)}
.back{display:inline-block;margin-top:32px;font-size:16px;font-weight:500;color:var(--ink)}

/* The two feedback forms share a layout. */
.form-card{border:1px solid var(--line);border-radius:var(--r-card);padding:36px 32px;background:var(--bg)}
.card-heading{margin:0 0 24px;font-size:21px;font-weight:600;letter-spacing:-.02em;color:var(--ink)}
.field-group{display:flex;flex-direction:column;gap:8px;margin-bottom:24px}
.field-label{font-size:16px;font-weight:500;color:var(--ink)}
.field-sub{font-size:15px;line-height:1.5;color:var(--muted-strong)}
.form-area input,.form-area select,.form-area textarea,.form-card input,.form-card select,.form-card textarea{
  padding:12px 14px;min-height:48px;
  border:1px solid var(--line);border-radius:var(--r-input);background:var(--bg);
  font-family:var(--sans);font-size:17px;color:var(--ink);
}
.form-area textarea,.form-card textarea{min-height:120px;line-height:1.55}

/* Selects: .form-card select above already gives the box. These add the
   things a select needs on top, so "How did you hear about us?" on
   /register and the feedback dropdowns look like the inputs beside them.
   The chevron is a data URI because a CSS background cannot inherit
   currentColor; it is --muted-strong. */
.form-area select,.form-card select{
  padding-right:40px;cursor:pointer;
  -webkit-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2712%27%20height%3D%278%27%20viewBox%3D%270%200%2012%208%27%3E%3Cpath%20d%3D%27M1%201l5%205%205-5%27%20fill%3D%27none%27%20stroke%3D%27%23565656%27%20stroke-width%3D%271.8%27%2F%3E%3C%2Fsvg%3E");
  background-repeat:no-repeat;background-position:right 14px center;
}
.field .optional,.field-label .optional{font-weight:400;color:var(--muted-strong)}
.form-area input:focus,.form-area select:focus,.form-area textarea:focus,
.form-card input:focus,.form-card select:focus,.form-card textarea:focus{
  outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent);
}
.checkbox-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.checkbox-item{display:flex;align-items:flex-start;gap:10px;font-size:16px;line-height:1.5;color:var(--body)}
.checkbox-item input{min-height:auto;width:18px;height:18px;margin-top:3px;accent-color:var(--accent);flex:none}
.btn-submit,.submit-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  min-height:52px;padding:0 24px;border:1px solid transparent;border-radius:var(--r-pill);
  background:var(--ink);color:#fff;cursor:pointer;
  font-family:var(--sans);font-size:17px;font-weight:500;letter-spacing:-.01em;
}
.btn-submit:hover:not([disabled]),.submit-btn:hover:not([disabled]){background:#262626}
.btn-submit[disabled],.submit-btn[disabled]{background:transparent;color:var(--muted-strong);border-color:var(--line)}
.form-error{color:var(--err);font-size:15px;margin-top:12px}
.context-chip{
  display:inline-flex;align-items:center;gap:8px;padding:6px 14px;margin-bottom:20px;
  background:var(--soft);border:1px solid var(--line);border-radius:var(--r-pill);
  font-family:var(--mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted-strong);
}

@media (max-width:900px){
  .dl-card{flex-direction:column;align-items:flex-start;gap:12px}
  .dl-btn{width:100%}
  .cta-strip{padding:28px 22px}
  .gate-box{padding:26px 20px}
  .form-card{padding:26px 20px}
}

/* The signed-out locked panel. The module layout audit hides this state so
   it can see the lesson, so these only showed up in the whole-site sweep,
   which runs with the page as a signed-out visitor actually gets it. */
.locked-box p,.locked-note,.locked-login,.locked-state p{font-size:15px;line-height:1.55}
.locked-login{
  background:none;border:0;padding:0;cursor:pointer;
  font-family:var(--sans);font-weight:500;color:var(--ink);
  text-decoration:underline;text-underline-offset:3px;
}
.locked-login:hover{color:var(--body)}
.locked-cta{
  display:inline-flex;align-items:center;justify-content:center;
  height:48px;padding:0 22px;border-radius:var(--r-pill);border:1px solid transparent;
  background:var(--ink);color:#fff;text-decoration:none;
  font-family:var(--sans);font-size:16px;font-weight:500;
}
.locked-cta:hover{background:#262626;color:#fff}
/* --------------------------------------------------------------------------
   9  RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width:900px){
  :root{--gut:20px}
  /* Memberstack hides two of the four nav actions once it loads. If it is
     slow or fails, all four render at once; without this the nav pushes a
     phone sideways by 111px. The degraded state should look odd, not
     broken. */
  /* intro.html puts its two member-aware links straight in .nav-inner with
     no .nav-actions wrapper, so the wrap has to go on the row itself. */
  .nav-inner{flex-wrap:wrap;row-gap:8px;column-gap:12px}
  .nav-module-label{flex-basis:100%;order:3}
  .nav-actions{gap:12px}
  .nav-actions .nav-cta{height:40px;padding:0 14px;font-size:15px}
  nav,.site-nav{height:auto;min-height:var(--nav-h);padding-block:8px}
  .footer-inner{flex-direction:column;gap:20px}
  .page-header{padding:48px 0 32px}
  .content{padding:40px 0 64px}
  .article-body p,.article-body ul,.article-body ol{font-size:17px}
  .article-body h2{font-size:24px;margin-top:36px}
  .takeaway{padding:22px 20px}
  .cta-block{padding:36px 22px}
  .cta-btns{flex-direction:column}
  .cta-btns .btn,.cta-btns .btn-primary,.cta-btns .btn-outline{width:100%}
  .cookie-inner{align-items:flex-start}
  .cookie-actions{width:100%}
  .cookie-actions .btn{flex:1}
  .section{padding:80px 0}
  .section-intro{margin-bottom:40px}
  .site .hero{padding:72px 0 64px}
  .site .hero-actions{gap:20px}
  .about-inner{grid-template-columns:1fr;gap:32px}
  .proof-bar-line{display:none}
  .proof-bar-text{text-align:left}
  .pain-list li{grid-template-columns:40px minmax(0,1fr);padding:18px 0}
  .pain-list strong{font-size:18px}
  .fail-grid{grid-template-columns:1fr}
  .price-card{padding:28px 22px}
  .faq-list summary{font-size:17px;padding-right:28px}
}


/* Launch: the hero photo is a CSS background, never an <img>. */
.device img[src*="hero-elizabeth"],
img[src*="hero-elizabeth-tower"] { display:none !important; }
/* Course preview: laptop composite (transparent PNG edges kept in WebP alpha). */
.device img{display:block;height:auto;border-radius:0}
.hero { background: var(--ink); }
.hero::before { display:none !important; background:none !important; }

/* Contrast fixes for live-as-base pages (style only, no markup or
   behaviour change). Inline page styles written for the old dark theme
   collided with the light rebrand in a few places. */
.logo .logo-scaff,.logo .logo-skills{color:var(--ink)}
.scaff-audio .scaff-audio__placeholder-note{color:var(--muted-strong)}
body:not(.lesson) .scaff-flow .scaff-flow__step-summary,
body:not(.lesson) .scaff-flow .scaff-flow__ref,
body:not(.lesson) .scaff-flow .scaff-flow__hint,
body:not(.lesson) .scaff-flow .scaff-flow__progress{color:rgba(255,255,255,.75)}
body:not(.lesson) .dark-rule-box p{color:rgba(255,255,255,.82)!important}
body:not(.site) .cta-block h2,body .cta-strip h2{color:#fff}
body:not(.site) .cta-block p,body .cta-strip p{color:rgba(255,255,255,.75)}
body .cta-strip .dl-btn{background:#fff;color:var(--ink)}
body .cta-strip .dl-btn:hover{background:#F0F0F0;color:var(--ink)}
body .hero .kicker{color:rgba(255,255,255,.75)}
body .page-header p{color:var(--body)}
/* index.html and verify.html contrast (style only) */
.site .cta-block.section--dark .eyebrow{color:rgba(255,255,255,.75)}
.site .cta-block[style*="--mist"] h2{color:var(--ink)}
.site .cta-block[style*="--mist"] p{color:var(--body)}
.site .cta-block[style*="--mist"] p a:not(.btn){color:var(--accent)}
.site .price-card--featured p a:not(.btn){color:#fff}
.site .section.section--dark .btn-note--light{color:var(--muted-strong)}
.site .section.section--dark .btn-note--light a{color:var(--accent)}
body:not(.site):not(.app) .hero .hero-eyebrow{color:rgba(255,255,255,.75)}
body:not(.site):not(.app) .hero h1{color:#fff}
body:not(.site):not(.app) .hero > p:not(.hero-eyebrow){color:rgba(255,255,255,.82)}
/* Legacy pages whose <nav> has no .nav-inner: same inset and tower mark as home. */
nav:not(:has(> .nav-inner)){
  justify-content:space-between;gap:24px;
  padding-inline:max(var(--gut),calc((100% - var(--wrap))/2 + var(--gut)));
}
.logo:not(:has(svg))::before{
  content:"";flex:none;width:1.08em;height:1.08em;margin-right:.34em;background:var(--accent);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='square'%3E%3Cpath d='M8.3 2V30M23.7 2V30'/%3E%3Cpath d='M8.3 3.8H23.7M8.3 13.4H23.7M8.3 26.9H23.7'/%3E%3Cpath d='M8.3 26.9L23.7 13.4M23.7 26.9L8.3 13.4'/%3E%3Cpath d='M6.5 30H10.1M21.9 30H25.5'/%3E%3C/g%3E%3Cpath d='M8.3 8.4H23.7' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='square'%3E%3Cpath d='M8.3 2V30M23.7 2V30'/%3E%3Cpath d='M8.3 3.8H23.7M8.3 13.4H23.7M8.3 26.9H23.7'/%3E%3Cpath d='M8.3 26.9L23.7 13.4M23.7 26.9L8.3 13.4'/%3E%3Cpath d='M6.5 30H10.1M21.9 30H25.5'/%3E%3C/g%3E%3Cpath d='M8.3 8.4H23.7' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* verify.html: container, hero inset, form layout. */
/* Descendant, not child: the page now wraps its content in <main> for the
   skip link (CPD-B5), so .hero is no longer a direct child of <body>. Only
   verify.html carries .search-section and it has one hero, so widening the
   combinator cannot reach anything else. */
body:has(.search-section) .hero{padding:72px max(var(--gut),calc((100% - var(--wrap))/2 + var(--gut))) 64px}
body:has(.search-section) .hero .hero-eyebrow{display:block;margin:0 0 18px}
body:has(.search-section) .hero h1{margin:0 0 16px;font-family:var(--sans);font-weight:700;font-size:clamp(36px,5vw,60px);letter-spacing:-.045em;line-height:1}
body:has(.search-section) .hero > p:not(.hero-eyebrow){margin:0;max-width:56ch;font-size:18px;line-height:1.5}
.search-section{max-width:640px;margin:0 auto;padding:56px var(--gut) 96px;display:flex;flex-direction:column;align-items:stretch;gap:32px}
.search-section #result{max-width:none!important}
.search-box{display:flex;flex-direction:column;gap:10px}
.search-box label{margin:0;font-weight:600;font-size:15px;color:var(--ink)}
.search-box .input-row{display:flex;gap:12px;min-width:0}
.search-box .input-row input{flex:1;min-width:0;padding:14px 16px;font:inherit;font-size:16px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink)}
.search-box .input-row button{flex:none;padding:0 24px;border:0;border-radius:999px;background:var(--ink);color:#fff;font:inherit;font-weight:600;cursor:pointer}
.search-box .hint{margin:0;font-size:14px;color:var(--muted-strong)}
@media(max-width:480px){.search-box .input-row{flex-direction:column}.search-box .input-row button{padding:14px 24px}}
/* index.html closing CTA: centre the button and note; drop the stacked block margins. */
.site .cta-block[style*="--mist"]{margin:0;text-align:center;border-radius:0}
.site .section:has(+ .cta-block[style*="--mist"]){padding-bottom:72px}
.site .cta-block[style*="--mist"] + .section{padding-top:72px}
@media(max-width:680px){.site .section:has(+ .cta-block[style*="--mist"]){padding-bottom:56px}.site .cta-block[style*="--mist"] + .section{padding-top:56px}}
/* Primary nav links: next to the logo on desktop, a second row on small screens. */
.nav-links{display:flex;align-items:center;gap:28px;margin-left:36px;margin-right:auto;min-width:0}
.nav-links a{font-family:var(--sans);font-size:15px;font-weight:500;color:var(--ink);text-decoration:none;display:inline-flex;align-items:center;min-height:44px;white-space:nowrap}
.nav-links a:hover,.nav-links a[aria-current="page"]{color:var(--accent)}
.nav-links a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:900px){
  nav:has(.nav-links){height:auto;padding-block:10px 0}
  nav:has(.nav-links) .nav-inner,nav:has(> .nav-links){flex-wrap:wrap;row-gap:0}
  .nav-links{order:3;flex-basis:100%;margin:6px 0 0;gap:4px 22px;flex-wrap:wrap;border-top:1px solid var(--line)}
  .nav-links a{font-size:15px}
}
/* PENDING-SIMON-DECISION: conflicts with 20 Oct SEO rule. Remove with the .nav-links-articles spans. */
.nav-links-articles{display:contents}
/* Photo band: full-colour photo under a solid ink overlay, content on top.
   Usage: <section class="photo-band" style="--photo-url:url('/assets/img/x.jpg');--photo-url-sm:url('/assets/img/x-1024.jpg')">
   --photo-url is used above 768px, --photo-url-sm at 768px and below (falls back to --photo-url).
   --photo-overlay sets the ink overlay opacity (default .73). --photo-pos defaults to center. No gradients.
   Rule: every text box must measure at least 4.5:1 against every photo pixel behind it,
   at 1280 and 390. Raise --photo-overlay for a brighter photo until it does. */
.photo-band{
  --photo-overlay:.73;
  --photo-pos:center;
  position:relative;isolation:isolate;
  background-color:var(--ink);
  background-image:var(--photo-url,none);
  background-position:var(--photo-pos);
  background-size:cover;
  background-repeat:no-repeat;
}
@media (max-width:768px){.photo-band{background-image:var(--photo-url-sm,var(--photo-url,none))}}
.photo-band::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  display:block!important;background:rgba(11,25,41,var(--photo-overlay))!important;
}
.photo-band > *{position:relative}
/* Text on a photo band: white on the solid ink overlay (measure 4.5:1 per photo). */
body .photo-band .kicker{color:rgba(255,255,255,.9)}
body .photo-band h1{color:#fff}
body .photo-band p{color:rgba(255,255,255,.9)}
/* Module banners: .module-header with .photo-band. White text on the ink overlay, pill keeps its ink fill. */
body .module-header.photo-band{border-bottom:0}
body .module-header.photo-band::after{z-index:0;background:rgba(255,255,255,.12)}
body .module-header.photo-band h1,body.lesson .module-header.photo-band h1{color:#fff}
body .module-header.photo-band .subtitle{color:rgba(255,255,255,.9)}
body .module-header.photo-band .mod-course-label{color:rgba(255,255,255,.9)}
body .module-header.photo-band .mod-num-pill{background:var(--ink);color:#fff;border:1px solid rgba(255,255,255,.35)}

/* Inside the course: two-column mockup layout. Right column uses licensed laptop composite (iStock 2219327233). */
.inside-course{
  display:grid; gap:40px; align-items:center;
  grid-template-columns:1fr;
  margin:0 0 48px;
}
@media (min-width:900px){
  .inside-course{grid-template-columns:minmax(280px,0.95fr) minmax(300px,1.15fr); gap:56px}
}
.inside-course-copy .h-section{margin:0 0 14px}
.inside-course-copy p{max-width:52ch}
.inside-course-points{
  list-style:none; margin:28px 0 0; padding:0; border-top:1px solid var(--line);
}
.inside-course-points li{
  padding:14px 0; border-bottom:1px solid var(--line);
  font:500 16px/1.45 var(--sans); color:var(--ink);
  counter-increment:ic; display:flex; gap:14px; align-items:baseline;
}
.inside-course-points{counter-reset:ic}
.inside-course-points li::before{
  content:counter(ic, decimal-leading-zero); font:600 13px/1 var(--mono);
  color:var(--muted-strong); letter-spacing:.04em; min-width:2ch;
}

.inside-course-device .device{margin:0}
.inside-course-device .device img{width:100%;max-width:100%;height:auto;margin:0;display:block;border-radius:0}

/* M7 only (Simon 6 Nov): taller INITIAL desktop photo-band (~480px) so cover can show hat+shoulders.
   Scoped with body:not(.lift-past-first) so compact scrolled header keeps prior padding/height (may crop). Mobile: image crop only. */
@media (min-width:769px){
  /* Initial desktop only: must NOT apply under body.lift-past-first (compact scrolled header). */
  body:not(.lift-past-first) .module-header.photo-band.module-header--deep{
    min-height:480px;
    box-sizing:border-box;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
  }
}


/* ==========================================================================
   HOMEPAGE: ARTIFACT MATCH  (claude/homepage-artifact-match)

   Styles for the sections the agreed variant G mock-up has and the live
   homepage did not: the hero strap and meta line, the Course 01 card and
   the Coming next strip. Values are taken from the mock-up's own
   stylesheet and mapped onto the live tokens. Nothing here restyles an
   existing section.
   ========================================================================== */

/* Hero: the strap sits under the headline, the meta line under the note. */
/* The strap is the mock-up's subheadline. The live hero also carries a
   longer explainer below it, so the strap is set a step larger with its
   own space; without that the two paragraphs read as one block. */
.hero-strap{
  font-size:clamp(20px,1.9vw,27px);line-height:1.3;font-weight:500;
  letter-spacing:-.02em;color:#fff;max-width:30ch;margin:18px 0 22px;
}
.hero-meta{
  margin-top:14px;font-family:var(--mono);font-size:13px;letter-spacing:.02em;
  color:rgba(255,255,255,.78);
}

/* Course 01: one wide card, photo on the left, detail on the right. */
.course-wide{
  border:1px solid var(--line);border-radius:20px;overflow:hidden;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  background:var(--bg);
}
.course-wide:hover{border-color:var(--ink)}
.course-wide .cimg{
  min-height:100%;background-color:var(--ink);
  background-image:var(--photo-url,none);
  background-size:cover;background-position:center;background-repeat:no-repeat;
}
@media (max-width:768px){ .course-wide .cimg{background-image:var(--photo-url-sm,var(--photo-url,none))} }
.course-wide .cbody{padding:44px;display:flex;flex-direction:column;gap:24px;container-type:inline-size}
.course-wide .ctop{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}
.course-wide .ctop .st{color:var(--ink)}
.course-wide h3{
  margin:0;font-family:var(--sans);font-size:clamp(30px,3.2vw,44px);font-weight:500;
  letter-spacing:-.035em;line-height:1.02;color:var(--ink);
}
.course-wide > .cbody > p{margin:0;font-size:18px;line-height:1.55;color:var(--body)}
.course-wide dl{
  margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
}
.course-wide dl div{padding:18px 0;display:flex;flex-direction:column;gap:6px}
.course-wide dl div + div{padding-left:18px;border-left:1px solid var(--line)}
.course-wide dt{
  margin:0;font-family:var(--mono);font-size:13px;letter-spacing:.02em;color:var(--muted-strong);
}
.course-wide dd{margin:0;font-size:22px;letter-spacing:-.025em;color:var(--ink);line-height:1.25}
/* A value may wrap between words but never inside a range: browsers will
   otherwise break after the en dash and print "Modules 1-" over "2". */
.course-wide dd .nb{white-space:nowrap}

/* The four-up stat row is sized by the card body, not the viewport: the
   card is half-width on desktop, so a viewport query gets it wrong and
   "Modules" overflows its cell between about 900px and 1250px. */
@container (max-width:460px){
  .course-wide dl{grid-template-columns:repeat(2,minmax(0,1fr))}
  .course-wide dl div:nth-child(3){padding-left:0;border-left:0}
  .course-wide dl div:nth-child(-n+2){border-bottom:1px solid var(--line)}
}
.course-wide .inc{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.course-wide .inc li{font-size:16px;line-height:1.5;color:var(--body);padding:0}
.course-wide .inc li:before{content:"\2014\00a0";color:var(--muted-strong)}
.course-wide .cact{display:flex;gap:12px;flex-wrap:wrap;margin-top:auto}

/* Coming next. */
.next-strip{
  background:var(--soft);border-radius:20px;padding:32px 36px;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,320px);
  gap:32px;align-items:center;
}
.next-strip h3{
  margin:8px 0 0;font-family:var(--sans);font-size:26px;font-weight:500;
  letter-spacing:-.03em;line-height:1.1;color:var(--ink);
}
.next-strip p{margin:6px 0 0;font-size:16px;line-height:1.55;color:var(--body)}
.next-act{display:flex;justify-content:flex-end}
@media (max-width:860px){
  .course-wide,.next-strip{grid-template-columns:1fr}
  .course-wide .cimg{height:240px;min-height:0}
  .course-wide .cbody{padding:28px}
  .next-strip{padding:26px}
  .next-act{justify-content:flex-start}
}

/* Course 01 and Coming next sit directly under the laptop section, so the
   stacked section padding is halved rather than doubled. */
.section--tight-top{padding-top:0}

/* Two sections side by side -------------------------------------------- */
/* "Nine modules" and "The management toolkit" each ran the full width, one
   under the other, which made a long scroll of numbered rows. They sit in
   one band now, a column each. The wrap is 1360px, so each column is about
   640px, which still holds the module descriptions on two lines. */
.split2{display:grid;grid-template-columns:minmax(0,1fr);gap:64px}
.split2 > .split2-col{min-width:0}
.split2-eyebrow:empty{display:none}
.split2-head{display:flex;flex-direction:column;gap:18px;margin:0 0 32px}

@media (min-width:1040px){
  /* Three shared rows, so the eyebrow, the heading and the rule above each
     list start on the same line in both columns. Without this the left
     intro is a line taller than the right and the two lists set off at
     different heights, which is what made the band look crooked.
     The columns opt into the parent's rows with subgrid; where that is not
     supported each column simply lays itself out, which is the behaviour
     before this rule. */
  .split2{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-rows:auto auto 1fr;
    gap:0 72px;align-items:start;
  }
  .split2-col{display:grid;grid-template-rows:subgrid;grid-row:span 3;row-gap:0}
  .split2-eyebrow:empty{display:block}          /* holds the row open */
  .split2-head{margin:0;padding:0 0 32px}
  /* The page H2 scale is sized off the viewport, which is too large once a
     heading only has half the width to sit in. */
  .split2 .h-section{font-size:clamp(26px,2.05vw,34px)}
}


/* ==========================================================================
   LESSON HIGHLIGHT  (claude/module-lesson-chrome)

   The rebrand put the lesson pages' highlight colour behind `body.lesson`:

       body.lesson{--hl:var(--accent);--hlsoft:var(--tint)}      (line 1874)

   Nothing sets that class. All nine module pages ship a bare <body>, so
   every one of the eleven `var(--hl)` / `var(--hlsoft)` rules below it
   falls back to the :root defaults, `--hl:var(--ink)` and
   `--hlsoft:var(--soft)`. Measured on module1.html: the reading-progress
   bar computes rgb(11,25,41), near-black, where the agreed mock-up has it
   accent blue.

   Setting `body.lesson` would fix that and 310 other elements with it,
   including turning ten `.lift-fb-link` anchors from #1F5BFF to #0B1929,
   shrinking `.scaff-sort__summary` from 17px to 12px and dropping eight
   paragraphs from 18px to 15px. That is a typographic restyle, not chrome,
   so the two custom properties are set directly instead and nothing else
   moves.

   Scope: `main[data-ms-content="members"]` is on the nine lesson pages and
   course.html. course.html contains none of the eleven consumers, so this
   is a no-op there. The gate attribute is used only as a selector and is
   not modified.
   ========================================================================== */
main[data-ms-content="members"]{ --hl:var(--accent); --hlsoft:var(--tint); }

/* The reading-progress bar sits outside main, so it is set directly. */
.scroll-bar-fill{ background:var(--accent); }


/* ==========================================================================
   LESSON: CONTINUOUS PAGE WITH A CONTENTS RAIL

   The agreed mock-up reads a module as one scrolling page with a contents
   rail at the side, each circle filling as you pass that section. The lift
   grouping is unchanged and so are the quick checks and the rules; what
   changes is that every lift is on the page at once instead of one at a
   time behind a Continue button. assets/scaff-lifts.js sets body.lift-scroll
   and builds the rail; with its SCROLL flag off, none of this applies and
   the stepper behaves exactly as before.
   ========================================================================== */
body.lift-scroll .lift{display:block;animation:none}
body.lift-scroll .lift-nav{justify-content:flex-end;margin:28px 0 0;padding-top:16px}
body.lift-scroll .lift + .lift{margin-top:8px}

.lesson-rail{display:flex;flex-direction:column;gap:18px;align-self:start}
.lesson-rail__head{
  font-family:var(--mono);font-size:12px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted-strong);
}
.lesson-rail__list{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.lesson-rail__row{
  display:grid;grid-template-columns:26px minmax(0,1fr) auto 12px;gap:10px;
  align-items:center;padding:11px 0;border-bottom:1px solid var(--line);
  text-decoration:none;font-size:15px;line-height:1.3;color:var(--muted-strong);
}
.lesson-rail__n{font-family:var(--mono);font-size:11px;letter-spacing:.06em}
.lesson-rail__m{font-family:var(--mono);font-size:11px;letter-spacing:.04em;color:var(--muted-strong)}
.lesson-rail__row i{
  width:11px;height:11px;border:1.5px solid var(--line);border-radius:50%;
  box-sizing:border-box;transition:background .2s,border-color .2s;
}
.lesson-rail__row:hover{color:var(--ink)}
.lesson-rail__row:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.lesson-rail__row.is-done{color:var(--body)}
.lesson-rail__row.is-done i{background:var(--accent);border-color:var(--accent)}
.lesson-rail__row.is-current{color:var(--ink)}
.lesson-rail__row.is-current .lesson-rail__t{font-weight:500}
.lesson-rail__row.is-current i{border-color:var(--accent);border-width:2.5px}

/* Below the rail's breakpoint the sticky lift bar carries the same
   information, exactly as the mock-up falls back to its section bar. */
@media (max-width:1099px){ .lesson-rail{display:none} }

@media (min-width:1100px){
  main.has-lesson-rail{
    display:grid;grid-template-columns:260px minmax(0,760px);
    column-gap:64px;justify-content:center;align-items:start;
  }
  main.has-lesson-rail > .lift-hud,
  main.has-lesson-rail > .lift-feedback-bar{grid-column:1 / -1}
  main.has-lesson-rail > .lesson-rail{grid-column:1;position:sticky;top:92px}
  main.has-lesson-rail > .container{grid-column:2;max-width:760px;margin:0}
  /* the rail replaces the lift bar at this width, as the mock-up does */
  main.has-lesson-rail > .lift-hud{display:none}
}

/* The newsletter sign-up card -------------------------------------------
   The listings block above covers both pages' entry rows, card, tag and
   fineprint. These are the few classes the newsletter form adds that the
   rebrand did not reach, because the page was never linked to this
   stylesheet and nobody saw them missing. */
.card > .sub,.articles > .sub{
  margin:6px 0 22px;font-size:16px;line-height:1.55;color:var(--muted-strong);
}
.card h2,.articles h2{
  margin:0;font-family:var(--sans);font-weight:700;font-size:24px;
  letter-spacing:-.03em;line-height:1.15;color:var(--ink);
}
.row{margin-bottom:16px}
.row label{
  display:block;margin-bottom:7px;
  font-family:var(--mono);font-size:12px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted-strong);
}
.row input{
  width:100%;padding:13px 14px;
  border:1px solid var(--line);border-radius:var(--r-panel);
  font:400 16px/1.4 var(--sans);color:var(--ink);background:var(--bg);
}
.row input:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px rgba(31,91,255,.14)}
.row input:disabled{background:var(--soft);color:var(--muted-strong)}

/* Shown by the form script, so it starts hidden and keeps its own colour. */
.status{display:none;margin-top:16px;padding:13px 15px;border-radius:var(--r-panel);font-size:15px;line-height:1.5}
.status-ok{background:rgba(10,122,59,.09);color:var(--ok);border:1px solid rgba(10,122,59,.22)}
.status-err{background:rgba(179,38,30,.07);color:var(--err);border:1px solid rgba(179,38,30,.22)}


/* ==========================================================================
   FOOTER WORDMARK

   The footer carried the pre-rebrand wordmark: Barlow Condensed caps with
   the Scaff/Skills colour split, set by an inline <style> on three pages,
   a rule in a stylesheet no page loads, and inline span colours in the
   markup. It now matches the nav: lowercase, Inter 300, all ink, with the
   tower mark. The mark is a data URI because a CSS background cannot
   inherit currentColor.
   ========================================================================== */
.footer-logo{
  display:inline-flex;align-items:center;
  font-family:var(--sans);font-size:22px;font-weight:300;letter-spacing:-.035em;
  line-height:1;text-transform:lowercase;text-decoration:none;color:var(--ink);
}
.footer-logo::before{
  content:"";width:1.08em;height:1.08em;margin-right:.34em;flex:none;
  background:center / contain no-repeat url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%231F5BFF%22%20stroke-width%3D%222.2%22%20stroke-linecap%3D%22square%22%3E%3Cpath%20d%3D%22M8.3%202V30M23.7%202V30%22%2F%3E%3Cpath%20d%3D%22M8.3%203.8H23.7M8.3%2013.4H23.7M8.3%2026.9H23.7%22%2F%3E%3Cpath%20d%3D%22M8.3%2026.9L23.7%2013.4M23.7%2026.9L8.3%2013.4%22%2F%3E%3Cpath%20d%3D%22M6.5%2030H10.1M21.9%2030H25.5%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M8.3%208.4H23.7%22%20fill%3D%22none%22%20stroke%3D%22%231F5BFF%22%20stroke-width%3D%221.4%22%2F%3E%3C%2Fsvg%3E");
}
.footer-logo .logo-scaff,.footer-logo .logo-skills{
  color:var(--ink);font-weight:300;text-transform:lowercase;
}

/* ── cmpx: comparison cards (CW-20261106) ─────────────────────────
   Replaces the cmp-table three-contract comparisons on modules 1-8.
   One tab per topic; each panel holds three cards (JCT / NEC / NASC):
   clocks on top, plain-English line, clause chips, full contract
   wording behind a <details> expander. */
.cmpx{margin:28px 0}
@media(min-width:1100px){main.has-lesson-rail .cmpx{width:calc(100% + clamp(0px,50vw - 582px,320px))}}
.cmpx-tabbar{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:0;margin-bottom:20px}
.cmpx-tabs{display:flex;gap:18px;flex-wrap:wrap}
.cmpx-tab{appearance:none;background:none;border:0;padding:0 2px 10px;margin:0;cursor:pointer;font-family:var(--sans);font-size:16px;font-weight:700;letter-spacing:-.01em;color:var(--muted-strong);border-bottom:3px solid transparent;white-space:nowrap}
.cmpx-tab:hover{color:var(--ink)}
.cmpx-tab.is-active{color:var(--ink);border-bottom-color:var(--accent)}
.cmpx-tagline{font-family:var(--sans);font-size:15px;font-weight:600;color:var(--muted-strong);padding-bottom:10px;white-space:nowrap}
.cmpx-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;align-items:start}
.cmpx-card{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;box-shadow:0 1px 3px rgba(11,25,41,.05)}
.cmpx-card-head{margin:0;background:var(--ink);color:#fff;font-family:var(--sans);font-size:15px;font-weight:700;letter-spacing:.2px;padding:14px 18px}
.cmpx-card-body{padding:2px 18px 18px}
.cmpx-clock{padding:12px 0;border-bottom:1px solid var(--line)}
.cmpx .cmpx-clock-label{display:block;font-size:11px;font-weight:700;letter-spacing:1.3px;text-transform:uppercase;color:var(--muted-strong);margin-bottom:3px}
.cmpx .cmpx-clock-gloss{text-transform:none;letter-spacing:0;font-weight:500}
.cmpx .cmpx-clock-value{display:block;font-size:16px;font-weight:700;color:var(--ink);line-height:1.45}
.cmpx .cmpx-plain{font-size:15px;line-height:1.6;color:var(--text-body,var(--ink));margin:14px 0 0}
.cmpx .cmpx-note{font-size:15px;line-height:1.55;color:#8A5A14;margin:12px 0 0}
.cmpx .cmpx-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.cmpx .cmpx-chip{display:inline-block;background:var(--soft);border:1px solid var(--line);border-radius:999px;padding:5px 13px;font-size:13px;font-weight:600;color:var(--ink);white-space:nowrap}
.cmpx-wording{margin-top:14px}
.cmpx .cmpx-wording summary{list-style:none;cursor:pointer;font-size:15px;font-weight:500;color:var(--accent);text-decoration:underline;text-underline-offset:3px;text-decoration-color:color-mix(in srgb,var(--accent) 35%,transparent)}
.cmpx .cmpx-wording summary::-webkit-details-marker{display:none}
.cmpx-wording-arrow{display:inline-block;margin-left:6px;text-decoration:none;transition:transform .15s ease}
.cmpx-wording[open] .cmpx-wording-arrow{transform:rotate(90deg)}
.cmpx .cmpx-wording-body{margin-top:10px;padding:2px 0 2px 14px;border-left:3px solid var(--line);font-size:15px;line-height:1.6;color:var(--text-body,var(--ink))}
.cmpx .cmpx-wording-body p{margin:0 0 10px;font-size:15px;line-height:1.6;color:var(--text-body,var(--ink))}
.cmpx .cmpx-wording-body p:last-child{margin-bottom:0}
@media(max-width:900px){.cmpx-cards{grid-template-columns:1fr}.cmpx-tab{font-size:15px}.cmpx-tagline{font-size:14px}}


/* ==========================================================================
   SUPPORT BAR

   Mental health signposting under the nav on public pages. Centred rather
   than aligned to the page gutter, because the pages it sits on use two
   different content widths (.wrap at 1360px, .container at 800px) and a
   left-aligned band would disagree with one of them.

   Calm, not alarming: --soft ground and a hairline rule, not the accent as
   a background. The accent is reserved for the two links.
   ========================================================================== */
.support-bar{
  background:var(--soft);
  border-bottom:1px solid var(--line);
}
.support-bar > .wrap{ padding-block:11px; }
.support-bar-text{
  margin:0;
  display:flex;flex-wrap:wrap;align-items:baseline;
  justify-content:center;gap:4px 14px;text-align:center;
  font-family:var(--sans);font-size:15px;line-height:1.5;color:var(--body);
}
.support-bar-text strong{ color:var(--ink);font-weight:600; }
.support-bar-text a{ color:var(--accent);text-decoration:none; }
.support-bar-text a:hover,
.support-bar-text a:focus-visible{
  color:var(--ink);text-decoration:underline;text-underline-offset:3px;
}
.support-bar-crisis{ color:var(--muted-strong);font-size:14px; }
.support-bar-crisis a{ font-weight:600;white-space:nowrap; }
@media (max-width:680px){
  .support-bar > .wrap{ padding-block:10px; }
  .support-bar-text{ font-size:14px;gap:2px 10px; }
  .support-bar-crisis{ font-size:13px; }
}

/* ==========================================================================
   NOT EVERY SCAFFOLDER IS OK
   Page: /not-every-scaffolder-is-ok
   Appended block. Tokens referenced only, never redeclared. No alias names.
   Prefix: .nesok-  so nothing here can collide with existing site classes.
   ========================================================================== */

/* ---- shared ---- */
.nesok-soft{background:var(--soft);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.nesok-kicker{font-family:var(--mono);font-size:12px;font-weight:600;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted-strong);margin:0 0 10px}
.nesok-head{max-width:760px;margin:0 0 36px}
.nesok-head .h-section{margin:0 0 14px}
.nesok-intro{font-size:17px;line-height:1.6;color:var(--body);max-width:760px;margin:0}
.nesok-caveat{font-size:16px;line-height:1.6;color:var(--muted-strong);max-width:760px;margin:20px 0 0}

/* ---- crisis panel ---- */
.nesok-top{background:var(--soft);border-top:3px solid var(--accent);
  border-bottom:1px solid var(--line);padding:56px 0 48px}
.nesok-h1{margin:0 0 20px;font-family:var(--sans);font-weight:700;text-transform:none;
  font-size:clamp(34px,4.6vw,56px);letter-spacing:-.04em;line-height:1.02;
  color:var(--ink);text-wrap:balance}
.nesok-lede{font-size:clamp(17px,1.9vw,20px);line-height:1.5;color:var(--body);
  max-width:620px;margin:0}
.nesok-lede strong{color:var(--ink);font-weight:600}
.nesok-calls{display:grid;grid-template-columns:repeat(auto-fit,minmax(252px,1fr));
  gap:14px;margin:34px 0 0}
.nesok-call{min-width:0;background:var(--bg);border:1px solid var(--line);
  border-radius:var(--r-panel);padding:24px 22px}
.nesok-call-who{margin:0 0 8px}
.nesok-num{margin:0 0 10px;font-family:var(--sans);font-weight:600;
  font-size:clamp(32px,4.4vw,42px);line-height:1.02;letter-spacing:-.035em;
  font-variant-numeric:tabular-nums;color:var(--ink);word-break:break-word}
.nesok-num a{color:var(--ink);text-decoration:none}
.nesok-num a:hover{text-decoration:underline;text-decoration-thickness:2px;
  text-decoration-color:var(--accent)}
.nesok-num-text{font-size:clamp(20px,2.2vw,24px);letter-spacing:-.02em;font-weight:600}
.nesok-note{margin:0;font-size:16px;line-height:1.5;color:var(--body)}
.nesok-disclaim{margin:30px 0 0;padding:20px 0 0;border-top:1px solid var(--line);
  font-size:16px;line-height:1.55;color:var(--muted-strong);max-width:760px}

/* ---- copy buttons ---- */
.nesok-copy{margin:14px 0 0;font-family:var(--sans);font-size:13px;font-weight:600;
  letter-spacing:.04em;text-transform:uppercase;color:var(--muted-strong);
  background:var(--bg);border:1px solid var(--line);border-radius:6px;
  padding:9px 14px;cursor:pointer;transition:border-color .2s,color .2s}
.nesok-copy:hover{color:var(--ink);border-color:var(--muted-strong)}
.nesok-copy-small{margin-top:4px;padding:7px 12px;font-size:12px}

/* ---- social links under the crisis callouts ---- */
.nesok-social{margin:28px 0 0}
.nesok-social-label{margin:0 0 12px}
.nesok-social-row{display:flex;flex-wrap:wrap;gap:12px}
.nesok-social-link{display:inline-flex;flex-direction:column;gap:3px;min-width:0;
  background:var(--bg);border:1px solid var(--line);border-radius:var(--r-panel);
  padding:14px 18px;text-decoration:none;font-family:var(--sans);font-size:18px;
  font-weight:600;letter-spacing:-.02em;color:var(--accent);
  transition:border-color .2s,background .2s}
.nesok-social-link:hover{border-color:var(--accent);background:var(--tint)}
.nesok-social-who{font-size:16px;font-weight:400;letter-spacing:0;color:var(--muted-strong)}

/* ---- stats ---- */
.nesok-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(224px,1fr));
  gap:14px;margin:0 0 24px}
.nesok-stat{min-width:0}
.nesok-stat-figure{margin:0 0 12px;font-family:var(--sans);font-weight:600;font-size:44px;
  line-height:1;letter-spacing:-.045em;font-variant-numeric:tabular-nums;color:var(--accent)}
.nesok-stat-label{margin:0;font-size:16px;line-height:1.5;color:var(--muted-strong)}

/* ---- why this trade ---- */
.nesok-why{list-style:none;padding:0;margin:0;display:grid;
  grid-template-columns:repeat(auto-fit,minmax(262px,1fr));gap:14px}
.nesok-why li{min-width:0}
.nesok-why-t{margin:0 0 8px;font-size:19px;font-weight:600;letter-spacing:-.02em;
  line-height:1.25;color:var(--ink)}
.nesok-why-d{margin:0;font-size:16px;line-height:1.55;color:var(--body)}

/* ---- resource rows ---- */
.nesok-rows{display:flex;flex-direction:column;gap:12px}
.nesok-row{display:grid;grid-template-columns:1fr minmax(214px,auto);
  gap:18px 34px;align-items:start}
.nesok-row-main{min-width:0}
.nesok-name{margin:0 0 8px;font-family:var(--sans);font-weight:600;
  font-size:21px;letter-spacing:-.02em;line-height:1.25;color:var(--ink);text-transform:none}
.nesok-desc{margin:0;font-size:16px;line-height:1.55;color:var(--body)}
.nesok-pill{display:inline-block;margin:14px 0 0;font-family:var(--mono);font-size:12px;
  font-weight:600;letter-spacing:.06em;text-transform:uppercase;border-radius:var(--r-pill);
  padding:6px 13px;color:var(--accent);background:var(--tint)}
.nesok-pill-part{color:var(--muted-strong);background:var(--soft);border:1px solid var(--line)}
.nesok-pill-info{color:var(--muted-strong);background:var(--soft);border:1px solid var(--line)}
.nesok-row-contact{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.nesok-contact-num{margin:0;font-family:var(--sans);font-weight:600;font-size:28px;
  line-height:1.08;letter-spacing:-.035em;font-variant-numeric:tabular-nums;
  color:var(--ink);word-break:break-word}
.nesok-contact-num a{color:var(--ink);text-decoration:none}
.nesok-contact-num a:hover{text-decoration:underline;text-decoration-thickness:2px;
  text-decoration-color:var(--accent)}
.nesok-contact-sub{margin:0;font-size:16px;line-height:1.5;color:var(--muted-strong)}
@media (max-width:760px){.nesok-row{grid-template-columns:1fr}}

/* ---- checklists ---- */
.nesok-check{list-style:none;padding:0;margin:0 0 38px;display:grid;
  grid-template-columns:repeat(auto-fit,minmax(272px,1fr));gap:14px 36px}
.nesok-check li{min-width:0;position:relative;padding-left:30px;font-size:16px;
  line-height:1.55;color:var(--body)}
.nesok-check li::before{content:"";position:absolute;left:0;top:.42em;width:13px;height:13px;
  border:2px solid var(--accent);border-radius:4px}
.nesok-check strong{color:var(--ink);font-weight:600}

/* ---- say this / not this ---- */
.nesok-talk{display:grid;grid-template-columns:repeat(auto-fit,minmax(296px,1fr));gap:14px}
.nesok-talk-card{min-width:0}
.nesok-talk-say{border-top:3px solid var(--accent)}
.nesok-talk-dont{border-top:3px solid var(--ink)}
.nesok-quote{margin:12px 0 0;font-size:22px;font-weight:600;letter-spacing:-.025em;
  line-height:1.25;color:var(--ink)}
.nesok-list{margin:18px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:12px}
.nesok-list li{font-size:16px;line-height:1.55;color:var(--body)}
.nesok-list strong{color:var(--ink);font-weight:600}

/* ---- warning callout ---- */
.nesok-warn{max-width:760px;background:var(--soft);border:1px solid var(--line);
  border-left:3px solid var(--ink);border-radius:var(--r-panel);padding:28px 26px}
.nesok-warn .nesok-name{margin-bottom:10px}

/* ---- sources and stamp ---- */
.nesok-sources{margin:24px 0 0;font-size:16px;line-height:1.85;color:var(--muted-strong);
  max-width:1000px}
.nesok-stamp{margin:26px 0 0;padding:18px 0 0;border-top:1px solid var(--line);
  color:var(--ink);letter-spacing:.1em}

/* ---- accessibility ---- */
.nesok-copy:focus-visible,.nesok-social-link:focus-visible,.nesok-num a:focus-visible,
.nesok-contact-num a:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
@media (prefers-reduced-motion:reduce){
  .nesok-copy,.nesok-social-link{transition:none}
}

.wrap{padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}

/* ==========================================================================
   SECOND CHANCES
   Page: /second-chances  -  free course access for prison leavers

   Tokens referenced only, never redeclared. No alias names.
   Prefix: .sc-  so nothing here can collide with an existing site class.
   ========================================================================== */
.sc-top{ padding-top:56px; }
/* Not .h-display: that class is colour:#fff for the dark photo hero and
   is invisible on a white page. This is its own headline. */
.sc-h1{
  margin:10px 0 0;max-width:16ch;
  font-family:var(--sans);font-weight:700;text-transform:none;
  font-size:clamp(34px,4.2vw,58px);letter-spacing:-.04em;line-height:1.02;
  color:var(--ink);text-wrap:balance;
}
.sc-lede{
  max-width:60ch;margin:22px 0 0;
  font-family:var(--sans);font-size:clamp(18px,1.5vw,21px);
  line-height:1.6;color:var(--body);
}
.sc-cta-row{ display:flex;flex-wrap:wrap;gap:14px;margin-top:32px; }

.sc-prose{ max-width:68ch; }
.sc-prose p{ margin:0 0 18px;font-size:17px;line-height:1.7;color:var(--body); }
.sc-prose p:last-child{ margin-bottom:0; }
.sc-prose strong{ color:var(--ink);font-weight:600; }
.sc-prose .h-section{ margin-bottom:24px; }
.sc-emph{
  margin-top:28px!important;padding-left:18px;
  border-left:3px solid var(--accent);
  font-size:19px!important;line-height:1.55!important;
  color:var(--ink)!important;font-weight:500;
}

.sc-steps{ margin-top:36px;max-width:72ch; }
.sc-steps .step{ align-items:flex-start; }
.sc-steps .step p{ margin:0 0 12px;font-size:16px;line-height:1.7;color:var(--body); }
.sc-steps .step p:last-child{ margin-bottom:0; }
.sc-steps .step strong{ color:var(--ink);font-weight:600; }
.sc-inline-link{ color:var(--accent);text-decoration:none;font-weight:500; }
.sc-inline-link:hover,
.sc-inline-link:focus-visible{
  color:var(--ink);text-decoration:underline;text-underline-offset:3px;
}

.sc-close{ text-align:center; }
.sc-close .section-intro{ margin-inline:auto;margin-bottom:28px; }

@media (max-width:680px){
  .sc-top{ padding-top:40px; }
  .sc-lede{ font-size:17px; }
  .sc-cta-row .btn{ width:100%;justify-content:center; }
  .sc-emph{ font-size:18px!important; }
}

/* The free-access route, on the page where somebody is about to pay for
   what they may be entitled to for nothing. /register carries no nav, so
   without this there is no way to discover it from here. */
#second-chances-note{padding-top:16px;border-top:1px solid var(--line)}
#second-chances-note a{color:var(--accent);text-decoration:none;font-weight:500}
#second-chances-note a:hover,
#second-chances-note a:focus-visible{color:var(--ink);text-decoration:underline;text-underline-offset:3px}

/* ==========================================================================
   MODULE 9 COMPLETION GATE  (CPD-B1)
   Shown only when Modules 1 to 8 are not all passed; the quiz and the
   certificate block are hidden in that case. Plain and unblaming.
   ========================================================================== */
.m9-gate{border:1px solid var(--line);border-radius:var(--r-panel);background:var(--soft);padding:28px 26px}
.m9-gate-h{margin:0 0 12px;font-family:var(--sans);font-weight:600;font-size:22px;letter-spacing:-.02em;color:var(--ink)}
.m9-gate p{margin:0 0 12px;font-size:17px;line-height:1.6;color:var(--body)}
.m9-gate-still{font-weight:600;color:var(--ink)!important;margin-bottom:8px!important}
.m9-gate-list{margin:0 0 16px;padding-left:20px}
.m9-gate-list li{margin:0 0 6px;font-size:17px;line-height:1.6;color:var(--body)}
.m9-gate-list a,.m9-gate-back{color:var(--accent);text-decoration:none;font-weight:500}
.m9-gate-list a:hover,.m9-gate-back:hover,
.m9-gate-list a:focus-visible,.m9-gate-back:focus-visible{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
@media (max-width:680px){.m9-gate{padding:22px 18px}.m9-gate-h{font-size:20px}}

/* ═══════════════════════════════════════════════════════════════════
   SKIP LINK  (CPD-B5)
   The first focusable element on every page. A keyboard or screen
   reader user should not have to tab through the whole nav on every
   page to reach what they came for.

   Off-screen rather than display:none, because display:none would take
   it out of the tab order and there would be nothing to skip with.
   z-index sits above the sticky nav (50) and the lift HUD (900), so it
   is actually visible when it takes focus.
   ═══════════════════════════════════════════════════════════════════ */
.skip-link{
  position:absolute;left:10px;top:-100px;z-index:1001;
  display:inline-block;padding:11px 18px;
  background:var(--ink);color:#fff;
  font:600 15px/1 var(--sans);text-decoration:none;
  border-radius:var(--r-pill);
  transition:top .12s ease;
}
/* The shadow is applied only on focus. Parked off-screen with a shadow, its
   blur reached back over the top edge of every page. */
.skip-link:focus{
  top:10px;
  outline:3px solid var(--accent);outline-offset:2px;
  box-shadow:0 6px 20px rgba(11,25,41,.28);
}
@media (prefers-reduced-motion:reduce){.skip-link{transition:none}}
