/* ==========================================================================
   VPN Labs — reports module (Design v2, "consumer-security clean")
   Report Registry (/reports) and permanent report pages (/reports/:id).
   Tokens only (see /css/base.css); mobile-first; works at 360px; robust to
   30–80 % longer translations and CJK/Burmese; dark-mode and print safe.
   Class prefix: rp-
   ========================================================================== */

/* ------------------------------------------------------------ shared bits */
.rp-page :is(h2, h3, article)[id],
.rp-page .rp-sec {
  scroll-margin-top: calc(var(--header-h) + var(--s-5));
}
.rp-printhead,
.rp-print-only {
  display: none;
}
.rp-h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-md);
  font-weight: 650;
  line-height: var(--lh-snug);
  margin-bottom: var(--s-3);
}
.rp-list {
  display: grid;
  gap: 0.45rem;
  padding-left: 1.2em;
  color: var(--c-ink-2);
  font-size: var(--fs-sm);
}
.rp-list li::marker {
  color: var(--c-accent-text);
}
.rp-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.rp-tags li {
  font-family: var(--f-mono);
  font-size: var(--fs-2xs);
  line-height: 1.3;
  padding: 0.4em 0.75em;
  border-radius: var(--r-pill);
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  color: var(--c-ink-2);
  overflow-wrap: anywhere;
}
.rp-linklist {
  list-style: none;
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.rp-linklist--inline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
}
.rp-pilllinks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.rp-pilllinks a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.45rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-rule);
  background: var(--c-surface);
  color: var(--c-ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.rp-pilllinks a .icon {
  flex-shrink: 0;
  color: var(--c-accent-text);
}
.rp-pilllinks a:hover {
  border-color: var(--c-accent-line);
  color: var(--c-accent-text);
  box-shadow: var(--shadow-sm);
}
.rp-pilllinks--stack {
  display: grid;
  justify-items: start;
}
.rp-card {
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-xl);
  padding: clamp(var(--s-5), 3vw, var(--s-6));
  min-width: 0;
}
.rp-card__title {
  font-size: var(--fs-xl);
  line-height: 1.15;
  margin-bottom: var(--s-5);
}
.rp-sec__more {
  margin-top: var(--s-5);
}
.rp-file {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: var(--fs-sm);
}
.rp-file .icon {
  flex-shrink: 0;
}

/* ---------------------------------------------- tables that become cards */
.rp-page .data-table caption {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-ink-2);
}
.rp-page .data-table thead th {
  white-space: normal;
}
@media (max-width: 759.98px) {
  .rp-stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .rp-stack,
  .rp-stack tbody,
  .rp-stack tr,
  .rp-stack th,
  .rp-stack td {
    display: block;
    width: 100%;
  }
  .rp-stack caption {
    display: block;
  }
  .rp-stack tbody tr {
    padding: var(--s-4) var(--s-5);
    border-bottom: var(--rule);
  }
  .rp-stack tbody tr:last-child {
    border-bottom: 0;
  }
  .rp-stack tbody tr:hover {
    background: transparent;
  }
  .rp-stack th,
  .rp-stack td,
  .rp-stack tr:last-child th,
  .rp-stack tr:last-child td {
    border: 0;
    padding: 0.3rem 0;
    text-align: left;
  }
  .rp-stack :is(th, td)[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: var(--fs-2xs);
    font-weight: 600;
    color: var(--c-muted);
    margin-bottom: 0.15rem;
  }
  .rp-stack .num {
    text-align: left;
  }
}

/* ======================================================= REGISTRY: hero */
.rp-rhero {
  padding-block: var(--s-5) var(--s-8);
  overflow: hidden;
}
.rp-rhero .breadcrumbs {
  margin-bottom: var(--s-7);
}
.rp-rhero__grid {
  gap: var(--s-7);
}
.rp-rhero__kicker {
  color: var(--c-accent-text);
}
.rp-rhero__title {
  font-size: var(--fs-display);
  line-height: 1.04;
  max-width: 14ch;
}
.rp-rhero__lead {
  max-width: 60ch;
}
.rp-rhero__ctas {
  margin-top: var(--s-6);
}
.rp-rhero .btn--ghost,
.rp-cta .btn--ghost {
  color: var(--c-band-fg);
  border-color: color-mix(in srgb, var(--c-band-fg) 32%, transparent);
  padding-inline: 1.4rem;
}
.rp-rhero .btn--ghost:hover,
.rp-cta .btn--ghost:hover {
  background: color-mix(in srgb, var(--c-band-fg) 10%, transparent);
  border-color: var(--c-band-fg);
}
.rp-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: 550;
  color: var(--c-ink-2);
}
.rp-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.rp-trust .icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 4px;
  border-radius: 50%;
  color: var(--c-teal);
  background: color-mix(in srgb, var(--c-teal) 20%, transparent);
}
.rp-rhero__art {
  position: relative;
  min-width: 0;
}
.rp-rhero__plate {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.rp-rhero__img {
  display: block;
}
.rp-anatomy {
  margin-top: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--c-band-surface) 88%, transparent);
  border: 1px solid var(--c-band-rule);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
@media (min-width: 1080px) {
  .rp-rhero__art {
    padding-bottom: var(--s-8);
  }
  .rp-anatomy {
    position: absolute;
    left: calc(var(--s-6) * -1);
    bottom: 0;
    width: min(380px, 88%);
    margin: 0;
  }
}
.rp-anatomy__caption {
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--c-band-fg);
}
.rp-anatomy__id {
  margin-top: var(--s-2);
  font-family: var(--f-mono);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.rp-anatomy__dash {
  color: var(--c-band-muted);
}
.rp-anatomy__seg--prefix,
.rp-anatomy__key--prefix {
  color: var(--c-accent-text);
}
.rp-anatomy__seg--year,
.rp-anatomy__key--year {
  color: var(--c-teal);
}
.rp-anatomy__seg--seq,
.rp-anatomy__key--seq {
  color: var(--c-amber);
}
.rp-anatomy__parts {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin-top: var(--s-4);
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: var(--c-band-muted);
}
.rp-anatomy__parts li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
}
.rp-anatomy__key {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: var(--fs-2xs);
  padding: 0.2em 0.55em;
  border-radius: var(--r-xs);
  background: var(--c-band-surface-2);
}

