:root {
  --bg: #f6f1e7;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #17231f;
  --muted: #6f766f;
  --line: #ded8cc;
  --line-strong: #d3cab9;
  --green: #155d48;
  --green-hover: #0f4d3a;
  --green-soft: #e8f0eb;
  --gold: #b57b22;
  --gold-soft: #fff7df;
  --blue: #2b78b7;
  --blue-soft: #eef7ff;
  --purple-soft: #f4efff;
  --danger: #a43c35;
  --shadow: 0 10px 30px rgba(51, 43, 28, .08), 0 2px 8px rgba(51, 43, 28, .05);
  --shadow-soft: 0 6px 18px rgba(51, 43, 28, .06);
  --radius: 22px;
  --radius-small: 15px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 0%, rgba(36, 110, 83, .055), transparent 28rem),
    linear-gradient(180deg, #faf6ee 0%, var(--bg) 52%, #f4efe6 100%);
}
button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.app-shell {
  width: min(100%, 620px);
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 4px 18px;
}
.brand-block { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-child-icon {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #fff4d8;
  border: 1px solid #efd6a2;
  font-size: 1.4rem;
  box-shadow: var(--shadow-soft);
}
.brand-overline {
  margin: 0 0 3px;
  color: var(--green);
  font-size: .63rem;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: .1em;
}
h1, h2, .article-title, .quiz-question {
  font-family: Georgia, "Times New Roman", serif;
}
h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 2.65rem);
  line-height: .98;
  font-weight: 650;
  letter-spacing: -.035em;
}

.topbar-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.icon-button,
.theme-picker {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, .9);
  box-shadow: 0 3px 10px rgba(51, 43, 28, .04);
}
.icon-button {
  position: relative;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  font-size: 1.22rem;
  cursor: pointer;
}
.notification-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  right: 5px;
  top: 5px;
  border: 2px solid var(--surface-strong);
  border-radius: 50%;
  background: var(--gold);
}
.theme-picker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 43px;
  padding: 0 7px 0 10px;
  border-radius: 999px;
  color: var(--green);
}
.theme-picker-icon { font-size: .94rem; line-height: 1; }
.theme-picker select {
  appearance: none;
  -webkit-appearance: none;
  width: 70px;
  border: 0;
  outline: 0;
  padding: 8px 15px 8px 0;
  color: var(--ink);
  background-color: transparent;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 6px) 50%, calc(100% - 2px) 50%;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  font-size: .76rem;
  font-weight: 750;
  cursor: pointer;
}

.tabs {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr .65fr;
  gap: 2px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, .72);
  box-shadow: 0 3px 11px rgba(51, 43, 28, .03);
}
.tab {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--muted);
  background: transparent;
  font-size: .85rem;
  font-weight: 720;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.tab:active { transform: scale(.985); }
.tab.is-active {
  color: #fff;
  background: var(--green);
  box-shadow: 0 5px 12px rgba(21, 93, 72, .18);
}

