/* ==========================================================================
   Practice section — 2026-09-28
   The practice pages (hanzi-meaning-practice.html, the writing practice on
   level.html, hanzi-study.html) and the Learning map (learning-path.html)
   in the site's current look: a colour band, paper cards lifted over the
   band, capsule buttons, the shared header and the tall footer.

   The accent is one set of --pr-* variables on <body>: the home page's blue
   by default ("practice = blue", as on the home page's Practice page and on
   the stroke practice), the site coral on body.pr-coral, teal on body.pr-teal,
   and orange on body.pr-orange (the Learning Path — Root & Seed Characters —
   takes a colour of its own, the other three being taken). Everything inside <main>
   (or .pr-main) and the footer reads that accent through both the new
   stylesheets' tokens (--hc-*) and the old theme's (--t-*), so page
   stylesheets that still use the theme's green tokens land on the same
   colour. The header is left alone. Answer verdicts keep the shared trio
   (green right, red wrong). Loaded after site-ui.css and hanzi-home.css.
   ========================================================================== */

body.dna-page.site-ui.pr-page {
  --hz-ui:var(--t-ui); --hz-display:var(--t-display); --hz-hanzi:var(--t-chinese);
  /* the practice blue */
  --pr-accent:#6AA6FA; --pr-accent-rgb:106,166,250;
  --pr-deep:#3F7FD8;   --pr-deep-rgb:63,127,216;
  --pr-deeper:#2F6BC4; --pr-deeper-rgb:47,107,196;
  --pr-tint:#EEF4FF; --pr-tint-2:#DCE8FD; --pr-wash:#F4F8FF;
  --pr-line:#DDE5F0; --pr-line-soft:#E8EEF7; --pr-paper:#FBFCFE; --pr-edge:#E4ECF7;
  --pr-step-2:#C9DCFB; --pr-step-1-ink:#2F5A9C; --pr-step-2-ink:#274E88;
  --pr-btn-shadow:rgba(20,50,110,.5);
  --pr-footer-a:#6AA6FA; --pr-footer-b:#3F7FD8;
  --pr-bg:#F8F8F8; --pr-gutter:80px;
  --pr-lift:0 4px 0 var(--pr-edge),0 22px 40px -28px rgba(var(--pr-deep-rgb),.4);
  --pr-lift-hover:0 4px 0 var(--pr-edge),0 28px 46px -24px rgba(var(--pr-deep-rgb),.45);
  margin:0; background:var(--pr-bg); color:var(--hc-ink); font-family:var(--hz-ui);
}
/* the site coral, for the Learning map */
body.dna-page.site-ui.pr-page.pr-coral {
  --pr-accent:#FA6A6D; --pr-accent-rgb:250,106,109;
  --pr-deep:#C23F46;   --pr-deep-rgb:194,63,70;
  --pr-deeper:#A8323A; --pr-deeper-rgb:168,50,58;
  --pr-tint:#FFF1F0; --pr-tint-2:#FFE3E1; --pr-wash:#FFF5F4;
  --pr-line:#EEE1DD; --pr-line-soft:#F3E7E4; --pr-paper:#FFFDFB; --pr-edge:#F3E8E5;
  --pr-step-2:#FBC9CB; --pr-step-1-ink:#9C2F35; --pr-step-2-ink:#88272D;
  --pr-btn-shadow:rgba(110,20,30,.55);
  --pr-footer-a:#FA6A6D; --pr-footer-b:#C8434A;
}
/* a fourth colour, teal, for the Learning Path (coral, blue and purple are taken by the other sections) */
body.dna-page.site-ui.pr-page.pr-teal {
  --pr-accent:#48B5AD; --pr-accent-rgb:72,181,173;
  --pr-deep:#2A8C86;   --pr-deep-rgb:42,140,134;
  --pr-deeper:#1F6F6A; --pr-deeper-rgb:31,111,106;
  --pr-tint:#EAF7F5; --pr-tint-2:#D3EEEB; --pr-wash:#F1FAF9;
  --pr-line:#D8E8E6; --pr-line-soft:#E5F0EF; --pr-paper:#FBFEFD; --pr-edge:#E0EEEC;
  --pr-step-2:#BFE4E0; --pr-step-1-ink:#1E5F5B; --pr-step-2-ink:#194F4C;
  --pr-btn-shadow:rgba(15,70,66,.5);
  --pr-footer-a:#48B5AD; --pr-footer-b:#2A8C86;
}
/* Berry, for the Starter Course and the Learning Path — "Hanzi Basics & Beyond"
   (2026-09-29; was orange). The class is still called pr-orange so the pages need
   no change; coral, blue, purple and green are taken by the other sections. */
