/* ============================================================
   paulasilva-ms playbook layout + components
   v1.7.0, multi-page format
   Reference: chrome bar with </> logo + role text,
              landing hero + stat-grid + chapter-grid,
              search modal, pagenav, footer-card.
   ============================================================ */

/* Top reading progress bar */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 200;
  transition: width 0.05s linear, background 0.2s ease;
}

/* ============================================================
   Chrome bar (top): logo + name + version + lang + actions
   ============================================================ */

.chrome {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(8px);
}
.chrome__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  color: inherit;
  flex-shrink: 0;
}
.chrome__logo {
  width: 28px;
  height: auto;
  flex-shrink: 0;
}
.chrome__name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.chrome__spacer { flex: 1; }
.chrome__version {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.chrome__btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--rule-2);
  background: var(--paper);
  border-radius: 6px;
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.chrome__btn:hover { background: var(--bg-alt); color: var(--ink); }
.chrome__btn svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .chrome { padding: 12px 18px; gap: 10px; flex-wrap: wrap; }
  .chrome__name { font-size: 10px; }
  .chrome__version { display: none; }
}

/* ============================================================
   Language switcher (pill group)
   ============================================================ */

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: 999px;
  padding: 2px;
  flex-shrink: 0;
}
.lang-switch__btn {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: none;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink-3);
  transition: background 0.15s, color 0.15s;
  min-width: 36px;
}
.lang-switch__btn:hover { color: var(--ink); }
.lang-switch__btn[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
[data-theme="dark"] .lang-switch__btn[aria-pressed="true"] {
  background: var(--bg-alt);
  box-shadow: none;
}

/* ============================================================
   Landing page
   ============================================================ */

.landing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 36px 96px;
}
.landing__hero {
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}
.landing__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-blue-700);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
[data-theme="dark"] .landing__eyebrow { color: var(--c-blue-500); }

.landing__title {
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 1100px;
  text-wrap: balance;
  margin: 0 0 24px;
  color: var(--ink);
}
.landing__title .hl-blue   { color: var(--c-blue-500); }
.landing__title .hl-green  { color: var(--c-green-500); }
.landing__title .hl-yellow { color: var(--c-yellow-500); }
.landing__title .hl-red    { color: var(--c-red-500); }

.landing__lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.48;
  color: var(--ink-2);
  max-width: 860px;
  margin: 0 0 40px;
  text-wrap: pretty;
}
.landing__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.landing__meta-item { display: flex; flex-direction: column; gap: 6px; }
.landing__meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.landing__meta-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.landing__meta-value a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-2);
}
.landing__meta-value a:hover { border-color: var(--ink); }

.landing__chapter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin: 0 0 20px;
}

/* Stat grid (4 stats with chapter accent colors) */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.stat {
  padding: 24px 24px 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent);
  border-radius: 0 0 8px 8px;
}
.stat__num {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
  font-family: var(--font-sans);
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

/* Chapter grid (cards rendered dynamically by JS) */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}
.chapter-card {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent);
  border-radius: 0 0 10px 10px;
  text-decoration: none !important;
  color: var(--ink);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.2s;
  min-height: 230px;
}
.chapter-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.07);
}
[data-theme="dark"] .chapter-card:hover { box-shadow: 0 12px 28px rgba(0,0,0,0.35); }
.chapter-card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
}
.chapter-card__title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.22;
  margin: 0 0 12px;
  text-wrap: balance;
}
.chapter-card__lead {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 16px;
  flex: 1;
}
.chapter-card__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.chapter-card__foot-arrow svg {
  width: 14px; height: 14px; stroke: currentColor;
  stroke-width: 2; fill: none;
  transition: transform 0.15s, color 0.15s;
}
.chapter-card:hover .chapter-card__foot-arrow svg {
  transform: translateX(4px);
  color: var(--accent);
}

/* ============================================================
   Callout (used in landing reading-tips and chapter content)
   ============================================================ */

.callout {
  background: var(--accent-50);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 6px 6px 0;
}
.callout__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 8px;
  font-weight: 500;
}
.callout p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
}
.callout code {
  font-family: var(--font-mono);
  background: var(--paper);
  padding: 2px 6px;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  font-size: 0.86em;
}

/* ============================================================
   Breadcrumb (chapter pages)
   ============================================================ */

