/* Demo Site — shared styles. Self-contained: system fonts only, no third-party requests. */
:root {
  --paper: #f5f4ee;
  --paper-deep: #ebe9dd;
  --card: #fffdf7;
  --ink: #172c3a;
  --ink-soft: #3b4f5c;      /* 8.6:1 on paper */
  --green: #345e55;         /* 6.9:1 on paper */
  --green-dark: #264a42;
  --green-wash: #dfe9e3;
  --brass: #7a4f00;         /* 6.4:1 on paper */
  --brass-wash: #f3e3bd;
  --rule: #b9c3bb;
  --red: #b3001b;           /* 7.2:1 with white text */
  --red-dark: #8c0015;
  --focus: #0b57d0;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --wrap: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Larger text in the top bar (site/layout.js). Sizes are in rem, so the whole page grows with it. */
html.text-larger { font-size: 120%; }
body {
  margin: 0;
  background: var(--paper);
  /* faint ruled-paper texture */
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 2.1rem, rgba(52, 94, 85, .07) 2.1rem, rgba(52, 94, 85, .07) calc(2.1rem + 1px));
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.25rem;       /* 20px */
  line-height: 1.65;
}
img, svg { max-width: 100%; }
a { color: var(--green-dark); text-underline-offset: .2em; text-decoration-thickness: .1em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: 0; transform: translateY(-120%);
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 6px; z-index: 10;
}
.skip-link:focus { top: 1rem; transform: none; color: #fff; }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: #fff; border-bottom: 6px solid var(--green); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 1.5rem; padding-block: .9rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .7rem; margin-right: auto;
  color: #fff; text-decoration: none;
  font-family: var(--serif); font-size: 1.75rem; font-weight: 700; letter-spacing: -.01em;
}
.brand:hover { color: #fff; text-decoration: underline; text-decoration-thickness: .08em; }
.brand svg { width: 2.4rem; height: 2.4rem; flex: none; }
.site-nav > ul { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.site-nav > ul > li > a, .nav-menu-button {
  display: flex; align-items: center; justify-content: center; min-height: 3.1rem;
  padding: .45rem .85rem; border: 2px solid transparent; border-radius: 7px;
  color: #fff; font-weight: 700; line-height: 1.3; text-decoration: none;
}
.site-nav > ul > li > a:hover { background: #294653; color: #fff; text-decoration: underline; }
.site-nav a[aria-current="page"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.site-nav a.nav-scam { border-color: var(--brass-wash); color: var(--brass-wash); }
.site-nav a.nav-scam[aria-current="page"] { background: var(--brass-wash); color: var(--ink); }
.site-nav > ul > li > a:focus-visible, .nav-menu-button:focus-visible { outline-color: #ffd54a; }
.text-size {
  min-height: 3.1rem; padding: .45rem .9rem; border: 2px solid #adbcb9; border-radius: 7px;
  background: transparent; color: #fff; font: inherit; font-weight: 700; line-height: 1.3; cursor: pointer;
}
.text-size:hover { background: #294653; }
.text-size[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.text-size[aria-pressed="true"]::before { content: "✓"; content: "✓" / ""; margin-right: .45rem; }
.text-size:focus-visible { outline-color: #ffd54a; }

/* Simulators drop-down: opens on mouse hover, or on click, tap, or Enter (nav.js). */
.nav-menu { position: relative; }
.nav-menu-button { gap: .45rem; width: 100%; background: none; font: inherit; font-weight: 700; cursor: pointer; }
.nav-menu-button:hover, .nav-menu-button[aria-expanded="true"] { background: #294653; }
.nav-menu-caret { width: .75em; height: .75em; flex: none; }
.nav-menu-panel {
  position: absolute; top: calc(100% + .5rem); right: 0; z-index: 20;
  width: min(25rem, calc(100vw - 2rem)); padding: .9rem 1rem 1rem;
  background: var(--card); color: var(--ink); border: 3px solid var(--ink); border-radius: 10px;
  box-shadow: 0 14px 28px rgba(23, 44, 58, .28);
  font-size: 1.15rem; line-height: 1.45;
  visibility: hidden; opacity: 0; transform: translateY(-.6rem) scale(.98); transform-origin: top right;
}
/* Covers the gap under the button so the pointer can move into the open menu. */
.nav-menu-panel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: .75rem; }
.nav-menu-panel p { margin: 0; color: var(--ink-soft); }
.nav-menu-panel p + p { margin-top: .6rem; }
.nav-menu-panel ul { display: grid; gap: .5rem; list-style: none; margin: .75rem 0; padding: 0; }
/* A menu of links only, such as Courses, has no words above or below its links. */
.nav-menu-panel ul:first-child { margin-top: 0; }
.nav-menu-panel ul:last-child { margin-bottom: 0; }
.nav-menu-panel a {
  display: grid; gap: .15rem; padding: .65rem .8rem;
  border: 2px solid var(--rule); border-radius: 8px; background: #fff;
  color: var(--ink); text-decoration: none;
}
.nav-menu-panel a strong { color: var(--green-dark); font-size: 1.2rem; text-decoration: underline; text-underline-offset: .2em; }
.nav-menu-panel a span { color: var(--ink-soft); }
.nav-menu-panel a:hover { border-color: var(--green); background: var(--green-wash); }
.nav-menu-button[aria-expanded="true"] + .nav-menu-panel,
.nav-menu:not([data-ready]):focus-within .nav-menu-panel { visibility: visible; opacity: 1; transform: none; }
.nav-menu-button[aria-expanded="true"] .nav-menu-caret { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .nav-menu:not([data-closed]):hover .nav-menu-panel { visibility: visible; opacity: 1; transform: none; }
  .nav-menu:not([data-closed]):hover .nav-menu-caret { transform: rotate(180deg); }
  .nav-menu:not([data-closed]):hover .nav-menu-button { background: #294653; }
}

@media (max-width: 52rem) {
  /* The name and Larger text share the first row; the links fill the second. */
  .site-nav { flex-basis: 100%; position: relative; order: 3; }
  .text-size { min-height: 2.75rem; padding: .3rem .7rem; font-size: 1.05rem; }
  .brand { font-size: 1.45rem; gap: .5rem; }
  .brand svg { width: 2rem; height: 2rem; }
  .site-nav > ul > li > a, .nav-menu-button { min-height: 2.9rem; padding: .35rem .55rem; font-size: 1.1rem; }
  .site-nav > ul > li { flex: 1 1 auto; }
  /* On narrow screens the open menu spans the toolbar instead of hanging off one button. */
  .nav-menu { position: static; }
  .nav-menu-panel { left: 0; width: auto; transform-origin: top center; }
}
@media (max-width: 30rem) {
  /* The four links do not fit in one row on a phone, so they show as two rows of two. */
  .site-nav > ul > li { flex-basis: 40%; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.25rem; padding: .6rem 1.4rem;
  border: 3px solid transparent; border-radius: 10px;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .15s;
}
.btn-scam { background: var(--red); color: #fff; border-color: #fff; box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.btn-scam:hover { background: var(--red-dark); color: #fff; }
.btn-scam:focus-visible { outline-color: #ffd54a; }
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--green-dark); border-color: var(--green); }
.btn-ghost:hover { background: var(--green-wash); color: var(--ink); }
.btn .ext { font-size: .9em; }

/* ---------- Page headings ---------- */
.eyebrow {
  display: inline-block; margin: 0 0 .8rem;
  color: var(--brass); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .95rem;
}
h1 {
  margin: 0 0 1.1rem;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.5rem, 7vw, 4.25rem); line-height: 1.05; letter-spacing: -.03em;
}
h1 em { font-style: italic; color: var(--green); }
.lede { max-width: 34rem; margin: 0; font-size: 1.4rem; line-height: 1.55; color: var(--ink-soft); }

/* ---------- Search ---------- */
.home-search { margin-top: 1.75rem; }
.home-search h2 { margin: 0 0 .25rem; font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; }
.home-search p.hint { margin: 0 0 .9rem; color: var(--ink-soft); }
.field { display: flex; flex-wrap: wrap; gap: .75rem; }
.field input[type="search"] {
  flex: 1 1 16rem; min-width: 0; max-width: 100%; min-height: 3.5rem; padding: .5rem 1rem;
  font: inherit; color: var(--ink); background: #fff;
  border: 3px solid var(--ink); border-radius: 10px;
}
.field input[type="search"]::placeholder { color: #55656f; opacity: 1; }
.field input[type="search"]:focus-visible { outline: 4px solid var(--focus); outline-offset: 2px; }
.search-results-list { list-style: none; padding: 0; margin: 1rem 0; }
.search-results-list li { padding: 1rem 0; border-bottom: 1px solid #bac5bf; }
.search-results-list a { display: block; font-weight: 700; font-size: 1.15rem; }
.search-result-os { display: block; margin-top: .3rem; color: #435850; }
.status { min-height: 1.65em; margin: .8rem 0 0; font-weight: 600; color: var(--ink-soft); }
/* .version-option: the computer choice on request/, a hidden radio button over a button-like label. */
.filter-button, .version-option span {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .4rem 1rem; border: 2px solid var(--green); border-radius: 8px;
  background: var(--card); color: var(--green-dark); font: inherit; font-weight: 700; cursor: pointer;
}
.filter-button:hover, .version-option:hover span { background: var(--green-wash); }
.filter-button[aria-pressed="true"], .filter-button[aria-current="page"], .version-option input:checked + span {
  background: var(--green); color: #fff;
}
.filter-button[aria-pressed="true"]::before, .filter-button[aria-current="page"]::before, .version-option input:checked + span::before {
  content: "✓"; content: "✓" / ""; margin-right: .5rem;
}
.filter-hint { margin: .6rem 0 0; font-size: 1.05rem; color: var(--ink-soft); }
.version-option { position: relative; }
.version-option input:focus-visible + span { outline: 4px solid var(--focus); outline-offset: 3px; }

/* ---------- Guide layout: a sidebar beside the page (homepage, lesson lists, lessons) ---------- */
.guide-layout {
  display: grid; grid-template-columns: 17.5rem minmax(0, 1fr); gap: 3rem; align-items: start;
  padding-block: clamp(1.5rem, 4vw, 2.75rem) clamp(2.5rem, 6vw, 4rem);
}
.guide-sidebar { min-width: 0; padding-right: 1.75rem; border-right: 1px solid var(--rule); }
.guide-main { min-width: 0; }
.guide-main h1 { font-size: clamp(2.1rem, 5vw, 2.9rem); line-height: 1.12; letter-spacing: -.02em; }
.guide-main .lede { max-width: 40rem; font-size: 1.25rem; }
.side-label { margin: 0 0 .6rem; color: var(--ink-soft); font-size: .95rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.computer-options { display: grid; gap: .5rem; }
.computer-options .filter-button { justify-content: flex-start; min-width: 0; width: 100%; text-align: left; text-decoration: none; }
.side-computer .filter-hint { font-size: 1rem; }
.side-topics { margin-top: 2rem; }
.side-topic-list { list-style: none; margin: 0; padding: 0; }
.side-topic-list > li > a {
  display: flex; align-items: center; min-height: 2.9rem; padding: .45rem .75rem; border-left: 4px solid transparent;
  color: var(--ink); font-size: 1.1rem; font-weight: 600; line-height: 1.3; text-decoration: none;
}
.side-topic-list > li > a:hover { background: var(--paper-deep); text-decoration: underline; }
.side-topic-list > li.current > a { background: var(--green-wash); border-left-color: var(--green); font-weight: 700; }
.side-lessons { list-style: none; margin: .25rem 0 .75rem 1rem; padding: 0; border-left: 1px solid var(--rule); }
.side-lessons a {
  display: block; margin-left: -1px; padding: .4rem .6rem .4rem .85rem; border-left: 3px solid transparent;
  color: var(--ink); font-size: 1rem; line-height: 1.35; text-decoration: none;
}
.side-lessons a:hover { text-decoration: underline; }
.side-lessons a[aria-current="page"] { border-left-color: var(--green); background: var(--card); font-weight: 700; }
.side-here { display: block; color: var(--green-dark); font-size: .9rem; font-weight: 600; }
.side-request { margin-top: 2rem; padding: 1.1rem 1.1rem .6rem; background: var(--brass-wash); border-radius: 10px; font-size: 1.05rem; line-height: 1.5; }
.side-request p { margin: 0 0 .55rem; }
.side-request a { font-weight: 700; }
.side-topics-phone { display: none; }
@media (max-width: 52rem) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .guide-sidebar { padding: 0 0 1.25rem; border-right: 0; border-bottom: 1px solid var(--rule); }
  .computer-options { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); }
  .computer-options .filter-button { justify-content: center; padding-inline: .5rem; text-align: center; }
  .side-topics, .side-request { display: none; }
  .side-topics-phone { display: block; margin-top: 1rem; }
  .side-topics-phone summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.25rem; padding: .5rem 1rem;
    border: 2px solid var(--green); border-radius: 8px; background: var(--card); font-weight: 700; cursor: pointer; list-style: none;
  }
  .side-topics-phone summary::-webkit-details-marker { display: none; }
  .side-topics-phone summary::after { content: "▾"; color: var(--green); }
  .side-topics-phone[open] summary::after { content: "▴"; }
  .side-topics-phone nav { margin-top: .5rem; border: 2px solid var(--rule); border-radius: 8px; background: var(--card); }
  .side-topics-phone .side-topic-list > li + li { border-top: 1px solid var(--rule); }
  .side-request-link { margin: 0; padding: .75rem 1rem; border-top: 1px solid var(--rule); font-weight: 700; }
}

/* ---------- Lesson lists: one row per lesson, under its topic ---------- */
.lesson-lists { margin-top: .5rem; }
.os-lessons + .os-lessons { margin-top: 3rem; }
h2.os-lessons-title { margin: 1rem 0 0; font-family: var(--serif); font-size: clamp(1.6rem, 3.5vw, 1.9rem); line-height: 1.2; }
.topic-title {
  margin: 2rem 0 0; padding-bottom: .45rem; border-bottom: 2px solid var(--ink);
  font-family: var(--serif); font-size: 1.45rem; font-weight: 700; line-height: 1.25; scroll-margin-top: 1rem;
}
.topic-os { margin: 1.25rem 0 0; color: var(--ink-soft); font-size: 1.1rem; }
.lesson-rows { list-style: none; margin: 0; padding: 0; }
.lesson-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 4.5rem;
  padding: .8rem .25rem .8rem 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none;
}
.lesson-row:hover { background: var(--paper-deep); color: var(--ink); }
.lesson-row:hover strong { text-decoration: underline; }
.lesson-row-text { min-width: 0; }
.lesson-row strong { display: block; font-size: 1.2rem; line-height: 1.35; }
.lesson-row small { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .2rem; color: var(--ink-soft); font-size: 1rem; }
.lesson-row .tag { padding: 0 .6rem; font-size: .85rem; line-height: 1.5; }
.lesson-row-go { flex: none; color: var(--green-dark); font-size: 1rem; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 30rem) {
  .lesson-row { align-items: flex-start; gap: .75rem; }
  .lesson-row strong { font-size: 1.1rem; }
  .lesson-row-go { padding-top: .15rem; font-size: .95rem; }
}
.tag {
  display: inline-block; padding: .1rem .75rem; border-radius: 999px;
  font-size: .95rem; font-weight: 700; line-height: 1.6;
  background: var(--green-wash); color: var(--green-dark); border: 2px solid var(--green);
}
.tag.new, .tag.practice-tag { background: var(--brass-wash); color: #5b3b00; border-color: var(--brass); }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #e8eef1; padding-block: 2.25rem; font-size: 1.05rem; line-height: 1.6; }
.site-footer p { margin: 0 0 .6rem; max-width: 46rem; }
.site-footer .strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: #fff; }
.site-footer a { color: #fff; }

/* ---------- Placeholder page ---------- */
.simple-page { padding-block: clamp(3rem, 9vw, 6rem); }
.simple-page .panel {
  max-width: 40rem; background: var(--card); border: 3px solid var(--ink); border-radius: 14px;
  padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 8px 8px 0 var(--green);
}
.simple-page h1 { font-size: clamp(2rem, 6vw, 3rem); }
.simple-page p { margin: 0 0 1.25rem; }

/* ---------- Scam Hub ---------- */
.hub-intro { display: grid; gap: 2rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 4rem); }
.hub-intro .lede { max-width: 39rem; }
.calm-note { padding: 1.5rem; border-left: 5px solid var(--brass); background: var(--brass-wash); border-radius: 0 12px 12px 0; }
.calm-symbol { font-size: 2rem; }
.calm-note h2 { margin: .25rem 0 .5rem; font-family: var(--serif); font-size: 1.8rem; line-height: 1.2; }
.calm-note p { margin: 0; }
.topic-nav { padding-bottom: 2rem; }
.topic-nav h2 { margin: 0 0 1rem; font-family: var(--serif); font-size: 1.8rem; }
.topic-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.topic-nav a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 3.5rem; padding: .75rem 1rem; border: 2px solid var(--green); border-radius: 8px; background: var(--card); font-weight: 700; }
.topic-nav a:hover { background: var(--green-wash); }
.scam-guides { display: grid; gap: 1.5rem; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.scam-guide { min-width: 0; padding: clamp(1.25rem, 3vw, 2rem); border: 3px solid var(--ink); border-radius: 12px; background: var(--card); scroll-margin-top: 1.5rem; }
.scam-guide h2 { margin: 0 0 1rem; font-family: var(--serif); font-size: clamp(1.7rem, 3.5vw, 2.2rem); line-height: 1.2; }
.scam-guide h3 { margin: 1.25rem 0 .5rem; font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; }
.scam-guide p { margin: 0 0 1rem; }
.scam-guide .eyebrow { margin-bottom: .6rem; }
.scam-guide > :last-child { margin-bottom: 0; }
.scam-feature { border-top: 8px solid var(--green); }
.scam-feature-intro { display: grid; gap: 1.5rem; align-items: center; }
.scam-example { margin: 0 0 1rem; padding: 1.25rem; background: var(--paper-deep); border: 2px dashed var(--rule); border-radius: 10px; }
.scam-example figcaption { margin-bottom: 1rem; font-size: 1rem; font-weight: 700; color: var(--ink-soft); }
.example-notification { background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 1rem; box-shadow: 4px 4px 0 var(--rule); }
.example-label { display: block; margin-bottom: .6rem; font-size: .95rem; color: var(--ink-soft); }
.example-notification strong { display: block; font-size: 1.3rem; line-height: 1.25; }
.example-notification p { margin: .5rem 0; }
.example-notification small { display: block; overflow-wrap: anywhere; color: var(--ink-soft); font-size: .95rem; }
.scam-example > p { margin: 1rem 0 0; font-size: 1.05rem; }
.response-note { padding: 0 0 .5rem 1.25rem; border-left: 4px solid var(--green); }
.notification-demo { margin-block: 1.5rem; padding: 1.25rem; border: 2px solid var(--green); border-radius: 10px; background: var(--green-wash); }
.notification-demo h3 { margin-top: 0; }
.notification-demo .btn { max-width: 100%; }
.notification-demo .btn:disabled { cursor: default; background: var(--ink-soft); border-color: var(--ink-soft); transform: none; }
.notification-demo .status { margin: .8rem 0 0; }
.response-note ol, .browser-guides ol { padding-left: 1.5rem; }
.response-note li, .browser-guides li { margin-bottom: .65rem; }
.browser-guides { margin-block: 1.5rem; }
.browser-guides details { margin-top: .65rem; padding: 0 1rem; background: var(--paper); border: 2px solid var(--rule); border-radius: 8px; }
.browser-guides summary { padding-block: .8rem; font-weight: 700; cursor: pointer; }
.browser-guides details[open] { border-color: var(--green); }
.browser-guides summary:hover { color: var(--green-dark); text-decoration: underline; }
.source-link { font-size: 1.05rem; }
.practice-note { padding: 1.5rem; border: 2px dashed var(--green); border-radius: 10px; background: var(--green-wash); }
.practice-note h2 { margin: 0 0 .5rem; font-family: var(--serif); font-size: 1.7rem; }
.practice-note p { margin: 0 0 .75rem; }
@media (min-width: 48rem) {
  .hub-intro { grid-template-columns: 1.5fr 1fr; }
  .topic-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scam-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scam-feature, .practice-note { grid-column: 1 / -1; }
}
@media (min-width: 60rem) { .scam-feature-intro { grid-template-columns: 1.3fr 1fr; } }

/* ---------- Motion (only when the visitor allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
  .btn:hover { transform: translateY(-2px); }
  /* The Simulators menu fades and drops into place; closing waits for the fade before hiding it. */
  .nav-menu-panel { transition: opacity .2s ease-out, transform .2s ease-out, visibility 0s linear .2s; }
  .nav-menu:not([data-closed]):hover .nav-menu-panel,
  .nav-menu-button[aria-expanded="true"] + .nav-menu-panel,
  .nav-menu:not([data-ready]):focus-within .nav-menu-panel { transition-delay: 0s; }
  .nav-menu-caret { transition: transform .2s ease-out; }
  .nav-menu-button { transition: background-color .15s; }
  .nav-menu-panel a { transition: background-color .15s, border-color .15s; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Windows high-contrast / forced colors ---------- */
@media (forced-colors: active) {
  .btn, .filter-button, .version-option span, .text-size { border-color: CanvasText; }
  .side-topic-list > li.current > a, .side-lessons a[aria-current="page"] { border-left-color: CanvasText; }
  .filter-button[aria-pressed="true"], .version-option input:checked + span { border-width: 4px; }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; color: #000; font-size: 13pt; }
  .skip-link, .site-nav, .text-size, .btn-scam, .home-search, .guide-sidebar, .btn-ghost, .topic-nav, .practice-note, .notification-demo, .request-more { display: none !important; }
  .guide-layout { display: block; padding: 0; }
  .site-header, .site-footer { background: #fff; color: #000; border: 0; }
  .site-header .wrap { padding-block: 0 .5rem; }
  .brand { color: #000; }
  .lesson-row { min-height: 0; padding-block: .3rem; }
  .lesson-row-go { display: none; }
  .scam-guides, .hub-intro, .scam-feature-intro { display: block; }
  .scam-guide { margin-bottom: 1rem; background: #fff; border: 1.5px solid #000; }
  .scam-example { break-inside: avoid; }
  *, *::before, *::after { animation: none !important; }
}

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