/* ==========================================================================
   VPN Labs — Evidence module (Design v2 "consumer-security clean")
   /evidence, /evidence/:record/:evidence, /evidence/verify, /evidence/integrity, 403 file page.
   Tokens only (base.css), rounded cards, pill chips/badges, navy hero + glow bands,
   flat illustrations. Monospace only for IDs, hashes, file names and commands.
   Robust to long translations: no fixed widths or nowrap on translatable text.
   ========================================================================== */

/* ------------------------------------------------------------------ hero */
.ev-hero {
  margin-bottom: 0;
}
.ev-hero--landing {
  padding-block: var(--s-8) var(--s-9);
}
.ev-hero--overlap {
  padding-bottom: calc(var(--s-8) + 5.5rem);
}
.ev-hero__grid {
  gap: var(--s-7);
}
.ev-hero__text {
  min-width: 0;
}
.ev-hero .kicker {
  margin-bottom: var(--s-5);
}
.ev-hero__title {
  max-width: 16ch;
  overflow-wrap: break-word;
  hyphens: manual;
}
.ev-hero--doc .ev-hero__title {
  max-width: 20ch;
}
.ev-hero__lead {
  max-width: 58ch;
}
.ev-hero__lead strong {
  color: var(--c-ink);
}
.ev-hero__actions {
  margin-top: var(--s-6);
}
.ev-hero__art {
  min-width: 0;
}
.ev-art {
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--c-surface-2);
}
.ev-art .illustration {
  display: block;
  width: 100%;
  border-radius: 0;
}
.page-hero--dark .ev-art {
  box-shadow: 0 30px 80px color-mix(in srgb, var(--c-band) 70%, transparent);
  outline: 1px solid color-mix(in srgb, var(--c-band-fg) 10%, transparent);
}
@media (max-width: 1079px) {
  .ev-hero__art {
    max-width: 560px;
  }
}

/* trust row: check icon + short fact */
.ev-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-6);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink-2);
}
.ev-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.ev-trust .icon {
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c-teal) 22%, transparent);
  color: var(--c-teal);
  stroke-width: 2.4;
}
.page-hero--dark .ev-trust .icon {
  color: var(--c-band-fg);
  background: color-mix(in srgb, var(--c-teal) 55%, transparent);
}

/* meta chips (policy version, review date) */
.ev-metachips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-5);
}
.ev-metachips li {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-ink-2);
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-pill);
  padding: 0.4em 0.9em;
}

/* ------------------------------------------------------- floating stat card */
.ev-statband {
  position: relative;
  z-index: 2;
  margin-top: -6rem;
}
.ev-statcard {
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--s-6);
}
.ev-statcard__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5) var(--s-4);
  margin: 0;
}
@media (min-width: 720px) {
  .ev-statcard__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .ev-statcard {
    padding: var(--s-6) var(--s-7);
  }
  .ev-statcard__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .ev-stat + .ev-stat {
    border-left: 1px solid var(--c-rule);
    padding-left: var(--s-5);
  }
}
.ev-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.ev-stat__value {
  order: -1;
  margin: 0;
  font-size: var(--fs-2xl);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: var(--tracking-display);
  font-variant-numeric: tabular-nums;
  color: var(--c-ink);
}
.ev-stat--verified .ev-stat__value {
  color: var(--c-success);
}
.ev-stat--mismatch .ev-stat__value {
  color: var(--c-danger);
}
.ev-stat__label {
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--c-ink);
}
.ev-stat__note {
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--c-muted);
  line-height: 1.4;
}
.ev-statcard__foot {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-rule);
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

/* -------------------------------------------------------------- sections */
.ev-section--ledger {
  padding-top: var(--s-8);
}
.ev-center-link {
  margin-top: var(--s-6);
  text-align: center;
}
.ev-footnote {
  margin-top: var(--s-5);
  font-size: var(--fs-sm);
  color: var(--c-muted);
  max-width: 90ch;
}
.ev-footnote code,
.ev-block__lead code,
.ev-tool__lead code {
  font-size: 0.85em;
  background: var(--c-surface-2);
  border-radius: var(--r-xs);
  padding: 0.1em 0.4em;
  overflow-wrap: anywhere;
  color: var(--c-ink);
}
.section--soft .ev-footnote code {
  background: var(--c-surface-3);
}

/* ------------------------------------------------- search + filter chips */
.ev-filterbox {
  background: var(--c-surface-2);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 720px) {
  .ev-filterbox {
    padding: var(--s-6);
  }
}
.ev-search__grid {
  display: grid;
  gap: var(--s-4);
  align-items: end;
}
@media (min-width: 900px) {
  .ev-search__grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.25fr) auto;
  }
}
.ev-search__hint {
  margin-top: var(--s-2);
}
.ev-search .field input,
.ev-search .field select {
  border-radius: var(--r-pill);
  padding-inline: 1.25rem;
}
.ev-search .field {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.ev-search__submit .btn {
  min-height: 52px;
  width: 100%;
}

.ev-facets {
  display: grid;
  gap: var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--c-rule);
}
.ev-facet {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
@media (min-width: 720px) {
  .ev-facet {
    flex-direction: row;
    align-items: baseline;
    gap: var(--s-4);
  }
  .ev-facet__label {
    flex: 0 1 auto;
    min-width: 7rem;
  }
}
.ev-facet__label {
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--c-ink);
}
.ev-facet__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  min-width: 0;
}
.ev-fchip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 38px;
  padding: 0.35em 0.5em 0.35em 1em;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-rule-strong);
  background: var(--c-surface);
  color: var(--c-ink-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.ev-fchip:hover {
  border-color: var(--c-accent-line);
  color: var(--c-accent-text);
  text-decoration: none;
}
.ev-fchip__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9em;
  padding: 0.15em 0.5em;
  border-radius: var(--r-pill);
  background: var(--c-surface-2);
  color: var(--c-muted);
  font-size: var(--fs-2xs);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.ev-fchip.is-active {
  background: var(--c-accent);
  border-color: var(--c-accent-line);
  color: var(--c-accent-ink);
}
.ev-fchip.is-active .ev-fchip__n {
  background: color-mix(in srgb, var(--c-accent-ink) 22%, transparent);
  color: var(--c-accent-ink);
}

/* result line + active filters */
.ev-results {
  margin-top: var(--s-6);
}
.ev-results__bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-4);
}
.ev-result-line {
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
}
.ev-result-line strong {
  color: var(--c-ink);
}
.ev-active {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  align-items: center;
}
.ev-active__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.ev-active__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.4em 0.8em;
  border-radius: var(--r-pill);
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
  font-size: var(--fs-xs);
  font-weight: 650;
  text-decoration: none;
}
.ev-active__chip:hover {
  text-decoration: none;
  background: var(--c-accent);
  color: var(--c-accent-ink);
}
.ev-active__reset {
  font-size: var(--fs-xs);
  font-weight: 650;
}
.ev-results__notice {
  margin-bottom: var(--s-4);
}

