/* Liaison — the free security check (/check). Loaded after site.css and issue.css, which hold the
   tokens and the section and list styles this page reuses. No icon set, no emoji: the answer
   marks are mono glyphs. */

.check { padding-top: var(--space-7); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Intro ------------------------------------------------------------------------ */

.check-intro h1 {
  margin: var(--space-3) 0 var(--space-4);
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.check-intro .lede {
  max-width: none;
  margin: 0 0 var(--space-6);
  text-wrap: pretty;
  font-size: 18px;
  line-height: 29px;
}
.how-it-works li { color: var(--ink-200); }
.check code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--ink-100);
}

/* ---- Profile questions ------------------------------------------------------------ */

.q {
  margin: 0 0 var(--space-6);
  padding: 0;
  border: 0;
  min-width: 0;
}
.q legend {
  padding: 0;
  margin-bottom: var(--space-3);
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  color: var(--ink-100);
}
.q-help {
  margin: 0 0 var(--space-3);
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-200);
}
.opts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}
.opts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.opt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 44px;
  padding: var(--space-3);
  background: var(--bg-100);
  border: var(--rule-hair) solid var(--line-300);
}
.opt input,
.answer input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.opt-name {
  display: flex;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-100);
}
/* Same marks as the step answers, but this one follows the choice: [ ] until picked, then [x]. */
.opt .glyph { flex: 0 0 auto; margin-right: 0.6em; color: var(--ink-300); font-weight: 500; letter-spacing: 0; }
.opt .glyph::before { content: "[ ]"; }
.opt:has(input:checked) .glyph { color: var(--accent-100); }
.opt:has(input:checked) .glyph::before { content: "[x]"; }
.opt-hint { font-size: 12.5px; line-height: 18px; color: var(--ink-300); }
.opt:hover { border-color: var(--accent-100); }
.opt:has(input:checked) {
  background: var(--accent-wash);
  border-color: var(--accent-100);
  box-shadow: inset 0 0 0 1px var(--accent-100);
}
.opt:has(input:checked) .opt-hint { color: var(--ink-200); }
.opt:has(input:focus-visible) {
  outline: var(--rule-bar) solid var(--accent-100);
  outline-offset: 2px;
}

/* ASCII frame: a + on each corner of a bordered panel, cut into the border. The + sits on the
   page ground (bg-100), so only use it on panels that sit directly on the page. */
.ascii { position: relative; }
.ascii > .cn {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 15px;
  font-weight: 500;
  color: var(--line-300);
  background: var(--bg-100);
  pointer-events: none;
}
.ascii > .tl { top: -8px; left: -5px; }
.ascii > .tr { top: -8px; right: -5px; }
.ascii > .bl { bottom: -7px; left: -5px; }
.ascii > .br { bottom: -7px; right: -5px; }
.pitch-panel.ascii > .cn { color: var(--accent-100); }

.plan-line {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin: 0;
  padding: var(--space-4) 0 0;
  border-top: var(--rule-hair) solid var(--line-200);
}

/* ---- Steps ------------------------------------------------------------------------ */

.steps-note {
  margin: 0 0 var(--space-5);
  font-size: 15px;
  line-height: 24px;
  color: var(--ink-200);
}
.steps-note .data { font-size: 13px; color: var(--accent-100); }

ol.steps { margin: 0; padding: 0; list-style: none; }

.step {
  padding: var(--space-6) 0;
  border-top: var(--rule-hair) solid var(--line-200);
}
.step h3 {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin: 0 0 var(--space-3);
  font-size: 21px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.step-n {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-300);
}
.step > p,
.how p,
.how-list li {
  font-size: 15px;
  line-height: 24px;
}
.step > p { margin: 0 0 var(--space-3); }
.step .source {
  margin: 0 0 var(--space-3);
  font-size: 12.5px;
  line-height: 18px;
  color: var(--ink-300);
}
.step .source a,
.vendor a { color: var(--ink-200); }

.how { margin: var(--space-4) 0 0; }
.how > summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-100);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  list-style: none;
  cursor: pointer;
}
.how > summary::-webkit-details-marker { display: none; }
.how > summary:hover { color: var(--accent-200); }
.how .how-open,
.how[open] .how-closed { display: none; }
.how[open] .how-open { display: inline; }

.how-list {
  margin: var(--space-3) 0 var(--space-4);
  padding-left: 1.6em;
  color: var(--ink-200);
}
.how-list li { margin-bottom: var(--space-3); }
.how-list li::marker { font-family: var(--font-mono); font-size: 13px; color: var(--ink-300); }
.how-list strong { color: var(--ink-100); font-weight: 600; }
.how > p { margin: var(--space-3) 0; color: var(--ink-200); }
.how .good {
  padding: var(--space-3) 0;
  border-top: var(--rule-hair) solid var(--line-100);
  border-bottom: var(--rule-hair) solid var(--line-100);
  color: var(--ink-100);
}
.how .vendor {
  font-size: 12.5px;
  line-height: 18px;
  color: var(--ink-300);
}

/* Done, later, does not apply: three square marks, the word always beside the glyph. Mono glyphs
   ([x] [ ] [-]) as the design system asks: no icon set, no emoji (Paul, 2026-11-04: keep the ASCII). */