/* stat strip at the bottom of the dark hero */
.rp-rstats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100% / 2 - var(--s-4), 210px), 1fr));
  gap: var(--s-5) var(--s-5);
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--c-band-rule);
}
.rp-rstats__item {
  display: grid;
  gap: 0.3rem;
  align-content: start;
}
.rp-rstats__value {
  font-size: var(--fs-3xl);
  font-weight: 750;
  line-height: 1;
  letter-spacing: var(--tracking-display);
  font-variant-numeric: tabular-nums;
  color: var(--c-band-fg);
}
.rp-rstats__label {
  margin-top: 0.35rem;
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--c-band-fg);
}
.rp-rstats__note {
  font-size: var(--fs-xs);
  color: var(--c-band-muted);
}

/* ================================================ REGISTRY: search + chips */
.rp-finder {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-6);
  padding: clamp(var(--s-5), 3vw, var(--s-6));
  border-radius: var(--r-xl);
  background: var(--c-surface-2);
}
.rp-search__label {
  display: block;
  margin-bottom: var(--s-2);
  font-size: var(--fs-sm);
  font-weight: 650;
}
.rp-search__box {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.35rem 0.35rem 0.35rem 1.1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-rule-strong);
  background: var(--c-surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.rp-search__box:hover {
  border-color: var(--c-muted);
}
.rp-search__box:focus-within {
  border-color: var(--c-accent-line);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 18%, transparent);
}
.rp-search__icon {
  flex-shrink: 0;
  color: var(--c-muted);
}
.rp-search__input {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  padding: 0.55rem 0.25rem;
  border: 0;
  background: transparent;
  color: var(--c-ink);
  font: inherit;
  font-size: var(--fs-base);
}
.rp-search__input::placeholder {
  color: var(--c-muted);
}
.rp-search__input:focus {
  outline: none;
}
.rp-search__input::-webkit-search-cancel-button {
  cursor: pointer;
}
.rp-search__btn {
  flex-shrink: 0;
  min-height: 44px;
  padding-inline: 1.25rem;
}
.rp-chips {
  display: grid;
  gap: var(--s-4);
}
.rp-chips__group {
  display: grid;
  gap: var(--s-2);
}
.rp-chips__label {
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--c-ink-2);
}
@media (min-width: 720px) {
  .rp-chips {
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    column-gap: var(--s-6);
  }
  .rp-chips__group {
    display: contents;
  }
}
.rp-chips__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.rp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.35rem 0.4rem 0.35rem 1rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-rule);
  background: var(--c-surface);
  color: var(--c-ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
a.rp-chip:hover {
  border-color: var(--c-accent-line);
  color: var(--c-accent-text);
  text-decoration: none;
}
.rp-chip__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7rem;
  height: 1.7rem;
  padding-inline: 0.45rem;
  border-radius: var(--r-pill);
  background: var(--c-surface-2);
  color: var(--c-ink-2);
  font-size: var(--fs-2xs);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.rp-chip.is-active {
  background: var(--c-accent);
  border-color: var(--c-accent-line);
  color: var(--c-accent-ink);
}
.rp-chip.is-active .rp-chip__n {
  background: color-mix(in srgb, var(--c-accent-ink) 22%, transparent);
  color: var(--c-accent-ink);
}
.rp-chip.is-empty {
  background: transparent;
  border-style: dashed;
  color: var(--c-muted);
  cursor: default;
}
.rp-chip.is-empty .rp-chip__n {
  background: transparent;
  color: var(--c-muted);
}

/* results line + active filter pills */
.rp-results {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  margin: var(--s-6) 0 var(--s-4);
}
.rp-results__count {
  font-size: var(--fs-sm);
  font-weight: 550;
  color: var(--c-ink-2);
}
.rp-active {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.rp-active__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  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;
}
.rp-active__tag:hover {
  text-decoration: none;
  background: var(--c-accent);
  color: var(--c-accent-ink);
}
.rp-active__tag .icon {
  flex-shrink: 0;
}
.rp-active__clear {
  font-size: var(--fs-xs);
  font-weight: 650;
}

/* records table */
.rp-ledger :is(td, th) {
  vertical-align: middle;
}
.rp-ledger__title {
  min-width: 14rem;
}
.rp-ledger__title a {
  color: var(--c-ink);
  font-size: var(--fs-base);
  font-weight: 650;
  line-height: 1.35;
}
.rp-ledger__title a:hover {
  color: var(--c-accent-text);
}
.rp-ledger__product {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--fs-xs);
  font-weight: 550;
  color: var(--c-ink-2);
}
.rp-ledger__vendor {
  font-weight: 450;
  color: var(--c-muted);
}
.rp-ledger__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 19rem;
}
.rp-ledger__sev {
  min-width: 9.5rem;
}
.rp-ledger__date {
  font-size: var(--fs-xs);
  color: var(--c-ink-2);
  white-space: nowrap; /* a short formatted date, not running text */
}
.rp-ledger__ver {
  font-size: var(--fs-xs);
  color: var(--c-ink-2);
}
.rp-ledger__row.is-retracted .rp-ledger__title a {
  color: var(--c-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
@media (max-width: 759.98px) {
  .rp-ledger .rp-ledger__id::before,
  .rp-ledger .rp-ledger__title::before {
    display: none;
  }
  .rp-ledger__title {
    min-width: 0;
  }
  .rp-ledger__title a {
    font-size: var(--fs-md);
  }
  .rp-ledger tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--s-4);
  }
  .rp-ledger tbody :is(.rp-ledger__id, .rp-ledger__title, .rp-ledger__labels, .rp-ledger__sev) {
    grid-column: 1 / -1;
  }
  .rp-ledger__badges {
    max-width: none;
  }
}

