/* HazwoperOSHA.org - Monochrome Steel: black, white and steel greys with one hazard-red accent (the dot in the
   logo, the cart count, kickers and hover lines), Inter Tight, near-square corners. Layout is unchanged. */
:root {
  --black: #0a0a0a;
  --ink: #18181b;
  --body: #3f3f46;
  --mute: #63636b;
  --line: #e4e4e7;
  --line-dk: #d4d4d8;
  --alu: #f4f4f5;
  --alu-2: #fafafa;
  --white: #ffffff;
  --red: #e10600;
  --red-dk: #b80500;
  --ok: #157a3c;
  --bad: #c62828;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 3px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.07);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.08), 0 18px 40px rgba(0,0,0,.12);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 15.5px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
a { color: var(--black); text-decoration-color: #a1a1aa; text-underline-offset: 3px; }
a:hover { color: var(--red-dk); text-decoration-color: currentColor; }
h1, h2, h3, h4 { font-family: var(--sans); color: var(--ink); line-height: 1.15; margin: 0 0 .55em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); font-weight: 800; letter-spacing: -.028em; }
h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 900px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; color: var(--ink); padding: 8px 12px; z-index: 50; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.muted { color: var(--mute); }
.small { font-size: .9rem; }
.center { text-align: center; margin-top: 28px; }
.mt { margin-top: 48px; }
.mt-sm { margin-top: 12px; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.ico-lg { width: 34px; height: 34px; }
.ico-xl { width: 120px; height: 120px; stroke-width: 1.2; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- top utility bar ---------- */
.topbar { background: var(--black); color: #a1a1aa; font-size: .86rem; }
.topbar-row { display: flex; justify-content: space-between; align-items: center; gap: 8px 22px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #e4e4e7; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-contact, .topbar-links { display: flex; gap: 6px 20px; flex-wrap: wrap; }

/* ---------- logo row ---------- */
.site-header { background: #fff; position: relative; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 16px 40px; min-height: 76px; padding-top: 10px; padding-bottom: 10px; }
.logo { text-decoration: none; display: inline-flex; flex: none; }
/* Wordmark: lowercase "hazwoperosha", the red dot, then "org". */
.wm { display: inline-flex; align-items: baseline; font: 800 1.62rem/1 var(--sans); letter-spacing: -.05em; color: var(--black); white-space: nowrap; }
.wm-dot { display: inline-block; width: .26em; height: .26em; border-radius: 50%; background: var(--red); margin: 0 .06em 0 .1em; }
.wm-org { font-weight: 500; letter-spacing: -.02em; color: var(--mute); }
.site-footer .wm { color: #fff; }
.site-footer .wm-org { color: #a1a1aa; }
.site-search { flex: 1 1 320px; max-width: 600px; margin-left: auto; position: relative; display: flex; }
.site-search input { width: 100%; padding: 11px 52px 11px 16px; font: inherit; font-size: .95rem; color: var(--ink); background: #fff; border: 1.5px solid var(--black); border-radius: var(--r); }
.site-search input::placeholder { color: #80808a; }
.site-search input:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(10,10,10,.12); }
.site-search button { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 2px; border: 0; background: var(--black); color: #fff; display: grid; place-items: center; cursor: pointer; }
.site-search button:hover { background: #27272a; }
.cart-link { position: relative; color: var(--black); display: inline-grid; place-items: center; width: 50px; height: 50px; flex: none; }
.ico-cart { width: 34px; height: 34px; stroke-width: 2; }
.cart-count { position: absolute; top: 0; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; font-variant-numeric: tabular-nums; }

/* ---------- main nav ---------- */
.mainnav { background: var(--black); }
.nav-row { position: relative; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; }
.nav-list > li { position: relative; }
.nav-list > li > a { display: flex; align-items: center; gap: 6px; height: 54px; padding: 0 26px; color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; border-right: 1px solid #27272a; white-space: nowrap; }
.nav-list > li:first-child > a { border-left: 1px solid #27272a; }
.nav-list > li > a:hover, .has-drop:hover > a, .has-drop:focus-within > a { color: #fff; background: #18181b; box-shadow: inset 0 -3px 0 var(--red); }
.caret { width: 14px; height: 14px; }
.nav-cta > a { background: #fff; color: var(--black) !important; font-weight: 700 !important; border-right: 0 !important; }
.nav-cta > a:hover { background: var(--alu) !important; box-shadow: none !important; }
.drop { display: none; position: absolute; left: 0; top: 100%; min-width: 300px; background: #fff; border-top: 3px solid var(--black); box-shadow: var(--shadow-lg); border-radius: 0 0 var(--r) var(--r); padding: 10px; z-index: 30; }
.has-drop:hover > .drop, .has-drop:focus-within > .drop { display: block; }
.drop ul { list-style: none; margin: 0; padding: 0; }
.drop a { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border-radius: var(--r); color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; line-height: 1.35; }
.drop a:hover { background: var(--alu); color: var(--black); }
.drop a .ico { color: var(--ink); margin-top: 1px; }
.drop small { display: block; color: var(--mute); font-size: .78rem; font-weight: 400; }
.drop-mega { width: 720px; left: 50%; transform: translateX(-35%); }
.drop-mega ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
.drop-mega .ico { background: var(--alu); border-radius: var(--r); padding: 4px; width: 28px; height: 28px; }
.drop-all { justify-content: center; background: var(--black); color: #fff !important; margin-top: 8px; font-weight: 600 !important; }
.drop-all:hover { background: #27272a !important; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--black); color: #fff; font: 600 .97rem/1.2 var(--sans); text-decoration: none; padding: 12px 20px; border-radius: var(--r); border: 2px solid var(--black); white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: #27272a; border-color: #27272a; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; }
.btn-sm { padding: 8px 13px; font-size: .86rem; gap: 6px; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-dk); }
.btn-ghost:hover { background: #fff; border-color: var(--black); color: var(--black); }
.btn-dark { background: var(--black); color: #fff; border-color: var(--black); }
.btn-dark:hover { background: #27272a; border-color: #27272a; color: #fff; }
.btn-block { display: flex; width: 100%; }
button.btn:disabled { opacity: .6; cursor: progress; }
a.btn.in-cart { background: #e9f6ee; color: var(--ok); border-color: #bfe3cc; }
.link { font-weight: 600; font-size: .93rem; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; border-bottom: 2px solid var(--black); }
.link:hover { color: var(--red-dk); border-color: var(--red); }

/* ---------- hero ---------- */
.hero { position: relative; color: var(--ink); background: var(--alu); border-bottom: 1px solid var(--line); padding: 58px 0 66px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
/* Kickers and eyebrows lead with the red dot from the logo. */
.hero-kicker { display: inline-flex; align-items: center; gap: .65em; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 0 0 12px; }
.hero-kicker::before, .eyebrow::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.hero h1 { color: var(--black); font-weight: 800; font-size: clamp(2.1rem, 4.8vw, 3.5rem); line-height: 1.02; letter-spacing: -.045em; }
.hero h1 span { display: block; color: var(--black); font-weight: 800; }
.hero h1 span::after { content: "."; color: var(--red); }
.hero-points { list-style: none; padding: 0; margin: 22px 0 24px; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--body); }
.hero-points .ico { color: var(--black); width: 22px; height: 22px; margin-top: 2px; }
.hero-points strong { color: var(--black); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-ctas .btn-ghost { background: transparent; border-color: var(--black); }
.hero-ctas .btn-ghost:hover { background: var(--black); color: #fff; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.badges li { display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); border-radius: var(--r); padding: 7px 12px 7px 7px; font-size: .84rem; line-height: 1.25; border: 1px solid var(--line); }
.badges li > span:last-child { display: block; }
.badges strong { display: block; font-size: .98rem; font-weight: 700; }
.b-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 2px; font: 800 .8rem/1 var(--sans); flex: none; }
.b-g { background: #fff; color: #4285f4; border: 1px solid #e3e3e3; font-size: 1.25rem; }
.b-bbb { background: #00598e; color: #fff; font-size: .7rem; }
.b-iacet { background: #1e3a8a; color: #fff; font-size: .52rem; letter-spacing: .02em; }
.stars { color: var(--black); letter-spacing: 1px; font-size: .85rem; }
.badges-hero li { background: #fff; }
.page-hero-dark .badges-hero li { border-color: #fff; }
.badges-dark li { background: #18181b; color: #d4d4d8; border: 1px solid #27272a; }
.badges-dark strong { color: #fff; }
.badges-dark .stars { color: #fff; }
.badges-small { margin-top: 18px; gap: 8px; flex-direction: column; }
.badges-small li { font-size: .78rem; border: 1px solid var(--line); }

.finder-card { background: #fff; color: var(--ink); border-radius: var(--r); padding: 26px; border: 1px solid var(--black); }
.finder-card h2 { font-size: 1.35rem; margin-bottom: 14px; }
.finder-card h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); margin: 22px 0 4px; }
.finder { display: grid; gap: 10px; grid-template-columns: 1fr; }
.finder select { width: 100%; padding: 12px 14px; font: inherit; font-size: .95rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line-dk); border-radius: var(--r); appearance: auto; }
.finder select:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(10,10,10,.12); }
.finder .btn { width: 100%; }
.quick-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.quick-row strong { font-weight: 700; white-space: nowrap; background: var(--alu); padding: 1px 8px; border-radius: 2px; font-size: .9rem; font-variant-numeric: tabular-nums; }
.quick-row:hover { color: var(--black); }
.quick-row:hover span { text-decoration: underline; text-decoration-color: var(--red); }
.finder-note { font-size: .86rem; color: var(--mute); margin: 14px 0 0; }

/* ---------- stat bar ---------- */
.statbar { background: var(--black); color: #fff; }
.stats { list-style: none; margin: 0 auto; padding-top: 22px; padding-bottom: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.stats strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats span { font-size: .9rem; color: #a1a1aa; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-tight { padding: 36px 0 56px; }
.section-grey { background: var(--alu); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--black); color: #d4d4d8; }
.section-dark .section-title, .section-dark h3 { color: #fff; }
.section-title { text-align: center; margin-bottom: 10px; }
.section-title.left { text-align: left; margin-top: 28px; margin-bottom: 16px; }
.section-sub { text-align: center; color: var(--body); max-width: 760px; margin: 0 auto 34px; }
.section-sub:empty { display: none; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: #fff; margin: 0 0 1.4em; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--black); color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
tbody tr:nth-child(even) td { background: var(--alu-2); }
tr:last-child td { border-bottom: 0; }
td a { font-weight: 600; }

/* category tiles */
.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.cat-tile { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: box-shadow .15s, border-color .15s, transform .15s; height: 100%; }
.cat-tile:hover { border-color: var(--black); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.cat-ico { grid-row: span 2; width: 52px; height: 52px; border-radius: var(--r); background: var(--alu); color: var(--black); display: grid; place-items: center; transition: background .15s, color .15s; }
.cat-tile:hover .cat-ico { background: var(--black); color: #fff; }
.cat-ico .ico { width: 28px; height: 28px; }
.cat-name { font-weight: 600; font-size: 1rem; line-height: 1.3; align-self: end; }
.cat-meta { font-size: .82rem; color: var(--mute); align-self: start; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; transition: box-shadow .15s, border-color .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); border-color: #a1a1aa; transform: translateY(-2px); }
.card-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.price { font-weight: 700; font-size: 1rem; color: var(--black); background: var(--alu); border: 1px solid var(--line); padding: 2px 8px; border-radius: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 4px; background: var(--alu); color: var(--ink); border: 1px solid var(--line); font-size: .74rem; font-weight: 500; padding: 3px 8px; border-radius: 2px; white-space: nowrap; }
.pill .ico { width: 14px; height: 14px; }
.pill-lang { background: #fff; border-color: var(--line-dk); color: var(--ink); }
.pill-soft { background: var(--alu); border-color: var(--line); }
.card h3 { font-size: 1rem; line-height: 1.35; margin-bottom: 6px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--black); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.cite { color: var(--mute); font-size: .85rem; margin: 0 0 16px; }
.card-actions { margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-actions .btn { flex: 1 1 auto; }
.card-res .cite { font-size: .88rem; color: var(--body); }
.card-res .card-actions .link { flex: none; }

/* features ("why train with us") */
.features { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px 18px; }
.feature-ico { width: 56px; height: 56px; border-radius: var(--r); display: grid; place-items: center; margin-bottom: 16px; background: var(--alu); color: var(--black); }
.feature-ico .ico { width: 30px; height: 30px; }
.feature h3 { font-size: 1.05rem; line-height: 1.3; }
.feature h3 span { color: var(--black); }
.feature p { font-size: .9rem; color: var(--body); margin: 0; }

/* steps */
.steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.steps li { background: #18181b; border: 1px solid #27272a; border-radius: var(--r); padding: 22px; }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 2px; background: #fff; color: var(--black); font-weight: 800; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.steps p { margin: 0; color: #a1a1aa; font-size: .93rem; }
.steps a { color: #fff; }
.steps a:hover { color: #fff; text-decoration-color: var(--red); }

/* faq */
.faq details, .prose details, .syllabus details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin: 10px 0; }
summary { cursor: pointer; padding: 15px 46px 15px 18px; font-weight: 600; list-style: none; position: relative; line-height: 1.45; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 2px; background: var(--black); color: #fff; display: grid; place-items: center; font-weight: 700; line-height: 1; }
details[open] > summary::after { content: "−"; }
details > p, details > ol, details > ul { padding: 0 18px 14px; margin: 0; color: var(--body); }
details > ol, details > ul { padding-left: 40px; }

/* cta band */
.cta-band { background: var(--alu); border-top: 1px solid var(--line); padding: 40px 0; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; }
.cta-row h2 { margin: 0 0 4px; }
.cta-row p { margin: 0; color: var(--body); }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-ghost { border-color: var(--black); }

/* ---------- breadcrumbs & page heroes ---------- */
.crumbs-bar { background: var(--alu); border-bottom: 1px solid var(--line); }
.crumbs { font-size: .85rem; color: var(--mute); padding-top: 10px; padding-bottom: 10px; }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { color: var(--black); text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 4px; color: #a1a1aa; }
.page-hero { background: var(--alu); padding: 40px 0 34px; border-bottom: 1px solid var(--line); }
.page-hero .lead { max-width: 820px; }
.page-hero-dark { position: relative; background: var(--black); color: #d4d4d8; padding: 48px 0 56px; border: 0; }
.page-hero-dark h1 { color: #fff; }
.page-hero-dark .hero-kicker { color: #a1a1aa; }
.page-hero-dark .lead { color: #d4d4d8; }
.page-hero-dark .lead a { color: #fff; text-decoration-color: #71717a; }
.page-hero-dark .lead a:hover { text-decoration-color: var(--red); }
.page-hero-dark .badges { margin-top: 22px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.cat-hero-ico { position: relative; width: 200px; height: 200px; border-radius: var(--r); background: #fff; color: var(--black); display: grid; place-items: center; }
.cat-hero-ico::after { content: ""; position: absolute; right: 18px; bottom: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); }
.lead { font-size: 1.08rem; color: var(--body); }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin: 0 0 14px; }

/* ---------- catalog hub ---------- */
.courses-head { display: flex; justify-content: center; margin-bottom: 18px; }
.search { position: relative; width: min(640px, 100%); display: flex; align-items: center; }
.search .ico { position: absolute; left: 16px; color: var(--mute); }
.search input { width: 100%; padding: 13px 16px 13px 46px; font: inherit; border: 1.5px solid var(--line-dk); border-radius: var(--r); background: #fff; }
.search input:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(10,10,10,.12); }
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 8px; }
.jump a { font-size: .85rem; font-weight: 500; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 6px 14px; }
.jump a span { background: var(--alu); border-radius: 2px; padding: 0 7px; margin-left: 4px; font-size: .78rem; font-variant-numeric: tabular-nums; }
.jump a:hover { border-color: var(--black); background: var(--alu); color: var(--black); }
.group { padding-top: 40px; scroll-margin-top: 20px; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 20px; }
.group h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.group h2::before { content: ""; flex: none; width: .34em; height: .34em; background: var(--red); border-radius: 50%; }
.group-blurb { color: var(--mute); margin: 0 0 18px; }
.noresults { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-top: 18px; }

/* ---------- course pages ---------- */
.course-hero { background: var(--alu); border-bottom: 1px solid var(--line); padding: 38px 0; }
.course-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.course-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 24px 0 0; }
.facts div { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.facts .ico { grid-row: span 2; width: 22px; height: 22px; color: var(--black); margin-top: 2px; }
.facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--mute); font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; font-size: .9rem; }
.buy { background: #fff; border: 1px solid var(--black); border-radius: var(--r); padding: 22px; }
.buy-price { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; margin: 0 0 14px; line-height: 1; font-variant-numeric: tabular-nums; }
.buy-price span { font-size: .85rem; font-weight: 400; letter-spacing: 0; color: var(--mute); }
.buy .checks { margin: 16px 0 10px; }
.buy-note, .buy-secure { font-size: .86rem; margin: 8px 0 0; display: flex; align-items: center; gap: 7px; color: var(--body); }
.buy-secure { color: var(--mute); }
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding-top: 40px; padding-bottom: 56px; align-items: start; }
.prose h2 { margin-top: 1.6em; padding-top: .1em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 5px 0; }
.prose p, .prose li { color: var(--body); }
.prose strong { color: var(--ink); }
.checks { list-style: none; padding: 0 !important; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 28px; margin: 8px 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 2px; background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3 7 10.7l4.6-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.cols-2 { columns: 2; column-gap: 28px; }
.cols-2 li { break-inside: avoid; }
.outline { list-style: none; padding: 0 !important; margin: 0 0 1em; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.outline li { margin: 0; background: var(--alu); border: 1px solid var(--line); border-left: 3px solid var(--black); border-radius: var(--r); padding: 12px 14px; }
.outline strong { display: block; color: var(--ink); font-size: .97rem; line-height: 1.35; }
.outline span { display: block; color: var(--body); font-size: .9rem; margin-top: 3px; }
.syllabus details { margin: 8px 0; }
.syllabus summary { font-size: .97rem; }
.syllabus ol { font-size: .93rem; }
.lesson-list { columns: 2; column-gap: 28px; font-size: .93rem; }
.reg-list { columns: 2; }
.res-list li { margin: 6px 0; }
.course-side, .guide-side, .side { display: grid; gap: 16px; align-content: start; }
/* Full-height sidebars so the last, sticky box can follow the reader without covering the boxes above it. */
.course-side, .guide-side { align-self: stretch; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.side-sticky { position: sticky; top: 16px; border-top: 3px solid var(--black); }
.side-title { font-weight: 700; font-size: 1rem; margin: 0 0 8px; color: var(--ink); }
.side-price { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.side-meta { font-size: .86rem; color: var(--body); margin: 10px 0 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.side-help { background: var(--alu); text-align: center; }
.side-help .ico-lg { color: var(--black); margin-bottom: 4px; }
.side-help p { font-size: .9rem; color: var(--body); }
.side-links { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.side-links li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.side-links li:last-child { border: 0; }
.side-links a { color: var(--ink); text-decoration: none; }
.side-links a:hover { color: var(--black); text-decoration: underline; text-decoration-color: var(--red); }
.prose-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }

/* ---------- guides ---------- */
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding-top: 36px; padding-bottom: 56px; align-items: start; }
.guide { max-width: 820px; }
.guide h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.answer-box { background: var(--alu); border: 1px solid var(--line); border-left: 4px solid var(--black); border-radius: var(--r); padding: 16px 20px; margin: 10px 0 22px; }
.answer-box p { margin: 0; color: var(--ink); }
.answer-label { font-size: .75rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--black) !important; margin-bottom: 4px !important; }
.toc { background: var(--alu); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 20px; margin: 0 0 26px; font-size: .92rem; }
.toc ol { margin: 6px 0 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { margin: 3px 0; break-inside: avoid; }
.toc a { color: var(--ink); }
.disclaimer { font-size: .85rem; color: var(--mute); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 32px; }
.side-course { padding: 10px 0; border-bottom: 1px solid var(--line); }
.side-course a { color: var(--ink); font-weight: 600; text-decoration: none; font-size: .93rem; }
.side-course a:hover { color: var(--black); text-decoration: underline; text-decoration-color: var(--red); }
.side-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; font-size: .86rem; color: var(--body); }
.side-quiz { margin-top: 16px; }
.side-quiz p { font-size: .9rem; color: var(--body); }
.glossary div { padding: 12px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.glossary dt { font-weight: 700; }
.glossary dd { margin: 2px 0 0; color: var(--body); }
.glossary div:target { background: var(--alu); box-shadow: inset 3px 0 0 var(--red); padding-left: 12px; }

/* ---------- quizzes ---------- */
.quiz-wrap { max-width: 860px; padding-top: 34px; padding-bottom: 50px; }
.quiz .q { border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 12px; margin: 0 0 16px; background: #fff; }
.quiz legend { font-weight: 600; padding: 0; float: left; width: 100%; margin-bottom: 10px; }
.quiz legend + * { clear: both; }
.qn { color: var(--mute); font-variant-numeric: tabular-nums; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r); margin: 7px 0; cursor: pointer; }
.opt:hover { background: var(--alu); }
.opt input { margin-top: 5px; accent-color: var(--black); }
.explain { display: none; margin: 10px 0 4px; font-size: .93rem; color: var(--body); }
.quiz.done .explain { display: block; }
.quiz.done .q.is-right { border-color: var(--ok); box-shadow: inset 4px 0 0 var(--ok); }
.quiz.done .q.is-wrong { border-color: var(--bad); box-shadow: inset 4px 0 0 var(--bad); }
.quiz.done .opt-correct { background: #e8f5ec; border-color: var(--ok); font-weight: 600; }
.quiz-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.quiz-result { margin-top: 22px; background: var(--alu); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.score { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }

/* ---------- search page ---------- */
.search-big { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; max-width: 760px; }
.search-big input { flex: 1 1 280px; padding: 14px 18px; font: inherit; border: 1.5px solid var(--black); border-radius: var(--r); }
.search-page { padding-top: 24px; padding-bottom: 56px; max-width: 900px; }
.results { list-style: none; padding: 0; }
.results li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.results li > a:not(.btn) { display: block; font-weight: 600; font-size: 1.08rem; margin-top: 6px; color: var(--ink); text-decoration: none; }
.results li > a:not(.btn):hover { color: var(--black); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.results p { margin: 4px 0 10px; color: var(--body); font-size: .93rem; }

/* ---------- trust pages ---------- */
.trust-page, .tool-page { max-width: 900px; padding-top: 34px; padding-bottom: 56px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 30px; }
.contact-card { background: var(--alu); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.contact-card .ico { width: 30px; height: 30px; color: var(--black); }
.contact-card p { margin: 8px 0 0; font-size: .92rem; }

/* ---------- checkout ---------- */
.checkout-wrap { padding-top: 34px; padding-bottom: 56px; }
.checkout-header p { max-width: 820px; color: var(--body); }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; margin-top: 18px; }
.checkout-section { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 18px; }
.checkout-section h2 { font-size: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 5px; }
.form-control { width: 100%; padding: 11px 13px; font: inherit; font-size: .95rem; border: 1.5px solid var(--line-dk); border-radius: var(--r); background: #fff; }
.form-control:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(10,10,10,.12); }
.req { color: var(--bad); }
.hint { font-size: .86rem; color: var(--mute); margin: 10px 0 0; }
.pay-error { color: var(--bad); background: #fdf3f3; border: 1px solid #f0b0b0; border-radius: var(--r); padding: 10px 12px; margin: 10px 0; }
.card-field { border: 1.5px solid var(--line-dk); border-radius: var(--r); padding: 12px; margin-bottom: 12px; }
.summary { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--black); border-radius: var(--r); padding: 22px; position: sticky; top: 16px; }
.summary h2 { font-size: 1.15rem; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; font-variant-numeric: tabular-nums; }
.sum-total { font-weight: 700; font-size: 1.1rem; border-bottom: 0; }
.cart-lines { list-style: none; padding: 0; margin: 0; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; grid-template-areas: "info qty amount remove"; gap: 12px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-info { grid-area: info; min-width: 0; }
.cart-info strong { display: block; }
.cart-qty { grid-area: qty; display: flex; align-items: center; gap: 6px; }
.cart-qty input { width: 80px; padding: 8px; }
.cart-amount { grid-area: amount; font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.link-btn { grid-area: remove; background: none; border: 0; padding: 4px; font: inherit; font-size: .86rem; color: var(--bad); text-decoration: underline; cursor: pointer; justify-self: end; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sum-line span { display: block; color: var(--mute); font-size: .86rem; }
.sum-line > span { color: var(--ink); font-weight: 700; font-size: 1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.done-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--black); border-radius: var(--r); padding: 26px; margin: 18px 0; }
.done-card pre { white-space: pre-wrap; background: var(--alu); padding: 14px; border-radius: var(--r); font-size: .86rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--black); color: #a1a1aa; font-size: .92rem; margin-top: 0; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; padding-top: 42px; padding-bottom: 28px; border-bottom: 1px solid #27272a; }
.footer-brand { max-width: 520px; }
.footer-brand p { margin: 14px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; padding-top: 34px; padding-bottom: 34px; }
.site-footer h2 { color: #fff; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: #e4e4e7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); }
.footer-contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer-contact a { display: inline-flex; gap: 8px; align-items: center; }
.footer-contact .ico { color: #a1a1aa; margin-top: 3px; }
.footer-legal { border-top: 1px solid #27272a; background: #000; }
.footer-legal p { margin: 0; padding-top: 16px; padding-bottom: 16px; font-size: .84rem; color: #8b8b93; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-list > li > a { padding: 0 15px; font-size: .9rem; }
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .drop-mega { width: 640px; transform: translateX(-25%); }
}
@media (max-width: 960px) {
  .hero-grid, .course-hero-grid, .course-layout, .guide-layout, .prose-layout, .checkout-grid, .cols, .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .cat-hero-ico { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-sticky, .summary { position: static; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* collapsible nav */
  .nav-burger { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; height: 52px; cursor: pointer; }
  .nav-burger .ico { width: 24px; height: 24px; }
  .nav-list { display: none; flex-direction: column; padding-bottom: 12px; }
  .nav-toggle:checked ~ .nav-list { display: flex; }
  .nav-toggle:focus-visible + .nav-burger { outline: 3px solid var(--red); }
  .nav-list > li > a { height: auto; padding: 12px 4px; border: 0 !important; border-bottom: 1px solid #27272a !important; }
  .nav-list > li > a:hover, .has-drop:hover > a, .has-drop:focus-within > a { box-shadow: none; }
  .nav-cta > a { justify-content: center; margin-top: 10px; border-radius: var(--r); }
  .drop, .drop-mega { position: static; display: block; width: auto; transform: none; box-shadow: none; border: 0; background: transparent; padding: 4px 0 8px 10px; min-width: 0; }
  .drop-mega ul { grid-template-columns: 1fr; }
  .drop a { color: #d4d4d8; padding: 6px 8px; }
  .drop a:hover { background: #18181b; color: #fff; }
  .drop a .ico { color: #a1a1aa; }
  .drop-mega .ico { background: transparent; padding: 0; width: 20px; height: 20px; }
  .drop small { color: #8b8b93; }
  .drop-all { background: #18181b !important; }
  .caret { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .topbar-links span { display: none; }
  .topbar-links { gap: 14px; }
  .topbar-contact a:nth-child(2) span { display: none; }
  .header-row { flex-wrap: wrap; gap: 10px 12px; min-height: 0; }
  .site-search { order: 3; flex: 1 1 100%; max-width: none; margin: 0; }
  .cart-link { margin-left: auto; }
  .wm { font-size: 1.32rem; }
  .hero { padding: 36px 0 46px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats strong { font-size: 1.5rem; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 46px 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .cols-2, .lesson-list, .reg-list, .toc ol { columns: 1; }
  .outline { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .badges { gap: 8px; flex-wrap: nowrap; }
  .badges li { flex: 1 1 0; flex-direction: column; text-align: center; gap: 4px; padding: 8px 6px; font-size: .72rem; }
  .badges strong { font-size: .86rem; }
  .b-mark { width: 28px; height: 28px; }
  .stars { display: block; font-size: .7rem; }
  .eyebrow { letter-spacing: .05em; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .cta-btns .btn { flex: 1 1 100%; }
  th, td { padding: 10px; }
  .cart-line { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "info info" "qty amount" "remove remove"; }
  .link-btn { justify-self: start; padding-left: 0; }
  .search-big { flex-direction: column; }
  .checkout-sidebar { order: -1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .topbar, .mainnav, .site-search, .cart-link, .site-footer, .buy, .course-side, .guide-side { display: none !important; } }
