:root { color-scheme: light; --ink:#183039; --muted:#52676c; --line:#d4e2e1; --paper:#fff; --wash:#f4f8f7; --green:#23766b; --green-dark:#15594f; --coral:#d6534f; --blue:#386a98; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--paper); color:var(--ink); font:16px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; }
button,input { font:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
a { color:inherit; }
button { cursor:pointer; }
svg { width:1.15em; height:1.15em; stroke-width:2; flex:none; }
[hidden] { display:none !important; }
:focus-visible { outline:3px solid var(--coral); outline-offset:3px; }
.wrap { width:min(1180px, calc(100% - 48px)); margin-inline:auto; }
.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:absolute; z-index:100; top:-80px; left:20px; padding:10px 16px; background:var(--ink); color:#fff; }
.skip-link:focus { top:12px; }
.site-header { position:relative; z-index:20; border-bottom:1px solid var(--line); background:#fff; }
.header-inner { display:flex; min-height:70px; align-items:center; justify-content:space-between; gap:24px; }
.brand { display:inline-flex; align-items:center; gap:11px; color:var(--ink); font-weight:750; font-size:20px; line-height:1.1; text-decoration:none; white-space:nowrap; }
.brand b { color:var(--green); }
.brand-mark { display:inline-grid; flex:none; width:36px; height:36px; place-items:center; background:var(--green); border-radius:7px; color:#fff; font-weight:850; font-size:24px; line-height:1; }
.brand-mark--small { width:26px; height:26px; font-size:17px; vertical-align:middle; }
.main-nav { display:flex; align-items:center; gap:6px; }
.main-nav a { display:inline-flex; align-items:center; min-height:40px; padding:8px 13px; border-radius:6px; font-weight:650; text-decoration:none; }
.main-nav a:hover { color:var(--green); background:var(--wash); }
.icon-button { display:grid; place-items:center; width:40px; height:40px; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--ink); }
.menu-toggle { display:none; }
.eyebrow { margin:0 0 9px; color:var(--coral); font-size:12px; font-weight:800; line-height:1.2; text-transform:uppercase; }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3 { letter-spacing:0; line-height:1.16; }
h1 { font-size:42px; font-weight:780; }
h2 { font-size:25px; font-weight:750; }
.lead { max-width:690px; color:var(--muted); font-size:18px; line-height:1.55; }
.home-top { padding:43px 0 54px; background:var(--wash); border-bottom:1px solid var(--line); }
.home-top__heading { display:flex; justify-content:space-between; align-items:end; gap:32px; }
.home-top h1 { margin:0 0 15px; }
.home-top .lead { margin-bottom:0; }
.home-top__stats { display:grid; grid-template-columns:auto auto; align-items:end; column-gap:11px; row-gap:3px; padding:14px 0 7px 25px; border-left:1px solid var(--line); white-space:nowrap; }
.home-top__stats strong { color:var(--green); font-size:28px; line-height:1; }
.home-top__stats span { color:var(--muted); font-size:13px; }
.class-picker { margin-top:42px; }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; margin:0 0 19px; }
.section-heading h2 { margin:0; }
.section-heading > span { color:var(--muted); font-size:14px; }
.grade-grid { display:grid; grid-template-columns:repeat(11,minmax(0,1fr)); gap:7px; }
.grade-grid a { position:relative; display:flex; flex-direction:column; justify-content:center; min-height:94px; padding:13px 10px; border:1px solid var(--line); border-radius:7px; background:#fff; text-decoration:none; transition:border-color .15s,transform .15s; }
.grade-grid a:hover { transform:translateY(-2px); border-color:var(--green); }
.grade-grid strong { font-size:26px; line-height:1.05; }
.grade-grid span { color:var(--muted); font-size:12px; }
.grade-grid svg { position:absolute; top:13px; right:10px; width:15px; height:15px; color:var(--green); }
.exam-links { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:13px; }
.exam-links a { display:flex; justify-content:space-between; align-items:center; min-height:74px; padding:14px 19px; border-radius:7px; color:#fff; background:var(--green); text-decoration:none; }
.exam-links a:nth-child(2) { background:var(--blue); }
.exam-links a:hover { filter:brightness(.94); }
.exam-links strong,.exam-links small { display:block; }
.exam-links strong { font-size:17px; }
.exam-links small { font-size:13px; opacity:.86; }
.topics-section { padding-top:63px; padding-bottom:72px; }
.topics-section .section-heading { align-items:center; }
.search-box { display:flex; align-items:center; gap:8px; width:min(340px,100%); min-height:44px; padding:0 13px; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--muted); }
.search-box:focus-within { border-color:var(--green); }
.search-box input { width:100%; border:0; outline:0; background:none; color:var(--ink); }
.search-status { margin:-4px 0 18px; color:var(--muted); font-size:13px; }
.topic-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.topic-card { display:flex; flex-direction:column; min-height:174px; padding:20px; border:1px solid var(--line); border-radius:7px; background:#fff; text-decoration:none; transition:border-color .15s,box-shadow .15s; }
.topic-card:hover { border-color:var(--green); box-shadow:0 7px 20px rgba(24,48,57,.07); }
.topic-card__eyebrow { margin-bottom:12px; color:var(--coral); font-size:12px; font-weight:750; }
.topic-card strong { margin-bottom:7px; font-size:18px; line-height:1.25; }
.topic-card > span:nth-of-type(2) { color:var(--muted); font-size:14px; }
.topic-card__action { display:inline-flex; align-items:center; gap:5px; margin-top:auto; padding-top:16px; color:var(--green); font-size:13px; font-weight:750; }
.topic-card__action svg { width:15px; height:15px; }
.study-band { border-top:1px solid var(--line); background:#e8f2f0; }
.study-band__inner { display:grid; grid-template-columns:1fr 250px; align-items:center; gap:50px; min-height:270px; }
.study-band h2 { max-width:550px; margin:0 0 12px; }
.study-band p:not(.eyebrow) { max-width:600px; margin:0 0 15px; color:var(--muted); }
.study-band img { display:block; width:100%; height:245px; object-fit:cover; }
.text-link { display:inline-flex; align-items:center; gap:7px; color:var(--green-dark); font-weight:750; text-decoration:underline; text-underline-offset:3px; }
.page-shell { min-height:60vh; padding-top:25px; padding-bottom:76px; }
.crumbs { display:flex; flex-wrap:wrap; gap:9px; margin:0 0 40px; color:var(--muted); font-size:13px; }
.crumbs a { color:var(--green-dark); text-decoration:none; }
.crumbs a:hover { text-decoration:underline; }
.crumbs__sep { color:#9eafae; }
.page-heading { margin:0 0 46px; }
.page-heading h1 { margin:0 0 15px; }
.page-heading .lead { margin-bottom:0; }
.grade-next { display:flex; justify-content:space-between; gap:12px; margin-top:38px; padding-top:23px; border-top:1px solid var(--line); color:var(--muted); }
.grade-next a { display:inline-flex; align-items:center; gap:7px; color:var(--green-dark); font-weight:750; text-decoration:none; }
.topic-layout { display:grid; grid-template-columns:minmax(0,1fr) 250px; gap:65px; }
.lesson { min-width:0; }
.lesson .page-heading { margin-bottom:43px; }
.print-button { margin-top:17px; padding:8px 0; border:0; border-bottom:1px solid var(--green); background:none; color:var(--green-dark); font-size:14px; font-weight:700; }
.print-button:hover { color:var(--coral); border-color:var(--coral); }
.theory { max-width:730px; margin-bottom:50px; }
.theory h2 { margin-bottom:16px; }
.theory p { margin-bottom:15px; font-size:17px; line-height:1.68; }
.example { margin-top:23px; padding:17px 20px; border-left:4px solid var(--coral); background:var(--wash); }
.example strong { display:block; margin-bottom:4px; color:var(--green-dark); font-size:13px; }
.example p { margin:0; }
.lesson-aside { align-self:start; position:sticky; top:20px; padding:22px; border:1px solid var(--line); border-radius:7px; background:var(--wash); }
.lesson-aside strong { font-size:22px; }
.lesson-aside p:not(.eyebrow) { margin:12px 0; color:var(--muted); font-size:14px; }
.lesson-aside .text-link { font-size:13px; }
.quiz { border-top:2px solid var(--ink); }
.quiz__head { display:flex; justify-content:space-between; align-items:end; gap:12px; margin:25px 0 28px; }
.quiz__head h2 { margin:0; }
.quiz__head > span { color:var(--muted); font-size:13px; }
.question { min-width:0; margin:0 0 25px; padding:0 0 26px; border:0; border-bottom:1px solid var(--line); }
.question legend { display:flex; align-items:baseline; gap:13px; width:100%; margin-bottom:17px; padding:0; font-size:17px; font-weight:700; line-height:1.45; }
.question__number { color:var(--coral); font-size:12px; }
.option-list { display:grid; gap:8px; }
.option { display:flex; align-items:center; gap:12px; min-height:47px; padding:10px 13px; border:1px solid var(--line); border-radius:6px; cursor:pointer; }
.option:hover { border-color:var(--green); background:var(--wash); }
.option:has(input:checked) { border-color:var(--green); background:#e7f3ee; }
.question.is-incorrect .option:has(input:checked) { border-color:var(--coral); background:#fff0ef; }
.option.is-answer { border-color:var(--green); background:#e7f3ee; }
.option input { width:17px; height:17px; flex:none; accent-color:var(--green); }
.question.is-correct .question__feedback { color:var(--green-dark); }
.question.is-incorrect .question__feedback { color:#a43735; }
.question__feedback { margin:14px 0 0; padding:12px 14px; border-left:3px solid currentColor; background:var(--wash); font-size:14px; }
.quiz__actions { display:flex; align-items:center; flex-wrap:wrap; gap:16px; }
.button { min-height:44px; padding:10px 17px; border-radius:6px; font-weight:700; }
.button--primary { border:1px solid var(--green); color:#fff; background:var(--green); }
.button--primary:hover { background:var(--green-dark); }
.button--quiet { border:1px solid var(--line); color:var(--ink); background:#fff; }
.quiz__result { width:100%; margin:0; color:var(--green-dark); font-weight:750; }
.lesson-more { display:grid; gap:8px; margin-top:52px; padding-top:25px; border-top:1px solid var(--line); }
.lesson-more h2 { margin:0 0 5px; font-size:21px; }
.lesson-more a { display:inline-flex; align-items:center; gap:5px; width:fit-content; color:var(--green-dark); text-decoration:none; }
.notice { max-width:750px; margin:0 0 51px; padding:19px 22px; border-left:4px solid var(--blue); background:var(--wash); }
.notice strong { display:block; margin-bottom:7px; }
.notice p { margin-bottom:10px; color:var(--muted); }
.prose { max-width:760px; }
.prose h2 { margin:36px 0 13px; }
.prose p,.prose li { line-height:1.7; }
.prose a { color:var(--green-dark); }
.prose ul { padding-left:20px; }
.site-footer { border-top:1px solid var(--line); background:var(--wash); }
.footer-inner { display:flex; justify-content:space-between; gap:28px; padding:37px 0; }
.footer-inner p { max-width:370px; margin:9px 0 0; color:var(--muted); font-size:13px; }
.footer-inner nav { display:flex; align-content:start; justify-content:flex-end; flex-wrap:wrap; gap:10px 21px; max-width:500px; font-size:13px; }
.footer-inner nav a { color:var(--muted); text-decoration:none; }
.footer-inner nav a:hover { color:var(--green); text-decoration:underline; }
@media (max-width:1000px) { .grade-grid { grid-template-columns:repeat(6,minmax(0,1fr)); } .topic-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .topic-layout { gap:30px; grid-template-columns:minmax(0,1fr) 210px; } }
@media (max-width:700px) { .wrap { width:min(100% - 30px,1180px); } .header-inner { min-height:64px; } .brand { font-size:17px; } .brand-mark { width:33px; height:33px; font-size:22px; } .menu-toggle { display:grid; } .main-nav { display:none; position:absolute; top:64px; left:0; right:0; padding:8px 15px 15px; border-bottom:1px solid var(--line); background:#fff; box-shadow:0 10px 20px rgba(24,48,57,.08); } .main-nav.is-open { display:grid; } .main-nav a { width:100%; } h1 { font-size:32px; } h2 { font-size:22px; } .lead { font-size:16px; } .home-top { padding:31px 0 39px; } .home-top__heading { display:block; } .home-top__stats { display:none; } .class-picker { margin-top:32px; } .section-heading { align-items:start; } .section-heading > span { display:none; } .grade-grid { grid-template-columns:repeat(4,minmax(0,1fr)); } .grade-grid a { min-height:75px; } .grade-grid strong { font-size:22px; } .exam-links { grid-template-columns:1fr; } .exam-links a { min-height:67px; } .topics-section { padding-top:43px; padding-bottom:49px; } .topics-section .section-heading { display:block; } .search-box { margin-top:17px; width:100%; } .topic-grid { grid-template-columns:1fr; } .topic-card { min-height:150px; } .study-band__inner { grid-template-columns:1fr; gap:22px; padding-top:34px; padding-bottom:0; } .study-band img { width:100%; height:180px; object-position:center 42%; } .page-shell { padding-top:20px; padding-bottom:55px; } .crumbs { margin-bottom:30px; } .page-heading { margin-bottom:35px; } .topic-layout { display:block; } .lesson-aside { display:none; } .theory p { font-size:16px; } .question legend { font-size:16px; } .grade-next { display:block; } .grade-next span { display:block; margin-bottom:6px; } .footer-inner { display:block; } .footer-inner nav { justify-content:flex-start; margin-top:22px; } }
@media (max-width:380px) { .grade-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .brand { font-size:15px; } }
@media print { body { color:#000; font-size:12pt; } .site-header,.site-footer,.crumbs,.lesson-aside,.print-button,.quiz__actions,.lesson-more,.skip-link { display:none !important; } .wrap { width:100%; } .page-shell { padding:0; } .topic-layout { display:block; } .lesson .page-heading { margin-bottom:16px; } .theory { margin-bottom:24px; } .theory p { font-size:12pt; } .question { break-inside:avoid; margin-bottom:14px; padding-bottom:14px; } .question__feedback { display:none !important; } .option { min-height:0; border:0; padding:3px 0; } .option input { appearance:none; width:12px; height:12px; border:1px solid #000; border-radius:50%; } .option:has(input:checked),.option.is-answer { background:none; border:0; } }
