/* ==========================================================================
   Creole Mauritius — core: tokens, fonts, base, layout, header, footer,
   shared components. Loaded on every page.
   Type: Bricolage Grotesque (headings, UI), Figtree (reading).
   ========================================================================== */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../../fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../../fonts/figtree-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../../fonts/figtree-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url('../../fonts/figtree-latin-wght-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #FFFFFF;          /* page */
  --paper-deep: #EEF5F3;     /* lagoon mist: tinted bands */
  --surface: #F5F9F8;        /* quiet panels */
  --ink: #14232A;            /* deep sea */
  --ink-soft: #3F5159;
  --ink-mute: #677880;
  --lagoon: #0B7A75;
  --lagoon-deep: #075A56;
  --lagoon-wash: #DCEEEA;
  --cane: #F2B632;           /* sun: used sparingly */
  --cane-wash: #FDF2D6;
  --coral: #C8473A;          /* errors and wrong answers only */
  --rule: #E2E9E7;
  --rule-strong: #14232A;
  --focus: #0B7A75;
  --band: #0C3D3B;           /* newsletter band */
  --on-lagoon: #FFFFFF;      /* text on lagoon buttons */

  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1.02rem, 0.99rem + 0.15vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.35vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.7vw, 1.9rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.4vw, 2.7rem);
  --step-4: clamp(2.15rem, 1.65rem + 2.4vw, 3.7rem);

  --gutter: 1rem;
  --wrap: 72rem;
  --measure: 42rem;
  --r-sm: 6px;
  --radius: 10px;
  --r-lg: 16px;
  --header-h: 3.75rem;
  color-scheme: light;
}

@media (min-width: 720px) {
  :root { --gutter: 2rem; --header-h: 4.75rem; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.015em; }
h4 { font-size: var(--step-0); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--lagoon); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--lagoon-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: var(--r-sm); }
::selection { background: var(--cane-wash); color: var(--ink); }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 1.75em; height: 1.75em; }

