
:root {
  --paper: #f4efe6;
  --surface: #fbf8f1;
  --surface-2: #ebe4d5;
  --surface-3: #e2d8c7;
  --ink: #2b261f;
  --muted: #6b6255;
  --line: #dcd1bd;
  --blue: #1f4e79;
  --blue-2: #173b5c;
  --teal: #2f665f;
  --amber: #8a551b;
  --violet: #66528d;
  --red: #a23328;
  --green: #35672d;
  --focus: #1f4e79;
  --logo-ink: #ffffff;
  --logo-paper: #f4efe6;
  --shadow: 0 14px 42px rgba(70, 56, 34, .12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #0b1220;
  --surface: #131d33;
  --surface-2: #0f1830;
  --surface-3: #1b2946;
  --ink: #edf2fb;
  --muted: #a5b2ca;
  --line: #273757;
  --blue: #89b4ff;
  --blue-2: #a8c9ff;
  --teal: #7fc8b8;
  --amber: #f1bd58;
  --violet: #b49ce6;
  --red: #ff9f99;
  --green: #86d3a4;
  --focus: #f1bd58;
  --logo-ink: #0b1220;
  --logo-paper: #0b1220;
  --shadow: 0 14px 42px rgba(0, 0, 0, .34);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { width: 100%; scroll-behavior: smooth; }
body { width: 100%; min-width: 0; margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; overscroll-behavior: none; }
.lang-en { display: none !important; }
html[lang="en"] .lang-es { display: none !important; }
html[lang="en"] .lang-en,
html[lang="es"] .lang-es { display: block !important; }
button, select { font: inherit; color: inherit; }
button, a, select, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[data-page-title][tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; z-index: 999; top: -80px; left: 16px; background: var(--ink); color: var(--paper); padding: 11px 16px; border-radius: 9px; font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 12px; }

.boot-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 24px; text-align: center; }
.boot-screen h1 { margin: 8px 0 0; font: 600 clamp(34px, 7vw, 58px)/1 var(--serif); }
.boot-screen p { color: var(--muted); }
.boot-mark { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px 18px 18px 4px; color: white; background: linear-gradient(145deg, var(--blue), var(--blue-2)); font: 700 28px var(--serif); box-shadow: var(--shadow); }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
.topbar { position: sticky; z-index: 100; top: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 74px; padding: 11px clamp(16px, 4vw, 62px); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(18px); }
.brand { display: inline-flex; width: 100%; min-width: 0; min-height: 44px; align-items: center; gap: 11px; overflow: hidden; border: 0; padding: 0; background: transparent; text-align: left; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px 13px 13px 4px; background: linear-gradient(145deg, var(--blue), var(--blue-2)); color: white; box-shadow: 0 8px 20px color-mix(in srgb, var(--blue) 25%, transparent); font: 700 21px var(--serif); }
.brand-copy { min-width: 0; overflow: hidden; }
.brand-copy strong, .brand-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-copy strong { font-size: 13px; letter-spacing: -.02em; }
.brand-copy small { margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.primary-nav { display: flex; align-items: center; gap: 3px; }
.nav-button { min-height: 40px; border: 0; border-radius: 10px; padding: 8px 11px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; white-space: nowrap; }
.nav-button:hover, .nav-button[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.nav-button[aria-current="page"] { box-shadow: inset 0 -2px var(--blue); }
.header-tools { min-width: 0; justify-self: end; display: flex; flex: 0 0 auto; gap: 7px; }
.tool-button { min-width: 44px; min-height: 44px; height: 44px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); font-size: 11px; font-weight: 900; }
.tool-button:hover { border-color: var(--blue); color: var(--blue); }

#main-content { flex: 1; }
.wrap { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.narrow { width: min(880px, calc(100% - 36px)); margin-inline: auto; }
.page { min-height: calc(100vh - 150px); padding-block: 58px 88px; }
.page-header { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.page-header h1, .hero h1 { font-family: var(--serif); font-weight: 600; letter-spacing: -.04em; }
.page-header h1 { margin: 13px 0 10px; font-size: clamp(39px, 5vw, 63px); line-height: 1; }
.page-header p { max-width: 800px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 44px 0 18px; }
.section-heading h2 { margin: 7px 0 0; font: 600 30px/1.1 var(--serif); letter-spacing: -.025em; }
.section-heading p { max-width: 680px; margin: 8px 0 0; color: var(--muted); font-size: 12px; }

.hero { min-height: 610px; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr); align-items: center; gap: clamp(40px, 8vw, 105px); padding-block: 68px; position: relative; }
.hero::after { content: ""; position: absolute; z-index: -1; width: 480px; height: 480px; right: -120px; top: 20px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--blue) 15%, transparent), transparent 68%); }
.hero h1 { max-width: 760px; margin: 17px 0 22px; font-size: clamp(45px, 6.5vw, 82px); line-height: .98; }
.hero-copy > p { max-width: 650px; margin: 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.7; }
.hero-actions, .action-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; color: var(--muted); font-size: 10px; font-weight: 750; }
.decision-card { min-height: 390px; display: grid; place-items: center; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 34px 34px 34px 9px; background: linear-gradient(145deg, var(--surface), var(--surface-2)); box-shadow: var(--shadow); }
.decision-card::before { content: ""; position: absolute; inset: 28px; border: 1px dashed color-mix(in srgb, var(--blue) 32%, var(--line)); border-radius: 50%; }
.decision-stack { width: 210px; height: 210px; display: grid; place-items: center; position: relative; border: 1px solid var(--line); border-radius: 50%; }
.decision-stack::before, .decision-stack::after { content: ""; position: absolute; background: var(--line); }
.decision-stack::before { width: 1px; height: 100%; }
.decision-stack::after { width: 100%; height: 1px; }
.decision-stack > b { width: 84px; height: 84px; display: grid; place-items: center; z-index: 2; border-radius: 50%; background: var(--ink); color: var(--paper); font: 600 32px var(--serif); }
.orbit-label { position: absolute; z-index: 3; min-width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; color: white; font-size: 10px; font-weight: 900; }
.orbit-label.r { right: -22px; background: var(--teal); }
.orbit-label.c { bottom: -22px; background: var(--amber); }
.orbit-label.g { left: -22px; background: var(--violet); }
.decision-caption { position: absolute; left: 26px; bottom: 22px; display: grid; gap: 4px; }
.decision-caption small { color: var(--muted); font-size: 8px; letter-spacing: .13em; }
.decision-caption strong { font-size: 11px; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); padding-inline: max(18px, calc((100vw - 1180px) / 2)); border-block: 1px solid var(--line); background: var(--surface); }
.metric { min-height: 102px; display: flex; flex-direction: column; justify-content: center; padding: 23px 28px; border-left: 1px solid var(--line); }
.metric:last-child { border-right: 1px solid var(--line); }
.metric strong { font: 600 31px var(--serif); }
.metric span { margin-top: 4px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.route-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-block: 62px 82px; }
.route-card { min-width: 0; min-height: 325px; padding: 32px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 23px; background: var(--surface); box-shadow: 0 8px 25px rgba(24, 45, 78, .045); }
.route-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--blue); }
.route-card.grc::before { background: var(--teal); }
.route-card h2 { margin: 16px 0 11px; font: 600 35px var(--serif); }
.route-card p { max-width: 55ch; color: var(--muted); font-size: 13px; line-height: 1.65; }
.route-number { position: absolute; right: 24px; top: 17px; color: color-mix(in srgb, var(--ink) 10%, transparent); font: 500 48px var(--serif); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 24px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: 9px; font-weight: 850; }
.chip b { color: var(--blue); }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid transparent; border-radius: 11px; padding: 10px 16px; font-size: 11px; font-weight: 850; text-decoration: none; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button.primary { background: var(--blue); color: white; box-shadow: 0 9px 22px color-mix(in srgb, var(--blue) 23%, transparent); }
:root[data-theme="dark"] .button.primary { color: #07101e; }
.button.primary:hover:not(:disabled) { background: var(--blue-2); }
.button.secondary { border-color: color-mix(in srgb, var(--blue) 24%, var(--line)); background: var(--surface); color: var(--ink); }
.button.secondary:hover:not(:disabled) { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 7%, var(--surface)); color: var(--blue); }
.button.ghost { min-height: 38px; padding: 7px 10px; border-color: transparent; background: transparent; color: var(--blue); }
.button.danger { border-color: color-mix(in srgb, var(--red) 58%, var(--line)); background: color-mix(in srgb, var(--red) 7%, var(--surface)); color: var(--red); }
.button.danger:hover:not(:disabled) { border-color: var(--red); background: color-mix(in srgb, var(--red) 13%, var(--surface)); }
.button.full { width: 100%; }
.text-link { min-height: 44px; border: 0; padding: 8px 2px; background: transparent; color: var(--blue); font-size: 11px; font-weight: 900; }
.text-link:hover { text-decoration: underline; }
.inline-source { color: var(--blue); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.notice { display: grid; grid-template-columns: auto 1fr; gap: 15px; margin: 25px 0; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--amber) 35%, var(--line)); border-left: 4px solid var(--amber); border-radius: 15px; background: color-mix(in srgb, var(--amber) 7%, var(--surface)); }
.notice-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--amber) 14%, var(--surface)); color: var(--amber); font-weight: 900; }
.notice h2, .notice h3 { margin: 0 0 5px; font-size: 13px; }
.notice p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.notice a { color: var(--blue); font-weight: 800; }
.notice.alert { border-color: color-mix(in srgb, var(--red) 35%, var(--line)); border-left-color: var(--red); background: color-mix(in srgb, var(--red) 6%, var(--surface)); }

