/* =====================================================================
   AlwaysAME site stylesheet (2026-10)
   One stylesheet for the site chrome and all reading pages.
   Typeface: IBM Plex Sans. Palette: paper, ink, rule, hangar blue.
   Callouts follow maintenance-manual conventions: Note, Caution, Warning.
   ===================================================================== */

:root {
  --paper: #ffffff;
  --paper-2: #f3f5f6;
  --paper-3: #e9edf0;
  --ink: #16212c;
  --ink-2: #4c5865;
  --ink-3: #6b7682;
  --rule: #d6dce1;
  --rule-2: #e6eaed;
  --blue: #1b4a7a;
  --blue-2: #133a61;
  --blue-tint: #e8eff7;
  --amber: #8a5a00;
  --amber-tint: #fdf4e1;
  --amber-rule: #d9a441;
  --red: #9e2a21;
  --red-tint: #fbeceb;
  --green: #1d6a3b;
  --green-tint: #e8f4ec;
  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --wide: 1160px;
  --measure: 720px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); margin: 0 0 .6em; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue-2); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
code { font-size: .92em; background: var(--paper-2); padding: .05em .35em; border-radius: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 300; }
.skip-link:focus { left: 1rem; top: .5rem; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.measure { max-width: var(--measure); }
.col { max-width: 760px; margin: 0 auto; }
.col .prose, .col .related { max-width: none; }
.page { padding: 40px 0 72px; }
.page--tight { padding-top: 28px; }
main { display: block; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header__inner { max-width: var(--wide); margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand__mark { width: 28px; height: 28px; flex: none; }
.site-nav { display: flex; align-items: center; gap: 24px; flex: 1; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex: 1; }
.site-nav ul a { display: block; padding: 8px 10px; color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 500; border-radius: var(--radius); }
.site-nav ul a:hover { color: var(--ink); background: var(--paper-2); }
.site-nav ul a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.site-nav__actions { display: flex; align-items: center; gap: 12px; }
.nav-login { color: var(--ink); font-weight: 500; text-decoration: none; font-size: .95rem; }
.nav-login:hover { text-decoration: underline; }
.nav-toggle { display: none; margin-left: auto; font: inherit; font-weight: 500; font-size: .95rem; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 7px 12px; cursor: pointer; }
.nav-toggle__bars { display: inline-block; width: 16px; height: 10px; margin-right: 8px; vertical-align: 0; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
[hidden] { display: none !important; }

@media (max-width: 980px) {
  .site-header__inner { gap: 16px; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; box-shadow: 0 12px 24px rgba(22,33,44,.08); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { padding: 12px 0; border-bottom: 1px solid var(--rule-2); border-radius: 0; font-size: 1rem; }
  .site-nav ul a:hover { background: none; }
  .site-nav ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); padding-left: 12px; }
  .site-nav__actions { padding-top: 16px; gap: 16px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; padding: 11px 18px; border-radius: var(--radius); border: 1px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-2); border-color: var(--blue-2); color: #fff; }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--rule); }
.btn-secondary:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- breadcrumb + page heading ---------- */
.breadcrumb { font-size: .875rem; color: var(--ink-3); margin: 0 0 20px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; color: var(--rule); margin-right: 6px; }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; }
.page-head { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); letter-spacing: -.015em; margin-bottom: 12px; }
.page-head:has(+ .course-list), .page-head:has(+ .entry-list), .page-head:has(+ .filter-bar), .page-head:has(+ .chapter-list), .page-head:has(+ .callout) { border-bottom: 0; padding-bottom: 0; }
.page-head .lead, .lead { font-size: 1.15rem; line-height: 1.55; color: var(--ink-2); margin: 0; max-width: 64ch; }
.page-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: .875rem; color: var(--ink-3); margin-top: 16px; }

/* ---------- reading content ---------- */
.prose { font-size: 1.0625rem; line-height: 1.7; max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.45rem; margin: 2.2em 0 .6em; letter-spacing: -.01em; }
.prose h3 { font-size: 1.15rem; margin: 1.8em 0 .5em; }
.prose h4 { font-size: 1rem; margin: 1.5em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--ink-3); }
.prose blockquote { margin: 1.5em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--rule); color: var(--ink-2); }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: .875rem; color: var(--ink-3); margin-top: .5em; }
.prose strong { font-weight: 600; }
.prose .video, .prose .embed { position: relative; padding-bottom: 56.25%; height: 0; margin: 1.8em 0; background: var(--paper-2); border: 1px solid var(--rule); }
.prose .video iframe, .prose .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* tables */
.table-scroll { overflow-x: auto; margin: 1.5em 0; border: 1px solid var(--rule); border-radius: var(--radius); }
.table-scroll table { margin: 0; border: 0; }
.prose table, table.compare-table, .data-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.5em 0; }
.prose th, .prose td, .compare-table th, .compare-table td, .data-table th, .data-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--rule-2); }
.prose thead th, .compare-table th, .data-table thead th { background: var(--paper-2); font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--rule); }

