/* SpotScam – built for people of every age. Big text, strong contrast, no tiny buttons. */
:root {
  --ink: #161616;
  --muted: #4a4a4a;
  --bg: #fffdf7;
  --card: #ffffff;
  --line: #cfc8b8;
  --brand: #0a4a85;
  --brand-dark: #073763;
  --danger: #b0221b;
  --danger-dark: #8a1914;
  --warn-bg: #fff3c4;
  --warn-line: #d9a300;
  --ok: #1b6a37;
  --ok-bg: #eaf6ee;
  --flag-bg: #fdeceb;
  --radius: 14px;
  --font: "Atkinson Hyperlegible", Verdana, Tahoma, "Segoe UI", Arial, sans-serif;
  font-size: 20px;
}
html[data-size="large"] { font-size: 24px; }
html[data-size="xlarge"] { font-size: 28px; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 4px solid #ff9f1c; outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; margin: 1.4em 0 .5em; }
h1 { font-size: 2.1rem; margin-top: .3em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p, li { max-width: 40em; }
li { margin-bottom: .5em; }
.muted { color: var(--muted); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 12px 16px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 56px; padding: 12px 22px;
  border: 3px solid transparent; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: #eef4fb; }
.btn-big { font-size: 1.15rem; min-height: 64px; padding: 14px 28px; }

/* ---------- header ---------- */
.site-header { background: #fff; border-bottom: 4px solid var(--brand); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 10px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: .35em; text-decoration: none; color: var(--ink); }
.logo-mark { font-size: 2rem; }
.logo-text { font-size: 1.9rem; font-weight: 700; letter-spacing: -.5px; }
.logo-text span { color: var(--danger); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding-bottom: 12px; }
.main-nav > a { font-weight: 700; font-size: 1.05rem; padding: 6px 0; }
.size-tools { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.size-label { color: var(--muted); font-size: .9rem; }
.size-tools button {
  min-width: 52px; min-height: 48px; font: inherit; font-weight: 700;
  background: #fff; color: var(--ink); border: 2px solid var(--line); border-radius: 10px; cursor: pointer;
}
.size-tools button[data-size="large"] { font-size: 1.15rem; }
.size-tools button[data-size="xlarge"] { font-size: 1.3rem; }
.size-tools button[aria-pressed="true"] { border-color: var(--brand); background: #eef4fb; }

main { padding-top: 16px; padding-bottom: 48px; }

/* ---------- home ---------- */
.hero { padding: 24px 0 8px; }
.hero h1 { font-size: 2.4rem; }
.lead { font-size: 1.2rem; }

.search { background: #fff; border: 3px solid var(--brand); border-radius: var(--radius); padding: 18px; margin: 20px 0 28px; }
.search-label { display: block; font-weight: 700; margin-bottom: 10px; }
.search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.search input {
  flex: 1 1 260px; min-height: 60px; padding: 10px 16px;
  font: inherit; font-size: 1.1rem; border: 3px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
.search input:focus { border-color: var(--brand); }
.search-results { margin-top: 14px; }
.search-results .cards { margin-top: 8px; }
.search-none { font-weight: 700; }

.rules { background: var(--warn-bg); border: 3px solid var(--warn-line); border-radius: var(--radius); padding: 8px 22px 14px; margin: 28px 0; }
.rules h2 { margin-top: .6em; }
.rule-list { padding-left: 1.4em; }
.rule-list li { margin-bottom: .9em; font-size: 1.1rem; }
.rule-list li strong { display: block; }
.rule-list li span { color: var(--ink); font-size: 1rem; }

.featured { margin: 8px 0 28px; }
.featured h2 { margin-top: .4em; }

.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 16px 0 10px; }
.topics a {
  display: flex; align-items: center; gap: .5em; min-height: 60px; padding: 10px 16px;
  background: #fff; border: 2px solid var(--line); border-radius: 12px;
  font-weight: 700; text-decoration: none; color: var(--ink);
}
.topics a:hover { border-color: var(--brand); background: #f6f9fd; }
.topics span { font-size: 1.5rem; }

.shelf { margin: 34px 0; scroll-margin-top: 12px; }
.shelf-title { font-size: 1.35rem; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.shelf-title a { color: var(--ink); text-decoration: none; }
.shelf-title a:hover { color: var(--brand); text-decoration: underline; }
.shelf-more { margin-top: 14px; }
.shelf-more-link { display: inline-block; margin-top: 10px; font-weight: 700; }

/* ---------- cards (the big tappable buttons) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card {
  display: flex; align-items: center; gap: 16px; min-height: 96px;
  padding: 16px 18px; background: var(--card);
  border: 3px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
  box-shadow: 0 2px 0 rgba(0,0,0,.06);
}
.card:hover { border-color: var(--brand); background: #f6f9fd; color: var(--ink); }
.card-icon { font-size: 2.3rem; flex: 0 0 auto; width: 1.4em; text-align: center; }
.icon-img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.card-text { display: flex; flex-direction: column; flex: 1; }
.card-situation { font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.card-title { color: var(--brand); font-size: .95rem; margin-top: 4px; text-decoration: underline; text-underline-offset: 3px; }
.card-arrow { font-size: 2.2rem; color: var(--brand); line-height: 1; }

/* ---------- entry pages ---------- */
.back { margin: 8px 0 4px; }
.back a { font-weight: 700; font-size: 1.05rem; }
.entry-head { display: flex; gap: 18px; align-items: center; margin-top: 10px; }
.entry-icon { font-size: 3.6rem; line-height: 1; }
.entry-head .icon-img { width: 96px; height: 96px; }
.entry-head h1 { margin: 0; }
.kicker { margin: 0; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; font-size: .85rem; color: var(--danger); }
.also { color: var(--muted); }

.remember { background: var(--warn-bg); border: 3px solid var(--warn-line); border-left-width: 12px; border-radius: var(--radius); padding: 14px 20px; margin: 22px 0; }
.remember-label { margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .85rem; }
.remember-text { margin: .3em 0 0; font-size: 1.3rem; font-weight: 700; line-height: 1.4; }

.block { margin: 30px 0; }
.block h2 { margin-top: 0; }
.block-steps ol, .block-page ol { padding-left: 1.6em; }
.block-steps li::marker { font-weight: 700; color: var(--brand); }
.block-flags ul, .block-todo ul { list-style: none; padding: 0; }
.block-flags li, .block-todo li { position: relative; padding: 12px 16px 12px 3.1em; border-radius: 12px; margin-bottom: 10px; max-width: none; }
.block-flags li { background: var(--flag-bg); border: 2px solid #efb7b3; }
.block-flags li::before { content: "!"; position: absolute; left: 14px; top: 10px; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--danger); color: #fff; font-weight: 700; text-align: center; line-height: 1.6em; }
.block-todo li { background: var(--ok-bg); border: 2px solid #a9d6b8; }
.block-todo li::before { content: "✓"; position: absolute; left: 14px; top: 10px; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--ok); color: #fff; font-weight: 700; text-align: center; line-height: 1.6em; }

.example { margin: 18px 0 26px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; }
.example img { display: block; margin: 0 auto; max-height: 640px; border-radius: 8px; }
.example figcaption { margin-top: 10px; }
.source, .zoom-hint { display: block; color: var(--muted); font-size: .9rem; }

.help-banner { background: #fff; border: 4px solid var(--danger); border-radius: var(--radius); padding: 6px 22px 22px; margin: 36px 0; }
.help-banner h2 { color: var(--danger); margin-top: .7em; }

.share { border-top: 2px solid var(--line); margin-top: 36px; padding-top: 8px; }
.share-link { word-break: break-all; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.updated { margin-top: 24px; font-size: .9rem; }

/* ---------- A–Z ---------- */
.letters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; }
.letters a { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 52px; border: 2px solid var(--line); border-radius: 10px; background: #fff; font-weight: 700; text-decoration: none; }
.letter { border-bottom: 2px solid var(--line); padding-bottom: 4px; }
.all-list { list-style: none; padding: 0; }
.all-list li { margin-bottom: 14px; max-width: none; }
.all-list a { font-size: 1.15rem; }
.all-summary { display: block; color: var(--muted); }

/* ---------- help page ---------- */
.contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.contact { background: #fff; border: 3px solid var(--line); border-radius: var(--radius); padding: 4px 18px 16px; }
.contact h3 { margin-top: .7em; }
.contact-actions { display: flex; flex-direction: column; gap: 10px; }
.contact-phone { display: block; font-size: 1.5rem; font-weight: 700; letter-spacing: .5px; color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--brand-dark); color: #fff; padding: 22px 0 30px; }
.site-footer a { color: #fff; }
.site-footer .muted { color: #d5e0ec; font-size: .9rem; }
.footer-big { font-size: 1.25rem; }

/* ---------- phones ---------- */
@media (max-width: 640px) {
  :root { font-size: 19px; }
  h1, .hero h1 { font-size: 1.8rem; }
  .header-help { width: 100%; }
  .size-tools { margin-left: 0; width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .entry-icon { font-size: 2.8rem; }
  .share-buttons .btn, .help-banner .btn { width: 100%; }
}

/* ---------- printing ---------- */
@media print {
  :root { font-size: 15px; }
  .site-header nav, .header-help, .search, .share-buttons, .block-related, .skip, .zoom-hint { display: none !important; }
  .site-footer { background: none; color: #000; }
  .site-footer a { color: #000; }
  .card, .help-banner, .rules { break-inside: avoid; }
}