.status-row {
  height: 12px;
  margin: 5px 8px 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.mode-badge { font-weight: 700; }

.content-area { min-height: 350px; }
.article-card,
.quiz-card,
.fact-card,
.on-this-day-card {
  border: 1px solid rgba(85, 71, 48, .13);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.article-card { overflow: hidden; }
.article-hero {
  position: relative;
  min-height: 205px;
  overflow: hidden;
  background: linear-gradient(155deg, #dce7df 0%, #eee5d3 100%);
}
.article-hero img {
  display: block;
  width: 100%;
  height: 225px;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: auto 14px 13px auto;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 999px;
  color: var(--green);
  background: rgba(255,255,255,.9);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  backdrop-filter: blur(8px);
  font-size: .7rem;
  font-weight: 800;
}
.article-body { padding: 20px 21px 19px; }
.article-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.article-kicker {
  color: var(--green);
  font-size: .74rem;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.article-date {
  margin-top: 3px;
  color: var(--muted);
  font-size: .82rem;
}
.article-subject-pill {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.66);
  font-size: .68rem;
  font-weight: 750;
}
.article-title {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 7vw, 2.65rem);
  line-height: 1.03;
  font-weight: 650;
  letter-spacing: -.035em;
}
.article-lead {
  margin: 0 0 16px;
  color: #2c3933;
  font-size: 1.02rem;
  line-height: 1.53;
  font-weight: 580;
}
.article-copy p {
  margin: 0 0 14px;
  color: #39433e;
  font-size: .97rem;
  line-height: 1.62;
}
.illustration-note {
  margin: -4px 0 15px;
  color: var(--muted);
  font-size: .77rem;
  line-height: 1.4;
}
.source-block {
  margin-top: 19px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.source-title {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.source-links { display: flex; flex-wrap: wrap; gap: 7px; }
.source-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface-strong);
  text-decoration: none;
  font-size: .77rem;
  font-weight: 700;
}
.source-logo {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--green-soft);
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: .72rem;
  font-weight: 900;
}
.source-link:hover { border-color: var(--green); color: var(--green); }

.fact-card {
  position: relative;
  margin-top: 12px;
  padding: 16px 18px 16px 58px;
  border-color: #ead49a;
  background: linear-gradient(135deg, #fff9e9, var(--gold-soft));
  box-shadow: var(--shadow-soft);
}
.fact-card::before {
  content: "💡";
  position: absolute;
  left: 17px;
  top: 18px;
  font-size: 1.8rem;
}
.fact-card strong {
  display: block;
  margin-bottom: 3px;
  color: #7b5416;
  font-size: .72rem;
  letter-spacing: .07em;
}
.fact-card p { margin: 0; line-height: 1.48; font-size: .92rem; }

.quiz-wrap { margin-top: 13px; }
.quiz-card {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 17px;
}
.quiz-card::before {
  content: "?";
  float: left;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin: 0 11px 4px 0;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 800;
}
.quiz-label {
  padding-top: 1px;
  color: var(--green);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
}
.quiz-question {
  min-height: 33px;
  margin: 3px 0 14px;
  font-size: clamp(1.2rem, 4.6vw, 1.55rem);
  line-height: 1.08;
  font-weight: 650;
}
.quiz-options {
  clear: both;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.quiz-option {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: var(--surface-strong);
  text-align: center;
  font-size: .87rem;
  font-weight: 720;
  cursor: pointer;
}
.quiz-option:hover { border-color: var(--green); }
.quiz-option.correct { border-color: #76a98a; background: #edf7ef; }
.quiz-option.wrong { border-color: #cf8f87; background: #fff0ee; }
.quiz-option:disabled { cursor: default; opacity: 1; }
.quiz-explanation {
  clear: both;
  margin-top: 11px;
  padding: 12px 13px;
  border-radius: 12px;
  background: var(--blue-soft);
  line-height: 1.45;
  font-size: .87rem;
}
.quiz-source { clear: both; margin-top: 9px; color: var(--muted); font-size: .73rem; }
.quiz-source a { color: var(--green); font-weight: 700; }
.quiz-standalone { margin-top: 0; }

.on-this-day-card {
  margin-top: 13px;
  padding: 17px 18px;
  border-color: #ddd0b8;
  background: linear-gradient(140deg, #f7f1e6, #fffdf8);
  box-shadow: var(--shadow-soft);
}
.on-this-day-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.on-this-day-label {
  color: #765a22;
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .07em;
}
.on-this-day-year {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid #ddcfb4;
  border-radius: 999px;
  color: #765a22;
  background: var(--surface-strong);
  font-size: .78rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.on-this-day-type {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.on-this-day-card h3 {
  margin: 0 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  line-height: 1.1;
}
.on-this-day-card > p { margin: 0; color: #3f4641; font-size: .9rem; line-height: 1.52; }
.on-this-day-sources { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }

.bottom-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin-top: 14px;
}
.secondary-button,
.primary-button,
.text-button,
.danger-link {
  min-height: 44px;
  border-radius: 13px;
  padding: 9px 13px;
  font-weight: 760;
  cursor: pointer;
}
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255,253,248,.82);
  box-shadow: 0 3px 10px rgba(51, 43, 28, .03);
}
.button-icon { color: var(--green); font-size: 1.08rem; }
.child-toggle { white-space: nowrap; }
.primary-button { border: 0; color: #fff; background: var(--green); }
.text-button,
.danger-link { border: 0; background: transparent; color: var(--green); }
.danger-link { color: var(--danger); padding-left: 0; }
.today-link-wrap { padding: 9px; text-align: center; }

.dialog { width: min(92vw, 440px); border: 0; padding: 0; background: transparent; }
.dialog::backdrop { background: rgba(23,33,29,.52); backdrop-filter: blur(4px); }
.dialog-card { padding: 21px; border-radius: 22px; background: var(--surface-strong); box-shadow: 0 28px 80px rgba(0,0,0,.24); }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.dialog-heading h2 { margin: 3px 0 0; font-size: 1.55rem; }
.close-button { width: 35px; height: 35px; border: 0; border-radius: 50%; color: var(--ink); background: var(--green-soft); font-size: 1.3rem; cursor: pointer; }
.dialog-copy { color: var(--muted); line-height: 1.5; }
.radio-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-weight: 700; }
.radio-row input { width: 18px; height: 18px; accent-color: var(--green); }
.dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.fine-print { margin: 13px 0 0; color: var(--muted); font-size: .74rem; line-height: 1.45; }

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  max-width: 90vw;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: #16241e;
  box-shadow: var(--shadow);
  text-align: center;
  font-size: .84rem;
}

.skeleton { border-radius: 18px; background: linear-gradient(90deg, #e8e3d9 25%, #f4f0e8 50%, #e8e3d9 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.hero-skeleton { height: 280px; }
.line { height: 17px; margin: 13px 10px 0; }
.line.short { width: 62%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.error-card { padding: 17px; border: 1px solid #e6b7b2; border-radius: 17px; color: #6f2e2a; background: #fff1ef; line-height: 1.5; }
.demo-note { margin: 11px 0 0; padding: 9px 11px; border: 1px solid #ead7a1; border-radius: 11px; color: #72551b; background: #fff7df; font-size: .78rem; }
.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; }

/* Child mode deliberately follows the playful side of the original concept. */
body.child-mode {
  --bg: #edf7ff;
  --surface: #fffef8;
  --surface-strong: #ffffff;
  --ink: #173450;
  --muted: #61778a;
  --line: #caddea;
  --line-strong: #bdd3e3;
  --green: #257b58;
  --green-hover: #1c6748;
  --green-soft: #e8f5ed;
  --gold-soft: #fff6d8;
  --blue-soft: #e8f5ff;
  background:
    radial-gradient(circle at 20% 0%, rgba(95,190,235,.20), transparent 27rem),
    linear-gradient(180deg, #dff3ff 0%, #eff8ff 23rem, var(--bg) 100%);
}
body.child-mode .brand-child-icon { display: grid; }
body.child-mode h1,
body.child-mode .article-title,
body.child-mode .quiz-question,
body.child-mode .on-this-day-card h3 {
  font-family: ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  font-weight: 900;
}
body.child-mode .brand-overline { color: #2d7d62; }
body.child-mode .article-card { border-width: 2px; border-color: #c9dfea; }
body.child-mode .article-hero { min-height: 240px; background: linear-gradient(180deg, #c7ebff, #eff9db); }
body.child-mode .article-hero img { height: 255px; }
body.child-mode .article-body { padding: 19px 20px 20px; }
body.child-mode .article-title { color: #163b5a; font-size: clamp(1.9rem, 7.6vw, 2.55rem); }
body.child-mode .article-lead { color: #284d68; font-size: 1.06rem; }
body.child-mode .article-copy p { color: #294d67; font-size: 1.03rem; line-height: 1.58; }
body.child-mode .hero-overlay { color: #276a50; background: rgba(255,255,255,.92); }
body.child-mode .fact-card { border-width: 2px; border-color: #f0cf6d; }
body.child-mode .quiz-card { border-width: 2px; border-color: #b9d9ef; background: linear-gradient(180deg, #f8fcff, #eef8ff); }
body.child-mode .quiz-card::before { background: #2c86cc; }
body.child-mode .quiz-label { color: #2879b9; }
body.child-mode .quiz-options { grid-template-columns: 1fr; }
body.child-mode .quiz-option { min-height: 45px; border-width: 1.5px; border-radius: 999px; text-align: left; padding-left: 17px; }
body.child-mode .quiz-option:nth-child(1) { background: #eff8e5; border-color: #b9d38f; }
body.child-mode .quiz-option:nth-child(2) { background: #fff6da; border-color: #efcf68; }
body.child-mode .quiz-option:nth-child(3) { background: #f3edff; border-color: #cbb5ef; }
body.child-mode .quiz-option:nth-child(4) { background: #eaf4ff; border-color: #afd1eb; }
body.child-mode .on-this-day-card { border-width: 2px; border-color: #efcf76; background: linear-gradient(145deg, #fff7d8, #fffdf6); }
body.child-mode .on-this-day-card > p { color: #294d67; font-size: .96rem; }
body.child-mode .child-toggle { color: #fff; border-color: #2a84c8; background: #2d8bd0; }
body.child-mode .child-toggle .button-icon { color: #fff; }

/* Dark theme keeps the editorial structure instead of simply inverting colors. */
html[data-theme="dark"] { background: #111714; color-scheme: dark; }
html[data-theme="dark"] body {
  --bg: #111714;
  --surface: #19221e;
  --surface-strong: #202a25;
  --ink: #edf2ee;
  --muted: #a8b2ab;
  --line: #35423b;
  --line-strong: #435149;
  --green: #78c4a4;
  --green-hover: #8ed8b7;
  --green-soft: #20372e;
  --gold: #e0aa51;
  --gold-soft: #362d1c;
  --blue-soft: #1c3040;
  --purple-soft: #2d2740;
  --danger: #ef8f88;
  --shadow: 0 12px 34px rgba(0,0,0,.28);
  --shadow-soft: 0 7px 20px rgba(0,0,0,.20);
  color-scheme: dark;
  background:
    radial-gradient(circle at 14% 0%, rgba(119,196,164,.08), transparent 28rem),
    linear-gradient(180deg, #141c18 0%, var(--bg) 100%);
}
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .theme-picker,
html[data-theme="dark"] .tabs,
html[data-theme="dark"] .secondary-button { background: rgba(31, 42, 37, .88); }
html[data-theme="dark"] .theme-picker select { color: var(--ink); }
html[data-theme="dark"] .article-lead,
html[data-theme="dark"] .article-copy p,
html[data-theme="dark"] .on-this-day-card > p { color: #d7dfda; }
html[data-theme="dark"] .article-hero { background: linear-gradient(155deg, #21392f, #3a3124); }
html[data-theme="dark"] .hero-overlay { border-color: rgba(255,255,255,.1); color: #afe2cc; background: rgba(24,34,29,.9); }
html[data-theme="dark"] .article-subject-pill,
html[data-theme="dark"] .source-link,
html[data-theme="dark"] .quiz-option,
html[data-theme="dark"] .on-this-day-year { color: var(--ink); background: var(--surface-strong); border-color: var(--line); }
html[data-theme="dark"] .source-logo { background: #274237; color: #a9dfc7; }
html[data-theme="dark"] .fact-card { border-color: #68562f; background: linear-gradient(135deg, #30291a, #382f1d); }
html[data-theme="dark"] .fact-card strong { color: #f0c977; }
html[data-theme="dark"] .on-this-day-card { border-color: #5d513d; background: linear-gradient(140deg, #2c2922, #1b231f); }
html[data-theme="dark"] .on-this-day-label,
html[data-theme="dark"] .on-this-day-year { color: #e5c67f; }
html[data-theme="dark"] .quiz-option.correct { border-color: #5f9c75; background: #1e3828; }
html[data-theme="dark"] .quiz-option.wrong { border-color: #aa6963; background: #402725; }
html[data-theme="dark"] .dialog-card { background: var(--surface-strong); }
html[data-theme="dark"] .demo-note { border-color: #66552d; color: #ebcf8a; background: #362e1c; }
html[data-theme="dark"] .error-card { border-color: #72423f; color: #ffc3be; background: #402624; }
html[data-theme="dark"] .skeleton { background: linear-gradient(90deg, #26332d 25%, #334139 50%, #26332d 75%); background-size: 200% 100%; }

html[data-theme="dark"] body.child-mode {
  --bg: #101b24;
  --surface: #172736;
  --surface-strong: #1c2d3d;
  --ink: #eff8ff;
  --muted: #a9bed0;
  --line: #355063;
  --line-strong: #45667d;
  --green: #80d5aa;
  --green-soft: #203d32;
  --blue-soft: #19364a;
  background:
    radial-gradient(circle at 20% 0%, rgba(73,167,214,.12), transparent 28rem),
    linear-gradient(180deg, #132534 0%, var(--bg) 100%);
}
html[data-theme="dark"] body.child-mode .article-card,
html[data-theme="dark"] body.child-mode .quiz-card { border-color: #395b70; }
html[data-theme="dark"] body.child-mode .article-title,
html[data-theme="dark"] body.child-mode .article-lead,
html[data-theme="dark"] body.child-mode .article-copy p,
html[data-theme="dark"] body.child-mode .on-this-day-card > p { color: #eaf6ff; }
html[data-theme="dark"] body.child-mode .article-hero { background: linear-gradient(180deg, #173a50, #283d2d); }
html[data-theme="dark"] body.child-mode .quiz-card { background: linear-gradient(180deg, #193044, #172a3a); }
html[data-theme="dark"] body.child-mode .quiz-option:nth-child(n) { color: var(--ink); background: #213544; border-color: #46657b; }
html[data-theme="dark"] body.child-mode .on-this-day-card { border-color: #6d5d35; background: linear-gradient(145deg, #332e1e, #1d2a28); }

@media (max-width: 520px) {
  .app-shell { padding-left: 12px; padding-right: 12px; }
  .topbar { gap: 10px; margin-left: 3px; margin-right: 3px; }
  .brand-overline { display: none; }
  h1 { font-size: 2.05rem; }
  .theme-picker { padding-left: 8px; }
  .theme-picker select { width: 62px; font-size: .7rem; }
  .tabs { grid-template-columns: 1.12fr 1.12fr .62fr; }
  .tab { min-height: 40px; padding: 7px 8px; font-size: .78rem; }
  .article-hero img { height: 205px; }
  .article-body { padding: 18px 18px 17px; }
  .article-title { font-size: 1.85rem; }
  .article-subject-pill { display: none; }
  .quiz-options { grid-template-columns: 1fr 1fr; }
  .bottom-actions { grid-template-columns: 1fr auto; }
  .secondary-button { font-size: .78rem; padding-left: 10px; padding-right: 10px; }
  body.child-mode .article-hero img { height: 235px; }
  body.child-mode .quiz-options { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .theme-picker-icon { display: none; }
  .theme-picker { padding-left: 6px; }
  .theme-picker select { width: 57px; }
  .icon-button { width: 40px; height: 40px; }
  .theme-picker { min-height: 40px; }
  .bottom-actions { grid-template-columns: 1fr; }
  .child-toggle { width: 100%; }
}
