/* ============================================================================
   HUB — Portfolio design system override (2026-11-24).
   Loaded AFTER hub-templates / hub-prose / hub-types so it wins.
   Layout, markup, search/filter JS and every claim stay exactly as they are:
   this sheet only changes the visual system to Portfolio's tokens, fonts,
   hairlines, square corners and zero motion.
   ============================================================================ */
html{scroll-behavior:auto !important}
.hub-shell,.hub-main,.hub-side,.hub-head,.hub-toolbar,.hub-grid,.hub-card,
.hub-thumb,.hub-nav,.hub-search,.fchip,.chip,.dv-card-morphic{
  animation:none !important;transition:none !important;
}

/* tokens local to the hub, same values as Portfolio */
.hub-shell{
  --hub-bg:#050506;--hub-surface:#0a0a0c;--hub-ink:#f5f5f3;
  --hub-mute:#a4a4a1;--hub-dim:#6f6f70;
  --hub-line:rgba(255,255,255,0.13);--hub-line-hi:rgba(255,255,255,0.28);
  background:var(--hub-bg);color:var(--hub-ink);
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:15px;line-height:1.65;
}

/* masthead */
.hub-eyebrow{font-family:var(--font-label);font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:var(--hub-dim)}
.hub-head h1{font-family:var(--font-sans);font-weight:400;font-size:clamp(2.4rem,5vw,4.4rem);line-height:1;letter-spacing:-.02em;color:var(--hub-ink);margin:1rem 0}
.hub-sub{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--hub-mute);font-size:1.05rem;line-height:1.6;max-width:70ch;margin:0}

/* side nav */
.hub-nav a{font-family:var(--font-label);font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--hub-dim);text-decoration:none;padding:.55rem .2rem;border-bottom:1px solid var(--hub-line);display:block}
.hub-nav a.active{color:var(--hub-ink)}
.hub-side{border-right:1px solid var(--hub-line)}

