/* ESI web app — Phase 1 styles. Mobile-first; widen at >=720px. */

:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --ink: #1c2530;
  --ink-soft: #55606e;
  --line: #e2e7ee;
  --brand: #1f6f6b;        /* teal — "science" */
  --brand-soft: #e3f1f0;
  --accent: #c2541a;       /* warm contrast for badges/labels */
  --learn: #25636b;
  --practise: #6b4ea0;
  --listen: #b6541a;
  --speak: #1f7a4d;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(20,40,60,.08), 0 8px 24px rgba(20,40,60,.06);
  --maxw: 760px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

a { color: var(--brand); }

.loading { color: var(--ink-soft); padding: 24px 0; }

/* ---------- Library header ---------- */
.site-header {
  background: linear-gradient(160deg, var(--brand) 0%, #18504d 100%);
  color: #fff;
  padding: 28px 0 30px;
}
.site-header .eyebrow {
  margin: 0 0 4px; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; opacity: .85;
}
.site-header h1 { margin: 0; font-size: 1.7rem; }
.site-header .sub { margin: 6px 0 0; opacity: .9; font-size: .95rem; }

/* ---------- Library cards ---------- */
main.wrap { padding-top: 20px; padding-bottom: 40px; }

.card-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 560px) { .card-grid { grid-template-columns: 1fr 1fr; } }

.unit-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform .12s ease, box-shadow .12s ease;
}
.unit-card:active { transform: scale(.99); }
@media (hover: hover) {
  .unit-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(20,40,60,.12); }
}

.card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.level-badge {
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
  color: var(--brand); background: var(--brand-soft);
  padding: 3px 8px; border-radius: 999px;
}
.unit-num {
  font-size: .78rem; font-weight: 700; color: var(--ink-soft);
  margin-left: auto;
}
.unit-card h2 { margin: 2px 0 4px; font-size: 1.15rem; line-height: 1.25; }
.unit-card .theme { margin: 0 0 14px; color: var(--ink-soft); font-size: .92rem; }

/* progress placeholder */
.progress { margin-top: auto; }
.progress-label { font-size: .75rem; color: var(--ink-soft); margin: 0 0 5px; }
.progress-track { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: var(--brand); border-radius: 999px; }

/* ---------- Unit page header ---------- */
.unit-body { background: var(--bg); }
.unit-header {
  background: linear-gradient(160deg, var(--brand) 0%, #18504d 100%);
  color: #fff; padding: 16px 0 22px;
}
.back-link { color: #fff; opacity: .9; text-decoration: none; font-size: .9rem; }
.back-link:hover { opacity: 1; text-decoration: underline; }
#unit-titleblock { margin-top: 10px; }
#unit-titleblock h1 { margin: 0 0 4px; font-size: 1.5rem; }
#unit-titleblock .u-theme { margin: 0 0 10px; opacity: .92; font-size: .98rem; }
.u-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.u-chip {
  font-size: .74rem; background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  padding: 3px 9px; border-radius: 999px;
}
.cando { margin: 12px 0 0; padding: 12px 14px; background: rgba(255,255,255,.12);
  border-radius: 12px; }
.cando h3 { margin: 0 0 6px; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; opacity: .9; }
.cando ul { margin: 0; padding-left: 18px; }
.cando li { font-size: .9rem; margin: 2px 0; }

/* ---------- Left contents navigation ----------
   Phones: floating button (bottom-left) opens a slide-in drawer.
   Wide screens: a permanent fixed left rail, content to the right. */

/* Floating "Contents" button (phones only) */
.menu-fab {
  position: fixed; left: 14px; bottom: 16px; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .92rem; color: #fff;
  background: var(--brand); border: none; border-radius: 999px;
  padding: 12px 18px; box-shadow: 0 4px 14px rgba(20,40,60,.28); cursor: pointer;
}
.menu-fab:active { transform: scale(.97); }
.menu-fab .fab-icon { font-size: 1.05rem; line-height: 1; }

/* Dimmed backdrop behind the drawer (phones) */
.menu-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(16,28,38,.45); }

/* The nav: a left drawer by default (off-screen until .open) */
.activity-menu {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
  width: min(82vw, 320px);
  background: var(--surface);
  border-right: 1px solid var(--line);
  box-shadow: 2px 0 18px rgba(20,40,60,.18);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  transform: translateX(-100%);
  transition: transform .24s ease;
}
.activity-menu.open { transform: translateX(0); }
body.menu-open { overflow: hidden; }   /* lock page scroll while the drawer is open */

.menu-head {
  position: sticky; top: 0; z-index: 1; background: var(--surface);
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 14px 8px; border-bottom: 1px solid var(--line);
}
.menu-title { margin: 0; font-weight: 800; font-size: 1.05rem; }
.menu-close {
  font: inherit; font-size: 1.05rem; background: none; border: none;
  color: var(--ink-soft); cursor: pointer; padding: 4px 8px; border-radius: 8px;
}
.menu-close:active { background: var(--bg); }

.menu-list { padding: 8px 10px 28px; }

.menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px; border-radius: 10px;
  text-decoration: none; color: var(--ink); font-size: .95rem;
}
.menu-item:active { background: var(--bg); }
@media (hover: hover) { .menu-item:hover { background: var(--bg); } }
.menu-item .tick {
  flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line); display: inline-block;
}
.menu-item .m-num {
  flex: 0 0 auto; min-width: 24px; height: 24px; line-height: 21px; text-align: center;
  font-size: .74rem; font-weight: 800; color: var(--ink-soft);
  border: 1.5px solid var(--line); border-radius: 7px;
}
.menu-item .m-title { flex: 1 1 auto; }

