/* integrity.css — the date checker, shared by the documentation guide and the
   /data-integrity page. Lived in docs.css until the widget needed to appear
   outside the docs, and a second copy would have drifted from this one.

   Colour comes from the host page's variables, so it inherits whichever
   stylesheet loaded it rather than carrying its own palette. */

/* ═══ Data integrity page ═══════════════════════════════════════════════════
   The proof, not the prose. Everything is sized so the figures read first and
   the explanation second — a page arguing that the data is checkable has to
   look checkable before it reads well. */
/* ─── Variables ───────────────────────────────────────────────────────────
   --panel and --bg are declared in docs.css, so on /data-integrity (which does
   not load it) var(--di-panel) fell back to white on a white page and the
   whole checker card vanished. Declared here, from site.css tokens, so the
   widget carries its own surface wherever it is used. */
:root{
  --di-panel:#FFFFFF;
  --di-sunk:#F2F1EB;
  --di-shadow:0 1px 2px rgba(23,32,27,.05), 0 6px 18px -6px rgba(23,32,27,.10);
}

.di-lead{ font-size:16.5px; line-height:1.6; color:var(--ink); max-width:64ch; }

.di-figs{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px;
  background:var(--line); border:1px solid var(--line); border-radius:14px;
  overflow:hidden; margin:22px 0 28px; }
/* The white surface belongs to the DOCS grid, not to .di-fig itself. Left on the
   element it followed the figures into the green hero band and painted white
   boxes under white text. Scope it to its container. */
.di-figs .di-fig{ background:var(--di-panel); padding:16px 17px; }
.di-fig b{ display:block; font:650 27px/1 inherit; letter-spacing:-.03em;
  font-variant-numeric:tabular-nums; }
.di-fig span{ display:block; font-size:12.5px; color:var(--mut); margin-top:6px; }
.di-fig i{ display:block; font:400 11.5px/1.45 var(--mono); color:var(--mut);
  opacity:.75; font-style:normal; margin-top:3px; }

.di-check{ background:var(--di-panel); border:1px solid var(--line);
  border-radius:16px; overflow:hidden; margin:0 0 30px;
  box-shadow:var(--di-shadow); }
.di-check > header{ padding:17px 20px 14px; border-bottom:1px solid var(--line); }
.di-check h3{ margin:0 0 4px; font-size:18px; font-weight:600; letter-spacing:-.015em; }
.di-check > header p{ margin:0; color:var(--mut); font-size:13.5px; }
/* ONE rule. There were two: this one, written when the control was a single
   row, and a later one that made it a column. The stale align-items:flex-end
   survived the merge — and on a COLUMN flexbox align-items works on the cross
   axis, so flex-end meant RIGHT. Both rows shrank to their content and sat
   against the right edge, and justify-content:center inside them centred
   nothing. Alignment lives here now, once. */
.di-ctrl{ display:flex; flex-direction:column; align-items:stretch; gap:12px;
  padding:15px 20px; background:var(--di-sunk); border-bottom:1px solid var(--line); }
.di-f{ display:flex; flex-direction:column; gap:5px; }
.di-f label{ font:500 11.5px inherit; color:var(--mut); }
.di-f input,.di-f select{ font:450 14px inherit; padding:8px 11px; border:1px solid var(--line);
  border-radius:9px; background:var(--di-panel); color:var(--ink); min-width:148px; }
.di-go{ font:550 14px inherit; background:var(--green); color:#fff; border:1px solid var(--green);
  border-radius:9px; padding:0 18px; height:37px; cursor:pointer; }
/* .di-quick is defined once, further down — the margin-left:auto that used to
   live here is what pushed the range picker to the right edge. */

/* Reserved height: the panel must not jump when the fetch lands. */
.di-out{ min-height:264px; padding:18px 20px; }
.di-idle{ color:var(--mut); text-align:center; padding:26px 0; margin:0; }
.di-verdict{ margin:0 0 15px; padding:12px 15px; border-radius:10px; font-size:14px; line-height:1.5;
  background:rgba(63,169,128,.12); border:1px solid var(--green); }