/* ------------------------------------------------------------ data tables */
.ev-table-wrap {
  border-radius: var(--r-xl);
}
.ev-table__caption {
  font-size: var(--fs-sm);
  padding: var(--s-4) var(--s-5) var(--s-3) !important;
}
.ev-table-wrap .data-table thead th {
  white-space: normal;
}
.ev-ledger td,
.ev-ledger th {
  vertical-align: middle;
}
.ev-ledger__label {
  min-width: 18rem;
  width: 38%;
}
.ev-ledger__label > a {
  display: block;
  color: var(--c-ink);
  font-weight: 650;
  line-height: 1.35;
}
.ev-ledger__label > a:hover {
  color: var(--c-accent-text);
}
.ev-ledger__rec {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
  align-items: center;
  margin-top: 0.35rem;
  font-size: var(--fs-xs);
  color: var(--c-muted);
  font-weight: 450;
  line-height: 1.4;
}
.ev-ledger__kind {
  font-weight: 650;
  color: var(--c-ink-2);
}
.ev-ledger__kind + .ev-ledger__title::before {
  content: '·';
  margin-right: 0.5rem;
  color: var(--c-muted);
}
.ev-ledger__rec .badge {
  white-space: normal;
}
.ev-ledger__time time {
  display: grid;
  gap: 0.1rem;
}
.ev-ledger__time,
.ev-ledger__size,
.ev-ledger__hash {
  white-space: nowrap;
}
.ev-shorthash {
  align-items: center;
}
/* Desktop table only: keep status pills on one line (.table-wrap scrolls if a translation is long). */
@media (min-width: 1000px) {
  .ev-ledger .ev-int,
  .ev-ledger .ev-access,
  .ev-meaning .ev-int {
    white-space: nowrap;
  }
}
.ev-shorthash code {
  background: transparent !important;
  padding: 0 !important;
  color: var(--c-ink-2);
  word-break: normal !important;
}
.ev-ledger tr.is-retracted .ev-ledger__label > a,
.ev-manifests tr.is-retracted td > a {
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--c-danger) 60%, transparent);
}
.ev-time {
  color: var(--c-muted);
  font-size: 0.9em;
}
.ev-dl {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.ev-dl__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35em 0.75em;
  border-radius: var(--r-pill);
  background: var(--c-surface-2);
  font-family: var(--f-mono);
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--c-ink-2) !important;
  text-decoration: none;
}
.ev-dl__link:hover {
  background: var(--c-accent-soft);
  color: var(--c-accent-text) !important;
  text-decoration: none;
}
.ev-meaning th[scope='row'] {
  font-weight: 650;
  color: var(--c-ink);
}

/* card layout for tables on narrow screens */
@media (max-width: 999px) {
  .ev-table-wrap {
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
  }
  .ev-table-wrap .data-table,
  .ev-table-wrap tbody,
  .ev-table-wrap tr,
  .ev-table-wrap th,
  .ev-table-wrap td {
    display: block;
  }
  .ev-table-wrap caption {
    display: block;
    padding: 0 0 var(--s-3) !important;
  }
  .ev-table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .ev-table-wrap tbody {
    display: grid;
    gap: var(--s-3);
  }
  .ev-table-wrap tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-3) var(--s-4);
    padding: var(--s-4) var(--s-5);
    background: var(--c-surface);
    border: 1px solid var(--c-rule);
    border-radius: var(--r-lg);
  }
  .ev-table-wrap tbody tr:hover {
    background: var(--c-surface);
  }
  .ev-table-wrap .data-table th,
  .ev-table-wrap .data-table td {
    padding: 0;
    border: 0;
    text-align: left;
    min-width: 0;
  }
  .ev-table-wrap td[data-label]::before,
  .ev-meaning th[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.2rem;
    font-size: var(--fs-2xs);
    font-weight: 600;
    color: var(--c-muted);
  }
  .ev-table-wrap th[scope='row'],
  .ev-ledger__label,
  .ev-ledger__hash,
  .ev-manifests td:nth-child(2),
  .ev-manifests td:last-child,
  .ev-meaning td {
    grid-column: 1 / -1;
  }
  .ev-ledger__label {
    min-width: 0;
    width: auto;
  }
  .ev-ledger__label::before {
    display: none !important;
  }
  .ev-ledger__time time {
    display: inline;
  }
  .ev-ledger__time .ev-time::before {
    content: ' ';
  }
}

