/* Calm blue and white theme (IELTS site). Only the colour variables change: every button, bar and link follows them. */
html.theme-calm{--bg:#f5f8fd;--green:#2563eb;--green-d:#1d4ed8;--green-l:#e3edff;--line:#dbe4f2;--ink:#17233a;--muted:#5a6b86}
.theme-calm .topbar{border-bottom:1px solid #dbe4f2}
.theme-calm .brand span,.theme-calm .brandsub{color:#2563eb}
.theme-calm .mainnav a:hover{color:#1d4ed8}
.theme-calm .card{border-top:4px solid var(--course,#2563eb)}
.theme-calm .coursebar{background:#fff}
/* Course page: group headings and badges */
.grouphead{grid-column:1/-1;margin:14px 0 0;padding-bottom:6px;border-bottom:2px solid var(--line);font-size:1.15rem;color:var(--course,#1d4ed8)}
.grouphead:first-child{margin-top:0}
.tagpill{display:inline-block;margin-left:8px;padding:1px 9px;border-radius:999px;font-size:.7rem;font-weight:600;letter-spacing:.03em;text-transform:uppercase;background:#e3edff;color:#1d4ed8;vertical-align:middle}

/* Dark version of the calm theme (IELTS site): chosen with the Dark button */
html.theme-calm[data-theme="dark"]{--bg:#0f1624;--card:#182133;--ink:#e6ecf7;--muted:#9fb0cc;--line:#2a3750;--green:#4f83f5;--green-d:#8fb0ff;--green-l:#1c2b4d}
.theme-calm[data-theme="dark"] .topbar{border-bottom:1px solid #2a3750}
.theme-calm[data-theme="dark"] .brand span,.theme-calm[data-theme="dark"] .brandsub{color:#8fb0ff}
.theme-calm[data-theme="dark"] .mainnav a:hover{color:#bcd0ff}
.theme-calm[data-theme="dark"] .coursebar{background:var(--card)}
.theme-calm[data-theme="dark"] .grouphead{color:var(--course,#8fb0ff)}
.theme-calm[data-theme="dark"] .tagpill{background:#1c2b4d;color:#9fbcff}
.theme-calm[data-theme="dark"] .grouphead,.theme-calm[data-theme="dark"] .coursebar .cb-title{color:color-mix(in srgb,var(--course,#2563eb) 45%,#ffffff)}