/* ============================================ REGISTRY: definitions cards */
.rp-defs__grid {
  align-items: stretch;
}
.rp-defcard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--c-rule);
  background: var(--c-surface);
}
.rp-defcard__art {
  background: var(--c-surface-2);
}
.rp-defcard__art .illustration {
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
}
.rp-defcard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--s-6);
}
.rp-defcard__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--s-5);
}
.rp-defcard__list {
  display: grid;
  gap: var(--s-5);
}
.rp-defcard__item dt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.rp-defcard__name {
  font-size: var(--fs-sm);
  font-weight: 650;
}
.rp-defcard__item dd {
  margin-top: 0.4rem;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--c-ink-2);
}
.rp-defcard__more {
  margin-top: auto;
  padding-top: var(--s-5);
}
.rp-rules {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-7);
  padding: clamp(var(--s-5), 3vw, var(--s-6));
  border-radius: var(--r-xl);
  background: var(--c-surface);
  border: 1px solid var(--c-rule);
}
.rp-rules__title {
  font-size: var(--fs-md);
}
.rp-rules__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--s-4) var(--s-6);
}
.rp-rules__list li {
  display: flex;
  gap: 0.65rem;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--c-ink-2);
}
.rp-rules__list .icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 50%;
  color: var(--c-success);
  background: var(--c-success-soft);
}

/* ================================================== REGISTRY: open data */
.rp-open__grid {
  display: grid;
  gap: var(--s-7);
}
@media (min-width: 1080px) {
  .rp-open__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: start;
  }
}
.rp-open__side {
  min-width: 0;
}
.rp-open__art {
  max-width: 460px;
}
.rp-open__art .illustration {
  display: block;
  border-radius: var(--r-xl);
}
.rp-open__art + .rp-codecard {
  position: relative;
  margin: calc(var(--s-7) * -1) var(--s-4) 0;
}
@media (min-width: 1080px) {
  .rp-open__art {
    max-width: none;
  }
  .rp-open__art + .rp-codecard {
    margin-right: 0;
    margin-left: calc(var(--s-7) * -1);
  }
}
.rp-open .section-head {
  margin-bottom: var(--s-6);
}
.rp-formats {
  list-style: none;
  display: grid;
  gap: var(--s-3);
}
.rp-formats__item {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-rule);
  background: var(--c-surface);
}
.rp-formats__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
}
.rp-formats__body {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}
.rp-formats__label {
  font-weight: 650;
}
.rp-formats__path {
  font-size: var(--fs-2xs);
  color: var(--c-ink-2);
  overflow-wrap: anywhere;
}
.rp-formats__text {
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
}
.rp-codecard {
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--c-band);
  color: var(--c-band-fg);
  box-shadow: var(--shadow-md);
}
.rp-codecard__bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-5);
  border-bottom: 1px solid var(--c-band-rule);
}
.rp-codecard__dots {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
}
.rp-codecard__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sev-critical);
}
.rp-codecard__dots i:nth-child(2) {
  background: var(--c-amber);
}
.rp-codecard__dots i:nth-child(3) {
  background: var(--sev-pass);
}
.rp-codecard__title {
  font-size: var(--fs-xs);
  color: var(--c-band-muted);
}
.rp-codecard__pre {
  margin: 0;
  padding: var(--s-5);
  overflow-x: auto;
  font-size: var(--fs-xs);
  line-height: 1.75;
  color: var(--c-band-fg);
}
.rp-codecard__pre:focus-visible {
  outline: var(--focus);
  outline-offset: -3px;
}

/* ======================================================== REGISTRY: FAQ */
.rp-faq {
  display: grid;
  gap: var(--s-7);
}
@media (min-width: 1080px) {
  .rp-faq {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
}
.rp-faq__intro .section-head {
  margin-bottom: 0;
}
.rp-faq__art {
  margin-top: var(--s-6);
  max-width: 420px;
}
.rp-faq__item summary {
  align-items: center;
}
.rp-faq__q {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-md);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: var(--tracking-tight);
}
.rp-faq__a > * + * {
  margin-top: var(--s-3);
}
.rp-faq__a p {
  line-height: 1.65;
}

/* ======================================================== REGISTRY: CTA */
.rp-cta-sec {
  padding-block: var(--s-8) 0;
}
.rp-cta {
  display: grid;
  gap: var(--s-6);
  align-items: center;
  padding: clamp(var(--s-6), 5vw, var(--s-8));
  border-radius: var(--r-xl);
  overflow: hidden;
}
@media (min-width: 960px) {
  .rp-cta {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  }
}
.rp-cta__title {
  font-size: var(--fs-2xl);
  line-height: 1.1;
  color: var(--c-band-fg);
  max-width: 20ch;
}
.rp-cta__lead {
  margin-top: var(--s-4);
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--c-ink-2);
  max-width: 56ch;
}
.rp-cta__art {
  max-width: 380px;
  width: 100%;
  justify-self: center;
}
.rp-cta__art .illustration {
  display: block;
  border-radius: var(--r-lg);
}

