:root {
  --paper: #f3f8fa;
  --card: #ffffff;
  --ink: #333e48;
  --muted: #5d6973;
  --line: #d5e2e9;
  --green: #007f6b;
  --green-2: #00745f;
  --gold: #3c6b0a;
  --field: #71858f;
  --soft: #e6f0f4;
  --teal: #00a98f; --blue: #4296b4; --lime: #77bc1f;
  --g1: #00745f; --g2: #2c7896; --g3: #333e48; --g4: #4b7d12; --g5: #3a5896; --g6: #8a5a12;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --r: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1a2229; --card: #222d35; --ink: #e6eef2; --muted: #9fb0ba; --line: #34434d;
    --green: #3dc0a9; --green-2: #5fd0bb; --gold: #a4d16c; --soft: #2a3740; --field: #6f8591;
    --g1: #5fd0bb; --g2: #82b5ca; --g3: #c3ccd3; --g4: #a4d16c; --g5: #93aee6; --g6: #e0b870;
    color-scheme: dark;
  }
}
* { box-sizing: border-box }
html { scroll-padding-top: 90px }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased }
a { color: var(--green-2) }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; text-wrap: balance }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.01em }
h2 { font-size: clamp(1.5rem, 3vw, 2rem) }
h3 { font-size: 1.3rem }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700 }
p { margin: 0 0 1em }
.skip { position: absolute; left: -999px }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--card); padding: 8px 12px }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px }
[tabindex="-1"]:focus { outline: none }

.bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--teal) 0 45%, var(--blue) 45% 80%, var(--lime) 80%) }
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line) }
.bar-in { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 20px }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink) }
.brand small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.2 }
.logos { display: flex; align-items: center; gap: 14px; border-radius: 8px }
.logo { display: block; height: 45px; width: auto }
.logo-dp { height: 40px }
.brand-txt { border-left: 1px solid var(--line); padding-left: 14px; line-height: 1.15 }
.brand-txt strong { font: 600 1.25rem var(--serif); color: var(--ink) }

.bar nav { margin-left: auto; display: flex; gap: 4px }
.bar nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem }
.bar nav a:hover, .bar nav a[aria-current=page] { background: var(--soft) }
.menu { display: none; margin-left: auto; font: 600 .9rem var(--sans); background: var(--soft); color: var(--ink); border: 0; border-radius: 8px; padding: 0 14px; min-height: 44px; align-items: center; gap: 8px; cursor: pointer }
.burger, .burger::before, .burger::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative }
.burger::before, .burger::after { content: ""; position: absolute; left: 0 }
.burger::before { top: -5px } .burger::after { top: 5px }
.burger, .burger::before, .burger::after { transition: transform .2s, top .2s, background-color .2s }
.menu[aria-expanded="true"] .burger { background-color: transparent }
.menu[aria-expanded="true"] .burger::before { top: 0; transform: rotate(45deg) }
.menu[aria-expanded="true"] .burger::after { top: 0; transform: rotate(-45deg) }
.print-btn { display: inline-flex; align-items: center; gap: 7px; order: 3; font: 600 .9rem var(--sans); color: var(--ink); background: transparent; border: 1px solid var(--field); border-radius: 8px; padding: 0 12px; min-height: 40px; cursor: pointer; flex: none }
.print-btn:hover { background: var(--soft) }
.bar nav { order: 2 }
.menu { order: 4 }
.lesson-print { display: flex; flex-wrap: wrap; gap: 8px }
.finder-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end }
.btn:disabled { opacity: .5; cursor: not-allowed }
.topics-head .btn { margin-left: auto }
@media (max-width: 760px) {
  .print-btn { order: 3; margin-left: auto; width: 44px; min-height: 44px; padding: 0; justify-content: center }
  .print-label { display: none }
  .bar-in { gap: 8px }
  .brand { flex: 0 1 auto; overflow: hidden }
  .menu { margin-left: 0 !important }
  .menu { display: inline-flex }
  .bar nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px }
  .bar nav.open { display: flex }
  .brand small { display: none }
  .logo { height: 30px }
  .logo-dp { height: 24px }
  .logos { gap: 10px }
  .brand { min-width: 0; gap: 10px }
  .bar-in { gap: 12px }
  .menu { padding: 0; width: 44px; justify-content: center }
  .menu-label { display: none }
}
@media (max-width: 480px) { .brand-txt { display: none } }
@media (max-width: 370px) {
  .brand-txt { display: none }
  .logo { height: 26px } .logo-dp { height: 20px } .logos { gap: 8px }
  .brand-txt { padding-left: 10px }
  .brand-txt strong { font-size: 1.05rem }
  .brand { gap: 10px }
}

