:root {
  color-scheme: dark;
  --bg: #080711;
  --surface: #151329;
  --surface-2: #172635;
  --text: #f3f1ff;
  --muted: #bbb6d6;
  --line: #2b4052;
  --accent: #8cf5ff;
  --accent-strong: #77f2e6;
  --warm: #071017;
  --success: #77d58a;
  --radius: 0.75rem;
  --shadow: 0 1rem 2.5rem rgb(0 0 0 / 22%);
  --max-width: 74rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 80% 0, #173047 0, var(--bg) 34rem); color: var(--text); font-size: 1rem; line-height: 1.7; }
a { color: var(--accent-strong); text-underline-offset: 0.2em; }
a:hover { color: #fff; }
img, svg { max-width: 100%; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; }
.container { width: min(calc(100% - 2rem), var(--max-width)); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: 0.6rem 1rem; background: #fff; color: #000; }
.skip-link:focus { top: 1rem; }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgb(255 255 255 / 10%); background: rgb(7 16 24 / 92%); backdrop-filter: blur(12px); }
.nav-row { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: var(--text); font-weight: 800; text-decoration: none; letter-spacing: 0.02em; }
.primary-nav { display: flex; align-items: center; gap: 1.25rem; }
.primary-nav a { color: var(--muted); text-decoration: none; font-weight: 700; }
.primary-nav a[aria-current="page"] { color: var(--accent-strong); }
.menu-button { display: none; border: 1px solid var(--line); border-radius: 0.5rem; background: var(--surface); color: var(--text); padding: 0.45rem 0.75rem; }

.hero { padding: clamp(4rem, 9vw, 8rem) 0 4rem; }
.hero--compact { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2.5rem; }
.task-route { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); padding: 0; list-style: none; }
.task-card, .official-video { padding: 1.25rem; border: 1px solid var(--border); border-radius: .75rem; background: var(--surface); }
.task-card > span { color: var(--accent); font-weight: 700; }
.video-wrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: .5rem; background: #000; }
.video-wrap img, .video-wrap iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-wrap button { position: absolute; inset: auto 1rem 1rem auto; }
.eyebrow { margin: 0 0 0.75rem; color: var(--accent-strong); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
h1 { max-width: 15ch; margin: 0; font-size: clamp(2.5rem, 7vw, 5.5rem); letter-spacing: -0.04em; }
h2 { margin-top: 0; font-size: clamp(1.65rem, 4vw, 2.5rem); }
.lede { max-width: 44rem; color: var(--muted); font-size: clamp(1.05rem, 2.3vw, 1.3rem); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.button { display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; border: 1px solid var(--accent); border-radius: 0.5rem; padding: 0.6rem 1rem; background: var(--accent); color: #031414; font-weight: 800; text-decoration: none; }
.button.secondary { background: transparent; color: var(--accent-strong); }

.section { padding: 4rem 0; }
.section.alt { border-block: 1px solid var(--line); background: rgb(16 28 39 / 72%); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; background: linear-gradient(145deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); }
.card h2, .card h3 { margin-top: 0; }
.card p { color: var(--muted); }
.tag { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 0.15rem 0.55rem; color: var(--success); font-size: 0.82rem; font-weight: 800; }
.tag.muted { color: var(--muted); }
.breadcrumbs { padding-top: 1.5rem; color: var(--muted); font-size: 0.9rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.45rem; color: #66798b; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 2rem; align-items: start; }
.article-body { min-width: 0; }
.article-body section { scroll-margin-top: 5rem; margin-bottom: 3rem; }
.sidebar { position: sticky; top: 5.5rem; border-left: 1px solid var(--line); padding-left: 1.25rem; }
.sidebar ul { margin: 0; padding-left: 1.1rem; }
.sidebar a[aria-current="location"] { color: var(--warm); font-weight: 800; }
.article-navigation { position: sticky; top: 5.5rem; display: grid; gap: 1rem; max-height: calc(100vh - 7rem); overflow-y: auto; border-left: 1px solid var(--line); padding-left: 1.25rem; }
.article-navigation nav, .mobile-directory nav { display: grid; gap: 0.5rem; }
.article-navigation a[aria-current="location"] { color: var(--warm); font-weight: 800; }
.mobile-directories { display: none; }
.mobile-directory { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem 1rem; background: var(--surface); }
.mobile-directory summary { cursor: pointer; font-weight: 800; }
.article-adjacent { display: flex; justify-content: space-between; }
.callout { border-left: 4px solid var(--warm); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; background: var(--surface); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); padding: 0.75rem; text-align: left; }
th { color: var(--accent-strong); }
.faq-item { border-bottom: 1px solid var(--line); padding: 0.8rem 0; }
.faq-item summary { cursor: pointer; font-weight: 800; }
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }

@media (max-width: 760px) {
  .menu-button { display: inline-flex; }
  .primary-nav { position: absolute; inset: 4rem 1rem auto; flex-direction: column; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: var(--surface); box-shadow: var(--shadow); }
  .primary-nav[data-menu-ready="true"][data-open="false"] { display: none; }
  .grid, .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; border-left: 0; border-top: 1px solid var(--line); padding: 1rem 0 0; }
  h1 { font-size: clamp(2.3rem, 13vw, 4rem); }
}

@media (max-width: 1120px) {
  .article-navigation { display: none; }
  .mobile-directories { display: grid; gap: 0.75rem; grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
