/* Kleuren en typografie uit de oorspronkelijke Studieavonturen-stijl. */
:root {
  --sa-zand: #fbf4e6;
  --sa-papier: #fffdf8;
  --sa-inkt: #23313a;
  --sa-inkt-zacht: #5b6870;
  --sa-zee: #0f6f86;
  --sa-zee-donker: #0a4f60;
  --sa-zee-licht: #dff1f4;
  --sa-zon: #f39a1e;
  --sa-zon-licht: #fff0d6;
  --sa-lijn: #e6d7b8;
  --sa-font: ui-rounded, "SF Pro Rounded", "Avenir Next", Nunito, "Trebuchet MS", system-ui, sans-serif;
  --sa-schaduw: 0 2px 0 rgb(35 49 58 / .08), 0 8px 24px rgb(35 49 58 / .08);
}

html body, html body button, html body input, html body select, html body textarea {
  font-family: var(--sa-font);
}

html body.studieavonturen, html body.studieavonturen.primary {
  margin: 0;
  background: radial-gradient(circle at 12% 18%, #f39a1e12 0 120px, transparent 121px),
              radial-gradient(circle at 88% 82%, #0f6f8612 0 160px, transparent 161px),
              var(--sa-zand);
  color: var(--sa-inkt);
}

html body.studieavonturen.space { background: #211b42; color: #fff4d7; }

.studieavonturen .sa-brand-bar {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 64px;
  padding: 0 max(1rem, calc((100% - 68rem) / 2));
  background: var(--sa-zee);
  color: white;
  box-shadow: 0 3px 0 var(--sa-zee-donker);
  font-weight: 750;
}

.sa-brand-bar img { width: 42px; height: 42px; object-fit: contain; }
.studieavonturen section, .studieavonturen.primary section { color: var(--sa-inkt); background: var(--sa-papier); border-color: var(--sa-lijn); box-shadow: var(--sa-schaduw); }
.studieavonturen section h2, .studieavonturen section h3 { color: var(--sa-zee-donker); }
.studieavonturen .school-tile, .studieavonturen .lesson-tile, .studieavonturen .shop article {
  box-sizing: border-box;
  color: var(--sa-zee-donker);
  background: var(--sa-papier);
  border: 1px solid var(--sa-lijn);
  border-top: 4px solid var(--sa-zee);
  border-radius: 18px;
  box-shadow: var(--sa-schaduw);
  overflow-wrap: anywhere;
}
.studieavonturen .school-tile:nth-child(even), .studieavonturen .lesson-tile:nth-child(even), .studieavonturen .shop article:nth-child(even) { border-top-color: var(--sa-zon); }
.studieavonturen .school-tile { min-height: 5.5rem; text-decoration: none; }
.studieavonturen .school-tile[aria-current] { background: var(--sa-zee-licht); }
.studieavonturen .school-tile:hover, .studieavonturen .lesson-link:hover { background: var(--sa-zee-licht); text-decoration: underline; }
.studieavonturen .answer-tile { background: var(--sa-zon-licht); border-color: var(--sa-lijn); }
.studieavonturen .answer-tile:has(input:checked) { background: var(--sa-zee-licht); border-color: var(--sa-zee); }
.studieavonturen button:not(:disabled), .studieavonturen .button { background: var(--sa-zee-donker); color: white; min-height: 44px; }
.studieavonturen :focus-visible { outline: 3px solid #a15b00; outline-offset: 3px; }
.studieavonturen .lesson-grid { gap: 1rem; }
.studieavonturen .school-nav a { color: inherit; }

body.studieavonturen-kolibri [role="main"],
body.studieavonturen-kolibri main { background-color: var(--sa-zand); }
body.studieavonturen-kolibri :is(h1, h2) { color: var(--sa-zee-donker); }
body.studieavonturen-kolibri .studieavonturen-account-link {
  background: var(--sa-papier);
  border-color: var(--sa-lijn);
  color: var(--sa-zee-donker);
  box-shadow: var(--sa-schaduw);
}
