/* Guardian shared styles: Scam.ai design system (monochrome, square, borderless) tuned for older readers.
   Large type (20px body), AAA contrast, 56px targets, no motion, works at 320px and 200% zoom. */
:root {
  color-scheme: light;
  --bg: #ffffff; --fg: #0a0a0a; --surf: #ececef; --mfg: #3d3d45; --line: #8a8a93; --warn: #8a1f1f;
  --sans: Satoshi, "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; --bg: #040406; --fg: #ffffff; --surf: #17171c; --mfg: #e2e2e8; --line: #9a9aa3; --warn: #ff9b9b; }
}
:root[data-theme="dark"] { color-scheme: dark; --bg: #040406; --fg: #ffffff; --surf: #17171c; --mfg: #e2e2e8; --line: #9a9aa3; --warn: #ff9b9b; }
*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { font-size: 20px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1rem/1.6 var(--sans); }
a { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
:focus-visible { outline: 4px solid var(--fg); outline-offset: 3px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 32px 20px 96px; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 16px; letter-spacing: -.01em; }
h2 { font-size: 1.4rem; line-height: 1.3; margin: 48px 0 12px; }
h3 { font-size: 1.15rem; margin: 28px 0 8px; }
p, li { max-width: 62ch; }
.lede { font-size: 1.1rem; }
.muted { color: var(--mfg); }
.small { font-size: .9rem; }
.panel { background: var(--surf); padding: 20px 22px; margin: 20px 0; }
.steps { padding-left: 1.4em; } .steps li { margin: 12px 0; }
.big { font-size: 1.25rem; font-weight: 700; }
.warn { color: var(--warn); font-weight: 700; }
/* buttons: the one sanctioned 2px border; 56px tall targets */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; min-width: 56px; padding: 12px 22px;
  font: inherit; font-weight: 700; color: var(--fg); background: var(--bg); border: 2px solid var(--fg); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--surf); }
