/* Blackgrove search chrome.
 *
 * Self-contained apart from tokens.css, which holds the values it shares with
 * canvas.css -- no import, no CDN, no framework. The palette is pure-neutral grays at chroma 0 with a single black
 * accent, one link blue, and two chip families (peach for a filter, blue for
 * its value) generated at matched OKLCH weight so neither outshouts the other.
 *
 * Prior art for the token structure is credited in README.md, not here: a
 * stylesheet is a product surface and carries no one else's name. */

*,*::before,*::after { box-sizing:border-box; }
/* The globals are the app layout's (body.app): the home page loads this file under the marketing layout, whose links
   and body are Tailwind's. :where() keeps each rule's specificity what it was. */
body:where(.app) {
  margin:0; background:var(--ox-bg-base); color:var(--ox-text-primary);
  font-family:var(--ox-font-sans); font-size:14px; line-height:24px;
  -webkit-font-smoothing:antialiased;
}
button,input,select,textarea { font:inherit; color:inherit; }
:where(.app) a { color:var(--ox-link); text-decoration:none; }
:where(.app) a:hover { text-decoration:underline; }
:where(.app) :focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
svg { display:block; }
.num { font-variant-numeric:tabular-nums slashed-zero; }
/* The UA rule for [hidden] is display:none at the lowest specificity, so any
   author rule that sets display -- .btn does, inline-flex -- beats it and the
   element stays on screen with its hidden attribute set. Everything that hides
   itself in this application does it with that attribute. */
[hidden] { display:none !important; }

/* ── top bar ───────────────────────────────────────────────────────────────── */
/* The demo film's bar on every page (kit.css .topbar, .nav, .me): a translucent layer, no rule beneath it. Nothing in it
   animates; it is used on every page view. */