/* ------------------------------------------------------- ID pill + badges */
.ev-id {
  display: inline-flex;
  align-items: center;
  gap: 0.15em;
  font-family: var(--f-mono);
  font-size: var(--fs-2xs);
  font-weight: 600;
  line-height: 1.2;
  padding: 0.42em 0.7em;
  border-radius: var(--r-sm);
  background: var(--c-surface-2);
  color: var(--c-ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.section--soft .ev-id,
.page-hero .ev-id {
  background: var(--c-surface-3);
}
a.ev-id:hover {
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
  text-decoration: none;
}
.ev-id__sep {
  color: var(--c-muted);
}
.ev-id__ev {
  color: var(--c-accent-text);
  font-weight: 700;
}
.ev-int,
.ev-access {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.38em 0.75em 0.38em 0.6em;
  border-radius: var(--r-pill);
  font-size: var(--fs-2xs);
  font-weight: 650;
  line-height: 1.2;
  vertical-align: middle;
}
.ev-int .icon,
.ev-access .icon {
  stroke-width: 2.2;
}
.ev-int--verified {
  background: var(--c-success-soft);
  color: var(--c-success);
}
.ev-int--mismatch {
  background: var(--c-danger-soft);
  color: var(--c-danger);
}
.ev-int--hash-only {
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
}
.ev-int--unpublished {
  background: var(--c-amber-soft);
  color: var(--c-amber-ink);
}
.ev-int--unavailable {
  background: var(--c-surface-3);
  color: var(--c-muted);
}
.ev-access--public {
  background: var(--c-teal-soft);
  color: color-mix(in srgb, var(--c-teal) 55%, var(--c-ink));
}
.ev-access--restricted {
  background: var(--c-amber-soft);
  color: var(--c-amber-ink);
}
.ev-access--withheld {
  background: var(--c-surface-3);
  color: var(--c-ink-2);
}

/* ------------------------------------------------- integrity state cards */
.ev-states {
  list-style: none;
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
.ev-state {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-lg);
  scroll-margin-top: calc(var(--header-h) + 2rem);
}
.ev-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin-bottom: var(--s-2);
  background: var(--c-surface-2);
  color: var(--c-muted);
}
.ev-state--verified .ev-state__icon {
  background: var(--c-success-soft);
  color: var(--c-success);
}
.ev-state--mismatch .ev-state__icon {
  background: var(--c-danger-soft);
  color: var(--c-danger);
}
.ev-state--hash-only .ev-state__icon {
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
}
.ev-state--unpublished .ev-state__icon {
  background: var(--c-amber-soft);
  color: var(--c-amber-ink);
}
.ev-state__title {
  font-size: var(--fs-md);
  font-weight: 700;
}
.ev-state__count {
  font-size: var(--fs-xs);
  font-weight: 650;
  color: var(--c-accent-text);
}
.ev-state__text {
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--c-ink-2);
}

/* --------------------------------------------- feature row (text + art) */
.ev-feature {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 960px) {
  .ev-feature {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: var(--s-8);
  }
  .ev-feature--reverse .ev-feature__art {
    order: -1;
  }
  .ev-feature--reverse {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}
.ev-feature__title {
  font-size: var(--fs-2xl);
  line-height: 1.1;
  letter-spacing: var(--tracking-display);
  max-width: 20ch;
}
.ev-feature__body {
  margin-top: var(--s-5);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--c-ink-2);
  max-width: 60ch;
}
.ev-feature__text > p:last-child {
  margin-top: var(--s-5);
}
.ev-linklist {
  list-style: none;
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.ev-checklist {
  list-style: none;
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.ev-checklist li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
  color: var(--c-ink-2);
  line-height: 1.55;
}
.ev-checklist .icon {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 50%;
  background: var(--c-success-soft);
  color: var(--c-success);
  stroke-width: 2.4;
}

/* ----------------------------------------- 3-up cards with illustration */
.ev-cards {
  align-items: stretch;
}
.ev-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.ev-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--c-rule-strong);
}
.ev-card__art {
  background: var(--c-surface-2);
}
.ev-card__art .illustration {
  border-radius: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.ev-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5) var(--s-6) var(--s-6);
  flex: 1;
}
.ev-card__title {
  font-size: var(--fs-lg);
  font-weight: 700;
}
.ev-card__title a {
  color: var(--c-ink);
  text-decoration: none;
}
.ev-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.ev-card__title a:focus-visible {
  outline: none;
}
.ev-card:focus-within {
  outline: var(--focus);
  outline-offset: 2px;
}
.ev-card__text {
  color: var(--c-ink-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.ev-card__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 650;
  font-size: var(--fs-sm);
  color: var(--c-accent-text);
}

/* ---------------------------------------------------------- CTA banner */
.ev-cta-section {
  padding-top: 0;
  padding-bottom: var(--s-4);
}
.ev-cta {
  display: grid;
  gap: var(--s-6);
  align-items: center;
  border-radius: var(--r-xl);
  padding: var(--s-7) var(--s-5);
  overflow: hidden;
}
@media (min-width: 720px) {
  .ev-cta {
    padding: var(--s-8) var(--s-7);
  }
}
@media (min-width: 960px) {
  .ev-cta {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    padding: var(--s-8);
  }
}
.ev-cta__title {
  font-size: var(--fs-2xl);
  line-height: 1.1;
  letter-spacing: var(--tracking-display);
  max-width: 22ch;
  color: var(--c-band-fg);
}
.ev-cta__lead {
  margin-top: var(--s-4);
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--c-ink-2);
  max-width: 56ch;
}
.ev-cta__art .illustration {
  border-radius: var(--r-lg);
  max-width: 360px;
  margin-inline: auto;
}
@media (max-width: 959px) {
  .ev-cta__art {
    display: none;
  }
}

/* ============================================================ item page */
.ev-hero--item {
  padding-block: var(--s-7) var(--s-8);
}
.ev-item-hero {
  display: grid;
  gap: var(--s-6);
  align-items: start;
}
@media (min-width: 1080px) {
  .ev-item-hero {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--s-8);
  }
}
.ev-item-hero__text {
  min-width: 0;
}
.ev-item-hero__title {
  display: grid;
  gap: var(--s-3);
  font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: var(--tracking-display);
  font-weight: 750;
  max-width: 28ch;
}
.ev-item-hero__key {
  justify-self: start;
  font-family: var(--f-mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  padding: 0.4em 0.85em;
  border-radius: var(--r-pill);
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
}
.ev-item-hero__label {
  overflow-wrap: break-word;
  hyphens: auto;
}
.ev-item-hero__summary {
  margin-top: var(--s-5);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--c-ink-2);
  max-width: 68ch;
  overflow-wrap: anywhere;
}
.ev-item-hero__chips {
  margin-top: var(--s-5);
}
.ev-item-hero__chips .badge {
  white-space: normal;
}
.ev-item-hero__actions {
  margin-top: var(--s-6);
}

