/* ==========================================================================
   Neath's MPJE Prep — styles
   Mobile-first, no framework. Modern refresh with light + dark themes.
   ========================================================================== */

:root {
  --brand: #0d9488;       /* teal */
  --brand-2: #6366f1;     /* indigo — used in gradients */
  --brand-ink: #0b5f59;

  --bg: #eef1f6;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --ink: #0f172a;
  --ink-soft: #5b6b82;
  --line: #e4e9f1;
  --track: #e6ebf3;

  --good: #15a34a;
  --good-bg: #e7f7ee;
  --bad: #dc2626;
  --bad-bg: #fdecec;
  --warn: #d97706;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow: 0 2px 6px rgba(15, 23, 42, 0.06), 0 12px 28px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 10px 30px rgba(13, 148, 136, 0.28);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 760px;
  --nav-h: 66px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1c;
    --surface: #141b2c;
    --surface-2: #10182a;
    --ink: #eef2f8;
    --ink-soft: #9aa8bf;
    --line: #263349;
    --track: #22304a;
    --good-bg: #10281c;
    --bad-bg: #2a1416;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 14px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 34px rgba(13, 148, 136, 0.4);
  }
}

* { 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.55;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 0.4em; letter-spacing: -0.01em; }
p { margin: 0 0 0.8em; }
a { color: var(--brand); text-decoration: none; }

/* ---------- Header ---------- */
.app-header {
  background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand) 100%);
  color: #fff;
  padding: 20px 18px 22px;
  padding-top: calc(20px + env(safe-area-inset-top, 0px));
}
.app-header .wrap { max-width: var(--maxw); margin: 0 auto; }
.app-header .eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.68rem;
  opacity: 0.9; margin: 0; font-weight: 600;
}
.app-header h1 { font-size: 1.45rem; margin: 3px 0 2px; font-weight: 800; }
.app-header .sub { font-size: 0.82rem; opacity: 0.92; margin: 0; }

/* ---------- Layout ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 16px 14px 8px; }
.view { animation: fade 0.22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.section-title { font-size: 1.12rem; margin: 22px 2px 12px; font-weight: 800; }
.section-lead { color: var(--ink-soft); font-size: 0.88rem; margin: 0 2px 14px; }
.section-lead.center { text-align: center; }
.back-link { display: inline-block; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); margin: 2px 0 12px; }
.back-link:hover { color: var(--brand); }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line);
}
.chip.solid { background: rgba(13, 148, 136, 0.12); color: var(--brand); border-color: transparent; }
.chip.good { background: var(--good-bg); color: var(--good); border-color: transparent; }

/* ---------- Cards ---------- */
.card, .stat-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); margin-bottom: 14px;
}
.card h3 { font-size: 1rem; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.82rem; }

/* ---------- Hero (today's session) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 120%);
  color: #fff; border-radius: 22px; padding: 20px 18px; margin: 4px 0 16px;
  box-shadow: var(--shadow-lg);
}
.hero::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%); pointer-events: none;
}
.hero-eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.68rem; font-weight: 700; opacity: 0.9; }
.hero-title { font-size: 1.2rem; font-weight: 800; margin: 4px 0 12px; line-height: 1.25; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.hero-meta .chip { background: rgba(255,255,255,0.16); color: #fff; border: none; }
.hero-meta .chip.solid { background: rgba(255,255,255,0.28); color: #fff; }
.hero-btn {
  display: inline-block; background: #fff; color: var(--brand-ink); font-weight: 800;
  padding: 12px 22px; border-radius: 14px; box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.hero-btn:hover { transform: translateY(-1px); }
.hero.done { background: linear-gradient(135deg, #15a34a, var(--brand)); }

/* ---------- Daily quote ---------- */
.quote-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--brand); border-radius: var(--radius);
  padding: 16px 18px 14px; margin-bottom: 16px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.quote-mark { position: absolute; top: -6px; right: 14px; font-size: 3.2rem; line-height: 1;
  font-weight: 800; color: var(--brand); opacity: 0.14; font-family: Georgia, "Times New Roman", serif; }
.quote-text { font-size: 0.98rem; font-weight: 600; font-style: italic; margin: 0 0 6px; position: relative; }
.quote-by { font-size: 0.8rem; color: var(--ink-soft); margin: 0; font-weight: 600; }