.callouts { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 13px; margin: 25px 0 48px; }
.callout { display: grid; grid-template-columns: 66px 1fr; gap: 17px; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.callout > b { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); color: var(--blue); font: 600 23px var(--serif); }
.callout h2 { margin: 0 0 5px; font-size: 12px; }
.callout p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.domain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.domain-card { min-width: 0; min-height: 350px; padding: 24px; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); }
.domain-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--domain-color, var(--blue)); }
.domain-top { display: flex; align-items: center; justify-content: space-between; }
.domain-symbol { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--domain-color, var(--blue)); font-size: 21px; }
.domain-code { color: color-mix(in srgb, var(--ink) 22%, transparent); font: 500 29px var(--serif); }
.domain-card h3 { margin: 22px 0 9px; font: 600 22px var(--serif); }
.domain-card > p { min-height: 54px; margin: 0 0 18px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.weight-row { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.weight-row b { color: var(--ink); font-size: 13px; }
.progress-bar { width: 100%; min-width: 0; height: 8px; margin: 8px 0 13px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.progress-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--domain-color, var(--blue)); }
.domain-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 17px; }
.domain-stats span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.domain-stats b { display: block; margin-top: 3px; color: var(--ink); font-size: 11px; }

.panel { margin-top: 24px; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line); border-radius: 21px; background: var(--surface); box-shadow: var(--shadow); }
.practice-picker, .mock-config { display: grid; gap: 18px; }
.choice-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.choice-card { min-height: 82px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); text-align: left; }
.choice-card:hover, .choice-card[aria-pressed="true"] { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 8%, var(--surface)); }
.choice-card b, .choice-card span { display: block; }
.choice-card b { color: var(--blue); font-size: 11px; }
.choice-card span { margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.4; }

.question-card { margin-top: 23px; padding: clamp(21px, 4vw, 36px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.question-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.question-meta > div { display: flex; gap: 5px; }
.code { display: inline-flex; padding: 4px 7px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); color: var(--blue); font-family: var(--sans); font-size: 8px; font-weight: 850; }
.topic { display: block; margin-top: 25px; color: var(--blue); font-size: 9px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.question-card h2 { margin: 9px 0 23px; font: 600 clamp(21px, 3vw, 29px)/1.28 var(--serif); letter-spacing: -.02em; }
.options { display: grid; gap: 9px; margin: 0 0 17px; padding: 0; border: 0; }
.option { width: 100%; min-height: 62px; display: grid; grid-template-columns: 34px 1fr 23px; align-items: center; gap: 12px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); text-align: left; }
.option:hover:not(:disabled), .option[aria-checked="true"] { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 7%, var(--surface)); }
.option.correct { border-color: var(--green); background: color-mix(in srgb, var(--green) 8%, var(--surface)); }
.option.incorrect { border-color: var(--red); background: color-mix(in srgb, var(--red) 7%, var(--surface)); }
.option-letter { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); font-size: 10px; font-weight: 900; }
.option-text { font-size: 12px; line-height: 1.48; }
.option-mark { color: var(--green); font-weight: 900; }
.explanation { margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 13px; background: var(--surface-2); }
.explanation.review { border-left-color: var(--amber); }
.explanation-head { display: flex; justify-content: space-between; gap: 12px; }
.explanation-head strong { color: var(--green); font-size: 11px; }
.explanation.review .explanation-head strong { color: var(--amber); }
.explanation-head span { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.explanation p { margin: 11px 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.source-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 12px; }
.source-chips > span { margin-right: 4px; color: var(--muted); font-size: 8px; font-weight: 850; }
.source-chip { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--blue); font-size: 8px; font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.source-chip:hover { border-color: var(--blue); }

.mock-status { position: sticky; z-index: 40; top: 82px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 16px; padding: 12px 16px; border-radius: 13px; background: var(--ink); color: var(--paper); font-size: 9px; }
.mock-status span:nth-child(2) { text-align: center; }
.mock-status time { text-align: right; font-weight: 900; }
.mock-status time.urgent { color: #ffd166; }
.mock-nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 11px; margin-top: 14px; }
.mock-nav > div { min-width: 0; }
.question-map { max-height: 188px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; overflow: auto; overscroll-behavior: contain; padding: 3px; }
.map-button { width: 44px; min-width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); font-size: 10px; }
.map-button.answered { border-color: color-mix(in srgb, var(--blue) 34%, var(--line)); background: color-mix(in srgb, var(--blue) 10%, var(--surface)); color: var(--blue); }
.map-button.current { background: var(--blue); color: white; }
.map-legend { display: block; margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.45; text-align: center; }
.mock-submit-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin-top: 13px; }
.config-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 7px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.field select { width: 100%; min-width: 0; min-height: 46px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.distribution { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.distribution span { padding: 10px; border-radius: 10px; background: var(--surface-2); font-size: 10px; font-weight: 850; text-align: center; }
.distribution b { display: block; margin-top: 3px; color: var(--blue); font-size: 13px; }

.result-card { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 34px; margin-top: 26px; padding: 36px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.score-ring { --score: 0deg; width: 158px; height: 158px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--blue) var(--score), var(--surface-2) 0); }
.score-ring::before { content: ""; width: 124px; height: 124px; grid-area: 1/1; border-radius: 50%; background: var(--surface); }
.score-value { z-index: 1; grid-area: 1/1; display: grid; text-align: center; }
.score-value strong { font: 600 33px var(--serif); }
.score-value small { color: var(--muted); }
.result-card h2 { margin: 7px 0 12px; font: 600 33px var(--serif); }
.result-card p { max-width: 610px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.breakdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-block: 16px; }
.breakdown-card { padding: 10px; border-radius: 10px; background: var(--surface-2); font-size: 11px; }
.breakdown-card b, .breakdown-card small { display: block; }
.breakdown-card small { margin-top: 3px; color: var(--muted); }
.level-changes { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.level-change { padding: 7px 9px; border-radius: 8px; background: var(--surface-2); font-size: 9px; }

.review-list { display: grid; gap: 9px; margin-top: 18px; }
.review-item { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.review-item summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 15px; cursor: pointer; list-style: none; }
.review-item summary::-webkit-details-marker { display: none; }
.review-status { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); color: var(--amber); font-weight: 900; }
.review-status.good { color: var(--green); }
.review-item summary span { font-size: 11px; font-weight: 750; line-height: 1.45; }
.review-item summary small { color: var(--muted); font-size: 8px; }
.review-body { padding: 0 15px 16px 54px; border-top: 1px solid var(--line); }
.answer-line { margin-top: 11px; padding: 9px 11px; border-radius: 9px; background: var(--surface-2); font-size: 10px; }
.answer-line b { color: var(--blue); }
.review-body p { color: var(--muted); font-size: 11px; line-height: 1.6; }

.grc-feature { display: grid; grid-template-columns: 115px 1fr; align-items: center; gap: 27px; margin-top: 26px; padding: 31px; border: 1px solid var(--line); border-radius: 21px; background: linear-gradient(135deg, var(--surface), var(--surface-2)); }
.grc-symbol { width: 100px; height: 100px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font: 600 42px var(--serif); }
.grc-feature h2 { margin: 9px 0; font: 600 31px var(--serif); }
.grc-feature p { color: var(--muted); font-size: 12px; line-height: 1.6; }
.framework-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.framework-card { min-width: 0; min-height: 215px; padding: 21px; position: relative; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.framework-card > b { position: absolute; right: 16px; top: 10px; color: color-mix(in srgb, var(--ink) 13%, transparent); font: 500 28px var(--serif); }
.framework-card h3 { max-width: 88%; margin: 20px 0 9px; font: 600 19px var(--serif); }
.framework-card p { color: var(--muted); font-size: 10px; line-height: 1.55; }

.filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 25px 0 14px; }
.filter-button { min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 9px; font-weight: 800; }
.filter-button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.guide-list { display: grid; gap: 9px; }
.guide { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.guide summary { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; padding: 21px; cursor: pointer; list-style: none; }
.guide summary::-webkit-details-marker { display: none; }
.guide-index { color: var(--blue); font: 600 21px var(--serif); }
.guide summary small { color: var(--blue); font-size: 8px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.guide summary h2 { margin: 5px 0; font: 600 22px var(--serif); }
.guide summary p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.guide-toggle { color: var(--muted); font-size: 23px; }
.guide-body { padding: 25px 25px 25px 79px; border-top: 1px solid var(--line); background: var(--surface-2); }
.guide-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 19px 27px; }
.guide-sections h3, .key-decisions h3 { margin: 0 0 7px; font-size: 11px; }
.guide-sections p, .key-decisions li { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.key-decisions { margin-top: 23px; padding: 4px 0 4px 16px; border-left: 3px solid var(--teal); }
.key-decisions li { margin-block: 5px; }

.legal-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, .9fr)); gap: 11px; margin-top: 25px; }
.legal-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.legal-card > b { color: var(--blue); font: 600 23px var(--serif); }
.legal-card h2 { margin: 12px 0 8px; font: 600 20px var(--serif); }
.legal-card p { color: var(--muted); font-size: 10px; line-height: 1.65; }
.source-list { display: grid; gap: 8px; }
.source-card { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, .65fr); align-items: center; gap: 16px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.source-card > div { min-width: 0; }
.source-card h3, .source-card p, .source-card span, .source-card small, .source-card a,
.inline-source, .download-card, .guide-body, .review-body, .answer-line { overflow-wrap: anywhere; }
.source-card h3 { margin: 5px 0 2px; font-size: 11px; }
.source-card p, .source-card small { display: block; margin: 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.source-card > div:nth-child(2) > span { display: block; margin-bottom: 4px; font-size: 9px; }
.source-card > div:last-child { text-align: right; }
.source-card a { min-height: 44px; display: inline-flex; align-items: center; margin-top: 6px; color: var(--blue); font-size: 9px; font-weight: 850; }
.downloads { margin-top: 33px; box-shadow: none; }
.download-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 17px; }
.download-card { min-height: 108px; display: flex; flex-direction: column; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); text-align: left; text-decoration: none; }
.download-card b { color: var(--blue); font-size: 9px; }
.download-card span { margin: 12px 0 auto; font-size: 10px; font-weight: 800; }
.download-card small { color: var(--muted); font-size: 8px; }