/* ======================================================== REPORT: hero */
.rp-hero {
  padding-block: var(--s-5) var(--s-8);
}
.rp-hero .breadcrumbs {
  margin-bottom: var(--s-6);
}
.rp-hero__notices {
  display: grid;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.rp-hero__notices:empty {
  display: none;
}
.rp-langnote {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--c-rule);
  background: var(--c-surface);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--c-ink-2);
}
.rp-langnote .icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--c-accent-text);
}
.rp-langnote a {
  font-weight: 600;
}
.rp-retraction {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--c-danger-soft);
  border: 1px solid color-mix(in srgb, var(--c-danger) 35%, transparent);
  font-size: var(--fs-sm);
  line-height: 1.55;
}
.rp-retraction__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-danger);
  color: var(--c-paper);
}
.rp-retraction__body {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}
.rp-retraction__title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--c-danger);
}
.rp-retraction__key {
  font-weight: 650;
}
.rp-hero__grid {
  align-items: center;
}
.rp-hero__main {
  min-width: 0;
}
.rp-hero__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: var(--s-5);
}
.rp-hero__chips .record-id {
  background: var(--c-surface);
  color: var(--c-ink);
  box-shadow: var(--shadow-sm);
}
.rp-hero__kicker {
  margin-bottom: var(--s-3);
}
.rp-hero__title {
  font-size: var(--fs-2xl);
  line-height: 1.1;
  max-width: 26ch;
  overflow-wrap: break-word;
}
.rp-hero--retracted .rp-hero__title {
  color: var(--c-ink-2);
}
.rp-hero__summary {
  max-width: 64ch;
}
.rp-hero__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--s-5);
}
.rp-hero__meta li {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-rule);
  background: var(--c-surface);
  font-size: var(--fs-xs);
  color: var(--c-ink-2);
}
.rp-hero__meta .icon {
  flex-shrink: 0;
  color: var(--c-accent-text);
}
.rp-hero__metakey {
  font-weight: 650;
  color: var(--c-ink);
}
.rp-hero__ctas {
  margin-top: var(--s-6);
}
.rp-hero__aside {
  position: relative;
  min-width: 0;
  max-width: 560px;
  width: 100%;
  justify-self: center;
}
.rp-hero__plate {
  border-radius: var(--r-xl);
  overflow: hidden;
}
.rp-hero__img {
  display: block;
}
.rp-idcard {
  position: relative;
  margin: calc(var(--s-8) * -1) var(--s-4) 0;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-rule);
  background: var(--c-surface);
  box-shadow: var(--shadow-lg);
}
.rp-idcard--retracted {
  border-color: color-mix(in srgb, var(--c-danger) 45%, transparent);
}
.rp-idcard__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-muted);
}
.rp-idcard__id {
  margin-top: 0.15rem;
  font-family: var(--f-mono);
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.rp-idcard__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 96px), 1fr));
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.rp-idcard__facts > div {
  min-width: 0;
}
.rp-idcard__facts dt {
  font-size: var(--fs-2xs);
  color: var(--c-muted);
}
.rp-idcard__facts dd {
  font-size: var(--fs-sm);
  font-weight: 650;
}
.rp-idcard__score {
  font-size: var(--fs-lg);
  font-weight: 750;
  color: var(--c-accent-text);
}
.rp-idcard__url {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: var(--s-4);
}
.rp-idcard__url code {
  flex: 1;
  min-width: 0;
  padding: 0.35em 0.6em;
  border-radius: var(--r-sm);
  background: var(--c-surface-2);
  font-size: var(--fs-2xs);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* ================================================== REPORT: body layout */
.rp-body {
  padding-top: var(--s-7);
}
.rp-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-8);
  min-width: 0;
}
.rp-sec {
  min-width: 0;
}
.rp-sec .section-head {
  margin-bottom: var(--s-5);
}
.rp-sec .section-head__title {
  font-size: var(--fs-xl);
  line-height: 1.15;
  max-width: none;
}
.rp-sec .section-head__lead {
  margin-top: var(--s-3);
  font-size: var(--fs-base);
}

/* key facts card */
.rp-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: var(--s-4) var(--s-5);
}
.rp-facts__item {
  min-width: 0;
  padding-bottom: var(--s-3);
  border-bottom: var(--rule);
}
.rp-facts__item dt {
  margin-bottom: 0.25rem;
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--c-muted);
}
.rp-facts__item dd {
  font-size: var(--fs-sm);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.rp-facts__line {
  display: block;
  font-weight: 500;
}
.rp-facts__item--wide {
  grid-column: 1 / -1;
}
.rp-facts__item--wide dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.rp-facts__mv {
  padding: 0.3em 0.7em;
  border-radius: var(--r-pill);
  background: var(--c-surface-2);
  font-size: var(--fs-2xs);
}
.rp-facts__methods {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.rp-facts__methods a {
  display: inline-flex;
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-pill);
  background: var(--c-accent-soft);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.35;
}
.rp-facts__methods a:hover {
  background: var(--c-accent);
  color: var(--c-accent-ink);
  text-decoration: none;
}
.rp-facts__ext {
  font-size: var(--fs-xs);
  font-weight: 500;
}
.rp-engage {
  display: flex;
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--c-teal-soft);
}
.rp-engage--commissioned {
  background: var(--c-accent-soft);
}
.rp-engage__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-teal);
}
.rp-engage--commissioned .rp-engage__icon {
  color: var(--c-accent-text);
}
.rp-engage__body {
  min-width: 0;
}
.rp-engage__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-weight: 650;
}
.rp-engage__text {
  margin-top: 0.4rem;
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--c-ink-2);
}
.rp-engage__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem var(--s-5);
  margin-top: 0.6rem;
  font-size: var(--fs-sm);
  font-weight: 600;
}

/* status lifecycle stepper */
.rp-life-wrap {
  margin-top: var(--s-6);
}
.rp-life__title {
  margin-bottom: var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 650;
}
.rp-life {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (min-width: 720px) {
  .rp-life {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.rp-life__step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.6rem 0.8rem;
  border-radius: var(--r-md);
  background: var(--c-surface-2);
}
.rp-life__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px dashed var(--c-rule-strong);
  color: var(--c-paper);
}
.rp-life__text {
  display: grid;
  min-width: 0;
}
.rp-life__name {
  font-size: var(--fs-xs);
  font-weight: 650;
}
.rp-life__note {
  font-size: var(--fs-2xs);
  color: var(--c-muted);
}
.rp-life__step.is-done .rp-life__marker {
  border: 0;
  background: var(--c-success);
}
.rp-life__step.is-current {
  background: var(--c-accent-soft);
}
.rp-life__step.is-current .rp-life__marker {
  border: 0;
  background: var(--c-accent);
  color: var(--c-accent-ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 22%, transparent);
}
.rp-life__step.is-current .rp-life__name {
  color: var(--c-accent-text);
}
.rp-life--retracted .rp-life__step.is-current {
  background: var(--c-danger-soft);
}
.rp-life--retracted .rp-life__step.is-current .rp-life__marker {
  background: var(--c-danger);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-danger) 22%, transparent);
}
.rp-life--retracted .rp-life__step.is-current .rp-life__name {
  color: var(--c-danger);
}
.rp-life__step.is-skipped {
  opacity: 0.65;
}