/* ---------- Home stats ---------- */
.home-stats { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; margin-bottom: 12px; }
.ring-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 0; }
.ring { display: block; }
.stat-sub { font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; font-weight: 600; }
.stat-col { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.stat-card.mini { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 10px; margin: 0; text-align: center; }
.mini-num { font-size: 1.9rem; font-weight: 800; color: var(--ink); line-height: 1; }
.mini-num .flame { font-size: 1.1rem; margin-left: 2px; }
.mini-lbl { font-size: 0.72rem; color: var(--ink-soft); margin-top: 3px; }

.mini-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 6px; }
.stat-card.tile { text-align: center; padding: 14px; margin: 0; }
.tile-num { font-size: 1.5rem; font-weight: 800; color: var(--brand); line-height: 1; }
.tile-lbl { font-size: 0.74rem; color: var(--ink-soft); margin-top: 4px; }

/* ---------- Week strip ---------- */
.week-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.wstrip-card {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 14px; box-shadow: var(--shadow-sm); color: inherit;
}
.wstrip-card:hover { border-color: var(--brand); }
.wstrip-card.complete { border-color: rgba(21,163,74,0.4); }
.wstrip-top { display: flex; justify-content: space-between; align-items: baseline; }
.wstrip-wk { font-size: 0.72rem; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: 0.05em; }
.wstrip-min { font-size: 0.68rem; color: var(--ink-soft); }
.wstrip-title { font-size: 0.86rem; font-weight: 700; margin: 4px 0 8px; }
.wstrip-sub { font-size: 0.72rem; color: var(--ink-soft); margin-top: 6px; }

/* ---------- Progress bar ---------- */
.bar { background: var(--track); border-radius: 999px; height: 8px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 999px; transition: width 0.4s ease;
  background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

/* ---------- Study: week blocks ---------- */
.wk-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.wk-block.current { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-sm); }
.wk-block-head { display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; }
.wk-badge { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800;
  font-size: 0.78rem; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; }
.wk-block.complete .wk-badge { background: linear-gradient(135deg, #15a34a, var(--brand)); }
.wk-block-info { flex: 1; min-width: 0; }
.wk-block-title { font-size: 0.98rem; font-weight: 700; display: block; }
.wk-block-sub { font-size: 0.76rem; color: var(--ink-soft); }
.wk-block .chev { color: var(--ink-soft); transition: transform 0.2s; }
.wk-block.open .chev { transform: rotate(90deg); }
.wk-block-body { display: none; padding: 0 14px 12px; }
.wk-block.open .wk-block-body { display: block; }
.wk-focus { font-size: 0.83rem; color: var(--ink-soft); margin: 0 0 10px; }

.day-list { display: flex; flex-direction: column; gap: 8px; }
.day-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--surface-2); color: inherit; }
.day-row:hover { border-color: var(--brand); }
.day-row.next { border-color: var(--brand); background: rgba(13,148,136,0.06); }
.day-row.review { border-style: dashed; }
.day-dot { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 700; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink-soft); }
.day-row.done .day-dot { background: var(--good); border-color: var(--good); color: #fff; }
.day-row.next .day-dot { border-color: var(--brand); color: var(--brand); }
.day-main { flex: 1; min-width: 0; }
.day-title { font-size: 0.9rem; font-weight: 600; display: block; }
.day-sub { font-size: 0.74rem; color: var(--ink-soft); }
.day-arrow { color: var(--ink-soft); font-size: 1.3rem; }
.day-flag { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--brand); background: rgba(13,148,136,0.12); padding: 3px 8px; border-radius: 999px; }

/* ---------- Day detail ---------- */
.day-head { margin-bottom: 14px; }
.day-crumb { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand); }
.day-h { font-size: 1.35rem; margin: 4px 0 10px; font-weight: 800; }
.day-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.lesson { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.lesson-lead { font-size: 0.98rem; font-weight: 600; margin: 0 0 14px; }
.lesson-points { margin: 0; padding: 0; list-style: none; }
.lesson-points li { position: relative; padding: 10px 0 10px 26px; font-size: 0.9rem; border-top: 1px solid var(--line); }
.lesson-points li:first-child { border-top: none; }
.lesson-points li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 8px; height: 8px;
  border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }

