/* Drone License Canada — one stylesheet. Tokens follow the Canada RPAS Drone Exams app. */
@font-face { font-family: "Figtree"; src: url("/static/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --bg: #F6F2F1; --surface: #FFFFFF; --surface-2: #FBF8F7; --ink: #1C1719; --ink-2: #5B5155; --muted: #6F6569;
  --line: #EADFDF; --line-2: #D8C6C7;
  --brand: #B0132B; --brand-ink: #8A0F24; --brand-soft: #FCEEF0; --brand-tint: #F7D9DD; --on-brand: #FFFFFF;
  --sky: #2C6CB0; --sky-soft: #E3EEF9; --ok: #1C7C54; --ok-soft: #DFF2E8; --warn: #A86400; --warn-soft: #FBEFD8;
  --bad: #C22A1F; --bad-soft: #FBE3E0; --amber: #E9A13B;
  --night: #1D1619; --night-2: #2A1C21;
  --radius: 14px; --radius-lg: 22px; --shadow: 0 1px 2px rgba(42, 11, 20, .06), 0 8px 24px rgba(42, 11, 20, .06);
  --wrap: 1180px; --prose: 720px;
  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
[hidden] { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120D0F; --surface: #1D1619; --surface-2: #231A1E; --ink: #F5EEF0; --ink-2: #C4B8BC; --muted: #A0939A;
    --line: #34282C; --line-2: #4A3A3F; --brand: #E0485F; --brand-ink: #F07A8C; --brand-soft: #2A1C21; --brand-tint: #3A2128;
    --sky: #7FB2E6; --sky-soft: #1B2633; --ok: #5BC495; --ok-soft: #15291F; --warn: #E9A13B; --warn-soft: #2C2213;
    --bad: #F07A6E; --bad-soft: #301A18; --night: #0B0809; --night-2: #1D1619;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25); color-scheme: dark;
  }
  .ill img, .hero-ill img, .card-ill img { filter: brightness(.92) saturate(.95); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--font); font-feature-settings: "tnum" 0; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 750; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; } .center { text-align: center; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; background: var(--brand); color: var(--on-brand); border: 0; border-radius: 999px; padding: .78em 1.35em; font: 650 1rem/1.1 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--brand-ink); color: var(--on-brand); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); }
.btn-sm { padding: .55em 1em; font-size: .92rem; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-tag { font-size: .74rem; color: var(--muted); font-weight: 550; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current] { background: var(--surface); color: var(--ink); }
.nav a[aria-current] { box-shadow: inset 0 0 0 1px var(--line); }
.hdr-actions { display: flex; align-items: center; gap: 8px; }
.lang { font-weight: 700; font-size: .85rem; color: var(--ink-2); text-decoration: none; padding: 7px 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.lang:hover { color: var(--ink); background: var(--surface); }
.menu-btn { display: none; background: none; border: 0; width: 42px; height: 42px; border-radius: 10px; cursor: pointer; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; margin: auto; transition: transform .2s; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.menu-btn[aria-expanded="true"] .burger { background: transparent; }
.menu-btn[aria-expanded="true"] .burger::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 960px) {
  .brand-tag { display: none; }
  .menu-btn { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 66px; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 14px 16px; }
  .nav a { padding: 12px; font-size: 1.05rem; border-radius: 10px; }
}
@media (max-width: 520px) { .hdr-cta { display: none; } .brand-name { font-size: .98rem; } }

/* Page head */
.page-head { padding: 26px 0 18px; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-2); text-decoration: none; } .crumbs a:hover { color: var(--brand); text-decoration: underline; }
.kicker { text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 750; color: var(--brand); margin-bottom: .6em; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 760px; line-height: 1.55; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--muted); margin: 0; }
.meta-line a { color: var(--muted); }
.head-grid.with-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: center; }
.hero-ill img { border-radius: var(--radius-lg); }
@media (max-width: 860px) { .head-grid.with-hero { grid-template-columns: 1fr; } .hero-ill { max-width: 460px; } }

