@font-face {
    font-family: "Geist";
    src: url("theme/GeistVF.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: "Geist Mono";
    src: url("theme/GeistMonoVF.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
:root {
    --scheme: light;
    --page: #f7f7f7;
    --surface: #ffffff;
    --ink: rgba(0, 0, 0, 0.8);
    --strong: rgba(0, 0, 0, 0.9);
    --weak: rgba(0, 0, 0, 0.7);
    --line: rgba(4, 28, 89, 0.1);
    --line-strong: rgba(4, 28, 89, 0.18);
    --primary: #041c59;
    --on-primary: #ffffff;
    --link: #0044ff;
    --focus: #0044ff;
    --hover: rgba(0, 0, 0, 0.06);
    --shadow: rgba(4, 28, 89, 0.16);
    --header-bg: #ffffff;
    --header-ink: #1d1d1d;
    --header-line: rgba(0, 0, 0, 0.12);
    --shot-line: rgba(0, 0, 0, 0.12);
    --shot-shadow: 0 2px 8px rgba(4, 28, 89, 0.1);
    --warn-bg: #fff4e5;
    --light-only: block;
    --dark-only: none;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --scheme: dark;
        --page: #121212;
        --surface: #1d1d1d;
        --ink: #ffffff;
        --strong: #ffffff;
        --weak: rgba(255, 255, 255, 0.7);
        --line: rgba(255, 255, 255, 0.12);
        --line-strong: rgba(255, 255, 255, 0.28);
        --primary: #0063ff;
        --on-primary: #ffffff;
        --link: #5197c7;
        --focus: #5197c7;
        --hover: rgba(255, 255, 255, 0.08);
        --shadow: rgba(0, 0, 0, 0.6);
        --header-bg: #1d1d1d;
        --header-ink: #ffffff;
        --header-line: rgba(255, 255, 255, 0.28);
        --shot-line: rgba(255, 255, 255, 0.28);
        --shot-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
        --warn-bg: #3a2a12;
        --light-only: none;
        --dark-only: block;
    }
}
:root[data-theme="dark"] {
    --scheme: dark;
    --page: #121212;
    --surface: #1d1d1d;
    --ink: #ffffff;
    --strong: #ffffff;
    --weak: rgba(255, 255, 255, 0.7);
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.28);
    --primary: #0063ff;
    --on-primary: #ffffff;
    --link: #5197c7;
    --focus: #5197c7;
    --hover: rgba(255, 255, 255, 0.08);
    --shadow: rgba(0, 0, 0, 0.6);
    --header-bg: #1d1d1d;
    --header-ink: #ffffff;
    --header-line: rgba(255, 255, 255, 0.28);
    --shot-line: rgba(255, 255, 255, 0.28);
    --shot-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    --warn-bg: #3a2a12;
    --light-only: none;
    --dark-only: block;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 100%; color-scheme: var(--scheme); }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: var(--page);
    font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: .875rem;
    font-weight: 450;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
    position: absolute; left: -999px; top: .75rem; z-index: 10;
    background: var(--primary); color: var(--on-primary); font-weight: 600;
    padding: 6px 16px; border-radius: 6px; text-decoration: none;
}
.skip:focus { left: 1rem; }

.site-header { background: var(--header-bg); color: var(--header-ink); border-bottom: 1px solid var(--header-line); }
.site-header__bar { display: flex; align-items: center; gap: 6px; min-height: 72px; padding: 0 28px; }
.site-logo { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; color: inherit; text-decoration: none; }
.site-logo img { width: auto; }
.site-logo__ncb { height: 30px; }
.site-logo__learn { height: 36px; padding-left: 12px; border-left: 1px solid currentColor; }
.logo-light, .icon-moon { display: var(--light-only); }
.logo-dark, .icon-sun { display: var(--dark-only); }
.site-header__space { flex: 1 1 auto; }
.toplink {
    display: inline-flex; align-items: center; min-height: 36px; padding: 4px 8px; border-radius: 6px;
    color: inherit; font-weight: 600; white-space: nowrap; text-decoration: none;
}
.toplink:hover { background: var(--hover); }
/* The guide's own (the store's header marks no page): drawn in the header's text colour,
   which has the contrast a marker needs in both themes. */
.toplink[aria-current="page"] { text-decoration: underline 2px currentColor; text-underline-offset: .4em; }
.theme-toggle {
    display: inline-grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; padding: 0;
    border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer;
}
.theme-toggle:hover { background: var(--hover); }
.theme-toggle svg { width: 24px; height: 24px; }

