/* Shared recovered-evidence shell for public BOOTS subpages. */
body.evidence-subpage {
  position: relative;
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(204, 242, 56, .1), transparent 72%),
    linear-gradient(180deg, #030503 0, #070a06 56%, #020302 100%);
}

body.evidence-subpage::before,
body.evidence-subpage::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body.evidence-subpage::before {
  opacity: .28;
  background-image:
    linear-gradient(rgba(204, 242, 56, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 242, 56, .018) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 68%);
}

body.evidence-subpage::after {
  opacity: .13;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(231, 255, 137, .08) 4px
  );
}

.evidence-subpage .top-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(3, 5, 3, .98), rgba(3, 5, 3, .72) 74%, transparent);
}

.evidence-subpage .subpage-rail {
  width: min(1180px, calc(100vw - 28px));
}

.subpage-file-id {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.subpage-rail-links {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 24px);
}

.evidence-subpage .subpage-rail-links .rail-link[aria-current="page"] {
  color: var(--acid);
}

.evidence-subpage .wrap {
  width: min(1040px, calc(100% - 36px));
}

.evidence-document {
  padding-bottom: 28px;
}

.evidence-intro {
  position: relative;
  padding: clamp(58px, 8vw, 104px) 0 clamp(28px, 5vw, 54px);
}

.evidence-intro::after {
  content: "";
  display: block;
  width: min(100%, 210px);
  height: 1px;
  margin-top: 28px;
  background: linear-gradient(90deg, var(--acid), transparent);
  box-shadow: 0 0 16px rgba(204, 242, 56, .42);
}

.evidence-intro .kicker,
.evidence-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(204, 242, 56, .07);
  color: var(--acid);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.evidence-intro h1 {
  max-width: 900px;
  margin: 20px 0 14px;
  color: #f1eee2;
  font-family: var(--font-display);
  font-size: clamp(2.55rem, 8vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .98;
  text-wrap: balance;
}

.evidence-intro .acid {
  color: var(--acid);
  text-shadow: 0 0 34px rgba(204, 242, 56, .25);
}

.evidence-intro .lead {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.evidence-panel,
.evidence-subpage .summary,
.evidence-subpage .rule,
.evidence-subpage .card {
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(135deg, rgba(204, 242, 56, .035), transparent 34%),
    rgba(7, 11, 7, .9);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025), 0 18px 60px rgba(0, 0, 0, .16);
}

.evidence-subpage .summary {
  position: relative;
  margin: 0 0 24px;
  padding: clamp(22px, 4vw, 34px);
  border-color: var(--line);
  border-radius: 16px;
  box-shadow: 0 0 48px rgba(204, 242, 56, .055), inset 0 1px rgba(255, 255, 255, .03);
}

.evidence-subpage .summary::before {
  content: "QUICK READ / CLEARED";
  display: block;
  margin-bottom: 13px;
  color: var(--acid);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .17em;
}

.evidence-subpage .summary h2,
.evidence-subpage .rule h2,
.evidence-subpage .band > h2 {
  color: #f0ede1;
  font-family: var(--font-display);
  font-weight: 400;
}

.evidence-subpage .summary h2 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
}

.evidence-subpage .summary li::marker,
.evidence-subpage .rule li::marker {
  color: var(--acid);
}

.evidence-subpage .rule {
  position: relative;
  margin: 14px 0;
  padding: clamp(24px, 4vw, 34px);
  border-radius: 14px;
  overflow: hidden;
}

