/* ccaf.joshking.ai — CCA-F Study Hub
   Bauhaus modernist theme. Primary palette, geometric forms, strong grid.
   Self-hosted Jost (Futura-lineage geometric sans, OFL). No external deps. */

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/jost.woff2") format("woff2");
}

:root {
  --paper: #ebe5d6;     /* bone white */
  --paper-2: #f3eee2;   /* lighter panel */
  --card: #f7f3ea;
  --ink: #15120d;       /* near-black */
  --ink-2: #3b352c;
  --muted: #6f6757;
  --red: #d8392b;
  --blue: #0a6fbe;       /* primary accent */
  --yellow: #f3b30b;
  --line: var(--ink);
  --brand: #0a6fbe;        /* brand accent (matches --blue) */
  --brand-bright: #15b6e6; /* bright cyan */
  --brand-navy: #0c2747;   /* deep navy */
  --maxw: 1180px;
  --bw: 2.5px;          /* standard rule weight */
  --sans: "Jost", "Futura", "Century Gothic", "Avenir Next", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17.5px;
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  /* faint baseline grid texture */
  background-image: linear-gradient(transparent calc(100% - 1px), rgba(21,18,13,.035) 0);
  background-size: 100% 32px;
}

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

h1, h2, h3, h4 { font-family: var(--sans); margin: 0; line-height: 1.02; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-underline-offset: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

/* ---------- Geometric shapes (primitives) ---------- */
.circle { border-radius: 50%; }
.square { border-radius: 0; }
.tri { background: transparent !important; }
.tri::before {
  content: ""; display: block; width: 100%; height: 100%;
  background: var(--c, var(--ink));
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.blue  { --c: var(--blue); }
.red   { --c: var(--red); }
.yellow{ --c: var(--yellow); }
.ink   { --c: var(--ink); }
.fill-c { background: var(--c, var(--ink)); }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper);
  border-bottom: var(--bw) solid var(--ink);
}
.hdr-in { display: flex; align-items: center; gap: 20px; height: 66px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.3rem;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--ink); margin-right: 14px; }
.edition { display: inline-flex; align-items: center; gap: 7px; margin-right: auto; font-weight: 800;
  font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--brand);
  padding: 6px 10px; border: 2px solid var(--ink); white-space: nowrap; }
.brandmark { display: inline-block; vertical-align: middle; width: auto; text-transform: none; }
.edition .brandmark { height: 13px; }
.logo-marks { display: inline-flex; gap: 5px; align-items: center; }
.logo-marks i { width: 14px; height: 14px; display: block; }
.logo-marks .m1 { background: var(--blue); border-radius: 50%; }
.logo-marks .m2 { background: var(--red); }
.logo-marks .m3 { width: 0; height: 0; background: none; border-left: 7px solid transparent;
  border-right: 7px solid transparent; border-bottom: 14px solid var(--yellow); }
.nav { display: flex; gap: 4px; }
.nav a { font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2); padding: 8px 12px; border: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a.active { border-bottom: 3px solid var(--red); color: var(--ink); }
.navbtn { display: none; width: 44px; height: 40px; background: var(--ink); color: var(--paper);
  border: none; font-size: 1.2rem; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans);
  font-weight: 700; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 14px 26px; text-decoration: none; border: var(--bw) solid var(--ink); cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn-red { background: var(--red); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-out { background: var(--paper); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; border-bottom: var(--bw) solid var(--ink); overflow: hidden; }
.hero-in { position: relative; padding-top: 78px; padding-bottom: 64px; z-index: 2; }
.kicker { font-weight: 600; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--red); margin: 0 0 22px; }
.display { font-weight: 900; text-transform: uppercase; letter-spacing: -.02em;
  font-size: clamp(3.4rem, 12vw, 8.5rem); margin: 0 0 26px; }
.hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.35rem); max-width: 54ch; color: var(--ink-2);
  font-weight: 400; margin: 0 0 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }

/* decorative hero shapes */
.hero-shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-shapes span { position: absolute; display: block; }
.hs-circle { width: clamp(160px, 26vw, 340px); aspect-ratio: 1; border-radius: 50%;
  background: var(--blue); right: -4%; top: 6%; opacity: .92; }
.hs-square { width: clamp(80px, 11vw, 150px); aspect-ratio: 1; background: var(--red);
  right: 24%; bottom: 16%; transform: rotate(12deg); }