main { max-width: 1180px; margin: 0 auto; padding: 32px 20px 64px; outline: none }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--gold); margin-bottom: .6em }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch }
.muted { color: var(--muted) }
.small { font-size: .88rem }

.hero { padding: 16px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 40px }
.hero .lede { max-width: 60ch }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0 }
.hero-actions .btn { padding: 12px 20px; font-size: .95rem }
.strip { gap: 0 !important; background: var(--card); border: 1px solid var(--line); border-radius: var(--r) }
.strip li { background: none !important; border: 0 !important; border-radius: 0 !important; border-left: 1px solid var(--line) !important; padding: 20px 22px }
.strip li:first-child { border-left: 0 !important }
@media (max-width: 960px) { .strip li { border-left: 0 !important; border-top: 1px solid var(--line) !important } .strip li:first-child { border-top: 0 !important } }
.across { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px 48px; margin-top: 20px }
.across > div { border-top: 2px solid var(--gc); padding-top: 16px }
.pitfalls { padding-left: 1.1em; margin: 0 } .pitfalls li { margin-bottom: .6em; font-size: .92rem }
.across p.small { font-size: .92rem }
.pts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 }
.pts li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line) }
.pts li:last-child { border-bottom: 1px solid var(--line) }
.pt-n { font: 600 2rem/1 var(--serif); color: var(--teal) }
.pt-text { font: 600 1.2rem/1.4 var(--serif); margin-bottom: 8px; max-width: 70ch; text-wrap: pretty }
.pts p.small { max-width: 80ch; margin-bottom: 6px }
.essay-box { background: color-mix(in srgb, var(--blue) 8%, var(--card)); border-radius: 10px; padding: 12px 16px; margin: 0 0 14px; max-width: 980px }
.essay-box h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px }
.essay-box p { margin: 0 0 8px }
.essay-box p:last-child { margin: 0 }
.essay-box a { font-weight: 700; font-size: .85rem; margin-right: 6px; display: inline-block; padding: 4px 0; min-height: 24px }
.essay-box .small { display: block; margin-top: 4px; color: var(--muted) }
.pt-q { font-family: var(--serif); font-style: italic; line-height: 1.45 }
@media (max-width: 600px) { .pts li { grid-template-columns: 2rem minmax(0, 1fr); gap: 10px } .pt-n { font-size: 1.6rem } .prompts li { grid-template-columns: 1.8em 1fr } }
.fw4 { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px }
.fw4 > div { padding: 22px 0; border-top: 1px solid var(--line) }
.fw4 > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line) }
.fw4 p { color: var(--muted) }
@media (max-width: 760px) { .fw4 { grid-template-columns: 1fr } .fw4 > div:nth-last-child(2) { border-bottom: 0 } }
.cards5 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px }
.cards5 > :last-child:nth-child(odd) { grid-column: 1 / -1 }
@media (max-width: 760px) { .cards5 { grid-template-columns: 1fr } }
.aok-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 40px; padding: 22px 0; border-top: 1px solid var(--line) }
.aok-list > div:last-child { border-bottom: 1px solid var(--line) }
.aok-list p { margin: 0; color: var(--muted) }
.aok-list .qlist { margin: 0 }
@media (max-width: 760px) { .aok-list > div { grid-template-columns: 1fr } }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; margin: 0 0 48px; padding: 0; list-style: none; counter-reset: s }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px }
.steps li::before { content: counter(s); font: 600 1.6rem var(--serif); color: var(--gold); display: block; margin-bottom: 4px }

.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px }
.gcard { position: relative; display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; transition: transform .15s, box-shadow .15s, border-color .15s }
.gcard:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgb(0 0 0 / .08); border-color: color-mix(in srgb, var(--gc) 45%, var(--line)) }
.gcard .num::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gc); margin-right: 8px; vertical-align: 1px }
.gcard .num { font: 600 .8rem var(--sans); color: var(--gc); text-transform: uppercase; letter-spacing: .1em }
.gcard ul { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px }
.gcard h3 a { color: inherit; text-decoration: none }
.gcard .stretch::after { content: ""; position: absolute; inset: 0; border-radius: var(--r) }
.gcard li { position: relative; z-index: 1 }
.gcard li a { display: inline-block; font-size: .8rem; background: var(--soft); border-radius: 999px; padding: 3px 10px; color: var(--ink); text-decoration: none }
.gcard li a:hover { background: color-mix(in srgb, var(--gc) 18%, var(--card)) }
#groups { scroll-margin-top: 100px }

