/* =========================================================================
   watchdog-dashboard.css  -  Flagship Privacy and Terms Watchdog dashboard
   Shared by /Privacy-Watchdog/ and /ToS-Watchdog/ (one canonical dashboard).
   The host page sets --wd-accent / --wd-accent-dark in :root to theme it
   (purple for Privacy, red for ToS). Everything else is shared.
   No em dashes anywhere. Mobile-first, no horizontal scroll.
   ========================================================================= */

:root {
  --wd-accent: #7c3aed;
  --wd-accent-dark: #5b21b6;
  --wd-bg: #f6f8fa;
  --wd-surface: #ffffff;
  --wd-ink: #0f1b2d;
  --wd-ink-soft: #475569;
  --wd-muted: #64748b;
  --wd-border: #e2e8f0;
  --wd-border-soft: #eef2f7;
  /* risk colors (green low -> red high, gray = stale/incomplete) */
  --wd-risk-low: #16a34a;
  --wd-risk-low-bg: #dcfce7;
  --wd-risk-mod: #ca8a04;
  --wd-risk-mod-bg: #fef9c3;
  --wd-risk-elev: #ea580c;
  --wd-risk-elev-bg: #ffedd5;
  --wd-risk-high: #dc2626;
  --wd-risk-high-bg: #fee2e2;
  --wd-risk-stale: #64748b;
  --wd-risk-stale-bg: #f1f5f9;
  --wd-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --wd-radius: 14px;
  --wd-shadow: 0 1px 2px rgba(15,27,45,.05), 0 8px 24px rgba(15,27,45,.06);
}

.wdash { font-family: var(--wd-font); color: var(--wd-ink); }
.wdash *, .wdash *::before, .wdash *::after { box-sizing: border-box; }
.wdash-wrap { max-width: 1340px; margin: 0 auto; padding: 0 1.25rem; }
.wdash img { max-width: 100%; }
.wdash a { color: var(--wd-accent-dark); }

/* ---------- HERO ---------- */
.wd-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--wd-accent) 0%, var(--wd-accent-dark) 100%);
  color: #fff; padding: 3rem 0 3.25rem;
}
.wd-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .8;
}
.wd-hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 280px; gap: 2.25rem; align-items: center;
}
.wd-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.08; font-weight: 800; margin: 0 0 .85rem; color: #fff; }
.wd-hero .wd-sub { font-size: clamp(1rem, 1.7vw, 1.2rem); opacity: .95; max-width: 760px; margin: 0 0 1.1rem; line-height: 1.5; }
.wd-trustline {
  font-size: .82rem; line-height: 1.5; opacity: .9;
  border-left: 3px solid rgba(255,255,255,.5); padding-left: .8rem; margin: 0 0 1.4rem; max-width: 760px;
}
.wd-trustline a { color: #fff; text-decoration: underline; }
.wd-hero-portrait { justify-self: end; }
.wd-hero-portrait img {
  width: 240px; height: auto; border-radius: 16px; display: block;
  box-shadow: 0 18px 44px rgba(0,0,0,.28); border: 3px solid rgba(255,255,255,.35); object-fit: cover;
}
.wd-hero-figcap { font-size: .72rem; opacity: .82; text-align: center; margin-top: .45rem; }

/* search */
.wd-search { position: relative; max-width: 640px; margin: 0 0 1.25rem; }
.wd-search input {
  width: 100%; padding: .95rem 1.1rem .95rem 2.9rem; font-size: 1rem; font-family: inherit;
  border: 0; border-radius: 50px; color: var(--wd-ink); background: #fff;
  box-shadow: 0 8px 26px rgba(0,0,0,.18); outline: none;
}
.wd-search .wd-search-ic { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.1rem; opacity: .55; }
.wd-search-results {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 8px);
  background: #fff; border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.22);
  max-height: 60vh; overflow-y: auto; display: none; text-align: left; padding: .35rem;
}
.wd-search-results.open { display: block; }
.wd-sr-item {
  display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: 10px;
  text-decoration: none; color: var(--wd-ink);
}
.wd-sr-item:hover, .wd-sr-item.active { background: var(--wd-bg); }
.wd-sr-name { font-weight: 600; font-size: .92rem; }
.wd-sr-meta { font-size: .76rem; color: var(--wd-muted); }
.wd-sr-empty { padding: .8rem; color: var(--wd-muted); font-size: .9rem; }