body.dna-page.site-ui.pr-page.pr-orange {
  --pr-accent:#CE6DAA; --pr-accent-rgb:206,109,170;
  --pr-deep:#8E2F6C;   --pr-deep-rgb:142,47,108;
  --pr-deeper:#74245A; --pr-deeper-rgb:116,36,90;
  --pr-tint:#FBEFF6; --pr-tint-2:#F5DDEA; --pr-wash:#FCF4F8;
  --pr-line:#EEDFE7; --pr-line-soft:#F4E8EE; --pr-paper:#FFFCFE; --pr-edge:#F3E4EC;
  --pr-step-2:#EBC3DA; --pr-step-1-ink:#7A2A5C; --pr-step-2-ink:#66224D;
  --pr-btn-shadow:rgba(90,20,65,.5);
  --pr-footer-a:#CE6DAA; --pr-footer-b:#A44583;
}
/* Everything inside <main> and the footer takes the accent; the header keeps the site coral. */
body.dna-page.site-ui.pr-page > :not(.site-header),
body.dna-page.site-ui.pr-page .pr-main,
body.dna-page.site-ui.pr-page .site-footer.hz-footer {
  /* everything under the body except the site header: the page's main and
     footer, and whatever the page's scripts append to the body (progress
     bars, points chips, overlays, flying tiles) */
  --hc-coral:var(--pr-accent);    --hc-coral-rgb:var(--pr-accent-rgb);
  --hc-coral-deep:var(--pr-deep); --hc-coral-deep-rgb:var(--pr-deep-rgb);
  --hc-tint:var(--pr-tint); --hc-tint-2:var(--pr-tint-2); --hc-wash:var(--pr-wash);
  /* the old theme's green family and everything derived from it */
  --t-green-bright:var(--pr-accent); --t-green:var(--pr-deep); --t-green-deep:var(--pr-deeper);
  --t-green-tint:var(--pr-tint); --t-green-tint-2:var(--pr-tint-2);
  --t-green-rgb:var(--pr-accent-rgb); --t-green-deep-rgb:var(--pr-deeper-rgb);
  --t-action-fill:var(--pr-deep); --t-action-hover:var(--pr-deeper); --t-action-edge:rgba(var(--pr-deep-rgb),.45); --t-action-ink:var(--pr-deeper);
  --t-current:var(--pr-deep); --t-current-tint:var(--pr-tint); --t-done:var(--pr-accent); --t-done-tint:var(--pr-tint-2);
  --t-fill:var(--pr-deep); --t-track:var(--pr-edge);
  --t-step-1:var(--pr-tint); --t-step-2:var(--pr-step-2); --t-step-3:var(--pr-accent); --t-step-4:var(--pr-deep);
  --t-step-1-ink:var(--pr-step-1-ink); --t-step-2-ink:var(--pr-step-2-ink); --t-step-3-ink:#1F1A1A; --t-step-4-ink:#FFFFFF;
  --t-area-char-mark:var(--pr-accent); --t-area-char-ink:var(--pr-deeper); --t-area-char-tint:var(--pr-tint); --t-area-char-tint2:var(--pr-tint-2); --t-area-char-rgb:var(--pr-accent-rgb);
  --t-line:var(--pr-line); --t-line-soft:var(--pr-line-soft); --t-cream:var(--pr-paper); --t-sand:var(--pr-wash); --t-sunk:var(--pr-tint);
  --t-ink:#1F1A1A; --t-ink-2:#4A4040; --t-muted:#7A6B6B; --t-faint:#A9A19C;
  --t-sh-1:0 1px 2px rgba(31,26,26,.05);
  --t-sh-2:var(--pr-lift);
  --t-sh-3:var(--pr-lift);
  /* site-ui.css resolves its area accent on the body, so re-point it here too */
  --ui-accent:var(--pr-deeper); --ui-rgb:var(--pr-accent-rgb); --ui-tint:var(--pr-tint); --ui-tint2:var(--pr-tint-2);
}
body.dna-page.site-ui.pr-page > main { flex:1 0 auto; }
body.pr-page :is(main,.pr-main) *, body.pr-page :is(main,.pr-main) *::before, body.pr-page :is(main,.pr-main) *::after { box-sizing:border-box; }
body.dna-page.site-ui.pr-page .pr-main { position:relative; min-width:0; }

