/* ============================================================
   Expert Edge — site stylesheet
   Dark editorial legal-tech system. One accent, serif display,
   grotesk body, mono microtype.
   ============================================================ */
:root{
  /* Surfaces. Kept dark and editorial, but lifted off pure black: the old
     values sat at ~0.003 relative luminance, which read as a void and made
     9px microtype hard to follow. These are ~2x brighter and still calm. */
  --ink:#0E1319;
  --ink-2:#151B24;
  --ink-3:#1D2531;
  --ink-4:#0A0E14;
  --line:rgba(255,255,255,.11);
  --line-2:rgba(255,255,255,.19);
  /* Text. Every value below clears WCAG AA (4.5:1) on --ink AND on --ink-2,
     including --fg-3, which previously failed at 4.03:1. */
  --fg:#F2F5F9;
  --fg-2:#AEB9C7;
  --fg-3:#8490A0;
  --edge:#5FE3C0;
  --edge-2:#5BBCFF;
  --warn:#FFC06B;
  --hot:#FF8A8A;
  /* --accent was referenced 12 times but never defined, so those rules
     silently fell back to inherited colour. It is the same electric mint as
     --edge; both names are kept because markup uses each. */
  --accent:#5FE3C0;
  --ok:#5FE3C0;
  --neutral:#8490A0;
  --serif:"Fraunces",Georgia,serif;
  --sans:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"JetBrains Mono",ui-monospace,Menlo,monospace;
  --r:14px;
  --pad:clamp(20px,5vw,64px);
  --max:1240px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{
  margin:0;background:var(--ink);color:var(--fg);font-family:var(--sans);
  font-weight:300;font-size:17px;line-height:1.62;-webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,svg,video,canvas{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{font-family:var(--serif);font-weight:500;letter-spacing:-.02em;line-height:1.08;margin:0}
h1{font-size:clamp(38px,6vw,78px)}
h2{font-size:clamp(28px,4vw,50px)}
h3{font-size:clamp(19px,2.1vw,25px);letter-spacing:-.01em}
h4{font-size:18px}
p{margin:0}
ul{margin:0;padding:0;list-style:none}
.wrap{max-width:var(--max);margin:0 auto;padding:0 var(--pad)}
.narrow{max-width:900px}
section{position:relative;padding:clamp(52px,7vh,92px) 0;scroll-margin-top:76px}
body.has-toc section{scroll-margin-top:128px}
section.tight{padding:clamp(48px,6vh,76px) 0}
.alt{background:var(--ink-4);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.eyebrow{
  font-family:var(--mono);font-size:11.5px;letter-spacing:.2em;text-transform:uppercase;
  color:var(--edge);display:flex;align-items:center;gap:10px;
}
.eyebrow::before{content:"";width:22px;height:1px;background:var(--edge);opacity:.7}
.eyebrow.center{justify-content:center}
.lede{font-size:clamp(17px,1.5vw,20px);color:var(--fg-2);max-width:66ch}
.muted{color:var(--fg-2)}
.small{font-size:14px;color:var(--fg-3);line-height:1.65}
.mt-s{margin-top:14px}.mt-m{margin-top:22px}.mt-l{margin-top:40px}
.center{text-align:center}
.srcline{font-size:13.5px;color:var(--fg-3);line-height:1.7}
.srcline a,a.src-link{color:var(--edge-2);border-bottom:1px dashed rgba(55,178,255,.4)}
.srcline a:hover,a.src-link:hover{color:var(--edge);border-bottom-color:rgba(95,227,192,.6)}
.rule{height:1px;background:linear-gradient(90deg,transparent,var(--line),transparent)}

/* ---------- logo ---------- */
.logo{display:flex;align-items:center;gap:11px}
.logo .mark{width:17px;height:40px;flex:none}
.logo .wordmark{display:flex;flex-direction:column;align-items:flex-start;line-height:1}
.logo .wordmark b{font-family:var(--serif);font-weight:600;font-size:18.5px;letter-spacing:-.015em;white-space:nowrap}
.logo .wordmark span{font-family:var(--mono);font-size:8.5px;letter-spacing:.2em;color:var(--fg-3);text-transform:uppercase;margin-top:5px;white-space:nowrap}
.uc-note{margin-top:10px;max-width:34ch}
.uc-note b{color:var(--fg-2);font-weight:500}
.uc-note .uc-tag{display:block;font-family:var(--serif);font-weight:500;font-size:15px;line-height:1.3;color:var(--fg);margin-bottom:6px}

/* ---------- header ---------- */
/* Scoped to the PAGE header only. As a bare element selector this also caught
   every <header> the dossier renders for a case block, pinning each case title
   to the top of the viewport at z-index 80 -- two cases overlapping on screen,
   and repeated on all 11 pages of a printed dossier. */
body > header,#hdr{
  position:fixed;inset:0 0 auto 0;z-index:80;
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  background:rgba(7,9,13,0);border-bottom:1px solid transparent;
  transition:background .35s ease,border-color .35s ease;
}
header.stuck{background:rgba(7,9,13,.86);border-bottom-color:var(--line)}
header .bar{display:flex;align-items:center;justify-content:space-between;height:74px;gap:14px}
/* Nav hit areas come from padding, not from the gap: a short label like "API"
   was only 23px wide and failed the 44px tap target even though its height
   passed. The gap shrinks by the same amount the padding grows, so the visual
   spacing between labels is unchanged while the clickable box reaches 44px. */
nav.links{display:flex;gap:0;font-size:14.5px;color:var(--fg-2);--navpad:9px}
/* A nav link is a tap target, not just text: give it the full bar height so
   the hit area matches what the eye sees. */
nav.links a{position:relative;display:flex;align-items:center;min-height:44px;padding:4px var(--navpad);transition:color .2s;white-space:nowrap}
nav.links a::after{content:"";position:absolute;left:var(--navpad);right:calc(100% - var(--navpad));bottom:16px;height:1px;background:var(--edge);transition:right .28s ease}
nav.links a:hover{color:var(--fg)}
nav.links a:hover::after{right:var(--navpad)}
nav.links a.active{color:var(--fg)}
nav.links a.active::after{right:var(--navpad)}
.btn{
  display:inline-flex;align-items:center;gap:9px;border-radius:999px;padding:12px 22px;
  font-size:14.5px;font-weight:500;font-family:var(--sans);border:1px solid var(--line-2);
  color:var(--fg);background:rgba(255,255,255,.03);cursor:pointer;white-space:nowrap;
  transition:transform .18s ease,background .25s,border-color .25s,box-shadow .25s;
}
.btn:hover{transform:translateY(-1px);border-color:rgba(95,227,192,.5);box-shadow:0 8px 30px -12px rgba(95,227,192,.45)}
.btn.primary{background:var(--edge);color:#04110D;border-color:transparent;font-weight:600}
.btn.primary:hover{box-shadow:0 12px 40px -12px rgba(95,227,192,.7)}
.btn .arw{transition:transform .2s}
.btn:hover .arw{transform:translateX(3px)}
/* The hamburger was 32x24 -- the single most important control on mobile and
   the smallest. A 44px box with the glyph centred. */
.logo{display:inline-flex;align-items:center;min-height:44px}
.menu-btn{display:none;background:none;border:0;color:var(--fg);font-size:22px;cursor:pointer;line-height:1;
  width:44px;height:44px;align-items:center;justify-content:center;margin-right:-10px}
.btnrow{display:flex;gap:14px;flex-wrap:wrap;margin-top:34px}
.btnrow.center{justify-content:center}

/* ---------- hero ---------- */
.hero{min-height:100svh;display:flex;align-items:center;padding-top:110px;overflow:hidden}
.hero.short{min-height:auto;padding:clamp(150px,20vh,210px) 0 clamp(60px,8vh,96px)}
.hero-media{position:absolute;inset:0;z-index:0}
.hero-media video,.hero-media canvas{width:100%;height:100%;object-fit:cover}
.hero-media::after{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(120% 90% at 78% 12%,rgba(55,178,255,.16),transparent 55%),
    radial-gradient(90% 80% at 8% 90%,rgba(95,227,192,.13),transparent 60%),
    linear-gradient(180deg,rgba(7,9,13,.62) 0%,rgba(7,9,13,.78) 45%,var(--ink) 100%);
}
.grid-overlay{
  position:absolute;inset:0;z-index:1;pointer-events:none;opacity:.5;
  background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);
  background-size:78px 78px;
  mask-image:radial-gradient(120% 80% at 50% 30%,#000 10%,transparent 78%);
  -webkit-mask-image:radial-gradient(120% 80% at 50% 30%,#000 10%,transparent 78%);
}
.hero .wrap{position:relative;z-index:2;width:100%}
.hero h1 em{font-style:normal;color:var(--edge)}
.hero .lede{margin-top:24px;font-size:clamp(18px,1.7vw,21.5px)}
.hero-meta{display:flex;gap:34px;flex-wrap:wrap;margin-top:54px;padding-top:26px;border-top:1px solid var(--line)}
.hero-meta div{display:flex;flex-direction:column;gap:6px}
.hero-meta b{font-family:var(--serif);font-size:26px;font-weight:500}
.hero-meta span{font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--fg-3)}
.scroll-hint{position:absolute;left:50%;bottom:26px;transform:translateX(-50%);z-index:3;font-family:var(--mono);font-size:10px;letter-spacing:.22em;color:var(--fg-3);text-transform:uppercase;display:flex;flex-direction:column;align-items:center;gap:10px}
.scroll-hint i{width:1px;height:38px;background:linear-gradient(var(--edge),transparent);animation:drip 2.2s ease-in-out infinite}
@keyframes drip{0%,100%{opacity:.25;transform:scaleY(.5)}50%{opacity:1;transform:scaleY(1)}}

/* ---------- 3-up / card grids ---------- */
.three{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.three>div{background:var(--ink-2);padding:34px 30px;transition:background .3s}
.three>div:hover{background:var(--ink-3)}
.three h4{font-family:var(--mono);font-weight:500;font-size:11.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--edge);margin-bottom:14px}

.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:16px;margin-top:40px}
.card{border:1px solid var(--line);border-radius:12px;padding:26px;background:var(--ink-2);transition:transform .25s ease,border-color .25s,background .25s}
.card:hover{transform:translateY(-3px);border-color:var(--line-2);background:var(--ink-3)}
.card h3{margin-bottom:10px}
.card h4{font-family:var(--serif);font-weight:500;font-size:19px;margin-bottom:9px}

/* status chips */
.chip{
  display:inline-flex;align-items:center;gap:7px;font-family:var(--mono);font-size:10.5px;
  letter-spacing:.14em;text-transform:uppercase;padding:4px 10px;border-radius:99px;
  border:1px solid rgba(95,227,192,.28);color:var(--edge);background:rgba(95,227,192,.08);
}
.chip::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}
.chip.amber{border-color:rgba(255,180,84,.3);color:var(--warn);background:rgba(255,180,84,.08)}
.chip.blue{border-color:rgba(55,178,255,.3);color:var(--edge-2);background:rgba(55,178,255,.08)}
.chip.off{border-color:var(--line-2);color:var(--fg-3);background:rgba(255,255,255,.03)}
.chip.red{border-color:rgba(255,107,107,.3);color:var(--hot);background:rgba(255,107,107,.08)}
.pill{font-family:var(--mono);font-size:11.5px;padding:3px 9px;border-radius:99px;border:1px solid rgba(95,227,192,.28);color:var(--edge);background:rgba(95,227,192,.08);white-space:nowrap}
.pill.docket{border-color:rgba(255,180,84,.3);color:var(--warn);background:rgba(255,180,84,.08)}
.pill.rulings{border-color:rgba(55,178,255,.3);color:var(--edge-2);background:rgba(55,178,255,.08)}

/* ---------- dossier mock ---------- */
.dossier{
  margin-top:44px;border:1px solid var(--line);border-radius:18px;overflow:hidden;
  background:linear-gradient(180deg,var(--ink-2),#090C11);
  box-shadow:0 60px 120px -60px rgba(0,0,0,.9),inset 0 0 0 1px rgba(255,255,255,.02);
}
.dossier .chrome{display:flex;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.02)}
.dot{width:9px;height:9px;border-radius:50%;background:#2A323D;flex:none}
.chrome .path{margin-left:12px;font-family:var(--mono);font-size:11.5px;color:var(--fg-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dossier .body{display:grid;grid-template-columns:1.15fr 1fr}
.dossier .left{padding:clamp(22px,3vw,36px);border-right:1px solid var(--line)}
.dossier .right{padding:clamp(22px,3vw,36px);background:rgba(255,255,255,.012)}
.who{display:flex;gap:16px;align-items:center}
.avatar{
  width:56px;height:56px;border-radius:12px;flex:none;display:grid;place-items:center;
  font-family:var(--serif);font-size:19px;color:#04110D;background:linear-gradient(140deg,var(--edge),#2FD3E0);
}
.who b{font-family:var(--serif);font-weight:500;font-size:21px;display:block}
.gauge{margin:26px 0 8px}
.gauge .track{height:6px;border-radius:99px;background:linear-gradient(90deg,#1E6F5C,#C58A2E,#B5443F);position:relative}
.gauge .pin{position:absolute;top:-6px;right:6%;width:2px;height:18px;background:#fff;border-radius:2px;box-shadow:0 0 14px rgba(255,255,255,.8)}
.gauge .labels{display:flex;justify-content:space-between;margin-top:9px;font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--fg-3)}
.finding{border-top:1px solid var(--line);padding:18px 0;display:flex;gap:14px}
.tag{
  font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;padding:4px 8px;border-radius:6px;flex:none;height:fit-content;
  background:rgba(95,227,192,.1);color:var(--edge);border:1px solid rgba(95,227,192,.25);
}
.tag.ex{background:rgba(255,107,107,.1);color:var(--hot);border-color:rgba(255,107,107,.28)}
.finding p{font-size:15.5px}
.finding .rec{margin-top:7px;font-size:14px;color:var(--fg-2)}
.finding .rec b{color:var(--fg);font-weight:500}
.src{font-family:var(--mono);font-size:11px;color:var(--edge-2);border-bottom:1px dashed rgba(55,178,255,.4);margin-top:9px;display:inline-block;
  /* A standalone source link is an action, not prose: padding gives it a real
     tap target without disturbing the surrounding text block. A fractional
     line box left it at 43.81px, so set the floor explicitly. */
  padding:13px 0 12px;min-height:44px;box-sizing:border-box}
.cross h4{font-family:var(--mono);font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--fg-3);margin-bottom:18px;font-weight:500}
.q{border-left:2px solid var(--edge);padding:2px 0 2px 16px;margin-bottom:18px;font-size:15.5px}
.q span{display:block;font-family:var(--mono);font-size:10.5px;color:var(--fg-3);margin-bottom:5px}

/* ---------- feature rows ---------- */
.feat{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:var(--line);border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:44px}
.feat article{background:var(--ink);padding:38px clamp(18px,3vw,40px);position:relative;overflow:hidden}
.feat article::before{content:"";position:absolute;left:0;top:0;height:2px;width:0;background:var(--edge);transition:width .5s ease}
.feat article:hover::before{width:100%}
.feat .n{font-family:var(--mono);font-size:11px;color:var(--fg-3);letter-spacing:.2em;margin-bottom:22px;display:block}
.feat h3{margin-bottom:12px}

/* ---------- steps ---------- */
.steps{display:grid;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;margin-top:44px}
.step{background:var(--ink-2);padding:28px clamp(20px,3vw,36px);display:grid;grid-template-columns:64px 1fr;gap:22px;align-items:start;transition:background .3s}
.step:hover{background:var(--ink-3)}
.step .num{font-family:var(--mono);font-size:12px;color:var(--edge);border:1px solid rgba(95,227,192,.3);border-radius:8px;width:44px;height:44px;display:grid;place-items:center;flex:none}
.step h3{margin-bottom:8px}

/* ---------- tables ---------- */
.tablewrap{margin-top:40px;border:1px solid var(--line);border-radius:var(--r);overflow:auto;-webkit-overflow-scrolling:touch}
table{width:100%;border-collapse:collapse;font-size:14.8px}
/* A wide table needs a horizontal scroll container between 600px (where it
   restacks into cards) and its 880px natural width. Without one it pushed the
   whole document sideways at tablet size. Giving the table itself a scroll
   parent via display:block is not possible, so cap it and let .tablewrap
   scroll; a table that is NOT wrapped still cannot exceed the viewport. */
table.wide{min-width:880px;max-width:100%}
.tablewrap{max-width:100%}
th,td{padding:15px 18px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
thead th{
  /* top:0 pins the header under the 75px FIXED site header, where it is
     invisible but still occupying the viewport. Pin below it instead. */
  position:sticky;top:75px;z-index:2;background:#0A0E14;font-family:var(--mono);font-size:11px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--fg-2);font-weight:500;
}
thead th:first-child{color:var(--fg-3)}
thead th.us{color:var(--edge)}
tbody th{font-weight:400;color:var(--fg-3);font-family:var(--sans);font-size:14px;width:210px}
tbody tr{transition:background .2s}
tbody tr:hover td,tbody tr:hover th{background:rgba(255,255,255,.018)}
td{color:var(--fg-2)}
td.us{background:rgba(95,227,192,.045);color:var(--fg);border-left:1px solid rgba(95,227,192,.18);border-right:1px solid rgba(95,227,192,.18)}
tbody tr:hover td.us{background:rgba(95,227,192,.075)}
tbody tr:last-child td,tbody tr:last-child th{border-bottom:0}
td .mdlid{font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;color:var(--fg-3);display:block;text-transform:uppercase}
td .mdlname{font-family:var(--serif);font-size:18px;color:var(--fg);display:block;margin-top:4px;line-height:1.2}
td.num{font-family:var(--mono);color:var(--fg);white-space:nowrap}
td .court{white-space:nowrap}
td .pts{font-family:var(--mono);color:var(--edge);font-size:16px}

/* ---------- MDL cards ---------- */
.mdls{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px;margin-top:40px}
.mdl{border:1px solid var(--line);border-radius:12px;padding:22px;background:var(--ink-2);transition:transform .25s ease,border-color .25s,background .25s}
.mdl:hover{transform:translateY(-3px);border-color:var(--line-2);background:var(--ink-3)}
.mdl .id{font-family:var(--mono);font-size:10.5px;letter-spacing:.18em;color:var(--fg-3);text-transform:uppercase}
.mdl b{font-family:var(--serif);font-size:20px;font-weight:500;display:block;margin:8px 0 10px}
.mdl .court{font-size:13.5px;color:var(--fg-2);min-height:40px}
.mdl .row{display:flex;justify-content:space-between;align-items:center;margin-top:16px;padding-top:14px;border-top:1px solid var(--line);font-family:var(--mono);font-size:11.5px}
.mdl .pending{color:var(--fg)}

/* ---------- case studies ---------- */
.case{border:1px solid var(--line);border-radius:18px;background:var(--ink-2);overflow:hidden;margin-top:26px}
.case .head{padding:clamp(24px,3vw,36px);border-bottom:1px solid var(--line);background:rgba(255,255,255,.015)}
.case .head h3{font-size:clamp(22px,2.6vw,31px);margin-bottom:10px}
.case .venue{font-family:var(--mono);font-size:11.5px;letter-spacing:.1em;color:var(--fg-3);text-transform:uppercase}
.case .facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(255px,1fr));gap:1px;background:var(--line)}
.case .facts>div{background:var(--ink-2);padding:24px clamp(20px,2.4vw,30px)}
.case .facts h5{margin:0 0 9px;font-family:var(--mono);font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--edge);font-weight:500}
.case .facts p{font-size:15px;color:var(--fg-2)}
.case .takeaway{padding:clamp(22px,2.6vw,32px);border-top:1px solid var(--line);background:rgba(95,227,192,.045);display:flex;gap:16px;align-items:flex-start}
.case .takeaway .k{font-family:var(--mono);font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--edge);flex:none;padding-top:4px}
.case .takeaway p{font-family:var(--serif);font-size:clamp(17px,1.7vw,20px);line-height:1.5}
.case .sources{padding:18px clamp(20px,2.4vw,32px);border-top:1px solid var(--line);background:var(--ink-4)}

/* ---------- won't do list ---------- */
.wontdo{margin-top:36px;display:grid;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.wontdo li{background:var(--ink-2);padding:20px 26px;display:flex;gap:16px;align-items:flex-start;font-size:16px;color:var(--fg-2)}
.wontdo li::before{content:"✕";font-family:var(--mono);color:var(--hot);font-size:13px;flex:none;padding-top:3px}

/* ---------- pricing ---------- */
.tiers{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:44px}
.tier{border:1px solid var(--line);border-radius:18px;padding:32px 28px;background:var(--ink-2);display:flex;flex-direction:column;transition:transform .25s,border-color .25s}
.tier:hover{transform:translateY(-4px);border-color:var(--line-2)}
.tier.hi{border-color:rgba(95,227,192,.38);background:linear-gradient(180deg,rgba(95,227,192,.07),var(--ink-2) 55%);box-shadow:0 40px 90px -50px rgba(95,227,192,.35)}
.tier .name{font-family:var(--mono);font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--edge)}
.tier .price{font-family:var(--serif);font-size:clamp(32px,3.6vw,44px);font-weight:500;margin:16px 0 4px;letter-spacing:-.03em}
.tier .per{font-family:var(--mono);font-size:11.5px;color:var(--fg-3);letter-spacing:.06em}
.tier ul{margin:24px 0 0;display:grid;gap:12px}
.tier li{font-size:15px;color:var(--fg-2);display:flex;gap:11px;align-items:flex-start;line-height:1.5}
.tier li::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--edge);flex:none;margin-top:8px}
.tier li.best{margin-top:6px;padding-top:14px;border-top:1px solid var(--line);color:var(--fg);font-family:var(--serif);font-size:16px}
.tier li.best::before{display:none}
.tierwide{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:16px}
.tierwide .tier{flex-direction:row;gap:26px;align-items:flex-start;flex-wrap:wrap}
.tierwide .tier>div:first-child{min-width:190px}
.tierwide .price{font-size:clamp(23px,2.2vw,27px);margin:10px 0 0}

/* ---------- CTA ---------- */
.cta{position:relative;overflow:hidden;border-top:1px solid var(--line)}
.cta canvas{position:absolute;inset:0;width:100%;height:100%;opacity:.5}
.cta .wrap{position:relative;z-index:2;text-align:center}
.cta h2{max-width:20ch;margin:20px auto}
.cta .lede{margin:0 auto}

/* ---------- footer ---------- */
footer{border-top:1px solid var(--line);padding:56px 0 40px;background:var(--ink-4)}
.fgrid{display:grid;grid-template-columns:1.3fr repeat(3,1fr);gap:36px}
.fnav{display:flex;flex-direction:column;font-size:14.5px;color:var(--fg-2)}
/* Footer links were 23px tall with no padding and stacked directly on each
   other: below the 44px target rule and easy to mis-tap on a phone. Make the
   link itself the target rather than relying on gap between them. */
.fnav a{display:flex;align-items:center;min-height:44px;padding:2px 0}
.fnav b{font-family:var(--mono);font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--fg-3);font-weight:500;margin-bottom:5px;min-height:0}
.fnav a:hover{color:var(--edge)}
.disclaimer{margin-top:44px;padding-top:22px;border-top:1px solid var(--line);font-size:13px;color:var(--fg-3);max-width:92ch;line-height:1.75}