/* Manual-style callouts. .callout is the generic Note. */
.callout, .callout-caution, .callout-warning { margin: 1.6em 0; padding: 14px 18px 14px 16px; border: 1px solid var(--rule); border-left: 4px solid var(--blue); background: var(--blue-tint); border-radius: 0 var(--radius) var(--radius) 0; font-size: .98rem; }
.callout > :last-child, .callout-caution > :last-child, .callout-warning > :last-child { margin-bottom: 0; }
.callout::before, .callout-caution::before, .callout-warning::before { display: block; font-weight: 700; font-size: .8rem; letter-spacing: .04em; margin-bottom: 4px; }
.callout::before { content: "Note"; color: var(--blue); }
.callout-caution { border-left-color: var(--amber-rule); background: var(--amber-tint); }
.callout-caution::before { content: "Caution"; color: var(--amber); }
.callout-warning { border-left-color: var(--red); background: var(--red-tint); }
.callout-warning::before { content: "Warning"; color: var(--red); }

/* related links at the end of an article */
.related { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); max-width: var(--measure); }
.related h2, .related h3 { font-size: 1.1rem; margin-bottom: 12px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { padding: 8px 0; border-bottom: 1px solid var(--rule-2); }

/* sections of a long page (legal, about, contact) */
.doc-section { max-width: var(--measure); }

/* ---------- article / resource lists ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.filter-bar button { font: inherit; font-size: .9rem; font-weight: 500; padding: 7px 14px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink-2); border-radius: 999px; cursor: pointer; }
.filter-bar button:hover { border-color: var(--ink-3); color: var(--ink); }
.filter-bar button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.entry-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.entry { padding: 20px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 4px 24px; }
.entry__kind { font-size: .85rem; color: var(--ink-3); padding-top: 3px; }
.entry__title { font-size: 1.15rem; font-weight: 600; margin: 0 0 4px; line-height: 1.35; }
.entry__title a { color: var(--ink); text-decoration: none; }
.entry__title a:hover { color: var(--blue); text-decoration: underline; }
.entry__desc { color: var(--ink-2); margin: 0; }
.entry__meta { font-size: .85rem; color: var(--ink-3); margin-top: 6px; }
.entry__body { grid-column: 2; }
@media (max-width: 640px) {
  .entry { grid-template-columns: 1fr; }
  .entry__body { grid-column: 1; }
}

/* ---------- module index (homepage + courses) ---------- */
.module-index { width: 100%; border-collapse: collapse; }
.module-index caption { text-align: left; }
.module-index th, .module-index td { text-align: left; vertical-align: top; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); }
.module-index thead th { font-size: .85rem; font-weight: 600; color: var(--ink-3); padding-top: 0; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.module-index .mi-no { width: 72px; font-size: 1.6rem; font-weight: 600; line-height: 1; color: var(--blue); font-variant-numeric: tabular-nums; padding-top: 18px; }
.module-index .mi-title { font-weight: 600; font-size: 1.05rem; }
.module-index .mi-title a { color: var(--ink); text-decoration: none; }
.module-index .mi-title a:hover { color: var(--blue); text-decoration: underline; }
.module-index .mi-title span { display: block; font-weight: 400; font-size: .92rem; color: var(--ink-2); margin-top: 4px; max-width: 60ch; }
.module-index .mi-cat { width: 110px; color: var(--ink-2); font-size: .92rem; }
.module-index .mi-has { width: 330px; color: var(--ink-2); font-size: .92rem; }
.module-index .mi-has ul { list-style: none; margin: 0; padding: 0; }
.module-index .mi-has li { padding: 1px 0; }
.module-index .mi-go { width: 150px; text-align: right; padding-right: 0; white-space: nowrap; font-size: .95rem; }
.module-index tr.is-pending .mi-no { color: var(--ink-3); }
@media (max-width: 800px) {
  .module-index thead { display: none; }
  .module-index, .module-index tbody, .module-index tr, .module-index td, .module-index th { display: block; width: auto; }
  .module-index tr { display: grid; grid-template-columns: 52px minmax(0,1fr); padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .module-index td, .module-index th { border: 0; padding: 0; }
  .module-index .mi-no { grid-row: span 4; font-size: 1.35rem; padding-top: 2px; }
  .module-index .mi-cat, .module-index .mi-has { font-size: .88rem; margin-top: 6px; }
  .module-index .mi-go { text-align: left; margin-top: 8px; }
}

/* ---------- homepage ---------- */
.home-hero { padding: 64px 0 56px; border-bottom: 1px solid var(--rule); }
.home-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 600; max-width: 20ch; margin-bottom: 20px; }
.home-hero .lead { font-size: 1.2rem; max-width: 58ch; margin-bottom: 28px; }
.home-hero .fine { font-size: .875rem; color: var(--ink-3); margin: 20px 0 0; }
.home-section { padding: 56px 0; border-bottom: 1px solid var(--rule); }
.home-section:last-of-type { border-bottom: 0; }
.home-section--tint { background: var(--paper-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.6rem; letter-spacing: -.01em; margin: 0; }
.section-head p { margin: 0; color: var(--ink-2); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before { content: "Step " counter(step); display: block; font-size: .85rem; color: var(--ink-3); margin-bottom: 6px; }
.steps h3 { font-size: 1.15rem; margin-bottom: 8px; }
.steps p { color: var(--ink-2); margin: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.two-col h3 { font-size: 1.1rem; margin-top: 0; }
.two-col p + h3 { margin-top: 28px; }
.two-col p { color: var(--ink-2); }
@media (max-width: 800px) {
  .steps, .two-col { grid-template-columns: 1fr; gap: 28px; }
  .home-hero { padding: 40px 0 40px; }
  .home-section { padding: 40px 0; }
}

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq .faq__a { padding: 0 0 18px; color: var(--ink-2); max-width: 70ch; }
.faq .faq__a p:last-child { margin-bottom: 0; }

/* ---------- course listing ---------- */
.course-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.course-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) 200px; gap: 8px 24px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.course-item__no { font-size: 1.6rem; font-weight: 600; color: var(--blue); line-height: 1; padding-top: 4px; font-variant-numeric: tabular-nums; }
.course-item__no small { display: block; font-size: .75rem; font-weight: 500; color: var(--ink-3); margin-top: 6px; }
.course-item h2 { font-size: 1.25rem; margin: 0 0 4px; }
.course-item h2 a { color: var(--ink); text-decoration: none; }
.course-item h2 a:hover { color: var(--blue); text-decoration: underline; }
.course-item__tag { font-size: .875rem; color: var(--ink-3); margin: 0 0 8px; }
.course-item p { color: var(--ink-2); margin: 0; }
.course-item__meta { font-size: .9rem; color: var(--ink-2); }
.course-item__meta ul { list-style: none; margin: 0 0 12px; padding: 0; }
.course-item__meta li { padding: 2px 0; }
@media (max-width: 760px) {
  .course-item { grid-template-columns: 48px minmax(0, 1fr); }
  .course-item__meta { grid-column: 2; }
}

/* Module 3 / 8 / 9 chapter lists (audio and video courses) */
.chapter-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); counter-reset: none; }
.chapter-list li { border-bottom: 1px solid var(--rule); }
.chapter-list a { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 4px 20px; padding: 18px 0; color: inherit; text-decoration: none; }
.chapter-list a:hover .chapter-list__title { color: var(--blue); text-decoration: underline; }
.chapter-list__ref { font-size: .9rem; color: var(--ink-3); padding-top: 2px; }
.chapter-list__title { font-weight: 600; font-size: 1.1rem; color: var(--ink); display: block; }
.chapter-list__sum { color: var(--ink-2); display: block; margin-top: 4px; }
.chapter-list__meta { color: var(--ink-3); font-size: .85rem; display: block; margin-top: 6px; }
@media (max-width: 640px) { .chapter-list a { grid-template-columns: 1fr; } }

.facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 20px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: .95rem; }
.facts b { color: var(--ink); font-weight: 600; }

