:root{
  /* --muted and --green-mid are darker than they look like they need to be,
     and deliberately so. At #6C7A72 the muted grey scored 4.12:1 on paper and
     exactly 4.50 on a white card — under, and on, the WCAG AA floor for normal
     text. It carries .lede, .note, .pv and every table heading, so it is most
     of the reading on a data screen. #5B7563 on the pale green of the support
     panel scored 4.27, on the block that prints helpline numbers beneath a
     question about violence. Both measured in the browser, not estimated.
     Check any replacement against BOTH --paper and --card. */
  --green:#2C5544; --green-mid:#4C6454; --green-pale:#E7EEEA;
  --red:#B43D3B; --red-pale:#F7E8E7;
  --navy:#1F3D7E; --navy-pale:#E8ECF5;
  /* The brief (§4) gives the five robot states five colours, and In Progress
     is yellow. A true yellow scores 1.97:1 on paper — invisible, which is
     why this platform had used navy for both Planned and Submitted. This is
     the darkest amber that still reads amber: 4.59 on paper, 5.02 on card,
     beside red at 5.23 and green at 7.72. */
  --amber:#B45309; --amber-pale:#FBF0E4;
  --teal:#4A9A8E; --paper:#F4F5F4; --card:#fff;
  --ink:#1E2A25; --muted:#647268; --line:#DFE2E0;
  /* The masthead is sticky and the tab strip sticks beneath it, so its height
     is a shared number rather than one repeated by hand in two places. */
  /* Measured, not guessed: the masthead renders 94px at every width from
     390 to 1440. It was 93 here, so the sticky tab strip sat one pixel
     high and a sliver of the page showed through behind it. Re-measure if
     the masthead's contents change height. */
  --mast-h:94px;

  /* A second, quieter hairline. Most borders on a data screen are there to
     separate, not to be seen; the loud one is kept for the few that are. */
  --line-soft:#EDEEED;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'IBM Plex Sans',system-ui,sans-serif;background:var(--paper);color:var(--ink);-webkit-font-smoothing:antialiased}
/* Sentence case, not caps, and 700 rather than 800. Every heading is written
   in sentence case in the markup and was being uppercased here, so dropping
   one declaration converts the whole site without touching a view. Caps at
   this size read as campaign material; the institutional register is carried
   by .eyebrow, which stays exactly as it was. */
.dsp{font-family:'Poppins',sans-serif;font-weight:700;letter-spacing:-.018em;line-height:1.12}
.mono{font-family:'IBM Plex Mono',monospace}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer;border:none;background:none}
:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
::selection{background:var(--green);color:#fff}
img{max-width:100%;display:block}
.wrap{max-width:1140px;margin:0 auto;padding:0 20px}
.wrap-lg{max-width:1280px;margin:0 auto;padding:0 20px}

.t-green{color:var(--green)} .t-red{color:var(--red)} .t-navy{color:var(--navy)}
.t-amber{color:var(--amber)} .t-muted{color:var(--muted)}
.bg-green{background:var(--green-pale)} .bg-red{background:var(--red-pale)}
.bg-navy{background:var(--navy-pale)} .bg-amber{background:var(--amber-pale)}
/* Lightened from #EDF0EE: muted text on it scored 4.41:1, just under AA,
   and this is the tag naming what a media item is. */
.bg-muted{background:#F3F5F3}

.tri{display:flex;height:3px}
.tri i{flex:1}
.tri i:nth-child(1){background:var(--red)}
.tri i:nth-child(2){background:var(--green)}
.tri i:nth-child(3){background:var(--navy)}

header.mast{position:sticky;top:0;z-index:30;background:var(--card);border-bottom:1px solid var(--line-soft)}
.mast-in{display:flex;align-items:center;gap:12px;padding:16px 20px;min-height:calc(var(--mast-h) - 3px)}
.crest{display:flex;align-items:center;gap:12px;min-width:0}
.crest .badge{width:40px;height:40px;border-radius:50%;background:var(--green);color:#fff;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;font-family:'Poppins';font-weight:800;font-size:11px}
.crest .kicker{display:block;font-size:9px;letter-spacing:.18em;text-transform:uppercase;font-weight:600;color:var(--green-mid)}
.crest .title{display:block;font-family:'Poppins';font-weight:700;text-transform:uppercase;font-size:14px;letter-spacing:.01em;line-height:1.15;color:var(--green)}
.crest .title span:last-child{color:var(--navy)}
.mast-right{margin-left:auto;display:flex;align-items:center;gap:12px;flex-shrink:0}
@media(max-width:640px){
  .crest .kicker{display:none}
  .crest .title{font-size:13px;white-space:nowrap}
  .crest .title .lg{display:none}
  .hide-sm{display:none}
  .band{margin-left:-20px;margin-right:-20px}
}

.btn{display:inline-flex;align-items:center;gap:8px;padding:11px 20px;font-size:14px;font-weight:600;
  border-radius:var(--r-pill);background:var(--green);color:#fff;line-height:1.2;
  transition:background .12s ease,border-color .12s ease,color .12s ease}
.btn.sm{padding:7px 14px;font-size:12px}
.btn.out{background:transparent;color:var(--green);border:1px solid var(--line)}
.btn.out:hover{border-color:var(--green);background:var(--green-pale)}
.btn.red{background:var(--red)}
.btn.out.red{background:transparent;color:var(--red);border-color:var(--red)}
.btn.out.grey{color:var(--muted);border-color:var(--line)}
/* A disabled control has to look disabled. The server refuses the action
   either way, but a button that looks live and does nothing reads as a bug. */
.btn[disabled],.btn:disabled{opacity:.4;cursor:not-allowed}
.inline{display:flex;gap:8px}

.card{background:var(--card);border:1px solid var(--line-soft);border-radius:var(--r-lg);padding:20px}
.card.p0{padding:0}
/* An accent edge is a claim on attention, so only cards that are making a
   point carry one — a warning, a section that needs an answer. The stat tiles
   dropped theirs: eight coloured edges competing before the reader reaches a
   figure is not emphasis, it is noise, and it spends the meaning the three
   brand colours are carrying elsewhere. */
.card.acc-green{border-top:2px solid var(--green)}
.card.acc-red{border-top:2px solid var(--red)}
.card.acc-navy{border-top:2px solid var(--navy)}
.card.stat.acc-green,.card.stat.acc-red,.card.stat.acc-navy{border-top:1px solid var(--line-soft)}
@media(min-width:900px){ .card{padding:24px} .card.stat{padding:20px} }
.grid{display:grid;gap:16px}
.g2{grid-template-columns:repeat(2,1fr)}
.g3{grid-template-columns:repeat(3,1fr)}
.g4{grid-template-columns:repeat(4,1fr)}
@media(max-width:900px){.g3,.g4{grid-template-columns:repeat(2,1fr)}.g2{grid-template-columns:1fr}}
@media(max-width:600px){.g3,.g4{grid-template-columns:1fr}}

.eyebrow{display:flex;align-items:center;gap:8px;margin-bottom:12px;font-size:11px;
  letter-spacing:.2em;text-transform:uppercase;font-weight:600;color:var(--green)}
.eyebrow .n{font-family:'IBM Plex Mono';font-size:12px}
.sec{margin-bottom:56px}
/* Section titles. Brought down for the corporate pass — at 2.1rem in
   sentence case they were still the loudest thing on a data screen.
   The second rule exists because `.sec h2` (0,1,1) outranks `.h2-sm` (0,1,0),
   so a heading explicitly asking to be small was being overruled by the
   section default. Anything opting into a named size must win. */
.sec h2{font-size:clamp(1.3rem,2.5vw,1.6rem);margin-bottom:8px}
.sec .h2-sm{font-size:var(--t-lg)}
.sec .h3{font-size:var(--t-md)}
.lede{max-width:600px;color:var(--muted);font-size:15px;margin-bottom:24px;line-height:1.6}
.note{font-size:12px;color:var(--muted);margin-top:12px;line-height:1.6}

/* The green band bleeds past the page edges and is rotated, so on a narrow
   screen its corners pushed the document a few pixels wider than the viewport
   — enough for the whole page to scroll sideways, which is the one thing the
   mobile rules forbid. Clipping the hero contains it; nothing needs to escape
   this section horizontally. */
.hero{background:var(--card);padding-top:48px;overflow-x:hidden}
/* Single column since the progress ring was removed. The copy is held to a
   readable measure rather than stretching the full width of the page. */
.hero-grid{display:grid;grid-template-columns:1fr;gap:40px;align-items:center}
.hero-copy{max-width:760px}
.lockup{font-size:clamp(1.9rem,5.4vw,3.2rem)}
.lockup .a{color:var(--red)} .lockup .b{color:var(--green)} .lockup .c{color:var(--navy)}
.band{background:var(--green);margin:24px 0;padding:12px 20px;border-radius:var(--r-sm);
  display:flex;flex-wrap:wrap;align-items:baseline;gap:16px}
.band .word{font-family:'Poppins';font-weight:700;color:#fff;
  font-size:clamp(1.25rem,3.2vw,1.8rem);letter-spacing:-.01em}
.band .sub{color:#fff;opacity:.9;font-size:14px}
.chips{display:flex;flex-wrap:wrap;gap:10px;padding-bottom:40px}
.chip{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:var(--r-pill);font-size:11px}
.chip.live{background:var(--green-pale);color:var(--green);font-weight:600;letter-spacing:.12em;text-transform:uppercase}
.chip.live .dot{width:6px;height:6px;border-radius:50%;background:var(--green)}
.chip.plain{border:1px solid var(--line);color:var(--muted)}
.hero-cta{padding-bottom:48px}
.rule-teal{height:8px;background:var(--teal)}

.partners{background:var(--card);border-bottom:1px solid var(--line);padding:18px 0}
/* Logos and wordmarks share a row, so both are sized to the same optical
   height rather than one towering over the other. */
.partner-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
  gap:16px 36px;list-style:none;margin:0;padding:0}
.partner-row li{display:flex;align-items:center;min-height:34px}
/* A definite box plus object-fit, not max-height and auto width. Logo SVGs
   commonly ship with a viewBox and no width/height attributes, which leaves
   them with no intrinsic size to resolve `auto` against — they collapse to
   0x0 and the row renders empty. A fixed slot letterboxes any file we are
   handed, SVG or raster, sized or not. */
.partner-row img{height:34px;width:170px;object-fit:contain;object-position:center}
.partner-row span{font-size:11px;letter-spacing:.16em;text-transform:uppercase;
  font-weight:600;color:var(--muted)}
@media(max-width:700px){
  .partner-row{gap:14px 24px}
  .partner-row li{min-height:28px}
  .partner-row img{height:28px;width:130px}
  .partner-row span{font-size:10px;letter-spacing:.12em}
}

/* ---- University strip ----
   Two identical rows travelling left to right; translating by half the track
   puts the second row exactly where the first began, so the loop is seamless.
   CSS only — no JS, nothing to break, and it degrades to a scrollable row. */
.marquee{position:relative;overflow:hidden;background:var(--paper);
  border-bottom:1px solid var(--line);padding:24px 0}
.marquee::before,.marquee::after{content:'';position:absolute;top:0;bottom:0;width:80px;z-index:2;
  pointer-events:none}
.marquee::before{left:0;background:linear-gradient(to right,var(--paper),transparent)}
.marquee::after{right:0;background:linear-gradient(to left,var(--paper),transparent)}
.marquee-track{display:flex;width:max-content;animation:uni-slide 64s linear infinite}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track{animation-play-state:paused}
@keyframes uni-slide{from{transform:translateX(-50%)}to{transform:translateX(0)}}

.marquee-cap{text-align:center;font-size:11px;letter-spacing:.18em;text-transform:uppercase;
  font-weight:600;color:var(--muted);margin-bottom:20px;padding:0 20px}

.uni-row{display:flex;list-style:none;margin:0;padding:0}
/* No card around a logo — an institution's mark sits on the band itself, the
   way it does on the SAUS site. Boxes would fight 26 different lockups. */
.uni{flex:0 0 auto;width:150px;height:56px;margin-right:40px;
  display:grid;place-items:center}
.uni img{max-height:44px;max-width:100%;width:auto;object-fit:contain;
  filter:grayscale(.7);opacity:.85;transition:filter .2s,opacity .2s}
/* The strip already pauses on hover; let the marks come back to full colour
   at the same moment, so stopping to look is rewarded. */
.marquee:hover .uni img,
.marquee:focus-within .uni img{filter:none;opacity:1}
/* Wordmark crest for an institution with no logo file yet. One treatment for
   all of them — the brand colours carry meaning elsewhere, so varying them
   here decoratively would read as a status that is not being reported. */
.uni .wm{display:flex;flex-direction:column;align-items:center;gap:8px}
.uni .wm-code{font-family:'Poppins',sans-serif;font-weight:800;font-size:19px;letter-spacing:.02em;
  text-transform:uppercase;color:var(--green);line-height:1;opacity:.55;transition:opacity .2s}
.uni .wm-rule{display:block;width:24px;height:3px;border-radius:var(--r-xs);background:var(--green);opacity:.25}
/* Match the logos: muted at rest, full strength when the strip is paused. */
.marquee:hover .uni .wm-code,
.marquee:focus-within .uni .wm-code{opacity:1}

/* ---- The twenty-six: map, panel, list ---- */
.map-layout{display:grid;grid-template-columns:1.35fr 1fr;gap:20px;margin-bottom:24px;align-items:start}
@media(max-width:900px){.map-layout{grid-template-columns:1fr}}

.map-card{background:var(--card);border:1px solid var(--line);border-radius:var(--r-md);padding:16px}
/* Capped so the map does not tower over the panel beside it on wide screens. */
.za-map{display:block;width:100%;height:auto;max-height:460px;margin:0 auto}
.map-note{font-size:11px;color:var(--muted);margin-top:8px}
/* The panel follows as you read down a long list of universities. */
@media(min-width:901px){.map-panel{position:sticky;top:96px}}

/* Shaded by how many universities a province holds — never by performance. */
.prov{stroke:var(--card);stroke-width:.6;stroke-linejoin:round}
.prov.s0{fill:#E9EDEA}
.prov.s1{fill:#D3DED7}
.prov.s2{fill:#A9C0B2}
.prov.s3{fill:#6E907C}
.prov.s4{fill:var(--green)}
.lesotho{fill:var(--paper);stroke:var(--card);stroke-width:.6}
.lesotho-lbl{font-family:'IBM Plex Mono',monospace;font-size:2px;fill:var(--muted);
  text-anchor:middle;letter-spacing:.12em}
.prov-lbl{font-family:'IBM Plex Mono',monospace;font-size:2.6px;font-weight:600;
  fill:var(--ink);text-anchor:middle;opacity:.75;pointer-events:none}

/* Radii and stroke widths are in viewBox user units, not pixels — a
   stroke-width of 1 here would be wider than the pin itself. */
.pin{fill:var(--navy);stroke:#fff;stroke-width:.5;cursor:pointer;
  transition:r .12s,fill .12s}
.pin:hover{r:2.3}
/* Chrome paints a heavy default ring around a focused SVG shape, which on a
   pin this small reads as a blob. Suppress it on :focus, not only on
   :focus-visible, and draw our own — keyboard users still get an indicator. */
.pin:focus{outline:none}
.pin:focus-visible{stroke:var(--ink);stroke-width:.7}
.pin.on{fill:var(--red);r:2.4}
@media(max-width:900px){
  /* The map shrinks but fingers do not. Pins grow so they remain tappable;
     the list below stays the dependable route, especially for Gauteng's seven. */
  .pin{r:2.6;stroke-width:.7}
  .pin:hover{r:3.2}
  .pin.on{r:3.4}
}

.map-panel{background:var(--card);border:1px solid var(--line);border-radius:var(--r-md);padding:20px;
  min-height:200px}
.map-panel-empty{font-size:14px;color:var(--muted)}
.mp-name{font-family:'Poppins',sans-serif;font-weight:800;font-size:20px;line-height:1.15;
  text-transform:uppercase;color:var(--green);margin-bottom:4px}
.mp-where{font-size:12px;color:var(--muted);margin-bottom:16px}
.mp-rows{border-top:1px solid var(--line)}
.mp-row{display:flex;justify-content:space-between;gap:16px;padding:10px 0;
  border-bottom:1px solid var(--line);font-size:13px}
.mp-row .k{color:var(--muted)}
.mp-row .v{font-family:'IBM Plex Mono',monospace;text-align:right}
.mp-bio{font-size:13px;line-height:1.65;color:var(--ink);margin-top:16px}
.mp-pending{font-size:12px;color:var(--muted);margin-top:16px;font-style:italic}

/* Visually hidden, but not hidden from assistive technology, and it comes back
   into view the moment anything inside it is focused — so tabbing never lands
   a sighted keyboard user on something invisible. */
.uni-list-sr{position:absolute;width:1px;height:1px;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.uni-list-sr:focus-within{position:static;width:auto;height:auto;overflow:visible;
  clip:auto;clip-path:none;white-space:normal;margin-top:24px}
.uni-list-sr-h{font-size:11px;letter-spacing:.18em;text-transform:uppercase;
  font-weight:600;color:var(--muted);margin-bottom:12px}

.uni-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;
  list-style:none;margin:0;padding:0}
.uni-card{width:100%;text-align:left;font:inherit;color:inherit;
  background:var(--card);border:1px solid var(--line);border-radius:var(--r-md);padding:16px;
  display:flex;flex-direction:column;gap:4px;cursor:pointer;transition:border-color .12s}
.uni-card:hover{border-color:var(--green)}
.uni-card.on{border-color:var(--red);box-shadow:inset 0 0 0 1px var(--red)}
.uni-card .code{font-family:'IBM Plex Mono',monospace;font-size:11px;font-weight:600;
  letter-spacing:.1em;color:var(--green)}
.uni-card .nm{font-size:14px;font-weight:600;line-height:1.3}
.uni-card .pv{font-size:11px;color:var(--muted)}

.closer{text-align:center;padding:48px 0 16px;border-top:1px solid var(--line)}
.closer .lede{margin:8px auto 24px}

@media(prefers-reduced-motion:reduce){
  /* Perpetual motion is a vestibular trigger. Become a plain scrollable row,
     and drop the duplicate so it is not read or scrolled through twice. */
  .marquee{overflow-x:auto}
  .marquee-track{animation:none;width:auto}
  .marquee-track [aria-hidden="true"]{display:none}
  .marquee::before,.marquee::after{display:none}
}

.row{display:flex;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid var(--line)}
.row:first-child{border-top:none}
.row .nm{font-size:14px;font-weight:600;line-height:1.25}
.row .pv{font-size:11px;color:var(--muted);margin-top:2px}
.scrollbox{max-height:420px;overflow-y:auto}
.thumb{width:52px;height:52px;border-radius:var(--r-sm);object-fit:cover;flex-shrink:0;border:1px solid var(--line)}
.thumb.ph{background:var(--green-pale);display:block}

.gl{display:inline-flex;flex-shrink:0;border:1.5px solid currentColor;background:transparent}
.gl.circle{border-radius:50%;background:var(--green-pale)}
.gl.ring{border-radius:50%;border-style:dashed}
.gl.diamond{border-radius:var(--r-xs);transform:rotate(45deg);background:var(--amber-pale)}
.gl.square{border-radius:var(--r-xs);background:var(--red-pale)}
.gl.bar{border:none;height:3px!important;background:currentColor;opacity:.4;align-self:center}
/* Planned: a distinct outline triangle. Navy like Submitted because both are
   "under way", but a different shape so the two never rely on colour alone. */
.gl.triangle{border:none;background:transparent;position:relative}
.gl.triangle::before{content:"";position:absolute;inset:0;
  background:var(--navy-pale);clip-path:polygon(50% 4%,96% 92%,4% 92%)}
.gl.triangle::after{content:"";position:absolute;inset:0;
  background:currentColor;clip-path:polygon(50% 0,100% 100%,0 100%,50% 0,50% 14%,12% 88%,88% 88%,50% 14%)}
.gl.t-green{color:var(--green)} .gl.t-navy{color:var(--navy)}
.gl.t-red{color:var(--red)} .gl.t-amber{color:var(--amber)} .gl.t-muted{color:var(--muted)}
.pill{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:var(--r-pill);
  font-size:11px;font-weight:600;white-space:nowrap}
.tag{font-size:11px;font-weight:600;padding:4px 10px;border-radius:var(--r-sm)}
.legend{padding:2px 0 2px;display:flex;flex-wrap:wrap;gap:8px 20px;font-size:12px;color:var(--muted);margin-bottom:12px}
.legend span{display:flex;align-items:center;gap:6px}

.tabs{position:sticky;top:var(--mast-h);z-index:20;background:var(--paper);padding:12px 0 4px}
/* An anchored section has to clear the sticky masthead and the tab strip
   beneath it, or the jump puts its heading behind them and the reader arrives
   mid-paragraph with nothing to say where they are. One number plus the strip,
   for the same reason --mast-h exists. */
[id]{scroll-margin-top:calc(var(--mast-h) + 72px)}
.tabs > div > div{display:flex;gap:4px;overflow-x:auto;background:var(--card);
  border:1px solid var(--line);border-radius:var(--r-md);padding:4px}
.tab{display:inline-block;padding:9px 16px;font-size:14px;white-space:nowrap;color:var(--muted);
  border-radius:var(--r-xs)}
.tab:hover{color:var(--ink);background:var(--paper)}
.tab.on{color:#fff;font-weight:600;background:var(--green)}

.stat .lbl{font-size:10px;letter-spacing:.14em;text-transform:uppercase;font-weight:600;color:var(--muted);margin-bottom:10px}
.stat .val{font-family:'Poppins';font-weight:800;font-size:2.35rem;line-height:1;letter-spacing:-.02em}
.stat .sub{font-size:12px;color:var(--muted);margin-top:10px;line-height:1.5}

/* The three figures anybody acts on. Tighter than a general stat card: they
   sit directly above the grid, and every pixel here is a row of the table
   nobody can see. The figure stays the largest thing on the screen. */
@media(min-width:900px){
  .card.stat.stat-lead{padding:18px 20px}
}
.stat-lead .val{font-size:2rem}
.stat-lead .lbl{margin-bottom:6px}
.stat-lead .sub{margin-top:8px;line-height:1.45}

/* Five counts as one card rather than five.
   The hairlines between them are the 1px grid gap showing the card's own
   border colour through, which is the one technique that keeps them correct
   however the items wrap — a border-left would leave a stray rule at the start
   of every wrapped row. */
.stat-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:1px;padding:0;
  background:var(--line-soft);overflow:hidden}
.stat-strip-item{background:var(--card);padding:var(--s3) var(--s4)}
.ss-val{font-family:'Poppins';font-weight:800;font-size:1.45rem;line-height:1;letter-spacing:-.02em;
  font-variant-numeric:tabular-nums}
.ss-lbl{font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:600;
  color:var(--ink);margin-top:var(--s1)}
.ss-sub{font-size:11px;color:var(--muted);margin-top:1px;line-height:1.35}
@media(max-width:900px){.stat-strip{grid-template-columns:repeat(3,1fr)}}
@media(max-width:520px){
  .stat-strip{grid-template-columns:repeat(2,1fr)}
  .stat-strip-item{padding:var(--s3)}
  .ss-val{font-size:1.35rem}
  /* The explanatory line is the first thing to go on a phone: the figure and
     its label say enough, and five of these are a screenful on their own. */
  .ss-sub{display:none}
}

.toolbar{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:12px;align-items:center}
.search{display:flex;align-items:center;gap:8px;padding:9px 14px;border:1px solid var(--line);
  border-radius:var(--r-sm);background:var(--card);flex:1;min-width:200px}
.search input{border:none;background:none;outline:none;width:100%;font-size:14px}
.field{width:100%;padding:11px 14px;border:1px solid var(--line);border-radius:var(--r-md);
  background:var(--card);font-size:14px}
.field:focus{border-color:var(--green);outline:none;box-shadow:0 0 0 3px var(--green-pale)}
.lbl-sm{display:block;font-size:10px;letter-spacing:.14em;text-transform:uppercase;font-weight:600;color:var(--muted);margin-bottom:6px}

.tbl-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:14px;min-width:880px}
thead tr{background:var(--card);border-bottom:1px solid var(--line)}
th{padding:14px 12px;font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:600;
  color:var(--muted);text-align:center}
th.l{text-align:left} th.r{text-align:right}
th .due{font-weight:400;font-size:9px;opacity:.7;text-transform:none;letter-spacing:0}
tbody tr{border-top:1px solid var(--line-soft)}
tbody tr:hover{background:var(--paper)}
td{padding:14px 12px;text-align:center}
/* Figures line up column-wise whatever digits they contain. */
td.r,td.c-fig,td.c-rate,th.r{font-variant-numeric:tabular-nums}
td.l{text-align:left} td.r{text-align:right;font-family:'IBM Plex Mono'}
.code{font-weight:700}

/* ---- The national grid, on a screen wide enough for a table ----
   Below 701px each row becomes a card and none of this applies. */
@media(min-width:701px){
  /* Fixed layout, or the name column absorbs every spare pixel and pushes the
     seven glyphs into the middle of the row — leaving the eye to travel from a
     university to its figures across empty paper. The percentages total 100,
     so the columns are what they say they are. */
  .grid-table{table-layout:fixed}
  .grid-table th.l,.grid-table td.c-name{width:24%}
  .grid-table th.r,.grid-table td.c-fig,.grid-table td.c-rate{width:9%}
  .grid-table td.c-act{padding-left:var(--s2);padding-right:var(--s2)}

  /* The activity columns were as wide as their HEADINGS, not their contents:
     "Campaign period" set a column around a 14px glyph. Let it wrap. */
  .grid-table th{padding-left:var(--s2);padding-right:var(--s2)}
  .grid-table th .due{display:block;white-space:normal;line-height:1.25;
    max-width:70px;margin-inline:auto}

  /* One hairline between the effort columns and the outcome columns, so the
     row reads as two groups rather than eleven things. Written as "every
     figure column, minus the ones that follow another" rather than an
     nth-child, because the number of activities is data and has changed
     before. */
  .grid-table th.r,.grid-table td.c-fig,.grid-table td.c-rate{
    border-left:1px solid var(--line-soft)}
  .grid-table th.r + th.r,
  .grid-table td.c-fig + td.c-fig,
  .grid-table td.c-fig + td.c-rate{border-left:none}
}

.upload-form{padding:0 20px 20px}
.linkbox{margin-top:20px;padding:20px;border-radius:var(--r-md);background:var(--green-pale);border:1px solid rgba(44,85,68,.2)}
.linkbox .lb-head{font-weight:700;font-size:14px;color:var(--green);margin-bottom:8px}
.linkbox .lb-url{font-size:14px;font-weight:600;color:var(--green);margin-bottom:8px;word-break:break-all}
/* The link and its QR sit side by side, and stack on a phone — where the code
   is still wanted, because that is the screen an SRC has with them. */
/* Centred, not top-aligned: the QR column is taller than the text beside it,
   and aligning to the top left a band of empty card between the note and the
   refresh stamp. */
.lb-body{display:flex;gap:var(--s5);align-items:center;flex-wrap:wrap}
.lb-qr{margin:0;display:flex;flex-direction:column;align-items:center;gap:var(--s2);flex:0 0 auto}
.lb-qr img{width:128px;height:128px;image-rendering:pixelated;background:#fff;
  border:1px solid rgba(44,85,68,.2);border-radius:var(--r-sm);padding:var(--s2)}
.empty{padding:40px 20px;text-align:center;font-size:14px;color:var(--muted)}
.bar{height:6px;border-radius:var(--r-pill);background:var(--green-pale)}
.bar i{display:block;height:6px;border-radius:var(--r-pill);background:var(--green)}
.bar.n{background:var(--navy-pale)} .bar.n i{background:var(--navy)}

.flash{padding:12px 0;font-size:14px;font-weight:600}
.flash.success{background:var(--green-pale);color:var(--green)}
.flash.error{background:var(--red-pale);color:var(--red)}
.flash.info{background:var(--navy-pale);color:var(--navy)}

/* The SITE footer only — a direct child of body. As a bare `footer` selector
   this also caught the weekly report's own <footer class="rep-foot note">,
   painting it dark green while `.note` (0,1,0) beat `footer` (0,0,1) for the
   colour. The result was muted grey on dark green at 1.67:1: the line naming
   the report as institution-level only, effectively unreadable, in the
   document SAUS circulates to Higher Health and NSFAS. */
body > footer{background:var(--green);color:#fff;margin-top:auto}
body > footer .tri i:nth-child(1){background:var(--red)}
body > footer .tri i:nth-child(2){background:var(--navy)}
body > footer .in{padding:32px 20px;text-align:center}
body > footer .slog{font-family:'Poppins';font-weight:700;font-size:17px;letter-spacing:-.01em;margin-bottom:4px}
body > footer .s1{font-size:12px;opacity:.8;margin-bottom:12px}
body > footer .s2{font-size:11px;letter-spacing:.16em;text-transform:uppercase;opacity:.7}
body > footer .s3{font-size:11px;opacity:.6;margin-top:16px;max-width:420px;margin-inline:auto}
.f-legal{display:flex;justify-content:center;gap:var(--s2);opacity:.85}
.f-legal a{text-decoration:underline;text-underline-offset:2px}

/* ---- Privacy notice and terms ----
   Long-form prose, which nothing else on this platform is. Held to a reading
   measure and given a paragraph rhythm the data screens do not need. */
.lg-p{font-size:var(--t-md);line-height:1.7;color:var(--ink);margin-bottom:var(--s3);max-width:62ch}
.lg-gaps{margin:var(--s3) 0 0;padding-left:var(--s5);max-width:62ch}
.lg-gaps li{font-size:var(--t-md);line-height:1.7;margin-bottom:var(--s2)}

/* ---- QR sheet ---- */
.qr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;
  margin:16px 0}
.qr-card{margin:0;background:var(--card);border:1px solid var(--line);border-radius:var(--r-md);
  padding:16px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.qr-card img{width:160px;height:160px;image-rendering:pixelated}
.qr-card figcaption{display:flex;flex-direction:column;align-items:center;gap:4px}
.qr-card .nm{font-size:13px;font-weight:600;line-height:1.3}
.qr-card .pv{font-size:11px;color:var(--muted)}

/* =================================================================
   Mobile-first pass
   Targets, measured at 390px: no page-level horizontal overflow on
   any screen, and no tap target under 44px on a touch device.
   ================================================================= */

:root{
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px; --s7:48px;
  --tap:44px;
  --r-sm:8px; --r-md:10px; --r-lg:14px;
}

/* ---- Touch ergonomics ----
   Keyed to the pointer, not the viewport: a narrow window on a laptop keeps
   compact controls, and a large tablet still gets finger-sized ones. */
@media (pointer: coarse){
  .btn,.btn.sm{min-height:var(--tap);padding-inline:var(--s4)}
  .field,select.field,input.field{min-height:var(--tap)}
  .search{min-height:var(--tap)}
  .tab{padding:var(--s3) var(--s4);min-height:var(--tap);display:inline-flex;align-items:center}
  .uni-card{min-height:var(--tap)}
  /* Links sitting in running text are exempt — padding them out would wreck
     the paragraph. This targets standalone controls only. */
}

/* ---- Mobile chrome ----
   The masthead and the tab strip were both sticky, costing ~120px of a phone
   screen before any content. Keep the masthead, release the tabs. */
@media (max-width: 700px){
  .mast-in{padding:var(--s2) var(--s4)}
  .crest .badge{width:32px;height:32px;font-size:10px}
  .tabs{position:static}
  .wrap,.wrap-lg{padding-inline:var(--s4)}
  .sec{margin-bottom:var(--s6)}
  /* Every page keeps its gutter on a phone; the grid cards carry their own
     full-width treatment below, so nothing needs main to lose its padding. */
  main{padding-inline:var(--s4)}
  .card{padding:var(--s4)}
  h2.dsp{font-size:1.35rem}
}

/* ---- National grid becomes cards ----
   Same markup, same single source of truth. The row turns into a flex card;
   the two break cells provide the line breaks a table row cannot otherwise
   express. */
.c-break{display:none}

@media (max-width: 700px){
  .tbl-wrap{overflow-x:visible}
  .grid-table{min-width:0;width:100%;display:block}
  .grid-table thead{display:none}
  .grid-table tbody{display:block}

  .grid-table tr{
    display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2) var(--s3);
    border:1px solid var(--line);border-radius:var(--r-md);
    padding:var(--s4);margin-bottom:var(--s2);background:var(--card)
  }
  .grid-table tr:hover{background:var(--card)}
  .grid-table td{display:block;padding:0;border:none;text-align:left}

  .grid-table .c-name{flex:1 1 auto;min-width:0}
  .grid-table .c-name .code{font-size:15px}
  .grid-table .c-name .pv{white-space:normal}

  .grid-table .c-rate{
    flex:0 0 auto;margin-left:auto;text-align:right;
    font-family:'IBM Plex Mono',monospace;font-size:1.5rem;font-weight:700;line-height:1
  }
  .grid-table .c-rate::after{
    content:attr(data-label);display:block;
    font-family:'IBM Plex Sans',sans-serif;font-size:9px;font-weight:600;
    letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-top:2px
  }

  .c-break{display:block;flex-basis:100%;height:0;padding:0;margin:0}

  .grid-table .c-act{
    flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:var(--s1)
  }
  .grid-table .c-act::after{
    content:attr(data-label);font-size:9px;font-weight:600;letter-spacing:.06em;
    text-transform:uppercase;color:var(--muted)
  }

  .grid-table .c-fig{
    flex:0 0 auto;font-family:'IBM Plex Mono',monospace;font-size:13px;color:var(--muted)
  }
  .grid-table .c-fig::after{
    content:" " attr(data-label);font-family:'IBM Plex Sans',sans-serif;font-size:11px
  }
  .grid-table .c-fig + .c-fig::before{content:"·";margin-right:var(--s2);color:var(--line)}
}

.dates-table{min-width:720px}

/* ---- Admin: deadlines table ---- */
@media (max-width: 700px){
  .dates-table{min-width:0;width:100%;display:block}
  .dates-table thead{display:none}
  .dates-table tbody,.dates-table tr,.dates-table td{display:block}
  .dates-table tr{border:1px solid var(--line);border-radius:var(--r-md);
    padding:var(--s4);margin-bottom:var(--s2)}
  .dates-table td{padding:0;border:none;margin-bottom:var(--s3)}
  .dates-table td:last-child{margin-bottom:0}
  .dates-table td[data-label]::before{
    content:attr(data-label);display:block;font-size:10px;font-weight:600;
    letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-bottom:var(--s1)
  }
}

/* ---- Admin: contacts, one university at a time ----
   Closed, the summary is the whole row: which campus, and how many of its
   three contacts exist. A <details> rather than JavaScript, so it works
   before app.js loads and the browser handles the keyboard for us. */
.ct-block > summary{list-style:none;cursor:pointer}
.ct-block > summary::-webkit-details-marker{display:none}
.ct-summary{display:flex;align-items:center;justify-content:space-between;gap:var(--s3);
  padding:var(--s4) var(--s5);min-height:44px}
.ct-summary:hover{background:var(--paper)}
.ct-block[open] > .ct-summary{border-bottom:1px solid var(--line-soft)}
/* The disclosure arrow, drawn rather than an emoji — it turns when open. */
.ct-summary::after{content:"";width:8px;height:8px;flex:none;margin-left:auto;
  border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);
  transform:rotate(45deg);transition:transform .15s var(--ease)}
.ct-block[open] > .ct-summary::after{transform:rotate(-135deg)}
.ct-count{font-size:var(--t-xs);font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.ct-body{padding:0 var(--s5) var(--s4)}
.ct-body .contact-row:first-of-type{border-top:none}
@media(prefers-reduced-motion:reduce){.ct-summary::after{transition:none}}

/* ---- Admin: contact rows ----
   Five columns on a phone is what pushed the page 139px past the viewport. */
.contact-row{
  display:grid;gap:var(--s2);align-items:end;
  grid-template-columns:200px 1fr 1fr 150px auto;
  padding:var(--s3) 0;border-top:1px solid var(--line)
}
@media (max-width: 900px){
  .contact-row{grid-template-columns:1fr 1fr;align-items:start}
  .contact-row .cr-name{grid-column:1 / -1}
  .contact-row .cr-save{grid-column:1 / -1;justify-self:start}
}
@media (max-width: 560px){
  .contact-row{grid-template-columns:1fr}
}

/* ---- QR sheet on a phone ---- */
@media (max-width: 700px){
  .qr-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:var(--s3)}
  .qr-card{padding:var(--s3)}
  .qr-card img{width:130px;height:130px}
}

/* ---- Stat cards ---- */
@media (max-width: 600px){
  .stat .val{font-size:1.7rem}
  .card.stat{padding:var(--s4)}
}

/* ---- Summary tiles on a phone ----
   The default g4 collapse (4 -> 2 -> 1) stacked eight tiles into roughly
   1600px of scrolling before the first institution. Two-up and compact keeps
   the summary glanceable and the data reachable. */
@media (max-width: 600px){
  .grid.g4{grid-template-columns:repeat(2,1fr);gap:var(--s2)}
  .card.stat{padding:var(--s3)}
  .stat .lbl{font-size:9px;letter-spacing:.1em;margin-bottom:var(--s1)}
  .stat .val{font-size:1.4rem}
  .stat .sub{font-size:10px;margin-top:var(--s1);line-height:1.35}
  /* Only the next-deadline tile spans the row - it carries a sentence.
     Targeting :last-child here would also stretch an ordinary tile in the
     other grid and leave a ragged gap beside it. */
  .stat-wide{grid-column:1 / -1}
}

/* ---- Tab strip ----
   It scrolls sideways on a phone by design; the scrollbar itself is noise.
   Keep the scrolling, hide the bar, and add momentum on touch. */
.tabs > div > div{-webkit-overflow-scrolling:touch;scrollbar-width:none}
.tabs > div > div::-webkit-scrollbar{display:none}
@media (max-width: 700px){
  /* Fade the right edge so it is obvious there are more tabs off-screen.
     Anchored to the wrapper rather than to .tabs itself: .tabs carries the
     sticky offset, and making it position:relative applied that offset as a
     displacement — shoving the whole strip down over the first card. */
  .tabs > div{position:relative}
  .tabs > div::after{content:"";position:absolute;top:4px;right:var(--s4);bottom:4px;width:40px;
    background:linear-gradient(to left,var(--card),rgba(255,255,255,0));pointer-events:none;
    border-radius:0 var(--r-pill) var(--r-pill) 0}
}

/* =================================================================
   Hero photograph
   A campaign photograph behind the lockup. The scrim is not decoration:
   the lockup is set in the three brand colours, none of which survives
   on a photograph, so the type goes white over a darkened ground and the
   colours keep their meaning where meaning matters — the status glyphs.
   ================================================================= */
.hero.has-photo{position:relative;background:var(--ink);isolation:isolate}
.hero.has-photo > *{position:relative;z-index:2}

.hero.has-photo::before{
  content:"";position:absolute;inset:0;z-index:0;
  background-image:url("img/hero-narrow.webp");
  background-size:cover;background-position:50% 32%;
}
@media (min-width: 760px){
  .hero.has-photo::before{background-image:url("img/hero-wide.webp");background-position:50% 42%}
}

/* Ink at the top where the type sits, brand green settling towards the base
   so the band and the teal rule below still feel part of the same object. */
.hero.has-photo::after{
  content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,
    rgba(30,42,37,.88) 0%,
    rgba(30,42,37,.78) 45%,
    rgba(44,85,68,.80) 100%);
}

.hero.has-photo .lockup .a,
.hero.has-photo .lockup .b,
.hero.has-photo .lockup .c{color:#fff}
.hero.has-photo .lede{color:rgba(255,255,255,.86)}
.hero.has-photo .chip.plain{border-color:rgba(255,255,255,.35);color:rgba(255,255,255,.86)}
.hero.has-photo .chip.live{background:rgba(255,255,255,.16);color:#fff}
.hero.has-photo .chip.live .dot{background:#fff}
.hero.has-photo .band{background:var(--green);box-shadow:0 6px 24px rgba(0,0,0,.28)}
/* One action leads. On the photograph the filled button has to be white to
   read at all, so the second action becomes an outline in the same white
   rather than a second solid block competing with it. */
.hero.has-photo .btn{background:#fff;color:var(--green)}
.hero.has-photo .btn:hover{background:var(--green-pale)}
.hero.has-photo .btn.out,.hero.has-photo .btn.quiet{
  background:transparent;color:#fff;border:1px solid rgba(255,255,255,.55)}
.hero.has-photo .btn.out:hover,.hero.has-photo .btn.quiet:hover{
  background:rgba(255,255,255,.12);border-color:#fff;color:#fff}

/* A photograph behind text is the one place a slow connection shows, so give
   the ground a solid colour immediately and let the image arrive over it. */
@media (max-width: 700px){
  .hero.has-photo::before{background-position:50% 30%}
}

/* ---- Public campaign timeline ----
   The schedule, not the scoreboard: dates and activity names only. Progress
   belongs behind the login. */
.timeline{list-style:none;margin:0;padding:0;position:relative}
/* --line on --paper is near-invisible; the rail needs to read as a spine.
   green-mid at low opacity keeps it on-brand without a new colour. */
.timeline::before{content:"";position:absolute;left:7px;top:10px;bottom:10px;
  width:2px;background:var(--green-mid);opacity:.3}
.tl-item{position:relative;display:grid;grid-template-columns:120px 1fr;gap:var(--s4);
  align-items:baseline;padding:var(--s3) 0 var(--s3) var(--s6)}
.tl-dot{position:absolute;left:0;top:18px;width:16px;height:16px;border-radius:50%;
  background:var(--card);border:2px solid var(--line)}
.tl-when{font-size:13px;font-weight:600;color:var(--muted);white-space:nowrap}
.tl-what{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--s2) var(--s3)}
.tl-label{font-size:15px;font-weight:600;line-height:1.35}
.tl-tag{font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  padding:3px 8px;border-radius:var(--r-pill);background:var(--green-pale);color:var(--green)}
.tl-tag.past{background:transparent;color:var(--muted);border:1px solid var(--line)}
/* Still to come, but not the next thing. Outlined rather than filled: green is
   carrying "this is the one to act on" and must not be spent on a date three
   weeks out. The words differ too — "In 12 days" against "Passed" — so the
   distinction does not rest on the colour. */
.tl-tag.ahead{background:transparent;color:var(--ink);border:1px solid var(--line)}

/* Past milestones recede; the next one is the only thing emphasised. */
.tl-item.past .tl-when,.tl-item.past .tl-label{color:var(--muted)}
.tl-item.past .tl-dot{background:var(--line);border-color:var(--line)}
.tl-item.next .tl-dot{border-color:var(--green);background:var(--green);
  box-shadow:0 0 0 4px var(--green-pale)}
.tl-item.next .tl-label{color:var(--green)}
.tl-item.ahead .tl-dot{border-color:var(--green-mid)}

@media (max-width: 700px){
  .tl-item{grid-template-columns:1fr;gap:var(--s1);padding-left:var(--s5)}
  .timeline::before{left:6px}
  .tl-dot{width:14px;height:14px;top:16px}
  .tl-when{font-size:11px;letter-spacing:.1em;text-transform:uppercase}
}

/* =================================================================
   Motion
   Two rules, both load-bearing:
   1. Nothing is ever hidden waiting to be revealed. Content is visible by
      default; motion is applied on top, only where supported.
   2. Everything here stops under prefers-reduced-motion.
   ================================================================= */

:root{ --ease:cubic-bezier(.22,.61,.36,1); --dur:.55s; }

/* Reveal on scroll, CSS only.
   Elements are visible by default. The animation is applied only inside
   @supports, so a browser without scroll-driven animations simply shows the
   content — there is no state in which something stays hidden. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes reveal-in{
      from{opacity:0;transform:translateY(14px)}
      to  {opacity:1;transform:none}
    }
    [data-reveal]{
      animation:reveal-in linear both;
      animation-timeline:view();
      animation-range:entry 0% cover 22%;
    }
  }
}

/* The next milestone is the only thing on the page that moves on its own.
   It marks the deadline that is actually imminent, so the motion carries
   meaning rather than decorating. */
@keyframes tl-pulse{
  0%,100%{box-shadow:0 0 0 4px var(--green-pale)}
  50%    {box-shadow:0 0 0 8px rgba(44,85,68,.16)}
}
.tl-item.next .tl-dot{animation:tl-pulse 2.6s var(--ease) infinite}

/* Timeline polish: a row lifts slightly on hover, and past items settle back. */
.tl-item{border-radius:var(--r-md);transition:background .2s var(--ease)}
.tl-item:hover{background:rgba(255,255,255,.6)}
.tl-item.past{opacity:.72;transition:opacity .2s var(--ease)}
.tl-item.past:hover{opacity:1}

/* Cards and controls get a consistent, quiet transition. */
.card,.uni-card,.qr-card{transition:border-color .2s var(--ease), box-shadow .2s var(--ease),
  transform .2s var(--ease)}
.qr-card:hover{border-color:var(--green);transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(30,42,37,.08)}
.btn{transition:background .18s var(--ease), color .18s var(--ease),
  transform .12s var(--ease)}
.btn:active{transform:translateY(1px)}

html{scroll-behavior:smooth}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  /* Show everything immediately and cancel every transition and animation. */
  .tl-item.next .tl-dot{animation:none}
  .qr-card:hover,.btn:active{transform:none}
  *,*::before,*::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;
    transition-duration:.001ms !important}
}

/* =================================================================
   Design system
   One scale for spacing, type and radius. Everything below replaces
   ad-hoc inline styles in the views — if you find yourself writing
   style="margin-top:14px", the scale is missing a step, not the page.
   ================================================================= */
:root{
  /* Spacing — 4px base, doubling loosely. */
  --s0:0; --s1:4px; --s2:8px; --s3:12px; --s4:16px;
  --s5:24px; --s6:32px; --s7:48px; --s8:56px;

  /* Type — seven steps, no in-betweens. */
  --t-2xs:10px; --t-xs:11px; --t-sm:12px; --t-base:14px;
  --t-md:15px; --t-lg:18px; --t-xl:20px;

  /* Radius — small shapes, panels, pills. */
  --r-xs:3px; --r-sm:6px; --r-md:8px; --r-lg:10px; --r-pill:999px;

  /* Elevation — two steps only; this is a data tool, not a card gallery. */
  /* Flatter than before: structure is carried by hairlines, not by lift. */
  --lift-1:0 1px 1px rgba(30,42,37,.03);
  --lift-2:0 1px 3px rgba(30,42,37,.06), 0 8px 20px -14px rgba(30,42,37,.12);
}

/* ---- Layout ---- */
.page{padding:var(--s5) var(--s4) var(--s8)}
.page-lg{padding:var(--s8) var(--s4)}
.measure{max-width:640px}
.grow{flex:1;min-width:0}

/* ---- Spacing utilities ----
   Deliberately few. If a screen needs a value that is not here, the answer is
   usually a component class, not another utility. */
.mt-0{margin-top:0} .mt-1{margin-top:var(--s1)} .mt-2{margin-top:var(--s2)}
.mt-3{margin-top:var(--s3)} .mt-4{margin-top:var(--s4)} .mt-5{margin-top:var(--s5)}
.mb-0{margin-bottom:0} .mb-1{margin-bottom:var(--s1)} .mb-2{margin-bottom:var(--s2)}
.mb-3{margin-bottom:var(--s3)} .mb-4{margin-bottom:var(--s4)} .mb-5{margin-bottom:var(--s5)}

/* ---- Type ---- */
.h3{font-family:'Poppins',sans-serif;font-weight:700;
  font-size:var(--t-md);line-height:1.3;letter-spacing:-.01em;margin-bottom:var(--s1)}

/* ---- Visually hidden ----
   Replaces the left:-9999px hack. That pattern scrolls the viewport sideways
   when a hidden element receives focus; clip-path does not move anything. */
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;
  clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;padding:0;margin:-1px}

/* ---- Small glyph, used inline in headings and notices ---- */
.gl-sm{width:14px!important;height:14px!important}

/* ---- Radius normalisation ----
   Seven arbitrary radii collapsed to four meaningful ones. */
.card,.map-card,.map-panel,.qr-card,.uni-card,.tl-item,.rows{border-radius:var(--r-lg)}
.btn,.field,.search,.chip.plain{border-radius:var(--r-sm)}
.chip,.tag,.pill,.tl-tag{border-radius:var(--r-pill)}
.gl.diamond,.gl.square{border-radius:var(--r-xs)}

/* ---- Surfaces ----
   Calmer: one hairline, one lift, no competing shadows. */
.card{box-shadow:var(--lift-1)}
.card.p0{overflow:hidden}

/* ---- Second-pass component classes ----
   Each replaces a repeated inline style, named for what it is rather than
   what it sets. */
.card-head{padding:var(--s4) var(--s5);border-bottom:1px solid var(--line)}
.card-head .note{margin:var(--s1) 0 0}
.card-pad{padding:var(--s5) var(--s5) 0}
.bold{font-weight:600}
.txt-r{text-align:right}
.w-auto{width:auto}
.btn-block{width:100%;justify-content:center}
.fig-row{display:flex;align-items:flex-end;gap:var(--s3)}
.fig{font-size:2.6rem;line-height:1}
.fig-unit{color:var(--muted);margin-bottom:var(--s1)}
.bar-lg,.bar-lg i{height:10px}
.tl-when-col{width:110px;flex:none}
.upd-when-col{width:130px;flex:none}
.col-200{width:200px}
.col-340{width:340px}
.tbl-640{min-width:640px}

/* ---- Third-pass component classes ---- */
.h2-sm{font-family:'Poppins',sans-serif;font-weight:700;
  font-size:var(--t-lg);line-height:1.25;letter-spacing:-.012em;margin-bottom:var(--s1)}
.h-login{font-family:'Poppins',sans-serif;font-weight:700;
  font-size:24px;line-height:1.2;letter-spacing:-.015em;margin-bottom:var(--s1)}
.h-big{font-family:'Poppins',sans-serif;font-weight:700;
  font-size:27px;line-height:1.15;letter-spacing:-.015em;margin-bottom:var(--s2)}
.lede-sm{font-size:var(--t-base);color:var(--muted);margin-bottom:var(--s5)}
.val-sm{font-size:1.5rem}
.bold-7{font-weight:700}
.page-narrow{max-width:440px;padding:var(--s8) var(--s4)}
.page-center{max-width:520px;padding:72px var(--s4);text-align:center}
.mx-auto{margin-inline:auto}
.al-start{align-items:flex-start}

/* ---- SAUS crest in the masthead ----
   Square, not a disc: the flag ribbon and the wordmark extend beyond the
   roundel, so a circular mask would clip the mark. */
.badge-img{width:44px;height:44px;flex-shrink:0;object-fit:contain;display:block}
@media (max-width: 640px){ .badge-img{width:36px;height:36px} }

/* A square crest at the same height as a wide wordmark reads far smaller, so
   it gets a taller, narrower slot and the row balances optically. */
.partner-row li.sq img{height:52px;width:52px}
@media (max-width: 700px){ .partner-row li.sq img{height:42px;width:42px} }

/* ---- Charts ----
   Drawn server-side as inline SVG (app/Chart.php). No chart library exists on
   this host and there is no build step, so the shapes arrive in the markup.

   The line alone never carries the meaning: the axis is labelled, the latest
   figure is printed, and the same numbers are published as a visually hidden
   table. A <path> tells a screen reader nothing at all.

   The drawing is stretched to the card (preserveAspectRatio="none") and holds
   a set height, so a wide screen gets a wide chart rather than a 400px-tall
   one. Its strokes carry vector-effect="non-scaling-stroke", and the axis
   figures sit outside it as HTML, because both would otherwise be stretched
   with it. */
.chart{margin:0}
.chart-plot{position:relative;padding-left:58px}
.chart-axis{position:absolute;left:0;top:0;bottom:0;width:50px}
.ch-tick{position:absolute;right:0;transform:translateY(-50%);
  font-size:var(--t-xs);color:var(--muted);white-space:nowrap}
.chart-svg{display:block;width:100%;height:220px}
.ch-grid{stroke:var(--line);stroke-width:1}
.ch-area{fill:var(--navy-pale);stroke:none}
.ch-line{fill:none;stroke:var(--navy);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.chart-svg.t-green .ch-area{fill:var(--green-pale)}
.chart-svg.t-green .ch-line{stroke:var(--green)}

.chart-x{display:flex;align-items:baseline;gap:var(--s3);margin-top:var(--s2);
  font-size:var(--t-xs);color:var(--muted)}
.chart-latest{flex:1;text-align:center;font-weight:600;color:var(--ink);font-size:var(--t-sm)}
.chart-empty{display:block;color:var(--muted);font-size:var(--t-sm)}

/* Sparkline — a card or table cell, no axis. Fixed size, so it scales evenly
   and its end dot stays round. */
.spark{display:block}
.spark-area{fill:var(--navy-pale);stroke:none}
.spark-line{fill:none;stroke:var(--navy);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.spark-dot{fill:var(--navy)}
.spark.t-green .spark-area{fill:var(--green-pale)}
.spark.t-green .spark-line{stroke:var(--green)}
.spark.t-green .spark-dot{fill:var(--green)}

@media (max-width: 700px){
  .chart-svg{height:150px}
  .chart-plot{padding-left:46px}
  .chart-axis{width:40px}
  .ch-tick{font-size:var(--t-2xs)}
}

/* ---- Weekly report ----
   One document, two media. On screen it is a page like any other; printed it
   is what SAUS circulates to Higher Health and NSFAS. */
.rep-head{display:flex;gap:var(--s5);align-items:flex-start;
  border-bottom:3px solid var(--green);padding-bottom:var(--s4);margin-bottom:var(--s6)}
.rep-head-main{flex:1;min-width:0}
.rep-head-side{max-width:220px;text-align:right;margin-top:0}
.rep-sec{margin-bottom:var(--s7)}
.rep-table td,.rep-table th{white-space:nowrap}
.rep-table .c-name{white-space:normal}
.rep-foot{border-top:1px solid var(--line);padding-top:var(--s4)}
@media (max-width: 700px){
  .rep-head{flex-direction:column;gap:var(--s3)}
  .rep-head-side{text-align:left;max-width:none}
}

@media print{
  /* Chrome prints backgrounds off by default. The status glyphs carry meaning
     in shape as well as colour, so the page survives either way, but the
     brand accents are worth keeping when the reader has them on. */
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  @page{margin:14mm}
  html,body{background:#fff}
  header.mast,.tabs,footer,.flash,.no-print,[data-print]{display:none!important}
  .page{padding:0}
  .wrap-lg{max-width:none;padding:0}
  .card{box-shadow:none;border:1px solid #ccd}
  .rep-sec{margin-bottom:18mm}
  /* Keep a section's heading with its content, and a row with its row. */
  .rep-sec,.card,.row,figure.chart{break-inside:avoid;page-break-inside:avoid}
  .break-before{break-before:page;page-break-before:always}
  thead{display:table-header-group}
  tr{break-inside:avoid;page-break-inside:avoid}
  .chart-svg{height:150px}
  a[href]{text-decoration:none;color:inherit}

  /* Tables scroll sideways on screen inside .tbl-wrap. Paper cannot scroll,
     and overflow on paper is not hidden — it is lost, silently, mid-column.
     The 880px minimum is dropped and the type stepped down so all 26 rows and
     every column land inside the page. */
  .tbl-wrap{overflow:visible}
  table{min-width:0;font-size:10px}
  th,td{padding:5px 6px}
  .rep-table .c-name .pv{white-space:normal}
}

/* A link inside running text. Standalone controls are .btn; this is for the
   sentence-level links the auth screens need. */
.link{color:var(--green);text-decoration:underline;font-weight:600}

/* ---- Accounts ----
   One row per account: who they are, then the four fields that define what
   they can reach. Below 760px the row becomes a stack — a role select and an
   institution select side by side on a phone is two 90px controls. */
.user-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s2)}
.ur-who{flex:1 1 190px;min-width:0}
.user-row .field{flex:1 1 140px;min-width:0;width:auto}
.user-row select.field{flex:0 1 auto}
.user-acts{display:flex;flex-wrap:wrap;gap:var(--s2);margin-top:var(--s3);
  padding-top:var(--s3);border-top:1px solid var(--line)}
.card.is-off{background:#FAFBFA}
.card.is-off .ur-who .bold{color:var(--muted)}
.cred{font-size:var(--t-xl);font-weight:600;letter-spacing:.06em;
  background:var(--green-pale);color:var(--green);
  padding:var(--s3) var(--s4);border-radius:var(--r-sm);
  /* Selectable in one gesture: this is read off a screen and typed elsewhere. */
  user-select:all;word-break:break-all}
@media (max-width: 760px){
  .user-row{flex-direction:column;align-items:stretch}
  .user-row .field,.user-row select.field{flex:none;width:100%}
  .user-acts .btn{flex:1}
}

/* ---- Media & Communications ---- */
.media-row{gap:var(--s3)}
.media-link{display:inline-block;margin-top:var(--s2);font-size:var(--t-sm);
  color:var(--navy);text-decoration:underline;word-break:break-all}
.media-acts{flex-wrap:wrap;gap:var(--s2);align-items:center}
.media-acts .field{min-width:150px}
@media (max-width: 760px){
  .media-row{flex-direction:column;align-items:stretch}
  .media-acts,.media-row form.inline{width:100%}
  .media-acts .field{flex:1 1 100%;min-width:0}
}

/* ---- Reminders ---- */
.rem-people{margin-top:var(--s3);border-top:1px solid var(--line)}
.rem-person{display:flex;align-items:center;gap:var(--s3);padding:var(--s3) 0;
  border-bottom:1px solid var(--line)}
.rem-person:last-child{border-bottom:none}
.rem-preview{margin-top:var(--s3)}
.rem-preview summary{cursor:pointer}
.rem-text{white-space:pre-wrap;font-family:'IBM Plex Mono',monospace;font-size:var(--t-sm);
  background:var(--paper);border:1px solid var(--line);border-radius:var(--r-sm);
  padding:var(--s3);margin-top:var(--s2);color:var(--ink)}
@media (max-width: 700px){
  .rem-person{flex-wrap:wrap}
  .rem-person .btn{width:100%}
}

/* ---- Live figures ----
   A figure that has just changed says so briefly. Under reduced motion the
   class is never added — the number simply changes. */
.pulse-stamp{font-size:var(--t-2xs);letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted);font-weight:600}
@keyframes pulse-fresh{from{background:var(--green-pale)}to{background:transparent}}
.pulse-fresh{animation:pulse-fresh 1.2s ease-out;border-radius:var(--r-xs)}

/* A plain bulleted list inside a card — the reset removes list styling. */
.plain-list{margin:0;padding-left:var(--s5);color:var(--muted);font-size:var(--t-sm);line-height:1.7}
.plain-list li{list-style:disc}

/* ---- Survey ----
   One column, generous targets, no grid. The instruments are answered on a
   phone in a queue, not at a desk. */
.survey{max-width:720px}
.sv-head{margin-bottom:var(--s5)}
.sv-privacy{margin-top:var(--s4)}
.sv-q{margin-bottom:var(--s4)}
.sv-set{border:none;padding:0;margin:0}
.sv-label{display:block;font-weight:600;font-size:var(--t-md);line-height:1.45;margin-bottom:var(--s2)}
.sv-req{display:inline-block;margin-left:var(--s2);font-size:var(--t-2xs);letter-spacing:.12em;
  text-transform:uppercase;color:var(--red);font-weight:700}
/* Options take as many columns as the width allows, and exactly one on a
   phone — the form is capped at 720px, so this is two columns on a laptop and
   one from about 500px down, without a breakpoint of its own. 85 full-width
   rows is what made a six-minute survey feel enormous.

   Row-major flow, so reading order still matches DOM order: nothing changes
   for a screen reader, and arrow-key movement within a radio group is
   unaffected. Tap targets are untouched — the 20px control plus its padding
   still clears 44px, which the coarse-pointer rule requires. */
.sv-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:var(--s2)}
/* The rating scales stay a row where there is room, and stack where there is
   not — the same markup either way. Flex rather than the grid above: a
   five-point scale split into two columns stops reading as a scale. */
.sv-scale{display:flex;flex-direction:row;flex-wrap:wrap;gap:var(--s2)}
.sv-opt{display:flex;align-items:center;gap:var(--s3);padding:var(--s3);
  border:1px solid var(--line);border-radius:var(--r-sm);cursor:pointer;font-size:var(--t-base)}
.sv-scale .sv-opt{flex:1 1 150px}
.sv-opt:hover{background:var(--paper)}
.sv-opt input{width:20px;height:20px;flex:none;accent-color:var(--green)}
.sv-opt:has(input:checked){border-color:var(--green);background:var(--green-pale)}
.sv-row{border:none;padding:0;margin:0 0 var(--s4)}
.sv-row:last-child{margin-bottom:0}
.sv-row-label{font-weight:600;font-size:var(--t-base);margin-bottom:var(--s2);color:var(--ink)}
.sv-text{min-height:110px;resize:vertical}
/* Pinned within reach on a phone, where the form runs well past the screen.
   On a laptop it would only sit on top of the questions. */
.sv-send{margin-top:var(--s5)}
@media (max-width: 700px){
  .sv-send{position:sticky;bottom:var(--s3);box-shadow:var(--lift-2)}
}

/* The honeypot. Off-screen rather than display:none, which cruder scripts
   check for, and never reachable by keyboard or screen reader. */
.sv-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.sv-support{background:var(--green-pale);border-radius:var(--r-sm);padding:var(--s4);margin-top:var(--s4)}
.sv-support.compact{padding:var(--s3)}
.sv-support-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:var(--s2)}
.sv-support-list li{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--s2);
  font-size:var(--t-sm);color:var(--ink)}
.sv-support-list .pv{color:var(--green-mid)}

@media (max-width: 700px){
  .sv-scale{flex-direction:column}
  .sv-scale .sv-opt{flex:1 1 auto}
}

/* ---- Survey results ----
   Bars rather than a chart: one scale, read top to bottom, and the figure
   printed beside every one of them. */
/* Survey questions are sentences. Setting them in caps made a page of them
   read as shouting, and a question mark in uppercase reads oddly. */
.res-q{font-family:'Poppins',sans-serif;font-weight:700;
  font-size:var(--t-md);line-height:1.35;letter-spacing:-.008em;margin-bottom:var(--s3)}
.res-bars{display:flex;flex-direction:column;gap:var(--s2)}
.res-bar{display:grid;grid-template-columns:minmax(120px,1.4fr) 3fr auto;gap:var(--s3);align-items:center}
.res-bar-label{font-size:var(--t-sm)}
.res-bar-track{height:14px;background:var(--paper);border:1px solid var(--line);
  border-radius:var(--r-pill);overflow:hidden}
.res-bar-track i{display:block;height:100%;background:var(--navy)}
.res-bar-figure{font-size:var(--t-sm);font-weight:600;white-space:nowrap}
.res-bar-figure .pv{margin-left:var(--s1)}
.res-row{padding:var(--s3) 0;border-top:1px solid var(--line)}
.res-row:first-of-type{border-top:none;padding-top:0}
.res-row-label{font-weight:600;font-size:var(--t-base);margin-bottom:var(--s2)}
.res-row-label .pv{margin-left:var(--s2);font-weight:400}
.res-text{white-space:pre-wrap;font-size:var(--t-base);line-height:1.6}
/* Fifteen distribution cards were a single column down the middle of a laptop,
   with the free-text panel a very long way below it. Two columns halve the
   scroll and bring that panel within reach; align-items:start so a short card
   beside a tall one does not stretch to match it. */
.res-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--s5);align-items:start}
.res-grid > .res-wide{grid-column:1 / -1}
@media(max-width:1000px){.res-grid{grid-template-columns:1fr;gap:var(--s4)}}
@media (max-width: 700px){
  .res-bar{grid-template-columns:1fr auto;gap:var(--s1) var(--s2)}
  .res-bar-track{grid-column:1 / -1;order:3}
  .res-bar-figure{text-align:right}
}

/* ---- Landing: the survey comes first ----
   A public campaign page is read by students far more often than by the people
   who administer the campaign, so the survey is the primary action and signing
   in is the quiet one. */
.btn-lg{padding:15px 28px;font-size:15px}
.btn.quiet{color:var(--muted);border-color:var(--line);background:transparent}
.btn.quiet:hover{color:var(--green);border-color:var(--green);background:var(--green-pale)}
.hero-note{font-size:var(--t-sm);color:rgba(255,255,255,.85);align-self:center}
.hero-cta{display:flex;flex-wrap:wrap;gap:var(--s3);align-items:center}
.closer-survey .note{max-width:520px;margin-inline:auto}
.mp-go{margin-top:var(--s4);justify-content:center}
@media (max-width: 700px){
  .hero-cta .btn{width:100%;justify-content:center}
  .hero-note{width:100%}
}

/* The assessment comparison: names, not percentages. The width floor is for
   wide screens only — below 700px .grid-table turns the rows into cards, and a
   min-width here would override that and scroll the table sideways instead. */
@media (min-width: 701px){ .as-table{min-width:720px} }
.as-table td.c-fig{font-family:'IBM Plex Mono',monospace;font-size:var(--t-sm)}
.as-table td.c-fig.l{text-align:left}
.as-figure{display:flex;align-items:flex-end;gap:var(--s3)}

/* ---- Show the password ----
   The control is added by JavaScript, so these styles only ever apply to
   something that works. */
.pw-wrap{position:relative;display:block}
.pw-wrap .field{padding-right:74px}
.pw-toggle{position:absolute;top:50%;right:6px;transform:translateY(-50%);
  padding:6px 10px;font-size:var(--t-sm);font-weight:600;color:var(--green);
  border-radius:var(--r-sm);background:transparent}
.pw-toggle:hover{background:var(--green-pale)}
.pw-toggle:focus-visible{outline:2px solid var(--navy);outline-offset:1px}
@media (pointer: coarse){
  .pw-toggle{min-height:var(--tap);min-width:var(--tap)}
  .pw-wrap .field{padding-right:84px}
}

/* ---- Reading and hitting things on a phone ----
   Measured at 390px. The type floor is 12px for anything that carries meaning:
   below that it is decoration a reader has to squint at, and this platform is
   used one-handed, outdoors, on Android. Controls in the hero are sized here
   rather than only under (pointer: coarse), because a small window on a laptop
   deserves the same. */
@media (max-width: 700px){
  .chip{font-size:var(--t-sm)}
  .marquee-cap,.map-note,.mp-row .k,.mp-row .v{font-size:var(--t-sm)}
  /* Named individually because each is set by a more specific selector; a
     bare .pv here loses to .row .pv and nothing changes. */
  .row .pv,.uni-card .pv,.qr-card .pv,.tl-when,footer .s2,footer .s3{font-size:var(--t-sm)}
  /* Every control, not only the ones in the hero: (pointer: coarse) already
     does this on a phone, but a narrow window on a laptop deserves it too. */
  .btn,.btn.sm{min-height:46px}
  .tab{min-height:44px;display:inline-flex;align-items:center}
  .crest{min-height:44px}
  .hero-cta .btn{min-height:48px}
  .lede{font-size:var(--t-md)}
  .band .sub{font-size:var(--t-base)}
}

/* §6 — an institution's own note about what it needs, on the national grid.
   Collapsed so a row with a note is the same height as one without; red,
   because it is a request for help that somebody has to answer. */
.c-support{margin-top:var(--s1)}
.c-support > summary{cursor:pointer;font-size:var(--t-xs);font-weight:700;color:var(--red);
  list-style:none;display:inline-flex;align-items:center;gap:var(--s1)}
.c-support > summary::-webkit-details-marker{display:none}
.c-support > summary::before{content:"";width:6px;height:6px;flex:none;border-radius:var(--r-xs);
  background:var(--red)}
.c-support p{margin:var(--s2) 0 0;font-size:var(--t-sm);line-height:1.5;color:var(--ink);
  white-space:pre-wrap;max-width:46ch}

/* The change-password link in the masthead. Quiet — it sits under the signed-in
   name and is only wanted once, but it has to be findable without asking. */
.mast-pw{display:inline-block;margin-top:2px;font-size:var(--t-2xs);
  letter-spacing:.06em;text-transform:uppercase;color:var(--muted);text-decoration:underline;
  text-underline-offset:2px}
.mast-pw:hover{color:var(--green)}
