:root {
  color-scheme: dark;
  --bg: #0f1319;
  --bg-deep: #0b0f14;
  --panel: #151c26;
  --panel-soft: #111820;
  --panel-raised: #19222e;
  --text: #f2f5f7;
  --text-soft: #c6cdd5;
  --muted: #93a0af;
  --faint: #748191;
  --line: #293440;
  --line-soft: #222b36;
  --blue: #72b2f4;
  --blue-strong: #4d98eb;
  --blue-soft: rgba(91, 157, 239, .14);
  --teal: #2cc493;
  --teal-soft: rgba(44, 196, 147, .13);
  --yellow: #e1ad47;
  --yellow-soft: rgba(225, 173, 71, .13);
  --red: #ef6a68;
  --red-soft: rgba(239, 106, 104, .13);
  --violet: #a792ec;
  --shadow-card: 0 0 0 1px rgba(255, 255, 255, .07), 0 1px 2px rgba(0, 0, 0, .24), 0 18px 42px rgba(0, 0, 0, .12);
  --shadow-card-hover: 0 0 0 1px rgba(255, 255, 255, .12), 0 2px 6px rgba(0, 0, 0, .28), 0 24px 50px rgba(0, 0, 0, .17);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; background: var(--bg); }
body { min-height: 100%; margin: 0; color: var(--text); background: radial-gradient(circle at 73% -8%, rgba(61, 126, 202, .16), transparent 34rem), var(--bg); }
h1, h2, h3, p, figure, blockquote { margin-top: 0; }
h1, h2, h3 { font-family: Outfit, Inter, sans-serif; text-wrap: balance; }
p, li, figcaption, blockquote { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 3px; }
svg { display: block; }
strong, .formula, .metric-top, table { font-variant-numeric: tabular-nums; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 999; padding: 11px 15px; border-radius: 9px; color: var(--bg); background: var(--text); transform: translateY(-160%); transition-property: transform; transition-duration: 150ms; transition-timing-function: ease-out; }
.skip-link:focus { transform: translateY(0); }

