/* Shared structure for both brands. Brands set the tokens and draw their own
   signature details in brand.css; nothing here names a colour or a font. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font: 400 var(--fs-body, 15px)/1.5 var(--font-ui);
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--select-bg); color: var(--select-ink); }
a { color: var(--link); text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--link-line); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }
p, ol, ul, figure, blockquote { margin: 0; }
mark { background: var(--prov); color: var(--ink); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.wrap { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 20; background: var(--surface); padding: 8px 12px; }
svg { flex: none; }

/* ---- shell ---- */
.top { background: var(--shell); color: var(--shell-ink); }
.top .wrap { display: flex; align-items: center; gap: 8px 28px; min-height: 56px; flex-wrap: wrap; }
.brand, .brand-sub { display: inline-flex; align-items: center; gap: 10px; color: var(--shell-ink); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; margin-left: auto; align-self: stretch; }
.nav a {
  display: inline-flex; align-items: center; padding: 0 12px; min-height: 44px;
  color: var(--shell-muted); text-decoration: none; font: var(--nav-font); letter-spacing: var(--nav-tracking, 0);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.nav a:hover { color: var(--shell-ink); }
.nav a[aria-current="page"] { color: var(--shell-ink); border-bottom-color: var(--nav-current); }

main { padding-bottom: 64px; }
.intro { padding: 36px 0 20px; display: grid; gap: 10px; }
.intro .switch { display: flex; flex-wrap: wrap; gap: 0 22px; margin-bottom: 14px; border-bottom: 1px solid var(--rule); }
.intro .switch a { margin-bottom: -1px; }
.intro .tabs { flex-wrap: wrap; gap: 0 22px; margin-top: 10px; }
.intro h1 { font: var(--h1-weight) var(--h1-size)/1.08 var(--font-display); letter-spacing: var(--h1-tracking); max-width: 30em; }
.lede { font-size: 16.5px; max-width: 66ch; }
.fresh { font-size: 14px; color: var(--muted); }

.fresh b { color: var(--ink); font-weight: 600; }
.crumbs { font-size: 13.5px; color: var(--muted); }
.crumbs a { color: var(--muted); }

.block { padding: 36px 0 0; }
.block-tight { padding: 8px 0 20px; }
.block-head { display: flex; align-items: baseline; gap: 8px 20px; flex-wrap: wrap; margin-bottom: 14px; }
.block-head h2 { font: var(--h2-weight) var(--h2-size)/1.2 var(--font-h2); letter-spacing: var(--h2-tracking, 0); }
.block-head a { margin-left: auto; font-size: 14px; }

/* ---- the working area ---- */
.controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding: 8px 0 14px; }
.switch, .tabs { display: inline-flex; flex-wrap: wrap; gap: 0 22px; }
.switch a, .tabs button { all: unset; cursor: pointer; display: inline-flex; align-items: center; min-height: 40px; border-bottom: 2px solid transparent; font: 600 14px/1 var(--font-ui); color: var(--muted); text-decoration: none; }
.switch a:hover, .tabs button:hover { color: var(--ink); }
.switch a[aria-current="page"], .tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--tab-line); }
.switch a:focus-visible, .tabs button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.latest { margin-top: 18px; font-size: 14px; color: var(--muted); }
.latest a { color: var(--body); }
.field { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.field input {
  font: 600 16px/1 var(--font-ui); font-variant-numeric: tabular-nums; color: var(--ink); width: 104px; padding: 9px 10px; min-height: 40px;
  border: 1px solid var(--rule-2); border-radius: var(--radius-sm); background: var(--surface); text-align: right;
}
.field input:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--body); cursor: pointer; min-height: 40px; }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }

.table-scroll { overflow: auto; max-height: calc(100vh - 24px); background: var(--bg); }
.table-scroll:focus-visible { outline-offset: 3px; }
table.compare { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 940px; font-size: var(--fs-table, 14px); }
.compare th, .compare td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.compare thead th { position: sticky; top: 0; z-index: 3; background: var(--bg); padding: 10px 12px 12px; border-bottom: 1px solid var(--rule-2); vertical-align: bottom; }
.compare thead th.corner { left: 0; z-index: 4; vertical-align: bottom; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.compare tbody th { position: sticky; left: 0; z-index: 2; background: var(--bg); width: 210px; min-width: 180px; padding: 15px 16px 15px 0; font-weight: 600; color: var(--ink); }
.compare tbody th a { color: inherit; text-decoration: none; }
.compare tbody th a:hover { text-decoration: underline; }
.compare tbody th small { display: block; margin-top: 3px; font-weight: 400; color: var(--muted); font-size: 12px; line-height: 1.4; }
.compare tbody[hidden] { display: none; }
.compare tr[hidden] { display: none; }
.ph-name { display: block; color: var(--ink); font-weight: 700; text-decoration: none; line-height: 1.2; }
.ph-name:hover { text-decoration: underline; }
.ph-price { display: inline-block; margin-top: 6px; padding-bottom: 3px; border-bottom: var(--total-rule); color: var(--body); font-weight: 500; font-size: 13.5px; line-height: 1.2; }
.ph-price .plus { color: var(--muted); font-weight: 400; font-size: 12px; }
.ph-price .none { color: var(--muted); font-weight: 400; font-size: 13px; border: 0; }
.compare td { padding: 0; min-width: 112px; }
.cell { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 18px 1fr; column-gap: 8px; align-items: start; width: 100%; min-height: 50px; padding: 15px 12px 13px; cursor: pointer; }
.cell:hover { background: var(--cell-hover); }
.cell:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.cell .mark { width: 18px; height: 18px; }
.cell .term { color: var(--body); line-height: 1.35; overflow-wrap: break-word; }
.stamp { width: 11px; height: 11px; color: var(--stamp); }
.check.bad .stamp, td.stale .stamp { color: var(--warn); }
td.stale .cell { background: var(--stale-bg); }
td.stale .term::after { content: "Under review"; display: block; color: var(--warn-ink); font-size: 12px; }
.mark { color: var(--mark); }
.s-supported .mark, .mark-yes { color: var(--mark-yes); }
.s-partial .mark { color: var(--mark-part); }
.s-not_supported .mark { color: var(--mark-no); }
.s-not_documented .mark { color: var(--mark-nil); }
.legend { list-style: none; padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); }
.legend-note { flex-basis: 100%; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend .mark { width: 16px; height: 16px; }

/* ---- quote card ---- */
.quote-card {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 0; border: 1px solid var(--rule-2); border-radius: var(--radius);
  background: var(--surface); color: var(--body); box-shadow: var(--shadow);
}
.quote-card.anchored { position: fixed; inset: auto; margin: 0; }
.quote-card:popover-open { animation: rise .22s cubic-bezier(.16, 1, .3, 1); }
@keyframes rise { from { transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .quote-card:popover-open { animation: none; } }
.qc-top { display: flex; gap: 10px; align-items: flex-start; padding: 18px 18px 0 20px; }
.qc-top .mark { width: 22px; height: 22px; margin-top: 2px; }
.qc-top b { display: block; color: var(--ink); font-size: 16px; }
.qc-top span { color: var(--muted); font-size: 13.5px; }
.qc-x { all: unset; margin-left: auto; cursor: pointer; color: var(--muted); padding: 6px; border-radius: var(--radius-sm); display: inline-flex; }
.qc-x:hover { color: var(--ink); background: var(--cell-hover); }
.qc-x:focus-visible { outline: 2px solid var(--focus); }
.qc-note { padding: 10px 20px 0; font-size: 14px; }
.qc-q { margin: 14px 20px 0; font-size: 17px; line-height: 1.55; color: var(--ink); }
.qc-none { padding: 14px 20px 0; }
.qc-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 14px 20px 0; font-size: 13px; }
.qc-actions { display: flex; gap: 8px; padding: 16px 20px 18px; margin-top: 16px; border-top: 1px solid var(--hair); }
.qc-actions a, .qc-actions button {
  all: unset; cursor: pointer; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--radius-sm);
  font: 600 14px/1 var(--font-ui); border: 1px solid var(--rule-2); color: var(--ink);
}
.qc-actions a { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.qc-actions a:hover { background: var(--accent-hover); }
.qc-actions button:hover { background: var(--cell-hover); }
.qc-actions :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.cite { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--cite-ink); font: var(--cite-font); border: 1px solid var(--rule-2); border-radius: var(--cite-radius, 99px); padding: 4px 10px; min-height: 28px; }
.cite:hover { border-color: var(--cite-ink); }
.cite-mark { width: 9px; height: 9px; color: var(--cite-mark); }
.check { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.check.ok { color: var(--ok-ink); }
.check.bad { color: var(--warn-ink); }

/* ---- change log ---- */
.changes { list-style: none; padding: 0; display: grid; }
.changes li { display: grid; grid-template-columns: 108px 24px 1fr; gap: 0 14px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.changes time { color: var(--muted); font-size: 13.5px; padding-top: 2px; }
.change-mark { position: relative; display: flex; justify-content: center; }
.what { display: grid; gap: 4px; justify-items: start; }
.what-head { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.what-head a { color: var(--ink); font-weight: 600; text-decoration: none; }
.kind { font: var(--kind-font); letter-spacing: var(--kind-tracking, 0); text-transform: var(--kind-case, none); color: var(--kind-ink); background: var(--kind-bg); padding: 2px 7px; border-radius: 4px; }
.k-rename .kind { background: var(--prov); color: var(--ink); }
.k-price .kind { background: var(--price-bg); color: var(--price-ink); }
.what h3 { font-size: 16px; font-weight: 650; }
.what > p:not(.what-head) { font-size: 14.5px; max-width: 70ch; }

/* ---- prices ---- */
.claim .no-mark { grid-template-columns: 1fr; }
.claim .no-mark small { grid-column: 1; }
.claim h3 small b { color: var(--ink); font-weight: 600; }
.claim h3 small .plus { color: var(--muted); font-weight: 400; }
.note { font-size: 13.5px; color: var(--muted); margin-top: 20px; max-width: 80ch; }

/* ---- claims ---- */
.claims { display: grid; border-top: 1px solid var(--rule); }
.claim { display: grid; grid-template-columns: 260px 1fr; gap: 6px 28px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.claim h2, .claim h3 { display: grid; grid-template-columns: 20px 1fr; column-gap: 8px; font-size: 15.5px; align-content: start; }
.claim :is(h2, h3) .mark { width: 20px; height: 20px; }
.claim :is(h2, h3) a { color: var(--ink); text-decoration: none; }
.claim :is(h2, h3) a:hover { text-decoration: underline; }
.claim :is(h2, h3) small { grid-column: 2; color: var(--muted); font-weight: 400; font-size: 13px; }
.claim blockquote { font-size: 15.5px; line-height: 1.55; color: var(--ink); max-width: 72ch; }
.claim .plain { margin-bottom: 8px; max-width: 72ch; }
.claim .math { font-size: 13.5px; color: var(--muted); }
.claim .none { color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 10px; font-size: 13px; }

/* ---- single claim page ---- */
.claim-page { padding-top: 28px; display: grid; gap: 16px; max-width: 880px; }
.claim-page h1 { font: var(--h1-weight) clamp(28px, 3.4vw, 40px)/1.12 var(--font-display); letter-spacing: var(--h1-tracking); }
.answer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 18px; color: var(--ink); }
.answer .mark { width: 24px; height: 24px; }
.source { display: grid; gap: 12px; padding: 22px 0; border-block: 1px solid var(--rule); }
.source blockquote { font-size: 21px; line-height: 1.5; color: var(--ink); max-width: 60ch; }
.source figcaption { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13.5px; }

/* ---- vendor words ---- */
.search input { font: 400 16px/1 var(--font-ui); padding: 11px 14px; width: min(100%, 420px); min-height: 44px; border: 1px solid var(--rule-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.search input:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.search-empty { color: var(--muted); }
.words { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.word { display: grid; grid-template-columns: 260px 1fr; gap: 6px 28px; padding: 20px 0; border-bottom: 1px solid var(--hair); }
.word[hidden] { display: none; }
.word h2 { font: 650 17px/1.3 var(--font-ui); }
.word > p { grid-column: 1; color: var(--muted); font-size: 13.5px; }
.word ul, .others { grid-column: 2; grid-row: 1 / span 2; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 18px; }
.word li a, .others li a { display: grid; grid-template-columns: 18px 1fr; column-gap: 8px; padding: 6px 0; text-decoration: none; color: inherit; }
.word li a:hover .w-term, .others li a:hover .w-term { text-decoration: underline; }
.word .mark, .others .mark { width: 18px; height: 18px; margin-top: 1px; }
.w-term { color: var(--ink); font-weight: 600; font-size: 15px; }
.w-term.none { color: var(--muted); font-weight: 400; }
.w-who { grid-column: 2; color: var(--muted); font-size: 12.5px; }
.others { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ---- prose ---- */
.prose { max-width: 68ch; display: grid; gap: 14px; font-size: 16px; }
.prose h2 { font: var(--h2-weight) var(--h2-size)/1.25 var(--font-h2); margin-top: 22px; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
.disclose { padding: 14px 16px; border: 1px solid var(--rule-2); border-radius: var(--radius-sm); background: var(--surface); }

/* ---- pitch and footer ---- */
.pitch { background: var(--pitch-bg); color: var(--pitch-ink); padding: 44px 0; }
.pitch .wrap { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; align-items: center; }
.pitch h2 { color: var(--pitch-strong); font: var(--h2-weight) var(--pitch-size, 26px)/1.2 var(--font-h2); max-width: 30ch; }
.pitch p { max-width: 64ch; margin-top: 8px; }
.pitch-go { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm); background: var(--pitch-btn); color: var(--pitch-btn-ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.pitch-go:hover { background: var(--pitch-btn-hover); }
.foot { background: var(--foot-bg); color: var(--foot-ink); padding: 26px 0 36px; font-size: 13.5px; }
.foot .wrap { display: grid; gap: 8px; }
.foot a { color: var(--foot-link); }
.foot b { color: var(--foot-strong); }
.foot .fine { max-width: 82ch; }
.powered { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; color: var(--foot-strong) !important; }

@media (max-width: 760px) {
  .top .wrap { min-height: 48px; column-gap: 0; }
  .nav { margin-left: -10px; width: calc(100% + 20px); overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .nav a { min-height: 42px; padding: 0 10px; }
  .top .brand, .top .brand-sub { min-height: 50px; }
  .nav::-webkit-scrollbar { display: none; }
  .compare td { min-width: 132px; }
  .compare tbody th { width: 124px; min-width: 124px; font-size: 13px; }
  .nav a { white-space: nowrap; }
  .intro { padding-top: 24px; }
  .table-scroll { max-height: none; }
  .compare tbody th small { display: none; }
  .changes li { grid-template-columns: 24px 1fr; }
  .changes time { grid-column: 2; }
  .changes .change-mark { grid-row: 1 / span 2; }
  .claim, .word { grid-template-columns: 1fr; }
  .word ul { grid-column: 1; grid-row: auto; }
  .pitch .wrap { grid-template-columns: 1fr; }
}

/* the kind label on a vendor-word card only matters when a search spans every tab */
.word .w-kind { display: none; font-size: 12px; font-weight: 600; color: var(--muted); }
.searching .word .w-kind { display: block; }
