/* NextStep homepage (2026-11 redesign).
   The one bold element is the staircase under the hero: the four steps of
   the logo become the four ways to use NextStep. Everything else is plain
   type on a grid, separated by thick navy rules above each heading. */

.community-home {
  --step-navy: var(--navy);
  --step-green: var(--green);
  --step-lime: var(--lime);
  --rise: clamp(2.25rem, 4vw, 3.5rem);
  --tread: 10px;
  color: var(--ink-soft);
  font-family: var(--font-sans);
}
.community-home > section {
  padding-inline: max(var(--gutter), calc((100% - var(--shell)) / 2));
  padding-block: clamp(4rem, 8vw, 6.5rem);
}
.community-home :is(h1, h2, h3) { margin: 0; color: var(--ink); }
.community-home p { margin: 0; }
/* Beats the legacy body[data-page="home"] h2 width cap in redesign.css. */
body[data-page="home"] .community-home h2 {
  max-width: none;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 760;
  font-stretch: 80%;
  line-height: 1.02;
  letter-spacing: -.012em;
}
html:root body.zh[data-page="home"] .community-home h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.25; font-stretch: 100%; }

/* Actions */
.community-home .m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: .75rem 1.35rem;
  border: 2px solid var(--brand);
  background: var(--brand);
  color: var(--on-brand);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
@media (hover: hover) { .community-home .m-btn:hover { border-color: var(--brand-strong); background: var(--brand-strong); color: var(--on-brand); } }
.community-home .m-btn--ghost { background: transparent; color: var(--brand); }
@media (hover: hover) { .community-home .m-btn--ghost:hover { background: var(--brand); color: var(--on-brand); } }
.community-home .m-link {
  display: inline-block;
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
}
@media (hover: hover) { .community-home .m-link:hover { text-decoration-thickness: 2px; } }
.community-home a:focus-visible,
.community-home summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* ─── Hero ───────────────────────────────────────────────────────────── */
#hero { padding-block: clamp(3rem, 6vw, 5.5rem) 0; }
.hero__body { display: grid; }
.hero__lede {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: end;
}
#hero h1 {
  max-width: 17ch;
  font-size: clamp(2.7rem, 5.6vw, 5.4rem);
  font-weight: 780;
  font-stretch: 76%;
  line-height: .98;
  letter-spacing: -.018em;
  text-wrap: balance;
}
html:root body.zh #hero h1 { max-width: none; font-size: clamp(2.4rem, 5vw, 4.6rem); font-stretch: 100%; line-height: 1.2; letter-spacing: .01em; }
.hero__aside p { max-width: 34ch; font-size: 1.1rem; line-height: 1.6; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* The staircase. Each step is an L: a thick tread on top and a riser down
   its left side, rising left to right like the logo. */
.stairs { margin-top: clamp(3rem, 6vw, 5rem); }
.stairs__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.stairs__step { --c: var(--step-navy); display: flex; }
.stairs__step--1 { margin-top: calc(var(--rise) * 3); }
.stairs__step--2 { --c: var(--step-green); margin-top: calc(var(--rise) * 2); }
.stairs__step--3 { --c: var(--step-lime); margin-top: var(--rise); }
.stairs__step--4 { margin-top: 0; }
.stairs__step a {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  width: 100%;
  min-height: 12rem;
  padding: 1.25rem 1.5rem 2rem calc(var(--tread) + 1.1rem);
  border-top: var(--tread) solid var(--c);
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(var(--c), var(--c)) left top / var(--tread) 100% no-repeat;
  transition: background-color .15s ease;
}
@media (hover: hover) { .stairs__step a:hover { background-color: var(--mist); } }
@media (hover: hover) { .stairs__step a:hover .stairs__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; } }
.stairs__num { color: var(--muted); font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stairs__title { font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 760; font-stretch: 80%; line-height: 1.05; }
html:root body.zh .stairs__title { font-stretch: 100%; font-weight: 700; }
.stairs__text { max-width: 28ch; color: var(--ink-soft); font-size: .98rem; line-height: 1.5; }
/* The top step's tread ends in an arrowhead, as in the logo: the tread is the
   shaft, and the head is centred on it and sits just past its end. */
.stairs__arrow {
  position: absolute;
  top: calc(var(--tread) * -1.375);
  right: calc(var(--tread) * -1.36);
  width: calc(var(--tread) * 1.36);
  height: calc(var(--tread) * 1.75);
  fill: var(--c);
  overflow: visible;
}
.stairs__step--4 a { padding-right: 3rem; }

/* ─── Shared two-column section ──────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.split__head {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding-top: 1.25rem;
  border-top: 6px solid var(--navy);
}
.split__head p { max-width: 36ch; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; }
.split__head .m-btn { margin-top: .5rem; }

/* Guides: a plain list. Questions are the titles because that is how
   students search for them. */
.guide-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.guide-list li { display: grid; gap: .5rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
.guide-list li:first-child { padding-top: 0; border-top: 0; }
.guide-list h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 720; font-stretch: 85%; line-height: 1.15; }
.guide-list .journal__feature h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-stretch: 80%; line-height: 1.05; }
html:root body.zh .guide-list h3 { font-stretch: 100%; line-height: 1.35; }
.guide-list h3 a { color: var(--ink); text-decoration: none; }
@media (hover: hover) { .guide-list h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .16em; } }
.guide-list p { max-width: 60ch; color: var(--ink-soft); line-height: 1.6; }
.guide-list .journal__feature p { font-size: 1.1rem; }

