:root {
  --navy: #102a43;
  --navy-2: #243b53;
  --blue: #1465a8;
  --blue-2: #0b4f88;
  --cyan: #1b9aaa;
  --paper: #f5f7fa;
  --white: #fff;
  --ink: #243b53;
  --muted: #627d98;
  --line: #d9e2ec;
  --soft: #edf2f7;
  --green: #2f855a;
  --red: #c53030;
  --gold: #d89614;
  --violet: #6b46c1;
  --shadow: 0 18px 50px rgba(16, 42, 67, .10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--navy); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
body.modal-open { overflow: hidden; }
body.auth-pending { overflow: hidden; }
body.auth-pending > :not(.auth-gate) { visibility: hidden; }
body.course-ready .auth-gate { display: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 999; left: 1rem; top: -5rem; padding: .7rem 1rem; border-radius: 8px; color: #fff; background: var(--navy); }
.skip-link:focus { top: 1rem; }

.topbar { position: sticky; top: 0; z-index: 80; display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 10px clamp(16px, 3vw, 38px); color: #fff; background: rgba(16,42,67,.98); border-bottom: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; line-height: 1.15; }
.brand-mark { display: grid; place-items: center; flex: 0 0 auto; width: 43px; height: 43px; border: 1px solid rgba(255,255,255,.28); border-radius: 13px; background: linear-gradient(135deg,var(--blue),var(--cyan)); font-weight: 900; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-size: .94rem; }
.brand-copy small { margin-top: 4px; color: #bcccdc; font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.icon-button { display: inline-flex; gap: 7px; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; color: #fff; background: transparent; cursor: pointer; }
.icon-button:hover, .icon-button:focus-visible { background: rgba(255,255,255,.1); }
.search-label { font-size: .78rem; }
.compact-progress { width: 120px; color: #d9e2ec; font-size: .7rem; font-weight: 800; }
.compact-progress i { display: block; height: 4px; margin-top: 5px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.18); }
.compact-progress b { display: block; width: 0; height: 100%; border-radius: inherit; background: #63d8e6; transition: width .3s ease; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .68rem 1rem; border: 1px solid transparent; border-radius: 10px; cursor: pointer; text-decoration: none; font-size: .84rem; font-weight: 800; transition: .2s ease; }
.button.primary { color: #fff; background: var(--blue); }
.button.primary:hover { background: var(--blue-2); transform: translateY(-1px); }
.button.secondary { border-color: var(--line); color: var(--navy); background: #fff; }
.button.secondary:hover { border-color: var(--blue); color: var(--blue); }
.buy-button { min-height: 38px; color: #fff; background: var(--blue); font-size: .76rem; }
.mobile-menu { display: none; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; color: #fff; background: transparent; cursor: pointer; }
.account-area { display: flex; gap: 9px; align-items: center; }
.account-area[hidden] { display: none; }
.account-area span { max-width: 210px; overflow: hidden; color: #d9e2ec; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.account-area button { min-height: 34px; padding: 0 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; color: #fff; background: transparent; cursor: pointer; font-size: .72rem; font-weight: 800; }
.account-area button:hover { background: rgba(255,255,255,.1); }

.auth-gate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; overflow-y: auto; background: radial-gradient(circle at 80% 20%,rgba(27,154,170,.18),transparent 30%),linear-gradient(145deg,#edf4f9,#d9e2ec); }
.auth-gate[hidden] { display: none; }
.auth-card { width: min(430px,100%); padding: 38px; border: 1px solid rgba(16,42,67,.12); border-radius: 22px; background: #fff; box-shadow: 0 30px 90px rgba(16,42,67,.18); }
.auth-brand { margin-bottom: 22px; color: #fff; }
.auth-card h1 { margin: .55rem 0 .65rem; font-family: Georgia,"Times New Roman",serif; font-size: 2.1rem; line-height: 1.1; }
.auth-card > p { color: var(--muted); }
.auth-card > small { display: block; margin-top: 22px; color: var(--muted); font-size: .69rem; line-height: 1.45; }
.auth-form { display: grid; gap: 14px; margin-top: 24px; }
.auth-form label { display: grid; gap: 6px; }
.auth-form label span { color: var(--ink); font-size: .72rem; font-weight: 800; }
.auth-form input { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #f8fafc; }
.auth-form input:focus { outline: 2px solid #90cdf4; border-color: var(--blue); }
.auth-form .button { margin-top: 4px; }
.auth-reset { margin-top: 14px; padding: 0; border: 0; color: var(--blue); background: transparent; cursor: pointer; font-size: .76rem; font-weight: 800; text-decoration: underline; }
.auth-message { min-height: 1.4em; margin: 14px 0 0; font-size: .76rem; }
.auth-message.error { color: var(--red); }
.auth-message.success { color: var(--green); }

.site-layout { display: grid; grid-template-columns: 286px minmax(0,1fr); max-width: 1600px; margin: 0 auto; }
.sidebar { position: sticky; top: 72px; align-self: start; height: calc(100vh - 72px); overflow-y: auto; padding: 28px 20px 22px; border-right: 1px solid var(--line); background: #edf2f7; scrollbar-width: thin; }
.eyebrow { display: block; color: var(--blue); font-size: .67rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.sidebar-intro h1 { margin: .45rem 0; font-family: Georgia,"Times New Roman",serif; font-size: 1.48rem; line-height: 1.15; }
.sidebar-intro p { margin: 0 0 1.2rem; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.module-nav { display: grid; gap: 3px; }
.module-link { display: grid; grid-template-columns: 27px 1fr 18px; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: .77rem; }
.module-link span { color: var(--muted); font-size: .64rem; font-weight: 900; }
.module-link strong { font-weight: 650; }
.module-link i { display: none; color: var(--green); font-style: normal; }
.module-link:hover, .module-link:focus-visible { background: #fff; }
.module-link.active { color: #fff; background: var(--navy); box-shadow: 0 7px 18px rgba(16,42,67,.16); }
.module-link.active span { color: #90cdf4; }
.module-link.completed i { display: block; }
.module-link.active i { color: #90cdf4; }
.home-link { grid-template-columns: 27px 1fr; margin-bottom: 5px; }
.side-resources { display: grid; gap: 4px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.side-resources a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: .77rem; font-weight: 700; }
.side-resources a:hover, .side-resources a.active { color: #fff; background: var(--navy); }
.side-resources a span { display: inline-grid; place-items: center; width: 22px; height: 22px; color: var(--blue); font-size: .68rem; font-weight: 900; }
.side-resources a.active span { color: #90cdf4; }
.storage-note { display: flex; gap: 10px; margin-top: 22px; padding: 12px; border: 1px solid #c6f6d5; border-radius: 12px; background: #f0fff4; }
.status-dot { display: inline-block; flex: 0 0 auto; width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47,133,90,.12); }
.storage-note strong, .storage-note small { display: block; }
.storage-note strong { color: #276749; font-size: .72rem; }
.storage-note small { margin-top: 3px; color: #4a6b58; font-size: .66rem; line-height: 1.4; }

main { min-width: 0; }
.home-hero, .module-hero, .simple-hero { padding: clamp(48px,7vw,92px) clamp(24px,6vw,82px); }
.home-hero { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(250px,.75fr); gap: 64px; align-items: center; min-height: 600px; background: radial-gradient(circle at 80% 30%,rgba(27,154,170,.12),transparent 28%),linear-gradient(145deg,#f8fbff,#eef4f9); border-bottom: 1px solid var(--line); }
.home-hero h2, .module-hero h2, .simple-hero h2 { margin: .6rem 0 1.1rem; max-width: 900px; font-family: Georgia,"Times New Roman",serif; font-size: clamp(2.4rem,5vw,4.7rem); line-height: 1.04; letter-spacing: -.04em; }
.home-hero p, .module-hero p, .simple-hero p { max-width: 800px; color: #486581; font-size: clamp(1rem,1.7vw,1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.local-promise { display: flex; gap: 12px; max-width: 720px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.local-promise p { margin: 0; font-size: .82rem; line-height: 1.55; }
.progress-orbit { position: relative; width: 270px; height: 270px; margin: auto; }
.progress-orbit svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.progress-orbit circle { fill: none; stroke: #d9e2ec; stroke-width: 11; }
.progress-orbit .progress-circle { stroke: var(--cyan); stroke-linecap: round; stroke-dasharray: 421; stroke-dashoffset: calc(421 - (421 * var(--progress)) / 100); transition: stroke-dashoffset .5s ease; }
.progress-orbit div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.progress-orbit strong { font-family: Georgia,serif; font-size: 3.2rem; line-height: 1; }
.progress-orbit span { margin-top: 8px; color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.dashboard-stats { display: grid; grid-template-columns: repeat(4,1fr); width: min(1120px,calc(100% - 48px)); margin: -45px auto 0; position: relative; z-index: 2; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.dashboard-stats article { padding: 25px; border-right: 1px solid var(--line); }
.dashboard-stats article:last-child { border-right: 0; }
.dashboard-stats span { display: block; color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.dashboard-stats strong { display: block; margin-top: 5px; font-family: Georgia,serif; font-size: 2.1rem; }
.dashboard-stats small { color: var(--muted); font-size: 1rem; }
.content-section { width: min(1120px,calc(100% - 48px)); margin: 0 auto; padding: 84px 0; }
.section-title h3 { margin: .55rem 0 .5rem; font-family: Georgia,serif; font-size: clamp(1.8rem,3vw,2.8rem); line-height: 1.1; }
.section-title > p { max-width: 760px; color: var(--muted); }
.module-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 34px; }
.module-card { display: flex; flex-direction: column; min-height: 285px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); color: inherit; background: #fff; text-decoration: none; transition: .2s ease; }
.module-card:hover { transform: translateY(-3px); border-color: #9fb3c8; box-shadow: var(--shadow); }
.module-card.done { border-color: #9ae6b4; background: linear-gradient(145deg,#fff,#f0fff4); }
.module-card-top { display: flex; align-items: center; justify-content: space-between; }
.module-card-top span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #fff; background: var(--navy); font-size: .72rem; font-weight: 900; }
.module-card-top i { color: var(--muted); font-size: .68rem; font-style: normal; font-weight: 800; }
.module-card.done .module-card-top i { color: var(--green); }
.module-card h4 { margin: 1.25rem 0 .6rem; font-size: 1.08rem; line-height: 1.3; }
.module-card p { flex: 1; margin: 0; color: var(--muted); font-size: .82rem; }
.card-progress { display: flex; gap: 10px; align-items: center; margin-top: 20px; }
.card-progress > span { flex: 1; height: 5px; overflow: hidden; border-radius: 8px; background: var(--soft); }
.card-progress b { display: block; height: 100%; background: var(--blue); }
.card-progress small { color: var(--muted); font-size: .66rem; }
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; border-top: 1px solid var(--line); }
.feature-split h3 { margin: .5rem 0; font-family: Georgia,serif; font-size: 2.4rem; line-height: 1.15; }
.feature-split p { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.feature-grid span { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: .82rem; font-weight: 800; }
.book-panel { display: flex; align-items: center; justify-content: space-between; gap: 30px; width: min(1120px,calc(100% - 48px)); margin: 0 auto 80px; padding: 32px; border-radius: var(--radius); color: #fff; background: linear-gradient(135deg,var(--navy),#1f567d); box-shadow: var(--shadow); }
.book-panel h3 { margin: .5rem 0; font-family: Georgia,serif; font-size: 1.8rem; }
.book-panel p { max-width: 760px; margin: 0; color: #d9e2ec; font-size: .88rem; }
.book-panel .eyebrow { color: #90cdf4; }

.module-hero { color: #fff; background: radial-gradient(circle at 85% 20%,rgba(99,216,230,.16),transparent 32%),var(--navy); }
.breadcrumb { display: flex; gap: 8px; align-items: center; margin-bottom: 35px; color: #9fb3c8; font-size: .76rem; }
.breadcrumb a { color: #fff; }
.module-hero-grid { display: grid; grid-template-columns: 1fr 180px; gap: 50px; align-items: end; }
.module-hero .eyebrow { color: #90cdf4; }
.module-hero h2 { max-width: 950px; font-size: clamp(2.3rem,4.5vw,4.2rem); }
.module-hero p { color: #d9e2ec; }
.module-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; color: #bcccdc; font-size: .75rem; font-weight: 800; }
.module-score { padding: 24px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); background: rgba(255,255,255,.06); text-align: center; }
.module-score small, .module-score strong, .module-score span { display: block; }
.module-score small { color: #90cdf4; font-size: .66rem; font-weight: 900; letter-spacing: .1em; }
.module-score strong { margin: 8px 0; font-family: Georgia,serif; font-size: 2.8rem; }
.module-score span { color: #bcccdc; font-size: .72rem; }
.learning-objectives { width: min(1040px,calc(100% - 48px)); margin: -28px auto 50px; position: relative; z-index: 2; padding: 25px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.learning-objectives > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 13px; }
.learning-objectives p { display: flex; gap: 10px; margin: 0; color: var(--ink); font-size: .82rem; }
.learning-objectives b { color: var(--blue); font-size: .68rem; }
.chapter-map { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; width: min(1040px,calc(100% - 48px)); margin: 0 auto 55px; padding: 15px; border-radius: 12px; background: var(--soft); }
.chapter-map span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 18px; background: #fff; font-size: .72rem; font-weight: 800; }
.chapter-map i { color: var(--blue); font-style: normal; }
.lesson-body { width: min(1040px,calc(100% - 48px)); margin: 0 auto; }
.lesson-block { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 25px; padding: 58px 0; border-top: 1px solid var(--line); scroll-margin-top: 85px; }
.lesson-index { display: grid; place-items: center; align-self: start; width: 48px; height: 48px; border-radius: 14px; color: #fff; background: var(--navy); font-size: .72rem; font-weight: 900; }
.lesson-content h3 { margin: .5rem 0 1rem; font-family: Georgia,serif; font-size: clamp(1.6rem,3vw,2.45rem); line-height: 1.15; letter-spacing: -.02em; }
.lesson-content p, .lesson-content li { color: var(--ink); }
.notice { margin: 24px 0; padding: 17px 19px; border-left: 4px solid; border-radius: 0 12px 12px 0; }
.notice b { display: block; }
.notice p { margin: .35rem 0 0; }
.notice.warning { border-color: var(--gold); background: #fffaf0; }
.notice.neutral { border-color: var(--blue); background: #ebf8ff; }
.taxonomy-grid, .question-grid, .format-grid, .risk-matrix, .myth-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin: 24px 0; }
.taxonomy-grid article, .question-grid article, .format-grid article, .risk-matrix article, .myth-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.taxonomy-grid span, .format-grid article > b { color: var(--blue); font-size: .66rem; font-weight: 900; letter-spacing: .08em; }
.taxonomy-grid h4, .question-grid h4 { margin: .65rem 0 .4rem; }
.taxonomy-grid p, .question-grid p, .format-grid p, .risk-matrix p { margin: 0; font-size: .84rem; }
.tax-fact { border-top: 4px solid var(--blue) !important; }
.tax-inference { border-top: 4px solid var(--violet) !important; }
.tax-hypothesis { border-top: 4px solid var(--gold) !important; }
.tax-limit { border-top: 4px solid var(--red) !important; }
.triad, .level-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 24px 0; }
.triad article, .level-row article { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.triad article > b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; background: var(--blue); }
.triad h4 { margin: .9rem 0 .4rem; }
.triad p, .level-row span { margin: 0; color: var(--muted); font-size: .82rem; }
.definition-table, .truth-table, .layer-list, .factor-table { display: grid; gap: 8px; margin: 22px 0; }
.definition-table div, .truth-table div, .layer-list div, .factor-table div { display: grid; grid-template-columns: minmax(150px,.45fr) minmax(0,1.55fr); gap: 16px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.definition-table span, .truth-table span, .layer-list span, .factor-table span { color: var(--muted); }
.process-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px 30px; padding: 0; counter-reset: process; list-style: none; }
.process-list li { counter-increment: process; display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.process-list li::before { content: counter(process,decimal-leading-zero); color: var(--blue); font-size: .7rem; font-weight: 900; }
.evidence-ladder, .final-chain { display: flex; gap: 9px; align-items: stretch; margin: 25px 0; overflow-x: auto; padding-bottom: 5px; }
.evidence-ladder div { flex: 1 0 120px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.evidence-ladder b, .evidence-ladder span, .evidence-ladder small { display: block; }
.evidence-ladder span { margin: 3px 0; font-size: .75rem; }
.evidence-ladder small { color: var(--muted); }
.evidence-ladder i, .final-chain i { display: grid; place-items: center; color: var(--blue); font-style: normal; }
.micro-limit { padding: 10px 13px; border-radius: 9px; background: #fffaf0; font-size: .86rem; }
.compare-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.compare-cards article { padding: 20px; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 14px; background: #fff; }
.compare-cards article:last-child { border-top-color: var(--cyan); }
.compare-cards span { color: var(--muted); font-size: .66rem; font-weight: 900; letter-spacing: .08em; }
.compare-cards h4 { margin: .7rem 0 .3rem; }
.compare-cards p { margin: 0; font-size: .86rem; }
.signature-stack { width: min(720px,100%); margin: 24px auto; text-align: center; }
.signature-stack div { margin: 7px auto; padding: 13px 18px; border-radius: 10px; color: #fff; background: var(--cyan); }
.signature-stack div:first-child { width: 65%; background: var(--navy); }
.signature-stack div:nth-child(2) { width: 82%; background: var(--blue); }
.signature-stack b, .signature-stack span { display: block; }
.signature-stack span { color: rgba(255,255,255,.82); font-size: .76rem; }
.phase-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin: 22px 0; }
.phase-grid article { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.phase-grid b, .phase-grid span { display: block; }
.phase-grid span { color: var(--muted); font-size: .75rem; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.chip-cloud span { padding: 8px 12px; border: 1px solid #90cdf4; border-radius: 22px; color: var(--blue-2); background: #ebf8ff; font-size: .74rem; font-weight: 800; }
.risk-matrix article b, .risk-matrix article span, .risk-matrix article small { display: block; }
.risk-matrix article span { margin: 5px 0; color: var(--ink); }
.risk-matrix article small { color: var(--muted); }
.compact-list { padding-left: 1.25rem; }
.compact-list.two-col { columns: 2; column-gap: 42px; }
.compact-list li { break-inside: avoid; margin-bottom: 8px; }
.quote-list { padding: 0; list-style: none; }
.quote-list li { margin: 8px 0; padding: 12px 14px; border-left: 3px solid var(--blue); background: #fff; font-family: Georgia,serif; }
.support-scale { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0; }
.support-scale span { padding: 9px 12px; border-radius: 8px; color: #fff; background: var(--green); font-size: .72rem; font-weight: 800; }
.support-scale span:nth-child(2) { background: #3b8f70; }
.support-scale span:nth-child(3) { background: var(--blue); }
.support-scale span:nth-child(4) { background: var(--gold); }
.support-scale span:nth-child(5) { background: #9b6a21; }
.support-scale span:nth-child(6) { background: var(--red); }
.attribution-scale { display: grid; gap: 7px; margin: 22px 0; }
.attribution-scale div { display: grid; grid-template-columns: minmax(150px,.55fr) minmax(0,1.45fr); gap: 18px; width: calc(60% + var(--step,0%)); padding: 11px 14px; border-radius: 9px; color: #fff; background: var(--blue); }
.attribution-scale div:nth-child(2) { width: 70%; }
.attribution-scale div:nth-child(3) { width: 80%; }
.attribution-scale div:nth-child(4) { width: 90%; }
.attribution-scale div:nth-child(5) { width: 100%; background: var(--navy); }
.attribution-scale span { color: #d9e2ec; font-size: .8rem; }
.before-after { display: grid; grid-template-columns: 1fr 45px 1.35fr; gap: 10px; align-items: stretch; margin: 12px 0; }
.before-after div { padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.before-after div:first-child { border-left: 4px solid var(--red); }
.before-after div:last-child { border-left: 4px solid var(--green); }
.before-after small, .before-after b { display: block; }
.before-after small { color: var(--muted); font-size: .62rem; }
.before-after i { display: grid; place-items: center; color: var(--blue); font-style: normal; }
.final-chain { flex-wrap: wrap; overflow: visible; }
.final-chain span { flex: 1 1 110px; padding: 12px; border-radius: 10px; color: #fff; background: var(--navy); text-align: center; font-size: .74rem; font-weight: 800; }
.myth-grid article { display: flex; gap: 7px; align-items: baseline; }
.myth-grid article b { color: var(--red); }
blockquote { margin: 26px 0; padding: 26px; border-left: 5px solid var(--cyan); border-radius: 0 14px 14px 0; color: var(--navy); background: #e6fffa; font-family: Georgia,serif; font-size: 1.25rem; }

.guided-activity, .quiz-section, .book-reference, .module-pagination { width: min(1040px,calc(100% - 48px)); margin-left: auto; margin-right: auto; }
.guided-activity { margin-top: 42px; padding: 32px; border-radius: var(--radius); color: #fff; background: var(--navy); }
.guided-activity .eyebrow { color: #90cdf4; }
.guided-activity h3 { color: #fff; }
.guided-activity .section-title p { color: #d9e2ec; }
.activity-options { display: grid; gap: 8px; margin-top: 22px; }
.activity-choice { display: flex; gap: 12px; align-items: center; width: 100%; padding: 13px 15px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; color: #fff; background: rgba(255,255,255,.06); text-align: left; cursor: pointer; }
.activity-choice:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.activity-choice b { display: grid; place-items: center; flex: 0 0 auto; width: 27px; height: 27px; border-radius: 8px; color: var(--navy); background: #90cdf4; }
.activity-choice.correct { border-color: #68d391; background: rgba(47,133,90,.25); }
.activity-choice.wrong { border-color: #fc8181; background: rgba(197,48,48,.22); }
.activity-feedback { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: rgba(255,255,255,.08); }
.activity-feedback.correct { border-left: 4px solid #68d391; }
.activity-feedback.wrong { border-left: 4px solid #fc8181; }
.activity-feedback p { margin: .3rem 0 0; color: #d9e2ec; }
.quiz-section { padding: 82px 0; }
.quiz-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.quiz-title h3 { margin: .5rem 0 0; font-family: Georgia,serif; font-size: 2.3rem; }
.quiz-title > span { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 900; }
.quiz-list { display: grid; gap: 16px; margin-top: 28px; }
.quiz-question { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.question-number { color: var(--blue); font-size: .64rem; font-weight: 900; letter-spacing: .1em; }
.quiz-question h4 { margin: .55rem 0 1rem; font-size: 1.03rem; }
.quiz-options { display: grid; gap: 8px; }
.quiz-option { display: flex; gap: 11px; align-items: flex-start; width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #f8fafc; text-align: left; cursor: pointer; }
.quiz-option:hover:not(:disabled) { border-color: var(--blue); background: #ebf8ff; }
.quiz-option:disabled { cursor: default; opacity: .85; }
.quiz-option b { display: grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 7px; background: var(--soft); }
.quiz-option.correct { border-color: #68d391; color: #22543d; background: #f0fff4; }
.quiz-option.wrong { border-color: #fc8181; color: #742a2a; background: #fff5f5; }
.answer-feedback { margin-top: 13px; padding: 13px 15px; border-radius: 9px; font-size: .86rem; }
.answer-feedback.correct { border-left: 4px solid var(--green); background: #f0fff4; }
.answer-feedback.wrong { border-left: 4px solid var(--red); background: #fff5f5; }
.answer-feedback p { margin: .3rem 0 0; }
.completion-hint { color: var(--muted); font-size: .8rem; text-align: right; }
.completion-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 22px; border: 1px solid #90cdf4; border-radius: 14px; background: #ebf8ff; }
.completion-panel.done { border-color: #9ae6b4; background: #f0fff4; }
.completion-panel b { font-size: 1rem; }
.completion-panel p { margin: .2rem 0 0; color: var(--muted); font-size: .82rem; }
.completion-panel > span { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; color: #fff; background: var(--green); font-size: 1.4rem; }
.book-reference { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 20px; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.book-reference h3 { margin: .45rem 0; font-family: Georgia,serif; font-size: 1.6rem; }
.book-reference p { max-width: 650px; margin: 0; color: var(--muted); font-size: .84rem; }
.module-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 50px; margin-bottom: 70px; }
.module-pagination a { display: grid; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; }
.module-pagination a:hover { border-color: var(--blue); }
.module-pagination .next { text-align: right; }
.module-pagination small { color: var(--muted); font-size: .62rem; font-weight: 900; }

.simple-hero { border-bottom: 1px solid var(--line); background: linear-gradient(145deg,#f8fbff,#edf4f9); }
.simple-hero h2 { max-width: 850px; font-size: clamp(2.3rem,4.5vw,4rem); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.text-danger { padding: .6rem .75rem; border: 0; color: var(--red); background: transparent; text-decoration: underline; cursor: pointer; font-size: .78rem; }
.tool-section { width: min(1100px,calc(100% - 48px)); margin: 14px auto; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.tool-section:first-of-type { margin-top: 55px; }
.tool-section summary { display: flex; gap: 14px; align-items: center; padding: 18px 20px; cursor: pointer; }
.tool-section summary > span { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; color: #fff; background: var(--navy); font-weight: 900; }
.tool-section summary b, .tool-section summary small { display: block; }
.tool-section summary small { color: var(--muted); font-size: .72rem; }
.tool-content { padding: 0 20px 24px; border-top: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .78rem; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); background: #f8fafc; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; }
.tool-note { padding: 10px 12px; border-radius: 8px; color: var(--muted); background: #fffaf0; font-size: .77rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 18px; }
.tool-field { display: grid; gap: 5px; }
.tool-field span { color: var(--muted); font-size: .7rem; font-weight: 800; }
.tool-field input, .tool-field textarea, .editable-table input { width: 100%; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; }
.tool-field input { height: 42px; padding: 0 11px; }
.tool-field textarea { min-height: 95px; padding: 10px 11px; resize: vertical; }
.tool-field input:focus, .tool-field textarea:focus, .editable-table input:focus { outline: 2px solid #90cdf4; border-color: var(--blue); }
.editable-table { margin-top: 15px; }
.editable-table input { min-width: 130px; padding: 8px; }
.checklist-columns { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; padding-top: 15px; }
.checklist-columns h4 { margin-top: 0; }
.tool-check { display: flex; gap: 9px; align-items: flex-start; padding: 9px 10px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .78rem; cursor: pointer; }
.tool-check input { margin-top: 4px; accent-color: var(--green); }
.tool-check:has(input:checked) { color: #276749; background: #f0fff4; }
.question-bank { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; padding-top: 16px; }
.question-bank section { padding: 17px; border: 1px solid var(--line); border-radius: 12px; }
.question-bank h4 { margin-top: 0; }
.question-bank ol { padding-left: 1.2rem; }
.question-bank li { margin-bottom: 8px; color: var(--ink); font-size: .8rem; }
.report-checklist { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 20px; padding-top: 14px; }
.tools-page .book-reference { margin-top: 50px; margin-bottom: 70px; }

.glossary-section, .reference-lists, .official-links { width: min(1100px,calc(100% - 48px)); margin: 0 auto; padding: 70px 0; }
.inline-search { display: flex; align-items: center; gap: 8px; max-width: 550px; margin: 24px 0; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.inline-search input { width: 100%; height: 46px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.glossary-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.glossary-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.glossary-grid h4 { margin: 0 0 .6rem; }
.glossary-grid p { margin: 0; color: var(--muted); font-size: .81rem; }
.reference-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); }
.reference-lists > div { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.reference-lists .technical-references { grid-column: 1/-1; }
.reference-lists ul { columns: 2; padding-left: 1.2rem; }
.reference-lists li { break-inside: avoid; margin-bottom: 7px; color: var(--ink); font-size: .78rem; }
.official-links { border-top: 1px solid var(--line); }
.official-links > div:last-child { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 24px; }
.official-links a { display: flex; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; text-decoration: none; font-size: .77rem; font-weight: 800; }
.official-links a:hover { border-color: var(--blue); color: var(--blue); }
.reference-page .book-reference { margin-bottom: 70px; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr auto; gap: 30px; align-items: center; padding: 28px clamp(24px,6vw,82px); border-top: 1px solid var(--line); color: var(--muted); background: #edf2f7; font-size: .68rem; }
.site-footer b, .site-footer span { display: block; }
.site-footer a { color: var(--blue); font-weight: 800; }

.search-layer { position: fixed; inset: 0; z-index: 200; padding: 7vh 18px; background: rgba(16,42,67,.74); backdrop-filter: blur(5px); }
.search-dialog { width: min(760px,100%); max-height: 86vh; margin: 0 auto; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.28); }
.search-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 10px; }
.search-head h2 { margin: .4rem 0 0; font-family: Georgia,serif; font-size: 2rem; }
.search-head .icon-button { border-color: var(--line); color: var(--navy); font-size: 1.4rem; }
.search-box { display: block; margin: 14px 24px; }
.search-box input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #f8fafc; }
.search-results { max-height: 58vh; overflow-y: auto; padding: 0 24px 24px; }
.search-results > p { color: var(--muted); }
.search-results a { display: grid; padding: 13px 3px; border-bottom: 1px solid var(--line); text-decoration: none; }
.search-results a:hover b { color: var(--blue); }
.search-results small { color: var(--blue); font-size: .6rem; font-weight: 900; }
.search-results span { color: var(--muted); font-size: .75rem; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 300; max-width: 330px; padding: 12px 16px; border-radius: 10px; color: #fff; background: var(--navy); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .22s ease; font-size: .82rem; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1180px) {
  .module-cards { grid-template-columns: repeat(2,1fr); }
  .glossary-grid { grid-template-columns: repeat(2,1fr); }
  .search-label { display: none; }
}

@media (max-width: 980px) {
  .topbar { min-height: 66px; }
  .brand-copy small { display: none; }
  .buy-button { display: none; }
  .mobile-menu { display: inline-grid; place-items: center; }
  .site-layout { display: block; }
  .sidebar { position: fixed; z-index: 70; top: 66px; left: 0; width: 300px; height: calc(100vh - 66px); transform: translateX(-105%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .home-hero { grid-template-columns: 1fr; }
  .progress-orbit { width: 230px; height: 230px; }
  .dashboard-stats { grid-template-columns: repeat(2,1fr); }
  .dashboard-stats article:nth-child(2) { border-right: 0; }
  .dashboard-stats article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .module-hero-grid { grid-template-columns: 1fr; }
  .module-score { width: 180px; }
  .checklist-columns { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer a { grid-column: 1/-1; }
}

@media (max-width: 720px) {
  .brand-copy strong { max-width: 175px; font-size: .78rem; }
  .compact-progress { width: 62px; }
  .top-actions { gap: 7px; }
  .home-hero, .module-hero, .simple-hero { padding: 48px 18px; }
  .home-hero { min-height: auto; }
  .home-hero h2, .module-hero h2, .simple-hero h2 { font-size: 2.45rem; }
  .dashboard-stats, .content-section, .book-panel, .learning-objectives, .chapter-map, .lesson-body, .guided-activity, .quiz-section, .book-reference, .module-pagination, .tool-section, .glossary-section, .reference-lists, .official-links { width: calc(100% - 28px); }
  .dashboard-stats { margin-top: -24px; }
  .dashboard-stats article { padding: 18px; }
  .module-cards { grid-template-columns: 1fr; }
  .feature-split { grid-template-columns: 1fr; gap: 30px; }
  .book-panel, .book-reference { align-items: flex-start; flex-direction: column; }
  .learning-objectives > div { grid-template-columns: 1fr; gap: 9px; }
  .lesson-block { grid-template-columns: 40px minmax(0,1fr); gap: 13px; padding: 42px 0; }
  .lesson-index { width: 38px; height: 38px; border-radius: 10px; }
  .taxonomy-grid, .question-grid, .format-grid, .risk-matrix, .myth-grid, .compare-cards, .triad, .level-row { grid-template-columns: 1fr; }
  .phase-grid { grid-template-columns: repeat(2,1fr); }
  .process-list { grid-template-columns: 1fr; }
  .compact-list.two-col { columns: 1; }
  .definition-table div, .truth-table div, .layer-list div, .factor-table div { grid-template-columns: 1fr; gap: 4px; }
  .attribution-scale div, .attribution-scale div:nth-child(n) { width: 100%; grid-template-columns: 1fr; gap: 2px; }
  .before-after { grid-template-columns: 1fr; }
  .before-after i { transform: rotate(90deg); }
  .guided-activity { padding: 23px 18px; }
  .quiz-title { align-items: flex-start; }
  .quiz-title h3 { font-size: 1.8rem; }
  .quiz-title > span { width: 52px; height: 52px; }
  .quiz-question { padding: 18px; }
  .module-pagination { grid-template-columns: 1fr; }
  .form-grid, .question-bank, .report-checklist, .reference-lists { grid-template-columns: 1fr; }
  .reference-lists .technical-references { grid-column: auto; }
  .reference-lists ul { columns: 1; }
  .glossary-grid { grid-template-columns: 1fr; }
  .official-links > div:last-child { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer a { grid-column: auto; }
}

@media (max-width: 430px) {
  .brand-mark { width: 37px; height: 37px; }
  .brand-copy strong { max-width: 135px; }
  .search-trigger { display: none; }
  .dashboard-stats { grid-template-columns: 1fr; }
  .dashboard-stats article { border-right: 0; border-bottom: 1px solid var(--line); }
  .dashboard-stats article:last-child { border-bottom: 0; }
  .feature-grid, .phase-grid { grid-template-columns: 1fr; }
  .signature-stack div:first-child { width: 78%; }
  .signature-stack div:nth-child(2) { width: 90%; }
  .completion-panel { align-items: flex-start; flex-direction: column; }
}

@media print {
  .topbar, .sidebar, .tool-actions, .module-pagination, .search-layer, .toast, .site-footer { display: none !important; }
  .site-layout { display: block; }
  .simple-hero, .module-hero { padding: 20px 0; color: #000; background: #fff; }
  .module-hero p, .module-hero .eyebrow, .module-meta { color: #333; }
  .tool-section { width: 100%; break-inside: avoid; }
  .tool-section[open] .tool-content { display: block; }
  .book-reference { display: none; }
  body { background: #fff; }
}

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