.section { margin: 48px 0 }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px }
.panel > :last-child { margin-bottom: 0 }
.panel ul { padding-left: 1.1em; margin: 0 }
.panel li { margin-bottom: .4em }
.qlist { list-style: none; padding: 0 !important }
.qlist li { position: relative; padding: 8px 0 8px 18px; margin: 0 !important; border-bottom: 1px solid var(--line); font-style: italic; font-family: var(--serif); font-size: 1.05rem }
.qlist li:last-child { border-bottom: 0 }
.qlist li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal) }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none }
.chip { font-size: .78rem; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: var(--soft); color: var(--ink); white-space: nowrap }
.chip.aok { background: var(--green); color: var(--paper) }
.chip.theme { background: color-mix(in srgb, var(--gold) 22%, var(--card)) }
.chip.fw { border: 1px solid var(--line); background: transparent }

.gtabs { display: flex; gap: 4px 20px; flex-wrap: wrap; margin: 0 0 20px }
.gtabs a { text-decoration: none; color: var(--muted); padding: 6px 0; font-size: .9rem; font-weight: 600 }
.gtabs a:hover { color: var(--ink) }
.gtabs a[aria-current=page] { color: var(--ink); background: linear-gradient(var(--gc), var(--gc)) bottom / 100% 2px no-repeat }
.ghead { margin-bottom: 8px }
.ghead .eyebrow { color: var(--gc) }
.ghead .lede { max-width: 65ch }

.ctabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 32px; padding: 14px 0; border-block: 1px solid var(--line) }
.ctabs a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card) }
.ctabs a:hover { border-color: var(--gc) }
.ctabs a[aria-current=page] { background: var(--gc); border-color: var(--gc); color: var(--paper) }
.course h2 { margin-bottom: .3em }
.guide-status { color: var(--muted); font-size: .92rem; margin-bottom: 20px }
.panel h4.minor { margin: 14px 0 2px; font-size: .95rem }
.panel h4.minor + p { margin: 0 }
.panel h3.gap { margin-top: 22px }
td.code { white-space: nowrap; font-weight: 700 }
.topics-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin: 36px 0 12px }
.topics-head h2 { margin: 0 }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 0 }
.legend .k::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px }
.legend .aok::before { background: var(--green) }
.legend .theme::before { background: color-mix(in srgb, var(--gold) 40%, var(--card)); box-shadow: inset 0 0 0 1px var(--field) }
.legend .fw::before { border: 1px solid var(--field) }
.fold > summary { list-style: none; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--green-2); width: fit-content; padding: 4px 0 }
.fold > summary::-webkit-details-marker { display: none }
.fold > summary::after { content: "+"; content: "+" / ""; margin-left: .35em }
.fold[open] > summary::after { content: "\2212"; content: "\2212" / "" }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; margin-bottom: 28px; align-items: start }
.facts .wide { grid-column: 1 / -1 }
.facts .wide .qlist { max-width: 75ch }
@media (min-width: 761px) { .facts td:last-child { white-space: nowrap } }
@media (min-width: 1024px) { .facts .cols { columns: 2 34ch; column-gap: 40px } }
.status { display: inline-block; background: color-mix(in srgb, var(--gc) 14%, var(--card)); border: 1px solid color-mix(in srgb, var(--gc) 35%, var(--line)); border-radius: 8px; padding: 8px 12px; font-size: .9rem; margin-bottom: 16px }
table { width: 100%; border-collapse: collapse; font-size: .9rem }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted) }
.tablewrap { overflow-x: auto }