/* Question bank band */
#study { background: var(--mist); }
.study__inventory { font-variant-numeric: tabular-nums; }
.study__inventory [data-site-stat] { color: var(--ink); font-weight: 700; }
.subject-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--navy);
}
.subject-links li { border-bottom: 1px solid var(--line-strong); }
.subject-links li:nth-child(odd) { border-right: 1px solid var(--line-strong); }
.subject-links li:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
.subject-links a {
  display: block;
  padding: 1.05rem 1.1rem;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 620;
  text-decoration: none;
}
@media (hover: hover) { .subject-links a:hover { background: var(--paper); text-decoration: underline; text-underline-offset: .2em; } }
.study__recordings { margin-top: 2rem; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.study__recordings summary,
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.study__recordings summary::-webkit-details-marker,
.faq__q::-webkit-details-marker { display: none; }
.study__toggle,
.faq__icon {
  position: relative;
  flex: none;
  width: 1rem;
  height: 1rem;
}
.study__toggle::before, .study__toggle::after,
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  margin-top: -1px;
  background: var(--ink);
  transition: transform .2s ease;
}
.study__toggle::after, .faq__icon::after { transform: rotate(90deg); }
details[open] > summary .study__toggle::after,
details[open] > summary .faq__icon::after { transform: rotate(0deg); }
.study__recordings-body { display: grid; gap: .6rem; justify-items: start; padding-bottom: 1.4rem; }
.study__recordings-body h3 { font-size: 1.1rem; font-weight: 700; font-stretch: 100%; }