/* ── Band ───────────────────────────────────────────────────────────────── */
body.dna-page.site-ui.pr-page .pr-band {
  position:relative; isolation:isolate; overflow:hidden;
  padding:40px 0 92px; background:var(--hc-coral); color:#fff;
}
body.dna-page.site-ui.pr-page .pr-wrap,
body.dna-page.site-ui.pr-page .pr-band-inner {
  position:relative; width:calc(100% - var(--pr-gutter) * 2); max-width:1200px; margin-inline:auto;
}
body.dna-page.site-ui.pr-page .pr-band-inner {
  display:flex; align-items:flex-end; justify-content:space-between; gap:20px 32px; flex-wrap:wrap;
}
body.dna-page.site-ui.pr-page .pr-band-copy { min-width:0; max-width:680px; }
body.dna-page.site-ui.pr-page .pr-crumb {
  display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:0 0 20px;
  font:500 14px/1.4 var(--hz-ui); color:rgba(255,255,255,.8);
}
body.dna-page.site-ui.pr-page .pr-crumb a { color:#fff; text-decoration:none; }
body.dna-page.site-ui.pr-page .pr-crumb a:hover { text-decoration:underline; text-underline-offset:3px; }
body.dna-page.site-ui.pr-page .pr-band h1 {
  margin:0; font:700 42px/1.06 var(--hz-display); letter-spacing:-.03em; color:#fff;
}
body.dna-page.site-ui.pr-page .pr-lede {
  max-width:560px; margin:10px 0 0; font:400 17px/1.55 var(--hz-ui); color:rgba(255,255,255,.93);
}
body.dna-page.site-ui.pr-page .pr-band-actions { display:flex; flex-wrap:wrap; gap:10px; align-self:flex-end; }
/* light capsule on the band */
body.dna-page.site-ui.pr-page .pr-band-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:0 20px;
  border:0; border-radius:999px; background:#fff; color:var(--hc-coral-deep);
  font:600 15px/1 var(--hz-ui); white-space:nowrap; cursor:pointer; text-decoration:none;
  box-shadow:0 14px 26px -14px var(--pr-btn-shadow);
  transition:transform .15s ease,box-shadow .15s ease;
}
body.dna-page.site-ui.pr-page .pr-band-btn:hover { transform:translateY(-1px); box-shadow:0 18px 30px -14px var(--pr-btn-shadow); }
body.dna-page.site-ui.pr-page .pr-band-btn:disabled { opacity:.6; cursor:default; transform:none; }
body.dna-page.site-ui.pr-page .pr-band-btn:focus-visible { outline:2px solid #fff; outline-offset:3px; }

/* ── Content over the band ──────────────────────────────────────────────── */
body.dna-page.site-ui.pr-page .pr-wrap { z-index:2; margin-top:-56px; padding-bottom:72px; }

/* ── Footer: blue on the practice pages ─────────────────────────────────── */
body.dna-page.site-ui.pr-page .site-footer.hz-footer {
  padding:48px 0 32px; background:linear-gradient(135deg,var(--pr-footer-a),var(--pr-footer-b));
}

/* ── Breakpoints ────────────────────────────────────────────────────────── */
@media (max-width:1023px) {
  body.dna-page.site-ui.pr-page { --pr-gutter:48px; }
  body.dna-page.site-ui.pr-page .pr-band { padding:36px 0 84px; }
  body.dna-page.site-ui.pr-page .pr-band h1 { font-size:36px; }
}
@media (max-width:639px) {
  body.dna-page.site-ui.pr-page { --pr-gutter:20px; }
  body.dna-page.site-ui.pr-page .pr-band { padding:26px 0 76px; }
  body.dna-page.site-ui.pr-page .pr-band-inner { gap:16px; }
  body.dna-page.site-ui.pr-page .pr-crumb { margin-bottom:14px; font-size:13px; gap:8px; }
  body.dna-page.site-ui.pr-page .pr-band h1 { font-size:30px; }
  body.dna-page.site-ui.pr-page .pr-lede { font-size:15.5px; }
  body.dna-page.site-ui.pr-page .pr-band-btn { min-height:40px; padding:0 16px; font-size:14px; }
  body.dna-page.site-ui.pr-page .pr-wrap { margin-top:-48px; padding-bottom:56px; }
}
@media (prefers-reduced-motion:reduce) {
  body.dna-page.site-ui.pr-page .pr-band-btn { transition:none; }
  body.dna-page.site-ui.pr-page .pr-band-btn:hover { transform:none; }
}

/* ==========================================================================
   Writing practice — level.html?writingToday=1 (assets/writing-today.js
   inside the level page's shell). The level lessons themselves
   (level.html?n=N) keep their own layout; they only take the blue.
   ========================================================================== */
body.dna-page.site-ui.pr-page.level-page { background:var(--pr-bg); }
body.dna-page.site-ui.pr-page.level-page .lp-shell { flex:1 0 auto; width:100%; }
body.dna-page.site-ui.pr-page.level-page .pr-main {
  --lp-blue:var(--pr-deeper); --lp-blue-dk:var(--pr-deeper); --lp-blue-soft:var(--pr-tint); --lp-blue-faint:var(--pr-paper);
  --lp-line:var(--pr-line); --lp-line-soft:var(--pr-line-soft); --lp-card-line:var(--pr-line); --lp-bg:var(--pr-wash);
  --lp-ink:#1F1A1A; --lp-ink-2:#1F1A1A; --lp-body:#4A4040; --lp-muted:#7A6B6B; --lp-faint:#7A6B6B;
}
body.dna-page.site-ui.pr-page.level-page:not(.writing-today-page) .lp-crumb { display:none; }
body.dna-page.site-ui.pr-page.level-page:not(.writing-today-page) .pr-main .lp-kicker { color:var(--lp-blue); }

/* the writing practice page: band, then the history card and the four collections */
body.dna-page.site-ui.pr-page.level-page.writing-today-page .lp-shell { display:block; min-height:0; }
body.dna-page.site-ui.pr-page.level-page.writing-today-page .lp-main { max-width:none; margin:0; padding:0; }
body.dna-page.site-ui.pr-page.level-page.writing-today-page .lp-band {
  position:relative; isolation:isolate; overflow:hidden; padding:40px 0 92px; background:var(--hc-coral); color:#fff;
}
body.dna-page.site-ui.pr-page.level-page.writing-today-page .lp-band-inner {
  width:calc(100% - var(--pr-gutter) * 2); max-width:1200px; margin-inline:auto;
}
body.dna-page.site-ui.pr-page.level-page.writing-today-page .lp-crumb { margin-bottom:20px; }
body.dna-page.site-ui.pr-page.level-page.writing-today-page .lp-kicker {
  margin:0 0 10px; font:600 12px/1 var(--hz-ui); letter-spacing:.16em; text-transform:uppercase; color:rgba(255,255,255,.85);
}
body.dna-page.site-ui.pr-page.level-page.writing-today-page .lp-title-row { margin:0; }
body.dna-page.site-ui.pr-page.level-page.writing-today-page .lp-title-row h1,
body.dna-page.site-ui.pr-page.level-page.writing-today-page #lp-title {
  font:700 42px/1.06 var(--hz-display); letter-spacing:-.03em; color:#fff;
}
body.dna-page.site-ui.pr-page.level-page.writing-today-page .lp-sub {
  max-width:560px; margin:10px 0 0; font:400 17px/1.55 var(--hz-ui); color:rgba(255,255,255,.93);
}

