
@font-face{font-family:"Barlow";src:url(/fonts/barlow-400.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:"Barlow";src:url(/fonts/barlow-500.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap;}
@font-face{font-family:"Barlow";src:url(/fonts/barlow-600.woff2) format("woff2");font-weight:600;font-style:normal;font-display:swap;}
@font-face{font-family:"Barlow";src:url(/fonts/barlow-700.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap;}
@font-face{font-family:"Barlow";src:url(/fonts/barlow-700-italic.woff2) format("woff2");font-weight:700;font-style:italic;font-display:swap;}
@font-face{font-family:"Barlow";src:url(/fonts/barlow-800.woff2) format("woff2");font-weight:800;font-style:normal;font-display:swap;}
@font-face{font-family:"Barlow";src:url(/fonts/barlow-800-italic.woff2) format("woff2");font-weight:800;font-style:italic;font-display:swap;}
@font-face{font-family:"Barlow";src:url(/fonts/barlow-900.woff2) format("woff2");font-weight:900;font-style:normal;font-display:swap;}
@font-face{font-family:"Barlow Condensed";src:url(/fonts/barlow-condensed-600.woff2) format("woff2");font-weight:600;font-style:normal;font-display:swap;}
@font-face{font-family:"Barlow Condensed";src:url(/fonts/barlow-condensed-700.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap;}

:root {
  /* Platform palette */
  --green: #1d4b2f;
  --green-dark: #00190f;
  --ink: #413b3e;
  --gray: #5c5558;
  --sage: #566e5e;          /* small label text; 4.85:1 or better on every tinted background */
  --sky: #f0f4f2;
  --line: #d1dbd6;
  --amber: #e85d04;         /* large text and decoration only */
  --amber-text: #c24d05;    /* small amber text; 4.8:1 */
  --magenta: #e800a5;
  --link: #b8007e;          /* 5.5:1 or better on every tinted background */
  --link-hover: #a3006f;
  --link-line: #f5c2e0;
  --paper: #ffffff;
  --ok: #166534;
  --bad: #b42318;

  /* Themeable (tenant sites override these) */
  --brand: var(--green);
  --brand-dark: var(--green-dark);
  --brand-ink: #ffffff;
  --brand-text: var(--green);
  --accent: var(--amber);
  --accent-text: var(--amber-text);
  --radiant: linear-gradient(60deg, #e85d04 0%, #e85d04 50%, #e800a5 100%);
  --headline: linear-gradient(90deg, #e85d04 0%, #e85d04 45%, #e800a5 100%);

  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 25, 15, .12);
  --shadow-sm: 0 4px 14px rgba(0, 25, 15, .09);
  --max: 1180px;
  --sans: Barlow, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --condensed: "Barlow Condensed", Barlow, "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Inline links in running text */
:is(p, li, dd, td, label, small) a:not([class]) {
  color: var(--link); text-decoration: none; border-bottom: 1.5px solid var(--link-line);
}
:is(p, li, dd, td, label, small) a:not([class]):hover { color: var(--link-hover); border-bottom-color: var(--link); }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--green-dark); color: #fff; padding: .6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header::before { content: ""; display: block; height: 3px; background: var(--radiant); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a { color: var(--gray); font-weight: 500; font-size: 15px; text-decoration: none; }
.site-nav a:hover { color: var(--brand-text); }
.site-nav a.pill {
  color: var(--brand-text); font-weight: 600; border: 1.5px solid var(--brand-text);
  border-radius: 999px; padding: 8px 18px; transition: background .15s, color .15s;
}
.site-nav a.pill:hover { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Signed-in menu (no JavaScript: <details>) */
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--brand-text);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 34px 8px 16px; max-width: 16rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; min-height: 40px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.menu[open] summary { border-color: var(--brand-text); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 16rem; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 10px;
}
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel a, .menu-panel .linkish {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%;
  padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font: inherit; font-size: 15px;
}
.menu-panel a:hover, .menu-panel .linkish:hover { background: var(--sky); color: var(--brand-text); }
.menu-panel a[aria-current="page"] { font-weight: 700; }
.menu-panel li a:not([class]) { color: var(--ink); border-bottom: 0; }
.menu-panel li a:not([class]):hover { color: var(--brand-text); }
.menu-panel nav { border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 6px; }
.menu-label { font-family: var(--condensed); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); padding: 4px 12px; }
.linkish { background: none; border: 0; cursor: pointer; text-align: left; }
.tag { font-family: var(--condensed); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--sky); border: 1px solid var(--line); color: var(--brand-text); border-radius: 999px; padding: 1px 8px; }

/* Notices */
.notice { border-radius: var(--radius); padding: 16px 20px; border: 1px solid var(--line); background: var(--sky); }
.notice.error { background: #fdecea; border-color: #f3b4ad; color: #7a1a12; }
.notice.ok { background: #e8f3ec; border-color: #b5d6c0; color: #14532d; }
.notice.warn { background: #fff6ef; border-color: #f6c9a6; color: #5c2603; }
.notice.warn p + p, .notice.warn ul { margin-top: 8px; }
.form-error { color: #b42318; font-weight: 600; }

/* Wordmark: "trainfortuesday" */
.wordmark { display: inline-flex; align-items: center; gap: 0; text-decoration: none; color: var(--green); }
.wm-mark { width: 42px; height: 49px; flex: none; margin-top: -4px; }
.wm-text { margin-left: -3px; display: flex; flex-direction: column; font-family: var(--sans); font-style: italic; font-weight: 800; line-height: .84; letter-spacing: -.015em; }
.wm-top { font-size: 26px; padding-left: 10px; }
.wm-bottom { display: flex; align-items: baseline; gap: 3px; font-size: 26px; }
.wm-bottom .for { font-size: 14px; font-weight: 700; }

/* Tenant identity in the header */
.tenant-id { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.tenant-id img { height: 44px; width: auto; }
.tenant-id .name { display: block; font-weight: 800; font-size: 20px; color: var(--brand-text); line-height: 1.15; }
.tenant-id .via { display: block; font-size: 13px; color: var(--gray); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; min-height: 48px;
  font-family: var(--sans); font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none;
  border-radius: 999px; padding: 14px 26px; cursor: pointer; border: 0;
  transition: transform .15s, box-shadow .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand-text); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand-text); }
.btn-white { background: #fff; color: var(--green); padding: 8px 18px; min-height: 40px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--condensed); font-weight: 700; font-size: 15px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--sage); margin-bottom: 10px;
}
.lead { font-size: 19px; color: var(--gray); max-width: 38ch; }
.muted { color: var(--gray); }
.spaced { margin-top: 24px; }
.spaced-bottom { margin-bottom: 20px; }
.section-title { font-weight: 800; font-size: clamp(26px, 3vw, 34px); margin-bottom: 24px; }
.back-link { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.stack-gap > * + * { margin-top: 16px; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 40px; }
.section-head h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 38px); }
.section-head p { color: var(--gray); margin-top: 10px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 460px at 88% -10%, rgba(119, 147, 129, .16), transparent 62%),
    linear-gradient(180deg, var(--paper) 0%, var(--sky) 100%);
  padding: 74px 0 66px; overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero.solo .wrap { grid-template-columns: 1fr; }
.hero h1 { font-weight: 900; font-size: clamp(38px, 5vw, 60px); line-height: 1.03; letter-spacing: -.01em; margin-bottom: 20px; }
.hero h1 .hl { color: var(--accent-text); }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero h1 .hl { background: var(--headline); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.hero .lead { margin-bottom: 30px; }

/* Decorative stack of course cards in the hero */
.card-stack { position: relative; height: 360px; }
.mock {
  position: absolute; width: 240px; background: #fff; border-radius: 12px; box-shadow: var(--shadow);
  overflow: hidden; border: 1px solid rgba(0, 25, 15, .06);
}
.mock .band { height: 128px; padding: 18px 20px; display: flex; align-items: flex-end; color: #fff;
  font-family: var(--condensed); font-weight: 700; font-size: 26px; line-height: 1; text-transform: uppercase; }
.mock .body { padding: 14px 20px 18px; }
.mock .l { height: 9px; border-radius: 6px; background: #e3e9e6; margin-bottom: 8px; }
.mock .l.short { width: 60%; }
.mock .chip { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--green);
  border: 1px solid var(--line); background: var(--sky); border-radius: 999px; padding: 3px 10px; }
.mock.m1 { left: 4%; top: 10px; transform: rotate(-6deg); }
.mock.m1 .band { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.mock.m2 { left: 44%; top: 40px; transform: rotate(4deg); z-index: 2; }
.mock.m2 .band { background: linear-gradient(135deg, #5e8570, #3f5c4b); }
.mock.m3 { left: 10%; top: 165px; transform: rotate(-1deg); z-index: 1; }
.mock.m3 .band { background: linear-gradient(135deg, var(--accent), var(--accent-text)); }

/* ---------- Home page (main site) ---------- */
.home-hero { background:
    radial-gradient(760px 460px at 78% 40%, rgba(119, 160, 133, .22), transparent 65%),
    linear-gradient(160deg, #0b2a1a 0%, var(--green) 100%);
  color: #fff; padding: 76px 0 72px; }
.home-hero h1 { color: #fff; }
.home-hero h1 .hl { color: #f7c08f; background: none; -webkit-background-clip: border-box; background-clip: border-box; }
.home-hero .eyebrow { color: #c9ddd0; }
.home-hero .lead { color: #dfe9e3; }
.btn-light { background: #fff; color: var(--green); box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
.btn-light:hover { background: #eef5f1; }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.preview { position: relative; max-width: 470px; margin: 0 auto; padding: 0 0 56px; }
.screen { background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); overflow: hidden; transform: rotate(-1.5deg); }
.chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef3f0; border-bottom: 1px solid var(--line); }
.chrome > span:not(.url) { width: 9px; height: 9px; border-radius: 50%; background: #c9d4ce; }
.chrome .url { margin-left: 10px; font-size: 12px; color: var(--gray); background: #fff; border-radius: 99px; padding: 2px 12px; }
.screen-body { padding: 18px 22px 22px; }
.preview .k { display: block; font-family: var(--condensed); font-weight: 700; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--sage); }
.screen .title { font-weight: 900; font-size: 24px; line-height: 1.1; margin: 4px 0 10px; color: var(--ink); }
.screen .bar { height: 6px; border-radius: 99px; background: #e3e9e6; overflow: hidden; margin-bottom: 14px; }
.screen .fill { display: block; width: 50%; height: 100%; background: var(--green); }
.screen .l { display: block; height: 8px; border-radius: 6px; background: #e3e9e6; margin-bottom: 7px; }
.screen .l.mid { width: 72%; }
.screen .law { margin: 12px 0; padding: 10px 12px; border-left: 4px solid var(--green); background: var(--sky); border-radius: 0 10px 10px 0; }
.screen .law .t, .screen .q .t { display: block; font-size: 14px; line-height: 1.35; color: var(--ink); }
.screen .q { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.screen .q .t { font-weight: 700; margin-bottom: 8px; }
.screen .opt { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; margin-top: 6px; }
.screen .opt.on { border-color: var(--ok); background: #e8f3ec; font-weight: 700; color: #14532d; }
.screen .tick { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 11px; }
.mini-cert { position: absolute; right: -18px; bottom: 0; width: 210px; background: #fff; border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .32); transform: rotate(3deg); border-top: 5px solid #e9a46a; }
.mini-cert .name { font-weight: 900; font-style: italic; font-size: 20px; color: var(--green); margin-top: 6px; }
.mini-cert .course { font-size: 13px; color: var(--gray); }
.mini-cert .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.mini-cert .qr { width: 34px; height: 34px; border-radius: 4px;
  background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 11px 11px; }
.mini-cert .valid { font-size: 12.5px; font-weight: 700; color: #14532d; background: #e8f3ec; border-radius: 99px; padding: 3px 10px; }

.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.route::before { content: ""; position: absolute; top: 27px; left: 16.6%; right: 16.6%; height: 0;
  border-top: 3px dashed #c3d2c9; }
.stop { position: relative; text-align: center; padding: 0 8px; }
.stop .node { position: relative; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%;
  background: #fff; color: var(--green); font-weight: 900; font-style: italic; font-size: 24px;
  box-shadow: 0 0 0 5px #fff, inset 0 0 0 3px var(--green); }
.stop:last-child .node { background: var(--green); color: #fff; box-shadow: 0 0 0 5px #fff; font-style: normal; }
.stop h3 { font-weight: 800; font-size: 20px; margin-bottom: 8px; }
.stop p { color: var(--gray); font-size: 15.5px; max-width: 32ch; margin: 0 auto; }

.offices { align-items: center; }
.offices-side { display: flex; flex-direction: column; align-items: center; gap: 26px; flex: 0 1 340px; }
.layers { position: relative; width: 300px; height: 210px; }
.sheet { position: absolute; width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm);
  padding: 12px 14px 14px; border-top: 5px solid var(--green); }
.sheet .k { display: block; font-family: var(--condensed); font-weight: 700; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--sage); }
.sheet .t { display: block; font-weight: 700; font-size: 14.5px; color: var(--ink); margin: 2px 0 8px; }
.sheet .l { display: block; height: 7px; border-radius: 6px; background: #e3e9e6; margin-top: 6px; }
.sheet .l.short { width: 60%; }
.sheet.s1 { left: 0; top: 0; }
.sheet.s2 { left: 34px; top: 62px; border-top-color: #7a9a85; }
.sheet.s3 { left: 68px; top: 124px; border-top-color: #e9a46a; }

/* Quiet support band (home page) */
.band-soft { background: #fbf3ea; border-top: 1px solid #f1dcc6; border-bottom: 1px solid #f1dcc6; padding: 14px 0; }
.band-soft .wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; text-align: center; font-size: 15.5px; color: var(--ink); }

/* ---------- Radiant support band ---------- */
.band-radiant { background: var(--radiant); padding: 13px 0; }
.band-radiant .wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px;
  text-align: center; font-size: 15px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.band-radiant .btn-white { text-shadow: none; }

/* ---------- Sections and cards ---------- */
.section { padding: 70px 0; }
.section.alt { background: var(--sky); }
.section.rule { border-top: 1px solid var(--line); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--sky); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.section.alt .step { background: #fff; }
.step .num { font-family: var(--condensed); font-weight: 700; font-size: 15px; letter-spacing: .1em; color: var(--brand-text); margin-bottom: 14px; }
.step h3 { font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--gray); font-size: 15.5px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.card > :first-child { margin-top: 0; }
.card h2 { font-weight: 800; font-size: 26px; margin-bottom: 8px; }
.card p + p { margin-top: 10px; }

.feature-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  background: #fff; border-left: 6px solid var(--brand); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 30px 32px;
}
.feature-card > div { flex: 1 1 420px; }
.feature-card h2 { font-weight: 800; font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 10px; }
.feature-card p { color: var(--gray); max-width: 64ch; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.ticks li { padding-left: 26px; position: relative; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px;
  border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }

.about-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.about-band h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 6px; }
.about-band p { color: var(--gray); font-size: 16.5px; max-width: 58ch; }

/* ---------- Forms ---------- */
form.stack { display: grid; gap: 10px; max-width: 36rem; }
form.stack.wide { max-width: none; }
label { font-weight: 700; }
.hint { color: var(--gray); font-size: 15px; }
input[type=text], input[type=email], input[type=search] {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1.5px solid #8a9a91; border-radius: 999px; padding: 11px 18px; width: 100%; min-height: 48px;
}
input[type=text]:focus, input[type=email]:focus, input[type=search]:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--brand-text); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 18rem; }

/* ---------- Records ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle;
  font-family: var(--condensed); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; color: #fff; }
.status.valid { background: var(--ok); }
.status.revoked, .status.expired { background: var(--bad); }
.status.invited, .status.requested { background: #8a3a04; }
.status.active { background: var(--ok); }
.status.denied, .status.removed { background: #5c5558; }
.result { margin-top: 32px; }
.result h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
dl.record { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 18px 0 0; }
dl.record dt { font-weight: 700; color: var(--gray); }
dl.record dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Courses ---------- */
.plain { list-style: none; padding: 0; margin: 10px 0 0; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 20px; }
.course-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; transition: box-shadow .16s, transform .16s; }
.course-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.course-card .band { background: linear-gradient(140deg, var(--brand), var(--brand-dark)); color: var(--brand-ink); padding: 18px 20px 16px; min-height: 110px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.course-card .band.own { background: linear-gradient(140deg, var(--accent), var(--accent-text)); color: #fff; }
.course-card .band h3 { color: inherit; font-family: var(--condensed); font-weight: 700; font-size: 26px; line-height: 1.02; text-transform: uppercase; }
.course-card .kind { align-self: flex-start; font-family: var(--condensed); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255, 255, 255, .2); border-radius: 999px; padding: 2px 10px; }
.course-card .body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-card .body p { color: var(--gray); font-size: 15.5px; }
.course-card .more { margin-top: auto; font-weight: 700; color: var(--brand-text); }
.course-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.lesson-layout { display: grid; grid-template-columns: 17rem 1fr; gap: 48px; align-items: start; padding: 40px 0 70px; }
.lesson-nav { position: sticky; top: 96px; }
.lesson-nav ol { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 2px; counter-reset: l; }
.lesson-nav li { counter-increment: l; }
.lesson-nav a.lesson-link { display: flex; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.35; }
.lesson-nav a.lesson-link::before { content: counter(l); flex: 0 0 1.6em; height: 1.6em; border-radius: 50%; display: inline-grid; place-items: center;
  font-family: var(--condensed); font-weight: 700; font-size: 13px; background: var(--sky); border: 1px solid var(--line); color: var(--brand-text); }
.lesson-nav a.lesson-link:hover { background: var(--sky); }
.lesson-nav a.lesson-link[aria-current="page"] { background: var(--sky); font-weight: 700; }
.lesson-nav a.lesson-link[aria-current="page"]::before { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.lesson-nav a.lesson-link.done::before { content: "✓"; background: #e8f3ec; border-color: #b5d6c0; color: var(--ok); }
.lesson-nav a.lesson-link.done[aria-current="page"]::before { background: var(--ok); color: #fff; border-color: var(--ok); }
.lesson-list a.done::after { content: "Finished"; margin-left: auto; font-family: var(--condensed); font-weight: 700; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ok); }
progress.progress { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border: 0; border-radius: 999px; background: #e3e9e6; overflow: hidden; }
progress.progress::-webkit-progress-bar { background: #e3e9e6; border-radius: 999px; }
progress.progress::-webkit-progress-value { background: var(--brand); border-radius: 999px; }
progress.progress::-moz-progress-bar { background: var(--brand); border-radius: 999px; }
.status-line { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--gray); }
.badge.passed { background: #e8f3ec; border-color: #b5d6c0; color: #14532d; }
.quiz-card { margin-top: 24px; }
.quiz-q { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: #fff; }
.quiz-q + .quiz-q { margin-top: 18px; }
.quiz-q fieldset { border: 0; padding: 0; margin: 0; }
.quiz-q legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 18px; }
.quiz-q .qnum { display: block; font-family: var(--condensed); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); margin-bottom: 6px; }
.quiz-q .setup { display: block; font-weight: 400; color: var(--gray); margin-bottom: 8px; }
.quiz-q.missing { border-color: #b42318; box-shadow: 0 0 0 1px #b42318; }
.quiz-q .result { margin-top: 14px; }
.choice.picked { border-color: var(--brand-text); background: var(--sky); }
.score { font-weight: 900; font-size: clamp(48px, 7vw, 72px); line-height: 1; }
.lesson-nav .back { display: block; font-weight: 700; color: var(--brand-text); text-decoration: none; font-size: 15px; line-height: 1.35; }
.lesson { max-width: 46rem; }
.lesson > h1 { font-weight: 900; font-size: clamp(30px, 4vw, 44px); margin-bottom: 24px; }
.lesson > * + * { margin-top: 24px; }
.prose > * + * { margin-top: 14px; }
.prose h2 { font-weight: 800; font-size: 26px; margin-top: 32px; }
.prose h3 { font-weight: 700; font-size: 20px; margin-top: 24px; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 0; }
.prose li + li { margin-top: 6px; }
.prose { font-size: 18px; line-height: 1.65; }
.figure { margin: 0; }
.figure img { display: block; border-radius: 12px; border: 1px solid var(--line); }
.figure figcaption { color: var(--gray); font-size: 15px; margin-top: 8px; }
.video { margin: 0; }
.video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; overflow: hidden; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video figcaption { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin-top: 8px; font-size: 15px; color: var(--gray); }
.video .video-title { font-weight: 700; color: var(--ink); }
.video-switch { font-weight: 600; }
.transcript { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: #fff; }
.transcript summary { cursor: pointer; font-weight: 700; color: var(--brand-text); }
.transcript .prose { font-size: 16px; margin-top: 8px; }
.callout { border-radius: var(--radius); padding: 18px 22px; border: 1px solid var(--line); border-left: 6px solid var(--brand); background: var(--sky); }
.callout.warning { border-left-color: var(--amber); background: #fff6ef; }
.callout.law { border-left-color: var(--green-dark); background: #f4f6f5; }
.callout.tip { border-left-color: var(--accent); background: #fff; }
.callout-label { font-family: var(--condensed); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); }
.callout.warning .callout-label { color: var(--amber-text); }
.callout-title { font-weight: 800; font-size: 19px; margin: 4px 0 8px; }
.callout .prose { font-size: 17px; }
.check { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: #fff; box-shadow: var(--shadow-sm); }
.check fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.check legend { padding: 0; margin-bottom: 12px; font-weight: 700; font-size: 18px; }
.check .setup { display: block; font-weight: 400; color: var(--gray); margin-bottom: 8px; }
.check .hint { font-weight: 400; }
.choice { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; cursor: pointer; }
.choice:hover { border-color: var(--brand-text); }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.check .notice { margin-top: 16px; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 40px; }
.pager .btn { max-width: 100%; }
.lesson-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: l; }
.lesson-list li { counter-increment: l; }
.lesson-list a { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  color: var(--ink); text-decoration: none; font-weight: 600; }
.lesson-list a::before { content: counter(l, decimal-leading-zero); font-family: var(--condensed); font-weight: 700; color: var(--brand-text); letter-spacing: .06em; }
.lesson-list a:hover { border-color: var(--brand-text); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--gray); font-size: 15px; margin-bottom: 24px; }

/* ---------- Certificates ---------- */
.certificate { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 48px 40px 32px; text-align: center; overflow: hidden; max-width: 60rem; }
.certificate::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--radiant); }
.certificate.revoked { opacity: .75; }
.cert-tenant { font-weight: 700; color: var(--brand-text); }
.cert-kind { font-family: var(--condensed); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin-top: 18px; }
.cert-small { color: var(--gray); font-size: 15.5px; margin-top: 10px; }
.cert-name { font-weight: 900; font-size: clamp(32px, 5vw, 50px); line-height: 1.05; margin: 10px auto 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); max-width: 36rem; overflow-wrap: anywhere; }
.cert-course { font-weight: 700; font-size: clamp(22px, 3vw, 28px); margin-top: 8px; }
.cert-foot { display: flex; gap: 20px; align-items: center; justify-content: center; text-align: left; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.cert-foot .qr { width: 112px; flex: none; }
.cert-foot .qr svg { display: block; width: 100%; height: auto; }
.cert-foot code { overflow-wrap: anywhere; }
.cert-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cert-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 16px 20px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; }
.cert-row:hover { border-color: var(--brand-text); }
.cert-row .title { font-weight: 700; }
.cert-row .status { grid-row: 1 / span 2; grid-column: 2; }

/* ---------- Editor ---------- */
textarea.tiny { min-height: 4.5rem; }
.block-editor { border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; padding: 16px 18px 14px; margin: 0; display: grid; gap: 8px; background: #fff; }
.block-editor legend { font-weight: 800; padding: 0 6px; }
.block-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.block-tools .btn[disabled] { opacity: .45; cursor: default; transform: none; }
.add-blocks { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 0; }
.field-legend { font-weight: 700; }
.qfields { display: grid; gap: 8px; }
.qfields[data-type="true_false"] .only-choice { display: none; }
.qfields[data-type="single"] .only-tf, .qfields[data-type="multiple"] .only-tf { display: none; }
.choice-row { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.choice-row input[type=checkbox] { width: 22px; height: 22px; flex: none; accent-color: var(--brand); }
.choice-row input[type=text] { min-height: 40px; padding: 8px 14px; }
.md-help { font-size: 15px; color: var(--gray); }
.md-help summary { cursor: pointer; font-weight: 600; color: var(--brand-text); }
.md-help ul { margin: 6px 0 0; }
.sticky-save { position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 30%); padding: 18px 0 14px; z-index: 5; }
.item-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.item { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.item .grow { flex: 1 1 16rem; min-width: 0; }
.item .grow a { font-weight: 700; }
.item-list li a:not([class]) { color: var(--brand-text); border-bottom: 0; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.item-list li a:not([class]):hover { text-decoration-color: currentColor; }
.item .meta-line { display: block; color: var(--gray); font-size: 14.5px; }
.item.review { border-color: #f6c9a6; background: #fff9f4; }
.shared-preview { border: 1px dashed var(--line); border-radius: 12px; padding: 14px 18px; background: var(--sky); }
.shared-preview > summary { cursor: pointer; font-weight: 700; }
.shared-preview .prose { font-size: 16px; }

/* ---------- Admin ---------- */
.admin-layout { display: grid; grid-template-columns: 15rem 1fr; gap: 40px; align-items: start; padding: 36px 24px 70px; }
.admin-nav { position: sticky; top: 96px; }
.admin-nav ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 2px; }
.admin-scope { font-weight: 800; font-size: 18px; line-height: 1.2; margin-bottom: 8px; }
a.admin-link { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
a.admin-link:hover { background: var(--sky); color: var(--brand-text); }
a.admin-link[aria-current="page"] { background: var(--sky); font-weight: 700; color: var(--brand-text); box-shadow: inset 3px 0 0 var(--brand); }
.admin-switch { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); }
.admin-nav .hint { margin-top: 14px; }
.admin-main { min-width: 0; }
.admin-main > * + * { margin-top: 28px; }
.admin-main h1 { font-weight: 900; font-size: clamp(30px, 4vw, 42px); }
.admin-main h2 { font-weight: 800; font-size: 24px; }
.admin-main .card h2 { font-size: 22px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--ink); text-decoration: none; display: block; }
a.stat:hover { border-color: var(--brand-text); }
.stat .n { display: block; font-weight: 900; font-size: 34px; line-height: 1.1; }
.stat .l { color: var(--gray); font-size: 15px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.toolbar .field { display: grid; gap: 4px; }
.toolbar input, .toolbar select { min-height: 44px; }
.inline { display: inline; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn-danger { background: #b42318; color: #fff; }
.btn-danger:hover { background: #8f1c13; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 16px 24px; }
.field-row { display: grid; gap: 6px; }
textarea.short { min-height: 7rem; }
.logo-preview { max-height: 64px; width: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: #fff; }
.plain-fieldset { border: 0; padding: 0; margin: 0; }
.plain-fieldset legend { font-weight: 700; padding: 0; margin-bottom: 4px; }
.cert-row .btn-row, .cert-row form.inline { grid-row: 1 / span 2; grid-column: 2; }
.cert-row .revoke { grid-column: 1 / -1; margin-top: 8px; }
.swatch { display: inline-block; width: 1.1em; height: 1.1em; border-radius: 4px; border: 1px solid var(--line); vertical-align: -0.2em; }
input[type=color] { width: 56px; height: 44px; padding: 2px; border: 1.5px solid #8a9a91; border-radius: 10px; background: #fff; }
input[type=file] { font: inherit; font-size: 15px; }
.preview-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.cell-status { white-space: nowrap; font-size: 14.5px; }
.cell-status.passed { color: var(--ok); font-weight: 700; }
.cell-status.none { color: var(--gray); }
details.danger { border: 1px solid #f3b4ad; border-radius: var(--radius); padding: 14px 18px; background: #fff; }
details.danger summary { cursor: pointer; font-weight: 700; color: #b42318; }
pre.detail { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; color: var(--gray); max-width: 40rem; }
@media (max-width: 860px) {
  .admin-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 20px; }
  .admin-nav { position: static; }
  .admin-nav ul { display: flex; flex-wrap: wrap; gap: 6px; }
}
.table { width: 100%; border-collapse: collapse; font-size: 15.5px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--condensed); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; color: var(--gray); background: var(--sky); }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
textarea { font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; width: 100%; min-height: 16rem; padding: 12px 14px;
  border: 1.5px solid #8a9a91; border-radius: 12px; color: var(--ink); }
textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
select { font: inherit; font-size: 16px; padding: 10px 14px; border: 1.5px solid #8a9a91; border-radius: 999px; background: #fff; min-height: 48px; color: var(--ink); }
.errors { margin: 8px 0 0; padding-left: 1.2em; }
.badge { display: inline-block; font-family: var(--condensed); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 999px; padding: 2px 10px; border: 1px solid var(--line); background: var(--sky); color: var(--gray); }
.badge.live { background: #e8f3ec; border-color: #b5d6c0; color: #14532d; }
.badge.draft { background: #fff6ef; border-color: #f6c9a6; color: #8a3a04; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--green-dark); color: #c7d3cc; padding: 30px 0; font-size: 14.5px; text-align: center; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--radiant); }
.site-footer p + p { margin-top: 8px; }
.site-footer a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.site-footer a:hover { border-bottom-color: #fff; }
.site-footer :is(p, li) a:not([class]) { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.site-footer :is(p, li) a:not([class]):hover { color: #fff; border-bottom-color: #fff; }
.site-footer .legal { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 13.5px; }
.site-footer .legal a { color: #c7d3cc; border-bottom-color: transparent; }
.site-footer .legal a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, .5); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .lesson-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .lesson-nav { position: static; order: 2; border-top: 1px solid var(--line); padding-top: 20px; }
  .hero { padding: 48px 0 44px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .card-stack { display: none; }
  .home-hero { padding: 44px 0 40px; }
  .preview { margin-top: 12px; padding-bottom: 70px; }
  .mini-cert { right: 0; width: 190px; }
  .route { grid-template-columns: 1fr; gap: 28px; }
  .route::before { top: 29px; bottom: 60px; left: 28px; right: auto; border-top: 0; border-left: 3px dashed #c3d2c9; }
  .stop { text-align: left; padding-left: 80px; min-height: 58px; }
  .stop .node { position: absolute; left: 0; top: 0; margin: 0; }
  .stop p { margin: 0; }
  .offices-side { flex-basis: 100%; }
  .layers { width: 100%; max-width: 300px; }
  .sheet { width: 76%; }
  .sheet.s2 { left: 12%; }
  .sheet.s3 { left: 24%; }
  .steps { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; }
  .wm-top, .wm-bottom { font-size: 23px; }
  .wm-mark { width: 36px; height: 42px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .site-nav > a:not(.pill) { display: none; }
  .menu summary { max-width: 11rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover { transform: none; }
}
@media print {
  .site-header, .site-footer, .skip-link, .band-radiant, .band-soft { display: none; }
}
