.theme-toggle{width:42px;height:42px;border:1px solid var(--line);background:transparent;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;color:var(--ink);padding:0}
.theme-toggle:hover{border-color:var(--teal);color:var(--teal-dark)}
.theme-toggle .ic{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .ic-sun{display:none}
[data-theme="dark"] .theme-toggle .ic-sun{display:block}
[data-theme="dark"] .theme-toggle .ic-moon{display:none}
.brand .lg-d{display:none}
[data-theme="dark"] .brand .lg-l{display:none}
[data-theme="dark"] .brand .lg-d{display:block}
[data-theme="dark"]{--line:#243040;--line-light:#1C2532;--paper:#101826;--white:#0B121D;--ink:#E7ECF4;--ink-soft:#C9D3E0;--muted:#8A97AA;--teal:#2BC7A8;--teal-dark:#5CD9BF;--green:#37C08B;--blue:#5BA7EA;--graphite:#93A0AF;--flex:#E0B23C;--red:#E2584C;--rubber:#AEB8C6;--shadow:0 16px 40px rgba(0,0,0,.45);color-scheme:dark}
[data-theme="dark"] ::selection{background:#155448;color:#DBFFF5}
[data-theme="dark"] .site-header{background:rgba(11,17,28,.96)}
[data-theme="dark"] .header-divider{border-left-color:#2A3648}
[data-theme="dark"] .header-section{color:#9FAAB9}
[data-theme="dark"] .main-nav>a{color:#A8B3C2}
[data-theme="dark"] .main-nav .nav-search:hover{background:#122B26}
[data-theme="dark"] .menu-toggle{background:#101826}
[data-theme="dark"] .hero-home{border-bottom-color:#1C2532}
[data-theme="dark"] .hero-intro{color:#9AA6B4}
[data-theme="dark"] .search-form{background:#0F1725;border-color:#2A3546}
[data-theme="dark"] .search-form input::placeholder{color:#7B8798}
[data-theme="dark"] .search-form button{color:#052019}
[data-theme="dark"] .quick-search{color:#7C8798}
[data-theme="dark"] .quick-search a{color:#C6D2DE;border-bottom-color:#3A4A5C}
[data-theme="dark"] .figure-frame{background:#0F1725;border-color:#243040}
[data-theme="dark"] .figure-top{border-bottom-color:#1D2736;color:#8A96A6}
[data-theme="dark"] .figure-bottom{border-top-color:#1D2736;color:#8A96A6}
[data-theme="dark"] .figure-side-note{color:#66748A}
[data-theme="dark"] .hero-diagram{background:#0D1522}
[data-theme="dark"] svg [stroke="#28332F"]{stroke:#C9D3E0}
[data-theme="dark"] svg [stroke="#D8DEDA"]{stroke:#39485C}
[data-theme="dark"] svg [stroke="#0A927C"]{stroke:#2BC7A8}
[data-theme="dark"] .path-card{background:#0F1725;border-color:#243040}
[data-theme="dark"] .path-link{border-top-color:#1E2938}
[data-theme="dark"] .featured-section{background:#0E1520;border-top-color:#1C2532;border-bottom-color:#1C2532}
[data-theme="dark"] .featured-list{border-top-color:#26313F}
[data-theme="dark"] .featured-row{border-bottom-color:#26313F}
[data-theme="dark"] .systems-section{background:#0B121D}
[data-theme="dark"] .system-grid a{background:#101826}
[data-theme="dark"] .materials-section{background:#0B121D}
[data-theme="dark"] .material-card{border-color:#243040}
[data-theme="dark"] .material-card:hover{background:#111B2A}
[data-theme="dark"] .intent-tabs a{background:#101826;border-color:#2A3546;color:#A6B2C0}
[data-theme="dark"] .intent-tabs a.is-active{background:#123229;color:#4ADBBB}
[data-theme="dark"] .category-button{border-bottom-color:#1E2938;color:#9AA7B5}
[data-theme="dark"] .filter-note{background:#101826}
[data-theme="dark"] .sort-control select{background:#101826;border-color:#2A3546}
[data-theme="dark"] .result-card:hover{background:#101B2B}
[data-theme="dark"] .load-more{background:#0F1B24}
[data-theme="dark"] .load-more:hover{background:#12242E}
[data-theme="dark"] .article-side nav a{border-left-color:#26313F}
[data-theme="dark"] .article-meta button{background:#101826;border-color:#2A3546;color:#A6B2C0}
[data-theme="dark"] .article-meta button:hover,[data-theme="dark"] .article-meta button[aria-pressed="true"]{background:#123229}
[data-theme="dark"] .article-lead{background:#10231D;color:#CBE4D9}
[data-theme="dark"] .article-lead strong,[data-theme="dark"] .article-lead b{color:#EAF7F1}
[data-theme="dark"] .article-lead-label{color:#6FB39E}
[data-theme="dark"] .article-content{color:#C3CEDA}
[data-theme="dark"] .article-content strong,[data-theme="dark"] .article-content b{color:#EAF0F7}
[data-theme="dark"] .article-content .note{background:#101E1A}
[data-theme="dark"] .article-content th{background:#14202E;color:#BFD2E2}
[data-theme="dark"] .article-content th,[data-theme="dark"] .article-content td{border-bottom-color:#243040}
[data-theme="dark"] .article-content tr:nth-child(even) td{background:#0E1622}
[data-theme="dark"] .article-content blockquote{color:#93A2AE}
[data-theme="dark"] .article-content pre{background:#0F1826}
[data-theme="dark"] .related-card:hover{background:#101B29}
[data-theme="dark"] .v2-hero{background:#0F1622;border-bottom-color:#1C2532}
[data-theme="dark"] .v2-hero-inner>p{color:#9AA6B4}
[data-theme="dark"] .v2-way-section{background:#0B121D}
[data-theme="dark"] .v2-way-card{background:#0F1725;border-color:#243040}
[data-theme="dark"] .v2-link-list{border-top-color:#1E2938}
[data-theme="dark"] .v2-link-list li{border-bottom-color:#1E2938}
[data-theme="dark"] .v2-system-links{border-top-color:#1E2938}
[data-theme="dark"] .v2-system-links a{color:#AFBAC7}
[data-theme="dark"] .v2-material-list li{border-bottom-color:#1E2938}
[data-theme="dark"] .v2-material-list li:first-child{border-top-color:#1E2938}
[data-theme="dark"] .v2-shelves-section{background:#0E1520;border-top-color:#1C2532;border-bottom-color:#1C2532}
[data-theme="dark"] .v2-shelf{background:#0F1725;border-color:#243040}
[data-theme="dark"] .v2-shelf li{border-top-color:#1E2938}
[data-theme="dark"] .v2-shelf li a{color:#B9C4D1}
[data-theme="dark"] .v2-catalog-section{background:#0B121D}
[data-theme="dark"] .v2-catalog-group{background:#0F1725;border-color:#243040}
[data-theme="dark"] .v2-catalog-group summary:hover{background:#121D2D}
[data-theme="dark"] .v2-catalog-links{border-top-color:#1E2938}
[data-theme="dark"] .v2-catalog-links a{border-bottom-color:#182231;color:#AFBAC7}
[data-theme="dark"] .v2-anatomy-links a{border-color:#2A3546;color:#AFBAC7}
[data-theme="dark"] .v2-footer{background:#0E1520;border-top-color:#1C2532;color:#7C8798}
@media(max-width:700px){[data-theme="dark"] .main-nav{background:#0D1522;border-bottom-color:#243040;box-shadow:0 14px 26px rgba(0,0,0,.5)}}
@media(max-width:700px){
  .header-inner{gap:10px}
  .header-section,.header-divider{display:none}
  .brand img{width:138px}
  .menu-toggle{width:38px;height:38px}
  .theme-toggle{width:38px;height:38px}
  .theme-toggle .ic{width:18px;height:18px}
}
[data-kat="teal"]{--kat:#009982}
[data-kat="jantar"]{--kat:#A67C00}
[data-kat="koralle"]{--kat:#BE5E36}
[data-kat="indigo"]{--kat:#7272C5}
[data-kat="sky"]{--kat:#148BAA}
[data-theme="dark"] [data-kat="teal"]{--kat:#5BC4A6}
[data-theme="dark"] [data-kat="jantar"]{--kat:#CCA95B}
[data-theme="dark"] [data-kat="koralle"]{--kat:#F0926E}
[data-theme="dark"] [data-kat="indigo"]{--kat:#A2A5F5}
[data-theme="dark"] [data-kat="sky"]{--kat:#61BCDA}
.v2-catalog-group[data-kat]{border-left:6px solid var(--kat)}
.v2-catalog-group[data-kat] summary small{color:var(--kat);font-weight:750}
.result-card[data-kat]{border-top:3px solid var(--kat);padding-top:14px}
.result-eyebrow[data-kat]{color:var(--kat)}
.article-kicker[data-kat]{color:var(--kat)}
.category-button[data-kat] span:last-child{color:var(--kat);font-weight:750}
.v2-way-card:nth-child(1){border-top:3px solid #C92137}
.v2-way-card:nth-child(2){border-top:3px solid #148BAA}
.v2-way-card:nth-child(3){border-top:3px solid #009982}
.v2-way-card:nth-child(1) .way-kicker{color:#C92137}
.v2-way-card:nth-child(2) .way-kicker{color:#148BAA}
.v2-way-card:nth-child(3) .way-kicker{color:#009982}
[data-theme="dark"] .v2-way-card:nth-child(1){border-top-color:#FB8781}
[data-theme="dark"] .v2-way-card:nth-child(2){border-top-color:#61BCDA}
[data-theme="dark"] .v2-way-card:nth-child(3){border-top-color:#5BC4A6}
[data-theme="dark"] .v2-way-card:nth-child(1) .way-kicker{color:#FB8781}
[data-theme="dark"] .v2-way-card:nth-child(2) .way-kicker{color:#61BCDA}
[data-theme="dark"] .v2-way-card:nth-child(3) .way-kicker{color:#5BC4A6}
.prod-a{font-weight:600;text-decoration:underline;text-decoration-style:dotted;text-decoration-thickness:1px;text-underline-offset:3px}
.prod-a::after{content:" \2197";font-size:.78em}
.prod-a[data-f="gs"]{color:#419151}
.prod-a[data-f="bs"]{color:#0073BE}
.prod-a[data-f="rs"]{color:#C92137}
.prod-a[data-f="rb"]{color:#30363B}
.prod-a[data-f="fs"]{color:#A67C00}
.prod-a[data-f="gr"]{color:#4A525B}
.prod-a[data-f="ms"],.prod-a[data-f="hs"]{color:#009982}
[data-theme="dark"] .prod-a[data-f="gs"]{color:#79C284}
[data-theme="dark"] .prod-a[data-f="bs"]{color:#6AB6EE}
[data-theme="dark"] .prod-a[data-f="rs"]{color:#FB8781}
[data-theme="dark"] .prod-a[data-f="rb"]{color:#B1B9BE}
[data-theme="dark"] .prod-a[data-f="fs"]{color:#CCA95B}
[data-theme="dark"] .prod-a[data-f="gr"]{color:#A6AFB6}
[data-theme="dark"] .prod-a[data-f="ms"],[data-theme="dark"] .prod-a[data-f="hs"]{color:#5BC4A6}
@media(max-width:700px){
  .intent-tabs,#category-filters{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:8px;padding-bottom:6px;-webkit-overflow-scrolling:touch;scrollbar-width:none;mask-image:linear-gradient(90deg,#000 90%,transparent);-webkit-mask-image:linear-gradient(90deg,#000 90%,transparent)}
  .intent-tabs::-webkit-scrollbar,#category-filters::-webkit-scrollbar{display:none}
  .intent-tabs a,#category-filters .category-button{flex:0 0 auto;white-space:nowrap;border-bottom:1px solid var(--line)}
}
.pin-badge{display:inline-block;font-size:10px;font-weight:850;letter-spacing:.14em;color:#fff;background:#009A82;border-radius:5px;padding:3px 8px;margin-bottom:8px}
[data-theme="dark"] .pin-badge{background:#2BC7A8;color:#062019}
.result-card.pinned{border:1px solid rgba(0,154,130,.35);border-radius:12px;padding:16px;background:rgba(0,154,130,.04)}
[data-theme="dark"] .result-card.pinned{border-color:rgba(43,199,168,.4);background:rgba(43,199,168,.06)}
.cta-card{border:1px solid rgba(0,154,130,.4);border-left:5px solid #009A82;border-radius:12px;background:#E4F5EF;padding:20px 22px;margin:6px 0}
.cta-card .ck{font-size:10.5px;font-weight:850;letter-spacing:.16em;color:#007E6B}
.cta-card h3{margin:8px 0 6px;font-size:19px;letter-spacing:-.02em}
.cta-card p{margin:0 0 12px;color:#3E5048;font-size:14px}
.cta-card a{display:inline-block;font-weight:800;color:#fff;background:#009A82;border-radius:8px;padding:9px 16px;font-size:13.5px}
.cta-card a:hover{background:#007E6B}
[data-theme="dark"] .cta-card{background:#10231D;border-color:rgba(43,199,168,.35);border-left-color:#2BC7A8}
[data-theme="dark"] .cta-card .ck{color:#5CD9BF}
[data-theme="dark"] .cta-card p{color:#9DB4A9}
[data-theme="dark"] .cta-card a{background:#2BC7A8;color:#052019}
.art-end{margin:36px 0 6px;display:grid;gap:12px}
.pp-card{display:block;border:1px solid var(--line);border-left:5px solid #009982;border-radius:12px;padding:14px 18px;text-decoration:none}
.pp-card .pp-k{display:block;font-size:10px;font-weight:850;letter-spacing:.16em;color:#007E6B;text-transform:uppercase}
.pp-card b{display:block;font-size:17px;margin:4px 0 2px}
.pp-card .pp-l{font-size:13px;color:#007E6B;font-weight:700}
[data-theme="dark"] .pp-card .pp-k,[data-theme="dark"] .pp-card .pp-l{color:#5CD9BF}
.pp-card[data-f="gs"]{border-left-color:#419151}.pp-card[data-f="bs"]{border-left-color:#0073BE}
.pp-card[data-f="rs"]{border-left-color:#C92137}.pp-card[data-f="rb"]{border-left-color:#30363B}
.pp-card[data-f="fs"]{border-left-color:#A67C00}.pp-card[data-f="gr"]{border-left-color:#4A525B}
[data-theme="dark"] .pp-card[data-f="gs"]{border-left-color:#79C284}
[data-theme="dark"] .pp-card[data-f="bs"]{border-left-color:#6AB6EE}
[data-theme="dark"] .pp-card[data-f="rs"]{border-left-color:#FB8781}
[data-theme="dark"] .pp-card[data-f="rb"]{border-left-color:#B1B9BE}
[data-theme="dark"] .pp-card[data-f="fs"]{border-left-color:#CCA95B}
[data-theme="dark"] .pp-card[data-f="gr"]{border-left-color:#A6AFB6}
.nng{border:1px solid var(--line);border-radius:12px;padding:12px 16px;font-size:14px;color:var(--muted)}
.nng b{color:var(--ink)}
.nng a{font-weight:700;color:#007E6B;text-decoration:underline;text-underline-offset:3px}
[data-theme="dark"] .nng a{color:#5CD9BF}
.hero-copy2{min-width:0}
.hero-vis{display:none}
@media(min-width:1000px){
  .v2-hero-inner{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(380px,500px);gap:56px;align-items:center}
  .hero-vis{display:block;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 22px 50px rgba(17,40,35,.08);padding:20px 20px 12px}
  .hero-vis svg{width:100%;height:auto;display:block}
  .hv-cap{margin-top:10px;text-align:center;font-size:9.5px;font-weight:800;letter-spacing:.18em;color:#86948C}
  [data-theme="dark"] .hero-vis{background:#0F1725;border-color:#243040;box-shadow:0 22px 50px rgba(0,0,0,.45)}
  [data-theme="dark"] .hv-cap{color:#66748A}
}
.m-filter{display:none}
@media(max-width:700px){
  .m-filter{display:flex;gap:8px;margin:2px 0 6px}
  .m-filter select{flex:1;min-width:0;min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--white);color:var(--ink);font-weight:700;font-size:13.5px;padding:0 10px}
  .intent-tabs,#category-filters{display:none!important}
}
[data-theme="dark"] .m-filter select{background:#101826;border-color:#2A3546;color:#E7ECF4}
.m-toc{display:none}
@media(max-width:900px){
  .m-toc{display:block;margin:16px 0 4px;border:1px solid var(--line);border-radius:11px;background:var(--white)}
  .m-toc summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;padding:12px 15px;font-weight:800;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:#52615F}
  .m-toc summary::after{content:"+";font-size:18px;color:#009A82}
  .m-toc[open] summary::after{content:"\2212"}
  .m-toc summary::-webkit-details-marker{display:none}
  .m-toc-l{padding:2px 15px 12px;display:grid;gap:9px}
  .m-toc-l a{color:#3E5048;font-size:14.5px;border-left:2px solid var(--line);padding-left:10px}
}
[data-theme="dark"] .m-toc{background:#0F1725;border-color:#243040}
[data-theme="dark"] .m-toc summary{color:#9FAAB9}
[data-theme="dark"] .m-toc-l a{color:#B9C4D1;border-left-color:#26313F}
.shelf-tabs{display:none}
@media(max-width:700px){
  .shelf-tabs{display:flex;gap:8px;margin:0 0 14px}
  .shelf-tabs button{flex:1;min-height:42px;border:1px solid var(--line);border-radius:999px;background:var(--white);color:#52615F;font-weight:750;font-size:12px;letter-spacing:.04em}
  .shelf-tabs button.on{background:#E4F5EF;border-color:rgba(0,154,130,.5);color:#007B68}
  .v2-shelves .v2-shelf{display:none}
  .v2-shelves .v2-shelf.sh-on{display:block}
}
[data-theme="dark"] .shelf-tabs button{background:#101826;border-color:#2A3546;color:#A6B2C0}
[data-theme="dark"] .shelf-tabs button.on{background:#123229;border-color:rgba(43,199,168,.5);color:#4ADBBB}
.to-top{position:fixed;right:16px;bottom:18px;width:46px;height:46px;border-radius:50%;border:1px solid var(--line);background:var(--white);color:var(--ink);font-size:19px;box-shadow:0 10px 26px rgba(17,40,35,.18);opacity:0;pointer-events:none;transform:translateY(8px);transition:opacity .18s,transform .18s;z-index:40}
.to-top.show{opacity:1;pointer-events:auto;transform:none}
[data-theme="dark"] .to-top{background:#101826;border-color:#2A3546;color:#E7ECF4;box-shadow:0 10px 26px rgba(0,0,0,.5)}
.read-prog{position:fixed;top:0;left:0;height:3px;width:0;background:#009A82;z-index:60}
[data-theme="dark"] .read-prog{background:#2BC7A8}
.article-end{display:none}
span.prod-a{text-decoration:none;cursor:default}
span.prod-a::after{content:""}
.m-anatomy{display:none}
@media(max-width:999px){
  .m-anatomy{display:block;margin:2px 0 14px}
  .m-anatomy svg{width:100%;height:auto;display:block}
}
.m-anatomy .mp rect{fill:var(--white);stroke:var(--line);stroke-width:1.4}
.m-anatomy .mp text{fill:var(--ink);font:700 12px "Segoe UI",Arial,Helvetica,sans-serif}
.m-anatomy .mcap{fill:#86948C;font:700 9px "Segoe UI",Arial;letter-spacing:2px}
.m-anatomy .mp:focus rect,.m-anatomy .mp:active rect{stroke:#009A82;stroke-width:2.2}
.m-anatomy .mp:focus{outline:none}
[data-theme="dark"] .m-anatomy .mcap{fill:#66748A}
.shelf-tabs button{min-height:44px}
@media(max-width:700px){
  .menu-toggle{width:44px;height:44px}
  .theme-toggle{width:44px;height:44px}
  .theme-toggle .ic{width:19px;height:19px}
  .sort-control select{min-height:44px}
  .quick-search a{display:inline-block;padding:9px 2px}
}
.kat-toggle{display:none}
@media(max-width:700px){
  main{display:flex;flex-direction:column}
  .v2-hero{order:0}.v2-way-section{order:1}.v2-catalog-section{order:2}.v2-shelves-section{order:3}
  .v2-way-card>*{display:none}
  .v2-way-card>.v2-way-kicker{display:block}
  .v2-way-card>h3,.v2-way-card.open>h3{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:44px;cursor:pointer;margin:2px 0}
  .v2-way-card>h3::after{content:"+";font-size:22px;line-height:1;color:#009A82;font-weight:600;flex:0 0 auto}
  .v2-way-card.open>h3::after{content:"\2212"}
  .v2-way-card.open>*{display:block}
  .kat-toggle{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:48px;border:1px solid var(--line);border-radius:12px;background:var(--white);font-weight:800;font-size:14px;padding:0 16px;margin:2px 0 12px;color:var(--ink)}
  .kat-toggle span{font-size:22px;color:#009A82}
  .v2-catalog-section:not(.kat-open) .v2-catalog-group{display:none}
}
[data-theme="dark"] .kat-toggle{background:#101826;border-color:#2A3546;color:#E7ECF4}
[data-theme="dark"] .v2-way-card>h3::after,[data-theme="dark"] .kat-toggle span{color:#2BC7A8}