body.dna-page.site-ui.pr-page.level-page.writing-today-page .lp-main > .writing-today {
  position:relative; z-index:2; display:flex; flex-direction:column;
  width:calc(100% - var(--pr-gutter) * 2); max-width:1200px; margin:-56px auto 0; padding:0; border:0; color:var(--hc-ink);
}
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-today > p { order:2; margin:16px 0 4px; font:400 14px/1.5 var(--hz-ui); color:var(--hc-muted); }
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-history {
  order:1; margin:0; padding:22px 26px; border:1px solid var(--pr-line); border-radius:22px; background:var(--pr-paper); box-shadow:var(--pr-lift);
}
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-selected-date {
  order:3; margin:22px 0 14px; font:700 26px/1.2 var(--hz-display); letter-spacing:-.02em; color:var(--hc-ink);
}
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-today-groups { order:4; gap:20px; }
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-today > [role="status"] { order:5; margin:16px 0 0; font-size:13.5px; color:var(--hc-muted); }
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-history-retry { order:6; align-self:flex-start; margin-top:12px; }

/* the history card's controls */
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-month-nav strong { font:700 17px/1.3 var(--hz-display); color:var(--hc-ink); }
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-history button,
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-history-retry {
  min-height:40px; padding:0 16px; border:1px solid rgba(var(--hc-coral-rgb),.4); border-radius:999px; background:#fff;
  font:600 14px/1 var(--hz-ui); color:var(--hc-coral-deep); box-shadow:none; transition:background-color .15s ease,border-color .15s ease;
}
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-month-nav button { width:40px; padding:0; font-size:22px; }
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-history button:hover:not(:disabled) { background:var(--hc-tint); border-color:var(--hc-coral-deep); }
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-history button:disabled { opacity:.45; }
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-date-label { font:500 13px/1.4 var(--hz-ui); color:var(--hc-muted); }
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-date-label input {
  padding:9px 12px; border:1px solid var(--pr-line); border-radius:999px; background:#fff; font:500 14px/1.3 var(--hz-ui); color:var(--hc-ink);
}
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-history-dates { gap:8px; margin-top:18px; }
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-history-dates button { gap:8px; }
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-history-dates button span {
  min-width:20px; padding:2px 6px; border-radius:999px; background:var(--hc-tint); font:600 11px/1.4 var(--hz-ui); color:var(--hc-coral-deep);
}
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-history-dates button[aria-pressed="true"],
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-history .writing-history-dates button[aria-pressed="true"]:hover:not(:disabled) {
  border-color:transparent; background:linear-gradient(170deg,var(--hc-coral),var(--hc-coral-deep)); color:#fff;
  box-shadow:0 8px 16px -10px rgba(var(--hc-coral-deep-rgb),.55);
}
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-history-dates button[aria-pressed="true"] span { background:rgba(255,255,255,.22); color:#fff; }
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-history-help,
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-history-empty { font-size:13px; color:var(--hc-muted); }

/* the four collections */
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-today-group {
  padding:24px 26px; border:1px solid var(--pr-line); border-radius:22px; background:var(--pr-paper); box-shadow:var(--pr-lift);
}
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-today-group h3 {
  font:700 21px/1.2 var(--hz-display); letter-spacing:-.02em; color:var(--hc-ink);
}
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-group-count { height:26px; min-width:26px; border-radius:999px; font:600 13px/1 var(--hz-ui); }
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-group-description { font:400 14px/1.5 var(--hz-ui); color:var(--hc-muted); }
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-today-group .writing-group-characters { border-top-color:var(--pr-line-soft); }
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-character { border-radius:10px; }
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-group-empty { font:400 14px/1.6 var(--hz-ui); color:var(--hc-muted); }
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-today-group button {
  min-height:40px; padding:0 16px; border:1px solid rgba(var(--hc-coral-rgb),.4); border-radius:999px; background:#fff;
  font:600 14px/1 var(--hz-ui); color:var(--hc-coral-deep); box-shadow:none;
}
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-today-group button:hover:not(:disabled) { background:var(--hc-tint); border-color:var(--hc-coral-deep); box-shadow:none; }
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-today-group button:disabled {
  color:var(--hc-muted); background:#fff; border-color:var(--pr-line); opacity:.7;
}
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-today-group button:focus-visible,
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-history button:focus-visible,
body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-history input:focus-visible { outline:2px solid var(--hc-coral-deep); outline-offset:3px; }

/* the back link the page appends after the collections */
body.dna-page.site-ui.pr-page.level-page.writing-today-page .lp-main > .lp-quiet {
  display:block; width:calc(100% - var(--pr-gutter) * 2); max-width:1200px; margin:28px auto 72px; padding:0;
  font:500 14px/1.4 var(--hz-ui); color:var(--hc-muted); text-decoration:none;
}
body.dna-page.site-ui.pr-page.level-page.writing-today-page .lp-main > .lp-quiet:hover { color:var(--hc-coral-deep); }

@media (max-width:1023px) {
  body.dna-page.site-ui.pr-page.level-page.writing-today-page .lp-band { padding:36px 0 84px; }
  body.dna-page.site-ui.pr-page.level-page.writing-today-page .lp-title-row h1 { font-size:36px; }
}
@media (max-width:760px) {
  body.dna-page.site-ui.pr-page.level-page.writing-today-page .lp-main { padding:0; }
  body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-today-groups { gap:14px; }
}
@media (max-width:639px) {
  body.dna-page.site-ui.pr-page.level-page.writing-today-page .lp-band { padding:26px 0 76px; }
  body.dna-page.site-ui.pr-page.level-page.writing-today-page .lp-crumb { margin-bottom:14px; }
  body.dna-page.site-ui.pr-page.level-page.writing-today-page .lp-title-row h1 { font-size:30px; }
  body.dna-page.site-ui.pr-page.level-page.writing-today-page .lp-sub { font-size:15.5px; }
  body.dna-page.site-ui.pr-page.level-page.writing-today-page .lp-main > .writing-today { margin-top:-48px; }
  body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-history { padding:18px 16px; border-radius:18px; }
  body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-today-group { padding:18px 16px; border-radius:18px; }
  body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-today-group h3 { font-size:19px; }
  body.dna-page.site-ui.pr-page.level-page.writing-today-page .writing-selected-date { font-size:22px; }
  body.dna-page.site-ui.pr-page.level-page.writing-today-page .lp-main > .lp-quiet { margin:22px auto 56px; }
}

/* ==========================================================================
   Hanzi Learning — hanzi-study.html
   ========================================================================== */
body.dna-page.site-ui.pr-page.hanzi-study-page .study-main {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:stretch; max-width:900px;
}
body.dna-page.site-ui.pr-page.hanzi-study-page .study-window {
  display:flex; flex-direction:column; align-items:flex-start; min-height:250px; padding:28px 30px;
  border:1px solid var(--pr-line); border-radius:22px; background:var(--pr-paper); box-shadow:var(--pr-lift);
  color:var(--hc-ink); text-decoration:none; transition:transform .18s ease,box-shadow .18s ease;
}
body.dna-page.site-ui.pr-page.hanzi-study-page .study-window h2 {
  margin:0 0 8px; font:700 27px/1.15 var(--hz-display); letter-spacing:-.02em; color:var(--hc-ink);
}
body.dna-page.site-ui.pr-page.hanzi-study-page .study-meta {
  display:flex; flex-wrap:wrap; gap:8px; margin:0 0 12px; font:600 12px/1.5 var(--hz-ui); letter-spacing:.06em; text-transform:uppercase; color:var(--hc-coral-deep);
}
body.dna-page.site-ui.pr-page.hanzi-study-page .study-description { margin:0 0 22px; font:400 15px/1.6 var(--hz-ui); color:var(--hc-body); }
body.dna-page.site-ui.pr-page.hanzi-study-page .study-open {
  display:inline-flex; align-items:center; gap:10px; min-height:46px; margin-top:auto; padding:0 22px; border-radius:999px;
  background:linear-gradient(170deg,var(--hc-coral),var(--hc-coral-deep)); color:#fff; font:600 15px/1 var(--hz-ui);
  box-shadow:0 10px 20px -12px rgba(var(--hc-coral-deep-rgb),.6);
}
body.dna-page.site-ui.pr-page.hanzi-study-page .study-coming-soon {
  display:inline-flex; align-items:center; min-height:34px; margin-top:auto; padding:0 14px; border-radius:999px;
  background:var(--hc-tint); font:600 13px/1 var(--hz-ui); color:var(--hc-coral-deep);
}
body.dna-page.site-ui.pr-page.hanzi-study-page .study-window:focus-visible { outline:2px solid var(--hc-coral-deep); outline-offset:4px; }
@media (hover:hover) and (pointer:fine) {
  body.dna-page.site-ui.pr-page.hanzi-study-page a.study-window:hover { transform:translateY(-2px); box-shadow:var(--pr-lift-hover); text-decoration:none; }
}
@media (max-width:767px) {
  body.dna-page.site-ui.pr-page.hanzi-study-page .study-main { grid-template-columns:minmax(0,1fr); gap:14px; }
  body.dna-page.site-ui.pr-page.hanzi-study-page .study-window { min-height:0; }
}
@media (max-width:639px) {
  body.dna-page.site-ui.pr-page.hanzi-study-page .study-window { padding:20px 18px; border-radius:18px; }
  body.dna-page.site-ui.pr-page.hanzi-study-page .study-window h2 { font-size:24px; }
}
@media (prefers-reduced-motion:reduce) {
  body.dna-page.site-ui.pr-page.hanzi-study-page .study-window { transition:none; }
  body.dna-page.site-ui.pr-page.hanzi-study-page a.study-window:hover { transform:none; }
}

/* ── Viewport-height scaling ────────────────────────────────────────────────
   The band's height came entirely from fixed px, so it measured ~454px on
   every screen: fine in a 920px-tall desktop viewport, but 117% of a 470px
   laptop one, leaving no room for the cards. Width breakpoints cannot reach
   this — the constraint is viewport HEIGHT, and it is continuous, so stepped
   breakpoints leave cliffs (a 14" MacBook at 870px and a 13" Air at 844px
   would land on opposite sides of one).
   Each value is clamp(floor, Xvh, original), X being the original as a
   fraction of an 880px viewport, rounded up. 880 is the anchor because a
   maximised 1080p desktop leaves ~920px of viewport once the taskbar and
   browser chrome are gone: every desktop therefore computes the original
   exactly, and only genuinely short screens scale down.
   .pr-wrap's negative margin scales in step so the cards always clear the
   band's buttons. Scoped to >=1024px: phones and tablets keep their own rules. */
@media (min-width:1024px) {
  body.dna-page.site-ui.pr-page .pr-band { padding-block:clamp(12px,4.55vh,40px) clamp(22px,10.46vh,92px); }
  body.dna-page.site-ui.pr-page .pr-crumb { margin-bottom:clamp(8px,2.28vh,20px); font-size:clamp(12px,1.6vh,14px); }
  body.dna-page.site-ui.pr-page .pr-band h1 { font-size:clamp(22px,4.78vh,42px); }
  body.dna-page.site-ui.pr-page .pr-lede { margin-top:clamp(6px,1.14vh,10px); font-size:clamp(14px,1.94vh,17px); }
  body.dna-page.site-ui.pr-page .pr-band-inner { row-gap:clamp(8px,2.28vh,20px); }
  body.dna-page.site-ui.pr-page .pr-wrap { margin-top:max(-56px,-6.37vh); padding-bottom:clamp(28px,8.19vh,72px); }
}