/* key findings + verdict */
.rp-sec--overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
}
.rp-sec--overview > * {
  min-width: 0;
  overflow-wrap: break-word;
  hyphens: auto;
}
.rp-sec--overview .key-findings {
  border-radius: var(--r-xl);
  padding: clamp(var(--s-5), 3vw, var(--s-6));
}
.rp-sec--overview .key-findings__title {
  font-size: var(--fs-xl);
  line-height: 1.15;
}
.rp-verdict {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-5) clamp(var(--s-5), 3vw, var(--s-6));
  border-radius: var(--r-xl);
  border: 1px solid var(--c-rule);
  background: var(--c-surface);
}
.rp-verdict__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
}
.rp-verdict__body {
  min-width: 0;
}
.rp-verdict__label {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--c-accent-text);
  margin-bottom: 0.25rem;
}
.rp-verdict__text {
  font-size: var(--fs-md);
  font-weight: 550;
  line-height: 1.55;
}

/* scores */
.rp-scores {
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 760px) {
  .rp-scores--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: start;
  }
}
.rp-scorecard {
  display: grid;
  gap: var(--s-3);
  align-content: start;
  padding: var(--s-6);
  border-radius: var(--r-xl);
  background: var(--c-accent-soft);
}
.rp-scorecard__label {
  font-size: var(--fs-sm);
  font-weight: 650;
}
.rp-scorecard .score-meter__value {
  font-size: var(--fs-3xl);
}
.rp-scorecard__note {
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--c-ink-2);
}
.rp-scoretable th[scope='row'] {
  font-weight: 600;
}
.rp-scoretable__note {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--fs-xs);
  font-weight: 450;
  color: var(--c-muted);
}
.rp-scoretable__barcol {
  width: 32%;
  min-width: 70px;
  vertical-align: middle !important;
}
.rp-bar {
  display: block;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--c-surface-3);
  overflow: hidden;
}
.rp-bar__fill {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--c-accent);
}

/* metrics */
.rp-metrics__note {
  font-size: var(--fs-xs);
  color: var(--c-ink-2);
}

/* findings overview */
.rp-fsum {
  display: grid;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
}
.rp-fsum .sev-bar {
  height: 10px;
}
.rp-fsum .sev-bar__legend {
  display: none; /* replaced by the dotted legend below (same text) */
}
.rp-fsum__legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.rp-fsum__legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.rp-fsum__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rp-fsum__dot--critical {
  background: var(--sev-critical);
}
.rp-fsum__dot--high {
  background: var(--sev-high);
}
.rp-fsum__dot--medium {
  background: var(--sev-medium);
}
.rp-fsum__dot--low {
  background: var(--sev-low);
}
.rp-fsum__dot--info {
  background: var(--sev-info);
}
.rp-fsum__dot--pass {
  background: var(--sev-pass);
}
.rp-fsum__note {
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--c-ink-2);
}
.rp-ftable-wrap {
  margin-bottom: var(--s-6);
}
.rp-ftable__title a {
  color: var(--c-ink);
  font-weight: 650;
}
.rp-ftable__title a:hover {
  color: var(--c-accent-text);
}
.rp-ftable__cat {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--fs-xs);
  font-weight: 450;
  color: var(--c-muted);
}
.rp-fid {
  white-space: nowrap; /* finding ID, never translated */
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  font-weight: 650;
}
.rp-cvss__rating {
  font-size: var(--fs-xs);
  color: var(--c-muted);
}
.rp-retest {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-success);
}

@media (max-width: 759.98px) {
  /* compact rows on phones: ID · severity · status, then the title, then CVSS and retest */
  .rp-ftable tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.6rem;
  }
  .rp-ftable tbody :is(th, td),
  .rp-ftable tbody tr:last-child :is(th, td) {
    width: auto;
    padding: 0;
  }
  .rp-ftable tbody :is(th, td)[data-label]::before {
    display: none;
  }
  .rp-ftable .rp-ftable__title {
    order: 5;
    flex-basis: 100%;
  }
  .rp-ftable tbody td:nth-of-type(3),
  .rp-ftable tbody td:nth-of-type(5) {
    order: 6;
    font-size: var(--fs-xs);
  }
}

/* finding cards */
.rp-findings {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-5);
}
.rp-finding {
  --rp-sev: var(--sev-info);
  position: relative;
  min-width: 0;
  padding: clamp(var(--s-5), 3vw, var(--s-6));
  padding-left: calc(clamp(var(--s-5), 3vw, var(--s-6)) + 6px);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-rule);
  background: var(--c-surface);
  overflow-wrap: anywhere;
}
/* Severity accent: a short rounded bar inset from the card's rounded corners. */
.rp-finding::before {
  content: '';
  position: absolute;
  left: -1px;
  top: clamp(var(--s-5), 3vw, var(--s-6));
  width: 5px;
  height: min(72px, calc(100% - 2 * var(--s-5)));
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
  background: var(--rp-sev);
}
.rp-finding--critical {
  --rp-sev: var(--sev-critical);
}
.rp-finding--high {
  --rp-sev: var(--sev-high);
}
.rp-finding--medium {
  --rp-sev: var(--sev-medium);
}
.rp-finding--low {
  --rp-sev: var(--sev-low);
}
.rp-finding--pass {
  --rp-sev: var(--sev-pass);
}
.rp-finding:target {
  border-color: var(--c-accent-line);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 18%, transparent);
}
.rp-finding__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.rp-finding__id {
  display: inline-flex;
  align-items: center;
  padding: 0.38em 0.7em;
  border-radius: var(--r-sm);
  background: var(--c-surface-2);
  color: var(--c-ink);
  font-family: var(--f-mono);
  font-size: var(--fs-2xs);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}