.page { flex: 1 0 auto; width: 100%; max-width: 60rem; margin: 0 auto; padding: 0 24px 2.5rem; }
nav.crumbs { font-size: .8125rem; color: var(--weak); margin: 1.25rem 0 0; }
nav.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
nav.crumbs li + li::before { content: "/"; margin-right: .25rem; }
h1, h2 { font-family: "Geist", system-ui, sans-serif; font-weight: 600; color: var(--strong); }
h1 { font-size: 1.8rem; line-height: 1.2; letter-spacing: -0.79px; margin: .8rem 0 .5rem; }
h2 { font-size: 1.1rem; line-height: 1.3; margin: 0 0 .25rem; }
h2#videos { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; margin: 2rem 0 1rem; }
.lede { font-size: 1rem; line-height: 1.6; color: var(--weak); margin: 0 0 1.5rem; max-width: 70ch; }
.cards { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.card {
    position: relative; height: 100%; padding: 16px 18px 18px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px var(--shadow); border-color: var(--line-strong); }
.card a { color: var(--strong); font-size: .98rem; font-weight: 700; line-height: 1.3; text-decoration: none; }
.card a::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.card a:hover { text-decoration: underline; }
.card p { margin: .5rem 0 0; color: var(--weak); }
.meta { font-size: .78rem; color: var(--weak); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step {
    display: grid; grid-template-columns: 2.5rem 1fr; gap: 0 1rem; margin: 0 0 20px; padding: 20px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.step .num {
    display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
    background: var(--primary); color: var(--on-primary); font-weight: 700;
}
.step h2 { margin-top: .45rem; }
.step p { margin: .25rem 0 1rem; font-size: 1rem; line-height: 1.75; color: var(--ink); max-width: 70ch; }
.step figure { grid-column: 1 / -1; margin: 0; }
.step img {
    display: block; width: 100%; height: auto; background: var(--page);
    border: 1px solid var(--shot-line); border-radius: 6px; box-shadow: var(--shot-shadow);
}
details.video { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem; margin: 0 0 1.5rem; }
details.video summary { cursor: pointer; font-weight: 600; color: var(--strong); }
details.video video { width: 100%; margin-top: .75rem; border-radius: 6px; background: #000; }
.warn { background: var(--warn-bg); color: var(--ink); border: 1px solid #f79428; border-radius: 6px; padding: .75rem 1rem; margin: 0 0 1.5rem; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin: 2rem 0 0; }
.pager a {
    display: inline-flex; align-items: center; min-height: 36px; padding: 6px 16px; max-width: 100%;
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: 6px;
    font-weight: 600; text-decoration: none;
}
.pager a:hover { background: var(--hover); }
.pager a[rel="next"] { margin-left: auto; }

.site-footer { background: #041c59; color: rgba(255, 255, 255, 0.82); padding: 44px 64px 24px; }
.site-footer a:focus-visible { outline-color: #f79428; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; padding-bottom: 28px; }
.site-footer__brand { max-width: 340px; }
.site-footer__logos { display: inline-flex; align-items: center; gap: 14px; padding: 6px 12px; border-radius: 8px; background: #fff; }
.site-footer__ncb { display: block; height: 36px; width: auto; }
.site-footer__mark { display: block; height: 44px; width: auto; }
.site-footer__tagline { margin: 14px 0 0; font-size: .9rem; line-height: 1.55; color: rgba(255, 255, 255, 0.7); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 40px; }
.site-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.site-footer__heading {
    margin: 0 0 3px; color: #f79428; font-family: "Geist Mono", monospace; font-size: .62rem; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase;
}
.site-footer__col a { color: rgba(255, 255, 255, 0.82); font-size: .9rem; text-decoration: none; }
.site-footer__col a:hover { color: #fff; text-decoration: underline; }
.site-footer__bar {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: .78rem; color: rgba(255, 255, 255, 0.55);
}
.site-footer__bar p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
    .card { transition: none; }
    .card:hover { transform: none; }
}
@media (max-width: 1179px) {
    .site-logo__ncb { height: 25px; }
    .site-logo__learn { height: 30px; }
}
@media (max-width: 699.98px) {
    .site-header__bar { min-height: 56px; padding: 8px 10px; gap: 4px; }
    .site-logo { gap: 8px; }
    .site-logo__ncb { height: 20px; }
    .site-logo__learn { height: 24px; padding-left: 8px; }
}
@media (max-width: 599.98px) {
    .toplink--store { display: none; }
    .page { padding: 0 16px 2rem; }
    h1 { font-size: 1.5rem; }
    .step { grid-template-columns: 1fr; padding: 16px; }
    .step .num { margin-bottom: .5rem; }
    .site-footer { padding: 32px 24px 20px; }
}
@media print {
    :root, :root[data-theme="dark"], :root:not([data-theme="light"]) {
        --scheme: light;
        --page: #f7f7f7;
        --surface: #ffffff;
        --ink: rgba(0, 0, 0, 0.8);
        --strong: rgba(0, 0, 0, 0.9);
        --weak: rgba(0, 0, 0, 0.7);
        --line: rgba(4, 28, 89, 0.1);
        --line-strong: rgba(4, 28, 89, 0.18);
        --primary: #041c59;
        --on-primary: #ffffff;
        --link: #0044ff;
        --focus: #0044ff;
        --hover: rgba(0, 0, 0, 0.06);
        --shadow: rgba(4, 28, 89, 0.16);
        --header-bg: #ffffff;
        --header-ink: #1d1d1d;
        --header-line: rgba(0, 0, 0, 0.12);
        --shot-line: rgba(0, 0, 0, 0.12);
        --shot-shadow: 0 2px 8px rgba(4, 28, 89, 0.1);
        --warn-bg: #fff4e5;
        --light-only: block;
        --dark-only: none;
    }
    body { background: #fff; font-size: 11pt; }
    .site-header { border-bottom: 2px solid #041c59; }
    .skip, .toplink, .theme-toggle, nav.crumbs, details.video, .pager, .site-footer__top { display: none; }
    .site-footer { background: none; color: #000; padding: 1rem 0 0; }
    .site-footer__bar { color: #000; border-top: 1px solid #000; }
    .card:hover { transform: none; box-shadow: none; }
    .step { border: none; padding: 0; break-inside: avoid; page-break-inside: avoid; }
    .step .num { background: none; color: #041c59; border: 2px solid #041c59; }
    .step img { box-shadow: none; }
    a { color: inherit; text-decoration: none; }
}
.yt { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem; margin: 0 0 1.5rem; }
.yt-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt figcaption { margin-top: .5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; }
.yt-name { font-weight: 600; color: var(--strong); }
.videos { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.videos .yt { margin: 0; height: 100%; }
.playlist { margin: 0 0 2rem; }
@media print {
    .yt-frame { display: none; }
}