/* hash card */
.ev-hashcard {
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: var(--s-6);
  display: grid;
  gap: var(--s-4);
  min-width: 0;
}
.ev-hashcard__head {
  display: flex;
  gap: var(--s-3);
  align-items: center;
}
.ev-hashcard__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-accent-ink);
}
.ev-hashcard--verified .ev-hashcard__icon {
  background: var(--c-success);
  color: var(--c-paper);
}
.ev-hashcard--mismatch .ev-hashcard__icon {
  background: var(--c-danger);
  color: var(--c-paper);
}
.ev-hashcard__title {
  font-weight: 700;
  font-size: var(--fs-md);
  line-height: 1.3;
}
.ev-hashcard__sub {
  font-size: var(--fs-xs);
  color: var(--c-muted);
}
.ev-hashcard__hash .hash {
  display: flex;
  width: 100%;
}
.ev-hashcard__hash .hash code {
  flex: 1;
  display: block;
  font-size: var(--fs-sm);
  line-height: 1.65;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  color: var(--c-ink);
  word-break: break-all;
}
.ev-hashcard__hash .copy-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
}
.ev-hashcard__state {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-3);
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
}
.ev-hashcard__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3) var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--c-rule);
}
.ev-hashcard__facts dt {
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--c-muted);
}
.ev-hashcard__facts dd {
  font-size: var(--fs-sm);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* body + sidebar */
.ev-item-body {
  padding-top: var(--s-7);
}
.ev-item-main {
  min-width: 0;
}
.ev-notices {
  display: grid;
  gap: var(--s-3);
  margin-bottom: var(--s-7);
}
.ev-block {
  margin-bottom: var(--s-8);
  scroll-margin-top: calc(var(--header-h) + 2rem);
}
.ev-block:last-child {
  margin-bottom: 0;
}
.ev-block__title {
  font-size: var(--fs-xl);
  line-height: 1.2;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--s-4);
}
.ev-block__lead {
  color: var(--c-ink-2);
  max-width: 72ch;
  margin-bottom: var(--s-5);
  overflow-wrap: break-word;
}
.ev-block__note {
  margin-top: var(--s-4);
  font-size: var(--fs-sm);
  color: var(--c-muted);
  max-width: 80ch;
}
.ev-expected {
  word-break: break-all;
}
.ev-empty-line {
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
  color: var(--c-ink-2);
}

/* integrity check panel */
.ev-check {
  border: 1px solid var(--c-rule);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--c-surface);
}
.ev-check__state {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  padding: var(--s-5) var(--s-6);
  background: var(--c-surface-2);
}
.ev-check--verified .ev-check__state {
  background: var(--c-success-soft);
}
.ev-check--mismatch .ev-check__state {
  background: var(--c-danger-soft);
}
.ev-check--hash-only .ev-check__state {
  background: var(--c-accent-soft);
}
.ev-check--unpublished .ev-check__state {
  background: var(--c-amber-soft);
}
.ev-check__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-muted);
  color: var(--c-paper);
}
.ev-check--verified .ev-check__icon {
  background: var(--c-success);
}
.ev-check--mismatch .ev-check__icon {
  background: var(--c-danger);
}
.ev-check--hash-only .ev-check__icon {
  background: var(--c-accent);
  color: var(--c-accent-ink);
}
.ev-check--unpublished .ev-check__icon {
  background: var(--c-amber);
  color: var(--c-band);
}
.ev-check__icon .icon {
  stroke-width: 2.2;
}
.ev-check__summary {
  min-width: 0;
}
.ev-check__label {
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.3;
}
.ev-check__text {
  margin-top: var(--s-1);
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
  line-height: 1.55;
}
.ev-check__rows {
  margin: 0;
  padding: var(--s-2) var(--s-6) var(--s-4);
}
.ev-check__row {
  display: grid;
  gap: var(--s-1) var(--s-5);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--c-rule);
}
.ev-check__row:last-child {
  border-bottom: 0;
}
@media (min-width: 720px) {
  .ev-check__row {
    grid-template-columns: minmax(9rem, 1fr) minmax(0, 3fr);
    align-items: baseline;
  }
}
.ev-check__row dt {
  font-size: var(--fs-xs);
  font-weight: 650;
  color: var(--c-muted);
}
.ev-check__row dd {
  font-size: var(--fs-sm);
  min-width: 0;
}
.ev-check__row .hash code {
  font-size: var(--fs-xs);
}

/* details: white grid with hairlines (no grey filler cells) */
.ev-details {
  border-radius: var(--r-xl);
  gap: 0;
  background: var(--c-surface);
}
.ev-details .meta-grid__item {
  box-shadow: 1px 0 0 var(--c-rule), 0 1px 0 var(--c-rule);
}
.ev-note {
  margin-top: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
  line-height: 1.6;
}
.ev-note strong {
  color: var(--c-ink);
  margin-right: 0.35rem;
}
.ev-meta-note {
  display: block;
  margin-top: 0.35rem;
  font-weight: 450;
  color: var(--c-ink-2);
  font-size: var(--fs-xs);
}
.ev-meta-link {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: var(--fs-xs);
  font-weight: 600;
}