/* Who we are: a dated sequence, so it may carry its dates. */
.timeline-steps { margin: 0; padding: 0; list-style: none; }
.timeline-steps li {
  display: grid;
  grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
}
.timeline-steps li:first-child { padding-top: 0; border-top: 0; }
.timeline-steps li:last-child { border-bottom: 1px solid var(--line); }
.timeline-steps__date { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
.timeline-steps li p:not(.timeline-steps__date) { color: var(--ink); font-size: 1.15rem; line-height: 1.5; }

/* Events and discussions */
#community { padding-top: 0; }
#community h2 { padding-top: 1.25rem; border-top: 6px solid var(--navy); }
.community__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.community__card {
  display: grid;
  gap: .6rem;
  align-content: start;
  min-height: 11rem;
  padding: 1.6rem 1.75rem;
  border: 2px solid var(--navy);
  color: var(--ink);
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.community__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 760; font-stretch: 80%; line-height: 1; }
html:root body.zh .community__title { font-stretch: 100%; }
.community__text { max-width: 40ch; color: var(--ink-soft); line-height: 1.55; }
@media (hover: hover) { .community__card:hover { background: var(--navy); color: #fff; } }
@media (hover: hover) { .community__card:hover .community__title, .community__card:hover .community__text { color: #fff; } }

/* FAQ */
#faq { border-top: 1px solid var(--line); }
.faq__list { border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:first-child { border-top: 2px solid var(--navy); }
.faq__q { padding-block: 1.25rem; font-size: 1.15rem; }
.faq__a { padding: 0 2.5rem 1.5rem 0; }
.faq__a p { max-width: 62ch; color: var(--ink-soft); line-height: 1.65; }

/* Volunteer invitation: the lime block closes the page above the footer. */
#contact { background: var(--lime); }
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
#contact h2 { color: #061a3d; font-size: clamp(2.4rem, 4.6vw, 4rem); }
.contact__body { display: grid; gap: 1.25rem; justify-items: start; }
.contact__body p { max-width: 42ch; color: #061a3d; font-size: 1.1rem; line-height: 1.6; }
.community-home .m-btn--navy { border-color: #0b2a5b; background: #0b2a5b; color: #fff; }
@media (hover: hover) { .community-home .m-btn--navy:hover { border-color: #061a3d; background: #061a3d; color: #fff; } }
#contact a:focus-visible { outline-color: #061a3d; }

/* ─── Hero facts ─────────────────────────────────────────────────────── */
.hero__facts {
  display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 1.5rem 0 0; padding: 0; list-style: none;
  color: var(--muted); font-size: .95rem;
}
.hero__facts strong { color: var(--ink); font-weight: 750; font-variant-numeric: tabular-nums; }

/* ─── Two everyday tools ─────────────────────────────────────────────── */
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.tool { display: grid; align-content: start; gap: .85rem; padding: 1.5rem 1.75rem 1.75rem 0; }
.tool + .tool { padding-left: 1.75rem; border-left: 1px solid var(--line); }
.tool h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 760; font-stretch: 82%; line-height: 1.05; }
.tool h3 a { color: inherit; text-decoration: none; }
@media (hover: hover) { .tool h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; } }
.tool h3::before { content: ""; display: block; width: 2.5rem; height: 6px; margin-bottom: .9rem; background: var(--step-green); }
.tool--reading h3::before { background: var(--step-lime); }
/* The AI helper is the tall card; the two daily features stack beside it. */
.tool--ai { grid-row: span 2; }
.tool--word { border-top: 1px solid var(--line); }
.tool--word h3::before { background: var(--brand); }
.tool__word { display: grid; gap: .15rem; }
.tool__word a { font-size: 1.25rem; overflow-wrap: anywhere; }
.tool__word-say { font-size: .95rem; }
.tool__word-zh { font-weight: 600; }
.tool p { line-height: 1.6; }
.tool__examples { display: grid; gap: .4rem; margin: .25rem 0 0; padding: 0; list-style: none; }
.tool__examples a {
  display: block; padding: .55rem .8rem; border: 1px solid var(--line); color: var(--ink); text-decoration: none; line-height: 1.4;
}
.tool__examples a::before { content: "“"; color: var(--muted); }
.tool__examples a::after { content: "”"; color: var(--muted); }
@media (hover: hover) { .tool__examples a:hover { border-color: var(--brand); color: var(--brand); } }
.tool__today { padding: .75rem .9rem; background: var(--accent-soft); color: var(--ink); line-height: 1.45; }
.tool__today a { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.tool__today-label { font-weight: 600; }
.tool__meta { color: var(--muted); font-size: .9rem; }

/* ─── Signed-in dashboard ────────────────────────────────────────────── */
/* Signed-in students see the dashboard instead of the introduction. A
   returning student's browser remembers this, so the intro never flashes. */
html.home-dashboard-pending .community-home > section:not(#dashboard),
body.home-signed-in .community-home > :is(#hero, #tools, #study, #letter, #faq, #contact) { display: none; }
html.home-dashboard-pending #dashboard[hidden] { display: block; min-height: 70vh; }
#dashboard.dash { padding-block: clamp(2rem, 4vw, 3rem) clamp(3rem, 6vw, 4.5rem); }
.dash__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; }
body[data-page="home"] .community-home .dash__head h2.dash__greeting { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 780; font-stretch: 80%; line-height: 1.05; letter-spacing: -.01em; }
html:root body.zh[data-page="home"] .community-home .dash__head h2.dash__greeting { font-stretch: 100%; line-height: 1.2; }
.dash__date { color: var(--muted); font-size: 1rem; }
.dash__body { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); margin-top: clamp(1.25rem, 3vw, 2rem); }

.dash-ask { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2.5rem; align-items: end; padding: 1.25rem 1.5rem; background: var(--mist); }
.dash-ask__label { display: block; margin-bottom: .5rem; color: var(--ink); font-size: 1.125rem; font-weight: 700; }
.dash-ask__row { display: flex; gap: .5rem; }
.dash-ask__row input { flex: 1; min-width: 0; min-height: 3.1rem; padding: .6rem .9rem; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); font: inherit; font-size: 1.05rem; }
.dash-ask__meta { margin-top: .45rem !important; color: var(--muted); font-size: .875rem; }
.dash-ask__others { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.dash-ask__others a { color: var(--brand); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.dash-ask__others a::after { content: " ›"; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.dash-main { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); min-width: 0; }
.dash-sat__sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.dash-sat__section { padding: .75rem .9rem; background: var(--mist); }
.dash-sat__section p { margin: 0; }
.dash-sat__name { color: var(--muted); font-size: .875rem; }
.dash-sat__rate { color: var(--ink); font-size: 1.25rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.dash-sat__lead { margin: .25rem 0 -.4rem; font-weight: 700; }
.dash-sat__weak { display: grid; margin: 0; padding: 0; list-style: none; }
.dash-sat__weak li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(4rem, 8rem) 3rem; gap: .75rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.dash-sat__weak a { color: var(--ink); font-weight: 650; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .2em; }
@media (hover: hover) { .dash-sat__weak a:hover { text-decoration-color: currentColor; } }
.dash-sat__bar { height: .5rem; background: var(--line); }
.dash-sat__bar span { display: block; height: 100%; background: var(--danger); }
.dash-sat__weakrate { color: var(--danger); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.dash-side { display: grid; gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.dash-card { display: grid; gap: 1rem; align-content: start; padding-top: .9rem; border-top: 3px solid var(--brand); }
.dash-card__title { font-size: 1.25rem !important; font-weight: 750 !important; font-stretch: 90% !important; line-height: 1.2 !important; }
.dash-card__title a { color: inherit; text-decoration: none; }
.dash-card__title a::after { content: " ›"; color: var(--muted); }
@media (hover: hover) { .dash-card__title a:hover { text-decoration: underline; text-underline-offset: .18em; } }
.dash-empty, .dash-meta { color: var(--muted); line-height: 1.55; }
.dash-meta { font-size: .9rem; }
.dash-card__actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.dash-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.dash-figure { display: grid; gap: .15rem; }
.dash-figure dd { margin: 0; color: var(--ink); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 780; font-stretch: 80%; line-height: 1; font-variant-numeric: tabular-nums; }
.dash-figure dt { color: var(--muted); font-size: .9rem; }
.dash-week { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: end; }
.dash-week__label { color: var(--muted); font-size: .9rem; }
.dash-week__bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .35rem; height: 4.5rem; margin: 0; padding: 0; list-style: none; }
.dash-week__bars li { display: grid; grid-template-rows: 1fr auto; gap: .25rem; align-items: end; justify-items: center; }
.dash-week__bar { width: 100%; max-width: 1.75rem; height: var(--h); background: var(--step-green); }
.dash-week__bars li:last-child .dash-week__bar { background: var(--brand); }
.dash-week__day { color: var(--muted); font-size: .72rem; line-height: 1; }
.dash-subjects__head { color: var(--muted); font-size: .8125rem; }
.dash-subjects { margin: -.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.dash-subject { display: grid; grid-template-columns: minmax(7rem, 1.2fr) minmax(4rem, 1fr) auto 3.25rem; grid-template-areas: "name meter done rate" "review review review review"; gap: .2rem 1rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.dash-subject__name { grid-area: name; color: var(--ink); font-weight: 650; text-decoration: none; }
@media (hover: hover) { .dash-subject__name:hover { text-decoration: underline; } }
.dash-meter { grid-area: meter; display: block; height: 8px; background: var(--mist); }
.dash-meter__fill { display: block; height: 100%; background: var(--brand); }
.dash-subject__done { grid-area: done; color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.dash-subject__rate { grid-area: rate; justify-self: end; font-weight: 750; font-variant-numeric: tabular-nums; }
.dash-subject__rate[data-level="good"] { color: var(--positive); }
.dash-subject__rate[data-level="ok"] { color: var(--warning); }
.dash-subject__rate[data-level="low"] { color: var(--danger); }
.dash-subject__review { grid-area: review; color: var(--brand); font-size: .85rem; text-decoration: underline; text-underline-offset: .2em; }
.dash-weak { display: grid; gap: .5rem; padding: 1rem 1.1rem; border-left: 4px solid var(--warning); background: var(--warning-soft); }
.dash-weak h3 { font-size: 1rem; }
.dash-weak ul { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.dash-weak li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; }
.dash-weak a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.dash-weak__rate { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.dash-subject-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.dash-chip { padding: .45rem .8rem; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; }
@media (hover: hover) { .dash-chip:hover { border-color: var(--brand); color: var(--brand); } }

.dash-reading__title { color: var(--ink); font-size: 1.35rem; font-weight: 750; font-stretch: 88%; line-height: 1.15; text-decoration: none; }
@media (hover: hover) { .dash-reading__title:hover { text-decoration: underline; text-underline-offset: .15em; } }
.dash-reading__words { color: var(--muted); font-size: .9rem; font-style: italic; }
.dash-word__word { overflow-wrap: anywhere; }
.dash-word__say { margin-top: -.5rem; }
.dash-word__zh { margin-top: -.5rem; font-weight: 600; line-height: 1.45; }
.dash-events__list { display: grid; margin: 0; padding: 0; list-style: none; }
.dash-events__list li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.dash-events__date { color: var(--brand); font-weight: 700; font-variant-numeric: tabular-nums; }
.dash-events__name { color: var(--ink); line-height: 1.4; }
.dash-hours__total { color: var(--muted); }
.dash-hours__total strong { color: var(--ink); font-size: 2.2rem; font-weight: 780; font-stretch: 80%; font-variant-numeric: tabular-nums; }

@media (max-width: 60rem) {
  .tools { grid-template-columns: 1fr; }
  .tool--ai { grid-row: auto; }
  .tool { padding-right: 0; }
  .tool + .tool { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-ask { grid-template-columns: 1fr; }
  .dash-ask__others { grid-auto-flow: column; justify-content: start; gap: 1.25rem; }
}
@media (max-width: 40rem) {
  .dash-ask { padding: 1rem; }
  .dash-ask__others { grid-auto-flow: row; }
  .dash-figures { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .dash-week { grid-template-columns: 1fr; gap: .5rem; }
  .dash-subject { grid-template-columns: minmax(0, 1fr) auto 3rem; grid-template-areas: "name done rate" "meter meter meter" "review review review"; }
}

/* ─── Dark appearance ────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .community-home { --step-navy: #7d9bd6; --step-green: #5fa33a; }
  :root:not([data-theme="light"]) .community-home :is(.split__head, #community h2) { border-top-color: var(--lime); }
  :root:not([data-theme="light"]) .community-home :is(.subject-links, .faq__item:first-child) { border-top-color: var(--lime); }
  :root:not([data-theme="light"]) .community__card { border-color: var(--line-strong); }
  @media (hover: hover) { :root:not([data-theme="light"]) .community__card:hover { background: var(--lime); } }
  @media (hover: hover) { :root:not([data-theme="light"]) .community__card:hover :is(.community__title, .community__text) { color: #061a3d; } }
}
:root[data-theme="dark"] .community-home { --step-navy: #7d9bd6; --step-green: #5fa33a; }
:root[data-theme="dark"] .community-home :is(.split__head, #community h2) { border-top-color: var(--lime); }
:root[data-theme="dark"] .community-home :is(.subject-links, .faq__item:first-child) { border-top-color: var(--lime); }
:root[data-theme="dark"] .community__card { border-color: var(--line-strong); }
@media (hover: hover) { :root[data-theme="dark"] .community__card:hover { background: var(--lime); } }
@media (hover: hover) { :root[data-theme="dark"] .community__card:hover :is(.community__title, .community__text) { color: #061a3d; } }

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 60rem) {
  .hero__lede { grid-template-columns: 1fr; align-items: start; }
  #hero h1 { max-width: 20ch; }
  .stairs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 0; }
  .stairs__step--1 { margin-top: var(--rise); }
  .stairs__step--2 { margin-top: 0; }
  .stairs__step--3 { margin-top: var(--rise); }
  .stairs__step--4 { margin-top: 0; }
  .stairs__arrow { display: none; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 48rem) {
  .hero__body { grid-template-columns: 1fr; }
  .journal__feature, .split__head, .faq__intro { position: static; }
  .community-home > section { padding-block: 3.5rem; }
  #hero { padding-top: 2.5rem; }
  .stairs__list { grid-template-columns: 1fr; border-bottom: 0; }
  .stairs__step { margin-top: 0 !important; }
  .stairs__step--2 { margin-left: 1rem; }
  .stairs__step--3 { margin-left: 2rem; }
  .stairs__step--4 { margin-left: 3rem; }
  .stairs__step a { min-height: 0; padding-bottom: 1.4rem; }
  .subject-links { grid-template-columns: 1fr; }
  .subject-links li:nth-child(odd) { border-right: 0; }
  .timeline-steps li { grid-template-columns: 1fr; gap: .35rem; }
  .community__links { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; align-items: start; }
  .faq__a { padding-right: 0; }
}
@media (max-width: 25rem) {
  .stairs__step--2 { margin-left: .6rem; }
  .stairs__step--3 { margin-left: 1.2rem; }
  .stairs__step--4 { margin-left: 1.8rem; }
  .hero__actions .m-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .community-home *, .community-home *::before, .community-home *::after { animation: none !important; transition: none !important; }
}

/* ─── Color and motion pass ──────────────────────────────────────────── */
/* The page alternates colored bands instead of white on white: a mist hero
   with white steps, a navy band for the two tools, mist for the question
   bank and lime to close. Section rules carry the three logo colors. */
.community-home .split__head,
#community h2 {
  border-image: linear-gradient(90deg, var(--step-navy) 0 64%, var(--step-green) 64% 86%, var(--step-lime) 86% 100%) 1;
}

/* Hero: steps are solid blocks standing on the band below. Hovering a step
   sweeps its riser across the whole block. */
#hero { background: var(--mist); }
.stairs__list { border-bottom: 0; }
.stairs__step { --on-c: #fff; }
.stairs__step--3 { --on-c: #061a3d; }
.stairs__step a {
  background-color: var(--paper);
  transition: background-size .3s cubic-bezier(.2, .7, .2, 1), color .2s ease;
}
.stairs__step a :is(.stairs__num, .stairs__title, .stairs__text) { transition: color .2s ease; }
.stairs__step a:focus-visible { background-color: var(--paper); background-size: 100% 100%; color: var(--on-c); } @media (hover: hover) { .stairs__step a:hover { background-color: var(--paper); background-size: 100% 100%; color: var(--on-c); } }
.stairs__step a:focus-visible :is(.stairs__num, .stairs__title, .stairs__text) { color: var(--on-c); } @media (hover: hover) { .stairs__step a:hover :is(.stairs__num, .stairs__title, .stairs__text) { color: var(--on-c); } }
@media (prefers-reduced-motion: no-preference) {
  /* The one page-load moment: the four steps rise into place in order. */
  .stairs__step { animation: step-rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .stairs__step--2 { animation-delay: .09s; }
  .stairs__step--3 { animation-delay: .18s; }
  .stairs__step--4 { animation-delay: .27s; }
  @keyframes step-rise { from { opacity: 0; transform: translateY(2rem); } }
}

/* Navy band: the tools on the visitor page, the ask box on the dashboard. */
#tools, .dash-ask {
  --ink: #fff; --ink-soft: #d9e2f2; --muted: #b3c2dc;
  --line: rgb(255 255 255 / 22%); --line-strong: rgb(255 255 255 / 42%);
  --brand: var(--lime); --brand-strong: #a5d95a; --on-brand: #061a3d; --focus: var(--lime);
  --step-navy: #fff; --step-green: #7fc24a; --pop: #fff;
  background: #0b2a5b;
  color: var(--ink-soft);
}
#tools .tool__today { background: var(--lime); color: #061a3d; }
#tools .tool__today a { color: #061a3d; }
.dash-ask__row input { border-color: transparent; background: #fff; color: #061a3d; }
.dash-ask__row input::placeholder { color: #56627a; }

/* Buttons and cards lift off the page on hover, with a solid offset shadow. */
.community-home .m-btn { transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .12s ease, box-shadow .12s ease; }
@media (hover: hover) { .community-home .m-btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--pop, var(--lime)); } }
.community-home .m-btn:active { transform: none; box-shadow: none; }
#contact { --pop: #fff; }
.community__card { transition: background-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease; }
@media (hover: hover) { .community__card:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--step-lime); } }
.subject-links a { transition: background-color .15s ease, color .15s ease; }
@media (hover: hover) { .subject-links a:hover { background: var(--brand); color: var(--on-brand); text-decoration: none; } }

/* Guides: a green bar slides in beside the guide you point at. */
.guide-list li { position: relative; transition: padding-left .2s ease; }
.guide-list li::before {
  content: ""; position: absolute; left: 0; top: 1.5rem; bottom: 1.5rem; width: 0;
  background: var(--step-green); transition: width .2s ease;
}
.guide-list li:first-child::before { top: 0; }
@media (hover: hover) { .guide-list li:hover { padding-left: 1.4rem; } }
@media (hover: hover) { .guide-list li:hover::before { width: 6px; } }

/* Who we are: each date climbs one step, in the step colors. */
.timeline-steps li { padding-left: 1.25rem; box-shadow: inset 6px 0 0 var(--step-navy); }
.timeline-steps li:nth-child(2) { box-shadow: inset 6px 0 0 var(--step-green); }
.timeline-steps li:nth-child(3) { box-shadow: inset 6px 0 0 var(--step-lime); }
.timeline-steps li:first-child { padding-top: 1.4rem; }
.timeline-steps__date { color: var(--ink); }

/* Dashboard figures pick up the step colors. */
.dash-figure:nth-child(1) dd { color: var(--step-navy); }
.dash-figure:nth-child(2) dd { color: var(--step-green); }
.dash-card { border-top-width: 4px; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stairs__step { --on-c: #061a3d; }
}
:root[data-theme="dark"] .stairs__step { --on-c: #061a3d; }
@media (max-width: 48rem) {
  .timeline-steps li:first-child { padding-top: 1.4rem; }
}

/* Switch between the dashboard and the introduction (also in account settings). */
.home-view-switch {
  padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: .875rem;
  text-decoration: underline; text-underline-offset: .22em; cursor: pointer;
}
@media (hover: hover) { .home-view-switch:hover { color: var(--brand); } }
.dash__head .home-view-switch { flex-basis: 100%; text-align: left; }
.hero__aside .home-view-switch { margin-top: 1rem; }

/* ─── Polish pass ────────────────────────────────────────────────────── */
/* Tools: the heading runs across the top and the three tools sit side by
   side, so the navy band has no empty half. */
@media (min-width: 60.01rem) {
  #tools .split { grid-template-columns: 1fr; gap: clamp(1.75rem, 3vw, 2.5rem); }
  #tools .split__head { position: static; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(2rem, 6vw, 6rem); align-items: end; }
  #tools .split__head p { max-width: 46ch; }
  #tools .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #tools .tool--ai { grid-row: auto; }
  #tools .tool--word { border-top: 0; }
}
/* Link cards are as tall as their text, not a fixed block. */
.community__card { min-height: 0; padding-bottom: 1.75rem; }
.community__title::after { content: " ›"; color: var(--step-green); }
@media (hover: hover) { .community__card:hover .community__title::after { color: inherit; } }

/* Dashboard: the week sits beside the three figures, and every subject row
   shares the same columns so the bars start on one line. */
.dash-week { grid-template-columns: 1fr; gap: .5rem; align-content: end; }
.dash-week__bars { gap: .3rem; height: 4rem; }
.dash-week__bar { max-width: none; }
@media (min-width: 60.01rem) {
  .dash-practice { grid-template-columns: minmax(0, 3fr) minmax(12rem, 2fr); column-gap: clamp(1.5rem, 3vw, 2.5rem); }
  .dash-practice > * { grid-column: 1 / -1; }
  .dash-practice > .dash-figures { grid-column: 1; }
  .dash-practice > .dash-week { grid-column: 2; }
}
.dash-subject { grid-template-columns: minmax(7rem, 1.2fr) minmax(4rem, 1fr) 4.75rem 3.25rem; }
.dash-subject__done { text-align: right; }
.dash-weak li { align-items: baseline; }
@media (max-width: 40rem) {
  .dash-subject { grid-template-columns: minmax(0, 1fr) auto 3rem; }
  .dash-weak ul { gap: .6rem; }
  .dash-weak li { display: grid; gap: .1rem; justify-content: start; }
  .dash-sat__sections { gap: .6rem; }
  .dash-sat__rate { font-size: 1.05rem; }
}
