/* CETI design tokens (CETI Brand Guide v1, 14 Nov 2026). Change the brand here, in one place. */
@font-face { font-family: "Jakarta"; src: url("/fonts/jakarta-bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/fonts/jakarta-extrabold.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }
:root {
  --blue: #2457D6; --blue-deep: #1A43AE; --blue-soft: #E8EEFC; --ink: #0E1116; --ink-2: #1B2130;
  --yellow: #FFC233; --yellow-soft: #FFF4D6; --silver: #C5CCD6; --cloud: #EEF1F5; --slate: #4A5463; --line: #DDE2EA;
  --green: #17834A; --green-soft: #E3F4EA; --red: #C63B3B; --red-soft: #FBE9E9; --white: #fff;
  --head: "Jakarta", "Segoe UI", system-ui, sans-serif; --text: "Inter", "Segoe UI", system-ui, sans-serif;
  --r: 20px; --r-sm: 14px; --shadow: 0 1px 2px rgba(14, 17, 22, .06), 0 12px 32px -18px rgba(14, 17, 22, .35);
  --pad: clamp(16px, 4.5vw, 24px); --max: 760px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cloud); color: var(--ink); font: 400 16px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(26px, 7vw, 38px); } h2 { font-size: clamp(19px, 5vw, 23px); } h3 { font-size: 17px; }
p { margin: 0; }
a { color: var(--blue); }
button, input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------------------------------------------------------------- frame */
.top { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; padding: 12px var(--pad); padding-top: max(12px, env(safe-area-inset-top)); }
.top-in { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 21px/1 var(--head); letter-spacing: .04em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--blue); display: grid; place-items: center; position: relative; }
.brand-mark::after { content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 2px; background: var(--yellow); transform: rotate(45deg); }
.brand-mark b { font: 800 15px/1 var(--head); color: #fff; letter-spacing: 0; }
.top-back { width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; cursor: pointer; text-decoration: none; }
.top-title { flex: 1; min-width: 0; font: 700 16px/1.2 var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-sp { flex: 1; }
.pill-preview { font: 700 11px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--yellow); color: var(--ink); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font: 800 14px/1 var(--head); text-decoration: none; border: 2px solid rgba(255, 255, 255, .25); }
main { max-width: var(--max); margin: 0 auto; padding: 18px var(--pad) calc(110px + env(safe-area-inset-bottom)); display: grid; gap: 18px; }
.nav { position: fixed; z-index: 30; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(calc(100% - 24px), 520px);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; border-radius: 24px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -16px rgba(14, 17, 22, .45), 0 0 0 1px rgba(14, 17, 22, .06); }
.nav a { display: grid; justify-items: center; gap: 3px; padding: 8px 4px; border-radius: 18px; color: var(--slate); text-decoration: none; font: 600 12px/1.1 var(--text); }
.nav a svg { width: 22px; height: 22px; }
.nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue); }