[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; 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; left: 0.5rem; top: -3rem; z-index: 200; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: 0.5rem; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(var(--measure) + var(--gutter) * 2); }
.section { padding-block: 2.75rem; }
@media (min-width: 720px) { .section { padding-block: 4rem; } }
.section--tint { background: var(--paper-deep); }
.stack > * + * { margin-top: 1rem; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-head h2 { font-size: var(--step-2); margin: 0; }
.section-head a { font-size: 0.95rem; font-weight: 600; white-space: nowrap; text-decoration: none; }
.section-head a .icon { display: none; }
.section-head a:hover { text-decoration: underline; }
.section-lede { color: var(--ink-soft); margin-top: -0.75rem; margin-bottom: 1.5rem; }

/* ---------- Buttons & form controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.9rem; padding: 0.6rem 1.25rem;
  border: 1.5px solid var(--lagoon); border-radius: var(--radius);
  background: var(--lagoon); color: var(--on-lagoon);
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--lagoon-deep); border-color: var(--lagoon-deep); color: var(--on-lagoon); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink-mute); }
.btn--lagoon { background: var(--lagoon); border-color: var(--lagoon); color: var(--on-lagoon); }
.btn--block { width: 100%; }
.text-link { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.text-link:hover { text-decoration: underline; }

.field { display: block; width: 100%; min-height: 2.9rem; padding: 0.6rem 0.9rem; background: var(--paper); border: 1.5px solid var(--rule); border-radius: var(--radius); }
.field:focus { border-color: var(--lagoon); outline: none; box-shadow: 0 0 0 4px var(--lagoon-wash); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.6) blur(10px);
  -webkit-backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.admin-bar .site-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .site-header { top: 32px; } }
.site-header__bar { display: flex; align-items: center; gap: 0.5rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand__mark { width: 2rem; height: 2rem; color: var(--lagoon); }
/* Wide logos (about 3:1) need the height to keep the lettering readable. */
.brand__logo { display: block; height: 3rem; width: auto; max-width: 11rem; object-fit: contain; }
@media (min-width: 720px) { .brand__logo { height: 3.6rem; max-width: 14rem; } }
.site-footer .brand__logo { height: 4.5rem; max-width: 16rem; margin-bottom: 0.75rem; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; line-height: 1; }
.brand__name em { font-style: normal; font-weight: 400; color: inherit; }
@media (min-width: 720px) { .brand__name { font-size: 1.35rem; } }

.primary-nav { display: none; }
@media (min-width: 1024px) {
  .primary-nav { display: block; margin-inline: auto; }
  .primary-nav > ul { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
  .primary-nav a { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.5rem 0.8rem; border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.97rem; }
  .primary-nav a:hover { background: var(--surface); color: var(--ink); }
  .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { color: var(--lagoon); }
  .primary-nav .menu-item-has-children > a::after { content: ''; width: 0.38em; height: 0.38em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 0.4rem; opacity: 0.6; }
  .primary-nav li { position: relative; }
  .primary-nav .sub-menu { display: none; position: absolute; left: 0; top: calc(100% + 4px); min-width: 15rem; list-style: none; margin: 0; padding: 0.4rem; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: 0 18px 40px -22px rgb(10 35 40 / .35); }
  .primary-nav .sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
  .primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu, .primary-nav li.is-open > .sub-menu { display: block; }
  .primary-nav .sub-menu a { display: flex; width: 100%; padding: 0.6rem 0.8rem; font-weight: 500; }
}
.header-actions { display: flex; align-items: center; gap: 0.1rem; }
.icon-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; background: none; color: var(--ink); border-radius: var(--radius); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.icon-btn .icon { width: 1.3rem; height: 1.3rem; }
.header-actions .only-desktop { display: none; }
@media (min-width: 1024px) {
  .header-actions .only-desktop { display: inline-grid; }
  .header-actions .only-mobile { display: none; }
}

/* Search panel */
.search-panel { display: none; border-top: 1px solid var(--rule); background: var(--paper); padding-block: 1rem; }
.search-panel.is-open { display: block; }
.search-form { display: flex; gap: 0.5rem; }
.search-form .field { flex: 1; font-size: 1.05rem; }
.search-suggest { list-style: none; margin: 0.75rem 0 0; padding: 0; max-height: 60vh; overflow: auto; }
.search-suggest li + li { border-top: 1px solid var(--rule); }
.search-suggest a { display: flex; gap: 0.85rem; align-items: center; padding: 0.65rem 0; color: var(--ink); text-decoration: none; }
.search-suggest strong { font-family: var(--font-display); font-weight: 600; }
.search-suggest img { width: 3.5rem; height: 3.5rem; object-fit: cover; flex: none; border-radius: var(--radius); }
.search-suggest small { display: block; color: var(--ink-mute); font-size: var(--step--1); }
.search-suggest mark { background: var(--cane-wash); color: inherit; }

/* Menu drawer */
.drawer { position: fixed; inset: 0; z-index: 150; display: none; }
.drawer.is-open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgb(8 24 28 / .5); }
.drawer__panel { position: absolute; inset: 0 0 0 auto; width: min(24rem, 100%); background: var(--paper); overflow-y: auto; padding: 0.75rem var(--gutter) 2rem; display: flex; flex-direction: column; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; height: calc(var(--header-h) - 0.75rem); margin-bottom: 1rem; }
.drawer nav ul { list-style: none; margin: 0; padding: 0; }
.drawer nav > ul > li + li { border-top: 1px solid var(--rule); }
.drawer nav a { display: block; padding: 0.7rem 0; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: 1.2rem; font-weight: 650; letter-spacing: -0.02em; }
.drawer nav .menu-item-has-children { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.drawer nav .menu-item-has-children > .sub-menu { grid-column: 1 / -1; display: none; }
.drawer__toggle[aria-expanded="true"] + .sub-menu { display: block; }
.drawer__toggle { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); cursor: pointer; }
.drawer__toggle .icon { transition: transform .2s; }
.drawer__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.drawer nav .sub-menu { padding: 0 0 0.75rem 0.25rem; }
.drawer nav .sub-menu a { font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0; padding: 0.45rem 0; color: var(--ink-soft); }
.drawer__foot { margin-top: auto; padding-top: 1.5rem; display: grid; gap: 0.6rem; }
.drawer__account { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
body.has-drawer { overflow: hidden; }

/* ---------- Story cards ---------- */
.story { position: relative; display: flex; flex-direction: column; gap: 0.8rem; }
.story__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r-lg); background: var(--paper-deep); }
.story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.story:hover .story__media img { transform: scale(1.025); }
.story__body { display: flex; flex-direction: column; gap: 0.45rem; }
.story__title { font-size: 1.22rem; font-weight: 650; line-height: 1.22; letter-spacing: -0.018em; margin: 0; }
.story__title a { color: var(--ink); text-decoration: none; }
.story:hover .story__title a { color: var(--lagoon-deep); }
.story__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.story__dek { color: var(--ink-soft); font-size: 0.97rem; line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story__meta { display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; align-items: center; margin: 0; font-size: 0.87rem; color: var(--ink-mute); }
.story__meta a { position: relative; z-index: 2; color: var(--lagoon); font-weight: 600; text-decoration: none; }
.story__meta a:hover { text-decoration: underline; }
.story__meta .icon { width: 0.95em; height: 0.95em; margin-right: 0.25rem; vertical-align: -0.12em; }
.story--lead .story__title { font-size: var(--step-3); font-weight: 700; letter-spacing: -0.028em; line-height: 1.08; }
.story--lead .story__media { aspect-ratio: 16 / 10; border-radius: 20px; }
.story--lead .story__dek { font-size: 1.05rem; -webkit-line-clamp: 3; }
.story--row { flex-direction: row; gap: 1rem; align-items: center; }
.story--row .story__media { width: 5.75rem; aspect-ratio: 1; flex: none; border-radius: var(--radius); }
.story--row .story__title { font-size: 1.02rem; line-height: 1.3; }
.story--row .story__body { gap: 0.3rem; }
.story--text { padding-block: 1rem; border-top: 1px solid var(--rule); }
.story--text .story__title { font-size: 1.12rem; }

.save-btn { position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; background: rgb(255 255 255 / .9); color: #14232A; border: 0; border-radius: var(--radius); cursor: pointer; backdrop-filter: blur(6px); }
.save-btn .icon { width: 1.1rem; height: 1.1rem; }
.save-btn[aria-pressed="true"] { color: var(--lagoon-deep); }
.save-btn[aria-pressed="true"] .icon { fill: currentColor; }
.story--row .save-btn, .story--text .save-btn { display: none; }

.grid { display: grid; gap: 2.25rem 1.5rem; }
@media (min-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 2.75rem 2rem; } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.list-rows { display: grid; gap: 1rem; }
.list-rows > * + * { border-top: 1px solid var(--rule); padding-top: 1rem; }

/* ---------- Term links ---------- */
.term-list { display: flex; flex-wrap: wrap; gap: 0.55rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.term-list a { font-size: 0.98rem; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--lagoon-wash); padding-bottom: 0.1rem; }
.term-list a:hover { color: var(--lagoon-deep); border-color: var(--lagoon); }
.term-list small { color: var(--ink-mute); font-weight: 500; margin-left: 0.35rem; font-size: 0.85em; }
.term-list--big { gap: 0.7rem 1.6rem; }

/* ---------- Index lists (icon + title + line) ---------- */
.index-list { display: grid; list-style: none; margin: 0; padding: 0; }
@media (min-width: 600px) { .index-list { grid-template-columns: repeat(2, 1fr); column-gap: 2rem; } }
@media (min-width: 960px) { .index-list--3 { grid-template-columns: repeat(3, 1fr); } }
.index-list li { border-bottom: 1px solid var(--rule); }
.index-list a { display: flex; align-items: center; gap: 0.95rem; padding: 1rem 0; color: var(--ink); text-decoration: none; }
.index-list a:hover strong { color: var(--lagoon-deep); }
.index-list .icon { width: 2.5rem; height: 2.5rem; padding: 0.55rem; color: var(--lagoon); background: var(--lagoon-wash); border-radius: var(--radius); }
.index-list strong { display: block; font-family: var(--font-display); font-weight: 650; font-size: 1.08rem; letter-spacing: -0.012em; }
.index-list span { display: block; color: var(--ink-mute); font-size: 0.9rem; }
.index-list .icon:last-child { margin-left: auto; width: 1.1rem; height: 1.1rem; padding: 0; background: none; color: var(--ink-mute); }

/* ---------- Page heads ---------- */
.page-head { padding-block: 2.25rem 1.5rem; }
@media (min-width: 720px) { .page-head { padding-block: 3.5rem 2rem; } }
.page-head h1 { margin-bottom: 0.5rem; }
.page-head p { color: var(--ink-soft); font-size: var(--step-1); margin: 0; }
.crumbs { font-size: 0.88rem; color: var(--ink-mute); margin-bottom: 1rem; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .separator { margin-inline: 0.45rem; color: var(--ink-mute); opacity: 0.5; }

/* ---------- Hub heads & filters ---------- */
.hub-head { padding-block: 2.25rem 2rem; }
@media (min-width: 720px) { .hub-head { padding-block: 3.5rem 2.75rem; } }
.hub-head__grid { display: grid; gap: 1.75rem; align-items: center; }
.hub-head__grid > * { min-width: 0; }
/* Two columns only when there is a picture or map beside the text; otherwise the text uses the full width. */
@media (min-width: 900px) { .hub-head__grid:has(> :nth-child(2)) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3.5rem; } }
.hub-head h1 { margin-bottom: 0.6rem; display: flex; gap: 0.8rem; align-items: center; }
@media (max-width: 599px) { .hub-head h1 { font-size: 1.85rem; line-height: 1.1; gap: 0.6rem; } .hub-head h1 .icon { width: 2.2rem; height: 2.2rem; padding: 0.45rem; } }
.hub-head h1 .icon { width: 2.75rem; height: 2.75rem; padding: 0.55rem; color: var(--lagoon); background: var(--lagoon-wash); border-radius: var(--radius); flex: none; }
.hub-head__intro { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }
.hub-head__intro p:last-child { margin: 0; }
.hub-head__count { font-size: 0.92rem; color: var(--ink-mute); margin-top: 0.9rem; }
.hub-head__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; }

.filter-row { display: flex; gap: 0.25rem 1.5rem; flex-wrap: nowrap; overflow-x: auto; margin-bottom: 2rem; border-bottom: 1px solid var(--rule); scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-row a { white-space: nowrap; color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.97rem; padding-block: 0.7rem; border-bottom: 2.5px solid transparent; margin-bottom: -1px; }
.filter-row a:hover { color: var(--ink); }
.filter-row a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--lagoon); }
.hub-search { max-width: 36rem; margin-top: 1.5rem; }