/* current section in view (scroll-spy) */
.menu-item.active { background: var(--brand-soft); }
.menu-item.active .m-num { color: #fff; background: var(--brand); border-color: var(--brand); }
.menu-item.active .m-title { font-weight: 700; color: var(--brand); }

/* Wide screens: permanent left rail, unit content to the right */
@media (min-width: 768px) {
  .menu-fab, .menu-backdrop, .menu-close { display: none !important; }
  .activity-menu {
    width: 250px; transform: none; transition: none;
    box-shadow: none; z-index: 20;
  }
  body.menu-open { overflow: visible; }
  body.unit-body { padding-left: 250px; }
}

/* ---------- Unit sections ---------- */
.unit-main { padding-top: 18px; padding-bottom: 60px; }

.section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin: 0 0 18px;
  scroll-margin-top: 64px; /* so the sticky bar doesn't cover the heading */
}

.sec-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.sec-num {
  flex: 0 0 auto; font-size: .78rem; font-weight: 800; color: #fff;
  background: var(--brand); border-radius: 8px; padding: 3px 8px; margin-top: 2px;
}
.sec-title { margin: 0; font-size: 1.15rem; flex: 1 1 auto; }
.sec-instruction { margin: 4px 0 12px; color: var(--ink-soft); }

/* mode / type labels */
.label {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 999px; margin-bottom: 10px;
}
.label.inclass   { background: #fff3e6; color: #a3531a; }
.label.teacher   { background: #ede7fb; color: #5b3fa0; }
.label.selfcheck { background: var(--brand-soft); color: var(--brand); }
.label.listen    { background: #fdeede; color: #9a4a16; }

/* Vocabulary */
.vocab-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vocab-item { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.vocab-item .v-word { font-weight: 700; }
.vocab-item .v-pos { color: var(--ink-soft); font-style: italic; font-size: .85rem; margin-left: 6px; }
.vocab-item .v-meaning { margin: 2px 0 0; }
.vocab-item .v-example { margin: 4px 0 0; color: var(--ink-soft); font-size: .9rem; }
.vocab-item .v-example::before { content: "“"; }
.vocab-item .v-example::after { content: "”"; }

/* Reading */
.reading-body p { margin: 0 0 10px; }
.reading-figure { margin: 12px 0; }
.reading-figure img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); display:block; }
.reading-figure figcaption { font-size: .82rem; color: var(--ink-soft); margin-top: 6px; text-align: center; }
.wordhelp { margin: 12px 0 0; padding: 12px 14px; background: var(--bg); border-radius: 10px; }
.wordhelp h4 { margin: 0 0 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.wordhelp dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.wordhelp dt { font-weight: 700; }
.wordhelp dd { margin: 0; color: var(--ink-soft); }

/* info / reference block */
.section.info { background: #fbfaf6; border-color: #eee3cf; }
.info-body p { margin: 0 0 8px; }
.info-body p:last-child { margin-bottom: 0; }

/* self-check static preview */
.placeholder-note {
  font-size: .82rem; color: var(--ink-soft);
  background: var(--bg); border: 1px dashed var(--line);
  border-radius: 8px; padding: 8px 10px; margin: 12px 0 0;
}
.qlist { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.qlist li { padding-left: 0; }
.q-text { margin: 0; }
.blank { display: inline-block; min-width: 56px; border-bottom: 2px solid var(--ink-soft);
  margin: 0 3px; vertical-align: bottom; }
.tf-row { display: flex; align-items: center; gap: 10px; }
.tf-opts { display: flex; gap: 6px; }
.tf-opt { font-size: .75rem; border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; color: var(--ink-soft); }
.mc-opts { list-style: lower-alpha; margin: 4px 0 0; padding-left: 22px; color: var(--ink-soft); }
.chip-bank { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.chip { font-size: .85rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 4px 10px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px,1fr)); gap: 10px; margin-top: 10px; }
.col { border: 1px solid var(--line); border-radius: 10px; padding: 8px; min-height: 70px; }
.col h5 { margin: 0 0 6px; text-align: center; font-size: .9rem; }
.prompt-list { margin: 4px 0 0; padding-left: 20px; }
.prompt-list li { margin: 4px 0; }
.label-rows { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.label-rows li { display: flex; gap: 10px; align-items: center; }
.label-rows .lid { font-weight: 800; color: var(--brand); min-width: 20px; }

/* audio player */
.audio-block { margin: 12px 0 0; }
.audio-block audio { width: 100%; }
.audio-label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); margin: 0 0 6px; }
.audio-missing { font-size: .8rem; color: var(--accent); margin: 6px 0 0; }

/* downloadable resource */
.download-block { margin: 14px 0 0; }
.download-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: .95rem; font-weight: 600; color: var(--brand);
  background: var(--brand-soft); border: 1.5px solid #bcdedb; border-radius: 10px;
  padding: 10px 16px; text-decoration: none; min-height: 44px;
}
.download-btn:active { transform: scale(.98); }
@media (hover: hover) { .download-btn:hover { background: #d4ebe9; } }
.download-btn .dl-icon { font-size: 1rem; line-height: 1; }

/* =========================================================
   Rich "open" speaking blocks + reading sub-activities
   ========================================================= */
.block-heading { margin: 16px 0 6px; font-size: .95rem; font-weight: 700; color: var(--ink); }
.block-list { margin: 0 0 4px; padding-left: 20px; }
.block-list li { margin: 4px 0; }

/* model script — highlighted box */
.model-script {
  margin: 14px 0; padding: 14px 16px; background: var(--brand-soft);
  border: 1px solid #bcdedb; border-left: 4px solid var(--brand); border-radius: 12px;
}
.model-title { margin: 0 0 6px; font-weight: 700; color: var(--brand); }
.model-body { margin: 0; }
.model-notice { margin: 10px 0 0; font-size: .85rem; color: var(--ink-soft); border-top: 1px dashed #bcdedb; padding-top: 8px; }

.pairwork { margin: 14px 0; padding: 12px 14px; background: var(--bg); border-radius: 10px; }

/* project step — callout box */
.project-step {
  margin: 16px 0 0; padding: 14px 16px; background: #fbf6ec;
  border: 1px solid #ecdcb8; border-left: 4px solid var(--accent); border-radius: 12px;
}
.project-title { margin: 0 0 6px; font-weight: 700; color: var(--accent); }
.project-step .block-list { margin-top: 8px; }

/* reading nested sub-activities (6a / 6b / 6c) */
.subactivity {
  margin: 18px 0 0; padding: 16px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; scroll-margin-top: 64px;
}
.sub-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.sub-num {
  flex: 0 0 auto; font-size: .72rem; font-weight: 800; color: #fff; background: var(--practise);
  border-radius: 7px; padding: 3px 7px;
}
.sub-title { margin: 0; font-size: 1.02rem; }

/* =========================================================
   Phase 2 — interactive exercises
   ========================================================= */
:root {
  --ok: #1f7a4d;        --ok-bg: #e6f4ec;   --ok-line: #a6d6bb;
  --bad: #c0392b;       --bad-bg: #fbecea;  --bad-line: #e6b3ac;
}

.ex-wrap { margin-top: 4px; }
.ex { margin: 0; }
.ex-q { margin: 0 0 12px; line-height: 2; }
.ex-hint { font-size: .85rem; color: var(--ink-soft); margin: 0 0 10px; }

/* gap-fill / drag-words reveal text */
.reveal { color: var(--ok); font-weight: 700; font-size: .9rem; margin-left: 6px; white-space: nowrap; }

/* text inputs (gap-fill) */
.gap-input {
  font: inherit; font-size: 1rem; min-width: 92px; width: auto;
  padding: 5px 8px; margin: 0 3px; border: 1.5px solid var(--line);
  border-radius: 8px; background: var(--surface); vertical-align: baseline;
}
.gap-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.gap-correct { border-color: var(--ok-line); background: var(--ok-bg); }
.gap-wrong   { border-color: var(--bad-line); background: var(--bad-bg); }

/* word-bank chips */
.chip-bank { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0;
  padding: 10px; background: var(--bg); border-radius: 10px; min-height: 44px; align-items: center; }
.chip {
  font: inherit; font-size: .95rem; background: var(--surface); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 7px 14px; cursor: pointer; color: var(--ink);
}
.chip:active { transform: scale(.97); }
.chip.armed { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 2px var(--brand-soft); }
.bank-empty { color: var(--ink-soft); font-size: .85rem; font-style: italic; }

/* drag-words slots */
.slot {
  font: inherit; font-size: 1rem; min-width: 76px; padding: 5px 10px; margin: 0 3px;
  border: 1.5px dashed var(--ink-soft); border-radius: 8px; background: var(--surface);
  cursor: pointer; color: var(--ink); vertical-align: baseline;
}
.slot.empty { color: var(--ink-soft); border-style: dashed; }
.slot:not(.empty) { border-style: solid; border-color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.slot-correct { border-style: solid !important; border-color: var(--ok-line) !important; background: var(--ok-bg) !important; }
.slot-wrong   { border-style: solid !important; border-color: var(--bad-line) !important; background: var(--bad-bg) !important; }

/* mark-words clickable tokens */
.mark-text { line-height: 2.1; }
.token { cursor: pointer; padding: 1px 2px; border-radius: 4px; border-bottom: 2px solid transparent; }
.token:active { background: var(--bg); }
.token.selected { background: var(--brand-soft); border-bottom-color: var(--brand); font-weight: 600; }
.token.tok-ok { background: var(--ok-bg); border-bottom-color: var(--ok); color: var(--ok); font-weight: 700; }
.token.tok-bad { background: var(--bad-bg); border-bottom-color: var(--bad); color: var(--bad); text-decoration: line-through; }
.token.tok-missed { border-bottom: 2px dashed var(--ok); color: var(--ok); font-weight: 700; }

/* true-false */
.tf-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; margin: 0 0 8px; }
.tf-choice { flex: 0 0 auto; display: flex; gap: 6px; }
.tf-btn { font: inherit; font-size: .85rem; padding: 8px 12px; border: 1.5px solid var(--line);
  background: var(--surface); border-radius: 8px; cursor: pointer; min-width: 56px; }
.tf-btn.sel { border-color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.tf-stmt { flex: 1 1 auto; }
.tf-item .reveal { flex-basis: 100%; margin-left: 0; white-space: normal; }

/* multiple-choice */
.mc-item { margin: 0 0 14px; }
.mc-item .q-text { margin: 0 0 8px; font-weight: 600; }
.mc-opt { display: block; width: 100%; text-align: left; font: inherit; margin: 6px 0;
  padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }
.mc-opt.sel { border-color: var(--brand); background: var(--brand-soft); }
.mc-opt.opt-correct { border-color: var(--ok-line); background: var(--ok-bg); font-weight: 600; }
.mc-opt.opt-wrong { border-color: var(--bad-line); background: var(--bad-bg); text-decoration: line-through; }

/* matching & label-diagram rows */
.match-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px; border-radius: 10px; margin: 0 0 8px; }
.match-left { flex: 1 1 40%; min-width: 120px; font-weight: 600; }
.match-select { flex: 1 1 45%; min-width: 140px; font: inherit; font-size: .95rem;
  padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); }
.match-row .lid { flex: 0 0 auto; font-weight: 800; color: var(--brand); width: 26px;
  height: 26px; line-height: 26px; text-align: center; background: var(--brand-soft); border-radius: 6px; }
.match-row .reveal { flex-basis: 100%; margin-left: 0; }

/* sort-columns */
.sort-pool { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px;
  background: var(--bg); border-radius: 10px; min-height: 52px; margin: 0 0 12px; }
.tray-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); font-weight: 700; margin-right: 4px; }
.sort-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.sort-col { border: 1.5px solid var(--line); border-radius: 10px; padding: 8px; background: var(--surface); }
.sort-col h5 { margin: 0 0 8px; text-align: center; font-size: 1rem; }
.sort-drop { display: flex; flex-direction: column; gap: 6px; min-height: 60px; }
.chip-correct { border-color: var(--ok-line) !important; background: var(--ok-bg) !important; color: var(--ok); font-weight: 600; }
.chip-wrong { border-color: var(--bad-line) !important; background: var(--bad-bg) !important; color: var(--bad); }

/* put-in-order */
.order-list { display: flex; flex-direction: column; gap: 8px; }
.order-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); }
.order-badge { flex: 0 0 auto; width: 24px; height: 24px; line-height: 24px; text-align: center;
  font-size: .78rem; font-weight: 800; color: #fff; background: var(--ink-soft); border-radius: 50%; }
.order-text { flex: 1 1 auto; }
.order-ctrls { flex: 0 0 auto; display: flex; gap: 4px; }
.order-btn { font: inherit; font-size: 1rem; width: 38px; height: 38px; border: 1.5px solid var(--line);
  background: var(--surface); border-radius: 8px; cursor: pointer; }
.order-btn:disabled { opacity: .35; cursor: default; }

/* shared correct/incorrect row tint */
.item-correct { background: var(--ok-bg); }
.item-correct .order-badge { background: var(--ok); }
.item-wrong { background: var(--bad-bg); }
.item-wrong .order-badge { background: var(--bad); }

/* per-item status messages (two-strikes rule) */
.item-status { font-size: .9rem; font-weight: 700; margin-left: 6px; }
.status-blank { color: var(--ink-soft); font-weight: 600; }   /* "Not answered yet" — neutral */
.status-retry { color: #9a4a16; }                              /* "Try again" — amber, no answer */
.tf-item .item-status, .match-row .item-status { flex-basis: 100%; margin-left: 0; }
.order-hint { margin-left: 10px; color: var(--ok); font-weight: 700; font-size: .85rem; }

/* check bar + result */
.check-bar { margin: 16px 0 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn-check {
  font: inherit; font-size: 1rem; font-weight: 700; color: #fff; background: var(--brand);
  border: none; border-radius: 10px; padding: 11px 22px; cursor: pointer; min-height: 44px;
}
.btn-check:active { transform: scale(.98); }
.btn-check:disabled { opacity: .55; cursor: default; }
.btn-reset {
  font: inherit; font-size: .95rem; font-weight: 600; color: var(--brand); background: transparent;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 16px; cursor: pointer; min-height: 44px;
}
.btn-reset:active { transform: scale(.98); }
.ex-result { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; font-size: .95rem; }
.ex-result.all-correct { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }
.ex-result.some-wrong { background: #fff7ed; color: #9a4a16; border: 1px solid #f0d8bf; }
.ex-note { margin: 6px 0 0; font-weight: 400; color: #9a4a16; }
.ex-feedback { margin: 6px 0 0; font-weight: 400; color: var(--ink-soft); }

/* =========================================================
   Site copyright — small, muted, fixed bottom-right on every page
   ========================================================= */
.copyright {
  position: fixed;
  right: 8px;
  bottom: 6px;
  margin: 0;
  z-index: 10;                 /* below the sticky activity menu (z 20) */
  font-size: .62rem;
  line-height: 1.2;
  color: var(--ink-soft);
  opacity: .5;
  pointer-events: none;        /* never intercept taps/clicks on content */
  background: var(--bg);       /* faint backing so it stays legible over text */
  padding: 2px 6px;
  border-radius: 6px;
}
/* keep the last bit of page content clear of the notice */
.site-footer { padding-bottom: 34px; }