.hs-tri { width: 0; height: 0; border-left: clamp(70px,9vw,120px) solid transparent;
  border-right: clamp(70px,9vw,120px) solid transparent; border-bottom: clamp(120px,16vw,210px) solid var(--yellow);
  right: 6%; bottom: -10%; transform: rotate(-8deg); }
.hs-ring { width: clamp(90px,12vw,170px); aspect-ratio: 1; border-radius: 50%;
  border: 14px solid var(--brand-bright); right: 40%; top: 12%; background: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .hs-circle { animation: drift 14s ease-in-out infinite; }
  .hs-tri { animation: spin 30s linear infinite; transform-origin: 50% 70%; }
  .hs-ring { animation: drift 11s ease-in-out infinite reverse; }
}
@keyframes drift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(22px); } }
@keyframes spin { to { transform: rotate(352deg); } }

/* stat blocks */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: var(--bw) solid var(--ink);
  background: var(--ink); gap: var(--bw); max-width: 760px; }
.stat { background: var(--paper-2); padding: 22px 20px; }
.stat-n { display: block; font-weight: 900; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: .9;
  color: var(--c, var(--ink)); }
.stat-l { display: block; font-weight: 600; font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-2); margin-top: 9px; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 74px; }
.sec { padding: 70px 0; border-bottom: var(--bw) solid var(--ink); }
.sec-head { display: grid; grid-template-columns: auto 1fr; gap: 0 26px; align-items: start;
  margin-bottom: 44px; }
.sec-num { font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--red);
  line-height: .9; grid-row: span 2; }
.sec-head h2 { font-weight: 800; text-transform: uppercase; font-size: clamp(1.7rem, 4vw, 2.8rem);
  letter-spacing: -.01em; }
.sec-sub { grid-column: 2; max-width: 64ch; color: var(--ink-2); margin: 14px 0 0; font-size: 1.05rem; }

/* ---------- Official courses (prominent, first section) ---------- */
.sec-courses { background: var(--paper-2); }
.course-note { border: var(--bw) solid var(--ink); background: var(--card);
  border-left: 10px solid var(--yellow); padding: 15px 20px; margin-bottom: 28px; }
.course-note p { margin: 0; font-size: .98rem; color: var(--ink-2); }
.course-note b { color: var(--ink); }
.grey { --c: var(--muted); }
.course-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.course { display: flex; flex-direction: column; background: var(--card);
  border: var(--bw) solid var(--ink); border-top: 9px solid var(--c, var(--ink)); padding: 22px; }
