/* Physics concept pages (V46). Builds on atelier.css tokens. The figure is a printed plate:
   white paper, Prussian ink, one cobalt highlight that follows the symbol you choose. */
.cx-page{max-width:1240px;margin:0 auto;padding:36px clamp(20px,3.4vw,56px) 72px;color:var(--sv-ink)}
.cx-page :is(h1,h2,h3){color:var(--sv-ink)}
.cx-page button{font:inherit;cursor:pointer}

/* Heading */
.cx-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,320px);gap:6px 48px;align-items:start;padding-bottom:30px;border-bottom:1px solid var(--sv-line);margin-bottom:32px}
.cx-head-top{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.cx-crumb{color:var(--sv-cobalt);font-size:14px;text-decoration:none}
.cx-crumb::before{content:'← '}
.cx-crumb:hover{text-decoration:underline;text-underline-offset:3px}
.cx-head h1{grid-column:1;margin:0;font-family:var(--sv-serif);font-weight:400;font-size:clamp(36px,4.4vw,60px);line-height:1.06;letter-spacing:-.02em}
html:is([lang^=zh],[lang=ja]) .cx-head h1{font-weight:600;letter-spacing:.03em;line-height:1.18}
.cx-plain{grid-column:1;margin:18px 0 0;max-width:30em;font-family:var(--sv-serif);font-size:clamp(20px,1.9vw,26px);line-height:1.5;color:var(--sv-prussian);text-wrap:pretty}
.cx-intro{grid-column:1;margin:14px 0 0;max-width:40em;font-size:16px;line-height:1.75;color:var(--sv-muted)}
.cx-where{grid-column:2;grid-row:2/span 3;align-self:end;margin:0;padding:18px 20px;border:1px solid var(--sv-line);border-radius:var(--sv-radius);background:var(--sv-surface)}
.cx-where.is-extension{border-style:dashed;background:transparent}
.cx-where-k{display:block;margin-bottom:6px;font-size:13px;color:var(--sv-muted)}
.cx-where p{margin:0;font-size:15px;line-height:1.6}
.cx-where strong{display:block;font-weight:600;color:var(--sv-prussian)}
.cx-codes{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px!important}
.cx-codes span{padding:2px 8px;border:1px solid var(--sv-line);border-radius:4px;font:500 12px/1.6 'IBM Plex Mono',ui-monospace,monospace;color:var(--sv-muted)}
.cx-src{display:inline-block;margin-top:12px;font-size:13px;color:var(--sv-cobalt)}

/* Curriculum switch */
.cx-switch{display:inline-flex;padding:4px;border:1px solid var(--sv-line);border-radius:999px;background:var(--sv-surface);gap:2px}
.cx-switch button{min-height:38px;padding:6px 16px;border:0;border-radius:999px;background:transparent;color:var(--sv-muted);font-size:14px;white-space:nowrap}
.cx-switch button:hover{color:var(--sv-ink)}
.cx-switch button[aria-checked=true]{background:var(--sv-prussian);color:#fff}

/* Lab: figure + formula */
.cx-lab{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:start;scroll-margin-top:16px}
.cx-stage{min-width:0;border:1px solid var(--sv-line);border-radius:var(--sv-radius);background:var(--sv-surface);overflow:hidden}
.cx-figure{position:relative;background:#fbfcfd;border-bottom:1px solid var(--sv-line-soft)}
.cx-figure svg{display:block;width:100%;height:auto;touch-action:none;user-select:none;font-family:var(--sv-sans)}
.cx-transport{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;padding:14px 18px;border-bottom:1px solid var(--sv-line-soft)}
.cx-play{min-width:92px;min-height:42px;padding:8px 18px;border:0;border-radius:var(--sv-radius-sm);background:var(--sv-prussian);color:#fff;font-weight:500}
.cx-play:hover{background:var(--sv-cobalt)}
.cx-ghost{min-height:42px;padding:8px 14px;border:1px solid var(--sv-line);border-radius:var(--sv-radius-sm);background:var(--sv-surface);color:var(--sv-prussian)}
.cx-ghost:hover{background:var(--sv-cobalt-wash);border-color:var(--sv-cobalt-line)}
.cx-readouts{display:flex;flex-wrap:wrap;gap:4px 26px;margin-left:auto}
.cx-readout{display:grid;gap:0}
.cx-readout span{font-size:12px;color:var(--sv-muted)}
.cx-readout b{font-weight:500;font-size:20px;line-height:1.3;font-variant-numeric:tabular-nums;color:var(--sv-ink)}
.cx-readout b small{font-size:12px;color:var(--sv-muted);font-weight:400}
.cx-readout.is-hot b{color:var(--sv-cobalt)}
.cx-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px 28px;padding:18px 18px 20px}
.cx-control{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 12px;min-width:0}
.cx-control-label{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--sv-ink)}
.cx-control input[type=range]{grid-column:1/-1;width:100%;margin:0;accent-color:var(--sv-prussian);height:28px}
.cx-control output{font-variant-numeric:tabular-nums;font-size:14px;color:var(--sv-prussian);font-weight:500}
.cx-control output small{color:var(--sv-muted);font-weight:400}
.cx-control.is-hot .cx-control-label,.cx-control.is-peek .cx-control-label{color:var(--sv-cobalt)}
.cx-mini{font-family:var(--sv-serif);font-style:italic;font-size:17px;color:var(--sv-prussian)}
.cx-choice{grid-template-columns:1fr}
.cx-seg{display:flex;flex-wrap:wrap;gap:6px}
.cx-seg button{min-height:38px;padding:6px 12px;border:1px solid var(--sv-line);border-radius:var(--sv-radius-sm);background:var(--sv-surface);color:var(--sv-prussian);font-size:14px}
.cx-seg button[aria-pressed=true]{background:var(--sv-prussian);border-color:var(--sv-prussian);color:#fff}
.cx-toggle{display:flex;grid-template-columns:none;align-items:center;gap:10px;font-size:14px;min-height:38px}
.cx-toggle input{width:18px;height:18px;accent-color:var(--sv-prussian)}

.cx-formula{position:sticky;top:16px;padding:22px 22px 18px;border:1px solid var(--sv-line);border-radius:var(--sv-radius);background:var(--sv-surface)}
.cx-formula h2{margin:0;font-size:16px;font-weight:600}
.cx-tip{margin:6px 0 16px;font-size:13px;line-height:1.6;color:var(--sv-muted)}
.cx-eqs{display:grid;gap:12px}
.cx-eq{padding:14px 12px;border-radius:var(--sv-radius-sm);background:var(--sv-well)}
.cx-eq-line{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px 4px;font-family:var(--sv-serif);font-size:26px;line-height:1.3;color:var(--sv-ink)}
.cx-eq-note{margin:8px 0 0;text-align:center;font-size:12px;color:var(--sv-muted)}
.cx-op{padding:0 2px;font-style:normal}
.cx-page .cx-sym,.cx-sym{display:inline-flex;align-items:baseline;min-width:24px;justify-content:center;padding:0 4px;border:0;border-bottom:2px dotted var(--sv-cobalt-line);border-radius:3px;background:transparent;font-family:var(--sv-serif);font-style:italic;font-size:inherit;line-height:1.25;color:var(--sv-prussian);transition:background-color .15s,color .15s}
.cx-sym sub,.cx-sym sup{font-style:normal;font-size:.6em}
.cx-page .cx-sym:hover,.cx-sym.is-peek{background:var(--sv-cobalt-wash)}
.cx-page .cx-sym.is-hot{background:var(--sv-cobalt);color:#fff;border-bottom-color:var(--sv-cobalt)}
.cx-frac{display:inline-grid;text-align:center;vertical-align:middle;margin:0 2px}
.cx-frac>span:first-child{border-bottom:1.5px solid currentColor;padding:0 4px}
.cx-frac>span{display:flex;justify-content:center;align-items:baseline;font-size:.82em}
.cx-sup sup{font-size:.6em;vertical-align:super}
.cx-sqrt>span{border-top:1.5px solid currentColor;padding:0 2px}
.cx-legend{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:2px}
.cx-legend li{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:8px;padding:5px 6px;border-radius:6px}
.cx-legend li .cx-sym{font-size:19px;justify-self:start}
.cx-legend li.is-hot,.cx-legend li.is-peek{background:var(--sv-cobalt-wash)}
.cx-sym-name{font-size:13px;color:var(--sv-muted);line-height:1.4}
.cx-sym-val{font-variant-numeric:tabular-nums;font-size:14px;color:var(--sv-ink);white-space:nowrap}
.cx-sym-val small{color:var(--sv-muted)}
.cx-sub{margin-top:16px;padding-top:14px;border-top:1px solid var(--sv-line-soft)}
.cx-sub h3{margin:0 0 8px;font-size:13px;font-weight:500;color:var(--sv-muted)}
.cx-sub p{margin:4px 0;font-family:var(--sv-serif);font-size:17px;line-height:1.55;color:var(--sv-ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.cx-sub i{color:var(--sv-prussian)}
.cx-g{margin:12px 0 0;font-size:13px;color:var(--sv-muted)}
.cx-g b{color:var(--sv-ink);font-weight:500}

/* Diagram ink (SVG). Elements carry data-sym; the engine toggles .is-hot */
.cx-figure .ink{stroke:var(--sv-prussian);fill:none;stroke-width:2}
.cx-figure .ink-fill{fill:var(--sv-prussian)}
.cx-figure .faint{stroke:#c9d2df;fill:none;stroke-width:1}
.cx-figure .grid{stroke:#e8edf3;stroke-width:1}
.cx-figure .ground{fill:#eef1f5;stroke:#c9d2df}
.cx-figure .label{fill:var(--sv-muted);font-size:13px}
.cx-figure .tag{fill:var(--sv-prussian);font-family:var(--sv-serif);font-style:italic;font-size:17px}
.cx-figure .arrow{stroke-width:2.5;fill:none;stroke-linecap:round;stroke-linejoin:round}
.cx-figure .arrow-head{stroke:none}
.cx-figure .area{fill:#2457a51f;stroke:none}
.cx-figure .accent{stroke:#c8792b;fill:#c8792b}
.cx-figure [data-sym]{transition:opacity .2s}
.cx-figure.has-hot [data-sym]:not(.is-hot){opacity:.28}
.cx-figure [data-sym].is-hot{opacity:1}
.cx-figure [data-sym].is-hot :is(.ink,.arrow,.tag),.cx-figure .ink[data-sym].is-hot,.cx-figure .arrow[data-sym].is-hot{stroke:var(--sv-cobalt);stroke-width:3.2}
.cx-figure [data-sym].is-hot .tag,.cx-figure .tag[data-sym].is-hot{fill:var(--sv-cobalt);stroke:none;font-weight:600}
.cx-figure [data-sym].is-hot .ink-fill,.cx-figure .ink-fill[data-sym].is-hot{fill:var(--sv-cobalt)}
.cx-figure .area[data-sym].is-hot{fill:#2457a540}

/* Sections */
.cx-section{margin-top:56px}
.cx-section>h2{margin:0 0 20px;font-family:var(--sv-serif);font-weight:400;font-size:clamp(26px,2.6vw,34px);letter-spacing:-.01em}
html:is([lang^=zh],[lang=ja]) .cx-section>h2{font-weight:600;letter-spacing:.03em}
.cx-section>h2 small{margin-left:10px;font-family:var(--sv-sans);font-size:14px;font-weight:400;color:var(--sv-muted);letter-spacing:0}
.cx-myths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.cx-myth{display:flex;flex-direction:column;padding:22px;border:1px solid var(--sv-line);border-radius:var(--sv-radius);background:var(--sv-surface)}
.cx-myth h3{margin:4px 0 16px;font-family:var(--sv-serif);font-weight:500;font-size:19px;line-height:1.45;color:var(--sv-ink)}
.cx-myth-k{margin:0;font-size:13px;color:var(--sv-muted)}
.cx-myth p:not(.cx-myth-k){margin:4px 0 18px;font-size:15px;line-height:1.7;color:var(--sv-ink)}
.cx-myth .cx-ghost{margin-top:auto;align-self:flex-start}

.cx-predict{padding:26px;border:1px solid var(--sv-line);border-radius:var(--sv-radius);background:var(--sv-surface)}
.cx-q,.cx-problem-q{margin:0 0 16px;font-size:18px;line-height:1.65;max-width:46em}
.cx-options{display:flex;flex-wrap:wrap;gap:8px}
.cx-options button{min-height:44px;padding:8px 16px;border:1px solid var(--sv-line);border-radius:var(--sv-radius-sm);background:var(--sv-surface);color:var(--sv-ink);font-size:15px}
.cx-options button:hover{border-color:var(--sv-cobalt-line);background:var(--sv-cobalt-wash)}
.cx-options button[aria-checked=true]{border-color:var(--sv-prussian);box-shadow:inset 0 0 0 1px var(--sv-prussian);background:var(--sv-cobalt-wash)}
.cx-options button.is-answer{border-color:#2e7d5b;box-shadow:inset 0 0 0 1px #2e7d5b;background:#e8f4ee;color:#1d5a40}
.cx-options button.is-miss{border-color:#b54a3c;box-shadow:inset 0 0 0 1px #b54a3c;background:#fbeceb;color:#8c3227}
.cx-predict-foot{display:flex;flex-wrap:wrap;align-items:flex-start;gap:14px 20px;margin-top:18px}
.cx-primary{min-height:44px;padding:8px 20px;border:0;border-radius:var(--sv-radius-sm);background:var(--sv-prussian);color:#fff;font-weight:500}
.cx-primary:hover{background:var(--sv-cobalt)}
.cx-predict-msg{flex:1 1 320px;margin:0;font-size:15px;line-height:1.7}
.cx-predict-msg strong{color:var(--sv-prussian)}

.cx-problems{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.cx-problem{display:flex;flex-direction:column;padding:22px;border:1px solid var(--sv-line);border-radius:var(--sv-radius);background:var(--sv-surface)}
.cx-level{margin:0 0 8px;font-size:13px;color:var(--sv-muted)}
.cx-problem-q{font-size:16px}
.cx-answer{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cx-answer label{flex:1 1 120px;min-width:0}
.cx-answer input{width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--sv-line);border-radius:var(--sv-radius-sm);font:16px var(--sv-sans);font-variant-numeric:tabular-nums;color:var(--sv-ink);background:var(--sv-surface)}
.cx-answer input:focus{outline:2px solid var(--sv-cobalt);outline-offset:1px}
.cx-unit{font-size:15px;color:var(--sv-muted);min-width:2ch}
.cx-problem .cx-check-choice{align-self:flex-start;margin-top:12px}
.cx-feedback{min-height:1.6em;margin:10px 0 0;font-size:14px;line-height:1.6}
.cx-feedback.is-ok{color:#1d6a48;font-weight:500}
.cx-feedback.is-no{color:#a23d31}
.cx-problem-actions{display:flex;gap:8px;margin-top:auto;padding-top:12px}
.cx-problem-actions .cx-ghost{min-height:36px;padding:4px 12px;font-size:14px}
.cx-hint{margin:12px 0 0;padding:10px 12px;border-radius:var(--sv-radius-sm);background:var(--sv-well);font-size:14px;line-height:1.65}
.cx-steps{margin:12px 0 0;padding:12px 12px 12px 34px;border-radius:var(--sv-radius-sm);background:var(--sv-well);font-size:14px;line-height:1.75}
.cx-steps li+li{margin-top:4px}
.cx-steps i,.cx-hint i{font-family:var(--sv-serif)}

.cx-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:end;margin-top:64px;padding-top:28px;border-top:1px solid var(--sv-line)}
.cx-tools h2{margin:0 0 10px;font-size:15px;font-weight:600}
.cx-tools p{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0}
.cx-tools p a{color:var(--sv-cobalt);font-size:15px}
.cx-next{display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.cx-next-link{display:grid;justify-items:end;padding:14px 20px;border:1px solid var(--sv-line);border-radius:var(--sv-radius);background:var(--sv-surface);text-decoration:none;color:var(--sv-ink);transition:border-color .2s}
.cx-next-link:hover{border-color:var(--sv-prussian)}
.cx-next-link span{font-size:13px;color:var(--sv-muted)}
.cx-next-link strong{font-family:var(--sv-serif);font-weight:500;font-size:20px}
.cx-next-link strong::after{content:' →'}
.cx-map-link{font-size:14px;color:var(--sv-cobalt)}

@media (max-width:1080px){
 .cx-lab{grid-template-columns:1fr}
 .cx-formula{position:static}
 .cx-myths,.cx-problems{grid-template-columns:1fr 1fr}
}
@media (max-width:760px){
 .cx-page{padding:24px 16px 56px}
 .cx-head{grid-template-columns:1fr}
 .cx-where{grid-column:1;grid-row:auto;margin-top:18px}
 .cx-switch{width:100%;overflow-x:auto}
 .cx-switch button{flex:1 0 auto;padding:6px 12px}
 .cx-myths,.cx-problems{grid-template-columns:1fr}
 .cx-readouts{margin-left:0;width:100%}
 .cx-tools{grid-template-columns:1fr}
 .cx-next{align-items:stretch}
 .cx-next-link{justify-items:start}
 .cx-eq-line{font-size:23px}
}
@media (prefers-reduced-motion:reduce){.cx-page *{transition:none!important}}

/* ── Physics home ─────────────────────────────────────── */
.hub-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px 48px;align-items:end;padding-bottom:36px;border-bottom:1px solid var(--sv-line)}
.hub-head h1{margin:0;font-family:var(--sv-serif);font-weight:400;font-size:clamp(48px,6vw,84px);line-height:1;letter-spacing:-.02em}
html:is([lang^=zh],[lang=ja]) .hub-head h1{font-weight:600;letter-spacing:.06em}
.hub-lead{margin:20px 0 0;max-width:28em;font-family:var(--sv-serif);font-size:clamp(19px,1.8vw,24px);line-height:1.55;color:var(--sv-prussian)}
.hub-pick{display:grid;justify-items:end;gap:10px}
.hub-pick p{margin:0;font-size:13px;color:var(--sv-muted);text-align:right}
.hub-section{margin-top:56px}
.hub-section-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:8px 40px;align-items:baseline;margin-bottom:22px}
.hub-section-head h2{margin:0;font-family:var(--sv-serif);font-weight:400;font-size:clamp(26px,2.6vw,34px)}
html:is([lang^=zh],[lang=ja]) .hub-section-head h2{font-weight:600;letter-spacing:.03em}
.hub-section-head p{margin:0;font-size:15px;line-height:1.7;color:var(--sv-muted)}
.hub-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;border:1px solid var(--sv-line);background:var(--sv-line)}
.hub-card{display:grid;grid-template-rows:auto auto 1fr auto;gap:6px;padding:26px 26px 22px;background:var(--sv-paper);color:var(--sv-ink);text-decoration:none;transition:background-color .2s}
.hub-card:hover,.hub-card:focus-visible{background:var(--sv-surface)}
.hub-card svg{width:120px;height:76px;margin-bottom:14px;overflow:visible}
.hub-card .i-axis{stroke:#b9c4d4;stroke-width:1.5;fill:none}
.hub-card .i-ink{stroke:var(--sv-prussian);stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round}
.hub-card .i-area{fill:#2457a51f;stroke:none}
.hub-card .i-fill{fill:var(--sv-prussian)}
.hub-card .i-fill-w{fill:#fff;stroke:var(--sv-prussian);stroke-width:2.4}
.hub-card .i-accent{fill:#c8792b}
.hub-card-title{font-family:var(--sv-serif);font-size:24px;line-height:1.25}
html:is([lang^=zh],[lang=ja]) .hub-card-title{font-weight:600;letter-spacing:.02em}
.hub-card-hook{font-size:15px;line-height:1.6;color:var(--sv-muted)}
.hub-card-where{margin-top:14px;font-size:13px;color:var(--sv-prussian)}
.hub-card-where.is-extension{color:var(--sv-muted);font-style:italic}
.hub-card-title::after{content:' →';color:var(--sv-cobalt);opacity:0;transition:opacity .2s}
.hub-card:hover .hub-card-title::after{opacity:1}
.hub-map{list-style:none;margin:0;padding:0;border-top:1px solid var(--sv-line)}
.hub-chapter{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.4fr);gap:10px 40px;padding:20px 0;border-bottom:1px solid var(--sv-line)}
.hub-chapter h3{margin:0;font-size:17px;font-weight:600;line-height:1.45}
.hub-chapter.has-page h3{color:var(--sv-prussian)}
.hub-codes{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0 0}
.hub-codes span{padding:1px 7px;border:1px solid var(--sv-line);border-radius:4px;font:500 11.5px/1.6 'IBM Plex Mono',ui-monospace,monospace;color:var(--sv-muted)}
.hub-chapter ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.hub-chapter li a{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:6px 14px 6px 6px;border:1px solid var(--sv-line);border-radius:999px;background:var(--sv-surface);color:var(--sv-ink);font-size:14px;text-decoration:none}
.hub-chapter li a:hover{border-color:var(--sv-cobalt-line);background:var(--sv-cobalt-wash)}
.hub-chapter li.is-page a{border-color:var(--sv-prussian);box-shadow:inset 0 0 0 1px var(--sv-prussian);font-weight:500;color:var(--sv-prussian)}
.hub-tag{padding:3px 9px;border-radius:999px;background:var(--sv-prussian);color:#fff;font-size:12px;font-weight:500}
.hub-tag.is-quiet{background:var(--sv-well);color:var(--sv-muted);border:1px solid var(--sv-line-soft)}
.hub-chapter li.is-plain{display:inline-flex;align-items:center;min-height:40px;padding:6px 4px;font-size:14px;color:var(--sv-muted)}
.hub-source{margin:18px 0 0;font-size:13px;color:var(--sv-muted)}
.hub-source a{color:var(--sv-cobalt)}
.hub-tools{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.hub-tools a{display:grid;gap:6px;padding:18px;border:1px solid var(--sv-line);border-radius:var(--sv-radius);background:var(--sv-surface);color:var(--sv-ink);text-decoration:none;transition:border-color .2s}
.hub-tools a:hover{border-color:var(--sv-prussian)}
.hub-tools strong{font-size:16px;font-weight:600}
.hub-tools span{font-size:14px;line-height:1.6;color:var(--sv-muted)}
@media (max-width:1080px){.hub-cards{grid-template-columns:1fr 1fr}.hub-tools{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:760px){
 .hub-head{grid-template-columns:1fr}.hub-pick{justify-items:start}.hub-pick p{text-align:left}
 .hub-section-head{grid-template-columns:1fr}
 .hub-cards{grid-template-columns:1fr}
 .hub-chapter{grid-template-columns:1fr}
 .hub-tools{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
 .cx-figure{overflow-x:auto;-webkit-overflow-scrolling:touch}
 .cx-figure svg{min-width:600px}
}

/* ── Chemistry: three levels in one plate ───────────────────
   Every chemistry figure shows glassware (macro), a lens onto the particles, and symbols.
   Atoms use softened CPK colours; glass and ink stay Prussian. */
.cx-figure .plate-k{fill:var(--sv-muted);font-size:12px;letter-spacing:.02em}
.cx-figure .plate-n{fill:var(--sv-cobalt);font:500 10.5px 'IBM Plex Mono',ui-monospace,monospace;letter-spacing:.14em}
.cx-figure .glass{fill:none;stroke:var(--sv-prussian);stroke-width:2.2;stroke-linejoin:round}
.cx-figure .glass-thin{fill:#fff;fill-opacity:.4;stroke:var(--sv-prussian);stroke-width:1.6}
.cx-figure .liquid{fill:#cfe3f1}
.cx-figure .meniscus{stroke:#ffffffb0;stroke-width:2}
.cx-figure .graduation{stroke:var(--sv-prussian);stroke-width:1;opacity:.45}
.cx-figure .glint{stroke:#fff;stroke-width:3;opacity:.55;stroke-linecap:round}
.cx-figure .beam{fill:#2457a510;stroke:#2457a530;stroke-width:1}
.cx-figure .focus{fill:#fff;stroke:var(--sv-cobalt);stroke-width:1.6}
.cx-figure .lens-face{fill:#fff}
.cx-figure .lens-ring{fill:none;stroke:var(--sv-prussian);stroke-width:2.4}
.cx-figure .lens-ring-outer{fill:none;stroke:#c9d2df;stroke-width:1}
.cx-figure .atom-ball{stroke:var(--sv-prussian);stroke-width:1.3}
.cx-figure .atom-sym{font-family:var(--sv-sans);font-weight:600;pointer-events:none}
.cx-figure .atom-charge{fill:var(--sv-prussian);font-family:var(--sv-sans);font-weight:700}
.cx-figure [data-sym].is-hot .atom-ball{stroke:var(--sv-cobalt);stroke-width:2.6}
.cx-figure .tile{fill:#fff;stroke:var(--sv-prussian);stroke-width:2}
.cx-figure .tile-sym{font-family:var(--sv-serif);font-size:72px;fill:var(--sv-ink)}
.cx-figure .tile-idx{font-family:var(--sv-sans);font-size:22px;font-weight:500;fill:var(--sv-prussian)}
.cx-figure .tile-q{font-weight:700}
.cx-figure [data-sym].is-hot.tile-idx,.cx-figure .tile-idx.is-hot{fill:var(--sv-cobalt);font-weight:700}
.cx-figure .cell{fill:#fff;stroke:#c9d2df}
.cx-figure .cell.is-here{fill:var(--sv-prussian);stroke:var(--sv-prussian)}
.cx-figure .cell-sym{font-size:11.5px;fill:var(--sv-muted);font-family:var(--sv-sans)}
.cx-figure .cell-sym.is-here{fill:#fff;font-weight:600}
.cx-figure .shell{fill:none;stroke:#c9d2df;stroke-width:1.2;stroke-dasharray:3 4}
.cx-figure .nucleus-ring{fill:#2457a50c;stroke:#2457a540;stroke-width:1}
.cx-figure .proton{fill:#d0533f;stroke:#fff;stroke-width:1}
.cx-figure .neutron{fill:#dfe5ee;stroke:var(--sv-prussian);stroke-width:.8}
.cx-figure .electron{fill:var(--sv-prussian)}
.cx-figure .electron.is-outer{fill:var(--sv-cobalt);stroke:#fff;stroke-width:1.5}
.cx-figure .balance{fill:#eef1f5;stroke:var(--sv-prussian);stroke-width:1.8;stroke-linejoin:round}
.cx-figure .balance-pan{fill:#fff;stroke:var(--sv-prussian);stroke-width:1.8}
.cx-figure .balance-display{fill:var(--sv-deep)}
.cx-figure .balance-digits{fill:var(--sv-cyan);font:500 15px 'IBM Plex Mono',ui-monospace,monospace}
.cx-figure .heap{stroke:var(--sv-prussian);stroke-width:1.4}
.cx-figure .carton{fill:#fff;stroke:#c9d2df}
.cx-figure .carton-fill{fill:var(--sv-prussian)}
.cx-figure [data-sym].is-hot .carton-fill{fill:var(--sv-cobalt)}
.cx-figure .carton-k{font-size:11px;fill:var(--sv-muted);font-family:'IBM Plex Mono',ui-monospace,monospace}
.cx-figure .carton-k.is-full{fill:#fff}
.cx-figure .chain-node{fill:var(--sv-well);stroke:var(--sv-line)}
.cx-figure [data-sym].is-hot .chain-node{fill:#e8eff9;stroke:var(--sv-cobalt);stroke-width:2}
.cx-figure .chain-k{fill:var(--sv-muted);font-size:12px}
.cx-figure .chain-v{fill:var(--sv-ink);font-family:var(--sv-serif);font-size:18px;font-variant-numeric:tabular-nums}
.cx-figure .curve{fill:none;stroke:var(--sv-prussian);stroke-width:2.2;stroke-linejoin:round}
.cx-figure .curve-b{fill:none;stroke:#b8642a;stroke-width:2.2;stroke-linejoin:round}
.cx-figure .tail{fill:#2457a533;stroke:none}
.cx-figure [data-sym].is-hot.tail{fill:#2457a566}
.cx-figure .bar{fill:var(--sv-prussian)}
.cx-figure .bar-b{fill:#b8642a}
.cx-figure .flash{fill:none;stroke:#9aa7b8;stroke-width:1.4}
.cx-figure .flash.is-hit{fill:#2457a522;stroke:var(--sv-cobalt);stroke-width:2.2}
.cx-figure .note-good{fill:#1d6a48;font-weight:600}
.cx-figure .note-bad{fill:#a23d31;font-weight:600}
.cx-page .cx-config{font-family:var(--sv-serif);font-style:normal;font-size:.8em;letter-spacing:.02em}
.cx-page .cx-sym .cx-chem,.cx-page .cx-chem{font-style:normal}

/* Chemistry home: element-tile mark, the three-level strip, tile icons */
#hub-root[data-subject=chemistry] .hub-head>div:first-child{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:26px;align-items:end}
#hub-root[data-subject=chemistry] .hub-head .hub-lead{grid-column:1/-1}
.hub-mark{grid-row:1}
.hub-tile{display:grid;grid-template-rows:auto 1fr auto;width:96px;height:104px;padding:8px 10px;border:2px solid var(--sv-prussian);border-radius:8px;background:var(--sv-surface);color:var(--sv-prussian);box-shadow:6px 6px 0 var(--sv-cobalt-wash)}
.hub-tile small{font:500 13px 'IBM Plex Mono',ui-monospace,monospace}
.hub-tile b{align-self:center;justify-self:center;font-family:var(--sv-serif);font-weight:500;font-size:44px;line-height:1}
.hub-tile em{justify-self:center;font-style:normal;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--sv-muted)}
.hub-lens{margin-top:40px;padding:26px 28px 22px;border:1px solid var(--sv-line);border-radius:var(--sv-radius);background:var(--sv-surface)}
.hub-lens-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:8px 40px;align-items:baseline}
.hub-lens-head h2{margin:0;font-family:var(--sv-serif);font-weight:400;font-size:clamp(24px,2.4vw,30px)}
html:is([lang^=zh],[lang=ja]) .hub-lens-head h2{font-weight:600;letter-spacing:.03em}
.hub-lens-head p{margin:0;font-size:15px;line-height:1.7;color:var(--sv-muted)}
.hub-lens-art{display:block;width:100%;height:auto;margin:16px 0 4px;font-family:var(--sv-sans)}
.hub-lens-art .l-glass{fill:none;stroke:var(--sv-prussian);stroke-width:2.4;stroke-linejoin:round}
.hub-lens-art .l-liquid{fill:#bcd8ee}
.hub-lens-art .l-strip{fill:#a7b2c0;stroke:var(--sv-prussian);stroke-width:1.6}
.hub-lens-art .l-coat{fill:#c8792b}
.hub-lens-art .l-beam{fill:#2457a512;stroke:#2457a530}
.hub-lens-art .l-focus{fill:#fff;stroke:var(--sv-cobalt);stroke-width:1.6}
.hub-lens-art .l-face{fill:#fff}
.hub-lens-art .l-ring{fill:none;stroke:var(--sv-prussian);stroke-width:2.6}
.hub-lens-art .l-zn{fill:#8a97a8;stroke:var(--sv-prussian);stroke-width:1.2}
.hub-lens-art .l-cu{fill:#c8792b;stroke:var(--sv-prussian);stroke-width:1.2}
.hub-lens-art .l-ion{fill:#4f86c6;stroke:var(--sv-prussian);stroke-width:1.2}
.hub-lens-art .l-zn2{fill:#fff;stroke:#8a97a8;stroke-width:2}
.hub-lens-art .l-ch{font-size:11px;font-weight:700;fill:var(--sv-prussian)}
.hub-lens-art .l-e{fill:var(--sv-cobalt)}
.hub-lens-art .l-arrow{fill:none;stroke:var(--sv-prussian);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.hub-lens-art .l-eq{font-family:var(--sv-serif);font-size:30px;fill:var(--sv-ink)}
.hub-lens-art .l-sub{font-size:15px;fill:var(--sv-muted)}
.hub-lens-key{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:8px 0 0;padding:0;list-style:none}
.hub-lens-key li{padding-top:10px;border-top:2px solid var(--sv-prussian);font-size:14px;line-height:1.6;color:var(--sv-ink)}
.hub-lens-key span{display:block;margin-bottom:4px;font:500 11px 'IBM Plex Mono',ui-monospace,monospace;letter-spacing:.14em;color:var(--sv-cobalt)}
.hub-card .i-tile{fill:#fff;stroke:var(--sv-prussian);stroke-width:2}
.hub-card .i-z{font:500 11px 'IBM Plex Mono',ui-monospace,monospace;fill:var(--sv-prussian)}
.hub-card .i-sym{font-family:var(--sv-serif);font-size:27px;fill:var(--sv-ink)}
.hub-card .i-small{font-size:10px;fill:var(--sv-muted)}
.hub-card .i-orbit{fill:none;stroke:#b9c4d4;stroke-width:1.4;stroke-dasharray:3 3}
.hub-card .i-p{fill:#d0533f}.hub-card .i-n{fill:#dfe5ee;stroke:var(--sv-prussian);stroke-width:1}
.hub-card .i-e{fill:var(--sv-cobalt)}.hub-card .i-e2{fill:var(--sv-prussian)}
.hub-card .i-box{fill:#fff;stroke:#b9c4d4}
.hub-card .i-b{fill:#c8792b}
.hub-card .i-spark{stroke:#c8792b;stroke-width:2;stroke-linecap:round}
.hub-card .i-n2{fill:#fff;stroke:var(--sv-prussian);stroke-width:1.6}
.hub-card .i-no2{fill:#b8642a}
.hub-card .i-zn{fill:#8a97a8;stroke:var(--sv-prussian);stroke-width:1.4}
.hub-card .i-cu{fill:#4f86c6;stroke:var(--sv-prussian);stroke-width:1.4}
#hub-root[data-subject=chemistry] .hub-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
#hub-root[data-subject=chemistry] .hub-tools a{grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:22px;align-items:start}
#hub-root[data-subject=chemistry] .hub-tools a>svg{grid-row:1/span 2;width:120px;height:auto}
.hub-tool-art rect{fill:#fff;stroke:#b9c4d4}
.hub-tool-art rect.is-d{fill:var(--sv-well)}
.hub-tool-art rect.is-on{fill:var(--sv-prussian);stroke:var(--sv-prussian)}
@media (max-width:760px){
 .hub-lens{padding:20px 16px}
 .hub-lens-head{grid-template-columns:1fr}
 .hub-lens-art{min-width:620px}
 .hub-lens{overflow-x:auto}
 .hub-lens-key{grid-template-columns:1fr}
 #hub-root[data-subject=chemistry] .hub-tools{grid-template-columns:1fr}
 #hub-root[data-subject=chemistry] .hub-tools a>svg{width:90px}
}
.cx-figure .bath{stroke:#c9d2df;stroke-width:1}
.cx-figure .plunger{fill:#fff;stroke:var(--sv-prussian);stroke-width:1.6}
.cx-figure .product-halo{fill:#2457a51a;stroke:var(--sv-cobalt);stroke-width:1.2}
.cx-figure .ph-pointer{fill:var(--sv-prussian)}
.cx-figure .strip{stroke:var(--sv-prussian);stroke-width:1.8}
.cx-figure .coat{stroke:none}
.cx-figure .series-box{fill:#fff;stroke:#c9d2df}
.cx-figure .series-box.is-metal{stroke:var(--sv-prussian);stroke-width:2.4}
.cx-figure .series-box.is-ion{stroke:#b8642a;stroke-width:2.4;stroke-dasharray:5 3}
.cx-figure .e-dot{fill:var(--sv-cobalt);stroke:#fff;stroke-width:1}
.cx-figure .ion-ring{fill:none;stroke-width:2}
.hub-tool-art rect.is-mid{fill:#c8792b;stroke:#c8792b}
.hub-tool-art .axis{stroke:#b9c4d4;stroke-width:1.5}
.hub-tool-art .mark{stroke:var(--sv-cobalt);stroke-width:2;stroke-dasharray:4 3}
.hub-tool-art text{font:500 11px 'IBM Plex Mono',ui-monospace,monospace;fill:var(--sv-muted)}
.hub-lens-art .l-ion{fill:#fff;stroke:#c8792b;stroke-width:2.2}

/* ── Biology: levels, scale bars and textbook labels ─────────
   Every biology figure names its level (cell, organelle, molecule…) and carries a scale bar.
   Stain colours: eosin pink membranes, haematoxylin purple nuclei, chlorophyll green. */
.cx-figure .scale-bar{stroke:var(--sv-prussian);stroke-width:1.6;fill:none}
.cx-figure .scale-k{font:500 10.5px 'IBM Plex Mono',ui-monospace,monospace;fill:var(--sv-prussian)}
.cx-figure .tag-dot{fill:var(--sv-prussian)}
.cx-figure .tag-line{fill:none;stroke:var(--sv-prussian);stroke-width:1}
.cx-figure .tag-text{font-family:var(--sv-serif);font-style:italic;font-size:14px;fill:var(--sv-ink)}
html:is([lang^=zh],[lang=ja]) .cx-figure .tag-text{font-style:normal;font-size:13px}
.cx-figure .field-rim{fill:none;stroke:#1f2a3c;stroke-width:9}
.cx-figure .field-mag{font:600 12px 'IBM Plex Mono',ui-monospace,monospace;fill:#fff;paint-order:stroke;stroke:#1f2a3c;stroke-width:4px}
.cx-figure .zoom-box{fill:none;stroke:var(--sv-cobalt);stroke-width:1.4}
.cx-figure .zoom-line{fill:none;stroke:var(--sv-cobalt);stroke-width:1;stroke-dasharray:4 4;opacity:.7}
.cx-figure .bio-panel{fill:#fff;stroke:#c9d2df}
.cx-figure .bio-liquid{stroke:none}
.cx-figure .rbc{fill:#e08a80;stroke:#c4588a;stroke-width:2.6}
.cx-figure .rbc-centre{fill:#f4c4bd;stroke:none}
.cx-figure .membrane-broken{fill:none;stroke:#c4588a;stroke-width:2.6;stroke-linecap:round}
.cx-figure .cell-wall{fill:#f3f8ef;stroke:#4f8f3a;stroke-width:6}
.cx-figure .protoplast{fill:#fbeef3;stroke:#c4588a;stroke-width:2.4}
.cx-figure .vacuole{fill:#dcebf7;stroke:#9ebfdc;stroke-width:1.2}
.cx-figure .nucleus{fill:#8a78c4;stroke:#6a55a8;stroke-width:1.6}
.cx-figure .chloroplast{fill:#5f9c47;stroke:#3f7a2c;stroke-width:1}
.cx-figure .head{fill:#e7a8c2;stroke:#c4588a;stroke-width:1}
.cx-figure .tail{stroke:#c4588a;stroke-width:1;opacity:.6}
.cx-figure .pore{fill:#fff;stroke:#c4588a;stroke-width:1.2;stroke-dasharray:2 2}
.cx-figure .water{fill:#4f86c6;opacity:.85}
.cx-figure .solute{fill:#c8792b;stroke:#fff;stroke-width:.8}
.cx-figure [data-sym].is-hot .solute{fill:#c8792b;stroke:var(--sv-cobalt);stroke-width:1.6}
.cx-figure .curve-g{fill:none;stroke:#4f8f3a;stroke-width:2.2;stroke-linejoin:round}
.cx-figure .enzyme{fill:#8fb7e3;stroke:var(--sv-prussian);stroke-width:1.8}
.cx-figure .enzyme.is-off{fill:#d8dde5;stroke:#8b97a8;stroke-dasharray:4 3}
.cx-figure .substrate{fill:#c8792b;stroke:#8a4d16;stroke-width:1.2}
.cx-figure .product{fill:#e9b678;stroke:#8a4d16;stroke-width:1.2}
.cx-figure .mito{fill:#f2c49f;stroke:#c0703a;stroke-width:2}
.cx-figure .cristae{fill:none;stroke:#c0703a;stroke-width:1.4}
.cx-figure .chl-body{fill:#cfe5c4;stroke:#4f8f3a;stroke-width:2}
.cx-figure .granum{fill:#5f9c47;stroke:#3f7a2c;stroke-width:.8}
.cx-figure .chromatid{stroke:none}
.cx-figure .spindle{fill:none;stroke:#9aa7b8;stroke-width:1;opacity:.7}
.cx-figure .base-box{stroke:#fff;stroke-width:1.2}
.cx-figure .base-k{font:600 12px 'IBM Plex Mono',ui-monospace,monospace;fill:#fff;pointer-events:none}
.cx-figure .is-pick{stroke:var(--sv-ink);stroke-width:2.6}
.cx-figure .ribosome{fill:#d9cfe9;stroke:#6a55a8;stroke-width:1.8}
.cx-figure .aa{stroke:#fff;stroke-width:1.2}
.cx-figure .flower-p{fill:#8e63b8}
.cx-figure .flower-w{fill:#fff;stroke:#b9c4d4}
.cx-figure .punnett{fill:#fff;stroke:var(--sv-prussian);stroke-width:1.4}
.cx-figure .allele{font:600 15px var(--sv-serif);fill:var(--sv-ink)}

/* Biology home */
#hub-root[data-subject=biology] .hub-head>div:first-child{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:26px;align-items:end}
#hub-root[data-subject=biology] .hub-head .hub-lead{grid-column:1/-1}
.hub-field{position:relative;display:block;width:104px;height:104px}
.hub-field svg{width:104px;height:104px}
.hub-field .f-bg{fill:#fdf6f9}
.hub-field .f-rim{fill:none;stroke:#1f2a3c;stroke-width:7}
.hub-field .f-cell{fill:#f6dce6;stroke:#c4588a;stroke-width:2.4}
.hub-field .f-nuc{fill:#8a78c4;stroke:#6a55a8;stroke-width:1.5}
.hub-field .f-mito{fill:#f2c49f;stroke:#c0703a;stroke-width:1.5}
.hub-field em{position:absolute;right:-6px;bottom:2px;padding:1px 6px;border-radius:4px;background:#1f2a3c;color:#fff;font:600 11px 'IBM Plex Mono',ui-monospace,monospace;font-style:normal}
.hub-ladder{display:block;width:100%;height:auto;margin-top:14px;font-family:var(--sv-sans)}
.hub-ladder .l-axis{stroke:var(--sv-prussian);stroke-width:2;fill:none}
.hub-ladder .l-minor{stroke:#9aa7b8;stroke-width:1}
.hub-ladder .l-tick{font:500 11px 'IBM Plex Mono',ui-monospace,monospace;fill:var(--sv-muted)}
.hub-ladder .l-name{font-size:12px;fill:var(--sv-ink)}
.hub-ladder .l-stem{fill:none;stroke:#3f7a2c;stroke-width:2.2;stroke-linecap:round}
.hub-ladder .l-leaf{fill:#7fb06a;stroke:#3f7a2c;stroke-width:1.4}
.hub-ladder .l-tissue{fill:#eaf3e4;stroke:#4f8f3a;stroke-width:1.6}
.hub-ladder .l-wall{fill:#f3f8ef;stroke:#4f8f3a;stroke-width:2.4}
.hub-ladder .l-vac{fill:#dcebf7}
.hub-ladder .l-nuc{fill:#8a78c4}
.hub-ladder .l-chl{fill:#cfe5c4;stroke:#4f8f3a;stroke-width:1.8}
.hub-ladder .l-grana{stroke:#3f7a2c;stroke-width:2.2}
.hub-ladder .l-ribo{fill:#d9cfe9;stroke:#6a55a8;stroke-width:1.4}
.hub-ladder .l-dna{fill:none;stroke:var(--sv-prussian);stroke-width:2}
.hub-ladder .l-rung{stroke:#c8792b;stroke-width:2}
.hub-ladder .l-pin{stroke:var(--sv-cobalt);stroke-width:1.4}
.hub-ladder .l-pin-dot{fill:var(--sv-cobalt)}
.hub-ladder .l-chip{fill:#fff;stroke:var(--sv-prussian);stroke-width:1.6}
.hub-ladder .l-chip-t{font-size:12px;font-weight:600;fill:var(--sv-prussian)}
.hub-ladder a:hover .l-chip,.hub-ladder a:focus .l-chip{fill:var(--sv-prussian)}
.hub-ladder a:hover .l-chip-t,.hub-ladder a:focus .l-chip-t{fill:#fff}
.hub-card .i-slide{fill:#f4f8fb;stroke:#b9c4d4;stroke-width:1.4}
.hub-card .i-frost{fill:#e3e8ef;stroke:#b9c4d4;stroke-width:1.4}
.hub-card .i-spot{fill:#fdf6f9;stroke:#e4c4d2}
.hub-card .i-rbc{fill:#e08a80;stroke:#c4588a;stroke-width:1.6}
.hub-card .i-enz{fill:#8fb7e3;stroke:var(--sv-prussian);stroke-width:1.6}
.hub-card .i-sub{fill:#c8792b}
.hub-card .i-chl{fill:#cfe5c4;stroke:#4f8f3a;stroke-width:1.6}
.hub-card .i-grana{stroke:#3f7a2c;stroke-width:2.4}
.hub-card .i-bub{fill:none;stroke:var(--sv-cobalt);stroke-width:1.2}
.hub-card .i-cell{fill:#fbeef3;stroke:#c4588a;stroke-width:1.6}
.hub-card .i-chr{stroke:var(--sv-cobalt);stroke-width:2.6;stroke-linecap:round}
.hub-card .i-p{fill:#8e63b8}.hub-card .i-w{fill:#fff;stroke:#8e63b8;stroke-width:1.4}
.hub-card .i-rung{stroke:#c8792b;stroke-width:2.2}
#hub-root[data-subject=biology] .hub-tools{grid-template-columns:repeat(3,minmax(0,1fr))}
#hub-root[data-subject=biology] .hub-tools a{grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:18px;align-items:start}
#hub-root[data-subject=biology] .hub-tools a>svg{grid-row:1/span 2;width:80px;height:auto}
.hub-tool-art .t-cell{fill:#fbeef3;stroke:#c4588a;stroke-width:2}
.hub-tool-art .t-nuc{fill:#8a78c4}
.hub-tool-art .t-mito{fill:#f2c49f;stroke:#c0703a}
.hub-tool-art .t-lung{fill:#f6dce6;stroke:#c4588a;stroke-width:2}
.hub-tool-art .t-heart{fill:#e08a80;stroke:#b5473f;stroke-width:2}
.hub-tool-art .t-ab{fill:none;stroke:var(--sv-prussian);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.hub-tool-art .t-ag{fill:#c8792b}
@media (max-width:760px){
 .hub-ladder{min-width:760px}
 #hub-root[data-subject=biology] .hub-tools{grid-template-columns:1fr}
}
.cx-figure .scale-bg{fill:#ffffffd9;stroke:none}
.cx-figure .scale.is-light .scale-bg{fill:#1f2a3cd0}
.cx-figure .scale.is-light .scale-bar{stroke:#fff}
.cx-figure .scale.is-light .scale-k{fill:#fff}
.cx-figure .scale .scale-bar{stroke-width:3;stroke-linecap:butt}
.cx-figure .nuc-env{fill:#efe9f8;stroke:#6a55a8;stroke-width:1.6;stroke-dasharray:6 3}
.cx-figure .lamp{fill:#f3d36b;stroke:var(--sv-prussian);stroke-width:1.6}
.cx-figure .ray{stroke:#e8b93b;stroke-width:2.4;stroke-linecap:round}
.cx-figure .weed-stem{fill:none;stroke:#3f7a2c;stroke-width:2.6;stroke-linecap:round}
.cx-figure .weed-leaf{fill:#7fb06a;stroke:#3f7a2c;stroke-width:.8}
.cx-figure .bubble{fill:#ffffffcc;stroke:var(--sv-cobalt);stroke-width:1.2}
.cx-figure .gamete{fill:#fff;stroke:var(--sv-prussian);stroke-width:1.6}
.cx-figure .slot{fill:#dfe5ee}
.cx-figure .nucleus-band{fill:#f3effa;stroke:#cdbfe6;stroke-width:1.2;stroke-dasharray:6 4}
.cx-figure .pair-line{stroke:#9aa7b8;stroke-width:1.4}
.cx-figure .copy-line{stroke:var(--sv-cobalt);stroke-width:1.2;stroke-dasharray:3 3}
.cx-figure .polymerase{fill:#cfe0f5;stroke:var(--sv-cobalt);stroke-width:1.6;opacity:.85}
.cx-figure .trna{fill:none;stroke:#3f9a5a;stroke-width:3;stroke-linejoin:round}
.cx-figure .peptide{stroke:var(--sv-prussian);stroke-width:2}
.cx-figure .codon-card{fill:#fff;stroke:#c9d2df}
.cx-figure .codon-card.is-changed{stroke:#a23d31;stroke-width:2}
.cx-figure .codon-k{font:600 13px 'IBM Plex Mono',ui-monospace,monospace;fill:var(--sv-ink)}
.cx-figure .ribosome{fill-opacity:.55}

/* ── Mathematics: graph paper, grab handles, colour-linked algebra ─────────
   Every important point is a handle (drag it, or focus it and use the arrow keys).
   Each quantity keeps one colour in the graph and in the formula:
   orange slope/sine, green intercept/height, cobalt x/run/cosine, purple shape/ratio. */
.mc-o{color:#b56a1f}.mc-g{color:#2f8049}.mc-b{color:#2457a5}.mc-p{color:#7d52a8}.mc-r{color:#b33f32}.mc-i{color:var(--sv-ink)}
.mc{font-weight:600}
.cx-page .cx-sym.is-hot .mc,.cx-page .cx-sym.is-hot.mc{color:inherit}
.cx-sub .mc{font-weight:600}
.cx-figure .m-paper{fill:#fff;stroke:#c9d4e2}
.cx-figure .m-grid{stroke:#edf1f6;stroke-width:1}
.cx-figure .m-grid-major{stroke:#d6dfea;stroke-width:1}
.cx-figure .m-axis{stroke:var(--sv-prussian);stroke-width:1.6;fill:none}
.cx-figure .m-tick{font:500 10.5px 'IBM Plex Mono',ui-monospace,monospace;fill:#6b778a;paint-order:stroke;stroke:#fff;stroke-width:3px}
.cx-figure .m-line{fill:none;stroke-width:3;stroke-linecap:round}
.cx-figure .m-curve{fill:none;stroke:var(--sv-prussian);stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.cx-figure .m-ghost{fill:none;stroke:#9aa7b8;stroke-width:2;stroke-dasharray:6 5}
.cx-figure .m-leg{fill:none;stroke-width:2.4;stroke-dasharray:7 4;stroke-linecap:round}
.cx-figure .m-step{fill:none;stroke-width:3.2;stroke-linecap:round}
.cx-figure .m-thin{fill:none;stroke-width:1.6}
.cx-figure .m-tag{font:600 16px var(--sv-serif);font-style:italic;paint-order:stroke;stroke:#fff;stroke-width:4px}
html:is([lang^=zh],[lang=ja]) .cx-figure .m-tag{font-style:normal;font-size:15px}
.cx-figure .m-small{font:600 12px var(--sv-sans);paint-order:stroke;stroke:#fff;stroke-width:3.5px}
.cx-figure .m-pt{font:600 italic 15px var(--sv-serif);fill:var(--sv-ink);paint-order:stroke;stroke:#fff;stroke-width:4px}
.cx-figure .m-ring{fill:#fff;stroke:#6b778a;stroke-width:1.6}
.cx-figure .m-eq{font-family:var(--sv-serif);fill:var(--sv-ink)}
.cx-figure .m-row{font-size:14.5px;fill:var(--sv-ink)}
.cx-figure .m-note{font-size:13px;fill:var(--sv-muted)}
.cx-figure .m-card{fill:#fbfcfd;stroke:#d6dfea}
.m-vec{position:relative;display:inline-block;padding:0 .06em}.m-vec::before{content:'';position:absolute;left:0;right:0;top:-.3em;height:.42em;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 8' preserveAspectRatio='none'%3E%3Cpath d='M1 4H22M18 1l4 3-4 3' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/100% 100%;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 8' preserveAspectRatio='none'%3E%3Cpath d='M1 4H22M18 1l4 3-4 3' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/100% 100%}
.cx-figure .m-dot{stroke:#fff;stroke-width:1.5}
.cx-figure .m-area{stroke:none}
.cx-figure .m-handle{cursor:grab;outline:none}
.cx-figure .m-handle.is-drag{cursor:grabbing}
.cx-figure .m-handle-hit{fill:transparent}
.cx-figure .m-handle-ring{fill:#fff;stroke-width:3}
.cx-figure .m-handle:focus-visible .m-handle-ring,.cx-figure .m-handle:hover .m-handle-ring{stroke-width:4;filter:drop-shadow(0 0 4px #2457a566)}
.cx-figure .m-handle:focus-visible .m-handle-hit{fill:#2457a51f;stroke:var(--sv-cobalt);stroke-width:1.5;stroke-dasharray:3 3}
.cx-figure [data-sym].is-hot :is(.m-line,.m-curve){stroke-width:4.6}
.cx-figure [data-sym].is-hot .m-leg,.cx-figure .m-leg[data-sym].is-hot{stroke-width:3.6;stroke-dasharray:none}
.cx-figure [data-sym].is-hot .m-tag{font-size:18px}
.cx-figure .m-bar{stroke:#fff;stroke-width:1}
.cx-figure .m-ball{stroke:#fff;stroke-width:1.5}
.cx-figure .m-branch{fill:none;stroke:#9aa7b8;stroke-width:2.2}
.cx-figure .m-branch.is-on{stroke:var(--sv-prussian);stroke-width:3}
.cx-figure .m-bag{fill:#f6f1e7;stroke:#8a6d3b;stroke-width:2.4}
.cx-figure .m-freq{stroke:none}
.cx-figure .m-mark{stroke:var(--sv-ink);stroke-width:2}

/* Mathematics home */
#hub-root[data-subject=mathematics] .hub-head>div:first-child{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:26px;align-items:end}
#hub-root[data-subject=mathematics] .hub-head .hub-lead{grid-column:1/-1}
.hub-graph{display:block;width:104px;height:104px}
.hub-graph svg{width:104px;height:104px}
.hub-graph .g-paper{fill:#fff;stroke:var(--sv-prussian);stroke-width:2.4}
.hub-graph .g-grid{stroke:#dfe6ef;stroke-width:1}
.hub-graph .g-axis{stroke:#9aa7b8;stroke-width:1.6}
.hub-graph .g-curve{fill:none;stroke:var(--sv-prussian);stroke-width:3.4;stroke-linecap:round}
.hub-graph .g-tan{stroke:#c8792b;stroke-width:3;stroke-linecap:round}
.hub-graph .g-h{fill:#fff;stroke:var(--sv-prussian);stroke-width:3}
.hub-graph .g-hc{fill:var(--sv-prussian)}
.m-lens{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:28px;align-items:center;margin-top:16px}
.m-lens-svg{display:block;width:100%;height:auto;touch-action:none;user-select:none;font-family:var(--sv-sans)}
.m-lens-svg .m-paper{fill:#fff;stroke:#c9d4e2}
.m-lens-svg .m-grid{stroke:#eef2f7}
.m-lens-svg .m-grid-major{stroke:#d6dfea}
.m-lens-svg .m-axis{stroke:var(--sv-prussian);stroke-width:1.6}
.m-lens-svg .m-tick{font:500 11px 'IBM Plex Mono',ui-monospace,monospace;fill:#6b778a}
.m-lens-svg .m-curve{fill:none;stroke:var(--sv-prussian);stroke-width:3.2}
.m-lens-svg .m-curve-name{font:italic 17px var(--sv-serif);fill:var(--sv-prussian)}
.m-lens-svg .m-lens-tan{stroke:#c8792b;stroke-width:3;stroke-linecap:round}
.m-lens-svg .m-lens-x{stroke:#2457a5;stroke-width:2.2;stroke-dasharray:6 4}
.m-lens-svg .m-lens-y{stroke:#3f9a5a;stroke-width:2.2;stroke-dasharray:6 4}
.m-lens-svg .m-lens-xl{font:600 13px 'IBM Plex Mono',ui-monospace,monospace;fill:#2457a5;paint-order:stroke;stroke:#fff;stroke-width:4px}
.m-lens-svg .m-lens-yl{font:600 13px 'IBM Plex Mono',ui-monospace,monospace;fill:#2f8049;paint-order:stroke;stroke:#fff;stroke-width:4px}
.m-lens-svg .m-handle{cursor:grab;outline:none}
.m-lens-svg .m-handle-hit{fill:transparent}
.m-lens-svg .m-handle-ring{fill:#fff;stroke-width:3.2}
.m-lens-svg .m-handle:focus-visible .m-handle-hit{fill:#2457a51f;stroke:var(--sv-cobalt);stroke-width:1.5;stroke-dasharray:3 3}
.m-lens-svg .m-handle.is-idle .m-handle-ring{animation:m-pulse 1.8s ease-in-out infinite}
@keyframes m-pulse{0%,100%{stroke-width:3.2}50%{stroke-width:7}}
@media (prefers-reduced-motion:reduce){.m-lens-svg .m-handle.is-idle .m-handle-ring{animation:none}}
.m-lens-algebra{display:grid;gap:10px}
.m-lens-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:12px;margin:0;padding:10px 0;border-bottom:1px solid var(--sv-line);font-size:17px}
.m-lens-k{font-family:var(--sv-serif);font-size:20px;color:var(--sv-ink)}
.m-lens-row b{font:600 20px 'IBM Plex Mono',ui-monospace,monospace;white-space:nowrap}
.m-lens-say{margin:6px 0 0;font-size:15px;line-height:1.6;color:var(--sv-ink);min-height:3.2em}
.m-lens-hint{margin:0;font-size:13px;color:var(--sv-muted)}
.m-lens-links{display:flex;flex-wrap:wrap;gap:8px 18px;margin:4px 0 0}
.m-lens-links a{font-weight:600;color:var(--sv-cobalt);text-decoration:none;border-bottom:1px solid currentColor}
.hub-card .i-paper{fill:#fff;stroke:#c9d4e2;stroke-width:1.2}
.hub-card .i-grid{stroke:#eef2f7;stroke-width:1}
.hub-card .i-line{stroke:#c8792b;stroke-width:3;stroke-linecap:round}
.hub-card .i-tri{fill:none;stroke:#2457a5;stroke-width:1.8;stroke-dasharray:4 3}
.hub-card .i-h{fill:#fff;stroke:var(--sv-prussian);stroke-width:2.4}
.hub-card .i-hp{stroke:#7d52a8}
.hub-card .i-hc{fill:var(--sv-prussian)}
.hub-card .i-axis-s{stroke:#9aa7b8;stroke-width:1.4;stroke-dasharray:3 3}
.hub-card .i-curve{fill:none;stroke:var(--sv-prussian);stroke-width:3;stroke-linecap:round}
.hub-card .i-circle{fill:none;stroke:var(--sv-prussian);stroke-width:2}
.hub-card .i-line-t{stroke:var(--sv-prussian);stroke-width:2}
.hub-card .i-cos{stroke:#2457a5;stroke-width:3}
.hub-card .i-sin{stroke:#c8792b;stroke-width:3}
.hub-card .i-wave{fill:none;stroke:#c8792b;stroke-width:2.4}
.hub-card .i-tree{fill:none;stroke:var(--sv-prussian);stroke-width:1.8}
.hub-card .i-node{fill:var(--sv-prussian)}
.hub-card .i-red{fill:#c4483a}.hub-card .i-blue{fill:#2457a5}
.hub-card .i-bar{fill:#2457a5}
.hub-card .i-flip{fill:#c8792b;fill-opacity:.35;stroke:#c8792b;stroke-width:1;stroke-dasharray:2 2}
.hub-card .i-tan{stroke:#c8792b;stroke-width:2.8;stroke-linecap:round}
.hub-card .i-sec{stroke:#7d52a8;stroke-width:1.8;stroke-dasharray:4 3}
.hub-card .i-q{fill:#7d52a8}
#hub-root[data-subject=mathematics] .hub-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
#hub-root[data-subject=mathematics] .hub-tools a{grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:20px;align-items:start}
#hub-root[data-subject=mathematics] .hub-tools a>svg{grid-row:1/span 2;width:96px;height:auto}
.hub-tool-art .t-paper{fill:#fff;stroke:#c9d4e2}
.hub-tool-art .t-axis{stroke:#9aa7b8;stroke-width:1.4}
.hub-tool-art .t-wave{fill:none;stroke:#2457a5;stroke-width:2.6}
.hub-tool-art .t-fx{font:italic 600 11px var(--sv-serif);fill:var(--sv-prussian)}
.hub-tool-art .t-card{fill:#fff;stroke:var(--sv-prussian);stroke-width:1.8}
.hub-tool-art .t-back{fill:#eef2f7;stroke:#9aa7b8}
.hub-tool-art .t-sym{font:20px var(--sv-serif);fill:#c8792b}
@media (max-width:760px){
 .m-lens{grid-template-columns:1fr;gap:12px}
 #hub-root[data-subject=mathematics] .hub-tools{grid-template-columns:1fr}
 #hub-root[data-subject=mathematics] .hub-tools a>svg{width:80px}
}
.cx-figure .m-arrow{stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
#concept-root[data-subject=mathematics] .cx-legend li{grid-template-columns:minmax(48px,max-content) minmax(0,1fr) auto}
.cx-eq-line .m-x{white-space:nowrap;font-style:normal}
.cx-eq-line .m-x sub,.cx-eq-line .m-x sup{font-size:.6em}
.cx-eq-line .m-lim{display:inline-flex;flex-direction:column;align-items:center;line-height:1;margin:0 4px}
.cx-eq-line .m-lim small{margin-top:3px;font:500 .42em var(--sv-sans);color:var(--sv-muted)}
/* only the handles take the pointer, so a line drawn over a point can never swallow a drag */
#concept-root[data-subject=mathematics] .cx-figure svg *{pointer-events:none}
#concept-root[data-subject=mathematics] .cx-figure svg .m-handle,#concept-root[data-subject=mathematics] .cx-figure svg .m-handle *{pointer-events:auto}
/* figures without draggable parts let the finger scroll as usual (maths pans in script, see kit.touchPan) */
#concept-root:not([data-subject=mathematics]):not([data-subject=astrophysics]) .cx-figure svg{touch-action:pan-x pan-y}
.cx-step{min-width:44px;padding-inline:12px;font-variant-numeric:tabular-nums}

/* ── Computer science: memory cells, a code listing that marks the running line, trace tables ── */
.cx-figure .c-cell{fill:#fff;stroke:#9aa7b8;stroke-width:1.4}
.cx-figure .c-cell.is-look{fill:#fff1b8;stroke:var(--sv-prussian);stroke-width:2.4}
.cx-figure .c-cell.is-out{fill:#eef1f5;stroke:#d6dfea}
.cx-figure .c-cell.is-found{fill:#dff1e4;stroke:#3f9a5a;stroke-width:2.6}
.cx-figure .c-cell.is-mid{fill:#efe6f8;stroke:#8e63b8;stroke-width:2.4}
.cx-figure .c-cell.is-done{fill:#e6eefa;stroke:#2457a5}
.cx-figure .c-val{font:600 14px 'IBM Plex Mono',ui-monospace,monospace;fill:var(--sv-ink)}
.cx-figure .c-idx{font:500 10.5px 'IBM Plex Mono',ui-monospace,monospace;fill:#8b97a8}
.cx-figure .c-ptr{font:600 12px 'IBM Plex Mono',ui-monospace,monospace}
.cx-figure .c-code-bg{fill:#f6f8fb;stroke:#d6dfea}
.cx-figure .c-code-mark{fill:#fff1b8;stroke:#e8c547;stroke-width:1}
.cx-figure .c-code-arrow{font-size:11px;fill:var(--sv-prussian)}
.cx-figure .c-ln{font:500 11px 'IBM Plex Mono',ui-monospace,monospace;fill:#9aa7b8}
.cx-figure .c-src{font-family:'IBM Plex Mono',ui-monospace,monospace;fill:var(--sv-ink)}
.cx-figure .c-kw{font-weight:700;fill:#2457a5}
.cx-figure .c-trace-bg{fill:#fff;stroke:#d6dfea}
.cx-figure .c-th{font:600 12px 'IBM Plex Mono',ui-monospace,monospace;fill:var(--sv-muted)}
.cx-figure .c-rule{stroke:#d6dfea}
.cx-figure .c-trace-now{fill:#fff1b8}
.cx-figure .c-td{font:500 12.5px 'IBM Plex Mono',ui-monospace,monospace;fill:#566176}
.cx-figure .c-td.is-now{font-weight:700;fill:var(--sv-ink)}
.cx-figure .c-more{font-size:11px;fill:#8b97a8}
.cx-figure .c-mono{font-family:'IBM Plex Mono',ui-monospace,monospace}
.cx-figure .c-big{font:600 26px 'IBM Plex Mono',ui-monospace,monospace;fill:var(--sv-ink)}
.cx-figure .c-note{font-size:13px;fill:var(--sv-muted)}
.cx-figure .c-row{font-size:14px;fill:var(--sv-ink)}
.cx-figure .c-click{cursor:pointer;outline:none}
.cx-figure .c-click:focus-visible>rect:first-child,.cx-figure .c-click:focus-visible>circle:first-child{stroke:var(--sv-cobalt);stroke-width:3}
.cx-figure .c-click:hover>rect:first-child{stroke:var(--sv-prussian)}
.cx-figure .c-wire{fill:none;stroke:#9aa7b8;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.cx-figure .c-wire.is-on{stroke:#e0a020}
.cx-figure .c-gate{fill:#fff;stroke:var(--sv-prussian);stroke-width:2.4;stroke-linejoin:round}
.cx-figure .c-gate-k{font:700 12px 'IBM Plex Mono',ui-monospace,monospace;fill:var(--sv-prussian)}
.cx-figure .c-lamp{stroke:var(--sv-prussian);stroke-width:2.2}
.cx-figure .c-glow{fill:#ffd75e;opacity:.45}
.cx-figure [data-sym].is-hot .c-cell{stroke:var(--sv-cobalt);stroke-width:3}
.cx-figure [data-sym].is-hot .c-wire{stroke-width:4.5}
.cx-figure .c-bar{stroke:#fff;stroke-width:1}

/* Computer science home */
#hub-root[data-subject=computer-science] .hub-head>div:first-child{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:26px;align-items:end}
#hub-root[data-subject=computer-science] .hub-head .hub-lead{grid-column:1/-1}
.hub-term{display:block;width:104px;height:104px}
.hub-term svg{width:104px;height:104px}
.hub-term .h-win{fill:#fff;stroke:var(--sv-prussian);stroke-width:2.4}
.hub-term .h-bar{stroke:var(--sv-prussian);stroke-width:2}
.hub-term .h-dot{fill:#c9d4e2}
.hub-term .h-line{fill:#c9d4e2}
.hub-term .h-now{fill:#fff1b8}
.hub-term .h-line-on{fill:var(--sv-cobalt)}
.hub-term .h-arrow{fill:var(--sv-prussian)}
.hub-term .h-cursor{fill:var(--sv-prussian);animation:c-blink 1.1s steps(1) infinite}
@keyframes c-blink{50%{opacity:0}}
@media (prefers-reduced-motion:reduce){.hub-term .h-cursor{animation:none}}
.c-lens{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:28px;align-items:start;margin-top:18px}
.c-lens-code{margin:0;padding:12px 0 14px;border:1px solid var(--sv-line);border-radius:10px;background:#f6f8fb}
.c-lens-lang{margin:0 16px 6px;font:500 11px 'IBM Plex Mono',ui-monospace,monospace;letter-spacing:.12em;color:var(--sv-muted);text-transform:uppercase}
.c-lens-code ol{margin:0;padding:0 0 0 46px;font:500 16px/1.9 'IBM Plex Mono',ui-monospace,monospace;color:var(--sv-ink)}
.c-lens-code li{padding-left:10px;margin-right:10px;border-radius:5px;white-space:pre;position:relative}
.c-lens-code li::marker{color:#9aa7b8;font-size:13px}
.c-lens-code li b{color:var(--sv-cobalt)}
.c-lens-code li.is-now{background:#fff1b8;box-shadow:inset 0 0 0 1px #e8c547}
.c-lens-code li.is-now::before{content:'▶';position:absolute;left:-42px;color:var(--sv-prussian);font-size:12px}
.c-lens-code code{font:inherit;white-space:pre}
.c-lens-side{display:grid;gap:14px}
.c-lens-vars{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.c-lens-vars div{display:grid;gap:4px;padding:12px 14px;border:1px solid var(--sv-line);border-radius:10px;background:var(--sv-surface)}
.c-lens-vars span{font:500 12px 'IBM Plex Mono',ui-monospace,monospace;color:var(--sv-muted)}
.c-lens-vars b{font:600 28px 'IBM Plex Mono',ui-monospace,monospace;color:var(--sv-ink);transition:color .3s}
.c-lens-vars b.is-changed{color:#c8792b}
.c-lens-note{margin:0;min-height:1.6em;font:500 15px 'IBM Plex Mono',ui-monospace,monospace;color:var(--sv-cobalt)}
.c-lens-out{display:flex;gap:12px;align-items:baseline;margin:0;padding:10px 14px;border-radius:8px;background:#15305a;color:#fff}
.c-lens-out span{font-size:12px;opacity:.75}
.c-lens-out code{font:600 18px 'IBM Plex Mono',ui-monospace,monospace;min-height:1.2em}
.c-lens-buttons{display:flex;flex-wrap:wrap;gap:8px}
.c-lens-count{margin:0;font-size:13px;color:var(--sv-muted)}
.hub-card .i-on{fill:var(--sv-prussian)}.hub-card .i-off{fill:#fff;stroke:#b9c4d4}
.hub-card .i-bit{font:600 10px 'IBM Plex Mono',ui-monospace,monospace;fill:var(--sv-muted)}
.hub-card .i-bit.is-on{fill:#fff}
.hub-card .i-cap{font:600 11px 'IBM Plex Mono',ui-monospace,monospace;fill:var(--sv-cobalt)}
.hub-card .i-wire{stroke:#e0a020;stroke-width:3;fill:none}
.hub-card .i-gate{fill:#fff;stroke:var(--sv-prussian);stroke-width:2.4}
.hub-card .i-lamp{fill:#ffd75e;stroke:var(--sv-prussian);stroke-width:2}
.hub-card .i-in-on{fill:#e0a020}
.hub-card .i-cell{fill:#fff;stroke:#9aa7b8;stroke-width:1.2}
.hub-card .i-out{fill:#eef1f5;stroke:#d6dfea}
.hub-card .i-mid{fill:#efe6f8;stroke:#8e63b8;stroke-width:2}
.hub-card .i-ptr{fill:var(--sv-prussian)}
.hub-card .i-gone{stroke:#c9d4e2;stroke-width:3;stroke-dasharray:3 3}
.hub-card .i-bar{fill:#8fa6c8}.hub-card .i-cmp{fill:#c8792b}
.hub-card .i-swap{fill:none;stroke:var(--sv-prussian);stroke-width:2}
.hub-card .i-swapH{fill:var(--sv-prussian)}
.hub-card .i-line{fill:#c9d4e2}.hub-card .i-line-on{fill:var(--sv-cobalt)}
.hub-card .i-var{fill:#fff;stroke:var(--sv-prussian);stroke-width:1.4}
.hub-card .i-px{stroke:#fff;stroke-width:.6}
.hub-card .i-frame{fill:none;stroke:var(--sv-prussian);stroke-width:1.6}
#hub-root[data-subject=computer-science] .hub-tools{grid-template-columns:repeat(3,minmax(0,1fr))}
#hub-root[data-subject=computer-science] .hub-tools a{grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:18px;align-items:start}
#hub-root[data-subject=computer-science] .hub-tools a>svg{grid-row:1/span 2;width:80px;height:auto}
.hub-tool-art .t-chip{fill:#fff;stroke:var(--sv-prussian);stroke-width:2}
.hub-tool-art .t-pin{stroke:var(--sv-prussian);stroke-width:2}
.hub-tool-art .t-k{font:700 13px 'IBM Plex Mono',ui-monospace,monospace;fill:var(--sv-cobalt)}
.hub-tool-art .t-node{fill:#fff;stroke:var(--sv-prussian);stroke-width:2}
.hub-tool-art .t-link{stroke:#9aa7b8;stroke-width:2}
.hub-tool-art .t-pkt{fill:#c8792b}
.hub-tool-art .t-table{fill:#fff;stroke:var(--sv-prussian);stroke-width:1.6}
.hub-tool-art .t-grid{stroke:#c9d4e2}
.hub-tool-art .t-hit{fill:#fff1b8;opacity:.8}
@media (max-width:760px){
 .c-lens{grid-template-columns:1fr;gap:14px}
 .c-lens-code ol{font-size:14px}
 #hub-root[data-subject=computer-science] .hub-tools{grid-template-columns:1fr}
}
#concept-root[data-subject=computer-science] .cx-legend li{grid-template-columns:minmax(48px,max-content) minmax(0,1fr) auto}
.cx-figure .c-mono{white-space:pre}

/* ── Astrophysics: two views side by side, SPACE (dark) and SKY (what you see from Earth) ── */
#concept-root[data-subject=astrophysics] .cx-figure svg *{pointer-events:none}
#concept-root[data-subject=astrophysics] .cx-figure svg .m-handle,#concept-root[data-subject=astrophysics] .cx-figure svg .m-handle *{pointer-events:auto}
#concept-root[data-subject=astrophysics] .cx-figure svg .a-pick,#concept-root[data-subject=astrophysics] .cx-figure svg .a-pick *{pointer-events:auto;cursor:pointer}
.cx-figure .a-pick:focus{outline:none}
.cx-figure .a-pick:focus-visible>rect:first-child{stroke:var(--sv-cobalt);stroke-width:2.4}
#concept-root[data-subject=astrophysics] .cx-legend li{grid-template-columns:minmax(48px,max-content) minmax(0,1fr) auto}
.cx-figure .a-night{fill:#0e1a2e}
.cx-figure .a-day{fill:#cfe5f7}
.cx-figure .a-orbit{fill:none;stroke:#8aa3c9;stroke-width:1.3;stroke-dasharray:4 5;opacity:.75}
.cx-figure .a-ray{stroke:#ffd75e;stroke-width:1.4;opacity:.55}
.cx-figure .a-label{font-size:12.5px;fill:#dfe7f3}
.cx-figure .a-label-dark{font-size:12.5px;fill:var(--sv-ink)}
.cx-figure .a-big{font:600 22px var(--sv-sans);fill:#fff}
.cx-figure .a-mono{font:500 12.5px 'IBM Plex Mono',ui-monospace,monospace;fill:#dfe7f3}
.cx-figure .a-row{font-size:14px;fill:var(--sv-ink)}
.cx-figure .a-note{font-size:13px;fill:var(--sv-muted)}
.cx-figure .a-ground{fill:#7fae6a}
.cx-figure [data-sym].is-hot .a-hot,.cx-figure .a-hot[data-sym].is-hot{stroke:#ffd75e;stroke-width:3.4}
.cx-figure .m-handle .m-handle-ring{fill:#ffffffdd}
.cx-figure [data-sym].is-hot .a-hot-t,.cx-figure .a-hot-t[data-sym].is-hot{fill:#ffd75e;font-weight:700}
.cx-figure [data-sym].is-hot .a-hot-d,.cx-figure .a-hot-d[data-sym].is-hot{fill:var(--sv-cobalt);font-weight:700}
.cx-figure [data-sym].is-hot .a-hot-s,.cx-figure .a-hot-s[data-sym].is-hot{stroke:#ffd75e;stroke-width:3;opacity:1}
.cx-figure .a-halo{paint-order:stroke;stroke:#0e1a2e;stroke-width:4;stroke-linejoin:round}

/* Astrophysics hub: a night window with a ruler from Earth to the edge of the observable universe */
#hub-root[data-subject=astrophysics] .hub-head>div:first-child{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:26px;align-items:end}
#hub-root[data-subject=astrophysics] .hub-head .hub-lead{grid-column:1/-1}
.hub-scope{display:block;width:104px;height:104px}
.hub-scope svg{width:104px;height:104px}
.hub-scope .s-bg{fill:#0e1a2e}
.hub-scope .s-rim{fill:none;stroke:#1f2a3c;stroke-width:7}
.hub-scope .s-moon{fill:#eef1f6}
.hub-scope .s-star{fill:#ffd75e}
#hub-root[data-subject=astrophysics] .hub-lens{background:#0e1a2e;border-color:#0e1a2e}
#hub-root[data-subject=astrophysics] .hub-lens .hub-lens-head h2{color:#fff}
#hub-root[data-subject=astrophysics] .hub-lens .hub-lens-head p{color:#b9c6da}
.hub-ruler{display:block;width:100%;height:auto;margin-top:10px;font-family:var(--sv-sans)}
.hub-ruler .h-night{fill:#0e1a2e}
.hub-ruler .h-star{fill:#fff;opacity:.35}
.hub-ruler .h-star.is-big{opacity:.75}
.hub-ruler .h-axis{stroke:#8aa3c9;stroke-width:2}
.hub-ruler .h-minor{stroke:#56709a;stroke-width:1}
.hub-ruler .h-tick{stroke:#ffd75e;stroke-width:1.6}
.hub-ruler .h-tick-t{font:500 11px 'IBM Plex Mono',ui-monospace,monospace;fill:#ffd75e;paint-order:stroke;stroke:#0e1a2e;stroke-width:6px;stroke-linejoin:round}
.hub-ruler .h-tick-t.is-lead{fill:#8aa3c9}
.hub-ruler .h-name{font-size:12.5px;fill:#dfe7f3}
.hub-ruler .h-drop{stroke:#56709a;stroke-width:1;stroke-dasharray:2 3}
.hub-ruler .h-pin{stroke:#8aa3c9;stroke-width:1.4}
.hub-ruler .h-pin-dot{fill:#ffd75e}
.hub-ruler .h-chip{fill:#16284a;stroke:#8aa3c9;stroke-width:1.4;transition:fill .15s,stroke .15s}
.hub-ruler .h-chip-t{font-size:12.5px;font-weight:600;fill:#fff}
.hub-ruler a{cursor:pointer;outline:none}
.hub-ruler a:is(:hover,:focus-visible) .h-chip{fill:#ffd75e;stroke:#ffd75e}
.hub-ruler a:is(:hover,:focus-visible) .h-chip-t{fill:#0e1a2e}
@media (max-width:760px){
 .hub-ruler{min-width:760px}
 #hub-root[data-subject=astrophysics] .hub-tools{grid-template-columns:1fr}
}
.cx-figure .m-handle .m-handle-ring.a-grip{fill:none;stroke-width:2;stroke-dasharray:4 3}
.cx-figure .m-handle:is(:hover,:focus-visible,.is-drag) .m-handle-ring.a-grip{stroke-width:3;stroke-dasharray:none}
.hub-tool-art rect.t-night{fill:#0e1a2e;stroke:none}

/* V46 page tools: share this view, projector mode, print summary */
.cx-share-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 18px 14px;border-top:1px solid var(--sv-line-soft)}
.cx-mini-btn{min-height:34px;padding:4px 12px;border:1px solid var(--sv-line);border-radius:999px;background:var(--sv-surface);color:var(--sv-prussian);font-size:13px;cursor:pointer}
.cx-mini-btn:hover{border-color:var(--sv-prussian)}
.cx-mini-btn[aria-pressed=true]{background:var(--sv-prussian);color:#fff;border-color:var(--sv-prussian)}
.cx-share-msg{margin:0;font-size:13px;color:var(--sv-muted,#566176);flex:1 1 220px}
.cx-share-msg input{width:100%;margin-top:4px;padding:6px 8px;font:12px/1.4 'IBM Plex Mono',ui-monospace,monospace;border:1px solid var(--sv-line);border-radius:6px}
.cx-print-key{display:none}
html.cx-projecting{overflow:hidden}
.cx-lab.is-projector{position:fixed;inset:0;z-index:2000;margin:0;width:100vw;max-width:none;height:100vh;overflow:auto;padding:2.2vh 2.2vw;background:var(--sv-paper,#f6f4ee);grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:2vw;font-size:clamp(16px,1.2vw,24px)}
.cx-lab.is-projector .cx-figure svg{width:100%;max-height:74vh}
.cx-lab.is-projector .cx-formula{position:static;font-size:1.1em}
.cx-lab.is-projector .cx-eqs{font-size:1.45em}
.cx-lab.is-projector .cx-sub{font-size:1.1em}
.cx-lab:fullscreen{background:var(--sv-paper,#f6f4ee)}
@media(max-width:900px){.cx-lab.is-projector{grid-template-columns:1fr}}
@media print{
 .app-header,.subject-tabs,.section-tabs,.cx-switch,.cx-transport,.cx-controls,.cx-share-row,.cx-tools,.cx-next,.cx-tip,
 .cx-section:has(#cx-predict),.cx-myth button,.cx-problem-actions,.cx-check-choice,.cx-answer button,.cx-feedback,footer{display:none!important}
 .cx-lab{display:block}
 .cx-stage,.cx-formula{border:0;position:static;break-inside:avoid}
 .cx-figure{overflow:visible!important}
 .cx-figure svg{width:100%!important;min-width:0!important;max-height:none;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 .cx-section{break-inside:avoid-page;margin-top:12px}
 .cx-problem{break-inside:avoid;border:1px solid #ccd;padding:8px 12px;margin:6px 0}
 .cx-options button{border:1px solid #bbc;background:#fff;color:#000}
 .cx-answer input{border:0;border-bottom:1px solid #000;border-radius:0;background:transparent}
 .cx-print-key{display:block;break-inside:avoid;margin-top:14px;padding-top:8px;border-top:2px solid #000;font-size:13px}
 .cx-print-key ol{columns:3;margin:4px 0 0}
 a[href]::after{content:none!important}
 /* learn/shared.css hides every button in print; the formula symbols and answer choices are content here */
 #concept-root .cx-sym{display:inline-flex!important}
 #concept-root .cx-options button{display:inline-block!important}
 .cx-lab.is-projector{position:static;height:auto;width:auto;overflow:visible;padding:0}
}
.cx-figure svg.is-stacked{min-width:0}

/* V46 concept links: read these first, read next, the same idea elsewhere */
.cx-pre{margin-top:18px;padding:12px 14px;border:1px dashed var(--sv-line);border-radius:var(--sv-radius-sm);background:var(--sv-surface)}
.cx-pre-k{margin:0 0 8px;font-size:13px;font-weight:600;color:var(--sv-prussian)}
.cx-links{display:flex;flex-wrap:wrap;gap:8px}
.cx-link{display:grid;gap:1px;min-width:0;max-width:340px;padding:8px 12px 9px;border:1px solid var(--sv-line);border-left:4px solid var(--link-color);border-radius:8px;background:var(--sv-surface);color:var(--sv-ink);text-decoration:none;transition:border-color .15s,transform .15s}
.cx-link:hover,.cx-link:focus-visible{border-color:var(--link-color);transform:translateY(-1px)}
.cx-link-subject{font-size:11px;letter-spacing:.6px;color:var(--link-color);font-weight:600}
.cx-link-title{font-size:15px;font-weight:600;color:var(--sv-prussian)}
.cx-link-why{font-size:13px;line-height:1.5;color:var(--sv-muted,#566176)}
.cx-connect-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}
.cx-connect-grid h3{margin:0 0 8px;font-size:15px}
@media print{.cx-connect{display:none!important}}

/* V46 three-minute check on every subject home */
.hub-dx{max-width:760px}
.hub-dx-start{min-height:46px;padding:10px 22px;border:0;border-radius:999px;background:var(--sv-prussian);color:#fff;font-size:16px;font-weight:600;cursor:pointer}
.hub-dx-start.is-again{background:transparent;color:var(--sv-prussian);border:1px solid var(--sv-prussian);margin-top:12px}
.hub-dx-card{padding:20px 22px;border:1px solid var(--sv-line);border-radius:var(--sv-radius);background:var(--sv-surface)}
.hub-dx-count{margin:0;font-size:13px;color:var(--sv-muted,#566176)}
.hub-dx-dots{display:flex;gap:5px;margin:8px 0 14px}
.hub-dx-dots i{width:22px;height:5px;border-radius:3px;background:var(--sv-line)}
.hub-dx-dots i.is-done{background:var(--sv-prussian)}
.hub-dx-dots i.is-now{background:var(--sv-orange,#c8792b)}
.hub-dx-card blockquote{margin:0 0 16px;font-family:var(--sv-serif);font-size:clamp(19px,2.2vw,24px);line-height:1.6;color:var(--sv-ink)}
.hub-dx-answers{display:flex;flex-wrap:wrap;gap:10px}
.hub-dx-answers button{min-height:46px;min-width:110px;padding:8px 18px;border:1px solid var(--sv-line);border-radius:12px;background:var(--sv-surface);color:var(--sv-prussian);font-size:16px;font-weight:600;cursor:pointer}
.hub-dx-answers button:hover,.hub-dx-answers button:focus-visible{border-color:var(--sv-prussian);background:var(--sv-paper,#f6f4ee)}
.hub-dx-back{margin-top:12px;border:0;background:none;color:var(--sv-muted,#566176);cursor:pointer;padding:6px 0}
.hub-dx-score{margin:0 0 10px;font-size:18px;font-weight:600;color:var(--sv-prussian)}
.hub-dx-card h3{margin:14px 0 8px;font-size:16px}
.hub-dx-list{margin:0;padding-left:20px;display:grid;gap:12px}
.hub-dx-list a{font-weight:600;color:var(--sv-prussian)}
.hub-dx-list p{margin:3px 0 0;font-size:14px;line-height:1.6;color:var(--sv-muted,#566176)}
@media (max-width:520px){.hub-dx-card{padding:16px}.hub-dx-answers{flex-wrap:nowrap;gap:8px}.hub-dx-answers button{flex:1 1 0;min-width:0;padding:8px 4px;font-size:15px}}
/* Biology round 7: rings mark the moths of a highlighted genotype */
.cx-figure .ns-ring{fill:none;stroke:none}
.cx-figure [data-sym].is-hot .ns-ring{stroke:var(--sv-cobalt);stroke-width:2.4}