/* ---------- reveal ---------- */
.rv{opacity:0;transform:translateY(20px);transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1)}
.rv.in{opacity:1;transform:none}

/* ---------- responsive ---------- */

/* ================= EXPERT DIRECTORY =================
   Layout follows the site's editorial system: eyebrow + serif headline +
   lede, generous section rhythm, one accent colour. Density is handled by a
   sticky filter rail and uniform snapshot cards, not by shrinking type. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* --- search hero --- */
.dir-search{margin-top:34px;max-width:760px}
.dir-search .field{position:relative;display:flex;align-items:center}
.dir-search svg{position:absolute;left:20px;width:18px;height:18px;opacity:.45;pointer-events:none}
.dir-search input{
  width:100%;padding:20px 20px 20px 54px;
  background:rgba(255,255,255,.03);border:1px solid var(--line);border-radius:14px;
  color:var(--fg);font-family:var(--sans);font-size:17px;letter-spacing:-.01em;
  transition:border-color .2s,background .2s,box-shadow .2s}
.dir-search input::placeholder{color:var(--fg-3)}
.dir-search input:focus{outline:none;border-color:var(--accent);
  background:rgba(255,255,255,.05);box-shadow:0 0 0 4px rgba(95,227,192,.10)}
.dir-hint{margin-top:12px;font-family:var(--mono);font-size:11px;letter-spacing:.1em;
  text-transform:uppercase;color:var(--fg-3)}

/* --- two-column shell: sticky filter rail + results --- */
/* The directory is a data grid, not prose: it can use more width than the
   1240px text measure without hurting readability. Widening only this section
   (not --max, which sets line length site-wide) gives the grid a third column
   instead of leaving a third of a desktop viewport empty. */
.dirwrap{max-width:1500px}
.dir-shell{display:grid;grid-template-columns:248px 1fr;gap:40px;margin-top:52px;align-items:start}
.dir-rail{position:sticky;top:96px;display:flex;flex-direction:column;gap:26px}
/* The litigation list grows with the corpus; cap it so the rail stays usable. */

/* --- results header --- */
.dir-bar{display:flex;align-items:baseline;justify-content:space-between;gap:18px;
  padding-bottom:18px;margin-bottom:26px;border-bottom:1px solid var(--line)}
.dir-count{font-family:var(--mono);font-size:11.5px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--fg-3)}
.dir-count b{color:var(--fg);font-weight:500}
.dir-sort{background:rgba(255,255,255,.03);border:1px solid var(--line);border-radius:8px;
  color:var(--fg-2);font-family:var(--sans);font-size:13px;padding:8px 12px;cursor:pointer;
  /* A real control, so it gets a real target height like the other filters. */
  min-height:44px}
.dir-sort:focus{outline:none;border-color:var(--accent)}

/* --- snapshot grid --- */
/* Any rule that sets `display` outranks the browser's [hidden]{display:none},
   so filtering silently stopped hiding cards. Keep this ABOVE the components
   that set display, and keep the !important: it is load-bearing. */
[hidden]{display:none!important}
/* minmax(310px) yields only two columns in the 1240px shell, wasting a third
   of a desktop viewport on gutters while the reader scrolls 26,000px. 280px
   fits three columns above ~1100px and still holds a name plus three stats. */
.xgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}
.xcard{
  /* Clears the fixed 75px header when a card is focused or scrolled to. */
  scroll-margin-top:96px;
  display:flex;flex-direction:column;gap:14px;padding:24px;
  background:rgba(255,255,255,.02);border:1px solid var(--line);border-radius:14px;
  text-align:left;cursor:pointer;color:inherit;font:inherit;
  transition:border-color .18s,background .18s,transform .18s}
.xcard:hover{border-color:rgba(95,227,192,.34);background:rgba(255,255,255,.045);transform:translateY(-2px)}
.xcard:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.xtop{display:flex;align-items:flex-start;gap:14px}
.xav{width:46px;height:46px;flex:none;border-radius:11px;display:grid;place-items:center;
  background:linear-gradient(135deg,rgba(95,227,192,.20),rgba(55,178,255,.14));
  border:1px solid rgba(95,227,192,.25);
  font-family:var(--mono);font-size:14px;letter-spacing:.04em;color:var(--accent)}
.xname{font-family:var(--serif);font-size:19px;font-weight:500;letter-spacing:-.01em;line-height:1.25}
.xaffil{margin-top:4px;font-size:12.5px;color:var(--fg-3);line-height:1.4}
/* "Affiliation not established" is an absence, not a claim: it must not read
   with the same weight as a sourced institution. */
.xaffil.none{color:var(--fg-4,#5a6472);font-style:italic;opacity:.75}
/* The affiliation is the one on the expert's PUBLICATIONS, not a payroll fact.
   A tooltip alone is invisible on touch, so the basis carries a visible mark. */
.xaffil-b{
  margin-left:6px;padding:1px 4px;border:1px solid var(--line);border-radius:4px;
  font-family:var(--mono);font-size:9px;letter-spacing:.08em;text-transform:uppercase;
  color:var(--fg-4,#5a6472);vertical-align:1px;
  /* Keep the badge on the same line as the last word of the affiliation.
     A wrapped affiliation otherwise drops the badge alone onto a new line,
     where it reads as an orphaned fragment rather than a qualifier. */
  white-space:nowrap;
}
.xtags{display:flex;flex-wrap:wrap;gap:6px}
/* A .xtag is decorative on a card, but on the homepage it is a LINK to a
   filtered view. When it is clickable it must meet the 44px rule; when it is
   a plain label it should stay compact. Style by role, not by class alone. */
.xtag{font-family:var(--mono);font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;
  padding:4px 9px;border-radius:999px;border:1px solid var(--line);color:var(--fg-3)}
/* inline-flex collapses the whitespace between the label and the count
   ("MEDICINE & LIFE SCIENCE30"), so restore the gap explicitly. */
a.xtag{display:inline-flex;align-items:center;gap:.45em;min-height:44px;padding:4px 14px}
.xstats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;
  padding-top:14px;border-top:1px solid var(--line);margin-top:auto}
.xstat b{display:block;font-family:var(--serif);font-size:19px;font-weight:500;line-height:1}
.xstat span{display:block;margin-top:5px;font-family:var(--mono);font-size:9px;
  letter-spacing:.14em;text-transform:uppercase;color:var(--fg-3)}
/* Colour must track meaning, not the label. "0 excluded" is a GOOD record for
   an expert, so painting it red inverts the message. Only a real exclusion
   count gets the warning colour; zero is neutral. Driven by data-v, which the
   renderer sets to the actual number. */
.xstat b{color:var(--fg)}
.xstat.ex b{color:var(--hot)}
.xstat.ad b{color:var(--ok)}
.xstat.ex b[data-v="0"],
.xstat.ad b[data-v="0"]{color:var(--fg-3)}
.xopen{font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--accent);display:flex;align-items:center;gap:7px}

.dir-empty{padding:64px 24px;text-align:center;border:1px dashed var(--line);border-radius:14px}
/* "Show more" pages the PAINT, not the result set: the count above always
   reports how many experts match. */
.dir-more-wrap{display:flex;justify-content:center;margin-top:28px}
.dir-more{
  min-height:44px;padding:12px 26px;cursor:pointer;
  background:rgba(255,255,255,.03);border:1px solid var(--line);border-radius:999px;
  color:var(--fg);font:inherit;font-family:var(--mono);font-size:11px;
  letter-spacing:.14em;text-transform:uppercase;
  transition:border-color .18s,background .18s}
.dir-more:hover{border-color:var(--edge);background:rgba(255,255,255,.06)}
.dir-empty b{display:block;font-family:var(--serif);font-size:21px;margin-bottom:8px}

/* --- dossier drawer --- */
/* Show on either signal. The JS sets both, but relying on a single mechanism
   is how the drawer silently stopped opening: display:none won over a cleared
   hidden attribute and every card click looked like a dead button. */
.dsheet{position:fixed;inset:0;z-index:120;display:none}
.dsheet[open],.dsheet.on,
.dsheet:not([hidden]){display:block}
.dsheet-bg{position:absolute;inset:0;background:rgba(3,5,8,.82);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.dsheet-panel{
  position:absolute;top:0;right:0;height:100%;width:min(760px,100%);
  background:var(--ink-2,#0B0E13);border-left:1px solid var(--line);
  overflow-y:auto;overscroll-behavior:contain;
  animation:slidein .28s cubic-bezier(.22,1,.36,1)}
@keyframes slidein{from{transform:translateX(26px);opacity:0}to{transform:none;opacity:1}}
.dsheet-close{margin-left:auto;flex:none;width:44px;height:44px;border-radius:9px;
  background:rgba(255,255,255,.04);border:1px solid var(--line);color:var(--fg-2);
  font-size:17px;line-height:1;cursor:pointer}
.dsheet-close:hover{color:var(--fg);border-color:var(--accent)}
.dstats{display:grid;grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:14px}
.dstat{padding:14px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.02)}
.dstat b{display:block;font-family:var(--serif);font-size:23px;font-weight:500;line-height:1}
/* Same value-driven semantics as the snapshot cards. */
.dstat.ex b{color:var(--hot)}
.dstat.ad b{color:var(--ok)}
.dstat.ex b[data-v="0"],
.dstat.ad b[data-v="0"]{color:var(--fg-3)}
.dstat span{display:block;margin-top:6px;font-family:var(--mono);font-size:9px;
  letter-spacing:.13em;text-transform:uppercase;color:var(--fg-3)}
.dlist{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:9px}
.dlist a{color:var(--fg-2);font-size:13.5px;text-decoration:none;border-bottom:1px solid transparent}
.dlist a:hover{color:var(--accent);border-bottom-color:rgba(95,227,192,.4)}
.dlist .yr{font-family:var(--mono);font-size:10.5px;color:var(--fg-3);margin-left:8px}
.dlinks{display:flex;flex-wrap:wrap;gap:9px}
.dlink{display:inline-flex;align-items:center;gap:7px;padding:9px 13px;border-radius:9px;
  border:1px solid var(--line);background:rgba(255,255,255,.03);
  color:var(--fg-2);font-size:12.5px;text-decoration:none;transition:border-color .16s,color .16s}
.dlink:hover{color:var(--accent);border-color:rgba(95,227,192,.34)}
.dlink i{font-style:normal;font-family:var(--mono);font-size:8.5px;letter-spacing:.12em;
  text-transform:uppercase;color:var(--fg-3);border:1px solid var(--line);
  padding:2px 5px;border-radius:4px}
.dbanner{padding:13px 15px;border-radius:10px;font-size:12.5px;line-height:1.6;
  border:1px solid rgba(255,207,138,.28);background:rgba(255,207,138,.07);color:#ffcf8a}

@media (max-width:1080px){
  nav.links{gap:0;font-size:14px;--navpad:9px}
}
@media (max-width:980px){
  .xgrid{grid-template-columns:1fr}
  .dossier .body{grid-template-columns:1fr}
  .dossier .left{border-right:0;border-bottom:1px solid var(--line)}
  .three{grid-template-columns:1fr}
  .feat{grid-template-columns:1fr}
  .tiers{grid-template-columns:1fr}
  .tierwide{grid-template-columns:1fr}
  .fgrid{grid-template-columns:1fr 1fr}
}
/* The full nav needs ~1240px beside the Uncommon Context wordmark; collapse to
   the menu button before anything overflows. */
@media (max-width:980px){
  nav.links{display:none}
  .menu-btn{display:flex}
  header.open nav.links{
    display:flex;position:absolute;top:74px;left:0;right:0;flex-direction:column;gap:0;
    background:#07090D;border-bottom:1px solid var(--line);padding:8px var(--pad) 22px;
  }
  header.open nav.links a{padding:13px 0;border-bottom:1px solid var(--line)}
    nav.links a::after{display:none}
  header .bar>.btn{margin-left:auto}
}
@media (max-width:980px){
  header .bar>.btn{display:none}
}
@media (max-width:600px){
  body{font-size:16px}
  .hero-meta{gap:20px}
  .fgrid{grid-template-columns:1fr}
  .step{grid-template-columns:1fr;gap:12px}
  .case .takeaway{flex-direction:column;gap:10px}

  /* Long words and URLs must not force a horizontal scroll of the page */
  h1,h2,h3,h4,p,li,td,th{overflow-wrap:break-word}
  h1{font-size:clamp(30px,8.4vw,40px);line-height:1.12;letter-spacing:-.02em}
  h2{font-size:clamp(24px,6.6vw,31px);line-height:1.18}
  .lede{font-size:17px;line-height:1.62}

  /* Hero stats: 2 up instead of a cramped 4-across row */
  .hero-meta{display:grid;grid-template-columns:1fr 1fr;gap:18px 16px}
  .hero-meta div{min-width:0}

  /* WIDE TABLES BECOME CARDS.
     A 4-6 column comparison table is unreadable at 380px even with scroll, so
     each row is restacked as a labelled block using the data-label attribute
     that render_site.py / the page markup provides. */
  table.wide{border:0}
  table.wide thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  table.wide tr{display:block;padding:16px 0;border-bottom:1px solid var(--line)}
  table.wide tr:last-child{border-bottom:0}
  table.wide td,table.wide th{display:block;width:auto;padding:5px 0;border:0;text-align:left}
  /* In card mode there are no columns, so a sticky column header is both
     meaningless and a 153px viewport thief. */
  table.wide thead th{position:static;top:auto}
  table.wide td[data-label]::before,table.wide th[data-label]::before{
    content:attr(data-label);display:block;font-family:var(--mono);font-size:10px;
    letter-spacing:.08em;text-transform:uppercase;color:var(--fg-3);margin-bottom:3px}
  .tablewrap{overflow:visible;border:1px solid var(--line)}
  /* Do NOT scope the min-width reset to .tablewrap: designations.html had a
     wide table sitting directly in .wrap, so the child selector never applied
     and an 880px table forced the whole page to scroll sideways at 390px.
     The reset must follow the table, not its parent. */
  table.wide{min-width:0;max-width:100%}

  /* Filters: full-width search, comfortable tap targets */
  .xfilter{padding:16px;gap:14px}
  .fbtn{font-size:12px;padding:10px 13px}
  .xp{padding:19px}
  .xp-head h3{font-size:19px}
  .xdet>summary{min-height:44px;font-size:11px}
  .wlist li{font-size:12.5px;overflow-wrap:break-word;word-break:break-word}
  .xp-cred,.xp-note{overflow-wrap:break-word}
  .xp-anchor{font-size:11.5px}

  /* Nothing should ever overflow the viewport sideways */
  .wrap{padding-left:18px;padding-right:18px}
  pre,code{overflow-x:auto;max-width:100%}
}
@media (max-width:420px){
  .hero-meta{grid-template-columns:1fr}
  
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
  .rv{opacity:1;transform:none}
  html{scroll-behavior:auto}
}

/* ---------- dossier: finding first, then evidence, then limits ---------- */
/* A dossier opens with a sentence, not a number. The verdict box states what
   the record means; everything below it is the support for that sentence. */
.dverdict-box{padding:18px 20px;border-radius:12px;margin-bottom:8px;
  border:1px solid var(--line);background:var(--ink-3)}
.dverdict-box p{margin:0;font-family:var(--serif);font-size:19px;line-height:1.45;color:var(--fg)}
.dverdict-box.ex{border-color:rgba(255,138,138,.42);background:rgba(255,138,138,.07)}
.dverdict-box.ad{border-color:rgba(95,227,192,.42);background:rgba(95,227,192,.07)}
.dverdict-box.mixed{border-color:rgba(255,192,107,.42);background:rgba(255,192,107,.07)}
.dverdict-box.none{border-color:var(--line-2)}


/* What the record establishes: fact, value, and how firmly it is held. */
.dbasis{margin:0;display:flex;flex-direction:column;gap:1px;
  border:1px solid var(--line);border-radius:10px;overflow:hidden}
.dbasis > div{display:grid;grid-template-columns:150px 1fr;gap:14px;
  padding:12px 16px;background:var(--ink-2)}
.dbasis dt{font-family:var(--mono);font-size:10px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--fg-3);padding-top:3px}
.dbasis dd{margin:0;display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  font-size:14.5px;color:var(--fg)}
.dconf{font-family:var(--mono);font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;
  padding:3px 8px;border-radius:999px;border:1px solid var(--line-2);color:var(--fg-3)}
.dconf.confirmed{color:var(--ok);border-color:rgba(95,227,192,.4)}
.dconf.corroborated{color:var(--ok);border-color:rgba(95,227,192,.4)}
.dconf.matchedbyname{color:var(--warn);border-color:rgba(255,192,107,.4)}
.dconf.withheld,.dconf.notfound{color:var(--fg-3)}

/* Each appearance reads as an exhibit: what happened, then the court's words. */
blockquote.dquote{margin:12px 0 0;padding:14px 16px;border-left:2px solid var(--accent);
  background:rgba(255,255,255,.03);border-radius:0 8px 8px 0;
  font-family:var(--serif);font-size:15.5px;line-height:1.6;color:var(--fg)}
blockquote.dquote cite a{color:var(--accent)}

/* Limits are part of the finding, not a footnote. */

@media (max-width:600px){
  .dbasis > div{grid-template-columns:1fr;gap:5px}
  .dverdict-box p{font-size:17px}
}

/* ---------- designation analysis ---------- */
.dggroup{margin-top:46px}
.dghead{max-width:70ch;margin-bottom:22px}
.dghead h3{font-family:var(--serif);font-size:26px;font-weight:500;margin:0 0 8px;
  display:flex;align-items:center;gap:12px}
.dgn{font-family:var(--mono);font-size:12px;letter-spacing:.1em;color:var(--fg-3);
  border:1px solid var(--line-2);border-radius:999px;padding:3px 10px}
.dgblurb{margin:0;font-size:14.5px;line-height:1.65;color:var(--fg-2)}
.dggrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:18px}
.dgcard{display:flex;flex-direction:column;gap:12px;padding:22px;
  background:var(--ink-2);border:1px solid var(--line);border-radius:14px}
.dgtop{display:flex;align-items:flex-start;gap:13px}
.dgname{margin:0;font-family:var(--serif);font-size:18px;color:var(--fg)}
.dgcred{margin:3px 0 0;font-family:var(--mono);font-size:10px;letter-spacing:.1em;
  text-transform:uppercase;color:var(--fg-3)}
.dgconf{margin-left:auto;flex:none;font-family:var(--mono);font-size:9px;letter-spacing:.11em;
  text-transform:uppercase;padding:5px 9px;border-radius:999px;
  border:1px solid var(--line);color:var(--fg-3);white-space:nowrap}
.dgconf.identified{color:var(--ok);border-color:rgba(95,227,192,.42);background:rgba(95,227,192,.09)}
.dgconf.candidate_only{color:var(--warn);border-color:rgba(255,192,107,.42);background:rgba(255,192,107,.08)}
.dgtopics{margin:0;font-size:13.5px;line-height:1.6;color:var(--fg-2)}
.dgtopics b{color:var(--fg-3);font-family:var(--mono);font-size:10px;letter-spacing:.11em;
  text-transform:uppercase;font-weight:400;display:block;margin-bottom:4px}
.dgwhy{margin:0;font-size:13.5px;line-height:1.62;color:var(--fg);
  padding:12px 14px;background:rgba(255,255,255,.03);border-radius:9px;
  border-left:2px solid var(--line-2)}
.dgev{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px}
.dgev li{font-size:13px;line-height:1.55;color:var(--fg-2);
  padding-top:9px;border-top:1px solid var(--line)}
.dgev a{color:var(--accent);text-decoration:none}
.dgev a:hover{text-decoration:underline}
.dgev .tiny{font-family:var(--mono);font-size:10px;letter-spacing:.06em;color:var(--fg-3)}
.dgev .tiny.warn{color:var(--warn)}

@media (max-width:700px){
  .dggrid{grid-template-columns:1fr}
  .dgconf{margin-left:0}
  .dgtop{flex-wrap:wrap}
}

/* ---------- directory responsive ---------- */
@media (max-width:1080px){
  .dir-shell{grid-template-columns:210px 1fr;gap:28px}
  .xgrid{grid-template-columns:repeat(auto-fill,minmax(270px,1fr))}
}

@media (max-width:600px){
  .xgrid{grid-template-columns:1fr;gap:14px}
  .dir-search input{padding:17px 16px 17px 48px;font-size:16px}
  .dir-search svg{left:17px}
  .dir-bar{flex-direction:column;align-items:flex-start;gap:12px}
  .dstats{grid-template-columns:repeat(2,1fr)}
  .dcase-top{flex-direction:column;gap:9px}
  .xcard{padding:20px}
  /* comfortable tap targets on the drawer controls */
  .dsheet-close{width:44px;height:44px}
  .dlink{min-height:44px}
}
@media (max-width:420px){
  .xstats{grid-template-columns:repeat(3,1fr);gap:6px}
  .xstat b{font-size:17px}
  .dstats{grid-template-columns:1fr 1fr}
}

/* Step provenance: what the site does today vs what is being built. Marketing
   copy that describes unbuilt features as present is the same defect class as
   an unsourced finding. */
.chip.live{color:var(--ok);border-color:rgba(95,227,192,.42);background:rgba(95,227,192,.10)}
.chip.plan{color:var(--fg-3);border-color:var(--line-2);background:rgba(255,255,255,.03)}
.step h3 .chip{font-size:9px;vertical-align:middle;margin-right:8px;padding:3px 8px}

/* ---------- why / comparison ---------- */
.wgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:20px;margin-top:30px}
.wcard{padding:26px;background:var(--ink-2);border:1px solid var(--line);border-radius:14px;
  display:flex;flex-direction:column;gap:12px}
