
:root { --navy:#0b1e36; --navy2:#102b4c; --gold:#c9ad47; --green:#1f5a32; --amber:#9b6400; --red:#8d111a; --cream:#f7f4ed; --ink:#172033; --muted:#617085; --line:#d9dee8; --panel:#ffffff; --soft:#eef4f1; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; background:linear-gradient(180deg,#f9f7f1 0,#eef2f7 100%); color:var(--ink); font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; line-height:1.62; }
a { color:#174d88; text-decoration:none; }
a:hover { text-decoration:underline; }
.topbar { position:sticky; top:0; z-index:50; background:rgba(11,30,54,.96); color:white; display:flex; align-items:center; gap:18px; padding:12px 20px; box-shadow:0 8px 24px rgba(11,30,54,.22); }
.brandmark { width:42px; height:42px; border:1px solid var(--gold); display:grid; place-items:center; color:var(--gold); font-weight:900; letter-spacing:-.06em; border-radius:10px; background:#07152a; }
.topbar h1 { font-size:16px; line-height:1.2; margin:0; letter-spacing:.04em; }
.topbar .small { opacity:.8; font-size:12px; }
.topbar nav { margin-left:auto; display:flex; gap:10px; flex-wrap:wrap; }
.topbar nav a, .topbar nav button { color:white; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.18); border-radius:999px; padding:8px 12px; font-size:12px; cursor:pointer; }
.wrapper { max-width:1180px; margin:0 auto; padding:26px 18px 70px; }
.hero { background:radial-gradient(circle at top right,rgba(201,173,71,.22),transparent 35%), linear-gradient(135deg,var(--navy) 0%, #132b46 60%, #0a172a 100%); color:#fff; border-radius:28px; padding:38px; margin:22px 0; overflow:hidden; position:relative; }
.hero:after { content:""; position:absolute; inset:auto -40px -100px auto; width:350px; height:350px; border:1px solid rgba(201,173,71,.28); transform:rotate(18deg); border-radius:42px; }
.hero .eyebrow { color:var(--gold); text-transform:uppercase; letter-spacing:.18em; font-size:12px; font-weight:800; }
.hero h2 { font-size:clamp(32px,5vw,68px); line-height:.98; margin:14px 0; max-width:950px; }
.hero p { max-width:920px; font-size:18px; opacity:.94; }
.grid { display:grid; grid-template-columns:repeat(12,1fr); gap:18px; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:22px; padding:20px; box-shadow:0 10px 28px rgba(19,43,70,.06); }
.card h3, .lesson-page h3 { margin-top:0; color:var(--navy); }
.module-card { grid-column:span 4; transition:.18s transform, .18s box-shadow; position:relative; overflow:hidden; }
.module-card:hover { transform:translateY(-3px); box-shadow:0 18px 38px rgba(19,43,70,.12); }
.module-card .num { color:var(--gold); font-weight:900; letter-spacing:.12em; }
.module-card h3 { font-size:20px; margin:8px 0; }
.module-card .region { font-size:12px; color:#58677a; text-transform:uppercase; letter-spacing:.12em; font-weight:800; }
.module-card .pillrow { margin-top:12px; }
.pill { display:inline-flex; align-items:center; gap:6px; border-radius:999px; padding:6px 10px; font-size:12px; font-weight:800; margin:3px 4px 3px 0; background:#eef3f7; color:#345; border:1px solid #dbe2ea; }
.pill.gold { background:#fff7d8; color:#71570a; border-color:#ecd678; } .pill.green { background:#e8f5ec; color:#18572d; border-color:#b8dac2; } .pill.red { background:#ffeded; color:#8a1118; border-color:#f2c4c9; }
.searchbar { display:flex; gap:10px; margin:18px 0; } .searchbar input { flex:1; padding:14px 16px; border:1px solid var(--line); border-radius:16px; font-size:16px; }
.lesson-shell { display:grid; grid-template-columns:270px 1fr; gap:22px; align-items:start; }
.sidebar { position:sticky; top:78px; max-height:calc(100vh - 95px); overflow:auto; background:#fff; border:1px solid var(--line); border-radius:22px; padding:16px; box-shadow:0 8px 24px rgba(19,43,70,.08); }
.sidebar a { display:block; padding:8px 10px; border-radius:10px; color:#34495f; font-size:13px; } .sidebar a:hover { background:#eef4f1; text-decoration:none; }
.progress-wrap { height:10px; background:#e5eaf0; border-radius:999px; overflow:hidden; margin:8px 0 12px; } .progress-bar { height:100%; width:0%; background:linear-gradient(90deg,var(--green),var(--gold)); transition:width .25s; }
.lesson-page { background:white; border:1px solid var(--line); border-radius:28px; padding:34px; margin:0 0 24px; box-shadow:0 10px 30px rgba(19,43,70,.07); position:relative; overflow:hidden; }
.lesson-page:before { content:attr(data-page); position:absolute; right:20px; top:18px; color:rgba(11,30,54,.12); font-size:54px; font-weight:900; letter-spacing:-.08em; }
.lesson-page h2 { margin:0 0 8px; color:var(--navy); font-size:30px; line-height:1.1; max-width:880px; }
.subtle { color:var(--muted); } .lead { font-size:18px; color:#29364a; }
.callout { border-left:5px solid var(--gold); background:#fffaf0; padding:16px 18px; border-radius:16px; margin:16px 0; }
.warning { border-left:5px solid var(--red); background:#fff1f2; padding:16px 18px; border-radius:16px; margin:16px 0; }
.practice { border-left:5px solid var(--green); background:#effaf1; padding:16px 18px; border-radius:16px; margin:16px 0; }
.sourcebox { background:#fbfcfd; border:1px dashed #c7d2e2; padding:16px; border-radius:18px; white-space:pre-wrap; font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; font-size:12px; max-height:460px; overflow:auto; }
table { width:100%; border-collapse:separate; border-spacing:0; overflow:hidden; border:1px solid var(--line); border-radius:16px; margin:14px 0; background:#fff; } th { background:var(--navy); color:white; text-align:left; padding:12px; font-size:13px; letter-spacing:.05em; } td { border-top:1px solid var(--line); padding:12px; vertical-align:top; } tr:nth-child(even) td { background:#fbfcfd; }
.kpi-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; } .kpi { border:1px solid var(--line); border-radius:18px; padding:16px; background:linear-gradient(180deg,#fff,#f7fafc); } .kpi strong { display:block; color:var(--navy); }
.timeline { display:grid; grid-template-columns:repeat(5,1fr); gap:10px; margin:18px 0; } .step { background:#fff; border:1px solid var(--line); border-radius:18px; padding:14px; position:relative; } .step b { color:var(--navy); } .step:nth-child(1) { border-top:6px solid var(--navy); } .step:nth-child(2) { border-top:6px solid #24496e; } .step:nth-child(3) { border-top:6px solid #3263a1; } .step:nth-child(4) { border-top:6px solid var(--gold); } .step:nth-child(5) { border-top:6px solid var(--green); }
.grade-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; } .grade { border-radius:18px; padding:18px; color:#fff; min-height:150px; } .g1 { background:var(--green); } .g2 { background:var(--amber); } .g3 { background:var(--red); }
.flow-svg { width:100%; max-width:100%; border:1px solid var(--line); border-radius:18px; background:#fff; margin:14px 0; }
.figure-panel { display:grid; grid-template-columns:minmax(240px,360px) 1fr; gap:18px; align-items:start; } .figure-panel img { width:100%; border:1px solid var(--line); border-radius:22px; background:#eef3f7; }
.ref-list { columns:2 420px; } .ref-list li { break-inside:avoid; margin-bottom:10px; }
.quiz { border:1px solid var(--line); border-radius:18px; padding:16px; margin:12px 0; background:#fbfcff; } .quiz button, .btn { border:0; background:var(--navy); color:white; border-radius:999px; padding:10px 14px; cursor:pointer; font-weight:800; } .answer { display:none; padding:12px; margin-top:10px; border-radius:12px; background:#eef6ef; }
.calc { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; align-items:end; } .calc select { width:100%; padding:12px; border-radius:12px; border:1px solid var(--line); } .result { font-weight:900; padding:14px; border-radius:16px; background:#eef4f1; min-height:48px; }
.checkline { display:flex; align-items:center; gap:10px; margin:10px 0; } .checkline input { width:18px; height:18px; }
.footer { margin:36px 0 0; color:#617085; font-size:13px; }
@media (max-width:900px) { .lesson-shell { grid-template-columns:1fr; } .sidebar { position:static; } .module-card { grid-column:span 12; } .hero { padding:26px; } .timeline,.grade-grid,.figure-panel { grid-template-columns:1fr; } }
@media print { body { background:#fff; } .topbar,.sidebar,.btn,.searchbar { display:none !important; } .wrapper { max-width:none; padding:0; } .lesson-shell { display:block; } .lesson-page { page-break-after:always; box-shadow:none; border:0; border-radius:0; min-height:96vh; } }