.breadcrumb {
  max-width: 1500px;
  margin: 0 auto;
  padding: 18px 36px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.breadcrumb a {
  color: var(--ink-3);
  text-decoration: none;
  padding: 4px 6px;
  margin-left: -6px;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
}
.breadcrumb a:hover { background: var(--bg-alt); color: var(--ink-2); }
.breadcrumb__sep { color: var(--rule-2); font-size: 10px; }
.breadcrumb__current { color: var(--ink-2); }

/* ============================================================
   Doc hero (chapter header)
   ============================================================ */

.chapter { display: block; }

.doc-hero {
  max-width: 1500px;
  margin: 0 auto;
  padding: 36px 36px 48px;
  border-bottom: 1px solid var(--rule);
}
.doc-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--accent-ink);
}
.doc-hero__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.acc-intro .doc-hero__num,
.acc-ink   .doc-hero__num { background: var(--ink-2); }

.doc-hero__title {
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0 0 18px;
  color: var(--ink);
  text-wrap: balance;
}
.doc-hero__lead {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.48;
  color: var(--ink-2);
  max-width: 820px;
  margin: 0;
  text-wrap: pretty;
}

/* ============================================================
   3-column layout: TOC | content | onpage
   ============================================================ */

.layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 220px;
  gap: 48px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 48px 36px 96px;
}

@media (max-width: 1100px) {
  .layout { grid-template-columns: 220px minmax(0, 1fr); gap: 36px; }
  .onpage { display: none; }
}
@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; padding: 36px 22px 72px; }
  .toc { display: none; }
}

/* ============================================================
   TOC (left)
   ============================================================ */

.toc {
  position: sticky;
  top: 76px;
  align-self: start;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
}
.toc::-webkit-scrollbar { width: 6px; }
.toc::-webkit-scrollbar-thumb { background: var(--rule-2); border-radius: 3px; }
.toc__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
  padding: 0 12px;
  font-weight: 500;
}
.toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.toc__list li a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 12px;
  border-left: 2px solid transparent;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  border-radius: 0 4px 4px 0;
}
.toc__list li a:hover { background: var(--bg-alt); color: var(--ink); }
.toc__list li a.active {
  background: var(--accent-50);
  border-left-color: var(--accent);
  color: var(--ink);
  font-weight: 600;
}
.toc__list .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  min-width: 22px;
  font-weight: 500;
  flex-shrink: 0;
}
.toc__list li a.active .num { color: var(--accent-ink); }

/* ============================================================
   Content + editorial typography
   ============================================================ */

:root { --measure: 680px; }

.content { min-width: 0; }
.content h2 {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.14;
  margin: 56px 0 18px;
  color: var(--ink);
  scroll-margin-top: 80px;
  text-wrap: balance;
  max-width: var(--measure);
}
.content > h2:first-child { margin-top: 8px; }
.content h3 {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.008em;
  line-height: 1.3;
  margin: 36px 0 10px;
  color: var(--ink);
  scroll-margin-top: 80px;
  max-width: var(--measure);
}
.content p {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: -0.003em;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: var(--measure);
  text-wrap: pretty;
}
.content h2 + p, .content h3 + p { margin-top: 4px; }
.content a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule-2);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.15s;
}
.content a:hover {
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
}
.content ul, .content ol {
  margin: 0 0 22px;
  padding-left: 28px;
  max-width: var(--measure);
}
.content ul li, .content ol li {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 8px;
  padding-left: 4px;
}
.content ul li::marker, .content ol li::marker { color: var(--ink-3); }
.content code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  padding: 2px 6px;
  border-radius: 3px;
}

/* ============================================================
   Diagram figure
   ============================================================ */

.diagram {
  margin: 28px 0 32px;
  max-width: 760px;
  color: var(--ink-3); /* sets currentColor for grid stroke */
}
.diagram svg { display: block; width: 100%; height: auto; }
.diagram__caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 10px;
  font-weight: 500;
}

/* ============================================================
   Terminal simulation
   ============================================================ */