/* ---------------------------------------------------------------- building blocks */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; font: 700 16px/1 var(--head); letter-spacing: -0.01em; transition: transform .15s ease, background .15s ease; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 14px 28px -14px rgba(36, 87, 214, .9); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-spark { background: var(--yellow); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-light { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.card { background: #fff; border-radius: var(--r); padding: var(--pad); box-shadow: var(--shadow); }
.kicker { font: 700 12px/1.3 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.muted { color: var(--slate); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: #fff; color: var(--ink); font: 600 14px/1 var(--text); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none; }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font: 700 12px/1.2 var(--text); background: var(--cloud); color: var(--slate); }
.badge.low { background: var(--green-soft); color: var(--green); } .badge.medium { background: var(--yellow-soft); color: #7A5600; } .badge.high { background: var(--red-soft); color: var(--red); }
.badge.soon { background: var(--ink); color: #fff; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-head a { font: 700 14px/1 var(--text); text-decoration: none; }
.field { display: grid; gap: 6px; }
.field label, .legend { font: 700 14px/1.3 var(--text); }
.field input, .field select, textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: #fff; font-size: 16px; }
.field input:focus, .field select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 4px var(--blue-soft); }
.hint { font-size: 14px; color: var(--slate); }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 100px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font: 600 14px/1.4 var(--text); box-shadow: var(--shadow); max-width: calc(100% - 32px); }

/* ---------------------------------------------------------------- landing */
.hero { position: relative; overflow: hidden; margin: -18px calc(-1 * var(--pad)) 0; padding: 34px var(--pad) 30px; color: #fff;
  background: radial-gradient(120% 90% at 85% 0%, rgba(36, 87, 214, .55), transparent 60%), radial-gradient(70% 60% at 0% 100%, rgba(255, 194, 51, .14), transparent 70%), var(--ink); }
@media (min-width: 760px) { .hero { margin: 0; border-radius: 28px; padding: 44px 40px; } }
.hero h1 { font-size: clamp(32px, 9vw, 52px); letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p { color: rgba(255, 255, 255, .78); font-size: 17px; max-width: 34em; margin-top: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 20px; color: rgba(255, 255, 255, .72); font: 600 13.5px/1.3 var(--text); }
.hero-facts span::before { content: "◆"; color: var(--yellow); font-size: 10px; margin-right: 6px; vertical-align: 1px; }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pillar { display: grid; gap: 8px; padding: 14px; border-radius: 18px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); min-height: 104px; align-content: space-between; }
.pillar i { font-style: normal; font-size: 22px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); }
.pillar b { font: 700 14px/1.25 var(--head); }
.pillar small { color: var(--slate); font-size: 12.5px; }
.check { display: grid; gap: 10px; }
.check-row { display: flex; gap: 8px; }
.check-row input { flex: 1; min-width: 0; }

/* ---------------------------------------------------------------- course cards */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 280px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 4px var(--pad) 8px; }
.rail::-webkit-scrollbar { display: none; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.cc { scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r); overflow: hidden; background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); min-height: 210px; }
.cc-top { position: relative; height: 92px; padding: 14px; display: flex; align-items: flex-start; justify-content: space-between; background: var(--cc, var(--blue)); color: #fff; }
.cc-top::after { content: ""; position: absolute; right: -24px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.cc-top .cc-code { font: 700 12px/1 var(--text); letter-spacing: .1em; opacity: .85; }
.cc-body { padding: 14px; display: grid; gap: 6px; align-content: start; }
.cc-body b { font: 700 16px/1.25 var(--head); letter-spacing: -0.01em; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--slate); }
.cc.soon { opacity: .9; } .cc.soon .cc-top { filter: saturate(.5); }
.cc-prog { height: 6px; border-radius: 999px; background: var(--cloud); overflow: hidden; margin-top: 6px; }
.cc-prog span { display: block; height: 100%; background: var(--blue); border-radius: inherit; }

/* ---------------------------------------------------------------- home */
.hello { display: grid; gap: 14px; padding: 20px var(--pad); margin: -18px calc(-1 * var(--pad)) 0; background: var(--ink); color: #fff; border-radius: 0 0 28px 28px; }
@media (min-width: 760px) { .hello { margin: 0; border-radius: 28px; } }
.hello h1 { font-size: clamp(24px, 6.6vw, 32px); }
.hello .muted { color: rgba(255, 255, 255, .7); }
.next { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.next .kicker { color: var(--yellow); }
.next b { font: 700 18px/1.25 var(--head); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.stat b { display: block; font: 800 22px/1.1 var(--head); }
.stat small { color: rgba(255, 255, 255, .7); font-size: 12px; }
.stat.flame b::after { content: " 🔥"; font-size: 16px; }
.roles { display: grid; gap: 10px; }
.role { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, #fff, #F5F8FF); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.role i { font-style: normal; width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--yellow-soft); font-size: 22px; }
.role b { display: block; font: 700 16px/1.25 var(--head); }
.role small { color: var(--slate); }
.role .go { margin-left: auto; color: var(--blue); font-weight: 800; }
.goal-chips { margin-bottom: 4px; }
.step-card { display: grid; gap: 8px; padding: 16px; border-radius: 18px; background: var(--yellow-soft); }
.step-card .kicker { color: #7A5600; }

/* the quote carousel */
.qc { position: relative; border-radius: 24px; padding: 22px 20px 16px; background: var(--ink); color: #fff; overflow: hidden; }
.qc::before { content: "“"; position: absolute; top: -18px; right: 14px; font: 800 120px/1 var(--head); color: rgba(255, 194, 51, .18); }
.qc-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.qc-track::-webkit-scrollbar { display: none; }
.qc-slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; gap: 12px; padding-right: 8px; }
.qc-slide blockquote { margin: 0; font: 700 clamp(17px, 4.6vw, 21px)/1.4 var(--head); letter-spacing: -0.01em; }
.qc-slide figcaption { display: flex; align-items: center; gap: 10px; }
.qc-mono { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--blue); font: 800 14px/1 var(--head); box-shadow: 0 0 0 2px var(--yellow); }
.qc-who b { display: block; font: 700 14px/1.3 var(--text); }
.qc-who small { display: block; color: rgba(255, 255, 255, .65); font-size: 12px; }
.qc-bar { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.qc-bar button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; font-size: 18px; }
.qc-count { margin-left: auto; font-size: 12px; color: rgba(255, 255, 255, .65); }

/* ---------------------------------------------------------------- course page */
.ch { position: relative; overflow: hidden; display: grid; gap: 12px; padding: 22px var(--pad) 20px; margin: -18px calc(-1 * var(--pad)) 0; background: var(--ink); color: #fff; }
.ch::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, var(--cc, var(--blue)), transparent 70%); opacity: .55; }
@media (min-width: 760px) { .ch { margin: 0; border-radius: 28px; } }
.ch > * { position: relative; z-index: 1; }
.ch .kicker { color: var(--yellow); }
.ch-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-meta .badge { background: rgba(255, 255, 255, .1); color: #fff; }
.ch-meta .badge.medium { background: var(--yellow); color: var(--ink); } .ch-meta .badge.high { background: var(--red); color: #fff; } .ch-meta .badge.low { background: var(--green); color: #fff; }
.list-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list-check li { position: relative; padding-left: 28px; }
.list-check li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2317834A' stroke-width='3' d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.mods { display: grid; gap: 10px; }
.mod { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.mod summary { list-style: none; display: flex; gap: 12px; align-items: center; padding: 16px; cursor: pointer; }
.mod summary::-webkit-details-marker { display: none; }
.mod-n { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font: 800 15px/1 var(--head); }
.mod-t b { display: block; font: 700 15.5px/1.25 var(--head); }
.mod-t small { color: var(--slate); font-size: 13px; }
.mod-ls { list-style: none; margin: 0; padding: 0 8px 10px; }
.mod-ls a { display: flex; gap: 10px; align-items: center; padding: 10px 8px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.mod-ls a:hover { background: var(--cloud); }
.mod-ls .dot { width: 22px; height: 22px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); display: grid; place-items: center; font-size: 12px; }
.mod-ls .done .dot { background: var(--green); box-shadow: none; color: #fff; }
.mod-ls small { margin-left: auto; color: var(--slate); white-space: nowrap; }
.sticky-cta { position: sticky; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 5; }

/* ---------------------------------------------------------------- lesson */
.lh { display: grid; gap: 8px; }
.lh .kicker { color: var(--slate); }
.prog-dots { display: flex; gap: 4px; }
.prog-dots span { flex: 1; height: 5px; border-radius: 999px; background: var(--line); }
.prog-dots span.on { background: var(--blue); } .prog-dots span.done { background: var(--green); }
.blk { background: #fff; border-radius: var(--r); padding: 18px var(--pad); box-shadow: var(--shadow); display: grid; gap: 10px; }
.blk > h3 { display: flex; align-items: center; gap: 10px; }
.blk > h3 i { font-style: normal; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; background: var(--blue-soft); flex: none; }
.blk ul, .blk ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.blk .tbl { overflow-x: auto; }
.blk table { border-collapse: collapse; width: 100%; font-size: 14px; }
.blk th, .blk td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.blk th { font: 700 13px/1.3 var(--text); background: var(--cloud); }
.blk.story { background: linear-gradient(135deg, var(--ink), var(--ink-2)); color: #fff; }
.blk.story h3 i { background: rgba(255, 255, 255, .1); }
.blk.safety { background: var(--red-soft); box-shadow: inset 0 0 0 2px rgba(198, 59, 59, .35); }
.blk.safety h3 { color: var(--red); } .blk.safety h3 i { background: #fff; }
.blk.good { background: var(--green-soft); } .blk.good h3 i { background: #fff; }
.blk.pro { background: #FFF8E8; box-shadow: inset 0 0 0 2px rgba(255, 194, 51, .6); } .blk.pro h3 i { background: #fff; }
.blk.remember { background: var(--blue); color: #fff; font: 700 17px/1.4 var(--head); }
.blk.remember h3 i { background: rgba(255, 255, 255, .15); }
.ai-card { background: var(--ink); color: #fff; }
.ai-card h3 i { background: var(--yellow); color: var(--ink); }
.ai-prompt { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); font: 400 15px/1.55 var(--text); white-space: pre-wrap; }
.ai-prompt mark { background: rgba(255, 194, 51, .25); color: var(--yellow); border-radius: 4px; padding: 0 2px; }
.ai-limit { font-size: 13px; color: rgba(255, 255, 255, .65); }
.img-slot { display: grid; place-items: center; gap: 6px; aspect-ratio: 16 / 9; border-radius: 16px; background: repeating-linear-gradient(135deg, #F3F5F9 0 12px, #EEF1F5 12px 24px); color: var(--slate); text-align: center; padding: 16px; font-size: 13.5px; }
.img-slot b { font: 700 12px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; }
.qc-q { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.qc-q:first-of-type { border-top: 0; padding-top: 0; }
.qc-q p { font-weight: 600; }
.qc-opt { text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-size: 15px; line-height: 1.4; }
.qc-opt:hover { border-color: var(--blue); }
.qc-opt.right { border-color: var(--green); background: var(--green-soft); }
.qc-opt.wrong { border-color: var(--red); background: var(--red-soft); }
.qc-why { font-size: 14px; padding: 10px 12px; border-radius: 12px; background: var(--cloud); }
.lesson-foot { display: grid; gap: 10px; }
.done-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green); font: 700 13px/1 var(--text); }

/* ---------------------------------------------------------------- onboarding and Me */
.ob { display: grid; gap: 16px; }
.opt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 10px 12px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; text-align: left; font: 600 15px/1.25 var(--text); }
.opt i { font-style: normal; font-size: 20px; }
.opt[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-deep); box-shadow: 0 0 0 3px rgba(36, 87, 214, .12); }
.steps { display: flex; gap: 6px; }
.steps span { flex: 1; height: 5px; border-radius: 999px; background: var(--line); }
.steps span.on { background: var(--blue); }
.me-head { display: flex; align-items: center; gap: 14px; }
.me-av { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font: 800 22px/1 var(--head); box-shadow: 0 0 0 4px var(--yellow); }
.rows { display: grid; }
.rows a, .rows button { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; text-decoration: none; color: var(--ink); text-align: left; cursor: pointer; font-size: 15.5px; }
.rows a:last-child, .rows button:last-child { border-bottom: 0; }
.rows small { margin-left: auto; color: var(--slate); }
.preview-note { padding: 12px 14px; border-radius: 14px; background: var(--yellow-soft); font-size: 14px; }

/* ---------------------------------------------------------------- v0.1 additions (20 Nov 2026) */
.blk-body { display: grid; gap: 10px; }
.otd { display: grid; gap: 6px; padding: 18px var(--pad); border-radius: var(--r); background: linear-gradient(135deg, #fff, var(--yellow-soft)); box-shadow: var(--shadow); border-left: 6px solid var(--yellow); }
.otd-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.otd-top .kicker { color: #7A5600; }
.otd-date { font: 600 13px/1 var(--text); color: var(--slate); }
.otd-year { font: 800 30px/1 var(--head); color: var(--blue); letter-spacing: -0.02em; }
.otd-text { font-size: 16px; }
.otd-src { font-size: 12px; color: var(--slate); }
.foot { display: grid; gap: 6px; padding: 18px 4px 6px; border-top: 1px solid var(--line); font-size: 14px; }
.ob h1 { font-size: clamp(22px, 6vw, 28px); }
.field input[type="search"] { border-radius: 999px; padding-left: 18px; }

/* ---------------------------------------------------------------- more colour (Boma, 20 Nov 2026): a colour for each of the four main tabs */
.nav a[data-tab="home"] { --c: #2457D6; --cs: #E8EEFC; }
.nav a[data-tab="explore"] { --c: #D97706; --cs: #FEF1D6; }
.nav a[data-tab="learning"] { --c: #17834A; --cs: #E3F4EA; }
.nav a[data-tab="me"] { --c: #8A3A86; --cs: #F6E8F5; }
.nav a svg { color: var(--c); }
.nav a[aria-current="page"] { background: var(--cs); color: var(--c); }
.nav a[aria-current="page"] svg { transform: scale(1.08); }
/* the eight areas, each in its own colour */
.pillar { border-top: 4px solid var(--pc, var(--blue)); }
.pillar i { background: color-mix(in srgb, var(--pc, var(--blue)) 14%, #fff); }
.chip[data-k][aria-pressed="true"] { background: var(--pc, var(--ink)); }
/* the three numbers on Home: blue, orange, green */
.stat:nth-child(1) { background: rgba(36, 87, 214, .28); }
.stat:nth-child(2) { background: rgba(245, 134, 52, .26); }
.stat:nth-child(3) { background: rgba(23, 131, 74, .3); }
.hello { background: radial-gradient(90% 120% at 100% 0%, rgba(36, 87, 214, .55), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(255, 194, 51, .18), transparent 70%), var(--ink); }
/* role cards in warm, varied colours */
.roles .role:nth-child(4n+1) i { background: #E8EEFC; } .roles .role:nth-child(4n+2) i { background: #FEF1D6; }
.roles .role:nth-child(4n+3) i { background: #E3F4EA; } .roles .role:nth-child(4n+4) i { background: #F6E8F5; }
.kicker { color: var(--blue); }
.sec-head h2 { position: relative; padding-left: 14px; }
.sec-head h2::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 5px; border-radius: 3px; background: linear-gradient(var(--blue), var(--yellow)); }

/* ---------------------------------------------------------------- final test and certificate */
.qc-opt.picked { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 3px rgba(36, 87, 214, .12); }
.certificate { position: relative; overflow: hidden; display: grid; gap: 10px; text-align: center; padding: 28px 22px; border-radius: 22px; background: #fff;
  box-shadow: var(--shadow), inset 0 0 0 6px var(--ink), inset 0 0 0 9px var(--yellow); }
.certificate::before { content: ""; position: absolute; inset: auto -60px -80px auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(36, 87, 214, .14), transparent 70%); }
.cert-top { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: left; }
.cert-top b { display: block; font: 800 20px/1 var(--head); letter-spacing: .06em; } .cert-top small { color: var(--slate); font-size: 12px; }
.cert-kicker { font: 800 13px/1.2 var(--text); letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-top: 8px; }
.cert-small { color: var(--slate); font-size: 14px; }
.cert-name { font-size: clamp(26px, 8vw, 38px); color: var(--ink); }
.cert-course { color: var(--blue-deep); font-size: clamp(19px, 5.5vw, 24px); }
.cert-foot { display: flex; justify-content: center; gap: 28px; margin-top: 8px; }
.cert-foot small { display: block; color: var(--slate); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; } .cert-foot b { font: 700 14px/1.3 var(--head); }
.cert-issuer { font-size: 12px; color: var(--slate); margin-top: 6px; }
@media print { .top, .nav, .toast, main > :not(.certificate) { display: none !important; } body { background: #fff; } main { padding: 0; } }
.gate { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gate li { display: flex; gap: 12px; align-items: center; }
.gate li b { display: block; font: 700 15px/1.3 var(--head); } .gate li small { color: var(--slate); font-size: 13px; }
.gate-dot { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line); font: 800 13px/1 var(--text); color: #fff; }
.gate li.ok .gate-dot { background: var(--green); box-shadow: none; }
