/* ============================================================
   aiagentsdaily — blue/white light theme (branch blue-white-reskin)
   Values from the WU-1 §1 token table of the blue/white reskin plan,
   read off final_mockup/. No dark mode. No AI gradients.
   Pale ice-blue grounds, ink-navy type, one royal-blue accent,
   charcoal chrome (nav pill + sidebar panel + hub hero).
   Component language lives in se.css; this file keeps the tokens
   and the legacy v2 rules still awaiting per-WU deletion.
   ============================================================ */

:root{
  --bg:          #f4f7fc;
  --bg-2:        #eaf0f9;
  --bg-3:        #f7f9fd;
  --surface:     #ffffff;
  --surface-2:   #f9fbfe;
  --border:      rgba(16,32,64,.08);
  --border-2:    rgba(16,32,64,.16);
  --text:        #0f1729;
  --text-2:      #3c4a63;
  /* §1 specifies #66728a. Nudged one step darker: #66728a clears 4.5:1 on --surface
     (4.84) and --bg (4.51) but only reaches 4.22 on --bg-2, the toolbar-well ground
     captions actually sit on. #616d85 clears all three (5.21 / 4.85 / 4.54). */
  --text-3:      #616d85;
  --text-4:      #616d85; /* P3-7 kept: same value as text-3 so AA holds at body sizes */
  /* §1 specifies #1677ff. White on it is 4.10:1 — below AA for the mockup's
     16px/600 button labels. Darkened the minimum amount that clears 4.5:1
     (#1570f0 → 4.56:1); hue and chroma are unchanged to the eye. */
  --accent:      #1570f0;
  --accent-2:    #0f6ae8;
  --accent-tint: rgba(22,119,255,.10);
  /* Accent TEXT on --accent-tint: #1570f0 reads 3.75:1 there on --bg. Same hue, darker:
     4.85 on --bg, 5.18 on a white card. --accent itself stays tuned for white-on-accent. */
  --accent-ink:  #0e5fd0;
  /* Was #15803d: 4.23:1 as .badge-success text on --bg. #137638 = 4.82, same hue. */
  --success:     #137638;
  --warning:     #a16207;
  --danger:      #c8271b;

  /* Rank medals. The 2026-08-31 owner reference sheets put gold/silver/bronze on the first
     three rows of a leaderboard, and the WU-1 sweep recorded that as the one sanctioned
     exception to the single-accent rule. They live here so the exception is visible in the
     palette rather than hidden in a component. */
  --medal-1:    #f3c952;  --medal-1-line: #e8ba38;  --medal-1-ink: #3a2c05;
  --medal-2:    #dde1e7;  --medal-2-line: #c9ced6;  --medal-2-ink: #2b2f36;
  --medal-3:    #e5a96b;  --medal-3-line: #d89a58;  --medal-3-ink: #3a2405;

  --r-xs: 6px;  --r-sm: 10px; --r-md: 14px;
  --r-lg: 16px; --r-xl: 24px; --r-2xl: 28px;
  --r-pill: 999px;
  --accent-press: #0b5ccc;
  --accent-on-dark: #7fb6ff;

  --ink:        #1c1c1f;
  --ink-2:      #2a2a2e;
  --ink-text:   #ffffff;
  --ink-text-2: #a3a7b3;
  --ink-border: rgba(255,255,255,.10);
  /* Stronger hairline for outlined controls sitting ON --ink (nav Playground pill). */
  --ink-border-2: rgba(255,255,255,.34);

  /* Sphere lens cyan. Used ONLY by the audit dock pulse ring (WU-3). */
  --glow:       #65cfff;
  /* Audit bar ramp, keyed to the REAL score band: <40 <65 <75 <85 >=85 */
  --bar-1:      #22c55e;
  --bar-2:      #facc15;
  --bar-3:      #f97316;
  --bar-4:      #f4511e;
  --bar-5:      #ef2d2d;

  --sh-1: 0 1px 2px rgba(0,0,0,.04), 0 1px 1px rgba(0,0,0,.03);
  --sh-2: 0 4px 12px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03);
  --sh-3: 0 12px 28px rgba(0,0,0,.07), 0 2px 6px rgba(0,0,0,.03);
  /* the single sanctioned coloured shadow, landing audit pill only */
  --shadow-accent: rgba(22,119,255,.12);

  --ease: cubic-bezier(.4,0,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur-quick: 180ms; --dur-state: 260ms; --dur-layout: 480ms;

  --f-display: "Geist", "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --f-text:    "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", system-ui, sans-serif;
  --f-mono:    "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;

  --nav-h: 104px;
  --side-w: 200px;
  --maxw: 1180px;
  --main-maxw: 1440px;
}

*,*::before,*::after{ box-sizing:border-box }
html,body{ margin:0; padding:0; overflow-x:clip; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; scrollbar-width:none; }
html::-webkit-scrollbar{ display:none; }
body{
  font-family: var(--f-text);
  color: var(--text);
  background: var(--bg);
  width: 100%;
  max-width: 100%;
  font-size: 16px;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01","cv01","cv11";
}
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select{ font: inherit; color: inherit; }
img, svg{ display:block; max-width:100%; }

/* ---------- Skip link (P3-2) — visually hidden until keyboard focus ---------- */
.skip-link{
  position: absolute;
  left: -9999px; top: 0;
  z-index: 100;
  padding: 10px 18px;
  background: var(--accent); color: #fff;
  border-radius: 0 0 var(--r-sm) 0;
  font-size: 14px; font-weight: 500;
}
.skip-link:focus{
  left: 0;
  outline: 2px solid #fff;
  outline-offset: -4px;
}