.topic { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 14px }
.topic { padding: 0 22px }
.t-title { margin: 0 }
.t-title button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 0 10px; font: 600 1.3rem/1.25 var(--serif); color: var(--ink) }
.t-title button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px }
.t-title .tog { font: 600 .85rem var(--sans); color: var(--green-2); white-space: nowrap; padding-top: 4px }
.t-title .tog::after { content: 'Open +' }
.t-title button[aria-expanded=true] .tog::after { content: 'Close \2212' }
.topic > .chips { padding-bottom: 18px }
.topic-body { padding: 0 0 22px; border-top: 1px solid var(--line) }
.topic-body > * { max-width: 980px }
.lesson ul { max-width: 72ch }
.measure { max-width: 72ch }
.topic-body > p:first-child { margin-top: 18px }
.sub { margin: 28px 0 4px }
.fromguide { background: color-mix(in srgb, var(--gc) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--gc) 30%, var(--line)); border-radius: 10px; padding: 12px 16px; margin: 0 0 14px }
.fromguide h4 { color: var(--ink) !important;  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gc); margin-bottom: 6px }
.fromguide p { margin: 0 0 6px; font-family: var(--serif); font-size: 1.02rem }
.fromguide b { font-family: var(--sans); font-size: .8rem; margin-right: 6px }
.guidelinks { margin-bottom: 28px }
.guidelinks summary { cursor: pointer; list-style: none }
.guidelinks summary::-webkit-details-marker { display: none }
.guidelinks summary::after { content: "+"; content: "+" / ""; margin-left: .5em; font-weight: 700; color: var(--green-2) }
.guidelinks[open] summary::after { content: "\2212"; content: "\2212" / "" }
.guidelinks table { margin-top: 12px }
.topic-body .fromguide, .topic-body .hook, .topic-body .prompts-line { max-width: 980px }
.hook { padding: 12px 16px; background: color-mix(in srgb, var(--lime) 12%, var(--card)); border-radius: 10px; margin: 16px 0 }

.kq { border-top: 1px solid var(--line); padding-top: 4px; margin: 0 }
.kq-q { padding: 14px 0 6px }
.kq-q p.q { font: 600 1.15rem/1.35 var(--serif); margin-bottom: 6px; text-wrap: pretty }
.kq-q p.sv { color: var(--muted); font-size: .92rem; margin: 0 }
.kq details summary { list-style: none; cursor: pointer; padding: 6px 0 12px; font-weight: 600; font-size: .9rem; color: var(--green-2); width: fit-content }
.kq details summary::-webkit-details-marker { display: none }
.kq details .open-txt, .kq details[open] .closed-txt { display: none }
.kq details[open] .open-txt { display: inline }
.kq details summary::after { content: "+"; content: "+" / ""; margin-left: .35em }
.kq details[open] summary::after { content: "\2212"; content: "\2212" / "" }
.answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; padding: 0 0 12px }
.answers div { background: var(--soft); border-radius: 8px; padding: 10px 12px; font-size: .92rem }
.answers strong { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink) }
.watch { margin: 0 0 14px; font-size: .9rem; padding: 10px 12px; background: color-mix(in srgb, var(--field) 12%, var(--card)); border-radius: 8px }

.lesson { margin-top: 32px; border-top: 2px solid var(--green); padding-top: 22px }
.lesson-title { font: 600 1.3rem/1.25 var(--serif); margin: 2px 0 0 }
.lesson-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: start }
.btn { font: 600 .88rem var(--sans); background: var(--green); color: var(--paper); border: 1px solid transparent; border-radius: 8px; padding: 8px 14px; cursor: pointer; text-decoration: none; display: inline-block; transition: background .15s, border-color .15s }
.btn:hover { background: var(--green-2) }
.btn.ghost { background: transparent; color: var(--green-2); border-color: var(--field) }
.btn.ghost:hover { background: var(--soft) }
.seq td:first-child { white-space: nowrap; font-weight: 700; color: var(--green-2); font-variant-numeric: tabular-nums }
.seq td:nth-child(2) { font-weight: 600; white-space: nowrap }

.prompts { columns: 2 320px; column-gap: 24px; padding: 0; list-style: none; counter-reset: none }
.prompts li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 2.2em 1fr; font-family: var(--serif); font-size: 1.05rem }
.prompts b { font-family: var(--sans); color: var(--gold); font-size: .9rem }