.empty { margin-top: 24px; padding: 28px; border: 1px dashed var(--line); border-radius: 15px; color: var(--muted); text-align: center; }
.error-card { max-width: 690px; margin: 12vh auto; padding: 30px; border: 1px solid color-mix(in srgb, var(--red) 38%, var(--line)); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.error-card h1 { margin-top: 0; font: 600 37px var(--serif); }
.error-card p, .error-card code { color: var(--muted); }
.error-card code { display: block; padding: 12px; border-radius: 9px; background: var(--surface-2); overflow-wrap: anywhere; }

.footer { min-height: 90px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px 18px; padding: 19px clamp(16px, 4vw, 62px); border-top: 1px solid var(--line); background: var(--surface); }
.footer > strong { font-size: 11px; }
.footer p { min-width: 0; margin: 0; color: var(--muted); font-size: 8px; text-align: center; overflow-wrap: anywhere; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 12px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--blue); font-size: 11px; font-weight: 800; text-underline-offset: 3px; }
.footer button { justify-self: end; width: 44px; min-width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }

/* Readability baseline for compact layouts. */
.brand-copy strong { font-size: 14px; }
.brand-copy small, .metric span, .decision-caption small, .download-card small, .footer p { font-size: 10px; }
.nav-button, .button, .text-link, .notice p, .callout p, .domain-card > p, .option-text, .explanation p, .result-card p, .grc-feature p, .guide summary p, .guide-sections p, .key-decisions li, .review-body p { font-size: 13px; }
.eyebrow, .chip, .weight-row, .question-meta, .topic, .choice-card span, .field, .source-chips > span, .source-chip, .map-button, .level-change, .guide summary small, .filter-button, .download-card b { font-size: 10px; }
.domain-stats span, .explanation-head span, .review-item summary small, .code { font-size: 9px; }
.framework-card p, .legal-card p { font-size: 12px; }
.source-card p, .source-card small { font-size: 11px; line-height: 1.55; }
.source-card > div:nth-child(2) > span { font-size: 11px; line-height: 1.5; }
.source-card > div:nth-child(2) > small + small { margin-top: 5px; }
.source-card .source-aliases { margin-top: 7px; }
.source-card a, .download-card span { font-size: 11px; }
:root[data-theme="dark"] .map-button.current,
:root[data-theme="dark"] .orbit-label,
:root[data-theme="dark"] .brand-mark,
:root[data-theme="dark"] .boot-mark { color: #07101e; }

@media (max-width: 1000px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; }
  .primary-nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; overflow-x: auto; }
  .header-tools { grid-column: 2; grid-row: 1; }
  .hero { grid-template-columns: 1fr; }
  .decision-card { min-height: 330px; }
  .framework-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-grid { grid-template-columns: 1fr 1fr; }
  .legal-card:first-child { grid-column: 1 / -1; }
  .choice-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; padding: 9px 12px; }
  .brand-copy small { display: none; }
  .primary-nav { justify-content: flex-start; margin-inline: -12px; padding-inline: 12px; }
  .nav-button { min-height: 44px; padding: 9px; font-size: 10px; }
  .wrap, .narrow { width: min(100% - 24px, 1180px); }
  .page { padding-block: 38px 70px; }
  .page-header h1 { font-size: 41px; }
  .hero { min-height: auto; gap: 35px; padding-block: 50px; }
  .hero h1 { font-size: clamp(39px, 12vw, 57px); }
  .decision-card { min-height: 290px; }
  .decision-stack { width: 168px; height: 168px; }
  .metrics { grid-template-columns: 1fr 1fr; padding-inline: 12px; }
  .metric { min-height: 85px; padding: 17px; }
  .metric:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .route-grid, .domain-grid, .callouts, .framework-grid, .legal-grid { grid-template-columns: 1fr; }
  .legal-card:first-child { grid-column: auto; }
  .route-card { padding: 25px; }
  .domain-card { min-height: auto; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .question-card { padding: 19px; }
  .question-card h2 { font-size: 22px; }
  .option { grid-template-columns: 31px 1fr 18px; padding: 9px; }
  .option-text { font-size: 14px; }
  .mock-status { top: 70px; grid-template-columns: 1fr 1fr; }
  .mock-status time { grid-column: 1 / -1; text-align: center; }
  .mock-nav { grid-template-columns: 1fr 1fr; }
  .mock-nav > div { grid-row: 2; grid-column: 1 / -1; }
  .config-row { grid-template-columns: 1fr; }
  .result-card { grid-template-columns: 1fr; justify-items: center; padding: 27px; text-align: center; }
  .breakdown { grid-template-columns: 1fr 1fr; width: 100%; text-align: left; }
  .grc-feature { grid-template-columns: 1fr; }
  .grc-symbol { width: 78px; height: 78px; }
  .guide summary { grid-template-columns: 32px 1fr auto; padding: 17px; }
  .guide-body { padding: 21px; }
  .guide-sections { grid-template-columns: 1fr; }
  .source-card { grid-template-columns: 1fr; }
  .source-card > div:last-child { text-align: left; }
  .download-grid { grid-template-columns: 1fr 1fr; }
  .footer { grid-template-columns: minmax(0, 1fr) auto; }
  .footer p, .footer-links { grid-column: 1 / -1; }
  .footer p { text-align: left; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 430px) {
  .brand-copy strong { font-size: 11px; }
  .tool-button { min-width: 44px; min-height: 44px; height: 44px; }
  .hero-actions .button, .action-row .button { width: 100%; }
  .metrics { grid-template-columns: 1fr; }
  .metric { border-top: 1px solid var(--line); }
  .choice-grid, .download-grid { grid-template-columns: 1fr; }
  .distribution { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .question-meta { align-items: flex-start; flex-direction: column; }
  .mock-nav { grid-template-columns: 1fr; }
  .mock-nav > div { grid-row: 2; grid-column: 1; }
  .mock-nav .button { width: 100%; }
  .review-item summary { grid-template-columns: auto 1fr; }
  .review-item summary small { grid-column: 2; }
  .review-body { padding-left: 15px; }
}

/* Compact responsive interface. */
body { background: var(--paper); }
.wrap { width: min(1450px, calc(100% - 48px)); }
.narrow { width: min(1160px, calc(100% - 48px)); }
.page { min-height: calc(100vh - 150px); padding-block: 42px 72px; }
.topbar { grid-template-columns: minmax(0, 1fr) auto; min-height: 76px; padding: 10px clamp(18px, 3vw, 38px); background: color-mix(in srgb, var(--surface) 97%, transparent); }
.brand { min-width: 0; gap: 12px; }
.brand-mark { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 9px 24px color-mix(in srgb, var(--blue) 25%, transparent); font-family: var(--sans); font-size: 19px; font-weight: 900; }
.brand-mark span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.42); border-radius: 10px; }
.brand-copy { min-width: 0; }
.brand-copy strong { font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.brand-copy small { margin-top: 1px; font-size: 11px; font-weight: 600; letter-spacing: 0; }
.header-tools { gap: 9px; }
.tool-button { min-width: 46px; min-height: 46px; height: 46px; border-radius: 999px; background: var(--surface-2); font-size: 13px; }
.language-button { min-width: 68px; padding-inline: 12px; }
.menu-button { font-size: 18px; }
.primary-nav { display: none; }

.menu-layer { position: fixed; z-index: 180; inset: 0; display: grid; grid-template-columns: 1fr minmax(320px, 430px); }
.menu-backdrop { grid-column: 1 / -1; grid-row: 1; border: 0; background: rgba(3, 6, 14, .68); backdrop-filter: blur(5px); }
.menu-panel { z-index: 1; grid-column: 2; grid-row: 1; width: 100%; min-width: 0; height: 100%; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 24px; border-left: 1px solid var(--line); background: var(--surface); box-shadow: -22px 0 60px rgba(0,0,0,.34); }
.menu-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.menu-head h2 { margin: 7px 0 0; font-size: 24px; line-height: 1.1; }
.menu-nav { display: grid; gap: 7px; margin-top: 22px; }
.menu-nav-button { min-height: 56px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 13px; padding: 10px 14px; background: transparent; color: var(--muted); text-align: left; font-weight: 750; }
.menu-nav-button span { color: var(--blue); font-size: 10px; letter-spacing: .1em; }
.menu-nav-button b { color: var(--blue); }
.menu-nav-button:hover, .menu-nav-button[aria-current="page"] { border-color: var(--line); background: var(--surface-2); color: var(--ink); }
.menu-nav-button[aria-current="page"] { box-shadow: inset 3px 0 var(--blue); }
.menu-note { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.55; }

.page-header { max-width: 980px; padding-bottom: 16px; border-bottom: 0; }
.page-header h1, .hero h1, .home-hero h1, .section-heading h2, .route-card h2, .domain-card h3, .callout h2, .framework-card h3, .guide summary h2, .result-card h2, .score-value strong { font-family: var(--sans); }
.page-header h1 { margin: 11px 0 9px; font-size: clamp(35px, 4vw, 48px); font-weight: 800; line-height: 1.05; letter-spacing: -.04em; }
.page-header p { max-width: 900px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.eyebrow { font-size: 11px; letter-spacing: .13em; }
.section-heading { margin: 34px 0 16px; }
.section-heading.compact { margin-top: 30px; }
.section-heading h2 { margin-top: 0; font-size: 21px; font-weight: 800; }
.section-heading p { font-size: 12px; }

.home-dashboard { padding-top: 45px; }
.home-hero { max-width: 960px; }
.home-hero h1 { max-width: 940px; margin: 13px 0 11px; font-size: clamp(38px, 5vw, 60px); font-weight: 850; line-height: 1.03; letter-spacing: -.05em; }
.home-hero > p { max-width: 820px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.62; }
.trust-row { margin-top: 16px; gap: 9px; }
.trust-row span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 11px; }
.master-route-grid { gap: 14px; padding-block: 30px 0; }
.route-card { min-height: 300px; padding: 27px; border-radius: 18px; background: var(--surface); box-shadow: none; }
.route-card::before { height: 3px; background: var(--blue); }
.route-card.route-grc::before { background: var(--violet); }
.route-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.route-badge, .category-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--blue) 14%, var(--surface-2)); color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.route-grc .route-badge { background: color-mix(in srgb, var(--violet) 16%, var(--surface-2)); color: var(--violet); }
.route-glyph { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface-2); color: var(--blue); font-size: 22px; }
.route-grc .route-glyph { color: var(--violet); }
.route-card h2 { margin: 15px 0 8px; font-size: 28px; font-weight: 850; }
.route-card p { margin: 0; font-size: 13px; line-height: 1.6; }
.route-benefits { display: grid; gap: 7px; margin: 18px 0 0; padding: 0; list-style: none; }
.route-benefits li { color: var(--ink); font-size: 12px; }
.route-benefits li::before { content: "✓"; margin-right: 8px; color: var(--green); font-weight: 900; }
.route-card .action-row { margin-top: 20px; }
.button.violet { background: var(--violet); color: #0b0e17; box-shadow: 0 9px 22px color-mix(in srgb, var(--violet) 22%, transparent); }
.button.violet:hover:not(:disabled) { background: color-mix(in srgb, var(--violet) 86%, white); }

.progress-dashboard { margin-top: 28px; }
.progress-overview { display: grid; grid-template-columns: minmax(0, 1.05fr) repeat(2, minmax(0, 1fr)); gap: 13px; }
.progress-card, .progress-panel { min-width: 0; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.progress-card { min-height: 154px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 22px; }
.progress-card > span { color: var(--muted); font-size: 11px; }
.progress-card > strong { font-size: 25px; line-height: 1; }
.readiness-card { display: grid; grid-template-columns: 94px 1fr; align-items: center; gap: 18px; }
.readiness-card b { display: block; font-size: 13px; }
.readiness-card small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.compact-ring { width: 86px; height: 86px; }
.compact-ring::before { width: 68px; height: 68px; }
.compact-ring .score-value strong { font-size: 22px; }
.progress-detail-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 13px; margin-top: 13px; }
.progress-panel { min-height: 250px; padding: 19px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-title h3 { margin: 0; font-size: 17px; }
.domain-progress-list { display: grid; gap: 13px; margin-top: 18px; }
.domain-progress-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 14px; }
.domain-progress-row > div:first-child { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 8px; }
.domain-progress-row b { font-size: 11px; }
.domain-progress-row small { grid-column: 2; color: var(--muted); font-size: 9px; }
.domain-progress-row > strong { color: var(--domain-color); font-size: 11px; }
.domain-progress-row .progress-bar { grid-column: 1 / -1; margin: 0; }
.domain-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--domain-color); }
.grc-progress-metric { display: grid; gap: 8px; margin-top: 24px; }
.grc-progress-metric strong { color: var(--violet); font-size: 44px; line-height: 1; }
.grc-progress-metric span, .grc-progress-panel p { color: var(--muted); font-size: 11px; line-height: 1.55; }
.violet-bar > span { background: var(--violet); }