/* citing findings */
.ev-findings {
  list-style: none;
  display: grid;
  gap: var(--s-3);
}
.ev-finding {
  padding: var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-lg);
}
.ev-finding__top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
}
.ev-finding__top .badge {
  white-space: normal;
}
.ev-finding__id,
.ev-finding__cvss {
  font-family: var(--f-mono);
  font-size: var(--fs-2xs);
  font-weight: 600;
  padding: 0.4em 0.7em;
  border-radius: var(--r-sm);
  background: var(--c-surface-2);
  color: var(--c-ink-2);
}
.ev-finding__title {
  margin-top: var(--s-3);
  font-size: var(--fs-md);
  line-height: 1.35;
}
.ev-finding__title a {
  color: var(--c-ink);
}
.ev-finding__title a:hover {
  color: var(--c-accent-text);
}
.ev-finding__summary {
  margin-top: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
}
.ev-finding__also {
  margin-top: var(--s-2);
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

/* dark code cards (commands, preview, manifests) */
.ev-cmds {
  display: grid;
  gap: var(--s-4);
}
.ev-code {
  margin: 0;
  min-width: 0;
  background: var(--c-band);
  color: var(--c-band-fg);
  border: 1px solid var(--c-band-rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.section--ink .ev-code {
  background: var(--c-band-surface);
  box-shadow: 0 24px 60px color-mix(in srgb, var(--c-band) 60%, transparent);
}
.ev-code__head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--c-band-rule);
  background: var(--c-band-surface);
}
.section--ink .ev-code__head {
  background: var(--c-band-surface-2);
}
.ev-code__dots {
  display: inline-flex;
  gap: 5px;
  flex-shrink: 0;
}
.ev-code__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-band-rule);
}
.ev-code__dots i:first-child {
  background: color-mix(in srgb, var(--c-danger) 70%, var(--c-band));
}
.ev-code__dots i:nth-child(2) {
  background: color-mix(in srgb, var(--c-amber) 70%, var(--c-band));
}
.ev-code__dots i:nth-child(3) {
  background: color-mix(in srgb, var(--c-teal) 70%, var(--c-band));
}
.ev-code__titles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem var(--s-3);
  align-items: baseline;
  flex: 1;
  min-width: 0;
}
.ev-code__platform {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-band-fg);
}
.ev-code__label,
.ev-code__file {
  font-size: var(--fs-xs);
  color: var(--c-band-muted);
  overflow-wrap: anywhere;
}
.ev-code__file {
  color: var(--c-band-fg);
  font-weight: 600;
}
.ev-code__label a {
  color: var(--c-band-fg);
  text-decoration: underline;
}
.ev-code__copy.copy-btn {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--c-band-fg) 8%, transparent);
  border-color: color-mix(in srgb, var(--c-band-fg) 16%, transparent);
  color: var(--c-band-fg);
}
.ev-code__copy.copy-btn:hover {
  background: color-mix(in srgb, var(--c-band-fg) 16%, transparent);
  color: var(--c-band-fg);
}
.ev-code__pre {
  margin: 0;
  padding: var(--s-4) var(--s-5);
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--c-band-fg);
  white-space: pre-wrap;
  word-break: break-all;
  overflow-x: auto;
}
.ev-code__pre code {
  font-size: inherit;
  background: none;
  padding: 0;
  color: inherit;
}
.ev-code__note {
  padding: 0 var(--s-5) var(--s-4);
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--c-band-muted);
}
.ev-code__note code {
  font-size: 0.95em;
  padding: 0.1em 0.4em;
  border-radius: var(--r-xs);
  background: color-mix(in srgb, var(--c-band-fg) 10%, transparent);
  color: var(--c-band-fg);
  overflow-wrap: anywhere;
}
.ev-code--preview .ev-code__pre,
.ev-code--manifest .ev-code__pre {
  white-space: pre;
  word-break: normal;
  max-height: 32rem;
  overflow: auto;
}
.ev-preview {
  counter-reset: line;
}
.ev-preview__line {
  display: block;
  counter-increment: line;
  padding-left: 3.4em;
  position: relative;
  min-height: 1.7em;
}
.ev-preview__line::before {
  content: counter(line);
  position: absolute;
  left: 0;
  width: 2.6em;
  text-align: right;
  color: var(--c-band-muted);
  opacity: 0.6;
  user-select: none;
}

/* chain of custody timeline */
.ev-timeline {
  list-style: none;
  display: grid;
  gap: 0;
}
.ev-timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-4);
  padding-bottom: var(--s-5);
}
.ev-timeline__step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 4px;
  width: 2px;
  border-radius: 2px;
  background: var(--c-rule);
}
.ev-timeline__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
}
.ev-timeline__step--danger .ev-timeline__dot {
  background: var(--c-danger-soft);
  color: var(--c-danger);
}
.ev-timeline__step--live .ev-timeline__dot {
  background: var(--c-success-soft);
  color: var(--c-success);
}
.ev-timeline__body {
  padding: var(--s-1) 0 0;
  min-width: 0;
}
.ev-timeline__date {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-muted);
}
.ev-timeline__title {
  font-size: var(--fs-base);
  font-weight: 700;
  margin-top: 0.1rem;
}
.ev-timeline__text {
  margin-top: 0.2rem;
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
  max-width: 70ch;
}

/* citation */
.ev-cite {
  display: grid;
  gap: var(--s-4);
  justify-items: start;
  padding: var(--s-5) var(--s-6);
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
}
.ev-cite__text {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--c-ink);
  overflow-wrap: anywhere;
}