/* Page body: prose + sticky table of contents */
.page-body { display: grid; gap: 48px; padding-top: 18px; padding-bottom: 32px; }
.page-body.has-toc { grid-template-columns: 240px minmax(0, 1fr); }
.page-body.no-toc .prose { max-width: 820px; }
.toc { position: sticky; top: 88px; align-self: start; font-size: .9rem; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.toc-h { font-weight: 750; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--brand); border-left-color: var(--brand); font-weight: 650; }
@media (max-width: 960px) {
  .page-body.has-toc { grid-template-columns: 1fr; gap: 8px; }
  .toc { position: static; max-height: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
}

/* Prose */
.prose { min-width: 0; max-width: var(--prose); }
.prose > * + h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--brand); }
.prose strong { font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose code { font-size: .92em; background: var(--surface); padding: .1em .35em; border-radius: 5px; border: 1px solid var(--line); }
sup.cite { font-size: .68em; line-height: 0; margin-left: 1px; white-space: nowrap; }
sup.cite a { text-decoration: none; font-weight: 700; color: var(--sky); }

/* Components authors use */
.tldr { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 1.6em; box-shadow: var(--shadow); }
.tldr > :last-child { margin-bottom: 0; }
.tldr-h { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-bottom: .4em; }
.callout { background: var(--sky-soft); border-radius: var(--radius); padding: 16px 20px; margin: 1.4em 0; }
.callout.warn { background: var(--warn-soft); }
.callout.ok { background: var(--ok-soft); }
.callout > :last-child { margin-bottom: 0; }
.callout-h { font-weight: 750; margin-bottom: .3em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 1.4em 0; padding: 0; list-style: none; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0; }
.facts li::marker { content: none; }
.facts b { display: block; font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.facts span { font-size: .9rem; color: var(--ink-2); }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding: 2px 0 14px 54px; margin: 0; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 800; display: grid; place-items: center; }
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: var(--line); }
.steps > li > strong:first-child { display: block; font-size: 1.08rem; }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.data { border-collapse: collapse; width: 100%; font-size: .95rem; }
table.data th, table.data td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--surface-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
table.data tr:last-child td { border-bottom: 0; }
table.data td:first-child { font-weight: 600; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.4em 0; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.box > :last-child { margin-bottom: 0; }
.box h3 { margin-top: 0; }
.do li::marker { content: "✓  "; color: var(--ok); } .dont li::marker { content: "✕  "; color: var(--bad); }
.ill { margin: 1.6em 0; }
.ill img { border-radius: var(--radius); width: 100%; }
.ill figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.2em 0; }
details.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 10px 0; }
details.faq summary { cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 650; list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 1.4rem; color: var(--brand); transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq > div { padding: 0 18px 4px; }
.badge { display: inline-block; font-size: .74rem; font-weight: 750; padding: 2px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); vertical-align: middle; }
.badge.new { background: var(--ok-soft); color: var(--ok); }
.updated-note { font-size: .88rem; color: var(--muted); }

/* Sources */
.sources { margin-top: 3em; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: .9rem; }
.sources h2 { font-size: 1.15rem; }
.sources ol { padding-left: 1.4em; }
.sources li { margin: .35em 0; }
.src-sec { color: var(--muted); font-size: .85em; }
.src-list li { margin: .35em 0; }