.sim-term {
  background: #1a1a1a;
  border-radius: 8px;
  margin: 24px 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  max-width: 760px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.sim-term__chrome {
  background: #2a2a2a;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sim-term__dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #555;
}
.sim-term__title {
  margin-left: 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #a0a0a0;
}
.sim-term__body {
  padding: 16px 18px 18px;
  color: #e6e6e6;
  white-space: pre-wrap;
  line-height: 1.55;
  min-height: 280px;
}
.sim-term__line { display: inline; }
.sim-term__cmd  { color: #79b8ff; }
.sim-term__ok   { color: #7ed957; font-weight: 600; }
.sim-term__out  { color: #c8c8c8; }
.sim-term__cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: #e6e6e6;
  margin-left: 2px;
  vertical-align: middle;
  animation: term-blink 1s steps(2) infinite;
}
@keyframes term-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* ============================================================
   Checklist
   ============================================================ */

.checklist {
  margin: 24px 0;
  display: grid;
  gap: 8px;
  max-width: 760px;
}
.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 14.5px;
  line-height: 1.45;
}
.checklist__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  min-width: 24px;
  font-weight: 500;
  padding-top: 2px;
}

/* ============================================================
   On-page scrollspy (right)
   ============================================================ */

.onpage {
  position: sticky;
  top: 76px;
  align-self: start;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding-left: 14px;
  border-left: 1px solid var(--rule);
}
.onpage__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 14px;
  font-weight: 500;
}
.onpage__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.onpage__list a {
  display: block;
  padding: 4px 0;
  text-decoration: none;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.4;
  transition: color 0.15s;
}
.onpage__list a:hover { color: var(--ink); }
.onpage__list a.active { color: var(--accent-ink); font-weight: 500; }

/* ============================================================
   Pagenav (prev/next bottom of chapter)
   ============================================================ */

.pagenav {
  max-width: 1500px;
  margin: 0 auto 64px;
  padding: 0 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.pagenav__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  text-decoration: none !important;
  color: var(--ink);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.2s;
}
.pagenav__item:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
.pagenav__item--next { text-align: right; }
.pagenav__dir {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.pagenav__item--next .pagenav__dir { justify-content: flex-end; }
.pagenav__title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
}

@media (max-width: 700px) {
  .pagenav { grid-template-columns: 1fr; }
  .pagenav__item--next { text-align: left; }
  .pagenav__item--next .pagenav__dir { justify-content: flex-start; }
}

/* ============================================================
   Footer
   ============================================================ */

.doc-footer {
  max-width: 1500px;
  margin: 0 auto;
  padding: 48px 36px 56px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-card__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.footer-card__role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.footer-card a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  margin-top: 4px;
  border-bottom: 1px solid var(--rule-2);
  display: inline-block;
}
.footer-card a:hover { color: var(--ink); border-color: var(--ink); }
.footer-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}
@media (max-width: 700px) {
  .footer-meta { text-align: left; }
}

/* ============================================================
   Search modal
   ============================================================ */

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 300;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 18vh;
  backdrop-filter: blur(4px);
}
.search-overlay.is-open { display: flex; }
.search-modal {
  width: min(620px, 90vw);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.18);
  overflow: hidden;
}
.search-modal__input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
}
.search-modal__input-row svg {
  width: 16px; height: 16px; color: var(--ink-3);
  flex-shrink: 0;
}
.search-modal__input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 15px;
  background: transparent;
  color: var(--ink);
}
.search-modal__input::placeholder { color: var(--ink-3); }
.search-modal__esc {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  padding: 3px 7px;
}
.search-modal__results {
  max-height: 380px;
  overflow-y: auto;
}
.search-modal__result {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
}
.search-modal__result:hover,
.search-modal__result.is-selected { background: var(--bg-alt); }
.search-modal__result-chapter {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.search-modal__result-title {
  font-size: 14.5px;
  font-weight: 500;
  margin-top: 3px;
  color: var(--ink);
}
.search-modal__empty,
.search-modal__hint {
  padding: 16px;
  font-size: 13.5px;
  color: var(--ink-3);
  text-align: center;
}
.search-modal__footer {
  display: flex;
  gap: 18px;
  padding: 10px 16px;
  border-top: 1px solid var(--rule);
  font-size: 11.5px;
  color: var(--ink-3);
  background: var(--bg);
}
kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  padding: 1px 5px;
}

/* ============================================================
   Reveal animations (keep subtle, respect reduced motion)
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0, 0, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger > * {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0, 0, 1);
}
.stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--stagger-i, 0) * 60ms);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > * { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Print
   ============================================================ */

@media print {
  .chrome, .progress, .lang-switch, .onpage, .pagenav, .search-overlay { display: none !important; }
  .layout { grid-template-columns: 1fr; gap: 0; padding: 0; }
}