.answer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-5) 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.answer label { position: relative; }
.answer label > span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-4);
  border: var(--rule-hair) solid var(--line-300);
  background: var(--bg-100);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-200);
}
.answer .glyph { margin-right: 0.6em; color: var(--ink-300); font-weight: 500; letter-spacing: 0; }
.answer label:hover > span { border-color: var(--accent-100); }
.answer input:checked + span {
  border-color: var(--accent-100);
  box-shadow: inset 0 0 0 1px var(--accent-100);
  color: var(--ink-100);
}
.answer input:checked + span .glyph { color: var(--accent-100); }
.answer input[value="d"]:checked + span { background: var(--accent-wash); }
.answer label:has(input:focus-visible) {
  outline: var(--rule-bar) solid var(--accent-100);
  outline-offset: 2px;
}

/* An answered step steps back, so the eye goes to what is left. */
.step[data-answer="d"] > p,
.step[data-answer="x"] > p { color: var(--ink-300); }
.step[data-answer="d"] h3,
.step[data-answer="x"] h3 { color: var(--ink-200); }

/* ---- Exposed-file list (step 05) --------------------------------------------------- */

.probe {
  margin: var(--space-4) 0;
  padding: var(--space-5);
  background: var(--bg-200);
  border: var(--rule-hair) solid var(--line-200);
}
.probe .field input { font-size: 15px; }
.probe-list {
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}
.probe-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-3);
  padding: var(--space-2) 0;
  border-top: var(--rule-hair) solid var(--line-100);
  font-size: 13px;
  line-height: 20px;
}
.probe-list a { font-family: var(--font-mono); word-break: break-all; }
.probe-list .what { color: var(--ink-300); font-size: 12.5px; }

/* ---- Result ----------------------------------------------------------------------- */

.score {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5);
  background: var(--bg-200);
  border: var(--rule-hair) solid var(--line-200);
}
.numeral {
  flex: 0 0 auto;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(56px, 12vw, 88px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-100);
}
.score-text p { margin: 0; }
.score-text .kicker { margin-bottom: var(--space-2); }
#score-msg { font-size: 15px; line-height: 24px; color: var(--ink-200); }

.todo { margin-top: var(--space-6); }
.todo h3 {
  margin: 0 0 var(--space-4);
  font-size: 19px;
  line-height: 26px;
  font-weight: 600;
}
.todo .items li { color: var(--ink-100); }
.todo .items .marker { color: var(--ink-300); }
.todo .items a { font-size: 13px; white-space: nowrap; }

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-5);
  margin: var(--space-5) 0 0;
}
.textbtn {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-100);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.textbtn:hover { color: var(--accent-200); }
.textbtn[hidden] { display: none; }

/* ---- Newsletter and close ---------------------------------------------------------- */

.pitch-panel {
  padding: var(--space-7) var(--space-6);
  background: var(--bg-200);
  border: var(--rule-hair) solid var(--line-300);
}
.issue-section .pitch-panel h2.kicker {
  display: block;
  margin: 0 0 var(--space-4);
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-300);
}
.pitch {
  max-width: 30ch;
  margin: 0 0 var(--space-4);
  font-size: clamp(22px, 3.6vw, 28px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--ink-100);
}
.pitch-more {
  max-width: 52ch;
  margin: 0 0 var(--space-6);
  font-size: 17px;
  line-height: 28px;
  color: var(--ink-200);
}
.pitch-panel .subscribe {
  max-width: none;
  padding: 0;
  background: none;
  border: 0;
}

/* Bottom-right, small, and only after the first answer: asked when it means something. */
.consent {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 10;
  width: min(360px, calc(100vw - 2 * var(--space-4)));
  padding: var(--space-4) var(--space-5);
  background: var(--bg-300);
  border: var(--rule-hair) solid var(--line-300);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.consent[hidden] { display: none; }
.consent p {
  margin: 0 0 var(--space-3);
  font-size: 14px;
  line-height: 21px;
  color: var(--ink-200);
}
.consent-actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.consent .btn { width: auto; height: 40px; padding: 0 var(--space-4); font-size: 12px; }
.consent .textbtn { font-size: 14px; }

.disclaimer {
  margin: var(--space-7) 0 0;
  padding-top: var(--space-4);
  border-top: var(--rule-hair) solid var(--line-200);
  font-size: 12.5px;
  line-height: 18px;
  color: var(--ink-300);
}

/* ---- Phone ------------------------------------------------------------------------ */

@media (max-width: 520px) {
  .check { padding-top: var(--space-6); }
  .opts,
  .opts-2 { grid-template-columns: 1fr; }
  .answer label { flex: 1 1 auto; }
  .answer label > span { width: 100%; justify-content: center; padding: 0 var(--space-3); }
  .pitch-panel { padding: var(--space-6) var(--space-4); }
  .consent { right: var(--space-4); bottom: var(--space-4); }
  .probe { padding: var(--space-4); }
  .score { flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-4); }
}

/* ---- Print: the to-do list, on paper, in ink ---------------------------------------- */

@media print {
  :root {
    --bg-000: #fff; --bg-100: #fff; --bg-200: #fff; --bg-300: #fff;
    --ink-100: #000; --ink-200: #222; --ink-300: #444;
    --line-100: #bbb; --line-200: #999; --line-300: #666;
    --accent-100: #000; --accent-wash: #fff;
  }
  html, body { background: #fff; }
  .masthead, .site-footer, #profile, #steps, .result-actions, #result-status, .consent,
  .signup, .how-it-works { display: none !important; }
  .check-intro .lede { font-size: 13pt; line-height: 1.5; }
}
