/* /how-we-test only. Uses the tokens from style.css; phone first, columns from 640 px. */
.hwt { max-width: 880px; padding-top: 32px; padding-bottom: 48px; }
.hwt-intro { display: grid; gap: 14px; padding-bottom: 8px; }
.hwt-intro h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); }
.hwt-lead { font-size: 18px; line-height: 1.45; color: var(--fg); max-width: 36em; }
.hwt-chip, .hwt-evidence { justify-self: start; display: inline-block; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--well); color: var(--note); font-size: 13px; line-height: 1.4; }
.hwt-section { display: grid; gap: 16px; margin-top: 44px; min-width: 0; }
.hwt-section h2 { font-size: 26px; }
.hwt-caption { color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 40em; }
.hwt-evidence { border-radius: 12px; }

/* Two equal columns even on phones: 9:16 media stays readable at ~165 px wide. */
.hwt-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hwt-clip, .hwt-still, .hwt-figure { position: relative; display: grid; gap: 10px; min-width: 0; margin: 0; }
.hwt-clip video, .hwt-still img, .hwt-figure img, .hwt-more video, .hwt-card img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--well); }
.hwt-clip video, .hwt-more video { aspect-ratio: 9 / 16; object-fit: cover; }
.hwt-clip figcaption, .hwt-still figcaption { display: grid; gap: 4px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.hwt-words { color: var(--fg); font-weight: 600; font-size: 15px; }
.hwt-score { color: var(--note); font-variant-numeric: tabular-nums; }
.hwt-clip[data-outcome="pass"] .hwt-score::before { content: "✓ "; color: var(--mint); }
.hwt-clip[data-outcome="miss"] .hwt-score::before { content: "✕ "; color: var(--coral); }

/* Dot chart: shape and colour both carry the outcome. */
.hwt-dots { width: 100%; height: auto; max-width: 520px; padding: 16px; border-radius: 16px; background: var(--well); overflow: visible; }
.hwt-dots text { fill: var(--muted); font-size: 12px; }
.hwt-dots text.row { fill: var(--fg); font-size: 14px; }
.hwt-dots text.row.strong { font-weight: 700; }
.hwt-dots text.cnt { fill: var(--note); font-size: 13px; }
.hwt-dots .d-real { fill: var(--mint); }
.hwt-dots .d-fake { fill: var(--coral); }
.hwt-dots .d-other { fill: none; stroke: var(--fg); stroke-width: 2; }
.hwt-dots .d-unknown { fill: none; stroke: var(--coral); stroke-width: 2; stroke-dasharray: 3 3; }

/* 15-second scorecard */
.hwt-scores { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--well); border-radius: 16px; overflow: hidden; }
.hwt-scores th, .hwt-scores td { padding: 10px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.hwt-scores thead th { color: var(--note); font-weight: 600; font-size: 13px; }
.hwt-scores tbody th { color: var(--fg); font-weight: 500; overflow-wrap: anywhere; }
.hwt-scores td { white-space: nowrap; color: var(--fg); font-variant-numeric: tabular-nums; width: 1%; }
.hwt-scores .grp th { padding-top: 14px; color: var(--mint); font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.hwt-scores .tag { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 6px; background: #FF6B4A2e; color: #FFD2C7; font-size: 12px; }
.hwt-scores tr[data-wording="carried"] th { font-weight: 700; }
.pips { display: inline-block; width: 46px; height: 8px; margin-right: 8px; vertical-align: middle; border-radius: 4px;
  background: linear-gradient(90deg, var(--mint) calc(var(--s, 0) * 20%), #FBF1E42e 0); }
.pips[data-score="1"] { --s: 1; } .pips[data-score="2"] { --s: 2; } .pips[data-score="3"] { --s: 3; } .pips[data-score="4"] { --s: 4; } .pips[data-score="5"] { --s: 5; }

.hwt-more summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--fg); font-weight: 600; cursor: pointer; list-style: none; }
.hwt-more summary::-webkit-details-marker { display: none; }
.hwt-more summary::before { content: "▶"; margin-right: 8px; font-size: 12px; }
.hwt-more[open] summary { margin-bottom: 12px; }
.hwt-more video { max-width: 320px; }

/* Miss cards */
.hwt-cards { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.hwt-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #ffffff08; }
.hwt-card:has(img) { grid-template-columns: 112px minmax(0, 1fr); align-items: start; }
.hwt-card img { border-radius: 10px; }
.hwt-card h3 { margin-bottom: 4px; }
.hwt-card h3::before { content: "✕"; margin-right: 8px; color: var(--coral); }
.hwt-card p { color: var(--muted); font-size: 15px; margin: 0; }

.hwt-small ul { display: grid; gap: 10px; margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.hwt-close { margin-top: 8px; font-size: 18px; color: var(--fg); }
.hwt-close a { display: inline-flex; align-items: center; min-height: 44px; margin-left: 4px; font-weight: 700; text-decoration: underline; }

@media (min-width: 640px) {
  .hwt { padding-top: 56px; }
  .hwt-pair { gap: 20px; }
  .hwt-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hwt-card:has(img) { grid-column: 1 / -1; grid-template-columns: 160px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .hwt * { scroll-behavior: auto; transition: none; animation: none; } }

/* Frame grids stack on phones so each frame stays readable; side by side from 640 px. */
.hwt-grids { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .hwt-grids { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hwt-desc summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg); font-size: 14px; text-decoration: underline; cursor: pointer; }
.hwt-desc p { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.hwt-scores tbody + tbody .grp th { border-top: 1px solid var(--line-strong); }

.hwt-byline { color: var(--subtle); font-size: 14px; }
.hwt-found ul { display: grid; gap: 10px; margin: 0; padding-left: 20px; color: var(--fg); font-size: 16px; line-height: 1.5; max-width: 42em; }
.hwt-glossary { display: grid; gap: 6px; margin: 4px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--well); font-size: 14px; }
.hwt-glossary div { display: flex; flex-wrap: wrap; gap: 0 6px; }
.hwt-glossary dt { color: var(--fg); font-weight: 700; }
.hwt-glossary dt::after { content: ":"; }
.hwt-glossary dd { margin: 0; color: var(--muted); }