.wcard h3{margin:0;font-family:var(--serif);font-size:20px;font-weight:500;line-height:1.3}
.wcard .muted{margin:0;font-size:14px;line-height:1.66;color:var(--fg-2)}
.wproof{margin:0;padding-top:13px;border-top:1px solid var(--line);
  font-family:var(--mono);font-size:11px;letter-spacing:.04em;line-height:1.6;color:var(--accent)}
.wproof a{color:var(--accent);text-decoration:none}
.wproof a:hover{text-decoration:underline}

.rivalname a{display:inline-flex;align-items:center;min-height:44px}
.rivals{margin-top:30px;border-top:1px solid var(--line)}
.rivalrow{display:grid;grid-template-columns:1fr 1.5fr 1.5fr;gap:26px;
  padding:24px 0;border-bottom:1px solid var(--line);align-items:start}
.rivalname b{display:block;font-family:var(--serif);font-size:18px;color:var(--fg);margin-bottom:7px}
.rivalname a{font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;
  color:var(--fg-3);text-decoration:none}
.rivalname a:hover{color:var(--accent)}
.rlabel{display:block;font-family:var(--mono);font-size:9.5px;letter-spacing:.13em;
  text-transform:uppercase;color:var(--fg-3);margin-bottom:7px}
.rivalcell p{margin:0;font-size:14px;line-height:1.66;color:var(--fg-2)}

.wnote{margin-top:34px;padding:26px 28px;border-radius:14px;
  background:rgba(95,227,192,.06);border:1px solid rgba(95,227,192,.26)}
.wnote b{display:block;font-family:var(--serif);font-size:19px;color:var(--fg);margin-bottom:9px}
.wnote p{margin:0;font-size:14.5px;line-height:1.68;color:var(--fg-2)}

@media (max-width:760px){
  .rivalrow{grid-template-columns:1fr;gap:14px;padding:22px 0}
  .wgrid{grid-template-columns:1fr}
}

/* ---------- dossier: court reasoning ---------- */
.dquote.disp{border-left-color:var(--accent);background:rgba(95,227,192,.06)}

.dfunds{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:9px}

/* Registry identity rows: each line is an issued record with a live link, so
   the type stays quiet and the issuer is what the eye lands on. */
.dident{list-style:none;margin:.2rem 0 0;padding:0;display:grid;gap:.5rem}
.dident li{display:block;padding:.6rem .75rem;border:1px solid var(--line);
  border-radius:8px;background:rgba(255,255,255,.02);font-size:.9rem;
  line-height:1.5}
.dident li b{color:var(--ink)}
.dident li a{color:var(--accent);text-decoration:none;white-space:nowrap}
.dident li a:hover{text-decoration:underline}

/* Industry payments. Money is the point, so the total leads; payers are a
   quiet ledger underneath. */
.dpay-sum{margin:0 0 .5rem;font-size:1rem}
.dpay-sum b{font-family:var(--mono,ui-monospace,monospace);color:var(--ink);
  font-size:1.15rem}
.dpay .dfunds li{display:flex;justify-content:space-between;gap:1rem;
  align-items:baseline}
.dpay .dfunds li b{font-family:var(--mono,ui-monospace,monospace);
  white-space:nowrap}

.dfunds li{font-size:13px;line-height:1.5;color:var(--fg-2);padding-top:9px;border-top:1px solid var(--line)}
.dfunds li span{display:block;font-family:var(--mono);font-size:10px;letter-spacing:.06em;color:var(--accent);margin-bottom:3px}
.dfunds a{color:var(--fg);text-decoration:none}
.dfunds a:hover{color:var(--accent);text-decoration:underline}


/* ==========================================================================
   DOSSIER  —  the expert detail drawer
   --------------------------------------------------------------------------
   Design brief, from the problems it fixes:
     * too much blank space   -> tighter vertical rhythm, two-column fact grid
     * text too dark          -> body copy moves to --fg / --fg-2, never --fg-3
     * weak headers           -> numbered serif section titles with a rule
     * citations floating     -> every quote ends with an inline, linked cite
   Body copy here is 15px/1.62 on #F2F5F9 (17:1 contrast). --fg-3 is reserved
   for labels and microtype ONLY, never for a sentence the reader must read.
   ========================================================================== */

.dsheet-head{
  position:sticky;top:0;z-index:3;display:flex;align-items:flex-start;gap:15px;
  padding:22px 30px 18px;background:rgba(14,19,25,.94);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line-2);
}
.dsheet-head .xav{flex:0 0 auto}
.dsheet-head > div{min-width:0;flex:1}
#sheet-name{font-family:var(--serif);font-size:25px;font-weight:500;line-height:1.14;
  letter-spacing:-.01em;color:var(--fg);margin:0}
#sheet-sub{margin:5px 0 0;font-size:12.5px;line-height:1.45;color:var(--fg-2)}
.dsheet-body{padding:28px 30px 56px}

/* ---- section ---- */
.dsec{margin:0 0 30px;padding:0 0 26px;border-bottom:1px solid var(--line)}
.dsec:last-child{border-bottom:0;padding-bottom:8px;margin-bottom:0}
.dsec > h4{
  display:flex;align-items:baseline;gap:10px;
  font-family:var(--serif);font-size:17px;font-weight:500;letter-spacing:-.005em;
  text-transform:none;color:var(--fg);margin:0 0 6px;
}
.dsec > h4::before{
  counter-increment:dsec;content:counter(dsec,decimal-leading-zero);
  font-family:var(--mono);font-size:10px;font-weight:500;letter-spacing:.1em;
  color:var(--accent);opacity:.85;flex:0 0 auto;
}
.dsheet-body{counter-reset:dsec}
.dsec-why{margin:0 0 16px 26px;font-size:13px;line-height:1.6;color:var(--fg-2);max-width:64ch}

/* ---- sub-heading inside a section ---- */
.dsub{
  font-family:var(--mono);font-size:9.5px;font-weight:500;letter-spacing:.17em;
  text-transform:uppercase;color:var(--fg-3);margin:0 0 10px;
}

/* ---- a single case ---- */
.dcase{padding:18px;margin-bottom:14px;border:1px solid var(--line);border-radius:12px;
  background:rgba(255,255,255,.018)}
.dcase:last-child{margin-bottom:0}
.dcase-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:9px}
.dcase-id{min-width:0}
.dcase-name{font-family:var(--serif);font-size:16.5px;font-weight:500;line-height:1.3;
  color:var(--fg);margin:0 0 4px}
.dcase-name a{color:inherit;text-decoration:none;border-bottom:1px solid rgba(95,227,192,.34)}
.dcase-name a:hover{color:var(--accent);border-bottom-color:var(--accent)}
.dcase-meta{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0;
  font-family:var(--mono);font-size:10.5px;letter-spacing:.04em;color:var(--fg-3)}
.dcase-meta .dot{width:3px;height:3px;border-radius:50%;background:var(--fg-3);opacity:.6}
.dcase-why{margin:0 0 12px;font-size:13.5px;line-height:1.6;color:var(--fg-2)}

/* ---- verdict pill ---- */
.dverdict{flex:0 0 auto;font-family:var(--mono);font-size:9.5px;font-weight:500;
  letter-spacing:.12em;text-transform:uppercase;padding:5px 10px;border-radius:999px;
  border:1px solid var(--line-2);color:var(--fg-2);white-space:nowrap}
.dverdict.ex{color:var(--hot);border-color:rgba(255,138,138,.42);background:rgba(255,138,138,.07)}
.dverdict.ad{color:var(--accent);border-color:rgba(95,227,192,.42);background:rgba(95,227,192,.07)}

/* ---- fact grid: two columns kill the blank gutter ---- */
.dfacts{display:grid;grid-template-columns:repeat(auto-fit,minmax(196px,1fr));
  gap:12px 20px;margin:0 0 14px;padding:13px 0 0;border-top:1px solid var(--line)}
.dfact dt{font-family:var(--mono);font-size:9px;letter-spacing:.15em;text-transform:uppercase;
  color:var(--fg-3);margin:0 0 3px}
.dfact dd{margin:0;font-size:13.5px;line-height:1.5;color:var(--fg)}

/* ---- quotations ---- */
.dquote{
  position:relative;margin:12px 0 0;padding:13px 16px 11px;
  border-left:2px solid var(--accent);border-radius:0 9px 9px 0;
  background:rgba(95,227,192,.045);
  font-size:14.5px;line-height:1.62;color:var(--fg);
}
.dquote-sm{font-size:13.5px;background:rgba(255,255,255,.028);border-left-color:rgba(95,227,192,.45)}
.dquote-disp{border-left-color:var(--warn);background:rgba(255,192,107,.055)}

/* the citation: always last, always linked, never floating */
.dcite{
  display:flex;flex-wrap:wrap;align-items:center;gap:8px;
  margin-top:10px;padding-top:9px;border-top:1px solid var(--line);
  font-family:var(--mono);font-size:9.5px;letter-spacing:.09em;text-transform:uppercase;
  font-style:normal;color:var(--fg-3);
}
.dcite-ct{color:var(--fg-3);opacity:.85}
.dcite-ct::before{content:"·";margin-right:8px;opacity:.6}
/* "Read the opinion" is a standalone action, not prose: it needs a real tap
   target. Padding rather than min-height keeps it aligned in the flex row. */
.dcite-a{display:inline-flex;align-items:center;gap:5px;margin-left:auto;
  color:var(--accent);text-decoration:none;border-bottom:1px solid transparent;
  padding:13px 0 12px}
.dcite-a:hover{border-bottom-color:var(--accent)}
.dcite-a svg{width:9px;height:9px;flex:0 0 auto}

/* ---- Rule 702 grounds ---- */
.dgrounds{margin-top:16px;padding-top:15px;border-top:1px solid var(--line)}
.dground{margin-bottom:14px}
.dground:last-child{margin-bottom:0}
.dground-t{display:inline-block;font-family:var(--mono);font-size:9.5px;font-weight:500;
  letter-spacing:.14em;text-transform:uppercase;color:var(--accent);
  padding:3px 9px;border:1px solid rgba(95,227,192,.3);border-radius:999px;
  background:rgba(95,227,192,.06);margin-bottom:2px}

/* ---- notes, banners, lists ---- */
.dnote{margin:10px 0 0;font-size:12.5px;line-height:1.6;color:var(--fg-2)}
.dnote.warn{color:#FFCF8A}
.dlimits{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:9px}
.dlimits li{font-size:13.5px;line-height:1.62;color:var(--fg-2)}
.dlimits li::marker{color:var(--fg-3)}
.dglabel{display:block;font-family:var(--mono);font-size:9.5px;letter-spacing:.15em;
  text-transform:uppercase;color:var(--fg-3);margin-bottom:9px}

@media (max-width:600px){
  .dsheet-head{padding:18px 20px 15px}
  .dsheet-body{padding:22px 20px 48px}
  #sheet-name{font-size:21px}
  .dcase{padding:15px}
  .dsec-why{margin-left:0}
  .dfacts{grid-template-columns:1fr}
  .dcite-a{margin-left:0}
}


/* ==========================================================================
   MULTI-SELECT DROPDOWN  (industry filter)
   Nine industries as toggle buttons made the rail a tall column and pushed
   the outcome/record filters below the fold. Closed, this is one line; open,
   it is a checkbox list so any combination is selectable. Tap targets are
   44px tall per row.
   ========================================================================== */




@media (max-width:900px){
}


/* ---- motions to exclude ---- */
.dmotions{margin-top:16px;padding-top:15px;border-top:1px solid var(--line)}
.dmotion{margin-bottom:12px}
.dmotion:last-child{margin-bottom:0}
.dtags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}
.dtag{
  font-family:var(--mono);font-size:9px;letter-spacing:.12em;text-transform:uppercase;
  padding:3px 8px;border-radius:999px;border:1px solid var(--line-2);
  color:var(--fg-2);background:rgba(255,255,255,.03);
}
/* Colour tracks MEANING: a granted motion to exclude is bad for the expert,
   a denied one is good. The label alone never decides the colour. */
.dtag.bad{color:var(--hot);border-color:rgba(255,138,138,.4);background:rgba(255,138,138,.07)}
.dtag.good{color:var(--accent);border-color:rgba(95,227,192,.4);background:rgba(95,227,192,.07)}


/* ---- exposure read ---- */
/* The band describes the RECORD, not our data quality: "High" means an
   opposing party has material to work with, which is a useful finding, so it
   is not styled as an error. Colour tracks that meaning. */