.topbar {
  position:sticky; top:0; z-index:100; height:var(--ox-topbar-height);
  display:flex; align-items:center; gap:40px; padding:0 36px; font-feature-settings:"cv11";
  background:var(--film-surface-2); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  box-shadow:0 1px 0 rgba(0,0,0,.02), 0 6px 20px -12px rgba(0,0,0,.10);
}
.brand { display:flex; align-items:center; cursor:pointer; background:none; border:0; padding:0; }
/* The lockup is 6.4:1 and sized by HEIGHT only -- a width would distort it. */
.brand .wordmark { height:24px; width:auto; color:var(--film-ink); display:block; }
.nav { display:flex; gap:6px; font-size:15px; }
.nav a { padding:8px 14px; border-radius:var(--film-pill); color:var(--film-t55); font-weight:500; text-decoration:none; }
.nav a:hover { color:var(--film-ink); text-decoration:none; }
.nav a.on { color:var(--film-ink); background:var(--film-wash); font-weight:600; }
.topbar-right { margin-left:auto; display:flex; align-items:center; gap:8px; }
/* The account menu: a native <details>, so it opens and closes with no script. */
.me { position:relative; margin-left:auto; }
.me summary { list-style:none; cursor:pointer; display:flex; align-items:center; gap:6px; padding:4px 8px 4px 4px; border-radius:var(--film-pill); color:var(--film-t70); }
.me summary::-webkit-details-marker { display:none; }
.me .face { width:34px; height:34px; border-radius:50%; background:var(--film-surface); box-shadow:var(--film-sh-1); display:grid; place-items:center; color:var(--film-t70); }
.me .face svg { width:18px; height:18px; }
.me .chev { width:15px; height:15px; color:var(--film-t50); }
.me nav {
  position:absolute; right:0; top:calc(100% + 8px); min-width:220px; padding:6px; display:flex; flex-direction:column;
  background:var(--film-surface); border-radius:var(--film-r-lg); box-shadow:var(--film-sh-3);
}
.me nav a, .me .mm-admin summary { padding:9px 12px; border-radius:var(--film-r-sm); font-size:14.5px; color:var(--film-t87); text-decoration:none; }
.me nav a:hover, .me nav a:focus-visible, .me .mm-admin summary:hover { background:var(--film-wash); text-decoration:none; }
.me .mm-email { padding:9px 12px 6px; font-size:13px; color:var(--film-t50); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.me .mm-admin summary { justify-content:space-between; color:var(--film-t70); }
.me .mm-admin summary::after { content:"›"; }
.me .mm-admin[open] summary::after { transform:rotate(90deg); }
.me .mm-admin a { display:block; padding-left:24px; }
.me nav a.mm-narrow, .me-narrow { display:none; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  height:34px; padding:0 16px; border-radius:var(--ox-radius-md);
  border:1px solid var(--ox-border-default); background:var(--ox-bg-base);
  font-size:14px; font-weight:500; cursor:pointer; transition:background var(--ox-duration-base) var(--ox-ease);
}
.btn:hover { background:var(--ox-bg-muted); }
.btn-dark { background:var(--ox-accent); border-color:var(--ox-accent); color:var(--ox-text-inverse); }
.btn-dark:hover { background:var(--ox-accent-hover); }
.btn-ghost { border-color:transparent; background:none; }
.btn-ghost:hover { background:var(--ox-bg-muted); }
.iconbtn {
  display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px;
  border:0; background:none; border-radius:var(--ox-radius-sm); color:var(--ox-text-tertiary); cursor:pointer;
}
.iconbtn:hover { background:var(--ox-bg-muted); color:var(--ox-text-primary); }
.iconbtn.on { background:var(--ox-bg-emphasis); color:var(--ox-text-primary); }

/* ── landing ───────────────────────────────────────────────────────────────── */
.hero {
  display:grid; grid-template-columns:1fr 1fr; gap:88px; align-items:center;
  max-width:1280px; margin:0 auto; padding:56px 40px 72px;
  min-height:calc(100vh - var(--ox-topbar-height));
}
.hero > * { min-width:0; }
/* Two lines, and the <br> decides where. At 60px "Unlock precision data" is
   ~655px against a ~556px column, so it wrapped itself into three. Sized to
   fit the narrower line with headroom, and clamped so it holds as the column
   moves. No text-wrap:balance -- the break is explicit, and balance re-wraps
   around it. */
.hero-headline {
  font-size:clamp(30px, 3.6vw, 46px); font-weight:700; line-height:1.08;
  letter-spacing:-.03em; color:var(--ink); margin:0 0 20px; text-wrap:nowrap;
}
.hero-subhead { font-size:18px; line-height:1.65; color:var(--muted); max-width:520px; margin:0 0 40px; }
.hero-search { width:100%; max-width:500px; }

/* two-deck search box */
.searchbox {
  position:relative; border:1px solid var(--ox-border-default);
  border-radius:var(--ox-radius-md); background:var(--ox-bg-base);
}
.hero-search .searchbox { border-color:#333; }
.searchbox-q { display:flex; align-items:center; padding:12px 14px 4px; }
.searchbox-q input {
  flex:1; min-width:0; border:0; background:none; outline:none;
  font-size:19px; line-height:28px; letter-spacing:-.01em;
}
.searchbox-q input::placeholder { color:var(--ox-text-muted); }
.searchbox-foot { display:flex; align-items:center; gap:8px; padding:4px 10px 10px 14px; }
.entity-select {
  display:inline-flex; align-items:center; gap:4px; border:0; background:none; cursor:pointer;
  font-size:17px; padding:4px 6px; border-radius:var(--ox-radius-sm); color:var(--ox-text-primary);
}
.entity-select:hover { background:var(--ox-bg-muted); }
.searchbox-foot .spacer { flex:1; }
.searchbox-foot .btn-dark { height:38px; padding:0 22px; font-size:16px; font-weight:600; border-radius:var(--ox-radius-md); }

/* typeahead */
.typeahead {
  position:absolute; left:0; right:0; top:calc(100% + 8px); z-index:200;
  background:var(--ox-bg-base); border:1px solid var(--ox-border-default);
  border-radius:var(--ox-radius-md); box-shadow:var(--ox-elev-overlay); overflow:hidden;
}
.ta-row {
  display:flex; align-items:center; gap:14px; width:100%; padding:10px 18px;
  border:0; background:none; text-align:left; cursor:pointer; font-size:17px; color:var(--ox-text-primary);
}
.ta-row:hover, .ta-row.active { background:var(--ox-bg-muted); }
.ta-row svg { flex:none; color:var(--ox-text-muted); }
.ta-row .ta-label { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ta-enter { border-top:1px solid var(--ox-border-subtle); }
.ta-enter em { font-style:italic; }
.keycap {
  border:1px solid var(--ox-border-default); border-radius:var(--ox-radius-xs);
  padding:1px 8px; font-size:12px; color:var(--ox-text-tertiary); background:var(--ox-bg-base);
}

/* live feed */
.hero-viz { display:flex; flex-direction:column; align-self:stretch; padding:6vh 0; min-height:520px; }
.added {
  display:grid; grid-template-columns:18px minmax(0,1fr); column-gap:8px; align-items:center;
  font-size:13px; font-weight:500; letter-spacing:.08em; text-transform:uppercase; color:var(--faint);
  padding:0 2px 12px; border-bottom:1px solid #d4d4d8; background:var(--ox-bg-base);
  position:relative; z-index:2; box-shadow:0 5px 6px -5px rgba(0,0,0,.10);
}
.added b { color:var(--muted); font-weight:500; font-variant-numeric:tabular-nums; }
.live-dot { width:7px; height:7px; border-radius:50%; background:#43a047; justify-self:center; animation:pulse 2s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow:0 0 0 0 rgba(67,160,71,.5); }
  70% { box-shadow:0 0 0 8px rgba(67,160,71,0); }
  100% { box-shadow:none; }
}
.front-totals { border-collapse:collapse; margin-top:18px; width:100%; font-size:15px; }
.front-totals th { text-align:left; font-weight:400; color:var(--muted); padding:9px 2px; border-bottom:1px solid var(--ox-border-subtle); }
.front-totals td { text-align:right; font-variant-numeric:tabular-nums; color:var(--ink); padding:9px 2px; border-bottom:1px solid var(--ox-border-subtle); }
.feedport { flex:1; min-height:0; overflow:hidden; position:relative; }
.feedport::before, .feedport::after { content:''; position:absolute; left:0; right:0; height:15%; z-index:1; pointer-events:none; }
.feedport::before { top:0; background:linear-gradient(180deg,#fff,rgba(255,255,255,0)); }
.feedport::after { bottom:0; background:linear-gradient(0deg,#fff,rgba(255,255,255,0)); }
.belt { position:absolute; top:0; left:0; width:100%; will-change:transform; animation:belt 150s linear infinite; }
.feedport:hover .belt { animation-play-state:paused; }
@keyframes belt { from { transform:translateY(0); } to { transform:translateY(-50%); } }
.item {
  display:grid; grid-template-columns:22px minmax(0,1fr) 62px; gap:3px 10px;
  padding:15px 2px; border-top:1px solid var(--hair); align-items:start;
}
.item .eyebrow {
  grid-column:2; grid-row:1; justify-self:start; font-size:10px; letter-spacing:.07em;
  text-transform:uppercase; color:var(--ink);
}
.item .lead { grid-column:1; grid-row:2; padding-top:4px; color:var(--ink); }
.item .t {
  grid-column:2; grid-row:2; font-size:16px; line-height:1.4; color:#2563eb; text-align:left;
  border:0; background:none; padding:0; cursor:pointer;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden;
}
.item .t:hover { text-decoration:underline; }
/* The belt's third column carries the score that put the row on it -- a
   military-relevance total, a CARVER out of 30, an award in CNY -- so the
   number rides in the badge the column already draws. 12px because ¥29.3M
   is six characters and the track is 62px. */
.item .pdf {
  grid-column:3; grid-row:2; justify-self:end; font-size:12px; font-weight:600; color:var(--ink);
  border:1px solid var(--ink); border-radius:var(--ox-radius-sm); padding:3px 7px; white-space:nowrap;
}
.item .pdf:hover { background:var(--ink); color:#fff; text-decoration:none; }
.item .by { grid-column:2; grid-row:3; font-size:14px; line-height:1.55; color:var(--ink); }
.item .by .w { font-weight:600; }
.w-author { color:var(--w-author); }
.w-source { color:var(--w-source); }
.hero { position:relative; }
.hero-learnmore {
  position:absolute; bottom:20px; left:50%; transform:translateX(-50%);
  display:inline-flex; align-items:center; gap:2px; color:var(--muted); font-size:15px;
}

/* ── SERP ──────────────────────────────────────────────────────────────────── */
.serp { display:grid; grid-template-columns:var(--ox-rail-width) minmax(0,1fr); align-items:start; }
.rail {
  position:sticky; top:var(--ox-topbar-height); height:calc(100vh - var(--ox-topbar-height));
  overflow-y:auto; padding:10px 14px 60px; background:var(--ox-bg-base);
}
.rail-tools { display:flex; align-items:center; justify-content:center; gap:12px; padding:2px 0 10px; }
.facet {
  border:1px solid var(--ox-border-default); border-radius:var(--ox-radius-md);
  margin-bottom:12px; background:var(--ox-bg-base); box-shadow:var(--ox-elev-1);
}
.facet-head { display:flex; align-items:center; gap:8px; padding:8px 8px 8px 6px; }
.facet-head .grip { color:var(--ox-text-disabled); cursor:grab; }
.facet-head h3 { flex:1; margin:0; font-size:15px; font-weight:500; letter-spacing:-.005em; }
.facet-body { padding:0 14px 14px; }
.facet-row {
  display:grid; grid-template-columns:20px minmax(0,1fr) auto; gap:10px; align-items:start;
  width:100%; border:0; background:none; text-align:left; padding:5px 4px; margin:0 -4px;
  border-radius:var(--ox-radius-xs); cursor:pointer; font-size:14px; line-height:20px;
}
.facet-row:hover { background:var(--ox-bg-muted); }
.facet-row.selected { background:var(--ox-bg-emphasis); }
.facet-row .cnt { color:var(--ox-text-secondary); font-variant-numeric:tabular-nums; }
.facet-row .box {
  width:17px; height:17px; margin-top:2px; border:1.6px solid var(--ox-text-tertiary);
  border-radius:3px; display:flex; align-items:center; justify-content:center; color:#fff;
}
.facet-row.on .box { background:var(--ox-accent); border-color:var(--ox-accent); }
/* A network a signed-out reader cannot open: listed and sized, dimmed, and a link to the login. */
.facet-row.locked { color:var(--ox-text-muted); }
.facet-row.locked .box { border:0; color:var(--ox-text-muted); }
.facet-row.locked .cnt { color:var(--ox-text-muted); }
.facet-row .radio {
  width:26px; height:26px; border-radius:50%; border:2px solid var(--ox-accent);
  display:flex; align-items:center; justify-content:center; margin-top:-2px;
}
.facet-row .radio::after { content:''; width:13px; height:13px; border-radius:50%; background:var(--ox-accent); }
.facet-more {
  border:0; background:none; color:var(--ox-text-tertiary); font-size:14px;
  cursor:pointer; padding:4px 0 0; margin-left:auto; display:block;
}
.facet-more:hover { color:var(--ox-text-primary); text-decoration:underline; }
.facet-empty { color:var(--ox-text-muted); font-size:13px; padding:4px 0; }

/* year histogram + range */
.hist { display:flex; align-items:flex-end; gap:2px; height:74px; padding:0 2px; }
.hist span { flex:1; background:#bdbdbd; border-radius:1px 1px 0 0; min-height:1px; }
.hist span.dim { background:#ededed; }
.range { position:relative; height:26px; margin:10px 2px 0; }
.range-track { position:absolute; left:0; right:0; top:11px; height:2px; background:var(--ox-border-strong); border-radius:2px; }
.range-fill { position:absolute; top:9px; height:6px; background:var(--ox-accent); border-radius:3px; }
.range-knob {
  position:absolute; top:5px; width:15px; height:15px; margin-left:-7.5px; border-radius:50%;
  background:var(--ox-accent); border:0; padding:0; cursor:grab; touch-action:none;
}
.range-knob:active { cursor:grabbing; }
.range-labels {
  display:flex; justify-content:space-between; font-size:13px; color:var(--ox-text-secondary);
  font-variant-numeric:tabular-nums; padding:0 2px;
}
.facet-note { margin-top:6px; padding:0 2px; font-size:12px; color:var(--ox-text-muted); font-variant-numeric:tabular-nums; }

/* main column */
.main { padding:12px 22px 80px; max-width:1320px; }
.modebar { display:flex; align-items:center; gap:2px; padding:0 4px 8px; }
.modetab {
  border:0; background:none; padding:5px 14px; border-radius:var(--ox-radius-sm);
  font-size:14px; cursor:pointer; color:var(--ox-text-secondary);
}
.modetab:hover { background:var(--ox-bg-muted); }
.modetab.on { background:var(--ox-bg-emphasis); color:var(--ox-text-primary); }
.modebar .spacer { flex:1; }

.serp-input { border:1px solid var(--ox-border-default); border-radius:var(--ox-radius-md); background:var(--ox-bg-base); box-shadow:var(--ox-elev-1); }
.serp-input-top { position:relative; display:flex; align-items:center; gap:10px; padding:9px 12px 9px 14px; }
.serp-input-top input { flex:1; min-width:0; border:0; background:none; outline:none; font-size:16px; }
.chiprow { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:0 12px 12px 14px; }
.fchip {
  display:inline-flex; align-items:center; gap:7px; height:34px; padding:0 13px;
  border-radius:var(--ox-radius-md); border:1px solid var(--ox-border-default);
  background:var(--ox-bg-base); font-size:14px; cursor:pointer; white-space:nowrap;
}
.fchip:hover { background:var(--ox-bg-muted); }
.fchip.on { background:var(--ox-accent); border-color:var(--ox-accent); color:var(--ox-text-inverse); }
.fchip.on:hover { background:var(--ox-accent-hover); }
.fchip .x { display:inline-flex; opacity:.8; }
.fchip .x:hover { opacity:1; }
.chiprow .more { border:0; background:none; color:var(--ox-text-secondary); cursor:pointer; padding:0 6px; font-size:14px; }
.chiprow .more:hover { color:var(--ox-text-primary); }

/* advanced builder */
.builder { border:1px solid var(--ox-border-default); border-radius:var(--ox-radius-md); box-shadow:var(--ox-elev-1); overflow:hidden; }
.builder-head { display:flex; align-items:center; gap:10px; padding:10px 14px; border-bottom:1px solid var(--ox-border-subtle); }
.builder-head .ent {
  display:inline-flex; align-items:center; gap:5px; border:0; background:none; cursor:pointer;
  font-size:15px; padding:3px 8px; border-radius:var(--ox-radius-sm);
}
.builder-head .ent:hover { background:var(--ox-bg-muted); }
.builder-head .where { color:var(--ox-text-muted); font-size:15px; }
.blines { padding:12px 14px 14px; display:flex; flex-direction:column; gap:7px; }
.bline { display:flex; align-items:center; gap:6px; font-size:13px; }
.bline .ln { width:16px; text-align:right; color:#c98a3c; font-variant-numeric:tabular-nums; flex:none; }
.brick {
  display:inline-flex; align-items:center; gap:6px; height:26px; padding:0 10px; border-radius:var(--ox-radius-xs);
  border:0; font-size:13px; font-family:var(--ox-font-mono); cursor:pointer; white-space:nowrap;
}
.brick.prop { background:var(--prop-bg); color:var(--prop-fg); border-top-right-radius:0; border-bottom-right-radius:0; }
.brick.prop.solo { border-radius:var(--ox-radius-xs); }
.brick.op { background:var(--prop-bg); color:var(--prop-fg); margin-left:-4px; }
.brick.val { background:var(--val-bg); color:var(--val-fg); border-radius:13px; padding:0 12px; }
.brick.val:hover { background:var(--val-bg-hov); }
.brick.prop:hover, .brick.op:hover { background:var(--prop-bg-hov); }
.brick.conn { background:none; color:var(--prop-fg); padding:0 2px; cursor:default; font-weight:500; }
.brick.vconn { background:var(--vconn-bg); color:var(--vconn-fg); padding:0 8px; cursor:default; }
.brick.placeholder { background:var(--prop-bg); color:#c98a3c; min-width:150px; font-style:italic; }
.brick input {
  border:0; outline:none; background:transparent; font:inherit; color:inherit;
  min-width:80px; max-width:340px; field-sizing:content;
}
.brick .del { opacity:.55; margin-left:2px; }
.brick .del:hover { opacity:1; }

/* BQL editor */
.bqlbox { border:1px solid var(--ox-border-default); border-radius:var(--ox-radius-md); box-shadow:var(--ox-elev-1); overflow:hidden; }
.bql-tools { display:flex; justify-content:flex-end; gap:2px; padding:6px 8px 0; }
.bql-edit { display:grid; grid-template-columns:44px minmax(0,1fr); background:var(--ox-bg-base); }
.bql-gutter {
  padding:10px 10px 16px 0; text-align:right; color:var(--ox-text-disabled);
  font-family:var(--ox-font-mono); font-size:13px; line-height:24px; user-select:none;
  background:var(--ox-bg-subtle); border-right:1px solid var(--ox-border-subtle);
}
.bql-edit textarea {
  border:0; outline:none; resize:none; padding:10px 14px 16px; min-height:240px;
  font-family:var(--ox-font-mono); font-size:13px; line-height:24px; background:none;
  white-space:pre; overflow-x:auto;
}
.bql-foot { display:flex; align-items:center; padding:10px 14px 14px; }
.validity {
  display:inline-flex; align-items:center; gap:6px; height:28px; padding:0 12px;
  border-radius:var(--ox-radius-pill); font-family:var(--ox-font-mono); font-size:12px;
  background:var(--ox-success-bg); color:var(--ox-success-fg); border:1px solid var(--ox-success-border);
}
.validity.bad { background:var(--ox-danger-bg); color:var(--ox-danger-fg); border-color:var(--ox-danger-border); }
.bql-foot .spacer { flex:1; }

/* results */
.results { margin-top:18px; border:1px solid var(--ox-border-default); border-radius:var(--ox-radius-md); box-shadow:var(--ox-elev-1); }
.results-head { display:flex; align-items:center; gap:10px; padding:11px 14px; border-bottom:1px solid var(--ox-border-subtle); }
.results-head .count { font-size:15px; font-weight:500; }
.results-head .spacer { flex:1; }
.res {
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 14px; align-items:start;
  padding:14px 16px; border-bottom:1px solid var(--ox-border-subtle);
}
.res:last-child { border-bottom:0; }
.res:hover { background:var(--ox-bg-subtle); }
.res .rt {
  grid-column:1; border:0; background:none; padding:0; text-align:left; cursor:pointer;
  font-size:16px; line-height:1.4; color:var(--ox-link);
}
.res .rt:hover { text-decoration:underline; }
.res .pdf {
  grid-column:2; grid-row:1; align-self:start; font-size:12px; font-weight:600; letter-spacing:.02em;
  border:1px solid var(--ox-border-strong); border-radius:var(--ox-radius-sm); padding:3px 9px; color:var(--ox-text-primary);
}
.res .pdf:hover { background:var(--ox-accent); border-color:var(--ox-accent); color:#fff; text-decoration:none; }
.res .meta { grid-column:1; font-size:14px; color:var(--ox-text-secondary); }
.res .meta em { font-style:italic; }
.res .meta .dot { color:var(--ox-text-disabled); padding:0 2px; }
.res .meta .cites { display:inline-flex; align-items:center; gap:4px; color:var(--ox-text-tertiary); }

.rtable { width:100%; border-collapse:collapse; font-size:14px; }
.rtable th {
  text-align:left; font-weight:400; color:var(--ox-text-tertiary); font-size:13px;
  padding:9px 12px; border-bottom:1px solid var(--ox-border-subtle); white-space:nowrap;
}
.rtable td { padding:9px 12px; border-bottom:1px solid var(--ox-border-subtle); vertical-align:top; }
.rtable tr:last-child td { border-bottom:0; }
.rtable tbody tr:hover { background:var(--ox-bg-muted); }
.rtable .c-title button { border:0; background:none; padding:0; text-align:left; color:var(--ox-link); cursor:pointer; font-size:14px; line-height:1.4; }
.rtable .c-title button:hover { text-decoration:underline; }
.rtable .c-num { text-align:right; font-variant-numeric:tabular-nums; }
.rtable .c-bool { text-align:center; }
.rtable .c-check { width:34px; }
.tablewrap { overflow-x:auto; }
.cbox {
  width:17px; height:17px; border:1.6px solid var(--ox-text-tertiary); border-radius:3px;
  display:inline-flex; align-items:center; justify-content:center; background:none;
  padding:0; cursor:pointer; color:#fff; vertical-align:-3px;
}
.cbox.on { background:var(--ox-accent); border-color:var(--ox-accent); }

.pager { display:flex; align-items:center; justify-content:center; gap:4px; padding:14px; }
.pager button {
  min-width:32px; height:32px; border:0; background:none; border-radius:var(--ox-radius-sm);
  cursor:pointer; font-size:14px; font-variant-numeric:tabular-nums;
}
.pager button:hover:not(:disabled) { background:var(--ox-bg-muted); }
.pager button.on { background:var(--ox-accent); color:var(--ox-text-inverse); }
.pager button:disabled { color:var(--ox-text-disabled); cursor:default; }
.noresults { padding:40px 16px; text-align:center; color:var(--ox-text-tertiary); }

/* ── menus ─────────────────────────────────────────────────────────────────── */
.menu {
  position:fixed; z-index:500; min-width:210px; max-height:340px; overflow-y:auto;
  background:var(--ox-bg-base); border:1px solid var(--ox-border-default);
  border-radius:var(--ox-radius-lg); box-shadow:var(--ox-elev-overlay); padding:6px;
}
.menu button {
  display:flex; align-items:center; gap:10px; width:100%; padding:7px 10px; border:0; background:none;
  border-radius:var(--ox-radius-md); text-align:left; cursor:pointer; font-size:14px; white-space:nowrap;
}
.menu button:hover { background:var(--ox-bg-muted); }
.menu button svg { flex:none; color:var(--ox-text-tertiary); }
.menu .sep { height:1px; background:var(--ox-border-subtle); margin:5px 2px; }
.menu .mcheck { margin-left:auto; color:var(--ox-text-primary); opacity:0; }
.menu button.sel .mcheck { opacity:1; }
.menu input.mfilter {
  width:100%; border:1px solid var(--ox-border-default); border-radius:var(--ox-radius-sm);
  padding:6px 9px; margin-bottom:5px; outline:none; font-size:14px;
}
.menu input.mfilter:focus { border-color:var(--ox-border-strong); }

/* ── drawer ────────────────────────────────────────────────────────────────── */
.scrim { position:fixed; inset:0; background:rgba(0,0,0,.32); z-index:300; }
.drawer {
  position:fixed; top:0; right:0; bottom:0; width:50vw; z-index:400;
  background:var(--ox-bg-base); box-shadow:var(--ox-elev-overlay); overflow-y:auto;
  animation:slidein 200ms var(--ox-ease);
}
@keyframes slidein { from { transform:translateX(30px); opacity:.4; } to { transform:none; opacity:1; } }
.drawer-inner { padding:22px 34px 80px; }
.drawer-eyebrow { display:flex; align-items:center; gap:7px; color:var(--ox-text-tertiary); font-size:14px; }
.drawer h1 { font-size:36px; font-weight:700; line-height:1.18; letter-spacing:-.02em; margin:14px 0 20px; text-wrap:balance; }
.drawer-actions { display:flex; gap:10px; margin-bottom:22px; }
.drawer hr { border:0; border-top:1px solid var(--ox-border-subtle); margin:20px 0; }
.drow { font-size:15px; line-height:1.6; margin-bottom:5px; }
.drow b { font-weight:600; }
.drow .more { border:0; background:none; color:var(--ox-link); font-weight:600; cursor:pointer; padding:0 0 0 4px; }
.drawer-close { position:sticky; top:0; float:right; }
@media (max-width:900px) {
  /* minmax(0, 1fr), not bare 1fr: a plain 1fr track still floors at its
     content's min-content width, so one long facet row or result line would
     force this whole column -- and the page -- wider than the viewport. */
  .serp { grid-template-columns:minmax(0,1fr); }
  .rail { position:static; height:auto; }
  .hero { grid-template-columns:1fr; gap:40px; padding:32px 20px 48px; min-height:0; }
  .hero-headline { font-size:clamp(28px, 7vw, 40px); }
  .drawer { width:90vw; }
}
@media (max-width:640px) {
  .topbar { gap:12px; padding:0 16px; }
  .nav, .topbar-right { display:none; }
  .me nav a.mm-narrow, .me-narrow { display:block; }
  .me-narrow summary { padding:7px; }
}
@media (prefers-reduced-motion:reduce) {
  .belt { animation:none; }
  .live-dot { animation:none; }
  .drawer { animation:none; }
}

/* ── server-rendered chrome ───────────────────────────────────────────────────
 * Every control on the SERP is a link or a form field, not a scripted button:
 * a filter IS a URL here, so the browser's own history, back button and
 * open-in-new-tab work on facets for free. These rules stop the global link
 * color from painting that chrome blue, and restore the metrics the
 * button-based originals carried.
 * ------------------------------------------------------------------------- */
.facet-row, .fchip, .modetab, .brick, .iconbtn, .pager a, .sortmenu a, .ta-row {
  text-decoration: none;
  color: inherit;
}
.facet-row:hover, .fchip:hover, .modetab:hover, .brick:hover,
.iconbtn:hover, .pager a:hover, .ta-row:hover { text-decoration: none; }
.brick.val { color: var(--val-fg); }
.brick.prop, .brick.op, .brick.conn, .brick.placeholder { color: var(--prop-fg); }
.fchip.on { color: var(--ox-text-inverse); }
.res .rt, .rtable .c-title a, .item .t { color: var(--ox-link); }

/* The entity picker, on the same panel as the typeahead it sits above. It was
   a native <select>, whose list is drawn by the operating system -- dark, in
   its own type, at its own corner radius, three pixels under a white overlay
   that matched none of it. */
.typemenu { position:relative; }
.typemenu > summary { list-style:none; }
.typemenu > summary::-webkit-details-marker { display:none; }
.typemenu > summary svg { color:var(--ox-text-tertiary); }
.typemenu[open] > summary svg { transform:rotate(180deg); }
/* .menu-inline anchors right; this one hangs off the left edge of its own
   summary, which is where the control is. */
.typemenu .menu { top:calc(100% + 6px); left:0; right:auto; min-width:190px; }
.tmrow {
  display:flex; align-items:center; gap:10px; padding:7px 10px;
  border-radius:var(--ox-radius-md); cursor:pointer; font-size:15px; white-space:nowrap;
}
.tmrow:hover { background:var(--ox-bg-muted); }
/* The check follows the radio itself, so it cannot drift out of step with
   what will actually be submitted. */
.tmrow input { position:absolute; opacity:0; pointer-events:none; }
.tmrow .mcheck { margin-left:auto; color:var(--ox-text-primary); opacity:0; }
.tmrow:has(input:checked) .mcheck { opacity:1; }
.tmrow:has(input:focus-visible) { outline:2px solid var(--ink); outline-offset:-2px; }
.searchbox-foot input[type="submit"] { height: 38px; padding: 0 22px; font-size: 16px; font-weight: 600; }
.searchbox-q input[type="search"] { appearance: none; }
.searchbox-q input::-webkit-search-cancel-button { display: none; }

/* pager, as links */
.pager a, .pager .gap {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; border-radius: var(--ox-radius-sm);
  font-size: 14px; font-variant-numeric: tabular-nums;
}
.pager a:hover { background: var(--ox-bg-muted); }
.pager a.on, .pager a.on:hover { background: var(--ox-accent); color: var(--ox-text-inverse); }
.pager a.disabled, .pager .gap { color: var(--ox-text-disabled); pointer-events: none; }

/* sort menu — a <details> popover, no script */
.sortmenu { position: relative; }
.sortmenu > summary { list-style: none; cursor: pointer; }
.sortmenu > summary::-webkit-details-marker { display: none; }
.menu-inline {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 500; min-width: 230px;
  background: var(--ox-bg-base); border: 1px solid var(--ox-border-default);
  border-radius: var(--ox-radius-lg); box-shadow: var(--ox-elev-overlay); padding: 6px;
}
.menu-inline a {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  border-radius: var(--ox-radius-md); font-size: 14px; white-space: nowrap;
}
.menu-inline a:hover { background: var(--ox-bg-muted); }
.menu-inline .mcheck { margin-left: auto; opacity: 0; }
.menu-inline a.sel .mcheck { opacity: 1; }

/* the drawer's scrim is a link, so it needs a box to cover the page with */
a.scrim { display: block; }

/* the landing feed's controlled badge sits where the mock put its PDF pill */
.item .pdf, .res .pdf { font-variant-numeric: tabular-nums; }

/* ── the door ────────────────────────────────────────────────────────────────
 * Sign-in and password reset. Same tokens as the search, one narrow column.
 * ------------------------------------------------------------------------- */
.auth { max-width: 380px; margin: 0 auto; padding: 72px 24px 120px; }
.auth .wordmark { height: 26px; width: auto; color: var(--ink); display: block; }
.auth h1 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin: 28px 0 24px; }
.auth form { display: flex; flex-direction: column; gap: 6px; }
.auth label {
  font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ox-text-tertiary); margin-top: 14px;
}
.auth input[type="email"], .auth input[type="password"] {
  width: 100%; padding: 10px 13px; border: 1px solid var(--ox-border-default);
  border-radius: var(--ox-radius-md); background: var(--ox-bg-base); font-size: 15px; outline: none;
}
.auth input:focus { border-color: var(--ox-border-strong); box-shadow: var(--ox-focus-ring); }
.auth input[type="submit"] { margin-top: 26px; width: 100%; height: 40px; cursor: pointer; }
.auth-aside { margin-top: 20px; font-size: 14px; color: var(--ox-text-tertiary); }

/* how many records carry a suggested name -- the pair a search will show */
.ta-count {
  flex: none; font-size: 12px; color: var(--ox-text-muted);
  font-variant-numeric: tabular-nums;
}

/* ── the address/footprint map ─────────────────────────────────────────────
 * Two panes of the canvas grid reused as-is (the list, the stage); the third
 * (detail) isn't needed here because there's nothing per-point to page
 * between -- the list row already carries every fact, and the map only adds
 * where it sits. */
.geo-grid { grid-template-columns:var(--ox-rail-width) minmax(0,1fr); }
.geo-stage { background:var(--ox-bg-muted); }
.geo-map { position:absolute; inset:0; }
.georow { cursor:pointer; }
.geo-source { font-family:var(--ox-font-mono); font-size:12px; color:var(--ox-text-muted); }
.geo-flag { font-weight:500; }
.geo-flag.geo-ok { color:var(--ox-success-fg); }
.geo-flag.geo-no_footprint { color:var(--ox-danger-fg); }
.geo-flag.geo-no_match { color:var(--ox-text-muted); }
@media (max-width:900px) { .geo-grid { grid-template-columns:1fr; } }

/* ── the document reader ────────────────────────────────────────────────── */
/* A mention edge cites a passage, and a citation a reader cannot open is one
 * they have to take on trust. Only the public-domain tier reaches this page:
 * `document_chunks` holds no other, so there is nothing here to gate. */
.document { max-width: 46rem; margin: 0 auto; padding: 32px 24px 96px; }
.document-head { border-bottom: 1px solid var(--ox-border-default); padding-bottom: 20px; margin-bottom: 8px; }
.document-head h1 { font-size: 26px; line-height: 1.25; margin: 16px 0 8px; }
.document-meta { color: var(--ox-text-muted); font-size: 13px; margin: 0; }

.document-file { width: 100%; height: 82vh; border: 1px solid var(--ox-border-default);
                 border-radius: var(--ox-radius-md); background: var(--ox-bg-subtle);
                 display: block; margin: 16px 0 8px; }
.document-file p { padding: 24px; }

.passage { display: grid; grid-template-columns: 64px 1fr; gap: 16px;
           padding: 14px 12px; border-radius: var(--ox-radius-md);
           scroll-margin-top: calc(var(--ox-topbar-height) + 24px); }
.passage p { margin: 0; line-height: 1.7; color: var(--ox-text-secondary); white-space: pre-wrap; }
.passage-page { font-family: var(--ox-font-mono); font-size: 12px;
                color: var(--ox-text-muted); padding-top: 4px; text-align: right; }

/* The passage the edge was built from. Marked by weight and a rule, not by a
 * colour wash: the reader arrived here to read it, not to be told where it is. */
.passage.cited { background: var(--ox-bg-subtle); box-shadow: inset 3px 0 0 var(--ox-accent); }
.passage.cited p { color: var(--ox-text-primary); }
.passage.cited .passage-page { color: var(--ox-text-primary); font-weight: 600; }

/* ── the pictures ── */
.listing-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 8px 0 4px; }
.listing-shots figure { margin: 0; }
.listing-shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
                     border-radius: var(--ox-radius-sm);
                     border: 1px solid var(--ox-border-default); display: block; }
.listing-shots figcaption { font-size: 11px; line-height: 1.4; margin-top: 4px;
                            color: var(--ox-text-muted); }


/* ── the dual-use grade ─────────────────────────────────────────────────── */
/* How hard the join is, beside the claim it supports. `exact` means an
 * identifier -- a CAGE code, a NIIN -- and `probable` means a name, which is
 * not an identifier. The badge carries the limit so no box has to. */
.grade { font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
         padding: 2px 7px; border-radius: var(--ox-radius-pill);
         border: 1px solid var(--ox-border-default); color: var(--ox-text-tertiary); }
.grade.exact { border-color: var(--ox-success-border); background: var(--ox-success-bg);
               color: var(--ox-success-fg); }


/* ── identifiers ────────────────────────────────────────────────────────── */
/* The number a reader arrived holding. Monospace, because a digit that
 * changes width between rows cannot be compared down a column. */
.ident { display: flex; align-items: baseline; gap: 7px; margin: 2px 0 1px; }
.ident-kind { font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
              color: var(--ox-text-muted); }
.ident-value { font-family: var(--ox-font-mono); font-size: 13px;
               color: var(--ox-text-secondary); }
.ident-value:hover { color: var(--ox-link); }

.idents { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px;
          margin: 10px 0 14px; padding: 12px 14px; border-radius: var(--ox-radius-md);
          background: var(--ox-bg-subtle); }
.idents dt { font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
             color: var(--ox-text-muted); align-self: center; }
.idents dd { margin: 0; font-family: var(--ox-font-mono); font-size: 13px; }

/* /procurement/<id>, the reader: the gist first, in plain English. */
.pc-note { font-size:13px; color:var(--ox-text-muted); }
.pc-col { border:1px solid var(--ox-border-default); border-radius:var(--ox-radius-md); padding:16px; min-width:0; }
.pc-col h2 { font-size:17px; line-height:1.4; margin:0 0 4px; }
.pc-orig { font-size:13px; color:var(--ox-text-muted); }
.pc-gist { display:grid; grid-template-columns:max-content 1fr; gap:6px 16px; margin:16px 0; font-size:15px; }
.pc-gist dt { color:var(--ox-text-muted); }
.pc-gist dd { margin:0; color:var(--ox-text-primary); }
.pc-lang { display:flex; align-items:center; gap:4px; margin:16px 0 4px; }
.pc-lang a { padding:4px 12px; border-radius:var(--ox-radius-pill); font-size:14px; color:var(--ox-text-secondary); text-decoration:none; border:1px solid transparent; }
.pc-lang a.on { border-color:var(--ox-border-default); color:var(--ox-text-primary); background:var(--ox-bg-subtle); }
.pc-lang .pc-note { margin-left:8px; }
@media (max-width:640px) { .pc-gist { grid-template-columns:1fr; gap:2px; } .pc-gist dd { margin-bottom:8px; } }
.pc-named { font-size:14px; margin:8px 0; padding-left:10px; border-left:2px solid var(--ox-accent); }

/* /search?view=procurement (lib/lake_view.php) */
.lv { max-width:960px; margin:0 auto; padding:24px 16px 60px; }
.lv-status { margin:16px 0 4px; font-size:15px; line-height:1.5; color:var(--ox-text-primary); }
.lv-chips { padding:12px 0 0; }
.lv-lists { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:24px; margin-top:20px; }
.lv-list { min-width:0; }
.lv-list h2 { font-size:15px; margin:0; }
.lv-denom { margin:0 0 6px; font-size:13px; color:var(--ox-text-muted); }
.lv-table { width:100%; border-collapse:collapse; font-size:14px; }
.lv-table td { padding:5px 0; border-bottom:1px solid var(--ox-border-subtle); vertical-align:middle; overflow-wrap:anywhere; }
.lv-table a { color:var(--ox-link); text-decoration:none; }
.lv-table a:hover, .lv-table a:focus-visible { text-decoration:underline; }
.lv-n { text-align:right; padding-left:10px; font-variant-numeric:tabular-nums; color:var(--ox-text-secondary); white-space:nowrap; }
.lv-year { width:48px; }
.lv-barcell { padding:0 8px; }
.lv-bar { display:block; height:8px; background:var(--ox-accent); border-radius:var(--ox-radius-xs); }
.lv-results { margin-top:14px; }
.lv-row { grid-template-columns:auto minmax(0,1fr); }
.lv-cb { display:flex; flex-direction:column; align-items:center; gap:2px; padding-top:2px; font-size:12px; color:var(--ox-text-muted); cursor:pointer; }
.lv-cb input:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
.lv-body { display:grid; gap:4px; min-width:0; }
.lv-tr { font-size:12px; color:var(--ox-text-muted); border:1px solid var(--ox-border-subtle); border-radius:var(--ox-radius-pill); padding:0 6px; }
.lv-amount { font-variant-numeric:tabular-nums; }
.lv-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.lv-older { margin-left:auto; }
@media (max-width:720px) { .lv-lists { grid-template-columns:1fr; gap:20px; } }
.lv-dates { display:flex; flex-wrap:wrap; gap:8px 16px; padding-top:10px; font-size:13px; color:var(--ox-text-muted); }
.lv-dates label { display:flex; align-items:center; gap:6px; }
.lv-dates input:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }

/* ── /search: the box and filters on a wash, the list, the open notice beside it ──
   Panes are told apart by background, never by a rule: white controls on the --ox-bg-subtle band, the notice on
   its own wash, white party rows and text inside it. Monochrome: titles are ink, not link blue. */
.sx { max-width:none; padding:0 0 60px; }
.sx-band { background:var(--ox-bg-subtle); padding:20px 16px 14px; }
.sx-band-in, .sx-main { max-width:1240px; margin:0 auto; }
.sx-main { padding:0 16px; }
.sx .searchbox { border-color:transparent; box-shadow:var(--ox-elev-1); max-width:760px; }
.sx-facets { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.sx-band .fchip { border-color:transparent; box-shadow:var(--ox-elev-1); }
.sx-band .fchip.on { box-shadow:none; }
.sx-f { position:relative; }
.sx-f > summary { list-style:none; }
.sx-f > summary::-webkit-details-marker { display:none; }
.sx-f > summary svg { color:currentColor; opacity:.6; }
.sx-f[open] > summary svg { transform:rotate(180deg); }
.sx-menu { position:absolute; top:calc(100% + 6px); left:0; min-width:260px; max-width:min(380px, calc(100vw - 32px)); max-height:380px; border-color:transparent; }
.sx-denom { margin:0; padding:4px 10px 6px; font-size:12px; color:var(--ox-text-muted); }
.sx-mrow { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:7px 10px; border-radius:var(--ox-radius-md); font-size:14px; color:var(--ox-text-primary); text-decoration:none; }
.sx-mrow > span:first-child { min-width:0; overflow-wrap:anywhere; }
a.sx-mrow:hover, a.sx-mrow:focus-visible { background:var(--ox-bg-muted); text-decoration:none; outline:none; }
.sx-mrow.sel { font-weight:600; background:var(--ox-bg-muted); }
.sx-n { font-size:13px; font-weight:400; color:var(--ox-text-muted); font-variant-numeric:tabular-nums; white-space:nowrap; }
.sx-range { display:flex; flex-wrap:wrap; align-items:end; gap:8px 10px; padding:10px 10px 4px; margin-top:4px; background:var(--ox-bg-subtle); border-radius:var(--ox-radius-md); font-size:12px; color:var(--ox-text-muted); }
.sx-range label { display:grid; gap:3px; }
.sx-range input { font-size:13px; padding:4px 6px; border:0; border-radius:var(--ox-radius-sm); background:var(--ox-bg-base); }
.sx-range .btn { height:30px; padding:0 12px; }
.sx-head { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; margin:14px 0 2px; }
.sx-head .lv-status { flex:1; margin:0; min-width:240px; }
.sx .results { border:0; box-shadow:none; margin-top:6px; }
.sx .res { border:0; padding:0; border-radius:var(--ox-radius-md); }
.sx .res:hover { background:var(--ox-bg-subtle); }
.sx .res.open { background:var(--ox-bg-muted); }
.sx-hit { display:grid; gap:4px; padding:12px 14px; color:inherit; text-decoration:none; min-width:0; }
.sx-hit:hover, .sx-hit:focus-visible { text-decoration:none; outline:none; }
.sx-hit:focus-visible { box-shadow:0 0 0 2px var(--ox-accent); border-radius:var(--ox-radius-md); }
.sx .res .rt { color:var(--ox-text-primary); font-weight:500; }
.sx-hit:hover .rt { text-decoration:underline; }
.sx-split { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); gap:20px; align-items:start; }
.sx-doc {
  position:sticky; top:calc(var(--ox-topbar-height) + 12px); max-height:calc(100vh - var(--ox-topbar-height) - 24px); overflow-y:auto;
  margin-top:14px; background:var(--ox-bg-subtle); border-radius:var(--ox-radius-lg);
}
.sx-doc-bar { position:sticky; top:0; z-index:1; display:flex; align-items:center; gap:6px; padding:10px 12px; background:var(--ox-bg-subtle); }
.sx-doc-bar .spacer { flex:1; }
.sx-doc-bar .btn { height:32px; padding:0 12px; }
.sx-doc > .lv-status { padding:0 24px 24px; }
.sx-doc-body { padding:2px 24px 28px; }
.sx-doc-title { margin:0; font-size:20px; font-weight:600; line-height:1.4; letter-spacing:-.01em; color:var(--ink); overflow-wrap:anywhere; }
.sx-doc .pc-orig { margin:6px 0 0; }
.sx-fields { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px 24px; margin:20px 0 0; }
.sx-fields dt { font-size:12px; color:var(--ox-text-muted); }
.sx-fields dd { margin:2px 0 0; font-size:14px; color:var(--ox-text-primary); overflow-wrap:anywhere; }
.sx-sec { margin-top:28px; }
.sx-sec h3 { display:flex; align-items:baseline; gap:8px; margin:0 0 8px; font-size:14px; font-weight:600; }
.sx-lot { margin:12px 0 4px; font-size:12px; color:var(--ox-text-muted); }
.sx-parties { display:grid; gap:2px; }
.sx-party { display:grid; grid-template-columns:120px minmax(0,1fr) auto; gap:12px; align-items:baseline; padding:8px 12px; background:var(--ox-bg-base); font-size:14px; }
.sx-party:first-child { border-radius:var(--ox-radius-md) var(--ox-radius-md) 0 0; }
.sx-party:last-child { border-radius:0 0 var(--ox-radius-md) var(--ox-radius-md); }
.sx-party:only-child { border-radius:var(--ox-radius-md); }
.sx-role { font-size:12px; color:var(--ox-text-muted); }
.sx-pname { min-width:0; overflow-wrap:anywhere; }
.sx-pname a { color:var(--ox-text-primary); text-decoration:none; }
.sx-pname a:hover, .sx-pname a:focus-visible { text-decoration:underline; }
.sx-amt { font-variant-numeric:tabular-nums; color:var(--ox-text-secondary); text-align:right; overflow-wrap:anywhere; max-width:180px; }
.sx-text { padding:16px 18px; background:var(--ox-bg-base); border-radius:var(--ox-radius-md); font-size:14px; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; color:var(--ox-text-secondary); }
.sx-muted { margin:0; font-size:14px; color:var(--ox-text-muted); }
.sx-cite { display:flex; gap:12px; align-items:flex-start; padding:12px 14px; background:var(--ox-bg-base); border-radius:var(--ox-radius-md); }
.sx-cite + .sx-cite { margin-top:8px; }
.sx-cite textarea { flex:1; min-height:7lh; field-sizing:content; margin:0; padding:0; border:0; background:none; resize:vertical; font:inherit; font-size:13px; line-height:1.6; color:var(--ox-text-secondary); overflow-wrap:anywhere; }
.sx-cite textarea:focus { outline:none; color:var(--ox-text-primary); }
.sx-cite:focus-within { box-shadow:inset 0 0 0 1px var(--ox-border-default); }
.sx-cite .btn { flex:none; }
[data-copy]:active, [data-copy-for]:active { transform:scale(.96); }
.btn.copied, .btn.copied:hover { color:var(--ox-success-fg); background:var(--ox-success-bg); }
.sx-land { max-width:720px; margin:0 auto; padding:16vh 16px 60px; }
.sx-land-h { margin:0 0 24px; font-size:clamp(26px, 3.4vw, 38px); font-weight:700; line-height:1.15; letter-spacing:-.03em; color:var(--ink); }
.sx-hero-box { box-shadow:var(--ox-elev-overlay); border-color:transparent; }
.sx-try { display:flex; flex-wrap:wrap; gap:8px; margin-top:22px; }
.sx-try .fchip { border-color:transparent; background:var(--ox-bg-muted); }
.sx-try .fchip:hover { background:var(--ox-bg-emphasis); }
@media (max-width:900px) {
  .sx-split { display:block; }
  .sx-doc { position:fixed; inset:var(--ox-topbar-height) 0 0 0; max-height:none; margin:0; border-radius:0; z-index:400; }
  .sx-fields { grid-template-columns:minmax(0,1fr); }
  .sx-party { grid-template-columns:minmax(0,1fr) auto; }
  .sx-role { grid-column:1 / -1; }
}

/* ── /search/canvas: the notices and the parties they name, on a wash ── */
.cv { --cv-h:calc(100vh - var(--ox-topbar-height) - 72px); padding:12px 16px 16px; }   /* the canvas fills the window under the bar */
.cv-bar { padding:0 0 10px; background:none; position:static; }
.cv-bar .lv-status { margin:0; font-size:14px; color:var(--ox-text-tertiary); }
.cv-stage { background:var(--ox-bg-subtle); border-radius:var(--ox-radius-lg); }
.cv-stage svg { display:block; width:100%; height:var(--cv-h); min-height:420px; }
.cv-edge { fill:none; stroke:var(--ox-border-strong); stroke-width:1.2; }
.cv-edge.cv-other { stroke-dasharray:4 3; }
.cv-node rect, .cv-node circle { fill:var(--ox-text-primary); }
.cv-node.cv-other circle { fill:var(--ox-bg-subtle); stroke:var(--ox-text-primary); stroke-width:1.5; }
.cv-node text { font-size:12px; fill:var(--ox-text-secondary); text-anchor:end; }
.cv-node.cv-winner text { text-anchor:start; }
.cv-label { font-size:11px; fill:var(--ox-text-muted); }
.cv-notice rect { fill:var(--ink); }
.cv-notice text { font-size:13px; font-weight:600; fill:var(--ox-text-inverse); text-anchor:middle; }
.cv-notice .cv-sub { font-size:11px; font-weight:400; fill:var(--ox-text-disabled); }
.sx .btn-ghost, .cv .btn-ghost { color:var(--ox-text-primary); }
.sx .results { margin-left:-14px; margin-right:-14px; }
.sx-split .results { margin-right:0; }
.sx-menu { max-height:min(460px, 70vh); }
.sx-range { display:grid; grid-template-columns:1fr 1fr; }
.sx-range input { width:100%; min-width:0; }
.sx-range .btn { grid-column:1 / -1; margin-bottom:6px; }
.sx-menu { min-width:290px; }
.sx-range .btn-dark { justify-content:center; background:var(--ox-accent); color:var(--ox-text-inverse); }
.sx-range .btn-dark:hover { background:var(--ox-accent-hover); }
.sx-selbar { display:flex; align-items:center; gap:10px; margin:8px 0 0; min-height:36px; }
.sx-selbar .spacer { flex:1; }
.sx-selbar .btn { height:32px; padding:0 12px; }
.sx-selbar .btn:disabled { opacity:.35; cursor:default; }
.sx-all { display:inline-flex; align-items:center; gap:8px; font-size:14px; color:var(--ox-text-secondary); cursor:pointer; }
.sx-all input, .sx-cb input { width:16px; height:16px; margin:0; accent-color:var(--ox-accent); cursor:pointer; }
.sx .lv-row { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:start; }
.sx-cb { display:flex; padding:15px 0 0 14px; cursor:pointer; }
.sx-cb + .sx-hit { padding-left:12px; }
.cv-stage svg { touch-action:none; cursor:grab; user-select:none; -webkit-user-select:none; }
.cv-stage svg.grabbing { cursor:grabbing; }
.cv-edge.cv-hot { stroke:var(--ox-text-primary); stroke-width:1.6; }
.cv-node.cv-hot rect, .cv-node.cv-hot circle { fill:var(--ink); }
.cv-node.cv-other.cv-hot circle { fill:var(--ox-bg-subtle); stroke:var(--ink); stroke-width:2; }
.cv-node.cv-hot text { font-weight:600; fill:var(--ox-text-primary); }
.cv-split { position:relative; }   /* the pane floats over the stage's right edge, so the graph never rescales */
@media (min-width:901px) { .cv-split .sx-doc { position:absolute; top:0; right:0; width:400px; height:100%; max-height:none; margin:0; box-shadow:var(--ox-elev-overlay); } }
.cv-split .sx-party { grid-template-columns:minmax(0,1fr) auto; }   /* a 400px pane: the role sits above the name, as on a phone */
.cv-split .sx-role { grid-column:1 / -1; }
.cv-stage a { cursor:pointer; outline:none; }
.cv-stage a:hover text { text-decoration:underline; }
.cv-stage a:focus-visible { outline:2px solid var(--ink); outline-offset:3px; }
.cv-stage .cv-focus > circle.cv-ring, .cv-stage .cv-focus > rect.cv-ring { fill:none; stroke:var(--ink); stroke-width:2; }   /* outranks .cv-node.cv-other.cv-hot circle */
.cv-fig { margin:8px 0 0; font-size:13px; color:var(--ox-text-muted); }
.cv-fig a:not(.btn) { color:var(--ox-text-primary); }
.cv-fig .btn { margin-top:4px; }
.cv-stage svg.cv-lit .cv-edge, .cv-stage svg.cv-lit .cv-node, .cv-stage svg.cv-lit .cv-notice, .cv-stage svg.cv-lit .cv-amt { opacity:.15; }   /* hover: the lit node, its edges and its neighbors stay */
.cv-stage svg.cv-lit .cv-on { opacity:1; }
.cv-stage svg.cv-lit .cv-edge.cv-on { stroke:var(--ink); }
.cv-amt { font-size:10px; fill:var(--ox-text-secondary); text-anchor:middle; font-variant-numeric:tabular-nums; paint-order:stroke; stroke:var(--ox-bg-subtle); stroke-width:3px; stroke-linejoin:round; }
.cv-stage .cv-amt { display:none; }   /* amounts pile up where edges meet: only the lit ones show */
.cv-stage .cv-lit .cv-amt.cv-on { display:inline; }
.sx-pname .pc-orig { display:block; }
.sx-bi { white-space:normal; }
.sx-bi p { margin:0; white-space:pre-wrap; color:var(--ox-text-primary); }
.sx-bi p.pc-orig { margin:2px 0 14px; font-size:13px; color:var(--ox-text-muted); }
.sx-bi p.pc-orig:last-child { margin-bottom:0; }
.cv-views { display:inline-flex; gap:4px; }
.cv-edge.cv-thread { stroke-dasharray:2 4; stroke:var(--ox-text-muted); }
.cv-net-notice rect { fill:var(--ink); }
.cv-net-notice text.cv-sub { fill:var(--ox-text-muted); text-anchor:middle; }
svg.cv-net .cv-node text, svg.cv-net .cv-node.cv-winner text { text-anchor:middle; }
.cv-node text.cv-big { font-size:13px; font-weight:600; fill:var(--ox-text-primary); }
svg.cv-net .cv-node text { font-size:19px; }
svg.cv-net .cv-node text.cv-big { font-size:22px; }
svg.cv-net .cv-net-notice text { display:none; }
svg.cv-net .cv-net-notice.cv-on text, svg.cv-net .cv-net-notice.cv-focus text { display:inline; font-size:17px; }
.cv-node.cv-person path { fill:var(--ox-bg-subtle); stroke:var(--ox-text-secondary); stroke-width:1.5; }
.cv-node.cv-person.cv-hot path { stroke:var(--ink); stroke-width:2; }
.cv-edge.cv-person { stroke:var(--ox-text-muted); stroke-dasharray:2 3; }
.cv-bar .btn, .cv-bar .fchip { white-space:nowrap; }
.cv-bar .lv-status { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* the canvas honeycomb (view=honeycomb, the default): one hex per notice or party; a hover dims the cells it does not link to */
svg.cv-hc .cv-hex text { font-size:10.5px; font-weight:500; text-anchor:middle; fill:var(--ox-text-primary); }
svg.cv-hc .cv-notice polygon { fill:var(--ink); }
svg.cv-hc .cv-notice text { fill:var(--ox-text-inverse); }
svg.cv-hc .cv-buyer polygon { fill:var(--ox-bg-emphasis); }
svg.cv-hc .cv-buyer.cv-hot polygon { fill:var(--ox-border-strong); }
svg.cv-hc .cv-winner polygon { fill:var(--ox-bg-base); stroke:var(--ox-border-strong); stroke-width:1.5; }
svg.cv-hc .cv-winner.cv-hot polygon { stroke:var(--ink); }
svg.cv-hc .cv-other polygon { fill:var(--ox-bg-subtle); stroke:var(--ox-text-muted); stroke-width:1.2; stroke-dasharray:4 3; }
svg.cv-hc .cv-hot text { font-weight:600; }
svg.cv-hc .cv-focus > polygon.cv-ring { fill:none; stroke:var(--ink); stroke-width:2.5; stroke-dasharray:none; }
svg.cv-hc a:hover polygon:not(.cv-ring) { stroke:var(--ink); stroke-width:2; }
svg.cv-hc .cv-wall { stroke:var(--ox-link); stroke-width:4; stroke-linecap:round; }   /* a link between touching cells */
svg.cv-hc .cv-wall.cv-other { stroke-dasharray:6 4; }
svg.cv-hc .cv-edge { display:none; }
svg.cv-hc .cv-edge.cv-show, svg.cv-hc.cv-lit .cv-edge.cv-on { display:inline; stroke:var(--ink); stroke-width:1.4; opacity:1; }   /* a link to a cell apart: hovered or selected only */
.cv-stage svg.cv-hc.cv-lit .cv-wall { opacity:.15; }
.cv-stage svg.cv-hc.cv-lit .cv-wall.cv-on { opacity:1; }