.notice { border-left-width: 3px; border-radius: 14px; background: var(--surface); }
.callouts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 30px; }
.callout { min-height: 150px; grid-template-columns: 70px 1fr; align-items: start; border-radius: 17px; background: var(--surface); }
.callout > b { background: var(--surface-2); font-family: var(--sans); font-size: 22px; font-weight: 850; }
.callout h2 { font-size: 16px; font-weight: 800; }
.callout p { font-size: 12px; }
.domain-grid { gap: 13px; }
.domain-card { min-height: 285px; padding: 22px; border-radius: 17px; }
.domain-card::before { inset: 0 0 auto; width: auto; height: 3px; }
.domain-symbol { width: 38px; height: 38px; border-radius: 11px; font-size: 18px; }
.domain-weight { color: var(--domain-color); font-size: 18px; font-weight: 900; }
.domain-card h3 { margin: 16px 0 6px; font-size: 20px; font-weight: 800; }
.domain-card > p { min-height: 42px; margin-bottom: 13px; font-size: 12px; }
.domain-stats { margin-bottom: 14px; }
.domain-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.capability-map { min-width: 0; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 25px; margin-top: 17px; padding: 22px; border: 1px solid var(--line); border-left: 3px solid var(--violet); border-radius: 17px; background: var(--surface); }
.capability-map h2 { margin: 7px 0 5px; font-size: 18px; }
.capability-map p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.capability-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.capability-grid span { min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); color: var(--violet); font-size: 14px; }
.capability-grid b { color: var(--ink); font-size: 10px; }
.compact-feature { grid-template-columns: 56px 1fr auto; gap: 17px; margin-top: 13px; padding: 20px; }
.compact-feature .grc-symbol { width: 52px; height: 52px; background: color-mix(in srgb, var(--violet) 18%, var(--surface-2)); color: var(--violet); font-family: var(--sans); font-size: 22px; }
.compact-feature h2 { margin: 3px 0; font-size: 18px; }
.compact-feature p { margin: 0; }
.framework-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.framework-card { min-height: 245px; display: flex; flex-direction: column; padding: 20px; border-radius: 17px; }
.framework-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.framework-card-head > b { color: color-mix(in srgb, var(--ink) 22%, transparent); font-size: 13px; }
.category-chip { min-height: 25px; padding: 4px 8px; letter-spacing: 0; text-transform: none; }
.category-chip.ai { background: color-mix(in srgb, var(--violet) 16%, var(--surface-2)); color: var(--violet); }
.category-chip.security { background: color-mix(in srgb, var(--blue) 15%, var(--surface-2)); color: var(--blue); }
.category-chip.regulation { background: color-mix(in srgb, var(--amber) 15%, var(--surface-2)); color: var(--amber); }
.category-chip.resilience { background: color-mix(in srgb, var(--teal) 15%, var(--surface-2)); color: var(--teal); }
.framework-card h3 { max-width: none; margin: 15px 0 7px; font-size: 17px; font-weight: 800; }
.framework-card p { margin: 0 0 17px; font-size: 11px; }
.framework-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: auto; }
.standards-heading { margin-top: 42px; padding-top: 27px; border-top: 1px solid var(--line); }
.standards-heading > div { max-width: 880px; }
.standards-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.standard-reference { min-width: 0; min-height: 178px; display: flex; flex-direction: column; align-items: flex-start; padding: 18px; border: 1px dashed color-mix(in srgb, var(--muted) 50%, var(--line)); border-radius: 15px; background: color-mix(in srgb, var(--surface-2) 72%, var(--surface)); }
.category-chip.neutral { border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.standard-reference h3 { margin: 15px 0 20px; color: var(--muted); font-size: 15px; font-weight: 750; line-height: 1.42; overflow-wrap: anywhere; }
.standard-reference .button { width: 100%; margin-top: auto; }

.filters { width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.filter-button { min-height: 44px; border: 0; border-radius: 10px; background: transparent; font-size: 11px; }
.filter-button[aria-pressed="true"] { background: var(--surface-2); color: var(--blue); box-shadow: inset 0 -2px var(--blue); }
.guide { border-radius: 14px; }
.guide summary { min-height: 72px; align-items: center; padding: 15px 18px; }
.guide-index { font-family: var(--sans); font-size: 13px; font-weight: 900; }
.guide summary h2 { margin: 3px 0; font-size: 16px; font-weight: 800; }
.guide summary p { font-size: 11px; }
.guide-body { background: var(--surface-2); }

.practice-stage { padding-top: 32px; }
.practice-hint { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 13px 17px; border: 1px solid color-mix(in srgb, var(--blue) 45%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--blue) 8%, var(--surface)); }
.practice-hint > span { color: var(--amber); }
.practice-hint p { margin: 0; color: var(--muted); font-size: 12px; }
.practice-hint b { color: var(--ink); }
.practice-stage .question-card { width: 100%; max-width: 1380px; margin-inline: auto; }
.question-card { min-width: 0; margin-top: 18px; padding: clamp(22px, 3vw, 34px); border-radius: 20px; background: var(--surface); box-shadow: none; }
.session-progress { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.session-progress > div:first-child { display: flex; gap: 6px; }
.session-progress .progress-bar { margin: 0; }
.session-progress > strong { color: var(--muted); font-size: 11px; white-space: nowrap; }
.question-card h2 { max-width: 75ch; margin: 20px 0 22px; font-size: clamp(23px, 2.5vw, 31px); font-family: var(--sans); font-weight: 780; line-height: 1.25; overflow-wrap: anywhere; }
.topic { margin-top: 22px; }
.options { gap: 11px; }
.option { min-width: 0; min-height: 68px; grid-template-columns: 36px minmax(0, 1fr) 24px; padding: 12px 17px; border-radius: 14px; background: var(--surface-2); }
.option:disabled { cursor: default; opacity: 1; }
.option-letter { background: var(--surface); font-size: 12px; }
.option-text { min-width: 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.option[aria-checked="true"] .option-text, .option.correct .option-text, .option.incorrect .option-text { color: var(--ink); }
.explanation { padding: 19px; border: 1px solid var(--green); border-radius: 15px; background: color-mix(in srgb, var(--green) 9%, var(--surface)); }
.explanation p { color: var(--ink); font-size: 13px; }
.answer-check { margin-left: auto; min-width: 230px; }
.question-next { display: flex; justify-content: flex-end; margin-top: 16px; }
.result-card { grid-template-columns: 1fr; justify-items: center; min-height: 330px; text-align: center; box-shadow: none; }
.result-card .action-row { justify-content: center; }
.result-card h2 { font-weight: 800; }
.score-ring { background: conic-gradient(var(--violet) var(--score), var(--surface-2) 0); }
.score-value strong { font-weight: 850; }

.legal-card, .source-card, .panel, .downloads { box-shadow: none; }
.footer { min-height: 82px; background: var(--paper); }
.footer > strong { font-size: 12px; }

@media (max-width: 1050px) {
  .wrap, .narrow { width: min(100% - 40px, 1450px); }
  .progress-overview { grid-template-columns: 1fr 1fr; }
  .readiness-card { grid-row: span 2; }
  .progress-detail-grid, .capability-map { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: repeat(4, 1fr); }
  .framework-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .standards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .footer { grid-template-columns: minmax(0, 1fr) auto; }
  .footer > strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .footer p, .footer-links { grid-column: 1 / -1; }
  .footer p { text-align: left; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; min-height: 62px; gap: 6px; padding: 8px 12px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-copy strong { font-size: 14px; }
  .brand-copy small { display: none; }
  .header-tools { gap: 6px; }
  .tool-button { min-width: 44px; min-height: 44px; height: 44px; }
  .language-button { min-width: 52px; padding-inline: 8px; }
  .menu-layer { grid-template-columns: 1fr; }
  .menu-panel { grid-column: 1; width: min(94vw, 430px); justify-self: end; padding: clamp(16px, 5vw, 24px); }
  .wrap, .narrow { width: min(100% - 24px, 1450px); }
  .page { padding-block: 31px 58px; }
  .home-hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .home-hero > p { font-size: 14px; }
  .master-route-grid, .domain-grid, .framework-grid, .standards-grid, .callouts, .progress-overview, .progress-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .route-card { min-height: auto; }
  .readiness-card { grid-row: auto; }
  .progress-card { min-height: 130px; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .compact-feature { grid-template-columns: 48px 1fr; }
  .compact-feature .button { grid-column: 1 / -1; }
  .domain-actions, .framework-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practice-hint { grid-template-columns: auto minmax(0, 1fr); }
  .practice-hint .action-row { grid-column: 1 / -1; width: 100%; margin-top: 0; }
  .session-progress { grid-template-columns: auto minmax(0, 1fr); }
  .session-progress .progress-bar { grid-column: 1 / -1; grid-row: 2; }
  .question-card h2 { font-size: 22px; }
  .option-text { font-size: 14px; }
  .answer-check { width: 100%; min-width: 0; }
  .filters { grid-template-columns: 1fr; }
  .guide summary p { display: none; }
  .mock-submit-row .button { flex: 1 1 180px; }
}

@media (max-width: 460px) {
  .brand-copy strong { font-size: 12px; }
  .language-button span { display: none; }
  .language-button { min-width: 44px; width: 44px; padding-inline: 0; }
  .route-card .action-row { display: grid; grid-template-columns: 1fr; }
  .route-card .action-row .button, .domain-actions .button, .framework-actions .button { width: 100%; }
  .domain-actions, .framework-actions { grid-template-columns: 1fr; }
  .route-card .action-row .button, .domain-actions .button, .framework-actions .button, .question-next .button { width: 100%; }
  .progress-overview { grid-template-columns: 1fr; }
  .readiness-card { grid-template-columns: 80px 1fr; }
  .capability-grid { grid-template-columns: 1fr; }
  .option { grid-template-columns: 32px 1fr 18px; padding: 10px; }
  .mock-submit-row .button { width: 100%; flex-basis: 100%; }
  .footer { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 12px; }
  .footer-links { gap: 4px 10px; }
}

@media (max-width: 350px) {
  .topbar { padding-inline: 8px; }
  .brand { gap: 8px; }
  .brand-copy strong { font-size: 11px; }
  .route-card, .domain-card, .framework-card, .standard-reference, .progress-panel, .panel { padding-inline: 18px; }
  .question-card { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ========================================================================
   Identidad compartida con jmsegarcv.com, navegación local-first y refinado
   ======================================================================== */

.boot-mark {
  width: 64px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border-radius: 18px 18px 18px 5px;
  background: transparent;
  color: var(--blue);
}
.boot-mark svg { width: 100%; height: 100%; display: block; }

.app-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(16px) saturate(1.08);
}
.header-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
}
.brand { width: auto; }
.brand-mark {
  width: 42px;
  height: 42px;
  padding: 0;
  overflow: hidden;
  border-radius: 13px 13px 13px 4px;
  background: transparent;
  color: var(--blue);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--blue) 20%, transparent);
}
.brand-logo { display: block; width: 100%; height: 100%; }
.brand-copy strong { font-size: 14px; }
.brand-copy small { font-size: 8px; letter-spacing: .08em; }
.portfolio-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.portfolio-link:hover { border-color: var(--blue); color: var(--blue); }
.header-study-note {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 18px;
  border-block: 1px solid color-mix(in srgb, var(--amber) 26%, var(--line));
  background: color-mix(in srgb, var(--amber) 6%, var(--surface));
}
.header-study-note > span {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 7px;
  background: var(--amber);
  color: var(--logo-ink);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}
.header-study-note p { max-width: 980px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.nav-carousel-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 52px;
}
.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-width: none;
}
.primary-nav::-webkit-scrollbar { display: none; }
.nav-button,
.nav-edition-link {
  min-height: 38px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 7px 11px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.nav-button:hover,
.nav-button[aria-current="page"] { background: var(--surface-2); color: var(--ink); }
.nav-button[aria-current="page"] { box-shadow: inset 0 -2px var(--blue); }
.nav-edition-link {
  border-color: color-mix(in srgb, var(--amber) 40%, var(--line));
  background: color-mix(in srgb, var(--amber) 7%, var(--surface));
  color: var(--amber);
}
.nav-edition-link:hover { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, var(--surface)); }
.nav-scroll {
  display: none;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}
.nav-scroll:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }

.home-hero {
  min-height: auto;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
  padding-block: 56px 42px;
}
.home-logo {
  width: 112px;
  height: 112px;
  color: var(--blue);
  filter: drop-shadow(0 14px 24px color-mix(in srgb, var(--blue) 18%, transparent));
}
.home-logo-svg { width: 100%; height: 100%; display: block; }
.home-hero h1 { max-width: 900px; margin: 12px 0 18px; font: 600 clamp(42px, 6.2vw, 76px)/1 var(--serif); letter-spacing: -.045em; }
.home-hero p { max-width: 780px; margin: 0; color: var(--muted); font-size: clamp(15px, 1.7vw, 18px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }

.purpose-panel,
.method-panel,
.transparency-details {
  margin: 0 0 46px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.purpose-panel { padding: clamp(24px, 4vw, 38px); }
.purpose-panel h2,
.method-panel h2 { margin: 7px 0 13px; font: 600 clamp(26px, 4vw, 38px)/1.1 var(--serif); letter-spacing: -.03em; }
.purpose-panel p { max-width: 940px; margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.purpose-panel p:last-child { margin-bottom: 0; }
.method-panel { display: grid; grid-template-columns: minmax(210px, .75fr) minmax(0, 2fr); align-items: center; gap: 22px; padding: 22px 26px; }
.method-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; }
.method-strip li { min-width: 0; display: grid; gap: 7px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
.method-strip span { color: var(--amber); font: 600 15px var(--serif); }
.method-strip b { overflow-wrap: anywhere; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }

.transparency-details { overflow: hidden; }
.transparency-details > summary {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
}
.transparency-details > summary::-webkit-details-marker { display: none; }
.transparency-details > summary:hover { background: var(--surface-2); }
.transparency-details > summary span:first-child { display: grid; gap: 4px; }
.transparency-details > summary b { font: 600 20px var(--serif); }
.transparency-details > summary small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.transparency-details > summary span:last-child { color: var(--blue); font-size: 22px; font-weight: 800; transition: transform .18s ease; }
.transparency-details[open] > summary span:last-child { transform: rotate(45deg); }
.transparency-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 22px 22px; border-top: 1px solid var(--line); }
.transparency-body article { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.transparency-body h3 { margin: 0 0 7px; color: var(--blue); font-size: 12px; }
.transparency-body p { margin: 0 0 8px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.transparency-body p:last-child { margin-bottom: 0; }

.guide-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 8px; }
.filters,
.perspective-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.perspective-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 13px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}
.perspective-button:hover,
.perspective-button[aria-pressed="true"] { border-color: var(--amber); background: color-mix(in srgb, var(--amber) 8%, var(--surface)); color: var(--ink); }
.perspective-description { margin: 0 0 18px; color: var(--muted); font-size: 11px; }
.guide-kind {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 5px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .1em;
}
.kind-regulation { color: var(--amber); }
.kind-standard { color: var(--teal); }
.kind-certification { color: var(--violet); }
.kind-national-framework { color: var(--red); }
.guide-perspective { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.guide-perspective h3 { margin: 0 0 10px; font: 600 22px var(--serif); }
.guide-perspective li { margin-bottom: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.verdict-text { color: var(--ink) !important; font-weight: 800; }
.answer-comparison { display: grid; gap: 5px; margin: 12px 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.answer-comparison p { margin: 0; }

.download-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer > div:first-child { min-width: 0; }
.footer > div:first-child small { color: var(--muted); font-size: 8px; }

@media (max-width: 1000px) {
  .header-main { grid-template-columns: minmax(0, 1fr) auto; }
  .portfolio-link { grid-column: 1 / -1; grid-row: 2; justify-self: start; min-height: 36px; }
  .primary-nav { justify-content: flex-start; }
  .nav-scroll { display: grid; }
  .method-panel { grid-template-columns: 1fr; }
  .transparency-body { grid-template-columns: 1fr; }
  .guide-controls { align-items: flex-start; flex-direction: column; }
  .mock-status { top: 158px; }
}

@media (max-width: 760px) {
  .wrap, .narrow { width: min(100% - 24px, 1450px); }
  .header-study-note { justify-content: flex-start; padding-inline: 12px; }
  .header-study-note p { font-size: 9px; }
  .home-hero { grid-template-columns: 72px minmax(0, 1fr); align-items: start; padding-block: 38px 30px; }
  .home-logo { width: 72px; height: 72px; }
  .home-hero h1 { font-size: clamp(34px, 9vw, 48px); }
  .method-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .header-main { gap: 8px; min-height: 62px; }
  .brand-copy small { display: none; }
  .portfolio-link { font-size: 9px; }
  .tool-button { width: 40px; min-width: 40px; height: 40px; min-height: 40px; }
  .nav-carousel-shell { width: 100%; padding-inline: 8px; }
  .nav-scroll { width: 34px; height: 34px; }
  .home-hero { grid-template-columns: 1fr; }
  .home-logo { width: 64px; height: 64px; }
  .purpose-panel,
  .method-panel { padding: 20px; }
  .method-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-grid { grid-template-columns: 1fr; }
  .transparency-details > summary { padding: 16px; }
  .transparency-body { padding: 0 16px 16px; }
  .footer { grid-template-columns: 1fr auto; padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* ========================================================================
   V4 · Tipografía, maquetación y cabecera homogéneas con jmsegarcv.com
   ======================================================================== */
:root {
  --font-ui: "Segoe UI Variable", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --sans: var(--font-ui);
  --serif: var(--font-ui);
  --logo-tile: var(--blue);
  --logo-glyph: #ffffff;
  --logo-accent: var(--amber);
  --container: 1580px;
}
:root[data-theme="dark"] { --logo-tile: var(--blue); --logo-glyph: #0b1220; --logo-accent: var(--amber); }
body { font-family: var(--font-ui); font-size: clamp(1rem, .25vw + .96rem, 1.06rem); line-height: 1.68; }
button, input, select, summary { font-family: var(--font-ui); }
.wrap { width: min(var(--container), 92%); margin-inline: auto; }
.narrow { width: min(880px, 92%); margin-inline: auto; }
.page { padding-block: 4.1rem 5.5rem; }
.page-header { max-width: 850px; padding-bottom: 1.25rem; }
.page-header h1, .home-hero h1 { font-family: var(--font-ui); font-size: clamp(2.35rem, 5vw, 3.6rem); font-weight: 820; line-height: 1.07; letter-spacing: -.035em; }
.page-header p, .home-hero p { font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.72; }
.section-heading h2, .route-card h2, .domain-card h3, .callout h2, .framework-card h3, .guide summary h2, .result-card h2, .purpose-panel h2, .method-panel h2, .guide-perspective h3 { font-family: var(--font-ui); font-weight: 790; letter-spacing: -.025em; }
.section-heading h2 { font-size: clamp(1.55rem, 2.5vw, 2rem); }
.eyebrow { font-size: .75rem; line-height: 1.4; }

.app-header { box-shadow: 0 1px 0 var(--line); }
.header-main { grid-template-columns: minmax(0, 1fr) auto auto auto; gap: .65rem; min-height: 70px; }
.brand { gap: .68rem; }
.brand-mark { width: 44px; height: 44px; border-radius: 14px 14px 14px 5px; background: transparent; color: var(--blue); box-shadow: none; }
.grc-logo-svg { display: block; width: 100%; height: 100%; }
.grc-logo-svg .logo-tile { fill: var(--logo-tile); }
.grc-logo-svg .logo-corner, .grc-logo-svg .logo-accent-mark { fill: var(--logo-accent); }
.grc-logo-svg .logo-glyph { fill: var(--logo-glyph); }
.brand-copy strong { font-size: .96rem; font-weight: 820; }
.brand-copy small { font-size: .72rem; font-weight: 650; letter-spacing: 0; }
.portfolio-link { min-height: 40px; font-size: .79rem; }
.header-tools { gap: .4rem; }
.tool-button { width: 40px; min-width: 40px; height: 40px; min-height: 40px; border-radius: 10px; background: var(--surface); font-size: .78rem; }
.language-button { min-width: 48px; }
.header-clock { display: grid; grid-template-columns: repeat(2, auto); gap: .18rem .52rem; padding: .36rem .55rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); line-height: 1.05; white-space: nowrap; }
.header-clock span { display: grid; gap: .08rem; }
.header-clock b { color: var(--amber); font-size: .56rem; font-weight: 850; letter-spacing: .09em; }
.header-clock time { color: var(--ink); font-size: .72rem; font-variant-numeric: tabular-nums; font-weight: 760; }
.header-study-note { min-height: 36px; }
.header-study-note p { font-size: .76rem; }
.nav-carousel-shell { grid-template-columns: minmax(138px, 200px) auto minmax(0, 1fr) auto; gap: .38rem; min-height: 54px; }
.primary-nav { justify-content: flex-start; }
.nav-button, .nav-edition-link { min-height: 40px; padding: .52rem .7rem; font-size: .86rem; border-radius: 9px; }
.nav-scroll { display: none; }
.nav-carousel-shell.has-overflow .nav-scroll { display: grid; }

.app-search { position: relative; min-width: 0; }
.app-search-icon { position: absolute; z-index: 2; left: .67rem; top: 50%; color: var(--muted); font-size: 1rem; transform: translateY(-50%); pointer-events: none; }
.app-search input { width: 100%; min-height: 40px; padding: .52rem .7rem .52rem 2rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: 650 .82rem/1.2 var(--font-ui); }
.app-search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 14%, transparent); }
.app-search-results { position: absolute; z-index: 220; top: calc(100% + .45rem); left: 0; width: min(390px, calc(100vw - 24px)); max-height: min(430px, 60vh); overflow-y: auto; padding: .38rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.app-search-result { width: 100%; display: grid; gap: .12rem; padding: .62rem .7rem; border: 0; border-radius: 9px; background: transparent; color: var(--ink); text-align: left; }
.app-search-result:hover, .app-search-result:focus-visible { background: var(--surface-2); }
.app-search-result strong { font-size: .86rem; }
.app-search-result small { color: var(--muted); font-size: .73rem; line-height: 1.35; }
.app-search-empty { margin: 0; padding: .7rem; color: var(--muted); font-size: .8rem; }

.home-dashboard { padding-top: 0; }
.home-hero { max-width: 980px; margin-inline: auto; grid-template-columns: 86px minmax(0, 1fr); align-items: center; gap: 1.5rem; padding-block: 3.9rem 2.7rem; }
.home-logo { width: 86px; height: 86px; color: var(--blue); filter: none; }
.home-hero h1 { max-width: 760px; margin: .55rem 0 .9rem; }
.home-hero p { max-width: 780px; }
.trust-row span { font-size: .78rem; line-height: 1.35; }
.hero-actions { margin-top: 1.35rem; }

.route-card, .domain-card, .callout, .panel, .question-card, .result-card, .framework-card, .guide, .source-card, .download-card, .purpose-panel, .method-panel, .transparency-details, .notice, .capability-map, .progress-card, .progress-panel, .legal-card { border-radius: 14px; }
.route-card h2 { font-size: clamp(1.45rem, 2.3vw, 1.85rem); }
.route-card p, .domain-card > p, .callout p, .framework-card p, .purpose-panel p, .method-panel p, .transparency-body p, .progress-card > span, .grc-progress-panel p, .perspective-description, .guide-perspective li, .source-card p, .source-card small, .download-card span, .download-card small { font-size: .88rem; line-height: 1.62; }
.domain-card h3 { font-size: 1.18rem; }
.domain-stats span, .weight-row, .question-meta, .code, .topic, .explanation-head span, .source-chips > span { font-size: .72rem; }
.domain-stats b, .weight-row b { font-size: .86rem; }
.choice-card b { font-size: .86rem; }
.choice-card span { font-size: .8rem; line-height: 1.45; }
.question-card h2 { font-family: var(--font-ui); font-size: clamp(1.35rem, 2.8vw, 1.82rem); line-height: 1.34; }
.option { min-height: 66px; padding: .78rem .85rem; }
.option-text { font-size: .96rem; line-height: 1.55; }
.option-letter { font-size: .82rem; }
.explanation-head strong { font-size: .86rem; }
.explanation p, .answer-line { font-size: .92rem; line-height: 1.65; }
.source-chip { font-size: .72rem; }
.guide summary h2 { font-size: 1.2rem; line-height: 1.32; }
.guide summary p { font-size: .86rem; line-height: 1.55; }
.guide-body p, .guide-body li { font-size: .92rem; line-height: 1.66; }
.source-card h3 { font-size: 1rem; line-height: 1.35; }
.footer { min-height: 96px; grid-template-columns: minmax(0, 1fr) auto; padding: 1.45rem max(4%, calc((100% - var(--container)) / 2)); }
.footer p, .footer-links { font-size: .8rem; line-height: 1.5; }
.footer-links { justify-content: flex-end; }

.back-to-top { position: fixed; z-index: 150; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid color-mix(in srgb, var(--blue) 55%, var(--line)); border-radius: 14px; background: var(--surface); color: var(--blue); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease, background-color .18s ease; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--blue); color: var(--paper); }
.back-to-top span { font-size: 1.25rem; font-weight: 900; }

@media (hover: hover) and (pointer: fine) {
  .route-card, .domain-card, .callout, .panel, .question-card, .framework-card, .guide, .source-card, .download-card, .purpose-panel, .method-panel, .transparency-details, .notice, .capability-map, .progress-card, .progress-panel, .legal-card, .review-item { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease; }
  .route-card:hover, .domain-card:hover, .callout:hover, .panel:hover, .question-card:hover, .framework-card:hover, .guide:hover, .source-card:hover, .download-card:hover, .purpose-panel:hover, .method-panel:hover, .transparency-details:hover, .notice:hover, .capability-map:hover, .progress-card:hover, .progress-panel:hover, .legal-card:hover, .review-item:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); box-shadow: var(--shadow); }
}

@media (max-width: 1050px) {
  .header-main { grid-template-columns: minmax(0, 1fr) auto auto; }
  .portfolio-link { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .header-clock { grid-template-columns: 1fr; }
  .header-clock span { grid-template-columns: auto auto; align-items: baseline; gap: .3rem; }
  .nav-carousel-shell { width: min(var(--container), 92%); }
}
@media (max-width: 760px) {
  .wrap, .narrow { width: 94%; }
  .header-main { gap: .45rem; }
  .header-clock { grid-template-columns: repeat(2, auto); }
  .header-clock span { display: grid; gap: .05rem; }
  .nav-carousel-shell { grid-template-columns: minmax(112px, 150px) auto minmax(0, 1fr) auto; width: 94%; }
  .nav-scroll { width: 34px; height: 34px; }
  .nav-button, .nav-edition-link { min-height: 38px; padding: .48rem .65rem; font-size: .82rem; }
  .app-search input { min-height: 38px; font-size: .77rem; }
  .home-hero { grid-template-columns: 72px minmax(0, 1fr); align-items: start; gap: 1rem; padding-block: 2.8rem 2rem; }
  .home-logo { width: 72px; height: 72px; }
  .home-hero h1 { font-size: clamp(2.15rem, 8.5vw, 3rem); }
  .page-header h1 { font-size: clamp(2.1rem, 8vw, 2.85rem); }
  .page-header p, .home-hero p { font-size: 1rem; }
  .footer { grid-template-columns: 1fr; padding-inline: 3%; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .brand-copy small { display: none; }
  .portfolio-link { display: none; }
  .header-clock { display: none; }
  .nav-carousel-shell { grid-template-columns: minmax(105px, 132px) auto minmax(0, 1fr) auto; }
  .app-search-results { position: fixed; top: 132px; left: 8px; right: 8px; width: auto; }
  .header-study-note p { font-size: .7rem; }
  .home-hero { grid-template-columns: 1fr; }
  .home-logo { width: 66px; height: 66px; }
  .option { grid-template-columns: 34px minmax(0, 1fr) 22px; }
  .option-text { font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) {
  .route-card, .domain-card, .callout, .panel, .question-card, .framework-card, .guide, .source-card, .download-card, .purpose-panel, .method-panel, .transparency-details, .notice, .capability-map, .progress-card, .progress-panel, .legal-card, .review-item { transition: none !important; transform: none !important; }
}


/* V5 · Identidad visual oficial embebida */
.embedded-grc-logo,.embedded-jm-logo{display:block;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:50%}
.brand-mark,.boot-mark,.home-logo{padding:0;overflow:hidden;border-radius:50%;background:#081426;border:1px solid color-mix(in srgb,var(--amber) 46%,var(--line));box-shadow:0 7px 20px rgba(11,18,32,.24)}
.brand-mark{width:50px;height:50px;flex-basis:50px}
.boot-mark{width:74px;height:74px}
.home-logo{width:96px;height:96px;align-self:start}
.portfolio-link{display:inline-flex;align-items:center;gap:7px}
.portfolio-link-logo{display:inline-grid;width:29px;height:29px;overflow:hidden;border-radius:50%;background:#081426;border:1px solid color-mix(in srgb,var(--amber) 42%,var(--line))}
.footer-product{display:flex;align-items:flex-start;gap:12px;min-width:0}
.footer-product-logo{display:inline-grid;width:56px;height:56px;flex:0 0 56px;overflow:hidden;border-radius:50%;background:#081426;border:1px solid color-mix(in srgb,var(--amber) 42%,var(--line))}
.creator-link{display:inline-flex;align-items:center;gap:6px}
.creator-link-logo{display:inline-grid;width:25px;height:25px;overflow:hidden;border-radius:50%;background:#081426;border:1px solid color-mix(in srgb,var(--amber) 38%,var(--line))}
@media(max-width:720px){.brand-mark{width:44px;height:44px;flex-basis:44px}.home-logo{width:78px;height:78px}.portfolio-link-logo{width:27px;height:27px}.footer-product-logo{width:48px;height:48px;flex-basis:48px}}
@media(max-width:460px){.home-logo{width:70px;height:70px}.boot-mark{width:66px;height:66px}}


/* ========================================================================
   V6 · Mayor aprovechamiento horizontal y pictograma de IA gobernada
   ======================================================================== */

.wrap {
  width: min(var(--container), calc(100% - clamp(2rem, 4vw, 4.5rem)));
}
.narrow {
  width: min(1220px, calc(100% - clamp(2rem, 4vw, 4.5rem)));
}
.header-main,
.nav-carousel-shell { width: min(var(--container), calc(100% - clamp(2rem, 4vw, 4.5rem))); }
.header-study-note p { max-width: 1320px; }

/* Logotipos más legibles sin dominar la navegación. */
.brand-mark { width: 58px; height: 58px; flex-basis: 58px; }
.boot-mark { width: 82px; height: 82px; }
.home-logo { width: 116px; height: 116px; }
.portfolio-link-logo { width: 34px; height: 34px; }
.footer-product-logo { width: 64px; height: 64px; flex-basis: 64px; }
.creator-link-logo { width: 29px; height: 29px; }

/* El hero y el resto de paneles aprovechan el ancho común de la aplicación. */
.home-hero {
  max-width: none;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3.25rem);
  padding-block: 4rem 3rem;
}
.home-hero h1 { max-width: 1080px; }
.home-hero p { max-width: 980px; }
.page-header { max-width: 1120px; }
.route-grid,
.domain-grid,
.progress-detail-grid,
.callouts { gap: clamp(.9rem, 1.5vw, 1.4rem); }

/* Cerebro digital en nube para la declaración sobre IA gobernada. */
.ai-governance-heading { display: flex; align-items: center; gap: .8rem; margin-bottom: .45rem; }
.ai-governance-heading h3 { margin: 0; }
.brain-cloud-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border: 1px solid color-mix(in srgb, var(--blue) 38%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--blue) 9%, var(--surface));
  color: var(--blue);
}
.brain-cloud-svg { width: 40px; height: 40px; }

@media (max-width: 1050px) {
  .header-main,
  .nav-carousel-shell { width: min(var(--container), calc(100% - 2rem)); }
  .home-hero { grid-template-columns: 96px minmax(0, 1fr); }
  .home-logo { width: 96px; height: 96px; }
}

@media (max-width: 760px) {
  .wrap,
  .narrow,
  .header-main,
  .nav-carousel-shell { width: calc(100% - 1.5rem); }
  .brand-mark { width: 50px; height: 50px; flex-basis: 50px; }
  .home-hero { grid-template-columns: 82px minmax(0, 1fr); gap: 1rem; }
  .home-logo { width: 82px; height: 82px; }
  .portfolio-link-logo { width: 30px; height: 30px; }
  .footer-product-logo { width: 54px; height: 54px; flex-basis: 54px; }
}

@media (max-width: 520px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-logo { width: 76px; height: 76px; }
  .brain-cloud-badge { width: 50px; height: 50px; flex-basis: 50px; }
  .brain-cloud-svg { width: 36px; height: 36px; }
}


/* ========================================================================
   V7 · Búsqueda operativa, reloj en vivo y pictograma de IA refinado
   ======================================================================== */
.app-header,
.header-main,
.nav-carousel-shell,
.app-search { overflow: visible; }
.app-search-results {
  z-index: 1000;
  border-color: color-mix(in srgb, var(--blue) 34%, var(--line));
}
.header-clock time { min-width: 8ch; font-variant-numeric: tabular-nums; }
.brain-cloud-badge {
  border-color: color-mix(in srgb, var(--amber) 48%, var(--line));
  background: color-mix(in srgb, var(--surface) 92%, var(--amber) 8%);
  color: var(--amber);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--amber) 10%, transparent);
}
.brain-cloud-svg { width: 40px; height: 40px; }

/* ========================================================================
   V8 · Cabecera compacta, búsqueda exacta, guías profesionales y carruseles
   ======================================================================== */

/* Cabecera estable de dos líneas: identidad/controles y navegación/búsqueda. */
.app-header { overflow: visible; }
.header-main {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: .65rem;
  min-height: 64px;
}
.header-main .brand { min-width: 0; }
.header-clock { grid-template-columns: repeat(2, auto); }
.nav-carousel-shell {
  grid-template-columns: 44px auto minmax(0, 1fr) auto;
  min-height: 50px;
  gap: .35rem;
  overflow: visible;
}
.primary-nav { justify-content: flex-start; }
.portfolio-nav-link { gap: .4rem; }
.portfolio-nav-link .portfolio-link-logo { width: 27px; height: 27px; flex: 0 0 27px; }

/* La búsqueda ocupa solo una lupa hasta que el usuario la activa. */
.app-search {
  position: relative;
  width: 42px;
  min-width: 42px;
  height: 42px;
  z-index: 240;
}
.app-search-toggle,
.app-search-close {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.app-search-toggle {
  position: relative;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 11px;
}
.app-search-toggle svg { width: 19px; height: 19px; }
.app-search-toggle:hover,
.app-search-toggle:focus-visible,
.app-search.is-open .app-search-toggle {
  border-color: var(--blue);
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 7%, var(--surface));
}
.app-search-panel {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: width .18s ease, opacity .15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .app-search:hover .app-search-panel,
  .app-search:focus-within .app-search-panel {
    width: min(360px, calc(100vw - 32px));
    opacity: 1;
    pointer-events: auto;
  }
}
.app-search.is-open .app-search-panel {
  width: min(360px, calc(100vw - 32px));
  opacity: 1;
  pointer-events: auto;
}
.app-search input {
  width: 100%;
  height: 42px;
  min-height: 42px;
  padding: .55rem 2.35rem .55rem 2.8rem;
  border: 1px solid var(--blue);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  font: 650 .86rem/1.2 var(--font-ui);
}
.app-search-close {
  position: absolute;
  z-index: 4;
  top: 7px;
  right: 7px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  line-height: 1;
}
.app-search-results {
  top: calc(100% + .5rem);
  left: 0;
  width: min(520px, calc(100vw - 24px));
  max-height: min(520px, 64vh);
  padding: .45rem;
  border-color: color-mix(in srgb, var(--blue) 38%, var(--line));
}
.app-search-result { padding: .72rem .78rem; }
.app-search-result strong { font-size: .88rem; line-height: 1.3; }
.app-search-result small { font-size: .76rem; line-height: 1.45; }
mark.app-search-hit {
  border-radius: .22em;
  padding-inline: .08em;
  background: color-mix(in srgb, var(--amber) 60%, #fff 40%);
  color: #17120b;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 20%, transparent);
}
mark.app-search-hit:focus { outline: 3px solid var(--focus); outline-offset: 4px; }

/* Guías: el estudio no oculta implantación ni auditoría. */
.guide-body { padding: clamp(1.1rem, 2.4vw, 2rem); }
.guide-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.guide-action-bar > span { color: var(--muted); font-size: .78rem; font-weight: 720; }
.guide-study-map > h3 { margin: 0 0 .8rem; }
.guide-sections { display: grid; gap: .62rem; }
.guide-topic,
.guide-module {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: clip;
}
.guide-topic > summary,
.guide-module > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .88rem 1rem;
  cursor: pointer;
  color: var(--ink);
  font-weight: 790;
  list-style: none;
}
.guide-topic > summary::-webkit-details-marker,
.guide-module > summary::-webkit-details-marker { display: none; }
.guide-topic[open] > summary,
.guide-module[open] > summary { color: var(--blue); background: color-mix(in srgb, var(--blue) 6%, var(--surface)); }
.guide-topic > summary > span:last-child,
.guide-module > summary > span:last-child { transition: transform .16s ease; }
.guide-topic[open] > summary > span:last-child,
.guide-module[open] > summary > span:last-child { transform: rotate(45deg); }
.guide-topic-body,
.guide-module > div { padding: 1rem; border-top: 1px solid var(--line); }
.guide-topic-body > p { margin-top: 0; }
.guide-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  margin-top: .85rem;
}
.guide-topic-grid section {
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.guide-topic-grid h4,
.crosswalk-grid h4 { margin: 0 0 .45rem; color: var(--blue); font-size: .86rem; }
.guide-topic-grid ul,
.guide-module ul { margin: 0; }
.guide-perspectives { display: grid; gap: .62rem; margin-top: .85rem; }
.guide-implementation { border-left: 4px solid var(--teal); }
.guide-audit { border-left: 4px solid var(--violet); }
.guide-exam { border-left: 4px solid var(--blue); }
.guide-pitfalls { border-left: 4px solid var(--amber); }
.guide-crosswalk { border-left: 4px solid var(--green); }
.crosswalk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
}
.crosswalk-grid article {
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.crosswalk-grid p { margin: 0; }

/* Corrección razonada de preguntas y simulacros. */
.decision-rule {
  margin: 1rem 0;
  padding: .85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--blue) 34%, var(--line));
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  background: color-mix(in srgb, var(--blue) 6%, var(--surface));
}
.decision-rule b { color: var(--blue); }
.decision-rule p { margin: .35rem 0 0; }
.option-analysis {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  overflow: clip;
}
.option-analysis > summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem .9rem;
  cursor: pointer;
  font-weight: 790;
  list-style: none;
}
.option-analysis > summary::-webkit-details-marker { display: none; }
.option-analysis[open] > summary > span:last-child { transform: rotate(45deg); }
.option-analysis ol { display: grid; gap: .5rem; margin: 0; padding: .8rem; border-top: 1px solid var(--line); list-style: none; }
.option-analysis li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: .65rem;
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
}
.option-analysis li > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--surface); font-weight: 900; }
.option-analysis li p { margin: 0; }
.option-analysis li b,
.option-analysis li small { display: block; }
.option-analysis li small { margin-top: .28rem; color: var(--muted); }
.option-analysis li.preferred { border-color: var(--green); }
.option-analysis li.selected { box-shadow: inset 0 0 0 1px var(--blue); }
.related-guides { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 1rem; }
.related-guides > b { width: 100%; color: var(--muted); font-size: .76rem; }
.related-guide-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem .68rem;
  background: var(--surface);
  color: var(--blue);
  font-size: .74rem;
  font-weight: 760;
  cursor: pointer;
}
.related-guide-link:hover { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 7%, var(--surface)); }