.dexp{padding:15px 16px;border:1px solid var(--line-2);border-radius:11px;background:rgba(255,255,255,.02)}
.dexp-top{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:11px}
.dexp-band{font-family:var(--serif);font-size:19px;font-weight:500;color:var(--fg)}
.dexp-n{font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--fg-3)}
.dexp-track{height:5px;border-radius:999px;background:rgba(255,255,255,.07);overflow:hidden}
.dexp-fill{display:block;height:100%;border-radius:999px;background:var(--fg-3);transition:width .4s ease}
.dexp.hi .dexp-fill{background:linear-gradient(90deg,#FFC06B,var(--hot))}
.dexp.hi .dexp-band{color:#FFB185}
.dexp.mid .dexp-fill{background:linear-gradient(90deg,var(--accent),#FFC06B)}
.dexp.lo .dexp-fill{background:var(--accent)}
.dexp.lo .dexp-band,.dexp.none .dexp-band{color:var(--fg)}
.dexp-sum{margin:11px 0 0;font-size:13px;line-height:1.55;color:var(--fg-2)}

/* ---- exhibits ---- */
.dexh{padding:13px 0;border-bottom:1px solid var(--line)}
.dexh:last-child{border-bottom:0;padding-bottom:0}
.dexh-top{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.dexh-id{
  font-family:var(--mono);font-size:9.5px;font-weight:500;letter-spacing:.1em;
  padding:3px 8px;border-radius:5px;color:#07090D;background:var(--fg-3);
}
.dexh.adv .dexh-id{background:var(--hot)}
.dexh-lbl{font-size:12.5px;color:var(--fg-2)}
.dexh .dquote{margin-top:9px}

/* ---- cross-examination outline ---- */
.dcx{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.dcx:last-child{border-bottom:0;padding-bottom:0}
.dcx-n{
  flex:0 0 auto;font-family:var(--mono);font-size:9.5px;letter-spacing:.08em;
  color:var(--accent);padding-top:3px;min-width:26px;
}
.dcx-b{min-width:0;flex:1}
.dcx-b p{margin:0 0 6px;font-size:14.5px;line-height:1.55;color:var(--fg)}
.dcx-x{
  font-family:var(--mono);font-size:9px;letter-spacing:.1em;text-transform:uppercase;
  padding:2px 7px;border-radius:999px;border:1px solid var(--line-2);color:var(--fg-3);
}
.dcx-x.adv{color:var(--hot);border-color:rgba(255,138,138,.4)}

@media (max-width:600px){
  .dexp-top{flex-direction:column;gap:3px}
  .dcx{gap:9px}
}


/* ==========================================================================
   FILTER RAIL  —  four identical multi-select dropdowns
   --------------------------------------------------------------------------
   Replaces a dropdown + three loose button stacks. The old rail rendered 27
   litigation buttons, making the sidebar taller than the results beside it,
   and its mobile form was overflow-x:auto, which clipped an open panel.
   Every group is now the same control; selections are echoed as removable
   chips so a closed dropdown never hides an active filter.
   ========================================================================== */
.dir-rail{position:sticky;top:96px;z-index:50;display:flex;flex-direction:column;gap:14px}
/* z-index is REQUIRED here, not decorative: position:sticky always creates a
   stacking context, so an open .msel-panel (z-index:45) is clamped to the
   rail's own level. With the rail at z-index:auto that level sat BELOW the
   dismiss backdrop (35), and the backdrop swallowed every click meant for a
   dropdown option -- the control was dead on desktop. */

.rail-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px;
  padding-bottom:11px;border-bottom:1px solid var(--line)}
.rail-title{font-family:var(--mono);font-size:10px;letter-spacing:.2em;
  text-transform:uppercase;color:var(--fg-3)}
.rail-reset{
  /* 44px tap target on touch: this is a real control, not a caption. */
  background:none;border:0;padding:4px 8px;min-height:44px;cursor:pointer;
  display:inline-flex;align-items:center;
  font:inherit;font-family:var(--mono);font-size:9.5px;letter-spacing:.1em;
  text-transform:uppercase;color:var(--fg-3);
}
.rail-reset:hover{color:var(--accent)}
.rail-reset[hidden]{display:none}

.fgroup{min-width:0}
.fglabel{display:block;margin-bottom:6px;font-family:var(--mono);font-size:9.5px;
  letter-spacing:.16em;text-transform:uppercase;color:var(--fg-3)}

/* ---- the control ---- */
.msel{position:relative;min-width:0}
.msel-btn{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  width:100%;min-height:44px;padding:10px 12px;cursor:pointer;text-align:left;
  font:inherit;font-size:13.5px;color:var(--fg);
  background:rgba(255,255,255,.03);border:1px solid var(--line-2);border-radius:10px;
  transition:border-color .16s ease,background .16s ease;
}
.msel-btn:hover{border-color:rgba(95,227,192,.38);background:rgba(255,255,255,.055)}
.msel-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.msel.open .msel-btn{border-color:var(--accent);background:rgba(95,227,192,.07)}
.msel-val{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--fg-2)}
.msel-val.on{color:var(--accent);font-weight:500}
.msel-caret{width:12px;height:12px;flex:0 0 auto;color:var(--fg-3);transition:transform .18s ease}
.msel.open .msel-caret{transform:rotate(180deg);color:var(--accent)}

/* ---- the panel ---- */
.msel-panel{
  position:absolute;z-index:45;top:calc(100% + 6px);left:0;
  min-width:100%;width:max-content;max-width:min(330px,86vw);
  padding:6px;background:#0B0E13;
  border:1px solid var(--line-2);border-radius:11px;
  box-shadow:0 20px 44px rgba(0,0,0,.6);
}
.msel-panel[hidden]{display:none}
.msel-note{margin:4px 8px 8px;font-size:11.5px;line-height:1.45;color:var(--fg-3)}
.msel-list{display:flex;flex-direction:column;gap:1px}
/* Long lists scroll INSIDE the panel; the rail itself never grows. */
.msel-list.scroll{max-height:min(46vh,320px);overflow-y:auto;padding-right:3px}
.msel-list.scroll::-webkit-scrollbar{width:6px}
.msel-list.scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,.14);border-radius:3px}

/* ---- one option ---- */
.mopt{
  display:flex;align-items:center;gap:10px;min-height:44px;padding:9px 10px;
  border-radius:8px;cursor:pointer;font-size:13px;color:var(--fg);
}
.mopt:hover{background:rgba(255,255,255,.055)}
.mopt input{position:absolute;opacity:0;width:0;height:0}
.mopt-box{
  flex:0 0 auto;width:16px;height:16px;border-radius:4px;
  border:1px solid var(--line-2);background:rgba(255,255,255,.04);
  display:inline-flex;align-items:center;justify-content:center;
  transition:background .14s ease,border-color .14s ease;
}
.mopt-box::after{
  content:"";width:8px;height:4.5px;margin-top:-2px;
  border-left:2px solid #07090D;border-bottom:2px solid #07090D;
  transform:rotate(-45deg) scale(0);transition:transform .14s ease;
}
.mopt input:checked + .mopt-box{background:var(--accent);border-color:var(--accent)}
.mopt input:checked + .mopt-box::after{transform:rotate(-45deg) scale(1)}
.mopt input:focus-visible + .mopt-box{outline:2px solid var(--accent);outline-offset:2px}
.mopt-l{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mopt .n{flex:0 0 auto;font-family:var(--mono);font-size:10.5px;color:var(--fg-3)}
.mopt input:checked ~ .n{color:var(--accent)}

.msel-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;
  margin-top:4px;border-top:1px solid var(--line)}
.msel-clear,.msel-done{
  padding:11px 10px;min-height:44px;background:none;border:0;cursor:pointer;
  font:inherit;font-family:var(--mono);font-size:9.5px;letter-spacing:.12em;
  text-transform:uppercase;color:var(--fg-3);
}
.msel-clear:hover{color:var(--accent)}
/* An explicit dismiss beats auto-closing on every pick, which would destroy
   multi-select. Accent-coloured because it is the primary way out on a phone. */
.msel-done{color:var(--accent);font-weight:600}
.msel-done:hover{text-decoration:underline}
@media (min-width:861px){ .msel-done{display:none} }

/* ---- dismiss layer ---- */
.fbackdrop{position:fixed;inset:0;z-index:35;background:rgba(5,7,10,.45);
  -webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px)}
.fbackdrop[hidden]{display:none}
@media (min-width:861px){
  /* On desktop the panel does not cover the results, so no scrim -- but the
     layer stays present to catch outside clicks. */
  .fbackdrop{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
}

/* ---- active filter chips ---- */
.fchips{display:flex;flex-wrap:wrap;gap:6px;padding-top:12px;border-top:1px solid var(--line)}
.fchips[hidden]{display:none}
.fchip{
  display:inline-flex;align-items:center;gap:6px;max-width:100%;
  padding:6px 11px;min-height:34px;cursor:pointer;
  font:inherit;font-size:12px;color:var(--accent);
  background:rgba(95,227,192,.09);border:1px solid rgba(95,227,192,.32);
  border-radius:999px;
}
.fchip:hover{background:rgba(95,227,192,.16)}
.fchip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.fchip svg{width:9px;height:9px;flex:0 0 auto;opacity:.8}

/* Responsive overrides MUST come after the base rail rules above:
   equal specificity means source order decides, and these were previously
   defined earlier in the file, so the desktop rule silently won on mobile. */
@media (max-width:860px){
  /* The rail is a STICKY BAR pinned under the header, not a block that
     scrolls away. It previously sat above a 29,000px result list: after one
     swipe the filters were gone and the only way back was scrolling to the
     top, which is why the dropdowns felt broken on a phone.
     overflow is visible so an open panel is never clipped. */
  .dir-shell{grid-template-columns:1fr;gap:0}
  .dir-rail{
    position:sticky;top:75px;z-index:50;
    display:grid;grid-template-columns:1fr 1fr;gap:8px;
    /* Bleed to the viewport edges without overflowing: the inline padding
       must equal the bleed exactly, and box-sizing keeps the total at 100%. */
    width:100%;box-sizing:border-box;margin:0;padding:10px 0 12px;
    background:rgba(7,9,13,.94);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
    border-bottom:1px solid var(--line);overflow:visible;
  }
  .rail-top{grid-column:1/-1;padding-bottom:0;border-bottom:0}
  .fchips{grid-column:1/-1;padding-top:8px;border-top:0}
  /* Litigation is the least-used filter and its labels are the longest;
     give it the full width rather than truncating to ambiguity. */
  .fgroup:nth-of-type(4){grid-column:1/-1}
  .xgrid{padding-top:18px}
  /* header (75) + sticky filter bar, so a card never lands under either. */
  .xcard{scroll-margin-top:250px}
  .dsheet-panel{width:100%;border-left:none}
}
@media (max-width:860px){
  /* Touch targets: a chip is a real control and needs a 44px tap area. */
  .fchip{min-height:44px;padding:8px 14px}
}
@media (max-width:480px){
  /* A single column turned 4 filters into a 333px sticky slab that covered the
     first card and permanently ate 40% of the screen. Keep two columns so the
     rail stays a bar, not a panel. */
  .dir-rail{grid-template-columns:1fr 1fr;gap:6px}
  .msel-panel{max-width:calc(100vw - 48px)}
}

/* ---- collapsible filter rail (phone/tablet only) -------------------------
   The rail is sticky so it is always reachable, which also means it is always
   TAKING space. Collapsed by default it costs one row; the badge reports how
   many filters are active so closing it never hides state. */
@media (max-width:860px){
  .rail-toggle{
    display:inline-flex;align-items:center;gap:8px;min-height:44px;
    padding:4px 10px;margin-left:auto;background:none;border:0;cursor:pointer;
    font:inherit;font-family:var(--mono);font-size:10px;letter-spacing:.12em;
    text-transform:uppercase;color:var(--edge-2)}
  .rail-badge{
    display:inline-flex;align-items:center;justify-content:center;
    min-width:18px;height:18px;padding:0 5px;border-radius:9px;
    background:var(--accent);color:#06231c;font-size:10px;font-weight:600}
  .dir-rail:not(.open) .rail-fields{display:none}
  .dir-rail.open .rail-fields{
    grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:8px;
    padding-top:10px;max-height:60vh;overflow-y:auto}
}
@media (max-width:480px){
  .dir-rail.open .rail-fields{grid-template-columns:1fr}
}


/* ==========================================================================
   PRINT / SAVE AS PDF  —  one expert dossier per sheet
   --------------------------------------------------------------------------
   Printing the directory page would waste paper on the hero, the filter rail
   and 119 cards. In print, the open drawer IS the document: everything else is
   hidden, the drawer is unpinned from its fixed overlay and allowed to flow
   across pages, and every source link prints its full URL because an href is
   invisible on paper -- a citation a reader cannot follow is not a citation.
   ========================================================================== */
.print-only{display:none}

.dsheet-acts{display:flex;align-items:center;gap:8px;margin-left:auto}
.dsheet-print{
  display:inline-flex;align-items:center;gap:7px;
  padding:9px 13px;min-height:40px;cursor:pointer;
  font:inherit;font-size:12px;font-weight:500;color:var(--accent);
  background:rgba(95,227,192,.09);border:1px solid rgba(95,227,192,.34);
  border-radius:9px;white-space:nowrap;
}
.dsheet-print:hover{background:rgba(95,227,192,.17)}
.dsheet-print:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.dsheet-print svg{width:13px;height:13px;flex:0 0 auto}
@media (max-width:520px){
  /* Keep the 44px target but drop the label; the icon carries the meaning. */
  .dsheet-print{min-height:44px;padding:10px}
  .dsheet-print .lbl{display:none}
}

@media print{
  /* 1. Nothing but the dossier. */
  body > *:not(.dsheet){display:none!important}
  /* The site header rule is `header{position:fixed}` -- an ELEMENT selector.
     The dossier renders each case block inside its own <header>, so every case
     title inherited position:fixed. A fixed element repeats on EVERY printed
     page, which stamped "Bertola" and "Brown" over each other at the top of
     all 11 pages. Only the real site header is fixed; everything inside the
     dossier flows. */
  .dsheet header{position:static!important;inset:auto!important;z-index:auto!important;
    backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  #hdr,footer,.dir-rail,.dir-search,.xgrid,.fbackdrop,.dsheet-bg,
  .dsheet-close,.dsheet-print,.dsheet-acts,.dir-more-wrap{display:none!important}

  /* 2. The drawer becomes the page: a fixed, scrolling overlay cannot paginate,
        so it must be static and auto-height or only page 1 prints. */
  html,body{background:#fff!important;color:#000!important}
  /* The drawer is translated/offset on screen for its slide-in animation. Left
     in place, the panel printed at y=-1012 -- the first page of every dossier
     (its first citations) fell off the top of the sheet and was silently lost.
     Neutralise every transform and offset that positions it for animation. */
  .dsheet{display:block!important;position:static!important;overflow:visible!important;
    transform:none!important;inset:auto!important;margin:0!important;padding:0!important}
  .dsheet-panel{
    position:static!important;transform:none!important;inset:auto!important;
    margin:0!important;transition:none!important;opacity:1!important;width:auto!important;max-width:none!important;
    height:auto!important;max-height:none!important;overflow:visible!important;
    border:0!important;box-shadow:none!important;background:#fff!important;
    animation:none!important;
  }
  .dsheet-body{overflow:visible!important;max-height:none!important}
  .dsheet-head{border-bottom:1.5px solid #000;padding:0 0 10px;margin-bottom:14px}

  /* 3. Ink-economical, readable type. */
  *{color:#000!important;background:transparent!important;
    -webkit-print-color-adjust:exact;print-color-adjust:exact}
  .dsheet-body,.dquote,.dfact,.dcase{font-size:10.5pt;line-height:1.45}
  h3,.dsec-t{color:#000!important}
  .xav{display:none!important}

  /* 4. Section titles keep their numbering but lose the screen chrome. */
  .dsec{border:0!important;padding:0!important;margin:16pt 0 8pt!important}
  .dsec-t{font-size:12pt!important;border-bottom:.5pt solid #888;padding-bottom:3pt}

  /* 5. Evidence must not be split mid-quote across a page break. */
  .dquote,.dcase,.dmotion,.dexh,.dq{break-inside:avoid;page-break-inside:avoid}
  /* A row whose printed URL is split across a page break loses its tail: the
     text runs to the page edge and the remainder is dropped, not carried over.
     Keep every citation-bearing row whole on one page. */
  .dpub,.dwork,.dbook,.dgrant,.dcite,li{break-inside:avoid;page-break-inside:avoid}
  .dsheet a[href^="http"]{break-inside:avoid;page-break-inside:avoid}
  .dsec{break-after:avoid;page-break-after:avoid}
  .dcase{border:.5pt solid #bbb!important;padding:8pt!important;margin-bottom:8pt!important}
  blockquote{border-left:2pt solid #444!important;padding-left:8pt!important}

  /* 6. EVERY source link prints its URL. One rule covers all six link types
        the dossier can emit -- and any added later -- which six hand-patched
        call sites would not. */
  /* The citation links are display:flex on screen (icon + label). A ::after on
     a flex container becomes a FLEX ITEM, not inline text -- it inherits the
     row's nowrap context, overflows the page edge and is clipped, which is why
     the court-opinion URLs were cut mid-string or dropped entirely while
     ordinary inline links printed fine. Force inline so the URL wraps as text. */
  .dsheet a[href^="http"]{display:inline!important}
  .dsheet a[href^="http"]::after{
    content:" <" attr(href) ">";
    font-family:var(--mono);font-size:8pt;color:#333!important;
    word-break:break-all;overflow-wrap:anywhere;white-space:normal;
    /* The citation label is uppercased on screen. A URL is case-sensitive:
       .../BERTOLA-V-FISHER-PRICE/ is a dead link. Force normal case. */
    text-transform:none!important;letter-spacing:0!important;
    /* The label is a one-line ellipsised flex row on screen; inherited, it cut
       the URL mid-slug. The printed URL must be allowed to wrap and repeat. */
    display:inline!important;max-width:none!important;
  }
  /* Kill inherited truncation on every citation element in print.
     NOTE: do NOT force display:block on .dcase -- it is a positioned card whose
     header row (.dcase-top) is a flex container. Forcing block collapsed two
     different case headers onto identical coordinates, printing "Bertola" and
     "Brown" overstruck on the same line. Only the inline citation bits change. */
  .dcite,.dcite-a,.dlink,.dsheet cite{
    text-transform:none!important;max-width:none!important;
  }
  .dcite,.dsheet cite{display:block!important}
  /* Publication/work rows are grid or flex with a fixed trailing year column,
     so a long DOI overran the printable width and its tail was clipped off the
     page edge. Collapse those rows to plain blocks so the URL can wrap. */
  .dpub,.dwork,.dbook,.dpub-row,.dgrant{
    display:block!important;grid-template-columns:none!important;
    width:auto!important;max-width:none!important;
  }
  .dsheet *{max-width:100%!important}
  /* Nothing in the printed dossier may hide overflowing text. */
  .dsheet,.dsheet *{overflow:visible!important;white-space:normal!important;
    text-overflow:clip!important}
  /* The screen-only "external link" glyph is noise on paper. */
  .dcite-a svg,.dlink svg{display:none!important}
  a{text-decoration:none!important}

  .print-only{display:block}
  .print-prov{
    font-family:var(--mono);font-size:8pt;color:#333!important;
    margin:0 0 12pt;padding-bottom:6pt;border-bottom:.5pt dotted #999;
  }

  @page{margin:16mm 14mm}
}

/* Uncommon Context homepage: capability cards */
.caps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:40px}
.cap{display:flex;flex-direction:column;gap:12px;padding:34px 32px;border:1px solid var(--line);border-radius:var(--r);background:var(--ink-2);color:var(--fg);transition:border-color .25s,background .25s}
a.cap:hover{border-color:rgba(95,227,192,.45);background:var(--ink-3)}
.cap h3{font-family:var(--serif);font-weight:600;font-size:clamp(24px,2.6vw,32px);line-height:1.1;letter-spacing:-.01em}
.cap p{color:var(--fg-2);max-width:52ch}
.tag{align-self:flex-start;display:inline-block;font-family:var(--mono);font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--ink);background:var(--edge);padding:4px 9px;border-radius:99px}
.tag.dim{background:transparent;color:var(--fg-3);border:1px solid var(--line-2)}
.cap .go{margin-top:auto;padding-top:8px;color:var(--edge);font-weight:500}
@media (max-width:1080px){.caps{grid-template-columns:1fr 1fr}}
@media (max-width:700px){.caps{grid-template-columns:1fr}}

/* capability pages */
.cap-hero{position:relative;padding:150px 0 70px;overflow:hidden;border-bottom:1px solid var(--line);
  background:radial-gradient(1200px 500px at 15% -10%,rgba(95,227,192,.10),transparent 60%),var(--ink)}
.cap-hero .wrap{position:relative;z-index:2}
.cap-hero h1{margin-top:14px}
.cap-hero .lede{margin-top:22px;max-width:62ch;font-size:clamp(17px,1.6vw,20px)}
.cap-hero .btnrow{margin-top:30px}
.cap-status{margin-top:18px}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:48px}
.prose{max-width:70ch;margin-top:14px}
.prose p{margin-bottom:14px;color:var(--fg-2)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.cap-chips{display:flex;flex-wrap:wrap;gap:10px;list-style:none}
.cap-chips li{font-family:var(--mono);font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--fg);border:1px solid var(--line-2);border-radius:99px;padding:9px 15px}
.cap-sources{list-style:none;margin-top:22px;max-width:62ch}
.cap-sources li{padding:13px 0 13px 22px;border-bottom:1px solid var(--line);color:var(--fg-2);position:relative}
.cap-sources li::before{content:"";position:absolute;left:3px;top:21px;width:7px;height:7px;border-radius:50%;border:1px solid var(--fg-3)}
.cmp-wrap{overflow-x:auto;margin-top:30px;border:1px solid var(--line);border-radius:var(--r)}
.cmp{width:100%;border-collapse:collapse;font-size:14.5px;min-width:760px}
.cmp th,.cmp td{text-align:left;vertical-align:top;padding:16px 18px;border-bottom:1px solid var(--line)}
.cmp thead th{font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--fg-3);font-weight:500;background:var(--ink-2)}
.cmp tbody th{font-family:var(--serif);font-weight:600;font-size:17px;color:var(--fg)}
.cmp tbody th .muted{font-family:var(--sans);font-weight:400;font-size:13px}
.cmp td{color:var(--fg-2)}
.cmp tbody tr:last-child th,.cmp tbody tr:last-child td{border-bottom:0}
/* law firm intelligence search */
.lfi-snap{border:1px solid rgba(95,227,192,.28);background:rgba(95,227,192,.06);border-radius:12px;padding:14px 18px;font-size:14px;line-height:1.6;color:var(--fg-2);max-width:900px}
.lfi-snap b{color:var(--fg)}
.lfi-form{display:flex;gap:10px;margin-top:26px;max-width:900px}
.lfi-form input{flex:1;min-width:0;background:var(--ink-2);border:1px solid var(--line-2);border-radius:12px;color:var(--fg);font:inherit;font-size:16.5px;padding:15px 18px}
.lfi-form input:focus{outline:2px solid var(--edge);outline-offset:1px}
.lfi-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;max-width:900px}
.lfi-chips button{background:none;border:1px solid var(--line-2);color:var(--fg-2);border-radius:99px;padding:8px 13px;font:inherit;font-size:13px;cursor:pointer;min-height:36px}
.lfi-chips button:hover{border-color:var(--edge);color:var(--fg)}
.lfi-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin:26px 0 14px;max-width:1100px}
.lfi-toggle{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--fg-2);min-height:44px;cursor:pointer}
.lfi-results{display:grid;gap:16px;max-width:1100px}
.lfi-card{border:1px solid var(--line);border-radius:var(--r);background:var(--ink-2);padding:24px 26px}
.lfi-card.near{background:transparent;border-style:dashed}
.lfi-card header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:16px}
.lfi-card h3{font-family:var(--serif);font-weight:600;font-size:23px;line-height:1.15}
.lfi-card header p{color:var(--fg-3);font-size:14px;margin-top:4px}
.lfi-badge{flex:none;font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;border-radius:99px;padding:5px 10px;border:1px solid}
.lfi-badge.ok{color:var(--edge);border-color:rgba(95,227,192,.45)}
.lfi-badge.near{color:var(--warn);border-color:rgba(255,192,107,.45)}
.lfi-trio{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.lfi-trio.two{grid-template-columns:1fr 1fr}
.lfi-trio>div{background:var(--ink);padding:13px 15px;font-size:14px;color:var(--fg-2);line-height:1.5}
.lfi-trio span{display:block;font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--fg-3);margin-bottom:5px}
.lfi-k{font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--edge);margin:16px 0 6px}
.lfi-why p{font-size:14.5px;color:var(--fg-2);line-height:1.6;margin-bottom:5px}
.lfi-why b{color:var(--fg);font-weight:500}
.lfi-card mark{background:rgba(95,227,192,.22);color:var(--fg);border-radius:3px;padding:0 2px}
.lfi-more{margin-top:14px;border-top:1px solid var(--line);padding-top:8px}
.lfi-more summary{cursor:pointer;color:var(--fg);font-weight:500;min-height:44px;display:flex;align-items:center}
.lfi-more p{font-size:14.5px;color:var(--fg-2);line-height:1.6;margin-bottom:6px}
.lfi-graph{width:100%;border-collapse:collapse;font-size:14px;margin-top:6px}
.lfi-graph th{text-align:left;font-family:var(--mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--fg-3);font-weight:500;padding:8px 10px;border-bottom:1px solid var(--line)}
.lfi-graph td{vertical-align:top;padding:10px;border-bottom:1px solid var(--line);color:var(--fg-2);line-height:1.5}
.lfi-graph td:first-child{color:var(--fg);width:24%}
.lfi-src{margin-top:14px;font-size:14px}
.lfi-src a{color:var(--edge);display:inline-flex;align-items:center;min-height:44px}
.lfi-src.muted{color:var(--fg-3);font-size:13px}
.lfi-empty{border:1px dashed var(--line-2);border-radius:var(--r);padding:22px;color:var(--fg-2)}
.lfi-uses{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;margin-top:36px}
.lfi-uses article{background:var(--ink-2);padding:24px 22px}
.lfi-uses h3{font-family:var(--serif);font-weight:600;font-size:18px;line-height:1.2;margin-bottom:9px}
.lfi-uses p{font-size:14px}
.lfi-quote{margin-top:34px;border-left:2px solid var(--edge);padding:6px 0 6px 24px;max-width:70ch}
.lfi-quote p{font-family:var(--serif);font-size:clamp(18px,1.9vw,23px);line-height:1.45;color:var(--fg)}
.lfi-quote cite{display:block;margin-top:10px;font-style:normal;font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--fg-3)}
@media (max-width:1080px){.lfi-uses{grid-template-columns:1fr 1fr}.fgrid{grid-template-columns:1fr 1fr}}
@media (max-width:760px){.lfi-trio,.lfi-trio.two,.two-col{grid-template-columns:1fr}.lfi-uses{grid-template-columns:1fr}
  .lfi-form{flex-direction:column}.lfi-card{padding:20px 18px}.lfi-card header{flex-direction:column}.cap-hero{padding:120px 0 54px}
  .lfi-graph td:first-child{width:auto}}
/* The site-wide sticky table header assumes the page scrolls; inside .cmp-wrap
   (its own scroll container) the 75px offset lands on the first row. */
.cmp thead th,.lfi-graph thead th{position:static;top:auto}

/* capability flows: diagram, workflows, handoffs */
.flow-fig{margin-top:38px;border:1px solid var(--line);border-radius:var(--r);background:var(--ink-2);padding:22px 18px 16px}
.flow-fig svg{width:100%;height:auto;display:block}
.fl-edge{fill:none;stroke:var(--fg-3);stroke-width:1.6;stroke-dasharray:6 6;opacity:.75}
.fl-edge.live{stroke:var(--edge);stroke-dasharray:none;stroke-width:2.4;opacity:1}
.fl-ah{fill:var(--fg-3)}
.fl-ah.on{fill:var(--edge)}
.fl-node rect{fill:var(--ink);stroke:var(--line-2);stroke-width:1.4;stroke-dasharray:5 4}
.fl-node.live rect{stroke:var(--edge);stroke-dasharray:none;stroke-width:2}
.fl-node:hover rect{fill:var(--ink-3)}
.fl-name{fill:var(--fg);font-family:var(--serif);font-weight:600;font-size:21px}
.fl-sub{fill:var(--fg-3);font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase}
.fl-node.live .fl-sub{fill:var(--edge)}
.flow-fig figcaption{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px;font-size:13px;color:var(--fg-3)}
.fl-key{display:inline-block;width:26px;height:0;border-top:2px dashed var(--fg-3);margin-left:8px}
.fl-key.live{border-top:2.5px solid var(--edge);margin-left:0}
.wf-list{display:grid;gap:22px;margin-top:36px}
.wf{border:1px solid var(--line);border-radius:var(--r);background:var(--ink-2);padding:28px 30px}
.wf header{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.wf h3{font-family:var(--serif);font-weight:600;font-size:clamp(22px,2.3vw,28px)}
.wf-why{margin:8px 0 18px;max-width:72ch}
.wf-steps{list-style:none;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:14px;counter-reset:wf}
.wf-step{display:flex;gap:12px;border:1px dashed var(--line-2);border-radius:12px;padding:16px;background:var(--ink);position:relative}
.wf-step.live{border:1px solid rgba(95,227,192,.45)}
.wf-step:not(:last-child)::after{content:"\2192";position:absolute;right:-13px;top:50%;transform:translateY(-50%);color:var(--fg-3);font-size:14px;background:var(--ink-2);padding:2px 0}
.wf-n{flex:none;width:26px;height:26px;border-radius:50%;border:1px solid var(--line-2);display:flex;align-items:center;justify-content:center;font-family:var(--mono);font-size:12px;color:var(--fg-2)}
.wf-step.live .wf-n{border-color:var(--edge);color:var(--edge)}
.wf-cap{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13.5px}
.wf-cap a{color:var(--fg);font-weight:600}
.wf-cap .tag{font-size:9.5px;padding:3px 7px}
.wf-q{font-family:var(--serif);font-size:16.5px;line-height:1.35;color:var(--fg);margin:8px 0}
.wf-gives{font-size:13.5px;color:var(--fg-2);line-height:1.5}
.wf-gives span{display:block;font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--fg-3);margin-bottom:2px}
.wf-try{display:inline-flex;align-items:center;gap:6px;margin-top:10px;color:var(--edge);font-size:13.5px;font-weight:500;min-height:44px}
.wf-none{margin-top:10px;font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--fg-3)}
.ww{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:30px}
.ww-k{font-family:var(--mono);font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--fg-3);margin-bottom:10px}
.ww ul{list-style:none;display:grid;gap:10px}
.ww li{border:1px solid var(--line);border-radius:12px;background:var(--ink-2);padding:14px 16px}
.ww li a{display:flex;justify-content:space-between;align-items:center;gap:10px;color:var(--fg);min-height:32px}
.ww li a b{font-weight:600}
.ww li p{font-size:14px;color:var(--fg-2);margin-top:4px;line-height:1.5}
.ww .tag{font-size:9.5px;padding:3px 7px}
.handoff-in{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid rgba(95,227,192,.35);background:rgba(95,227,192,.07);border-radius:12px;padding:11px 15px;margin:16px 0;font-size:14px;color:var(--fg-2);max-width:900px}
.handoff-in a{color:var(--edge)}
.handoff-in .tag{font-size:9.5px;padding:3px 7px}
.handoff-out{margin-top:22px;max-width:1100px}
.handoff-k{font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--edge);margin-bottom:8px}
.handoff-out a{display:block;border:1px solid rgba(95,227,192,.4);border-radius:12px;padding:16px 18px;background:rgba(95,227,192,.05);color:var(--fg);transition:background .2s}
.handoff-out a:hover{background:rgba(95,227,192,.1)}
.handoff-out a b{display:block;font-weight:600;margin-bottom:4px}
.handoff-out a span{font-size:14px;color:var(--fg-2);line-height:1.5}
.handoff-out[hidden],.handoff-in[hidden]{display:none}
#sheet .handoff-out{margin:22px 0 6px}
@media (max-width:980px){.wf-steps{grid-auto-flow:row}.wf-step:not(:last-child)::after{content:"\2193";right:auto;left:24px;top:auto;bottom:-14px;transform:none}}
@media (max-width:760px){.ww{grid-template-columns:1fr}.wf{padding:22px 18px}.fl-name{font-size:24px}.fl-sub{font-size:13px}}

