/* ============================================================
   Many Hands: volunteer coordination for LCWS — ported from design/mockup.html
   Light-forward neutral ground. Green appears only where it
   means something: a commitment, a fill level, a live control.
   Display: Newsreader   UI: Karla
   ============================================================ */

:root {
  --bg:        #FAFAF8;
  --surface:   #FFFFFF;
  --surface-2: #F3F3F0;
  --sunk:      #EFEFEC;
  --border:    #E6E6E1;
  --border-2:  #D3D4CE;
  --ink:       #21241F;
  --ink-2:     #4E524B;
  --muted:     #85897F;
  --faint:     #A8AB9F;

  --accent:      #14795F;
  --accent-ink:  #0F6650;
  --accent-soft: #E6F2ED;
  --on-accent:   #FFFFFF;

  --alert:      #B0472C;
  --alert-soft: #FBEDE8;

  --c1: #0E8A72;  --c2: #B0801F;  --c3: #3A63B8;  --c4: #C0523A;  --c5: #8E4A93;

  --shadow: 0 1px 1px rgba(33,36,31,.04);
  --shadow-lg: 0 2px 6px rgba(33,36,31,.07), 0 22px 50px -22px rgba(33,36,31,.28);

  --r-sm: 6px; --r-md: 10px; --r-lg: 14px;
  --maxw: 1080px;
}

/* Single light theme on purpose: this mocks a school website, which is light.
   The page must not flip to dark on a viewer whose OS is in dark mode. */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Karla, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: Newsreader, Georgia, "Times New Roman", serif;
  font-weight: 500;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -.012em;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--faint); margin: 0;
}
.num { font-variant-numeric: tabular-nums; }