.rp-finding__id:hover {
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
  text-decoration: none;
}
.rp-finding__cat {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-muted);
  margin-left: 0.2rem;
}
.rp-finding__title {
  margin-top: var(--s-3);
  font-size: var(--fs-lg);
  line-height: 1.3;
  overflow-wrap: break-word;
}
.rp-finding__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-5);
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--c-surface-2);
}
.rp-finding__fact {
  min-width: 0;
}
.rp-finding__fact dt {
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--c-muted);
}
.rp-finding__fact dd {
  font-size: var(--fs-sm);
  font-weight: 600;
}
.rp-finding__vector {
  grid-column: 1 / -1;
}
.rp-finding__vector dd {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.2rem;
}
.rp-finding__vector code {
  flex: 1;
  min-width: 0;
  padding: 0.3em 0.55em;
  border-radius: var(--r-xs);
  background: var(--c-surface);
  font-size: var(--fs-2xs);
  font-weight: 500;
  line-height: 1.55;
  word-break: break-all;
}
.rp-finding__body {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-5);
}
.rp-finding__label {
  margin-bottom: 0.3rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0;
}
.rp-finding__part p {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--c-ink-2);
  overflow-wrap: anywhere;
}
.rp-finding__part--rec,
.rp-finding__part--retest {
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--c-accent-soft);
}
.rp-finding__part--retest {
  background: var(--c-success-soft);
}
.rp-finding code {
  overflow-wrap: anywhere;
}
.rp-finding__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: var(--rule);
}
.rp-finding__evlabel {
  font-size: var(--fs-xs);
  font-weight: 650;
  color: var(--c-muted);
}
.rp-finding__ev {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-width: 0;
}
.rp-evpill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.35rem 0.8rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-rule);
  font-size: var(--fs-xs);
  line-height: 1.35;
  color: var(--c-ink);
  text-decoration: none;
}
a.rp-evpill:hover {
  border-color: var(--c-accent-line);
  text-decoration: none;
}
.rp-evpill .icon {
  flex-shrink: 0;
  color: var(--c-accent-text);
}
.rp-evpill__id {
  font-family: var(--f-mono);
  font-weight: 700;
  flex-shrink: 0;
}
.rp-evpill__label {
  color: var(--c-ink-2);
  min-width: 0;
}

/* scope */
.rp-scope {
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 760px) {
  .rp-scope {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.rp-scope__col {
  min-width: 0;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
}
.rp-scope__col--in {
  background: var(--c-teal-soft);
}
.rp-scope__col > p {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--c-ink-2);
}
.rp-scope__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--c-muted);
}
.rp-scope__col--in .rp-scope__icon {
  color: var(--c-teal);
}
.rp-rows {
  margin-top: var(--s-5);
  border: 1px solid var(--c-rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-surface);
}
.rp-rows__item {
  display: grid;
  gap: 0.25rem var(--s-5);
  padding: var(--s-4) var(--s-5);
  border-bottom: var(--rule);
}
.rp-rows__item:last-child {
  border-bottom: 0;
}
@media (min-width: 760px) {
  .rp-rows__item {
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  }
}
.rp-rows__item dt {
  font-size: var(--fs-sm);
  font-weight: 650;
}
.rp-rows__item dd {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--c-ink-2);
  overflow-wrap: anywhere;
}
.rp-rows__item dd .badge {
  margin-right: 0.35rem;
}

/* fact tiles (environment, disclosure) */
.rp-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: var(--s-3);
}
.rp-tiles__item {
  min-width: 0;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-rule);
  background: var(--c-surface);
}
.rp-tiles__item dt {
  margin-bottom: 0.3rem;
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--c-muted);
}
.rp-tiles__item dd {
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* environment */
.rp-env {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-4);
}
@media (min-width: 760px) {
  .rp-env {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.rp-env__col {
  min-width: 0;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
}
.rp-methods {
  margin-top: var(--s-5);
}

/* evidence */
.rp-evstats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.rp-evstats li {
  display: grid;
  gap: 0.2rem;
  align-content: start;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
}
.rp-evstats strong {
  font-size: var(--fs-2xl);
  font-weight: 750;
  line-height: 1;
  letter-spacing: var(--tracking-display);
  font-variant-numeric: tabular-nums;
}
.rp-evstats span {
  font-size: var(--fs-xs);
  color: var(--c-ink-2);
}
.rp-evtable__label a {
  color: var(--c-ink);
  font-weight: 650;
}
.rp-evtable__label a:hover {
  color: var(--c-accent-text);
}
.rp-evtable__meta,
.rp-evtable__note {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--fs-xs);
  font-weight: 450;
  color: var(--c-muted);
}
.rp-evtable__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.5rem;
}
.rp-evtable__note {
  color: var(--c-ink-2);
}
.rp-evtable td:last-child {
  min-width: 9.5rem;
}
.rp-evtable__hash .hash code {
  white-space: nowrap; /* shortened hash, never translated */
}
.rp-evid {
  font-weight: 700;
}
.rp-int--ok,
.rp-access--public {
  background: var(--c-success-soft);
  color: var(--c-success);
}
.rp-int--bad {
  background: var(--c-danger);
  color: var(--c-paper);
}
.rp-int--warn,
.rp-access--restricted {
  background: var(--c-amber-soft);
  color: var(--c-amber-ink);
}
.rp-int--neutral,
.rp-access--withheld {
  background: var(--c-surface-3);
  color: var(--c-ink-2);
}
.rp-manifests {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-4);
}
.rp-manifests__label {
  font-size: var(--fs-sm);
  font-weight: 650;
}
.rp-manifests__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
}
.rp-manifests__list li {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  font-size: var(--fs-xs);
}
.rp-manifests__list .rp-file span {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
}
.rp-hashnote {
  display: grid;
  gap: var(--s-5);
  align-items: center;
  margin-top: var(--s-6);
  padding: var(--s-5);
  border-radius: var(--r-xl);
  background: var(--c-accent-soft);
}
@media (min-width: 760px) {
  .rp-hashnote {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  }
}
.rp-hashnote__art {
  max-width: 260px;
}
.rp-hashnote__art .illustration {
  display: block;
  border-radius: var(--r-lg);
}
.rp-hashnote__body {
  min-width: 0;
}
.rp-hashnote__body > p {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--c-ink-2);
}
.rp-hashnote .rp-linklist {
  margin-top: var(--s-4);
}