/* ---------- Content blocks (lessons + library) ---------- */
.blk { margin: 0; }
.lesson .blk p, .blk p { font-size: 0.92rem; margin: 0 0 12px; }
.blk-h { font-size: 0.98rem; font-weight: 800; margin: 16px 0 8px; color: var(--ink); }
.blk:first-child .blk-h { margin-top: 0; }
.blk-list { margin: 0 0 12px; padding-left: 20px; }
.blk-list li { font-size: 0.9rem; margin-bottom: 6px; }
.blk-note { background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--ink-soft);
  border-radius: 10px; padding: 11px 13px; font-size: 0.86rem; margin: 4px 0 14px; }
.blk-tip { background: rgba(13,148,136,0.08); border: 1px solid rgba(13,148,136,0.22);
  border-radius: 10px; padding: 11px 13px; font-size: 0.86rem; margin: 4px 0 14px; }
.blk-tip span { margin-right: 4px; }
.blk-tablewrap { overflow-x: auto; margin: 4px 0 14px; -webkit-overflow-scrolling: touch; }
.blk-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; min-width: 320px; }
.blk-table th, .blk-table td { text-align: left; padding: 8px 10px; border: 1px solid var(--line); vertical-align: top; }
.blk-table th { background: var(--surface-2); font-weight: 700; font-size: 0.76rem; }

/* ---------- Related library refs (on a day) ---------- */
.refs { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.refs-title { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.ref-link { display: block; font-size: 0.9rem; font-weight: 600; padding: 7px 0; border-top: 1px solid var(--line); }
.ref-link:first-of-type { border-top: none; }

/* ---------- Library ---------- */
.lib-area { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 2px 10px; }
.lib-area-name { font-size: 1.02rem; font-weight: 800; }
.lib-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 13px 14px; margin-bottom: 9px; box-shadow: var(--shadow-sm); color: inherit; }
.lib-card:hover { border-color: var(--brand); }
.lib-card-body { flex: 1; min-width: 0; }
.lib-card-title { display: block; font-size: 0.92rem; font-weight: 600; }
.lib-card-sub { display: block; font-size: 0.74rem; color: var(--ink-soft); }
.topic-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; }
.topic-nav .btn { flex: 1; }

/* ---------- Badges ---------- */
.badge { display: inline-block; font-size: 0.66rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 3px 9px; border-radius: 999px; }
.b-done { background: var(--good-bg); color: var(--good); }
.b-area { background: rgba(99,102,241,0.14); color: var(--brand-2); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font: inherit; font-weight: 700; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  padding: 13px 20px; border-radius: 14px; text-align: center; transition: transform 0.12s, box-shadow 0.12s; }
.btn:hover { box-shadow: 0 8px 20px rgba(13,148,136,0.3); }
.btn:active { transform: scale(0.985); }
.btn.block { display: block; width: 100%; }
.btn.big { padding: 15px 20px; font-size: 1rem; }
.btn.ghost { background: var(--surface); color: var(--brand); border: 1.5px solid var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--brand); box-shadow: none; }

