.learn-page main { --ink:var(--text); --muted:#586572; --blue:#0066c9; --rule:#dbe2e8; }
.skip { position:fixed; top:-90px; left:12px; z-index:1100; padding:10px; background:white; }
.skip:focus { top:10px; }
.library { padding-block:clamp(28px,4vw,56px) clamp(56px,7vw,88px); }
.library h1.section-title { margin:0 0 clamp(18px,2.5vw,32px); }
.reader { width:min(calc(100% - 72px),1120px); margin-inline:auto; padding-block:36px 80px; }
.reader a { color:var(--blue); }
.reader section p a, .reader .return-link { text-decoration:underline; text-underline-offset:3px; }
.story section ol, .story section ul { padding-inline-start:1.6em; margin:12px 0 16px; }
.story section ol { list-style:decimal; }
.story section ul { list-style:disc; }
.story section li { margin-block:6px; }
.reader-grid{display:grid;grid-template-columns:minmax(145px,190px) minmax(0,720px);justify-content:center;gap:clamp(32px,5.5vw,82px)}
.story{min-width:0;color:#2f373c;font-size:18px;line-height:1.9;overflow-wrap:break-word}
.story-head{padding-bottom:26px;border-bottom:1px solid var(--rule);margin-bottom:32px}
.story h1,.story h2,.story h3{color:var(--ink);text-wrap:pretty;letter-spacing:-.035em}
.story h1{margin:10px 0 12px;font-size:clamp(36px,4vw,56px);line-height:1.22}
.deck{margin:0;color:#455461;font-size:clamp(19px,2vw,25px);line-height:1.5}
.byline{display:flex;align-items:center;flex-wrap:wrap;gap:4px 16px;color:var(--muted);font-size:14px;margin-top:20px;line-height:1.65}
.byline a{font-size:14px}
.story section{scroll-margin-top:calc(96px + var(--nav-extra))}.story section+section{margin-top:48px}
.story section p{margin:0 0 18px}
.story h2{font-size:clamp(25px,2.3vw,32px);line-height:1.45;margin:0 0 16px}
.story h3{font-size:clamp(20px,1.6vw,23px);line-height:1.5;margin:28px 0 12px}
.story .first-question{font-size:clamp(20px,1.6vw,23px);margin-top:28px}
.story strong,.story b{font-weight:650;color:#19232b}
.story sup{line-height:0;font-size:.68em;white-space:nowrap}
.story sup a{padding-inline:2px}
.outline{align-self:start;position:sticky;top:calc(96px + var(--nav-extra));padding:4px 0}
.outline p{margin:0 0 10px;font-size:14px;font-weight:650}
.outline ul,.mobile-outline ul{padding:0;list-style:none;margin:0}
.outline a,.mobile-outline a{display:block;color:var(--muted);font-size:14px;line-height:1.5;padding:9px 12px;border-left:2px solid var(--rule)}
.outline a[aria-current],.mobile-outline a[aria-current]{color:var(--blue);border-color:var(--blue);font-weight:600}
.mobile-outline{display:none}
.story figure{margin:26px 0}
.fig-open{display:block;position:relative;border:1px solid var(--rule);border-radius:14px;overflow:hidden;padding:clamp(8px,1.4vw,18px);cursor:zoom-in;background:#fff}
.fig-open img{display:block;width:100%;height:auto;max-height:430px;object-fit:contain}
.fig-open .magnify{position:absolute;right:8px;bottom:8px;display:grid;place-items:center;width:32px;height:32px;border:1px solid #cbd4dd;background:rgba(255,255,255,.96);color:#39546a;border-radius:50%}
.magnify svg{width:17px;height:17px}
figcaption{margin:10px 1px 0;font-size:14px;color:var(--muted);line-height:1.7}
.parts{display:grid;grid-template-columns:max-content 1fr;background:#f5f8fa;border:1px solid var(--rule);border-radius:12px;overflow:hidden;font-size:.94em;margin:20px 0 24px}
.parts dt,.parts dd{padding:13px 16px;border-bottom:1px solid var(--rule);margin:0}
.parts dt{font-weight:650}.parts dd{padding-left:2px}
.parts dt:last-of-type,.parts dd:last-of-type{border-bottom:0}
.sources{border-top:1px solid var(--rule);padding-top:32px}
.sources ol{padding-left:1.7em;margin:0;font-size:16px}
.sources li{padding:0 0 12px 4px;scroll-margin-top:calc(96px + var(--nav-extra))}
.sources li::marker{color:var(--muted)}.sources li span{display:block;color:var(--muted);font-size:14px}
.return-link{display:inline-block;margin-top:28px}
.lightbox{position:fixed;inset:0;width:fit-content;max-width:min(1240px,96vw);padding:0;border:1px solid var(--rule);border-radius:16px;background:white;color:var(--ink);box-shadow:0 18px 88px #0a172840}
.lightbox::backdrop{background:#16222bd1}
.lightbox[open]{width:min(1240px,96vw)}
.image-bar{display:flex;align-items:center;gap:8px;min-height:55px;padding:7px 14px;border-bottom:1px solid var(--rule)}
.image-bar strong{font-size:15px;margin-right:auto}.image-bar button{border:1px solid var(--rule);border-radius:18px;background:white;padding:8px 14px;color:var(--blue);font:inherit;font-size:14px;cursor:pointer}
.image-stage{width:100%;height:min(74vh,800px);height:min(74dvh,800px);overflow:auto;overscroll-behavior:contain;background:#fff}
.image-stage img{display:block;width:100%;height:100%;object-fit:contain}
.lightbox.zoomed .image-stage img{width:auto;height:auto;max-width:none;max-height:none}
body:has(.lightbox[open]){overflow:hidden}
@media(max-width:780px){
  .reader{width:calc(100% - 40px)}
  .reader-grid{display:block}.outline{display:none}
  .story-head{margin-bottom:0}.mobile-outline{display:block;margin:0 0 24px;border-bottom:1px solid var(--rule);padding:5px 0;font-size:15px}
  .mobile-outline summary{cursor:pointer;color:var(--blue);font-weight:600;padding:8px 0}.mobile-outline nav{padding:0 0 10px}
  .reader{padding-block:20px 52px}.story{font-size:17px;line-height:1.85}
  .story section+section{margin-top:36px}.story section,.sources li{scroll-margin-top:calc(78px + var(--nav-extra))}
}
@media(max-width:600px){
  .parts dt,.parts dd{padding:10px}.parts dd{padding-left:0}.image-bar{padding-inline:9px}
}
@media(max-width:370px){.reader{width:calc(100% - 28px)}.byline{gap:4px 10px}}

.story .path { border-left:3px solid #00816e; background:#eff8f5; color:#084e46; padding:10px 16px; font-weight:650; }
.story .path span, .story .part, .story .qty { white-space:nowrap; }
.story .part { font-family:ui-monospace,Menlo,Consolas,monospace; font-size:.92em; }
.story table { border-collapse:collapse; width:100%; margin:16px 0; font-size:16px; line-height:1.6; }
.story table th, .story table td { padding:10px 12px; border-bottom:1px solid var(--rule); text-align:left; vertical-align:top; }
.story thead th { background:#eaf4f1; color:#164b44; }
.story .source { font-size:14px; color:var(--muted); }
.story .closing { border-top:1px solid var(--rule); padding-top:18px; }
@media(max-width:600px) {
  .story table { font-size:14px; }
  .story table th, .story table td { padding:8px 5px; }
  .story table th:first-child { width:6em; min-width:5.1em; }
  .story .kind { display:block; }
}