.btn.primary { background: var(--fg); color: var(--bg); }
/* disabled buttons must look different from enabled ones (not by colour alone): faded, dashed border, no hand cursor */
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; border-style: dashed; cursor: not-allowed; }
.btn:disabled:hover { background: var(--bg); }
.btn.primary:disabled:hover { background: var(--fg); }
/* phone links inside text: a 44px tall tap area without changing the line spacing */
@media screen { a[href^="tel:"]:not(.btn) { display: inline-block; min-height: 44px; padding: 6px 0; margin: -6px 0; vertical-align: baseline; } }
.btn.block { display: flex; width: 100%; margin: 12px 0; }
.row { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
label { display: block; font-weight: 700; margin: 20px 0 6px; }
.hint { display: block; font-weight: 400; color: var(--mfg); font-size: .9rem; }
input[type=text], input[type=tel], input[type=number], input[type=date], textarea, select {
  font: inherit; width: 100%; min-height: 56px; padding: 12px 14px; color: var(--fg); background: var(--surf); border: 2px solid var(--line); }
textarea { min-height: 140px; }
fieldset { border: 0; padding: 0; margin: 20px 0; } legend { font-weight: 700; margin-bottom: 8px; }
.choice { display: flex; min-width: 0; overflow-wrap: anywhere; align-items: center; gap: 14px; min-height: 56px; padding: 10px 14px; background: var(--surf); margin: 8px 0; font-weight: 500; cursor: pointer; }
.choice input { width: 28px; height: 28px; accent-color: var(--fg); flex: none; }
.out { white-space: pre-wrap; font: .95rem/1.55 Menlo, Monaco, "Courier New", monospace; background: var(--surf); padding: 16px; margin: 8px 0; }
header.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; max-width: 760px; margin: 0 auto; }
header.top .brand { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; min-width: 48px; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 12px; background: var(--bg); padding: 12px; z-index: 10; }
footer.foot { color: var(--mfg); font-size: .9rem; margin-top: 64px; }
@media print {
  html { font-size: 16pt; } body { background: #fff; color: #000; } .noprint, header.top, nav { display: none !important; }
  .panel { background: #fff; border: 2px solid #000; } .wrap { padding: 0; max-width: none; }
}

/* ===== educators: Guardian for Educators kit (web/educators/). Prefixed .ed- so nothing else is affected. ===== */
.ed-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ed-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; min-width: 56px; font-weight: 700; }
.ed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 16px 0; }
.ed-card { background: var(--surf); padding: 18px 20px; }
.ed-card h3 { margin-top: 0; }
.ed-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.ed-table th, .ed-table td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 2px solid var(--line); }
.ed-table th { font-weight: 700; }
.ed-num { font-variant-numeric: tabular-nums; text-align: right !important; }
.ed-scroll { overflow-x: auto; }
.ed-scroll:focus-visible { outline: 4px solid var(--fg); outline-offset: 3px; }
/* pre/post check: the current round, big, so after-talk counts do not go into "before" by mistake */
.ed-round { display: block; margin-top: 6px; font-size: 1.1rem; font-weight: 700; color: var(--fg); border-left: 6px solid var(--fg); padding-left: 10px; }
/* quiz */
.ed-channel { display: inline-block; font-weight: 700; background: var(--fg); color: var(--bg); padding: 4px 12px; margin-bottom: 8px; }
.ed-quote { font-size: 1.3rem; line-height: 1.45; font-weight: 700; margin: 12px 0 20px; padding-left: 16px; border-left: 6px solid var(--fg); }
.ed-choices { display: grid; gap: 12px; margin: 12px 0; }
.ed-choices .btn { width: 100%; font-size: 1.1rem; justify-content: flex-start; text-align: left; }
.ed-choices .btn[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.ed-answer { border: 3px solid var(--fg); padding: 18px 20px; margin: 20px 0; }
.ed-answer .ed-move { font-size: 1.35rem; font-weight: 700; line-height: 1.35; margin: 4px 0 12px; }
.ed-tts-note { border: 2px dashed var(--fg); padding: 12px 14px; margin: 12px 0; font-weight: 700; }
.ed-progress { font-weight: 700; color: var(--mfg); }
/* projector mode: huge type, no animation, fills the screen */
.ed-deck { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.ed-slide { flex: 1; padding: 4vh 5vw 2vh; overflow-wrap: anywhere; }
.ed-slide h1 { font-size: calc(clamp(1.8rem, min(6.2vw, 10vh), 6rem) * var(--fit, 1)); line-height: 1.1; margin: 0 0 2.5vh; }
.ed-slide p, .ed-slide li { font-size: calc(clamp(1.2rem, min(3.6vw, 5.6vh), 3.4rem) * var(--fit, 1)); line-height: 1.28; max-width: none; margin: 0 0 1.2vh; }
.ed-slide ul, .ed-slide ol { padding-left: 1.2em; margin: 0; }
.ed-slide li { margin: 0 0 1vh; }
.ed-slide .ed-kicker { font-size: calc(clamp(1rem, min(2.4vw, 3.6vh), 2.2rem) * var(--fit, 1)); font-weight: 700; color: var(--mfg); margin: 0 0 1vh; }
.ed-slide .ed-say { font-weight: 700; border-left: 0.3em solid var(--fg); padding-left: .5em; }
.ed-deckbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 5vw 16px; border-top: 2px solid var(--line); }
.ed-deckbar .ed-count { font-weight: 700; font-size: 1.1rem; }
/* pre/post tallies */
.ed-tally { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ed-tally input[type=number] { width: 7em; }
@media print {
  .ed-card { background: #fff; border: 2px solid #000; }
  .ed-deckbar { display: none !important; }
}
/* ===== end educators ===== */

/* ===== recovery/checkup section (added by the Recovery Navigator + Protection Checkup build) ===== */
.btn { white-space: normal; text-align: center; }
.btn.left { justify-content: flex-start; text-align: left; }
.bigchoice { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 96px; padding: 18px 20px; margin: 14px 0;
  border: 2px solid var(--fg); background: var(--bg); color: var(--fg); text-decoration: none; font-size: 1.2rem; font-weight: 700; }
.bigchoice:hover { background: var(--surf); }
.bigchoice .sub { font-size: .95rem; font-weight: 400; color: var(--mfg); }
.bigchoice.primary { background: var(--fg); color: var(--bg); } .bigchoice.primary .sub { color: var(--bg); }
.alert { border-left: 8px solid var(--warn); background: var(--surf); padding: 16px 18px; margin: 20px 0; }
.alert strong { color: var(--warn); }
.donow { counter-reset: dn; list-style: none; padding: 0; }
.donow li { counter-increment: dn; position: relative; padding: 4px 0 4px 56px; margin: 14px 0; font-size: 1.15rem; min-height: 44px; }
.donow li::before { content: counter(dn); position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--fg); color: var(--bg); font-weight: 700; }
.progressline { font-weight: 700; margin: 8px 0; }
progress { width: 100%; height: 16px; accent-color: var(--fg); }
.privacybar { background: var(--surf); padding: 12px 16px; margin: 16px 0; }
.privacybar .choice { background: var(--bg); }
.task { list-style: none; margin: 18px 0; padding: 14px 16px; border-left: 6px solid var(--fg); background: var(--surf); }
.task > .choice { background: var(--bg); font-weight: 700; }
.task ul { margin: 8px 0 0; padding-left: 1.3em; } .task li { margin: 6px 0; }
.task ul.phonelist { list-style: none; padding-left: 0; } .task ul.phonelist li { margin: 0; min-height: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
@media screen { .task ul.phonelist a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 48px; padding: 0; margin: 0; } }
.tasks { padding: 0; }
.tag { display: inline-block; font-size: .9rem; font-weight: 700; padding: 2px 8px; border: 2px solid var(--fg); margin-right: 6px; }
.copyblock { margin: 28px 0; } .copyblock h3 { margin-top: 0; }
.out { overflow-wrap: anywhere; }
.status { font-weight: 700; min-height: 1.6em; }
details { margin: 16px 0; } summary { cursor: pointer; font-weight: 700; min-height: 56px; display: flex; align-items: center; }
details.sources li { font-size: .9rem; overflow-wrap: anywhere; }
.devices .choice { font-size: 1.1rem; }
.planCard { border: 3px dashed var(--fg); padding: 18px; margin: 20px 0; }
.planCard input[type=text], .planCard input[type=tel] { background: var(--bg); }
.hidden { display: none !important; }
.print-only { display: none; }
@media (max-width: 400px) { .wrap { padding: 20px 16px 72px; } h1 { font-size: 1.6rem; } .btn { padding: 12px 14px; } }
@media print {
  .task, .alert, .privacybar { background: #fff; border-color: #000; }
  .copyblock, .task { break-inside: avoid; }
  .out { background: #fff; border: 1px solid #000; font-size: 11pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10pt; }
  body.print-card .wrap > *:not(#planCardWrap) { display: none !important; }
  body.print-card #planCardWrap { display: block !important; }
  /* the family card fits one Letter page: no on-screen hints, section heading or intro; tighter fields */
  body.print-card #planCardWrap > h2, body.print-card #planCardWrap > p, body.print-card .planCard .hint { display: none !important; }
  body.print-card .planCard { break-inside: avoid; page-break-inside: avoid; margin: 0; padding: 12pt 16pt; border-width: 2pt; line-height: 1.35; }
  body.print-card .planCard h3 { font-size: 22pt; margin: 0 0 6pt; }
  body.print-card .planCard .steps li { margin: 4pt 0; }
  body.print-card .planCard label { margin: 6pt 0 2pt; }
  body.print-card .planCard input { min-height: 0; height: 28pt; padding: 2pt 8pt; border: 1pt solid #000; background: #fff; }
  body.print-card .planCard p.small { font-size: 16pt; margin: 10pt 0 0; }
  /* the safe word is never printed: an empty line to write it in by hand (matches the educators kit) */
  #p-word { display: none !important; }
  .print-only { display: block !important; }
  .writein { border-bottom: 1.5pt solid #000; min-height: 34pt; margin: 2pt 0 0; font-size: 16pt; color: #000; }
}
.wrap li a, .wrap p a { overflow-wrap: anywhere; }
/* no automatic hyphens in headings: split words ("per-/son") are hard to read for low-vision and low-literacy readers */
.wrap { overflow-wrap: break-word; } .wrap h1, .wrap h2, .wrap h3, .q, h1.verdict { hyphens: none; -webkit-hyphens: none; }
.steph { font-size: 1.5rem; margin: 8px 0 12px; }
.status:empty { min-height: 0; margin: 0; }
.copyblock .out { font: 1rem/1.6 var(--sans); }
progress { -webkit-appearance: none; appearance: none; border: 2px solid var(--fg); background: var(--bg); height: 20px; }
progress::-webkit-progress-bar { background: var(--bg); }
progress::-webkit-progress-value { background: var(--fg); }
progress::-moz-progress-bar { background: var(--fg); }
/* ===== end recovery/checkup section ===== */

/* ===== public site pages (privacy, support, start) and footer links ===== */
.sitelinks { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 12px 0; }
.sitelinks a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; }
.applinks li { margin: 10px 0; }
.facts { border-collapse: collapse; width: 100%; margin: 16px 0; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 12px 8px; border-bottom: 2px solid var(--line); }
.helpline { background: var(--surf); padding: 16px 20px; margin: 14px 0; }
.helpline h3 { margin: 0 0 6px; }
.helpline p { margin: 6px 0; }
.helpline .phone { font-size: 1.25rem; font-weight: 700; }
.updated { color: var(--mfg); font-size: .9rem; }
@media print {
  .sitelinks { display: none !important; }
  html.startsheet { font-size: 13pt; }
  .startsheet h1 { font-size: 20pt; margin-bottom: 6pt; }
  .startsheet h2 { font-size: 15pt; margin: 12pt 0 4pt; }
  .startsheet p, .startsheet li { margin: 3pt 0; max-width: none; }
  .startsheet .donow li { margin: 4pt 0; }
  .startsheet .panel { padding: 6pt 10pt; margin: 8pt 0; }
}