.di-verdict.mixed{ background:rgba(224,146,31,.12); border-color:var(--amber); }
.di-rowset{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:10px; margin-bottom:16px; }
.di-rc{ border:1px solid var(--line); border-radius:11px; padding:13px 14px; }
.di-rc b{ display:block; font:650 24px/1 inherit; letter-spacing:-.025em;
  font-variant-numeric:tabular-nums; }
.di-rc span{ display:block; font-size:12.5px; color:var(--mut); margin-top:5px; }
.di-out table{ width:100%; border-collapse:collapse; font-variant-numeric:tabular-nums; }
.di-out th{ text-align:left; font:500 11.5px inherit; color:var(--mut); padding:8px 11px;
  background:var(--di-sunk); border-bottom:1px solid var(--line); }
.di-out td{ padding:10px 11px; border-bottom:1px solid var(--line); font-size:13.5px; }
.di-out td.n,.di-out th.n{ text-align:right; font:450 13px var(--mono); }

.di-three{ display:grid; grid-template-columns:repeat(auto-fit,minmax(258px,1fr));
  gap:13px; margin:18px 0 8px; }
.di-card{ background:var(--di-panel); border:1px solid var(--line); border-radius:13px;
  padding:18px 19px; }
.di-card h3{ margin:0 0 8px; font-size:16px; font-weight:600; letter-spacing:-.012em; }
.di-card p{ margin:0; font-size:14px; color:var(--mut); line-height:1.6; }
.di-card p + p{ margin-top:9px; }
.di-tag{ font:500 10.5px var(--mono); padding:2px 6px; border-radius:5px; margin-left:6px;
  vertical-align:2px; }
.di-tag.ok{ background:rgba(63,169,128,.16); color:var(--green); }
.di-tag.ab{ background:rgba(224,146,31,.16); color:var(--amber); }
.di-tag.no{ background:rgba(192,57,43,.14); color:var(--red); }