/* ---------- Quiz ---------- */
.q-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); }
.q-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.q-progress { font-size: 0.76rem; color: var(--ink-soft); font-weight: 600; }
.q-score { font-size: 0.76rem; color: var(--brand); font-weight: 700; }
.qbar { background: var(--track); border-radius: 999px; height: 6px; overflow: hidden; margin-bottom: 16px; }
.qbar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width 0.3s; }
.q-text { font-size: 1.06rem; font-weight: 700; margin-bottom: 16px; line-height: 1.4; }
.opt { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; font: inherit; color: inherit;
  border: 1.5px solid var(--line); background: var(--surface); border-radius: 14px; padding: 13px 14px;
  margin-bottom: 10px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.opt:hover { border-color: var(--brand); }
.opt-key { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 8px; background: var(--surface-2);
  border: 1px solid var(--line); display: grid; place-items: center; font-size: 0.78rem; font-weight: 800; color: var(--ink-soft); }
.opt.correct { border-color: var(--good); background: var(--good-bg); }
.opt.correct .opt-key { background: var(--good); border-color: var(--good); color: #fff; }
.opt.wrong { border-color: var(--bad); background: var(--bad-bg); }
.opt.wrong .opt-key { background: var(--bad); border-color: var(--bad); color: #fff; }
.opt.disabled { cursor: default; }
.explain { background: var(--surface-2); border-left: 3px solid var(--brand); border-radius: 10px;
  padding: 12px 14px; font-size: 0.88rem; margin: 6px 0 14px; }
.explain.miss { border-left-color: var(--bad); }

.q-card.result { text-align: center; }
.result-ring { margin: 4px auto 12px; display: inline-block; }
.result-msg { color: var(--ink-soft); margin-bottom: 16px; }
.result-msg strong { color: var(--ink); }

/* ---------- Quiz index cards ---------- */
.quiz-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow-sm); color: inherit; }
.quiz-card:hover { border-color: var(--brand); }
.quiz-card.feature { background: linear-gradient(135deg, rgba(13,148,136,0.1), rgba(99,102,241,0.1)); border-color: transparent; }
.quiz-wk { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 800; font-size: 0.82rem; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.quiz-card-body { flex: 1; min-width: 0; }
.quiz-card-title { font-weight: 700; font-size: 0.96rem; }
.quiz-card-sub { font-size: 0.78rem; color: var(--ink-soft); }

/* ---------- Guide: facts / blueprint / sources ---------- */
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px; box-shadow: var(--shadow-sm); }
.fact .fv { font-size: 1.3rem; font-weight: 800; color: var(--brand); }
.fact .fl { font-size: 0.74rem; color: var(--ink-soft); }

.blueprint-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.blueprint-row:last-child { margin-bottom: 0; }
.blueprint-row .bp-lbl { flex: 0 0 44%; font-size: 0.84rem; }
.blueprint-row .bp-bar { flex: 1; }
.blueprint-row .bp-pct { flex: 0 0 42px; text-align: right; font-weight: 800; font-size: 0.85rem; color: var(--brand); }

.src { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 14px; margin-bottom: 10px; background: var(--surface); box-shadow: var(--shadow-sm); }
.src a { font-weight: 700; }
.src a:hover { text-decoration: underline; }
.src .what { font-size: 0.83rem; color: var(--ink-soft); margin-top: 3px; }
.src .note { font-size: 0.76rem; color: var(--ink-soft); margin-top: 4px; font-style: italic; }

/* ---------- Callout / disclaimer ---------- */
.callout { border-radius: 14px; padding: 13px 15px; font-size: 0.84rem; margin: 16px 0; }
.callout.info { background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.25); color: var(--ink); }
.callout.warn { background: rgba(217,119,6,0.09); border: 1px solid rgba(217,119,6,0.28); color: var(--ink); }

/* ---------- Bottom nav ---------- */
.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.nav a { flex: 1; text-align: center; padding: 9px 1px 7px; color: var(--ink-soft); font-size: 0.64rem; font-weight: 600; position: relative; white-space: nowrap; }
.nav a .ico { display: block; font-size: 1.28rem; line-height: 1.1; margin-bottom: 1px; filter: grayscale(0.4); opacity: 0.75; transition: opacity 0.15s, filter 0.15s; }
.nav a.active { color: var(--brand); }
.nav a.active .ico { filter: none; opacity: 1; }
.nav a.active::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

/* ---------- Accountability: name modal + share note ---------- */
.np-modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(8, 12, 22, 0.55); backdrop-filter: blur(4px); padding: 20px;
}
.np-modal {
  width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 22px; box-shadow: var(--shadow-lg);
}
.np-modal h3 { font-size: 1.25rem; margin: 0 0 6px; }
.np-modal p { font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 14px; }
.np-modal input {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 1rem; background: var(--surface-2); color: var(--ink); margin-bottom: 12px;
}
.np-modal input:focus { outline: none; border-color: var(--brand); }
.np-modal-note { font-size: 0.74rem !important; margin: 12px 0 0 !important; }
.share-note {
  background: rgba(13, 148, 136, 0.08); border: 1px solid rgba(13, 148, 136, 0.25);
  color: var(--ink); border-radius: 12px; padding: 10px 13px; font-size: 0.8rem; margin: 6px 0 0; text-align: center;
}

/* ---------- Footer ---------- */
.footer-note { text-align: center; font-size: 0.75rem; color: var(--ink-soft); margin: 20px 0 6px; }
.footer-note button { background: none; border: none; color: var(--ink-soft); text-decoration: underline; cursor: pointer; font-size: 0.75rem; }

/* ---------- Desktop niceties ---------- */
@media (min-width: 620px) {
  .week-strip { grid-template-columns: repeat(3, 1fr); }
  .fact-grid { grid-template-columns: repeat(4, 1fr); }
  .mini-row { grid-template-columns: repeat(2, 1fr); }
}