/* vendor response */
.rp-reply__head {
  display: grid;
  gap: var(--s-5);
  align-items: center;
}
@media (min-width: 760px) {
  .rp-reply__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
  }
}
.rp-reply__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--fs-lg);
  font-weight: 700;
}
.rp-reply__dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-muted);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-muted) 18%, transparent);
}
.rp-reply--ok .rp-reply__dot {
  background: var(--c-success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-success) 20%, transparent);
}
.rp-reply--warn .rp-reply__dot {
  background: var(--c-amber);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-amber) 22%, transparent);
}
.rp-reply__desc {
  margin-top: 0.4rem;
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
}
.rp-reply__art {
  max-width: 260px;
}
.rp-reply__art .illustration {
  display: block;
  border-radius: var(--r-lg);
}
.rp-reply__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: var(--rule);
}
.rp-reply__facts dt {
  font-size: var(--fs-2xs);
  font-weight: 600;
  color: var(--c-muted);
}
.rp-reply__facts dd {
  font-size: var(--fs-sm);
  font-weight: 600;
}
.rp-reply__summary {
  margin-top: var(--s-5);
}
.rp-reply__summary p {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--c-ink-2);
}
.rp-statement {
  margin-top: var(--s-5);
}
.rp-statement__quote {
  position: relative;
  padding: var(--s-5) var(--s-5) var(--s-5) calc(var(--s-5) + 1.8rem);
  border-radius: var(--r-lg);
  background: var(--c-surface-2);
}
.rp-statement__quote::before {
  content: '“';
  position: absolute;
  left: var(--s-4);
  top: 0.4rem;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--c-accent-text);
}
.rp-statement__quote p {
  font-size: var(--fs-base);
  line-height: 1.65;
}
.rp-statement__cite {
  margin-top: var(--s-3);
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

/* disclosure */
.rp-disclosure__level,
.rp-disclosure__notes {
  margin-top: var(--s-4);
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--c-ink-2);
}
.rp-disclosure__level strong {
  color: var(--c-ink);
}

/* version history timeline */
.rp-timeline {
  list-style: none;
  position: relative;
  display: grid;
  gap: var(--s-4);
  padding-left: 34px;
}
.rp-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  border-radius: 2px;
  background: var(--c-rule);
}
.rp-timeline__item {
  position: relative;
  min-width: 0;
}
.rp-timeline__dot {
  position: absolute;
  left: -34px;
  top: 18px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--c-rule-strong);
  background: var(--c-surface);
}
.rp-timeline__item.is-current .rp-timeline__dot {
  border-color: var(--c-accent-line);
  background: var(--c-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 22%, transparent);
}
.rp-timeline__card {
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-rule);
  background: var(--c-surface);
}
.rp-timeline__item.is-current .rp-timeline__card {
  border-color: color-mix(in srgb, var(--c-accent-line) 40%, var(--c-rule));
}
.rp-timeline__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
}
.rp-timeline__v {
  padding: 0.3em 0.7em;
  border-radius: var(--r-pill);
  background: var(--c-surface-2);
  font-size: var(--fs-2xs);
  font-weight: 700;
}
.rp-timeline__date {
  margin-left: auto;
  font-size: var(--fs-xs);
  color: var(--c-muted);
}
.rp-timeline__change {
  margin-top: 0.5rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--c-ink-2);
  overflow-wrap: anywhere;
}

/* background & definitions */
.rp-reading {
  display: grid;
  gap: var(--s-6);
}
.rp-dossier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-4) var(--s-5);
  padding: var(--s-4);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-rule);
  background: var(--c-surface);
  color: var(--c-ink);
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
@media (min-width: 560px) {
  .rp-dossier {
    grid-template-columns: 140px minmax(0, 1fr) auto;
  }
}
.rp-dossier:hover {
  text-decoration: none;
  border-color: var(--c-rule-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.rp-dossier__art {
  display: none;
}
@media (min-width: 560px) {
  .rp-dossier__art {
    display: block;
  }
}
.rp-dossier__art .illustration {
  display: block;
  border-radius: var(--r-md);
}
.rp-dossier__body {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding-left: var(--s-2);
}
.rp-dossier__kicker {
  font-size: var(--fs-xs);
  font-weight: 650;
  color: var(--c-accent-text);
}
.rp-dossier__title {
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.3;
}
.rp-dossier__text {
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
}
.rp-dossier__arrow {
  color: var(--c-accent-text);
  margin-right: var(--s-2);
}
.rp-termchips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.rp-termchips a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.4rem 0.95rem;
  border-radius: var(--r-pill);
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.rp-termchips a:hover {
  background: var(--c-accent);
  color: var(--c-accent-ink);
  text-decoration: none;
}

/* ========================================================= REPORT: cite */
.rp-cite-sec {
  padding-top: 0;
}
.rp-cite {
  padding: clamp(var(--s-5), 5vw, var(--s-8));
  border-radius: var(--r-xl);
  overflow: hidden;
}
.rp-cite__kicker {
  color: var(--c-accent-text);
}
.rp-cite__h {
  font-size: var(--fs-2xl);
  line-height: 1.1;
  color: var(--c-band-fg);
}
.rp-cite__lead {
  margin-top: var(--s-4);
  max-width: 70ch;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-ink-2);
}
.rp-cite__grid {
  display: grid;
  gap: var(--s-6);
  margin-top: var(--s-7);
}
@media (min-width: 1080px) {
  .rp-cite__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.rp-cite__col {
  display: grid;
  gap: var(--s-6);
  align-content: start;
  min-width: 0;
}
.rp-cite__block {
  display: grid;
  gap: var(--s-3);
  justify-items: start;
  min-width: 0;
}
.rp-cite__title {
  font-size: var(--fs-sm);
  font-weight: 650;
  letter-spacing: 0;
  color: var(--c-ink-2);
}
.rp-cite__url,
.rp-cite__apa {
  width: 100%;
  padding: var(--s-4);
  border-radius: var(--r-md);
  border: 1px solid var(--c-rule);
  background: var(--c-surface);
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--c-ink);
  overflow-wrap: anywhere;
}
.rp-cite__url code {
  font-size: var(--fs-sm);
}
.rp-cite__link {
  font-family: var(--f-mono);
  font-size: 0.9em;
}
.rp-cite__files {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  width: 100%;
}
.rp-cite__files a {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--c-rule);
  background: var(--c-surface);
  color: var(--c-ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}
.rp-cite__files a:hover {
  background: var(--c-surface-2);
  border-color: var(--c-accent-line);
  text-decoration: none;
}
.rp-cite__files .icon {
  flex-shrink: 0;
  color: var(--c-accent-text);
}
.rp-cite__files code {
  margin-left: auto;
  font-size: var(--fs-2xs);
  color: var(--c-muted);
}
.rp-code {
  width: 100%;
  max-height: 24rem;
  margin: 0;
  overflow: auto;
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  border: 1px solid var(--c-rule);
  background: var(--c-surface);
  color: var(--c-ink-2);
  font-size: var(--fs-2xs);
  line-height: 1.7;
  tab-size: 2;
}
.rp-code:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}

