/* ==========================================================
   Proof Modal — right-side slide-in drawer for long-form
   evidence walkthroughs. Ported from personnel/index.html
   for reuse on truthjustice/verifiable-misconduct.html.

   Triggered by inline onclick="openProofModal('proof-X')".
   Companion JS is in proof-modal.js.
   ========================================================== */

/* Local custom-property fallbacks — defined here so this CSS
   works on pages whose token set differs from personnel's. */
:root {
  --drawer-bg: #FFFFFF;
  --accent: #B91C1C;
  --accent-hover: #991B1B;
}

  .proof-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 18px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #ffffff;
    background: #1E3A8A;
    border: 1px solid #1E3A8A;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1.3;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  }

  .proof-trigger::after {
    content: "→";
    font-size: 14px;
    transition: transform 0.18s ease;
  }

  .proof-trigger:hover {
    background: #1E40AF;
    border-color: #1E40AF;
    box-shadow: 0 3px 8px rgba(30, 58, 138, 0.25);
  }

  .proof-trigger:hover::after { transform: translateX(3px); }

  /* ===== Side proof drawer ===== */
  .proof-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0);
    z-index: 100;
    pointer-events: none;
    overflow: hidden;
    transition: background 0.22s ease-out;
  }

  .proof-modal-overlay.active {
    background: rgba(15, 23, 42, 0.32);
    pointer-events: auto;
  }

  .proof-modal {
    position: absolute;
    top: 0;
    right: 0;
    /* Use 100% (inherits from fixed-position overlay) instead of 100vh —
       100vh on iOS Safari includes the URL bar's space and crops the modal */
    height: 100%;
    width: 60%;
    max-width: 720px;
    min-width: 380px;
    background: var(--drawer-bg);
    box-shadow: -12px 0 40px rgba(0,0,0,0.18);
    padding: 32px 40px 48px;
    overflow-y: auto;
    /* Keep the modal off-screen by default. Critical for two reasons:
       (1) lazy-loading: images inside an off-screen modal are below the
           viewport fold so loading="lazy" defers them properly. Without
           this, every modal's images would load on page load and crash
           iOS Safari with OOM during normal scrolling.
       (2) safe positioning: the modal is positioned correctly when active.
       NO transition on transform — change is instant. Only opacity
       transitions (cheap on GPU, no compositing bugs). */
    transform: translateX(120%);
    opacity: 0;
    transition: opacity 0.15s ease-out;
    -webkit-overflow-scrolling: touch;
  }

  .proof-modal-overlay.active .proof-modal {
    transform: translateX(0);
    opacity: 1;
  }

  .proof-modal-close {
    position: sticky;
    top: 0;
    float: right;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--navy);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    margin: 0 -14px 4px 12px;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
  }

  .proof-modal-close:hover {
    background: var(--navy);
    color: #ffffff;
  }

  .proof-modal-eyebrow {
    display: block;
    font-family: var(--serif);
    font-style: italic;
    font-size: 14px;
    color: var(--accent);
    margin: 0 0 12px;
    padding: 0 50px 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .proof-modal h3 {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 22px 0;
    padding-right: 40px;
    line-height: 1.3;
  }

  .proof-modal h4 {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin: 26px 0 10px 0;
    line-height: 1.3;
    letter-spacing: -0.005em;
  }

  .proof-modal h4:first-of-type { margin-top: 0; }

  .proof-modal h5 {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
    margin: 18px 0 8px 0;
    line-height: 1.35;
  }

  .proof-modal ul li.sex-charge {
    background: rgba(185, 28, 28, 0.07);
    border-radius: 3px;
    padding: 3px 8px;
    margin-left: -8px;
  }

  .proof-modal ul li.sex-charge,
  .proof-modal ul li.sex-charge strong {
    color: var(--accent);
  }

  .proof-modal .bottom-line-arrows {
    font-size: 17px;
    line-height: 1.7;
    margin-top: 8px;
  }

  .proof-modal p {
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 12px;
  }

  .proof-modal ul {
    font-family: var(--serif);
    margin: 8px 0 12px 18px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
  }

  .proof-modal ul li { margin-bottom: 6px; }

  .proof-modal blockquote {
    margin: 12px 0;
    padding: 10px 16px;
    background: var(--quote-bg);
    border-left: 3px solid var(--accent);
    font-style: italic;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
  }

  .proof-modal strong {
    font-weight: 600;
    color: var(--navy);
  }

  .proof-modal em { font-style: italic; }

  .proof-modal .inline-shot {
    display: block;
    max-width: 100%;
    margin: 12px 0 6px 0;
    border: 1px solid var(--border);
    cursor: zoom-in;
    background: #fff;
  }

  .proof-modal .inline-shot.narrow {
    max-width: 480px;
  }

  .proof-modal figure {
    margin: 12px 0;
  }

  .proof-modal figcaption {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--text-soft);
    line-height: 1.4;
    margin-top: 6px;
    text-align: center;
  }

  .proof-modal .unmute-cue {
    display: block;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--accent);
    text-align: center;
    margin: 8px 0 4px;
  }

  .proof-modal video {
    display: block;
    max-width: 100%;
    margin: 12px 0;
    border: 1px solid var(--border);
    background: #000;
  }

  .proof-modal .compare-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 12px 0;
  }

  .proof-modal .compare-pair img {
    width: 100%;
    margin: 0;
  }

  @media (max-width: 600px) {
    .proof-modal .compare-pair { grid-template-columns: 1fr; }
  }

  .proof-modal .reenact-step {
    margin: 0 0 14px 0;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 3px solid var(--navy);
  }

  .proof-modal .reenact-step.reconstructed {
    border-left-style: dashed;
    border-left-color: var(--text-soft);
  }

  .proof-modal .reenact-label {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy);
    margin: 0 0 8px 0;
  }

  .proof-modal .reenact-step.reconstructed .reenact-label { color: var(--text-soft); }

  .proof-modal .reenact-step .inline-shot {
    margin: 0 auto 8px;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    background: #f7f7f4;
  }

  .proof-modal .reenact-step + .reenact-step {
    position: relative;
    margin-top: 28px;
  }

  .proof-modal .reenact-step + .reenact-step::before {
    content: '\2193';
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-soft);
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
  }

  .proof-modal .reenact-step .reenact-caption {
    margin: 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
  }

  /* ===== Image lightbox ===== */
  .img-lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    cursor: zoom-out;
  }

  .img-lightbox.active { display: flex; }

  .img-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  }

  .img-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .proof-modal .placeholder-note {
    font-size: 13px;
    font-style: italic;
    color: #9CA3AF;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
  }

  .proof-modal a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
  }

  .proof-modal a:hover { color: var(--accent-hover); }

  .proof-modal .doc-ref {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--text-soft);
    font-style: normal;
  }

  .proof-modal .pull-quote {
    font-family: var(--serif);
    font-style: italic;
    font-size: 17px;
    line-height: 1.45;
    color: var(--navy);
    margin: 12px 0;
    padding-left: 14px;
    border-left: 3px solid var(--accent);
  }

  .proof-modal .key-callout {
    background: rgba(185, 28, 28, 0.07);
    border-left: 5px solid var(--accent);
    padding: 14px 18px;
    margin: 16px 0;
    font-size: 17px;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.5;
    border-radius: 2px;
  }
  .proof-modal .key-callout .observation-icon {
    color: var(--accent);
    width: 18px;
    height: 18px;
    vertical-align: -3px;
    margin-right: 9px;
    display: inline-block;
    flex-shrink: 0;
  }

  .proof-modal .key-callout strong {
    font-weight: 700;
  }

  /* Collapsible scenes inside proof drawers */
  .proof-modal details.scene-collapse {
    margin: 18px 0;
    border: 1px solid var(--border-warm);
    border-radius: 6px;
    background: var(--card-bg);
    overflow: hidden;
  }

  .proof-modal details.scene-collapse > summary {
    padding: 14px 50px 14px 18px;
    cursor: pointer;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    list-style: none;
    position: relative;
    background: var(--quote-bg);
    transition: background 0.15s ease;
  }

  .proof-modal details.scene-collapse > summary::-webkit-details-marker {
    display: none;
  }

  .proof-modal details.scene-collapse > summary::after {
    content: "▼";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--accent);
    transition: transform 0.2s ease;
  }

  .proof-modal details.scene-collapse[open] > summary::after {
    transform: translateY(-50%) rotate(180deg);
  }

  .proof-modal details.scene-collapse > summary:hover {
    background: rgba(185, 28, 28, 0.06);
  }

  .proof-modal details.scene-collapse > summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
  }

  .proof-modal details.scene-collapse .scene-content {
    padding: 18px 20px 8px 20px;
  }

  /* Annotated image with numbered prop callouts */
  .proof-modal .annotated-img-wrap {
    position: relative;
    display: block;
    line-height: 0;
  }
  .proof-modal .annotated-img-wrap img {
    display: block;
    width: 100%;
    cursor: zoom-in;
  }
  .proof-modal .prop-marker {
    position: absolute;
    width: 26px;
    height: 26px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    transform: translate(-50%, -50%);
    pointer-events: none;
    line-height: 1;
  }
  .proof-modal .prop-legend {
    list-style: none;
    padding: 12px 14px;
    margin: 14px 0 8px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--navy);
    background: var(--quote-bg);
    border: 1px solid var(--border-warm);
    border-radius: 6px;
  }
  .proof-modal .prop-legend li {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .proof-modal .prop-legend .legend-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    flex: 0 0 auto;
  }
  .proof-modal .prop-summary {
    text-align: center;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-top: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  /* Conclusion box — summary "what happened + verification" block */
  .proof-modal .conclusion-box {
    background: var(--quote-bg);
    border: 1px solid var(--border-warm);
    border-left: 5px solid var(--accent);
    padding: 20px 24px;
    margin: 32px 0 20px 0;
    border-radius: 4px;
  }
  .proof-modal .conclusion-box h4 {
    margin: 0 0 14px 0;
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
  }
  .proof-modal .conclusion-box p {
    margin-bottom: 12px;
    line-height: 1.55;
  }
  .proof-modal .conclusion-box ul {
    margin: 12px 0 14px 0;
    padding-left: 24px;
  }
  .proof-modal .conclusion-box li {
    margin-bottom: 9px;
    line-height: 1.5;
  }
  .proof-modal .conclusion-box li:last-child {
    margin-bottom: 0;
  }
  .proof-modal .conclusion-box .verification-line {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-warm);
    font-size: 14.5px;
    color: var(--text-soft);
  }

  /* Agent action step list */
  .proof-modal ol.agent-steps {
    list-style: decimal;
    padding-left: 30px;
    margin: 16px 0 20px 0;
  }
  .proof-modal ol.agent-steps li {
    margin-bottom: 12px;
    line-height: 1.55;
    padding-left: 4px;
  }
  .proof-modal ol.agent-steps li:last-child {
    margin-bottom: 0;
  }

  /* Vignette-marked photos (red border + AGENT-CREATED label) */
  .proof-modal .vignette-marked .inline-shot {
    border: 4px solid var(--accent);
  }
  .proof-modal .vignette-label {
    font-family: var(--sans);
    font-size: 11.5px;
    font-weight: 800;
    color: #fff;
    background: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    margin: 6px 0 0 0;
    padding: 7px 8px;
    border-radius: 2px;
    line-height: 1.2;
  }

  /* Reenactment slideshow */
  .proof-modal .reenactment-slideshow {
    background: var(--quote-bg);
    border: 1px solid var(--border-warm);
    border-radius: 6px;
    padding: 16px;
    margin: 20px 0;
    font-family: var(--sans);
  }
  .proof-modal .reenactment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }
  .proof-modal .reenactment-title {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 11px;
    color: var(--accent);
  }
  .proof-modal .reenactment-counter {
    font-weight: 600;
    color: var(--navy);
    font-size: 13px;
    font-family: var(--sans);
  }
  .proof-modal .reenactment-image {
    display: block;
    width: 100%;
    max-width: 100%;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
  }
  .proof-modal .reenactment-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 4px 4px 4px;
    font-family: var(--sans);
  }
  .proof-modal .reenactment-label-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--text-soft);
    flex-shrink: 0;
    margin-top: 5px;
  }
  .proof-modal .reenactment-label.real .reenactment-label-dot {
    background: #15803d;
  }
  .proof-modal .reenactment-label.constructed .reenactment-label-dot {
    background: var(--accent);
  }
  .proof-modal .reenactment-label-content {
    flex: 1;
  }
  .proof-modal .reenactment-label-type {
    font-weight: 700;
    color: var(--navy);
    font-size: 14px;
    line-height: 1.3;
  }
  .proof-modal .reenactment-label-desc {
    font-size: 13px;
    color: var(--text-soft);
    margin-top: 2px;
    line-height: 1.4;
  }
  .proof-modal .reenactment-progress {
    display: flex;
    gap: 4px;
    margin: 14px 0 12px 0;
  }
  .proof-modal .reenactment-progress-dot {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    transition: background 0.2s ease, opacity 0.2s ease;
  }
  .proof-modal .reenactment-progress-dot.active {
    background: var(--accent);
  }
  .proof-modal .reenactment-progress-dot.passed {
    background: var(--accent);
    opacity: 0.45;
  }
  .proof-modal .reenactment-controls {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
  }
  .proof-modal .reenactment-controls button {
    background: #fff;
    border: 1px solid var(--border-warm);
    border-radius: 4px;
    padding: 7px 16px;
    cursor: pointer;
    font-size: 13px;
    color: var(--navy);
    font-family: var(--sans);
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    min-width: 80px;
  }
  .proof-modal .reenactment-controls button:hover {
    background: var(--quote-bg);
    border-color: var(--accent);
    color: var(--accent);
  }
  .proof-modal .reenactment-controls button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  /* Three-photo row with arrows showing scene progression */
  .proof-modal .three-photo-arrow-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 14px;
    align-items: start;
    margin: 14px 0;
  }
  .proof-modal .three-photo-arrow-row figure {
    margin: 0;
  }
  .proof-modal .three-photo-arrow-row .scene-arrow {
    font-size: 32px;
    color: var(--accent);
    align-self: center;
    margin-top: -10px;
    font-weight: 300;
    line-height: 1;
  }
  @media (max-width: 620px) {
    .proof-modal .three-photo-arrow-row {
      grid-template-columns: 1fr;
    }
    .proof-modal .three-photo-arrow-row .scene-arrow {
      transform: rotate(90deg);
      margin-top: 0;
      justify-self: center;
      font-size: 24px;
    }
  }

  /* Visible scene headings (replaces collapsible summaries) */
  .proof-modal .scene-heading {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.3;
    margin: 44px 0 18px 0;
    padding-top: 26px;
    border-top: 1px solid var(--border-warm);
    letter-spacing: -0.005em;
    position: relative;
  }
  .proof-modal .scene-heading:first-of-type {
    margin-top: 32px;
  }

  /* Generic copy-deep-link button (hover-visible chain icon on headings) */
  .copy-link-btn {
    background: none;
    border: none;
    color: var(--text-soft);
    cursor: pointer;
    padding: 4px 6px;
    margin-left: 6px;
    opacity: 0;
    transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
    vertical-align: middle;
    border-radius: 3px;
    position: relative;
    display: inline-flex;
    align-items: center;
  }
  .scene-heading:hover .copy-link-btn,
  .copy-link-btn:focus-visible {
    opacity: 1;
  }
  .copy-link-btn:hover {
    color: var(--accent);
    background: rgba(185, 28, 28, 0.08);
  }
  .copy-link-btn svg {
    width: 16px;
    height: 16px;
    display: block;
  }
  .copy-link-btn .copied-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: #fff;
    padding: 4px 9px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    font-family: var(--sans);
    letter-spacing: 0.02em;
    font-weight: 500;
  }
  .copy-link-btn.copied .copied-tooltip {
    opacity: 1;
  }

  /* Numbered scene-beats inside a scene-collapse drawer */
  .proof-modal .scene-beat {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 14px;
    margin: 26px 0 22px 0;
    align-items: start;
  }
  .proof-modal .scene-beat-num {
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
  }
  .proof-modal .scene-beat-body h5 {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.35;
    margin: 0 0 8px 0;
    letter-spacing: -0.005em;
  }
  .proof-modal .scene-beat-body p {
    margin: 0 0 10px 0;
  }
  .proof-modal .scene-beat-body p:last-child,
  .proof-modal .scene-beat-body > *:last-child {
    margin-bottom: 0;
  }
  .proof-modal .scene-beat-body img.inline-shot {
    margin-top: 8px;
  }

  /* Instruction line above the collapsed scenes */
  .proof-modal .scene-instruction {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--navy);
    padding: 11px 14px;
    border-left: 3px solid var(--accent);
    background: var(--quote-bg);
    margin: 22px 0 14px 0;
    line-height: 1.5;
    border-radius: 0 4px 4px 0;
  }
  .proof-modal .scene-instruction .cursor-icon {
    color: var(--accent);
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: -2px;
    margin-right: 9px;
    flex-shrink: 0;
  }
  .proof-modal .scene-instruction strong {
    color: var(--navy);
    font-weight: 700;
  }

  .proof-modal .sources {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }

  .proof-modal .sources h4 {
    font-size: 13px;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
    margin-top: 0;
    margin-bottom: 10px;
  }

  .proof-modal .sources ul {
    margin: 0 0 0 18px;
    font-size: 14px;
  }

  .proof-modal .sources li { margin-bottom: 6px; }

  .proof-modal .headlines-list {
    list-style: none;
    padding: 0;
    margin: 14px 0;
  }

  .proof-modal .headlines-list li {
    margin-bottom: 8px;
    padding: 0;
  }

  .proof-modal .headlines-list li::before { content: ''; display: none; }

  .proof-modal .headlines-list a {
    display: block;
    padding: 12px 14px;
    background: var(--quote-bg);
    border-left: 3px solid var(--border-warm);
    text-decoration: none;
    transition: border-color 0.15s ease;
    font-weight: 400;
  }

  .proof-modal .headlines-list a:hover {
    border-left-color: var(--accent);
  }

  .proof-modal .headlines-list .headline {
    display: block;
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 4px;
  }

  .proof-modal .headlines-list .source {
    display: block;
    font-family: var(--sans);
    font-size: 12px;
    color: var(--text-soft);
    letter-spacing: 0.04em;
  }

  /* ===== Section dividers ===== */
  .section-divider {
    margin: 56px 0 30px 0;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .section-divider .rule {
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  .section-divider .label {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
    letter-spacing: 0.005em;
  }

  /* ===== Closer ===== */

/* ===== Mobile responsive ===== */
@media (max-width: 900px) {
  .proof-modal { width: 85%; max-width: none; min-width: 0; }
}
@media (max-width: 640px) {
  .proof-modal { width: 100%; padding: 24px 22px 32px; }
}