/* MCP access samples */
.ms-access{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14.5px;color:var(--fg-2);margin-bottom:6px}
.ms-access code,.ms-tools code,.cats code,.wf-cap code{font-family:var(--mono);font-size:12.5px;color:var(--edge);background:rgba(95,227,192,.08);border:1px solid rgba(95,227,192,.2);border-radius:6px;padding:1px 6px}
.ms-access a{color:var(--edge)}
.ms{display:grid;grid-template-columns:.8fr 1.6fr;gap:22px;margin-top:26px;align-items:start}
.ms-tools,.ms-session{border:1px solid var(--line);border-radius:var(--r);background:var(--ink-2);padding:22px 22px}
.ms-k{font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--fg-3);margin-bottom:10px}
.ms-tools ul,.cats ul{list-style:none;display:grid;gap:12px}
.ms-tools li span,.cats li span{display:block;font-size:13.5px;color:var(--fg-2);line-height:1.5;margin-top:5px}
.ms-prompt{font-family:var(--serif);font-size:clamp(18px,1.8vw,22px);line-height:1.4;color:var(--fg);margin-bottom:16px;max-width:60ch}
.ms-call{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.ms-code{font-family:var(--mono);font-size:12.5px;line-height:1.55;color:var(--fg-2);background:var(--ink);border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin-top:8px;overflow-x:auto;white-space:pre}
.ms-code.ms-out{border-color:rgba(95,227,192,.25)}
.ms-code.ms-carry{border-color:rgba(91,188,255,.35);background:rgba(91,188,255,.05)}
.ms-dim{display:block;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--fg-3);margin-bottom:4px}
.ms-hand{margin-top:16px;font-size:14px;color:var(--fg-2);line-height:1.5}
.ms-hand span{display:block;font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--fg-3);margin-bottom:3px}
.ms-hand a{color:var(--edge);font-weight:500}
.ms-note{font-size:12.5px;color:var(--fg-3);margin-top:14px;max-width:80ch}
.ma-two{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:30px}
.ma-card{border:1px solid var(--line);border-radius:var(--r);background:var(--ink-2);padding:26px 26px}
.ma-card.suite{border-color:rgba(95,227,192,.45)}
.ma-card h3{font-family:var(--serif);font-weight:600;font-size:26px;margin-bottom:12px}
.ma-card ul{list-style:none;display:grid;gap:8px;margin-bottom:6px}
.ma-card li{font-size:14.5px;color:var(--fg-2);padding-left:16px;position:relative;line-height:1.5}
.ma-card li::before{content:"";position:absolute;left:0;top:9px;width:6px;height:6px;border-radius:50%;background:var(--edge)}
.ss-steps{list-style:none;padding:0;display:grid;gap:16px;margin-top:22px}
.ss-steps>li{min-width:0}
.ss-step{display:flex;gap:14px;border:1px solid var(--line);border-radius:12px;background:var(--ink-2);padding:18px 20px}
.ss-step>div{min-width:0;flex:1}
.cats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:26px}
.cat{border:1px solid var(--line);border-radius:12px;background:var(--ink-2);padding:18px 18px}
.cat .wf-cap{margin-bottom:12px}
.fl-node-key{display:inline-block;width:18px;height:12px;border:2px solid var(--edge);border-radius:4px;margin-left:14px}
@media (max-width:980px){.ms,.ma-two{grid-template-columns:1fr}.cats{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.cats{grid-template-columns:1fr}.ss-step{padding:16px 14px}}
/* Grid items default to min-width:auto, so a wide <pre> would stretch the page;
   let the code block scroll inside its own box instead. */
.ms>*,.ma-two>*,.cats>*,.ss-step>div,.ms-call{min-width:0}

/* ===================================================== live records & the knowledge graph */
.linkbtn{background:none;border:0;color:var(--edge);font:inherit;cursor:pointer;padding:0 4px;text-decoration:underline}
.warn-t{color:var(--warn)}
.cmp .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.cmp td.desc,.cmp th.desc{min-width:260px}
.cmp.meet b{font-weight:600;color:var(--fg)}
.cmp.meet b.own{color:var(--edge)}
.cmp.meet tbody th a,.rec-t tbody th a{color:var(--fg);text-decoration:none;border-bottom:1px solid rgba(95,227,192,.4)}
.cmp.meet tbody th a:hover,.rec-t tbody th a:hover{color:var(--edge)}

.src-status{border:1px solid var(--line);border-radius:var(--r);background:var(--ink-2);padding:6px 22px;margin-top:26px;font-size:14px;color:var(--fg-2)}
.src-status.warn{border-color:rgba(255,192,107,.4);padding:16px 22px}
.src-row{display:grid;grid-template-columns:130px 1fr;gap:14px;padding:12px 0;border-bottom:1px solid var(--line)}
.src-row:last-of-type{border-bottom:0}
.src-row code,.src-err code{font-family:var(--mono);font-size:12px;color:var(--fg-2);overflow-wrap:anywhere}
.src-k{font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--fg-3);padding-top:2px}
.src-q{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 8px}
.src-q li{border:1px solid var(--line-2);border-radius:99px;padding:3px 10px;font-size:12.5px}
.src-err{border-top:1px solid var(--line);padding:12px 0 10px;color:var(--warn);font-size:13.5px}
.src-err ul{margin:8px 0 0;padding-left:18px;color:var(--fg-2)}