/* ---------- Typography ---------- */
.display-1{ font-family: var(--f-display); font-weight: 600; font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.02em; line-height: 1.05; }
.display-2{ font-family: var(--f-display); font-weight: 600; font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.02em; line-height: 1.1; }
.h1{ font-family: var(--f-display); font-weight: 600; font-size: 34px; letter-spacing: -0.016em; line-height: 1.15; }
.h2{ font-family: var(--f-display); font-weight: 600; font-size: 26px; letter-spacing: -0.012em; line-height: 1.2; }
.h3{ font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; line-height: 1.3; }
.eyebrow{ font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.mono{ font-family: var(--f-mono); font-size: 13px; }
.muted{ color: var(--text-3); }
.lead{ font-size: 19px; line-height: 1.5; color: var(--text-2); max-width: 640px; }

/* ---------- Layout ---------- */
.container{ max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wide{ max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.stack{ display:flex; flex-direction:column; gap:16px; }
.row{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.spread{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.grid{ display:grid; gap: clamp(20px, 2vw, 32px); }
.grid-2{ grid-template-columns: repeat(auto-fill, minmax(360px,1fr)); }
.grid-3{ grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); }
.grid-4{ grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); }
.pad-lg{ padding: 64px 0; }
.pad-md{ padding: 40px 0; }
.pad-sm{ padding: 24px 0; }
.divider{ height: 1px; background: var(--border); margin: 32px 0; }

/* ---------- Nav ---------- */
.nav{
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  background: var(--ink);  /* solid / opaque nav */
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
}
.nav .brand{ color: #fff; }
.nav .brand-mark .bm-outer{ stroke: #fff; opacity: .35; }
.nav .brand-mark .bm-inner{ stroke: #fff; opacity: .65; }
.nav .nav-link{ color: rgba(255,255,255,.68); }
.nav .nav-link:hover{ color: #fff; background: rgba(255,255,255,.08); }
.nav .nav-link.active{ color: #fff; background: rgba(255,255,255,.10); }
.nav .btn-ghost{ color: #fff; border-color: rgba(255,255,255,.22); background: transparent; }
.nav .btn-ghost:hover{ background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
.nav-inner{ max-width: 1280px; margin: 0 auto; height: 100%; display:flex; align-items:center; gap: 24px; padding: 0 24px; }
.nav-brand-group{ display:flex; align-items:center; gap: 8px; }
.brand{ display:flex; align-items:center; gap: 8px; font-weight: 500; letter-spacing: -0.01em; }
.brand-mark{ width: 18px; height: 18px; flex-shrink: 0; }
.brand-mark .bm-outer{ stroke: var(--text); opacity: .22; fill: none; }
.brand-mark .bm-inner{ stroke: var(--text); opacity: .55; fill: none; }
.brand-mark .bm-core{  fill: var(--accent); }
.nav-links{ display:flex; gap: 4px; margin-left: 12px; }
.nav-link{
  padding: 6px 14px; border-radius: 999px; font-size: 15px; font-weight: 300;
  color: var(--text-2); transition: all .2s var(--ease);
}
.nav-link:hover{ color: var(--text); background: var(--bg-2); }
.nav-link.active{ color: var(--text); background: var(--bg-2); }
.nav-right{ margin-left: auto; display:flex; gap: 8px; align-items:center; }

/* Backdrop for drawers */
.nav-backdrop{ position: fixed; inset: 0; background: rgba(0,0,0,.28); opacity: 0; pointer-events: none; transition: opacity .22s var(--ease); z-index: 38; }
body.nav-open .nav-backdrop, body.side-open .nav-backdrop{ opacity: 1; pointer-events: auto; }

@media (max-width: 900px){
  .nav-links{
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-direction: column; gap: 0; padding: 8px 12px 16px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    z-index: 39; max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  body.nav-open .nav-links{ transform: none; opacity: 1; pointer-events: auto; }
  .nav-link{ padding: 14px 12px; border-radius: 10px; font-size: 15px; }
  .nav-cta-ghost{ display: none; }
  .brand span:last-child{ font-size: 15px; }
}

/* ---------- Nav dropdowns ---------- */
/* static so dropdowns anchor to .nav-links (the pill), not each button —
   gives every menu one shared left edge + width that survives nav resizing */
.nav-item{ position: static; }
.nav-btn{
  position: relative;       /* above the pill ::before fill */
  z-index: 2;
  background: none; border: none;
  color: rgba(255,255,255,.55);  /* inactive = grey; hover/.active = white */
  font-size: 15px;
  font-weight: 300;
  padding: 0 12px;
  height: 46px;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: color .2s;
  font-family: inherit;
  white-space: nowrap;
  letter-spacing: -.005em;
}
.nav-btn:hover { color: #fff; }
.nav-btn.active { color: #fff; }
.chev{
  width: 10px; height: 10px;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  opacity: .4;
}
.nav-btn.active .chev{ transform: rotate(180deg); opacity: .75; }

.dropdown{
  position: absolute;
  top: calc(100% - 22px);  /* overlap up behind the pill so it drops from behind */
  left: 0;                 /* same left + width as the pill → fully hidden behind it */
  width: 640px;            /* uniform across all four menus, == pill width */
  min-height: 427px;       /* uniform height = tallest menu (Build, 5 items) */
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 0 0 18px 18px;
  padding: 64px 40px 22px;  /* more breathing room below the nav bar + wider gutters */
  z-index: 0;              /* below the pill ::before (z-index 1) so it tucks behind */
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  overflow: hidden;        /* clip the blue glow to the rounded corners */
  clip-path: inset(0 -50px 100% -50px round 0 0 0 0);
  transition: clip-path .5s cubic-bezier(.65,0,.35,1), opacity .42s ease, transform .5s cubic-bezier(.65,0,.35,1);
  box-shadow: 0 18px 48px rgba(0,0,0,.6), 0 6px 18px rgba(0,0,0,.4);
  isolation: isolate;
}
/* subtle on-brand blue glow (not the reference image's orange) */
.dropdown::after{
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 95% at 90% 100%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.dropdown > *{ position: relative; z-index: 3; }
.dropdown.open,
.nav-item:hover .dropdown{
  clip-path: inset(0 -50px -60px -50px round 0 0 18px 18px);
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Blur page content behind dropdown (Apple-style) */
#app {
  transition: filter 200ms ease-out;
}
.nav:has(.nav-item:hover) ~ #app {
  filter: blur(4px);
}
/* Suppress hover-open + blur after click on a dropdown item;
   cleared on mouseleave of that specific nav-item. Other nav-items
   continue to work normally. */
.nav-item.suppress-hover .dropdown,
.nav-item.suppress-hover:hover .dropdown {
  clip-path: inset(0 -50px 100% -50px round 0 0 0 0) !important;
  pointer-events: none !important;
}
.nav:has(.nav-item.suppress-hover:hover) ~ #app {
  filter: none !important;
}
/* All four dropdowns anchor to .nav-links via the generic .dropdown rule
   above (left:0) — no per-menu offsets needed. */

.drop-cols{ display: flex; gap: 40px; justify-content: space-between; }
.drop-col{ flex: 1; min-width: 0; }

/* "View all X" footer — centered link with a divider above */
.drop-foot{
  display: block;
  margin-top: 22px;
  padding-top: 18px;
  border-top: .5px solid rgba(255,255,255,.10);
  text-align: center;
  font-size: 13px;
  font-weight: 400;
  color: #b8b8b8;
  text-decoration: none;
  transition: color .2s ease;
}
.drop-foot:hover{ color: #fff; }

/* Unity-style column heading (muted, layout reference only) */
.drop-col-hd{
  font-size: 14px;
  font-weight: 600;
  color: #8a8a8a;
  letter-spacing: .01em;
  margin-bottom: 16px;
}

/* item = (title / sub); fixed row height so items line up on a clean grid across columns */
.drop-item{
  display: flex;
  align-items: center;
  height: 64px;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.di-text{ display: flex; flex-direction: column; min-width: 0; }
.di-title{
  font-size: 14.5px;
  color: #e0e0e0;
  font-weight: 400;
  letter-spacing: -.01em;
  transition: color .15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drop-item:hover .di-title{ color: #fff; }
.di-sub{
  font-size: 12px;
  color: #6a6a6a;
  margin-top: 2px;
  letter-spacing: -.005em;
  line-height: 1.35;
  /* always reserve 2 lines so every item's text block is the same height →
     titles line up on a clean grid across columns regardless of 1- vs 2-line copy */
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-block{ white-space: nowrap; }
.jc-role{
  font-size: 12px;
  color: #484848;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-weight: 700;
  margin-bottom: 8px;
}
.jc-title{
  font-size: 15px;
  color: #ddd;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 5px;
}
.jc-sub{
  font-size: 12px;
  color: #505050;
  line-height: 1.5;
}
.jc-action{
  display: block;
  margin-top: 12px;
  padding: 8px 12px;
  font-size: 13px;
  color: #000;
  background: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: color .15s, background .15s;
  cursor: pointer;
}
.jc-action:hover{ color: #000; background: #f0f0f0; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap: 6px;
  padding: 9px 18px; border-radius: var(--r-pill);
  font-size: 16px; font-weight: 500; letter-spacing: -0.005em;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform var(--dur-state) var(--ease-spring), box-shadow .2s var(--ease);
  border: 1px solid transparent; white-space: nowrap;
}
.btn:focus-visible{ outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); } /* P3-6: was 8% tint, invisible */
.btn:active{ transform: scale(0.97); }
.btn:disabled{ opacity: .5; cursor: not-allowed; }
.btn:disabled:hover{ transform: none; }
.btn-primary{ background: var(--accent); color: white; }
.btn-primary:hover{ background: var(--accent-2); }
.btn-primary:active{ background: var(--accent-press); }
.btn-secondary{ background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover{ background: var(--accent); color: #fff; }
.btn-ghost{ background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover{ background: var(--bg-2); border-color: var(--text-3); }
.btn-text{ background: transparent; color: var(--accent); padding: 6px 10px; }
.btn-text:hover{ color: var(--accent-2); }
.btn-lg{ padding: 12px 24px; font-size: 15px; }
.btn-sm{ padding: 7px 14px; font-size: 13px; }
.btn-block{ width: 100%; }

/* ---------- Cards ---------- */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform var(--dur-state) var(--ease-out);
}
.card:hover{ border-color: var(--border-2); }
.card-link{ color: inherit; display: block; }
.card-link:hover{ border-color: var(--text-3); transform: translateY(-2px); }
.card-link:active{ transform: translateY(0); transition-duration: .08s; }
/* Settings (owner design from "setting tab.HTML", adapted to site tokens) */
.stg-wrap{ display:grid; grid-template-columns:210px minmax(0,860px); gap:34px; justify-content:start; padding:8px 0 60px; }
.stg-side{ position:sticky; top:12px; align-self:start; }
.stg-tab{ width:100%; border:0; background:transparent; text-align:left; border-radius:9px; padding:10px 11px; font-size:13px; color:var(--text-2); display:flex; gap:9px; align-items:center; cursor:pointer; margin:1px 0; }
.stg-tab:hover{ background:var(--bg-2); }
.stg-tab.active{ background:var(--bg-2); color:var(--text); font-weight:600; }
.stg-dot{ width:7px; height:7px; border-radius:50%; background:var(--border-2, #a8b0b7); flex:0 0 auto; }
.stg-tab.active .stg-dot{ background:var(--accent); }
.stg-tab.danger{ color:var(--danger, #c0352b); }
.stg-section{ display:none; }
.stg-section.active{ display:block; }
.stg-row{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:13px 0; border-top:1px solid var(--border, #ebebeb); }
.stg-row:first-child{ border-top:0; padding-top:0; }
.stg-row:last-child{ padding-bottom:0; }
.stg-copy strong{ display:block; font-size:14px; margin-bottom:3px; }
.stg-copy span{ font-size:12.5px; color:var(--text-3); line-height:1.5; display:block; }
.stg-toggle{ border:0; width:42px; height:24px; border-radius:999px; background:#cdd4da; padding:3px; flex:0 0 auto; cursor:pointer; }
.stg-toggle:before{ content:""; display:block; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.2); transition:.2s ease; }
.stg-toggle.on{ background:var(--accent); }
.stg-toggle.on:before{ transform:translateX(18px); }
.stg-provider{ border:1px solid var(--border, #ebebeb); background:#fff; border-radius:12px; display:grid; grid-template-columns:40px 1fr auto auto; gap:10px; align-items:center; padding:12px; margin-top:9px; }
.stg-provider.stg-included{ border-color:#cfe1f7; background:#fbfdff; grid-template-columns:40px 1fr auto; margin-top:0; }
.stg-plogo{ width:38px; height:38px; border-radius:10px; border:1px solid var(--border, #ebebeb); background:#fff; display:grid; place-items:center; font-size:12px; font-weight:700; }
.stg-empty{ border:1px dashed var(--border-2, #cfd6dc); background:var(--bg-2, #fbfcfd); border-radius:12px; padding:22px; text-align:center; margin-top:9px; }
.stg-choices{ display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin:15px 0 4px; }
.stg-choice{ border:1px solid var(--border, #ebebeb); background:#fff; border-radius:11px; padding:12px; text-align:left; cursor:pointer; }
.stg-choice:hover, .stg-choice.selected{ border-color:#9ec5f1; background:#f7fbff; }
.stg-choice strong{ display:block; font-size:13px; }
.stg-choice span{ display:block; font-size:12px; color:var(--text-3); margin-top:4px; }
.stg-route{ display:grid; grid-template-columns:150px 1fr 1fr; gap:9px; align-items:center; padding:10px 0; border-top:1px solid var(--border, #ebebeb); }
.stg-route:first-of-type{ border-top:0; padding-top:0; }
.stg-chain{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:10px; }
.stg-node{ border:1px solid var(--border, #ebebeb); border-radius:9px; padding:8px 10px; font-size:12px; font-weight:600; background:#fff; }
@media(max-width:900px){
  .stg-wrap{ display:block; }
  .stg-side{ position:static; margin-bottom:18px; }
  .stg-choices{ grid-template-columns:1fr 1fr; }
  .stg-route{ grid-template-columns:1fr; }
  .stg-provider{ grid-template-columns:40px 1fr; }
  .stg-provider .badge, .stg-provider .btn{ grid-column:2; justify-self:start; }
}

/* ---------- Roadmap hub (WU-9a) ----------
   Toolbar row + role cards, built to the owner's card reference: a white card whose
   photograph sits inset from the hairline, then eyebrow, title, one line of copy, and a
   footer pairing an --ink pill with the truthful "Personalised, free" note. There are no
   download counts here because we do not measure any. */

/* The controls that used to hang off .page-head and got swept onto the banner.
   .subhead-row.rm-toolbar, not .rm-toolbar: mystyle.css loads after this file and its
   .subhead-row sets space-between, so a single class would lose the cascade. */
.subhead-row.rm-toolbar{ justify-content: flex-end; flex-wrap: wrap; }
.rm-toolbar__ask{ font-size: 14px; color: var(--text-3); }
.rm-chip{
  display: inline-flex; align-items: center; padding: 7px 14px;
  border-radius: var(--r-pill); background: var(--surface);
  border: .5px solid var(--border); font-size: 13px; line-height: 1;
  color: var(--text-2); white-space: nowrap;
  transition: border-color .2s var(--ease);
}
.rm-chip:hover{ border-color: var(--border-2); }

/* Explicit column counts, not auto-fill: .grid-3's minmax() plus the 768px override
   cannot express the 4/3/2/1 ladder the reference asks for. */
.rm-grid{ grid-template-columns: 1fr; }
@media (min-width: 700px){ .rm-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px){ .rm-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1440px){ .rm-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* .card.rm-card, not .rm-card: the 768px block below re-declares .card padding and
   radius, and a single class would lose to it on phones.
   12px padding + the 1px border = a 13px visual inset around the photograph, measured
   border-box to photo-box, which is mid-band for the reference card. */
.card.rm-card{ padding: 12px; border-radius: var(--r-lg); display: flex; flex-direction: column; }
.rm-card__media{
  margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r-sm);
  overflow: hidden; background: var(--bg-2);
}
.rm-card__media img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.rm-card__body{ display: flex; flex-direction: column; flex: 1 1 auto; padding: 14px 12px 10px; }
.rm-card__top{ display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rm-card__title{
  margin: 10px 0 4px; font-family: var(--f-display); font-weight: 600;
  font-size: 17px; letter-spacing: -0.012em; line-height: 1.25; color: var(--text);
}
.rm-card__meta{ margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-3); }
/* margin-top:auto is what squares the footers off when one role's copy runs two lines. */
.rm-card__foot{ display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; }
.rm-card__cta{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--ink-text);
  font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.rm-card__note{ font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
@media (max-width: 768px){
  .subhead-row.rm-toolbar{ justify-content: flex-start; }
  .rm-card__cta{ padding: 12px 20px; min-height: 44px; }
}
.card-sm{ padding: 18px; border-radius: var(--r-md); }
.card-lg{ padding: 32px; border-radius: var(--r-xl); }
.card-tint{ background: var(--bg-2); border-color: transparent; }
.card-tint:hover{ background: #ececef; border-color: transparent; }
.card-flat{ box-shadow: none; }

/* ---------- Badges ---------- */
.badge{
  display:inline-flex; align-items:center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  background: var(--bg-2); color: var(--text-2);
  border: 1px solid var(--border);
}
.badge-accent{ background: var(--accent-tint); color: var(--accent-ink); border-color: transparent; }
.badge-success{ background: rgba(31,138,59,.08); color: var(--success); border-color: transparent; }
.badge-warn{ background: rgba(176,106,0,.08); color: var(--warning); border-color: transparent; }
.badge-danger{ background: rgba(192,53,43,.08); color: var(--danger); border-color: transparent; }
.badge-dot{ width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }

/* ---------- Forms ---------- */
.field{ display:flex; flex-direction:column; gap: 6px; }
.field label{ font-size: 13px; color: var(--text-2); font-weight: 500; }
.input, .textarea, .select{
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  padding: 12px 14px; font-size: 15px;
  transition: all .15s var(--ease);
  width: 100%;
}
.input:focus, .textarea:focus, .select:focus{
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.textarea{ min-height: 120px; resize: vertical; line-height: 1.5; }
/* P3-6: shared visible keyboard-focus ring for controls that suppress the default outline */
.input:focus-visible, .textarea:focus-visible, .select:focus-visible,
.search input:focus-visible, .audit-box input:focus-visible, .nl-input:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.search{
  display:flex; align-items:center; gap: 10px;
  background: var(--bg-2); border: 1px solid transparent;
  border-radius: 999px; padding: 9px 16px;
}
.search input{ flex:1; background: none; border: 0; outline: none; font-size: 14px; }
.search:focus-within{ background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }

/* ---------- Hub hero (marketing sub-pages) ---------- */
.hub-hero{ padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--border); background: var(--bg-3); }
.hub-hero h1{ font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.hub-body{ padding: clamp(40px, 5vw, 72px) 0; }

/* ---------- Hero ---------- */
.hero{
  padding: clamp(24px, 4vw, 56px) 0 clamp(20px, 3vw, 36px);
  text-align: center;
}
.hero h1{ margin: 0 auto 12px; max-width: 920px; }
.hero p{ margin: 0 auto; max-width: 640px; color: var(--text-2); }
.hero-subtitle{
  margin: 6px auto 0; max-width: 720px;
  font-family: var(--f-display); font-weight: 600; letter-spacing: -0.012em;
  font-size: clamp(20px, 2.4vw, 26px); color: var(--text);
}
.hero-cta{ margin-top: 32px; display:flex; gap: 12px; justify-content: center; flex-wrap:wrap; }
.hero-note{ margin-top: 18px; font-size: 13px; color: var(--text-3); }
.hero-stats{
  margin: 72px auto 0; display: flex; align-items: flex-start; flex-wrap: wrap;
  gap: 8px 56px; justify-content: center; max-width: 920px;
}
.hero-stat{ display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 76px; }
.hero-stat .num{
  font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums;
  font-size: clamp(14px, 1.3vw, 17px); line-height: 1.1; letter-spacing: -0.01em;
}
.hero-stat .lbl{ color: var(--text-3); font-size: 12px; line-height: 1.2; }
.hero-stats .dot{ color: var(--text-4); align-self: center; }
@media (max-width: 640px){
  .hero-stats{ gap: 18px 28px; margin-top: 48px; }
}

/* ---------- Editor's choice (collapsible) ---------- */
.ec-block{
  border: 1px solid var(--border); border-radius: var(--r-xl);
  background: var(--surface); padding: 40px 40px 8px;
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.ec-block[open]{ padding-bottom: 40px; box-shadow: var(--sh-2); }
.ec-block:hover{ border-color: var(--border-2); }
.ec-summary{
  list-style: none; cursor: pointer;
  display:flex; align-items: flex-start; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.ec-summary::-webkit-details-marker{ display: none; }
.ec-head{ flex: 1; min-width: 280px; }
.ec-head .h2{ font-size: clamp(28px, 3.2vw, 36px); }
.ec-blurb{ color: var(--text-2); font-size: 16px; line-height: 1.65; margin: 0; max-width: 760px; }
.ec-toggle{
  display:inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border: 1px solid var(--border-2); border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--text);
  background: var(--surface); transition: all .15s var(--ease);
  flex-shrink: 0; align-self: center;
}
.ec-toggle:hover{ background: var(--accent); color: #fff; border-color: var(--accent); }
.ec-toggle .chev{ display:inline-flex; transform: rotate(90deg); transition: transform .2s var(--ease); }
.ec-block[open] .ec-toggle .chev{ transform: rotate(270deg); }
.ec-toggle-alt{ display: none; }
.ec-block[open] .ec-toggle-txt{ display: none; }
.ec-block[open] .ec-toggle-alt{ display: inline; }
.ec-grid{ margin-top: 28px; }
.ec-foot{ margin-top: 20px; display:flex; justify-content: flex-end; }
@media (max-width: 700px){
  .ec-block{ padding: 28px 22px 6px; }
  .ec-block[open]{ padding-bottom: 28px; }
  .ec-toggle{ width: 100%; justify-content: center; }
}

/* ---------- Audit widget ---------- */
.audit-box{
  max-width: 640px; margin: 32px auto 0;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--r-xl); padding: 10px;
  display:flex; gap: 8px;
  box-shadow: var(--sh-2);
}
.audit-box input{ flex:1; padding: 12px 14px; border: 0; background: none; outline: none; font-size: 16px; }
.audit-chips{ display:flex; gap: 8px; flex-wrap:wrap; justify-content: center; margin: 16px auto 0; max-width: 640px; }
.audit-chips button{ padding: 6px 14px; background: var(--bg-2); border-radius: 999px; font-size: 13px; color: var(--text-2); transition: all .15s var(--ease); }
.audit-chips button:hover{ background: var(--surface); box-shadow: var(--sh-1); color: var(--text); }

/* ---------- App shell (sidebar layout for dashboard) ---------- */
/* In-content topbar now only carries the mobile drawer toggle (breadcrumb moved to .dash-bar). */
.dash-topbar{ display:flex; align-items:center; gap:12px; min-height:0; }
.dash-topbar:empty{ display:none; }
.dash-topbar .side-toggle{ display:none; }
/* Breadcrumb progress trail (in .dash-bar): Explore | <Group> | <Page> */
.crumbs{ display:flex; align-items:center; gap:8px; min-width:0; }
.crumb{ font-size:13px; font-weight:500; line-height:1; color:var(--text-2); text-decoration:none; display:inline-flex; align-items:center; gap:5px; white-space:nowrap; transition:color .2s ease; }
.crumb:hover{ color:var(--text); }
.crumb-home svg{ width:14px; height:14px; }
.crumb-current{ color:var(--text); font-weight:600; cursor:default; }
.crumb-sep{ color:var(--border-2); font-weight:300; user-select:none; }
@media (max-width: 833px){
  .dash-topbar .side-toggle{ display:inline-flex; margin-bottom:8px; }
}
@media (max-width: 640px){
  .dash-bar .crumbs .crumb:not(.crumb-home):not(.crumb-current), .dash-bar .crumbs .crumb-sep{ display:none; }
}

.page-shell{
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 56px 80px;
  width: 100%;
  box-sizing: border-box;
}
@media(max-width:900px){ .page-shell{ padding: 32px 24px 56px; } }

.shell{
  display:grid; grid-template-columns: var(--side-w) 1fr;
  min-height: calc(100vh - var(--nav-h));
  width: 100%;
  transition: grid-template-columns .2s var(--ease);
}
body.side-collapsed .shell{ grid-template-columns: 60px 1fr; }
.side{
  border-right: 1px solid var(--border);
  padding: 14px 16px 24px;
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto;
  background: var(--bg-3);
}
body.side-collapsed .side{ padding-left: 8px; padding-right: 8px; }

.side-sec{ margin-bottom: 24px; }
.side-lbl{ font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-4); font-weight: 600; padding: 0 10px 8px; transition: opacity .15s var(--ease); }
body.side-collapsed .side-lbl{ opacity: 0; height: 0; padding: 0; margin: 0 0 8px; overflow:hidden; }
.side-item{
  display:flex; align-items:center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-md);
  font-size: 14px; color: var(--text-2); cursor: pointer;
  white-space: nowrap; overflow: hidden;
  transition: all .12s var(--ease);
}
.side-item:hover{ background: var(--bg-2); color: var(--text); }
.side-item.active{ background: var(--surface); color: var(--text); box-shadow: var(--sh-1); font-weight: 500; }
.side-item .ico{ opacity: .6; flex-shrink: 0; }
/* Owner 2026-09-24: the rail's glyphs are the owner's own icon sheet, sliced to
   image/side/<key>.png (96px, alpha only). Painted as masks in currentColor so every colour
   state the rail, the hub sheet and the phone drawer already give .ico keeps working. */
.sico{
  display:block; width:18px; height:18px; background-color:currentColor;
  -webkit-mask:var(--sico) center/contain no-repeat; mask:var(--sico) center/contain no-repeat;
  transition:transform .15s var(--ease);
}
/* Hover grows the glyph a little, a press shrinks it. transform never enters layout, so the
   rows beside it do not move — the owner's condition. */
.side-item:hover .sico{ transform:scale(1.15); }
.side-item:active .sico{ transform:scale(.9); }
@media (prefers-reduced-motion:reduce){
  .sico{ transition:none; }
  .side-item:hover .sico, .side-item:active .sico{ transform:none; }
}
.sico[data-ico="guide"]{ --sico:url(/image/side/guide.png); }
.sico[data-ico="tools"]{ --sico:url(/image/side/tools.png); }
.sico[data-ico="skills"]{ --sico:url(/image/side/skills.png); }
.sico[data-ico="mcp"]{ --sico:url(/image/side/mcp.png); }
.sico[data-ico="agents"]{ --sico:url(/image/side/agents.png); }
.sico[data-ico="compare"]{ --sico:url(/image/side/compare.png); }
.sico[data-ico="dashboard"]{ --sico:url(/image/side/dashboard.png); }
.sico[data-ico="roadmap"]{ --sico:url(/image/side/roadmap.png); }
.sico[data-ico="activity"]{ --sico:url(/image/side/activity.png); }
.sico[data-ico="audit"]{ --sico:url(/image/side/audit.png); }
.sico[data-ico="trending"]{ --sico:url(/image/side/trending.png); }
.sico[data-ico="jobs"]{ --sico:url(/image/side/jobs.png); }
.sico[data-ico="briefings"]{ --sico:url(/image/side/briefings.png); }
.sico[data-ico="weekly"]{ --sico:url(/image/side/weekly.png); }
.sico[data-ico="community"]{ --sico:url(/image/side/community.png); }
.sico[data-ico="settings"]{ --sico:url(/image/side/settings.png); }
.sico[data-ico="notifications"]{ --sico:url(/image/side/notifications.png); }
.sico[data-ico="account"]{ --sico:url(/image/side/account.png); }
.sico[data-ico="collapse"]{ --sico:url(/image/side/collapse.png); }
.side-item.active .ico{ opacity: 1; color: var(--accent); }
.side-item .lbl{ flex: 1; min-width: 0; transition: opacity .15s var(--ease); }
/* Button rows need the UA <button> defaults undone, and .side-item undoes neither.
   `text-align: center` is inherited by .lbl, which is `flex: 1` and therefore WIDER than its
   text on a full-width row — that is what pushed "Notifications" 18px right of "Settings"
   while the icon boxes were already flush. `width: auto` on a button is shrink-to-fit even at
   `display: flex`, so the Account row stopped 69px short of its neighbours and its hover pill
   with it. .side-collapse and the dashboard .nav-bell each carried a private copy of one half
   of this; one reset for every button row is what those two were standing in for. */
button.side-item{ width: 100%; text-align: left; }
/* Collapsed rail. The icon rides a fixed 28px box at a fixed offset (8px aside padding +
   8px item padding + 28px = 44px, dead-centre of the 60px track) so that widening the rail
   for a hover-peek reveals the labels WITHOUT moving a single icon. The pair this replaced
   — `justify-content:center` plus `display:none` on the label — could not: `display` is not
   animatable, and centring re-centres the icon the instant the width changes, so every icon
   slid sideways on peek. `visibility` rides along so a hidden label leaves the a11y tree;
   the accessible name survives on .side-item's own aria-label/title. */
body.side-collapsed .side-item{ justify-content: flex-start; padding: 8px; gap: 10px; }
body.side-collapsed .side-item .ico{
  flex: 0 0 28px; width: 28px;
  display: inline-flex; align-items: center; justify-content: center;
}
/* .side .lbl, not .side-item .lbl: the brand wordmark in .side-head hides on exactly the
   same rule, so the rail has one label-collapsing behaviour rather than two. */
body.side-collapsed .side .lbl{
  flex: 0 0 0; width: 0; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateX(-4px);
  transition: opacity .14s var(--ease), transform .14s var(--ease), visibility 0s .14s;
}

/* min-width: 0 is load-bearing: a shell item defaults to min-width:auto, so without it .main
   grows to its content's min-content width and drags the whole shell wider than the viewport
   (the /about team grid did exactly that at 375). */
.main{ padding: 14px 40px 32px; max-width: var(--main-maxw); margin-inline: auto; width: 100%; min-width: 0; }
.main--narrow{ --main-maxw: 1100px; }
.side-toggle{ display:none; margin-bottom: 14px; align-self:flex-start; }
@media (max-width: 900px){
  .shell{ grid-template-columns: 1fr; transition: none; }
  body.side-collapsed .shell{ grid-template-columns: 1fr; }
  .side{
    position: fixed; top: var(--nav-h); left: 0;
    width: 280px; max-width: 85vw; height: calc(100vh - var(--nav-h));
    transform: translateX(-100%); transition: transform .22s var(--ease);
    z-index: 39; border-right: 1px solid var(--border); background: var(--surface);
    display: block; padding: 14px 14px 20px;
  }
  body.side-open .side{ transform: none; box-shadow: var(--sh-3); }
  /* On mobile, the drawer is always full-width when open — ignore collapsed */
  body.side-collapsed .side{ padding: 14px 14px 20px; }
  body.side-collapsed .side-lbl{ opacity: 1; height: auto; padding: 0 10px 8px; margin: 0; overflow: visible; }
  body.side-collapsed .side-item{ justify-content: flex-start; padding: 8px 10px; }
  /* The drawer is always full width, so undo the whole collapsed-rail treatment: the label
     comes back as a normal flex child and the icon drops its fixed 28px box. */
  body.side-collapsed .side .lbl{
    flex: 1; width: auto; overflow: visible;
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  }
  body.side-collapsed .side-item .ico{ flex: 0 0 auto; width: auto; }
  .main{ padding: 20px 18px; }
  .side-toggle{ display: inline-flex; }
}

/* ---------- Page headers inside shell ---------- */
.page-head{ display:flex; align-items:flex-end; justify-content:space-between; gap: 16px; margin-bottom: 28px; flex-wrap:wrap; }
/* h2 as well as h1: the Activity Log tab panels are SECTIONS of a page that already has a
   heading, so their headings are <h2>. Same look, correct outline — see convosBody() /
   analyticsBody() in app.js. */
.page-head h1, .page-head h2{ margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 32px; letter-spacing: -0.016em; }
.page-head .sub{ color: var(--text-3); margin-top: 4px; font-size: 15px; }

/* ---------- Stat cards (dashboard) ---------- */
.stat-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 12px; }
.stat{
  padding: 20px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.stat .label{ font-size: 13px; color: var(--text-3); }
.stat .val{ font-family: var(--f-display); font-weight: 600; font-size: 28px; letter-spacing: -0.012em; margin-top: 4px; }
.stat .delta{ font-size: 12px; color: var(--success); margin-top: 4px; }
.stat .delta.down{ color: var(--danger); }

/* ---------- Agent card (Claude-style: try-first) ---------- */
.agent-card:focus-visible, .mcp-card:focus-visible, .tool-card:focus-visible, .card-link:focus-visible{
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.agent-card{
  padding: 22px 22px 18px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); display:flex; flex-direction:column; gap: 14px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
  cursor: pointer; min-height: 180px;
}
.agent-card:hover{ border-color: var(--border-2); transform: translateY(-2px); }
.agent-card:active{ transform: translateY(0); transition-duration: .08s; }
.agent-card:hover .agent-try{ background: var(--accent); color: #fff; border-color: var(--accent); }
.agent-icon{
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-2); display:flex; align-items:center; justify-content:center;
  color: var(--text-2); flex-shrink: 0;
}
.agent-card-top{ display:flex; align-items:center; justify-content:space-between; gap: 10px; }
.agent-card-body{ display:flex; flex-direction:column; gap: 6px; flex: 1; }
.agent-card .title{ font-weight: 600; letter-spacing: -0.01em; font-size: 15px; }
.agent-card .desc{ color: var(--text-3); font-size: 13px; line-height: 1.5; display:-webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.agent-card-foot{ display:flex; align-items:center; justify-content:space-between; gap: 8px; margin-top: auto; padding-top: 4px; }

/* ---- Skills catalog: download button on cards, meta hero, SKILL.md code box ---- */
.skill-dl{
  position: relative; z-index: 2; /* clickable above the card link, like .mcp-copy */
  display:inline-flex; align-items:center; gap: 6px; align-self:flex-start;
  margin-top: 6px; padding: 5px 11px;
  font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1;
  color: var(--text-2); background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: all .15s var(--ease);
}
.skill-dl svg{ width: 12px; height: 12px; }
.skill-dl:hover{ color: var(--accent); border-color: var(--accent); background: var(--accent-tint); }
.skill-dl.is-done{ color: var(--success); border-color: var(--success); }
.skill-dl:disabled{ opacity: .6; cursor: default; }
.skill-hero{ display:flex; align-items:center; justify-content:space-between; gap: 20px; margin: 4px 0 28px; text-decoration: none; color: inherit; }
.skill-hero-btn{ flex-shrink: 0; }
.skill-md-box{ border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); }
.skill-md-head{ display:flex; align-items:center; justify-content:space-between; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--border); background: var(--surface); color: var(--text-3); }
.skill-md-pre{ margin: 0; padding: 16px 18px; font-family: var(--f-mono, monospace); font-size: 13px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; max-height: 560px; overflow-y: auto; }

/* ---- Skill detail: folder tree + per-file viewer ---- */
.skill-detail .section-head{ margin: 40px 0 18px; }
.skill-tree{
  margin: 0 0 14px; padding: 14px 18px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md);
  font-family: var(--f-mono, monospace); font-size: 12.5px; line-height: 1.7; color: var(--text-2);
  white-space: pre; overflow-x: auto;
}
.skill-file-tabs{ display:flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.skill-file-tab{
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-3);
  font-family: var(--f-mono, monospace); font-size: 12px; line-height: 1.4;
  transition: all .15s var(--ease);
}
.skill-file-tab:hover{ color: var(--text); border-color: var(--border-2); }
.skill-file-tab.is-active{ color: #fff; background: var(--accent); border-color: var(--accent); }
.skill-slash{
  display:inline-flex; align-items:center; padding: 4px 11px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  font-size: 12px; font-weight: 500;
}

.agent-try{
  display:inline-flex; align-items:center; gap: 6px;
  padding: 5px 10px 5px 11px; font-size: 12px; font-weight: 500;
  color: var(--text-2); background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 999px; transition: all .15s var(--ease); white-space: nowrap;
}
.agent-try svg{ width: 11px; height: 11px; }

.tag-pill{
  display:inline-flex; align-items:center;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-2); color: var(--text-3);
  font-size: 12px; font-weight: 500; letter-spacing: .01em;
  white-space: nowrap; max-width: 60%; overflow: hidden; text-overflow: ellipsis;
}
.metric-chip{
  display:inline-flex; align-items:center; gap: 5px;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(48, 158, 91, .08); color: var(--success);
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.metric-chip span{ line-height: 1; }

/* ---------- MCP server card (directory grid) ---------- */
.mcp-card{
  position: relative;
  padding: 18px 18px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 12px; min-height: 196px;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.mcp-card:hover{ border-color: var(--border-2); transform: translateY(-2px); }
/* Stretched hit-link covers the card for navigation; sits above plain text
   (z-index auto) but below the interactive controls raised to z-index 2.
   MCP cards no longer use it (inert card + explicit video link), but the Tool
   card (toolCardCompact) still relies on this rule — keep it. */
.mcp-hit{ position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
/* MCP card: only explicit controls navigate (copy, GitHub, video link). */
.mcp-video-link{
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  font-size: 12.5px; font-weight: 500; color: var(--accent);
  text-decoration: none; transition: color .15s var(--ease);
}
.mcp-video-link:hover{ text-decoration: underline; }

.mcp-card-head{ display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mcp-title-wrap{ display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mcp-name{ font-weight: 600; letter-spacing: -0.01em; font-size: 16px; }
.mcp-badge{
  display: inline-flex; align-items: center;
  padding: 2px 7px; border-radius: 5px;
  background: var(--accent-tint); color: var(--accent);
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
}
.mcp-ext{
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin: -4px -4px 0 0;
  color: var(--text-3); border-radius: 7px;
  transition: color .15s var(--ease), background .15s var(--ease);
}
.mcp-ext:hover{ color: var(--accent); background: var(--bg-2); }

.mcp-cat{
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent);
}
.mcp-desc{
  color: var(--text-3); font-size: 13px; line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mcp-install{
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px;
  padding: 8px 8px 8px 11px;
}
.mcp-install code{
  flex: 1; min-width: 0;
  font-family: var(--f-mono, ui-monospace, monospace); font-size: 12px; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mcp-copy{
  position: relative; z-index: 2; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0; cursor: pointer;
  color: var(--text-3); background: var(--surface);
  border: 1px solid var(--border); border-radius: 7px;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.mcp-copy:hover{ color: var(--accent); border-color: var(--border-2); }
.mcp-copy.is-copied{ color: var(--success); border-color: var(--success); }

.mcp-foot{
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: auto; padding-top: 6px; border-top: 1px solid var(--border);
}
.mcp-author{ font-size: 12px; color: var(--text-3); }
.mcp-stars{
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.mcp-stars svg{ color: var(--warning); }

/* ---------- Tool card (directory grid) ---------- */
.tool-card{
  position: relative;
  padding: 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 12px; min-height: 178px;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.tool-card:hover{ border-color: var(--border-2); transform: translateY(-2px); }
.tool-card-head{ display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tool-logo{
  position: relative; width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-2); overflow: hidden; flex-shrink: 0;
}
.tool-logo-fallback{
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 17px; color: var(--text-3);
}
.tool-logo img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 7px; background: var(--bg-2); }
.tool-price{
  font-size: 12px; color: var(--text-3); font-weight: 500;
  white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis;
}
.tool-name{ font-weight: 600; letter-spacing: -0.01em; font-size: 16px; }
.tool-tagline{
  color: var(--text-3); font-size: 13px; line-height: 1.5; margin: 0; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tool-foot{
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border);
}

/* ---------- Runner layout ---------- */
.runner{ display:grid; grid-template-columns: 260px 1fr 280px; gap: 20px; min-height: 72vh; }
@media (max-width:1100px){ .runner{ grid-template-columns: 1fr; } }
@media (max-width:1100px){ .runner .rail:first-child{ display:none; } }
.runner .rail{ background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; }
.runner .board{ background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; display:flex; flex-direction:column; gap: 18px; }
.chat{
  flex: 1; background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 16px; min-height: 280px; overflow-y: auto; font-family: var(--f-text); font-size: 14px;
}
.msg{ padding: 10px 12px; border-radius: var(--r-md); margin-bottom: 10px; }
.msg-user{ background: var(--accent-tint); color: var(--text); }
.msg-bot{ background: var(--surface); border: 1px solid var(--border); }
.msg-sys{ background: transparent; color: var(--text-3); font-size: 12px; text-align: center; padding: 6px 0; }

.quota{
  padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
}
.quota-bar{ height: 6px; background: var(--bg-2); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.quota-fill{ height: 100%; background: var(--accent); border-radius: 999px; }

/* ---------- List rows ---------- */
.list{ display:flex; flex-direction:column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.list .item{ padding: 16px 20px; border-bottom: 1px solid var(--border); display:flex; align-items:center; gap: 16px; cursor: pointer; transition: background .12s var(--ease); }
.list .item:last-child{ border-bottom: 0; }
.list .item:hover{ background: var(--bg-3); }
.list .item .t{ flex:1; }
.list .item .t h4{ margin: 0; font-size: 15px; font-weight: 500; }
.list .item .t p{ margin: 2px 0 0; font-size: 13px; color: var(--text-3); }

/* ---------- Footer ---------- */
.foot{
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 80px;
  padding: 56px 0 40px; color: rgba(255,255,255,.6); font-size: 13px;
}
.foot .cols{ display:grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 32px; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.foot .foot-h{ color: #fff; font-size: 13px; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.005em; }
.foot ul{ list-style: none; padding: 0; margin: 0; display:flex; flex-direction:column; gap: 10px; }
.foot a{ color: rgba(255,255,255,.58); transition: color .2s var(--ease); position: relative; }
.foot a:hover{ color: #fff; }
/* BRAND.md motion #6: underline draws left→right on hover */
.foot a::after{
  content:""; position:absolute; left:0; right:0; bottom:-2px; height:1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-state) var(--ease-out);
}
.foot a:hover::after{ transform: scaleX(1); }
.foot-bottom{ max-width: var(--maxw); margin: 36px auto 0; padding: 20px 24px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: rgba(255,255,255,.5); display:flex; justify-content:space-between; flex-wrap:wrap; gap: 12px; }

/* ---------- Misc ---------- */
/* standalone filter pills (e.g. Compare category tabs) */
.pill{ display:inline-flex; align-items:center; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text-2); background: var(--bg-2); border: 1px solid transparent; text-decoration: none; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
.pill:hover{ color: var(--text); border-color: var(--border-2); }
.pill-active{ background: var(--text); color: #fff; border-color: var(--text); }
.pill-active:hover{ color: #fff; }
.pill-tabs{ display:inline-flex; gap: 4px; background: var(--bg-2); padding: 4px; border-radius: 999px; }
.pill-tabs button{ padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--text-2); }
.pill-tabs button.active{ background: var(--surface); color: var(--text); box-shadow: var(--sh-1); font-weight: 500; }

.kbd{ font-family: var(--f-mono); font-size: 12px; padding: 2px 6px; background: var(--bg-2); border-radius: 4px; border: 1px solid var(--border); color: var(--text-3); }

.risk-ring{
  --p: 50; --size: 120px; --stroke: 10px;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  background:
    conic-gradient(var(--accent) calc(var(--p) * 1%), var(--bg-2) 0);
  display:flex; align-items:center; justify-content:center;
  position: relative;
}
.risk-ring::before{ content:""; position:absolute; inset: var(--stroke); background: var(--surface); border-radius:50%; }
.risk-ring span{ position: relative; font-family: var(--f-display); font-weight: 600; font-size: 28px; }

/* ---------- Empty / skeleton ---------- */
.empty{
  padding: 48px 24px; text-align: center; color: var(--text-3);
  border: 1px dashed var(--border-2); border-radius: var(--r-lg);
}
.empty h3{ color: var(--text); margin: 8px 0; }
/* The 404 heading is an <h1> because it is the page heading, not a section inside one
   (a page whose only heading is an h3 reads as a fragment to crawlers and to screen
   readers navigating by heading). It keeps the h3's visual size — the change is to the
   document outline, not to the design. */
.empty h1.not-found-h{ color: var(--text); margin: 8px 0; font-size: 1.17em; font-weight: 600; line-height: 1.3; }

section.container{ margin-top: 80px; }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; margin: 0 0 20px; gap: 16px; flex-wrap:wrap; }
.section-head h2{ margin: 0; }
.section-head p{ margin: 4px 0 0; color: var(--text-3); }

/* ---------- Route crossfade (View Transitions) ---------- */
@media (prefers-reduced-motion: no-preference){
  ::view-transition-old(root){ animation: vt-fade-out 140ms ease both; }
  ::view-transition-new(root){ animation: vt-fade-in 240ms cubic-bezier(.16,1,.3,1) both; }
}
@keyframes vt-fade-out{ to{ opacity: 0; } }
@keyframes vt-fade-in{ from{ opacity: 0; } }

/* ---------- Reveal ---------- */
.reveal{ opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in{ opacity: 1; transform: none; }

/* slower, more deliberate reveal for the stats line — feels like it settles last */
.hero-stats.reveal{ transition: opacity .9s var(--ease) .25s, transform .9s var(--ease) .25s; }

/* Editor's Choice slides up further, lands after the hero finishes */
.ec-block.reveal{ transform: translateY(28px); transition: opacity .9s var(--ease) .35s, transform .9s var(--ease) .35s; }

/* ---------- Hero subtitle rotator (loops every 3s) ---------- */
.hero-subtitle[data-loop]{
  position: relative;
  min-height: 1.5em;
  margin: 6px auto 0;
  max-width: 720px;
}
.hs-phrase{
  display: block;
  position: absolute;
  inset: 0;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  pointer-events: none;
}
.hs-phrase.active{ opacity: 1; transform: none; }
.hs-phrase.exit{ opacity: 0; transform: translateY(-14px); }

/* ---------- Audit chips: collapsed until input focus ---------- */
.audit-chips[data-chips-collapsed]{
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  margin-top: 0;
  pointer-events: none;
  transition:
    max-height .55s var(--ease),
    opacity .35s var(--ease) .05s,
    transform .45s var(--ease) .05s,
    margin-top .4s var(--ease);
}
.audit-chips[data-chips-collapsed].show{
  max-height: 200px;
  opacity: 1;
  transform: none;
  margin-top: 16px;
  pointer-events: auto;
}

/* ---------- Toast ---------- */
.toast{ position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--text); color: white; padding: 10px 18px; border-radius: 999px; font-size: 13px; box-shadow: var(--sh-3); z-index: 99; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); }
.toast.show{ opacity: 1; }

/* ---------- Tables ---------- */
.tbl{ width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.tbl th, .tbl td{ padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.tbl th{ background: var(--bg-3); color: var(--text-3); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.tbl tr:last-child td{ border-bottom: 0; }
.tbl tr:hover{ background: var(--bg-3); }

/* ---------- Nice details ---------- */
.dot-sep{ color: var(--text-4); margin: 0 6px; }
.avatar{ width: 28px; height: 28px; border-radius: 50%; background: var(--bg-2); display:flex; align-items:center; justify-content:center; font-size: 12px; font-weight: 600; color: var(--text-2); }

/* ============================================================
   MOBILE POLISH
   ============================================================ */
.tbl-wrap{ overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); border: 1px solid var(--border); }
.tbl-wrap .tbl{ border: 0; border-radius: 0; min-width: 560px; }
code, .mono{ word-break: break-word; overflow-wrap: anywhere; }

@media (max-width: 768px){
  :root{ --maxw: 100%; }
  .container, .wide{ padding: 0 18px; }
  .hero{ padding: 44px 0 28px; }
  .hero h1, .display-1{ font-size: 38px; line-height: 1.08; }
  .display-2{ font-size: 30px; line-height: 1.15; }
  .h1{ font-size: 26px; }
  .h2{ font-size: 22px; }
  .h3{ font-size: 17px; }
  .lead{ font-size: 16px; line-height: 1.55; }
  .pad-lg{ padding: 40px 0; } .pad-md{ padding: 28px 0; }
  .hub-hero{ padding: 36px 0 24px; }
  .hub-body{ padding: 32px 0; }
  .section-head{ margin: 0 0 16px; }
  section.container{ margin-top: 56px; }

  /* Cards and grids */
  .card{ padding: 18px; border-radius: 14px; }
  .card-lg{ padding: 22px; border-radius: 18px; }
  .grid-2{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-4{ grid-template-columns: 1fr 1fr; }

  /* Buttons — 44px min touch target */
  .btn{ padding: 12px 18px; min-height: 44px; }
  .btn-sm{ padding: 9px 14px; min-height: 38px; font-size: 13px; }
  .btn-lg{ padding: 14px 22px; min-height: 50px; }

  /* Audit hero box */
  .audit-box{ flex-direction: column; padding: 14px; gap: 10px; border-radius: 18px; }
  .audit-box input{ padding: 10px 6px; font-size: 16px; }
  .audit-box .btn{ width: 100%; }
  .audit-chips{ gap: 6px; }
  .audit-chips button{ padding: 8px 14px; font-size: 13px; min-height: 38px; }
  .hero-cta{ flex-direction: column; }
  .hero-cta .btn{ width: 100%; }

  /* Hub hero CTA */
  .hub-hero .hero-cta{ justify-content: flex-start !important; }

  /* Runner (agent detail + playground) */
  .runner{ grid-template-columns: 1fr; gap: 14px; }
  .runner .rail{ order: 2; padding: 14px; }
  .runner .board{ padding: 18px; }
  .chat{ min-height: 220px; }

  /* Side toggle button for dashboard */
  .page-head{ flex-direction: column; align-items: flex-start; margin-bottom: 22px; }
  .page-head h1, .page-head h2{ font-size: 26px; }

  /* Stats */
  .stat-grid{ grid-template-columns: 1fr 1fr; }
  .stat{ padding: 16px; }
  .stat .val{ font-size: 24px; }

  /* List items — more breathing room, wrap gracefully */
  .list .item{ padding: 14px 16px; gap: 10px; flex-wrap: wrap; }
  .list .item .t{ min-width: 0; flex: 1 1 60%; }
  .list .item .t h4{ font-size: 14px; }
  .list .item .t p{ font-size: 12px; }

  /* Nav heights bumped for fingers */
  .nav-link{ padding: 14px 12px; }

  /* Risk ring */
  .risk-ring{ --size: 100px; --stroke: 9px; }
  .risk-ring span{ font-size: 22px; }

  /* Forms inputs 16px to avoid iOS zoom */
  .input, .textarea, .select, .search input{ font-size: 16px; }

  /* Footer */
  /* U-m3-footer. The six sections are laid out with auto-fit and a 160px floor, which needs
     352px of content box to reach two tracks. A hub footer lives inside .dash-scroll, not the
     viewport: at 390 that is 334px wide, 286px of content -- one track short. So every phone,
     up to and past a 430px Pro Max, got ONE column and a 988px stack of the same 18 links the
     desktop shows in six. Dropping the floor to 128px (the longest label, "Terms of Service",
     measures ~100px at 13px) is enough to buy the second track back, and leaves auto-fit doing
     its job: 2 columns at 390/412/430, 4-5 at 768. A flat repeat(2, ...) would have fixed the
     phone and cost the tablet two columns it currently has. Measured at 390/agents: 988 -> 595. */
  .foot{ padding: 28px 0 22px; margin-top: 48px; }
  .foot .cols{ grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 20px 16px; padding: 0 18px; }
  .foot .foot-h{ margin-bottom: 8px; }
  .foot-bottom{ flex-direction: column; gap: 6px; align-items: flex-start; margin-top: 20px; }

  /* Badges wrap in dense rows */
  .row .badge{ font-size: 12px; }

  /* Pill tabs scroll horizontally if many; bar hidden like every other pill rail */
  .pill-tabs{ overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
  .pill-tabs::-webkit-scrollbar{ display: none; height: 0; width: 0; }
  .pill-tabs button{ flex-shrink: 0; min-height: 36px; }
}

@media (max-width: 420px){
  .grid-4{ grid-template-columns: 1fr; }
  .stat-grid{ grid-template-columns: 1fr; }
  .display-1{ font-size: 32px; }
  .display-2{ font-size: 26px; }
  .brand span:last-child{ display: none; }
}

/* ---------- View Transitions (route fade) ---------- */
::view-transition-old(root),
::view-transition-new(root){
  animation-duration: .2s;
  animation-timing-function: var(--ease);
}
::view-transition-old(root){ animation-name: aiad-vt-out; }
::view-transition-new(root){ animation-name: aiad-vt-in;  }
@keyframes aiad-vt-out{
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-4px); }
}
@keyframes aiad-vt-in{
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Sidebar-first shell: navigating from the rail must move the CONTENT, not the chrome.
   Naming an element lifts it out of the `root` snapshot and animates it on its own, so the
   rail is frozen outright while the card region gets a slightly longer 8px rise. The hero
   panel stays inside `root` and keeps the gentle fade above, which is what makes a route
   change read as "the page under the rail changed" rather than "the whole screen blinked".

   router.js:666 already gates the whole mechanism on prefers-reduced-motion, and
   mystyle.js:117 suppresses it entirely across a mode change, so neither needs handling here.

   A view-transition-name must be unique in the document or the transition is skipped
   wholesale. .side is always singular; .dash-scroll is emitted by 23 call sites, so
   bindDynamic() strips the name from any second one at render time. */
body.dashboard-mode .side{ view-transition-name: dash-rail; }
body.dashboard-mode .dash-scroll{ view-transition-name: dash-content; }

::view-transition-group(dash-rail),
::view-transition-old(dash-rail),
::view-transition-new(dash-rail){ animation: none; }

::view-transition-old(dash-content){ animation: aiad-vt-out .16s var(--ease) both; }
::view-transition-new(dash-content){ animation: aiad-vt-content-in .24s cubic-bezier(.16,1,.3,1) both; }
@keyframes aiad-vt-content-in{
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .card-link:hover, .agent-card:hover{ transform: none; }
  ::view-transition-old(root), ::view-transition-new(root){ animation: none; }
  ::view-transition-old(dash-content), ::view-transition-new(dash-content){ animation: none; }
}

/* ============================================================
   Split card — text on left, photo on right (Editor's choice, MCP)
   ============================================================ */
.split-card{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .4s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.split-card:hover{
  box-shadow: 0 24px 56px -20px rgba(15, 23, 42, .14), 0 8px 20px -10px rgba(15, 23, 42, .06);
  border-color: var(--border-2);
}
.split-card .sc-text{
  padding: 36px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-card .sc-eyebrow{
  font-size: 13px;
  color: var(--text-3);
  margin: 0 0 14px;
  letter-spacing: 0;
}
.split-card .sc-title{
  font-family: var(--f-display, inherit);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.1;
}
.split-card .sc-blurb{
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0 0 26px;
  max-width: 38ch;
}
.split-card .sc-cta{
  font-size: 15px;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.split-card:hover .sc-cta{ gap: 10px; }
.split-card .sc-img{
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
  min-height: 240px;
}
.split-card .sc-img img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 820px){
  .split-card{ grid-template-columns: 1fr; }
  .split-card .sc-text{ padding: 32px 28px; }
  .split-card .sc-img{ aspect-ratio: 16/10; min-height: 0; }
}

/* ============================================================
   Horizontal scroller — Skills, Tools, Compare, News
   ============================================================ */
.scroller-wrap{ position: relative; margin-top: 28px; }
.scroller{
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scroller::-webkit-scrollbar{ display: none; height: 0; width: 0; }
.scroller > *{
  flex: 0 0 320px;
  scroll-snap-align: start;
}
.scroller-controls{
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.scroller-btn{
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
  padding: 0;
}
.scroller-btn:hover{ border-color: var(--text-3); color: var(--text); }
.scroller-btn:disabled{ opacity: .35; cursor: default; }
.scroller-btn:disabled:hover{ border-color: var(--border); color: var(--text-2); }
@media (max-width: 768px){
  .scroller > *{ flex: 0 0 84%; }
  .scroller{ scroll-padding-left: 16px; padding-left: 16px; padding-right: 16px; }
}

/* ============================================================
   Hero rotating subtitle — alternates between two phrases
   ============================================================ */
.hero-rotate{
  position: relative;
  display: block;
  min-height: 1.4em;
}
.hero-rotate span{
  display: block;
  position: absolute;
  left: 0; right: 0;
  opacity: 0;
  transform: translateY(6px);
  animation: heroPhrase 8s cubic-bezier(0.32, 0.72, 0, 1) infinite;
  will-change: opacity, transform;
}
.hero-rotate span:nth-child(1){ animation-delay: 0s; }
.hero-rotate span:nth-child(2){ animation-delay: 4s; }
@keyframes heroPhrase{
  0%   { opacity: 0; transform: translateY(6px); }
  6%   { opacity: 1; transform: translateY(0); }
  44%  { opacity: 1; transform: translateY(0); }
  50%  { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 0; transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce){
  .hero-rotate span{ animation: none; }
  .hero-rotate span:nth-child(1){ opacity: 1; transform: none; position: relative; }
  .hero-rotate span:nth-child(2){ display: none; }
}


/* ============================================================
   NEWS HUB
   ============================================================ */
.nh-wrap { max-width: 1000px; }
.nh-hero { background: #0a0b0d; border-radius: 14px; margin-bottom: 28px; overflow: hidden; }
.nh-hero-top { display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 28px; cursor: pointer; gap: 16px; user-select: none; }
.nh-eyebrow { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 8px; }
.nh-hero-title { font-size: clamp(16px,1.8vw,21px); font-weight: 600; color: #fff; line-height: 1.35; max-width: 60ch; }
.nh-chevron { color: rgba(255,255,255,0.4); font-size: 12px; flex-shrink: 0; margin-top: 6px; transition: transform 0.25s; }
.nh-hero.is-open .nh-chevron { transform: rotate(180deg); }
.nh-hero-body { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(.16,1,.3,1); }
.nh-hero.is-open .nh-hero-body { max-height: 400px; }
.nh-hero-body-inner { padding: 0 28px 24px; }
.nh-hero-summary { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.6; margin: 0 0 16px; }
.nh-hero-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,0.07); }
.nh-hero-cat { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); padding: 2px 7px; border-radius: 4px; flex-shrink: 0; font-weight: 600; }
.nh-hero-item-title { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.4; }

/* The .ab-* author-byline rules were removed with authorByline() (R2-10): /weekly was
   their only live caller and the owner had the byline taken off that page. */
.nh-hero-byline { padding: 0 28px 18px; }

.nh-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.nh-pill { padding: 6px 16px; border-radius: 20px; border: 1.5px solid #e5e5e5; background: #fff; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--text-2); transition: border-color 0.15s, color 0.15s; }
.nh-pill:hover { border-color: #bbb; color: var(--text-1); }
.nh-pill.is-active { border-color: var(--accent); color: var(--accent); }

.nh-feature-card { display: flex; border: 1px solid #ebebeb; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.nh-feature-img { width: 42%; flex-shrink: 0; background-size: cover; background-position: center; min-height: 200px; }
.nh-feature-body { padding: 24px 28px; display: flex; flex-direction: column; justify-content: center; }
.nh-feature-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.nh-cat-badge { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: #e8f1ff; padding: 3px 8px; border-radius: 4px; font-weight: 600; }
.nh-date { font-size: 12px; color: var(--text-3); }
.nh-feature-title { font-size: clamp(17px,1.7vw,21px); font-weight: 650; line-height: 1.35; color: var(--text-1); margin: 0 0 10px; }
.nh-feature-summary { font-size: 14px; color: var(--text-2); line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.nh-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.nh-small-card { border: 1px solid #ebebeb; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.nh-small-img { height: 130px; background-size: cover; background-position: center; }
.nh-small-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.nh-small-meta { display: flex; align-items: center; gap: 7px; }
.nh-small-title { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text-1); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nh-small-summary { font-size: 12px; color: var(--text-2); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nh-try-btn { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--accent); text-decoration: none; }
.nh-try-btn:hover { text-decoration: underline; }

.nh-footer { text-align: center; padding: 28px 0 8px; }
.nh-history { display: none; gap: 12px; overflow-x: auto; padding-bottom: 8px; margin-top: 16px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
.nh-history::-webkit-scrollbar{ display: none; height: 0; width: 0; }
.nh-history.is-visible { display: flex; }
.nh-hist-card { flex-shrink: 0; width: 160px; border: 1px solid #ebebeb; border-radius: 10px; overflow: hidden; scroll-snap-align: start; }
.nh-hist-img { height: 96px; background-size: cover; background-position: center; }
.nh-hist-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.nh-hist-cat { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.nh-hist-date { font-size: 12px; color: var(--text-3); }
.nh-hist-title { font-size: 12px; font-weight: 500; line-height: 1.35; color: var(--text-1); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   JOBS HUB
   ============================================================ */
.jh-hero { display: flex; align-items: center; gap: 40px; padding: 40px 0 48px; border-bottom: 1px solid #f0f0f0; margin-bottom: 32px; }
.jh-hero-left { flex: 1; }
.jh-hero-title { font-size: clamp(26px,3.2vw,42px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--text-1); margin: 12px 0 16px; }
.jh-hero-sub { font-size: 14px; color: var(--text-2); line-height: 1.6; max-width: 42ch; margin: 0 0 20px; }
.jh-hero-cta { font-size: 14px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; transition: gap 0.2s; }
.jh-hero-cta:hover { gap: 10px; }
.jh-hero-right { position: relative; width: 360px; flex-shrink: 0; overflow: visible; }
.jh-hero-img {
  display: block; width: 100%; height: auto;
  max-height: 300px; object-fit: contain;
}
.jh-read-brief {
  position: absolute; top: 0; right: 0;
  font-size: 12px; padding: 6px 14px;
}
.jh-hero-card { position: absolute; background: #fff; border: 1px solid #ebebeb; border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); z-index: 2; }
.jh-hero-card--left { top: 48px; left: -16px; animation: jhCardLeft 0.5s cubic-bezier(.16,1,.3,1) both; }
.jh-hero-card--right { bottom: 48px; right: -8px; animation: jhCardRight 0.5s 0.15s cubic-bezier(.16,1,.3,1) both; }
@keyframes jhCardLeft  { from { opacity:0; transform:translateX(-16px); } to { opacity:1; transform:none; } }
@keyframes jhCardRight { from { opacity:0; transform:translateX(16px);  } to { opacity:1; transform:none; } }
.jh-hero-card-title { font-size: 13px; font-weight: 600; color: var(--text-1); margin-bottom: 2px; }
.jh-hero-card-sub { font-size: 12px; color: var(--text-3); }
.jh-hero-card-arrow { color: var(--text-3); font-size: 18px; margin-left: auto; }
.jh-hero-card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; }

/* AI Jobs — redesigned cards (logo + company + title + desc + type + location, date + salary) */
.jobc-list { display: flex; flex-direction: column; gap: 14px; }
.jobc { display: flex; gap: 16px; padding: 20px 22px; border: 1px solid var(--border, #ebebeb); border-radius: 14px; background: #fff; transition: border-color .15s; }
a.jobc { color: inherit; text-decoration: none; }
a.jobc:hover { border-color: var(--text-3); }
.jobc:hover { border-color: var(--text-3, #c7c7cc); }
.jobc-logo { flex: 0 0 auto; width: 48px; height: 48px; border: .5px solid var(--border-2, #e5e5ea); border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; }
.jobc-mono { font-size: 18px; font-weight: 600; color: var(--text-2); }
.jobc-main { flex: 1 1 auto; min-width: 0; }
.jobc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.jobc-company { font-size: 13px; font-weight: 500; color: var(--accent); }
.jobc-title { font-size: 16px; font-weight: 600; color: var(--text-1); margin: 2px 0 0; }
.jobc-aside { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.jobc-date { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.jobc-date svg { width: 14px; height: 14px; color: var(--text-3); }
.jobc-salary { font-size: 13px; font-weight: 600; color: var(--text-1); }
.jobc-desc { font-size: 14px; color: var(--text-2); line-height: 1.55; margin: 10px 0 12px; }
.jobc-meta { display: flex; align-items: center; gap: 20px; }
.jobc-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); }
.jobc-tag svg { width: 15px; height: 15px; color: var(--text-3); }
/* Job-board strip links: brand logo + label inline */
.jobs-board-link { display: inline-flex; align-items: center; gap: 7px; }
.jobs-board-link svg { flex: 0 0 auto; }
/* Compact hero inside the AI Jobs static panel — smaller image + tighter padding so more
   cards are visible in the scroll region below (per the 3rd reference image). */
.jobs-subhead .jh-hero { padding: 6px 0 14px; gap: 28px; margin-bottom: 14px; border-bottom: none; }
.jobs-subhead .jh-hero-right { width: 240px; }
.jobs-subhead .jh-hero-img { max-height: 150px; }
.jobs-subhead .jh-hero-title { font-size: clamp(22px,2.4vw,30px); margin: 6px 0 10px; }
.jobs-subhead .jh-hero-sub { margin: 0 0 12px; }
.jobs-subhead .jh-hero-card { transform: scale(0.82); }
.jobs-subhead .card.card-lg { margin: 0 !important; padding: 14px 18px; }
.jh-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.jh-panel { border: 1px solid #ebebeb; border-radius: 12px; overflow: hidden; position: sticky; top: calc(var(--nav-h) + 20px); transform: translateX(-6px); opacity: 0; pointer-events: none; transition: transform 0.28s cubic-bezier(.16,1,.3,1), opacity 0.2s; }
.jh-panel.is-open { transform: translateX(0); opacity: 1; pointer-events: auto; }
.jh-panel-head { padding: 18px 18px 14px; border-bottom: 1px solid #f0f0f0; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.jh-panel-company { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.jh-panel-title { font-size: 17px; font-weight: 650; color: var(--text-1); line-height: 1.3; }
.jh-panel-close { width: 28px; height: 28px; border: none; background: none; cursor: pointer; color: var(--text-3); font-size: 20px; flex-shrink: 0; border-radius: 6px; display: flex; align-items: center; justify-content: center; line-height: 1; }
.jh-panel-close:hover { background: var(--bg-2); color: var(--text-1); }
.jh-panel-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.jh-panel-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.jh-panel-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.jh-panel-apply { margin-top: 6px; }
.jh-empty { color: var(--text-3); font-size: 13px; padding: 40px 20px; text-align: center; }

.jh-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.jh-card { border: 1.5px solid #ebebeb; border-radius: 12px; padding: 16px; cursor: pointer; transition: border-color 0.15s; }
.jh-card:hover { border-color: #c0c0c0; }
.jh-card.is-active { border-color: var(--accent); }
.jh-card-top { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.jh-card-avatar { width: 36px; height: 36px; border-radius: 8px; background: var(--bg-2); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: var(--text-2); flex-shrink: 0; }
.jh-card-info { flex: 1; min-width: 0; }
.jh-card-title { font-size: 14px; font-weight: 650; color: var(--text-1); line-height: 1.35; }
.jh-card-company { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.jh-card-salary { font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 8px; }
.jh-card-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.jh-tag { opacity: 0; transform: translateX(-6px); transition: opacity 0.2s calc(var(--i,0) * 0.055s), transform 0.25s calc(var(--i,0) * 0.055s) cubic-bezier(.16,1,.3,1); }
.jh-card:nth-child(even) .jh-tag { transform: translateX(6px); }
.jh-card:hover .jh-tag, .jh-card.is-active .jh-tag { opacity: 1; transform: translateX(0); }
.jh-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f5f5f5; }
.jh-card-posted { font-size: 12px; color: var(--text-3); }
.jh-card-arrow { color: var(--text-3); opacity: 0; transform: translateX(-4px); transition: opacity 0.15s, transform 0.2s; }
.jh-card:hover .jh-card-arrow, .jh-card.is-active .jh-card-arrow { opacity: 1; transform: translateX(0); }

/* ============================================================
   NEWSLETTER STRIP — above footer
   ============================================================ */
.nl-strip {
  background: #0a0b0d;
  padding: 56px 0;
}
.nl-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.nl-eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}
.nl-title-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.nl-title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  color: #fff;
  margin: 0;
  white-space: nowrap;
}
.nl-meta {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}
.nl-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
}
.nl-input {
  flex: 1;
  height: 44px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  padding: 0 18px;
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.nl-input::placeholder { color: rgba(255,255,255,0.35); }
.nl-input:focus { border-color: var(--accent); }
.nl-btn {
  height: 44px;
  padding: 0 24px;
  background: var(--accent);
  color: #0a0b0d;
  border: none;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.nl-btn:hover { background: var(--accent-2); }
.nl-btn:active { transform: scale(0.97); }
@media (max-width: 600px) {
  .nl-inner { padding: 0 20px; }
  .nl-title-row { flex-direction: column; gap: 6px; }
  .nl-form { flex-direction: column; }
  .nl-btn { width: 100%; }
}

/* ============================================================
   ABOUT / CONTACT / LEGAL pages
   ============================================================ */

/* What is left of the old 3-card magazine team grid. The grid itself, its card box,
   its photo well and its body wrapper are gone — no markup used those classes, and
   the .about-team-photos layout further down replaced them.
   These two margins are the only thing that survived, and they are LIVE: the current
   .about-team-name / .about-team-role rules (see .about-team-tag below) set every
   other property but never set margin, so deleting these moves the name plate. */
.about-team-name { margin-bottom: 3px; }
.about-team-role { margin-bottom: 10px; }

/* Contact two-col layout */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 560px);
  gap: 48px;
  margin-top: 32px;
  align-items: start;
}
.contact-email-label { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.contact-email-addr { font-size: 16px; color: var(--accent); font-weight: 500; text-decoration: none; }
.contact-email-addr:hover { text-decoration: underline; }

/* Legal pages */
.legal-content p { font-size: 15px; line-height: 1.75; color: var(--text-2); margin-bottom: 14px; }
.legal-list {
  padding-left: 20px;
  margin-bottom: 14px;
}
.legal-list li { font-size: 15px; line-height: 1.75; color: var(--text-2); margin-bottom: 6px; }

/* About page sections — center and constrain width */
section.container[style*="max-width:860px"] {
  width: 100%;
  max-width: 860px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* Team photos grid. Same 860px column as the prose above and below it, so every
   left and right edge on the page lines up. */
.about-team-photos {
  display: grid;
  /* minmax(0, ...) rather than 1fr: 1fr is minmax(auto, 1fr), so the min-content width of a
     long name plus its uppercase role floored each cell and widened the shell on phones. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px;
  background: var(--bg-1);
}
.about-team-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  /* Clears the boxed .about-team-card above, which belongs to the older
     .about-team-grid layout. Its radius plus overflow:hidden was clipping the
     first character off the last line of the bio, in the rounded corner. The
     portrait does its own rounding; the card must not round or clip at all. */
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.about-photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #f0f0f0;
}
.about-photo img{
  display: block;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform .6s var(--ease);
}
.about-team-card:hover .about-photo img{ transform: scale(1.03); }
@media (prefers-reduced-motion: reduce){
  .about-team-card:hover .about-photo img{ transform: none; }
}
/* Name plate sits below the portrait now, in the page's own text colours. */
.about-team-tag{
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 2px;
}
.about-team-name{
  font-family: var(--f-display);
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.2;
  /* Full names run long; split them evenly instead of leaving one word alone. */
  text-wrap: balance;
  color: var(--text);
}
.about-team-role{
  font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  line-height: 1.4;
  /* Two lines' worth, so a long title doesn't lift its bio above the others. */
  min-height: 2.8em;
  color: var(--text-2);
}
/* balance, not pretty: these run three or four lines, and pretty only rescues a
   true single-word orphan. Balance evens every line so no card ends on a stub. */
.about-team-bio{ margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.65; text-wrap: balance; }

/* "Why we exist" text blocks */
.about-text-block { color: var(--text-2); }

/* 6-column coverage grid */
.about-coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
}
.about-coverage-card {
  padding: 24px;
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  transition: border-color .2s var(--ease);
}
.about-coverage-card:hover { border-color: var(--border-2); }
.about-coverage-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}

/* "What we make" — two columns of hairline-ruled entries. Deliberately not the
   bordered .about-coverage-card, so it does not read as a repeat of the topic
   grid further down the page. */
.about-make {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 32px;
}
.about-make-item { border-top: 1px solid var(--border-2); padding-top: 14px; }
.about-make-title {
  margin: 0 0 6px;
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.about-make-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
}

/* Process steps — 4 indexed items, hairline-ruled (studio style) */
.about-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 0;
}
.about-process-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-2);
}
.about-process-num {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  line-height: 1;
}
.about-process-content { color: var(--text-2); }

@media (max-width: 720px) {
  /* Phone: one card per row. The portrait moves to the left and spans both text rows, the
     name and role sit top right, the bio runs underneath. Three columns cannot hold a full
     name beside an uppercase role at this width without forcing the page wider. */
  .about-team-photos { grid-template-columns: 1fr; gap: 28px; padding: 40px 24px; }
  .about-team-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 16px;
    row-gap: 8px;
    align-items: start;
  }
  .about-photo { grid-row: 1 / span 2; }
  /* The two-line reservation only exists to keep three desktop bios level; one per row here. */
  .about-team-role { min-height: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-coverage-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .about-process { grid-template-columns: 1fr; gap: 24px; }
}

/* Integrations */
/* NOTE: .intg-subhead layout (static header) lives in mystyle.css after the
   .gd-wrap .dash-subhead rules so it wins the cascade (mystyle loads last). */
.intg-head-inner{ display: flex; flex-direction: column; gap: 14px; }
.intg-filters{ display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:nowrap; }
/* Category strip: chevrons flank a scrollable tab row. The strip (tabwrap) carries the
   fill and the hairline; the tab row itself is transparent + scrollable. */
/* WU-4: the toolbar strip is a WHITE pill on the pale ground with an --ink active tab
   (final_mockup/comapre_01.png + learn.png). It used to be the inverse — an --ink well
   with a white active pill — which is now the breadcrumb's job, one row above it. */
.intg-tabwrap{ flex:1 1 auto; min-width:0; display:flex; align-items:center; gap:2px; background:var(--surface); border:.5px solid var(--border); padding:6px; border-radius:var(--r-lg); }
/* A class selector outranks the UA sheet's [hidden]{display:none}, so a strip hidden by
   attribute would still paint -- as an empty bordered pill with two dead arrows in it.
   /briefings hides its strip whenever the edition carries no categories. */
.intg-tabwrap[hidden]{ display:none; }
.intg-tabs{ display:flex; gap:2px; overflow-x:auto; scrollbar-width:none; -ms-overflow-style:none; scroll-behavior:smooth; flex:1 1 auto; min-width:0;
  /* The strip is the phone's primary way through the categories (owner 2026-09-14), so
     it has to take a swipe as well as a chevron. overscroll-behavior-x stops a fling
     that runs out of strip from turning into the browser's back gesture -- on a 390px
     screen every one of these rows overflows, so that is one flick away at all times. */
  -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain; }
.intg-tabs::-webkit-scrollbar{ display:none; height:0; width:0; }
.intg-tab{ flex-shrink:0; padding:8px 16px; border-radius:var(--r-sm); font-size:13px; color:var(--text-2); background:transparent; border:0; cursor:pointer; white-space:nowrap; text-decoration:none; transition: color .15s, background .15s; }
.intg-tab:hover{ color:var(--text); }
.intg-tab.active{ background:var(--ink); color:var(--ink-text); font-weight:600; }
.intg-tab.active:hover{ color:var(--ink-text); }
.intg-chev{ flex:0 0 auto; width:30px; height:30px; border:0; background:transparent; color:var(--text-3); border-radius:999px; transition: color .15s, background .15s; }
.intg-chev:hover:not(:disabled){ color:var(--text); background:var(--bg-2); }
/* Owner 2026-09-14 reverses WU-4's "gone, not dimmed": on a phone the arrows are the
   discoverable half of the swipe, so they hold their corner and fade when that end is
   reached rather than disappearing and reflowing the strip mid-gesture. No rule needed —
   .scroller-btn:disabled (:1437) already fades to .35 and drops the pointer cursor, and a
   disabled <button> ignores clicks on its own. One source of truth for both. */
.intg-controls{ display:inline-flex; gap:8px; align-items:center; flex:0 0 auto; }
/* WU-4: white search pill with a leading magnifier, to match the mockups. The glyph is a
   background image, not markup — .intg-search is a bare <input> supplied by each hub and
   the mockup's icon is decoration, so no hub template has to change to grow one. */
.intg-search{ height:48px; border:.5px solid var(--border); border-radius:var(--r-lg); padding:0 16px 0 44px; font-size:14px; color:var(--text); background:var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23616d85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.6-3.6'/></svg>") no-repeat left 16px center; min-width:240px; }
.intg-search::-webkit-search-cancel-button{ margin-right:2px; }
.intg-search:focus{ outline:2px solid var(--accent); outline-offset:1px; }
.intg-logo{ display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border:.5px solid var(--border-2); border-radius:10px; background:#fff; }
.intg-logo svg{ width:28px; height:28px; }
.intg-logo-lg{ width:56px; height:56px; }
.intg-logo-lg svg{ width:36px; height:36px; }
.intg-card{ transition: border-color .15s; }
.intg-card:hover{ border-color: var(--text-3); }
.intg-foot{ display:flex; justify-content:space-between; align-items:center; border-top:.5px solid var(--border); margin-top:14px; padding-top:12px; }
.intg-cat{ font-size:13px; color:var(--text-2); display:inline-flex; align-items:center; gap:6px; }
.intg-dot{ color: var(--success); }
.intg-view{ font-size:13px; font-weight:500; color:var(--accent); text-decoration:none; }
.intg-view:hover{ color:#005bb5; }
.intg-empty{ grid-column:1/-1; padding:40px 0; text-align:center; }
.intg-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.32); display:flex; align-items:center; justify-content:center; z-index:50; }
.intg-panel{ background:var(--surface); border-radius:14px; padding:28px; width:min(420px,92vw); position:relative; border:.5px solid var(--border); }
.intg-panel-x{ position:absolute; top:14px; right:14px; border:0; background:transparent; cursor:pointer; color:var(--text-2); font-size:18px; line-height:1; }

/* Integrations — credential flow (connect) */
.intg-flow{ text-align:center; }
.intg-flow-head{ display:flex; flex-direction:column; align-items:center; gap:8px; margin-bottom:20px; }
.intg-flow-cta{ width:100%; display:inline-flex; align-items:center; justify-content:center; gap:8px; margin:0 0 10px; }
.intg-logo-sm{ display:inline-flex; width:18px; height:18px; }
.intg-logo-sm svg{ width:18px; height:18px; }
.intg-scopes{ list-style:none; margin:0 0 20px; padding:16px; text-align:left; border:.5px solid var(--border); border-radius:10px; display:flex; flex-direction:column; gap:12px; }
.intg-scopes li{ display:flex; gap:10px; font-size:13px; color:var(--text); line-height:1.5; }
.intg-scope-check{ color:var(--accent); flex:0 0 auto; display:inline-flex; }
.intg-field-label{ display:block; text-align:left; font-size:13px; font-weight:500; color:var(--text); margin:0 0 6px; }
.intg-key-input{ width:100%; padding:10px 12px; font-size:14px; border:.5px solid var(--border); border-radius:8px; background:#fff; color:var(--text); }
.intg-key-input:focus{ outline:none; border-color:var(--accent); }
.intg-key-err{ text-align:left; font-size:12px; color:var(--danger); margin:6px 0 0; }
.intg-key-help{ text-align:left; font-size:12px; color:var(--text-2); margin:8px 0 0; }
.intg-key-caveat{ text-align:left; font-size:12px; color:var(--text-3); margin:8px 0 16px; }
.intg-flow-center{ display:flex; flex-direction:column; align-items:center; gap:14px; padding:36px 0; }
.intg-spinner{ width:24px; height:24px; border:2px solid var(--border-2); border-top-color:var(--accent); border-radius:50%; animation:intg-spin .7s linear infinite; }
@keyframes intg-spin{ to{ transform:rotate(360deg); } }
.intg-conn{ text-align:left; margin:0 0 18px; display:flex; flex-direction:column; gap:10px; }
.intg-conn div{ display:flex; justify-content:space-between; gap:16px; font-size:13px; }
.intg-conn dt{ color:var(--text-2); margin:0; }
.intg-conn dd{ color:var(--text); margin:0; text-align:right; display:inline-flex; align-items:center; gap:6px; }

/* Integrations — custom integration (button, method cards, badge) */
.intg-custom-btn{ height:36px; display:inline-flex; align-items:center; gap:2px; padding:0 14px; font-size:13px; white-space:nowrap; }
.intg-method-cards{ display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:0 0 4px; }
.intg-method-card{ position:relative; border:.5px solid var(--border); border-radius:8px; padding:9px 6px; font-size:12px; text-align:center; cursor:pointer; color:var(--text); transition:border-color .15s, color .15s; }
.intg-method-card:hover{ border-color:var(--text-3); }
.intg-method-card input{ position:absolute; opacity:0; pointer-events:none; }
.intg-method-card:has(input:checked){ border-color:var(--accent); color:var(--accent); font-weight:500; }
.intg-badge-custom{ font-size:12px; font-weight:500; color:var(--text-2); border:.5px solid var(--border-2); border-radius:999px; padding:1px 8px; margin-left:8px; }
.intg-empty-cta{ margin-top:2px; }
.intg-remove{ color:var(--danger); margin-left:8px; }
@media (max-width: 768px){
  .intg-custom-btn .intg-custom-label{ display:none; }
  .intg-custom-btn{ padding:0 12px; }
}

/* ============================================================
   DATA PROVENANCE BADGES
   Every data-driven surface declares where its data comes from.
   Release rule: Demo must never masquerade as Live.
   ============================================================ */
.data-badge{ display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:600; letter-spacing:.02em; padding:3px 9px; border-radius:980px; border:1px solid; vertical-align:middle; white-space:nowrap; }
.data-badge .db-dot{ width:6px; height:6px; border-radius:50%; background:currentColor; flex-shrink:0; }
.data-badge--live{ color:#1d7a46; background:#ecfdf3; border-color:#b7e4c7; }
.data-badge--local{ color:var(--accent-press); background:#eaf3fe; border-color:#bcd9f7; }
.data-badge--cached{ color:#8a5a00; background:#fff7e6; border-color:#f2dfb3; }
.data-badge--offline{ color:#8a5a00; background:#fff7e6; border-color:#f2dfb3; }
.data-badge--demo{ color:#6e42c1; background:#f4edfd; border-color:#ddc9f7; }
.data-badge--soon{ color:#666; background:#f2f2f4; border-color:#ddd; }
h1 .data-badge{ margin-left:10px; transform:translateY(-2px); }

/* Tool detail — beginner verdict callout (live-site pattern) */
.td-verdict{ margin-top:18px; border:1px solid; border-radius:14px; padding:16px 20px; }
.td-verdict-label{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.td-verdict--green{ background:#ecfdf5; border-color:#a7f3d0; } .td-verdict--green .td-verdict-label{ color:#065f46; }
.td-verdict--orange{ background:#fff7ed; border-color:#fed7aa; } .td-verdict--orange .td-verdict-label{ color:#9a3412; }
.td-verdict--blue{ background:#eff6ff; border-color:#bfdbfe; } .td-verdict--blue .td-verdict-label{ color:#1e40af; }

/* ============================================================
   U-phone - tap targets at phone widths (owner decision B4)
   ============================================================
   WCAG 2.5.8 asks for 44px on a coarse pointer. Every control below grows in
   HEIGHT only: font sizes and widths are untouched, so no label reflows, no
   strip changes how many items fit on a row, and nothing above 900px moves -
   this is the only place in this file that mentions these selectors at a
   phone width.

   The two exceptions are icon-only squares (.mcp-copy here, .dash-hero-arrow
   in mystyle.css). Their width IS their height, so growing one axis alone
   would turn a 26px square into a 26x44 sliver rather than a bigger target;
   they grow on both.

   Companion block for the mystyle.css-owned controls: end of that file.
   ============================================================ */
@media (max-width: 900px){
  /* Hub category strips, and the /news category pills - .nh-pill ships as a
     second class on the same <button class="intg-tab nh-pill">, so one rule
     would do, but both are named because either could be restyled alone. */
  .intg-tab,
  .nh-pill{ display: inline-flex; align-items: center; min-height: 44px; }

  /* /news is the one hub whose strip wraps. `.nh-pills` ships `flex-wrap: wrap` (:1499),
     which at 390 folded its six pills onto two rows — a 90px strip, 46px of it pure
     chrome, before a single card. Every other hub puts the same categories in
     `.intg-tabs`, which is `nowrap` inside `.intg-tabwrap` and slides sideways under the
     two `.intg-chev` buttons app.js already enables on overflow. One row, same component.
     Scoped to `.intg-tabwrap` so the standalone `.nh-pills` strips keep wrapping. */
  .intg-tabwrap .nh-pills{ flex-wrap: nowrap; }

  /* The strip's corner arrows. 30px inside a 6px-padded wrap is a 30px target; now that
     they stay put instead of vanishing they are a control a thumb actually aims at, so
     they take the same 44px floor .dash-hero-arrow does (mystyle.css:6941). */
  .intg-chev{ min-width: 44px; min-height: 44px; }

  /* Copy-the-install-command button in the MCP and skill brief rows. */
  .mcp-copy{ min-width: 44px; min-height: 44px; }

  /* File switcher on /skill/:id. */
  .skill-file-tab{
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px;
  }
}

