/* User-approved direction: vermilion and paper white, a modern reading magazine.
   Operate mode. Real book art leads; editorial rules organize tasks and data. */
:root {
  --brand: #b9352b;
  --brand-hover: #952a22;
  --ink: #302925;
  --muted: #70635b;
  --paper: #faf7f2;
  --line: #e6ddd4;
  --tint: #f8e9e3;
  color: var(--ink);
  background: var(--paper);
  accent-color: var(--brand);
  scrollbar-color: #bbaca1 var(--paper);
}
::selection { background: #f3c7bb; color: #55251f; }
body { line-height: 1.55; }
body > header { min-height: 78px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { color: var(--brand); font-size: 23px; letter-spacing: -.025em; }
.brand small { display: block; margin: 7px 0 0; font-size: 10px; letter-spacing: .18em; color: var(--muted); }
.brand-name { display: block; }
main { max-width: 1240px; padding-top: 36px; }
h1,h2,h3 { color: inherit; text-wrap: balance; }
h1 { letter-spacing: -.03em; }
h2 { font-size: 24px; letter-spacing: -.02em; }
p { line-height: 1.65; }
a { text-underline-offset: 4px; }
button,input,select,textarea { font: inherit; caret-color: var(--brand); }
:where(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
button,.button { border-radius: 8px; min-height: 44px; font-weight: 700; background: var(--brand); color: #fff; }
button:hover,.button:hover { background-color: var(--brand-hover); }
button.link { color: var(--brand); background: transparent; }
.button.secondary,button.secondary { background: var(--tint); color: #8c2c24; }
.button.secondary:hover,button.secondary:hover { background: #efd2c8; color: #70231d; }
.button.disabled,button:disabled { background: #eee9e3; color: #756c64; opacity: 1; cursor: default; }
.topnav a { color: #55483f; border-radius: 5px; }
.topnav a:hover { color: var(--brand); background: #fbede7; }
.topnav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -2px var(--brand); }
input,select,textarea { border-color: #cbbcaf; background: #fff; color: var(--ink); }
input::placeholder,textarea::placeholder { color: #786b62; opacity: 1; }
.hero,.insight-hero,.student-welcome,.shelf-head,.growth-welcome {
  position: relative; overflow: hidden; background: var(--brand); color: #fff;
  border: 0; border-radius: 14px; box-shadow: none; padding: 44px 42px;
}
.hero h1,.brand-hero h1,.growth-welcome.brand-hero h1,.student-welcome h1 {
  font-family: "Reading Editorial", Georgia, "Songti SC", serif;
  font-size: clamp(34px,4.1vw,58px); font-weight: 400; line-height: 1.12;
  letter-spacing: -.025em; max-width: 23ch;
}
.brand-hero h1 span,.growth-welcome.brand-hero h1 span { white-space: normal; }
.brand-hero .brand-context,.growth-welcome.brand-hero .brand-context,
.insight-hero > div > p:last-child,.student-welcome p,.shelf-head p { color: #ffe9de; }
.brand-hero .brand-tagline-zh,.growth-welcome.brand-hero .brand-tagline-zh {
  color: #fff0e4; letter-spacing: .07em; font-weight: 500; font-size: 19px;
}
.hero-cta,.primary-action { background: #fff; color: #a32d24; border: 1px solid #fff; box-shadow: 0 5px 14px #72231c26; }
.hero-cta:hover,.primary-action:hover { background: #fff0e6; color: #81251e; }
.student-book-action { border-color: #fff1e4; color: #fff; background: #9e2b22; box-shadow: none; }
.student-book-action:hover { color: #fff; background: #87231c; border-color: #fff; box-shadow: none; }
.card,.toolbar,.shelf-section { border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: none; }
.toolbar { padding: 24px; }
.metric-grid,.stats { gap: 0; border-block: 1px solid var(--line); padding-block: 20px; margin-block: 26px; }
.metric-grid article,.stats article { min-height: 116px; padding: 12px 24px; background: transparent; border: 0; border-radius: 0; }
.metric-grid article + article,.stats article + article { border-left: 1px solid var(--line); }
.metric-grid b,.stats b { color: var(--ink); font-size: 38px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.metric-grid span,.stats span { color: var(--muted); }
.teacher-metrics .attention-metric { background: #fff4e2; border-radius: 8px; }
.teacher-metrics .attention-metric b { color: #8a5617; }
.sectionhead { margin-bottom: 14px; }
.sectionhead h2 { margin: 0 0 6px; }
.eyebrow { display: none; }
.attention-list a,.student-directory a { border-color: var(--line); border-radius: 9px; }
.attention-list a:hover,.student-directory a:hover { border-color: #cf9b8c; background: #fff9f5; }
.student-avatar { background: var(--tint); color: #8d2c24; }
.ranking-links a { background: #fff9f5; color: #9d3026; border-color: var(--line); }
.ranking-links a:hover { background: var(--tint); border-color: #c07d6c; }
.chips .chipbtn,.chips span { background: #f1ece6; color: #65554a; }
.chipbtn.on,.chips .chipbtn.on,.optbtn.on,.optinput:checked + .optbtn { background: var(--brand); color: #fff; }
/* Touch devices keep :hover latched after a tap, so a checked option must not shift to another hue. */
.optbtn.on:hover,.optinput:checked + .optbtn:hover { background: var(--brand); border-color: var(--brand); }
.catbi-zh { color: #716359; }
.optbtn.on .catbi-zh,.chipbtn.on .catbi-zh { color: #fff0e8; }
.seriesfolder { background: #fff; border-color: var(--line); border-radius: 12px; transition: background-color 160ms ease,border-color 160ms ease; }
.seriesfolder:hover { background: #fff8f3; border-color: #bd8170; transform: none; }
.bookgrid article { background: #fff; border: 0; border-radius: 0; padding: 8px; }
.bookgrid { gap: 22px; }
.bookgrid .title { color: var(--ink); }
.coverart img { border-color: var(--line); border-radius: 6px; box-shadow: 0 5px 12px #49372812; }
.bookgrid .chips span { font-size: 11px; padding: 3px 6px; }
.covernum { background: #4f3029e6; }
.growth-panel,.result-message,.book-confirm { background: #f7ede5; }
.passport-identity { background: #a62e25; color: #fff; }
.passport-page { background: #fffdf8; }
.path-card { border: 1px solid var(--line); box-shadow: none; border-radius: 12px; }
.report-summary { border: 1px solid #ead2a3; background: #fff7e8; }
.notice.success,.status.secure,.status.strength,.score-pill { background: #e5f3e8; color: #245e3e; border-left: 0; }
.notice.error,.status.needs_support,.score-pill.retry { background: #fce5e1; color: #99291f; }
/* A passed attempt is a success state: the score and its stamp use the same green as the cheer line. */
.score,.stamp { color: #19705a; }
.stamp { border-color: #19705a; }
.score.retry { color: var(--brand); }
.notice.warning,.status.insufficient { background: #fff2d9; color: #7e5319; }
.quiz fieldset label { border: 1px solid var(--line); border-radius: 8px; margin-block: 8px; padding: 14px; cursor: pointer; }
.quiz fieldset label:has(input:checked) { background: #fff0e9; border-color: var(--brand); }
.quiz fieldset label:hover { background: #fff9f5; }
.sitefoot { border-color: var(--line); color: var(--muted); }
.sitefoot a { color: #8d352b; }
progress { accent-color: var(--brand); }
progress::-webkit-progress-value { background: var(--brand); }
th { color: #6a5649; font-size: .9em; background: #faf6f0; }
th,td { border-color: var(--line); }
tr.me td { background: #fbece4; }
@media (min-width:1100px) {
  body > header { padding-inline: max(28px,calc((100vw - 1200px)/2)); }
  .topnav { gap: 6px; }
  .topnav a { padding: 8px 10px; }
}
@media (max-width:700px) {
  body > header { min-height: 68px; }
  main { padding: 22px 16px 48px; }
  .hero,.insight-hero,.student-welcome,.shelf-head,.growth-welcome { padding: 28px 24px; border-radius: 12px; gap: 22px; }
  .brand-hero h1,.growth-welcome.brand-hero h1 { font-size: 34px; }
  .brand-hero .brand-tagline-zh { font-size: 16px; }
  .student-book-action,.hero-cta { align-self: flex-start; }
  .metric-grid,.stats { row-gap: 18px; }
  .metric-grid article,.stats article { padding: 8px 14px; }
  .metric-grid article:nth-child(odd),.stats article:nth-child(odd) { border-left: 0; }
  .metric-grid b,.stats b { font-size: 32px; }
  .teacher-metrics .attention-metric { grid-column: 1 / -1; border: 0; }
  .toolbar,.card { padding: 20px; }
  .navpanel .topnav a { border-color: var(--line); }
  .navpanel form.logout button { background: var(--brand); }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