.course-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.course-tag { font-weight: 800; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; }
.course-tag.star { background: var(--c, var(--ink)); color: #fff; }
.course.yellow .course-tag.star { color: var(--ink); }
.course-tag.rec { background: var(--c, var(--ink)); color: #fff; }
.course.yellow .course-tag.rec { color: var(--ink); }
.course-tag.opt { background: transparent; color: var(--muted); border: 2px solid var(--muted); }
.course.is-optional { background: var(--paper); }
.course-hrs { font-weight: 700; font-size: .78rem; color: var(--muted); letter-spacing: .03em; white-space: nowrap; }
.course h3 { font-weight: 800; text-transform: uppercase; font-size: 1.1rem; line-height: 1.06; margin-bottom: 10px; }
.course h3 a { text-decoration: none; color: var(--ink); }
.course h3 a:hover { color: var(--c, var(--ink)); }
.course.yellow h3 a:hover { color: #a07700; }
.course-map { font-weight: 700; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--c, var(--ink)); margin: 0 0 11px; }
.course.yellow .course-map { color: #a07700; }
.course-blurb { color: var(--ink-2); font-size: .95rem; margin: 0 0 18px; }
.course-enroll { margin-top: auto; align-self: flex-start; font-weight: 800; font-size: .8rem;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--ink);
  border-bottom: 3px solid var(--c, var(--ink)); padding-bottom: 2px; }
.course-enroll:hover { color: var(--c, var(--ink)); }
.course.yellow .course-enroll { border-color: #d6a100; }
.course.yellow .course-enroll:hover { color: #a07700; }

/* ---------- Start here banner (Step 1: sign in) ---------- */
.starthere { background: var(--blue); color: #fff; border-bottom: var(--bw) solid var(--ink); padding: 32px 0; }
.starthere-in { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.starthere-text { min-width: 0; }
.starthere-kicker { display: block; font-weight: 800; font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; color: #cfeaf7; margin-bottom: 9px; }
.starthere-h { font-family: var(--sans); font-weight: 900; text-transform: uppercase; line-height: 1.05;
  font-size: clamp(1.3rem, 3vw, 2rem); margin: 0 0 8px; }
.starthere p { margin: 0; color: #e7f1fb; font-size: 1.02rem; max-width: 62ch; }
.starthere-note { margin: 13px 0 0 !important; font-size: .92rem; color: #fff !important;
  background: rgba(255,255,255,.13); border-left: 4px solid var(--yellow); padding: 9px 14px; max-width: 64ch; }
.starthere-note b { color: #fff; }
.btn-start { flex: none; background: #fff; color: var(--blue); font-weight: 800; text-transform: uppercase;
  letter-spacing: .03em; font-size: .92rem; padding: 16px 26px; border: var(--bw) solid var(--ink);
  text-decoration: none; transition: transform .1s ease, box-shadow .1s ease; }
.btn-start:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); color: var(--blue); }
@media (max-width: 720px) { .btn-start { width: 100%; text-align: center; } }

/* ---------- Prep path (the single ordered checklist) ---------- */
.sec-prep { background: var(--paper-2); }
.prep { list-style: none; margin: 0; padding: 0; border-top: var(--bw) solid var(--ink); }
.prep-step { display: grid; grid-template-columns: 48px 86px 1fr auto auto; align-items: center;
  gap: 18px; padding: 16px 2px; border-bottom: var(--bw) solid var(--ink); }
.prep-n { font-weight: 900; font-size: 1.55rem; color: var(--blue); line-height: 1; }
.prep-kind { justify-self: start; font-weight: 800; font-size: .6rem; letter-spacing: .12em;
  text-transform: uppercase; padding: 5px 9px; white-space: nowrap; }
.prep-kind.course { background: var(--blue); color: #fff; }
.prep-kind.read { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.prep-main { min-width: 0; }
.prep-title { display: inline-block; font-weight: 800; text-transform: uppercase; font-size: 1rem;
  letter-spacing: .01em; text-decoration: none; color: var(--ink); }
.prep-title:hover { color: var(--blue); }
.prep-star { color: var(--blue); }
.prep-dom { display: block; font-weight: 600; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.prep-hrs { font-weight: 700; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.prep-go { font-weight: 800; font-size: .76rem; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; color: var(--blue); border-bottom: 3px solid var(--blue); padding-bottom: 2px;
  white-space: nowrap; }
.prep-end { margin: 24px 0 8px; font-size: 1.04rem; }
.prep-total { font-weight: 800; color: var(--blue); white-space: nowrap; }
.prep-opt { margin: 0; font-size: .9rem; color: var(--muted); }
.prep-opt a { color: var(--blue); }
@media (max-width: 720px) {
  .prep-step { grid-template-columns: 34px 1fr; row-gap: 7px; padding: 14px 2px; }
  .prep-kind, .prep-main, .prep-hrs, .prep-go { grid-column: 2; }
}

/* ---------- Lab & study setup ---------- */
.lab-warn { border: var(--bw) solid var(--ink); background: #fbeae7; border-left: 10px solid var(--red);
  padding: 18px 22px; margin-bottom: 30px; }
.lab-warn h3 { font-weight: 800; text-transform: uppercase; font-size: 1.12rem; margin: 0 0 9px; color: var(--red); }
.lab-warn p { margin: 0 0 11px; color: var(--ink-2); }
.lab-warn ul { margin: 0; padding-left: 20px; }
.lab-warn li { margin-bottom: 7px; color: var(--ink); font-weight: 500; }
.lab-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 36px; }
.lab-items { display: grid; gap: 13px; }
.lab-item { border-left: 4px solid var(--blue); padding-left: 14px; }
.lab-k { display: block; font-weight: 800; }
.lab-v { display: block; color: var(--ink-2); font-size: .96rem; }
.lab-sources { margin-top: 28px; font-size: .85rem; color: var(--muted); }
.lab-sources a { color: var(--blue); }
@media (max-width: 720px) { .lab-grid { grid-template-columns: 1fr; } }

/* ---------- Blueprint ---------- */
.bp-facts { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--bw); background: var(--ink);
  border: var(--bw) solid var(--ink); margin-bottom: 46px; }
.bp-facts .fact { background: var(--paper-2); padding: 24px 22px; }
.bp-facts .fact .n { font-weight: 900; font-size: clamp(2rem,4vw,3rem); color: var(--c,var(--ink)); line-height: .9; }
.bp-facts .fact .l { font-weight: 600; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); margin-top: 8px; }

.weights-h { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 1.25rem;
  margin: 0 0 6px; }
.weights-note { color: var(--muted); margin: 0 0 26px; font-size: .98rem; }
.weights { display: flex; flex-direction: column; gap: 0; border-top: var(--bw) solid var(--ink); }
.wrow { display: grid; grid-template-columns: 46px 1fr 150px 64px; align-items: center; gap: 18px;
  padding: 16px 0; border-bottom: var(--bw) solid var(--ink); }
.wrow .widx { font-weight: 800; color: var(--muted); }
.wrow .wname a { font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: .98rem;
  text-decoration: none; color: var(--ink); }
.wrow .wname a:hover { color: var(--red); }
.wbar { height: 22px; background: var(--paper); border: 2px solid var(--ink); position: relative; }
.wbar .fill { display: block; height: 100%; width: 0; background: var(--c, var(--ink));
  transition: width 1.1s cubic-bezier(.2,.7,.3,1); }
.wpct { font-weight: 900; font-size: 1.5rem; text-align: right; color: var(--c, var(--ink)); }
.wpct small { font-size: .8rem; }

/* ---------- Domain cards ---------- */
.dom { border: var(--bw) solid var(--ink); background: var(--card); padding: 0; margin-bottom: 34px; }
.dom-head { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 18px;
  padding: 22px 26px; border-bottom: var(--bw) solid var(--ink); background: var(--paper-2); }
.dom-shape { width: 34px; height: 34px; flex: none; }
.dom-idx { font-weight: 900; font-size: 1.5rem; color: var(--muted); }
.dom-head h3 { font-weight: 800; text-transform: uppercase; font-size: clamp(1.1rem, 2.4vw, 1.55rem); }
.dom-wt { font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); color: var(--c, var(--ink)); line-height: .85; }
.dom-wt small { font-size: .9rem; vertical-align: super; }
.dom-body { padding: 26px; }
.dom-sum { font-size: 1.06rem; color: var(--ink-2); margin: 0 0 8px; }
.lbl { font-weight: 700; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); margin: 28px 0 14px; padding-bottom: 7px; border-bottom: 2px solid var(--ink); }
.concepts { display: grid; gap: 14px; }
.concept { padding-left: 20px; border-left: 5px solid var(--c, var(--ink)); }
.concept .c-name { font-weight: 800; }
.concept .c-detail { color: var(--ink-2); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 13px; height: 13px;
  background: var(--c, var(--ink)); }
.docs { display: flex; flex-wrap: wrap; gap: 10px; }
.docs a { font-weight: 600; font-size: .85rem; text-decoration: none; color: var(--ink);
  border: 2px solid var(--ink); padding: 8px 14px; background: var(--paper); }
.docs a:hover { background: var(--ink); color: var(--paper); }
.tips { margin: 28px -26px -26px; padding: 22px 26px; background: var(--c, var(--ink)); }
.tips .lbl { color: #fff; border-color: rgba(255,255,255,.5); }
.tips.on-yellow .lbl { color: var(--ink); border-color: rgba(21,18,13,.4); }
.tips ul { margin: 0; padding-left: 20px; }
.tips li { margin-bottom: 8px; color: #fff; }
.tips.on-yellow li { color: var(--ink); }

/* ---------- Study plan ---------- */
.weeks { display: grid; gap: var(--bw); background: var(--ink); border: var(--bw) solid var(--ink); }
.week { display: grid; grid-template-columns: 120px 1fr; background: var(--card); }
.week-no { background: var(--c, var(--ink)); color: #fff; font-weight: 900; font-size: 2.6rem;
  display: flex; align-items: center; justify-content: center; }
.week.on-yellow .week-no { color: var(--ink); }
.week-body { padding: 26px; }
.week-focus { font-weight: 700; font-size: 1.05rem; margin: 0 0 14px; }
.courses { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.courses a { font-weight: 600; font-size: .94rem; color: var(--blue); }
.courses .hrs { color: var(--muted); font-weight: 600; }
.tasks { margin: 0; padding-left: 20px; color: var(--ink-2); }
.tasks li { margin-bottom: 7px; }

/* ---------- Resources ---------- */
.res { list-style: none; padding: 0; margin: 0; border-top: var(--bw) solid var(--ink); }
.res li { display: grid; grid-template-columns: 30px 1fr; gap: 18px; align-items: start;
  padding: 20px 0; border-bottom: var(--bw) solid var(--ink); }
.res .mark { width: 20px; height: 20px; margin-top: 6px; background: var(--c, var(--ink)); }
.res .mark.circle { border-radius: 50%; }
.res h4 { font-weight: 800; text-transform: uppercase; font-size: 1.05rem; margin: 0 0 4px; }
.res h4 a { text-decoration: none; color: var(--ink); }
.res h4 a:hover { color: var(--red); }
.res p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.res p .where { color: var(--muted); font-weight: 600; }
.warn { margin-top: 28px; border: var(--bw) solid var(--ink); background: var(--yellow); padding: 22px 24px; }
.warn h4 { font-weight: 800; text-transform: uppercase; margin: 0 0 8px; }
.warn p { margin: 0; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { border-top: var(--bw) solid var(--ink); }
.faq details { border-bottom: var(--bw) solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; padding: 20px 4px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .01em; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 18px; height: 18px; background: var(--blue);
  border-radius: 50%; transition: transform .2s ease; }
.faq details[open] summary::after { background: var(--red); border-radius: 0; transform: rotate(45deg); }
.faq .answer { padding: 0 4px 22px; color: var(--ink-2); max-width: 80ch; }
.faq .answer p { margin: 0; }

/* ---------- Footer ---------- */
.ftr { background: var(--brand-navy); color: var(--paper); padding: 56px 0 64px; }
.ftr-logo { color: #fff; margin-bottom: 28px; }
.ftr-logo .brandmark { height: 30px; }
.ftr .marks { display: flex; gap: 16px; margin-bottom: 30px; }
.ftr .marks span { width: 38px; height: 38px; display: block; }
.ftr .marks .c1 { background: var(--blue); border-radius: 50%; }
.ftr .marks .c2 { background: var(--red); }
.ftr .marks .c3 { width: 0; height: 0; background: none; border-left: 19px solid transparent;
  border-right: 19px solid transparent; border-bottom: 38px solid var(--yellow); }
.disc { border: 2px solid rgba(255,255,255,.28); padding: 20px 22px; color: #c9d6e4; font-size: .92rem;
  max-width: 90ch; }
.disc b { color: #fff; }
.ftr-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 24px;
  color: #93a6ba; font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Reveal-on-scroll (only when JS is active; never hide otherwise) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Accessibility ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: #fff;
  padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn:focus-visible, .btn-start:focus-visible, .to-top:focus-visible, .print-btn:focus-visible,
.nav a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Contrast: keep yellow as fills/markers, darken yellow-as-text */
.stat.yellow .stat-n, .bp-facts .fact.yellow .n, .wrow.yellow .wpct, .dom.yellow .dom-wt { color: #8a6500; }

/* ---------- Hero TL;DR quick-start ---------- */
.tldr { list-style: none; counter-reset: step; margin: 0 0 30px; padding: 0; display: grid; gap: 9px; max-width: 62ch; }
.tldr li { counter-increment: step; position: relative; padding-left: 40px; color: var(--ink-2); font-size: 1.02rem; }
.tldr li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 27px; height: 27px;
  background: var(--blue); color: #fff; font-weight: 800; font-size: .85rem; border-radius: 50%;
  display: grid; place-items: center; }
.tldr b { color: var(--ink); }

/* ---------- Collapsible domain cards ---------- */
.dom > summary { cursor: pointer; list-style: none; position: relative; padding-right: 56px; }
.dom > summary::-webkit-details-marker { display: none; }
.dom > summary::after { content: "+"; position: absolute; right: 22px; top: 16px; font-weight: 700;
  font-size: 1.8rem; line-height: 1; color: var(--muted); }
.dom[open] > summary::after { content: "\2212"; }
.dom > summary:hover::after { color: var(--blue); }
.dom:not([open]) > summary { border-bottom: none; }

/* ---------- Back-to-top + print button ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 46px; height: 46px;
  background: var(--blue); color: #fff; border: var(--bw) solid var(--ink); font-size: 1.3rem; cursor: pointer;
  display: grid; place-items: center; box-shadow: 3px 3px 0 var(--ink); }
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--brand-navy); color: #fff; }
.print-btn { margin-top: 22px; background: transparent; color: var(--paper); border: 2px solid rgba(255,255,255,.4);
  font-family: var(--sans); font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 11px 18px; cursor: pointer; }
.print-btn:hover { background: rgba(255,255,255,.1); }

/* ---------- Print / PDF cheat sheet ---------- */
@media print {
  .site-header, .skip-link, .starthere, .hero-shapes, .cta, .tldr, .to-top, .print-btn, .navbtn { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { padding: 6px 0; border: none; }
  .display { font-size: 1.8rem; }
  .sec { padding: 12px 0; border-top: 1px solid #bbb; }
  .dom, .week, .faq details, .lab-warn { break-inside: avoid; }
  .ftr { background: #fff; color: #000; padding: 12px 0; }
  .ftr-logo, .ftr .marks { display: none !important; }
  .disc { color: #333; border-color: #999; }
  a { color: #000; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .dom > summary::after { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .bp-facts, .stats { grid-template-columns: repeat(2, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .wrow { grid-template-columns: 36px 1fr 56px; }
  .wrow .wbar { grid-column: 1 / -1; order: 5; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .edition { display: none; }
  .navbtn { display: block; }
  .nav { position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: var(--bw) solid var(--ink); padding: 6px 18px 14px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 6px; border-bottom: 1px solid rgba(21,18,13,.12); }
  .sec-head { grid-template-columns: 1fr; gap: 8px; }
  .sec-num { grid-row: auto; }
  .sec-sub { grid-column: 1; }
  .dom-head { grid-template-columns: auto 1fr; row-gap: 10px; }
  .dom-wt { grid-column: 2; justify-self: end; }
  .week { grid-template-columns: 1fr; }
  .week-no { height: 70px; }
  .bp-facts, .stats { grid-template-columns: 1fr 1fr; }
  .course-grid { grid-template-columns: 1fr; }
}


/* ---- per-cert accent -------------------------------------------------- */
:root { --accent: var(--blue); }
body.accent-blue   { --accent: var(--blue); }
body.accent-red    { --accent: var(--red); }
body.accent-yellow { --accent: var(--yellow); }
body.accent-ink    { --accent: var(--ink); }
.hdr.accent-red    { --accent: var(--red); }
.hdr.accent-yellow { --accent: var(--yellow); }
.hdr.accent-ink    { --accent: var(--ink); }
.hdr .logo-marks .m1 { background: var(--accent); }

/* ---- role x level matrix (hub) ---------------------------------------- */
.matrix { padding: 8px 0 64px; }
.mx-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mx { border-collapse: collapse; width: 100%; min-width: 33rem; }
.mx caption {
  text-align: left; font-weight: 600; font-size: .74rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); padding-bottom: 14px;
}
.mx th, .mx td { border: var(--bw) solid var(--line); padding: 16px 18px; text-align: left; }
.mx thead th {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; background: var(--paper-2);
}
.mx thead td { border: 0; }
.mx tbody th { font-size: 1.05rem; font-weight: 600; background: var(--paper-2); white-space: nowrap; }
.mx-has { padding: 0 !important; }
.mx-has a {
  display: flex; flex-direction: column; gap: 3px; text-decoration: none;
  color: var(--ink); padding: 16px 18px; border-left: 7px solid var(--accent);
  transition: background .15s ease;
}
.mx-has a:hover, .mx-has a:focus-visible { background: var(--card); }
.mx-has b { font-size: 1.28rem; letter-spacing: -.01em; }
.mx-has span { font-size: .86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.mx-none { color: var(--muted); text-align: center; background: repeating-linear-gradient(
  135deg, transparent, transparent 7px, rgba(21,18,13,.05) 7px, rgba(21,18,13,.05) 14px); }

/* ---- sub-domain weights (Developer only) ------------------------------ */
.subdomains { margin: 0 0 26px; }
.sd-list { list-style: none; margin: 6px 0 0; padding: 0; }
.subdomain {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 7px 0; border-bottom: 1px solid rgba(21,18,13,.12);
}
.subdomain:last-child { border-bottom: 0; }
.sd-name { font-size: .95rem; }
.sd-weight { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; white-space: nowrap; }

/* ---- provenance stamp -------------------------------------------------- */
.provenance {
  margin: 14px 0 0; font-size: .82rem; line-height: 1.55; color: rgba(235,229,214,.72);
  max-width: 62ch;
}
.provenance a { color: rgba(235,229,214,.92); }

/* ---- narrow screens ---------------------------------------------------- */
@media (max-width: 640px) {
  .mx th, .mx td, .mx-has a { padding: 13px 14px; }
  .mx-has b { font-size: 1.12rem; }
  .subdomain { gap: 10px; }
}

/* ---- hub: certification cards ----------------------------------------- */
.hub-hero .lede { max-width: 62ch; }
.hub-cards {
  display: grid; gap: 18px; margin: 46px 0 8px;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
}
.hub-card {
  --accent: var(--blue);
  display: flex; flex-direction: column; gap: 7px;
  padding: 24px 24px 26px; text-decoration: none; color: var(--ink);
  background: var(--card);
  border: var(--bw) solid var(--line); border-left-width: 9px; border-left-color: var(--accent);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.hub-card.accent-blue   { --accent: var(--blue); }
.hub-card.accent-red    { --accent: var(--red); }
.hub-card.accent-yellow { --accent: var(--yellow); }
.hub-card.accent-ink    { --accent: var(--ink); }
.hub-card:hover, .hub-card:focus-visible {
  transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); background: var(--paper-2);
}
.hub-card-role {
  font-size: .68rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--accent); filter: saturate(.9) brightness(.85);
}
.hub-card h3 {
  margin: 2px 0 0; font-size: 1.32rem; font-weight: 600; line-height: 1.16; letter-spacing: -.015em;
}
.hub-card p { margin: 0; font-size: .95rem; color: var(--ink-2); line-height: 1.5; flex: 1; }
.hub-card-meta {
  margin-top: 10px; padding-top: 11px; border-top: 1px solid rgba(21,18,13,.16);
  font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .hub-cards { gap: 14px; margin-top: 34px; }
  .hub-card { padding: 20px 20px 22px; }
  .hub-card h3 { font-size: 1.18rem; }
}

/* ---- nav: keep it on one line, and let it scroll rather than overflow --- */
.nav { flex-wrap: wrap; align-items: center; row-gap: 2px; }
.nav a.cert-link {
  font-variant-numeric: tabular-nums;
  border-bottom: 3px solid transparent;
}
.nav a.cert-link.accent-blue   { border-bottom-color: rgba(10,111,190,.35); }
.nav a.cert-link.accent-red    { border-bottom-color: rgba(216,57,43,.35); }
.nav a.cert-link.accent-yellow { border-bottom-color: rgba(243,179,11,.5); }
.nav a.cert-link.accent-ink    { border-bottom-color: rgba(21,18,13,.3); }
.nav a.cert-link[aria-current="page"] { color: var(--ink); border-bottom-width: 3px; }
.nav a.cert-link.accent-blue[aria-current="page"]   { border-bottom-color: var(--blue); }
.nav a.cert-link.accent-red[aria-current="page"]    { border-bottom-color: var(--red); }
.nav a.cert-link.accent-yellow[aria-current="page"] { border-bottom-color: var(--yellow); }
.nav a.cert-link.accent-ink[aria-current="page"]    { border-bottom-color: var(--ink); }

/* ---- decorative shapes must never sit above content -------------------- */
.hero-shapes { pointer-events: none; z-index: 0; }
.hero-in, .hub-cards, .matrix .wrap { position: relative; z-index: 2; }

/* The hub hero is shorter than a cert hero, so the default square position
   lands inside the card grid and shows through the gaps. Reposition it. */
.hub-hero .hs-square { bottom: auto; top: 50%; right: 13%; }
@media (max-width: 900px) {
  .hub-hero .hs-square, .hub-hero .hs-ring { display: none; }
}

/* Oversized display type must never clip its last glyph on narrow screens. */
@media (max-width: 560px) {
  .display { font-size: clamp(2.1rem, 12.5vw, 3.4rem); letter-spacing: -.015em; }
  .hub-hero .hs-circle { display: none; }
}
