/* AI From Zero: one font (Nunito Sans), white pages, one teal accent. Simple personal-site look. */
:root {
  --bg: #FFFFFF;
  --soft: #F6F7F9;
  --ink: #1F2328;
  --muted: #5E6772;
  --line: #E4E7EB;
  --accent: #1D4ED8;
  --accent-dark: #1E3A8A;
  --accent-soft: #E8EFFD;
  --good: #1E7B3A; --good-soft: #EAF6EE;
  --bad: #B42318; --bad-soft: #FDEEEC;
  --font: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}
.t1, .t2, .t3, .t4 { --tc: var(--accent); --tcs: var(--accent-soft); }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
h1, h2, h3, h4 { font-family: var(--font); line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
mark { background: none; color: inherit; font-weight: 700; border-bottom: 2px solid var(--accent); padding: 0; }
.mono { font-family: inherit; font-weight: 600; }
.small { font-size: 15px; color: var(--muted); }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Header */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.brand { font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand i { display: none; }
.nav-links { display: flex; gap: 2px; overflow-x: auto; min-width: 0; margin-left: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; padding: 6px 10px; border-radius: 6px; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-links a.contact { background: var(--accent); color: #fff; margin-left: 6px; }
.nav-links a.contact:hover { background: var(--accent-dark); }

/* Buttons */
.btn { font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; border: 2px solid var(--accent); border-radius: 8px; padding: 10px 20px; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.light, .btn.ghost { background: transparent; color: var(--accent); }
.btn.light:hover, .btn.ghost:hover { background: var(--accent-soft); }
.btn.sm { font-size: 14px; padding: 6px 14px; }
.btn:disabled { opacity: .6; cursor: default; }

/* Home hero */
.hero { border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; padding-block: 64px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding-block: 40px; } }
.hero-copy { display: grid; gap: 18px; min-width: 0; }
.eyebrow { font-size: 16px; font-weight: 700; color: var(--accent); }
.hero h1 { font-size: clamp(36px, 5.6vw, 54px); font-weight: 800; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 19px; color: var(--muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-chat { background: var(--soft); border-radius: 12px; padding: 20px; display: grid; gap: 10px; min-width: 0; }
.hero-chat .b { padding: 10px 14px; border-radius: 10px; font-size: 15px; max-width: 92%; }
.hero-chat .u { justify-self: end; background: var(--accent); color: #fff; }
.hero-chat .a { justify-self: start; background: #fff; border: 1px solid var(--line); }
.hero-chat .tag { font-size: 14px; font-weight: 700; color: var(--muted); }
.typing::after { content: "|"; color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Cards that link somewhere */
.tracks-overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 48px; }
@media (max-width: 480px) { .tracks-overview { grid-template-columns: 1fr; } }
.track-card { border: 1px solid var(--line); border-radius: 10px; padding: 18px; text-decoration: none; color: var(--ink); display: grid; gap: 4px; align-content: start; }
.track-card:hover { border-color: var(--accent); }
.track-card .k { font-size: 14px; font-weight: 700; color: var(--accent); }
.track-card b { font-size: 19px; }
.home-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.home-more .track-card { gap: 6px; }
.home-more .track-card .go { font-weight: 700; color: var(--accent); font-size: 15px; margin-top: 6px; }

/* Page sections */
.section, .track { padding-block: 56px 0; display: grid; gap: 22px; }
.section-head, .track-head { display: grid; gap: 8px; max-width: 68ch; }
.section-head .k, .track-head .k { font-size: 15px; font-weight: 700; color: var(--accent); }
.section-head h2, .track-head h2 { font-size: clamp(30px, 4.4vw, 40px); font-weight: 800; letter-spacing: -.01em; }
.section-head p, .track-head p { color: var(--muted); font-size: 18px; }

/* Lessons */
.cards { display: grid; grid-template-columns: 1fr; gap: 24px; }
.lesson { border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.lesson.wide { grid-column: 1 / -1; }
.lesson-top { display: flex; gap: 10px; align-items: baseline; }
.lnum { font-weight: 800; font-size: 15px; color: var(--accent); flex: none; }
.lnum::after { content: "."; }
.lesson h3 { font-size: 23px; font-weight: 800; }
.meaning { font-size: 17px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }
.mini { border-radius: 8px; padding: 14px 16px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.mini.analogy { background: var(--accent-soft); }
.mini.example { background: var(--soft); }
.mini h4 { font-size: 15px; font-weight: 800; color: var(--accent); }
.mini.example h4 { color: var(--ink); }
.mini p, .mini li { font-size: 16px; }
.mini ul, .mini-list { margin: 0; padding-left: 20px; display: grid; gap: 3px; }
.remember { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: 16px; }

/* Interactive examples */
.chat { display: grid; gap: 10px; }
.msg { max-width: 92%; padding: 10px 14px; border-radius: 10px; font-size: 16px; min-width: 0; }
.msg.user { justify-self: end; background: var(--accent); color: #fff; }
.msg.ai { justify-self: start; background: var(--soft); }
.who { font-size: 14px; font-weight: 700; color: var(--muted); }
.tabs { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-self: start; }
.tabs button { font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; border: 2px solid var(--accent); border-radius: 8px; padding: 6px 14px; background: transparent; color: var(--accent); }
.tabs button[aria-selected="true"] { background: var(--accent); color: #fff; }
.answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .answers { grid-template-columns: 1fr; } }
.answer { border: 1px solid var(--line); border-radius: 8px; padding: 14px; font-size: 15.5px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.answer dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; }
.answer dt { font-weight: 700; color: var(--accent); }
.answer dd { margin: 0; }
.verdict { padding: 12px 16px; border-radius: 8px; font-size: 16px; }
.verdict.bad { background: var(--bad-soft); border-left: 3px solid var(--bad); }
.verdict.good { background: var(--good-soft); border-left: 3px solid var(--good); }
.recipe { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 760px) { .recipe { grid-template-columns: 1fr 1fr; } }
.ing { background: var(--accent-soft); border-radius: 8px; padding: 14px; display: grid; gap: 4px; align-content: start; }
.ing b { font-size: 19px; color: var(--accent); }
.ing span { font-size: 15px; }
.builder { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .builder { grid-template-columns: 1fr; } }
.fields { display: grid; gap: 12px; }
.field { display: grid; gap: 4px; }
.field label { font-size: 15px; font-weight: 700; }
.field input, .field textarea, .form select, .tok-input, .search {
  font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #CBD2D9; border-radius: 8px; padding: 10px 12px; width: 100%;
}
.field input:focus, .field textarea:focus, .form select:focus, .tok-input:focus, .search:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 80px; }
.out { display: grid; gap: 10px; align-content: start; min-width: 0; }
pre.code { margin: 0; white-space: pre-wrap; word-wrap: break-word; background: var(--soft); border: 1px solid var(--line); font-family: inherit; font-size: 15px; line-height: 1.6; padding: 16px; border-radius: 8px; }
.tokens { display: flex; flex-wrap: wrap; gap: 4px; font-size: 15px; }
.tokens span { padding: 2px 6px; border-radius: 4px; white-space: pre; background: var(--accent-soft); }
.tokens span:nth-child(even) { background: #FFF3D6; }
.predict { display: grid; gap: 7px; }
.bar { display: grid; grid-template-columns: 60px 1fr 44px; align-items: center; gap: 10px; font-size: 15px; }
.bar .track-bar { height: 10px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--accent); }
.bar .pct { font-variant-numeric: tabular-nums; color: var(--muted); text-align: right; }
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.step { flex: 1 1 130px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 15px; display: grid; gap: 2px; align-content: start; min-width: 0; }
.step b { font-size: 14px; color: var(--accent); }
.arrow { align-self: center; color: var(--muted); font-weight: 700; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare > div { background: var(--soft); border-radius: 8px; padding: 16px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.compare h4 { font-size: 19px; }
.temp-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.temp-row input[type=range] { flex: 1 1 200px; accent-color: var(--accent); }
.temp-val { font-weight: 700; color: var(--accent); min-width: 7ch; }

/* Diagrams */
.diagram { display: grid; gap: 10px; }
.diagram > h4 { font-size: 18px; font-weight: 800; }
.nest { border: 2px solid var(--accent); border-radius: 14px; padding: 14px 16px 16px; display: grid; gap: 12px; }
.nest > span { font-weight: 800; font-size: 17px; color: var(--accent-dark); }
.nest > span small { display: block; font-weight: 400; font-size: 14.5px; color: var(--muted); }
.nest.n1 { background: #F1F6FE; }
.nest.n2 { background: #DCE7FB; }
.nest.n3 { background: #DCE6FF; }
.nest.n4 { background: var(--accent); border-color: var(--accent); }
.nest.n4 > span, .nest.n4 > span small { color: #fff; }
.fields-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 15px; }
.fields-row b { margin-right: 4px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 12px; font-size: 14.5px; }
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .types { grid-template-columns: 1fr; } }
.type { border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: grid; gap: 6px; align-content: start; }
.type h4 { font-size: 18px; font-weight: 800; color: var(--accent); }
.type p { font-size: 15.5px; }
.type .ex { color: var(--muted); }
.algos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .algos { grid-template-columns: 1fr; } }
.algo { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: grid; gap: 4px; align-content: start; }
.algo-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.algo h4 { font-size: 17px; font-weight: 800; }
.tag { font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 1px 9px; background: var(--accent-soft); color: var(--accent-dark); }
.tag.un { background: #FFF4E5; color: #9A4A00; }
.tag.re { background: #EEF0FB; color: #3A46A8; }
.algo p { font-size: 15.5px; }
.algo .ex { color: var(--muted); }
.dtree { display: grid; gap: 8px; justify-items: center; text-align: center; font-size: 15px; overflow-x: auto; padding-bottom: 4px; }
.dtree .q { background: var(--accent-soft); border: 0; border-radius: 8px; padding: 8px 14px; font-weight: 700; }
.dtree .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 620px; }
.dtree .col { display: grid; gap: 8px; justify-items: center; align-content: start; }
.dtree .yn { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.dtree .leaf { border-radius: 8px; padding: 6px 12px; font-weight: 700; }
.dtree .leaf.ok { background: var(--good-soft); color: var(--good); }
.dtree .leaf.no { background: var(--bad-soft); color: var(--bad); }
.dtree .leaf.mid { background: #FFF4E5; color: #9A4A00; }
.nn { width: 100%; max-width: 640px; height: auto; display: block; margin-inline: auto; }
.attn { display: grid; gap: 14px; }
.attn-row { display: grid; gap: 6px; }
.attn-words { display: flex; flex-wrap: wrap; gap: 4px; }
.attn-words span { padding: 3px 8px; border-radius: 6px; font-size: 15.5px; }
.attn-words .focus { outline: 2px solid var(--ink); font-weight: 800; }
.attn-row p { font-size: 15px; color: var(--muted); }

.chart { width: 100%; max-width: 520px; height: auto; display: block; margin-inline: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.dtable { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.dtable th, .dtable td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.dtable thead th { background: var(--soft); font-weight: 800; white-space: nowrap; }
.dtable tbody tr:last-child td, .dtable tbody tr:last-child th { border-bottom: 0; }
.dtable .bad-cell { background: var(--bad-soft); }
.dtable .best-cell { background: var(--good-soft); font-weight: 700; }
.dtable.cm tbody th { background: var(--soft); white-space: nowrap; }
.dtable.cm td { text-align: center; }
.lifecycle { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.lifecycle li { position: relative; padding: 0 0 18px 30px; display: grid; gap: 2px; }
.lifecycle li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.lifecycle li::after { content: ""; position: absolute; left: 11px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.lifecycle li:last-child::after { display: none; }
.lifecycle b { font-size: 18px; color: var(--accent-dark); }
.lifecycle p { font-size: 16px; }
.lifecycle span { font-size: 15px; color: var(--muted); background: var(--soft); border-radius: 6px; padding: 6px 10px; justify-self: start; }
.split { display: flex; border-radius: 10px; overflow: hidden; font-size: 14.5px; }
.split > div { padding: 12px; display: grid; gap: 2px; min-width: 0; color: #fff; }
.split > div:nth-child(1) { background: var(--accent); }
.split > div:nth-child(2) { background: #C4630A; }
.split > div:nth-child(3) { background: #3A46A8; }
.split span { font-size: 13.5px; opacity: .9; }
@media (max-width: 560px) { .split { flex-direction: column; } }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: 16px; }
.steps li::marker { color: var(--accent); font-weight: 800; }
.worked { background: var(--soft); border-radius: 10px; padding: 16px 18px; display: grid; gap: 8px; }
.worked h4 { font-size: 16px; font-weight: 800; }
.worked p { font-size: 16px; }
.compare p { font-size: 16px; }

.ner { font-size: 18px; line-height: 2.6; background: var(--soft); border-radius: 10px; padding: 14px 18px; }
.ent { border-radius: 6px; padding: 2px 6px; font-weight: 700; white-space: nowrap; }
.ent em { font-style: normal; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; margin-left: 6px; opacity: .8; }
.ent.per { background: #E6F0FF; color: #1D4ED8; }
.ent.loc { background: var(--accent-soft); color: var(--accent-dark); }
.ent.org { background: #F3E8FF; color: #7E22CE; }
.ent.dat { background: #FFF4E5; color: #9A4A00; }
.ent.mon { background: var(--good-soft); color: var(--good); }

/* Sign in / sign up */
.nav-links a.signin { color: var(--accent); }
.auth-page { display: grid; justify-items: center; padding-block: 56px 0; }
.auth-card { width: 100%; max-width: 440px; border: 1px solid var(--line); border-radius: 14px; padding: 32px; display: grid; gap: 16px; }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: clamp(28px, 4vw, 36px); font-weight: 800; }
.auth-sub { color: var(--muted); }
.auth-card form { display: grid; gap: 14px; }
.auth-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .auth-card .row { grid-template-columns: 1fr; } .auth-card { padding: 22px; } }
.auth-card select { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #CBD2D9; border-radius: 8px; padding: 10px 12px; width: 100%; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: inherit; font-size: 14px; font-weight: 700; color: var(--accent); background: none; border: 0; cursor: pointer; padding: 6px 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.auth-btn { justify-content: center; width: 100%; padding-block: 12px; }
.auth-link-right { text-align: right; margin-top: -6px; font-size: 15px; }
.auth-switch { text-align: center; font-size: 15.5px; color: var(--muted); }
.auth-msg { padding: 10px 14px; border-radius: 8px; font-size: 15.5px; }
.auth-msg.err { background: var(--bad-soft); color: var(--bad); }
.auth-msg.ok { background: var(--good-soft); color: var(--good); }
.auth-msg.info { background: #FFF4E5; color: #9A4A00; }
.auth-done { display: grid; gap: 12px; justify-items: center; text-align: center; }
.auth-done .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 26px; font-weight: 800; }
.auth-done h2 { font-size: 24px; font-weight: 800; }
.acc-details { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; }
.acc-details div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.acc-details div:last-child { border-bottom: 0; }
.acc-details dt { font-weight: 700; color: var(--muted); }
.acc-details dd { margin: 0; word-break: break-word; }
.legal { max-width: 760px; display: grid; gap: 14px; }
.legal h2 { font-size: 22px; font-weight: 800; margin-top: 12px; }
.legal ul { margin: 0; padding-left: 22px; display: grid; gap: 4px; }

/* Certifications */
.cert-note { background: var(--soft); border-radius: 12px; padding: 18px 20px; display: grid; gap: 8px; max-width: 820px; }
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cert { border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 8px; align-content: start; grid-template-rows: auto auto 1fr auto; }
.cert:has(.facts-list) { grid-template-rows: auto auto auto 1fr auto; }
.cert-head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.cert h3 { font-size: 19px; font-weight: 800; }
.cert .by { font-size: 14.5px; color: var(--muted); font-weight: 600; }
.cert p { font-size: 16px; }
.cert > a { font-weight: 700; text-decoration: none; align-self: end; }
.cert > a::after { content: " ↗"; font-weight: 400; }
.cert > a:hover { text-decoration: underline; }
.facts-list { margin: 0; padding-left: 18px; font-size: 15px; color: var(--muted); display: grid; gap: 2px; }
.lvl { flex: none; font-size: 12.5px; font-weight: 800; border-radius: 999px; padding: 2px 10px; }
.lvl.b { background: var(--good-soft); color: var(--good); }
.lvl.i { background: #FFF4E5; color: #9A4A00; }
.lvl.a { background: #FDEEEC; color: var(--bad); }
.cert-box { margin-top: 40px; background: var(--accent-soft); border-radius: 12px; padding: 20px 22px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.cert-box b { font-size: 18px; }
.cert-box p { color: var(--muted); font-size: 16px; }
.cert-box + .pager { margin-top: 24px; }

.stack { display: grid; gap: 6px; max-width: 760px; }
.layer { border-radius: 10px; padding: 12px 16px; display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 4px 16px; align-items: baseline; }
.layer b { font-size: 16.5px; }
.layer span { font-size: 15px; }
.layer em { grid-column: 2; font-style: normal; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .layer { grid-template-columns: 1fr; } .layer em { grid-column: 1; } }
.layer.l1 { background: #E6EEF9; } .layer.l2 { background: #DCE7FB; } .layer.l3 { background: #E8F5E3; }
.layer.l4 { background: #FFF4E5; } .layer.l5 { background: #FDEBEC; } .layer.l6 { background: #F3E8FF; } .layer.l7 { background: #EAE6FB; }

.levels { display: grid; gap: 8px; }
.lvl { display: grid; gap: 2px; padding: 12px 16px; border-radius: 8px; border-left: 5px solid; }
.lvl b { font-size: 17px; }
.lvl span { font-size: 15.5px; color: var(--muted); }
.lvl.l4 { background: #FDEEEC; border-color: #B42318; }
.lvl.l3 { background: #FFF4E5; border-color: #C4630A; }
.lvl.l2 { background: #FFFBE6; border-color: #B08A00; }
.lvl.l1 { background: var(--good-soft); border-color: var(--good); }

/* Official links (governance page) */
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .links { grid-template-columns: 1fr; } }
.link-group { border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.link-group h3 { font-size: 20px; font-weight: 800; }
.link-group ul { list-style: none; margin: 0; padding: 0; display: grid; }
.link-group li { padding-block: 10px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.link-group li:last-child { border-bottom: 0; }
.link-group a { font-weight: 700; text-decoration: none; }
.link-group a:hover { text-decoration: underline; }
.link-group a::after { content: " ↗"; font-weight: 400; }
.link-group span { font-size: 14.5px; color: var(--muted); }

/* Glossary */
.search { max-width: 420px; }
.gloss { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; margin: 0; }
@media (max-width: 680px) { .gloss { grid-template-columns: 1fr; } }
.term { padding-block: 14px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.term dt { font-weight: 800; font-size: 18px; }
.term dd { margin: 0; color: var(--muted); font-size: 16px; }

/* Quiz */
.quiz { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .quiz { grid-template-columns: 1fr; } }
.q { border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 10px; align-content: start; }
.q p.ask { font-weight: 700; }
.opts { display: grid; gap: 8px; }
.opts button { font: inherit; font-size: 16px; text-align: left; cursor: pointer; color: var(--ink); background: #fff; border: 1px solid #CBD2D9; border-radius: 8px; padding: 10px 14px; }
.opts button:hover:not(:disabled) { border-color: var(--accent); }
.opts button.right { border-color: var(--good); background: var(--good-soft); }
.opts button.wrong { border-color: var(--bad); background: var(--bad-soft); }
.opts button:disabled { cursor: default; }
.feedback { font-size: 15.5px; color: var(--muted); }
.score { font-size: 22px; font-weight: 800; }

/* Interactive quiz */
.quiz-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.topic { font: inherit; text-align: left; cursor: pointer; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 20px 18px; display: grid; gap: 4px; align-content: center; min-height: 92px; }
.topic:hover { border-color: var(--accent); background: var(--accent-soft); }
.topic b { font-size: 19px; font-weight: 800; }
.topic span { font-size: 15px; color: var(--muted); }
.topic em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--accent); margin-top: 6px; }
.topic.mixed { border: 2px solid var(--accent); }
.quiz-card, .quiz-result { border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; gap: 16px; max-width: 760px; }
.quiz-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.quiz-topic { font-weight: 800; color: var(--accent); }
.quiz-count { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.quiz-progress { height: 8px; background: var(--soft); border-radius: 999px; overflow: hidden; }
.quiz-progress div { height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s; }
.quiz-q { font-size: clamp(20px, 2.6vw, 24px); font-weight: 800; line-height: 1.35; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opts button { font: inherit; font-size: 17px; text-align: left; cursor: pointer; color: var(--ink); background: #fff; border: 1.5px solid #CBD2D9; border-radius: 10px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.quiz-opts button:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.quiz-opts button:disabled { cursor: default; }
.quiz-opts .letter { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.quiz-opts button.right { border-color: var(--good); background: var(--good-soft); }
.quiz-opts button.right .letter { background: var(--good); color: #fff; }
.quiz-opts button.wrong { border-color: var(--bad); background: var(--bad-soft); }
.quiz-opts button.wrong .letter { background: var(--bad); color: #fff; }
.quiz-feedback:empty { display: none; }
.quiz-feedback { padding: 12px 16px; border-radius: 8px; font-size: 16px; }
.quiz-feedback.ok { background: var(--good-soft); border-left: 3px solid var(--good); }
.quiz-feedback.no { background: var(--bad-soft); border-left: 3px solid var(--bad); }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-result { text-align: center; justify-items: center; }
.quiz-big { font-size: 56px; font-weight: 800; line-height: 1; color: var(--accent); }

/* About */
.about { background: var(--soft); border-radius: 12px; padding: 36px; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start; }
@media (max-width: 700px) { .about { grid-template-columns: 1fr; padding: 24px; gap: 20px; } }
.avatar { width: 112px; height: 112px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 48px; }
.about-copy { display: grid; gap: 14px; min-width: 0; }
.about-copy h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; }
.about-copy blockquote { margin: 0; border-left: 3px solid var(--accent); padding-left: 16px; font-size: clamp(19px, 2.4vw, 22px); font-style: italic; color: var(--ink); max-width: 40ch; }
.about-copy p { color: var(--muted); font-size: 17px; max-width: 62ch; }
.journey { display: flex; flex-wrap: wrap; gap: 8px; }
.journey span { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 14px; font-size: 15px; }
.journey span.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.about .btn.light { justify-self: start; }

/* Online classes */
.classes { border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; }
@media (max-width: 800px) { .classes { grid-template-columns: 1fr; } }
.classes-copy { padding: 32px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.classes-copy .pill { justify-self: start; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; border-radius: 999px; padding: 4px 12px; }
.classes-copy h3 { font-size: clamp(24px, 3.4vw, 30px); font-weight: 800; }
.classes-copy p { color: var(--muted); max-width: 52ch; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 440px) { .facts { grid-template-columns: 1fr; } }
.fact { background: var(--soft); border-radius: 8px; padding: 12px 14px; display: grid; gap: 2px; }
.fact span { font-size: 14px; color: var(--muted); }
.fact b { font-size: 18px; }
.classes-side { background: var(--accent-soft); padding: 32px; display: grid; gap: 14px; align-content: center; justify-items: start; }
.price { font-weight: 800; font-size: 48px; line-height: 1; color: var(--accent); }
.price small { font-size: 18px; font-weight: 600; color: var(--muted); }
.classes-side p { color: var(--muted); font-size: 16px; }
.classes-side ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 14px; align-content: start; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--soft); border-radius: 8px; padding: 12px 14px; }
.email-row code { font-family: inherit; font-weight: 700; font-size: 16px; user-select: all; word-break: break-all; }
.form { border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } }
.err { color: var(--bad); font-size: 15px; }

/* Home extras, pager, footer */
.cta-band { background: var(--accent-soft); border-radius: 12px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cta-band h3 { font-size: clamp(21px, 3vw, 26px); font-weight: 800; }
.cta-band p { color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; }
.pager a { text-decoration: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 12px 18px; display: grid; gap: 2px; min-width: 0; }
.pager a:hover { border-color: var(--accent); }
.pager a span { font-size: 14px; color: var(--muted); }
.pager a b { font-size: 18px; color: var(--accent); }
.pager a.next { margin-left: auto; text-align: right; }
footer { margin-top: 72px; border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 15px; }

/* ===== Header menu (grouped, with Learn dropdown and phone menu) ===== */
.nav .wrap { position: relative; gap: 16px; }
.nav-links { overflow: visible; display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a, .drop-btn { color: var(--muted); text-decoration: none; font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; padding: 7px 10px; border-radius: 6px; background: none; border: 0; cursor: pointer; }
.nav-links a:hover, .drop-btn:hover { color: var(--ink); background: var(--soft); }
.nav-links a[aria-current="page"], .drop-btn.active { color: var(--accent); }
.nav-links a.signin { color: var(--accent); border: 2px solid var(--accent); padding: 5px 14px; margin-left: 8px; }
.nav-links a.signin:hover { background: var(--accent-soft); }
.nav-links a.contact { background: var(--accent); color: #fff; padding: 7px 14px; margin-left: 4px; }
.nav-links a.contact:hover { background: var(--accent-dark); color: #fff; }
.dropdown { position: relative; }
.drop-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(15,27,45,.12); padding: 6px; }
.drop-menu a { display: block; padding: 9px 12px; }
.dropdown.open .drop-menu { display: block; }
@media (hover: hover) and (min-width: 1001px) { .dropdown:hover .drop-menu, .dropdown:focus-within .drop-menu { display: block; } }
.menu-btn { display: none; margin-left: auto; font: inherit; font-weight: 700; font-size: 15px; color: var(--accent); background: none; border: 2px solid var(--accent); border-radius: 8px; padding: 6px 14px; cursor: pointer; }

@media (max-width: 1000px) {
  .menu-btn { display: inline-block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 10px 30px rgba(15,27,45,.12); flex-direction: column; align-items: stretch; gap: 2px; padding: 10px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); max-height: calc(100vh - 70px); overflow-y: auto; }
  .nav.open .nav-links { display: flex; }
  .nav-links a, .drop-btn { font-size: 16px; padding: 10px 12px; text-align: left; width: 100%; }
  .drop-menu { position: static; display: none; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 6px 12px; padding: 0; min-width: 0; }
  .dropdown.open .drop-menu { display: block; }
  .drop-btn { display: flex; justify-content: space-between; align-items: center; }
  .dropdown.open .drop-btn span { display: inline-block; transform: rotate(180deg); }
  .nav-links a.signin, .nav-links a.contact { margin: 6px 0 0; text-align: center; }
}

/* ===== Interactive quiz (v2) ===== */
.quiz-topics { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.topic { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; padding: 20px; min-height: 150px; display: grid; gap: 10px; align-content: start; background: #fff; transition: transform .15s, box-shadow .15s, border-color .15s; }
.topic::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--tc); }
.topic:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(15,27,45,.10); border-color: var(--tc); background: #fff; }
.topic-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #fff; background: var(--tc); }
.topic b { font-size: 18px; }
.topic-go { font-size: 14.5px; font-weight: 700; color: var(--tc); margin-top: auto; }
.topic-best { display: grid; gap: 4px; margin-top: auto; }
.topic-best em { font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--tc); }
.topic-bar { height: 6px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.topic-bar span { display: block; height: 100%; background: var(--tc); border-radius: 999px; }
.topic.mixed { border: 2px solid var(--tc); background: linear-gradient(135deg, #fff, var(--soft)); }

.quiz-card, .quiz-result { position: relative; overflow: hidden; border: 1px solid var(--line); border-top: 5px solid var(--tc, var(--accent)); border-radius: 18px; padding: 28px; display: grid; gap: 18px; max-width: 780px; box-shadow: 0 10px 30px rgba(15,27,45,.06); }
.quiz-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.quiz-topic { font-weight: 800; color: var(--tc, var(--accent)); font-size: 16px; }
.quiz-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-stats span { font-size: 14px; font-weight: 700; background: var(--soft); border-radius: 999px; padding: 4px 12px; font-variant-numeric: tabular-nums; }
.quiz-streak.hot { background: #FFF1E0; color: #C2410C; animation: pop .35s ease; }
.quiz-dots { display: flex; gap: 6px; flex-wrap: wrap; }
.quiz-dots span { flex: 1 1 18px; max-width: 60px; height: 8px; border-radius: 999px; background: var(--line); transition: background .3s; }
.quiz-dots span.now { background: var(--tc, var(--accent)); opacity: .45; }
.quiz-dots span.ok { background: var(--good); }
.quiz-dots span.no { background: var(--bad); }
.quiz-body { display: grid; gap: 16px; animation: slideIn .35s ease; }
.quiz-q { font-size: clamp(20px, 2.6vw, 25px); font-weight: 800; line-height: 1.35; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opts button { font: inherit; font-size: 17px; text-align: left; cursor: pointer; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; transition: border-color .15s, background .15s, transform .1s; }
.quiz-opts button:hover:not(:disabled) { border-color: var(--tc, var(--accent)); transform: translateX(3px); }
.quiz-opts button:active:not(:disabled) { transform: scale(.99); }
.quiz-opts .letter { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.quiz-opts .opt-text { flex: 1; }
.quiz-opts .opt-mark { flex: none; font-weight: 800; font-size: 18px; }
.quiz-opts button:disabled { cursor: default; opacity: .75; }
.quiz-opts button.right, .quiz-opts button.wrong { opacity: 1; }
.quiz-opts button.right { border-color: var(--good); background: var(--good-soft); animation: pop .35s ease; }
.quiz-opts button.right .letter { background: var(--good); color: #fff; }
.quiz-opts button.right .opt-mark::after { content: "✓"; color: var(--good); }
.quiz-opts button.wrong { border-color: var(--bad); background: var(--bad-soft); animation: shake .4s ease; }
.quiz-opts button.wrong .letter { background: var(--bad); color: #fff; }
.quiz-opts button.wrong .opt-mark::after { content: "✗"; color: var(--bad); }
.quiz-feedback:empty { display: none; }
.quiz-feedback { border-radius: 14px; padding: 16px 18px; display: grid; gap: 12px; animation: slideIn .3s ease; font-size: 16px; }
.quiz-feedback.ok { background: var(--good-soft); border-left: 5px solid var(--good); }
.quiz-feedback.no { background: #FFF8F7; border-left: 5px solid var(--bad); }
.fb-title { font-weight: 800; font-size: 18px; }
.quiz-feedback.ok .fb-title { color: var(--good); }
.quiz-feedback.no .fb-title { color: var(--bad); }
.fb-title span { font-size: 14px; background: #FFF1E0; color: #C2410C; border-radius: 999px; padding: 2px 10px; margin-left: 6px; }
.fb-row { display: grid; gap: 4px; background: #fff; border-radius: 10px; padding: 10px 14px; border: 1px solid var(--bad-soft); }
.fb-row.right { border-color: var(--good-soft); }
.fb-label { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--bad); }
.fb-row.right .fb-label { color: var(--good); }
.quiz-keys { margin-top: -6px; }
@media (hover: none) { .quiz-keys { display: none; } }

.quiz-result { text-align: center; justify-items: center; }
.ring { width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--tc, var(--accent)) var(--deg), var(--soft) 0); animation: pop .5s ease; }
.ring > div { width: 132px; height: 132px; border-radius: 50%; background: #fff; display: grid; place-content: center; gap: 2px; }
.ring b { font-size: 36px; font-weight: 800; line-height: 1; color: var(--ink); }
.ring span { font-size: 15px; font-weight: 700; color: var(--muted); }
.quiz-msg { font-size: 18px; max-width: 46ch; }
.quiz-summary { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.quiz-summary span { background: var(--soft); border-radius: 12px; padding: 10px 16px; font-size: 15px; }
.quiz-summary b { font-size: 20px; margin-right: 4px; color: var(--tc, var(--accent)); }
.review { width: 100%; text-align: left; display: grid; gap: 8px; margin-top: 8px; }
.review h3 { font-size: 20px; font-weight: 800; }
.rev { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; }
.rev summary { cursor: pointer; display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; font-weight: 700; list-style: none; }
.rev summary::-webkit-details-marker { display: none; }
.rev-mark { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #fff; }
.rev.ok .rev-mark { background: var(--good); }
.rev.no .rev-mark { background: var(--bad); }
.rev p { padding-bottom: 8px; font-size: 15.5px; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall 2.4s ease-in forwards; }
@keyframes fall { to { top: 110%; transform: rotate(540deg); opacity: .2; } }
@keyframes pop { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
@keyframes slideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .quiz-body, .quiz-feedback, .ring, .quiz-opts button.right, .quiz-opts button.wrong, .quiz-streak.hot { animation: none; } }
@media (max-width: 560px) { .quiz-card, .quiz-result { padding: 20px; } }
/* Main page headings are h1 (same look as the section headings) */
.section-head h1, .track-head h1 { font-size: clamp(30px, 4.4vw, 40px); font-weight: 800; letter-spacing: -.01em; }
.about-copy h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; }

/* 404 page */
.notfound { justify-items: center; text-align: center; padding-block: 72px 24px; }
.nf-code { font-size: clamp(80px, 16vw, 140px); font-weight: 800; line-height: 1; color: var(--accent); opacity: .85; }
.notfound h1 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 800; }
.notfound p { color: var(--muted); max-width: 52ch; }
.notfound .hero-actions { justify-content: center; }
.classes-side .side-title { font-size: 26px; font-weight: 800; color: var(--accent); }

/* Lesson links on topic pages */
.lesson-top { flex-wrap: wrap; justify-content: space-between; }
.lesson h3 a { color: inherit; text-decoration: none; }
.lesson h3 a:hover { color: var(--accent); text-decoration: underline; }
.lesson-open { font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.lesson-open:hover { text-decoration: underline; }

/* Standalone lesson pages (learn/...) */
.lesson-page { padding-block: 28px 0; }
.crumbs { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs span { color: var(--ink); font-weight: 600; }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
@media (max-width: 960px) { .lesson-layout { grid-template-columns: 1fr; } }
.lesson-main { display: grid; gap: 24px; min-width: 0; }
.lesson-page .lesson h1 { font-size: clamp(28px, 4.2vw, 40px); font-weight: 800; letter-spacing: -.01em; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); }
.share-btn { font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; border-radius: 999px; padding: 5px 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.share-btn.li { color: #0A66C2; border-color: #BBD3EE; }
.share-btn.wa { color: #128C4A; border-color: #BFE5CF; }
.share-btn:hover { background: var(--soft); }
.lesson-cta { background: var(--accent-soft); border-radius: 14px; padding: 20px 22px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.lesson-cta b { font-size: 18px; }
.lesson-cta p { color: var(--muted); }
.lesson-side { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 12px; max-height: calc(100vh - 110px); overflow-y: auto; }
@media (max-width: 960px) { .lesson-side { position: static; max-height: none; } }
.side-head { font-weight: 800; }
.side-head a { color: var(--ink); text-decoration: none; }
.lesson-side ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; }
.lesson-side ol a { color: var(--muted); text-decoration: none; }
.lesson-side ol a:hover { color: var(--accent); text-decoration: underline; }
.lesson-side ol a[aria-current="page"] { color: var(--accent); font-weight: 800; }
.lesson-side .btn { justify-content: center; }
/* Interview questions page */
.iq-tools { display: grid; gap: 12px; }
.iq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.iq-chip { font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; border: 1.5px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 6px 14px; }
.iq-chip:hover { border-color: var(--accent); color: var(--accent); }
.iq-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
#iq-toggle { justify-self: start; }
#iq-list { display: grid; gap: 28px; }
.iq-group { display: grid; gap: 10px; }
.iq-group h2 { font-size: 24px; font-weight: 800; }
.iq { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.iq[open] { border-color: var(--accent); box-shadow: 0 6px 18px rgba(15,27,45,.06); }
.iq summary { cursor: pointer; list-style: none; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; font-weight: 700; font-size: 16.5px; }
.iq summary::-webkit-details-marker { display: none; }
.iq summary::after { content: "+"; margin-left: auto; font-size: 22px; line-height: 1; color: var(--accent); }
.iq[open] summary::after { content: "–"; }
.iq-n { flex: none; min-width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.iq-a { padding: 0 16px 16px 56px; display: grid; gap: 8px; }
.iq-a p { font-size: 16px; }
.iq-a a { font-weight: 700; font-size: 15px; text-decoration: none; }
@media (max-width: 560px) { .iq-a { padding-left: 16px; } }
/* Newsletter + cheat sheets */
.nl-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .nl-hero { grid-template-columns: 1fr; } }
.nl-copy { display: grid; gap: 14px; }
.nl-copy h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 800; letter-spacing: -.01em; }
.nl-lede { font-size: 18px; color: var(--muted); }
.cs-cards { display: grid; gap: 10px; }
.cs-card { border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px; background: #fff; }
.cs-card h3 { font-size: 18px; font-weight: 800; }
.cs-card p { color: var(--muted); font-size: 15.5px; }
.cs-tag { justify-self: start; font-size: 12px; font-weight: 800; color: var(--accent-dark); background: var(--accent-soft); border-radius: 999px; padding: 2px 10px; }
.nl-form { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); box-shadow: 0 10px 30px rgba(15,27,45,.08); }
@media (max-width: 860px) { .nl-form { position: static; } }
.nl-form h2 { font-size: 22px; font-weight: 800; }
.nl-interests { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.nl-interests legend { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.nl-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.nl-band { background: var(--hero-bg, #0B1E2C); background: linear-gradient(120deg, var(--accent), var(--accent-dark)); color: #fff; border-radius: 16px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.nl-band .k { color: #DCE6FF; font-weight: 700; }
.nl-band h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; }
.nl-band p { color: #DCE7FB; }
.nl-band .btn { background: #fff; color: var(--accent-dark); border-color: #fff; }
.cs-dls { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cs-dl { border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 6px; text-decoration: none; color: var(--ink); background: #fff; }
.cs-dl:hover { border-color: var(--accent); box-shadow: 0 8px 22px rgba(15,27,45,.08); }
.cs-dl b { font-size: 18px; }
.cs-dl span:last-child { color: var(--accent); font-weight: 700; }
/* Share my score */
.share-score { width: 100%; max-width: 520px; display: grid; gap: 10px; justify-items: center; background: var(--soft); border-radius: 16px; padding: 18px; }
.share-card { display: flex; align-items: center; gap: 12px; background: linear-gradient(120deg, var(--tc, var(--accent)), var(--accent-dark)); color: #fff; border-radius: 14px; padding: 14px 18px; width: 100%; text-align: left; }
.sc-badge { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--accent-dark); display: grid; place-items: center; font-weight: 800; }
.share-card b { display: block; font-size: 22px; line-height: 1.1; }
.share-card span { font-size: 14px; opacity: .92; }
.share-title { font-weight: 800; }
.share-score .share { justify-content: center; }
/* Lesson progress */
.tp-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; flex: 1; min-width: 80px; }
.tp-bar span { display: block; height: 100%; width: 0; background: var(--good); border-radius: 999px; transition: width .4s; }
.track-progress { display: flex; align-items: center; gap: 12px; max-width: 520px; margin-top: 6px; }
.tp-text { font-size: 14.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.lesson-actions { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.done-toggle { font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; border: 1.5px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 4px 12px; }
.done-toggle:hover { border-color: var(--good); color: var(--good); }
.done-toggle.is-done, .done-btn.is-done { background: var(--good-soft); border-color: var(--good); color: var(--good); }
.done-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.done-btn.is-done:hover { background: var(--good-soft); }
.done-note { font-size: 15.5px; }
.lesson-side ol a.is-done::after { content: " ✓"; color: var(--good); font-weight: 800; }
.lesson-side .track-progress { margin: 0; }
.lesson-side .tp-text { font-size: 13px; }
.tc-progress { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; margin-top: 6px; }
.tc-progress i { display: block; height: 6px; border-radius: 999px; background: var(--good); }
.tc-progress em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--good); }
.continue-box { margin-top: 28px; border: 1px solid var(--line); border-left: 5px solid var(--good); border-radius: 14px; padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: #fff; }
.cb-main { display: grid; gap: 6px; min-width: 0; flex: 1 1 320px; }
.continue-box .k { font-size: 14px; font-weight: 700; color: var(--good); }
.cb-link { font-size: 19px; font-weight: 800; text-decoration: none; color: var(--ink); }
.cb-link:hover { color: var(--accent); }
.cb-overall { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--muted); font-weight: 700; }
.acc-progress { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.acc-progress h2 { font-size: 22px; font-weight: 800; }
.acc-progress > .btn { justify-self: start; }
.acc-tracks { display: grid; gap: 8px; }
.acc-track { display: grid; grid-template-columns: minmax(120px, 200px) 1fr auto; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-size: 15px; padding: 4px 0; }
.acc-track:hover b { color: var(--accent); }
.acc-track span { font-size: 13.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .acc-track { grid-template-columns: 1fr auto; } .acc-track .tp-bar { grid-column: 1 / -1; grid-row: 2; } }
/* Site search */
.search-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; margin-left: 8px; }
.search-btn:hover { color: var(--accent); border-color: var(--accent); }
.search-btn span { display: none; } .search-btn { padding: 8px; }
@media (max-width: 1000px) { .search-btn { order: 2; margin-left: 8px; } .menu-btn { order: 1; } }
body.srch-open { overflow: hidden; }
.srch { position: fixed; inset: 0; z-index: 100; background: rgba(15,27,45,.45); display: grid; justify-items: center; align-items: start; padding: calc(64px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
.srch[hidden] { display: none !important; }
.srch-panel { width: 100%; max-width: 680px; max-height: calc(100vh - 100px); background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(15,27,45,.25); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.srch-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.srch-icon { width: 18px; height: 18px; border: 2.4px solid var(--muted); border-radius: 50%; position: relative; flex: none; }
.srch-icon::after { content: ""; position: absolute; width: 8px; height: 2.4px; background: var(--muted); right: -7px; bottom: -4px; transform: rotate(45deg); border-radius: 2px; }
.srch-bar input { flex: 1; min-width: 0; font: inherit; font-size: 18px; border: 0; outline: none; padding: 6px 2px; color: var(--ink); }
.srch-close { font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; cursor: pointer; }
.srch-results { overflow-y: auto; padding: 8px 8px 12px; }
.srch-group { display: grid; gap: 2px; margin-top: 6px; }
.srch-gh { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 10px 2px; }
.srch-gh span { background: var(--soft); border-radius: 999px; padding: 0 7px; margin-left: 4px; }
.srch-item { display: grid; gap: 1px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.srch-item b { font-size: 15.5px; }
.srch-item em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.srch-item span { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.srch-item:hover, .srch-item.active { background: var(--accent-soft); }
.srch-item mark { background: #FFF1B8; color: inherit; border: 0; font-weight: inherit; padding: 0 1px; border-radius: 3px; }
.srch-empty { padding: 14px 10px; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.srch-sug { font: inherit; font-size: 14px; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 4px 12px; }
.srch-sug:hover { border-color: var(--accent); color: var(--accent); }
.srch-foot { padding: 8px 14px; border-top: 1px solid var(--line); }
.srch-foot kbd { font-family: inherit; font-size: 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
@media (hover: none) { .srch-foot { display: none; } }
.term.flash, .iq.flash { animation: flash 2.2s ease; }
@keyframes flash { 0%, 40% { background: #FFF1B8; } 100% { background: #fff; } }
/* Keep the full menu on one line on mid-size screens */
@media (min-width: 1001px) {
  .nav .wrap { gap: 10px; }
  .brand { font-size: 18px; }
  .nav-links a, .drop-btn { font-size: 14px; padding: 6px 7px; }
  .nav-links a.signin { padding: 4px 10px; margin-left: 4px; }
  .nav-links a.contact { padding: 6px 10px; }
}
/* Last updated + feedback */
.updated { font-size: 14px; color: var(--muted); margin-top: -4px; }
.feedback-box { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 12px; background: #fff; }
.fb-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.fb-ask b { font-size: 17px; }
.fb-votes { display: flex; gap: 8px; }
.fb-vote { font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 16px; }
.fb-vote:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.fb-vote.chosen { border-color: var(--accent); background: var(--accent-soft); }
.fb-vote:disabled { cursor: default; }
.fb-more { display: grid; gap: 8px; }
.fb-q { font-weight: 700; font-size: 15px; }
.fb-more textarea { font: inherit; font-size: 15.5px; color: var(--ink); background: var(--soft); border: 1px solid #CBD2D9; border-radius: 10px; padding: 10px 12px; width: 100%; resize: vertical; }
.fb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fb-thanks { font-weight: 700; color: var(--good); }
/* Try it yourself tasks and mini projects */
.try-box, .project { border: 1.5px solid var(--accent); border-radius: 12px; padding: 18px 20px; display: grid; gap: 8px; background: #fff; }
.try-box { background: linear-gradient(var(--accent-soft), #fff 70%); }
.try-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.try-head h4 { font-size: 17px; font-weight: 800; color: var(--accent-dark); }
.try-head h3 { font-size: 20px; font-weight: 800; }
.try-time { font-size: 13.5px; font-weight: 700; color: var(--accent-dark); background: var(--accent-soft); border-radius: 999px; padding: 2px 10px; }
.try-goal { font-weight: 700; font-size: 16.5px; }
.try-box .steps, .project .steps { margin: 0; padding-left: 22px; display: grid; gap: 4px; font-size: 16px; }
.try-see { font-size: 15.5px; background: var(--soft); border-radius: 8px; padding: 8px 12px; }
.try-note { margin-top: 2px; }
.more-projects { font-size: 15.5px; color: var(--muted); }
.projects { padding-top: 48px; display: grid; gap: 16px; }
.projects-head h2 { font-size: clamp(26px, 3.6vw, 32px); font-weight: 800; }
.projects-head p { color: var(--muted); font-size: 17px; }

/* Course outline view of a topic page */
.outline { display: grid; gap: 10px; }
.lrow { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #fff; transition: border-color .15s, background .15s; }
.lrow:hover { border-color: var(--accent); background: var(--accent-soft); }
.lrow-tick { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #CBD2D9; display: grid; place-items: center; font-size: 14px; font-weight: 800; color: #fff; }
.lrow.is-done .lrow-tick { background: var(--accent); border-color: var(--accent); }
.lrow.is-done .lrow-tick::after { content: "\2713"; }
.lrow-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.lrow-text b { font-size: 18px; font-weight: 800; }
.lrow-text span { font-size: 15.5px; color: var(--muted); }
.lrow-text em { font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--accent-dark); margin-top: 4px; }
.lrow-go { flex: none; font-size: 20px; font-weight: 800; color: var(--accent); }

/* ---------- Visual refresh: topic icons, topic headers, guided projects ---------- */
.topic-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); flex: none; }
.topic-icon.big { width: 64px; height: 64px; border-radius: 16px; }
.topic-icon.big svg { width: 36px; height: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 14px; font-weight: 700; color: var(--accent-dark); background: var(--accent-soft); border-radius: 999px; padding: 3px 12px; }
.chips .chip-code { background: #EEF0FB; color: #3A46A8; }
.track-hero { display: flex; gap: 20px; align-items: flex-start; background: linear-gradient(135deg, var(--accent-soft), #fff 75%); border: 1px solid #D6E2F5; border-radius: 18px; padding: 28px; }
.track-hero .track-head { max-width: none; flex: 1; min-width: 0; }
.track-hero .track-progress { margin-top: 4px; }
@media (max-width: 600px) { .track-hero { flex-direction: column; padding: 20px; } }
.guided { display: grid; gap: 12px; }
.guided h2, .outline-h2, .proj-h2 { font-size: clamp(22px, 3vw, 26px); font-weight: 800; }
.outline-h2 { margin-top: 8px; }
.guided-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.build-card { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); border: 1.5px solid var(--accent); border-radius: 14px; padding: 16px 18px; background: #fff; transition: background .15s, transform .15s; }
.build-card:hover { background: var(--accent-soft); transform: translateY(-1px); }
.build-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.build-text .k { font-size: 13.5px; font-weight: 700; color: var(--accent); }
.build-text b { font-size: 18px; font-weight: 800; line-height: 1.3; }
.lesson-page .build-card { margin-top: 6px; }

/* Home: how it works + featured projects */
.how-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
@media (max-width: 860px) { .how-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .how-strip { grid-template-columns: 1fr; } }
.how-step { border-radius: 14px; padding: 18px; background: var(--soft); display: grid; gap: 6px; align-content: start; }
.how-step b { font-size: 18px; font-weight: 800; }
.how-step span.small { color: var(--muted); }
.how-step .n { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: .02em; }
.track-card .topic-icon { margin-bottom: 6px; }
.track-card { transition: border-color .15s, transform .15s, box-shadow .15s; }
.track-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(29, 78, 216, .10); }

/* Projects hub */
.proj-hub-hero { display: grid; gap: 12px; padding-block: 48px 8px; max-width: 760px; }
.proj-hub-hero h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; letter-spacing: -.01em; }
.proj-hub-hero .lede { font-size: 18px; color: var(--muted); }
.proj-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.proj-filter button { font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; border: 2px solid var(--accent); border-radius: 999px; padding: 6px 16px; background: #fff; color: var(--accent); }
.proj-filter button.on { background: var(--accent); color: #fff; }
.proj-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 24px; }
.proj-tile { border: 1px solid var(--line); border-radius: 16px; padding: 20px; text-decoration: none; color: var(--ink); display: grid; gap: 8px; align-content: start; background: #fff; transition: border-color .15s, transform .15s, box-shadow .15s; }
.proj-tile:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(29, 78, 216, .10); }
.proj-tile[hidden] { display: none; }
.proj-tile .k { font-size: 13.5px; font-weight: 700; color: var(--accent); }
.proj-tile b { font-size: 20px; font-weight: 800; line-height: 1.3; }
.proj-tile .go { font-weight: 700; color: var(--accent); font-size: 15px; margin-top: 4px; }

/* Project page */
.project-page { padding-block: 28px 0; display: grid; gap: 28px; }
.project-page .crumbs { margin-bottom: 0; }
.proj-hero { display: grid; gap: 12px; background: linear-gradient(135deg, var(--accent-soft), #fff 75%); border: 1px solid #D6E2F5; border-radius: 18px; padding: 28px; }
.proj-hero h1 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.proj-hero .lede { font-size: 18px; color: var(--muted); max-width: 62ch; }
.proj-progress { display: grid; gap: 4px; max-width: 360px; }
.proj-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .proj-facts { grid-template-columns: 1fr; } }
.proj-facts > div, .proj-box { border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 6px; align-content: start; }
.proj-facts h2, .proj-box h2, .proj-before h2, .proj-share h2 { font-size: 18px; font-weight: 800; color: var(--accent-dark); }
.proj-facts p, .proj-facts li, .proj-box li { font-size: 16px; }
.proj-facts ul, .proj-box ul, .proj-before ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.proj-before { background: var(--soft); border-radius: 14px; padding: 18px 20px; display: grid; gap: 8px; }
.proj-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; }
.pstep { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; position: relative; padding-bottom: 22px; }
.pstep::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.pstep:last-child::before { display: none; }
.pstep-num { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.pstep.is-done .pstep-num { background: var(--good); }
.pstep-body { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: grid; gap: 10px; min-width: 0; background: #fff; }
.pstep.is-done .pstep-body { border-color: #BFE3CB; }
.pstep-body h3 { font-size: 19px; font-weight: 800; }
.pstep-see { font-size: 15.5px; background: var(--accent-soft); border-radius: 8px; padding: 8px 12px; }
.pstep-why { font-size: 15px; color: var(--muted); }
.pstep-check { display: flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 700; color: var(--accent-dark); cursor: pointer; justify-self: start; }
.pstep-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.copy-block { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-width: 0; }
.copy-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--soft); padding: 6px 8px 6px 12px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.copy-code { font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; border: 1.5px solid var(--accent); color: var(--accent); background: #fff; border-radius: 6px; padding: 3px 12px; }
.copy-code:hover { background: var(--accent-soft); }
.copy-block pre { margin: 0; padding: 12px 14px; white-space: pre-wrap; word-wrap: break-word; font-size: 14.5px; line-height: 1.55; background: #fff; }
.copy-block.is-code pre { background: #0F1B3D; color: #E6ECFA; font-family: Consolas, "Courier New", monospace; font-size: 13.5px; white-space: pre; overflow-x: auto; }
.proj-done { background: var(--good-soft); border-left: 3px solid var(--good); border-radius: 0 12px 12px 0; padding: 14px 18px; }
.proj-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .proj-two { grid-template-columns: 1fr; } }
.proj-share { display: grid; gap: 10px; justify-items: start; }
.proj-share .copy-block { justify-self: stretch; }

/* ---------- Colour refresh: light green page, white cards, one colour per topic ---------- */
:root { --page: #EAF3FC; --soft: #F3F7FC; --line: #DCE5EF; }
body { background: var(--page); }
.nav { background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(6px); }
.hero { background: linear-gradient(180deg, #FFFFFF 0%, var(--page) 100%); }
footer { background: #fff; }
.hero-chat, .track-card, .lesson, .table-wrap, .auth-card, .acc-details, .cert-note, .cert, .link-group, .q, .topic,
.quiz-card, .quiz-result, .about, .classes, .fact, .email-row, .form, .pager a, .lesson-side, .iq, .cs-card, .share-score,
.continue-box, .feedback-box, .lrow, .proj-tile, .proj-facts > div, .proj-box, .proj-before, .pstep-body, .type, .algo,
.answer, .term, .cta-band, .nl-band, .legal, .lesson-cta { background-color: #fff; }
.about { background: #fff; }
.lrow:hover { background: #F5F9FE; }

.ti-0, .track-card[data-track="0"] { --c: #0369A1; --cs: #E0F2FE; }
.ti-1, .track-card[data-track="1"] { --c: #2563EB; --cs: #E3ECFD; }
.ti-2, .track-card[data-track="2"] { --c: #9333EA; --cs: #F1E6FD; }
.ti-3, .track-card[data-track="3"] { --c: #EA580C; --cs: #FDEBDD; }
.ti-4, .track-card[data-track="4"] { --c: #BE185D; --cs: #FBE4EF; }
.ti-5, .track-card[data-track="5"] { --c: #0891B2; --cs: #DDF3F8; }
.ti-6, .track-card[data-track="6"] { --c: #4F46E5; --cs: #E6E5FC; }
.ti-7, .track-card[data-track="7"] { --c: #B45309; --cs: #FBEFD5; }
.ti-8, .track-card[data-track="8"] { --c: #15803D; --cs: #DFF5E5; }
.topic-icon { background: var(--cs, var(--accent-soft)); color: var(--c, var(--accent)); }
.tracks-overview .track-card { border-top: 4px solid var(--c, var(--accent)); }
.tracks-overview .track-card:hover { border-color: var(--c, var(--accent)); }
.track-hero[class*="ti-"], .proj-hero[class*="ti-"] { background: linear-gradient(135deg, var(--cs) 0%, #fff 78%); border-color: var(--cs); }
.track-hero .tp-bar span, .proj-hero .tp-bar span { background: var(--c, var(--accent)); }
.track-hero .chips span, .proj-hero .chips span:first-child { background: #fff; color: var(--c, var(--accent-dark)); border: 1px solid var(--cs, var(--line)); }
.build-card[class*="ti-"] { border-color: var(--c); }
.build-card[class*="ti-"]:hover { background: var(--cs); }
.build-card[class*="ti-"] .build-text .k, .build-card[class*="ti-"] .lrow-go { color: var(--c); }
.proj-tile[class*="ti-"] { border-top: 4px solid var(--c); }
.proj-tile[class*="ti-"] .k, .proj-tile[class*="ti-"] .go { color: var(--c); }
.how-step { background: #fff; border-top: 4px solid var(--hc, var(--accent)); }
.how-step .n { color: var(--hc, var(--accent)); }
.how-step:nth-child(1) { --hc: #1D4ED8; }
.how-step:nth-child(2) { --hc: #9333EA; }
.how-step:nth-child(3) { --hc: #EA580C; }
.how-step:nth-child(4) { --hc: #2563EB; }
.home-more .track-card:nth-child(5n+1) { border-top: 4px solid #1D4ED8; }
.home-more .track-card:nth-child(5n+2) { border-top: 4px solid #9333EA; }
.home-more .track-card:nth-child(5n+3) { border-top: 4px solid #2563EB; }
.home-more .track-card:nth-child(5n+4) { border-top: 4px solid #EA580C; }
.home-more .track-card:nth-child(5n+5) { border-top: 4px solid #BE185D; }
@media (min-width: 761px) { .tracks-overview { grid-template-columns: repeat(3, 1fr); } }

/* Glossary: terms as headings, meaning on hover or click */
.gloss { display: block; }
.g-tip { margin-top: -6px; }
.g-az { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 5; background: var(--page); padding: 8px 0; }
.g-az a { min-width: 34px; text-align: center; font-weight: 800; font-size: 15px; text-decoration: none; color: var(--accent-dark); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }
.g-az a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.g-letter { padding-top: 18px; scroll-margin-top: 130px; }
.g-letter h2 { font-size: 26px; font-weight: 800; color: var(--accent); border-bottom: 2px solid var(--accent-soft); padding-bottom: 4px; margin-bottom: 12px; }
.g-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 900px) { .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .g-grid { grid-template-columns: 1fr; } }
.term { position: relative; display: block; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; scroll-margin-top: 130px; }
.term-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; font: inherit; text-align: left; cursor: pointer; background: none; border: 0; padding: 14px 16px; color: var(--ink); border-radius: 12px; }
.term-name { font-size: 17px; font-weight: 800; line-height: 1.3; }
.term-plus { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); position: relative; }
.term-plus::before, .term-plus::after { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; background: var(--accent); border-radius: 2px; transition: transform .2s; }
.term-plus::after { transform: rotate(90deg); }
.term.open .term-plus::after { transform: rotate(0deg); }
.term-def { display: none; margin: 0; padding: 0 16px 14px; font-size: 15.5px; color: var(--muted); line-height: 1.55; }
.term.open { border-color: var(--accent); }
.term.open .term-def { display: block; }
.term:hover { border-color: var(--accent); }
@media (hover: hover) {
  .term:not(.open):hover { z-index: 6; border-radius: 12px 12px 0 0; }
  .term:not(.open):hover .term-def { display: block; position: absolute; left: -1px; right: -1px; top: 100%; background: #fff; border: 1px solid var(--accent); border-top: 0; border-radius: 0 0 12px 12px; box-shadow: 0 10px 24px rgba(29, 78, 216, .14); padding-top: 2px; }
}
@media (max-width: 700px) { .g-az { position: static; } }
.term-name { font-weight: 400; color: var(--accent); font-size: 17.5px; }
.term-name { color: #1E3A8A; }
.g-letter h2 { color: #1E3A8A; border-bottom-color: #D6E2F5; }
.g-az a { color: #1E3A8A; }
.g-az a:hover { background: #1E3A8A; border-color: #1E3A8A; color: #fff; }
.term:hover, .term.open { border-color: #1E3A8A; }
.term-plus { background: #E3EAF7; }
.term-plus::before, .term-plus::after { background: #1E3A8A; }
@media (hover: hover) { .term:not(.open):hover .term-def { border-color: #1E3A8A; box-shadow: 0 10px 24px rgba(30, 58, 138, .14); } }
/* Glossary colours v3: brighter blue-violet */
.g-letter h2 { display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 12px; border-radius: 14px; border: 0; background: linear-gradient(135deg, #2563EB, #7C3AED); color: #fff; font-size: 24px; box-shadow: 0 6px 16px rgba(37, 99, 235, .25); }
.g-az a { color: #1D4ED8; border-color: #D6E0F5; }
.g-az a:hover { background: linear-gradient(135deg, #2563EB, #7C3AED); border-color: transparent; color: #fff; }
.term { overflow: visible; border-color: #DCE5F3; box-shadow: 0 1px 3px rgba(30, 64, 175, .06); transition: border-color .15s, box-shadow .15s, transform .15s; }
.term::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 5px; border-radius: 12px 0 0 12px; background: linear-gradient(180deg, #2563EB, #7C3AED); }
.term-btn { padding-left: 20px; }
.term-def { padding-left: 20px; color: #374151; }
.term-name { color: #1D4ED8; font-weight: 600; }
.term:hover, .term.open { border-color: #2563EB; box-shadow: 0 8px 20px rgba(37, 99, 235, .14); transform: translateY(-1px); }
.term-plus { background: linear-gradient(135deg, #2563EB, #7C3AED); }
.term-plus::before, .term-plus::after { background: #fff; }
@media (hover: hover) { .term:not(.open):hover .term-def { border-color: #2563EB; box-shadow: 0 12px 24px rgba(37, 99, 235, .16); } }

/* Moving banner on the home page */
.ticker { overflow: hidden; background: linear-gradient(90deg, #2563EB, #7C3AED 50%, #1D4ED8); color: #fff; }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; flex: none; }
.ticker a { color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; padding: 10px 28px; position: relative; }
.ticker a::after { content: "•"; position: absolute; right: -4px; opacity: .6; }
.ticker a:hover { text-decoration: underline; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker { overflow-x: auto; } }

/* Dark blue forms: newsletter + enquiry (and the matching home page bands) */
.nl-form, #enq-form { background: linear-gradient(145deg, #0B1F4B 0%, #1E3A8A 60%, #3B2A8C 100%); border: 0; color: #fff; box-shadow: 0 14px 34px rgba(30, 58, 138, .30); border-radius: 18px; padding: 28px; }
.nl-form h2, #enq-form h2 { color: #fff; }
.nl-form .field label, #enq-form .field label, .nl-form .nl-interests legend { color: #DCE6FF; }
.nl-form .field input, #enq-form .field input, #enq-form textarea, #enq-form select { background: #fff; border-color: transparent; color: var(--ink); }
.nl-form .field input:focus, #enq-form .field input:focus, #enq-form textarea:focus, #enq-form select:focus { outline: 3px solid #FBBF24; outline-offset: 0; border-color: transparent; }
.nl-form .check { color: #F1F5FF; }
.nl-form .check input { accent-color: #FBBF24; }
.nl-form a, #enq-form a { color: #93C5FD; }
.nl-form .small, #enq-form .small { color: #C7D2FE; }
.nl-form .btn, #enq-form .btn { background: linear-gradient(135deg, #FBBF24, #F59E0B); color: #1E1B4B; border: 0; box-shadow: 0 6px 16px rgba(251, 191, 36, .35); }
.nl-form .btn:hover, #enq-form .btn:hover { background: linear-gradient(135deg, #FCD34D, #FBBF24); color: #1E1B4B; }
#enq-form .err, .nl-form .err { color: #FECACA; }
.nl-copy h1, #contact .section-head h1 { color: #1E3A8A; }
#contact .email-row { background: #fff; border: 1px solid var(--line); }
#contact .email-row code { color: #1E3A8A; }
.nl-band, .cta-band { background: linear-gradient(120deg, #0B1F4B 0%, #1E3A8A 60%, #3B2A8C 100%); color: #fff; border: 0; }
.nl-band .k { color: #FBBF24; }
.nl-band p, .cta-band p { color: #DCE6FF; }
.cta-band h3 { color: #fff; }
.nl-band .btn, .cta-band .btn { background: linear-gradient(135deg, #FBBF24, #F59E0B); color: #1E1B4B; border: 0; }
.nl-band .btn:hover, .cta-band .btn:hover { background: linear-gradient(135deg, #FCD34D, #FBBF24); color: #1E1B4B; }

/* Priyanka's photo */
.avatar-photo { object-fit: cover; border: 4px solid #fff; box-shadow: 0 8px 22px rgba(30, 58, 138, .20); padding: 0; }
.about-photo { width: 240px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 20px; border: 5px solid #fff; box-shadow: 0 14px 32px rgba(30, 58, 138, .22); }
@media (max-width: 700px) { .about-photo { width: 180px; } }

/* ---------- Topic pages: guide layout (contents list + sections) ---------- */
main.wrap-wide { max-width: 1240px; }
.topic-page { padding-top: 28px; }
.topic-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 1000px) { .topic-layout { grid-template-columns: 1fr; gap: 16px; } }
.topic-main { display: grid; gap: 28px; min-width: 0; }
.topic-toc { position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); max-height: calc(100vh - 110px); overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px; font-size: 15px; }
@media (max-width: 1000px) { .topic-toc { position: static; max-height: none; } }
.toc-crumb { font-size: 13.5px; color: var(--muted); padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.toc-crumb a { color: #1D4ED8; text-decoration: none; }
.toc-crumb span { color: var(--ink); font-weight: 700; }
.toc-box > summary { font-weight: 800; font-size: 14px; color: var(--muted); cursor: pointer; list-style: none; padding: 4px 2px; letter-spacing: .02em; }
.toc-box > summary::-webkit-details-marker { display: none; }
@media (min-width: 1001px) { .toc-box > summary { pointer-events: none; } }
.toc-list, .toc-list ul { list-style: none; margin: 0; padding: 0; }
.toc-list > li > a, .toc-sec > summary { display: block; padding: 7px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; cursor: pointer; line-height: 1.35; }
.toc-list > li > a:hover, .toc-sec > summary:hover { background: #EEF3FD; color: #1D4ED8; }
.toc-sec > summary { list-style: none; position: relative; padding-left: 22px; }
.toc-sec > summary::-webkit-details-marker { display: none; }
.toc-sec > summary::before { content: ""; position: absolute; left: 8px; top: 13px; border: 5px solid transparent; border-left-color: var(--muted); border-right: 0; transition: transform .15s; }
.toc-sec[open] > summary::before { transform: rotate(90deg); }
.toc-sec[open] > summary { color: #1D4ED8; font-weight: 700; }
.toc-sec ul { padding: 2px 0 6px 22px; border-left: 2px solid #DCE6F7; margin-left: 12px; }
.toc-sec ul a { display: block; font-size: 14px; color: var(--muted); text-decoration: none; padding: 4px 6px; border-radius: 6px; line-height: 1.35; }
.toc-sec ul a:hover { color: #1D4ED8; background: #EEF3FD; }
.toc-sec ul a.is-done::after { content: " ✓"; color: var(--good); font-weight: 800; }

/* hero with byline + featured card */
.track-hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
@media (max-width: 860px) { .track-hero { grid-template-columns: 1fr; } }
.th-main { display: flex; gap: 18px; align-items: flex-start; min-width: 0; }
@media (max-width: 600px) { .th-main { flex-direction: column; } }
.th-kicker { font-size: 14px !important; font-weight: 700; color: var(--c, var(--accent)) !important; margin-bottom: -4px; }
.byline { display: flex; align-items: center; gap: 8px; font-size: 14.5px !important; color: var(--muted); }
.byline img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.byline a { color: var(--ink); font-weight: 700; text-decoration: none; }
.feature-card { background: linear-gradient(150deg, #0B1F4B, #1E3A8A 65%, #3B2A8C); color: #fff; border-radius: 16px; padding: 20px; display: grid; gap: 8px; align-content: start; box-shadow: 0 10px 26px rgba(30, 58, 138, .25); }
.feature-card .k { font-size: 13px; font-weight: 800; color: #FBBF24; letter-spacing: .03em; }
.feature-card b { font-size: 20px; line-height: 1.25; }
.feature-card p { font-size: 15px; color: #DCE6FF; }
.feature-card .btn { justify-self: start; background: linear-gradient(135deg, #FBBF24, #F59E0B); color: #1E1B4B; border: 0; font-size: 15px; padding: 8px 16px; }

/* lesson sections */
.tsec { display: grid; gap: 12px; scroll-margin-top: 90px; }
.tsec + .tsec { margin-top: 10px; }
.tsec-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.sec-icon { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--c, var(--accent)); color: var(--c, var(--accent)); display: grid; place-items: center; background: var(--cs, var(--accent-soft)); }
.sec-icon svg { width: 32px; height: 32px; }
.tsec-head h3 { font-size: 21px; font-weight: 800; }
.tsec-head p { color: var(--muted); font-size: 16px; margin: 2px 0 6px; }
.learn-more { font-weight: 700; color: #1D4ED8; text-decoration: none; font-size: 15.5px; }
.learn-more:hover { text-decoration: underline; }
.tsec-count { font-size: 13px; font-weight: 800; color: var(--c, var(--accent-dark)); background: var(--cs, var(--accent-soft)); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
@media (max-width: 600px) { .tsec-head { grid-template-columns: 48px minmax(0, 1fr); } .sec-icon { width: 48px; height: 48px; } .sec-icon svg { width: 24px; height: 24px; } .tsec-count { grid-column: 2; justify-self: start; } }
.tsec .outline { padding-left: 18px; border-left: 3px solid var(--cs, var(--accent-soft)); margin-left: 30px; }
@media (max-width: 600px) { .tsec .outline { margin-left: 8px; padding-left: 10px; } }

/* resources row */
.resources { display: grid; gap: 12px; padding-top: 20px; }
.resources h2 { font-size: clamp(22px, 3vw, 26px); font-weight: 800; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.res-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid #2563EB; border-radius: 14px; padding: 16px; display: grid; gap: 6px; align-content: start; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.res-card:nth-child(2) { border-top-color: #7C3AED; }
.res-card:nth-child(3) { border-top-color: #EA580C; }
.res-card:nth-child(4) { border-top-color: #1D4ED8; }
.res-card:nth-child(5) { border-top-color: #BE185D; }
.res-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(30, 58, 138, .12); }
.res-card .k { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.res-card b { font-size: 17px; line-height: 1.3; }
.res-card .go { font-weight: 700; color: #1D4ED8; font-size: 14.5px; margin-top: 2px; }
.res-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
@media (max-width: 1000px) { .toc-box > summary { color: #1D4ED8; } .toc-box > summary::after { content: " ▾"; } .toc-box[open] > summary::after { content: " ▴"; } }

/* Lesson illustrations (still and animated) */
.fig { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 10px; display: grid; gap: 6px; }
.fig svg { width: 100%; height: auto; display: block; font-family: var(--font); }
.fig figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.fig + .fig { margin-top: 12px; }
@keyframes figDraw { 0% { stroke-dashoffset: 700; } 35%, 100% { stroke-dashoffset: 0; } }
.fig .a-draw { stroke-dasharray: 700; stroke-dashoffset: 700; animation: figDraw 6s ease-in-out infinite; }
@keyframes figPop { 0% { opacity: 0; transform: translateY(8px); } 12%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.fig .a-pop { opacity: 0; animation: figPop 5s ease-out infinite; }
@keyframes figGrow { 0% { transform: scaleX(0); } 35%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: .3; } }
.fig .a-grow { transform-box: fill-box; transform-origin: left center; animation: figGrow 4.5s ease-out infinite; }
@keyframes figFlow { to { stroke-dashoffset: -24; } }
.fig .a-flow { stroke-dasharray: 6 6; animation: figFlow 1s linear infinite; }
@keyframes figPulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.fig .a-pulse { animation: figPulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .fig * { animation: none !important; opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; } }
@media (max-width: 600px) { .fig { overflow-x: auto; } .fig svg { min-width: 520px; } .fig figcaption { position: sticky; left: 0; } }
@media (max-width: 600px) { .fig figcaption { max-width: calc(100vw - 96px); text-align: left; } }
@media (max-width: 600px) { .fig figcaption { max-width: calc(100vw - 120px); } }

/* "Ask AI From Zero" assistant */
.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; }
.as-fab { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); z-index: 60; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 800; font-size: 15px; color: #fff; cursor: pointer; border: 0; border-radius: 999px; padding: 12px 18px 12px 14px; background: linear-gradient(135deg, #2563EB, #7C3AED); box-shadow: 0 10px 26px rgba(37, 99, 235, .40); transition: transform .15s; }
.as-fab:hover { transform: translateY(-2px); }
.as-fab.is-open span { display: none; }
.as-fab.is-open { padding: 12px; }
.as-panel { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); background: #fff; border-radius: 18px; box-shadow: 0 20px 50px rgba(15, 27, 45, .28); display: grid; grid-template-rows: auto 1fr auto auto auto; overflow: hidden; }
.as-panel[hidden] { display: none; }
.as-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; color: #fff; background: linear-gradient(135deg, #0B1F4B, #1E3A8A 65%, #3B2A8C); }
.as-head b { display: block; font-size: 16px; }
.as-head span { font-size: 12.5px; color: #C7D2FE; }
.as-close { font: inherit; background: rgba(255,255,255,.14); color: #fff; border: 0; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.as-log { overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #F5F8FE; }
.as-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.as-msg p { margin: 0 0 6px; } .as-msg p:last-child { margin-bottom: 0; }
.as-msg.me { align-self: flex-end; background: #2563EB; color: #fff; border-bottom-right-radius: 4px; }
.as-msg.bot { align-self: flex-start; background: #fff; border: 1px solid #DCE5F3; border-bottom-left-radius: 4px; }
.as-msg.bot a { color: #1D4ED8; font-weight: 700; }
.as-more { font-size: 13px; font-weight: 800; color: #64748B; margin-top: 6px !important; }
.as-links { margin: 2px 0 0; padding-left: 18px; display: grid; gap: 3px; font-size: 14.5px; }
.as-links span { font-size: 11.5px; color: #64748B; font-weight: 700; }
.as-msg.typing { display: inline-flex; gap: 4px; }
.as-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: #94A3B8; animation: asDot 1s infinite; }
.as-msg.typing span:nth-child(2) { animation-delay: .15s; } .as-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes asDot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.as-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; background: #fff; }
.as-chips button { font: inherit; font-size: 13px; font-weight: 700; color: #1D4ED8; background: #EEF3FD; border: 1px solid #D6E0F5; border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.as-chips button:hover { background: #DCE7FB; }
.as-form { display: flex; gap: 8px; padding: 10px 12px; background: #fff; }
.as-form input { flex: 1; min-width: 0; font: inherit; font-size: 15px; border: 1.5px solid #D6E0F5; border-radius: 999px; padding: 9px 14px; }
.as-form input:focus { outline: 2px solid #2563EB; border-color: transparent; }
.as-form button { font: inherit; border: 0; cursor: pointer; width: 42px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #2563EB, #7C3AED); }
.as-note { font-size: 11.5px; color: #64748B; padding: 0 14px 10px; background: #fff; margin: 0; }
@media (max-width: 600px) { .as-fab span { display: none; } .as-fab { padding: 13px; } .as-panel { right: 8px; left: 8px; width: auto; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); height: min(70vh, 560px); } }
@media (prefers-reduced-motion: reduce) { .as-msg.typing span { animation: none; } }
@keyframes figPopIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fig .a-pop { opacity: 1; animation: figPopIn .7s ease-out both; }

/* Blue theme with light orange highlights (her choice, 2026-10-27) */
.remember { background: #FFF4E6; border-left-color: #F97316; }
.mini.analogy { background: #FFF4E6; }
.mini.analogy h4 { color: #C2410C; }
.try-see, .pstep-see { background: #FFF4E6; }
mark { border-bottom-color: #F97316; }
.eyebrow, .section-head .k, .track-head .k, .th-kicker { color: #C2410C; }
.how-step:nth-child(1) { --hc: #1D4ED8; }
.home-more .track-card:nth-child(5n+4) { border-top-color: #F97316; }

/* Lesson videos (vertical YouTube Shorts, loaded on click) */
.lesson-video { display: grid; gap: 6px; justify-items: start; }
.yt-lite, .yt-frame { width: min(300px, 100%); aspect-ratio: 9 / 16; border-radius: 16px; border: 0; overflow: hidden; }
.yt-lite { position: relative; padding: 0; cursor: pointer; background: #0B1F4B; box-shadow: 0 10px 26px rgba(30, 58, 138, .25); }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; opacity: .85; display: block; }
.yt-play { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%; background: rgba(220, 38, 38, .92); color: #fff; font-size: 26px; display: grid; place-items: center; padding-left: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.yt-lite:hover .yt-play { transform: translate(-50%, -50%) scale(1.06); }
.yt-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 14px; color: #fff; font-weight: 800; font-size: 15px; text-align: left; background: linear-gradient(transparent, rgba(11, 31, 75, .92)); }

/* ===== Feature pages (2026-11-10): roadmap, dashboard, badges, playground, careers, tools directory ===== */
.drop-menu .drop-feature { font-weight: 800; color: var(--accent); background: #FFF4E6; border-radius: 8px; }
.drop-menu .drop-sep { display: block; height: 1px; background: var(--line); margin: 6px 8px; }
.feat-hero { padding: 36px 0 12px; max-width: 860px; }
.feat-hero h1 { font-size: clamp(30px, 4.5vw, 44px); margin: 6px 0 10px; color: var(--accent-dark); }
.feat-hero .btn { margin: 4px 6px 4px 0; }
.rm-form { display: grid; gap: 18px; margin: 18px 0; }
.rm-q { border: 0; padding: 0; margin: 0; }
.rm-q legend { font-weight: 800; font-size: 18px; margin-bottom: 10px; color: var(--accent-dark); }
.rm-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rm-opt { position: relative; cursor: pointer; }
.rm-opt input { position: absolute; opacity: 0; }
.rm-opt span { display: block; height: 100%; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, background .15s; }
.rm-opt b { display: block; }
.rm-opt em { display: block; font-style: normal; font-size: 14px; color: var(--muted); }
.rm-opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
.rm-opt input:focus-visible + span { outline: 3px solid #F97316; outline-offset: 2px; }
@media (max-width: 860px) { .rm-opts { grid-template-columns: 1fr 1fr; } }
.rm-summary { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #1E3A8A, #1D4ED8); color: #fff; border-radius: 16px; padding: 22px 24px; margin: 8px 0 18px; }
.rm-summary h2 { color: #fff; margin: 2px 0 6px; font-size: 24px; }
.rm-summary .k { color: #FED7AA; margin: 0; }
.rm-summary p { margin: 4px 0; }
.rm-summary .btn { background: #FACC15; color: #1E1B4B; border-color: #FACC15; }
.rm-miles { margin: 8px 0 0; padding-left: 18px; }
.rm-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 960px) { .rm-levels { grid-template-columns: 1fr; } }
.rm-level { background: #fff; border: 1px solid var(--line); border-top: 5px solid #0369A1; border-radius: 14px; padding: 16px; }
.rm-level.rl-1 { border-top-color: #9333EA; } .rm-level.rl-2 { border-top-color: #EA580C; }
.rm-level-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.rm-level-head h3 { margin: 0; font-size: 17px; }
.rm-level-head span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.rm-level ol, .rm-week ol { list-style: none; padding: 0; margin: 10px 0 0; }
.rm-level li, .rm-week li { display: grid; grid-template-columns: 22px 1fr auto; gap: 6px; align-items: baseline; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.rm-level li em, .rm-week li em { font-style: normal; font-size: 12px; color: var(--muted); }
.rm-tick { color: var(--muted); }
li.is-done .rm-tick { color: var(--good); font-weight: 800; }
li.is-done a { color: var(--good); }
li.rm-quiz a, li.rm-proj a { font-weight: 700; color: #C2410C; }
.rm-weeks { margin: 18px 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.rm-weeks summary { cursor: pointer; font-weight: 800; color: var(--accent-dark); }
.rm-week-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.rm-week { background: var(--soft); border-radius: 10px; padding: 10px 12px; }
.dash-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .dash-tiles { grid-template-columns: 1fr 1fr; } }
.dash-tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.dash-tile span { font-size: 22px; }
.dash-tile b { display: block; font-size: 24px; color: var(--accent-dark); }
.dash-tile em { font-style: normal; font-size: 14px; color: var(--muted); }
.dash-h { margin: 22px 0 10px; }
.dash-h .small { font-weight: 600; color: var(--muted); margin-left: 6px; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.badge { background: #fff; border: 1px dashed #CBD5E1; border-radius: 14px; padding: 12px; text-align: center; opacity: .55; filter: grayscale(1); }
.badge.got { opacity: 1; filter: none; border: 2px solid #F97316; background: #FFF4E6; }
.badge span { font-size: 30px; display: block; }
.badge b { display: block; font-size: 14px; line-height: 1.3; }
.badge em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }
.badge.got em { color: #C2410C; font-weight: 700; }
.acc-progress .dash { margin-top: 18px; }
.quiz-weak { text-align: left; background: #FFF4E6; border: 1px solid #FDBA74; border-left: 5px solid #F97316; border-radius: 12px; padding: 14px 18px; margin: 16px 0; }
.quiz-weak.good { background: var(--good-soft); border-color: #86EFAC; border-left-color: var(--good); }
.quiz-weak h3 { margin: 0 0 8px; font-size: 17px; }
.quiz-weak ul { margin: 0; padding-left: 18px; }
.quiz-weak li { margin: 6px 0; }
.quiz-weak li .small { display: block; color: var(--muted); }
.pg-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pg-jump a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 700; text-decoration: none; }
.pg-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin: 18px 0; scroll-margin-top: 80px; }
.pg-card h2 { margin-top: 0; color: var(--accent-dark); }
.pg-card textarea, .pb-fields textarea, .dir-tools input { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; }
.pg-card textarea:focus, .dir-tools input:focus { border-color: var(--accent); outline: none; }
.pg-examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pg-examples button { font: inherit; font-size: 14px; background: var(--accent-soft); color: var(--accent-dark); border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.pg-out { margin-top: 12px; }
.sent-label { font-size: 22px; font-weight: 800; margin: 0 0 6px; }
.sent-label span { font-size: 14px; color: var(--muted); font-weight: 600; }
.sent-label.pos { color: var(--good); } .sent-label.neg { color: var(--bad); } .sent-label.neu { color: #B45309; }
mark.s-pos { background: #DCFCE7; color: #14532D; border-radius: 4px; padding: 0 3px; }
mark.s-neg { background: #FEE2E2; color: #7F1D1D; border-radius: 4px; padding: 0 3px; }
mark.s-neg8 { background: #E5E7EB; border-radius: 4px; padding: 0 3px; }
mark.s-boost { background: #DBEAFE; border-radius: 4px; padding: 0 3px; }
.tok-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; font-size: 15px; }
.tok-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.tok-chips span { font-family: Consolas, "Courier New", monospace; font-size: 15px; padding: 4px 6px; border-radius: 6px; white-space: pre; }
.tok-chips .tc0 { background: #DBEAFE; } .tok-chips .tc1 { background: #FCE7F3; } .tok-chips .tc2 { background: #DCFCE7; } .tok-chips .tc3 { background: #FEF3C7; } .tok-chips .tc4 { background: #EDE9FE; }
.pg-prompt-line { font-size: 20px; }
.pg-slider, .pg-select { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; margin: 10px 0; }
.pg-slider input { flex: 1; min-width: 180px; accent-color: var(--accent); }
.pg-select select { font: inherit; padding: 6px 10px; border-radius: 8px; border: 2px solid var(--line); }
.temp-bars { display: grid; gap: 6px; margin: 10px 0 14px; }
.tb { display: grid; grid-template-columns: 110px 1fr 56px; gap: 10px; align-items: center; font-size: 15px; }
.tb-bar { background: var(--soft); border-radius: 999px; height: 14px; overflow: hidden; }
.tb-bar i { display: block; height: 100%; background: linear-gradient(90deg, #1D4ED8, #F97316); border-radius: 999px; transition: width .25s; }
.tb-p { text-align: right; font-weight: 700; }
.temp-list { margin: 0; padding-left: 20px; }
.mean-map { background: #F8FAFC; border: 1px solid var(--line); border-radius: 12px; margin-top: 8px; }
.mean-map svg { display: block; width: 100%; height: auto; }
.mean-map .mm-pt { cursor: pointer; }
.pb-fields { display: grid; gap: 10px; margin: 10px 0 14px; }
.pb-fields label b { display: block; margin-bottom: 4px; }
#pb-out { white-space: pre-wrap; margin: 0; padding: 12px 14px; background: #fff; }
.career-card { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: 16px; padding: 20px 24px; margin: 18px 0; }
.career-card h2 { margin: 0 0 4px; color: var(--accent-dark); }
.career-card h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: #C2410C; margin: 12px 0 6px; }
.career-card ul, .career-card ol { margin: 0; padding-left: 20px; }
.career-card li { margin: 3px 0; }
.career-cols { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 18px; }
@media (max-width: 860px) { .career-cols { grid-template-columns: 1fr; } }
.career-note { background: var(--soft); border-radius: 8px; padding: 8px 12px; margin-top: 14px; }
.dir-tools { display: grid; gap: 12px; margin-top: 16px; }
.dir-filter { flex-wrap: wrap; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 14px 0 24px; }
.tool-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; }
.tool-card .k { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #C2410C; font-weight: 800; }
.tool-card h2 { font-size: 20px; margin: 4px 0 6px; }
.tool-card h2 a { text-decoration: none; color: var(--accent-dark); }
.tool-card p { margin: 4px 0; }
.tool-price { font-weight: 700; font-size: 14px; }
.tool-pc span { display: block; font-size: 14px; }
.tool-pc .pro { color: var(--good); } .tool-pc .con { color: var(--bad); }
.tool-card[hidden], .proj-tile[hidden] { display: none; }

/* LinkedIn buttons (2026-11-12) */
.about-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; }
.btn.btn-li { background: #0A66C2; border-color: #0A66C2; color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.btn.btn-li:hover { background: #004182; border-color: #004182; }

/* ===== Certificates, news, feedback, portfolio (2026-11-12) ===== */
.cert-list { display: grid; gap: 10px; }
.cert-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.cert-row > div { flex: 1; min-width: 220px; }
.cert-row .tp-bar { margin: 6px 0 2px; max-width: 360px; }
.cert-row.ok { border: 2px solid #F97316; background: #FFF8EE; }
.cert-tools { display: grid; gap: 10px; margin-bottom: 18px; }
.cert-tools label { font-weight: 700; display: grid; gap: 6px; max-width: 420px; }
.cert-tools input { font: inherit; font-size: 17px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; }
.cert-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cert-sheet { background: #fff; border: 10px solid #1E3A8A; outline: 3px solid #F59E0B; outline-offset: -18px; border-radius: 6px; aspect-ratio: 297 / 210; max-width: 980px; margin: 0 auto 24px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4% 6%; box-sizing: border-box; }
.cert-inner { width: 100%; }
.cert-brand { font-weight: 800; color: #1E3A8A; font-size: clamp(14px, 2vw, 20px); margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.cert-brand span { background: #1D4ED8; color: #fff; border-radius: 8px; padding: 2px 8px; }
.cert-kicker { text-transform: uppercase; letter-spacing: .18em; color: #C2410C; font-weight: 800; font-size: clamp(12px, 1.7vw, 16px); margin: 2% 0; }
.cert-this { margin: 1% 0; color: var(--muted); font-size: clamp(12px, 1.6vw, 17px); }
.cert-name { font-size: clamp(24px, 4.6vw, 50px); font-weight: 800; color: #1E3A8A; margin: 1% 0; border-bottom: 2px solid #F59E0B; display: inline-block; padding: 0 4%; }
.cert-course { font-size: clamp(18px, 3vw, 32px); font-weight: 800; margin: 1% 0 3%; }
.cert-foot { display: flex; justify-content: space-around; align-items: center; gap: 12px; }
.cert-foot b { display: block; font-size: clamp(12px, 1.6vw, 17px); }
.cert-foot span { font-size: clamp(10px, 1.3vw, 13px); color: var(--muted); }
.cert-seal { font-size: clamp(30px, 5vw, 56px); }
.cert-id { font-size: clamp(9px, 1.1vw, 12px); color: var(--muted); margin: 3% 0 0; }
.dash-cert { margin: 16px 0 0; background: #FFF4E6; border-radius: 10px; padding: 10px 14px; }
@media print {
  .nav, footer, .ticker, .cert-controls, .as-fab, .as-panel, .skip-link { display: none !important; }
  body { background: #fff !important; }
  .cert-sheet { margin: 0 auto; max-width: none; width: 100%; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.news-edition h2 { margin-top: 0; }
.news-item { border-top: 1px solid var(--line); padding: 14px 0 4px; }
.news-item h3 { margin: 0 0 6px; font-size: 19px; color: var(--accent-dark); }
.news-why { background: #FFF4E6; border-left: 4px solid #F97316; border-radius: 8px; padding: 8px 12px; }
.news-src { color: var(--muted); }
.fb-band { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .fb-band { grid-template-columns: 1fr; } }
.fb-band .form { background: #fff; color: var(--ink); border: 0; }
.fb-band .form label { display: grid; gap: 6px; font-weight: 700; }
.fb-band .form label.check { display: flex; font-weight: 600; }
.fb-band .form input:not([type=checkbox]), .fb-band .form textarea { font: inherit; font-size: 16px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; width: 100%; box-sizing: border-box; }
.fb-band .form .small, .fb-band .form p { color: var(--muted); }
.fb-band .form a { color: var(--accent); }
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.quote { margin: 0; background: #fff; border: 1px solid var(--line); border-left: 5px solid #F97316; border-radius: 14px; padding: 16px 18px; }
.quote blockquote { margin: 0 0 8px; font-style: italic; }
.proj-portfolio h3 { font-size: 17px; margin: 18px 0 8px; }

/* Friendlier assistant (2026-11-12) */
.as-msg .as-cta { display: inline-block; margin: 6px 6px 0 0; background: #1D4ED8; color: #fff !important; border-radius: 999px; padding: 6px 12px; font-size: 14px; text-decoration: none; }
.as-msg .as-cta:hover { background: #1E3A8A; }
.as-msg .as-list { margin: 6px 0; padding-left: 4px; list-style: none; }
.as-msg .as-list li { margin: 3px 0; }
.as-msg ol.as-steps { list-style: none; padding-left: 0; } .as-msg ol.as-steps li { margin: 6px 0; }

/* Phone-friendly lesson pictures (2026-11-16): an "Enlarge" button opens the picture full screen, turned sideways */
.fig-zoom { display: none; justify-self: center; font: inherit; font-size: 14px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
@media (max-width: 600px) { .fig-zoom { display: inline-block; } .fig { overflow-x: hidden; } .fig svg { min-width: 0; } .fig figcaption { position: static; } }
.fig-overlay { position: fixed; inset: 0; z-index: 1000; background: #fff; overflow: hidden; }
.fig-overlay .fig-rot { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(90deg); transform-origin: center; }
.fig-overlay .fig-rot svg { display: block; width: 100%; height: auto; font-family: var(--font); }
.fig-overlay .fig-rot p { margin: 8px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.fig-overlay .fig-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 20px; cursor: pointer; }
.fig-overlay .fig-hint { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--muted); margin: 0; }

/* Videos page */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.video-card { display: grid; gap: 8px; align-content: start; justify-items: start; }
.video-card .yt-lite, .video-card .yt-frame { width: 100%; }
.video-card h3 { font-size: 18px; margin: 4px 0 0; }
/* Video links (no thumbnails) */
.video-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 760px; }
.vl-row { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid #DDE4EE; border-radius: 14px; padding: 14px 18px; }
.vl-row > div { display: grid; gap: 2px; min-width: 0; }
.vl-title { font-weight: 800; font-size: 18px; }
.vl-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #DC2626; color: #fff; display: inline-grid; place-items: center; font-size: 13px; padding-left: 2px; }
.video-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; }
.video-link .vl-icon { width: 26px; height: 26px; font-size: 11px; }

/* Keep the "Ask me" button clear of the "Powered by Netlify" badge (bottom-right) */
.as-fab { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
.as-panel { bottom: calc(152px + env(safe-area-inset-bottom, 0px)); height: min(560px, calc(100vh - 190px)); }
@media (max-width: 600px) { .as-fab { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } .as-panel { bottom: calc(140px + env(safe-area-inset-bottom, 0px)); height: min(65vh, 520px); } }

/* "Ask Priyanka" chat button and header with avatar */
.as-fab { padding: 6px 18px 6px 6px; }
.as-fab .as-ava { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; flex: none; }
.as-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.as-head .as-ava { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.85); flex: none; }
@media (max-width: 600px) { .as-fab { padding: 5px; } .as-fab .as-ava { width: 44px; height: 44px; } }

/* Members-only guided projects (soft lock; see projects/*.html head script) */
.proj-lock { display: none; text-align: center; justify-items: center; gap: 12px; background: linear-gradient(135deg, #EEF2FF, #fff 70%); border: 2px solid #C7D2FE; border-radius: 18px; padding: 32px 22px; }
.proj-lock .pl-icon { font-size: 40px; line-height: 1; }
.proj-lock h2 { font-size: clamp(22px, 3vw, 28px); margin: 0; }
.proj-lock p { max-width: 58ch; margin: 0; }
.proj-lock .hero-actions { justify-content: center; }
html.afz-locked .proj-lock { display: grid; }
html.afz-locked .project-page > :not(.crumbs):not(.proj-hero):not(.proj-facts):not(.proj-lock):not(.pager) { display: none !important; }
html.afz-locked .proj-hero .proj-progress { display: none; }
.chip-lock { background: #FEF3C7 !important; color: #92400E !important; }

/* Member dashboard (account.html) */
.member-page { padding-block: 28px 40px; }
.member-page > div { display: grid; gap: 22px; }
.md-hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: linear-gradient(135deg, #1E3A8A, #4F46E5 60%, #7C3AED); color: #fff; border-radius: 20px; padding: 28px 30px; }
.md-hero .eyebrow { color: #C7D2FE; }
.md-hero h1 { color: #fff; font-size: clamp(26px, 4vw, 38px); margin: 4px 0 6px; }
.md-sub { color: #E0E7FF; margin: 0 0 14px; }
.md-hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.md-pie { --p: 0; width: 140px; height: 140px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, #312E81 78%, transparent 79% 100%), conic-gradient(#FBBF24 calc(var(--p) * 1%), rgba(255,255,255,.22) 0); }
.md-pie b { font-size: 30px; line-height: 1; }
.md-pie span { font-size: 12px; color: #C7D2FE; max-width: 80px; }
.md-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.md-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.md-main, .md-side { display: grid; gap: 22px; }
.md-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: grid; gap: 12px; align-content: start; }
.md-card h2 { font-size: 20px; margin: 0; }
.md-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.md-card-head a { font-weight: 700; font-size: 14.5px; }
.md-projs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.md-proj { display: grid; gap: 6px; align-content: start; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.md-proj:hover { border-color: var(--accent); }
.md-proj b { font-size: 15.5px; line-height: 1.3; }
.md-proj em { font-style: normal; font-size: 13.5px; color: var(--muted); }
.md-pstate { justify-self: start; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 10px; background: #EEF2FF; color: #3730A3; }
.md-pstate.active { background: #FEF3C7; color: #92400E; }
.md-pstate.done { background: #DCFCE7; color: #166534; }
.md-new { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.md-new li { display: grid; gap: 2px; }
.md-new a { font-weight: 700; }
.md-tag { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #7C3AED; }
.md-live { background: linear-gradient(135deg, #FFF7ED, #fff); border-color: #FED7AA; }
.md-live .btn { justify-self: start; }
.md-links { display: flex; flex-wrap: wrap; gap: 8px; }
.md-links a { text-decoration: none; font-weight: 700; font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--ink); }
.md-links a:hover { border-color: var(--accent); color: var(--accent); }
.md-certlist { margin: 0; padding-left: 18px; }
.md-side .btn { justify-self: start; }
.md-settings summary { cursor: pointer; list-style: none; }
.md-settings summary h2 { display: inline; }
.md-settings summary::after { content: " ▾"; color: var(--muted); }
@media (max-width: 960px) { .md-grid { grid-template-columns: 1fr; } .md-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .md-hero { grid-template-columns: 1fr; padding: 22px; } .md-pie { width: 110px; height: 110px; } .md-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.md-more summary { cursor: pointer; font-weight: 700; color: var(--accent); margin: 4px 0 10px; }

/* Signed-in name in the menu */
.nav-links a.signin.is-in { display: inline-flex; align-items: center; gap: 7px; }
.nav-ava { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: linear-gradient(135deg, #2563EB, #7C3AED); color: #fff; font-size: 12.5px; font-weight: 800; flex: none; }
@media (max-width: 860px) { .nav-links a.signin.is-in { justify-content: center; } }

/* Role-based learning paths */
.path-page { padding-block: 24px 44px; display: grid; gap: 22px; }
.path-hero { background: linear-gradient(135deg, #1E3A8A, #2563EB 65%, #0E7490); color: #fff; border-radius: 20px; padding: 28px 30px; display: grid; gap: 12px; }
.path-hero .eyebrow { color: #BFDBFE; }
.path-hero h1 { color: #fff; margin: 0; font-size: clamp(28px, 4.4vw, 42px); }
.path-hero .lede { color: #E0E7FF; margin: 0; max-width: 62ch; font-size: 18px; }
.path-hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.path-progress { display: flex; align-items: center; gap: 12px; max-width: 520px; }
.path-progress .tp-bar { background: rgba(255,255,255,.25); }
.path-progress .tp-bar span { background: #FBBF24; }
.pp-text { font-weight: 800; font-size: 14px; white-space: nowrap; }
.path-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.path-intro > div, .path-uc, .path-stage, .path-capstone, .path-safety { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; }
.path-intro h2, .path-uc h2, .path-capstone h2, .path-safety h2 { font-size: 20px; margin: 0 0 8px; }
.path-intro ul, .path-safety ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.ps-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.ps-head h2 { margin: 0; font-size: 21px; }
.ps-head p { margin: 2px 0 0; color: var(--muted); }
.ps-num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #1D4ED8; color: #fff; font-weight: 800; display: grid; place-items: center; }
.pi-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pi { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.pi a { font-weight: 700; flex: 1 1 260px; }
.pi-tick { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #CBD5E1; flex: none; }
.pi.is-done .pi-tick { background: #16A34A; border-color: #16A34A; box-shadow: inset 0 0 0 3px #fff; }
.pi.is-done a { color: var(--muted); }
.pi-type { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #475569; background: #F1F5F9; border-radius: 999px; padding: 2px 8px; }
.pi-proj .pi-type { color: #7C3AED; background: #F3E8FF; }
.pi-min { font-size: 13px; color: var(--muted); white-space: nowrap; }
.path-capstone { background: #FFF7E6; border-color: #F5D7A1; }
.path-safety { border-color: #FECACA; background: #FFF7F7; }
.path-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.path-card { display: grid; gap: 8px; align-content: start; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-top: 4px solid #1D4ED8; border-radius: 16px; padding: 20px 22px; }
.path-card:hover { border-color: #1D4ED8; }
.pc-icon { font-size: 34px; }
.path-card b { font-size: 21px; }
.path-card > span:not(.pc-icon) { color: var(--muted); }
.pc-meta { font-size: 13.5px; font-weight: 700; }
.pc-bar { display: flex; align-items: center; gap: 10px; }
.pc-bar em { font-style: normal; font-size: 13px; white-space: nowrap; }
.path-card .go { color: #1D4ED8 !important; font-weight: 800; }
@media (max-width: 760px) { .path-intro { grid-template-columns: 1fr; } .path-hero { padding: 22px; } }

/* Learning paths: members only */
html.afz-locked .path-page > :not(.crumbs):not(.path-hero):not(.path-intro):not(.path-lock) { display: none !important; }
html.afz-locked .path-hero .path-progress, html.afz-locked .path-hero .hero-actions { display: none; }
html.afz-locked .path-card .pc-bar { display: none; }
html.afz-locked .path-card .go::after { content: " 🔒"; }
html:not(.afz-locked) .path-lock { display: none; }
.path-lock { margin-bottom: 18px; }

/* content-kit: how-it-works + your details */
.ck-how,.ck-details{margin:1.5rem 0;padding:1.25rem 1.4rem;border-radius:14px;border:1px solid var(--line,#e3e3ea);background:var(--card,#fff)}
.ck-how{background:var(--soft,#f4f6ff)}
.ck-how h2,.ck-details h2{margin-top:0}
.ck-flow{margin:.5rem 0 .75rem;padding-left:1.3rem}.ck-flow li{margin:.35rem 0}
.ck-details fieldset{border:1px dashed var(--line,#d6d8e2);border-radius:10px;padding:.8rem 1rem;margin:.9rem 0}
.ck-details legend{font-weight:700;padding:0 .4rem}.ck-details legend span{font-weight:400;opacity:.7}
.ck-details label{display:block;font-size:.92rem;font-weight:600;margin:.55rem 0}
.ck-details input,.ck-details textarea{display:block;width:100%;box-sizing:border-box;margin-top:.3rem;padding:.55rem .7rem;border:1px solid var(--line,#cfd2dc);border-radius:8px;font:inherit;font-weight:400;background:#fff;color:#222}
.ck-details input:focus,.ck-details textarea:focus{outline:2px solid #6c5ce7;border-color:#6c5ce7}
.ck-status{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}
.ck-clear{margin-left:auto;background:none;border:1px solid var(--line,#cfd2dc);border-radius:8px;padding:.3rem .7rem;cursor:pointer;font:inherit;font-size:.85rem}
.ck-where{background:#fff8e1;border-left:4px solid #f5b301;padding:.5rem .75rem;border-radius:6px;font-size:.92rem;color:#3a3a3a}

/* podcast page */
.pod-analogy{background:var(--soft,#f4f6ff);border-left:4px solid #2541d6;padding:.8rem 1rem;border-radius:8px;margin:1rem 0 1.5rem}
.pod-h2{margin:1.5rem 0 .75rem}
.pod-list{list-style:none;padding:0;margin:0 0 1.5rem;display:grid;gap:1rem}
.pod-ep{display:flex;gap:1rem;padding:1.2rem;border:1px solid var(--line,#e3e3ea);border-radius:14px;background:var(--card,#fff)}
.pod-num{flex:0 0 auto;width:52px;height:52px;border-radius:12px;background:linear-gradient(150deg,#1e3a8a,#5b3df5);color:#ffd54a;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:1.1rem}
.pod-body{flex:1;min-width:0}
.pod-title{font-size:1.25rem;font-weight:700}
.pod-btn{display:inline-block;margin-top:.5rem}
.pod-soon{opacity:.6}