/* sibling evidence */
.ev-siblings {
  list-style: none;
  display: grid;
  gap: var(--s-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.ev-sibling {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-lg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ev-sibling:hover {
  border-color: var(--c-rule-strong);
  box-shadow: var(--shadow-sm);
}
.ev-sibling__top,
.ev-sibling__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
}
.ev-sibling__label {
  font-weight: 650;
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: var(--c-ink);
}
.ev-sibling__label:hover {
  color: var(--c-accent-text);
}
.ev-sibling__meta {
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

/* sidebar */
.ev-side {
  display: grid;
  gap: var(--s-4);
  align-content: start;
  min-width: 0;
}
.ev-side__card {
  background: var(--c-surface-2);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}
.ev-side__title {
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: var(--s-3);
}
.ev-side__links {
  list-style: none;
  display: grid;
  gap: var(--s-1);
}
.ev-side__links a {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
  padding: 0.45rem 0.6rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  line-height: 1.35;
  color: var(--c-ink-2);
  text-decoration: none;
}
.ev-side__links a:hover {
  background: var(--c-surface);
  color: var(--c-accent-text);
}
.ev-side__links .icon {
  margin-top: 0.1rem;
  color: var(--c-accent-text);
}
@media (max-width: 1079px) {
  .ev-side .toc {
    display: none;
  }
}

/* ============================================================ verifier */
.ev-toolwrap {
  position: relative;
  z-index: 2;
  margin-top: -6rem;
}
.ev-tool {
  display: grid;
  gap: var(--s-6);
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--s-5);
}
@media (min-width: 720px) {
  .ev-tool {
    padding: var(--s-7);
  }
}
@media (min-width: 1000px) {
  .ev-tool {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--s-7);
  }
  .ev-tool__panel--hash {
    border-left: 1px solid var(--c-rule);
    padding-left: var(--s-7);
  }
}
@media (max-width: 999px) {
  .ev-tool__panel--hash {
    border-top: 1px solid var(--c-rule);
    padding-top: var(--s-6);
  }
}
.ev-tool__panel {
  min-width: 0;
}
.ev-tool__title {
  font-size: var(--fs-xl);
  line-height: 1.2;
}
.ev-tool__lead {
  margin-top: var(--s-2);
  margin-bottom: var(--s-5);
  color: var(--c-ink-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.ev-tool__result {
  grid-column: 1 / -1;
  padding-top: var(--s-6);
  border-top: 1px solid var(--c-rule);
  scroll-margin-top: calc(var(--header-h) + 2rem);
}
.ev-tool__result-title {
  font-size: var(--fs-lg);
  margin-bottom: var(--s-4);
}

/* drop zone */
.ev-verifier {
  position: relative;
}
.ev-verifier__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.ev-drop {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: var(--s-2);
  min-height: 300px;
  padding: var(--s-7) var(--s-5);
  text-align: center;
  border: 2px dashed color-mix(in srgb, var(--c-accent-line) 40%, transparent);
  border-radius: var(--r-xl);
  background: color-mix(in srgb, var(--c-accent-soft) 65%, var(--c-surface));
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, transform 0.15s;
}
.ev-drop:hover,
.ev-verifier.is-dragover .ev-drop {
  border-color: var(--c-accent-line);
  border-style: solid;
  background: var(--c-accent-soft);
}
.ev-verifier.is-dragover .ev-drop {
  transform: scale(1.01);
}
.ev-verifier__input:focus-visible + .ev-drop {
  outline: var(--focus);
  outline-offset: 3px;
}
.ev-drop__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin-bottom: var(--s-3);
  border-radius: 50%;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--c-accent) 14%, transparent);
}
.ev-verifier.is-busy .ev-drop__icon {
  animation: ev-pulse 1.2s ease-in-out infinite;
}
@keyframes ev-pulse {
  50% {
    box-shadow: 0 0 0 18px color-mix(in srgb, var(--c-accent) 6%, transparent);
  }
}
.ev-drop__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-ink);
}
.ev-drop__or {
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.ev-drop__browse {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.6rem 1.3rem;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  border: 1.5px solid var(--c-rule-strong);
  font-weight: 650;
  color: var(--c-ink);
}
.ev-drop:hover .ev-drop__browse {
  border-color: var(--c-accent-line);
  color: var(--c-accent-text);
}
.ev-drop__note {
  margin-top: var(--s-2);
  font-size: var(--fs-xs);
  color: var(--c-muted);
  max-width: 44ch;
}
/* The live region is ALWAYS rendered (never display:none) so the first message is announced. */
.ev-verifier__status {
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
  border-radius: var(--r-md);
}
.ev-verifier__status:not(:empty) {
  padding: 0.75rem 1rem;
  background: var(--c-surface-2);
}
.ev-verifier__status.is-error {
  background: var(--c-danger-soft);
  color: var(--c-danger);
}
.ev-verifier__result:not(:empty) {
  margin-top: var(--s-4);
}
.ev-verifier__warning {
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--c-amber-soft);
  color: var(--c-amber-ink);
  font-size: var(--fs-sm);
  margin-bottom: var(--s-4);
}
.ev-nojs {
  margin-top: var(--s-2);
}

/* paste-a-hash form */
.ev-hashform {
  display: grid;
  gap: var(--s-4);
  justify-items: start;
}
.ev-hashform .field {
  width: 100%;
}
.ev-hashform input {
  font-family: var(--f-mono);
  font-size: var(--fs-sm) !important;
}
.ev-privacy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--c-surface-2);
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--c-ink-2);
}
.ev-privacy .icon {
  color: var(--c-success);
}

/* lookup results (server + client) */
.ev-lookup {
  display: grid;
  gap: var(--s-4);
  justify-items: start;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
  overflow-wrap: anywhere;
}
.ev-lookup > * {
  max-width: 100%;
}
.ev-lookup--match {
  background: var(--c-success-soft);
}
.ev-lookup--invalid {
  background: var(--c-danger-soft);
}
.ev-lookup__verdict {
  display: flex;
  gap: var(--s-2);
  align-items: center;
  font-size: var(--fs-lg);
  font-weight: 700;
}
.ev-lookup--match .ev-lookup__verdict {
  color: var(--c-success);
}
.ev-lookup--invalid .ev-lookup__verdict {
  color: var(--c-danger);
}
.ev-lookup__query {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
}
.ev-lookup .hash code {
  background: var(--c-surface);
}
.ev-lookup__caveat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-2);
  font-size: var(--fs-xs);
  color: var(--c-ink-2);
}
.ev-matches {
  list-style: none;
  display: grid;
  gap: var(--s-3);
  width: 100%;
}
.ev-match {
  padding: var(--s-4) var(--s-5);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-rule);
}
.ev-match__top {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
}
.ev-match__top .badge {
  white-space: normal;
}
.ev-match__title {
  margin-top: var(--s-3);
  font-size: var(--fs-md);
  line-height: 1.35;
}
.ev-match__headline {
  margin-top: var(--s-2);
  font-weight: 650;
  color: var(--c-success);
}
.ev-match--matches-stored-only .ev-match__headline {
  color: var(--c-amber-ink);
}
.ev-match__text,
.ev-match__rec {
  margin-top: var(--s-1);
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
}
.ev-file-facts {
  display: grid;
  gap: var(--s-2);
  width: 100%;
  margin: 0;
  font-size: var(--fs-sm);
}
.ev-file-facts > div {
  display: grid;
  gap: 0.15rem var(--s-4);
}
@media (min-width: 720px) {
  .ev-file-facts > div {
    grid-template-columns: minmax(8rem, 1fr) minmax(0, 3fr);
  }
}
.ev-file-facts dt {
  font-size: var(--fs-xs);
  font-weight: 650;
  color: var(--c-muted);
}
.ev-file-facts dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* feature cards (limits) */
.ev-feature-cards {
  list-style: none;
}
.ev-fcard {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6);
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-xl);
}
.ev-fcard__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
  margin-bottom: var(--s-2);
}
.ev-fcard__title {
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.3;
}
.ev-fcard__text {
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
  line-height: 1.6;
}