/* hero buttons */
.wd-hero-btns { display: flex; flex-wrap: wrap; gap: .65rem; }
.wd-btn {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px;
  padding: .6rem 1.15rem; border-radius: 50px; font-weight: 600; font-size: .92rem; cursor: pointer;
  text-decoration: none; border: 1px solid transparent; transition: transform .12s, background .15s;
}
.wd-btn:active { transform: translateY(1px); }
.wd-btn-light { background: #fff; color: var(--wd-accent-dark); }
.wd-btn-light:hover { background: #f1f5ff; }
.wd-btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.wd-btn-ghost:hover { background: rgba(255,255,255,.22); }

/* hero stat strip */
.wd-hero-stats { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-top: 1.6rem; }
.wd-hstat .n { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.wd-hstat .l { font-size: .78rem; opacity: .85; }

/* freshness / trust band (root page) */
#sec-freshness { padding: 1.4rem 0; }
.wd-fresh {
  background: var(--wd-surface); border: 1px solid var(--wd-border);
  border-left: 4px solid var(--wd-accent); border-radius: var(--wd-radius);
  padding: 1rem 1.2rem; box-shadow: var(--wd-shadow);
}
.wd-fresh-title { font-size: .8rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--wd-muted); margin-bottom: .7rem; }
.wd-fresh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .9rem 1.4rem; }
.wd-fresh-stat { min-width: 0; }
.wd-fresh-n { font-size: 1.25rem; font-weight: 800; line-height: 1.1; color: var(--wd-accent-dark); word-break: break-word; }
.wd-fresh-l { font-size: .76rem; color: var(--wd-ink-soft); margin-top: .15rem; }

/* ---------- SECTION SHELL ---------- */
.wd-sec { padding: 2.6rem 0; }
.wd-sec.alt { background: var(--wd-surface); border-top: 1px solid var(--wd-border-soft); border-bottom: 1px solid var(--wd-border-soft); }
.wd-sec-h { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: .35rem; }
.wd-sec-h h2 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); font-weight: 750; margin: 0; color: var(--wd-ink); }
.wd-sec-sub { color: var(--wd-ink-soft); font-size: .98rem; margin: 0 0 1.4rem; max-width: 820px; }
.wd-why { font-size: .78rem; color: var(--wd-muted); }

/* ---------- TWO COLUMNS: latest + popular ---------- */
.wd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.wd-col-card { background: var(--wd-surface); border: 1px solid var(--wd-border); border-radius: var(--wd-radius); padding: 1.3rem 1.3rem 1.1rem; box-shadow: var(--wd-shadow); }
.wd-col-card > h3 { font-size: 1.12rem; margin: 0 0 .2rem; display: flex; align-items: center; gap: .5rem; }
.wd-col-card > .hint { font-size: .8rem; color: var(--wd-muted); margin: 0 0 1rem; }

