/* Reader styling inspired by docs/manual/manual.css.
   Preserve the enhanced guide's content and interactions. */
:root {
  --ink: #0b1730;
  --muted: #52627a;
  --paper: #f3f6fb;
  --card: #ffffff;
  --line: #e3ebf4;
  --soft: #edf2fa;
  --orange: #2563eb;
  --orange-soft: #e8f0fe;
  --mint: #e8f0fe;
  --sidebar: #0b1730;
  --radius: 14px;
  --shadow: 0 1px 0 rgb(11 23 48 / 3%);
  --sans: "Noto Sans", "Liberation Sans", "Segoe UI", Arial, sans-serif;
  --serif: var(--sans);
}

body { font-size: 16.5px; line-height: 1.65; }
/* Use one offset for the sticky toolbar; avoid adding two scroll offsets. */
html { scroll-padding-top: 84px; }
.manual-body h2, .chapter-header h1 { scroll-margin-top: 0; }
.manual-section { display: flow-root; }
.manual-section.section-target {
  outline: 2px dashed var(--orange);
  outline-offset: 6px;
  border-radius: 4px;
  background: var(--orange-soft);
}
.manual-section.section-target h2:focus { outline: none; }
h1, h2, h3 { font-weight: 700; }
.eyebrow { font-size: 11px; letter-spacing: .14em; color: var(--orange); }
.sidebar { width: 300px; padding: 22px 14px; }
.page-shell { margin-left: 300px; }
.reading-line { left: 300px; }
.brand { margin-bottom: 20px; }
.brand > span { font-size: 19px; letter-spacing: -.5px; }
.brand b { color: #93c5fd; }
.brand small { color: #a5b5cf; font-size: 11px; letter-spacing: .03em; }
.sidebar-search { font-size: 14px; background: #ffffff0f; border-color: #ffffff29; }
.overview-link { font-size: 14px; }
.overview-link .icon, .chapter-number { color: #93c5fd; }
.nav-label { color: #97a8c4; font-size: 10px; }
.chapter-link { font-size: 13px; color: #c1cde0; line-height: 1.4; padding: 10px; border-left: 3px solid transparent; }
.chapter-number { font-size: 11px; }
.chapter-link[aria-current] { background: #2563eb40; border-left-color: #60a5fa; }
.chapter-link[aria-current] .chapter-number { color: #93c5fd; }
.chapter-list, .subsection-list { list-style: none; margin: 0; padding: 0; }
.chapter-group { margin-bottom: 6px; }
.chapter-link { font-size: 14px; font-weight: 650; line-height: 1.3; padding: 8px 10px; }
.chapter-number { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.subsection-list { margin: 0 0 6px; }
.subsection-link {
  display: block;
  padding: 5px 10px 5px 40px;
  color: rgb(255 255 255 / 62%);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  text-decoration: none;
  border-left: 3px solid transparent;
  border-radius: 9px;
}
.subsection-link:hover { background: #ffffff0f; color: #fff; }
.subsection-link[aria-current] { color: #fff; background: #2563eb40; border-left-color: #60a5fa; }
.sidebar-bottom { padding-top: 20px; }
.progress-label, .progress-label b, .sidebar-pdf { font-size: 12px; }
.sidebar-bottom > small { font-size: 10px; }
.read-dot { border-color: #72829c; }
.is-read .read-dot { background: #93c5fd; border-color: #93c5fd; }
.topbar { height: 64px; padding: 0 32px; }
.breadcrumb { font-size: 13px; }
.pdf-button { background: var(--card); font-size: 13px; min-height: 44px; }
.hero, .overview-content, .chapter, .search-page { max-width: 920px; margin-left: auto; margin-right: auto; }
.hero { min-height: 0; padding: 42px 40px 30px; grid-template-columns: minmax(0, 1fr) 150px; gap: 28px; }
.hero-copy > .eyebrow { font-size: 11px; color: var(--orange); letter-spacing: .13em; }
.hero h1 { font-size: 44px; font-weight: 750; letter-spacing: -.035em; line-height: 1.08; margin: 16px 0; }
.hero h1 br { display: none; }
.hero h1 em { font-style: normal; font-weight: inherit; color: inherit; }
.hero-deck { font-size: 21px; font-weight: 600; line-height: 1.4; margin-bottom: 12px; }
.hero-description { font-size: 16px; line-height: 1.65; max-width: 40em; }
.hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; }
.primary-button { background: var(--orange); color: #fff; font-size: 13px; border-radius: 10px; padding: 12px 16px; }
.primary-button:hover { background: #1d4ed8; }
.quiet-button { font-size: 13px; min-height: 44px; }
.hero-meta { font-size: 11px; gap: 16px; margin-top: 16px; }
.hero-art { height: 290px; margin: 0; width: 150px; }
.art-orbit, .art-label, .art-sticker, .art-caption, .phone-speaker { display: none; }
.hero-phone { width: 132px; padding: 5px; border-radius: 18px; transform: none; box-shadow: 0 14px 32px #0b173029; background: #0b1730; }
.hero-phone:hover { transform: translateY(-3px); }
.hero-phone img { height: auto; border-radius: 13px; }
.overview-content { padding: 16px 40px 0; }
.section-intro h2 { font-size: 26px; letter-spacing: -.025em; font-weight: 700; }
.section-intro > p { font-size: 13px; }
.quick-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-link { border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.quick-link strong { font-size: 16px; }
.quick-link small { font-size: 13px; }
.quick-icon { color: var(--orange); background: var(--orange-soft); }
.start-grid { margin-top: 24px; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.first-box, .good-to-know { padding: 24px; border-radius: 14px; }
.first-box h2, .good-to-know h2 { font-size: 23px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
.first-box p, .good-to-know p { font-size: 14px; line-height: 1.65; }
.good-to-know h2, .good-to-know a, .big-qr .icon { color: var(--ink); }
.good-to-know p, .good-to-know > .eyebrow { color: var(--muted); }
.check-item { font-size: 13px; min-height: 46px; }
.checklist-footer { font-size: 11px; }
.help-strip { background: var(--card); border-style: solid; }
.help-strip > strong { font-size: 13px; }
.help-strip a { font-size: 12px; min-height: 36px; background: var(--paper); }
.chapter-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
.chapter-card { min-height: 180px; padding: 20px; box-shadow: var(--shadow); }
.chapter-card:hover { transform: none; border-color: #bfd3f5; background: var(--orange-soft); }
.card-index { font-size: 17px; font-weight: 700; letter-spacing: 0; }
.card-index > span { font-size: 10px; letter-spacing: .04em; }
.chapter-card h3 { font-size: 16px; font-weight: 700; margin: 12px 0 8px; }
.chapter-card p { font-size: 13px; line-height: 1.6; }
.chapter-total { font-size: 10px; }
.bottom-note p, .bottom-note p span { font-size: 12px; }
.site-footer { max-width: 840px; margin-left: auto; margin-right: auto; padding: 24px 0; }
.site-footer > a, .site-footer > div, .site-footer small { font-size: 12px; }
.chapter { padding: 38px 40px 48px; }
.chapter h1, .search-page h1 { font-family: var(--sans); font-size: 32px; font-weight: 700; line-height: 1.15; letter-spacing: -.03em; }
.chapter-kicker { margin-bottom: 15px; }
.chapter-header > p { font-size: 17px; line-height: 1.6; }
.on-this-page { gap: 8px; }
.on-this-page a { font-size: 12px; padding: 7px 10px; background: var(--card); }
.manual-body { font-size: 16.5px; line-height: 1.7; }
.manual-body h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; margin: 28px 0 8px; }
.manual-body p { margin-bottom: 17px; }
.manual-body li { margin: 6px 0; padding-left: 2px; }
.manual-body table { font-size: 14px; }
.manual-body th { font-size: 12px; }
.screen-gallery { justify-content: flex-start; padding: 0 0 12px; border: 0; background: transparent; border-radius: 0; gap: 18px; margin: 24px 0 30px; }
.screen-figure { flex-basis: 200px; max-width: 220px; }
.screen-open { border: 6px solid #0b1730; border-radius: 22px; box-shadow: 0 14px 32px #0b17301f; }
.screen-open > img { border-radius: 15px; }
.screen-figure figcaption { font-size: 12.5px; text-align: left; }
.screen-figure figcaption > span { font-size: 9px; letter-spacing: .08em; }
.screen-enlarge { font-size: 10px; }
.complete-button, .chapter-turn button { font-size: 13px; min-height: 44px; }
.capacity-tool { background: var(--card); }
.capacity-tool h2 { font-size: 26px; font-weight: 700; }
.tool-heading p, .tool-note { font-size: 13px; }
.search-page { padding: 38px 40px; }
.search-result h2 { font-family: var(--sans); font-weight: 700; }

html[data-theme="dark"] {
  --paper: #101b30;
  --ink: #edf2fc;
  --card: #17253d;
  --muted: #afbed5;
  --line: #30415c;
  --soft: #1b2d49;
  --orange: #93baff;
  --orange-soft: #20395c;
  --mint: #20395c;
  --sidebar: #080f20;
}
html[data-theme="dark"] .primary-button { background: #2563eb; color: #fff; }
html[data-theme="dark"] .good-to-know h2,
html[data-theme="dark"] .good-to-know a,
html[data-theme="dark"] .big-qr .icon { color: var(--ink); }
html[data-theme="dark"] .good-to-know p,
html[data-theme="dark"] .good-to-know > .eyebrow { color: var(--muted); }

@media (max-width: 1180px) and (min-width: 961px) {
  .sidebar { width: 270px; }
  .page-shell { margin-left: 270px; }
  .reading-line { left: 270px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { display: none; }
  .toast { left: calc(50% + 135px); }
}
@media (max-width: 960px) {
  .sidebar { width: 300px; }
  .page-shell { margin-left: 0; }
  .reading-line { left: 0; }
  .topbar { padding: 0 20px; }
  .hero { padding: 32px 24px 24px; }
  .overview-content { padding: 16px 24px 0; }
  .chapter, .search-page { padding: 30px 24px 40px; }
  .site-footer { margin: 0 24px; }
}
@media (max-width: 640px) {
  .topbar { height: 64px; padding: 0 12px; }
  .breadcrumb { font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 22px; padding: 28px 20px 20px; }
  .hero h1 { font-size: 36px; letter-spacing: -.035em; }
  .hero-copy > .eyebrow { font-size: 10px; }
  .hero-deck { font-size: 19px; }
  .hero-description { font-size: 15px; }
  .hero-art { height: auto; width: auto; justify-self: start; }
  .hero-phone { width: 96px; }
  .hero-meta { font-size: 10px; }
  .overview-content { padding: 12px 20px 0; }
  .section-intro h2 { font-size: 25px; }
  .quick-grid, .start-grid, .chapter-grid { grid-template-columns: 1fr; }
  .quick-link { padding: 16px; }
  .chapter-card { min-height: 0; padding: 18px; }
  .chapter-card p { margin-bottom: 8px; }
  .card-arrow { height: 16px; }
  .chapter, .search-page { padding: 28px 20px 36px; }
  .chapter h1, .search-page h1 { font-size: 30px; }
  .chapter-header > p { font-size: 16px; }
  .manual-body { font-size: 16px; line-height: 1.7; }
  .manual-body h2 { font-size: 21px; }
  .manual-body table { font-size: 12px; }
  .manual-body th { font-size: 11px; }
  .manual-body th, .manual-body td { padding: 10px 8px; }
  .on-this-page a { font-size: 12px; }
  .screen-gallery { gap: 16px; }
  .screen-figure { flex-basis: 190px; }
  .chapter-footer { gap: 16px; }
  .chapter-turn button { font-size: 12px; }
  .help-strip a { font-size: 12px; }
  .site-footer { margin: 0 20px; }
}
@media print {
  .page-shell { margin: 0; }
  .chapter { padding: 0; max-width: none; }
  .manual-body { font-size: 11px; }
  .manual-body h2 { font-size: 20px; }
  .manual-section.section-target { outline: none; background: transparent; }
}