/* navy band with text + code card */
.ev-band__grid {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 960px) {
  .ev-band__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}
.ev-band__title {
  font-size: var(--fs-2xl);
  line-height: 1.1;
  letter-spacing: var(--tracking-display);
  max-width: 18ch;
}
.ev-band__lead {
  margin-top: var(--s-4);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--c-ink-2);
  max-width: 52ch;
}
.ev-oscmds {
  margin: 0;
  padding: var(--s-3) var(--s-5) var(--s-4);
  display: grid;
}
.ev-oscmds > div {
  display: grid;
  gap: 0.2rem;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--c-band-rule);
}
.ev-oscmds > div:last-child {
  border-bottom: 0;
}
.ev-oscmds dt {
  font-size: var(--fs-xs);
  font-weight: 650;
  color: var(--c-band-muted);
}
.ev-oscmds dd {
  min-width: 0;
}
.ev-oscmds code {
  font-size: var(--fs-sm);
  color: var(--c-band-fg);
  overflow-wrap: anywhere;
}

/* FAQ headings inside <summary> */
.ev-faq__q {
  font: inherit;
  letter-spacing: inherit;
  line-height: 1.4;
  margin: 0;
}
.ev-faq details > p {
  max-width: 72ch;
  line-height: 1.65;
}

/* ===================================================== integrity policy */
.ev-tocchips {
  padding-block: var(--s-5) 0;
}
.ev-tocchips__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.ev-tocchips__list a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.4em 1em;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-rule-strong);
  background: var(--c-surface);
  color: var(--c-ink-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.ev-tocchips__list a:hover {
  border-color: var(--c-accent-line);
  color: var(--c-accent-text);
}
.page-evidence--integrity .ev-section {
  scroll-margin-top: var(--header-h);
}

.ev-kinds {
  list-style: none;
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.ev-kind {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-lg);
}
.ev-kind__icon,
.ev-why__icon,
.ev-retention__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
}
.ev-kind__icon {
  margin-bottom: var(--s-2);
}
.ev-kind__title {
  font-size: var(--fs-md);
  font-weight: 700;
}
.ev-kind__text {
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
  line-height: 1.55;
}
.ev-kind__link {
  margin-top: auto;
  font-size: var(--fs-xs);
  font-weight: 650;
}
.ev-never {
  margin-top: var(--s-6);
  padding: var(--s-6);
  border-radius: var(--r-xl);
  background: var(--c-surface-2);
}
.ev-never__title {
  font-size: var(--fs-md);
  margin-bottom: var(--s-4);
}
.ev-never__list {
  list-style: none;
  display: grid;
  gap: var(--s-3);
}
@media (min-width: 960px) {
  .ev-never__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s-5);
  }
}
.ev-never__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
  line-height: 1.55;
}
.ev-never__list .icon {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 50%;
  background: var(--c-danger-soft);
  color: var(--c-danger);
  stroke-width: 2.4;
}

.ev-steps {
  list-style: none;
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}
.ev-step {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5) var(--s-5) var(--s-6);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-rule);
}
.ev-step__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: var(--s-2);
  background: var(--c-accent);
  color: var(--c-accent-ink);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.ev-step__title {
  font-size: var(--fs-md);
  font-weight: 700;
}
.ev-step__text {
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
  line-height: 1.6;
}
.ev-why {
  margin-top: var(--s-6);
  padding: var(--s-6);
  background: var(--c-surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-rule);
}
.ev-why__head {
  display: flex;
  gap: var(--s-3);
  align-items: center;
}
.ev-why__title {
  font-size: var(--fs-lg);
}
.ev-why > p:last-child {
  margin-top: var(--s-5);
}

.ev-manifest-grid {
  display: grid;
  gap: var(--s-6);
  align-items: start;
}
@media (min-width: 1080px) {
  .ev-manifest-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}
.ev-formats {
  display: grid;
  gap: var(--s-4);
}
.ev-format {
  padding: var(--s-5);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-rule);
}
.ev-format__title {
  font-size: var(--fs-md);
}
.ev-format__pattern {
  margin-top: var(--s-2);
}
.ev-format__pattern code {
  font-size: var(--fs-xs);
  padding: 0.25em 0.6em;
  border-radius: var(--r-sm);
  background: var(--c-surface-2);
  overflow-wrap: anywhere;
}
.ev-format__text {
  margin-top: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
}
.ev-format__http {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-3);
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
}
.ev-format__http .icon {
  color: var(--c-accent-text);
}

.ev-access-cards,
.ev-redaction,
.ev-retention,
.ev-planned {
  list-style: none;
}
.ev-access-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-6);
  background: var(--c-surface);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-rule);
}
.ev-access-card__title {
  font-size: var(--fs-lg);
}
.ev-access-card p {
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
  line-height: 1.6;
}
.ev-subtitle {
  margin: var(--s-7) 0 var(--s-4);
  font-size: var(--fs-lg);
}
.ev-redact {
  padding: var(--s-5);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-rule);
}
.ev-redact__bar {
  display: grid;
  gap: 6px;
  margin-bottom: var(--s-4);
}
.ev-redact__bar i {
  display: block;
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--c-ink);
  width: 70%;
}
.ev-redact__bar i:last-child {
  width: 45%;
  background: var(--c-surface-3);
}
.ev-redact__title {
  font-size: var(--fs-base);
  font-weight: 700;
}
.ev-redact p {
  margin-top: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
  line-height: 1.6;
}
.ev-method {
  margin-top: var(--s-6);
  max-width: 80ch;
  color: var(--c-ink-2);
}