/* ---------------- chrome ---------------- */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-in {
  max-width: var(--maxw); margin: 0 auto;
  padding: 12px 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.mark { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.mark-name { font-family: Newsreader, Georgia, serif; font-size: 21px; font-weight: 600; letter-spacing: -.015em; line-height: 1.1; }
.mark-sub { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; }

.pill-concept {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border); padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.ctrl {
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--ink-2); background: var(--surface);
  border: 1px solid var(--border-2); border-radius: 999px;
  padding: 6px 13px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.ctrl:hover { border-color: var(--ink-2); }
.ctrl[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }

.seg { display: inline-flex; background: var(--sunk); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.seg button {
  font-family: inherit; font-size: 13px; font-weight: 700;
  border: 0; background: transparent; color: var(--muted);
  padding: 5px 15px; border-radius: 999px; cursor: pointer;
  transition: background .15s, color .15s;
}
.seg button[aria-selected="true"] { background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow); }

.tabs { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 57px; z-index: 39; }
.tabs-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
}
.tabs-in::-webkit-scrollbar { display: none; }
.tab {
  font-family: inherit; font-size: 14px; font-weight: 600;
  background: none; border: 0; border-bottom: 2px solid transparent;
  color: var(--muted); padding: 12px 13px; cursor: pointer; white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }

main { max-width: var(--maxw); margin: 0 auto; padding: 28px 22px 110px; }

/* ---------------- hero row: photo + rotating thanks ---------------- */
.hero-row {
  display: grid; grid-template-columns: minmax(0,1fr) 348px;
  gap: 16px; margin-bottom: 24px; align-items: stretch;
}
@media (max-width: 900px) { .hero-row { grid-template-columns: 1fr; } }

.hero {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.thanks-hero {
  position: relative; border-radius: var(--r-lg);
  border: 1px solid #EDD9B9;
  background: linear-gradient(140deg, #FFF7E9 0%, #FBE9D3 100%);
  padding: 20px 22px 40px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; box-shadow: var(--shadow);
}
.thanks-hero::before {
  content: "\201C"; position: absolute; top: -6px; right: 12px;
  font-family: Newsreader, Georgia, serif; font-size: 110px; line-height: 1;
  color: rgba(176, 128, 31, .18);
}
.th-eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #8F6716; margin: 0 0 8px; display: flex; align-items: center; gap: 7px;
}
.th-note { transition: opacity .45s ease; }
.th-note.fade { opacity: 0; }
.th-note .q {
  font-family: Newsreader, Georgia, serif; font-style: italic;
  font-size: 17.5px; line-height: 1.45; color: #4A3B22; margin: 0;
}
.th-note .who { margin: 9px 0 0; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #A08148; }
.th-foot {
  position: absolute; left: 22px; right: 22px; bottom: 13px;
  display: flex; align-items: center; justify-content: space-between;
}
.th-dots { display: flex; gap: 6px; }
.th-dots button {
  width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0;
  background: rgba(176,128,31,.28); cursor: pointer;
}
.th-dots button[aria-current="true"] { background: #B0801F; }
.th-foot .linklike { color: #8F6716; font-size: 12px; }
.hero svg { display: block; width: 100%; height: clamp(190px, 22vw, 250px); }
.hero .ph-tag {
  position: absolute; top: 12px; right: 12px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px;
  backdrop-filter: blur(4px);
}
.hero .hero-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 26px 18px;
  background: linear-gradient(to top, rgba(33,36,31,.58), rgba(33,36,31,0));
  color: #FFFFFF;
  text-shadow: 0 1px 10px rgba(33,36,31,.45);
}
.hero .hero-cap h1 {
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 500;
  color: #FFFFFF; margin: 0; line-height: 1.08;
}
.hero .hero-cap p {
  margin: 5px 0 0; font-size: 14.5px;
  font-family: Karla, sans-serif; color: rgba(255,255,255,.94);
}
.screen[hidden] { display: none; }

.page-head { margin-bottom: 24px; max-width: 44rem; }
.page-head h1 { font-size: clamp(28px, 3.6vw, 36px); line-height: 1.1; margin-top: 6px; }
.page-head p.sub { color: var(--ink-2); margin: 9px 0 0; font-size: 16px; }
#screen-board .page-head { margin-bottom: 16px; }

/* ---------------- design notes ---------------- */
.note { display: none; }
body.notes-on .note {
  display: block;
  border-left: 2px solid var(--border-2);
  color: var(--muted); padding: 2px 0 2px 14px;
  font-size: 13.5px; line-height: 1.5; margin: 16px 0; max-width: 46rem;
}
.note b { color: var(--ink-2); font-weight: 700; }

/* ---------------- glance bar ---------------- */
.glance {
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 34px;
}
.glance > div { padding: 11px 26px 11px 0; margin-right: 26px; border-right: 1px solid var(--border); }
.glance > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.glance .v { font-family: Newsreader, Georgia, serif; font-size: 34px; font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
.glance .v.hot { color: var(--alert); }
.glance .l { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------------- community pulse ---------------- */
/* small side pulse, lives at the bottom of the classroom column */
.pulse-mini {
  display: flex; align-items: center; gap: 11px;
  margin-top: 16px; padding: 11px 14px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: var(--r-md);
  font-size: 13px; color: var(--ink-2);
}
.pulse-mini svg { flex: none; }
.pulse-mini b { color: var(--accent-ink); }
.pulse-mini .pbar { flex: 0 0 54px; height: 4px; background: color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 999px; overflow: hidden; margin-left: auto; }
.pulse-mini .pbar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* slimmer thank-you when it sits inside a column */
.board-cols .thanks-strip { margin: 22px 0 0; padding: 18px 20px 14px; }
.board-cols .thanks-strip .q { font-size: 16px; }

.pulse {
  display: flex; align-items: center; gap: 13px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: var(--r-md); padding: 10px 16px;
  margin: 0 0 20px; font-size: 14px; color: var(--ink-2);
}
.pulse.low { background: var(--alert-soft); border-color: color-mix(in srgb, var(--alert) 25%, transparent); }
.pulse svg { flex: none; }
.pulse b { color: var(--accent-ink); }
.pulse.low b { color: var(--alert); }
.pulse .pbar { flex: 0 0 84px; height: 5px; background: color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 999px; overflow: hidden; margin-left: auto; }
.pulse .pbar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* ---------------- thank-you strip ---------------- */
.thanks-strip {
  margin: 46px 0 6px; padding: 22px 24px 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow); max-width: 830px;
  position: relative;
}
.thanks-strip::before {
  content: "\201C"; position: absolute; top: 2px; left: 16px;
  font-family: Newsreader, Georgia, serif; font-size: 54px; line-height: 1;
  color: color-mix(in srgb, var(--accent) 30%, transparent);
}
.thanks-strip .q { font-family: Newsreader, Georgia, serif; font-style: italic; font-size: 18.5px; line-height: 1.45; margin: 0 0 8px; padding-left: 22px; }
.thanks-strip .who { padding-left: 22px; font-size: 12.5px; color: var(--faint); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.linklike {
  font-family: inherit; font-size: 13px; font-weight: 700;
  background: none; border: 0; color: var(--accent-ink);
  cursor: pointer; padding: 0; text-transform: none; letter-spacing: 0;
}
.linklike:hover { text-decoration: underline; }

/* ---------------- filters ---------------- */
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 6px; }
.chip {
  font-family: inherit; font-size: 13px; font-weight: 600;
  background: transparent; color: var(--muted);
  border: 1px solid transparent; border-radius: 999px;
  padding: 6px 13px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { background: var(--surface-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 34%, transparent); }

/* ---------------- opportunity rows ---------------- */
.group { margin-top: 38px; }
.group:first-of-type { margin-top: 24px; }
.group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.group-head h3 { font-size: 22px; }
.group-head span { font-size: 13px; color: var(--faint); }
.gh-ico {
  width: 34px; height: 34px; flex: none; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.opps { display: flex; flex-direction: column; max-width: 830px; }
#oppList .group-head { max-width: 830px; }

.opp {
  display: grid; grid-template-columns: 58px 1fr 106px 12px;
  gap: 20px; align-items: center;
  width: 100%; text-align: left; font: inherit; color: inherit;
  background: transparent; border: 0;
  border-bottom: 1px solid var(--border);
  padding: 16px 12px 16px 8px; cursor: pointer;
  border-radius: var(--r-md);
  transition: background .13s;
}
.opp:hover { background: var(--surface); box-shadow: var(--shadow); }

.dt { text-align: center; line-height: 1.15; }
.dt .m { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); display: block; }
.dt .d { font-family: Newsreader, Georgia, serif; font-size: 27px; font-weight: 600; display: block; letter-spacing: -.02em; }
.dt .w { font-size: 11px; color: var(--muted); font-weight: 600; display: block; }
.dt.rep .d { font-size: 17px; padding: 3px 0; }

.opp-body { min-width: 0; }
.opp-title { font-family: Newsreader, Georgia, serif; font-size: 20px; font-weight: 600; line-height: 1.25; }
.opp-meta { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.opp-meta b { color: var(--ink-2); font-weight: 600; }

.gap { text-align: right; }
.gap .n { font-family: Newsreader, Georgia, serif; font-size: 27px; font-weight: 600; line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.gap.hot .n { color: var(--alert); }
.gap .l { font-size: 11.5px; color: var(--muted); margin-top: 1px; line-height: 1.25; }
.gap .bar { height: 3px; background: var(--sunk); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.gap .bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .35s ease; }
.gap.done .n { color: var(--accent); font-size: 22px; }

.chev {
  width: 8px; height: 8px; justify-self: end;
  border-right: 1.8px solid var(--faint); border-bottom: 1.8px solid var(--faint);
  transform: rotate(-45deg);
}
.opp:hover .chev, .ocard:hover .chev { border-color: var(--accent); }

.flagline { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--accent-ink); margin-top: 5px; }
.flagline svg { flex: none; }

/* ---------------- cards, for the not-urgent groups ---------------- */
.cardgrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 12px; max-width: 830px; margin-top: 14px;
}
.ocard {
  display: flex; flex-direction: column; gap: 6px;
  text-align: left; font: inherit; color: inherit;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 15px 16px 13px; cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color .14s, transform .12s, box-shadow .14s;
}
.ocard:hover { border-color: var(--border-2); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.ocard .when { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.ocard h4 { font-family: Newsreader, Georgia, serif; font-size: 18.5px; font-weight: 600; line-height: 1.24; margin: 0; }
.ocard .meta { font-size: 13px; color: var(--muted); line-height: 1.4; }
.ocard .foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border);
}
.ocard .foot .n { font-family: Newsreader, Georgia, serif; font-size: 21px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.ocard .foot .n small { font-family: Karla, sans-serif; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 5px; }
.ocard .foot .bar { flex: 0 0 52px; height: 3px; background: var(--sunk); border-radius: 999px; overflow: hidden; margin-left: auto; }
.ocard .foot .bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.ocard .foot .chev { align-self: center; }
.ocard .foot.done { color: var(--accent); }
.ocard .flagline { margin-top: 0; }

.showmore {
  font-family: inherit; font-size: 13.5px; font-weight: 700;
  background: none; border: 0; color: var(--accent-ink);
  padding: 14px 2px 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
}
.showmore:hover { text-decoration: underline; }
.showmore::after {
  content: ""; width: 6px; height: 6px; flex: none;
  border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg) translate(-2px,-2px);
}
.showmore.open::after { transform: rotate(225deg) translate(-1px,-1px); }

.classnote { max-width: 640px; margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* each class gets its own tinted panel */
.classcard {
  border: 1px solid var(--cc-border, var(--border));
  background: var(--cc-soft, var(--surface));
  border-radius: var(--r-lg);
  padding: 13px 16px 5px;
  margin-top: 14px;
}
.classhead { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; }
.classhead .cico {
  width: 28px; height: 28px; flex: none; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--surface); color: var(--cc, var(--accent-ink));
  border: 1px solid var(--cc-border, var(--border));
}
.classhead h4 { font-family: Newsreader, Georgia, serif; font-size: 18px; font-weight: 600; margin: 0; color: var(--cc, var(--ink)); }
.classhead span { font-size: 12.5px; color: var(--muted); }
.classcard .crow2:last-child { border-bottom: 0; }
.classcard .crow2:hover { background: var(--surface); }

/* main column + classroom rail */
.board-cols { display: grid; grid-template-columns: minmax(0,1fr) 318px; gap: 48px; align-items: start; }
.board-cols .group { margin-top: 24px; }
@media (max-width: 900px) { .board-cols { grid-template-columns: 1fr; gap: 8px; } }

/* the rail: same information, half the voice */
.rail-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted); margin: 8px 0 0;
}
.rail-head svg { color: var(--accent-ink); flex: none; }
.rail .classnote { font-size: 12.5px; margin-top: 3px; }
.rail .classcard { padding: 10px 13px 3px; margin-top: 12px; border-radius: var(--r-md); }
.rail .classhead { gap: 8px; margin-bottom: 2px; }
.rail .classhead .cico { width: 23px; height: 23px; }
.rail .classhead h4 { font-size: 15.5px; }
.rail .classhead span { font-size: 11.5px; }
.rail .crow2 { padding: 8px 2px 8px 2px; gap: 10px; grid-template-columns: 1fr auto 8px; }
.rail .crow2 .ti { font-size: 15px; }
.rail .crow2 .m { font-size: 11.5px; }
.rail .crow2 .gap2 .g { font-size: 17px; }
.rail .crow2 .gap2 .gl { font-size: 9.5px; }
.rail .pulse-mini { font-size: 12px; padding: 9px 12px; gap: 9px; }
.rail .pulse-mini .pbar { flex-basis: 44px; }

/* compact classroom rows */
.crow2 {
  display: grid; grid-template-columns: 1fr auto 10px; gap: 14px; align-items: center;
  width: 100%; text-align: left; font: inherit; color: inherit;
  background: transparent; border: 0; border-bottom: 1px solid var(--border);
  padding: 11px 6px 11px 4px; cursor: pointer; border-radius: var(--r-sm);
  transition: background .13s;
}
.crow2:hover { background: var(--surface); box-shadow: var(--shadow); }
.crow2 .ti { font-family: Newsreader, Georgia, serif; font-size: 17.5px; font-weight: 600; line-height: 1.25; display: block; }
.crow2 .m { font-size: 12.5px; color: var(--muted); display: block; margin-top: 1px; }
.crow2 .in { color: var(--accent-ink); font-weight: 700; }
.crow2 .gap2 { text-align: right; }
.crow2 .gap2 .g { font-family: Newsreader, Georgia, serif; font-size: 20px; font-weight: 600; line-height: 1; display: block; }
.crow2 .gap2 .g.ok { color: var(--accent); }
.crow2 .gap2 .gl { font-size: 10.5px; color: var(--muted); display: block; margin-top: 1px; }

/* ---------------- sheet ---------------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(20,22,18,.42); opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(455px, 100%); background: var(--surface);
  border-left: 1px solid var(--border); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.22,.8,.3,1); overflow-y: auto;
}
.sheet.open { transform: none; }
.sheet-in { padding: 26px 28px 44px; }
.sheet-close {
  position: absolute; top: 16px; right: 18px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  width: 30px; height: 30px; border-radius: 999px; cursor: pointer; font-size: 16px; line-height: 1;
}
.sheet h2 { font-size: 27px; line-height: 1.14; margin: 7px 0 14px; }

.tagrow { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--border);
}

.bigfill { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 16px 0; margin: 20px 0; }
.bigfill .row { display: flex; align-items: baseline; justify-content: space-between; }
.bigfill .lead { font-family: Newsreader, Georgia, serif; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.bigfill .side { font-size: 13px; color: var(--muted); }
.bigfill .bar { height: 6px; background: var(--sunk); border-radius: 999px; overflow: hidden; margin-top: 11px; }
.bigfill .bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

.kv { display: grid; grid-template-columns: 74px 1fr; gap: 8px 16px; margin: 0 0 20px; font-size: 14.5px; }
.kv dt { color: var(--faint); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding-top: 4px; }
.kv dd { margin: 0; }
.sheet p.desc { color: var(--ink-2); font-size: 15px; }

.btn {
  font-family: inherit; font-size: 15px; font-weight: 700;
  background: var(--accent); color: var(--on-accent);
  border: 1px solid var(--accent); border-radius: var(--r-md);
  padding: 12px 20px; cursor: pointer; width: 100%; transition: filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink-2); border-color: var(--border-2); }
.btn.ghost:hover { background: var(--surface-2); filter: none; }

.roster { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.av {
  width: 29px; height: 29px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: 10.5px; font-weight: 700;
}
.av.you { background: var(--accent-soft); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 34%, transparent); }

.confirm {
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 18px;
}
.confirm strong { display: block; font-family: Newsreader, Georgia, serif; font-size: 19px; font-weight: 600; color: var(--accent-ink); }
.confirm p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); }

/* ---------------- generic blocks ---------------- */
.sec { margin-top: 52px; }
.sec-head { max-width: 42rem; margin-bottom: 18px; }
.sec-head h2 { font-size: 26px; line-height: 1.2; }
.sec-head p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); }

details.drill { border-top: 1px solid var(--border); margin-top: 6px; }
details.drill > summary {
  cursor: pointer; list-style: none; padding: 13px 2px;
  font-size: 13.5px; font-weight: 700; color: var(--ink-2);
  display: flex; align-items: center; gap: 8px;
}
details.drill > summary::-webkit-details-marker { display: none; }
details.drill > summary::before {
  content: ""; width: 7px; height: 7px; flex: none;
  border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted);
  transform: rotate(45deg) translate(-2px,-2px); transition: transform .18s;
}
details.drill[open] > summary::before { transform: rotate(225deg) translate(-1px,-1px); }
details.drill > summary:hover { color: var(--ink); }
.drill-body { padding: 4px 0 22px; }

/* headline finding */
.finding-wrap { display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 50px; align-items: center; }
.finding { max-width: 44rem; }
.finding .big {
  font-family: Newsreader, Georgia, serif; font-size: clamp(22px, 2.9vw, 30px);
  font-weight: 500; line-height: 1.28; letter-spacing: -.015em;
}
.finding .big em { font-style: normal; color: var(--alert); }
.finding .big u { text-decoration: none; color: var(--accent-ink); }
.finding p { color: var(--muted); font-size: 14.5px; margin: 10px 0 0; }

/* mini supporting visuals */
.mini .cap { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; }
.minibars { display: flex; align-items: flex-end; gap: 7px; height: 74px; }
.minibars > span { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.minibars i { display: block; background: var(--border-2); border-radius: 2px 2px 0 0; }
.minibars i.hi { background: var(--alert); }
.minilabels { display: flex; gap: 7px; margin-top: 7px; }
.minilabels > span { flex: 1; text-align: center; font-size: 10.5px; color: var(--faint); font-weight: 600; }
.minilabels > span.hi { color: var(--alert); }

.cmp { display: grid; grid-template-columns: 1fr 40px; gap: 10px; align-items: center; margin-bottom: 14px; }
.cmp .k { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: -6px; }
.cmp .t { height: 9px; background: var(--sunk); border-radius: 999px; overflow: hidden; }
.cmp .t i { display: block; height: 100%; background: var(--border-2); border-radius: 999px; }
.cmp .t i.hi { background: var(--alert); }
.cmp .v { text-align: right; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* progress hero */
.hero-goal { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 26px 0; }
.hero-goal .n { font-family: Newsreader, Georgia, serif; font-size: clamp(44px, 7vw, 66px); font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.goalbar { height: 10px; background: var(--sunk); border-radius: 999px; overflow: hidden; margin: 20px 0 9px; }
.goalbar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.goalscale { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }

/* simple stat row */
.statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 28px; }
.statrow .v { font-family: Newsreader, Georgia, serif; font-size: 36px; font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
.statrow .l { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.statrow .d { font-size: 12.5px; font-weight: 700; color: var(--accent-ink); margin-top: 5px; }
.statrow .d.warn { color: var(--alert); }

/* class list */
.classlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 4px 34px; }
.crow { display: grid; grid-template-columns: 118px 1fr 40px; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.crow .cn { font-weight: 700; }
.crow .track { height: 7px; background: var(--sunk); border-radius: 999px; overflow: hidden; }
.crow .track i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.crow .p { text-align: right; font-variant-numeric: tabular-nums; font-size: 13.5px; color: var(--ink-2); font-weight: 700; }

/* badges */
.badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 2px 34px; }
.bdg { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--border); }
.bdg .ico { align-self: center; }
.bdg h4 { font-family: Newsreader, Georgia, serif; font-size: 17px; font-weight: 600; margin: 0; }
.bdg p { margin: 1px 0 0; font-size: 13px; color: var(--muted); }
.bdg .cnt { font-size: 12.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }

.thanks { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 26px; }
.quote p { margin: 0 0 9px; font-family: Newsreader, Georgia, serif; font-size: 17px; font-style: italic; line-height: 1.44; }
.quote cite { font-style: normal; font-size: 12.5px; color: var(--faint); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* faculty */
.two-pane { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.field { margin-bottom: 17px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 10px 12px;
}
.field textarea { resize: vertical; min-height: 78px; }
.tmpl { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.tmpl .chip { border: 1px solid var(--border-2); background: var(--surface); }

.preview-shell { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 6px 14px; }
.preview-shell .opp { cursor: default; grid-template-columns: 52px 1fr 96px; gap: 14px; border-bottom: 0; }
.preview-shell .opp:hover { background: transparent; box-shadow: none; }

.comms { list-style: none; margin: 0; padding: 0; }
.comms li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.comms li:last-child { border-bottom: 0; }
.comms b { display: block; }
.comms span { color: var(--muted); font-size: 13px; }
.dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); margin: 8px auto 0; }

/* chart */
.chart-wrap { overflow-x: auto; }
.chart { display: flex; align-items: flex-end; gap: 16px; min-width: 440px; height: 210px; }
.col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; padding-top: 24px; position: relative; }
.stackbar { display: flex; flex-direction: column-reverse; gap: 2px; width: 100%; }
.stackbar i { display: block; width: 100%; }
.stackbar i:first-child { border-radius: 0 0 3px 3px; }
.stackbar i:last-child { border-radius: 3px 3px 0 0; }
.col .total { position: absolute; top: 0; left: 0; right: 0; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.col .xl { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 8px; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 16px; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th, table.data td { text-align: right; padding: 7px 10px; border-bottom: 1px solid var(--border); }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
table.data td { font-variant-numeric: tabular-nums; }

.loadrow { display: grid; grid-template-columns: minmax(140px, 230px) minmax(0,1fr) 46px; gap: 18px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; max-width: 46rem; }
.loadrow .track { height: 6px; background: var(--sunk); border-radius: 999px; overflow: hidden; }
.loadrow .track i { display: block; height: 100%; border-radius: 999px; }
.loadrow .pct { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }

/* ---------------- the family's year (my sign-ups) ---------------- */
.yearcard {
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  gap: 26px 56px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 26px 30px; max-width: 830px;
}
.yc-line { font-family: Newsreader, Georgia, serif; font-size: 23px; font-weight: 500; margin: 8px 0 0; line-height: 1.3; letter-spacing: -.01em; }
.yc-line .big { font-size: 30px; font-weight: 600; color: var(--accent-ink); }
.yc-sub { margin: 10px 0 0; font-size: 12.5px; color: var(--faint); }

.seasons { display: flex; align-items: flex-start; gap: 0; }
.season { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 86px; position: relative; }
.season .disc {
  width: 56px; height: 56px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink);
  border: 1.5px solid color-mix(in srgb, var(--accent) 38%, transparent);
}
.season.todo .disc { background: transparent; color: var(--faint); border: 1.5px dashed var(--border-2); }
.season .nm { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.season.todo .nm { color: var(--faint); font-weight: 600; }
.season .st { font-size: 10.5px; color: var(--accent-ink); font-weight: 700; }
.season.todo .st { color: var(--faint); font-weight: 600; }
.season + .season::before {
  content: ""; position: absolute; top: 28px; right: calc(100% - 15px);
  width: calc(100% - 56px); height: 0;
  border-top: 2px dotted var(--border-2);
}
.seasons-cap { text-align: center; font-size: 12px; color: var(--muted); margin: 10px 0 0; }

@media (max-width: 760px) {
  .yearcard { grid-template-columns: 1fr; gap: 18px; }
  .seasons { justify-content: center; }
}

.footnote { margin-top: 64px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--faint); max-width: 62ch; }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 18px);
  background: var(--ink); color: var(--bg);
  padding: 11px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 80;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 820px) {
  .two-pane { grid-template-columns: 1fr; gap: 34px; }
  .finding-wrap { grid-template-columns: 1fr; gap: 26px; }
  .finding-wrap .mini { max-width: 300px; }
  .glance > div { padding-right: 18px; margin-right: 18px; }
}
@media (max-width: 560px) {
  main { padding-top: 30px; }
  .opp { grid-template-columns: 48px 1fr 84px; gap: 13px; padding-left: 2px; }
  .opp .chev { display: none; }
  .opp-title { font-size: 18px; }
  .mark-sub { display: none; }
  .tabs { top: 53px; }
  .glance > div { padding: 12px 16px 12px 0; margin-right: 16px; }
  .glance .v { font-size: 27px; }
  .loadrow { grid-template-columns: 1fr 78px 38px; gap: 11px; font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ============================================================
   App additions (not in the mockup): auth, forms, htmx states
   ============================================================ */

/* topbar user area */
.who-in { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.who-in b { color: var(--ink-2); font-weight: 700; }

/* auth screens */
.auth-wrap { max-width: 420px; margin: 48px auto 0; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 30px 32px 26px; }
.auth-card h1 { font-size: 27px; margin: 4px 0 8px; }
.auth-card p.sub { color: var(--ink-2); font-size: 14.5px; margin: 0 0 18px; }
.auth-card .field input { font-size: 16px; }
.auth-aside { margin-top: 16px; font-size: 12.5px; color: var(--muted); }
.debug-links { margin-top: 22px; padding: 14px 16px; background: var(--surface-2); border: 1px dashed var(--border-2); border-radius: var(--r-md); font-size: 13px; }
.debug-links a { color: var(--accent-ink); font-weight: 700; word-break: break-all; }
.debug-links .cap { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 0 0 6px; }

.errorlist { color: var(--alert); font-size: 13.5px; list-style: none; margin: 6px 0 0; padding: 0; }

/* follow-up page */
.followup-wrap { max-width: 520px; margin: 40px auto 0; }
.big-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.big-choice .btn { padding: 18px 20px; font-size: 17px; }
.hours-line { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-size: 15px; }
.hours-line input { width: 76px; font-family: inherit; font-size: 16px; text-align: center; border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 8px; background: var(--surface); color: var(--ink); }

/* checkbox rows */
.checkline { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); margin: 10px 0 0; }
.checkline input { margin-top: 3px; accent-color: var(--accent); }

/* htmx request indicator: quiet, on the sheet */
.htmx-request .btn { opacity: .6; pointer-events: none; }

/* select control to match inputs */
.field select { width: 100%; font-family: inherit; font-size: 15px; background: var(--surface); color: var(--ink); border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 10px 12px; }

/* slot picker on rotation sheets */
.slotlist { display: flex; flex-direction: column; margin: 4px 0 0; }
.slotrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--border); font-size: 14px; }
.slotrow:last-child { border-bottom: 0; }
.slotrow .taken { color: var(--muted); }
.slotrow .yours { color: var(--accent-ink); font-weight: 700; }
.slotrow button { font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.slotrow button:hover { filter: brightness(.97); }

/* digest preview frame */
.digest-frame { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px 30px; max-width: 640px; font-size: 15px; }
.digest-frame pre { white-space: pre-wrap; font-family: inherit; margin: 0; }

/* outbox table rows */
.outbox { max-width: 830px; }