.rec{margin-top:26px}
.rec-bar{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.rec-bar input{flex:1 1 280px;min-width:0;background:var(--ink-2);border:1px solid var(--line-2);border-radius:12px;color:var(--fg);font:inherit;font-size:15.5px;padding:13px 16px;min-height:46px}
.rec-bar input:focus{outline:2px solid var(--edge);outline-offset:1px}
.rec-chips{display:flex;flex-wrap:wrap;gap:8px}
.rec-chips button{background:none;border:1px solid var(--line-2);color:var(--fg-2);border-radius:99px;padding:8px 13px;font:inherit;font-size:13px;cursor:pointer;min-height:40px}
.rec-chips button span{font-family:var(--mono);font-size:11px;color:var(--fg-3);margin-left:4px}
.rec-chips button:hover,.rec-chips button[aria-pressed="true"]{border-color:var(--edge);color:var(--fg);background:rgba(95,227,192,.08)}
.rec-count{margin:14px 0 0}
.rec .cmp-wrap{margin-top:12px}
.rec-t tbody th{font-family:var(--sans);font-size:15px;font-weight:600}
.rec-t td{font-size:14px}
.rec-more{margin-top:16px}
.cap.graph{background:linear-gradient(160deg,rgba(95,227,192,.10),var(--ink-2) 55%);border-color:rgba(95,227,192,.35)}

/* knowledge graph explorer */
.wrap.wide{max-width:1480px}
.kg-sec{padding-top:24px}
.kg{border:1px solid var(--line);border-radius:18px;background:var(--ink-4);overflow:hidden}
.kg-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:14px;border-bottom:1px solid var(--line);background:var(--ink-2)}
.kg-search{position:relative;flex:1 1 300px;min-width:0}
.kg-search input{width:100%;background:var(--ink);border:1px solid var(--line-2);border-radius:10px;color:var(--fg);font:inherit;font-size:15px;padding:11px 14px;min-height:44px}
.kg-search input:focus{outline:2px solid var(--edge);outline-offset:1px}
.kg-hits{position:absolute;z-index:5;left:0;right:0;top:calc(100% + 6px);list-style:none;margin:0;padding:6px;background:var(--ink-3);border:1px solid var(--line-2);border-radius:12px;box-shadow:0 20px 50px -20px #000}
.kg-hits li>button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:none;border:0;color:var(--fg);font:inherit;font-size:14px;padding:9px 10px;border-radius:8px;cursor:pointer;min-height:40px}
.kg-hits li>button:hover,.kg-hits li>button:focus{background:rgba(95,227,192,.1);outline:none}
.kg-hits .kg-meta{margin-left:auto}
.kg-hits li.kg-meta{padding:10px}
.kg-hits{max-height:min(62vh,520px);overflow-y:auto}
.kg-hits .kg-hm{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.kg-hits .kg-hl{color:var(--fg);font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.kg-hits .kg-hs{font-size:11.5px;color:var(--fg-3)}
.kg-hits .kg-hs b{color:var(--edge);font-weight:500}
.kg-hits .kg-hx{font-size:12px;color:var(--fg-2);line-height:1.4}
.kg-hits mark{background:rgba(95,227,192,.22);color:inherit;border-radius:3px;padding:0 1px}
.kg-hits li.act>button{background:rgba(95,227,192,.12);outline:1px solid rgba(95,227,192,.4)}
.kg-hits li>button{align-items:flex-start}
.kg-hits .kg-badge{margin-top:1px}
.kg-hh{display:flex;align-items:center;gap:8px;font-family:var(--mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--fg-3);padding:10px 10px 4px}
.kg-hh button{margin-left:auto;background:none;border:0;color:var(--edge);font:inherit;font-size:10px;letter-spacing:.1em;cursor:pointer;text-transform:uppercase}
.kg-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:4px 4px 8px;border-bottom:1px solid var(--line);margin-bottom:4px;position:sticky;top:-6px;background:var(--ink-3);z-index:1}
.kg-hits .kg-tabs>button{display:inline-flex;align-items:center;width:auto;background:var(--ink);border:1px solid var(--line-2);color:var(--fg-2);border-radius:99px;padding:5px 11px;font:inherit;font-size:12px;cursor:pointer;min-height:32px}
.kg-hits .kg-tabs>button span{color:var(--fg-3);margin-left:3px;font-variant-numeric:tabular-nums}
.kg-hits .kg-tabs>button.on{color:var(--fg);border-color:rgba(95,227,192,.55);background:rgba(95,227,192,.08)}
.kg-none{line-height:1.5}
.kg-kbd,.kg-tips kbd{font-family:var(--mono);font-size:11px;color:var(--fg-3);border:1px solid var(--line-2);border-radius:5px;padding:1px 6px;background:var(--ink-2)}
.kg-kbd{position:absolute;right:12px;top:50%;transform:translateY(-50%);pointer-events:none}
.kg-search input:focus~.kg-kbd,.kg-search input:not(:placeholder-shown)~.kg-kbd{display:none}
.kg-caps-f{display:flex;flex-wrap:wrap;gap:6px}
.kg-capbtn{background:none;border:1px solid var(--line-2);color:var(--fg-3);border-radius:99px;padding:7px 12px;font:inherit;font-size:12.5px;cursor:pointer;min-height:40px;text-decoration:line-through}
.kg-capbtn[aria-pressed="true"]{color:var(--fg);border-color:rgba(95,227,192,.5);background:rgba(95,227,192,.08);text-decoration:none}
.kg-zoom{display:flex;gap:4px}
.kg-zoom button{background:var(--ink);border:1px solid var(--line-2);color:var(--fg);border-radius:9px;min-width:44px;min-height:40px;font:inherit;font-size:14px;cursor:pointer}
.kg-zoom button:hover{border-color:var(--edge)}
.kg-stage{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 380px;height:min(74vh,720px);min-height:520px}
.kg-stage canvas{width:100%;height:100%;display:block;cursor:grab;touch-action:none;background:
  radial-gradient(circle at 50% 45%,rgba(95,227,192,.06),transparent 60%),
  linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px) 0 0/40px 40px,
  linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px) 0 0/40px 40px}
