@font-face{font-family:'Oceanic Grotesk';src:url('./fonts/Oceanic-Regular.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Oceanic Grotesk';src:url('./fonts/Oceanic-Medium.woff2') format('woff2');font-weight:500;font-style:normal;font-display:swap}
:root{color-scheme:light;font-family:'Oceanic Grotesk',-apple-system,BlinkMacSystemFont,Roboto,Helvetica,Arial,sans-serif;color:#232323;background:#f2f6f8;font-synthesis:none;--muted:#626669;--line:#e4ebef;--surface:#f2f6f8}
*{box-sizing:border-box}
html{min-width:320px;scroll-padding-top:28px}
body{margin:0;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
h1,h2,h3,p{margin:0}
h1,h2,h3,strong,dfn{font-weight:500}
button,input{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0}
a{color:inherit;text-decoration:none}
svg{display:block;width:22px;height:22px;flex-shrink:0}
[hidden]{display:none!important}
:focus-visible{outline:2px solid #286aff;outline-offset:4px}
::selection{background:#ffd9cd;color:#232323}
.skip-link{position:fixed;z-index:100;top:12px;left:12px;padding:12px 18px;color:#fff;background:#232323;border-radius:12px;transform:translateY(-160%)}
.skip-link:focus{transform:translateY(0)}
.site-frame{width:calc(100% - 64px);max-width:1240px;min-height:calc(100dvh - 64px);margin:32px auto;padding:48px 64px 48px;background:#fff;border-radius:40px}
.site-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px;background:var(--surface);border-radius:16px}
.brand{display:inline-flex;align-items:center;gap:10px;font-size:28px;font-weight:500;line-height:1;letter-spacing:-.8px}
.brand-mark{display:grid;place-items:center;width:40px;height:40px;color:#fff;background:#232323;border-radius:11px;font-size:25px;letter-spacing:-1px}
.header-library{padding:10px 18px;background:#fff;border-radius:10px;font-size:16px}
.header-library:hover{background:#e4ebef}
.header-caption{font-size:14px;color:#7a7f82}
main{min-width:0}
main:focus{outline:0}
.loading-state{padding:80px 0;text-align:center;color:var(--muted)}
.library-hero{max-width:800px;margin:72px auto 48px;text-align:center}
.library-hero h1{font-size:56px;font-weight:500;line-height:1.12;letter-spacing:-1.8px;text-wrap:balance}
.searchbox{display:flex;align-items:center;gap:14px;max-width:720px;min-height:64px;margin:32px auto 0;padding:14px 20px;background:var(--surface);border:1px solid var(--line);border-radius:16px}
.searchbox:focus-within{border-color:#9da7ae}
.searchbox>svg{color:#7a7f82}
.searchbox input{width:100%;min-width:0;border:0;outline:0;background:none;font-size:18px;appearance:none}
.searchbox input::-webkit-search-cancel-button{display:none}
.searchbox input::placeholder{color:#7a7f82}
#clear-search{padding:0 4px;font-size:26px;line-height:1;color:#7a7f82}
.searchbox kbd{border:1px solid #d8e0e5;border-radius:5px;padding:3px 6px;color:#9a9fa3;font-family:inherit;font-size:12px;white-space:nowrap}
.catalog-tools{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}
.category-filters{display:flex;flex-wrap:wrap;gap:8px}
.catalog-filters{display:flex;align-items:center;flex-wrap:wrap;gap:12px;min-width:0}
.group-picker{position:relative;max-width:100%}
.group-picker select{font:inherit;font-size:14px;width:320px;max-width:100%;min-height:41px;padding:10px 34px 10px 14px;color:#232323;background:var(--surface);border:0;border-radius:11px;appearance:none;text-overflow:ellipsis;cursor:pointer}
.group-picker:after{content:'';position:absolute;right:15px;top:16px;width:6px;height:6px;border-right:1px solid #626669;border-bottom:1px solid #626669;transform:rotate(45deg);pointer-events:none}
.topic-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:16px}
.topic-tags a{font-size:13px;color:#626669;padding:6px 10px;background:var(--surface);border-radius:8px}
.topic-tags a:hover{color:#232323;background:#e4ebef}
.filter-chip{padding:10px 16px;background:var(--surface);border-radius:11px;font-size:14px}
.filter-chip:hover{background:#e4ebef}
.filter-chip.active{color:#fff;background:#232323}
.results-label{color:#7a7f82;font-size:14px;white-space:nowrap}
.topics-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.topic-card{display:flex;flex-direction:column;min-height:248px;padding:24px;border:1px solid var(--line);border-radius:16px;background:#fff;transition:background-color .16s,border-color .16s}
.topic-card:hover{background:#fcfdfe;border-color:#b6c1c8}
.card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.topic-icon{display:grid;place-items:center;width:44px;height:44px;background:var(--surface);border-radius:12px}
.topic-icon svg{width:26px;height:26px}
.card-category{font-size:14px;color:#7a7f82}
.topic-card h2{font-size:23px;line-height:1.2;letter-spacing:-.5px;margin-bottom:12px}
.topic-card>p{font-size:16px;line-height:1.55;color:var(--muted);margin-bottom:24px}
.card-meta{display:flex;align-items:center;gap:7px;margin-top:auto;font-size:14px;color:#7a7f82}
.card-meta svg{width:16px;height:16px}
.empty-state{grid-column:1/-1;text-align:center;padding:70px 20px;border:1px dashed var(--line);border-radius:16px;margin-top:16px}
.empty-state h1,.empty-state h2{font-size:28px;line-height:1.25;margin-bottom:16px}
.empty-state p{color:var(--muted);font-size:16px;margin-bottom:24px}
.primary-button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 20px;border-radius:12px;font-size:16px}
.primary-button{background:#232323;color:#fff}
.secondary-button{background:var(--surface)}
.breadcrumb{display:flex;align-items:center;gap:9px;margin:40px 0 28px;font-size:14px;color:#7a7f82}
.breadcrumb a:hover{text-decoration:underline;text-underline-offset:4px}
.lesson-heading{margin-bottom:40px}
.lesson-heading h1{max-width:900px;font-size:46px;letter-spacing:-1.3px;line-height:1.13;margin-bottom:18px;text-wrap:balance}
.lesson-meta{display:flex;align-items:center;gap:8px;color:#7a7f82;font-size:14px}
.lesson-meta svg{width:16px;height:16px}
.lesson-lead{max-width:820px;font-size:20px;line-height:1.65;margin-top:26px;color:#4f5558}
.lesson-layout{display:grid;grid-template-columns:minmax(0,1fr) 216px;gap:48px}
.lesson-article{min-width:0}
.lesson-section{margin-bottom:42px;scroll-margin-top:28px}
.lesson-section h2{font-size:29px;letter-spacing:-.6px;line-height:1.25;margin-bottom:22px}
.lesson-section p,.lesson-section li{font-size:18px;line-height:1.8;color:#444b4f}
.lesson-section p{margin-bottom:18px}
.lesson-section p:last-child{margin-bottom:0}
.lesson-section ul{margin:20px 0;padding-left:24px}
.lesson-section li{padding-left:4px;margin-bottom:10px}
.definition{padding:0 0 0 18px;border-left:2px solid #ced8de}
.definition dfn{font-style:normal;color:#232323}
.callout{padding:22px 24px;margin:24px 0;background:var(--surface);border-radius:14px}
.callout>strong{display:block;margin-bottom:10px;font-size:16px}
.callout p{margin:0}
.lesson-toc{position:sticky;top:28px;align-self:start;padding-left:20px;border-left:1px solid var(--line)}
.lesson-toc>span{font-size:14px;color:#7a7f82;display:block;margin-bottom:14px}
.lesson-toc nav,.mobile-toc nav{display:grid;gap:12px}
.lesson-toc a{font-size:14px;color:#626669;line-height:1.5}
.lesson-toc a:hover,.mobile-toc a:hover{color:#232323;text-decoration:underline;text-underline-offset:4px}
.mobile-toc{display:none}
.lesson-figure{margin:30px 0}
.figure-open{display:block;position:relative;width:100%;padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff;overflow:hidden}
.figure-open img{display:block;width:100%;height:auto;max-height:670px;object-fit:contain;margin-inline:auto}
.zoom-label{display:block;margin:14px 0 0;text-align:right;font-size:13px;color:#7a7f82}
.figure-open:hover{border-color:#9caeb8}
.lesson-figure figcaption{font-size:14px;line-height:1.75;color:#626669;padding:13px 2px 0}
.figure-source{display:block;font-size:12px;margin-top:7px;color:#7a7f82;text-decoration:underline;text-underline-offset:3px}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:12px;margin:24px 0}
table{width:100%;border-collapse:collapse;font-size:16px;text-align:left}
th,td{padding:15px 18px;vertical-align:top;border-bottom:1px solid var(--line);line-height:1.6;min-width:145px}
th{font-weight:500;background:var(--surface)}
tr:last-child td{border-bottom:0}
.takeaways{padding:26px 28px;background:var(--surface);border-radius:16px}
.takeaways h2{font-size:27px;margin-bottom:15px}
.takeaways ul{margin-bottom:0}
.takeaways li:last-child{margin-bottom:0}
.sources{padding-top:24px;border-top:1px solid var(--line);font-size:14px;color:var(--muted);scroll-margin-top:28px}
.sources summary{cursor:pointer;min-height:32px;color:#232323;font-size:16px}
.sources ol,.sources ul{padding-left:22px;margin:15px 0}
.sources li{margin:12px 0;line-height:1.7;overflow-wrap:anywhere}
.sources a{text-decoration:underline;text-underline-offset:3px}
.source-subtitle{font-weight:500;color:#232323;margin-top:24px}
.back-to-library{display:inline-flex;padding:11px 18px;background:var(--surface);border-radius:10px;margin-top:32px;font-size:14px}
#image-dialog{width:min(1200px,calc(100vw - 40px));max-width:calc(100vw - 40px);max-height:calc(100dvh - 40px);padding:16px 24px 24px;border:0;border-radius:18px;overflow:auto;color:#232323;background:#fff}
#image-dialog::backdrop{background:#18232caa;backdrop-filter:blur(3px)}
.image-stage{overflow:auto;max-height:72dvh;background:#fff}
.image-stage img{display:block;width:auto;max-width:100%;height:auto;max-height:70dvh;object-fit:contain;margin:auto}
.image-stage.is-zoomed img{width:var(--natural-width);max-width:none;max-height:none;object-fit:initial;margin:0}
.image-toolbar{display:flex;align-items:center;gap:18px;margin-bottom:18px;font-size:14px;background:#fff}
.image-size{padding:9px 13px;background:var(--surface);border-radius:9px}
.image-toolbar>a{color:var(--muted);text-decoration:underline;text-underline-offset:3px}
#image-dialog>p{font-size:14px;color:var(--muted);line-height:1.7;margin:20px 0 0;max-width:960px}
.close-image{display:grid;place-items:center;width:40px;height:40px;font-size:30px;border-radius:9px;background:#fff;margin-left:auto;flex-shrink:0}
.close-image:hover{background:var(--surface)}
@media(max-width:1100px){
  .site-frame{padding:32px 36px 40px}
  .lesson-layout{grid-template-columns:minmax(0,1fr) 190px;gap:30px}
  .topic-card h2{font-size:21px}
  .topic-card{padding:21px}
  .lesson-heading h1{font-size:41px}
}
@media(max-width:900px){
  .topics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lesson-layout{display:block}
  .lesson-toc{display:none}
  .mobile-toc{display:block;background:var(--surface);border-radius:12px;padding:14px 18px;margin-bottom:32px}
  .mobile-toc summary{cursor:pointer;font-size:16px}
  .mobile-toc nav{padding:18px 0 3px;font-size:14px}
  .library-hero h1{font-size:48px}
  .header-caption{font-size:12px}
}
@media(max-width:600px){
  html{scroll-padding-top:20px}
  .site-frame{width:100%;min-height:100dvh;margin:0;padding:20px 20px 36px;border-radius:0}
  .site-header{padding:13px;gap:14px}
  .brand{font-size:26px}
  .brand-mark{width:36px;height:36px;font-size:23px}
  .header-library{padding:9px 12px;font-size:14px;margin-left:auto}
  .header-caption{display:none}
  .library-hero{margin:44px auto 32px}
  .library-hero h1{font-size:37px;letter-spacing:-1.2px;max-width:360px;margin:auto}
  .searchbox{margin-top:27px;min-height:59px;padding:14px 17px;gap:11px}
  .searchbox input{font-size:16px}
  .searchbox kbd{display:none}
  .catalog-tools{flex-wrap:wrap;gap:15px;margin-bottom:18px}
  .catalog-filters,.group-picker{width:100%}
  .group-picker select{width:100%}
  .filter-chip{padding:10px 13px;font-size:14px}
  .results-label{font-size:13px}
  .topics-grid{grid-template-columns:1fr;gap:14px}
  .topic-card{min-height:240px;padding:23px}
  .topic-card h2{font-size:23px}
  .topic-card>p{font-size:16px}
  .breadcrumb{font-size:13px;margin:30px 0 22px}
  .lesson-heading{margin-bottom:28px}
  .lesson-heading h1{font-size:35px;letter-spacing:-1px}
  .lesson-lead{font-size:18px;line-height:1.75;margin-top:23px}
  .lesson-section{margin-bottom:36px}
  .lesson-section h2{font-size:27px;line-height:1.3;margin-bottom:20px}
  .lesson-section p,.lesson-section li{font-size:17px;line-height:1.8}
  .definition{padding-left:14px}
  .callout{padding:20px;margin:22px 0}
  .lesson-figure{margin:25px 0}
  .figure-open{padding:10px;border-radius:12px}
  .lesson-figure figcaption{font-size:14px}
  .zoom-label{font-size:12px;margin-top:10px}
  .takeaways{padding:23px 20px}
  th,td{padding:13px 14px;font-size:15px;min-width:135px}
  #image-dialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:12px 14px 18px;border-radius:13px}
  .image-toolbar{gap:10px;flex-wrap:wrap;font-size:13px}
  .image-size{padding:9px 10px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
