:root {
  --guide-ink: #171a1b;
  --guide-text: #34403d;
  --guide-muted: #64706c;
  --guide-line: #c7cfcb;
  --guide-paper: #f8f8f5;
  --guide-wash: #e9eeec;
  --guide-teal: #08786f;
  --guide-teal-dark: #07564f;
  --guide-yellow: #d5a31a;
  --guide-coral: #bf5e49;
}

body.guide-page { background: var(--guide-paper); color: var(--guide-text); }
.guide-page .topbar { border-color: var(--guide-line); }
.guide-page .brand { color: var(--guide-ink); }
.guide-page .nav { color: var(--guide-text); }
.guide-page .nav a::after { background: var(--guide-teal); }
.guide-page .nav a:hover,
.guide-page .nav a:focus-visible,
.guide-page .nav a[aria-current="page"],
.guide-page .text-link { color: var(--guide-teal-dark); }
.guide-page .hero {
  padding-top: 76px;
  padding-bottom: 66px;
  background: var(--guide-wash);
  border-color: var(--guide-line);
}
.guide-page .hero-inner,
.guide-page .wrap { width: min(1200px, 100%); }
.guide-page .eyebrow { color: var(--guide-teal-dark); }
.guide-page h1,
.guide-page h2,
.guide-page h3 { color: var(--guide-ink); }
.guide-page h1 { max-width: 980px; font-size: 50px; line-height: 1.15; }
.guide-page .lead { max-width: 850px; color: var(--guide-muted); font-size: 19px; }
.guide-page .breadcrumbs { color: var(--guide-muted); }
.guide-page .btn { border-color: var(--guide-teal-dark); border-radius: 5px; background: var(--guide-teal-dark); cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.guide-page .btn.secondary { border-color: var(--guide-teal-dark); background: transparent; color: var(--guide-teal-dark); }
.guide-page .btn:hover,
.guide-page .btn:focus-visible { background: var(--guide-teal); border-color: var(--guide-teal); color: #fff; }

.guide-directory { padding-block: 38px 74px !important; background: #fff; }
.task-list { display: grid; border-top: 1px solid var(--guide-line); }
.task-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 220px 34px;
  align-items: center;
  gap: 28px;
  min-height: 190px;
  padding: 24px 18px 24px 0;
  border-bottom: 1px solid var(--guide-line);
  transition: background .2s ease, color .2s ease;
}
.task-row:hover,
.task-row:focus-visible { background: #f1f5f2; outline: 0; }
.task-number { align-self: start; padding-top: 6px; color: var(--guide-teal); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.task-state { display: block; margin-bottom: 7px; color: var(--guide-muted); font-size: 14px; font-weight: 700; }
.task-copy h2 { margin-bottom: 8px; font-size: 28px; line-height: 1.3; }
.task-copy p { max-width: 650px; margin: 0; color: var(--guide-muted); }
.task-preview { width: 220px; height: 138px; margin: 0; overflow: hidden; border-left: 3px solid var(--guide-yellow); background: #edf1ef; }
.task-preview.dark { background: #0a0d0e; }
.task-preview img { width: 100%; height: 100%; object-fit: contain; }
.faq-preview { display: grid; place-items: center; background: var(--guide-teal-dark); color: #d9e8e4; font-size: 34px; font-weight: 850; letter-spacing: .04em; }
.task-row-no-preview .task-preview { border-left-color: var(--guide-coral); }
.task-arrow { color: var(--guide-teal-dark); font-size: 27px; line-height: 1; transition: transform .2s ease; }
.task-row:hover .task-arrow,
.task-row:focus-visible .task-arrow { transform: translateX(5px); }
.guide-prerequisite { padding-block: 46px !important; background: var(--guide-teal-dark); color: #d9e8e4; }
.guide-prerequisite .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 54px; }
.guide-prerequisite h2 { margin-bottom: 8px; color: #fff; font-size: 28px; }
.guide-prerequisite p { max-width: 760px; margin: 0; }
.guide-prerequisite .actions { margin-top: 0; }
.guide-prerequisite .btn { border-color: #fff; background: #fff; color: var(--guide-teal-dark); }
.guide-prerequisite .btn.secondary { border-color: #9fc1ba; background: transparent; color: #fff; }

.guide-article .hero { padding-top: 58px; padding-bottom: 52px; }
.guide-article .hero.guide-compact-hero { padding-top: 42px; padding-bottom: 38px; }
.guide-compact-hero .breadcrumbs { margin-bottom: 18px; }
.guide-article .hero h1 { max-width: 900px; font-size: 46px; }
.guide-local-nav { padding: 0 clamp(18px, 5vw, 72px); background: #fff; border-bottom: 1px solid var(--guide-line); }
.guide-local-nav-inner { width: min(1200px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(var(--guide-nav-count, 3), minmax(0, 1fr)); }
.guide-local-nav-inner.four { --guide-nav-count: 4; }
.guide-local-nav a { min-height: 70px; padding: 14px 18px; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 9px; border-right: 1px solid var(--guide-line); color: var(--guide-muted); font-size: 14px; font-weight: 750; }
.guide-local-nav a:first-child { border-left: 1px solid var(--guide-line); }
.guide-local-nav a span { color: var(--guide-teal); font-size: 11px; font-variant-numeric: tabular-nums; }
.guide-local-nav a:hover,
.guide-local-nav a:focus-visible { background: var(--guide-wash); color: var(--guide-ink); outline: 0; }

.guide-preflight { padding-block: 54px !important; background: #fff; }
.guide-section-heading { margin-bottom: 24px; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: baseline; gap: 16px; }
.guide-section-heading span { color: var(--guide-teal); font-size: 12px; font-weight: 800; }
.guide-section-heading h2 { margin: 0; font-size: 30px; }
.guide-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--guide-line); }
.guide-facts div { min-width: 0; padding: 20px 22px 20px 0; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; border-bottom: 1px solid var(--guide-line); }
.guide-facts div:nth-child(2n) { padding-right: 0; padding-left: 22px; border-left: 1px solid var(--guide-line); }
.guide-facts dt { color: var(--guide-muted); font-size: 13px; font-weight: 750; }
.guide-facts dd { margin: 0; color: var(--guide-ink); font-weight: 680; }

.guide-warning { padding: 0 clamp(18px, 5vw, 72px); background: #fff; }
.guide-warning-inner { width: min(1200px, 100%); margin: 0 auto; padding: 22px 26px; border-left: 4px solid var(--guide-yellow); background: #fff7e8; color: #5b4114; }
.guide-warning-inner strong { color: #38290d; }
.guide-warning.critical .guide-warning-inner { border-left-color: var(--guide-coral); background: #fff1ed; color: #633228; }
.guide-warning.critical .guide-warning-inner strong { color: #3f1d16; }

.guide-section-intro { max-width: 780px; margin: -10px 0 28px 68px; color: var(--guide-muted); font-size: 17px; }
.guide-windows-section,
.guide-recovery-entry-section,
.guide-usb-steps-section { padding-top: 56px !important; }
.guide-offline-section,
.guide-recovery-confirm-section { padding-block: 56px 74px; background: var(--guide-wash); }
.guide-offline-section .guide-steps,
.guide-recovery-confirm-section .guide-steps { border-color: #b9c4c0; }
.guide-offline-section .guide-step,
.guide-recovery-confirm-section .guide-step { border-color: #b9c4c0; }
.guide-backup-page .guide-facts,
.guide-recovery-page .guide-facts,
.guide-usb-page .guide-facts { column-gap: 44px; border-top: 0; }
.guide-backup-page .guide-facts div,
.guide-backup-page .guide-facts div:nth-child(2n),
.guide-recovery-page .guide-facts div,
.guide-recovery-page .guide-facts div:nth-child(2n),
.guide-usb-page .guide-facts div,
.guide-usb-page .guide-facts div:nth-child(2n) { padding-inline: 0; border-left: 0; }

.guide-steps-section { padding-block: 24px 74px !important; background: var(--guide-paper); }
.guide-steps { border-top: 1px solid var(--guide-line); }
.guide-step {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 62px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--guide-line);
}
.guide-step-number { margin: 0 0 14px; color: var(--guide-teal); font-size: 13px; font-weight: 800; }
.guide-step h2 { margin-bottom: 14px; font-size: 29px; line-height: 1.3; }
.guide-step p { margin-bottom: 17px; color: var(--guide-muted); }
.guide-look { margin: 0; padding-top: 14px; border-top: 1px solid var(--guide-line); color: var(--guide-text) !important; font-size: 14px; }
.guide-look strong { color: var(--guide-ink); }
.guide-shot { margin: 0; min-width: 0; min-height: 340px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--guide-line); background: #eef1ef; }
.guide-shot.dark { background: #090c0d; }
.guide-shot img { width: auto; max-width: 100%; height: auto; max-height: 540px; object-fit: contain; }
.guide-key-step { min-height: 330px; padding: 44px; align-content: center; background: var(--guide-wash); }
.guide-key-step p { max-width: 650px; margin: 0 0 22px; color: var(--guide-text); font-size: 18px; }
.guide-keys { display: flex; flex-wrap: wrap; gap: 12px; }
.guide-keys kbd,
.guide-page kbd { min-width: 46px; padding: 8px 12px; border: 1px solid #7f8b87; border-bottom-width: 3px; border-radius: 4px; background: #fff; color: var(--guide-teal-dark); font: 800 17px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; text-align: center; }

.guide-finish { padding-block: 52px !important; background: var(--guide-teal-dark); color: #d9e8e4; }
.guide-finish .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center; }
.guide-finish h2 { margin-bottom: 14px; color: #fff; font-size: 30px; }
.guide-checks { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.guide-checks li { position: relative; padding-left: 19px; }
.guide-checks li::before { position: absolute; top: .72em; left: 0; width: 7px; height: 7px; background: var(--guide-yellow); content: ""; }
.guide-finish .actions { justify-content: flex-end; margin-top: 0; }
.guide-finish .btn { border-color: #fff; background: #fff; color: var(--guide-teal-dark); }
.guide-finish .btn.secondary { border-color: #9fc1ba; background: transparent; color: #fff; }
.guide-page .btn.requirement-cta,
.guide-page .btn.secondary.requirement-cta {
  border-color: var(--requirement-cta-border);
  background: var(--requirement-cta-bg);
  color: var(--requirement-cta-text);
}
.guide-page .btn.requirement-cta:hover,
.guide-page .btn.requirement-cta:focus-visible,
.guide-page .btn.secondary.requirement-cta:hover,
.guide-page .btn.secondary.requirement-cta:focus-visible {
  border-color: var(--requirement-cta-border);
  background: var(--requirement-cta-hover);
  color: var(--requirement-cta-text);
}

@media (max-width: 880px) {
  .task-row { grid-template-columns: 42px minmax(0, 1fr) 150px 24px; gap: 20px; }
  .task-preview { width: 150px; height: 108px; }
  .guide-prerequisite .wrap,
  .guide-finish .wrap { grid-template-columns: 1fr; gap: 28px; }
  .guide-finish .actions { justify-content: flex-start; }
  .guide-step { grid-template-columns: 250px minmax(0, 1fr); gap: 34px; }
  .guide-facts div { grid-template-columns: 1fr; gap: 5px; }
}

@media (max-width: 620px) {
  .guide-page .hero { padding-top: 48px; padding-bottom: 46px; }
  .guide-article .hero.guide-compact-hero { padding-top: 36px; padding-bottom: 34px; }
  .guide-page h1,
  .guide-article .hero h1 { font-size: 34px; }
  .guide-page .lead { font-size: 17px; }
  .guide-directory { padding-top: 18px !important; padding-bottom: 54px !important; }
  .task-row { grid-template-columns: 34px minmax(0, 1fr) 22px; gap: 12px; min-height: 0; padding: 22px 4px 22px 0; }
  .task-preview { grid-column: 2 / 3; width: 100%; height: 180px; margin-top: 10px; }
  .task-arrow { grid-column: 3; grid-row: 1; align-self: center; }
  .task-copy h2 { font-size: 23px; }
  .task-copy p { font-size: 14px; }
  .guide-prerequisite { padding-block: 38px !important; }
  .guide-prerequisite h2 { font-size: 25px; }
  .guide-local-nav { padding-inline: 18px; overflow-x: auto; }
  .guide-local-nav-inner { width: max-content; min-width: 100%; display: flex; }
  .guide-local-nav a { width: 170px; flex: 0 0 170px; }
  .guide-preflight { padding-block: 44px !important; }
  .guide-section-heading { grid-template-columns: 36px minmax(0, 1fr); gap: 8px; }
  .guide-section-heading h2 { font-size: 27px; }
  .guide-facts { grid-template-columns: 1fr; }
  .guide-facts div,
  .guide-facts div:nth-child(2n) { padding: 16px 0; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; border-left: 0; }
  .guide-warning { padding-inline: 18px; }
  .guide-warning-inner { padding: 18px; }
  .guide-steps-section { padding-top: 14px !important; padding-bottom: 54px !important; }
  .guide-windows-section,
  .guide-recovery-entry-section,
  .guide-usb-steps-section { padding-top: 44px !important; }
  .guide-offline-section,
  .guide-recovery-confirm-section { padding-block: 44px 54px; }
  .guide-section-intro { margin: -10px 0 22px 44px; font-size: 16px; }
  .guide-step { grid-template-columns: 1fr; gap: 24px; padding: 38px 0; }
  .guide-step h2 { font-size: 26px; }
  .guide-shot { min-height: 0; }
  .guide-shot img { max-height: none; }
  .guide-key-step { min-height: 260px; padding: 28px 22px; }
  .guide-finish { padding-block: 42px !important; }
  .guide-finish h2 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  .task-row,
  .task-arrow { transition: none; }
}