/* Related + app */
.related { margin: 8px 0 28px; }
.related h2 { font-size: 1.2rem; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.rel-card { display: flex; justify-content: space-between; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--ink); text-decoration: none; font-weight: 650; transition: border-color .15s, transform .15s; }
.rel-card:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-1px); }
.rel-card span:last-child { color: var(--brand); }
.app-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: end; background: var(--night); color: #F5EEF0; border-radius: var(--radius-lg); padding: 30px 34px 0; margin: 20px 0 44px; overflow: hidden; position: relative; }
.app-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 0%, rgba(176, 19, 43, .45), transparent 70%); pointer-events: none; }
.app-card-text { position: relative; padding-bottom: 30px; }
.app-card .app-icon { border-radius: 15px; margin-bottom: 14px; }
.app-card-title { color: #fff; font-size: 1.6rem; }
.app-card p { color: #D8CCD0; }
.app-card .app-free { color: #fff; font-weight: 650; font-size: .95rem; }
.app-more { color: #fff; font-weight: 650; display: inline-block; margin-top: 12px; }
.app-more:hover { color: #F7D9DD; }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 210px); gap: 18px; overflow-x: auto; padding: 6px 2px 16px; scroll-snap-type: x mandatory; margin: 20px 0; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #000; }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.35; }
.app-card-shot { position: relative; align-self: end; display: flex; justify-content: center; }
.app-card-shot img { width: 230px; border-radius: 26px 26px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .4); }
@media (max-width: 760px) { .app-card { grid-template-columns: 1fr; padding: 24px 22px 0; } .app-card-shot img { width: 200px; } }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #1C1719; padding: 10px 16px; border-radius: 12px; text-decoration: none; font-weight: 700; }
.store:hover { background: #F7D9DD; color: #1C1719; }
.store svg { width: 20px; height: 20px; fill: currentColor; }
.app-mini { background: var(--brand-soft); border-radius: var(--radius); padding: 12px 16px; margin: 1.6em 0; font-size: .96rem; }
.app-mini a { font-weight: 700; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 44px 0 26px; margin-top: 30px; font-size: .92rem; }
.f-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; }
.f-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.f-disc { color: var(--muted); margin-top: 14px; font-size: .86rem; }
.official { font-weight: 650; color: var(--ink) !important; }
.f-legal { color: var(--muted); font-size: .84rem; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .f-grid { grid-template-columns: 1fr 1fr; } .f-brand { grid-column: 1 / -1; } }

/* Home */
.hero { padding: 40px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lede { font-size: 1.25rem; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--ink-2); margin-top: 18px; padding: 0; list-style: none; }
.trust li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 6px; }
.hero-art { position: relative; }
.hero-art > img { border-radius: 28px; box-shadow: var(--shadow); }
.exam-chip { position: absolute; left: -22px; bottom: -22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow); min-width: 230px; }
.exam-chip b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.exam-chip .nums { display: flex; gap: 16px; margin-top: 6px; }
.exam-chip .nums span { font-size: .8rem; color: var(--muted); line-height: 1.2; }
.exam-chip .nums strong { display: block; font-size: 1.4rem; color: var(--ink); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .exam-chip { left: 12px; bottom: -18px; } }
.section { padding: 46px 0; }
.section-h { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.section-h h2 { margin: 0; }
.section-h p { margin: 6px 0 0; color: var(--ink-2); max-width: 640px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.card:hover { border-color: var(--brand); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-ill img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.25rem; }
.card-body p { margin: 0; color: var(--ink-2); font-size: .96rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.pill { font-size: .78rem; font-weight: 650; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--ink-2); }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tool { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--ink); text-decoration: none; }
.tool:hover { border-color: var(--brand); color: var(--ink); }
.tool-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.3rem; }
.tool h3 { font-size: 1.02rem; margin: 0 0 4px; }
.tool p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.path { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: p; list-style: none; padding: 0; margin: 0; }
.path li { counter-increment: p; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: relative; }
.path li::before { content: counter(p); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 10px; }
.path b { display: block; margin-bottom: 4px; }
.path span { font-size: .9rem; color: var(--ink-2); }
@media (max-width: 900px) { .path { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .path { grid-template-columns: 1fr; } }

/* Widgets: practice exam / quiz */
.widget { margin: 1.6em 0; }
.qz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.qz-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; font-size: .92rem; color: var(--ink-2); }
.qz-timer { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; }
.qz-timer.low { color: var(--bad); border-color: var(--bad); }
.qz-bar { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 18px; }
.qz-bar i { display: block; height: 100%; background: var(--brand); transition: width .25s; }
.qz-dom { font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; color: var(--brand); margin-bottom: 6px; }
.qz-stem { font-size: 1.15rem; font-weight: 650; margin-bottom: 16px; line-height: 1.45; }
.qz-opts { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.qz-opt { width: 100%; text-align: left; display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .12s, background .12s; }
.qz-opt:hover:not([disabled]) { border-color: var(--line-2); background: var(--surface); }
.qz-opt .l { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: var(--surface); border: 1px solid var(--line-2); }
.qz-opt[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.qz-opt[aria-pressed="true"] .l { background: var(--brand); color: #fff; border-color: var(--brand); }
.qz-opt.right { border-color: var(--ok); background: var(--ok-soft); }
.qz-opt.right .l { background: var(--ok); color: #fff; border-color: var(--ok); }
.qz-opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.qz-opt.wrong .l { background: var(--bad); color: #fff; border-color: var(--bad); }
.qz-opt[disabled] { cursor: default; }
.qz-why { background: var(--surface-2); border-left: 4px solid var(--sky); border-radius: 10px; padding: 12px 14px; font-size: .96rem; margin-bottom: 14px; }
.qz-nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.qz-grid { display: flex; flex-wrap: wrap; gap: 5px; margin: 16px 0 0; }
.qz-grid button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); font: 650 .8rem var(--font); color: var(--ink-2); cursor: pointer; }
.qz-grid button.done { background: var(--brand-soft); border-color: var(--brand-tint); color: var(--brand-ink); }
.qz-grid button.cur { outline: 2px solid var(--brand); }
.qz-grid button.flag { box-shadow: inset 0 -3px 0 var(--amber); }
.qz-start { display: grid; gap: 16px; }
.qz-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.qz-mode { text-align: left; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface-2); cursor: pointer; font: inherit; color: var(--ink); }
.qz-mode:hover { border-color: var(--line-2); }
.qz-mode[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.qz-mode b { display: block; margin-bottom: 2px; }
.qz-mode span { font-size: .9rem; color: var(--ink-2); }
.qz-result { text-align: center; padding: 8px 0 4px; }
.qz-score { font-size: 3.4rem; font-weight: 850; letter-spacing: -.03em; line-height: 1; }
.qz-score.pass { color: var(--ok); } .qz-score.fail { color: var(--bad); }
.qz-verdict { font-weight: 750; font-size: 1.15rem; margin: 6px 0 14px; }
.qz-domains { text-align: left; margin: 18px 0; display: grid; gap: 8px; }
.qz-drow { display: grid; grid-template-columns: 1fr 120px 52px; gap: 10px; align-items: center; font-size: .92rem; }
.qz-dbar { height: 8px; background: var(--line); border-radius: 8px; overflow: hidden; }
.qz-dbar i { display: block; height: 100%; background: var(--ok); }
.qz-dbar i.mid { background: var(--amber); } .qz-dbar i.low { background: var(--bad); }
.qz-review { text-align: left; margin-top: 18px; }
.qz-review details { border: 1px solid var(--line); border-radius: 12px; margin: 8px 0; background: var(--surface-2); }
.qz-review summary { cursor: pointer; padding: 10px 14px; font-weight: 600; }
.qz-review .body { padding: 0 14px 10px; font-size: .95rem; }
.qz-mark { font-weight: 800; margin-right: 6px; } .qz-mark.ok { color: var(--ok); } .qz-mark.no { color: var(--bad); }
.qz-cta { background: var(--brand-soft); border-radius: 14px; padding: 16px; margin-top: 18px; text-align: left; }
@media (max-width: 520px) { .qz { padding: 16px; } .qz-drow { grid-template-columns: 1fr 70px 44px; } }

/* Finder + tools */
.fd-q { font-weight: 750; font-size: 1.15rem; margin-bottom: 4px; }
.fd-help { color: var(--ink-2); font-size: .93rem; margin-bottom: 14px; }
.fd-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.fd-step { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.fd-answers { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.fd-answers button { font: 600 .82rem var(--font); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--ink-2); cursor: pointer; }
.fd-result h3 { font-size: 1.5rem; margin: 4px 0 10px; }
.fd-result ul { padding-left: 1.2em; }
.tool-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 650; font-size: .95rem; }
.field input, .field select { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface-2); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus { border-color: var(--sky); outline: none; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.out { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-top: 8px; }
.out .big { font-size: 2rem; font-weight: 850; letter-spacing: -.02em; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.check label { cursor: pointer; }
.check small { display: block; color: var(--muted); }
.cl-group h3 { margin: 1.2em 0 .4em; font-size: 1.05rem; }
.cl-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cl-progress { font-weight: 700; color: var(--ok); }
.metar-in { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1rem; }
.metar-out dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.metar-out dt { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; color: var(--brand); }
.metar-out dd { margin: 0; }

/* Questions + glossary */
.qa-list { list-style: none; padding: 0 !important; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 12px 0 !important; }
.q-stem { font-weight: 650; margin-bottom: 8px; }
.q-n { color: var(--brand); margin-right: 4px; }
.q-choices { list-style: none; padding: 0 !important; margin: 0 0 8px !important; }
.q-choices li { margin: 4px 0; display: flex; gap: 8px; }
.opt { flex: none; font-weight: 800; color: var(--ink-2); width: 18px; }
.q-ans summary { cursor: pointer; color: var(--brand); font-weight: 650; font-size: .95rem; }
.q-ans p { margin: 8px 0 0; font-size: .96rem; }
.g-tools { position: sticky; top: 66px; background: var(--bg); padding: 12px 0; z-index: 5; }
.g-tools input { font: inherit; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink); }
.g-letters { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.g-letters a { font-weight: 700; font-size: .85rem; padding: 3px 8px; border-radius: 6px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); }
.glossary dl { margin: 0; }
.g-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.g-item dt { font-weight: 750; }
.g-alt { font-weight: 500; color: var(--muted); font-size: .9em; margin-left: 6px; }
.g-alt::before { content: "· "; }
.g-item dd { margin: 4px 0 0; color: var(--ink-2); }

/* Print: checklists and cheat sheet print cleanly */
@media print {
  .site-header, .site-footer, .toc, .related, .app-card, .app-mini, .crumbs, .cl-actions, .meta-line, .skip, .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-body { display: block; padding: 0; } .prose { max-width: none; }
  .tool-box, .box, .tldr, .facts li { box-shadow: none; border-color: #999; }
  a { color: #000; text-decoration: none; }
  .sources a::after { content: " (" attr(href) ")"; font-size: 8pt; word-break: break-all; }
  h2 { break-after: avoid; } .check, .facts li { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---- mobile "get the app" banner */
.app-banner { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 6px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 40px rgba(42, 11, 20, .24);
  transform: translateY(150%); transition: transform .35s ease; }
.app-banner.show { transform: none; }
.app-banner img { flex: none; width: 48px; height: 48px; border-radius: 12px; }
.ab-text { flex: 1; min-width: 0; line-height: 1.25; }
.ab-text strong { display: block; font-size: 14.5px; line-height: 1.2; }
.ab-text span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ab-close { flex: none; width: 30px; height: 30px; border: 0; background: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.ab-get { flex: none; }
body.has-app-banner { padding-bottom: 86px; }
body.in-exam .app-banner { display: none; }
@media (min-width: 900px) { .app-banner { display: none !important; } body.has-app-banner { padding-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { .app-banner { transition: none; } }
@media print { .app-banner { display: none !important; } }