.guide-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 66px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  background: rgba(11, 15, 20, .9);
  box-shadow: 0 1px rgba(255, 255, 255, .07);
  backdrop-filter: blur(18px);
}
.guide-brand { min-width: 0; display: inline-flex; align-items: center; gap: 10px; justify-self: start; color: var(--text); text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 11px; color: #06140f; background: linear-gradient(145deg, #55dfb3, #25b98c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32), 0 7px 18px rgba(23, 187, 137, .16); }
.brand-mark svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.guide-brand > span:last-child { min-width: 0; display: grid; gap: 1px; }
.guide-brand small { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.guide-brand strong { overflow: hidden; font-family: Outfit, Inter, sans-serif; font-size: 17px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.guide-context { justify-self: center; padding: 7px 11px; border-radius: 999px; color: var(--text-soft); background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.header-action { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; justify-self: end; padding: 0 12px 0 14px; border-radius: 10px; color: #071611; background: var(--teal); font-size: 11px; font-weight: 800; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 8px 18px rgba(44, 196, 147, .13); transition-property: scale, background-color; transition-duration: 150ms; transition-timing-function: ease-out; }
.header-action:hover { background: #43d0a1; }
.header-action:active { scale: .96; }
.header-action svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

main { overflow: clip; }
.guide-hero { position: relative; max-width: 1240px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 52px; align-items: end; margin: 0 auto; padding: 92px 32px 76px; }
.hero-glow { position: absolute; top: 9%; left: 42%; width: 34rem; height: 20rem; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(91, 157, 239, .14), transparent 67%); filter: blur(24px); }
.eyebrow, .section-kicker { display: block; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.guide-hero h1 { max-width: 800px; margin: 16px 0 22px; font-size: clamp(42px, 6vw, 72px); font-weight: 600; line-height: .98; letter-spacing: -.045em; }
.hero-copy > p { max-width: 760px; margin-bottom: 28px; color: var(--text-soft); font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.primary-link, .secondary-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border-radius: 10px; font-size: 11px; font-weight: 800; text-decoration: none; transition-property: scale, background-color, box-shadow; transition-duration: 150ms; transition-timing-function: ease-out; }
.primary-link { color: #071611; background: var(--teal); box-shadow: 0 8px 20px rgba(44, 196, 147, .14); }
.secondary-link { color: var(--text-soft); background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.primary-link:hover { background: #43d0a1; }
.secondary-link:hover { background: rgba(255, 255, 255, .075); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.primary-link:active, .secondary-link:active { scale: .96; }
.hero-summary { padding: 22px; border-radius: 18px; background: linear-gradient(155deg, rgba(25, 34, 46, .95), rgba(17, 24, 32, .96)); box-shadow: var(--shadow-card); }
.summary-label { display: block; margin-bottom: 14px; color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero-summary ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.hero-summary li { position: relative; padding-left: 20px; color: var(--text-soft); font-size: 11px; line-height: 1.45; }
.hero-summary li::before { content: ""; position: absolute; top: .38em; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }

.guide-layout { max-width: 1240px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; margin: 0 auto; padding: 0 32px 90px; }
.guide-nav { position: sticky; top: 94px; padding: 17px; border-radius: 16px; background: rgba(17, 24, 32, .74); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); backdrop-filter: blur(12px); }
.nav-label { display: block; margin: 2px 0 10px; color: var(--faint); font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.guide-nav nav { display: grid; }
.guide-nav nav a { min-height: 37px; display: flex; align-items: center; padding: 7px 9px; border-radius: 8px; color: var(--muted); font-size: 10px; line-height: 1.3; text-decoration: none; transition-property: color, background-color; transition-duration: 140ms; transition-timing-function: ease-out; }
.guide-nav nav a:hover, .guide-nav nav a:focus-visible { color: var(--text); background: rgba(255, 255, 255, .055); }
.guide-article { min-width: 0; }
.guide-section { padding: 70px 0 8px; scroll-margin-top: 70px; }
.guide-section:first-child { padding-top: 18px; }
.guide-section + .guide-section { margin-top: 58px; box-shadow: 0 -1px var(--line-soft); }
.guide-section h2 { max-width: 760px; margin: 12px 0 18px; font-size: clamp(29px, 4vw, 43px); font-weight: 600; line-height: 1.07; letter-spacing: -.032em; }
.guide-section > p { max-width: 810px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.guide-section .section-lede { color: var(--text-soft); font-size: 16px; }

.concept-grid { display: grid; gap: 10px; margin-top: 26px; }
.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.concept-card { min-width: 0; padding: 18px; border-radius: 15px; background: var(--panel); box-shadow: var(--shadow-card); }
.concept-card.accent-blue { background: linear-gradient(155deg, rgba(91, 157, 239, .15), var(--panel) 62%); box-shadow: inset 0 0 0 1px rgba(91, 157, 239, .19), 0 18px 42px rgba(0, 0, 0, .12); }
.concept-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 9px; color: var(--blue); background: var(--blue-soft); }
.concept-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.concept-card h3 { margin-bottom: 8px; font-size: 17px; }
.concept-card p { min-height: 74px; margin-bottom: 14px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.scope-tag { display: inline-flex; align-items: center; min-height: 25px; padding: 0 8px; border-radius: 999px; color: #91ebcf; background: var(--teal-soft); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.scope-tag.muted { color: var(--faint); background: rgba(255, 255, 255, .045); }
.learning-note { display: grid; gap: 5px; margin: 18px 0 0; padding: 15px 17px; border-radius: 13px; color: #b9d9ff; background: var(--blue-soft); box-shadow: inset 0 0 0 1px rgba(91, 157, 239, .2); }
.learning-note strong { font-size: 11px; }
.learning-note span { color: #a6b9ce; font-size: 10px; line-height: 1.55; }
.learning-note.warning { color: #efd18e; background: var(--yellow-soft); box-shadow: inset 0 0 0 1px rgba(225, 173, 71, .2); }
.learning-note.warning span { color: #c7b996; }
.student-primer { margin-top: 18px; padding: 20px; border-radius: 15px; background: linear-gradient(145deg, rgba(91, 157, 239, .1), rgba(17, 24, 32, .96)); box-shadow: var(--shadow-card); }
.student-primer h3 { margin: 8px 0; font-size: 17px; }
.student-primer > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.primer-equation { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 7px; margin: 17px 0; }
.primer-equation > span { display: grid; align-content: center; gap: 5px; min-height: 76px; padding: 12px; border-radius: 10px; color: var(--text-soft); background: rgba(7, 13, 19, .5); font-size: 9px; font-weight: 750; }
.primer-equation > span.result { color: #91ebcf; background: rgba(44, 196, 147, .1); box-shadow: inset 0 0 0 1px rgba(44, 196, 147, .17); }
.primer-equation small { color: var(--faint); font-size: 7.5px; font-weight: 500; line-height: 1.4; }
.primer-equation b { align-self: center; color: var(--faint); font-size: 14px; }

.learning-figure { max-width: 100%; margin: 28px 0 20px; overflow-x: auto; border-radius: 18px; background: #111820; box-shadow: var(--shadow-card); scrollbar-gutter: stable; }
.figure-heading { min-width: 620px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 18px 20px 8px; }
.figure-heading span { color: var(--faint); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.figure-heading h3 { margin: 5px 0 0; font-size: 16px; }
.legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 8px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.legend i { width: 18px; height: 3px; border-radius: 999px; background: var(--blue); }
.legend i.demand { background: #f2f5f7; }
.legend i.supply { background: var(--teal); }
.legend i.gap { height: 8px; background: rgba(239, 106, 104, .65); }
.legend i.base-curve { background: var(--blue); }
.legend i.full-curve { background: var(--teal); }
.legend i.net-before { background: var(--blue); }
.legend i.net-after { background: var(--teal); }
.legend i.battery-action { height: 8px; background: rgba(167, 146, 236, .62); }
.legend i.target-key { height: 14px; width: 2px; border-radius: 0; background: var(--yellow); }
.chart-mount { min-width: 680px; min-height: 285px; }
.chart-mount noscript { display: block; padding: 40px 20px; color: var(--muted); }
.student-chart { display: block; width: 100%; min-width: 680px; height: auto; overflow: visible; font-family: Inter, sans-serif; }
.chart-grid-line { stroke: #293746; stroke-width: 1; }
.chart-grid-line.vertical { stroke: #24313e; }
.chart-axis-line, .chart-x-tick { stroke: #506071; stroke-width: 1; }
.chart-tick { fill: #91a0b2; font-size: 10px; font-variant-numeric: tabular-nums; }
.chart-axis-title { fill: #aeb9c6; font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.chart-series, .risk-curve, .net-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.demand-series { stroke: #f2f5f7; }
.supply-series { stroke: var(--teal); }
.shortfall-fill { fill: rgba(239, 106, 104, .38); stroke: rgba(255, 139, 136, .88); stroke-width: 1; vector-effect: non-scaling-stroke; }
.shortfall-point { fill: #ff8b88; stroke: #111820; stroke-width: 2; vector-effect: non-scaling-stroke; }
.deficit-bracket { stroke: #ffaaa8; stroke-width: 1.5; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.risk-window { stroke: #ff8b88; stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart-callout { fill: #eef3f7; font-size: 10px; font-weight: 750; }
.chart-callout.subtle { fill: #aab6c3; font-size: 9px; }
.grid-lines line { stroke: #27323e; stroke-width: 1; }
.axis-labels text { fill: var(--faint); font-family: Inter, sans-serif; font-size: 10px; }
.demand-line, .supply-line, .risk-curve, .net-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.demand-line { stroke: #f2f5f7; }
.supply-line { stroke: var(--teal); }
.shortfall-fill { fill: rgba(239, 106, 104, .42); stroke: rgba(239, 106, 104, .8); stroke-width: 1; }
.annotation-line { stroke: var(--red); stroke-width: 1.3; stroke-dasharray: 4 4; }
.annotation-text, .elcc-label, .curve-label { fill: var(--text-soft); font-family: Inter, sans-serif; font-size: 11px; font-weight: 700; }
.annotation-sub { fill: var(--muted); font-family: Inter, sans-serif; font-size: 9px; }
.learning-figure figcaption { min-width: 620px; padding: 12px 20px 17px; color: var(--muted); font-size: 9px; line-height: 1.55; box-shadow: 0 -1px rgba(255, 255, 255, .05); }
.chart-stat-row { min-width: 680px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0 20px 14px; overflow: hidden; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.chart-stat-row > div { display: grid; gap: 4px; min-height: 88px; align-content: center; padding: 14px; background: #151e27; }
.chart-stat-row span { color: var(--faint); font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.chart-stat-row strong { color: var(--text); font-family: Outfit, Inter, sans-serif; font-size: 20px; font-variant-numeric: tabular-nums; }
.chart-stat-row small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.chart-reading-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 18px 0 8px; }
.chart-reading-grid.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chart-reading-grid article { padding: 17px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .055); }
.chart-reading-grid article > span { color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.chart-reading-grid h3 { margin: 8px 0; font-size: 14px; line-height: 1.3; }
.chart-reading-grid p { margin: 0; color: var(--muted); font-size: 9.5px; line-height: 1.62; }
.event-walkthrough { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.event-walkthrough > div { display: grid; align-content: start; gap: 5px; min-height: 142px; padding: 15px; border-radius: 13px; background: var(--panel); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .055); }
.event-walkthrough > div > span, .process-steps > div > span { width: 25px; height: 25px; display: grid; place-items: center; margin-bottom: 4px; border-radius: 7px; color: var(--blue); background: var(--blue-soft); font-size: 8px; font-weight: 800; }
.event-walkthrough strong { font-size: 10px; }
.event-walkthrough small { color: var(--faint); font-size: 8.5px; line-height: 1.5; }

.study-equation { display: grid; grid-template-columns: minmax(120px, 1fr) auto minmax(150px, 1fr) auto minmax(170px, 1.1fr); align-items: center; gap: 10px; margin: 25px 0 18px; }
.study-equation > div { min-height: 86px; display: grid; place-items: center; align-content: center; gap: 4px; border-radius: 14px; background: var(--panel); box-shadow: var(--shadow-card); text-align: center; }
.study-equation strong { font-family: Outfit, Inter, sans-serif; font-size: 25px; }
.study-equation span { color: var(--muted); font-size: 9px; }
.study-equation i { color: var(--faint); font-family: Outfit, Inter, sans-serif; font-size: 20px; font-style: normal; }
.study-equation .result { background: linear-gradient(145deg, rgba(44, 196, 147, .16), var(--panel)); box-shadow: inset 0 0 0 1px rgba(44, 196, 147, .22), 0 18px 42px rgba(0, 0, 0, .12); }
.study-equation .result strong { color: #8ee7cb; }
.sample-matrix { display: grid; grid-template-columns: 92px repeat(4, minmax(54px, 1fr)); gap: 6px; margin: 18px 0; padding: 15px; border-radius: 15px; background: var(--panel-soft); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.matrix-corner, .matrix-head, .matrix-year { min-height: 30px; display: grid; place-items: center; color: var(--faint); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.matrix-year { justify-items: start; color: var(--muted); }
.case { min-height: 30px; border-radius: 7px; background: var(--blue-soft); box-shadow: inset 0 0 0 1px rgba(91, 157, 239, .12); }
.case.risk { background: var(--yellow-soft); box-shadow: inset 0 0 0 1px rgba(225, 173, 71, .16); }
.case.event { background: var(--red-soft); box-shadow: inset 0 0 0 1px rgba(239, 106, 104, .18); }
.case.more { background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .045); }
.two-column-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.two-column-copy article { padding: 17px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .055); }
.two-column-copy h3 { margin-bottom: 8px; font-size: 15px; }
.two-column-copy p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.student-deep-dive { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 18px 0; }
.student-deep-dive > div { padding: 17px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .055); }
.student-deep-dive span { color: var(--teal); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.student-deep-dive h3 { margin: 8px 0; font-size: 14px; }
.student-deep-dive p { margin: 0; color: var(--muted); font-size: 9.5px; line-height: 1.62; }

.metric-learning-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 24px; }
.metric-learning-grid article { min-width: 0; display: flex; flex-direction: column; padding: 17px; border-radius: 14px; background: var(--panel); box-shadow: var(--shadow-card); }
.metric-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.metric-top strong { color: var(--blue); font-family: Outfit, Inter, sans-serif; font-size: 20px; }
.metric-top span { color: var(--faint); font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.metric-learning-grid p { flex: 1; margin-bottom: 13px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.formula { overflow-x: auto; padding: 10px; border-radius: 9px; color: #d9eaff; background: rgba(91, 157, 239, .08); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; line-height: 1.55; white-space: nowrap; }
.comparison-table-wrap { overflow-x: auto; margin-top: 18px; border-radius: 14px; box-shadow: var(--shadow-card); }
table { width: 100%; min-width: 680px; border-collapse: collapse; background: var(--panel); }
th, td { padding: 12px 13px; border-bottom: 1px solid var(--line-soft); text-align: left; }
th { color: var(--faint); background: rgba(255, 255, 255, .02); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
td { color: var(--muted); font-size: 9px; line-height: 1.45; }
td:first-child { color: var(--text-soft); font-weight: 800; }
tbody tr:last-child td { border-bottom: 0; }
.metric-worked-example { background: rgba(91, 157, 239, .09); box-shadow: inset 0 0 0 1px rgba(91, 157, 239, .2); }
.metric-worked-example blockquote { color: #c9d9eb; }
.metric-worked-example > p { color: #9cafc2; }
.worked-math-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin: 15px 0; }
.worked-math-grid div { display: grid; gap: 5px; padding: 12px; border-radius: 10px; background: rgba(7, 13, 19, .38); }
.worked-math-grid strong { color: #e5eef7; font-size: 10px; font-variant-numeric: tabular-nums; }
.worked-math-grid span { color: var(--faint); font-size: 8px; line-height: 1.45; }

.confidence-demo { display: grid; gap: 15px; margin: 25px 0; padding: 20px; border-radius: 16px; background: var(--panel); box-shadow: var(--shadow-card); }
.confidence-demo > div { display: grid; grid-template-columns: 124px minmax(160px, 1fr) 126px; align-items: center; gap: 14px; }
.confidence-label { color: var(--text-soft); font-size: 9px; font-weight: 700; }
.confidence-demo small { color: var(--faint); font-size: 8px; }
.confidence-track { position: relative; height: 18px; display: block; font-style: normal; }
.confidence-track::before { content: ""; position: absolute; top: 8px; right: 0; left: 0; height: 2px; border-radius: 999px; background: #293440; }
.confidence-track .interval { position: absolute; top: 6px; left: var(--left); width: var(--width); height: 6px; border-radius: 999px; background: var(--teal); }
.confidence-track .interval.warning { background: var(--yellow); }
.confidence-track .interval.bad { background: var(--red); }
.confidence-track em { position: absolute; top: 3px; left: var(--point); width: 12px; height: 12px; border: 2px solid var(--panel); border-radius: 50%; background: var(--text); transform: translateX(-50%); }
.confidence-track u { position: absolute; top: 0; bottom: 0; left: var(--target); border-left: 1px dashed var(--blue); text-decoration: none; }
.confidence-track u::after { content: "0.1"; position: absolute; top: -11px; left: 4px; color: var(--blue); font-size: 7px; }
.compact-figure .chart-mount { min-height: 260px; }
.criterion-line { stroke: var(--yellow); stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.criterion-label { fill: #efd18e; font-size: 9px; font-weight: 800; }
.confidence-name { fill: var(--text-soft); font-size: 10px; font-weight: 750; }
.confidence-whisker, .confidence-cap { stroke-width: 3; vector-effect: non-scaling-stroke; }
.confidence-row.good .confidence-whisker, .confidence-row.good .confidence-cap { stroke: var(--teal); }
.confidence-row.warning .confidence-whisker, .confidence-row.warning .confidence-cap { stroke: var(--yellow); }
.confidence-row.bad .confidence-whisker, .confidence-row.bad .confidence-cap { stroke: var(--red); }
.confidence-dot { fill: #f4f7fa; stroke: #10171f; stroke-width: 2; vector-effect: non-scaling-stroke; }
.confidence-value { fill: #d7e0e9; font-size: 9px; font-weight: 750; font-variant-numeric: tabular-nums; }
.confidence-note { fill: var(--faint); font-size: 8px; }

.process-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 24px 0 18px; }
.process-steps > div { min-height: 175px; padding: 16px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .055); }
.process-steps strong { display: block; margin-bottom: 7px; font-size: 10px; }
.process-steps p { margin: 0; color: var(--faint); font-size: 8.5px; line-height: 1.55; }
.formula-block { display: grid; gap: 7px; padding: 17px; border-radius: 14px; background: var(--blue-soft); box-shadow: inset 0 0 0 1px rgba(91, 157, 239, .2); }
.formula-block span { color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.formula-block strong { color: #d9eaff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; line-height: 1.6; }
.fine-print { margin-top: 13px; color: var(--faint) !important; font-size: 9px !important; }
.firm-need-example { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 17px; align-items: center; margin-top: 12px; padding: 15px 17px; border-radius: 13px; background: var(--panel); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .055); }
.firm-need-example > div { display: grid; gap: 4px; }
.firm-need-example span { color: var(--faint); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.firm-need-example strong { color: #91ebcf; font-family: Outfit, Inter, sans-serif; font-size: 20px; font-variant-numeric: tabular-nums; }
.firm-need-example p { margin: 0; color: var(--muted); font-size: 9.5px; line-height: 1.6; }

.definition-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.definition-pair article { padding: 19px; border-radius: 15px; background: var(--panel); box-shadow: var(--shadow-card); }
.definition-pair article > span { display: inline-flex; min-height: 26px; align-items: center; padding: 0 9px; border-radius: 999px; color: var(--blue); background: var(--blue-soft); font-size: 9px; font-weight: 800; }
.definition-pair article:nth-child(2) > span { color: #91ebcf; background: var(--teal-soft); }
.definition-pair h3 { margin: 12px 0 8px; font-size: 18px; }
.definition-pair p { min-height: 66px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.definition-pair small { display: block; margin-top: 10px; color: var(--faint); font-size: 8px; line-height: 1.5; }
.risk-curve.base { stroke: var(--blue); }
.risk-curve.full { stroke: var(--teal); }
.match-line { stroke: var(--yellow); stroke-width: 1.3; stroke-dasharray: 5 5; }
.match-dot.base { fill: var(--blue); stroke: #d8ebff; stroke-width: 2; }
.match-dot.full { fill: var(--teal); stroke: #d8fff3; stroke-width: 2; }
.elcc-arrow { stroke: var(--yellow); stroke-width: 1.5; }
.elcc-arrow-head { fill: var(--yellow); }
.elcc-label { fill: #efd18e; }
.curve-label.base { fill: var(--blue); }
.curve-label.full { fill: var(--teal); }
.matched-risk-label { fill: #efd18e; font-size: 9px; font-weight: 750; }
.match-drop { stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.match-drop.base { stroke: rgba(91, 157, 239, .75); }
.match-drop.full { stroke: rgba(44, 196, 147, .75); }
.match-point-label { font-size: 9px; font-weight: 800; font-variant-numeric: tabular-nums; }
.match-point-label.base { fill: #9bcafb; }
.match-point-label.full { fill: #91ebcf; }
.arrow-marker { fill: var(--yellow); }
.lab-method { padding: 20px; border-radius: 16px; background: linear-gradient(150deg, rgba(91, 157, 239, .11), rgba(17, 24, 32, .96)); box-shadow: var(--shadow-card); }
.lab-badge { display: inline-flex; min-height: 27px; align-items: center; padding: 0 9px; border-radius: 999px; color: #b9d9ff; background: var(--blue-soft); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.lab-method ol { display: grid; gap: 9px; margin: 17px 0 13px; padding-left: 20px; }
.lab-method li { color: var(--text-soft); font-size: 10px; line-height: 1.55; }
.lab-method p { margin: 0; color: var(--faint); font-size: 9px; line-height: 1.55; }

.charge-area { fill: rgba(167, 146, 236, .24); stroke: rgba(167, 146, 236, .62); stroke-width: 1; }
.discharge-area { fill: rgba(44, 196, 147, .22); stroke: rgba(44, 196, 147, .62); stroke-width: 1; }
.net-line.before { stroke: var(--blue); }
.net-line.after { stroke: var(--teal); }
.peak-point { stroke: #10171f; stroke-width: 2; vector-effect: non-scaling-stroke; }
.peak-point.before { fill: var(--blue); }
.peak-point.after { fill: var(--teal); }
.power-zero-line { stroke: #7e8d9d; stroke-width: 1; vector-effect: non-scaling-stroke; }
.power-bar.charge { fill: rgba(167, 146, 236, .85); }
.power-bar.discharge { fill: rgba(44, 196, 147, .8); }
.chart-panel-label { fill: #aeb9c6; font-size: 9px; font-weight: 750; }
.factor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.factor-grid article { display: grid; gap: 6px; padding: 15px; border-radius: 13px; background: var(--panel); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .055); }
.factor-grid strong { color: var(--text-soft); font-size: 10px; }
.factor-grid span { color: var(--faint); font-size: 8.5px; line-height: 1.55; }

.result-story { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 23px; }
.result-story > div { display: grid; grid-template-columns: 31px minmax(0, 1fr); column-gap: 11px; padding: 16px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .055); }
.result-story span { grid-row: 1 / span 2; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; color: var(--teal); background: var(--teal-soft); font-size: 8px; font-weight: 800; }
.result-story h3 { margin-bottom: 6px; font-size: 13px; }
.result-story p { margin: 0; color: var(--faint); font-size: 8.5px; line-height: 1.55; }
.worked-example { margin-top: 18px; padding: 19px; border-radius: 15px; background: var(--yellow-soft); box-shadow: inset 0 0 0 1px rgba(225, 173, 71, .2); }
.worked-label { color: var(--yellow); font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.worked-example blockquote { margin: 12px 0 10px; color: #e5d3aa; font-family: Outfit, Inter, sans-serif; font-size: 14px; line-height: 1.55; }
.worked-example p { margin: 0; color: #bcad89; font-size: 9px; }

.question-list { display: grid; gap: 8px; margin-top: 23px; }
.question-list article { display: grid; grid-template-columns: 37px minmax(0, 1fr); gap: 12px; padding: 15px; border-radius: 13px; background: var(--panel); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .055); }
.question-list article > span { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 9px; color: var(--blue); background: var(--blue-soft); font-size: 8px; font-weight: 800; }
.question-list strong { display: block; margin: 3px 0 5px; font-size: 11px; }
.question-list p { margin: 0; color: var(--faint); font-size: 9px; line-height: 1.5; }
.career-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 22px; padding: 22px; border-radius: 17px; background: linear-gradient(135deg, rgba(44, 196, 147, .18), rgba(91, 157, 239, .11)); box-shadow: inset 0 0 0 1px rgba(44, 196, 147, .22), 0 20px 45px rgba(0, 0, 0, .14); }
.career-card > div { max-width: 590px; }
.career-card > div > span { color: #91ebcf; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.career-card h3 { margin: 8px 0; font-size: 20px; }
.career-card p { margin: 0; color: #a8bbb7; font-size: 10px; line-height: 1.55; }
.career-card > a { min-height: 42px; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px 0 14px; border-radius: 10px; color: #071611; background: var(--teal); font-size: 10px; font-weight: 800; text-decoration: none; transition-property: scale, background-color; transition-duration: 150ms; transition-timing-function: ease-out; }
.career-card > a:hover { background: #43d0a1; }
.career-card > a:active { scale: .96; }
.career-card > a svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.references { padding-bottom: 70px; }
.reference-list { display: grid; gap: 8px; margin-top: 22px; }
.reference-list a { position: relative; display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 4px 15px; min-height: 80px; align-content: center; padding: 14px 44px 14px 16px; border-radius: 13px; background: var(--panel); box-shadow: var(--shadow-card); text-decoration: none; transition-property: background-color, box-shadow; transition-duration: 150ms; transition-timing-function: ease-out; }
.reference-list a:hover { background: var(--panel-raised); box-shadow: var(--shadow-card-hover); }
.reference-list a::after { content: "↗"; position: absolute; top: 50%; right: 17px; color: var(--blue); font-size: 16px; transform: translateY(-50%); }
.reference-list span { grid-row: 1 / span 2; align-self: center; color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.reference-list strong { font-size: 11px; }
.reference-list small { color: var(--faint); font-size: 8.5px; line-height: 1.45; }

.guide-footer { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px max(24px, calc((100vw - 1176px) / 2)); color: var(--faint); background: var(--bg-deep); box-shadow: 0 -1px var(--line-soft); font-size: 9px; }
.guide-footer a { min-height: 40px; display: inline-flex; align-items: center; color: var(--blue); font-weight: 700; }

a:focus-visible { outline: 2px solid #9bcafb; outline-offset: 3px; }

@media (max-width: 960px) {
  .guide-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 68px; }
  .hero-summary { max-width: 680px; }
  .guide-layout { grid-template-columns: 1fr; gap: 0; }
  .guide-nav { position: relative; top: auto; display: none; }
  .guide-section:first-child { padding-top: 12px; }
  .three-up, .factor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .concept-card:last-child { grid-column: 1 / -1; }
  .process-steps, .event-walkthrough { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .guide-header { grid-template-columns: minmax(0, 1fr) auto; height: 60px; padding: 0 12px; }
  .guide-context { display: none; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; }
  .guide-brand small { display: none; }
  .guide-brand strong { font-size: 14px; }
  .header-action { min-height: 40px; padding: 0 10px; }
  .header-action span { display: none; }
  .guide-hero { padding: 54px 18px 55px; }
  .guide-hero h1 { font-size: clamp(38px, 12vw, 55px); }
  .hero-copy > p { font-size: 15px; }
  .guide-layout { padding: 0 18px 60px; }
  .guide-section { padding-top: 56px; }
  .guide-section + .guide-section { margin-top: 45px; }
  .three-up, .metric-learning-grid, .two-column-copy, .definition-pair, .factor-grid, .result-story, .chart-reading-grid, .chart-reading-grid.two-up { grid-template-columns: 1fr; }
  .concept-card:last-child { grid-column: auto; }
  .concept-card p, .definition-pair p { min-height: 0; }
  .study-equation { grid-template-columns: 1fr; }
  .study-equation i { transform: rotate(90deg); }
  .primer-equation { grid-template-columns: 1fr; }
  .primer-equation b { justify-self: center; }
  .sample-matrix { grid-template-columns: 65px repeat(4, minmax(40px, 1fr)); gap: 4px; padding: 10px; }
  .student-deep-dive { grid-template-columns: 1fr; }
  .firm-need-example { grid-template-columns: 1fr; }
  .worked-math-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-steps, .event-walkthrough { grid-template-columns: 1fr; }
  .event-walkthrough > div, .process-steps > div { min-height: 0; }
  .career-card { display: grid; gap: 18px; }
  .career-card > a { justify-self: start; }
  .reference-list a { grid-template-columns: 1fr; padding-left: 16px; }
  .reference-list span { grid-row: auto; }
  .guide-footer { display: grid; justify-items: start; }
}

@media (max-width: 390px) {
  .guide-hero, .guide-layout { padding-right: 14px; padding-left: 14px; }
  .guide-hero h1 { font-size: 38px; }
  .hero-actions { display: grid; }
  .primary-link, .secondary-link { width: 100%; }
  .question-list article { grid-template-columns: 31px minmax(0, 1fr); gap: 9px; padding: 12px; }
  .question-list article > span { width: 31px; height: 31px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