/* related records */
.rp-related .section-head {
  margin-bottom: var(--s-6);
}

/* ====================================================== REPORT: sidebar */
.rp-side {
  min-width: 0;
}
.rp-side__card {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-5);
  border-radius: var(--r-xl);
  border: 1px solid var(--c-rule);
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 1080px) {
  .rp-side__card {
    max-height: calc(100vh - var(--header-h) - var(--s-6) * 2);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
}
@media (max-width: 1079.98px) {
  .rp-side__toc {
    display: none;
  }
}
.rp-side__toc .toc {
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.rp-side__toc .toc a {
  padding-block: 0.35rem;
}
.rp-side__facts,
.rp-side__actions {
  padding-top: var(--s-5);
  border-top: var(--rule);
}
@media (max-width: 1079.98px) {
  .rp-side__facts {
    padding-top: 0;
    border-top: 0;
  }
}
.rp-side__title {
  margin-bottom: var(--s-3);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.rp-side__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}
.rp-side__list > div {
  min-width: 0;
}
.rp-side__list dt {
  font-size: var(--fs-2xs);
  color: var(--c-muted);
}
.rp-side__list dd {
  font-size: var(--fs-xs);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.rp-side__list .sev-bar {
  margin-top: 0.4rem;
}
.rp-side__wide {
  grid-column: 1 / -1;
}
.rp-side__actions {
  display: grid;
  gap: var(--s-3);
  justify-items: start;
}
.rp-print-btn {
  white-space: normal;
  text-align: left;
}
.rp-side__formats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.rp-side__formats a {
  display: inline-flex;
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-rule);
  font-size: var(--fs-2xs);
  font-weight: 650;
  color: var(--c-ink-2);
  text-decoration: none;
}
.rp-side__formats a:hover {
  border-color: var(--c-accent-line);
  color: var(--c-accent-text);
}
.rp-side__back a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
}

/* ================================================================ dark mode */
@media (prefers-color-scheme: dark) {
  .rp-hero__chips .record-id {
    box-shadow: none;
    border: 1px solid var(--c-rule);
  }
  .rp-codecard {
    border: 1px solid var(--c-rule);
  }
}

/* ================================================================== print */
@media print {
  .rp-printhead {
    display: block;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--c-rule);
    font-size: 8.5pt;
    color: var(--c-muted);
  }
  .rp-print-only {
    display: inline;
  }
  .rp-evtable__hash .hash,
  .rp-side,
  .rp-hero__ctas,
  .rp-hero__plate,
  .rp-rhero__ctas,
  .rp-rhero__plate,
  .rp-hero .breadcrumbs,
  .rp-rhero .breadcrumbs,
  .rp-copy,
  .rp-finder,
  .rp-hashnote__art,
  .rp-reply__art,
  .rp-defcard__art,
  .rp-dossier__art,
  .rp-faq__art,
  .rp-cta-sec,
  .rp-related,
  .pagination {
    display: none !important;
  }
  .rp-layout {
    display: block;
  }
  .rp-hero,
  .rp-rhero {
    padding-block: 0 1rem;
  }
  .rp-anatomy,
  .rp-idcard {
    position: static;
    margin: 1rem 0 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .rp-main {
    gap: 1.5rem;
  }
  .rp-finding,
  .rp-card,
  .rp-timeline__card,
  .rp-scorecard,
  .rp-verdict,
  .rp-formats__item {
    break-inside: avoid;
    box-shadow: none;
  }
  .rp-finding {
    border-left: 4px solid var(--rp-sev);
  }
  .rp-finding::before {
    display: none;
  }
  .rp-cite {
    padding: 0;
    background: none !important;
  }
  .rp-code {
    max-height: none;
    overflow: visible;
    white-space: pre-wrap;
    word-break: break-all;
  }
  .rp-page .table-wrap {
    overflow: visible;
  }
  .rp-evtable__full {
    word-break: break-all;
    font-size: 7.5pt;
  }
  .rp-faq__item::details-content {
    content-visibility: visible;
    display: block;
  }
}

/* Empty registry (no published records yet): centred actions under the empty state. */
.rp-ledger-sec .empty-state > p {
  max-width: 60ch;
}
.rp-none__actions {
  justify-content: center;
}
