/* Khalid Seidi Academy – KS3 theme: bright but calm colours for younger learners (Y7–Y9).
   Loaded only on KS3 Science and KS3 Maths pages, after ksa-readable.css. */
:root{--brand:#4f4fd0;--teal:#0d8277;--pink:#c92a5e;--amber:#a8690c;--good:#20a464;--bad:#e5596a;
 --k-sky:#e8f3ff;--k-mint:#e6f7f1;--k-lav:#f0edff;--k-peach:#fff1e8;--k-sun:#fff8db;
 --bg:#f4f8ff;--surface2:#eef3fc}
html{font-size:18px}
html body{background:linear-gradient(180deg,#e3f0ff 0%,#efe9ff 45%,#e2f6ee 100%) fixed;background-color:var(--bg)}

/* soft coloured cards that change colour down the page */
html .card,html .q{border:0;box-shadow:0 10px 30px -18px rgba(60,72,140,.45);border-radius:24px}
html #pane>section.card:nth-of-type(5n+1){border-top:6px solid #7aa7ff}
html #pane>section.card:nth-of-type(5n+2){border-top:6px solid #5fd3b6}
html #pane>section.card:nth-of-type(5n+3){border-top:6px solid #b39cff}
html #pane>section.card:nth-of-type(5n+4){border-top:6px solid #ffb38a}
html #pane>section.card:nth-of-type(5n+5){border-top:6px solid #ffd166}
html .card h3{color:#3b3fb6}
html .card h3 .num{background:linear-gradient(135deg,#3f6fe0,#0f8a7f);color:#fff;border-radius:10px}

/* friendly lesson header */
html .lhead{background:linear-gradient(135deg,#4343c4 0%,#2f63d6 55%,#0f7f76 100%);border-radius:26px}
html .lhead h1,html .lhead .eb{text-shadow:0 1px 3px rgba(10,20,60,.45)}

/* key words and options in pastel colours */
html .ub .kw,html .kwrow span,html .chip{border-radius:999px}
html .opt{background:#fff;border:2px solid #dfe6f5}
html .opt:hover{background:var(--k-sky);border-color:#a9c6ff}
html .opt:has(input:checked){background:var(--k-lav);border-color:var(--brand)}
html .qopts button{border:2px solid #dfe6f5;background:#fff}
html .qopts button:hover{background:var(--k-sky);border-color:#a9c6ff}
html .note{background:var(--k-sun);border-left-color:#f7b733}

/* flashcards: sky-to-mint card, cream back */
html .fcard .ff{background:linear-gradient(135deg,#4343c4,#2f63d6 55%,#0f7f76);box-shadow:0 22px 40px -22px rgba(79,140,247,.8)}
html .fcard .fb2{background:#fffdf5;color:#1f2a4a;border:3px solid #ffd166}

/* lesson step chips */
html .step{border:2px solid #dfe6f5;background:#fff}
html .step.on{background:var(--k-lav);border-color:var(--brand)}
html .step.done{background:var(--k-mint);border-color:#5fd3b6}

/* buttons a little rounder and softer */
html .btn{border-radius:14px}
html .btn.pri{background:linear-gradient(135deg,#4343c4,#2f63d6);border-color:transparent;color:#fff}

@media (prefers-color-scheme:dark){
 :root{--bg:#121a2e}
 html body{background:linear-gradient(180deg,#121a2e,#151a33 50%,#10201f) fixed}
 html .opt,html .qopts button,html .step{background:var(--surface);border-color:#2c3658}
 html .opt:hover,html .qopts button:hover{background:#1c2a48}
 html .opt:has(input:checked),html .step.on{background:#252552}
 html .step.done{background:#15342c}
 html .note{background:#2e2a17;color:#f6eecb}
 html .fcard .fb2{background:#1d2741;color:#eef2ff;border-color:#8a7330}
 html .card h3{color:#b9b3ff}
}
@media (max-width:560px){html{font-size:17px}}

/* contrast safety: coloured headings and the reveal button stay readable on white */
html .reveal{background:#0d8277;color:#fff}
@media (prefers-color-scheme:dark){:root{--teal:#2fd3b8;--amber:#f5b942;--pink:#ff8fab;--surface2:#1d2741;--bg:#121a2e;--brand:#9d94ff}}