/* toolbar + chips */
.hub-search{font-family:var(--font-label);font-size:11px;color:var(--hub-ink);background:var(--hub-surface);border:1px solid var(--hub-line);border-radius:0}
.fchip,.chip{font-family:var(--font-label) !important;font-size:10px !important;letter-spacing:.14em !important;text-transform:uppercase !important;border-radius:0 !important;background:transparent !important;border:1px solid var(--hub-line) !important;color:var(--hub-mute) !important;box-shadow:none !important}
.fchip.on,.chip.gold,.chip.on,.chip.active{color:#050506 !important;border-color:#f5f5f3 !important;background:#f5f5f3 !important}

/* cards */
.hub-card,.dv-card-morphic{background:var(--hub-surface) !important;border:1px solid var(--hub-line) !important;border-radius:0 !important;box-shadow:none !important;backdrop-filter:none !important;transform:none !important}
.hub-card h2,.post-title,.hp-h1,.tpl-article-head h1{font-family:var(--font-sans)!important;font-weight:400 !important;letter-spacing:-.01em !important;color:var(--hub-ink) !important}
.hub-card p,.hub-sub,.hp-body,.tpl-doc-body,.tpl-feed-body,.tpl-res-body,.post-dek{color:var(--hub-mute) !important;font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif !important;font-weight:400 !important}
.hub-card .chip,.hub-meta,.hub-cta,.hub-dur,.post-meta,.post-chip,.post-tags,.post-stat-label,.hp-figcap,.hp-keyline,.tpl-doc-id,.tpl-res-id,.tpl-res-sha,.tpl-res-meta,.tpl-kit-pill,.tpl-feed-time,.ps-author{font-family:var(--font-label) !important;letter-spacing:.12em !important;color:var(--hub-dim) !important}
.hub-thumb{border:1px solid var(--hub-line);border-radius:0}
.hub-thumb img{filter:none}
.hub-empty{font-family:var(--font-label);color:var(--hub-dim);border:1px solid var(--hub-line);padding:1.5rem}

/* post / article shell */
.post-shell,.post-view,.hp-body,.tpl-doc-body,.tpl-res-body,.tpl-feed-body,.tpl-kit-card{background:var(--hub-surface) !important;border-color:var(--hub-line) !important;border-radius:0 !important;box-shadow:none !important}
.hp-h2,.hp-h3,.tpl-article-head h2,.tpl-res-head h2,.tpl-feed-head h2{font-family:var(--font-sans)!important;font-weight:400 !important;color:var(--hub-ink) !important}
.hp-callout,.hp-codeblock,.hp-table-wrap,.hp-figure,.post-filecard,.tpl-filecard,.tpl-res-file,.tpl-kit-card{border:1px solid var(--hub-line) !important;border-radius:0 !important;background:var(--hub-surface) !important;box-shadow:none !important}
.hp-sep,.hp-keyline{background:var(--hub-line) !important}
a{color:var(--hub-ink)}
a:hover{color:#fff}

/* the "Explore the ecosystem" strip at the foot of hub + legal pages */
.pf-hub-explore{background:var(--hub-bg) !important;border-top:1px solid var(--hub-line) !important;padding:3.5rem 1.5rem}
.pf-hub-explore-head{display:flex;align-items:center;gap:1rem;margin-bottom:2rem}
.pf-hub-explore-rule{flex:1;height:1px;background:var(--hub-line)}
.pf-hub-explore-label{font-family:var(--font-label);font-size:10px;letter-spacing:.25em;text-transform:uppercase;color:var(--hub-dim)}
.pf-hub-explore-links{display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem;max-width:1180px;margin:0 auto}
.pf-hub-explore-link{
  font-family:var(--font-label) !important;
  font-size:10px !important;letter-spacing:.16em !important;text-transform:uppercase !important;
  border:1px solid var(--hub-line) !important;border-radius:0 !important;
  background:transparent !important;color:var(--hub-mute) !important;box-shadow:none !important;
  padding:.7rem 1rem;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;
}
/* keep the same treatment on the legal-page footer, which still uses Tailwind */
[aria-label="Explore the ecosystem"]{background:var(--hub-bg) !important;border-top:1px solid var(--hub-line) !important}
[aria-label="Explore the ecosystem"] .h-px{background:var(--hub-line) !important}
[aria-label="Explore the ecosystem"] a{
  font-family:var(--font-label) !important;
  font-size:10px !important;letter-spacing:.16em !important;text-transform:uppercase !important;
  border:1px solid var(--hub-line) !important;border-radius:0 !important;
  background:transparent !important;color:var(--hub-mute) !important;box-shadow:none !important;
}

@media (max-width:900px){
  .hub-shell{grid-template-columns:1fr}
  .hub-side{border-right:0;border-bottom:1px solid var(--hub-line)}
}

/* ============================================================================
   ARTICLES — Portfolio presentation for long-form lab posts (2026-11-29).
   Scope: the post detail page (main#main). Every word, number and value is the
   post's own; this block changes only furniture: canvas, type, hairlines,
   square corners and the green/red metric convention. No new hero, no strip.
   ============================================================================ */
.hub-body{
  --hub-bg:#050506;--hub-surface:#0a0a0c;--hub-ink:#f5f5f3;
  --hub-mute:#a4a4a1;--hub-dim:#6f6f70;
  --hub-line:rgba(255,255,255,.13);--hub-line-hi:rgba(255,255,255,.28);
  --up:#54d6a0;--down:#ff6b66;
}
main#main{background:#050506}
.post-shell{background:#050506;color:#f5f5f3;padding-top:4rem}
.post-title{font-family:var(--font-sans);font-weight:400;font-size:clamp(2.4rem,4.6vw,3.6rem);line-height:1.02;letter-spacing:-.025em;color:#f5f5f3;margin:1.4rem 0 1rem}
.post-title::after{content:"";display:block;width:56px;height:1px;background:rgba(255,255,255,.28);margin-top:1.5rem}
.tpl-article-lead,.post-dek{font-family:var(--font-sans);font-size:1.05rem;line-height:1.6;color:#a4a4a1;max-width:70ch;margin:0}
.post-back{color:#6f6f70}
.post-chip{border:1px solid rgba(255,255,255,.13);background:#0a0a0c;color:#a4a4a1;border-radius:0;padding:.45rem .7rem}
.post-meta{border-top:1px solid rgba(255,255,255,.13);border-bottom:0;padding-top:1rem;margin-top:1.5rem;background:transparent;color:#6f6f70}
.post-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.13);border-radius:0;margin-top:2rem}
.post-stat{background:#0a0a0c;border:0;border-radius:0;padding:1.3rem 1.2rem}
.post-stat-value{display:block;font-family:var(--font-sans);font-weight:400;font-size:clamp(1.5rem,3vw,2.3rem);line-height:1;color:#f5f5f3;font-variant-numeric:tabular-nums}
.post-stat-value.is-up{color:#54d6a0}
.post-stat-value.is-down{color:#ff6b66}
.post-stat-label{display:block;margin-top:.7rem;font-family:var(--font-label);font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:#6f6f70}
.post-media{margin-top:2rem}
.post-cover{border:1px solid rgba(255,255,255,.13);border-radius:0;background:#000;aspect-ratio:auto;max-height:none;overflow:hidden}
.post-cover img{width:100%;height:auto;max-height:none;object-fit:contain;display:block}
.post-tags{margin-top:2rem}
.post-tags span{border:1px solid rgba(255,255,255,.13);border-radius:0;background:#0a0a0c;color:#a4a4a1;padding:.45rem .7rem}
/* one prose scale, Portfolio hairlines, no brass, no rounded plates */
.hp-body{max-width:74ch;color:#a4a4a1;font-size:15px;line-height:1.75}
.hp-body h2,.hp-body h3,.hp-h2,.hp-h3{font-family:var(--font-sans);font-weight:400;color:#f5f5f3;border-bottom:1px solid rgba(255,255,255,.13);padding-bottom:.6rem}
.hp-body h2::before,.hp-body h3::before{color:#6f6f70}
.hp-body p,.hp-body li{color:#a4a4a1}
.hp-body strong{color:#f5f5f3;font-weight:600}
.hp-body a{color:#f5f5f3;text-decoration-color:rgba(255,255,255,.28)}
.hp-body blockquote,.hp-quote{border-left:2px solid rgba(255,255,255,.28);background:#0a0a0c;border-radius:0;color:#a4a4a1}
.hp-callout{border:1px solid rgba(255,255,255,.13);border-left:2px solid rgba(255,255,255,.28);border-radius:0;background:#0a0a0c;color:#a4a4a1}
.hp-codeblock,.hp-table-wrap,.hp-figure,.hp-figure img,.hp-figure svg,.hp-body img{border:1px solid rgba(255,255,255,.13);border-radius:0;background:#0a0a0c}
.hp-table thead th,.hp-body th{background:#0a0a0c;color:#6f6f70;border-bottom-color:rgba(255,255,255,.13)}
.hp-table td,.hp-body td{color:#a4a4a1;border-bottom-color:rgba(255,255,255,.13)}
.hp-body td:first-child,.hp-table td:first-child{color:#f5f5f3}
.hp-sep{background:rgba(255,255,255,.13)}
.hp-sep::before{background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent)}
.hp-figcap{color:#6f6f70}
.hp-keyline{border-top:1px solid rgba(255,255,255,.13);border-bottom:1px solid rgba(255,255,255,.13);color:#f5f5f3}
.hp-body--dropcap > p:first-of-type::first-letter{color:#f5f5f3}
.hub-actions{border-radius:0;border:1px solid rgba(255,255,255,.13);background:#0a0a0c;box-shadow:none;backdrop-filter:none}
.hub-actions a,.hub-actions button{border-radius:0;font-family:var(--font-label)}

/* Accessibility: honour the reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