/* Carruseles táctiles y con arrastre para reducir desplazamiento vertical. */
.swipe-carousel { overscroll-behavior-inline: contain; }
.swipe-carousel.is-dragging { cursor: grabbing; user-select: none; scroll-snap-type: none !important; }

@media (max-width: 900px) {
  .header-main { min-height: 58px; }
  .brand-mark { width: 48px; height: 48px; flex-basis: 48px; }
  .brand-copy strong { font-size: .9rem; }
  .header-clock { padding: .3rem .42rem; }
  .header-clock time { font-size: .68rem; }
  .nav-carousel-shell { min-height: 48px; }

  .swipe-carousel {
    display: flex !important;
    grid-template-columns: none !important;
    gap: .75rem !important;
    overflow-x: auto;
    overflow-y: visible;
    padding: .2rem .2rem .8rem;
    margin-inline: -.2rem;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: .2rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .swipe-carousel > * {
    flex: 0 0 min(84vw, 390px);
    min-width: 0;
    scroll-snap-align: start;
  }
  .choice-grid.swipe-carousel > * { flex-basis: min(72vw, 280px); }
  .progress-overview.swipe-carousel > *,
  .callouts.swipe-carousel > * { flex-basis: min(82vw, 360px); }
  .download-grid.swipe-carousel > * { flex-basis: min(70vw, 270px); }
  .guide-topic-grid,
  .crosswalk-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .header-main,
  .nav-carousel-shell { width: calc(100% - 1rem); }
  .header-main { grid-template-columns: minmax(0, 1fr) auto; gap: .35rem; }
  .header-clock { display: none; }
  .header-tools { gap: .25rem; }
  .tool-button { width: 37px; min-width: 37px; height: 37px; min-height: 37px; }
  .language-button { min-width: 42px; }
  .brand-copy small { display: none; }
  .nav-carousel-shell { grid-template-columns: 40px auto minmax(0, 1fr) auto; min-height: 46px; }
  .app-search,
  .app-search-toggle { width: 39px; min-width: 39px; height: 39px; }
  .app-search-panel { height: 39px; }
  .app-search input { height: 39px; min-height: 39px; }
  .app-search.is-open .app-search-panel { position: fixed; top: 58px; left: .5rem; right: .5rem; width: auto; }
  .app-search.is-open .app-search-results { position: fixed; top: 105px; left: .5rem; right: .5rem; width: auto; max-height: 62vh; }
  .nav-button,
  .nav-edition-link { min-height: 37px; padding: .45rem .62rem; font-size: .78rem; }
  .portfolio-nav-link .portfolio-link-logo { width: 24px; height: 24px; flex-basis: 24px; }
  .guide > summary { padding: .9rem; }
  .guide > summary .guide-index { display: none; }
  .guide-body { padding: .9rem; }
  .guide-action-bar { align-items: flex-start; }
  .guide-action-bar .button { width: 100%; }
  .swipe-carousel > * { flex-basis: min(88vw, 350px); }
}

@media (prefers-reduced-motion: reduce) {
  .app-search-panel,
  .guide-topic > summary > span:last-child,
  .guide-module > summary > span:last-child { transition: none !important; }
}