/* latest updated rows */
.wd-upd { display: flex; gap: .85rem; padding: .85rem 0; border-bottom: 1px solid var(--wd-border-soft); }
.wd-upd:last-child { border-bottom: 0; }
.wd-upd-date { flex: 0 0 76px; font-size: .76rem; color: var(--wd-muted); padding-top: .15rem; }
.wd-upd-body h4 { font-size: .95rem; margin: 0 0 .2rem; line-height: 1.3; }
.wd-upd-body h4 a { color: var(--wd-ink); text-decoration: none; }
.wd-upd-body h4 a:hover { color: var(--wd-accent-dark); text-decoration: underline; }
.wd-upd-body p { font-size: .84rem; color: var(--wd-ink-soft); margin: 0; }
.wd-upd-note { font-size: .78rem; color: var(--wd-muted); margin: 0 0 .6rem; font-style: italic; }
.wd-badge {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .02em;
  padding: .12rem .5rem; border-radius: 50px; margin-left: .35rem; vertical-align: middle; white-space: nowrap;
}
.wd-badge.current { background: var(--wd-risk-low-bg); color: var(--wd-risk-low); }
.wd-badge.detected { background: var(--wd-risk-elev-bg); color: var(--wd-risk-elev); }
.wd-badge.pending { background: #dbeafe; color: #1d4ed8; }
.wd-badge.stale { background: var(--wd-risk-stale-bg); color: var(--wd-risk-stale); }

/* popular cards */
.wd-pop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.wd-pop {
  display: block; text-decoration: none; color: inherit; border: 1px solid var(--wd-border);
  border-radius: 12px; padding: .8rem .85rem; transition: border-color .15s, box-shadow .15s, transform .12s; background: #fff;
}
.wd-pop:hover { border-color: var(--wd-accent); box-shadow: 0 6px 18px rgba(15,27,45,.08); transform: translateY(-2px); }
.wd-pop-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.wd-pop-name { font-weight: 700; font-size: .95rem; line-height: 1.2; }
.wd-pop-prod { font-size: .75rem; color: var(--wd-muted); }
.wd-pop-concern { font-size: .8rem; color: var(--wd-ink-soft); margin: .3rem 0 .35rem; }
.wd-pop-foot { display: flex; align-items: center; justify-content: space-between; font-size: .72rem; color: var(--wd-muted); }
.wd-pin { font-size: .64rem; font-weight: 700; color: var(--wd-accent-dark); background: var(--wd-accent); color: #fff; padding: .1rem .42rem; border-radius: 50px; }

/* score chip (shared) */
.wd-score {
  display: inline-flex; align-items: center; justify-content: center; gap: .25rem; min-width: 34px;
  font-weight: 800; font-size: .82rem; padding: .18rem .42rem; border-radius: 8px; line-height: 1;
}
.wd-score small { font-weight: 600; opacity: .8; font-size: .68rem; }
.wd-score.r-low { background: var(--wd-risk-low-bg); color: var(--wd-risk-low); }
.wd-score.r-mod { background: var(--wd-risk-mod-bg); color: var(--wd-risk-mod); }
.wd-score.r-elev { background: var(--wd-risk-elev-bg); color: var(--wd-risk-elev); }
.wd-score.r-high { background: var(--wd-risk-high-bg); color: var(--wd-risk-high); }
.wd-score.r-stale { background: var(--wd-risk-stale-bg); color: var(--wd-risk-stale); }

/* ---------- AI SPOTLIGHT ---------- */
.wd-spot-tablewrap { overflow-x: auto; border: 1px solid var(--wd-border); border-radius: var(--wd-radius); background: #fff; box-shadow: var(--wd-shadow); -webkit-overflow-scrolling: touch; }
table.wd-spot { border-collapse: collapse; width: 100%; min-width: 980px; font-size: .82rem; }
table.wd-spot th, table.wd-spot td { padding: .6rem .7rem; text-align: left; border-bottom: 1px solid var(--wd-border-soft); vertical-align: middle; }
table.wd-spot thead th { position: sticky; top: 0; background: #f8fafc; z-index: 2; font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: var(--wd-muted); font-weight: 700; }
table.wd-spot tbody tr:hover { background: #fbfcfe; }
table.wd-spot td.wd-co { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 150px; }
table.wd-spot tbody tr:hover td.wd-co { background: #fbfcfe; }
.wd-co-name { font-weight: 700; font-size: .9rem; display: block; }
.wd-co-name a { color: var(--wd-ink); text-decoration: none; }
.wd-co-name a:hover { color: var(--wd-accent-dark); text-decoration: underline; }
.wd-co-pin { font-size: .62rem; font-weight: 700; color: #fff; background: var(--wd-accent); padding: .06rem .4rem; border-radius: 50px; margin-left: .35rem; }
.wd-cell-yes { color: var(--wd-risk-high); font-weight: 600; }
.wd-cell-no { color: var(--wd-risk-low); font-weight: 600; }
.wd-cell-na { color: var(--wd-muted); font-style: italic; }
.wd-cell-part { color: var(--wd-risk-mod); font-weight: 600; }

/* ---------- CATEGORY NAV ---------- */
.wd-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.wd-cat {
  display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--wd-border);
  border-radius: 12px; padding: .85rem .9rem; transition: border-color .15s, box-shadow .15s, transform .12s;
}
.wd-cat:hover { border-color: var(--wd-accent); box-shadow: 0 6px 16px rgba(15,27,45,.07); transform: translateY(-2px); }
.wd-cat-name { font-weight: 700; font-size: .92rem; display: flex; align-items: center; gap: .4rem; }
.wd-cat-stats { font-size: .73rem; color: var(--wd-muted); margin-top: .35rem; line-height: 1.5; }
.wd-cat-stats b { color: var(--wd-ink-soft); }
.wd-cat-count { margin-left: auto; font-size: .72rem; font-weight: 700; color: var(--wd-accent-dark); background: var(--wd-bg); padding: .1rem .5rem; border-radius: 50px; }

/* ---------- FULL MATRIX ---------- */
.wd-matrix-teaser {
  background: linear-gradient(135deg, #0f1b2d 0%, #1e293b 100%); color: #fff; border-radius: var(--wd-radius);
  padding: 1.8rem; text-align: center;
}
.wd-matrix-teaser h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.wd-matrix-teaser p { margin: 0 auto 1.1rem; opacity: .85; max-width: 640px; font-size: .95rem; }
.wd-matrix-panel { display: none; }
.wd-matrix-panel.open { display: block; }

.wd-matrix-controls { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.wd-matrix-controls input[type=text], .wd-matrix-controls select {
  font-family: inherit; font-size: .88rem; padding: .55rem .7rem; border: 1px solid var(--wd-border);
  border-radius: 10px; background: #fff; color: var(--wd-ink); min-height: 42px; min-width: 0;
}
.wd-matrix-controls input[type=text] { flex: 1 1 230px; }
.wd-filter-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.wd-fpill {
  font-size: .76rem; font-weight: 600; padding: .35rem .7rem; border-radius: 50px; cursor: pointer;
  border: 1px solid var(--wd-border); background: #fff; color: var(--wd-ink-soft); min-height: 36px;
}
.wd-fpill.active { background: var(--wd-accent); border-color: var(--wd-accent); color: #fff; }
.wd-matrix-meta { font-size: .8rem; color: var(--wd-muted); margin-left: auto; }

.wd-matrix-tablewrap { overflow-x: auto; border: 1px solid var(--wd-border); border-radius: var(--wd-radius); background: #fff; -webkit-overflow-scrolling: touch; }
table.wd-matrix { border-collapse: collapse; width: 100%; min-width: 1180px; font-size: .8rem; }
table.wd-matrix th, table.wd-matrix td { padding: .55rem .6rem; text-align: left; border-bottom: 1px solid var(--wd-border-soft); white-space: nowrap; }
table.wd-matrix thead th {
  position: sticky; top: 0; background: #f8fafc; z-index: 3; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .02em; color: var(--wd-muted); font-weight: 700; cursor: pointer; user-select: none;
}
table.wd-matrix thead th.nosort { cursor: default; }
table.wd-matrix thead th .arr { opacity: .4; font-size: .6rem; }
table.wd-matrix thead th[aria-sort="ascending"] .arr,
table.wd-matrix thead th[aria-sort="descending"] .arr { opacity: 1; color: var(--wd-accent-dark); }
table.wd-matrix td.wd-co { position: sticky; left: 0; background: #fff; z-index: 1; white-space: normal; min-width: 170px; }
table.wd-matrix tbody tr:hover td { background: #fbfcfe; }
table.wd-matrix tbody tr:hover td.wd-co { background: #fbfcfe; }
.wd-riskdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .15rem; vertical-align: middle; }
.wd-riskdot.r-low { background: var(--wd-risk-low); }
.wd-riskdot.r-mod { background: var(--wd-risk-mod); }
.wd-riskdot.r-elev { background: var(--wd-risk-elev); }
.wd-riskdot.r-high { background: var(--wd-risk-high); }
.wd-riskdot.r-stale { background: var(--wd-risk-stale); }
.wd-tlink { color: var(--wd-accent-dark); font-weight: 600; text-decoration: none; }
.wd-tlink:hover { text-decoration: underline; }
.wd-type-tag { font-size: .64rem; font-weight: 700; padding: .08rem .4rem; border-radius: 5px; text-transform: uppercase; letter-spacing: .03em; }
.wd-type-tag.privacy { background: #ede9fe; color: #6d28d9; }
.wd-type-tag.tos { background: #fee2e2; color: #b91c1c; }

.wd-pager { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem 0 .2rem; }
.wd-pager button { font-family: inherit; font-size: .85rem; padding: .45rem .85rem; border: 1px solid var(--wd-border); background: #fff; border-radius: 8px; cursor: pointer; min-height: 40px; }
.wd-pager button:disabled { opacity: .45; cursor: default; }
.wd-pager .wd-pageinfo { font-size: .82rem; color: var(--wd-muted); }

/* mobile card view for the matrix */
.wd-matrix-cards { display: none; }
.wd-mcard { border: 1px solid var(--wd-border); border-radius: 12px; padding: .85rem; margin-bottom: .7rem; background: #fff; }
.wd-mcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.wd-mcard-name { font-weight: 700; font-size: .95rem; }
.wd-mcard-sub { font-size: .74rem; color: var(--wd-muted); margin-top: .1rem; }
.wd-mcard-rows { margin: .6rem 0 .5rem; font-size: .8rem; }
.wd-mcard-rows div { display: flex; justify-content: space-between; gap: 1rem; padding: .2rem 0; border-bottom: 1px dashed var(--wd-border-soft); }
.wd-mcard-rows div:last-child { border-bottom: 0; }
.wd-mcard-rows .k { color: var(--wd-muted); }

/* ---------- QUESTIONS ---------- */
.wd-q-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .8rem; }
.wd-q {
  display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; background: #fff;
  border: 1px solid var(--wd-border); border-radius: 12px; padding: .9rem 1rem; transition: border-color .15s, transform .12s;
}
.wd-q:hover { border-color: var(--wd-accent); transform: translateY(-2px); }
.wd-q-ic { font-size: 1.3rem; flex: 0 0 auto; }
.wd-q-t { font-weight: 600; font-size: .9rem; line-height: 1.35; }
.wd-q-arrow { margin-left: auto; color: var(--wd-accent-dark); font-weight: 700; }

/* ---------- CTAs ---------- */
.wd-cta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: .9rem; }
.wd-ctacard {
  background: #fff; border: 1px solid var(--wd-border); border-left: 4px solid var(--wd-accent); border-radius: 12px;
  padding: 1.1rem 1.15rem; display: flex; flex-direction: column;
}
.wd-ctacard h4 { margin: 0 0 .35rem; font-size: 1rem; }
.wd-ctacard p { margin: 0 0 .9rem; font-size: .85rem; color: var(--wd-ink-soft); flex: 1; }
.wd-ctacard .wd-price { font-weight: 800; color: var(--wd-ink); font-size: .92rem; margin-bottom: .6rem; }
.wd-ctacard button, .wd-ctacard a.wd-ctabtn {
  align-self: flex-start; background: var(--wd-accent); color: #fff; border: 0; border-radius: 50px;
  padding: .55rem 1.1rem; font-weight: 600; font-size: .86rem; cursor: pointer; text-decoration: none; min-height: 44px;
  display: inline-flex; align-items: center;
}
.wd-ctacard button:hover, .wd-ctacard a.wd-ctabtn:hover { background: var(--wd-accent-dark); }

/* ---------- METHODOLOGY + DEFAMATION ---------- */
.wd-method { background: #fff; border: 1px solid var(--wd-border); border-radius: var(--wd-radius); padding: 1.5rem 1.6rem; box-shadow: var(--wd-shadow); }
.wd-method h3 { margin: 0 0 .6rem; font-size: 1.15rem; }
.wd-method p { font-size: .9rem; color: var(--wd-ink-soft); margin: 0 0 .9rem; line-height: 1.6; }
.wd-method-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.wd-method-links a {
  font-size: .82rem; font-weight: 600; text-decoration: none; color: var(--wd-accent-dark);
  background: var(--wd-bg); padding: .4rem .8rem; border-radius: 50px; border: 1px solid var(--wd-border);
}
.wd-method-links a:hover { background: #eef2f7; }

/* loading / error states */
.wd-loading { padding: 2rem; text-align: center; color: var(--wd-muted); font-size: .9rem; }
.wd-error { padding: 1.2rem; text-align: center; color: var(--wd-risk-high); font-size: .9rem; background: var(--wd-risk-high-bg); border-radius: 12px; }
.wd-skel { background: linear-gradient(90deg, #eef2f7 25%, #f6f8fa 50%, #eef2f7 75%); background-size: 200% 100%; animation: wd-shimmer 1.2s infinite; border-radius: 8px; height: 14px; margin: .4rem 0; }
@keyframes wd-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* visually-hidden helper for the cockpit seed surface */
.wd-vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- REGISTRY STATUS BADGES (documents.json freshness) ---------- */
/* Color-coded by freshness state, separate from the score-derived risk chip:
   current=green, manual_verified_current=green (dashed outline, distinct from
   plain current), update_pending=yellow, silent_change/stale=orange,
   fetch_failed=red, not_yet_repooled/source_unverified=gray. */
.wd-stbadge {
  display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .02em;
  padding: .14rem .5rem; border-radius: 50px; vertical-align: middle; white-space: nowrap; line-height: 1.3;
}
.wd-stbadge.st-current    { background: var(--wd-risk-low-bg);   color: var(--wd-risk-low); }
/* green like current (the document IS current) but with a dashed outline so a
   human-verified version reads as distinct from a machine-fetched "current". */
.wd-stbadge.st-mancurrent { background: var(--wd-risk-low-bg);   color: var(--wd-risk-low); border: 1px dashed var(--wd-risk-low); padding: .1rem .46rem; }
.wd-stbadge.st-pending    { background: var(--wd-risk-mod-bg);   color: var(--wd-risk-mod); }
.wd-stbadge.st-suspect,
.wd-stbadge.st-stale      { background: var(--wd-risk-elev-bg);  color: var(--wd-risk-elev); }
.wd-stbadge.st-failed     { background: var(--wd-risk-high-bg);  color: var(--wd-risk-high); }
.wd-stbadge.st-norepool,
.wd-stbadge.st-unverified { background: var(--wd-risk-stale-bg); color: var(--wd-risk-stale); }

/* reconciled "is this current" one-liner (shared by pinned/popular/latest) */
.wd-fresh-line { font-size: .74rem; font-weight: 600; margin: .25rem 0 0; line-height: 1.4; }
.wd-fresh-line.ok    { color: var(--wd-risk-low); }
.wd-fresh-line.warn  { color: var(--wd-risk-elev); }
.wd-fresh-line.bad   { color: var(--wd-risk-high); }
.wd-fresh-line.muted { color: var(--wd-muted); }

/* ---------- PINNED AI FLAGSHIP REVIEWS ---------- */
.wd-pin-groups { display: flex; flex-direction: column; gap: 1.4rem; }
.wd-pin-group { }
.wd-pin-co { font-size: 1.02rem; font-weight: 800; color: var(--wd-ink); margin: 0 0 .6rem; display: flex; align-items: center; gap: .5rem; }
.wd-pin-co::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--wd-accent); display: inline-block; }
.wd-pin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: .9rem; }
.wd-pin-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--wd-border);
  border-left: 4px solid var(--wd-accent); border-radius: 12px; padding: .95rem 1rem; box-shadow: var(--wd-shadow);
}
.wd-pin-card--pending { border-left-color: var(--wd-risk-stale); background: var(--wd-risk-stale-bg); }
.wd-pin-card-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .45rem; }
.wd-pin-lens { font-size: .62rem; font-weight: 700; padding: .1rem .5rem; border-radius: 5px; text-transform: uppercase; letter-spacing: .03em; }
.wd-pin-lens.privacy { background: #ede9fe; color: #6d28d9; }
.wd-pin-lens.tos { background: #fee2e2; color: #b91c1c; }
.wd-pin-card-h { font-weight: 700; font-size: .96rem; line-height: 1.25; margin-bottom: .5rem; }
.wd-pin-card-h a { color: var(--wd-ink); text-decoration: none; }
.wd-pin-card-h a:hover { color: var(--wd-accent-dark); text-decoration: underline; }
.wd-pin-meta { margin: 0 0 .35rem; display: flex; flex-direction: column; gap: .28rem; }
.wd-pin-meta > div { display: flex; justify-content: space-between; gap: .8rem; font-size: .77rem; }
.wd-pin-meta dt { color: var(--wd-muted); flex: 0 0 auto; }
.wd-pin-meta dd { margin: 0; color: var(--wd-ink-soft); font-weight: 600; text-align: right; }
.wd-pin-why { font-size: .8rem; color: var(--wd-ink-soft); margin: .5rem 0 .6rem; line-height: 1.45; }
.wd-pin-why span { font-weight: 700; color: var(--wd-ink); }
.wd-pin-pending { font-size: .85rem; color: var(--wd-ink-soft); margin: .3rem 0 0; line-height: 1.45; font-style: italic; }
.wd-pin-links { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: auto; padding-top: .35rem; }
.wd-pin-src { font-size: .78rem; font-weight: 600; color: var(--wd-muted); text-decoration: none; }
.wd-pin-src:hover { color: var(--wd-accent-dark); text-decoration: underline; }
.wd-pin-pending-inline { font-size: .78rem; font-weight: 600; color: var(--wd-muted); font-style: italic; }
/* Plain-text snapshot/hash indicator in the source-freshness cell. NOT a link
   (snapshot files are not guaranteed in the deployed bundle). */
.wd-snap-note { font-size: .7rem; font-weight: 500; color: var(--wd-muted); font-style: italic; }
/* Per-card date-clarity / curated-anchor note (Stripe standalone date, Square
   curated review anchor). Small, muted, sits above "Why it matters". */
.wd-proc-note { font-size: .74rem; color: var(--wd-ink-soft); margin: .15rem 0 .5rem; line-height: 1.45; }

/* ---------- PAYMENT PROCESSOR RISK SPOTLIGHT ---------- */
/* Reuses the pinned-card language (.wd-pin-*) so it themes with the dashboard
   tokens automatically. Adds the per-company risk pill, the per-card risk
   label, and the frozen-funds CTA band. Mobile-first. */
.wd-proc-risk {
  margin-left: auto; font-size: .7rem; font-weight: 700; letter-spacing: .01em;
  color: var(--wd-risk-elev); background: var(--wd-risk-elev-bg);
  padding: .12rem .55rem; border-radius: 50px; white-space: nowrap;
}
.wd-proc-risk-label {
  font-size: .76rem; font-weight: 700; color: var(--wd-risk-elev);
  margin: 0 0 .5rem; display: flex; align-items: center; gap: .3rem; line-height: 1.3;
}
.wd-proc-cta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .9rem 1.2rem;
  background: var(--wd-surface); border: 1px solid var(--wd-border);
  border-left: 4px solid var(--wd-accent); border-radius: var(--wd-radius);
  padding: 1.1rem 1.25rem; box-shadow: var(--wd-shadow); margin-top: 1.4rem;
}
.wd-proc-cta-txt { margin: 0; font-size: .95rem; font-weight: 600; color: var(--wd-ink); flex: 1 1 320px; min-width: 0; line-height: 1.45; }
.wd-proc-cta .wd-btn-light { background: var(--wd-accent); color: #fff; flex: 0 0 auto; }
.wd-proc-cta .wd-btn-light:hover { background: var(--wd-accent-dark); }

/* ---- Payment processor comparison table ----
   Reuses the .wd-spot table tokens (themes per hub via var(--wd-*)). The
   freshness column wraps; the CTA cell is a real intake-trigger button. On
   mobile the table collapses to stacked label/value rows via the data-th
   attributes (no horizontal scroll). */
.wd-proc-table-h { font-size: 1rem; font-weight: 700; color: var(--wd-ink); margin: 1.6rem 0 .7rem; }
table.wd-proc-table td { vertical-align: top; }
table.wd-proc-table .wd-proc-ver { display: inline; font-size: .76rem; color: var(--wd-ink-soft); line-height: 1.4; }
table.wd-proc-table .wd-stbadge { margin-top: .25rem; }
.wd-proc-cta-btn {
  appearance: none; cursor: pointer; border: 1px solid var(--wd-accent);
  background: var(--wd-accent); color: #fff; font: inherit; font-size: .78rem; font-weight: 700;
  padding: .4rem .7rem; border-radius: 8px; line-height: 1.2; white-space: normal;
  min-height: 36px; transition: background .15s, border-color .15s;
}
.wd-proc-cta-btn:hover { background: var(--wd-accent-dark); border-color: var(--wd-accent-dark); }
.wd-proc-cta-btn:focus-visible { outline: 2px solid var(--wd-accent-dark); outline-offset: 2px; }

/* freshness note under the trust band */
.wd-fresh-note { font-size: .76rem; color: var(--wd-ink-soft); margin: .75rem 0 0; line-height: 1.5; }
.wd-fresh-stat--hi .wd-fresh-n { color: var(--wd-accent-dark); }
.wd-fresh-stat--hi { position: relative; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 920px) {
  .wd-hero-grid { grid-template-columns: 1fr; }
  .wd-hero-portrait { justify-self: start; }
  .wd-hero-portrait img { width: 150px; }
  .wd-cols { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .wdash-wrap { padding: 0 1rem; }
  .wd-pop-grid { grid-template-columns: 1fr; }
  .wd-pin-cards { grid-template-columns: 1fr; }
  .wd-hero-stats { gap: 1.2rem; }
  .wd-hstat .n { font-size: 1.4rem; }
  /* matrix switches to mobile cards */
  .wd-matrix-tablewrap { display: none; }
  .wd-matrix-cards.open { display: block; }
  .wd-matrix-meta { margin-left: 0; width: 100%; }

  /* Processor comparison table collapses to stacked label/value cards.
     Override the .wd-spot min-width so it never forces horizontal scroll. */
  table.wd-proc-table { min-width: 0; display: block; font-size: .85rem; }
  table.wd-proc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.wd-proc-table tbody { display: block; }
  table.wd-proc-table tr {
    display: block; border: 1px solid var(--wd-border); border-left: 4px solid var(--wd-accent);
    border-radius: var(--wd-radius); padding: .4rem .85rem .75rem; margin-bottom: .9rem; background: #fff;
  }
  table.wd-proc-table td {
    display: block; width: auto; border: 0; border-bottom: 1px solid var(--wd-border-soft);
    padding: .55rem 0; text-align: left; position: static;
  }
  table.wd-proc-table td:last-child { border-bottom: 0; padding-bottom: 0; }
  table.wd-proc-table td.wd-co { position: static; min-width: 0; padding-top: .55rem; }
  table.wd-proc-table td.wd-co .wd-co-name { font-size: 1.02rem; }
  table.wd-proc-table td[data-th]::before {
    content: attr(data-th); display: block; font-size: .68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .03em; color: var(--wd-muted); margin-bottom: .2rem;
  }
  table.wd-proc-table td.wd-co[data-th]::before { content: none; }
  .wd-proc-cta-btn { width: 100%; min-height: 44px; }
}
