/* chemnotesplus.com (from hschemnotes.com): "Night lab" navy + yellow band, bright jewel accents. Phone-first. */
:root {
  --navy: #0B1533;
  --navy-2: #15245A;
  --navy-3: #22357A;
  --ink: #12193A;
  --muted: #4A5378;
  --yellow: #F5B700;
  --yellow-soft: #FFF0C2;
  --teal: #13C4B4;
  --teal-d: #0A8A80;
  --purple: #9B6BFF;
  --purple-d: #6B3FE0;
  --orange: #FF8A3D;
  --orange-d: #D2560E;
  --red: #FF4F62;
  --red-d: #D42A35;
  --blue: #3B82FF;
  --blue-d: #1D5BD8;
  --paper: #FFFFFF;
  --cloud: #F4F6FF;
  --line: #DCE1F2;
  --radius: 18px;
  --display: Arial, Helvetica, sans-serif;
  --body: Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue-d); text-underline-offset: 3px; }
a:hover { color: var(--purple-d); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 7.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 5vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 18px; }
.small { font-size: .9rem; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--navy); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }

/* ---------- band + header ---------- */
.band { background: var(--yellow); color: var(--navy); font-weight: 700; font-size: 1rem; overflow: hidden; border-bottom: 3px solid var(--navy); }
.band-track { display: flex; width: max-content; margin: 0 auto; }
.band-list { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 13px 16px; }
.band-list li { display: flex; align-items: center; justify-content: center; gap: 9px; white-space: nowrap; min-width: max(25vw, 290px); }
.band-ico { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--yellow); display: grid; place-items: center; }
.band-ico svg { width: 15px; height: 15px; }
.band-dup { display: none; }
/* v26 (Kem): top banner no longer scrolls. The 4 messages sit still, centered; duplicates hidden. */
.band-track { margin: 0 auto; animation: none; width: auto; }
.band-dup, .band-x { display: none !important; }
.band-list { flex-wrap: wrap; justify-content: center; gap: 8px 36px; width: 100%; padding: 10px 16px; }
.band-list li { min-width: 0; }
@media (max-width: 759px) {
  .band { font-size: .8rem; }
  .band-list { gap: 6px 16px; padding: 8px 10px; }
  .band-list li { gap: 6px; }
  .band-ico { display: none; }   /* phones: text only, so the 3 messages fit in 2 rows */
}
.hide-sm, .hide-xs { display: none; }
@media (min-width: 480px) { .hide-xs { display: inline; } }
.top { background: var(--navy); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 0 rgba(255,255,255,.06); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo:hover { color: #fff; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-word { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.01em; }
.logo-word b { color: var(--yellow); font-weight: 700; }
.menu-btn { width: 48px; height: 48px; border: 0; background: transparent; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; border-radius: 12px; }
.menu-btn span { width: 24px; height: 3px; border-radius: 3px; background: #fff; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); padding: 8px 18px 20px; border-top: 1px solid rgba(255,255,255,.1); flex-direction: column; gap: 4px; }
.nav.open { display: flex; }
.nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; padding: 13px 10px; border-radius: 12px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--navy-2); color: var(--yellow); }
.nav .btn { margin-top: 8px; text-align: center; }
.soon-pill { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--purple); color: #fff; border-radius: 999px; padding: 2px 8px; margin-left: 4px; vertical-align: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 14px; font-family: var(--body); font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 1.08rem; }
.btn-sm { min-height: 44px; padding: 9px 16px; font-size: .95rem; }
.btn-yellow { background: var(--yellow); color: var(--navy); box-shadow: 0 4px 0 #B98600; }
.btn-yellow:hover { color: var(--navy); box-shadow: 0 6px 0 #B98600; }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 4px 0 #000A26; }
.btn-navy:hover { color: var(--yellow); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { border-color: var(--yellow); color: var(--yellow); }
.btn.is-soon { background: #E7E9F3; color: #5A6280; box-shadow: none; cursor: not-allowed; transform: none; }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--navy); }
.link-arrow:hover { color: var(--purple-d); }

/* ---------- kickers, badges ---------- */
.kicker { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--yellow); margin-bottom: .7em; }
.k-dark { color: var(--purple-d); }
.badge-honors { display: inline-block; background: var(--navy); color: var(--yellow); font-weight: 700; font-size: .72rem; letter-spacing: .05em; border-radius: 7px; padding: 2px 8px; white-space: nowrap; vertical-align: 1px; }
.page-hero .badge-honors, .sec-navy .badge-honors { background: var(--yellow); color: var(--navy); }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #2A3C8C 0%, transparent 60%), var(--navy); color: #fff; padding: 40px 0 52px; overflow: hidden; }
.hero-in { display: grid; gap: 34px; }
.hero h1 { color: #fff; }
.hl { color: var(--yellow); }
.lead { font-size: 1.12rem; color: #DDE3FF; max-width: 40em; }
.hero-ctas, .cta-btns { display: flex; flex-direction: column; gap: 12px; margin: 22px 0; }
.hero-facts { list-style: none; padding: 0; margin: 8px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-facts li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 6px 14px; font-size: .95rem; }
.hero-facts b { color: var(--yellow); }
.hero-art { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 440px; margin: 0 auto; width: 100%; }
.hero-art .tile { flex: 0 0 calc((100% - 30px) / 4); }
.tile { aspect-ratio: 1; border-radius: 16px; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; color: var(--navy); box-shadow: 0 6px 0 rgba(0,0,0,.25); transform: rotate(calc((var(--i) - 3) * 1.5deg)); animation: bob 5s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }
.tile-z { font-weight: 700; font-size: .85rem; }
.tile-s { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 7vw, 2.2rem); line-height: 1; }
.tile-n { font-size: clamp(.55rem, 2.4vw, .72rem); font-weight: 700; overflow-wrap: anywhere; line-height: 1.1; }
.t-teal { background: var(--teal); }
.t-yellow { background: var(--yellow); }
.t-red { background: var(--red); color: #fff; }
.t-purple { background: var(--purple); color: #fff; }
.t-orange { background: var(--orange); }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .tile { animation: none; } html { scroll-behavior: auto; } }

/* ---------- sections ---------- */
.sec { padding: 52px 0; }
.sec-sm { padding: 26px 0; }
.sec-navy { background: var(--navy); color: #fff; }
.sec-navy p { color: #DDE3FF; }
.sec-tint { background: var(--cloud); }
.sec-yellow { background: var(--yellow); }
.sec-head { max-width: 640px; margin-bottom: 28px; }
.sec-head p:last-child { color: var(--muted); font-size: 1.05rem; }
.sec-navy .sec-head p:last-child { color: #C9D1F5; }
.stack { padding-top: 12px; padding-bottom: 40px; }
.split { display: grid; gap: 28px; align-items: center; }

/* color helpers for cards */
.c-teal { --c: var(--teal); --cd: var(--teal-d); }
.c-purple { --c: var(--purple); --cd: var(--purple-d); }
.c-orange { --c: var(--orange); --cd: var(--orange-d); }
.c-red { --c: var(--red); --cd: var(--red-d); }
.c-navy { --c: var(--blue); --cd: var(--navy); }
.c-yellow { --c: var(--yellow); --cd: #8A6400; }

/* files grid */
.files { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.file { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 2px solid var(--line); border-left: 8px solid var(--c); border-radius: var(--radius); padding: 16px; }
.file h3 { margin: 0 0 4px; font-size: 1rem; }
.file p { margin: 0; color: var(--muted); font-size: .98rem; }
.ico { width: 34px; height: 34px; flex: none; color: var(--cd); background: color-mix(in srgb, var(--c) 18%, white); border-radius: 10px; padding: 4px; }
.fnum { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--c); color: var(--navy); font-size: .8rem; margin-right: 8px; font-family: var(--body); }

/* chapter cards (home, navy section) */
.ch-grid { display: grid; gap: 16px; }
.ch-card { background: var(--navy-2); border-radius: var(--radius); padding: 22px; border-top: 8px solid var(--c); }
.ch-card h3 { font-size: 1.2rem; }
.ch-card h3 a { color: #fff; text-decoration: none; }
.ch-num { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--cd, var(--purple-d)); margin-bottom: .4em; }
.ch-card .ch-num { color: var(--c); }
.ch-sets { list-style: none; padding: 0; margin: 0 0 18px; }
.ch-sets li { border-bottom: 1px solid rgba(255,255,255,.12); }
.ch-sets a { display: block; padding: 11px 0; color: #fff; text-decoration: none; font-weight: 700; }
.ch-sets a::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 10px; }
.ch-sets a:hover { color: var(--yellow); }
.more-soon { margin-top: 22px; }
.sec-navy a:not(.btn) { color: var(--yellow); }

/* demo callouts */
.demo-box { display: grid; gap: 12px; }
.callout { border-radius: 14px; padding: 14px 16px; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 12%, white); margin: 18px 0; }
.callout p { margin: 0 0 .4em; }
.callout p:last-child { margin-bottom: 0; }
.callout-k { font-weight: 700; font-size: .78rem; letter-spacing: .08em; color: var(--cd); }
.demo-box .callout { margin: 0; }
.c-def { --c: var(--teal); --cd: var(--teal-d); }
.c-trap { --c: var(--red); --cd: var(--red-d); }
.c-tip { --c: var(--yellow); --cd: #8A6400; }
.c-key { --c: var(--orange); --cd: var(--orange-d); }
.c-hon { --c: var(--navy-3); --cd: var(--navy); background: #EEF1FF; border-style: dashed; }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 7px; background: var(--teal); color: var(--navy); font-weight: 700; font-size: .85rem; display: grid; place-items: center; }

/* video */
.video-slot { aspect-ratio: 9 / 16; max-width: 250px; width: 100%; margin: 0 auto; border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, var(--purple) 0%, var(--navy) 55%, var(--teal) 130%); box-shadow: 0 10px 0 rgba(11,21,51,.15); }
.video-slot iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-ph { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 20px; }
.video-ph p { margin: 0 0 4px; font-weight: 700; }
.video-ph .small { color: #C9D1F5; font-weight: 400; }
.play { width: 74px; height: 74px; border-radius: 50%; background: var(--yellow); color: var(--navy); display: grid; place-items: center; font-size: 1.8rem; margin-bottom: 16px; padding-left: 6px; }
.video-inline { margin: 0; }

/* lessons */
.lesson-row { display: grid; gap: 10px; }
.lesson-chip { display: flex; flex-direction: column; gap: 2px; text-decoration: none; padding: 14px 18px; border-radius: 14px; background: color-mix(in srgb, var(--c) 16%, white); border: 2px solid var(--c); color: var(--navy); }
.lesson-chip:hover { background: var(--c); color: var(--navy); }
.lc-k { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--cd); }
.lesson-chip:hover .lc-k { color: var(--navy); }
.lc-t { font-weight: 700; font-size: 1.05rem; }
.cta-row { display: grid; gap: 14px; padding-top: 6px; padding-bottom: 6px; }
.cta-row h2 { margin-bottom: .2em; }
.cta-row p { margin: 0; }

/* ---------- page hero ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 26px 0 36px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--hc, var(--purple)); z-index: 0; }
.page-hero .wrap { position: relative; z-index: 1; }
.ph-teal { --hc: var(--teal); }
.ph-purple { --hc: var(--purple); }
.ph-orange { --hc: var(--orange); }
.ph-red { --hc: var(--red); }
.page-hero h1 { font-size: clamp(1.7rem, 6.8vw, 2.9rem); max-width: 18em; }
.crumbs { font-size: .9rem; margin-bottom: 16px; color: #B8C2EE; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.crumbs a { color: #fff; }
.crumbs .sep { opacity: .5; }

/* set pages */
.set-hero { display: grid; gap: 26px; }
.pill-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-row li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 5px 13px; font-size: .9rem; font-weight: 700; }
.buy-box { background: #fff; color: var(--ink); border-radius: 22px; padding: 22px; box-shadow: 0 10px 0 rgba(0,0,0,.25); border-top: 8px solid var(--yellow); }
.buy-kicker { font-weight: 700; color: var(--muted); margin-bottom: .2em; }
.buy-price { font-family: var(--display); font-weight: 700; font-size: 2.1rem; margin: 0 0 12px; color: var(--navy); }
.buy-btn { width: 100%; }
.buy-note { font-size: .9rem; color: var(--muted); margin: 10px 0 14px; }
.buy-box .ticks { margin: 0 0 14px; }
.bundle-line { border-top: 2px dashed var(--line); padding-top: 14px; }
.bundle-line p { margin: 0 0 10px; font-size: .95rem; }
/* v26 (Kem): bundle box stands out: Save tag + big line + full-width solid gold button, same size as Buy the full set */
.bundle-line .bundle-save { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 12px; font-size: 1.18rem; font-weight: 800; color: var(--navy); line-height: 1.3; }
.save-tag { display: inline-block; padding: 3px 11px; border-radius: 999px; background: #CC3300; color: #fff; font-size: .85rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.bundle-btn { width: 100%; background: #F5B700; color: var(--navy); font-weight: 800; }
.bundle-btn:hover { color: var(--navy); }
.two-col { display: grid; gap: 24px; }
.topics { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.topics li { background: var(--cloud); border-radius: 12px; padding: 10px 14px; font-weight: 700; border-left: 5px solid var(--teal); }
.topics li.is-honors { background: #EEF1FF; border-left-color: var(--navy); font-weight: 400; }
.honors-note { font-size: .92rem; color: var(--muted); }
.preview-card { background: var(--yellow-soft); border: 3px solid var(--yellow); border-radius: 22px; padding: 22px; }
.preview-card .btn { width: 100%; margin: 6px 0 10px; }

/* set cards */
.set-grid { display: grid; gap: 14px; }
.set-card { background: #fff; border: 2px solid var(--line); border-top: 8px solid var(--c); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.set-card h3 { font-size: 1.18rem; }
.set-card h3 a { color: var(--navy); text-decoration: none; }
.set-card p { color: var(--muted); }
.set-num { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; color: var(--cd) !important; margin-bottom: .4em; }
.set-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.price-chip { background: var(--navy); color: var(--yellow); border-radius: 999px; padding: 5px 13px; font-weight: 700; font-size: .9rem; }

/* chapter index */
.ch-block { padding: 26px 0; border-bottom: 2px solid var(--line); }
.ch-block-head h2 a { color: var(--navy); text-decoration: none; }
.ch-block-head p:last-child { color: var(--muted); }
.ch-block .ch-num { display: inline-block; margin-bottom: 12px; padding: 7px 16px; border-radius: 999px; background: var(--c); color: var(--navy); font-size: .9rem; letter-spacing: .1em; box-shadow: 0 3px 0 var(--cd); }
.soon { padding: 30px 0 10px; }
.soon-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.soon-list li { background: var(--cloud); border-radius: 12px; padding: 10px 14px; display: flex; gap: 12px; align-items: center; font-weight: 700; color: var(--muted); }
.soon-n { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 9px; background: #fff; border: 2px dashed var(--line); color: var(--navy); font-size: .9rem; }

/* bundle */
.bundle { display: grid; gap: 18px; background: color-mix(in srgb, var(--c) 14%, white); border: 3px solid var(--c); border-radius: 22px; padding: 22px; margin: 26px 0; }
.bundle-buy .btn { width: 100%; }

/* ---------- lessons ---------- */
.lesson-grid { display: grid; gap: 14px; }
.lesson-card { background: #fff; border: 2px solid var(--line); border-left: 8px solid var(--c); border-radius: var(--radius); padding: 20px; }
.lesson-card h2 { font-size: 1.2rem; }
.lesson-card h2 a { color: var(--navy); text-decoration: none; }
.lesson-card .ch-num { color: var(--cd); }
.lesson-card p { color: var(--muted); }
.lesson-wrap { display: grid; gap: 10px; padding-top: 22px; }
.toc { background: var(--cloud); border-radius: 16px; padding: 14px 18px; }
.toc-k { font-weight: 700; margin: 0 0 6px; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--purple-d); }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 3px 0; }
.toc a { color: var(--navy); }
.lesson { max-width: 720px; min-width: 0; }
.lesson h2 { font-size: clamp(1.25rem, 4.6vw, 1.6rem); margin-top: 1.6em; scroll-margin-top: 84px; }
.lesson ul, .lesson ol { padding-left: 22px; }
.lesson li { margin-bottom: 6px; }
.kt { color: var(--blue-d); }
.mp { color: #B5470A; font-weight: 700; }
.txt-blue { color: var(--blue-d); }
.txt-red { color: var(--red-d); }
.math { font-size: 1.08rem; line-height: 2.4; overflow-x: auto; overflow-y: hidden; white-space: nowrap; padding-bottom: 2px; }
.center { text-align: center; }
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; margin: 0 .2em; line-height: 1.25; }
.frac > span:first-child { border-bottom: 2px solid currentColor; padding: 0 .3em 2px; }
.frac > span:last-child { padding: 2px .3em 0; }
.ux { color: var(--red-d); text-decoration: line-through; text-decoration-thickness: 2px; font-weight: 700; }
.uw { color: #0E8A3A; font-weight: 700; }
.legend { font-size: .95rem; }
.example { border-radius: 16px; background: #FFF5EC; border: 2px solid var(--orange); padding: 16px; margin: 18px 0; }
.ex-k { font-weight: 700; font-size: .78rem; letter-spacing: .08em; color: var(--orange-d); margin-bottom: .5em; }
.example p:last-child { margin-bottom: 0; }
.formula { background: var(--navy); color: #fff; border-radius: 18px; padding: 18px; text-align: center; font-size: 1.8rem; font-weight: 700; margin: 18px 0; }
.formula .frac > span:first-child { border-bottom-color: var(--yellow); }
.formula-key { display: block; font-size: .95rem; font-weight: 400; color: #C9D1F5; margin-top: 8px; }
.formula-key b { color: var(--yellow); }
.table-wrap { overflow-x: auto; margin: 18px 0; border-radius: 14px; border: 2px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: .97rem; }
th { background: var(--navy); color: #fff; font-weight: 700; text-align: center; padding: 10px 12px; }
td { padding: 10px 12px; border-top: 1px solid var(--line); text-align: center; }
td:first-child { text-align: left; }
tbody tr:nth-child(even) td { background: var(--cloud); }
.diagram { margin: 22px 0; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 12px; }
.diagram svg { display: block; width: 100%; }
.diagram figcaption { font-size: .95rem; color: var(--muted); padding: 8px 6px 2px; }
.sign-grid, .steps { display: grid; gap: 10px; margin: 18px 0; }
.sign, .step { border-radius: 14px; padding: 12px 14px; background: color-mix(in srgb, var(--c) 15%, white); border-left: 6px solid var(--c); display: flex; flex-direction: column; }
.sign b, .step b { color: var(--navy); }
.sign span, .step span { color: var(--muted); font-size: .95rem; }
.qc { padding-left: 22px; }
.qc li { margin-bottom: 14px; font-weight: 700; }
.qc details { font-weight: 400; margin-top: 6px; }
.qc summary, .faq summary { cursor: pointer; font-weight: 700; color: var(--purple-d); min-height: 44px; display: flex; align-items: center; }
.qc details p { background: #EAFBF8; border-radius: 10px; padding: 10px 12px; margin: 6px 0 0; }
.lesson-cta { margin: 34px 0 10px; background: color-mix(in srgb, var(--c) 14%, white); border: 3px solid var(--c); border-radius: 22px; padding: 22px; }
.lesson-cta h2 { margin-top: 0; }

/* ---------- prose pages ---------- */
.prose { max-width: 780px; }
.prose h2 { margin-top: 1.4em; font-size: 1.35rem; }
.placeholder-note { background: var(--yellow-soft); border: 2px dashed #E5A800; border-radius: 14px; padding: 14px 16px; margin: 18px 0; }
.placeholder-note p { margin: 0; }
.faq-list { display: grid; gap: 10px; margin-top: 16px; }
.faq { background: var(--cloud); border-radius: 14px; padding: 4px 16px; }
.faq summary { color: var(--navy); list-style: none; padding: 8px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; color: var(--purple-d); padding-left: 12px; }
.faq[open] summary::after { content: "–"; }
.faq p { margin: 0 0 14px; }
.contact { margin-top: 36px; }
.form { display: grid; gap: 14px; background: var(--cloud); border-radius: 20px; padding: 20px; }
.form label { display: grid; gap: 6px; font-weight: 700; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; width: 100%; padding: 13px 14px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--ink); min-height: 50px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--purple); outline: none; }
.hidden-field { position: absolute; left: -9999px; }

/* 404 */
.nf { text-align: left; }
.nf-tile { width: 130px; height: 130px; border-radius: 22px; background: var(--yellow); color: var(--navy); padding: 12px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 8px 0 #B98600; transform: rotate(-4deg); margin-bottom: 24px; }

/* ---------- footer ---------- */
.foot { background: var(--navy); color: #C9D1F5; padding: 40px 0 24px; margin-top: 0; border-top: 8px solid var(--yellow); }
.foot-grid { display: grid; gap: 24px; }
.foot h3 { color: #fff; font-family: var(--body); font-size: 1rem; font-weight: 700; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: 0; }
.foot a { color: #C9D1F5; text-decoration: none; display: inline-block; padding: 6px 0; }
.foot a:hover { color: var(--yellow); }
.foot .logo { color: #fff; }
.foot-tag { margin-top: 12px; }
.foot-small { border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 16px; font-size: .85rem; }
.foot-small p { margin: 0 0 4px; }

/* ---------- bigger screens ---------- */
@media (min-width: 640px) {
  .hide-sm { display: inline; }
  .video-slot { max-width: 300px; }
  .hero-ctas, .cta-btns { flex-direction: row; flex-wrap: wrap; }
  .files { grid-template-columns: 1fr 1fr; }
  .lesson-row { grid-template-columns: repeat(2, 1fr); }
  .set-grid, .lesson-grid { grid-template-columns: 1fr 1fr; }
  .sign-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .soon-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  body { font-size: 18px; }
  .hero { padding: 70px 0 84px; }
  .hero-in { grid-template-columns: 1.25fr 1fr; align-items: center; }
  .files { grid-template-columns: repeat(3, 1fr); }
  .files-list { grid-template-columns: 1fr 1fr; }
  .ch-grid { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .split-video { grid-template-columns: 340px 1fr; }
  .lesson-row { grid-template-columns: repeat(5, 1fr); }
  .set-grid { grid-template-columns: repeat(3, 1fr); }
  .set-grid-2 { grid-template-columns: 1fr 1fr; }
  .lesson-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-row { grid-template-columns: 1fr auto; align-items: center; }
  .page-hero { padding: 40px 0 56px; }
  .page-hero::after { left: auto; bottom: auto; width: 340px; height: 340px; right: -110px; top: -150px; border-radius: 56px; transform: rotate(18deg); opacity: .9; }
  .page-hero .wrap > h1, .page-hero .lead { max-width: 760px; }
  .set-hero { grid-template-columns: 1fr 380px; align-items: start; }
  .two-col { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .bundle { grid-template-columns: 1fr 320px; align-items: center; padding: 30px; }
  .lesson-wrap { grid-template-columns: 230px 1fr; gap: 44px; align-items: start; }
  .toc { position: sticky; top: 90px; }
  .sign-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .soon-list { grid-template-columns: repeat(4, 1fr); }
}

/* fixes */
.nav a.btn-yellow, .nav a.btn-yellow:hover { color: var(--navy); background: var(--yellow); }
.diagram { overflow-x: auto; }
.diagram svg { min-width: 520px; }

/* ---------- parents: share + sign-up ---------- */
.share-parent { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-top: 12px; padding: 10px 16px; border-radius: 14px; border: 2px dashed var(--navy); background: #fff; color: var(--navy); font: 700 1rem var(--body); cursor: pointer; }
.share-parent:hover { background: var(--yellow-soft); }
.share-parent svg { width: 20px; height: 20px; }
.share-msg { font-size: .9rem; font-weight: 700; color: var(--teal-d); margin: 8px 0 0; text-align: center; min-height: 1.2em; }
.signup { margin: 22px 0 10px; background: var(--navy); color: #fff; border-radius: 22px; padding: 22px; border-bottom: 8px solid var(--yellow); }
.signup h2 { color: #fff; margin: 0 0 .3em; font-size: 1.4rem; }
.signup p { color: #C9D1F5; margin: 0 0 14px; }
.signup form { display: grid; gap: 12px; }
.signup .who { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.signup .who legend { font-weight: 700; color: #fff; margin-bottom: 6px; padding: 0; }
.signup .who label { display: inline-flex; align-items: center; gap: 6px; background: var(--navy-2); border: 2px solid var(--navy-3); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 700; }
.signup .who input { accent-color: var(--yellow); width: 18px; height: 18px; }
.signup .row { display: flex; flex-direction: column; gap: 10px; }
.signup input[type=email] { font: inherit; width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--navy-3); background: #fff; color: var(--ink); }
.signup .fine { font-size: .82rem; color: #9FA9D6; margin: 0; }
.signup .fine a { color: var(--yellow); }
.signup .hp { display: none; }
@media (min-width: 640px) { .signup .row { flex-direction: row; } .signup .row .btn { flex: none; } }
.parent-share { margin: 18px 0; background: var(--yellow-soft); border: 3px solid var(--yellow); border-radius: 22px; padding: 20px; }
.parent-share h3 { margin: 0 0 .3em; }
.parent-share p { margin: 0 0 6px; }
.parent-share .share-parent { max-width: 360px; }
.p-cards { display: grid; gap: 14px; margin: 18px 0; }
@media (min-width: 760px) { .p-cards { grid-template-columns: repeat(3, 1fr); } }
.p-card { border: 2px solid var(--line); border-radius: 18px; padding: 18px; background: #fff; }
.p-card h3 { margin: 0 0 .4em; font-size: 1.1rem; }
.p-card p { margin: 0; color: var(--muted); }

/* desktop nav: needs room for 6 links + button */
@media (min-width: 1200px) {
  .menu-btn { display: none; }
  .nav { display: flex; position: static; flex-direction: row; align-items: center; padding: 0; border: 0; gap: 2px; background: transparent; }
  .nav a { font-size: 1.1rem; padding: 10px 12px; }
  .nav .btn { margin: 0 0 0 10px; }
}

/* ---------- story + free notes ---------- */
.story { display: grid; gap: 18px; align-items: center; }
.story-mark { width: 84px; height: 84px; border-radius: 22px; background: var(--yellow); color: var(--navy); display: grid; place-items: center; box-shadow: 0 6px 0 var(--navy); }
.story-mark svg { width: 46px; height: 46px; }
.story blockquote { margin: 0; font-size: clamp(1.15rem, 3.6vw, 1.45rem); font-weight: 700; line-height: 1.4; }
.story p { max-width: 62ch; }
@media (min-width: 760px) { .story { grid-template-columns: auto 1fr; gap: 28px; } }
.free-line { margin: 12px 0 0; font-size: .92rem; text-align: center; }
.free-line a { font-weight: 700; }
.free-box { background: var(--yellow-soft); border: 3px solid var(--yellow); border-radius: 22px; padding: 20px; margin: 18px 0; }
.free-box h2, .free-box h3 { margin-top: 0; }

.band-link { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.band-link:hover { color: var(--navy); text-decoration-thickness: 2px; }

/* Set page: file covers in the hero */
.hero-peek { margin-top: 22px; }
.hero-peek-k { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 16px; }
.hp-badge { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 10px 20px; border: 0; border-radius: 14px; background: var(--yellow); color: var(--navy); font: 700 1.08rem var(--body); cursor: pointer; box-shadow: 0 4px 0 #B98600; transition: transform .12s, box-shadow .12s; }
.hp-badge:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #B98600; }
.hp-badge:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.hp-badge svg { width: 20px; height: 20px; }
.hp-hint { font-size: .95rem; color: #B9C2EC; }
.cover-strip { list-style: none; margin: 0 -18px; padding: 4px 18px 10px; display: grid; grid-auto-flow: column; grid-auto-columns: 128px; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.cover-strip li { scroll-snap-align: start; }
.cover-btn { display: flex; flex-direction: column; width: 100%; padding: 0; background: none; border: 0; color: #fff; text-align: left; cursor: pointer; font: inherit; }
.cover-btn img { display: block; width: 100%; height: auto; border-radius: 8px; border: 2px solid rgba(255,255,255,.25); box-shadow: 0 6px 16px rgba(0,0,0,.35); transition: transform .15s, border-color .15s; }
.cover-btn:hover img, .cover-btn:focus-visible img { transform: translateY(-4px); border-color: var(--yellow); }
.cover-btn:focus-visible { outline: none; }
.cover-name { display: block; margin-top: 10px; font-size: .95rem; font-weight: 700; line-height: 1.25; }
.cover-pages { display: block; margin-top: 4px; font-size: .9rem; color: var(--yellow); font-weight: 700; }
@media (min-width: 960px) {
  .cover-strip { margin: 0; padding: 4px 0 6px; grid-auto-flow: row; grid-template-columns: repeat(7, 1fr); grid-auto-columns: auto; overflow: visible; }
}
.tick-link { color: inherit; text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tick-link:hover { color: var(--teal-d); }

/* Set page: covers full width in hero, then buy box + file list */
.set-hero-full { grid-template-columns: minmax(0, 1fr) !important; }
.set-hero-full > div, .hero-peek { min-width: 0; }
.buy-layout { display: grid; gap: 22px; padding-top: 22px; padding-bottom: 10px; }
.buy-layout .buy-box { order: -1; border: 2px solid var(--line); border-top: 8px solid var(--yellow); box-shadow: 0 12px 30px rgba(11, 21, 51, .12); }
.buy-box .buy-btn { margin-bottom: 4px; }
.buy-box .buy-note[hidden] + .ticks { margin-top: 16px; }
.files-col h2 { margin-top: 0; }
.buy-layout .files-list { grid-template-columns: 1fr; }
@media (min-width: 960px) {
  .buy-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 32px; padding-top: 32px; }
  .buy-layout .buy-box { order: 0; position: sticky; top: 16px; }
}

/* Buy box: perks list and parent share */
.buy-perks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.buy-perks li { display: flex; align-items: center; gap: 12px; }
.perk-ico { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--cloud); background: color-mix(in srgb, var(--c) 18%, #fff); color: var(--cd); }
.perk-ico svg { width: 20px; height: 20px; }
.buy-perks b { display: block; font-size: 1rem; line-height: 1.3; color: var(--navy); }
.buy-perks small { display: block; font-size: .86rem; line-height: 1.35; color: var(--muted); }
.parent-ask { margin-top: 18px; padding: 14px; border-radius: 16px; background: var(--cloud); border: 1px solid var(--line); }
.parent-ask-k { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.parent-ask .share-parent { margin-top: 0; min-height: 46px; border: 2px solid var(--navy); background: #fff; border-radius: 12px; }
.parent-ask .share-parent:hover { background: var(--navy); color: #fff; }
.parent-ask-help { margin: 8px 0 0; font-size: .84rem; line-height: 1.4; color: var(--muted); }
.parent-ask .share-msg:empty { display: none; }

/* Share with friends */
.share-friends { display: grid; gap: 14px; margin: 26px 0 6px; padding: 20px; border-radius: 20px; background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.share-friends::before { content: ""; position: absolute; right: -50px; top: -60px; width: 170px; height: 170px; border-radius: 40px; background: var(--purple); opacity: .35; transform: rotate(18deg); }
.sf-intro, .sf-actions, .sf-msg { position: relative; }
.sf-intro h2 { margin: 0 0 4px; color: #fff; font-size: 1.35rem; }
.sf-intro p { margin: 0; color: #C9D1F5; font-size: .98rem; }
.sf-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; font: 700 .95rem var(--body); text-decoration: none; cursor: pointer; transition: background .12s, border-color .12s, color .12s; }
.sf-btn:hover { background: #fff; border-color: #fff; color: var(--navy); }
.sf-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sf-btn svg { width: 18px; height: 18px; }
.sf-native, .sf-copy { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.sf-native:hover, .sf-copy:hover { background: #fff; border-color: #fff; }
/* Brand-coloured share buttons (filled) */
.sf-snap { background: #FFFC00; border-color: #FFFC00; color: #111; }
.sf-ig { background: linear-gradient(45deg, #F58529, #DD2A7B 50%, #8134AF); border-color: transparent; color: #fff; }
.sf-tt { background: #000; border-color: #25F4EE; color: #fff; box-shadow: 2px 2px 0 #FE2C55; }
.sf-wa { background: #25D366; border-color: #25D366; color: #06331A; }
.sf-fb { background: #1877F2; border-color: #1877F2; color: #fff; }
.sf-x { background: #000; border-color: #fff; color: #fff; }
.sf-mail { background: #fff; border-color: #fff; color: var(--navy); }
.sf-snap:hover, .sf-ig:hover, .sf-tt:hover, .sf-wa:hover, .sf-fb:hover, .sf-x:hover, .sf-mail:hover { filter: brightness(1.08); transform: translateY(-2px); }
.sf-snap:hover { background: #FFFC00; color: #111; border-color: #FFFC00; }
.sf-ig:hover { background: linear-gradient(45deg, #F58529, #DD2A7B 50%, #8134AF); color: #fff; border-color: transparent; }
.sf-tt:hover, .sf-x:hover { background: #000; color: #fff; }
.sf-wa:hover { background: #25D366; color: #06331A; border-color: #25D366; }
.sf-fb:hover { background: #1877F2; color: #fff; border-color: #1877F2; }
.sf-mail:hover { background: #fff; color: var(--navy); }
.sf-btn { transition: transform .12s, filter .12s, background .12s; }
.sf-msg { margin: 0; font-size: .9rem; font-weight: 700; color: var(--yellow); min-height: 0; }
.sf-msg:empty { display: none; }
@media (min-width: 960px) { .share-friends { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 24px 28px; } .sf-msg { grid-column: 1 / -1; } }

/* Set page: file list extras */
.h2-sub { font-size: .95rem; font-weight: 400; color: var(--muted); margin-left: 6px; white-space: nowrap; }
.file-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 0 !important; }
.page-tag { display: inline-block; background: var(--cloud); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: .85rem; font-weight: 700; color: var(--ink); }
.see-pages { background: none; border: 0; padding: 0; font: inherit; font-size: .92rem; font-weight: 700; color: var(--cd, var(--navy)); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#files { scroll-margin-top: 16px; }

/* Sample-page viewer */
.peek-viewer { width: min(1060px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.peek-viewer::backdrop { background: rgba(11, 21, 51, .78); }
.pv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 0; }
.pv-k { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .95rem; font-weight: 700; color: var(--muted); }
/* v26 (Kem): file number big and bold, about the size of the file title */
.pv-num { display: inline-block; padding: 3px 12px; border-radius: 10px; background: var(--yellow); color: var(--navy); font-size: 1.3rem; font-weight: 800; letter-spacing: .02em; line-height: 1.3; }
.pv-pages { font-size: 1rem; font-weight: 700; color: var(--muted); }
.pv-title { margin: 2px 0 0; font-size: 1.35rem; }
.pv-close { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line); background: var(--paper); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--navy); }
.pv-close:hover { border-color: var(--navy); }
.pv-note { margin: 6px 20px 12px; font-size: .9rem; color: var(--muted); }
.pv-pages-row { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 0 20px 6px; } /* v22 (Kem): phones scroll DOWN through the clear pages, never sideways */
.pv-page { margin: 0; scroll-snap-align: center; }
.pv-page img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 4px 14px rgba(11,21,51,.12); }
.pv-page figcaption { margin-top: 8px; font-size: .9rem; color: var(--muted); text-align: center; }
.pv-page figcaption b { color: var(--navy); }
/* v26 (Kem): bottom bar = Previous file | big "File 2 of 7" | gold Buy button + Next file card side by side.
   Phones: Next file and Buy stacked full width on top, then Previous file + counter on one row. */
.pv-foot { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "prev count go"; align-items: center; gap: 12px 16px; padding: 14px 20px 18px; border-top: 2px solid var(--line); margin-top: 10px; }
.pv-prev { grid-area: prev; }
.pv-count { grid-area: count; margin: 0; text-align: center; font-size: 1.45rem; font-weight: 800; color: var(--navy); white-space: nowrap; }
.pv-go { grid-area: go; display: flex; align-items: center; gap: 12px; }
.pv-buy { white-space: nowrap; }
.pv-next { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 6px 12px 6px 6px; border: 3px solid var(--yellow); border-radius: 14px; background: var(--navy); color: #fff; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 0 0 4px rgba(245,183,0,.22), 0 4px 0 #000A26; transition: transform .12s, box-shadow .12s; }
.pv-next:hover { transform: translateY(-2px); box-shadow: 0 0 0 5px rgba(245,183,0,.35), 0 6px 0 #000A26; }
.pv-next:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.pv-next-thumb { flex: none; width: 36px; height: 46px; object-fit: cover; object-position: top; border-radius: 5px; border: 1px solid rgba(255,255,255,.5); background: #fff; }
.pv-next-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.pv-next-k { font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.pv-next-name { font-size: 1.05rem; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 20em; }
.pv-next-arrow { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-weight: 800; font-size: 1.4rem; animation: pv-nudge 1.6s ease-in-out infinite; }
@keyframes pv-nudge { 0%, 60%, 100% { transform: translateX(0); } 30% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .pv-next-arrow { animation: none; } }
@media (max-width: 899px) {
  .pv-foot { grid-template-columns: auto 1fr; grid-template-areas: "go go" "prev count"; }
  .pv-go { flex-direction: column; align-items: stretch; }
  .pv-go .pv-next { order: -1; justify-content: space-between; }
  .pv-buy { text-align: center; }
  .pv-count { text-align: right; font-size: 1.3rem; }
  .pv-next-name { max-width: none; white-space: normal; }
}
@media (min-width: 760px) {
  .pv-pages-row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; }
}

/* =====================================================================
   THEME Y1 "Calm study": deep teal strip, white menu, light mint headers,
   teal / violet / coral chapter colours, yellow kept for buying.
   Remove this whole block to go back to the navy-and-yellow look.
   ===================================================================== */
:root {
  --navy: #13324A; --navy-2: #1D4560;
  --teal: #0F9E99; --teal-d: #0B7A76;
  --purple: #6C63FF; --purple-d: #4B43D6;
  --orange: #FF6B57; --orange-d: #D9483A;
  --mint: #E9F6F4; --deep-teal: #0F6E6A; --soft-teal: #9ED9D2; --slate: #3F5A6E;
}
/* top strip */
.band { background: var(--deep-teal); color: #fff; border-bottom: 0; }
.band-ico { background: #fff; color: var(--deep-teal); }
.band-link, .band-link:hover { color: #fff; }
/* menu bar */
.top { background: #fff; box-shadow: 0 1px 0 var(--line), 0 6px 16px rgba(19, 50, 74, .06); }
.logo, .logo:hover { color: var(--navy); }
.logo-word b { color: var(--orange); }
.menu-btn span { background: var(--navy); }
.nav { background: #fff; border-top: 1px solid var(--line); }
.nav a { color: var(--navy); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--mint); color: var(--deep-teal); }
.nav a.btn-yellow, .nav a.btn-yellow:hover { color: var(--navy); background: var(--yellow); }
@media (min-width: 1200px) { .nav { background: transparent; border: 0; } }
/* page headers (set, chapter, lesson pages) */
.page-hero { background: var(--mint); color: var(--navy); }
.page-hero::after { background: var(--soft-teal); }
.page-hero .kicker { color: var(--deep-teal); }
.page-hero .lead { color: var(--slate); }
.crumbs { color: var(--slate); }
.crumbs a { color: var(--navy); }
.pill-row li { background: #fff; border: 1px solid #BFE0DB; color: var(--navy); }
/* home page header */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #CDEFEA 0%, transparent 60%), var(--mint); color: var(--navy); }
.hero h1 { color: var(--navy); }
.hero .hl { color: var(--deep-teal); }
.hero .lead { color: var(--slate); }
.hero .kicker { color: var(--deep-teal); }
.hero-facts li { background: #fff; border: 1px solid #BFE0DB; color: var(--navy); }
.hero-facts b { color: var(--deep-teal); }
.hero .btn-ghost-light, .page-hero .btn-ghost-light { color: var(--navy); border-color: var(--navy); }
.hero .btn-ghost-light:hover, .page-hero .btn-ghost-light:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
/* set page: covers and "look inside" on the light header */
.hp-hint { color: var(--slate); }
.hp-badge:focus-visible { outline-color: var(--navy); }
.cover-btn { color: var(--navy); }
.cover-btn img { border-color: #CFE6E2; box-shadow: 0 6px 16px rgba(19, 50, 74, .16); }
.cover-pages { color: var(--deep-teal); }
/* chapter pills and number chips */
.ch-block .ch-num { color: #fff; }
.fnum { color: #fff; }
/* footer stays dark for contrast */
.foot { border-top-color: var(--deep-teal); }
.foot .logo-word b { color: #FF8F7E; }

/* Set cards: set-number pill and bigger yellow price tag */
.set-num { display: inline-block; align-self: flex-start; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--c); background: var(--cloud); background: color-mix(in srgb, var(--c) 14%, #fff); font-size: .78rem; letter-spacing: .1em; margin-bottom: .75em; }
.price-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 12px; background: var(--yellow); color: var(--navy); font-size: 1.2rem; font-weight: 700; box-shadow: 0 3px 0 #B98600; }
.price-chip.is-soon { min-height: 0; padding: 5px 12px; border-radius: 999px; background: var(--cloud); color: var(--muted); font-size: .88rem; font-weight: 700; box-shadow: none; border: 1px dashed #C5CCE3; }
.buy-price.is-soon { font-size: 1.4rem; color: var(--muted); }
.ch-block .bundle { margin-top: 18px; }

/* Set cards, option 1: price sticker top-right, full-width "See what's inside" button */
.set-card { position: relative; }
.set-card .price-chip { position: absolute; top: 14px; right: 14px; }
.set-card .soon-label { position: absolute; top: 60px; right: 14px; padding: 3px 10px; border-radius: 999px; background: var(--cloud); border: 1px dashed #C5CCE3; color: var(--muted); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.set-card h3 { padding-right: 96px; }
.set-card-foot { margin-top: auto; padding-top: 6px; }
.set-card-foot .link-arrow { flex: 1 1 100%; display: flex; justify-content: center; align-items: center; gap: 6px; min-height: 46px; border-radius: 12px; background: var(--cd); color: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .18); transition: transform .12s, filter .12s; }
.set-card-foot .link-arrow:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.08); }
/* Bundle price as a yellow tag, with the separate-price line */
.bundle-buy .buy-price { margin: 0 0 6px; }
.bundle-buy .buy-price span { display: inline-block; padding: 8px 18px; border-radius: 14px; background: var(--yellow); color: var(--navy); font-size: 1.7rem; line-height: 1.2; box-shadow: 0 4px 0 #B98600; }
.bundle-was { margin: 0 0 12px; color: var(--muted); font-size: .9rem; }
.bundle-was s { text-decoration-thickness: 2px; }

/* Home: "Stop searching. Start studying." band */
.all-in-one { background: var(--deep-teal, #0F6E6A); color: #fff; padding: 30px 0; position: relative; overflow: hidden; }
.all-in-one::before { content: ""; position: absolute; left: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50px; background: rgba(255, 255, 255, .06); transform: rotate(18deg); }
.aio-in { position: relative; display: grid; gap: 20px; }
.aio-text h2 { margin: 0 0 8px; color: #fff; font-size: clamp(1.7rem, 6vw, 2.5rem); line-height: 1.1; }
.aio-text h2 span { display: block; color: var(--yellow); }
.aio-text p { margin: 0; color: #D7F1EE; font-size: 1.08rem; max-width: 36em; }
.aio-files { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.aio-files li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 700; font-size: .95rem; box-shadow: 0 3px 0 rgba(0, 0, 0, .15); }
.aio-files svg { width: 22px; height: 22px; color: var(--deep-teal, #0F6E6A); flex: none; }
@media (min-width: 960px) {
  .all-in-one { padding: 40px 0; }
  .aio-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 36px; }
}

/* Home: chapter cards get the same bold chapter pill */
.ch-card .ch-num { display: inline-block; margin-bottom: 12px; padding: 6px 15px; border-radius: 999px; background: var(--c); color: #fff; font-size: .88rem; letter-spacing: .1em; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.ch-card h3 { margin-top: 0; }

/* Home: 7 file booklets (light, one colour per file type) */
.hero-books { width: 100%; max-width: 620px; margin: 0 auto; }
.hb-files { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 14px; }
.hb-files li { display: flex; flex-direction: column; }
.hb-wrap { position: relative; }
.hb-cv { position: relative; aspect-ratio: 8.5 / 11; display: flex; flex-direction: column; overflow: hidden; padding: 8% 8% 0; border-radius: 2px 6px 6px 2px;
  background: #fff; background: color-mix(in srgb, var(--fc) 12%, #fff);
  box-shadow: 3px 3px 0 #fff, 4px 4px 0 #CFD8DC, 6px 6px 0 #fff, 7px 7px 0 #CFD8DC, 9px 9px 0 #fff, 10px 10px 0 #C2CCD1, 0 14px 22px rgba(19, 50, 74, .2); }
.hb-cv::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8%; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.2), rgba(0,0,0,.04) 70%, rgba(255,255,255,.2)); }
.hb-brand { align-self: flex-end; font-size: .42rem; font-weight: 700; letter-spacing: .06em; color: var(--fc); margin-bottom: 6%; }
.hb-band { background: var(--fc); color: #fff; text-align: center; padding: 8% 6% 7%; border-radius: 4px; }
.hb-band small { display: block; font-size: .4rem; font-weight: 700; letter-spacing: .1em; color: rgba(255,255,255,.9); }
.hb-ico { display: grid; place-items: center; width: 36%; aspect-ratio: 1; margin: 7% auto 6%; border-radius: 22%; background: #fff; color: var(--fc); box-shadow: 0 3px 0 rgba(0,0,0,.12); }
.hb-ico svg { width: 62%; height: 62%; }
.hb-title { display: block; font-size: .66rem; line-height: 1.15; font-weight: 700; color: #fff; }
.hb-lines { display: grid; gap: 5px; padding: 9% 2% 6%; }
.hb-lines i { height: 3px; border-radius: 2px; background: #DCE3EA; background: color-mix(in srgb, var(--fc) 30%, #fff); }
.hb-lines i:nth-child(2) { width: 85%; } .hb-lines i:nth-child(3) { width: 70%; }
.hb-stripe { height: 7%; margin: auto -8% 0; background: var(--fc); opacity: .55; }
.hb-num { position: absolute; top: -10px; left: -10px; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--fc); color: #fff; font-size: .8rem; font-weight: 700; box-shadow: 0 2px 0 rgba(0,0,0,.2); }
.hb-name { margin-top: 12px; font-size: .86rem; font-weight: 700; line-height: 1.25; color: var(--navy); }
.hb-desc { font-size: .78rem; line-height: 1.3; color: var(--slate, #3F5A6E); }
.hb-cap { margin: 16px 0 0; text-align: center; font-weight: 700; color: var(--deep-teal, #0F6E6A); }
@media (max-width: 520px) {
  .hb-files { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
  .hb-title { font-size: .58rem; }
  .hb-desc { display: none; }
  .hb-name { font-size: .78rem; }
}

/* Home: light chapters section (replaces the dark navy block) */
#chapters { background: var(--mint, #E9F6F4); color: var(--navy); }
#chapters .kicker { color: var(--deep-teal, #0F6E6A); }
#chapters h2 { color: var(--navy); }
#chapters .sec-head p:last-child, #chapters p { color: var(--slate, #3F5A6E); }
#chapters .ch-card { background: #fff; border: 2px solid var(--line); border-top: 8px solid var(--c); box-shadow: 0 10px 24px rgba(19, 50, 74, .08); }
#chapters .ch-card h3 a { color: var(--navy); }
#chapters .ch-card h3 a:hover { color: var(--cd); }
#chapters .ch-sets li { border-bottom: 1px solid var(--line); }
#chapters .ch-sets a { color: var(--navy); }
#chapters .ch-sets a:hover { color: var(--cd); text-decoration: underline; text-underline-offset: 3px; }
#chapters .ch-card .btn-ghost-light { background: var(--cd); border-color: var(--cd); color: #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
#chapters .ch-card .btn-ghost-light:hover { filter: brightness(1.08); color: #fff; border-color: var(--cd); }
#chapters a:not(.btn) { color: var(--deep-teal, #0F6E6A); }
#chapters .ch-card h3 a, #chapters .ch-sets a { color: var(--navy); }
#chapters .ch-card .ch-num { color: #fff; font-size: 1.05rem; font-weight: 700; letter-spacing: .1em; padding: 9px 20px; margin-bottom: 14px; box-shadow: 0 3px 0 rgba(0, 0, 0, .2); }
/* Home: tinted chapter cards */
#chapters .ch-card { background: #F4F6FF; background: color-mix(in srgb, var(--c) 12%, #fff); border: 2px solid color-mix(in srgb, var(--c) 30%, #fff); }
#chapters .ch-sets li { border-bottom-color: color-mix(in srgb, var(--c) 30%, #fff); }
/* Home band: text only */
.all-in-one .aio-in { grid-template-columns: 1fr !important; text-align: center; }
.all-in-one .aio-text p { margin: 0 auto; }
/* Home band: thin, one line */
.all-in-one { padding: 16px 0 !important; }
.all-in-one .aio-in { gap: 4px; }
.all-in-one .aio-text h2 { font-size: clamp(1.3rem, 4.2vw, 1.9rem); margin: 0 0 4px; }
.all-in-one .aio-text h2 span { display: inline; }
.all-in-one .aio-text p { font-size: .98rem; }
.all-in-one::before { display: none; }
/* Bigger section labels */
.kicker { font-size: .95rem; letter-spacing: .09em; }
.demo-cap { margin: 0 0 10px; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate, #3F5A6E); }
/* Section labels as soft pills */
.kicker { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 700; letter-spacing: .08em; background: rgba(15, 110, 106, .1); background: color-mix(in srgb, currentColor 12%, transparent); margin-bottom: 12px; }

/* Share card under the buy box */
.buy-col { order: -1; display: grid; gap: 16px; align-content: start; }
.buy-layout .buy-col .buy-box { order: 0; position: static; }
.share-friends.sf-card { margin: 0; padding: 18px; grid-template-columns: 1fr !important; gap: 12px; border-radius: 20px; background: var(--mint, #E9F6F4); color: var(--navy); border: 2px solid #CFE6E2; }
.share-friends.sf-card::before { display: none; }
.sf-card .sf-intro h2 { color: var(--navy); font-size: 1.15rem; }
.sf-card .sf-intro p { color: var(--slate, #3F5A6E); font-size: .9rem; }
.sf-card .sf-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.sf-card .sf-btn { justify-content: center; min-height: 40px; padding: 7px 6px; font-size: .82rem; gap: 5px; }
.sf-card .sf-btn svg { width: 15px; height: 15px; }
.sf-card .sf-mail { border-color: #CFE6E2; }
.sf-card .sf-msg { color: var(--deep-teal, #0F6E6A); }
@media (min-width: 960px) {
  .buy-col { order: 0; position: static; }
}

/* Why get the full set */
.why-buy h2 { margin-top: 0; }
.why-cards { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.why-cards li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; background: #F4F6FF; background: color-mix(in srgb, var(--c) 10%, #fff); border: 2px solid color-mix(in srgb, var(--c) 28%, #fff); }
.why-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c); color: #fff; }
.why-ico svg { width: 24px; height: 24px; }
.why-cards h3 { margin: 0 0 4px; font-size: 1.08rem; color: var(--navy); }
.why-cards p { margin: 0; color: var(--slate, #3F5A6E); font-size: .96rem; }
.why-h { margin: 0 0 12px; font-size: 1.2rem; color: var(--navy); }
.why-table-wrap { overflow-x: auto; margin-bottom: 26px; border: 2px solid var(--line); border-radius: 16px; }
.why-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.why-table th, .why-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: center; background: #fff; color: var(--ink); }
.why-table thead th { background: var(--cloud); font-weight: 700; color: var(--navy); }
.why-table thead th.full { background: var(--yellow); color: var(--navy); }
.why-table tbody th { text-align: left; font-weight: 400; }
.why-table td.yes { color: #0B7A76; font-weight: 700; }
.why-table td.no { color: #9AA3B5; }
.why-table td:last-child { background: #FFF8E1; }
.why-table tr:last-child th, .why-table tr:last-child td { border-bottom: 0; }
.why-faq { display: grid; gap: 8px; margin-bottom: 26px; }
.why-faq details { border: 2px solid var(--line); border-radius: 14px; background: #fff; padding: 12px 16px; }
.why-faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.why-faq details[open] summary { margin-bottom: 6px; }
.why-faq p { margin: 0; color: var(--slate, #3F5A6E); }
.why-cta { text-align: center; padding: 22px 16px; border-radius: 20px; background: var(--mint, #E9F6F4); }
.why-cta p { margin: 10px 0 0; color: var(--slate, #3F5A6E); font-size: .92rem; font-weight: 700; }
.pv-desc { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
/* Why cards: bigger and bolder */
.why-cards li { padding: 18px 20px; gap: 16px; }
.why-ico { width: 52px; height: 52px; border-radius: 14px; }
.why-ico svg { width: 28px; height: 28px; }
.why-cards h3 { font-size: 1.3rem; margin-bottom: 6px; }
.why-cards p { font-size: 1.06rem; line-height: 1.5; color: var(--navy); }
.why-cards p b { color: var(--cd, var(--navy)); }
.page-hero .order-lead { font-size: 1.3rem; line-height: 1.55; max-width: 38em; color: var(--navy); }
.page-hero .kicker.order-badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; font-size: 1.05rem; background: #30A46C; color: #fff; box-shadow: 0 3px 0 #1F7A4E; }
.order-badge span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #30A46C; font-size: .85rem; }
.video-slot video { width: 100%; height: 100%; display: block; object-fit: cover; background: #000; }
/* Free stuff section on set pages (free_stuff.py) */
.free-stuff { margin: 26px 0; padding: 22px 18px; border-radius: 22px; background: #fff; border: 3px dashed var(--teal); }
.free-stuff > h2 { margin-bottom: .8em; }
.fs-download { background: var(--yellow-soft); border: 3px solid var(--yellow); border-radius: 18px; padding: 18px; text-align: center; }
.fs-download .fs-btn { width: 100%; max-width: 460px; }
.fs-download .small { margin: 10px 0 6px; }
.fs-jump { display: inline-block; font-weight: 700; padding: 8px 4px; }
.fs-web { margin-top: 22px; }
.fs-web h3 { font-size: 1.2rem; font-weight: 700; margin: 24px 0 10px; }
.fs-fig { margin: 0; }
.fs-fig img { display: block; width: 100%; max-width: 760px; height: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.fs-fig figcaption { font-size: .95rem; color: var(--muted); margin-top: 8px; max-width: 760px; }
.fs-web .example p { margin: 0 0 .7em; }
.fs-traps { list-style: none; padding: 0; margin: 0; }
.fs-traps li.callout { margin: 0 0 12px; }
.nuc { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: right; font-size: .7em; line-height: 1.05; margin-right: .1em; }
@media (min-width: 640px) { .free-stuff { padding: 28px; } }
.fs-web .math { white-space: normal; display: inline; }
.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; }
.fs-peek { margin: 4px 0 0; }

/* v13: keep the Matter page from scrolling sideways on phones (table now scrolls inside its box) */
.buy-layout > * { min-width: 0; }
@media (max-width: 479px) { .why-table { min-width: 0; } .why-table th, .why-table td { padding: 9px 7px; font-size: .84rem; } }

/* parent question pages (v14) */
.pq-answer { background: var(--cloud); border-left: 6px solid var(--yellow); border-radius: 14px; padding: 14px 18px; margin: 6px 0 18px; }
.pq-answer p { margin: 0; }
.pq-answer .pq-ak { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--purple-d); margin-bottom: 4px; }
.pq-sets, .pq-cards { display: grid; gap: 12px; margin: 16px 0; }
@media (min-width: 760px) { .pq-sets { grid-template-columns: repeat(3, 1fr); } .pq-cards { grid-template-columns: repeat(2, 1fr); } }
.pq-set, .pq-card { display: flex; flex-direction: column; gap: 4px; border: 2px solid var(--line); border-radius: 18px; padding: 16px 18px; background: #fff; color: var(--navy); text-decoration: none; }
.pq-set:hover, .pq-card:hover { border-color: var(--purple-d); color: var(--navy); }
.pq-set b, .pq-card b { font-size: 1.08rem; }
.pq-set span, .pq-card span { color: var(--muted); }
.pq-set .pq-k { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--purple-d); }
.pq-card b::after { content: " \2192"; color: var(--purple-d); }
.pq-by { color: var(--muted); font-size: .95rem; margin-top: 18px; }
.pq-more { padding-left: 1.2em; }
.pq-more li { margin: 6px 0; }

/* blurred rest-of-file pages in the viewer (v16) */
.pv-rest { padding: 6px 20px 4px; }
.pv-rest-k { margin: 10px 0 10px; font-size: .9rem; color: var(--muted); }
.pv-rest-k b { color: var(--navy); }
.pv-rest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (min-width: 760px) { .pv-rest-grid { grid-template-columns: repeat(8, 1fr); } }
.pv-blur { margin: 0; position: relative; }
.pv-blur img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.pv-blur figcaption { font-size: .72rem; color: var(--muted); text-align: center; margin-top: 2px; }

/* v22 (Kem, Nov 25): breadcrumbs as bold, colored buttons so visitors tap them instead of Back */
.crumbs { align-items: center; gap: 8px 6px; font-size: .95rem; margin-bottom: 18px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 14px; border-radius: 999px; font-weight: 700; color: #fff; text-decoration: none; background: #0B7A76; box-shadow: 0 3px 0 rgba(0,0,0,.22); transition: transform .12s, box-shadow .12s, filter .12s; }
.crumbs a:nth-of-type(2) { background: #4B43D6; }
.crumbs a:nth-of-type(3) { background: #D9483A; }
.crumbs a:nth-of-type(4) { background: #1D5BD8; }
.crumbs a:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgba(0,0,0,.22); filter: brightness(1.08); color: #fff; }
.crumbs a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.crumbs .sep { opacity: .55; font-weight: 700; color: var(--slate, #3F5A6E); }
.crumbs [aria-current="page"] { font-weight: 700; color: var(--navy); padding: 6px 4px; }
/* v23 (Kem): the "/" between breadcrumb buttons was too faint; show a bold navy arrow instead */
.crumbs .sep { font-size: 0; opacity: 1; display: inline-flex; align-items: center; }
.crumbs .sep::after { content: "\203A"; font-size: 1.6rem; line-height: 1; font-weight: 700; color: var(--navy); }

/* chemnotesplus: College course cards */
#chapters .ch-card > p:not(.ch-num) { color: var(--slate, #3F5A6E); }
#chapters .ch-card .ch-sets li { padding: 6px 0; }
.nav a { white-space: nowrap; }
#sets { scroll-margin-top: 90px; }
/* Clickable things must look clickable on a phone (no hover there); labels must not look like buttons. (V, Nov 28) */
.ch-num, .set-num, .price-chip, .bundle-buy .buy-price span, #chapters .ch-card .ch-num, .ch-block .ch-num { box-shadow: none !important; }
.ch-card h3 a, #chapters .ch-card h3 a, .ch-block-head h2 a, .set-card h3 a, .lesson-card h2 a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--c, currentColor); }
.ch-card h3 a::after, .ch-block-head h2 a::after, .set-card h3 a::after { content: " →"; text-decoration: none; display: inline-block; margin-left: .2em; color: var(--cd, var(--c, currentColor)); }
.ch-sets a, #chapters .ch-sets a { display: flex; padding-right: 2px; align-items: center; min-height: 44px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--c, currentColor); }
.ch-sets a::after { content: ""; flex: none; width: 10px; height: 10px; margin-left: auto; margin-right: 4px; border-right: 3px solid var(--cd, var(--c, currentColor)); border-bottom: 3px solid var(--cd, var(--c, currentColor)); transform: rotate(-45deg); }
.ch-sets a { gap: 0; }
.ch-sets a::before { flex: none; }
.ch-sets a > * { min-width: 0; }
.lesson-card { position: relative; }
#chapters .ch-card .ch-num, .ch-block .ch-num { background: #fff !important; color: var(--cd, var(--c)) !important; border: 2px solid var(--c); padding: 6px 14px; font-size: .9rem; }
.lesson-card h2 a::before { content: ""; position: absolute; inset: 0; }
/* 7 menu items incl. AP must fit on one row on desktop */
@media (min-width: 1200px) { .nav a { font-size: 1.02rem; padding: 10px 8px; } .nav .btn { margin-left: 6px; } }
/* chemnotesplus wordmark (V, Nov 28): navy + teal + grey on white; white + #13C4B4 + #DCE1F2 on navy */
.logo-word.cnp-word, .logo:hover .logo-word.cnp-word { color: #0B1533; font-weight: 700; letter-spacing: normal; }
.logo-word.cnp-word b { color: #0A8A80; font-weight: 700; }
.logo-word.cnp-word .cnp-com { color: #4A5378; }
.foot .logo-word.cnp-word { color: #FFFFFF; }
.foot .logo-word.cnp-word b { color: #13C4B4; }
.foot .logo-word.cnp-word .cnp-com { color: #DCE1F2; }
.faq-item { border: 2px solid var(--line); border-radius: 14px; padding: 12px 16px; background: #fff; }
.faq-item summary { font-weight: 700; cursor: pointer; }