.evidence-subpage .rule::before {
  content: "DECLASSIFIED";
  position: absolute;
  top: 0;
  right: 0;
  padding: 7px 10px 6px;
  border-left: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  color: rgba(204, 242, 56, .7);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.evidence-subpage .rule h2 {
  max-width: calc(100% - 112px);
  margin: 0 0 12px;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  line-height: 1.25;
}

.evidence-subpage .rule p:last-child,
.evidence-subpage .rule ul:last-child,
.evidence-subpage .rule ol:last-child {
  margin-bottom: 0;
}

.evidence-subpage .rule a,
.evidence-subpage .summary a,
.evidence-subpage .evidence-footer a {
  color: var(--acid);
  text-decoration-color: rgba(204, 242, 56, .42);
  text-underline-offset: 3px;
}

.evidence-subpage .rule a:hover,
.evidence-subpage .summary a:hover,
.evidence-subpage .evidence-footer a:hover {
  color: var(--acid-hot);
  text-decoration-color: currentColor;
}

.evidence-subpage .score {
  overflow: hidden;
  margin: 20px 0;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}

.evidence-subpage .score th {
  color: var(--acid);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.evidence-subpage .score th,
.evidence-subpage .score td {
  padding: 12px 14px;
  border-bottom-color: var(--line-soft);
}

.evidence-subpage .callout {
  margin-top: 24px;
  border-left-color: var(--acid);
  background: rgba(204, 242, 56, .04);
  padding: 12px 16px;
}

.evidence-results .evidence-intro {
  text-align: left;
}

.evidence-results .evidence-intro .lead {
  margin: 0;
}

.evidence-results .state {
  min-height: 150px;
  margin: 8px 0 40px;
  padding: clamp(34px, 6vw, 58px);
  border: 1px dashed var(--line);
  border-radius: 15px;
  background: rgba(204, 242, 56, .035);
  color: var(--muted);
  text-align: left;
}

.evidence-results .state::before {
  content: "RECEIVING TRANSMISSION";
  display: block;
  margin-bottom: 10px;
  color: var(--acid);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.evidence-results section.band {
  padding: 34px 0 48px;
  border-top: 1px solid var(--line-soft);
}

.evidence-results .band > h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.evidence-results .band > p.sub {
  color: var(--muted);
}

.evidence-results .card {
  border-radius: 14px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.evidence-results .card:hover {
  border-color: var(--line);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .28), 0 0 26px rgba(204, 242, 56, .045);
  transform: translateY(-2px);
}

.evidence-results .card .media {
  background:
    linear-gradient(135deg, rgba(204, 242, 56, .06), transparent 45%),
    #030503;
}

.evidence-results .card .media img,
.evidence-results .card .media video {
  filter: saturate(.76) contrast(1.04);
}

.evidence-results .card .body {
  background: linear-gradient(180deg, rgba(255, 255, 255, .018), transparent);
}

.evidence-results .card h3 {
  color: #f0ede1;
}

.evidence-results .tag {
  border-color: var(--line-soft);
  background: var(--acid-dim);
  color: var(--acid);
}

.evidence-results #previewBar {
  top: 91px;
  border-top: 1px solid #705c1f;
  border-bottom: 1px solid #705c1f;
  background: #ffcf8b;
}

.evidence-footer {
  margin-top: 52px;
  padding: 34px 0 max(34px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
  background: rgba(3, 5, 3, .62);
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .evidence-subpage .top-shell {
    padding-bottom: 8px;
  }

  .subpage-file-id,
  .evidence-subpage .rail-status {
    display: none;
  }

  .evidence-subpage .subpage-rail {
    min-height: 58px;
  }

  .subpage-rail-links {
    gap: 2px;
  }

  .evidence-subpage .subpage-rail-links .rail-link {
    min-height: 40px;
    padding: 0 7px;
    font-size: .69rem;
  }

  .evidence-intro {
    padding-top: 42px;
  }

  .evidence-subpage .rule::before {
    position: static;
    display: inline-block;
    margin: -4px 0 12px;
    padding: 0;
    border: 0;
  }

  .evidence-subpage .rule h2 {
    max-width: none;
  }

  .evidence-results #previewBar {
    top: 74px;
  }
}

@media (max-width: 520px) {
  .evidence-subpage .wrap {
    width: min(100% - 24px, 1040px);
  }

  .evidence-subpage .rail-link--archive {
    font-size: 0;
  }

  .evidence-subpage .rail-link--archive::after {
    content: "Archive";
    font-size: .7rem;
  }

  .evidence-subpage .summary,
  .evidence-subpage .rule {
    padding: 20px;
  }

  .evidence-subpage .score {
    display: block;
    overflow-x: auto;
  }

  .evidence-results .grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .evidence-results .card {
    transition: none;
  }
}