.ev-retention__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s-4);
  align-items: start;
  padding: var(--s-5);
  background: var(--c-surface-2);
  border-radius: var(--r-lg);
}
.ev-retention__item p {
  color: var(--c-ink-2);
  line-height: 1.6;
}

.ev-planned__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-6);
  background: var(--c-surface);
  border-radius: var(--r-xl);
  border: 1px dashed var(--c-rule-strong);
  scroll-margin-top: calc(var(--header-h) + 2rem);
}
.ev-planned__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.4em 0.85em;
  border-radius: var(--r-pill);
  background: var(--c-amber-soft);
  color: var(--c-amber-ink);
  font-size: var(--fs-2xs);
  font-weight: 650;
  line-height: 1.2;
}
.ev-planned__title {
  font-size: var(--fs-lg);
}
.ev-planned__card p {
  color: var(--c-ink-2);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.ev-planned__today {
  margin-top: auto;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--c-surface-2);
}

.ev-proves__grid {
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 900px) {
  .ev-proves__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.ev-proves__col {
  padding: var(--s-6);
  border-radius: var(--r-xl);
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
}
.ev-proves__head {
  display: flex;
  gap: var(--s-3);
  align-items: center;
  font-size: var(--fs-lg);
  margin-bottom: var(--s-4);
}
.ev-proves__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-teal);
  color: var(--c-band-fg);
}
.ev-proves__col--not .ev-proves__icon {
  background: var(--c-danger);
}
.ev-proves__col ul {
  display: grid;
  gap: var(--s-3);
  padding-left: 1.2em;
  color: var(--c-ink-2);
  line-height: 1.6;
}
.ev-proves__foot {
  margin-top: var(--s-6);
  text-align: center;
  color: var(--c-ink-2);
}

.ev-refs {
  margin-top: var(--s-7);
  padding: var(--s-6);
  border-radius: var(--r-xl);
  background: var(--c-surface-2);
}
.ev-refs__title {
  font-size: var(--fs-md);
  margin-bottom: var(--s-3);
}
.ev-refs ul {
  display: grid;
  gap: var(--s-2);
  padding-left: 1.2em;
  margin-bottom: var(--s-4);
  font-size: var(--fs-sm);
}
.ev-refs a {
  overflow-wrap: anywhere;
}

/* ============================================================ 403 page */
.ev-hero--forbidden {
  padding-block: var(--s-8);
}
.ev-forbidden {
  display: grid;
  gap: var(--s-6);
  align-items: start;
}
@media (min-width: 900px) {
  .ev-forbidden {
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--s-8);
  }
}
.ev-forbidden__badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  box-shadow: var(--shadow-md);
  color: var(--c-accent-text);
  font-family: var(--f-mono);
  font-size: var(--fs-xl);
  font-weight: 700;
}
.ev-forbidden__facts {
  margin-top: var(--s-6);
}

/* ========================================================= small screens */
@media (max-width: 719px) {
  .ev-hero--landing {
    padding-top: var(--s-7);
  }
  /* The verifier is the page's job: on phones the tool comes straight after the headline. */
  .ev-hero--verify .ev-hero__art {
    display: none;
  }
  .ev-ledger__kind {
    flex-basis: 100%;
  }
  .ev-ledger__kind + .ev-ledger__title::before {
    content: none;
  }
  .ev-hero--overlap {
    padding-bottom: calc(var(--s-7) + 5rem);
  }
  .ev-hero__actions .btn {
    flex: 1 1 100%;
  }
  .ev-statcard {
    padding: var(--s-5);
  }
  .ev-hashcard {
    padding: var(--s-5);
  }
  .ev-check__state,
  .ev-check__rows {
    padding-inline: var(--s-4);
  }
  .ev-cite {
    padding: var(--s-4);
  }
  .ev-code__pre {
    padding: var(--s-3) var(--s-4);
  }
  .ev-code__note {
    padding: 0 var(--s-4) var(--s-3);
  }
  .ev-drop {
    min-height: 240px;
    padding: var(--s-6) var(--s-4);
  }
  .ev-forbidden__badge {
    width: 120px;
    height: 120px;
  }
}

/* ================================================================ print */
@media print {
  .ev-filterbox,
  .ev-results__bar .ev-active,
  .ev-verifier,
  .ev-hashform,
  .ev-tool__panel--file,
  .ev-hero__actions,
  .ev-item-hero__actions,
  .ev-hero__art,
  .ev-cta-section,
  .ev-cards,
  .ev-tocchips,
  .ev-side,
  .ev-code__copy,
  .ev-cite .btn,
  .pagination {
    display: none !important;
  }
  .ev-statband,
  .ev-toolwrap {
    margin-top: 0;
  }
  .ev-hero--overlap,
  .ev-hero--landing {
    padding-block: 1rem;
  }
  .ev-statcard,
  .ev-tool,
  .ev-hashcard {
    box-shadow: none;
  }
  .ev-code,
  .section--ink .ev-code,
  .ev-code__head {
    background: #fff !important;
    color: #000 !important;
    border-color: #999 !important;
  }
  .ev-code__pre,
  .ev-code__platform,
  .ev-code__label,
  .ev-code__note,
  .ev-oscmds code,
  .ev-oscmds dt {
    color: #000 !important;
  }
  .ev-code--preview .ev-code__pre,
  .ev-code--manifest .ev-code__pre {
    max-height: none;
    white-space: pre-wrap;
    word-break: break-all;
  }
  .ev-ledger,
  .ev-finding,
  .ev-state,
  .ev-step,
  .ev-timeline__step {
    break-inside: avoid;
  }
  .ev-card:hover,
  .ev-sibling:hover {
    transform: none;
    box-shadow: none;
  }
}