@media (max-width:780px){
  .di-figs{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .di-ctrl{ flex-direction:column; align-items:stretch; }
  .di-quick{ margin-left:0; }
}

/* Denser table: seven days should read at a glance, not fill the viewport. */
.di-out .di-tbl th{ padding:7px 10px; font-size:11px; }
.di-out .di-tbl td{ padding:7px 10px; font-size:13px; }
.di-out .di-tbl td.n,.di-out .di-tbl th.n{ font-size:12.5px; }
.di-out .di-tbl tbody tr:hover td{ background:var(--di-sunk); }

/* ═══ Active state ═════════════════════════════════════════════════════════
   Both navs marked the current page with colour alone. Among seventeen guide
   links a green word is a weak signal — you read the list, not the hue, and
   lose your place. The current page now has a FILLED row and a solid rule, so
   it registers before you start reading. */
.docs-menu li a.on, .menu-head a.on{
  color:var(--green); font-weight:600;
  background:rgba(63,169,128,.11);
  border-left-color:var(--green); border-left-width:3px;
  padding-left:9px;                       /* keeps the text aligned as the rule thickens */
}
.docs-menu li a.on:hover{ background:rgba(63,169,128,.16); }


/* Four cards fit the row exactly; a fifth orphaned itself onto a second line. */
/* One line, not a paragraph. */
.di-nil{ color:var(--mut); opacity:.55; }
.di-tbl td:first-child{ font-weight:600; font-size:13px; white-space:nowrap; }
.di-flag td{ background:rgba(224,146,31,.07); }
.di-flag td:nth-child(5) b{ color:var(--amber); }

/* ── the control block: two rows, neither of them accidental ───────────── */
.di-row{ display:flex; gap:9px; align-items:flex-end; flex-wrap:wrap;
  justify-content:center; }
.di-row2{ align-items:center; gap:11px; justify-content:center; }
.di-f input[type="date"]{ min-width:0; width:158px; }
.di-f select{ min-width:0; width:152px; }
.di-qlab{ font:500 11.5px inherit; color:var(--mut); flex:0 0 auto; }

/* One segmented control rather than loose buttons — five of them scattered
   would have re-created the wrap this replaced. */
.di-quick{ display:inline-flex; gap:2px; background:var(--di-sunk); border:1px solid var(--line);
  border-radius:9px; padding:3px; flex-wrap:wrap; }
.di-quick button{ font:500 12.5px inherit; background:none; border:0; border-radius:6px;
  padding:6px 11px; color:var(--mut); cursor:pointer; white-space:nowrap; }
.di-quick button:hover{ background:var(--di-panel); color:var(--ink); }
.di-quick button.on{ background:var(--green); color:#fff; }

@media (max-width:620px){
  .di-row{ gap:8px; }
  .di-f input[type="date"],.di-f select{ width:100%; }
  .di-f{ flex:1 1 100%; }
  .di-go{ width:100%; }
  .di-row2{ flex-direction:column; align-items:flex-start; }
}

/* ═══ /data-integrity — the public Data page ═══════════════════════════════
   The widget styles above are shared with the docs guide. These are the page
   frame around it, and only this page loads them. */
/* ═══ Hero band ════════════════════════════════════════════════════════════
   Full bleed and in brand colour. The restrained version read as flat, and a
   page whose argument is "we are the ones you can verify" should look confident
   about it. Still no gradient or illustration — the ornament is the numbers. */
.di-band{ background:var(--green-deep,#0A4231); color:#fff; margin-bottom:34px;
  border-bottom:1px solid rgba(255,255,255,.12);
  position:relative; overflow:hidden; }
/* Visible enough to register. The previous version sat at 8.5% and was, fairly,
   described as not existing at all. Ornament that cannot be seen is not
   restraint, it is dead weight in the file. */
.di-bend{ position:absolute; right:0; top:0; height:100%; width:min(46%, 520px);
  pointer-events:none; }
.di-bend-rings circle{ fill:none; stroke:#fff; stroke-width:1.25; opacity:.17; }
.di-bend-rings circle:nth-child(2){ opacity:.13; }
.di-bend-rings circle:nth-child(3){ opacity:.10; }
.di-bend-rings circle:nth-child(4){ opacity:.07; }
.di-bend-rings circle:nth-child(5){ opacity:.05; }
.di-bend-ticks path{ fill:none; stroke:#6FD3A4; stroke-width:2; stroke-linecap:round;
  opacity:.34; }
@media (max-width:900px){ .di-bend{ width:62%; opacity:.75; } }
.di-band-in{ padding:46px 24px 0; }
.di-eyebrow{ font:600 11.5px var(--mono); letter-spacing:.1em; text-transform:uppercase;
  color:rgba(255,255,255,.62); margin:0 0 15px; }
.di-band h1{ font-size:50px; line-height:1.04; letter-spacing:-.035em; font-weight:650;
  margin:0 0 16px; max-width:17ch; color:#fff; }
.di-sub{ font-size:18.5px; line-height:1.55; color:rgba(255,255,255,.82); max-width:60ch;
  margin:0 0 20px; }

/* The price of checking, stated before anyone has to ask. */
.di-free{ display:inline-flex; align-items:center; gap:9px; margin:0 0 24px;
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2);
  border-radius:999px; padding:7px 15px 7px 13px;
  font:550 13px var(--body,inherit); color:#fff; }
.di-dot{ width:7px; height:7px; border-radius:50%; background:#6FD3A4; flex:0 0 auto;
  box-shadow:0 0 0 3px rgba(111,211,164,.25); }

.di-hero-acts{ display:flex; gap:10px; flex-wrap:wrap; margin:0 0 38px; }
/* Solid button on a dark band: white fill, green text. The previous hover set
   only a border colour, so the label all but vanished. */
.di-btn{ display:inline-block; background:#fff; color:var(--green-deep,#0A4231);
  font:600 14.5px var(--body,inherit); padding:12px 22px; border-radius:10px;
  text-decoration:none; border:1px solid #fff; transition:background .15s, color .15s; }
.di-btn:hover{ background:#EAF3EE; color:var(--green-deep,#0A4231); }
.di-btn.ghost{ background:transparent; color:#fff; border-color:rgba(255,255,255,.42); }
.di-btn.ghost:hover{ background:rgba(255,255,255,.12); color:#fff;
  border-color:rgba(255,255,255,.7); }

/* Figures along the foot of the band, hairline-separated. */
.di-band-figs{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr));
  border-top:1px solid rgba(255,255,255,.16); }
.di-band-figs .di-fig{ padding:20px 22px 22px; border-left:1px solid rgba(255,255,255,.13); }
.di-band-figs .di-fig:first-child{ border-left:0; padding-left:0; }
.di-band-figs .di-fig b{ display:block; font:650 30px/1 var(--body,inherit);
  letter-spacing:-.03em; color:#fff; font-variant-numeric:tabular-nums; }
.di-band-figs .di-fig span{ display:block; font-size:13px; color:rgba(255,255,255,.8);
  margin-top:7px; }
.di-band-figs .di-fig i{ display:block; font:400 11.5px/1.45 var(--mono);
  color:rgba(255,255,255,.5); font-style:normal; margin-top:3px; }

@media (max-width:900px){
  .di-band h1{ font-size:34px; max-width:none; }
  .di-band-in{ padding:32px 24px 0; }
  .di-band-figs{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .di-band-figs .di-fig{ padding:16px 16px 18px; }
  .di-band-figs .di-fig:nth-child(3){ border-left:0; padding-left:0; }
  .di-band-figs .di-fig:nth-child(n+3){ border-top:1px solid rgba(255,255,255,.13); }
}

.di-blk{ padding:40px 0; border-top:1px solid var(--line); }
.di-blk h2{ font-size:30px; letter-spacing:-.028em; font-weight:650; margin:0 0 10px; }
.di-lede{ font-size:17px; opacity:.86; max-width:66ch; margin:0 0 24px; }

.di-steps{ counter-reset:s; display:grid; gap:12px; }
.di-step{ background:var(--di-panel); border:1px solid var(--line); border-radius:13px;
  padding:18px 20px 18px 62px; position:relative; }
.di-step::before{ counter-increment:s; content:counter(s); position:absolute; left:20px; top:18px;
  width:27px; height:27px; border-radius:50%; background:var(--green); color:#fff;
  display:grid; place-items:center; font:600 13px var(--mono); }
.di-step h3{ margin:0 0 6px; font-size:16.5px; font-weight:600; }
.di-step p{ margin:0; font-size:14.5px; color:var(--mut); line-height:1.6; }

.di-foot-note{ margin:0; color:var(--mut); font-size:14.5px; }

.di-cta{ margin:34px 0 48px; background:var(--green); color:#fff; border-radius:18px;
  padding:36px; display:flex; gap:26px; align-items:center; flex-wrap:wrap; }
.di-cta h2{ margin:0 0 8px; font-size:27px; letter-spacing:-.025em; font-weight:650; color:#fff; }
.di-cta p{ margin:0; font-size:15.5px; color:rgba(255,255,255,.82); max-width:52ch; }
.di-acts{ margin-left:auto; display:flex; gap:10px; flex-wrap:wrap; }
.di-acts a{ background:#fff; color:var(--green); font:600 14.5px var(--body,inherit);
  padding:12px 20px; border-radius:10px; text-decoration:none; white-space:nowrap; }
.di-acts a.ghost{ background:transparent; color:#fff; border:1px solid rgba(255,255,255,.45); }

@media (max-width:820px){
  .di-hero h1{ font-size:34px; max-width:none; }
  .di-cta{ padding:26px 22px; } .di-acts{ margin-left:0; }
}
