:root {
  color-scheme: light;
  --paper: #f3f5f8;
  --white: #fff;
  --ink: #152337;
  --muted: #526075;
  --line: #dee4eb;
  --nav: #111e30;
  --nav-accent: #203149;
  --link: #234c80;
  --gold: #ebbd62;
  --focus: #1866b5;
  --sidebar-width: 228px;
  --content-padding: clamp(22px, 3vw, 42px);
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 16px;
  font-synthesis: none;
  background: var(--paper);
  color: var(--ink);
}

@font-face { font-family: Lato; src: url('./assets/lato-regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: Lato; src: url('./assets/lato-bold.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: Lato; src: url('./assets/lato-heavy.woff') format('woff'); font-weight: 900; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; line-height: 1.5; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.16; }
h2 { font-size: 1.49rem; font-weight: 900; letter-spacing: -.025em; }
h3 { font-size: 1.02rem; font-weight: 900; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 10px; left: 12px; z-index: 9; background: white; padding: 9px 15px; transform: translateY(-150%); }
.skip:focus { transform: none; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 2; width: var(--sidebar-width); display: flex; flex-direction: column; background: var(--nav); color: #c6d2e2; padding: 30px 18px 22px; }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 7px; color: #fff; text-decoration: none; font-weight: 900; font-size: 1.05rem; line-height: 1.15; letter-spacing: -.01em; }
.brand img { flex: 0 0 auto; }
.brand-subtitle { display: block; margin-top: 4px; color: #c0cbda; font-size: .82rem; font-weight: 700; letter-spacing: .045em; }
.nav { display: grid; gap: 5px; margin-top: 42px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; text-decoration: none; padding: 10px 13px; border-radius: 7px; color: #c4cede; font-weight: 700; font-size: .96rem; }
.nav a:hover { background: #1b2b40; color: white; }
.nav a[aria-current="page"] { background: var(--nav-accent); color: #f6d48b; }
.nav a[aria-current="page"]::after { content: ''; margin-left: auto; border-radius: 2px; width: 3px; height: 15px; background: var(--gold); }
.sidebar :focus-visible { outline-color: var(--gold); }
.sidebar-foot { display: flex; align-items: center; gap: 9px; margin: auto 7px 0; border-top: 1px solid #344158; padding-top: 18px; color: #c2cddd; font-size: .88rem; }
.pilot-mark { display: inline-block; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }

.page { margin-left: var(--sidebar-width); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { min-height: 66px; padding: 10px var(--content-padding); background: var(--white); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 900; }
.topbar-labels { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; min-width: 0; }
.unofficial-label { color: var(--muted); font-size: .875rem; font-weight: 700; }
.feedback-button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--white); border-radius: 7px; padding: 7px 11px; color: var(--ink); font-size: .88rem; font-weight: 700; white-space: nowrap; }
.feedback-button .icon { color: var(--link); width: 16px; height: 16px; }
.feedback-button:hover, .secondary-button:hover { background: #ebf1f8; border-color: #b6c8df; }
main { width: 100%; max-width: 1480px; margin: 0 auto; padding: 28px var(--content-padding) 38px; flex: 1; }
main:focus { outline: none; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; border-top: 1px solid var(--line); color: var(--muted); padding: 18px var(--content-padding); font-size: .88rem; }
.footer a { color: var(--link); text-underline-offset: 3px; }

.hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; color: white; background: #122138; padding: 29px clamp(22px, 3vw, 42px) 29px; }
.hero::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: 0 0 0 32%;
  background: url('./assets/uss-santa-fe.webp') center 56% / cover no-repeat;
}
.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #101c2f 0%, #101c2f 32%, #101c2fe6 41%, #101c2f75 56%, #101c2f12 76%);
}
@media (max-width: 650px) {
  .hero::before { left: 0; background-position: 39% 52%; }
  .hero::after { background: linear-gradient(90deg, #101c2fe6, #101c2f65); }
}
.hero h1 { font-size: clamp(2.65rem, 4.35vw, 4.2rem); font-weight: 900; letter-spacing: -.047em; line-height: .99; max-width: 720px; }
.hero p { font-size: 1rem; margin: 14px 0 17px; color: #e6edf7; max-width: 490px; }
.hero .search-form { max-width: 545px; }
.search-form { width: 100%; }
.search-box { background: white; display: flex; align-items: center; gap: 10px; padding: 5px 5px 5px 14px; border: 1px solid #ccd6e2; border-radius: 9px; color: var(--ink); min-height: 50px; }
.search-box:focus-within { border-color: var(--focus); outline: 2px solid #b0d1f2; }
.search-box > .icon { color: #556982; }
.search-box input { min-width: 0; flex: 1; border: 0; background: transparent; color: var(--ink); padding: 5px 0; outline: none; }
.search-box input:focus-visible { outline: none; }
.search-box input::placeholder { color: #526075; opacity: 1; }
.search-button, .primary-button { flex: 0 0 auto; background: #193c63; color: white; border: 1px solid transparent; border-radius: 6px; padding: 8px 15px; font-weight: 900; font-size: .92rem; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.search-button:hover, .primary-button:hover { background: #27517b; }
.hero .search-button { background: var(--gold); color: #19273a; }
.hero .search-button:hover { background: #f4ce84; }
.hero a:focus-visible { outline-color: var(--gold); }
kbd { font: .85rem system-ui, sans-serif; border: 1px solid #dce2e9; color: #546477; background: #f3f5f8; padding: 0 6px; border-radius: 4px; }
.suggested { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 13px; color: #e1e9f5; font-size: .82rem; }
.suggested > span { margin-right: 3px; }
.suggested a { border: 1px solid #71829b; background: #192c459c; border-radius: 5px; padding: 3px 8px; text-decoration: none; }
.suggested a:hover { background: #304865; color: white; }

.overview-section { margin-top: 27px; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 15px; }
.section-header p { color: var(--muted); margin-top: 5px; }
.text-link { color: var(--link); font-weight: 700; text-decoration: underline; text-decoration-color: #8ca6c0; text-underline-offset: 3px; }
.text-link:hover, .footer a:hover { color: #102c53; text-decoration-color: currentColor; }
.text-link .icon, .footer .icon { width: 13px; height: 13px; }
.section-header > .text-link { font-size: .89rem; white-space: nowrap; }

.task-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.task-tile, .guide-card, .panel { background: white; border: 1px solid var(--line); border-radius: 10px; }
.task-tile { display: block; min-width: 0; padding: 14px; text-decoration: none; transition: border-color .16s, box-shadow .16s; }
.task-tile:hover, .guide-card:hover, .question-promo:hover { border-color: #94aac6; box-shadow: 0 4px 14px #17365b12; }
.task-tile h3 { margin-top: 10px; }
.task-tile p { margin-top: 5px; color: var(--muted); font-size: .9rem; line-height: 1.35; }
.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; flex: 0 0 auto; }
.blue { background: #e7eef9; color: #285281; }
.teal { background: #e0f0ef; color: #196766; }
.gold { background: #faf0dc; color: #865a1d; }
.green { background: #e7f1e8; color: #2b6342; }
.purple { background: #ede9f7; color: #644b88; }

.overview-columns { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: 16px; margin-top: 22px; align-items: start; }
.quick-panel, .guide-panel { min-width: 0; padding: 16px 18px; }
.overview-columns h2 { font-size: 1.23rem; }
.quick-panel .section-header { margin-bottom: 4px; }
.resource-list, .references { list-style: none; padding: 0; margin: 0; }
.resource-row { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 11px; padding: 12px 0; }
.resource-row + .resource-row { border-top: 1px solid #e8edf3; }
.resource-row .icon-tile { width: 35px; height: 35px; border-radius: 7px; }
.resource-title { font-weight: 900; text-decoration: none; }
.resource-title:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.resource-title .icon { color: #5a7090; height: 12px; width: 12px; margin-left: 3px; }
.resource-copy p { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.resource-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: .82rem; }
.access { white-space: nowrap; font-size: .77rem; font-weight: 900; line-height: 1.25; border-radius: 4px; background: #edf2f7; color: #435873; padding: 4px 6px; }
.access.restricted { background: #e9eff7; color: #364e73; }
.access .icon { width: 11px; height: 11px; margin-right: 3px; }
.icon-button { border: 0; background: transparent; border-radius: 6px; padding: 0; width: 34px; height: 34px; color: #4d617a; display: inline-flex; align-items: center; justify-content: center; }
.icon-button:hover { background: #edf2f8; }
.icon-button.is-saved { background: #fcf1db; color: #805514; }

.guide-stack, .question-stack, .steps { display: grid; gap: 9px; }
.guide-card { display: flex; align-items: flex-start; gap: 10px; padding: 13px; min-width: 0; text-decoration: none; }
.guide-card h3 { font-size: 1.02rem; }
.guide-card p { color: var(--muted); font-size: .9rem; margin-top: 5px; line-height: 1.35; }
.guide-card-progress { display: inline-block; color: var(--link); font-weight: 900; font-size: .85rem; margin-top: 7px; }
.question-promo { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 11px 12px; border: 1px solid #d2e5e8; background: #edf6f6; border-radius: 8px; margin-top: 12px; }
.question-promo small { display: block; color: var(--muted); margin-top: 1px; font-size: .85rem; }

.page-header { display: flex; align-items: flex-start; gap: 13px; margin: 3px 0 23px; }
.page-header .icon-tile { width: 49px; height: 49px; }
.page-header .icon-tile .icon { width: 24px; height: 24px; }
.page-header h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; letter-spacing: -.035em; }
.page-header p { color: var(--muted); max-width: 740px; margin-top: 7px; }
.directory-controls { margin-bottom: 18px; }
.directory-controls .search-form { max-width: 690px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.filters a { font-size: .88rem; font-weight: 700; text-decoration: none; padding: 6px 11px; border: 1px solid #d6e0eb; border-radius: 6px; color: #3e5169; background: #fff; }
.filters a:hover { border-color: #8daacb; }
.filters a[aria-current] { background: #1d4067; color: white; border-color: #1d4067; }
.related-guides, .guide-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 13px; }
.guide-gallery .guide-card { padding: 19px; }
.results-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0; padding: 15px 18px 12px; border-bottom: 1px solid #e6ecf2; }
.results-heading h2 { overflow-wrap: anywhere; font-size: 1.13rem; }
.results-heading a { flex-shrink: 0; font-size: .85rem; }
.directory-panel { max-width: 1050px; }
.directory-panel .resource-list { padding: 0 18px; }
.related-panel { padding: 12px 17px; margin-bottom: 13px; }
.related-panel h2 { font-size: 1.02rem; margin-bottom: 4px; }
.question-links { display: flex; flex-wrap: wrap; gap: 2px 15px; }
.question-links a { color: var(--link); font-size: .9rem; font-weight: 700; padding: 5px 0; text-underline-offset: 3px; }
.question-links .icon { width: 13px; height: 13px; }
.empty { padding: 24px 18px; }
.empty p { color: var(--muted); margin: 5px 0 12px; }

.back-link { display: inline-flex; margin-bottom: 13px; font-size: .9rem; }
.progress-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; max-width: 900px; }
.progress-panel label { display: block; font-weight: 900; margin-bottom: 4px; }
progress { display: block; accent-color: #285b8b; width: min(100%, 320px); height: 12px; }
.progress-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.secondary-button { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #d6e0eb; border-radius: 6px; padding: 7px 11px; background: white; color: var(--ink); font-weight: 700; font-size: .88rem; }
.secondary-button .icon { width: 15px; height: 15px; }
.steps { max-width: 900px; }
.phase-title { font-size: 1.19rem; margin-top: 20px; }
.step { padding: 14px 17px; }
.step-check { display: flex; gap: 10px; align-items: center; }
.step-check input { flex: 0 0 auto; width: 19px; height: 19px; margin: 0; accent-color: #285b8b; cursor: pointer; }
.step-check label { cursor: pointer; }
.step-kind { display: block; margin-bottom: 3px; color: #54647a; font-size: .79rem; font-weight: 700; }
.step-body { margin-left: 29px; margin-top: 6px; }
.step-body p, .question-answer p { color: var(--muted); }
.link-list { display: flex; flex-wrap: wrap; gap: 4px 13px; margin: 8px 0; }
.link-list a, .help-line { font-size: .93rem; }
.help-line strong { color: var(--ink); margin-right: 4px; }
.source-details { margin-top: 9px; font-size: .88rem; }
.source-details summary { cursor: pointer; color: var(--link); font-weight: 700; }
.references { margin: 6px 0 0; display: grid; gap: 5px; overflow-wrap: anywhere; }
.references li span { display: block; color: var(--muted); font-size: .85rem; }
.reviewed { margin-top: 14px; color: var(--muted); font-size: .88rem; }

.question-stack { max-width: 950px; }
.question-card summary { list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 11px; align-items: center; cursor: pointer; padding: 12px 15px; font-weight: 900; }
.question-card summary::-webkit-details-marker { display: none; }
.question-card summary > .icon { color: var(--link); }
.question-card[open] summary > .icon { transform: rotate(90deg); }
.question-answer { padding: 0 15px 16px 64px; }
.answer-sources { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .88rem; }
.answer-sources h3 { font-size: .91rem; }

dialog { width: min(92vw, 470px); max-height: 90dvh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 20px; color: var(--ink); box-shadow: 0 10px 50px #0b162e46; }
dialog::backdrop { background: #101a2bae; }
.dialog-heading, .dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dialog-actions { justify-content: flex-end; margin-top: 12px; }
dialog p { color: var(--muted); margin-top: 7px; }
dialog label { display: block; font-weight: 900; margin: 13px 0 5px; }
textarea { width: 100%; border: 1px solid #b7c6d5; border-radius: 6px; padding: 8px; resize: vertical; color: var(--ink); }
.form-status { font-size: .9rem; min-height: 1.3em; }

.icon { --size: 18px; display: inline-block; width: var(--size); height: var(--size); color: inherit; flex: 0 0 auto; background: currentColor; vertical-align: -.16em; mask: var(--icon) center / contain no-repeat; }
.i-home { --icon: url('./assets/home.png'); }
.i-grid { --icon: url('./assets/grid.png'); }
.i-book { --icon: url('./assets/book.png'); }
.i-question { --icon: url('./assets/question.png'); }
.i-bookmark { --icon: url('./assets/bookmark.png'); }
.i-bookmark-fill { --icon: url('./assets/bookmark-fill.png'); }
.i-message { --icon: url('./assets/message.png'); }
.i-close { --icon: url('./assets/close.png'); }
.i-external { --icon: url('./assets/external.png'); }
.i-search { --icon: url('./assets/search.png'); }
.i-clipboard { --icon: url('./assets/clipboard.png'); }
.i-calendar { --icon: url('./assets/calendar.png'); }
.i-plane { --icon: url('./assets/plane.png'); }
.i-wallet { --icon: url('./assets/wallet.png'); }
.i-shield { --icon: url('./assets/shield.png'); }
.i-person { --icon: url('./assets/person.png'); }
.i-userfile { --icon: url('./assets/userfile.png'); }
.i-file { --icon: url('./assets/file.png'); }
.i-globe { --icon: url('./assets/globe.png'); }
.i-bed { --icon: url('./assets/bed.png'); }
.i-pin { --icon: url('./assets/pin.png'); }
.i-lock { --icon: url('./assets/lock.png'); }
.i-chevron { --icon: url('./assets/chevron.png'); }
.i-print { --icon: url('./assets/print.png'); }

@media (max-width: 1170px) and (min-width: 851px) {
  :root { --sidebar-width: 187px; }
  .sidebar { padding-inline: 12px; }
  .task-tile { padding: 11px; }
  .overview-columns { gap: 12px; }
  .quick-panel, .guide-panel { padding-inline: 12px; }
}
@media (max-width: 970px) and (min-width: 851px) {
  .task-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  :root { --content-padding: clamp(15px, 4vw, 28px); }
  .sidebar { position: relative; width: auto; padding: 11px var(--content-padding) 5px; }
  .brand { margin: 0; font-size: 1rem; }
  .brand img { width: 34px; height: 34px; }
  .brand-subtitle { display: inline; margin-left: 4px; color: #fff; font-size: inherit; letter-spacing: inherit; }
  .sidebar-foot { position: absolute; top: 9px; right: var(--content-padding); margin: 0; border: 0; height: 36px; padding: 0; font-size: .77rem; }
  .pilot-mark { width: 6px; height: 6px; }
  .nav { display: flex; gap: 4px; margin-top: 7px; }
  .nav a { min-height: 40px; padding: 5px 9px; gap: 5px; font-size: .84rem; }
  .nav a .icon { width: 15px; height: 15px; }
  .nav a[aria-current="page"]::after { display: none; }
  .page { margin-left: 0; min-height: calc(100vh - 100px); }
  .topbar { min-height: 54px; }
  main { padding-top: 18px; }
}
@media (max-width: 690px) {
  .task-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .overview-columns { grid-template-columns: minmax(0, 1fr); gap: 13px; }
}
@media (max-width: 520px) {
  .hero { padding: 21px 14px 18px; border-radius: 11px; }
  .hero::before { background-position: center, 70% 52%; }
  .hero h1 { font-size: clamp(2.05rem, 8.8vw, 2.8rem); }
  .hero p { margin: 10px 0 12px; }
  .hero .search-box { gap: 7px; padding-left: 8px; }
  .hero .search-box > .icon { width: 15px; height: 15px; }
  .hero .search-box input { font-size: .94rem; }
  .hero .search-button { padding-inline: 9px; }
  .hero kbd { display: none; }
  .suggested { font-size: .78rem; }
  .overview-section { margin-top: 20px; }
  .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-tile { padding: 10px; }
  .task-tile h3 { margin-top: 7px; }
  .related-guides, .guide-gallery { grid-template-columns: minmax(0, 1fr); }
  .results-heading { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .nav { justify-content: space-between; gap: 0; }
  .nav a { padding-inline: 6px; }
  .nav a .icon { display: none; }
  .resource-row { gap: 7px; }
  .resource-row .icon-tile { width: 30px; height: 30px; }
  .question-answer { padding-left: 15px; }
}
@media (max-width: 355px) {
  .sidebar-foot { display: none; }
  .resource-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .resource-row .access { grid-column: 2; justify-self: start; grid-row: 2; }
  .resource-row .bookmark { grid-column: 3; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
@media print {
  :root { background: white; color: black; }
  .sidebar, .topbar, .footer, .skip, .back-link, .progress-actions, dialog, .hero, .step .link-list { display: none !important; }
  .page, main { margin: 0; padding: 0; }
  .page-header { margin-bottom: 10px; }
  .page-header h1 { font-size: 24pt; }
  .progress-panel { border: 0; padding: 0; }
  .progress-panel progress { display: none; }
  .phase-title { margin-top: 10px; }
  .step { break-inside: avoid; padding: 5px 10px; }
  .step p, .step a, .step span, .source-details summary { color: black; }
  .source-details:not([open]) > :not(summary) { display: block; }
  details::details-content { content-visibility: visible; }
  .references a { text-decoration: underline; }
}

.training-section { margin-top: 22px; }
.curriculum-intro { max-width: 900px; margin: 0 0 14px; }
.curriculum-intro p { color: var(--muted); margin-top: 3px; }
.practice { margin: 12px 0; padding: 10px 13px; background: #f1f5fb; border-left: 3px solid #9db5d0; border-radius: 0 6px 6px 0; }
.practice h4 { margin: 0 0 3px; font-size: .92rem; }
.practice details p { margin-top: 5px; }

@media print {
  .practice { border-color: #999; }
}

.study-terms { display: grid; gap: 8px; margin: 12px 0; }
.study-terms > div { padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; }
.study-terms dt { font-weight: 700; }
.study-terms dd { margin: 2px 0 0; color: var(--muted); }

.platform-gallery { margin: 18px 0; }
.platform-gallery h4, .platform-gallery summary { margin: 0 0 6px; font-size: 1.02rem; font-weight: 900; }
.platform-gallery summary { cursor: pointer; color: var(--link); }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.platform-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.platform-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #e9f0f7; }
.platform-card-content { padding: 10px 12px; }
.platform-card h5 { margin: 0 0 7px; font-size: 1rem; font-weight: 900; }
.platform-specs { display: grid; gap: 5px; margin: 0; font-size: .9rem; }
.platform-specs div { display: grid; grid-template-columns: minmax(76px, 40%) minmax(0, 1fr); gap: 8px; }
.platform-specs dt { color: var(--muted); }
.platform-specs dd { margin: 0; color: var(--ink); font-weight: 700; }
.platform-card .platform-caption { margin-top: 9px; color: var(--muted); font-size: .79rem; }
@media (max-width: 580px) {
  .platform-grid { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .platform-card { break-inside: avoid; }
}

.course-start { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 900px; padding: 16px; }
.course-start p, .lesson-entry p, .lesson-block p { color: var(--muted); }
.course-start p { margin: 5px 0; }
.course-progress { width: min(100%, 370px); margin: 10px 0; }
.course-progress label { display: block; font-weight: 700; margin-bottom: 5px; }
.course-progress progress { width: 100%; }
.lesson-list { display: grid; gap: 8px; max-width: 900px; margin: 14px 0; padding-left: 25px; }
.lesson-list li::marker { font-weight: 900; color: var(--link); }
.lesson-entry { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; text-decoration: none; }
.lesson-entry:hover { border-color: #94aac6; }
.lesson-entry span, .lesson-position { color: var(--link); font-weight: 700; }
.lesson-entry span { flex: 0 0 auto; font-size: .9rem; }
.lesson-position { margin-bottom: 6px; font-size: .9rem; }
.course-lesson { display: grid; gap: 12px; max-width: 900px; }
.lesson-block { padding: clamp(12px, 2vw, 20px); min-width: 0; }
.lesson-block > p { margin-top: 8px; }
.lesson-example { background-color: #f0f6ff; }
.knowledge-check { margin: 13px 0; }
.knowledge-check fieldset { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px 11px; margin: 0; min-width: 0; }
.knowledge-check legend { font-weight: 900; padding: 0 4px; }
.knowledge-check label { display: flex; align-items: baseline; gap: 9px; cursor: pointer; padding: 3px 0; }
.knowledge-check input { accent-color: #254e8c; }
.knowledge-check .secondary-button { justify-self: start; margin-top: 3px; }
.knowledge-check fieldset:disabled label { cursor: default; }
.lesson-block .answer-feedback:not(:empty) { margin-top: 6px; padding: 7px 9px; border-radius: 5px; color: #6d3319; background: #fff2dd; }
.lesson-block .answer-feedback.correct { color: #154b37; background: #e4f4ed; }
.lesson-checks a[hidden], .lesson-checks p[hidden] { display: none; }
.lesson-checks a { margin-top: 8px; }
@media (max-width: 580px) {
  .course-start { display: grid; justify-items: start; }
  .lesson-entry { align-items: flex-start; }
}
.lesson-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 9px; }
.lesson-tools .course-progress { flex: 1 1 220px; }
.study-notice {
  max-width: 900px;
  margin-bottom: 14px;
  padding: 9px 12px;
  border-left: 3px solid #7395ba;
  border-radius: 4px;
  color: #243f5e;
  background: #e9f1f9;
}
.visual-takeaway { margin: 18px 0; padding: clamp(12px, 2vw, 18px); border: 1px solid #a9bfd8; border-left: 5px solid #254e8c; border-radius: 9px; background: linear-gradient(135deg, #f8fbff, #edf4fb); }
.visual-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 12px; margin-bottom: 13px; }
.visual-heading span { color: #254e8c; font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.visual-heading h3 { margin: 0; font-size: 1.08rem; }
.visual-caption { margin: 12px 0 0 !important; color: #243d5c !important; font-size: .92rem; }
.org-visual { display: grid; gap: 18px; }
.org-root { position: relative; justify-self: center; display: grid; gap: 3px; width: min(100%, 320px); padding: 11px; border-radius: 7px; color: #fff; background: #173d70; text-align: center; }
.org-root::after { content: ''; position: absolute; left: 50%; bottom: -19px; width: 2px; height: 19px; background: #91a9c2; }
.org-root small { color: #dce9f7; }
.org-branches { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.org-branches::before { content: ''; position: absolute; top: -10px; left: 16.5%; right: 16.5%; height: 2px; background: #91a9c2; }
.org-branch { position: relative; display: grid; align-content: start; gap: 5px; min-height: 135px; padding: 11px; border: 1px solid #b8c9da; border-top: 5px solid #3d6ea8; border-radius: 7px; background: #fff; }
.org-branch::before { content: ''; position: absolute; left: 50%; top: -15px; width: 2px; height: 10px; background: #91a9c2; }
.org-branch.support { border-top-color: #6c5aa7; }
.org-branch.theater { border-top-color: #24806c; }
.org-branch small { color: var(--muted); line-height: 1.35; }
.org-branch b { align-self: end; color: #254e8c; font-size: .78rem; }
.submarine-matrix { display: grid; grid-template-columns: minmax(105px, .7fr) repeat(2, minmax(120px, 1fr)); gap: 6px; }
.matrix-label, .matrix-head, .matrix-row-label, .matrix-cell { min-width: 0; padding: 9px; border-radius: 6px; }
.matrix-label { display: grid; place-items: center; color: var(--muted); font-size: .78rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.matrix-head { display: grid; place-items: center; color: #fff; background: #274e7d; text-align: center; font-weight: 900; }
.matrix-row-label { display: grid; align-content: center; background: #e8eef5; color: #243d5c; }
.matrix-row-label small { color: var(--muted); }
.matrix-cell { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; min-height: 66px; border: 1px solid #aebfd1; background: #fff; }
.matrix-cell span { padding: 6px 9px; border-radius: 999px; color: #17324d; background: #dce9f5; font-weight: 900; }
.matrix-cell span small { font-weight: 700; }
.matrix-cell.strategic span { color: #63341f; background: #fae4d9; }
.matrix-cell.empty { color: #8493a4; font-size: 1.4rem; }
@media (max-width: 620px) {
  .org-branches { grid-template-columns: 1fr; }
  .org-branches::before, .org-branch::before, .org-root::after { display: none; }
  .org-branch { min-height: auto; }
  .submarine-matrix { grid-template-columns: minmax(82px, .65fr) repeat(2, minmax(90px, 1fr)); font-size: .82rem; }
  .matrix-label, .matrix-head, .matrix-row-label, .matrix-cell { padding: 7px 5px; }
  .matrix-cell span { padding: 5px 7px; }
}

.geography-lesson { max-width: 1080px; }
.map-toolbar, .map-modes, .map-regions, .map-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.map-toolbar { justify-content: space-between; gap: 8px 20px; }
.map-modes [aria-pressed="true"] { background: #254e8c; color: #fff; border-color: #254e8c; }
.map-regions { margin-top: 12px; }
.map-regions [aria-pressed="true"] { background: #e1f1ed; color: #125445; border-color: #428679; }
.map-instructions { margin: 12px 0; }
.map-score { color: #254e8c; font-size: .9rem; font-weight: 700; }
.map-stage { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 12px; align-items: start; }
.map-canvas { position: relative; border-radius: 8px; box-shadow: 0 0 0 1px #9cb5c8; background: #dbeaf4; }
.map-canvas img { display: block; width: 100%; height: auto; border-radius: inherit; }
.map-north { position: absolute; top: 8px; right: 8px; padding: 3px 7px; border-radius: 4px; background: #fff; font-weight: 900; color: #234866; }
.map-pins { position: absolute; inset: 0; }
.map-pin { position: absolute; display: grid; place-items: center; transform: translate(-50%, -50%); width: 34px; height: 34px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: #173d70; color: #fff; box-shadow: 0 1px 3px #19345170; cursor: pointer; font: inherit; font-size: .86rem; font-weight: 900; }
.map-pin:hover, .map-pin:focus-visible, .map-pin[aria-pressed="true"] { z-index: 2; background: #9c4c19; }
.map-pin.solved { background: #216e59; }
.map-pin.solved[aria-pressed="true"] { outline: 2px solid #216e59; outline-offset: 2px; }
.map-pin-label { display: none; position: absolute; left: calc(100% + 5px); z-index: 3; width: max-content; max-width: 122px; padding: 5px 8px; border-radius: 5px; background: #142846; color: white; font-size: .82rem; line-height: 1.2; pointer-events: none; text-align: left; }
.map-pin-label.pin-label-left { left: auto; right: calc(100% + 5px); }
.map-pin:hover .map-pin-label, .map-pin:focus-visible .map-pin-label, .map-pin[aria-pressed="true"] .map-pin-label { display: block; }
.map-pin:hover, .map-pin:focus-visible { z-index: 4; }
.map-detail { padding: 14px; border: 1px solid #b5c9dc; border-radius: 8px; background: #f1f7fc; }
.map-detail .map-kind { margin: 0 0 4px; color: #315a86; font-size: .88rem; font-weight: 700; }
.map-detail h3 { margin: 0; font-size: 1.2rem; }
.map-description:not(:empty) { margin: 8px 0 0; }
.map-form { display: grid; gap: 6px; margin-top: 12px; }
.map-form label { font-size: .9rem; font-weight: 700; }
.map-form input { width: 100%; min-width: 0; min-height: 40px; padding: 6px 8px; border: 1px solid #8ba4bd; border-radius: 5px; background: white; font: inherit; }
.map-form button { justify-self: start; }
.map-actions { margin-top: 10px; }
.map-detail [hidden] { display: none; }
.map-detail .map-feedback:not(:empty) { margin-top: 8px; font-weight: 700; color: #284f73; }
.map-credit { margin: 10px 0; font-size: .85rem; }
.lesson-visual-rows { display: grid; gap: 7px; margin: 0; }
.lesson-visual-rows > div {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 1.3fr);
  gap: 7px 16px;
  align-items: baseline;
  padding: 12px 14px;
  border: 1px solid #b7ccde;
  border-radius: 6px;
  background: #fff;
}
.lesson-visual-rows dt { font-weight: 900; color: #173d70; }
.lesson-visual-rows dd { margin: 0; }
.lesson-visual-rows.ocean-layers { gap: 0; overflow: hidden; border-radius: 7px; }
.ocean-layers > div { border: 0; border-radius: 0; background: #d6eef2; }
.ocean-layers > div:nth-child(2) { background: #add2e5; }
.ocean-layers > div:nth-child(3) { color: #fff; background: #245177; }
.ocean-layers > div:nth-child(3) dt { color: #fff; }
@media (max-width: 630px) {
  .lesson-visual-rows > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 900px) {
  .map-stage { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .map-pin { width: 27px; height: 27px; font-size: .77rem; }
}