/* ---------- Tool tiles and region layout ---------- */
.learn-head__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.learn-tools { display: grid; gap: 0.75rem; }
/* Fill the row whatever the number of cards (3 on practice, 4 elsewhere). */
@media (min-width: 600px) { .learn-tools { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; } }
.learn-tool { display: grid; gap: 0.35rem; align-content: start; padding: 1.35rem; background: var(--surface); border-radius: var(--r-lg); color: var(--ink); text-decoration: none; transition: background-color .15s; }
a.learn-tool:hover { background: var(--lagoon-wash); }
.learn-tool .icon--lg { color: var(--lagoon); margin-bottom: 0.5rem; }
.learn-tool strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 650; letter-spacing: -0.015em; }
.learn-tool span { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.45; }

.regions { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) {
  .regions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: stretch; }
  .regions .index-list { grid-template-columns: 1fr; }
  /* The map panel matches the height of the region list and the map fills it. */
  .regions .region-map { display: flex; flex-direction: column; padding: 1.5rem; }
  .regions .region-map svg { flex: 1 1 auto; min-height: 0; width: 100%; height: 100%; max-width: none; }
}

/* ---------- Region map (real district boundaries) ---------- */
.region-map { margin: 0; padding: 1rem; background: radial-gradient(90% 80% at 50% 45%, #E3F2EF 0%, #F2F8F6 100%); border-radius: 20px; }
.region-map svg { display: block; width: 100%; max-width: 26rem; height: auto; margin-inline: auto; overflow: visible; }
.region-map__area path { fill: #BFE0D9; stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; transition: fill .15s; }
.region-map__area.is-empty path { fill: #D8E9E5; }
.region-map__area text { font-family: var(--font-display); font-size: 19px; font-weight: 650; fill: #0A4C4A; pointer-events: none; paint-order: stroke; stroke: rgb(255 255 255 / .75); stroke-width: 4px; }
.region-map__area:hover path, .region-map__area:focus-visible path, .region-map__area.is-current path { fill: var(--lagoon); }
.region-map__area:hover text, .region-map__area:focus-visible text, .region-map__area.is-current text { fill: #fff; stroke: rgb(7 90 86 / .6); }
.region-map__area:focus { outline: none; }
.region-map__area:focus-visible path { stroke: var(--ink); stroke-width: 3; }
.region-map figcaption { text-align: center; font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.6rem; }
.region-map figcaption small { display: block; font-size: 0.75rem; color: var(--ink-mute); margin-top: 0.2rem; }
@media (max-width: 599px) {
  .region-map svg { max-width: 17rem; }
  /* Region list becomes a compact two-column grid of names. */
  .regions .index-list { grid-template-columns: 1fr 1fr; column-gap: 0.75rem; }
  .regions .index-list li { border-bottom: 0; }
  .regions .index-list a { padding: 0.55rem 0; gap: 0.55rem; }
  .regions .index-list .icon { width: 2rem; height: 2rem; padding: 0.45rem; }
  .regions .index-list span span, .regions .index-list .icon:last-child { display: none; }
  .regions .index-list strong { font-size: 0.98rem; }
}

/* ---------- Notes ---------- */
.note { background: var(--cane-wash); border-radius: var(--radius); padding: 1rem 1.2rem; }
.note--lagoon { background: var(--lagoon-wash); }
.note p:last-child { margin: 0; }

/* ---------- Word of the day ---------- */
.wotd { display: grid; gap: 0.4rem; }
.wotd__label { font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); display: flex; gap: 0.4rem; align-items: center; }
.wotd__word { font-family: var(--font-display); font-size: var(--step-3); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: 0; display: flex; align-items: center; gap: 0.7rem; }
.wotd__word a { color: var(--ink); text-decoration: none; }
.wotd__mean { color: var(--ink-soft); margin: 0; font-size: 1.1rem; }
.speak-btn { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none; border: 0; border-radius: var(--radius); background: var(--lagoon-wash); color: var(--lagoon-deep); cursor: pointer; }
.speak-btn:hover { background: var(--lagoon); color: var(--on-lagoon); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--band); color: #EAF4F2; padding: 3rem var(--gutter); }
.newsletter h2 { color: #fff; font-size: var(--step-2); margin-bottom: 0.4rem; }
.newsletter p { color: rgb(234 244 242 / .78); margin-bottom: 1rem; }
.newsletter__inner { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 1rem; }
@media (min-width: 860px) { .newsletter__inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; } }
/* Fluent Forms newsletter (form 2), restyled to match the site */
.newsletter .fluentform { margin: 0; }
.newsletter .ff-t-container { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: 0.75rem; margin: 0 !important; }
.newsletter .ff-t-cell { display: block !important; width: auto !important; flex: none !important; flex-basis: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
.newsletter .ff-el-group, .newsletter .ff-el-input--content { width: 100%; margin: 0 !important; }
.newsletter .ff_submit_btn_wrapper { display: block !important; width: auto !important; }
.newsletter .ff-el-input--label { display: none; }
.newsletter .ff-el-form-control { width: 100%; min-height: 3rem; padding: 0.6rem 0.9rem !important; background: rgb(255 255 255 / .08) !important; color: #fff !important; border: 1.5px solid rgb(255 255 255 / .22) !important; border-radius: var(--radius) !important; font: inherit; font-size: 1rem !important; box-shadow: none !important; }
.newsletter .ff-el-form-control::placeholder { color: rgb(255 255 255 / .6); }
.newsletter .ff-el-form-control:focus { border-color: var(--cane) !important; box-shadow: 0 0 0 4px rgb(242 182 50 / .25) !important; outline: none; }
.newsletter form .ff-btn-submit, .newsletter form .wpf_has_custom_css.ff-btn-submit { min-width: 0 !important; min-height: 3rem; padding: 0 1.35rem !important; background: var(--cane) !important; border: 0 !important; border-radius: var(--radius) !important; color: #14232A !important; font-family: var(--font-display); font-weight: 650; font-size: 1rem; box-shadow: none !important; cursor: pointer; }
.newsletter form .ff-btn-submit:hover { background: #fff !important; color: #14232A !important; opacity: 1 !important; }
.newsletter .ff-message-success { margin: 0; padding: 0.9rem 1rem; border: 1.5px solid var(--cane) !important; border-radius: var(--radius); background: rgb(255 255 255 / .06) !important; color: #fff; box-shadow: none !important; }
.newsletter .ff-el-is-error .ff-el-form-control { border-color: #F2A395 !important; }
.newsletter .ff-el-is-error .text-danger, .newsletter .error { color: #FFD3CB !important; font-size: 0.87rem; margin-top: 0.35rem; }
.newsletter__note { font-size: 0.86rem; margin: 0.6rem 0 0 !important; }
.newsletter__note a { color: inherit; }
@media (max-width: 420px) { .newsletter .ff-t-container { grid-template-columns: minmax(0, 1fr); } .newsletter .ff-t-column-2 .ff-btn-submit { width: 100%; } }

/* ---------- Ads (AdSense Auto ads) ---------- */
ins.adsbygoogle { max-width: 100%; }
.prose ins.adsbygoogle, .article-main > ins.adsbygoogle { margin-block: 2rem !important; }
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
/* ---------- Affiliate blocks ---------- */
.aff { background: var(--surface); border-radius: var(--r-lg); padding: 1.35rem; margin: 2.5rem 0; }
.aff__head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.4rem; }
.aff__head .icon { color: var(--lagoon); width: 2.4rem; height: 2.4rem; padding: 0.5rem; background: var(--lagoon-wash); border-radius: var(--radius); }
.aff__head h3 { margin: 0; font-size: var(--step-1); }
.aff p { color: var(--ink-soft); margin-bottom: 1rem; font-size: 0.97rem; }
.aff__links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.aff-widget { min-height: 320px; }
.disclosure { font-size: 0.86rem; color: var(--ink-mute); margin: 0 0 1.75rem; padding-left: 0.9rem; border-left: 2px solid var(--rule); }

/* ---------- Misc ---------- */
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.story__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--lagoon); background: var(--lagoon-wash); }
.search-empty { display: block; padding: 0.75rem 0; color: var(--ink-mute); }
.footer-word { font-size: 0.95rem; }
.footer-word a { color: var(--lagoon); }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-deep); padding-block: 3rem 1.75rem; font-size: 0.97rem; }
.site-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.site-footer h2 { font-family: var(--font-display); font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--lagoon-deep); text-decoration: underline; }
.site-footer__about p { color: var(--ink-soft); max-width: 22rem; }
.site-footer__base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between; color: var(--ink-mute); font-size: 0.88rem; }
.social { display: flex; gap: 0.25rem; margin-top: 0.75rem; margin-left: -0.6rem; }

/* ---------- Pagination / load more ---------- */
.pager { display: flex; justify-content: center; gap: 0.3rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pager a, .pager span { min-width: 2.75rem; height: 2.75rem; display: inline-grid; place-items: center; padding: 0 0.6rem; text-decoration: none; color: var(--ink); border-radius: var(--radius); background: var(--surface); }
.pager .current { background: var(--ink); color: var(--paper); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 5rem; transform: translateX(-50%) translateY(1rem); background: var(--ink); color: var(--paper); padding: 0.7rem 1.1rem; border-radius: var(--radius); font-size: 0.93rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 300; max-width: calc(100% - 2rem); }
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

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

@media print {
  .site-header, .site-footer, .aff, .newsletter, .reading-bar, .keep-exploring, .read-next, .comments, .share-row, .article-rail, ins.adsbygoogle { display: none !important; }
  body { background: #fff; color: #000; }
}
