/* Theme controls are shared by every public page. */
:root{color-scheme:dark}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:40px;height:40px;padding:9px;border:1px solid var(--line);border-radius:50%;background:transparent;color:#c2c7b9;transition:background .2s,color .2s,border-color .2s}
.theme-toggle:hover{background:var(--panel);color:var(--lime);border-color:#69774d}
.theme-toggle svg{width:19px;height:19px;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.theme-icon-moon{display:none}
html[data-theme=light] .theme-icon-sun{display:none}
html[data-theme=light] .theme-icon-moon{display:block}

/* Lime remains the brand's material accent; text uses a deeper green on white. */
html[data-theme=light]{color-scheme:light;--bg:#fff;--panel:#f6f7f4;--line:#dfe3d9;--text:#1b2118;--muted:#626d59;--accent-ink:#487018;--soft:#eef2e8;--blue-ink:#32637c;--violet-ink:#735293}
html[data-theme=light] body{background:#fff}
html[data-theme=light] ::selection{background:var(--lime);color:#1b2118}
html[data-theme=light] :is(button,a,input,select):focus-visible{outline-color:var(--accent-ink)}
html[data-theme=light] .brand-logo{content:url('/assets/brand/lingze-logo-light.svg')}
html[data-theme=light] :is(.about-emblem img,.author-avatar,.about-portrait-logo){content:url('/assets/brand/lingze-icon-light.svg')}
html[data-theme=light] .theme-toggle{color:#58644c;background:#fff}
html[data-theme=light] .theme-toggle:hover{background:var(--soft);color:var(--accent-ink);border-color:#a6bb89}
html[data-theme=light] .desktop-nav{color:#646e5b}
html[data-theme=light] :is(.desktop-nav,.mobile-nav) a[aria-current=page],
html[data-theme=light] .desktop-nav a.nav-active{color:var(--accent-ink)}
html[data-theme=light] :is(.desktop-nav a[aria-current=page],.nav-active):after{background:var(--accent-ink)}
html[data-theme=light] :is(.eyebrow,.page-eyebrow){color:#627453}
html[data-theme=light] :is(.accent-word,.about-copy h2>span,.page-intro h1 em,.not-found-code){color:var(--accent-ink)}
html[data-theme=light] :is(.hero-description,.page-lead,.article-deck,.about-copy>p:last-child){color:#626d59}
html[data-theme=light] :is(.hero-note,.hero-bottom,.art-coordinate,.art-bottom,.hero-art .art-coordinate,.hero-art .art-bottom,.section-kicker,.section-note,.demo-note,.intro-index,.projects-caption,.page-heading-note,.page-stat,.page-content-note){color:#6c765f}
html[data-theme=light] .note-line{background:#a2ad96}
html[data-theme=light] :is(.hero-bottom a,.text-link,.art-index,.model-caption){color:#536744}
html[data-theme=light] :is(.hero-bottom a span,.text-link span,.interest-strip i){color:var(--accent-ink)}
html[data-theme=light] .interest-strip{color:#5d6e4d}
html[data-theme=light] .subtle{color:#6c7763}
html[data-theme=light] .button-secondary:hover{background:#eff2eb}
html[data-theme=light] .button-primary:hover{background:#c9f449}
html[data-theme=light] :is(.floating-label,.content-icon){background:#f0f4e9;border-color:#d5deca;color:#5b7450}
html[data-theme=light] .floating-label-ai{color:var(--accent-ink)}
html[data-theme=light] .floating-label-curious{color:#5d7052}
html[data-theme=light] .model-grid>span{border-color:#879b691c}
html[data-theme=light] .model-grid>span:nth-child(2){border-color:#879b6924}
html[data-theme=light] .model-grid>i{background:#879b691a}
html[data-theme=light] :is(.model-instruction>span,.model-reset,.model-reset>span){color:#64794e}
html[data-theme=light] .model-reset:hover{color:var(--accent-ink)}
html[data-theme=light] .model-poster{display:none}
html[data-theme=light] .hero-art:not(:has(.hero-model.is-ready)):after{content:"";position:absolute;inset:0;z-index:1;background:url('/assets/brand/lingze-icon-light.svg') center/120px 120px no-repeat;pointer-events:none}

/* Reading and discovery cards retain soft surfaces around their original artwork. */
html[data-theme=light] :is(.feature-card,.discovery-card,.project-card,.topic-card,:where(.project-features article),.topic-publications){background:var(--panel)}
html[data-theme=light] :is(.feature-card,.discovery-card,.project-card,.topic-card):hover{border-color:#a3b788}
html[data-theme=light] :is(.card-meta,.feature-content p,.discovery-card p,.discovery-meta,.discovery-meta .mini-tag){color:#6b755f}
html[data-theme=light] :is(.feature-content h3>span,.discovery-meta>span:last-child){color:#5f7746}
html[data-theme=light] .tag{color:#63744f;border-color:#c7d3b7;background:#f1f5e9}
html[data-theme=light] .tag-lime{color:var(--accent-ink);border-color:#b9cda0;background:#eff6e5}
html[data-theme=light] .tag-blue{color:var(--blue-ink);border-color:#bad0dc;background:#eef5f8}
html[data-theme=light] :is(.content-icon.lime,.bookmark-button:hover,.bookmark-button.is-saved){color:var(--accent-ink)}
html[data-theme=light] .bookmark-button{color:#6c7662}
html[data-theme=light] .bookmark-button.is-saved svg{fill:#89af5333}
html[data-theme=light] .content-icon.blue{color:var(--blue-ink);background:#eaf3f8;border-color:#c7dbe6}
html[data-theme=light] .content-icon.orange{color:#88643a;background:#f6efe5;border-color:#e6d6bd}
html[data-theme=light] .filter{color:#6b765f}
html[data-theme=light] .filter:not(.active):hover{border-color:#b8c6a4;color:#436520;background:#f5f8f0}
html[data-theme=light] .filter.active{color:#20310d}
html[data-theme=light] .collection-web{background:#eef3e6;border-color:#cedabf;color:#344b23}
html[data-theme=light] .collection-web .web-symbol span{border-color:#6d904a}
html[data-theme=light] .cms-feature-art{background:#edf2e5;color:#5c7a36}
html[data-theme=light] :is(.cms-feature-cover,.article-cover-upload,.project-cover:has(.project-upload-cover),.project-detail-cover:has(.project-upload-cover)){background:#edf0e8}
html[data-theme=light] .project-custom-visual{color:var(--accent-ink)}
html[data-theme=light] .project-filters button[aria-pressed=true]{color:var(--accent-ink);background:#edf4e3;border-color:#c3d7ab}
html[data-theme=light] .project-status{color:var(--violet-ink)}
html[data-theme=light] .status-live{color:var(--accent-ink)}
html[data-theme=light] .status-planned{color:#6b7386}
html[data-theme=light] .project-copy h2 a:hover{color:var(--accent-ink)}
html[data-theme=light] .project-tags span{color:#65774f;background:#ebf0e3}
html[data-theme=light] :is(.project-open span,.project-outro>span,.topic-index-note>span){color:var(--accent-ink)}
html[data-theme=light] .project-facts span{color:#6d7861}
html[data-theme=light] .project-features article>span{color:#637a45}
html[data-theme=light] :is(.project-detail-sample,.project-pending){color:#7f6595;border-color:#dacfe3;background:#f8f5fa}
html[data-theme=light] .project-story-layout .project-sample-note{color:#806393!important}
html[data-theme=light] .project-topic-link{background:#f5f0fa;border-color:#e0d4eb}
html[data-theme=light] .project-topic-link span{color:#806b93}
html[data-theme=light] .project-topic-link strong{color:var(--violet-ink)}

/* Topic series use gentle colors to make each collection distinct. */
html[data-theme=light] .topic-card{background:#f4f7ee}
html[data-theme=light] .topic-blue{background:#eff5f8}
html[data-theme=light] .topic-violet{background:#f5f0f9}
html[data-theme=light] .topic-card-top{color:#657949}
html[data-theme=light] .topic-blue .topic-card-top{color:#57778b}
html[data-theme=light] .topic-violet .topic-card-top{color:#866999}
html[data-theme=light] .topic-visual{color:#5d7c30}
html[data-theme=light] :is(.topic-blue .topic-visual,.topic-orbits){color:#55798c}
html[data-theme=light] .topic-orbits:after{background:#7aacc4}
html[data-theme=light] .topic-violet .topic-visual{color:#806a93}
html[data-theme=light] .topic-network i{background:#c3b0d3}
html[data-theme=light] .topic-card-copy{border-top-color:#1b21180a}
html[data-theme=light] .topic-card-copy>span{color:#697558}
html[data-theme=light] .topic-blue .topic-card-copy>span{color:#617785}
html[data-theme=light] .topic-violet .topic-card-copy>span{color:#816b93}
html[data-theme=light] .topic-card-bottom{color:#637849}
html[data-theme=light] .topic-blue .topic-card-bottom{color:#56788a}
html[data-theme=light] .topic-violet .topic-card-bottom{color:#88659e}
html[data-theme=light] :is(.topic-introduction .section-kicker,.topic-planned-label,.roadmap-type,.topic-empty-icon){color:var(--violet-ink)}
html[data-theme=light] .topic-introduction h2 span{color:#6c7563}
html[data-theme=light] .topic-network-panel{color:#86669d;background:#f4eef8;border-color:#e0d3ea}
html[data-theme=light] .topic-network-panel i{background:#bda6ce}
html[data-theme=light] .topic-network-panel small{color:#816892}
html[data-theme=light] :is(.topic-path-heading>span,.roadmap-number){color:#7c6e87}
html[data-theme=light] .roadmap-state{color:#7f6d88;border-color:#ddcfe4;background:#faf7fc}

/* Blog navigation, search and small notices. */
html[data-theme=light] .breadcrumb{color:#6b755f}
html[data-theme=light] .breadcrumb a{color:#657850}
html[data-theme=light] .breadcrumb a:hover{color:var(--accent-ink)}
html[data-theme=light] .breadcrumb>span[aria-hidden]{color:#707569}
html[data-theme=light] :is(.catalog-sidebar-title,.sort-label,.sidebar-note,.sidebar-note>span){color:#6b7956}
html[data-theme=light] .category-link{color:#657750;background:transparent}
html[data-theme=light] .category-link>span:last-child{color:#697858}
html[data-theme=light] .category-link:hover{background:#f2f6eb;color:var(--accent-ink)}
html[data-theme=light] .category-link.active,html[data-theme=light] .category-link[aria-current=page]{color:var(--accent-ink);background:#edf4e3;border-color:#c4d5ae}
html[data-theme=light] :is(.category-link.active,.category-link[aria-current=page])>span:last-child{color:#5d7e35}
html[data-theme=light] :is(.search-inline,.search-page-form,.sort-select){background:#f8faf5;border-color:#cbd8ba;color:#667b4e}
html[data-theme=light] :is(.search-inline input,.search-page-form input,.nav-search-form input)::placeholder{color:#6d7862}
html[data-theme=light] :is(.search-inline button,.search-page-form svg){color:#637a49;stroke:currentColor}
html[data-theme=light] :is(.search-inline,.search-page-form):focus-within{border-color:#83a854}
html[data-theme=light] .pagination a{color:#677752}
html[data-theme=light] .pagination a[aria-current=page]{color:#20300f}
html[data-theme=light] .pagination a:hover{border-color:#b0c495;color:var(--accent-ink)}
html[data-theme=light] :is(.results-info,.results-info span,.results-info #clear-query){color:#67764f}
html[data-theme=light] .results-info strong{color:#405b25}
html[data-theme=light] .results-info #clear-query:hover{color:var(--accent-ink)}
html[data-theme=light] .no-results{background:#f7f9f2;border-color:#ccd9bd;color:#637c48}
html[data-theme=light] .no-results-icon{color:#607c40;border-color:#b9cda0}
html[data-theme=light] .no-results p{color:#677852}
html[data-theme=light] .not-found p{color:#677852}
html[data-theme=light] .page-orbit{border-color:#c3d5ad;background:none;box-shadow:inset 0 0 0 22px var(--bg),inset 0 0 0 23px #d9e4ce,inset 0 0 0 53px var(--bg),inset 0 0 0 54px #e6eddf}
html[data-theme=light] .page-orbit:before{border-color:#a1ba80;box-shadow:none}
html[data-theme=light] .page-orbit:after{color:#637c3f}

/* Published copy stays dark and crisp. Explicit author text colors are retained. */
html[data-theme=light] :is(.article-meta,.article-author,.article-share){color:#66784e}
html[data-theme=light] .article-share:hover{color:var(--accent-ink)}
html[data-theme=light] :is(.article-toc>p,.article-toc>h2,.article-toc a){color:#64794c}
html[data-theme=light] :is(.article-toc a:hover,.article-toc a[aria-current=location]){color:var(--accent-ink)}
html[data-theme=light] :is(.article-body p,.article-body ul,.article-body ol,.rich-article-content){color:#4e5b44}
html[data-theme=light] .article-body strong{color:#2c3d22}
html[data-theme=light] .article-body a{color:var(--accent-ink)}
html[data-theme=light] .article-body li::marker{color:#5c7d3d}
html[data-theme=light] .article-body blockquote{color:#526f39;border-left-color:#8fac66;background:#f5f8f0}
html[data-theme=light] .article-callout{background:#f0f5e7;border-color:#cbdcb4}
html[data-theme=light] .article-callout h3{color:var(--accent-ink)}
html[data-theme=light] :is(.article-callout p,.article-callout>span){color:#677b4c}
html[data-theme=light] .article-callout>a{color:#537a2d}
html[data-theme=light] :is(.article-callout>a:hover,.article-bottom .text-link){color:var(--accent-ink)}
html[data-theme=light] .article-body code{background:#edf3e3;color:#557137}
html[data-theme=light] .article-body pre{background:#f5f8ef;border-color:#d2dfc1}
html[data-theme=light] .article-body pre code{background:none}
html[data-theme=light] :is(.article-body figcaption,.article-source-box p){color:#6b785a}
html[data-theme=light] .article-source-box .text-link{color:#557a30}
html[data-theme=light] :is(.collection-detail-banner,.article-cover:not(.blue):not(.article-cover-upload)){background:#edf4e1;border-color:#c5d6af}
html[data-theme=light] :is(.collection-detail-banner p,.collection-detail-banner>span,.collection-detail-banner .page-eyebrow){color:#667a4a}
html[data-theme=light] .collection-detail-banner .tag{color:#5b7b36;border-color:#b8cc9e}
html[data-theme=light] .collection-detail-banner:after{background:#607940}
html[data-theme=light] .collection-detail-banner.collection-ai{background:var(--lime);color:#223413;border-color:var(--lime)}
html[data-theme=light] .collection-detail-banner.collection-ai :is(p,.page-eyebrow){color:#455d2a}
html[data-theme=light] .article-cover:not(.blue):not(.article-cover-upload):before{background:#5d7a33}
html[data-theme=light] .article-cover:not(.blue):not(.article-cover-upload) :is(.article-cover-label,.article-cover-title){color:#516e33}
html[data-theme=light] .collection-note>span{color:#5c7c34}
html[data-theme=light] .collection-note p{color:#677852}

/* Subscribe, profile and social account strips. */
html[data-theme=light] .subscribe-icon{background:#edf5df;border-color:#c3d7a8;color:var(--accent-ink)}
html[data-theme=light] :is(.subscribe-panel .section-kicker,.subscribe-address-label,.subscribe-guide>.section-kicker,.subscribe-guide li>span){color:#677a4e}
html[data-theme=light] .subscribe-address{background:#fff;border-color:#cbd8ba}
html[data-theme=light] :is(.subscribe-panel-foot>span,.subscribe-preview-note,.subscribe-articles-heading>span,.subscribe-article-number,.subscribe-article-category){color:#6a7958}
html[data-theme=light] .subscribe-articles li>a:hover{background:#f5f8ef}
html[data-theme=light] .subscribe-article-arrow{color:var(--accent-ink)}
html[data-theme=light] .about-portrait{background:#f3f7eb;border-color:#d6e1c9}
html[data-theme=light] .about-portrait:after{background:radial-gradient(circle,#b8d47616,transparent 70%)}
html[data-theme=light] :is(.portrait-caption,.portrait-index,.about-value>span){color:#637949}
html[data-theme=light] :is(.about-story p,.about-value p){color:#687a54}
html[data-theme=light] .about-story strong{color:#354d24}
html[data-theme=light] .social-platform{background:var(--panel);color:#546445}
html[data-theme=light] .social-platform-linked:hover{background:#edf4e3;color:var(--accent-ink)}
html[data-theme=light] .social-platform-wechat{--social-color:#559341}
html[data-theme=light] .social-platform-douyin{--social-color:#35303c}
html[data-theme=light] .social-platform-bilibili{--social-color:#408cba}
html[data-theme=light] .social-platform-xiaohongshu{--social-color:#bb4c56}
html[data-theme=light] .social-platform-x{--social-color:#272e24}
html[data-theme=light] .social-platform-telegram{--social-color:#378ebe}
html[data-theme=light] .social-icon-cutout{fill:var(--panel)}
html[data-theme=light] :is(.footer>span,.footer>div,.site-footer-links){color:#6d775f}
html[data-theme=light] :is(.footer a:last-child,.footer .site-footer-links a:last-child,.site-footer-links a:hover){color:#557438}
html[data-theme=light] .site-shell>.site-footer-links>.page-content-note{color:#6c785f}

/* Expandable navigation search and legacy reading dialogs. */
html[data-theme=light] .search-button{color:#68755b}
html[data-theme=light] .search-button kbd{border-color:#d2dcc7;color:#69765c}
html[data-theme=light] :is(.nav-search .search-button:hover,.nav-search.is-open .search-button){color:var(--accent-ink)}
html[data-theme=light] .nav-search.is-open .nav-search-control{background:#f7faf2;border-color:#c8d8b5;box-shadow:none}
html[data-theme=light] .nav-search.is-open .nav-search-control:focus-within{border-color:#8eae62;box-shadow:0 0 0 3px #719f3d0d}
html[data-theme=light] :is(.nav-search-clear,.nav-search-close){color:#6a785c}
html[data-theme=light] :is(.nav-search-clear:hover,.nav-search-close:hover){background:#89a85a12;color:var(--accent-ink)}
html[data-theme=light] .nav-search-panel{background:#fff;border-color:#d4dfc9;box-shadow:0 18px 55px #344b231a}
html[data-theme=light] .nav-search-panel-head{color:#637b4a}
html[data-theme=light] :is(.nav-search-keyhint,.nav-search-result-copy small,.nav-search-status){color:#697855}
html[data-theme=light] .nav-search-results{scrollbar-color:#c4d5ac transparent}
html[data-theme=light] :is(.nav-search-result:hover,.nav-search-result:focus-visible,.nav-search-result.is-active,.nav-search-result.is-selected,.nav-search-result[aria-current=true]){background:#f1f6e9;border-color:#d0dfbd}
html[data-theme=light] .nav-search-result:focus-visible{border-color:#88a65e}
html[data-theme=light] .nav-search-result-icon{background:#edf3e5;border-color:#d0dfbd;color:#5f7d3d}
html[data-theme=light] .nav-search-result-icon.lime{color:var(--accent-ink)}
html[data-theme=light] .nav-search-result-icon.blue{background:#edf5f9;border-color:#c5dce8;color:#457794}
html[data-theme=light] .nav-search-result-icon.orange{background:#faf2e6;border-color:#ead9bd;color:#916d3a}
html[data-theme=light] .nav-search-result-copy strong{color:#344e22}
html[data-theme=light] .nav-search-result-arrow{color:#5d7a36}
html[data-theme=light] :is(.nav-search-result:hover,.nav-search-result.is-active) .nav-search-result-arrow{color:var(--accent-ink)}
html[data-theme=light] .nav-search-status{border-top-color:#e2e9d9}
html[data-theme=light] .nav-search-empty{color:#667a4d}
html[data-theme=light] .nav-search-empty strong{color:#4b6b31}
html[data-theme=light] :is(.search-dialog,.detail-dialog){background:#fff;border-color:#ccdabd;box-shadow:0 35px 150px #23341a33}
html[data-theme=light] :is(.search-dialog,.detail-dialog)::backdrop{background:#23341a66;backdrop-filter:blur(4px)}
html[data-theme=light] :is(.dialog-top,.search-hint){border-color:#dce6ce;color:#627847}
html[data-theme=light] .dialog-top button{color:#617946}
html[data-theme=light] .search-field svg{stroke:#71964c}
html[data-theme=light] .search-field input::placeholder{color:#697858}
html[data-theme=light] .result-row{border-bottom-color:#e3ecd8}
html[data-theme=light] .result-row:hover{background:#f1f6e9}
html[data-theme=light] .result-row p{color:#667752}
html[data-theme=light] .result-row>span{color:var(--accent-ink)}
html[data-theme=light] :is(.empty-state,.reading-content p){color:#65794a}
html[data-theme=light] .reading-content .reading-intro{color:#5b7a3b}
html[data-theme=light] .reading-content .example-notice{background:#f0f6e6;color:#637947;border-left-color:#8eaf61}
html[data-theme=light] .lab-featured{background:#f1f6e9;border-color:#c7d8b2}
html[data-theme=light] .lab-featured p{color:#63784a}
html[data-theme=light] .lab-track{background:var(--panel)}
html[data-theme=light] .lab-track:hover{background:#edf4e3;border-color:#a8c088}
html[data-theme=light] :is(.lab-track-index,.lab-track p){color:#64774b}
html[data-theme=light] .lab-track>h3{color:#405b2b}
html[data-theme=light] :is(.lab-track a,.lab-track a span,.lab-track a:hover){color:var(--accent-ink)}

@media(max-width:760px){
  .theme-toggle{width:36px;height:36px;padding:8px}
  html[data-theme=light] .nav-search.is-open .nav-search-control,
  html[data-theme=light] .nav-search.is-open .nav-search-control:focus-within{background:transparent;border:0;box-shadow:none}
  html[data-theme=light] .nav-search-form{background:#f8faf5;border-color:#c8d8b5}
  html[data-theme=light] .nav-search-form:focus-within{border-color:#8eae62;box-shadow:0 0 0 3px #719f3d0d}
  html[data-theme=light] .category-link{background:#f7f9f2;border-color:#d7e2c8}
  html[data-theme=light] .page-orbit{box-shadow:inset 0 0 0 15px var(--bg),inset 0 0 0 16px #d9e4ce,inset 0 0 0 33px var(--bg),inset 0 0 0 34px #e6eddf}
}
@media(max-width:370px){.theme-toggle{width:32px;height:32px;padding:7px}.header-actions{gap:3px}}
@media(prefers-reduced-motion:reduce){.theme-toggle{transition:none}}

html[data-theme=light] .interest-strip .strip-divider{background:var(--accent-ink)}

/* Daytime Liquid Glass: a clear navigation layer and thicker content surfaces.
   Keep the page white to match the sculpture's opaque refraction buffer. */
html[data-theme=light]{
  --panel:#f4f7f5;
  --line:#dde5df;
  --glass-edge:rgba(151,172,165,.28);
  --glass-control:linear-gradient(145deg,rgba(255,255,255,.94),rgba(255,255,255,.58) 55%,rgba(230,239,234,.65));
  --glass-card:linear-gradient(145deg,rgba(255,255,255,.96),rgba(247,250,248,.83) 60%,rgba(232,240,236,.76));
  --glass-blur:blur(22px) saturate(145%);
  --glass-shadow:0 8px 26px rgba(40,67,54,.06),0 2px 5px rgba(40,67,54,.04),inset 0 1px 1px #fff,inset 0 -1px 1px rgba(255,255,255,.65);
  --glass-control-shadow:0 3px 10px rgba(40,67,54,.05),inset 0 1px 1px #fff,inset 0 -1px 1px rgba(255,255,255,.65);
  scroll-padding-top:120px;
}

/* The header stays above content while its search popover remains unclipped. */
html[data-theme=light] .header{
  position:sticky;top:16px;height:84px;margin-top:20px;padding:0 24px;
  border:1px solid var(--glass-edge);border-radius:28px;
  background:transparent;box-shadow:var(--glass-shadow);
}
/* A sibling material plane lets the search panel blur the page independently. */
html[data-theme=light] .header:before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  border-radius:inherit;background:var(--glass-control);
  -webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);
}
html[data-theme=light] .desktop-nav{gap:4px}
html[data-theme=light] .desktop-nav a{padding:10px 15px;border-radius:22px;white-space:nowrap}
html[data-theme=light] .desktop-nav a:hover{background:rgba(255,255,255,.6);color:var(--accent-ink)}
html[data-theme=light] .desktop-nav :is(a[aria-current=page],a.nav-active){background:rgba(255,255,255,.9);box-shadow:var(--glass-control-shadow)}
html[data-theme=light] .desktop-nav :is(a[aria-current=page],a.nav-active):after{display:none}
html[data-theme=light] .mobile-nav{
  position:sticky;top:110px;z-index:11;margin-top:12px;padding:14px;
  border:1px solid var(--glass-edge);border-radius:22px;gap:6px;
  background:var(--glass-control);box-shadow:var(--glass-shadow);
  -webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);
}
html[data-theme=light] .mobile-nav a{padding:10px 14px;border-radius:16px}
html[data-theme=light] .mobile-nav a[aria-current=page]{background:rgba(255,255,255,.9);box-shadow:var(--glass-control-shadow)}
html[data-theme=light] .mobile-nav :is(a[aria-current=page],a.nav-active):after{display:none}

/* Small controls use clear glass, with a brighter pill for selected actions. */
html[data-theme=light] :is(.theme-toggle,.nav-search-control,.button-secondary,.project-view,.search-inline,.search-page-form,.subscribe-address,.article-actions .bookmark-button,.article-share,.floating-label){
  background:var(--glass-control);border:1px solid var(--glass-edge);
  box-shadow:var(--glass-control-shadow);
  -webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);
}
html[data-theme=light] :is(.button,.article-actions .bookmark-button,.article-share){border-radius:24px}
html[data-theme=light] .button-primary{
  background:linear-gradient(145deg,#e9ffb4,#d6ff62 58%,#c5ee58);
  border-color:#b9dc66;box-shadow:0 4px 14px #9bb74a1c,inset 0 1px 1px #f5ffd8;
}
html[data-theme=light] .button-primary:hover{background:linear-gradient(145deg,#eeffc7,#deff83 58%,#cfef76)}
html[data-theme=light] :is(.button-secondary:hover,.theme-toggle:hover){background:linear-gradient(145deg,#fff,#eef4eb);border-color:#bacbb3}
html[data-theme=light] .article-share{padding:10px 14px}
html[data-theme=light] :is(.search-inline,.search-page-form,.subscribe-address){border-radius:18px}
html[data-theme=light] .sort-select{background-color:rgba(243,248,245,.8);border-color:var(--glass-edge);border-radius:16px;box-shadow:var(--glass-control-shadow)}
html[data-theme=light] .project-view{border-radius:18px}
html[data-theme=light] .project-view button{border-radius:13px}
html[data-theme=light] .project-view button[aria-pressed=true]{background:#fff;color:var(--accent-ink);box-shadow:var(--glass-control-shadow)}
html[data-theme=light] :is(.filter,.project-filters button,.category-link,.pagination a){border-radius:18px}
html[data-theme=light] :is(.filter.active,.project-filters button[aria-pressed=true],.category-link.active,.category-link[aria-current=page],.pagination a[aria-current=page]){
  background:linear-gradient(145deg,#f8ffed,#e8f3da);border-color:#c7dab7;color:var(--accent-ink);
  box-shadow:var(--glass-control-shadow);
}
html[data-theme=light] :is(.tag,.project-tags span){border-radius:10px}

/* Blur only the material behind the content, never the cover or the text. */
html[data-theme=light] :is(.feature-card,.discovery-card,.project-card,.topic-card,:where(.project-features article),.topic-publications,.subscribe-panel,.lab-track,.about-portrait,.social-platform,.article-callout,.no-results){
  background:var(--glass-card);border-color:var(--glass-edge);border-radius:22px;
  box-shadow:var(--glass-shadow);
  -webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);
}
html[data-theme=light] :is(.feature-card,.discovery-card,.project-card,.topic-card,.social-platform-linked,.lab-track){transition:border-color .2s,box-shadow .2s,transform .2s,background .2s}
html[data-theme=light] :is(.feature-card,.discovery-card,.project-card,.topic-card,.social-platform-linked,.lab-track):hover{
  border-color:#bbceb1;box-shadow:0 12px 32px rgba(40,67,54,.09),0 2px 6px rgba(40,67,54,.04),inset 0 1px 1px #fff;
}
html[data-theme=light] .social-platform{border-radius:18px}
html[data-theme=light] .social-platform-linked:hover{background:linear-gradient(145deg,#fff,#edf5e8)}
html[data-theme=light] .topic-card{background:linear-gradient(145deg,rgba(255,255,255,.95),rgba(238,247,226,.8))}
html[data-theme=light] .topic-blue{background:linear-gradient(145deg,rgba(255,255,255,.95),rgba(228,241,250,.8))}
html[data-theme=light] .topic-violet{background:linear-gradient(145deg,rgba(255,255,255,.95),rgba(241,233,250,.8))}
html[data-theme=light] :is(.content-icon,.subscribe-icon,.nav-search-result-icon){border-radius:13px;box-shadow:inset 0 1px 1px #fff,0 2px 5px #244b3010}
html[data-theme=light] .article-toc{
  top:120px;padding:18px;border:1px solid var(--glass-edge);border-radius:20px;
  max-height:calc(100dvh - 144px);overflow-y:auto;scrollbar-width:thin;
  background:var(--glass-card);box-shadow:var(--glass-control-shadow);
  -webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);
}
html[data-theme=light] .article-body blockquote{border-radius:0 16px 16px 0;background:linear-gradient(120deg,#f1f7eb,#fafcf8)}
html[data-theme=light] .article-body pre{border-radius:18px}
html[data-theme=light] :is(.project-topic-link,.topic-network-panel){border-radius:20px;box-shadow:var(--glass-control-shadow)}

/* Search floats on a thicker glass layer so results stay readable over artwork. */
html[data-theme=light] .nav-search-control{border-radius:23px}
html[data-theme=light] .nav-search .search-button{border-radius:22px}
html[data-theme=light] .nav-search.is-open .nav-search-control{background:var(--glass-control);border-color:#c5d5bb;box-shadow:var(--glass-control-shadow)}
html[data-theme=light] .nav-search.is-open .nav-search-control:focus-within{border-color:#8eae62;box-shadow:0 0 0 3px #719f3d10,var(--glass-control-shadow)}
html[data-theme=light] :is(.nav-search-panel,.search-dialog,.detail-dialog){
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(242,247,244,.91));
  border-color:var(--glass-edge);border-radius:24px;
  box-shadow:0 20px 60px rgba(35,59,44,.14),inset 0 1px 1px #fff;
  -webkit-backdrop-filter:blur(28px) saturate(150%);backdrop-filter:blur(28px) saturate(150%);
}
html[data-theme=light] .nav-search-panel{padding:10px}
html[data-theme=light] .nav-search-result{border-radius:15px}
html[data-theme=light] :is(.nav-search-clear,.nav-search-close){border-radius:50%}

@media(max-width:1200px) and (min-width:961px){
  html[data-theme=light] .header{padding:0 18px;gap:14px}
  html[data-theme=light] .desktop-nav a{padding:10px 12px}
  html[data-theme=light] .header-actions{gap:12px}
}
@media(max-width:760px){
  html[data-theme=light]{--glass-blur:blur(14px) saturate(135%);scroll-padding-top:110px}
  html[data-theme=light] .header{top:10px;height:66px;margin-top:14px;padding:0 14px;border-radius:24px;gap:10px}
  html[data-theme=light] .header>.brand{margin-top:18px}
  html[data-theme=light] .header-actions{height:66px;gap:5px}
  html[data-theme=light] .mobile-nav{top:88px;margin-top:10px;border-radius:20px}
  html[data-theme=light] .header.is-search-open{height:126px}
  html[data-theme=light] :is(.nav-search-control,.nav-search.is-open .nav-search-control,.nav-search.is-open .nav-search-control:focus-within){background:transparent;border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
  html[data-theme=light] .nav-search-form{top:74px;left:10px;right:10px;border-radius:18px;background:var(--glass-card);box-shadow:var(--glass-control-shadow)}
  html[data-theme=light] .nav-search-close{top:75px;right:11px}
  html[data-theme=light] .nav-search-panel{top:134px;border-radius:22px;max-height:calc(100dvh - 164px)}
  html[data-theme=light] .article-toc{position:static;padding:18px;gap:9px 16px;max-height:none;overflow:visible}
  html[data-theme=light] :is(.feature-card,.discovery-card,.project-card,.topic-card,.subscribe-panel,.about-portrait){border-radius:20px}
}
@media(max-width:370px){
  html[data-theme=light] .header{padding:0 10px;gap:7px}
  html[data-theme=light] .header-actions{gap:2px}
}

/* Solid surfaces retain the same hierarchy when transparency is unavailable. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  html[data-theme=light]{--glass-control:linear-gradient(145deg,#fff,#f1f6f2);--glass-card:linear-gradient(145deg,#fff,#f2f6f3)}
  html[data-theme=light] :is(.nav-search-panel,.search-dialog,.detail-dialog){background:#f9fbfa}
  html[data-theme=light] .topic-card{background:linear-gradient(145deg,#fff,#eff7e5)}
  html[data-theme=light] .topic-blue{background:linear-gradient(145deg,#fff,#eaf4fa)}
  html[data-theme=light] .topic-violet{background:linear-gradient(145deg,#fff,#f3ecfa)}
  html[data-theme=light] .sort-select{background-color:#f5f8f6}
}
@media(prefers-reduced-transparency:reduce){
  html[data-theme=light]{--glass-blur:none;--glass-control:#f8faf9;--glass-card:#f8faf9}
  html[data-theme=light] :is(.topic-card,.topic-blue,.topic-violet,.nav-search-panel,.search-dialog,.detail-dialog){background:#f8faf9;-webkit-backdrop-filter:none;backdrop-filter:none}
  html[data-theme=light] .sort-select{background-color:#f8faf9}
}
@media(prefers-contrast:more){
  html[data-theme=light]{--glass-edge:#9aaa9e;--glass-control:#fff;--glass-card:#fff;--glass-blur:none;--muted:#45523e}
  html[data-theme=light] :is(.topic-card,.topic-blue,.topic-violet,.nav-search-panel,.search-dialog,.detail-dialog){background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none}
  html[data-theme=light] .sort-select{background-color:#fff}
}

/* Nighttime uses the same soft glass silhouette, over the pure black page.
   These materials affect the surfaces behind content, never the artwork. */
html:not([data-theme=light]){
  --glass-edge:rgba(201,219,210,.17);
  --glass-selected:rgba(211,243,182,.09);
  --glass-filter:linear-gradient(145deg,rgba(180,213,119,.14),rgba(49,67,33,.5));
  --glass-control:linear-gradient(145deg,rgba(255,255,255,.1),rgba(255,255,255,.035) 55%,rgba(29,42,35,.6));
  --glass-card:linear-gradient(145deg,rgba(37,43,40,.82),rgba(21,26,23,.74) 60%,rgba(28,38,32,.78));
  --glass-blur:blur(22px) saturate(145%);
  --glass-shadow:0 8px 26px rgba(0,0,0,.28),0 2px 5px rgba(0,0,0,.2),inset 0 1px 1px rgba(255,255,255,.13),inset 0 -1px 1px rgba(205,224,215,.04);
  --glass-control-shadow:0 3px 10px rgba(0,0,0,.2),inset 0 1px 1px rgba(255,255,255,.12),inset 0 -1px 1px rgba(205,224,215,.04);
  scroll-padding-top:120px;
}
html:not([data-theme=light]) .header{
  position:sticky;top:16px;height:84px;margin-top:20px;padding:0 24px;
  border:1px solid var(--glass-edge);border-radius:28px;
  background:transparent;box-shadow:var(--glass-shadow);
}
/* The separate material plane keeps the search popover's blur independent. */
html:not([data-theme=light]) .header:before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  border-radius:inherit;background:var(--glass-control);
  -webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);
}
html:not([data-theme=light]) .desktop-nav{gap:4px}
html:not([data-theme=light]) .desktop-nav a{padding:10px 15px;border-radius:22px;white-space:nowrap}
html:not([data-theme=light]) .desktop-nav a:hover{background:rgba(255,255,255,.06);color:var(--lime)}
html:not([data-theme=light]) .desktop-nav :is(a[aria-current=page],a.nav-active){background:var(--glass-selected);box-shadow:var(--glass-control-shadow)}
html:not([data-theme=light]) .desktop-nav :is(a[aria-current=page],a.nav-active):after{display:none}
html:not([data-theme=light]) .mobile-nav{
  position:sticky;top:110px;z-index:11;margin-top:12px;padding:14px;
  border:1px solid var(--glass-edge);border-radius:22px;gap:6px;
  background:var(--glass-control);box-shadow:var(--glass-shadow);
  -webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);
}
html:not([data-theme=light]) .mobile-nav a{padding:10px 14px;border-radius:16px}
html:not([data-theme=light]) .mobile-nav a[aria-current=page]{background:var(--glass-selected);box-shadow:var(--glass-control-shadow)}
html:not([data-theme=light]) .mobile-nav :is(a[aria-current=page],a.nav-active):after{display:none}

html:not([data-theme=light]) :is(.theme-toggle,.nav-search-control,.button-secondary,.project-view,.search-inline,.search-page-form,.subscribe-address,:where(.article-actions .bookmark-button),.article-share,.floating-label){
  background:var(--glass-control);border:1px solid var(--glass-edge);
  box-shadow:var(--glass-control-shadow);
  -webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);
}
html:not([data-theme=light]) :is(.button,:where(.article-actions .bookmark-button),.article-share){border-radius:24px}
html:not([data-theme=light]) .button-primary{box-shadow:0 4px 14px rgba(173,209,67,.1),inset 0 1px 1px rgba(255,255,255,.45)}
html:not([data-theme=light]) :is(.button-secondary:hover,.theme-toggle:hover){background:linear-gradient(145deg,rgba(255,255,255,.13),rgba(39,52,42,.75));border-color:rgba(203,222,192,.3)}
html:not([data-theme=light]) .article-share{padding:10px 14px}
html:not([data-theme=light]) :is(.search-inline,.search-page-form,.subscribe-address){border-radius:18px}
html:not([data-theme=light]) .sort-select{background-color:rgba(24,31,27,.9);border-color:var(--glass-edge);border-radius:16px;box-shadow:var(--glass-control-shadow)}
html:not([data-theme=light]) .project-view{border-radius:18px}
html:not([data-theme=light]) .project-view button{border-radius:13px}
html:not([data-theme=light]) .project-view button[aria-pressed=true]{background:var(--glass-selected);color:var(--lime);box-shadow:var(--glass-control-shadow)}
html:not([data-theme=light]) :is(.filter,.project-filters button,.category-link,.pagination a){border-radius:18px}
html:not([data-theme=light]) :is(.filter.active,.project-filters button[aria-pressed=true],.category-link.active,.category-link[aria-current=page],.pagination a[aria-current=page]){
  background:var(--glass-filter);border-color:rgba(180,213,119,.28);color:var(--lime);
  box-shadow:var(--glass-control-shadow);
}
html:not([data-theme=light]) :is(.tag,.project-tags span){border-radius:10px}

html:not([data-theme=light]) :is(.feature-card,.discovery-card,.project-card,.topic-card,:where(.project-features article),.topic-publications,.subscribe-panel,.lab-track,.about-portrait,.social-platform,.article-callout,.no-results){
  background:var(--glass-card);border-color:var(--glass-edge);border-radius:22px;
  box-shadow:var(--glass-shadow);
  -webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);
}
html:not([data-theme=light]) :is(.feature-card,.discovery-card,.project-card,.topic-card,.social-platform-linked,.lab-track){transition:border-color .2s,box-shadow .2s,transform .2s,background .2s}
html:not([data-theme=light]) :is(.feature-card,.discovery-card,.project-card,.topic-card,.social-platform-linked,.lab-track):hover{
  border-color:rgba(208,228,216,.3);box-shadow:0 12px 32px rgba(0,0,0,.35),0 2px 6px rgba(0,0,0,.22),inset 0 1px 1px rgba(255,255,255,.18);
}
html:not([data-theme=light]) .social-platform{border-radius:18px}
html:not([data-theme=light]) :is(.social-platform-linked,.lab-track):hover{background:linear-gradient(145deg,rgba(43,52,44,.88),rgba(28,40,28,.78))}
html:not([data-theme=light]) .topic-card{background:linear-gradient(145deg,rgba(40,47,34,.84),rgba(22,30,18,.75))}
html:not([data-theme=light]) .topic-blue{background:linear-gradient(145deg,rgba(35,44,51,.84),rgba(18,27,33,.75))}
html:not([data-theme=light]) .topic-violet{background:linear-gradient(145deg,rgba(45,38,54,.84),rgba(27,21,35,.75))}
html:not([data-theme=light]) :is(.content-icon,.subscribe-icon,.nav-search-result-icon){border-radius:13px;box-shadow:inset 0 1px 1px rgba(255,255,255,.1),0 2px 5px rgba(0,0,0,.16)}
html:not([data-theme=light]) .article-toc{
  top:120px;padding:18px;border:1px solid var(--glass-edge);border-radius:20px;
  max-height:calc(100dvh - 144px);overflow-y:auto;scrollbar-width:thin;
  background:var(--glass-card);box-shadow:var(--glass-control-shadow);
  -webkit-backdrop-filter:var(--glass-blur);backdrop-filter:var(--glass-blur);
}
html:not([data-theme=light]) .article-body blockquote{border-radius:0 16px 16px 0}
html:not([data-theme=light]) .article-body pre{border-radius:18px}
html:not([data-theme=light]) :is(.project-topic-link,.topic-network-panel){border-radius:20px;box-shadow:var(--glass-control-shadow)}

/* Search uses a denser glass surface to keep text legible over the sculpture. */
html:not([data-theme=light]) .nav-search-control{border-radius:23px}
html:not([data-theme=light]) .nav-search .search-button{border-radius:22px}
html:not([data-theme=light]) .nav-search.is-open .nav-search-control{background:var(--glass-control);border-color:rgba(189,215,159,.3);box-shadow:var(--glass-control-shadow)}
html:not([data-theme=light]) .nav-search.is-open .nav-search-control:focus-within{border-color:#879f68;box-shadow:0 0 0 3px rgba(184,219,139,.06),var(--glass-control-shadow)}
html:not([data-theme=light]) :is(.nav-search-panel,.search-dialog,.detail-dialog){
  background:linear-gradient(145deg,rgba(31,38,33,.97),rgba(20,28,22,.93));
  border-color:var(--glass-edge);border-radius:24px;
  box-shadow:0 20px 60px rgba(0,0,0,.5),inset 0 1px 1px rgba(255,255,255,.13);
  -webkit-backdrop-filter:blur(28px) saturate(150%);backdrop-filter:blur(28px) saturate(150%);
}
html:not([data-theme=light]) .nav-search-panel{padding:10px}
html:not([data-theme=light]) .nav-search-result{border-radius:15px}
html:not([data-theme=light]) :is(.nav-search-clear,.nav-search-close){border-radius:50%}

@media(max-width:1200px) and (min-width:961px){
  html:not([data-theme=light]) .header{padding:0 18px;gap:14px}
  html:not([data-theme=light]) .desktop-nav a{padding:10px 12px}
  html:not([data-theme=light]) .header-actions{gap:12px}
}
@media(max-width:760px){
  html:not([data-theme=light]){--glass-blur:blur(14px) saturate(135%);scroll-padding-top:110px}
  html:not([data-theme=light]) .header{top:10px;height:66px;margin-top:14px;padding:0 14px;border-radius:24px;gap:10px}
  html:not([data-theme=light]) .header>.brand{margin-top:18px}
  html:not([data-theme=light]) .header-actions{height:66px;gap:5px}
  html:not([data-theme=light]) .mobile-nav{top:88px;margin-top:10px;border-radius:20px}
  html:not([data-theme=light]) .header.is-search-open{height:126px}
  html:not([data-theme=light]) :is(.nav-search-control,.nav-search.is-open .nav-search-control,.nav-search.is-open .nav-search-control:focus-within){background:transparent;border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
  html:not([data-theme=light]) .nav-search-form{top:74px;left:10px;right:10px;border-radius:18px;background:var(--glass-card);box-shadow:var(--glass-control-shadow)}
  html:not([data-theme=light]) .nav-search-close{top:75px;right:11px}
  html:not([data-theme=light]) .nav-search-panel{top:134px;border-radius:22px;max-height:calc(100dvh - 164px)}
  html:not([data-theme=light]) .article-toc{position:static;padding:18px;gap:9px 16px;max-height:none;overflow:visible}
  html:not([data-theme=light]) :is(.feature-card,.discovery-card,.project-card,.topic-card,.subscribe-panel,.about-portrait){border-radius:20px}
}
@media(max-width:370px){
  html:not([data-theme=light]) .header{padding:0 10px;gap:7px}
  html:not([data-theme=light]) .header-actions{gap:2px}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  html:not([data-theme=light]){--glass-control:linear-gradient(145deg,#202923,#151c17);--glass-card:linear-gradient(145deg,#252d28,#161e19);--glass-selected:#293327;--glass-filter:#2e3926}
  html:not([data-theme=light]) :is(.nav-search-panel,.search-dialog,.detail-dialog){background:#1b241e}
  html:not([data-theme=light]) .topic-card{background:linear-gradient(145deg,#283023,#161e12)}
  html:not([data-theme=light]) .topic-blue{background:linear-gradient(145deg,#232c33,#121b21)}
  html:not([data-theme=light]) .topic-violet{background:linear-gradient(145deg,#2d2636,#1b1523)}
  html:not([data-theme=light]) .sort-select{background-color:#1b241e}
  html:not([data-theme=light]) :is(.social-platform-linked,.lab-track,.button-secondary,.theme-toggle):hover{background:#253021}
}
@media(prefers-reduced-transparency:reduce){
  html:not([data-theme=light]){--glass-blur:none;--glass-control:#202923;--glass-card:#202923;--glass-selected:#293327;--glass-filter:#2e3926}
  html:not([data-theme=light]) :is(.topic-card,.topic-blue,.topic-violet,.nav-search-panel,.search-dialog,.detail-dialog){background:#202923;-webkit-backdrop-filter:none;backdrop-filter:none}
  html:not([data-theme=light]) .sort-select{background-color:#202923}
  html:not([data-theme=light]) :is(.social-platform-linked,.lab-track,.button-secondary,.theme-toggle):hover{background:#29332b}
}
@media(prefers-contrast:more){
  html:not([data-theme=light]){--glass-edge:#6e7b71;--glass-control:#151b17;--glass-card:#151b17;--glass-blur:none;--glass-selected:#293327;--glass-filter:#2e3926;--muted:#b5bdaf}
  html:not([data-theme=light]) :is(.topic-card,.topic-blue,.topic-violet,.nav-search-panel,.search-dialog,.detail-dialog){background:#151b17;-webkit-backdrop-filter:none;backdrop-filter:none}
  html:not([data-theme=light]) .sort-select{background-color:#151b17}
  html:not([data-theme=light]) :is(.social-platform-linked,.lab-track,.button-secondary,.theme-toggle):hover{background:#253027}
}

/* Keep the selected capsule separate from its label during normal page navigation. */
:is(.desktop-nav,.mobile-nav) a{
  position:relative;
  transition:color 180ms ease,background-color 180ms ease,box-shadow 180ms ease;
}
html[data-theme=light] :is(.desktop-nav,.mobile-nav) :is(a[aria-current=page],a.nav-active),
html:not([data-theme=light]) :is(.desktop-nav,.mobile-nav) :is(a[aria-current=page],a.nav-active){
  background:transparent;box-shadow:none;
}
.nav-selection{
  position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:var(--glass-selected);box-shadow:var(--glass-control-shadow);
}
html[data-theme=light] .nav-selection{background:rgba(255,255,255,.9)}
.nav-label{position:relative;display:inline-block}

@media(prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
  :root{view-transition-name:none}
  .desktop-nav .nav-selection{view-transition-name:nav-selection}
  .desktop-nav .nav-label-home{view-transition-name:nav-label-home}
  .desktop-nav .nav-label-blog{view-transition-name:nav-label-blog}
  .desktop-nav .nav-label-products{view-transition-name:nav-label-products}
  .desktop-nav .nav-label-topics{view-transition-name:nav-label-topics}
  .desktop-nav .nav-label-about{view-transition-name:nav-label-about}
  /* Label snapshots sit above the moving background, including in the white theme. */
  ::view-transition{pointer-events:none}
  ::view-transition-group(nav-selection){z-index:0;animation-duration:300ms;animation-timing-function:cubic-bezier(.22,1,.36,1)}
  ::view-transition-group(nav-label-home),
  ::view-transition-group(nav-label-blog),
  ::view-transition-group(nav-label-products),
  ::view-transition-group(nav-label-topics),
  ::view-transition-group(nav-label-about){z-index:1;animation-duration:300ms;animation-timing-function:cubic-bezier(.22,1,.36,1)}
}
@media(prefers-reduced-motion:reduce){
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
}

/* Give the desktop search shortcut its own space inside the closed capsule. */
@media(min-width:761px){
  .nav-search:not(.is-open):has(.search-button kbd){width:152px}
  .nav-search:not(.is-open):has(.search-button kbd) .search-button{gap:10px;padding:0 12px}
  .nav-search:not(.is-open) .search-button kbd{flex-shrink:0;margin-left:auto;padding:3px 7px}
}

/* Liquid Glass belongs to the floating controls. Content keeps a quieter surface.
   A separate backdrop plane prevents a header from trapping its popover's blur. */
html[data-theme=light]{
  --liquid-fill:linear-gradient(155deg,rgba(255,255,255,.66),rgba(255,255,255,.24) 45%,rgba(236,244,239,.36));
  --liquid-panel-fill:linear-gradient(155deg,rgba(255,255,255,.80),rgba(247,251,248,.66) 60%,rgba(235,244,238,.72));
  --liquid-edge:rgba(152,174,161,.25);
  --liquid-rim-light:rgba(255,255,255,.95);
  --liquid-rim-shade:rgba(91,120,104,.22);
  --liquid-shadow:0 8px 24px rgba(33,56,43,.07),0 1px 3px rgba(33,56,43,.06);
  --liquid-panel-shadow:0 18px 48px rgba(33,56,43,.14),0 3px 9px rgba(33,56,43,.07);
  --liquid-overlay:rgba(255,255,255,.34);
  --liquid-selected:rgba(255,255,255,.62);
  --liquid-solid:#f7faf8;
  --content-shadow:0 2px 8px rgba(40,67,54,.025);
}
html:not([data-theme=light]){
  --liquid-fill:linear-gradient(155deg,rgba(255,255,255,.105),rgba(18,25,21,.28) 45%,rgba(29,41,33,.43));
  --liquid-panel-fill:linear-gradient(155deg,rgba(35,43,37,.86),rgba(19,28,22,.76) 60%,rgba(25,36,28,.82));
  --liquid-edge:rgba(196,220,204,.16);
  --liquid-rim-light:rgba(244,255,247,.36);
  --liquid-rim-shade:rgba(108,145,119,.12);
  --liquid-shadow:0 8px 26px rgba(0,0,0,.24),0 1px 4px rgba(0,0,0,.24);
  --liquid-panel-shadow:0 22px 52px rgba(0,0,0,.46),0 3px 10px rgba(0,0,0,.2);
  --liquid-overlay:rgba(238,255,243,.045);
  --liquid-selected:rgba(211,243,182,.12);
  --liquid-solid:#1b241e;
  --content-shadow:0 2px 8px rgba(0,0,0,.12);
}
html[data-theme] :is(.feature-card,.discovery-card,.project-card,.topic-card,:where(.project-features article),.topic-publications,.subscribe-panel,.lab-track,.about-portrait,.social-platform,.article-callout,.no-results){
  -webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:var(--content-shadow);
}
html[data-theme] :is(.feature-card,.discovery-card,.project-card,.topic-card,.social-platform-linked,.lab-track):hover{
  box-shadow:0 6px 20px rgba(40,67,54,.07);
}
html:not([data-theme=light]) :is(.feature-card,.discovery-card,.project-card,.topic-card,.social-platform-linked,.lab-track):hover{
  box-shadow:0 6px 20px rgba(0,0,0,.24);
}
html[data-theme] .header{
  height:76px;border-radius:32px;border-color:var(--liquid-edge);
  background:transparent;box-shadow:var(--liquid-shadow);
  --liquid-radius:32px;
  --glass-lens-depth:7;--glass-lens-blur:10;--glass-rim-width:12;
}
html[data-theme] :is(.nav-search-panel,.mobile-nav){
  isolation:isolate;background:transparent;border:1px solid var(--liquid-edge);
  box-shadow:var(--liquid-panel-shadow);-webkit-backdrop-filter:none;backdrop-filter:none;
  --liquid-radius:26px;
  --glass-refraction:initial;--glass-pointer-active:0;
  --glass-lens-depth:8;--glass-lens-blur:18;--glass-rim-width:12;
}
html[data-theme] :is(.header,.nav-search-panel,.mobile-nav)::before{
  content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;pointer-events:none;
  clip-path:inset(0 round var(--liquid-radius,26px));
  background:radial-gradient(220px 130px at var(--glass-pointer-x,50%) var(--glass-pointer-y,0%),rgba(255,255,255,calc(var(--glass-pointer-active,0) * .13)),transparent 75%),var(--liquid-fill);
  -webkit-backdrop-filter:var(--glass-refraction,blur(10px)) saturate(125%);
  backdrop-filter:var(--glass-refraction,blur(10px)) saturate(125%);
}
html[data-theme] :is(.nav-search-panel,.mobile-nav)::before{
  background:radial-gradient(220px 130px at var(--glass-pointer-x,50%) var(--glass-pointer-y,0%),rgba(255,255,255,calc(var(--glass-pointer-active,0) * .08)),transparent 75%),var(--liquid-panel-fill);
  -webkit-backdrop-filter:var(--glass-refraction,blur(18px)) saturate(130%);
  backdrop-filter:var(--glass-refraction,blur(18px)) saturate(130%);
}
/* A narrow, directional rim gives the material a silhouette without washing text. */
html[data-theme] :is(.header,.nav-search-panel,.mobile-nav)::after{
  content:"";position:absolute;inset:0;z-index:2;pointer-events:none;border-radius:inherit;padding:1px;
  background:radial-gradient(190px 95px at var(--glass-pointer-x,22%) var(--glass-pointer-y,0%),var(--liquid-rim-light),transparent 80%),linear-gradient(150deg,var(--liquid-rim-light),transparent 30%,var(--liquid-rim-shade) 57%,transparent 76%,var(--liquid-rim-light));
  -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;
}
html[data-theme] .desktop-nav{gap:3px}
html[data-theme] .desktop-nav a{padding:11px 15px;border-radius:23px}
html[data-theme] .desktop-nav a:hover{background:var(--liquid-overlay)}
html[data-theme] .nav-selection{
  background:var(--liquid-selected);box-shadow:0 1px 3px rgba(16,37,23,.05),inset 0 1px 0 rgba(255,255,255,.16);
}
/* Controls inside the navigation are thin overlays on its shared glass plane. */
html[data-theme] :is(.header .theme-toggle,.nav-search-control){
  background:var(--liquid-overlay);border-color:transparent;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);-webkit-backdrop-filter:none;backdrop-filter:none;
}
html[data-theme] .header .theme-toggle:hover{background:var(--liquid-selected);border-color:transparent}
html[data-theme] :is(.menu-button,.header .theme-toggle,.search-button){
  transition:background 180ms ease,color 180ms ease,transform 260ms cubic-bezier(.2,.8,.2,1);
}
html[data-theme] :is(.menu-button,.header .theme-toggle,.search-button):active{transform:scale(.94)}
html[data-theme] .menu-button{width:44px;height:44px;padding:10px;border-radius:50%;background:transparent}
html[data-theme] .menu-button:hover{background:var(--liquid-overlay)}
.menu-button span{transition:transform 300ms cubic-bezier(.2,.8,.2,1);transform-origin:center}
.header.is-menu-open .menu-button span:first-child{transform:translateY(3.5px) rotate(45deg)}
.header.is-menu-open .menu-button span:last-child{transform:translateY(-3.5px) rotate(-45deg)}
html[data-theme] .nav-search.is-open .nav-search-control{
  background:var(--liquid-overlay);border-color:var(--liquid-edge);box-shadow:none;
}
html[data-theme] .nav-search.is-open .nav-search-control:focus-within{
  border-color:var(--liquid-edge);box-shadow:0 0 0 2px rgba(139,174,99,.10);
}
html[data-theme] .nav-search-panel{border-radius:26px;animation:none;padding:10px}
.nav-search-form{animation:none}
.nav-search-result{transition:background 160ms ease,border-color 160ms ease,transform 200ms ease}
.nav-search-result:active{transform:scale(.987)}
html[data-theme] .mobile-nav{
  position:fixed;top:var(--glass-menu-top,104px);right:var(--glass-menu-right,24px);left:auto;
  width:min(280px,calc(100vw - 48px));max-height:calc(100dvh - var(--glass-menu-top,104px) - 20px);
  overflow-y:auto;overscroll-behavior:contain;margin:0;padding:9px;border-radius:26px;
  display:grid;grid-template-columns:1fr;gap:3px;z-index:13;
}
html[data-theme] .mobile-nav a{display:flex;align-items:center;min-height:46px;padding:11px 17px;border-radius:18px}
html[data-theme] .mobile-nav a:hover{background:var(--liquid-overlay)}
html[data-theme] .mobile-nav a:focus-visible{outline-offset:-3px}
html[data-theme] .mobile-nav .nav-selection{border-radius:18px}
@media(min-width:761px) and (max-width:1200px){
  html[data-theme] .desktop-nav a{padding:10px 12px}
}
@media(max-width:760px){
  html[data-theme] .header,html[data-theme] .header.is-search-open{
    height:66px;border-radius:27px;align-items:center;--liquid-radius:27px;
  }
  html[data-theme] .header>.brand{margin-top:0}
  html[data-theme] .header-actions{height:66px}
  html[data-theme] :is(.nav-search-control,.nav-search.is-open .nav-search-control,.nav-search.is-open .nav-search-control:focus-within){
    background:transparent;border:0;box-shadow:none;
  }
  html[data-theme] .nav-search-form{
    top:calc(100% + 10px);left:0;right:0;min-height:48px;padding:0 45px 0 16px;
    border:1px solid var(--liquid-edge);border-radius:24px;background:var(--liquid-panel-fill);
    box-shadow:var(--liquid-shadow);-webkit-backdrop-filter:blur(18px) saturate(130%);backdrop-filter:blur(18px) saturate(130%);
  }
  html[data-theme] .nav-search-form:focus-within{border-color:var(--liquid-edge);box-shadow:0 0 0 2px rgba(139,174,99,.12),var(--liquid-shadow)}
  html[data-theme] .nav-search-close{top:calc(100% + 12px);right:2px}
  html[data-theme] .nav-search-panel{
    top:calc(100% + 68px);left:0;right:0;width:100%;border-radius:25px;
    --liquid-radius:25px;
    max-height:calc(100dvh - 168px);max-height:calc(var(--glass-viewport-height,100dvh) - 168px);
  }
  html[data-theme] .mobile-nav{border-radius:25px;--liquid-radius:25px}
}
/* Preserve legibility when filters or optical enhancement are unavailable. */
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  html[data-theme] :is(.header,.nav-search-panel,.mobile-nav)::before{background:var(--liquid-solid)}
  html[data-theme] .nav-search-form{background:var(--liquid-solid)}
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){
  html[data-theme] :is(.header,.nav-search-panel,.mobile-nav)::before{
    background:var(--liquid-solid);-webkit-backdrop-filter:none;backdrop-filter:none;
  }
  html[data-theme] :is(.header,.nav-search-panel,.mobile-nav)::after{display:none}
  html[data-theme] .nav-search-form{background:var(--liquid-solid);-webkit-backdrop-filter:none;backdrop-filter:none}
}
@media(prefers-contrast:more){
  html[data-theme] :is(.header,.nav-search-panel,.mobile-nav,.nav-search-form){border-color:var(--glass-edge)}
  html[data-theme] .nav-selection{outline:1px solid currentColor;outline-offset:-1px}
}

/* A single glass capsule travels between desktop navigation labels. */
.desktop-nav.has-nav-follower{position:relative;isolation:isolate}
html[data-theme] .desktop-nav.has-nav-follower a,
html[data-theme] .desktop-nav.has-nav-follower a:hover{background:transparent;box-shadow:none}
.desktop-nav.has-nav-follower .nav-selection{visibility:hidden;view-transition-name:none}
.desktop-nav.has-nav-follower a{z-index:1}
.desktop-nav.has-nav-follower .is-nav-target{color:var(--lime)}
html[data-theme=light] .desktop-nav.has-nav-follower .is-nav-target{color:var(--accent-ink)}
.nav-follower{
  position:absolute;left:0;top:0;z-index:0;pointer-events:none;border-radius:23px;
  opacity:0;background:var(--liquid-selected);border:1px solid var(--liquid-edge);
  box-shadow:0 3px 10px rgba(16,37,23,.07),inset 0 1px 0 rgba(255,255,255,.22),inset 0 -1px 0 rgba(96,130,108,.06);
}
.nav-follower::before{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:radial-gradient(70px 50px at var(--nav-glint-x,50%) 0%,rgba(255,255,255,.18),transparent 80%);
}
.nav-follower.is-ready{
  transition:transform 360ms cubic-bezier(.22,1.15,.36,1),width 300ms cubic-bezier(.22,1,.36,1),height 300ms cubic-bezier(.22,1,.36,1),opacity 140ms ease;
}
@media(prefers-reduced-motion:no-preference){
  .desktop-nav.has-nav-follower .nav-follower{view-transition-name:nav-selection}
}
@media(prefers-reduced-motion:reduce){
  .nav-follower.is-ready{transition:none}
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){
  .nav-follower{background:var(--liquid-solid);outline:1px solid currentColor;outline-offset:-1px}
  .nav-follower::before{display:none}
}

/* Full-bleed covers share the card's rounded clip, including on hover. */
.discovery-card{overflow:hidden}
.discovery-card > .discovery-cover{border-radius:0}
@media(prefers-reduced-motion:reduce){
  html[data-theme] :is(.menu-button,.header .theme-toggle,.search-button,.nav-search-result):active{transform:none}
}

/* Let titles and real work lead; secondary labels stay quiet. */
.hero{min-height:620px;padding-top:36px;padding-bottom:52px}
.hero h1{margin-top:0}
.hero-description{max-width:32em}
.hero-art .art-bottom{letter-spacing:0}
.model-instruction,.model-reset{font:12px var(--sans);letter-spacing:0}
.featured-section{border-top:1px solid var(--line)}
.feature-side{grid-template-rows:1fr 1fr}
.feature-text-only{display:flex;align-items:center}
.feature-text-only .feature-content{width:100%;padding:30px}
.feature-text-only.feature-main .feature-content{padding:40px}
.card-meta .read-time{font:inherit;letter-spacing:0}
.discovery-card,.catalog-grid .discovery-card{display:flex;flex-direction:column;min-height:0}
.discovery-card-top,.catalog-grid .discovery-card-top{margin-bottom:16px;min-height:30px}
.discovery-category{font-size:12px;color:var(--muted);letter-spacing:0}
.discovery-meta{margin-top:auto}
.discovery-meta>span:last-child{margin-left:0;font:12px var(--sans);color:inherit}
html[data-theme] .discovery-meta>span:last-child{color:inherit}
.discovery-card p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.project-bottom{justify-content:flex-end}
.project-features h3{margin-top:0}
.topic-visual{height:140px;padding-bottom:0}
.topic-card-copy h2,.home-topic-grid .topic-card-copy h2{margin-top:0}
.topic-card-copy{padding-top:22px}
.topic-card-bottom{font-size:12px}
.about-page{align-items:center}
.about-portrait{min-height:320px;background-image:none}
.about-story .hero-buttons{margin-top:26px}
.footer>div{font-family:var(--sans);letter-spacing:0;font-size:12px}
@media(min-width:1500px){.hero{min-height:660px}}
@media(max-width:1100px){.hero{min-height:550px}.feature-text-only .feature-content{padding:24px}}
@media(max-width:760px){
  .hero{min-height:0;padding:46px 0 42px}
  .hero h1{margin-top:0}
  .hero-art{margin-top:24px}
  .model-reset{font-size:12px}
  .feature-side{grid-template-rows:auto}
  .feature-text-only .feature-content,.feature-text-only.feature-main .feature-content{padding:24px}
  .topic-visual{height:128px}
  .about-portrait{min-height:240px}
}

/* Buttons center their label whether or not an icon is present. */
.button{justify-content:center;text-align:center;gap:10px}
html[data-theme] .section-more .button{
  min-width:0;min-height:42px;padding:10px 22px;border-radius:10px;
  background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;
}
html[data-theme] .section-more .button:hover{background:var(--panel);transform:none;border-color:var(--muted)}
.section-more{margin-top:24px}

/* Article lists read as rows; feature stories and products keep their covers. */
.discovery-grid,.catalog-grid{grid-template-columns:minmax(0,1fr);gap:0}
html[data-theme] .discovery-card.article-row{
  display:grid;grid-template-columns:88px minmax(0,1fr) 44px;grid-template-areas:"meta copy save";
  align-items:start;column-gap:24px;row-gap:0;min-width:0;min-height:0;padding:26px 0;
  border:0;border-bottom:1px solid var(--line);border-radius:0;
  background:transparent;box-shadow:none;overflow:visible;
}
html[data-theme] .discovery-card.article-row-with-cover{
  grid-template-columns:88px minmax(0,1fr) 124px 44px;grid-template-areas:"meta copy cover save";
}
html[data-theme] .discovery-card.article-row:hover{transform:none;background:transparent;box-shadow:none;border-color:var(--line)}
.article-row .card-hit{border-radius:0}
.article-row .card-hit:focus-visible{outline:2px solid var(--lime);outline-offset:5px}
html[data-theme=light] .article-row .card-hit:focus-visible{outline-color:var(--accent-ink)}
.article-row-meta{grid-area:meta;display:flex;flex-direction:column;gap:9px;padding-top:4px;color:var(--muted);font-size:12px;line-height:1.6}
.article-row-meta .discovery-category{color:var(--text)}
.article-row-copy{grid-area:copy;min-width:0}
.article-row .article-row-copy h3{font-size:20px;line-height:1.55;font-weight:500;max-width:42em;margin:0 0 8px;transition:color .15s}
.article-row .article-row-copy p{font-size:14px;line-height:1.8;max-width:60em;margin:0;-webkit-line-clamp:2;color:var(--muted)}
.article-row:hover h3{color:var(--lime)}
html[data-theme=light] .article-row:hover h3{color:var(--accent-ink)}
.article-row>.discovery-cover{
  grid-area:cover;width:124px;max-width:100%;height:80px;object-fit:cover;
  margin:3px 0 0;border-radius:8px;
}
.article-row>.bookmark-button{grid-area:save;justify-self:end;width:44px;height:44px;display:grid;place-items:center;padding:0;border-radius:10px}
.article-row>.bookmark-button:hover{background:var(--panel)}
.related-section .article-row .article-row-copy h3{font-size:18px}
.discover-section .filter-row{margin-bottom:0}
.catalog-grid:has(.article-row){margin-top:4px}

/* Topics form a collection: one open cover beside two smaller entries. */
.topic-grid{grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:18px}
html[data-theme] .topic-card.topic-tile{position:relative;display:block;min-height:184px;box-shadow:none;border-radius:18px;overflow:hidden}
html[data-theme] .topic-card.topic-tile:hover{transform:translateY(-2px);box-shadow:none}
.topic-tile .topic-card-copy{display:flex;flex-direction:column;position:relative;z-index:1;min-height:184px;padding:26px;border:0}
.topic-tile .topic-card-copy h2,.home-topic-grid .topic-tile .topic-card-copy h2{font-size:22px;margin:0 100px 10px 0;line-height:1.45}
.topic-tile .topic-card-copy p{margin:0 96px 22px 0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:13px;line-height:1.8}
.topic-tile .topic-card-bottom{margin-top:auto;gap:16px;flex-direction:row;align-items:center}
.topic-tile .topic-visual{position:absolute;right:18px;top:26px;width:100px;height:100px;padding:0;opacity:.5;pointer-events:none}
.topic-tile .topic-orbit-emblem,.topic-tile .topic-network{width:96px;height:96px;display:grid;place-items:center;transform:none}
.topic-tile .topic-visual .ui-icon{width:88px;height:88px}
.topic-tile .topic-orbits{width:100px;height:90px;transform:scale(.65)}
.topic-tile:first-child:nth-last-child(n+3){grid-row:span 2}
.topic-tile:first-child:nth-last-child(n+3) .topic-card-copy{min-height:386px;padding:34px}
.topic-tile:first-child:nth-last-child(n+3) .topic-card-copy h2{font-size:32px;margin:0 0 18px;max-width:12em}
.topic-tile:first-child:nth-last-child(n+3) .topic-card-copy p{font-size:15px;max-width:25em;margin:0 0 80px;-webkit-line-clamp:3}
.topic-tile:first-child:nth-last-child(n+3) .topic-visual{top:auto;bottom:8px;right:-4px;width:260px;height:230px;opacity:.15}
.topic-tile:first-child:nth-last-child(n+3) .topic-orbit-emblem,.topic-tile:first-child:nth-last-child(n+3) .topic-network{width:230px;height:230px}
.topic-tile:first-child:nth-last-child(n+3) .topic-visual .ui-icon{width:220px;height:220px}
.topic-tile:first-child:nth-last-child(n+3) .topic-orbits{transform:scale(1.3)}
.topic-tile:only-child{grid-column:1/-1}
.topic-tile:focus-visible{outline:2px solid var(--lime);outline-offset:4px}
html[data-theme=light] .topic-tile:focus-visible{outline-color:var(--accent-ink)}
@media(max-width:1100px){
  html[data-theme] .discovery-card.article-row{grid-template-columns:72px minmax(0,1fr) 40px;column-gap:18px}
  html[data-theme] .discovery-card.article-row-with-cover{grid-template-columns:72px minmax(0,1fr) 100px 40px}
  .article-row>.discovery-cover{width:100px;height:72px}
  .topic-tile .topic-card-copy{padding:22px}
  .topic-tile .topic-card-copy h2,.home-topic-grid .topic-tile .topic-card-copy h2{font-size:20px;margin-right:74px}
  .topic-tile .topic-card-copy p{margin-right:66px}
  .topic-tile .topic-visual{right:8px;width:80px;opacity:.35}
  .topic-tile:first-child:nth-last-child(n+3) .topic-card-copy{padding:28px}
}
@media(max-width:760px){
  .topic-grid{grid-template-columns:minmax(0,1fr);gap:14px}
  .topic-tile:first-child:nth-last-child(n+3){grid-row:auto}
  .topic-tile:first-child:nth-last-child(n+3) .topic-card-copy{min-height:280px;padding:26px}
  .topic-tile:first-child:nth-last-child(n+3) .topic-card-copy h2{font-size:28px}
  .topic-tile:first-child:nth-last-child(n+3) .topic-card-copy p{font-size:14px;margin-bottom:48px}
  .topic-tile:first-child:nth-last-child(n+3) .topic-visual{width:200px;height:180px;right:-12px}
  .topic-tile:first-child:nth-last-child(n+3) .topic-orbit-emblem,.topic-tile:first-child:nth-last-child(n+3) .topic-network{width:180px;height:180px}
  .topic-tile:first-child:nth-last-child(n+3) .topic-visual .ui-icon{width:180px;height:180px}
}
@media(max-width:640px){
  html[data-theme] .discovery-card.article-row{
    grid-template-columns:minmax(0,1fr) 40px;grid-template-areas:"meta save" "copy copy";
    padding:19px 0 23px;column-gap:12px;row-gap:7px;
  }
  html[data-theme] .discovery-card.article-row-with-cover{
    grid-template-columns:minmax(0,1fr) 70px 40px;grid-template-areas:"meta meta save" "copy cover cover";
  }
  .article-row-meta{flex-direction:row;align-items:center;gap:14px;padding-top:0;min-height:36px}
  .article-row .article-row-copy h3{font-size:18px;line-height:1.55}
  .article-row .article-row-copy p{font-size:13px;line-height:1.75}
  .article-row>.discovery-cover{width:100%;height:78px;margin-top:4px}
  .article-row>.bookmark-button{width:40px;height:36px}
  .section-more{margin-top:20px}
}
@media(prefers-reduced-motion:reduce){
  html[data-theme] .topic-card.topic-tile:hover{transform:none}
  .article-row .article-row-copy h3{transition:none}
}

/* The homepage uses spacing to separate its sections and recent articles. */
body[data-page=home] :is(.featured-section,.about-section){border-top:0;border-bottom:0}
body[data-page=home] .site-shell>.site-footer-links{border-top:0}
body[data-page=home] .hero-art .art-bottom{justify-content:flex-end}
html[data-theme] body[data-page=home] .discovery-card.article-row{
  grid-template-columns:minmax(0,1fr) 44px;grid-template-areas:"copy save";
  border:0;padding:26px 0;
}
html[data-theme] body[data-page=home] .discovery-card.article-row-with-cover{
  grid-template-columns:minmax(0,1fr) 188px 44px;grid-template-areas:"copy cover save";
}
body[data-page=home] .article-row>.discovery-cover{width:188px;height:auto;aspect-ratio:2.35 / 1;object-fit:cover}
body[data-page=home] .discovery-grid{row-gap:8px}
@media(max-width:1100px){
  html[data-theme] body[data-page=home] .discovery-card.article-row{grid-template-columns:minmax(0,1fr) 40px}
  html[data-theme] body[data-page=home] .discovery-card.article-row-with-cover{grid-template-columns:minmax(0,1fr) 164px 40px}
  body[data-page=home] .article-row>.discovery-cover{width:164px}
}
@media(max-width:640px){
  html[data-theme] body[data-page=home] .discovery-card.article-row{
    grid-template-columns:minmax(0,1fr) 40px;grid-template-areas:"copy save";
    padding:20px 0;column-gap:14px;row-gap:8px;
  }
  html[data-theme] body[data-page=home] .discovery-card.article-row-with-cover{
    grid-template-columns:minmax(0,1fr) 112px;grid-template-areas:"copy cover" "copy save";
    grid-template-rows:auto 1fr;
  }
  body[data-page=home] .article-row>.discovery-cover{width:112px}
}

/* Article catalog thumbnails use the same wide cover ratio as the homepage. */
.catalog-grid .article-row>.discovery-cover{height:auto;aspect-ratio:2.35 / 1;object-fit:cover}

/* A wider reading column with a quiet, responsive table of contents. */
body[data-page=article] :is(.article-header,.article-cover,.article-layout,.related-section){max-width:1280px}
body[data-page=article] .article-header h1{max-width:1180px}
body[data-page=article] .article-deck{max-width:960px}
body[data-page=article] .article-layout{grid-template-columns:220px minmax(0,1fr);gap:52px}
body[data-page=article] .article-cover-upload{height:auto;aspect-ratio:2.35 / 1}
html[data-theme] body[data-page=article] .article-toc{
  position:sticky;top:120px;display:block;min-width:0;padding:0;margin:0;
  border:0;border-radius:0;background:transparent;box-shadow:none;
  -webkit-backdrop-filter:none;backdrop-filter:none;
  max-height:calc(100dvh - 152px);overflow-y:auto;scrollbar-width:thin;
}
.article-toc-panel>summary{
  display:flex;align-items:center;justify-content:space-between;gap:16px;
  list-style:none;cursor:pointer;padding:0 10px 14px 16px;
  font:500 13px/1.6 var(--sans);letter-spacing:0;color:var(--text);
}
.article-toc-panel>summary::-webkit-details-marker{display:none}
.article-toc-panel>summary::after{
  content:'';width:6px;height:6px;flex-shrink:0;border-right:1px solid currentColor;border-bottom:1px solid currentColor;
  transform:rotate(45deg);opacity:.55;
}
.article-toc-panel[open]>summary::after{transform:rotate(225deg)}
.article-toc-links{display:flex;flex-direction:column;gap:2px;padding:0 0 2px;border-left:1px solid var(--line)}
html[data-theme] body[data-page=article] .article-toc a{
  display:block;margin-left:-1px;padding:8px 12px 8px 15px;border-left:2px solid transparent;
  font:13px/1.65 var(--sans);color:var(--muted);overflow-wrap:anywhere;transition:color .15s,border-color .15s;
}
html[data-theme] body[data-page=article] .article-toc a.toc-subsection{padding-left:27px;font-size:12px}
html[data-theme] body[data-page=article] .article-toc a:hover{color:var(--text)}
html[data-theme] body[data-page=article] .article-toc a[aria-current=location]{color:var(--text);border-left-color:var(--lime)}
html[data-theme=light] body[data-page=article] .article-toc a[aria-current=location]{border-left-color:var(--accent-ink)}
.article-toc-panel>summary:focus-visible,.article-toc-links a:focus-visible{outline:2px solid currentColor;outline-offset:-2px;border-radius:3px}
@media(max-width:1200px){
  body[data-page=article] .article-layout{display:block}
  html[data-theme] body[data-page=article] .article-toc{position:static;max-height:none;overflow:visible;margin:0 0 32px;padding:0 0 14px;border-bottom:1px solid var(--line)}
  .article-toc-panel>summary{padding:8px 4px;font-size:14px}
  .article-toc-panel[open]>summary{padding-bottom:18px}
  .article-toc-links{max-height:min(42dvh,360px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
  html[data-theme] body[data-page=article] .article-toc a{padding-top:9px;padding-bottom:9px;font-size:14px}
}
@media(max-width:760px){
  body[data-page=article] .article-header h1{font-size:clamp(29px,6vw,36px)}
  body[data-page=article] .article-cover-upload{margin-bottom:28px}
  html[data-theme] body[data-page=article] .article-toc{margin-bottom:26px}
}
@media(prefers-reduced-motion:reduce){
  html[data-theme] body[data-page=article] .article-toc a{transition:none}
}

/* Keep topic controls together before the article list. */
.topic-catalog-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px 24px}
.topic-catalog-controls .content-type-tabs{flex:1 1 auto;min-width:0;margin:0;padding:0;border:0;gap:4px}
.topic-catalog-controls .catalog-toolbar{flex:0 1 auto;min-width:0;margin:0;gap:14px}
.topic-catalog-controls .search-inline{width:clamp(190px,20vw,280px);max-width:100%;min-width:0}
.topic-catalog>.results-info{margin:16px 0 4px;padding:0;border:0;min-height:24px}
.topic-catalog>.catalog-grid{margin-top:0}
@media(max-width:1100px){
  .topic-catalog-controls .content-type-tabs{flex-basis:100%}
  .topic-catalog-controls .catalog-toolbar{flex-basis:100%;justify-content:space-between}
  .topic-catalog-controls .search-inline{width:min(100%,360px);flex:1 1 auto}
}
@media(max-width:640px){
  .topic-catalog-controls{gap:14px}
  .topic-catalog-controls .catalog-toolbar{gap:10px}
  .topic-catalog-controls .search-inline{width:auto;min-width:140px;flex:1 1 140px}
  .topic-catalog-controls .sort-label{margin-left:auto;flex:0 0 auto}
  .topic-catalog>.results-info{margin-top:14px;margin-bottom:0;gap:6px}
}
/* Match the footer social cards' corner radius on text actions and selections. */
:root{--control-corner-radius:18px}
html[data-theme] .site-shell :is(.button,.article-share,.article-actions .bookmark-button){border-radius:var(--control-corner-radius)}
html[data-theme] :is(.desktop-nav,.mobile-nav) a,
html[data-theme] .mobile-nav .nav-selection,
html[data-theme] .nav-follower,
html[data-theme] .content-type-tabs .filter,
html[data-theme] .site-shell .category-link{border-radius:var(--control-corner-radius)}
html[data-theme] .site-shell :is(.search-inline,.search-page-form,.subscribe-address,.sort-select),
html[data-theme] .nav-search-control,
html[data-theme] .nav-search .search-button,
html[data-theme] :is(.nav-search-form,.nav-search-panel,.mobile-nav,.search-dialog,.detail-dialog){border-radius:var(--control-corner-radius)}
