/* Preview A — redesigned information architecture.
 *
 * Why: the existing preview opens with a wall of qualifiers above the fold. This file builds the
 * A variant hero (four status cards) and the disclosure components the new IA relies on. It is
 * loaded ONLY by the A worker; the B worker keeps the existing header verbatim.
 *
 * Content comes from the same verified data files as the rest of the site, so the two previews
 * cannot drift on facts. Only structure, hierarchy and density differ between them.
 */

/* ---- Layer 1: what the reader needs to know ------------------------------ */
.ahero { padding: 28px 0 8px; }
.ahero h1 { font-size: clamp(26px, 4.2vw, 40px); line-height: 1.12; margin: 0 0 10px; }
.alede { font-size: 17px; color: var(--ink2); max-width: 62ch; margin: 0 0 14px; }
.abadge {
  display: inline-block; font: 600 11px/1 system-ui, sans-serif; letter-spacing: .08em;
  background: var(--bad-bg, #7a1f1f); color: #fff; padding: 7px 10px; border-radius: 6px;
  margin-bottom: 16px;
}
.astatus {
  display: grid; gap: 12px; margin: 0 0 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
}
.acard {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px;
  border-top: 3px solid var(--line);
}
.acard[data-tone="bad"] { border-top-color: #b3261e; }
.acard[data-tone="ok"] { border-top-color: #1b6b3a; }
.acard[data-tone="wait"] { border-top-color: #8a6d1f; }
.acard h2 {
  font: 700 11px/1 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink2); margin: 0 0 10px;
}
.acard ul { margin: 0; padding-left: 17px; }
.acard li { font-size: 14px; line-height: 1.45; margin-bottom: 6px; color: var(--ink); }
.acard li:last-child { margin-bottom: 0; }
.acard .anote { display: block; margin-top: 9px; font-size: 12px; color: var(--ink2); }

/* ---- Explore the evidence (audit item 12) ---------------------------------
   The route below the four summary cards. Plain in-page links, so it works with JS disabled. */
.aexplore { margin: 16px 0 4px; padding: 14px 15px 15px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--panel); }
.aexplore-h { font: 700 13px/1.3 system-ui, sans-serif; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink2); margin: 0 0 4px; }
.aexplore-sub { font-size: 13.5px; color: var(--ink2); margin: 0 0 11px; max-width: 62ch; }
/* WCAG 1.4.10 reflow: a fixed minmax(min(230px, 100%), 1fr) floor overflowed the viewport at 195px, which is
   exactly the CSS width a 390px phone shows at 200% zoom. min(230px, 100%) lets the column collapse
   to the container instead of forcing a horizontal scroll. */
.aexplore-list { list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 9px; }
.aexplore-list a { display: block; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; text-decoration: none; color: var(--ink);
  font: 600 13.5px/1.35 system-ui, sans-serif; background: var(--panel2, rgba(255,255,255,.03)); }
.aexplore-list a:hover { border-color: var(--acc, #6cc4ff); }
.aexplore-list a:focus-visible { outline: 2px solid var(--acc, #6cc4ff); outline-offset: 2px; }
.aexplore-list small { display: block; margin-top: 4px; font: 400 12.5px/1.45 system-ui, sans-serif;
  color: var(--ink2); }

/* ---- Layer 2: progressive disclosure -------------------------------------- */
.adetails { border: 1px solid var(--line); border-radius: 10px; margin: 10px 0; background: var(--panel); }
.adetails > summary {
  cursor: pointer; padding: 11px 14px; font: 600 14px/1.35 system-ui, sans-serif;
  color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 10px;
}
.adetails > summary::-webkit-details-marker { display: none; }
.adetails > summary::after { content: "+"; color: var(--ink2); font-weight: 400; font-size: 17px; }
.adetails[open] > summary::after { content: "\2212"; }
.adetails[open] > summary { border-bottom: 1px solid var(--line); }
.adetails .abody { padding: 13px 14px 15px; }
.adetails .abody p { font-size: 14px; line-height: 1.55; color: var(--ink); margin: 0 0 9px; }
.adetails .abody p:last-child { margin-bottom: 0; }
.adetails .abody ul { margin: 0 0 9px; padding-left: 17px; }
.adetails .abody li { font-size: 14px; line-height: 1.5; margin-bottom: 5px; }

/* A summary/comparison row: shows the epistemic boundary as layout, not prose */
.arow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.arow > div { border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }
.arow h3 { font: 700 11px/1 system-ui, sans-serif; letter-spacing: .07em; text-transform: uppercase; margin: 0 0 7px; }
.arow .afinding { border-top: 2px solid #b3261e; }
.arow .afinding h3 { color: #b3261e; }
.arow .aposition { border-top: 2px solid #1f4e79; }
.arow .aposition h3 { color: #1f4e79; }
.arow p { font-size: 14px; line-height: 1.5; margin: 0; }

@media (max-width: 640px) {
  .arow { grid-template-columns: 1fr; }
  .ahero { padding-top: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .adetails > summary::after { transition: none; }
}