/* media blocks on audio/video chapters */
.media-block { margin: 0 0 40px; max-width: 860px; }
.media-block h2 { font-size: 1.3rem; margin-bottom: 12px; }
.media-block audio { width: 100%; }
.media-block video { width: 100%; background: #000; border: 1px solid var(--rule); }
.media-block iframe.mindmap-frame { width: 100%; height: 520px; border: 1px solid var(--rule); background: #0b1220; display: block; }
.media-block .media-link { display: inline-block; margin-top: 8px; font-size: .95rem; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); max-width: 860px; }
.pager a { display: block; text-decoration: none; color: var(--ink); max-width: 48%; }
.pager a span { display: block; font-size: .85rem; color: var(--ink-3); }
.pager a b { font-weight: 600; color: var(--blue); }
.pager a:hover b { text-decoration: underline; }
.pager .next { text-align: right; margin-left: auto; }

/* ---------- forms ---------- */
.form { max-width: 560px; }
.form-group, .form label { display: block; margin-bottom: 16px; }
label { font-weight: 500; font-size: .95rem; }
input[type="text"], input[type="email"], input[type="number"], input[type="password"], input[type="search"], textarea, select {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid #b9c2ca; border-radius: var(--radius); padding: 10px 12px;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
form button, .form button { font: inherit; }
.planner-box { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; margin: 0 0 32px; max-width: var(--measure); }
.planner-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.planner-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.planner-actions button { font: inherit; font-weight: 600; font-size: .92rem; padding: 9px 14px; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer; }
.planner-actions button[type="submit"] { background: var(--blue); border-color: var(--blue); color: #fff; }
#topicHelp { font-size: .9rem; color: var(--ink-2); margin: 4px 0 0; }
#status { font-size: .92rem; color: var(--ink-2); margin: 12px 0 0; }
@media (max-width: 560px) { .planner-fields { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { padding: 72px 0; }
.notfound .code { font-size: .95rem; color: var(--ink-3); margin-bottom: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--rule); margin-top: 0; font-size: .95rem; }
.site-footer__inner { max-width: var(--wide); margin: 0 auto; padding: 48px 24px 32px; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer h2 { font-size: .9rem; font-weight: 600; color: var(--ink); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--blue); text-decoration: underline; }
.site-footer__about p { color: var(--ink-2); max-width: 40ch; margin: 12px 0 0; }
.site-footer__base { max-width: var(--wide); margin: 0 auto; padding: 20px 24px 32px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: .85rem; }
.site-footer__base p { margin: 0; }
@media (max-width: 860px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ---------- storage notice ---------- */
.storage-notice { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 250; max-width: 680px; margin: 0 auto; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 16px; align-items: center; font-size: .92rem; box-shadow: 0 8px 28px rgba(0,0,0,.18); }
.storage-notice p { margin: 0; flex: 1; }
.storage-notice a { color: #fff; }
.storage-notice button { font: inherit; font-weight: 600; font-size: .9rem; background: #fff; color: var(--ink); border: 0; border-radius: var(--radius); padding: 8px 14px; cursor: pointer; flex: none; }

/* ---------- ad slots (reserved space; filled only after AdSense approval) ---------- */
.ad-slot { margin: 32px 0; min-height: 0; }

@media print {
  .site-header, .site-footer, .storage-notice, .nav-toggle { display: none !important; }
  body { color: #000; }
  a { color: #000; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* mock exams hub */
.exam-index .ex-cell { width: 260px; font-size: .95rem; }
.exam-index .ex-cell a { font-weight: 600; }
.exam-index .ex-cell span, .exam-index .mi-title span { display: block; color: var(--ink-2); font-size: .9rem; margin-top: 2px; }
.exam-index .none { color: var(--ink-3) !important; }
.exam-index .mi-title { font-weight: 600; }
.exam-index .mi-title span a { font-weight: 400; text-decoration: underline; color: var(--blue); }
@media (max-width: 800px) { .exam-index .ex-cell { width: auto; margin-top: 8px; } }
.prose .page-meta { margin-top: 32px; }

/* reference lists (Books page) */
.prose .ref-list { list-style: none; padding: 0; margin: 0 0 1.5em; border-top: 1px solid var(--rule); }
.prose .ref-list li { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--rule-2); }
.prose .ref-list a { font-weight: 600; }
.prose .ref-list .ref-desc { display: block; color: var(--ink-2); font-size: .97rem; margin-top: 2px; }
.prose .ref-list .ref-meta { display: block; color: var(--ink-3); font-size: .85rem; margin-top: 4px; }