.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0 12px; align-items: end }
@media (max-width: 960px) { .filters { grid-template-columns: 1fr 1fr } .filters .search { grid-column: 1 / -1 } }
@media (max-width: 360px) { .filters { grid-template-columns: 1fr } .panel { padding: 16px } main { padding-inline: 16px } .bar-in { padding-inline: 16px } .gtabs { margin-inline: -16px !important; padding-inline: 16px !important } }
@media (max-width: 400px) {
  .tablewrap table:not(.seq) thead { display: none }
  .tablewrap table:not(.seq), .tablewrap table:not(.seq) tbody { display: block }
  .tablewrap table:not(.seq) tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line) }
  .tablewrap table:not(.seq) td { padding: 0; border: 0; white-space: normal }
  .tablewrap table:not(.seq) td:first-child { grid-column: 1 / -1; font-weight: 600 }
}
@media (max-width: 480px) { .filters { gap: 8px } .filters select, .filters input { padding: 8px 10px; font-size: .95rem } .field span { font-size: .7rem } }
.field { display: grid; gap: 4px; min-width: 0 }
.field span { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted) }
.filters input, .filters select { font: 1rem var(--sans); padding: 10px 12px; border-radius: 8px; border: 1px solid var(--field); background: var(--card); color: var(--ink); width: 100%; min-width: 0 }
.finder-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px }
.finder-bar p { margin: 0; font-weight: 600 }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; margin-top: 14px }
.result { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; transition: border-color .15s, transform .15s }
.result:hover { border-color: color-mix(in srgb, var(--gc) 50%, var(--line)); transform: translateY(-1px) }
.r-title { font: 600 1.15rem/1.3 var(--serif) }
.result .meta { font-size: .8rem; color: var(--muted); font-weight: 600 }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gc); margin-right: 8px; vertical-align: 1px }
.result .q { font-family: var(--serif); font-style: italic; color: var(--muted); flex: 1 }
.empty { padding: 24px; background: var(--card); border: 1px dashed var(--field); border-radius: 10px }
.linkish { font: inherit; background: none; border: 0; color: var(--green-2); text-decoration: underline; cursor: pointer; padding: 0 }

.sources { columns: 3 300px; column-gap: 16px }
.sources .panel { break-inside: avoid; margin-bottom: 16px }
.sources a { text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 2px }
.sources li { margin-bottom: .5em; font-size: .92rem }

dl.gloss { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 8px 20px; margin: 0 }
dl.gloss dt { font-weight: 700 }
dl.gloss dd { margin: 0; color: var(--muted) }
@media (max-width: 600px) { dl.gloss { grid-template-columns: 1fr } dl.gloss dd { margin-bottom: 10px } }

.foot { border-top: 1px solid var(--line); background: var(--card) }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 28px 20px; font-size: .9rem }
.foot .fine { color: var(--muted); font-size: .8rem; max-width: 80ch }

@media (max-width: 760px) {
  main { padding-top: 20px }
  .topic { padding: 0 14px }
  .t-title button { font-size: 1.15rem; padding-top: 16px }
  .seq thead { display: none }
  .seq, .seq tbody, .seq tr, .seq td { display: block }
  .seq tr { display: grid; grid-template-columns: 4.2em 1fr; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line) }
  .seq td { border: 0; padding: 0; white-space: normal !important }
  .seq td:nth-child(n+3) { grid-column: 2 }
  .seq td:nth-child(3)::before { content: "Teacher: "; font-weight: 700 }
  .seq td:nth-child(4)::before { content: "Students: "; font-weight: 700 }
  .gtabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 18px; margin-inline: -20px; padding-inline: 20px }
  .gtabs::-webkit-scrollbar { display: none }
  .gtabs a { white-space: nowrap }
  .ghead .eyebrow { display: none }
  .gtabs a, .kq details summary, .fold > summary { min-height: 44px; display: inline-flex; align-items: center }
}
@media (prefers-color-scheme: dark) {
  .logos { background: #fff; padding: 6px 12px }
  .logo { height: 36px } .logo-dp { height: 32px }
}
@media (prefers-color-scheme: dark) and (max-width: 760px) {
  .logos { padding: 4px 8px; gap: 8px } .logo { height: 26px } .logo-dp { height: 21px }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important }
  .gcard:hover, .result:hover { transform: none }
}

@media print {
  .pp, .bar, .foot, .ctabs, .gtabs, .btn, .kq details summary, .noprint { display: none !important }
  body { background: #fff; color: #000; font-size: 11pt }
  main { padding: 0; max-width: none }
  .topic, .lesson, .panel { border-color: #999; break-inside: auto }
  details > *:not(summary), .topic-body[hidden] { display: block !important }
  details::details-content { content-visibility: visible !important }
}
