:root {
  --navy: #15283f;
  --ink: #1f2d3d;
  --muted: #5f6f80;
  --line: #dce4ea;
  --paper: #ffffff;
  --wash: #f4f7f9;
  --blue: #176b87;
  --blue-dark: #0d526a;
  --blue-pale: #e9f4f7;
  --green: #176b4d;
  --amber: #805a12;
  --amber-pale: #fff7e3;
  --shadow: 0 10px 26px rgba(20, 42, 64, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 18px; }
body { margin: 0; background: var(--wash); color: var(--ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.58; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: #083e53; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
code { font-size: .93em; background: #edf2f5; padding: .12em .34em; border-radius: 4px; overflow-wrap: anywhere; }
pre { margin: 0; padding: 15px 16px; overflow-x: auto; white-space: pre; background: #142235; color: #eff7fb; border-radius: 9px; font-size: .88rem; line-height: 1.55; }
pre code { background: transparent; color: inherit; padding: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: white; padding: 10px; z-index: 100; }
.skip-link:focus { left: 10px; }
.hero { background: var(--navy); color: white; padding: 42px 24px 38px; }
.hero-inner { width: min(1180px, 100%); margin: 0 auto; }
.eyebrow, .section-kicker { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { color: #a9d5e3; margin-bottom: 12px; }
.home-link { display: inline-block; color: #d7edf4; text-decoration: none; font-weight: 700; font-size: .9rem; margin: 0 0 16px; border: 1px solid rgba(255,255,255,.24); border-radius: 6px; padding: 6px 10px; }
.home-link:hover, .home-link:focus { color: white; background: rgba(255,255,255,.09); }
h1 { max-width: 850px; margin: 0; font-size: clamp(2rem, 4vw, 3.65rem); letter-spacing: -.04em; line-height: 1.08; }
h1 span { color: #8bd0df; }
.lead { font-size: 1.14rem; color: #e1ebf1; max-width: 810px; margin: 18px 0 20px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 25px; }
.hero-meta span { display: inline-block; border: 1px solid rgba(255,255,255,.22); border-radius: 5px; padding: 5px 9px; font-size: .83rem; color: #eef7fa; }
.hero-callout { max-width: 840px; border-left: 4px solid #8bd0df; padding: 10px 16px; color: #e5f2f6; background: rgba(255,255,255,.055); }
.hero-callout strong { display: block; color: #a9e2ed; margin-bottom: 2px; }
.page-layout { width: min(1400px, 100%); margin: 0 auto; display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 30px; padding: 28px 24px 60px; align-items: start; }
.sidebar { position: sticky; top: 18px; max-height: calc(100vh - 36px); overflow: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 19px 14px; box-shadow: var(--shadow); }
.sidebar-title { padding: 0 9px 10px; font-weight: 800; color: var(--navy); }
.side-nav { display: grid; gap: 3px; }
.side-nav a { text-decoration: none; border-radius: 6px; padding: 7px 9px; color: #405265; font-size: .9rem; }
.side-nav a:hover, .side-nav a:focus { background: var(--blue-pale); color: var(--blue-dark); }
.sidebar-note { font-size: .79rem; line-height: 1.45; color: var(--muted); background: #f6f8fa; border-radius: 7px; padding: 10px; margin-top: 13px; }
.content { min-width: 0; }
.intro-section { margin-bottom: 25px; }
.section-kicker { color: var(--blue); margin-bottom: 5px; }
h2 { color: var(--navy); font-size: clamp(1.55rem, 2.6vw, 2.1rem); letter-spacing: -.025em; line-height: 1.2; margin: 0 0 13px; }
h3 { color: var(--navy); line-height: 1.25; margin: 0 0 9px; font-size: 1.12rem; }
p { margin: 0 0 13px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin: 19px 0 23px; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.info-card ul { margin: 0; padding-left: 1.15rem; }
.info-card li { padding-left: 3px; margin: 5px 0; }
.progress-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 17px 18px 14px; margin: 0 0 23px; }
.progress-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.progress-topline strong { font-size: 1.04rem; color: var(--navy); }
.progress-topline p { color: var(--muted); margin: 0; font-size: .9rem; }
.progress-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.button { border-radius: 6px; padding: 8px 13px; border: 1px solid transparent; font-size: .88rem; font-weight: 700; }
.button-primary { background: var(--blue); color: white; }
.button-primary:hover { background: var(--blue-dark); }
.button-light { color: var(--navy); background: white; border-color: var(--line); }
.button-light:hover { background: var(--wash); }
.button-quiet { background: transparent; border-color: transparent; color: var(--muted); }
.button-quiet:hover { background: var(--wash); color: var(--ink); }
.progress-track { height: 9px; overflow: hidden; border-radius: 99px; background: #e7edf1; margin: 13px 0 8px; }
.progress-fill { height: 100%; width: 0; background: var(--green); transition: width .2s ease; }
.privacy-note { font-size: .79rem; color: var(--muted); margin: 0; }
.timeline { background: #eaf1f5; border-radius: 10px; padding: 17px; }
.timeline h3 { margin-bottom: 12px; }
.timeline-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.timeline-grid div { background: rgba(255,255,255,.82); padding: 9px 10px; border-radius: 6px; min-width: 0; }
.timeline-grid b { display: block; color: var(--blue-dark); font-size: .83rem; }
.timeline-grid span { display: block; font-size: .82rem; line-height: 1.35; margin-top: 3px; }
.mission { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px, 3vw, 30px); margin: 22px 0; box-shadow: var(--shadow); scroll-margin-top: 18px; }
.mission-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 16px; }
.mission-heading h2 { margin-bottom: 0; }
.mission-number { flex: 0 0 46px; height: 46px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-pale); color: var(--blue-dark); font-size: 1.08rem; font-weight: 850; }
.bonus-number { background: #eef3ec; color: #2e6546; }
.bonus-mission { border-top: 4px solid #6d9e7c; }
.challenge-mission { border-top: 4px solid #c6a45d; }
.final-mission { border-top: 4px solid var(--navy); }
.task-list { display: grid; gap: 8px; margin: 16px 0; }
.task { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: #f7f9fa; border: 1px solid #e5ebef; border-radius: 7px; cursor: pointer; }
.task:hover { border-color: #bfd6de; }
.task input { margin-top: 5px; flex: 0 0 auto; width: 17px; height: 17px; accent-color: var(--green); }
.task span { line-height: 1.45; }
.task input:checked + span { color: #547063; }
.official-links { display: grid; gap: 8px; margin: 17px 0; }
.official-link { display: grid; grid-template-columns: 96px minmax(0,1fr) 20px; gap: 12px; align-items: center; text-decoration: none; padding: 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.official-link:hover { border-color: #9ac4d0; background: #f9fcfd; }
.official-link strong, .official-link small { display: block; }
.official-link small { font-size: .82rem; color: var(--muted); }
.link-label { font-size: .68rem; letter-spacing: .08em; font-weight: 850; color: var(--blue-dark); }
.link-arrow { font-size: 1.1rem; color: var(--blue); }
.concept-box { background: #eef6f8; border-left: 4px solid var(--blue); padding: 13px 15px; margin: 15px 0; border-radius: 0 7px 7px 0; }
.concept-box > strong { display: block; color: var(--blue-dark); margin-bottom: 4px; }
.concept-box p:last-child { margin-bottom: 0; }
.answer-box { display: grid; gap: 7px; margin: 18px 0 5px; }
.answer-box label { font-weight: 750; color: #33465a; }
textarea, input[type="text"] { width: 100%; color: var(--ink); background: #fff; border: 1px solid #bac8d2; border-radius: 6px; padding: 10px 11px; }
textarea { resize: vertical; min-height: 58px; }
textarea:focus, input[type="text"]:focus { outline: 3px solid rgba(23,107,135,.15); border-color: var(--blue); }
.hint { border: 1px solid #d4e1e7; border-radius: 7px; margin: 13px 0 0; background: #fbfdfe; }
.hint summary { cursor: pointer; padding: 11px 13px; font-weight: 750; color: var(--blue-dark); }
.hint > p, .hint > details, .hint > div { margin-left: 14px; margin-right: 14px; }
.hint > p { padding-bottom: 11px; margin-bottom: 0; }
.hint.nested { margin: 0 12px 12px; background: white; }
.hint.nested summary { font-size: .93rem; }
.hint.nested p { padding: 0 12px 12px; margin: 0; }
.table-wrap { overflow-x: auto; margin: 15px 0; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { border: 1px solid var(--line); padding: 10px 11px; text-align: left; vertical-align: top; }
th { background: #edf3f6; color: var(--navy); }
td:first-child { font-weight: 700; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; margin: 15px 0; }
.command-card { min-width: 0; border: 1px solid #dbe4ea; background: #f7f9fa; border-radius: 9px; padding: 10px; margin: 12px 0; }
.command-title { font-size: .82rem; text-transform: uppercase; font-weight: 850; letter-spacing: .08em; color: #4b5c6d; padding: 2px 5px 8px; }
.copy-button { margin-top: 8px; border: 1px solid #c8d5dd; border-radius: 5px; color: var(--blue-dark); background: white; padding: 6px 9px; font-size: .82rem; font-weight: 700; }
.copy-button:hover { background: var(--blue-pale); }
.steps-list { padding-left: 1.3rem; }
.steps-list li { padding-left: 4px; margin: 7px 0; }
.network-compare { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin: 15px 0; }
.network-compare article { border: 1px solid var(--line); border-radius: 8px; padding: 15px; background: #fbfcfd; }
.network-compare article h3 { color: var(--blue-dark); }
.network-compare article p:last-child { margin-bottom: 0; }
.mini-label { font-weight: 800; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.steps-box { background: #f7f9fa; border-radius: 8px; padding: 15px 17px; margin: 15px 0; }
.steps-box h3 { margin-bottom: 8px; }
.file-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin: 15px 0; }
.file-cards article { border: 1px solid var(--line); border-radius: 8px; padding: 12px; min-width: 0; }
.file-ext { font: 800 1rem ui-monospace, monospace; color: var(--blue-dark); margin-bottom: 9px; }
.file-cards h3 { font-size: .98rem; }
.file-cards p { color: var(--muted); font-size: .86rem; margin: 0; line-height: 1.45; }
.warning { background: var(--amber-pale); color: #59410d; border-left: 4px solid #c49a39; padding: 12px 14px; border-radius: 0 6px 6px 0; margin: 13px 0; }
.text-link { font-weight: 750; }
.quiz-form { display: grid; gap: 12px; margin-top: 16px; }
.quiz-question { border: 1px solid var(--line); border-radius: 8px; padding: 13px 15px; margin: 0; }
.quiz-question legend { font-weight: 800; padding: 0 4px; color: var(--navy); }
.quiz-question label { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 0; cursor: pointer; }
.quiz-question input { margin-top: 5px; accent-color: var(--blue); }
.quiz-result { border-radius: 7px; padding: 13px; display: none; }
.quiz-result.visible { display: block; }
.quiz-result.good { background: #eaf6ef; color: #15593d; }
.quiz-result.mixed { background: #fff7e6; color: #694d0e; }
.quiz-explanation { margin: 9px 0 0; padding-top: 8px; border-top: 1px solid rgba(40,60,40,.15); font-size: .91rem; }
.completion-list { margin-top: 20px; }
.page-footer { color: var(--muted); font-size: .83rem; padding: 8px 3px 0; }
.page-footer p { margin-bottom: 7px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 15px); opacity: 0; pointer-events: none; background: var(--navy); color: white; border-radius: 7px; padding: 10px 15px; box-shadow: var(--shadow); transition: opacity .18s ease, transform .18s ease; z-index: 150; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1000px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; }
  .side-nav { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .sidebar-note { margin-top: 10px; }
  .timeline-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .file-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .hero { padding: 30px 18px 26px; }
  .page-layout { padding: 16px 12px 36px; gap: 16px; }
  .side-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .info-grid, .two-col, .network-compare { grid-template-columns: 1fr; }
  .timeline-grid { grid-template-columns: 1fr 1fr; }
  .progress-topline { display: block; }
  .progress-actions { margin-top: 12px; }
  .official-link { grid-template-columns: 75px minmax(0,1fr) 16px; gap: 7px; padding: 10px; }
  .link-label { font-size: .6rem; }
  .mission-heading { gap: 11px; }
  .mission-number { flex-basis: 38px; height: 38px; }
  .file-cards { grid-template-columns: 1fr 1fr; }
}
@media print {
  body { background: white; font-size: 10.5pt; }
  .hero { background: white; color: var(--ink); padding: 0 0 14px; border-bottom: 2px solid var(--navy); }
  .hero h1, .hero h1 span { color: var(--navy); }
  .lead, .hero-meta span, .hero-callout, .eyebrow { color: var(--ink); }
  .hero-meta span { border-color: #bbb; }
  .hero-callout { border-color: var(--blue); background: white; }
  .page-layout { display: block; width: 100%; padding: 12px 0; }
  .sidebar, .progress-actions, .copy-button, .toast, .button-primary { display: none !important; }
  .mission, .info-card, .progress-panel { box-shadow: none; break-inside: avoid; }
  .mission { margin: 12px 0; padding: 15px; }
  .content { width: 100%; }
  a { color: var(--ink); }
  details:not([open]) > *:not(summary) { display: block; }
  .hint { break-inside: avoid; }
  textarea, input[type="text"] { border-color: #aaa; min-height: 35px; }
  .timeline-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .file-cards { grid-template-columns: repeat(4,minmax(0,1fr)); }
  pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f0f2f4; color: #111; }
}