.kg-tip{position:absolute;z-index:3;pointer-events:none;background:var(--ink-3);border:1px solid var(--line-2);border-radius:10px;padding:8px 11px;max-width:260px;box-shadow:0 14px 34px -16px #000}
.kg-tip b{display:block;font-size:13.5px;color:var(--fg)}
.kg-tip span{font-size:12px;color:var(--fg-3)}
.kg-panel{border-left:1px solid var(--line);background:var(--ink-2);overflow-y:auto;padding:22px 22px 30px;outline:none}
.kg-panel h3{font-family:var(--serif);font-weight:500;font-size:24px;line-height:1.2;margin:6px 0 8px;overflow-wrap:break-word}
.kg-head{display:flex;justify-content:space-between;align-items:center}
.kg-type{font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--fg-2);display:inline-flex;align-items:center;gap:7px}
.kg-type::before{content:"";width:9px;height:9px;border-radius:50%;background:currentColor}
.kg-type.kg-person{color:#7FB0F0}.kg-type.kg-org{color:#4FC79C}.kg-type.kg-record{color:#F0905E}.kg-type.kg-hub{color:var(--fg-2)}
.kg-x{background:none;border:1px solid var(--line-2);color:var(--fg-2);border-radius:9px;width:40px;height:40px;font-size:20px;cursor:pointer}
.kg-d{color:var(--fg-2);font-size:14px;margin:4px 0}
.kg-status{color:var(--edge);font-family:var(--mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;margin:6px 0}
.kg-note{color:var(--fg-2);font-size:13.5px;border-left:2px solid var(--line-2);padding-left:12px;margin:10px 0}
.kg-src{color:var(--edge);font-size:14px}
.kg-k{font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--fg-3);margin:20px 0 8px}
.kg-caps,.kg-paths,.kg-picks{display:flex;flex-wrap:wrap;gap:6px}
.kg-cap{font-size:12.5px;color:var(--fg);border:1px solid rgba(95,227,192,.45);border-radius:99px;padding:5px 11px;text-decoration:none}
.kg-paths button,.kg-picks button{background:none;border:1px dashed var(--line-2);color:var(--fg-2);border-radius:99px;padding:7px 12px;font:inherit;font-size:12.5px;cursor:pointer;min-height:38px}
.kg-paths button:hover,.kg-picks button:hover{border-color:var(--edge);color:var(--fg)}
.kg-path{list-style:none;margin:12px 0 0;padding:0 0 0 4px;border-left:2px solid var(--edge)}
.kg-path li{position:relative;padding:6px 0 6px 14px;font-size:13.5px;color:var(--fg)}
.kg-path li .kg-dot{position:absolute;left:-6px;top:11px}
.kg-rel{margin-top:14px}
.kg-rk{font-size:12.5px;color:var(--edge);margin:0 0 6px}
.kg-rel ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.kg-rel li{background:var(--ink);border:1px solid var(--line);border-radius:10px;padding:10px 12px}
.kg-nb{display:flex;align-items:center;gap:8px;background:none;border:0;color:var(--fg);font:inherit;font-size:14px;font-weight:600;cursor:pointer;padding:0;text-align:left}
.kg-nb:hover{color:var(--edge)}
.kg-rel blockquote{margin:6px 0 4px;font-size:13px;color:var(--fg-2);line-height:1.55;border:0;padding:0}
.kg-meta{font-size:11.5px;color:var(--fg-3)}
.kg-meta a{color:var(--fg-2)}
.kg-more{font-size:12.5px;color:var(--fg-3);background:none!important;border:0!important}
.kg-hand{display:grid;gap:8px;margin-top:20px}
.kg-hand .btn{justify-content:space-between;font-size:13.5px}
.kg-dot{display:inline-block;width:10px;height:10px;border-radius:50%;flex:none}
.kg-dot.kg-person{background:#3987e5}
.kg-dot.kg-org{background:#199e70}
.kg-dot.kg-record{background:#d95926}
.kg-dot.kg-hub{background:#7d8a9c}
.kg-dot.kg-ring{background:transparent;border:2px solid var(--edge)}
.kg-dot.kg-more{background:#121a23;border:1.5px dashed #dfe6ee;width:13px;height:13px}
.kg-dot.sq{border-radius:2px}.kg-dot.dia{border-radius:1px;transform:rotate(45deg) scale(.85)}
.kg-dot.ring.mint{border-color:var(--edge)}
.kg-legend{display:flex;flex-wrap:wrap;gap:10px 20px;align-items:center;padding:12px 16px;border-top:1px solid var(--line);font-size:12.5px;color:var(--fg-2);background:var(--ink-2)}
.kg-legend span{display:inline-flex;align-items:center;gap:7px}
.kg-legend .kg-status{margin:0 0 0 auto;font-size:10.5px;color:var(--fg-3)}
.kg-legend{gap:10px 28px;align-items:flex-start}
.kg-lgg{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
.kg-lgg .kg-fl{flex-basis:100%}
.kg-lg{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--fg-2)}
.kg-legend .kg-status{flex-basis:100%;text-align:right}
.kg-arrow{display:inline-block;width:16px;height:10px;background:linear-gradient(var(--fg-3),var(--fg-3)) 0 50%/10px 1.5px no-repeat;position:relative}
.kg-arrow::after{content:"";position:absolute;right:0;top:1px;border-left:7px solid var(--fg-3);border-top:4px solid transparent;border-bottom:4px solid transparent}
/* icons */
.kg-ic{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.kg-ic.k{display:inline-block;width:12px;height:12px;vertical-align:-2px;margin-right:6px}
.kg-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;color:#fff;flex:none;width:26px;height:26px}
.kg-badge .kg-ic{width:15px;height:15px}
.kg-badge.sm{width:24px;height:24px}.kg-badge.sm .kg-ic{width:14px;height:14px}
.kg-badge.xs{width:20px;height:20px}.kg-badge.xs .kg-ic{width:12px;height:12px}
.kg-b-person{background:#3987e5}.kg-b-org{background:#199e70}.kg-b-record{background:#d95926}.kg-b-hub{background:#6f7d90}
.kg-b-more{background:#121a23;border:1.5px dashed #AEB9C7;color:var(--fg-2)}
.kg-type .kg-badge{margin-right:2px}
.kg-type.kg-person::before,.kg-type.kg-org::before,.kg-type.kg-record::before,.kg-type.kg-hub::before{display:none}
.kg-x{display:inline-flex;align-items:center;justify-content:center}
.kg-act .kg-ic{width:15px;height:15px;margin-right:7px}
/* counts on filters */
.kg-cnt{font-family:var(--mono);font-size:10.5px;color:var(--fg-3);margin-left:7px;font-variant-numeric:tabular-nums}
.kg-capbtn[aria-pressed="true"] .kg-cnt{color:var(--fg-2)}
.kg-kindbtn{padding-left:6px}
.kg-reset{background:none;border:1px dashed var(--edge);color:var(--edge);border-radius:99px;padding:6px 13px;font:inherit;font-size:12.5px;cursor:pointer;min-height:36px}
/* trail navigation */
.kg-nav{display:inline-flex;gap:4px;margin-right:6px}
.kg-ib{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;background:var(--ink);border:1px solid var(--line-2);border-radius:9px;color:var(--fg);cursor:pointer}
.kg-ib:hover:not(:disabled){border-color:var(--edge)}
.kg-ib:disabled{opacity:.35;cursor:default}
/* panel */
.kg-dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin:10px 0}
.kg-dl div{background:var(--ink);border:1px solid var(--line);border-radius:9px;padding:8px 11px}
.kg-dl dt{font-family:var(--mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--fg-3)}
.kg-dl dd{margin:2px 0 0;font-size:14px;color:var(--fg)}
.kg-rel .kg-rk{display:flex;flex-direction:column;gap:2px}
.kg-rel .kg-rk b{color:var(--fg);font-weight:600;font-size:13.5px}
.kg-rs{font-family:var(--mono);font-size:10.5px;color:var(--edge);line-height:1.45;overflow-wrap:anywhere}
.kg-all{display:block;margin:0 10px 10px;background:none;border:1px dashed var(--line-2);color:var(--fg-2);border-radius:9px;padding:7px 12px;font:inherit;font-size:12.5px;cursor:pointer;width:calc(100% - 20px);text-align:left}
.kg-all:hover{border-color:var(--edge);color:var(--fg)}
.kg-nb{align-items:flex-start}
.kg-nb>span:last-child{display:flex;flex-direction:column;gap:1px;min-width:0}
.kg-nl{overflow-wrap:anywhere}
.kg-ns{font-size:11.5px;font-weight:400;color:var(--fg-3)}
.kg-fsearch{flex:none;margin:0 0 6px}
.kg-fsearch input{font-size:14px;padding:9px 12px;min-height:40px}
.kg-tips{margin:20px 0 0;font-size:12.5px;line-height:1.6;color:var(--fg-3)}
.kg-tips b{display:block;font-family:var(--mono);font-size:10px;letter-spacing:.14em;text-transform:uppercase;font-weight:500;margin-bottom:4px}
.kg-tip .kg-tt{display:flex;align-items:center;gap:6px;font-family:var(--mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--fg-3);margin-bottom:4px}
.kg-tip span{display:block}
.kg-tip .kg-th{color:var(--edge);font-size:11.5px;margin-top:4px}
.kg-path li .kg-badge{position:absolute;left:-11px;top:6px}
.kg-path li{padding-left:18px}
.kg-path .kg-nb{font-weight:600}
/* investigation view */
.kg-filters{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;padding:10px 14px;border-bottom:1px solid var(--line);background:var(--ink-2)}
.kg-fl{font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--fg-3)}
.kg-fg{display:flex;align-items:center;gap:10px;min-width:0;max-width:100%}
.kg-filters{gap:8px 26px}
.kg-kindbtn{display:inline-flex;align-items:center;gap:7px}
.kg-kindbtn[aria-pressed="false"] .kg-dot{opacity:.35}
.kg-trail{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:10px 14px;border-bottom:1px solid var(--line);background:var(--ink-3)}
.kg-trail .kg-k{margin:0 6px 0 0}
.kg-chip{display:inline-flex;align-items:center;background:var(--ink);border:1px solid var(--line-2);color:var(--fg-2);border-radius:99px;font:inherit;font-size:12.5px;min-height:36px;overflow:hidden}
.kg-chip>button{display:inline-flex;align-items:center;gap:7px;background:none;border:0;color:inherit;font:inherit;padding:5px 12px 5px 6px;cursor:pointer;min-height:34px}
.kg-chip.on{color:var(--fg);border-color:rgba(95,227,192,.55)}
.kg-chip:hover{border-color:var(--edge);color:var(--fg)}
.kg-chip .kg-cx{padding:0 9px 0 4px;color:var(--fg-3)}
.kg-chip .kg-cx:hover{color:var(--fg)}
.kg-chip .kg-cx .kg-ic{width:13px;height:13px}
.kg-chip.reset{border-style:dashed;margin-left:auto;padding:5px 14px;cursor:pointer}
.kg-acts{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 4px}
.kg-act{display:inline-flex;align-items:center;background:var(--ink);border:1px solid var(--line-2);color:var(--fg);border-radius:9px;padding:8px 13px;font:inherit;font-size:13px;cursor:pointer;min-height:40px;text-decoration:none}
.kg-act:hover{border-color:var(--edge)}
.kg-act.primary{background:var(--edge);border-color:var(--edge);color:#06110d;font-weight:600}
.kg-facts{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:10px;overflow:hidden;margin:14px 0 10px}
.kg-facts div{background:var(--ink);padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.kg-facts b{font-family:var(--serif);font-weight:500;font-size:20px}
.kg-facts span{font-size:11.5px;color:var(--fg-3)}
.kg-psearch{flex:none;margin-bottom:8px}
.kg-psearch input{font-size:14px;padding:9px 12px;min-height:40px}
.kg-rel{margin-top:10px;border:1px solid var(--line);border-radius:10px;background:var(--ink-3)}
.kg-rel summary{display:flex;align-items:center;gap:9px;padding:10px 12px;cursor:pointer;list-style:none;min-height:42px}
.kg-rel summary::-webkit-details-marker{display:none}
.kg-rel summary::after{content:"+";margin-left:8px;color:var(--fg-3);font-family:var(--mono)}
.kg-rel[open] summary::after{content:"\2212"}
.kg-rel .kg-rk{margin:0;flex:1;min-width:0}
.kg-n{font-family:var(--mono);font-size:11px;color:var(--fg-2);background:var(--ink);border:1px solid var(--line);border-radius:99px;padding:2px 8px}
.kg-rel ul{padding:0 10px 10px}
.kg-picks{display:grid;gap:8px}
.kg-picks button{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:12px;text-align:left;border-style:solid;border-radius:12px;padding:10px 14px;color:var(--fg);background:var(--ink)}
.kg-picks button small{grid-column:2;font-size:11.5px;color:var(--fg-3)}
.kg-pe{padding:2px 0 2px 14px!important;color:var(--fg-2)!important}
.kg-rel-l{display:block;font-family:var(--mono);font-size:10.5px;letter-spacing:.08em;color:var(--edge)}
.kg-pe blockquote{margin:4px 0;font-size:12.5px;color:var(--fg-2);line-height:1.5}
@media (max-width:1000px){
  .kg-stage{grid-template-columns:1fr;height:auto;min-height:0}
  .kg-stage canvas{height:62vh;min-height:380px}
  .kg-panel{border-left:0;border-top:1px solid var(--line);max-height:none}
}
@media (max-width:640px){
  .src-row{grid-template-columns:1fr;gap:4px}
  .kg-tools{padding:10px}
  .kg-legend .kg-status{margin-left:0}
  .cmp td.desc,.cmp th.desc{min-width:0}
}
/* homepage graph preview */
.gp{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:48px;align-items:center}
.gp-fig{display:block;border:1px solid var(--line);border-radius:18px;background:var(--ink-4);padding:10px;transition:border-color .25s}
.gp-fig:hover{border-color:rgba(95,227,192,.45)}
.gp-fig svg{width:100%;height:auto;display:block}
.gp-e line{stroke:rgba(174,185,199,.18);stroke-width:1.4;stroke-dasharray:4 5}
.gp-s line{stroke:rgba(174,185,199,.38);stroke-width:1.6}
.gp-s line.more{stroke-dasharray:5 5}
.gp-d circle{stroke:var(--ink-4);stroke-width:3}
.gp-d .k-person{fill:#3987e5}.gp-d .k-org{fill:#199e70}.gp-d .k-record{fill:#d95926}.gp-d .k-hub{fill:#7d8a9c}
.gp-d .far{opacity:.85}
.gp-d .more{fill:#121a23;stroke:#AEB9C7;stroke-width:1.6;stroke-dasharray:4 4}
.gp-d .core{stroke:#fff;stroke-width:3}
.gp-halo{fill:none;stroke:var(--edge);stroke-width:2.5}
.gp-l text{fill:var(--fg);font:500 22px var(--sans);paint-order:stroke;stroke:var(--ink-4);stroke-width:6px}
.gp-l text.far{fill:var(--fg-2);font-size:19px}
.gp-l text.rel{fill:var(--edge);font:500 15px var(--mono)}
.gp-l text.cnt{fill:var(--fg);font:600 19px var(--sans);stroke:none}
.gp-l text.core{fill:var(--fg);font:500 34px var(--serif)}
.gp-stats{list-style:none;margin:26px 0 8px;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.gp-stats li{background:var(--ink-2);padding:14px 16px;display:flex;flex-direction:column;gap:3px;min-width:0}
.gp-stats b{font-family:var(--serif);font-size:24px;font-weight:500}
.gp-stats span{font-size:12.5px;color:var(--fg-3)}
@media (max-width:980px){.gp{grid-template-columns:1fr;gap:28px}}
@media (max-width:640px){
  .kg-caps-f{flex-wrap:nowrap;overflow-x:auto;width:100%;padding-bottom:2px;scrollbar-width:none}
  .kg-fg{flex-wrap:wrap;width:100%;gap:6px}
  .kg-filters{padding:10px}
  .kg-capbtn{flex:none}
}
.rec-t td .sub{display:block;font-size:12.5px;color:var(--fg-3);margin-top:3px}
.rec-t td.period{white-space:nowrap;font-variant-numeric:tabular-nums;font-size:13px}
.rec-t td.desc{font-size:13px;line-height:1.55}

/* live MCP sessions: readable results, raw JSON on request */
.ms-callline{margin:6px 0 12px}
.ms-callline code{display:block;font-family:var(--mono);font-size:13px;color:var(--edge);background:var(--ink-4);border:1px solid var(--line);border-radius:10px;padding:10px 12px;overflow-wrap:anywhere;white-space:normal}
.ms-sum{border:1px solid rgba(95,227,192,.28);background:rgba(95,227,192,.045);border-radius:12px;padding:14px 16px}
.ms-sum.err{border-color:rgba(255,192,107,.4);background:rgba(255,192,107,.06)}
.ms-sum-h{font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--edge);margin:0 0 10px}
.ms-sum ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ms-sum li{display:grid;gap:3px;padding-bottom:10px;border-bottom:1px solid var(--line);min-width:0}
.ms-sum li:last-child{border-bottom:0;padding-bottom:0}
.ms-sum li b{font-weight:600;color:var(--fg);font-size:14.5px;overflow-wrap:anywhere}
.ms-sum li b a{color:var(--fg);text-decoration:none;border-bottom:1px solid rgba(95,227,192,.45)}
.ms-sum li b a:hover{color:var(--edge)}
.ms-sum li span{font-size:13px;color:var(--fg-3)}
.ms-sum li q{display:block;font-size:13.5px;color:var(--fg-2);line-height:1.55;quotes:"\201C" "\201D"}
.ms-raw{margin-top:10px}
.ms-raw summary{cursor:pointer;font-size:13px;color:var(--fg-2);min-height:40px;display:flex;align-items:center}
.ms-raw summary:hover{color:var(--edge)}
.ms-raw[open] summary{color:var(--edge)}
.ms-raw pre{max-height:420px;overflow:auto;margin-top:6px}
.ss-flow{list-style:none;margin:22px 0 26px;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.ss-flow li{display:flex;align-items:center}
.ss-flow li:not(:last-child)::after{content:"\2192";color:var(--fg-3);margin-left:8px}
.ss-flow a{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line-2);border-radius:99px;padding:7px 13px 7px 7px;font-size:13px;color:var(--fg);text-decoration:none;min-height:40px}
.ss-flow a:hover{border-color:var(--edge)}
.ss-flow a span{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--edge);color:var(--ink);font-family:var(--mono);font-size:11px}
.ss-step{scroll-margin-top:90px}
.rec-meta{margin:22px 0 0;font-size:14.5px;color:var(--fg-2)}
.rec-meta b{color:var(--fg);font-weight:600}
.rec-gap{margin:8px 0 0;font-size:13.5px;color:var(--warn)}

/* ---------- Examples (use-cases.html and "What it answers" on each capability) ---------- */
.uc-chips{display:flex;flex-wrap:wrap;gap:8px;padding-top:6px;padding-bottom:6px;position:sticky;top:72px;z-index:5;background:linear-gradient(var(--ink-4) 70%,transparent)}
.uc-chips a{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border:1px solid var(--line-2);border-radius:999px;color:var(--fg-2);font-size:13.5px;background:var(--ink)}
.uc-chips a:hover,.uc-chips a:focus-visible{color:var(--fg);border-color:var(--edge)}
.uc-chips a span{font-family:var(--mono);font-size:11px;color:var(--edge)}
.uc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:30px}
.uc-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:var(--r);background:var(--ink-2);padding:24px 24px 18px;min-width:0}
.uc-cap{font-size:13px;margin-bottom:6px}.uc-cap a{color:var(--edge)}
.uc-who{font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--fg-3)}
.uc-q{font-family:var(--serif);font-weight:500;font-size:clamp(19px,2vw,22px);line-height:1.25;color:var(--fg);margin:10px 0 8px}
.uc-a{font-size:14.5px;line-height:1.55;color:var(--fg-2);margin-bottom:14px}
.uc-rows{list-style:none;padding:0;display:grid;border-top:1px solid var(--line);margin-bottom:6px}
.uc-rows li{border-bottom:1px solid var(--line)}
.uc-rows a{display:grid;gap:2px;padding:10px 2px;min-height:44px;color:var(--fg)}
.uc-rows a:hover b,.uc-rows a:focus-visible b{color:var(--edge)}
.uc-rows b{font-weight:600;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.uc-rows span{font-size:13px;line-height:1.45;color:var(--fg-3);overflow-wrap:anywhere}
.uc-more{display:inline-flex;align-items:center;gap:6px;margin-top:auto;padding-top:10px;color:var(--edge);font-size:13.5px;font-weight:500;min-height:44px}
.ux-list{display:grid;gap:26px;margin-top:36px}
.ux{border:1px solid var(--line);border-radius:var(--r);background:var(--ink-2);padding:28px 30px}
.ux h3{font-family:var(--serif);font-weight:500;font-size:clamp(22px,2.4vw,28px);margin-top:8px}
.ux-alone{margin:16px 0 20px;padding:12px 16px;border-left:2px solid var(--line-2);color:var(--fg-2);font-size:14.5px;line-height:1.55;max-width:80ch}
.ux-alone span,.ux-k{display:block;font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--fg-3);margin-bottom:4px}
.ux-steps{list-style:none;padding:0;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:14px}
.ux-step{display:flex;gap:12px;border:1px solid var(--line-2);border-radius:12px;padding:16px;background:var(--ink);position:relative;min-width:0}
.ux-step:not(:last-child)::after{content:"\2192";position:absolute;right:-13px;top:50%;transform:translateY(-50%);color:var(--fg-3);font-size:14px;background:var(--ink-2);padding:2px 0}
.ux-n{flex:none;width:26px;height:26px;border-radius:50%;border:1px solid var(--edge);color:var(--edge);display:flex;align-items:center;justify-content:center;font-family:var(--mono);font-size:12px}
.ux-cap a{color:var(--fg);font-weight:600;font-size:13.5px}
.ux-t{font-size:14px;line-height:1.5;color:var(--fg-2);margin:6px 0 4px;overflow-wrap:anywhere}
.ux-go{display:inline-flex;align-items:center;gap:6px;color:var(--edge);font-size:13px;min-height:40px}
.ux-res{margin-top:20px;border:1px solid rgba(95,227,192,.4);border-radius:12px;padding:18px 20px;background:rgba(95,227,192,.04)}
.ux-k{color:var(--edge)}
.ux-res ul{list-style:none;padding:0;display:grid;gap:8px;margin:6px 0 4px}
.ux-res li{position:relative;padding-left:18px;font-size:15px;line-height:1.55;color:var(--fg)}
.ux-res li::before{content:"";position:absolute;left:0;top:.62em;width:7px;height:7px;border-radius:50%;background:var(--edge)}
.ut{list-style:none;padding:0;display:grid;gap:0;margin:4px 0 0;max-width:820px}
.ut-node b{display:inline-block;padding:8px 14px;border:1px solid var(--line-2);border-radius:999px;background:var(--ink);font-size:14px;font-weight:600}
.ut-edge{margin-left:22px;padding:10px 0 10px 22px;border-left:1px dashed var(--line-2);display:grid;gap:3px}
.ut-r{font-size:13.5px;color:var(--fg)}
.ut-cap{font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--edge)}
.ut-edge a{font-size:13px;line-height:1.45;color:var(--fg-3);overflow-wrap:anywhere}
.ut-edge a:hover{color:var(--fg-2)}
.ux-close{margin-top:40px;padding:28px 30px;border:1px solid var(--line);border-radius:var(--r);background:var(--ink)}
.ux-close h3{font-family:var(--serif);font-weight:500;font-size:24px;margin-bottom:8px}
.ux-close .muted{max-width:62ch;margin-bottom:18px}
@media (max-width:980px){.ux-steps{grid-auto-flow:row}.ux-step:not(:last-child)::after{content:"\2193";right:auto;left:24px;top:auto;bottom:-14px;transform:none}}
@media (max-width:760px){.uc-grid{grid-template-columns:1fr}.uc-card{padding:20px 18px 14px}.ux,.ux-close{padding:22px 18px}.uc-chips{top:64px;overflow-x:auto;flex-wrap:nowrap}.uc-chips a{flex:none}}
.ut-r b{font-weight:600;color:var(--edge)}
#examples .btn,.ux-close .btn{white-space:normal;text-align:left;height:auto;min-height:44px}


/* ---------- header menus ---------- */
nav.links{align-items:center}
nav.links .dd{position:relative}
.dd-btn{display:flex;align-items:center;gap:6px;min-height:44px;padding:4px 12px;background:none;border:0;color:inherit;font:inherit;cursor:pointer;border-radius:8px}
.dd-btn svg,.fold-btn svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.6;transition:transform .2s}
.dd-btn:hover,.dd.on .dd-btn,.dd.has-active .dd-btn{color:var(--fg)}
.dd.on .dd-btn svg{transform:rotate(180deg)}
.dd.has-active .dd-btn{box-shadow:inset 0 -1px 0 var(--edge)}
.dd-menu{position:absolute;top:calc(100% + 6px);left:-8px;min-width:300px;padding:8px;display:none;flex-direction:column;
  background:#0D1117;border:1px solid var(--line-2);border-radius:14px;box-shadow:0 24px 60px -20px rgba(0,0,0,.8);z-index:90}
.dd.on .dd-menu{display:flex}
nav.links .dd-menu a{display:grid;gap:1px;min-height:44px;padding:9px 12px;border-radius:9px;white-space:normal}
nav.links .dd-menu a::after{display:none}
nav.links .dd-menu a b{font-weight:500;color:var(--fg);font-size:14px}
nav.links .dd-menu a span{font-size:12.5px;color:var(--fg-3)}
nav.links .dd-menu a:hover,nav.links .dd-menu a:focus-visible{background:rgba(255,255,255,.05)}
nav.links .dd-menu a.active{background:rgba(95,227,192,.08)}
nav.links .dd-menu a.active b{color:var(--edge)}
.dd-sep{height:1px;background:var(--line);margin:6px 8px}
nav.links a.nav-top{padding:4px 12px}
@media (max-width:980px){
  header.open nav.links{max-height:calc(100vh - 74px);overflow-y:auto;align-items:stretch}
  header.open nav.links .dd{border-bottom:1px solid var(--line)}
  header.open .dd-btn{width:100%;justify-content:space-between;padding:13px 0;font-size:16px;color:var(--fg)}
  header.open .dd-menu{position:static;display:none;min-width:0;border:0;box-shadow:none;background:none;padding:0 0 10px}
  header.open .dd.on .dd-menu{display:flex}
  header.open nav.links .dd-menu a{padding:10px 12px;border-bottom:0}
  header.open nav.links a.nav-top{padding:13px 0;font-size:16px;color:var(--fg)}
}

/* ---------- "On this page" bar ---------- */
.toc{position:sticky;top:74px;z-index:60;background:rgba(7,9,13,.9);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.toc .wrap{display:flex;align-items:center;gap:2px;overflow-x:auto;scrollbar-width:none}
.toc .wrap::-webkit-scrollbar{display:none}
.toc-k{flex:none;font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--fg-3);margin-right:10px}
.toc a{flex:none;display:flex;align-items:center;min-height:46px;padding:0 11px;font-size:13.5px;color:var(--fg-2);border-bottom:2px solid transparent;white-space:nowrap}
.toc a:hover{color:var(--fg)}
.toc a.on{color:var(--fg);border-bottom-color:var(--edge)}
@media (max-width:760px){.toc-k{display:none}.toc{top:74px}}

/* ---------- collapsible sections ---------- */
.fold-bar{margin:6px 0 0}
.fold-btn{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 16px;border:1px solid var(--line-2);border-radius:999px;
  background:rgba(255,255,255,.03);color:var(--fg);font:500 13.5px var(--sans);cursor:pointer;transition:border-color .2s,background .2s}
.fold-btn:hover{border-color:rgba(95,227,192,.55);background:rgba(95,227,192,.06)}
.fold-btn[aria-expanded="true"] svg{transform:rotate(180deg)}
.fold-body{margin-top:22px}
.fold-h{cursor:pointer}
section.is-folded{padding:30px 0}
section.is-folded h2{margin:10px 0 6px!important;font-size:clamp(22px,2.6vw,30px)}
section.is-folded .lede{display:none}
section.is-folded .rec-meta{margin-bottom:6px}
section.is-folded + section.is-folded{border-top:1px solid var(--line)}
section.alt.is-folded{background:transparent;border-top:1px solid var(--line);border-bottom:0}
article.is-folded{padding-bottom:22px}
article.is-folded .fold-bar{margin-top:0}

/* ---------- example cards: three rows until asked ---------- */
.uc-card.clip .uc-rows li:nth-child(n+4){display:none}
.uc-all{align-self:flex-start;min-height:40px;padding:0 2px;background:none;border:0;color:var(--fg-2);font:500 13px var(--sans);cursor:pointer;text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:4px}
.uc-all:hover{color:var(--fg)}
@media (max-width:980px){header.open .dd.has-active .dd-btn{box-shadow:none;color:var(--edge)}}

/* ---------- hero scroll cue ----------
   A link to the next section. It sits in the hero's bottom padding on large
   screens only: on a phone the hero runs past the fold, so a cue pinned to its
   bottom landed on top of the stats. It fades once the page has moved. */
a.scroll-hint{min-height:44px;min-width:44px;justify-content:flex-end;padding-top:6px;transition:opacity .3s,color .2s}
a.scroll-hint:hover,a.scroll-hint:focus-visible{color:var(--fg)}
a.scroll-hint.gone{opacity:0;pointer-events:none}
@media (max-width:900px),(max-height:760px){.scroll-hint{display:none!important}}
a.scroll-hint.nofit{display:none}

/* ---------- citations and long record text ---------- */
cite.rc{display:block;margin-top:4px;font-style:normal;font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;color:var(--fg-3)}
.uc-rows cite.rc{margin-top:3px}
.kg-src + cite.rc{display:inline;margin-left:8px}
.ut-edge cite.rc{margin-top:0}
.clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.clamp.open,.clamp.fits{display:block;-webkit-line-clamp:unset;overflow:visible}
.clamp-btn{display:inline-flex;align-items:center;min-height:36px;margin-top:2px;padding:0;background:none;border:0;
  color:var(--edge);font:500 13px var(--sans);cursor:pointer}
.clamp-btn:hover{text-decoration:underline;text-underline-offset:3px}

/* ---------- phones: records read as cards, chrome takes less of the screen ---------- */
@media (max-width:760px){
  header .bar{height:62px}
  header.stuck{background:rgba(7,9,13,.97)}
  header.open nav.links{top:62px;max-height:calc(100vh - 62px)}
  .toc{top:62px}
  .toc a{min-height:42px;font-size:13px;padding:0 10px}
  section{scroll-margin-top:66px}
  body.has-toc section{scroll-margin-top:110px}
  .cmp-wrap:has(> table.wide){border:0;border-radius:0;overflow:visible}
  table.wide,table.wide tbody{display:block;width:100%}
  table.wide tr{padding:16px 16px 14px;margin-bottom:10px;border:1px solid var(--line);border-radius:12px;background:var(--ink-2)}
  table.wide tr:last-child{border-bottom:1px solid var(--line)}
  table.wide td.num,table.wide th.num{text-align:left}
  table.wide td.period{white-space:normal}
  table.wide tbody th{font-size:16px;line-height:1.35;padding-bottom:8px}
  table.wide td{font-size:14.5px;line-height:1.5;padding:6px 0}
  .rec-chips{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:8px;padding-bottom:4px;scrollbar-width:none}
  .rec-chips::-webkit-scrollbar{display:none}
  .rec-chips button{flex:none}
}
/* Footer on phones: the brand block across the top, link columns two-up and allowed to shrink. */
@media (max-width:600px){
  .fgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 18px}
  .fgrid > :first-child{grid-column:1 / -1}
  .fnav a{overflow-wrap:anywhere}
}
/* The base header rule is keyed on #hdr, which outranked header.stuck: the bar never
   darkened and page text showed through it once scrolled. */
#hdr.stuck{background:rgba(7,9,13,.92);border-bottom-color:var(--line)}
@media (max-width:760px){#hdr.stuck,#hdr.open{background:rgba(7,9,13,.98)}}
@media (max-width:760px){.toc{background:rgba(7,9,13,.98)}}
.ut-ev{font-size:13px;line-height:1.45;color:var(--fg-3)}
/* homepage use-case teaser */
.ht-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:30px}
.ht-card{display:flex;flex-direction:column;gap:8px;border:1px solid var(--line);border-radius:var(--r);background:var(--ink-2);padding:24px;color:var(--fg);transition:border-color .2s,transform .2s}
.ht-card:hover{border-color:rgba(95,227,192,.5);transform:translateY(-2px)}
.ht-card h3{font-family:var(--serif);font-weight:500;font-size:22px;line-height:1.25}
.ht-caps{font-family:var(--mono);font-size:11px;letter-spacing:.06em;color:var(--edge);line-height:1.6}
.ht-card .muted{font-size:14.5px;line-height:1.55}
.ht-card .uc-more{margin-top:auto}
@media (max-width:900px){.ht-grid{grid-template-columns:1fr}}

/* ---------- legal pages ---------- */
.legal-upd{margin-top:22px;color:var(--fg-3)}
.legal-upd a{color:var(--fg-2)}
.lg{display:grid;grid-template-columns:220px minmax(0,1fr);gap:48px;align-items:start}
.lg-toc{position:sticky;top:140px}
.lg-k{font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--fg-3);margin-bottom:10px}
.lg-toc ol{list-style:none;padding:0;display:grid;gap:2px;counter-reset:lg}
.lg-toc a{display:flex;min-height:36px;align-items:center;font-size:13.5px;color:var(--fg-2)}
.lg-toc a:hover{color:var(--fg)}
.lg-body{max-width:72ch}
.lg-sec{padding:0 0 30px;margin:0 0 30px;border-bottom:1px solid var(--line);scroll-margin-top:130px}
.lg-sec h2{font-size:clamp(20px,2.2vw,24px);margin-bottom:12px}
.lg-sec p,.lg-sec li{font-size:15.5px;line-height:1.7;color:var(--fg-2)}
.lg-sec p+p{margin-top:12px}
.lg-sec ul{padding-left:20px;display:grid;gap:8px;margin-top:10px}
.lg-sec a,.corr a{color:var(--edge)}
@media (max-width:900px){.lg{grid-template-columns:1fr;gap:20px}.lg-toc{position:static}}

/* ---------- corrections ---------- */
.corr{display:grid;gap:12px;max-width:640px;margin-top:24px}
.corr label,.corr legend{font-size:14px;color:var(--fg);font-weight:500}
.corr input[type=text],.corr textarea,.corr select{width:100%;background:var(--ink-2);border:1px solid var(--line-2);border-radius:10px;
  color:var(--fg);font:15px var(--sans);padding:12px 14px}
.corr textarea{resize:vertical;min-height:140px}
.corr fieldset{border:0;padding:0;display:grid;gap:6px;margin:6px 0}
.corr fieldset label{display:flex;gap:10px;align-items:center;font-weight:400;color:var(--fg-2);min-height:36px}
.corr .btn{justify-self:start;margin-top:6px}
.corr-err{color:var(--warn)}
.corr-steps{list-style:none;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:26px;counter-reset:cs}
.corr-steps li{border:1px solid var(--line);border-radius:12px;background:var(--ink-2);padding:18px;display:grid;gap:6px}
.corr-steps b{font-family:var(--serif);font-weight:500;font-size:18px}
.corr-steps span{font-size:14px;color:var(--fg-2);line-height:1.55}
@media (max-width:900px){.corr-steps{grid-template-columns:1fr}}

/* ---------- "Request a review" on profiles ---------- */
.report-link{display:inline-flex;align-items:center;min-height:36px;font-size:13px;color:var(--fg-2);text-decoration:underline;
  text-decoration-color:var(--line-2);text-underline-offset:4px}
.report-link:hover{color:var(--edge)}
.dreport{margin-top:28px;padding-top:18px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center}
.dreport p{font-size:13.5px;color:var(--fg-3)}
.lfi-report{margin-top:10px}
.report-line{margin-top:12px;color:var(--fg-3)}
.kg-rep{margin:4px 0 8px}
.corr input[type=radio]{accent-color:var(--edge);width:18px;height:18px}

/* ---------- practice areas ---------- */
.pa-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:30px}
.pa-card{display:flex;flex-direction:column;gap:10px;border:1px solid var(--line);border-radius:var(--r);background:var(--ink-2);padding:24px}
.pa-card h3{font-family:var(--serif);font-weight:500;font-size:22px}
.pa-card .muted{font-size:14.5px;line-height:1.55}
.pa-stats{list-style:none;padding:0;display:grid;gap:6px;margin:4px 0}
.pa-stats li{display:flex;gap:10px;align-items:baseline;font-size:14px;color:var(--fg-2)}
.pa-stats b{font-family:var(--serif);font-weight:500;font-size:20px;color:var(--fg);min-width:3.2ch}
.pa-links{margin-top:auto;display:flex;flex-wrap:wrap;gap:4px 16px}
.pa-links a{display:inline-flex;align-items:center;gap:6px;min-height:40px;color:var(--edge);font-size:13.5px;font-weight:500}
@media (max-width:1000px){.pa-grid{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.pa-grid{grid-template-columns:1fr}}
.pa-chips{display:flex;flex-wrap:wrap;gap:8px;margin:26px 0 8px}
.pa-chip{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:999px;font-size:13.5px;color:var(--fg-2)}
.pa-chip span{font-family:var(--mono);font-size:11.5px;color:var(--edge)}
.pa-chip:hover{border-color:var(--edge);color:var(--fg)}
.pa-group{margin-top:44px;scroll-margin-top:120px}
.pa-gh{font-family:var(--serif);font-weight:500;font-size:clamp(24px,3vw,30px);padding-bottom:12px;border-bottom:1px solid var(--line)}
.pa-group .pa-grid{margin-top:20px}
.pa-ex{list-style:none;padding:12px 0 0;margin:0;border-top:1px solid var(--line);display:grid;gap:12px}
.pa-ex li{display:grid;gap:3px;font-size:13.5px;line-height:1.5;color:var(--fg-2);min-width:0}
.pa-ex a{color:var(--fg);font-weight:500;overflow-wrap:anywhere}
.pa-ex a:hover{color:var(--edge)}
.ux-group{font-family:var(--serif);font-weight:500;font-size:clamp(22px,2.6vw,28px);margin:40px 0 4px;padding-bottom:10px;border-bottom:1px solid var(--line);scroll-margin-top:120px}
.ux-list>.ux-group:first-child{margin-top:8px}
.rec-t th .sub{display:block;margin-top:3px;font-family:var(--sans);font-weight:400;font-size:12.5px;color:var(--fg-3,#8a94a6)}
/* use cases: closed stories two to a row, an opened story spans the row */
.ux-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.ux-list>.ux-group,.ux-list>.ux:not(.is-folded){grid-column:1/-1}
.ux.is-folded{padding:24px 26px}
.ux.is-folded h3{font-size:clamp(20px,2vw,24px)}
.ux.is-folded .ux-alone{margin:12px 0 14px}
.ux-go{white-space:nowrap;min-height:36px;margin-top:2px}
.ux-step>div{display:flex;flex-direction:column;min-width:0}
.ux-step .ux-go{margin-top:auto}
@media (max-width:860px){.ux-list{grid-template-columns:1fr}}
@media (max-width:980px){.ux-step:not(:last-child)::after{left:50%;transform:translateX(-50%);bottom:-15px;padding:0 6px;background:var(--ink-2);line-height:1}}
/* folded sections: breathing room between the lede and the toggle */
section .fold-bar{margin-top:18px}
/* the company matrix: a wider company column, links that read as links, tighter rows */
.dm-t tbody th{min-width:230px}
.dm-t th,.dm-t td{padding:13px 16px}
.dm-t td a{color:var(--edge);text-decoration:none;border-bottom:1px solid rgba(95,227,192,.35)}
.dm-t td a:hover{border-bottom-color:var(--edge)}
.dm-t td:last-child{white-space:nowrap}
/* record tables: name and agency columns that do not wrap word by word */
.rec-t tbody th{min-width:200px}
.rec-t td{min-width:110px}
@media (max-width:760px){.dm-t tbody th,.rec-t tbody th,.rec-t td{min-width:0}}
.ux-list{align-items:stretch}
.ux.is-folded{display:flex;flex-direction:column}
.ux.is-folded .fold-bar{margin-top:auto}
.rec-t.dm-t tbody th{min-width:260px}
@media (max-width:760px){.rec-t.dm-t tbody th{min-width:0}}
/* why us */
.wy-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:8px 0 6px}
.wy-stat{border:1px solid var(--line);border-radius:14px;background:var(--ink-2);padding:18px 20px;display:grid;gap:6px}
.wy-stat b{font-family:var(--serif);font-weight:500;font-size:clamp(26px,3vw,34px);color:var(--fg);line-height:1}
.wy-stat span{font-size:13.5px;line-height:1.45;color:var(--fg-2)}
.wy-caps{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px;margin-top:30px}
.wy-cap{display:flex;flex-direction:column;gap:10px;padding:24px;border:1px solid var(--line);border-radius:14px;background:var(--ink);color:inherit;text-decoration:none;transition:border-color .2s}
.wy-cap:hover{border-color:rgba(95,227,192,.5)}
.wy-cap h3{font-family:var(--serif);font-weight:500;font-size:21px;line-height:1.25;margin:0}
.wy-cap .muted{margin:0;font-size:14.5px;line-height:1.6}
.wy-cap .wproof{margin-top:auto}
.wy-cap .uc-more{margin-top:4px}
.wy-steps{list-style:none;padding:0;margin:30px 0 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.wy-step{display:flex;gap:14px;align-items:flex-start;padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--ink-2)}
.wy-step h3{font-family:var(--serif);font-weight:500;font-size:20px;margin:2px 0 8px}
.wy-step .muted{margin:0;font-size:14px;line-height:1.6}
#different .wgrid{margin-top:24px}
@media (max-width:1000px){.wy-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.wy-steps{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.wy-steps{grid-template-columns:1fr}.wy-stat{padding:16px}}
/* footer: brand + four columns (capabilities, company, expert litigation, trust) */
.fgrid{grid-template-columns:1.3fr repeat(4,minmax(0,1fr));gap:32px}
@media (max-width:1080px){.fgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.fgrid > :first-child{grid-column:1 / -1}}
@media (max-width:560px){.fgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 18px}}
.wy-caps{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.wy-cap{padding:20px}
.wy-cap h3{font-size:19px}
@media (max-width:1180px){.wy-caps{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:820px){.wy-caps{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.wy-caps{grid-template-columns:1fr}}
#check .wgrid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1100px){#check .wgrid{grid-template-columns:1fr 1fr}}
@media (max-width:640px){#check .wgrid{grid-template-columns:1fr}}
.kg-tools .kg-search input{padding-right:40px}
/* audience pages: lookups, league tables, homepage cards */
.lk{margin-top:26px}
.lk-bar{position:relative;max-width:720px}
.lk-bar input{width:100%;background:var(--ink);border:1px solid var(--line-2);border-radius:12px;color:var(--fg);font:inherit;font-size:16px;padding:14px 16px;min-height:50px}
.lk-bar input:focus{outline:2px solid var(--edge);outline-offset:1px}
.lk-hits{position:absolute;z-index:6;left:0;right:0;top:calc(100% + 6px);list-style:none;margin:0;padding:6px;background:var(--ink-3);border:1px solid var(--line-2);border-radius:12px;box-shadow:0 20px 50px -20px #000;max-height:380px;overflow-y:auto}
.lk-hits button{display:flex;flex-direction:column;gap:2px;width:100%;text-align:left;background:none;border:0;color:var(--fg);font:inherit;padding:9px 11px;border-radius:8px;cursor:pointer;min-height:44px}
.lk-hits button b{font-weight:600;font-size:14.5px}
.lk-hits button span{font-size:12px;color:var(--fg-3)}
.lk-hits button:hover,.lk-hits li.act button{background:rgba(95,227,192,.1)}
.lk-none{padding:10px;font-size:13.5px;color:var(--fg-2);line-height:1.5}
.lk-hint{margin:10px 0 0;color:var(--fg-3)}
.lk-out{margin-top:22px;display:grid;gap:12px}
.lk-out:empty{display:none}
.lk-head{padding:22px 24px;border:1px solid var(--line);border-radius:14px;background:var(--ink-2)}
.lk-head h3{font-family:var(--serif);font-weight:500;font-size:clamp(24px,3vw,32px);margin:0 0 6px;overflow-wrap:anywhere}
.lk-head .muted{margin:0;font-size:14px}
.lk-caps{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 0}
.lk-sec{border:1px solid var(--line);border-radius:14px;background:var(--ink-2)}
.lk-sec>summary{display:flex;align-items:center;gap:12px;padding:16px 20px;cursor:pointer;list-style:none;min-height:52px}
.lk-sec>summary::-webkit-details-marker{display:none}
.lk-sec>summary span{font-family:var(--serif);font-size:19px;font-weight:500;flex:1}
.lk-sec>summary b{font-family:var(--mono);font-size:12px;color:var(--fg-2);border:1px solid var(--line-2);border-radius:99px;padding:2px 9px}
.lk-sec>summary::after{content:"+";font-family:var(--mono);color:var(--fg-3)}
.lk-sec[open]>summary::after{content:"\2212"}
.lk-body{padding:0 20px 18px}
.lk-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.lk-list>li{padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--ink)}
.lk-h{margin:0;font-weight:600;font-size:14.5px;overflow-wrap:anywhere}
.lk-h .muted{font-weight:400;font-size:12.5px}
.lk-s{margin:3px 0 0;font-size:12.5px;color:var(--fg-3);line-height:1.5}
.lk-b{margin:6px 0 0;font-size:13.5px;color:var(--fg-2);line-height:1.6}
.lk-sig{margin:8px 0 0;padding-left:18px;font-size:13px;color:var(--fg-2);line-height:1.55;display:grid;gap:4px}
.lk-t{width:100%;border-collapse:collapse;font-size:13.5px}
.lk-t th,.lk-t td{padding:9px 10px;border-top:1px solid var(--line);text-align:left;vertical-align:top}
.lk-t thead th{font-family:var(--mono);font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--fg-3);font-weight:500;border-top:0}
.lk-t tbody th{font-weight:500}
.lk-go{background:none;border:0;padding:0;color:var(--edge);font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.lk-foot{color:var(--fg-3);margin:4px 2px 0}
.lt-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;margin-top:28px}
.lt{padding:20px 22px;border:1px solid var(--line);border-radius:14px;background:var(--ink)}
.lt h3{font-family:var(--serif);font-weight:500;font-size:19px;margin:0 0 12px;line-height:1.3}
.lt ol{margin:0;padding:0;list-style:none;counter-reset:lt;display:grid;gap:8px}
.lt li{counter-increment:lt;display:grid;grid-template-columns:22px 1fr auto;column-gap:8px;align-items:baseline;font-size:14px}
.lt li::before{content:counter(lt);font-family:var(--mono);font-size:11px;color:var(--fg-3)}
.lt li b{font-family:var(--mono);font-size:13px;color:var(--fg)}
.lt li small{grid-column:2/4;font-size:11.5px;color:var(--fg-3)}
.aud-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:28px}
.aud{display:flex;flex-direction:column;gap:12px;padding:28px;border:1px solid var(--line);border-radius:16px;background:var(--ink-2);color:inherit;text-decoration:none;transition:border-color .2s}
.aud:hover{border-color:rgba(95,227,192,.5)}
.aud-k{font-family:var(--mono);font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--edge)}
.aud h3{font-family:var(--serif);font-weight:500;font-size:clamp(22px,2.4vw,28px);line-height:1.2;margin:0}
.aud .muted{margin:0;font-size:15px;line-height:1.6}
.aud .uc-more{margin-top:auto}
.wcard .uc-more{margin-top:auto;font-size:14px}
@media (max-width:820px){.aud-grid{grid-template-columns:1fr}}
@media (max-width:640px){.lk-t thead{display:none}.lk-t tr{display:grid;padding:8px 0}.lk-t th,.lk-t td{border:0;padding:2px 0}.lk-body{padding:0 14px 14px}.lk-sec>summary{padding:14px 16px}}
/* lawyer directory */
.ld-bar{display:grid;grid-template-columns:minmax(0,1fr) 260px 200px;gap:10px}
.ld-bar input,.ld-bar select{background:var(--ink);border:1px solid var(--line-2);border-radius:12px;color:var(--fg);font:inherit;font-size:15px;padding:12px 14px;min-height:48px;min-width:0}
.ld-bar input:focus,.ld-bar select:focus{outline:2px solid var(--edge);outline-offset:1px}
.ld-chips{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 8px}
.ld-chip{background:none;border:1px solid var(--line-2);color:var(--fg-2);border-radius:99px;padding:6px 12px;font:inherit;font-size:12.5px;cursor:pointer;min-height:36px}
.ld-chip span{font-family:var(--mono);font-size:10.5px;color:var(--fg-3);margin-left:4px}
.ld-chip[aria-pressed="true"]{color:var(--fg);border-color:rgba(95,227,192,.6);background:rgba(95,227,192,.1)}
.ld-toggles{display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center;font-size:14px;color:var(--fg-2);margin:6px 0 4px}
.ld-toggles label{display:inline-flex;gap:8px;align-items:center;min-height:36px;cursor:pointer}
.ld-reset{background:none;border:1px dashed var(--edge);color:var(--edge);border-radius:99px;padding:6px 13px;font:inherit;font-size:12.5px;cursor:pointer}
.ld-count{color:var(--fg-3);margin:10px 0 14px}
.ld-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:14px}
.ld-card{display:flex;flex-direction:column;gap:8px;padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:var(--ink-2);min-width:0}
.ld-card h3{font-family:var(--serif);font-weight:500;font-size:20px;margin:0;line-height:1.25}
.ld-card h3 a{color:var(--fg);text-decoration:none}
.ld-card h3 a:hover{color:var(--edge)}
.ld-card header .muted{margin:3px 0 0;font-size:13px}
.ld-p{display:flex;flex-wrap:wrap;gap:5px;margin:0}
.ld-p span{font-size:11.5px;border:1px solid rgba(95,227,192,.4);border-radius:99px;padding:2px 9px;color:var(--fg)}
.ld-card blockquote{margin:0;font-size:13.5px;line-height:1.6;color:var(--fg-2);border-left:2px solid var(--line-2);padding-left:10px}
.ld-gov{margin:0;font-size:13px;color:var(--fg-2);line-height:1.55}
.ld-gov b,.ld-facts b{font-family:var(--mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--fg-3);font-weight:500;margin-right:6px}
.ld-facts{display:grid;gap:4px;margin:0;font-size:13px;color:var(--fg-2);line-height:1.5}
.ld-src{margin:auto 0 0;color:var(--fg-3)}
.ld-card mark,.ld-card blockquote mark{background:rgba(95,227,192,.22);color:inherit;border-radius:3px}
.ld-more{margin-top:18px}
.ld-note{color:var(--fg-3);margin-top:16px;max-width:80ch}
@media (max-width:860px){.ld-bar{grid-template-columns:1fr}.ld-list{grid-template-columns:1fr}}
