/* ==========================================================================
   School Management Desk — Design System
   Waterriff brand palette: deep navy-slate (#0A2540) + a deep, cool blue
   (#1565C0) on cool paper, with white as the page canvas.
   ========================================================================== */

/* In-page anchors (Spotlight, Contact Us) glide rather than jump. */
html { scroll-behavior: smooth; }

/* The HTML `hidden` attribute has to beat any author `display` rule, or a
   panel marked hidden stays visible (this is what stopped the chat from
   closing). */
[hidden] { display: none !important; }

:root {
    /* The palette the client signed off on, taken straight off their own
       reference board: a deep navy field (#132C50), a mid action blue for
       buttons (#1E6EC5) and a bright cyan for icons on dark (#44DDF9).
       Everything below derives from those three, so one edit moves the whole
       product. */
    --ink:        #132C50;
    --ink-2:      #1B3D68;
    --ink-3:      #24507F;
    --paper:      #F5F8FB;
    --card:       #FFFFFF;
    --line:       #DCE5EE;
    --line-soft:  #EBF1F7;
    --brand:       #1E6EC5;
    --brand-light: #44DDF9;
    --brand-soft:  #E7F2FC;
    --brand-deep:  #0F2A4D;
    --primary:      #1E6EC5;
    --primary-soft: #E7F2FC;
    --brand-ink:    #0F2A4D;
    --text:       #12283A;
    --muted:      #5E7482;
    --muted-2:    #8FA5B0;
    --green:      #1E8A6D;
    --green-soft: #E2F3EC;
    --red:        #C0483D;
    --red-soft:   #FCEAE8;
    --blue:       #2A82D6;
    --blue-soft:  #E7F1FB;
    --amber:      #B07A1E;
    --amber-soft: #FBF2DC;
    --radius:     14px;
    --radius-sm:  9px;
    --shadow:     0 1px 2px rgba(10, 37, 64,.05), 0 8px 24px -12px rgba(10, 37, 64,.14);
    --shadow-lg:  0 24px 60px -24px rgba(10, 37, 64,.35);
    --serif:      Georgia, 'Iowan Old Style', 'Times New Roman', serif;
    --sans:       -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --mono:       'SF Mono', ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
::selection { background: var(--brand-soft); }

.ic { flex: none; vertical-align: middle; }

/* ------------------------------------------------------------------ type -- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 27px; }
h2 { font-size: 21px; }
h3 { font-size: 16.5px; }
p  { margin: 0 0 .8em; }
.kicker {
    font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--brand-deep); font-family: var(--sans);
}
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mono  { font-family: var(--mono); font-size: 12.5px; }
.strong { font-weight: 650; }
.serif  { font-family: var(--serif); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: 6px; }
.gap-lg { gap: 22px; }
.mt { margin-top: 18px; } .mt-sm { margin-top: 10px; } .mt-lg { margin-top: 30px; }
.mb { margin-bottom: 18px; } .mb-sm { margin-bottom: 10px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-2-1 { grid-template-columns: 1fr; } }
@media (max-width: 760px)  { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ auth -- */
/* ============================================================ sign-in =====
   A light, airy split: a soft blue field on the left carrying the school
   illustration and the product story, a clean white card on the right that
   holds the sign-in.  Same behaviour, calmer surface. */
/* The login sits as one card in the middle of a white page: the dark plate on
   the left, the sign-in column on the right, and white space all the way
   around -- the way the client's reference sets it. */
.auth {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 40px; background: #FFFFFF;
}
.auth.auth-login { padding: 0; background: #A9CFEA; }

@media (max-width: 520px) {
  .auth-solo .auth-box { padding: 26px 22px 24px; }
  .auth-solo .auth-hero-icons { gap: 14px; }
}
.auth-card { width: 100%; max-width: 1080px; display: grid;
    grid-template-columns: 1.02fr 1fr; align-items: stretch;
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 30px 80px -34px rgba(19,44,80,.34); }
/* the contact bar sits above the split, so the two panels start under it
   rather than underneath it */
.auth-wrap { display: contents; }
@media (max-width: 960px) {
    .auth { padding: 0; }
    .auth-card { grid-template-columns: 1fr; max-width: 520px;
        border-radius: 0; box-shadow: none; }
    .auth-hero { display: none; }
}
/* The login shell, in the client's reference: a database plate on the left
   under a navy veil carrying the big mark and the strapline, and a plain white
   column on the right holding one small, classic sign-in box. */
.auth-login .auth-hero { padding: 0; display: flex; flex-direction: column;
    justify-content: center; overflow: hidden; color: #FFFFFF;
    background: #0C1E39; }
/* the copy block is centred in the plate -- no logo above it */
.auth-hero-inner { position: relative; z-index: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    padding: 60px 48px; }
.auth-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: contain; object-position: center 44%; opacity: .17;
    /* the illustration ships on white, so it is faded right down and masked
       away from the edges -- it reads as a watermark on the navy rather than
       a white rectangle pasted on top of it */
    -webkit-mask-image: radial-gradient(660px 500px at 50% 44%, #000 0%, transparent 78%);
    mask-image: radial-gradient(660px 500px at 50% 44%, #000 0%, transparent 78%); }
/* the veil is what makes the plate readable: navy at the foot where the
   strapline sits, near-clear at the top so the mark has room */
.auth-hero-veil { position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(12,30,57,.30) 0%,
        rgba(12,30,57,.62) 42%, rgba(9,22,42,.86) 100%); }
/* Mixed case, not caps -- the client's reference sets its line as a sentence.
   Two tones: white for the first half, the product cyan for the second. */
.auth-hero-title { position: relative; z-index: 1; font-family: var(--sans);
    font-size: clamp(22px, 2.4vw, 25px); font-weight: 600; line-height: 1.34;
    letter-spacing: -.005em; color: #FFFFFF; margin: 0 0 16px; max-width: 17em;
    text-shadow: none; }
.auth-hero-title em { font-style: normal; color: #FFFFFF; }
/* on the white card the heading turns ink and the accent turns brand-deep */
.auth-solo .auth-hero-title { color: var(--ink); text-align: center; }
.auth-solo .auth-hero-title em { color: var(--brand-deep); font-weight: 600; }
.auth-hero-note { position: relative; z-index: 1; color: #FFFFFF;
    font-size: 15px; line-height: 1.7; max-width: 26em; margin: 0; font-weight: 500;
    text-shadow: none; }
.auth-solo .auth-hero-note { color: var(--muted); font-size: 13px; line-height: 1.6;
    text-align: center; max-width: 30em; margin: 0 auto 24px; font-weight: 400; }
/* The government password step asks for very little, so its left panel is
   deliberately plain: pure white, no maps and no story -- just the crest, a
   one-line strapline and a strip of what the system covers. */
.auth--plain, .auth--plain .auth-hero { background: #FFFFFF; }
.auth--plain .auth-bg { display: none; }
.auth-hero-plain .auth-ic .ic { background: var(--brand-soft);
    border-color: rgba(13, 71, 161, .12); }
.auth-hero {
    position: relative; overflow: hidden auto; color: var(--text);
    /* The whole panel is meant to be readable in one screen: a visitor should
       not have to hunt for the sign-in box behind a column of copy.  The
       padding is tighter than it was and the blocks below are spaced to fit
       a 900px-tall window, with the credit pinned to the foot. */
    padding: 28px 46px 24px;
    display: flex; flex-direction: column; gap: 22px;
}
/* The two faded maps behind the left panel.  Africa lies across the whole
   panel at a whisper; Nigeria sits in front of it, a little stronger, so the
   country the product is built for is the one you read.  Both are inert
   decoration and never take a click. */
.auth-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.auth-bg img { position: absolute; display: block; height: auto; }
.auth-bg-africa { width: 118%; top: -6%; left: -12%; opacity: .26; }
.auth-bg-nigeria { width: 46%; right: -6%; bottom: 4%; opacity: .3; }
/* the school illustration -- the friendly face of the left panel, centred. */
.auth-illus { display: block; width: 100%; max-width: 360px; height: auto;
    margin: 4px auto 22px; position: relative; z-index: 1; }
.auth-brand { display: inline-flex; align-items: center; gap: 13px; position: relative; z-index: 1;
    background: #FFFFFF; padding: 12px 18px; border-radius: 14px; align-self: flex-start;
    box-shadow: 0 10px 30px rgba(10, 37, 64, .16); }
.auth-brand img { display: block; height: 54px; width: auto; }
/* the line under the logo: small, wide-tracked and quiet -- a strapline, not a
   headline, so it must not compete with the h1 below it. */
.auth-brand-note { position: relative; z-index: 1; margin-top: 12px;
    font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: var(--brand-deep); }
.auth-brand .wordmark { font-family: var(--serif); font-size: 23px; color: var(--ink); letter-spacing: .01em; }
.auth-brand .wordmark small { display: block; font-family: var(--sans); font-size: 10.5px;
    letter-spacing: .22em; text-transform: uppercase; color: var(--brand-deep); margin-top: 2px; }
/* The opening row: the wordmark card on the left, the four coloured discs on
   the right, both sitting on the same line so neither pushes the other down. */
.auth-hero-top { position: relative; z-index: 1;
    display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }

/* The strapline is now the headline: two lines, all caps, no italics.  It is
   the widest thing on the panel, so it sets the type scale everything else is
   measured against. */
.auth-title { position: relative; z-index: 1; margin: 0 0 6px;
    font-family: var(--sans); font-size: clamp(25px, 2.7vw, 33px); line-height: 1.16;
    font-weight: 800; letter-spacing: -.012em; text-transform: uppercase;
    color: var(--ink); max-width: 15em; }
.auth-title span { display: block; }
/* the second line carries the colour, so the two read as one sentence */
.auth-title .t2 { color: var(--brand-deep); }

.auth-hero h1 { font-size: 42px; line-height: 1.12; color: var(--ink); max-width: 12em; position: relative; z-index: 1; }
.auth-hero h1 em { color: var(--brand-deep); font-style: italic; }
.auth-hero .lede { color: var(--muted); max-width: 34em; font-size: 15.5px; position: relative; z-index: 1; }
.auth-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 13px; position: relative; z-index: 1; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 14px; }
.auth-points .ic { color: var(--brand); margin-top: 2px; flex: none; }
/* The strip of what the platform actually holds.  It fills the space between
   the bullet list and the Watterriff credit, so the panel reads as a product
   map rather than a poster with a gap in it.  Each chip is a soft circle with
   a school/database glyph and a one-word caption under it. */
.auth-icon-grid { position: relative; z-index: 1; margin-top: 2px;
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 6px; }
.auth-ic { display: flex; flex-direction: column; align-items: center; gap: 5px;
    text-align: center; }
.auth-ic .ic { display: grid; place-items: center; width: 38px; height: 38px;
    border-radius: 50%; color: var(--brand);
    background: var(--brand-soft); border: 1px solid rgba(30, 110, 197, .18);
    box-shadow: 0 4px 14px -6px rgba(19, 44, 80, .22); }
/* The four coloured circles above the chip strip: the same idea as the strip
   below, but bigger and in colour, so the panel opens with something that
   catches the eye before the eye reaches the small print.  Each one takes its
   own hue -- four colours, evenly spaced, never two alike side by side. */
.auth-showcase { position: relative; z-index: 1;
    display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start;
    padding-top: 4px; }
.auth-show { display: flex; flex-direction: column; align-items: center; gap: 6px;
    text-align: center; width: 56px; }
.auth-show .ic-ring { display: grid; place-items: center; width: 44px; height: 44px;
    border-radius: 50%; color: #FFFFFF; position: relative;
    box-shadow: 0 12px 26px -12px currentColor; }
/* a lighter ring just outside the disc, so each colour reads as a medal rather
   than a flat dot */
.auth-show .ic-ring::after { content: ""; position: absolute; inset: -6px;
    border-radius: 50%; border: 1.5px solid currentColor; opacity: .22; }
.auth-show em { font-style: normal; font-size: 11px; font-weight: 700;
    letter-spacing: .03em; color: var(--text); line-height: 1.25; }
/* the four hues.  Each is carried in a custom property rather than in
   ``color``: the disc is filled with the hue, the glyph on top of it stays
   white, and the shadow and outer ring borrow the same hue -- three uses from
   one declaration, with no risk of the glyph inheriting the disc's colour. */
.auth-show.c-blue   { --show: #1565C0; }
.auth-show.c-green  { --show: #2E7D32; }
.auth-show.c-amber  { --show: #E65100; }
.auth-show.c-purple { --show: #6A1B9A; }
.auth-show .ic-ring { background: var(--show, #1565C0); color: #FFFFFF;
    box-shadow: 0 12px 26px -12px var(--show, #1565C0); }
.auth-show .ic-ring::after { border-color: var(--show, #1565C0); }

.auth-ic em { font-style: normal; font-size: 9.5px; font-weight: 600;
    letter-spacing: .02em; color: var(--muted); line-height: 1.25; }
/* the government panel's strip is coloured the same way: each chip keeps its
   own hue in a soft tint, so twelve icons read as a palette rather than a row
   of identical blue circles. */
.auth-ic.c-blue   .ic { color: #1E6EC5; background: rgba(30,110,197,.10); border-color: rgba(30,110,197,.22); }
.auth-ic.c-green  .ic { color: #2E7D32; background: rgba(46,125,50,.10);  border-color: rgba(46,125,50,.22); }
.auth-ic.c-amber  .ic { color: #E65100; background: rgba(230,81,0,.10);   border-color: rgba(230,81,0,.22); }
.auth-ic.c-purple .ic { color: #6A1B9A; background: rgba(106,27,154,.10); border-color: rgba(106,27,154,.22); }
.auth-ic.c-teal   .ic { color: #00838F; background: rgba(0,131,143,.10);  border-color: rgba(0,131,143,.22); }
.auth-ic.c-red    .ic { color: #C62828; background: rgba(198,40,40,.10);  border-color: rgba(198,40,40,.22); }
/* The feature list the client wrote: four ticks, each one line of their own
   copy.  Compact on purpose -- it has to share the panel with the payment
   trust block and still leave the sign-in card visible. */
.auth-features { position: relative; z-index: 1; }
.auth-features-head { font-size: 13px; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.auth-feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.auth-feature-list li { display: flex; gap: 10px; align-items: flex-start;
    font-size: 13.5px; line-height: 1.45; color: var(--text); }
.auth-feature-list .ic { color: var(--brand); margin-top: 2px; flex: none; }
.auth-feature-list strong { color: var(--brand-deep); font-weight: 700; }
.auth-foot { margin-top: auto; padding-top: 18px; color: var(--muted); font-size: 12px; position: relative; z-index: 1; }
/* the Watterriff credit at the foot of the sign-in panel -- the grey mark sits
   on a white card so it reads clearly against the soft blue, and it is big
   enough to actually see. */
.auth-credit-logo { display: block; height: 42px; width: auto;
    background: #FFFFFF; padding: 9px 16px; border-radius: 12px;
    box-shadow: 0 8px 22px rgba(19, 44, 80, .16); margin-bottom: 10px; }
.auth-credit-note { color: var(--muted); font-size: 12px; }
.auth-credit-note a { color: var(--brand-deep); font-weight: 700; text-decoration: none; }
.auth-credit-note a:hover { text-decoration: underline; }
.auth-version { margin-top: 4px; color: var(--muted); font-size: 11px; }

/* The way back to the public site from the sign-in page.  A small pill, in
   colour, well below the text above it and clear of the version line -- so it
   reads as a place to go rather than a rule under the headline. */
.auth-home { display: inline-flex; align-items: center; gap: 5px; color: var(--brand-deep);
    font-size: 11px; font-weight: 600; letter-spacing: .01em; text-decoration: none;
    text-transform: lowercase;
    padding: 4px 11px 4px 9px; border-radius: 99px;
    background: rgba(30, 110, 197, .12); border: 1px solid rgba(30, 110, 197, .30);
    position: relative; z-index: 1; margin-top: 18px;
    transition: transform .16s, background .16s, border-color .16s, color .16s; }
.auth-home:hover { color: #fff; transform: translateY(-1px);
    background: var(--brand); border-color: var(--brand); }

/* The trust panel under the home button: a single calm card -- who the money
   runs through and who keeps the connection safe.  On the soft blue it becomes
   a light frosted card. */
.auth-trust { margin-top: 0; padding: 14px 18px 15px; text-align: center;
    border-radius: 13px; background: #FFFFFF;
    border: 1px solid var(--line); position: relative; z-index: 1; }
.auth-trust .trust-head { display: inline-flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 650; letter-spacing: .02em; color: var(--ink); }
.auth-trust .trust-ic { display: inline-flex; color: var(--brand); }
.auth-trust .partners { display: flex; align-items: center; justify-content: center;
    gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.auth-trust .partner { display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; color: var(--ink); letter-spacing: .01em;
    padding: 5px 12px; border-radius: 8px; background: #FFFFFF;
    border: 1px solid var(--line); }
.auth-trust .partner .ic { color: var(--brand); }
.auth-trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.auth-trust .secure { display: flex; align-items: center; justify-content: center;
    gap: 7px; margin-top: 9px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.auth-trust .secure .ic { color: var(--brand); flex: none; }

/* The icon moves on its own, so somebody scanning the page for a way out
   notices it without having to be told.  It lifts and settles -- a nudge, not
   a distraction -- and it stops the moment the pointer arrives, so the label
   can be read in peace. */
.auth-home .ic { animation: auth-home-nudge 2.6s ease-in-out infinite; }
.auth-home:hover .ic { animation: none; transform: translateY(-1.5px); }
@keyframes auth-home-nudge {
    0%, 62%, 100% { transform: translateY(0); }
    72%            { transform: translateY(-3px); }
    84%            { transform: translateY(0); }
    92%            { transform: translateY(-1.5px); }
}
/* Anyone who has asked their system for less motion gets none. */
@media (prefers-reduced-motion: reduce) {
    .auth-home .ic { animation: none; }
    .auth-home:hover { transform: none; }
}

/* The right column is just a stage; the white card is the .auth-box itself --
   a soft, rounded panel floating on the blue, the way the reference sets it. */
/* The sign-in page is one white card floating on Microsoft's sky blue, the
   way the Outlook welcome screen is one card on a photograph.  Your
   illustration goes on the page background and nowhere else.

   ``mix-blend-mode: multiply`` drops the artwork's white ground away so only
   the drawing shows against the sky -- laid on flat it would read as a white
   rectangle pasted over the blue.  No mask and no vignette: the artwork fills
   the whole page the way the reference photograph does. */
.auth-stage { position: relative; min-height: 100vh; display: flex;
    align-items: center; justify-content: center; padding: 44px 20px;
    background: transparent;
    overflow: hidden; }
.auth-stage-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: url("/static/brand/school-auth.jpg") center / cover no-repeat;
    opacity: .52; mix-blend-mode: multiply; }

/* The card is opaque white, sharp and clean, with no border and no shadow --
   exactly like the reference.

   It has to be *positioned* for that to hold.  A positioned sibling paints
   above an in-flow block, so with the artwork absolutely placed and the card
   left static the artwork rode straight over the whole card -- which is
   exactly the wash-through the screenshot shows.  z-index 1 on a positioned
   card is what puts the artwork back where it belongs. */
.auth-card.auth-solo { position: relative; z-index: 1;
    max-width: 470px; grid-template-columns: 1fr;
    background: #FFFFFF; border: 0; box-shadow: none; }
.auth-solo .auth-box { max-width: none; border: 0; box-shadow: none;
    padding: 34px 38px 30px; background: transparent; }

.auth-panel { background: #FFFFFF; display: flex; align-items: center;
    justify-content: center; padding: 48px 44px; }
/* one small, classic box -- the reference's shape: a quiet white card, a
   centred head, two choice tiles, the fields, then the button.  Nothing in it
   competes with the plate on the left. */
.auth-box { width: 100%; max-width: 396px; background: #FFFFFF;
    border: 1px solid rgba(19, 44, 80, .07);
    border-radius: 14px; padding: 26px 28px 22px;
    box-shadow: 0 18px 44px -22px rgba(19, 44, 80, .22); }
.auth-box h2, .auth-box-title { font-size: 21px; font-weight: 700;
    margin: 0 0 18px; color: var(--ink); text-align: center;
    letter-spacing: -.01em; }
/* the form card's head: the new brand mark at the top, then the product line
   set the way a portal sets its name -- "School Central Record System (SCRS)". */
.auth-card-head { text-align: center; margin-bottom: 13px;
    padding-bottom: 13px; border-bottom: 1px solid var(--line-soft); }
.auth-solo .auth-card-head { margin-bottom: 18px; padding-bottom: 0; border-bottom: 0; }
.auth-solo .auth-card-logo { height: 34px; margin-bottom: 6px; }
.auth-solo .auth-card-title { font-size: 11.5px; letter-spacing: .08em; }
.auth-card-logo { display: block; height: 38px; width: auto; margin: 0 auto 7px; }
.auth-card-title { font-family: var(--sans); font-size: 12.5px; font-weight: 700;
    letter-spacing: .07em; text-transform: uppercase; color: var(--ink); line-height: 1.35; }
.auth-card-title span { color: var(--brand); font-weight: 800; }
/* the form sits directly on the white card -- no card inside a card. */
.auth-box .auth-card { background: transparent; border: 0; padding: 0; box-shadow: none; }
/* the two systems side by side, as quiet tiles -- picking one is the first
   thing a visitor does, so they get the top of the box */

/* "Forgot password?" sits on its own line, right-aligned under the fields */
.auth-forgot { text-align: right; margin: 10px 0 16px; }
.auth-solo-row { display: flex; align-items: center; justify-content: space-between;
    gap: 14px; margin-top: 2px; }
.auth-solo-row .auth-forgot { margin: 0; font-size: 12.5px; color: var(--brand);
    font-weight: 600; text-decoration: none; white-space: nowrap; }
.auth-solo-row .auth-forgot:hover { text-decoration: underline; }
.auth-forgot a { font-size: 12.5px; color: var(--brand); text-decoration: none;
    font-weight: 600; }
.auth-forgot a:hover { text-decoration: underline; }
/* the one big button, in the product's primary colour */
.btn-login { padding: 13px 20px; font-size: 15px; font-weight: 700;
    border-radius: 9px; }
.auth-solo-row .btn-login { padding: 9px 28px; font-size: 13.5px; font-weight: 600;
    border-radius: 4px; }
/* "Want to join? Get Started Now For Free" -- the reference's closing line */
.auth-join { margin: 16px 0 0; text-align: center; font-size: 13px;
    color: var(--muted); }
.auth-join a { color: var(--brand); font-weight: 700; text-decoration: none; }
.auth-join a:hover { text-decoration: underline; }
.demo-note { background: var(--brand-soft); border: 1px solid #BBD9F5; border-radius: var(--radius-sm);
    padding: 11px 14px; font-size: 12.5px; color: #0A5A68; margin-bottom: 18px; }
.demo-note code { font-family: var(--mono); font-size: 11.5px; background: rgba(255,255,255,.7);
    padding: 1px 5px; border-radius: 4px; }

/* --------------------------------------------------------------- buttons -- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 600; font-size: 13.5px; line-height: 1;
    padding: 11px 17px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
    transition: transform .06s ease, box-shadow .15s ease, background .15s ease, border-color .15s;
    white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #FFFFFF;
    box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 6px 16px -8px rgba(30,110,197,.65); }
.btn-primary:hover { filter: brightness(1.05); }
/* The hero's sign-in button: the client's green, flat and confident, the same
   treatment their reference gives "SEE ALL OFFERINGS" -- no gradient, no
   shadow ring, just the colour and the label. */
.btn-signin { background: #22A98D; border: 1px solid #22A98D; color: #FFFFFF;
    font-weight: 700; letter-spacing: .01em;
    padding: 12px 24px; font-size: 14.5px; border-radius: 8px; }
.btn-signin:hover { background: #1E987C; border-color: #1E987C; color: #FFFFFF; }
.btn-ink { background: var(--ink); color: #E4EEF2; }
.btn-ink:hover { background: var(--ink-3); }
.btn-outline { background: var(--card); border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: rgba(0,0,0,.04); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); }
.btn-success { background: var(--green); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
/* a short run of buttons side by side -- used by the sign-in help page, which
   has carried an unstyled .btn-row since before v1.10 */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-row .btn { flex: none; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ----------------------------------------------------------------- forms -- */
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-size: 12px; font-weight: 650; color: var(--text);
    margin-bottom: 6px; letter-spacing: .01em; }
.auth-solo .field { margin-bottom: 14px; }
.auth-solo .field label { font-size: 12.5px; font-weight: 600; color: var(--ink);
    margin-bottom: 5px; }
.auth-solo .field input { height: 40px; border-radius: 4px; font-size: 13.5px;
    padding: 0 11px; border-color: #B9C4D0; background: #FFFFFF; }
.auth-solo .field input:focus { border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand); }
.auth-solo .field .hint { font-size: 11.5px; color: var(--muted); margin-top: 6px;
    line-height: 1.5; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.hint .up-fmt { color: var(--brand); font-weight: 600; white-space: nowrap; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=tel], input[type=date], input[type=search], select, textarea {
    width: 100%; font: inherit; font-size: 14px; color: var(--text); background: var(--card);
    border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; outline: none;
    transition: border-color .15s, box-shadow .15s; appearance: none;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30,136,229,.15);
}
select { background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236F6A5C' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--text); cursor: pointer; }
.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.filter-bar .field { margin-bottom: 0; min-width: 150px; }

/* ----------------------------------------------------------------- shell -- */
.shell { display: grid; grid-template-columns: 258px 1fr; min-height: 100vh; }
.sidebar {
    background: linear-gradient(180deg, var(--ink) 0%, #0C1E39 100%);
    color: #9FB6C0; display: flex; flex-direction: column; position: sticky; top: 0;
    height: 100vh; overflow-y: auto; border-right: 1px solid #123A5C;
}
.sidebar-top { display: flex; align-items: center; gap: 10px; padding: 18px 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06); }
.sidebar-top .brand { flex: 1; min-width: 0; display: flex; align-items: center; }
/* The open / close control, pinned to the top of the menu and never hidden.
   It used to sit in the footer, which disappeared the moment the menu
   collapsed -- so there was no way back.  It lives up here now, always
   visible, and it is the one thing still standing in the narrow strip. */
.sidebar-toggle { flex: none; width: 34px; height: 34px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.06); color: #9FB6C0; border: 0; cursor: pointer;
    transition: background .15s, color .15s; }
.sidebar-toggle:hover { background: rgba(255,255,255,.14); color: #fff; }
.sidebar-toggle .st { display: inline-flex; align-items: center; justify-content: center; }
.sidebar-toggle .st-closed { display: none; }
.sidebar-foot .signout { margin: 2px 0 0; }
.sidebar-foot .copyright { margin-top: 10px; line-height: 1.5; }
.sidebar .brand .wordmark { font-family: var(--serif); font-size: 17.5px; color: #E4EEF2; line-height: 1.1; }
.sidebar .brand .wordmark small { display: block; font-size: 9px; letter-spacing: .2em;
    text-transform: uppercase; color: var(--brand-light); }
.school-chip { margin: 14px 16px 6px; padding: 11px 13px; border-radius: 11px;
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.school-chip .nm { color: #E4EEF2; font-weight: 650; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.school-chip .nm .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green);
    box-shadow: 0 0 0 3px rgba(46,125,91,.2); flex: none; }
.school-chip .nm .dot.off { background: var(--red); box-shadow: 0 0 0 3px rgba(179,69,59,.2); }
.school-chip .sub { font-size: 11px; color: #7E97A3; margin-top: 3px; }
.nav { padding: 10px 12px 20px; flex: 1; }
.nav-section { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: #5E7482;
    padding: 16px 10px 7px; font-weight: 700; }
.nav-item {
    display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px;
    color: #9FB6C0; font-size: 13.5px; font-weight: 500; position: relative;
}
.nav-item .ic { color: #7E97A3; transition: color .15s; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #E4EEF2; text-decoration: none; }
.nav-item:hover .ic { color: var(--brand-light); }
.nav-item.active { background: linear-gradient(90deg, rgba(30,136,229,.16), rgba(30,136,229,.05));
    color: #E4EEF2; }
.nav-item.active .ic { color: var(--brand-light); }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px;
    width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.nav-item .count { margin-left: auto; font-size: 10.5px; background: rgba(255,255,255,.09);
    padding: 1px 7px; border-radius: 20px; color: #9FB6C0; }
.nav-item .count.alert { background: var(--red); color: #fff; }
.sidebar-foot { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.07); font-size: 11px; color: #5E7482; }

/* ------------------------------------------------------------- collapse ---
   A narrow sidebar of icons alone.  Somebody who knows where everything is
   wants the width for their work, and somebody who does not wants the labels
   -- the same person wants both on different days, so it is one click and it
   is remembered.  The choice is stored on the device, not on the account, so
   a teacher at a shared computer is not surprising the next person.
   The open/close button at the top NEVER hides -- it is how you get back.  */

/* the shell is the grid, so narrowing the column is all it takes */
.shell.collapsed { grid-template-columns: 76px 1fr; }
.shell.collapsed .sidebar-top { justify-content: center; padding: 18px 8px 16px; }
.shell.collapsed .sidebar-top .brand { display: none; }
.shell.collapsed .school-chip,
.shell.collapsed .nav-section { display: none; }
.shell.collapsed .nav { padding: 10px 8px 20px; }
.shell.collapsed .nav-item { justify-content: center; padding: 11px 0; }
.shell.collapsed .nav-item span,
.shell.collapsed .nav-item .count { display: none; }
.shell.collapsed .nav-item.active::before { left: -8px; }
/* the panel glyph swaps so the button reads as "open" when the menu is shut */
.shell.collapsed .sidebar-toggle .st-open { display: none; }
.shell.collapsed .sidebar-toggle .st-closed { display: inline-flex; }
/* sign out stays reachable as an icon; only the words go */
.shell.collapsed .sidebar-foot { text-align: center; padding: 12px 8px; }
.shell.collapsed .sidebar-foot .copyright { display: none; }
.shell.collapsed .sidebar-foot .nav-item { justify-content: center; padding: 9px 0; }
.shell.collapsed .sidebar-foot .nav-item span { display: none; }
/* a collapsed sidebar must still say which page you are on, so the active
   entry keeps a visible marker and every entry grows a tooltip on hover */
.shell.collapsed .nav-item { position: relative; }
.shell.collapsed .nav-item:hover::after {
    content: attr(data-label); position: absolute; left: calc(100% + 10px); top: 50%;
    transform: translateY(-50%); background: var(--ink); color: #E4EEF2;
    padding: 6px 10px; border-radius: 7px; font-size: 12px; white-space: nowrap;
    z-index: 60; box-shadow: var(--shadow-lg); pointer-events: none; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
    display: flex; align-items: center; gap: 16px; padding: 14px 30px; background: rgba(247,245,240,.9);
    backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30;
}
.topbar .page-title { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.topbar .page-sub { font-size: 12px; color: var(--muted); }
.topbar .spacer { flex: 1; }
.term-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--card);
    border: 1px solid var(--line); border-radius: 30px; padding: 6px 14px; font-size: 12.5px;
    font-weight: 600; color: var(--text); }
.term-pill .ic { color: var(--brand); }
/* the notification bell: one place that says something new is waiting */
.notif-bell { position: relative; display: inline-flex; align-items: center;
    justify-content: center; width: 34px; height: 34px; border-radius: 10px;
    color: var(--muted, #64748b); text-decoration: none; flex: none; }
.notif-bell:hover { background: rgba(21,101,192,.10); color: var(--brand, #1565C0); }
.notif-count { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px;
    padding: 0 4px; border-radius: 9px; background: #E5484D; color: #fff;
    font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center;
    box-shadow: 0 0 0 2px var(--card, #fff); }
.notif-count[hidden] { display: none; }
@media (max-width: 720px) { .notif-bell { width: 30px; height: 30px; } }

.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px;
    border-radius: 30px; border: 1px solid var(--line); background: var(--card); }
.avatar { width: 31px; height: 31px; border-radius: 50%; background: linear-gradient(150deg, var(--ink), #1B4A6E);
    color: #E4EEF2; display: inline-flex; align-items: center; justify-content: center;
    font-size: 11.5px; font-weight: 700; letter-spacing: .02em; flex: none; }
.avatar.brand { background: linear-gradient(150deg, var(--brand), var(--brand-deep)); color: #062A33; }
.avatar.lg { width: 46px; height: 46px; font-size: 15px; }
.avatar.xl { width: 64px; height: 64px; font-size: 21px; }
.user-chip .who { line-height: 1.25; }
.user-chip .who b { font-size: 12.8px; display: block; }
.user-chip .who span { font-size: 10.5px; color: var(--muted); }

.content { padding: 28px 30px 60px; max-width: 1440px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
    margin-bottom: 22px; flex-wrap: wrap; }
.page-head .titles .kicker { margin-bottom: 3px; }
.page-head .titles p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; max-width: 60em; }
.actions { display: flex; gap: 9px; flex-wrap: wrap; }

/* ----------------------------------------------------------------- cards -- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; }
.card + .card { margin-top: 18px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 15px 20px;
    border-bottom: 1px solid var(--line-soft); }
.card-head h3 { font-size: 15px; }
.card-head .sub { font-size: 12px; color: var(--muted); }
.card-head .spacer { flex: 1; }
.card-body { padding: 20px; }
.card-body.tight { padding: 0; }
.card-note { background: var(--brand-soft); border-bottom: 1px solid #BBD9F5; padding: 11px 20px;
    font-size: 12.5px; color: #0A5A68; display: flex; gap: 9px; align-items: center; }

.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px;
    border-radius: 50%; background: radial-gradient(circle, rgba(30,136,229,.09), transparent 70%); }
.stat .ic-chip { width: 38px; height: 38px; border-radius: 10px; display: inline-flex;
    align-items: center; justify-content: center; margin-bottom: 13px; }
.stat .label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
    font-weight: 700; margin-bottom: 5px; }
.stat .value { font-family: var(--serif); font-size: 29px; line-height: 1.05; font-weight: 600; }
.stat .foot { font-size: 12px; color: var(--muted); margin-top: 7px; display: flex; align-items: center; gap: 6px; }
.ic-chip { background: var(--brand-soft); color: var(--brand-deep); }
.ic-chip.brand { background: var(--brand-soft); color: var(--brand-deep); }
.ic-chip.green { background: var(--green-soft); color: var(--green); }
.ic-chip.blue  { background: var(--blue-soft); color: var(--blue); }
.ic-chip.red   { background: var(--red-soft); color: var(--red); }
.ic-chip.ink   { background: #E4EEF2; color: var(--ink); }
.ic-chip.amber { background: var(--amber-soft); color: var(--amber); }

/* ---------------------------------------------------------------- tables -- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.table th {
    text-align: left; font-size: 10.5px; letter-spacing: .11em; text-transform: uppercase;
    color: var(--muted); font-weight: 700; padding: 11px 16px; background: #F0F7F9;
    border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.table td { padding: 11px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.table tbody tr:last-child td { border-bottom: none; }
table.table tbody tr:hover { background: #F7FBFC; }
table.table .num { font-variant-numeric: tabular-nums; }
table.table.compact td, table.table.compact th { padding: 8px 12px; }
.person { display: flex; align-items: center; gap: 11px; }
.person .nm { font-weight: 600; font-size: 13.5px; }
.person .sub { font-size: 11.5px; color: var(--muted); }

/* --------------------------------------------------------------- badges --- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650;
    padding: 3px 10px; border-radius: 30px; border: 1px solid transparent; white-space: nowrap; }
.badge.green { background: var(--green-soft); color: var(--green); border-color: #CBE5D8; }
.badge.red   { background: var(--red-soft); color: var(--red); border-color: #F2D2CE; }
.badge.brand  { background: var(--brand-soft); color: var(--brand-deep); border-color: #BBD9F5; }
.badge.blue  { background: var(--blue-soft); color: var(--blue); border-color: #C9E4EE; }
.badge.amber { background: var(--amber-soft); color: var(--amber); border-color: #EFDFB4; }
.badge.ink   { background: #E4EEF2; color: var(--ink); border-color: #CFE0E6; }
.badge.muted { background: #EAF1F3; color: var(--muted); border-color: var(--line); }
.badge.excellent { background: #E4F1EA; color: #1F6B4A; border-color: #C6E2D3; }
.badge.good { background: #E7F0FE; color: #2E7CE8; border-color: #C9E4EE; }
.badge.credit { background: var(--green-soft); color: var(--green); border-color: #CBE5D8; }
.badge.pass { background: var(--amber-soft); color: var(--amber); border-color: #EFDFB4; }
.badge.fail { background: var(--red-soft); color: var(--red); border-color: #F2D2CE; }
.badge.sq { border-radius: 6px; min-width: 34px; justify-content: center; font-family: var(--mono); font-size: 11px; }

/* ---------------------------------------------------------------- misc ---- */
.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty .ic { color: var(--muted-2); margin-bottom: 10px; }
.empty p { font-size: 13.5px; max-width: 34em; margin: 0 auto; }

.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: var(--card); font-size: 13.5px; align-items: flex-start; }
.callout .ic { margin-top: 1px; }
.callout.brand  { background: var(--brand-soft); border-color: #BBD9F5; color: #0A5A68; }
.callout.brand .ic { color: var(--brand-deep); }
.callout.green { background: var(--green-soft); border-color: #CBE5D8; color: #1F6B4A; }
.callout.green .ic { color: var(--green); }
.callout.red   { background: var(--red-soft); border-color: #F2D2CE; color: #8A332C; }
.callout.red .ic { color: var(--red); }
.callout.blue  { background: var(--blue-soft); border-color: #C9E4EE; color: #1A5A78; }
.callout.blue .ic { color: var(--blue); }

.flash { display: flex; align-items: center; gap: 11px; padding: 12px 16px; border-radius: var(--radius-sm);
    margin-bottom: 18px; font-size: 13.5px; font-weight: 550; border: 1px solid; }

/* The undo button inside a flash callout.  Ten seconds, then it goes -- the
   point is to catch a mistake as it happens, not to keep a door open. */

/* The borrower search beside the borrower select on the loan form. */
.borrower-search { display: flex; flex-direction: column; gap: 4px; min-width: 230px; }
.borrower-search label { font-size: 11px; font-weight: 650; text-transform: uppercase;
    letter-spacing: .04em; color: var(--muted, #8a8a8a); }
.borrower-search input { padding: 8px 10px; border: 1px solid var(--line, #ddd);
    border-radius: 8px; font-size: 13px; }
.borrower-search .hint { font-size: 11px; color: var(--muted, #8a8a8a); }
.flash-undo { display: inline-flex; align-items: center; gap: 5px; margin-left: 12px;
    padding: 4px 11px; border-radius: 99px; background: var(--ink); color: #fff;
    font-size: 12px; font-weight: 650; text-decoration: none; white-space: nowrap;
    animation: undo-in .22s ease; transition: opacity .3s, transform .3s; }
.flash-undo:hover { background: #000; }
.flash-undo.gone { opacity: 0; transform: scale(.94); pointer-events: none; }
@keyframes undo-in { from { opacity: 0; transform: translateX(-6px); } }
.flash.success { background: var(--green-soft); border-color: #CBE5D8; color: #1F6B4A; }
.flash.error   { background: var(--red-soft); border-color: #F2D2CE; color: #8A332C; }
.flash.info    { background: var(--blue-soft); border-color: #C9E4EE; color: #1A5A78; }

.progress { height: 7px; border-radius: 20px; background: #E4EEF2; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--brand-light), var(--brand)); }
.progress.green > span { background: linear-gradient(90deg, #4EA37C, var(--green)); }
.progress.red > span { background: linear-gradient(90deg, #D0685E, var(--red)); }

.divider { height: 1px; background: var(--line); margin: 18px 0; border: none; }
.hairline { border: none; border-top: 1px solid var(--line-soft); margin: 12px 0; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 9px 15px; font-size: 13.5px; font-weight: 600; color: var(--muted);
    border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { color: var(--brand-deep); border-bottom-color: var(--brand); }

.pagination { display: flex; gap: 6px; align-items: center; justify-content: flex-end; padding: 13px 16px;
    border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--muted); }
.pagination a, .pagination span { padding: 4px 10px; border-radius: 7px; border: 1px solid var(--line);
    background: var(--card); font-size: 12px; }
.pagination .current { background: var(--ink); color: #E4EEF2; border-color: var(--ink); }

.chip-row { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 30px;
    border: 1px solid var(--line); background: var(--card); font-size: 12px; color: var(--text); }
.chip .ic { color: var(--brand-deep); }
.chip.solid { background: var(--ink); color: #E4EEF2; border-color: var(--ink); }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 7px 18px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 550; }

.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px;
    background: var(--line); }
.timeline .item { position: relative; padding-bottom: 16px; font-size: 13px; }
.timeline .item:last-child { padding-bottom: 0; }
.timeline .item::before { content: ""; position: absolute; left: -21px; top: 4px; width: 9px; height: 9px;
    border-radius: 50%; background: var(--card); border: 2px solid var(--brand); }
.timeline .item .when { font-size: 11.5px; color: var(--muted); }

/* --------------------------------------------------------- report cards --- */
.rc-sheet { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); max-width: 900px; margin: 0 auto; overflow: hidden; }
.rc-head { display: flex; gap: 20px; align-items: center; padding: 26px 32px;
    background: linear-gradient(135deg, #132C50, #1B3D68); color: #DCE9F5; }
.rc-head .shield { width: 62px; height: 62px; border-radius: 50%; border: 2px solid var(--brand);
    display: flex; align-items: center; justify-content: center; font-family: var(--serif);
    font-size: 21px; color: var(--brand-light); flex: none; background: rgba(30,136,229,.12); }
.rc-head h2 { color: #E6EEF7; font-size: 22px; line-height: 1.2; }
.rc-head .motto { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--brand-light); margin-top: 4px; }
.rc-head .meta { font-size: 11.5px; color: #7E97A3; margin-top: 7px; }
.rc-meta { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.rc-meta div { padding: 12px 20px; border-right: 1px solid var(--line-soft); }
.rc-meta div:last-child { border-right: none; }
.rc-meta .k { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
    font-weight: 700; }
.rc-meta .v { font-size: 13.5px; font-weight: 650; margin-top: 2px; }
table.rc-table { width: 100%; border-collapse: collapse; font-size: 12.8px; }
table.rc-table th { background: #F0F7F9; font-size: 10px; letter-spacing: .09em; text-transform: uppercase;
    color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
table.rc-table td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); text-align: left; }
table.rc-table td.n, table.rc-table th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.rc-table td.c, table.rc-table th.c { text-align: center; }
table.rc-table tfoot td { background: #F0F7F9; font-weight: 700; border-top: 1px solid var(--line); }
.rc-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-bottom: 1px solid var(--line); }
.rc-summary div { padding: 14px 20px; border-right: 1px solid var(--line-soft); text-align: center; }
.rc-summary div:last-child { border-right: none; }
.rc-summary .k { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.rc-summary .v { font-family: var(--serif); font-size: 20px; font-weight: 650; margin-top: 3px; }
.rc-comments { padding: 20px 32px; display: grid; gap: 14px; }
.rc-comment { border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px; background: #F7FBFC; }
.rc-comment .who { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-deep);
    font-weight: 700; margin-bottom: 5px; }
.rc-comment p { margin: 0; font-size: 13px; font-style: italic; color: var(--text); }
.rc-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 10px 32px 30px;
    align-items: end; }
/* School marks: seal, stamp, signatures and the centred logo watermark.

   An uploaded signature or stamp is a photo on white paper.  Drawn with
   multiply blending the white becomes the paper it sits on, so the rectangle
   disappears and only the ink survives -- no image editing by the school. */
.rc-watermark { position: absolute; inset: 0; display: flex; align-items: center;
    justify-content: center; pointer-events: none; z-index: 0; }
/* The crest is deliberately large and clearly faded: it has to read as the
   school's own watermark behind the whole sheet without competing with the
   text, and it has to survive printing.  Multiply blending removes the white
   box a photographed logo always arrives with. */
.rc-watermark img { width: min(74%, 640px); height: auto; max-height: 78%;
    object-fit: contain; mix-blend-mode: multiply; opacity: .15; }
.rc-sheet > *:not(.rc-watermark) { position: relative; z-index: 1; }
.mark-stamp, .mark-sign { display: block; object-fit: contain; mix-blend-mode: multiply; }
.mark-stamp { width: 118px; height: 74px; }
.mark-sign { width: 152px; height: 58px; }
.mark-logo { width: 96px; height: 96px; object-fit: contain; border-radius: 50%; }

/* the signature block: image above the rule, name and role below, seal beside */
.rc-sign { align-items: end; }
.rc-sign .sig { font-size: 12px; color: var(--muted); }
.rc-sign .sig-imgwrap { min-height: 50px; display: flex; align-items: flex-end; }
.rc-sign .sig-imgwrap .sig-blank { display: block; width: 100%; height: 46px; }
.rc-sign .sig-img { max-width: 100%; }
.rc-sign .sig-line { border-top: 1.5px solid var(--ink); margin-top: 4px; }
.rc-sign .sig-name { font-size: 12.5px; font-weight: 700; color: var(--ink); margin-top: 6px; }
.rc-sign .sig-role { font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase;
    color: var(--muted); font-weight: 700; margin-top: 2px; }
/* the report-card comment editor (class teacher + principal), under the broadsheet */
.comment-ta { width: 100%; min-width: 180px; resize: vertical; font: inherit;
    font-size: 13px; line-height: 1.45; padding: 8px 10px; border-radius: 9px;
    border: 1px solid var(--line); background: var(--card); color: var(--text); }
.comment-ta:focus { outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(30, 110, 197, .16); }
/* The school seal, stamped once across the foot of the sheet. */
.rc-seal { display: flex; justify-content: center; padding: 2px 32px 30px; }
.rc-seal .seal-img { width: 132px; height: 84px; }
@media print { .rc-watermark img { opacity: .14; } }

/* a suspension or rustication, printed on the report card itself */
.rc-discipline { margin: 0 32px; padding: 12px 16px; border-radius: 10px;
    border: 1px solid var(--line); background: #FDF6E9; display: grid; gap: 4px; }
.rc-discipline.red { background: #FDECEC; border-color: #F3C9C9; }
.rc-discipline-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px;
    letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--amber); }
.rc-discipline.red .rc-discipline-tag { color: var(--red); }
.rc-discipline .small { font-size: 11.5px; }

/* an academic transcript: one block per term, newest first */
.rc-term { border-top: 1px solid var(--line); }
.rc-term-head { display: flex; justify-content: space-between; align-items: baseline;
    gap: 12px; padding: 12px 32px 8px; font-size: 12.5px; color: var(--text);
    background: #F7FBFC; }
.rc-term-head span { font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
    color: var(--muted); font-weight: 700; }
.rc-term table.rc-table th:first-child, .rc-term table.rc-table td:first-child { padding-left: 32px; }
.rc-term table.rc-table th:last-child, .rc-term table.rc-table td:last-child { padding-right: 32px; }
.rc-sub { padding: 12px 32px 0; font-size: 12px; color: var(--muted); }

/* the marks list in Sessions & Terms */
.mark-thumb { width: 54px; height: 34px; object-fit: contain; mix-blend-mode: multiply;
    border: 1px solid var(--line-soft); border-radius: 6px; background: #fff; padding: 2px; }
.mark-upload .grid { align-items: end; }
.mark-form { border: 1px dashed var(--line); border-radius: 10px; padding: 14px 16px;
    margin-top: 12px; background: #F7FBFC; }
.mark-form-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px;
    margin-bottom: 10px; color: var(--text); }
.inline-form { display: inline-flex; align-items: flex-end; gap: 8px; }
.inline-form .field { margin: 0; }
.inline-form select { font-size: 12px; padding: 5px 8px; max-width: 150px; }

.rc-scale { padding: 14px 32px; background: #F0F7F9; border-top: 1px solid var(--line);
    font-size: 11px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }

/* --------------------------------------------------------------- landing -- */
.landing { background: #FFFFFF; color: var(--text); }
/* the top navigation: brand on the left, the section links centred, sign-in on
   the right -- a clean white bar that stays put as the page scrolls, the way a
   modern product site opens. */
.landing-nav { position: sticky; top: 0; z-index: 50; display: grid;
    grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
    padding: 13px 32px; background: #FFFFFF;
    border-bottom: 1px solid var(--line); }
.landing-nav .ln-brand { justify-self: start; display: inline-flex; }
.landing-nav .ln-brand img { height: 34px; width: auto; display: block; }
.landing-nav .ln-links { justify-self: center; display: flex; gap: 26px; flex-wrap: wrap; }
.landing-nav .ln-link { background: none; border: 0; font: inherit; cursor: pointer;
    color: var(--ink); font-weight: 600; font-size: 13.5px; padding: 6px 2px;
    display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
    transition: color .15s; }
.landing-nav .ln-link:hover { color: var(--brand-deep); }
.landing-nav .ln-link::after { content: ""; width: 5px; height: 5px;
    border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg) translateY(-1px); transition: transform .15s; }
.landing-nav a.ln-link::after { display: none; }
.landing-nav .ln-drop { position: relative; }
.landing-nav .ln-menu { position: absolute; top: calc(100% + 12px); left: 50%;
    transform: translateX(-50%) translateY(8px); min-width: 300px; max-width: 360px;
    /* A solid white card, not frosted glass.  Letting the page show through
       left the text sitting on whatever happened to be behind it, which read as
       a half-finished panel -- an opaque card with a hairline edge and a real
       shadow is what a dropdown is supposed to look like. */
    background: #FFFFFF;
    border: 1px solid rgba(10, 37, 64, .12); border-radius: 16px;
    padding: 20px 22px; box-shadow: 0 22px 50px -16px rgba(10, 37, 64, .28);
    opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
    z-index: 60; text-align: left; }
.landing-nav .ln-menu-wide { min-width: 380px; max-width: 430px; }
.landing-nav .ln-drop:hover .ln-menu,
.landing-nav .ln-drop:focus-within .ln-menu { opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0); }
.landing-nav .ln-drop:hover .ln-link::after { transform: rotate(225deg) translateY(0); }
.ln-menu-kicker { font-size: 11px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: var(--brand-deep); margin-bottom: 9px; }
.ln-menu-lede { font-size: 13px; color: var(--text); margin: 0 0 13px; line-height: 1.55; }
.ln-menu p { font-size: 12.8px; color: var(--muted); line-height: 1.6; margin: 0 0 10px; }
.ln-menu p strong { color: var(--ink); }
.ln-menu-list { list-style: none; padding: 0; margin: 0 0 15px; display: grid; gap: 9px; }
.ln-menu-list li { position: relative; padding-left: 20px; font-size: 12.8px;
    color: var(--text); line-height: 1.5; }
.ln-menu-list li::before { content: ""; position: absolute; left: 2px; top: 5px;
    width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.ln-menu-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ln-menu-contact li { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.ln-menu-contact .ic { color: var(--brand); flex: none; }
.ln-menu-contact a { color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; }
.ln-menu-contact a:hover { color: var(--brand-deep); text-decoration: underline; }
.landing-nav > .btn { justify-self: end; }
@media (max-width: 760px) {
  .landing-nav { grid-template-columns: auto 1fr; padding: 12px 18px; }
  .landing-nav .ln-links { display: none; }
}
/* The hero is a white field.  The maps still roll behind it, faded well back
   so the headline stays the loudest thing on the page, and the accent now
   comes from the four-up bar rather than from a block of colour. */
/* The hero is a dark field: the network plate and the two maps roll behind it
   under the veil.  Any section that carries .landing-hero without those layers
   -- the partner page, for instance -- still gets the dark ground, so light
   type set on it is never white-on-white. */
.landing-hero { padding: 96px 40px 72px; text-align: center; position: relative;
    overflow: hidden; isolation: isolate;
    background: linear-gradient(180deg, #132C50 0%, #0C1E39 100%); }
/* a thin gradient hairline across the very top: the one crisp accent that says
   "this was designed", drawing the eye into the section */
.landing-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px;
    z-index: 2;
    background: linear-gradient(90deg, transparent, rgba(68,221,249,.95) 24%,
        rgba(30,110,197,.95) 52%, rgba(68,221,249,.95) 76%, transparent); }
/* a faint dot grid drifting over the map -- a quiet texture that keeps the
   background from ever reading as a flat fill.  Sits above the map, below the
   text, and is masked away from the edges so it never competes. */
.landing-hero::after { content: ""; position: absolute; inset: 0; z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.4px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(760px 460px at 50% 34%, #000 0%, transparent 78%);
    mask-image: radial-gradient(760px 460px at 50% 34%, #000 0%, transparent 78%); }
/* The connected African map fills the whole section, faded well back so the
   headline stays the loudest thing on it. */
.hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bg-img { position: absolute; inset: -8%;
    background: url("/static/africa-network.jpg") center center / cover no-repeat;
    opacity: .26; filter: saturate(1.04) blur(.4px); }
/* one soft pool of teal light that drifts very slowly behind the headline --
   the single moving accent that keeps the field feeling alive without ever
   becoming the busy glow-wall an earlier version had. */
.hero-bg-shine { position: absolute; left: 50%; top: 42%; width: 62vw; height: 58vh;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(30,136,229,.20), transparent 72%);
    filter: blur(26px);
    animation: hero-shine-drift 19s ease-in-out infinite alternate; }
@keyframes hero-shine-drift {
    0%   { transform: translate(-58%, -56%) scale(1); }
    100% { transform: translate(-42%, -44%) scale(1.14); } }
/* a veil over the map, so the text never fights the picture for contrast */
.hero-bg-africa { position: absolute; top: -6%; left: -8%; width: 74%;
    height: auto; opacity: .22; }
.hero-bg-nigeria { position: absolute; right: -4%; bottom: -8%; width: 30%;
    height: auto; opacity: .26; }
.hero-bg-veil { position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(7,27,48,.58), rgba(7,27,48,.82) 60%,
                rgba(7,27,48,.94)); }
.hero-inner { position: relative; z-index: 1; }
@keyframes hero-roll {
    0%   { transform: scale(1.04) translate3d(-1.4%, .8%, 0); }
    50%  { transform: scale(1.1)  translate3d(1.2%, -.9%, 0); }
    100% { transform: scale(1.04) translate3d(-.8%, 1.1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-bg-img, .hero-bg-shine { animation: none; }
    .hero-bg-img { transform: none; }
    .hero-bg-shine { transform: translate(-50%, -50%); }
}
/* The logo and the product line under it.  These were dropped in an earlier
   edit and never came back, which is part of why the hero read as broken. */
.hero-logo { display: flex; justify-content: center; margin-bottom: 2px; }
.hero-logo img { display: block; height: auto; }
/* The hero keeps the dark map field, so everything set on it is light -- the
   veil plus the network plate is what the type sits on.  Every section below
   the hero is white. */
.landing-hero h1 { font-family: var(--serif); font-size: 52px; color: #FFFFFF;
    max-width: 15em; margin: 18px auto 16px; line-height: 1.1; letter-spacing: -.01em;
    text-shadow: 0 2px 18px rgba(4,16,32,.45); }
.landing-hero h1 em { color: #44DDF9; font-style: normal; }
.landing-hero .lede { color: #D3E2EE; font-size: 16.5px; max-width: 46em;
    margin: 0 auto 28px; line-height: 1.65; }
.landing-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
/* The four-up bar under the hero buttons, in the shape of the client's
   reference: three quiet items on a slate panel, then a brighter call-to-action
   panel on the right with an arrow.  The three are links to the sections; the
   fourth sends the visitor to sign in. */
.quick-bar { display: grid; grid-template-columns: repeat(3, 1fr) 1.35fr;
    align-items: stretch; margin: 34px auto 0; max-width: 980px;
    border-radius: 12px; overflow: hidden;
    background: linear-gradient(180deg, #1E3E63 0%, #17324F 100%);
    border: 1px solid rgba(255,255,255,.10); }
.quick { display: flex; align-items: center; gap: 12px; padding: 16px 18px;
    text-decoration: none; color: #E6EEF7;
    border-right: 1px solid rgba(255,255,255,.08); }
.quick:last-child { border-right: 0; }
.quick:hover { background: rgba(255,255,255,.05); }
.quick-ic { display: flex; flex: none; color: #9FD8EA; }
.quick-txt { display: flex; flex-direction: column; gap: 1px; }
.quick-txt strong { font-size: 12.5px; font-weight: 800; letter-spacing: .1em;
    text-transform: uppercase; }
.quick-txt em { font-style: normal; font-size: 11.5px; color: #9DB3C4; }
/* the fourth panel carries the accent and the arrow, so it reads as the one to
   press rather than as a fourth equal item */
.quick-cta { background: linear-gradient(180deg, #2FC7A8 0%, #22A98D 100%);
    color: #06281F; justify-content: space-between; }
.quick-cta:hover { background: linear-gradient(180deg, #37D3B4 0%, #26B397 100%); }
.quick-cta .quick-txt strong { color: #06281F; }
.quick-cta .quick-txt em { color: rgba(6, 40, 31, .72); }
.quick-arrow { display: flex; flex: none; }
@media (max-width: 860px) {
  .quick-bar { grid-template-columns: 1fr 1fr; }
  .quick { border-bottom: 1px solid rgba(255,255,255,.08); }
}
scrolling tagline --
   The line the product is built on, set large and bold, scrolling leftwards
   without end.  The track holds the text twice and slides by exactly half its
   own width, so the loop is seamless: when the first copy has left the screen
   the second is where it was.                                        */
.tagline-band { overflow: hidden; padding: 15px 0; position: relative;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(30,136,229,.12), rgba(30,136,229,.03) 50%,
                                rgba(30,136,229,.12));
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.tagline-track { display: flex; width: max-content; gap: 0;
    animation: tagline-scroll 26s linear infinite; }
.tagline-band:hover .tagline-track { animation-play-state: paused; }
.tagline-track > span { display: inline-flex; align-items: center; gap: 18px;
    padding-right: 18px; white-space: nowrap;
    font-family: var(--serif); font-size: clamp(15px, 2vw, 22px); font-weight: 700;
    letter-spacing: -.015em; line-height: 1.06; color: var(--ink); }
.tagline-track > span .dot { width: 7px; height: 7px; border-radius: 50%;
    background: var(--brand); flex: none; }
.tagline-track em { font-style: normal; color: var(--brand-deep); }
@keyframes tagline-scroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
    .tagline-track { animation: none; } }
@media (max-width: 640px) {
    .tagline-band { padding: 18px 0; } }

/* --------------------------------------------------------------------------
   The inbox: message cards, threaded replies and the row actions.
   A message is a card, not a table row, because it has to hold a reply box
   and a thread underneath it -- a <tr> cannot.
   -------------------------------------------------------------------------- */
.msg-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
    margin-bottom: 12px; background: var(--card); }
.msg-card.unread { border-left: 3px solid var(--brand); background: var(--brand-soft); }
.msg-card.ann { border-left: 3px solid #F0A020; }
.msg-head { display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.msg-head strong { font-size: 14px; }
.msg-body { font-size: 13.5px; line-height: 1.55; color: var(--text);
    white-space: pre-wrap; word-break: break-word; }
.msg-reply-row { border-left: 2px solid var(--brand); padding: 4px 0 4px 12px;
    margin: 8px 0 0; font-size: 13px; }
.msg-reply-row strong { font-size: 12.5px; }
.msg-reply { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.msg-reply .field { margin-bottom: 8px; }
.msg-reply textarea { font-size: 13px; }
.msg-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft);
    display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.btn-xs { padding: 4px 9px; font-size: 11.5px; border-radius: 7px; }
h3.mt { margin: 22px 0 12px; font-size: 15px; }
@media (max-width: 640px) {
    .msg-card { padding: 12px 13px; }
    .msg-head { flex-direction: column; gap: 4px; }
}

.landing-section { padding: 70px 40px; max-width: 1180px; margin: 0 auto; }
.landing-section h2 { font-size: 34px; color: var(--ink); text-align: center; margin-bottom: 8px; }
.landing-section .sub { text-align: center; color: var(--muted); max-width: 46em; margin: 0 auto 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature .ic-chip { width: 40px; height: 40px; border-radius: 10px; display: inline-flex;
    align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-deep);
    margin-bottom: 14px; }
.feature h3 { color: var(--ink); font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 13.5px; margin: 0; }
/* the six service cards carry the colour: a soft teal wash, a solid teal cap
   along the top edge, and a filled teal icon tile -- so the section reads as a
   set of coloured cards sitting on the clean white, not plain boxes. */
.feature.svc { background: linear-gradient(180deg, #FFFFFF 0%, #EFFAFD 100%);
    border: 1px solid #CBE9EF; border-top: 3px solid var(--brand);
    box-shadow: 0 12px 30px -20px rgba(10, 37, 64, .45); }
.feature.svc:hover { border-top-color: var(--brand-deep);
    box-shadow: 0 18px 40px -20px rgba(10, 37, 64, .5); }
.feature.svc .ic-chip { background: var(--brand);
    color: #FFFFFF; box-shadow: 0 8px 16px -8px rgba(30, 110, 197, .65); }
/* ---------------------------------------------- sign-in: product choice -- */
.auth-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.auth-solo .auth-choice { gap: 8px; margin-bottom: 16px; }
.auth-solo .auth-choice-card { border-radius: 8px; padding: 10px 11px;
    border-width: 1px; }
.auth-solo .auth-choice-ic { width: 30px; height: 30px; flex-basis: 30px;
    border-radius: 8px; }
.auth-solo .auth-choice-tx strong { font-size: 12.5px; }
.auth-solo .auth-choice-tx small { font-size: 10.5px; }
.auth-choice-card {
    display: flex; align-items: center; gap: 10px; padding: 12px 13px;
    border: 1.6px solid var(--line); border-radius: 12px; background: #fff;
    text-decoration: none; color: var(--ink); transition: border-color .16s, background .16s;
}
.auth-choice-card:hover { border-color: var(--brand); background: var(--brand-soft); }
.auth-choice-card.active { border-color: var(--brand); background: var(--brand-soft); }
.auth-choice-ic {
    width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-soft); color: var(--brand);
}
.auth-choice-card.active .auth-choice-ic { background: var(--brand); color: #fff; }
.auth-choice-tx { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.auth-choice-tx strong { font-size: 13px; }
.auth-choice-tx small { font-size: 11px; color: var(--muted); }
@media (max-width: 560px) { .auth-choice { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   Modal (the public-registry unlock popup) and the WhatsApp button.
   --------------------------------------------------------------------------- */
.modal-backdrop{position:fixed;inset:0;background:rgba(7,27,48,.72);
  display:none;align-items:center;justify-content:center;z-index:120;
  padding:20px;backdrop-filter:blur(3px)}
.modal-backdrop.open{display:flex}
.modal{background:var(--surface,#fff);border-radius:16px;width:100%;
  max-height:90vh;overflow:auto;box-shadow:0 24px 70px rgba(7,27,48,.35);
  animation:pop .18s ease-out}
@keyframes pop{from{transform:translateY(14px) scale(.98);opacity:0}
  to{transform:none;opacity:1}}
.modal-head{display:flex;align-items:flex-start;justify-content:space-between;
  gap:14px;padding:20px 22px 0}
.modal-head h2{font-size:19px;line-height:1.35}
.modal-body{padding:16px 22px 22px}
.modal-x{background:var(--brand-soft);border:0;border-radius:9px;color:var(--ink);
  cursor:pointer;padding:6px 8px;line-height:0;flex:none}
.modal-x:hover{background:rgba(30,136,229,.22)}

.btn-whatsapp{background:#25D366;color:#04310f;border:0;font-weight:700}
.btn-whatsapp:hover{background:#1ebe5a;color:#032a0c}
.callout.amber{background:#fff7e6;border-left:4px solid #F5A623;color:#5c4408}
.callout.amber svg{stroke:#B47600}
.kicker{font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:var(--brand)}

/* the blurred register: nothing can be selected or clicked through */
.public-blur{transition:filter .25s ease}
.public-blur{user-select:none;-webkit-user-select:none}

/* the "trust this device" box on the verification screen */
.trust-device{display:flex;gap:9px;align-items:flex-start;margin:14px 0 16px;
  font-size:13.5px;line-height:1.45;cursor:pointer;color:var(--ink)}
.trust-device input{margin-top:2px;width:16px;height:16px;accent-color:var(--brand);
  flex:none;cursor:pointer}

/* responsive shell */
@media (max-width: 900px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; z-index: 50; left: -280px; transition: left .25s ease; height: 100vh; }
    .sidebar.open { left: 0; box-shadow: var(--shadow-lg); }
    .menu-toggle { display: inline-flex !important; }
    .content { padding: 20px 16px 50px; }
    .topbar { padding: 12px 16px; }
}
.menu-toggle { display: none; align-items: center; justify-content: center; width: 38px; height: 38px;
    border-radius: 9px; border: 1px solid var(--line); background: var(--card); cursor: pointer; color: var(--text); }

/* -------------------------------------------- selectable student rows ---- */
.pick { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.pick input[type=radio] { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }
tbody tr:has(.pick input[type=radio]:checked) { background: var(--primary-soft); }
tbody tr:has(.pick input[type=radio]) { transition: background .12s ease; }
tbody tr:has(.pick input[type=radio]):hover { background: var(--paper-2, #EEF4F6); }

/* --------------------------------------------- live student filtering --- */
[data-student-filter] [data-filter-item] { display: none; }
[data-student-filter].has-query [data-filter-item] { display: block; }
[data-student-filter] .filter-empty { display: none; }
[data-student-filter].has-query .filter-empty { display: block; }

/* --------------------------------------------------- report card passport --- */
.rc-passport { width: 78px; height: 90px; object-fit: cover; border-radius: 5px;
    border: 1.5px solid var(--ink); background: #fff; display: block; }
@media print { .rc-passport { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ------------------------------------------------- visible light button -- */
/* Solid light button with DARK text — readable on the dark landing sections
   and on white pages. Fixes the "white on white" invisible-button bug.       */
.btn-light { background: #E6EEF7; border-color: #E6EEF7; color: #132C50; font-weight: 600; }
.btn-light:hover { background: #FFFFFF; border-color: #FFFFFF; color: #1565C0; }

/* ---------------------------------------------------------- plan cards --- */
.feature.pop-plan { border-color: rgba(30,136,229,.55); background: rgba(30,136,229,.07); }

/* ------------------------------------------------ partner spotlight ----- */
.partner-badge { display: block; width: max-content; margin: 0 auto 14px; padding: 5px 15px;
    border-radius: 999px; background: var(--brand-soft); color: var(--brand-deep);
    font-size: 11.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.partner-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.foot-contact { margin-top: 12px; font-size: 12.5px; }
.foot-contact a { color: var(--brand-light); }

.ad-carousel { position: relative; border-radius: var(--radius); overflow: hidden;
    border: 1px solid rgba(255,255,255,.10); background: #0A2540; }
.ad-track { position: relative; min-height: 340px; }

/* Every slide is stacked in the same cell; only the active one is visible.
   Three columns now, in the client's reference order: the business
   description on the LEFT, the business picture in the MIDDLE, and the
   business's own details listed down the RIGHT.  The picture sweeps in from
   the left on a slow cinematic curve. */
.ad-slide { position: absolute; inset: 0;
    display: grid; grid-template-columns: .9fr .95fr .8fr; align-items: stretch;
    opacity: 0; visibility: hidden; pointer-events: none; }
.ad-slide.active { opacity: 1; visibility: visible; pointer-events: auto; }
.ad-media { position: relative; overflow: hidden; background: #0C1E39;
    transform: translateX(-14%) scale(1.06);
    transition: transform 1100ms cubic-bezier(.19,1,.22,1), opacity 900ms ease; }
.ad-slide.active .ad-media { transform: translateX(0) scale(1); }
.ad-media img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 320px; }
.ad-img-fallback { width: 100%; height: 100%; min-height: 320px;
    background: linear-gradient(140deg, #132C50, #1E6EC5); }
.ad-copy { padding: 34px 32px; display: flex; flex-direction: column;
    justify-content: center; gap: 4px; background: #0A2540; transform: translateX(18px);
    transition: transform 1100ms cubic-bezier(.19,1,.22,1) 120ms; }
.ad-slide.active .ad-copy { transform: translateX(0); }
.ad-media { border-left: 1px solid rgba(255,255,255,.10); }
/* the details column: a stacked list of label + value, the way a news sidebar
   is stacked -- one hairline rule between rows, no boxes */
.ad-details { padding: 24px 24px 22px; background: rgba(19,44,80,.55);
    border-left: 1px solid rgba(255,255,255,.10);
    display: flex; flex-direction: column; overflow: auto; }
.ad-details-head { font-size: 11px; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: #44DDF9; margin-bottom: 10px; }
.ad-row { display: flex; gap: 11px; align-items: flex-start;
    padding: 10px 0; border-top: 1px solid rgba(255,255,255,.10); }
.ad-row:last-child { border-bottom: 1px solid rgba(255,255,255,.10); }
.ad-row-ic { flex: none; color: #44DDF9; margin-top: 2px; }
.ad-row-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ad-row-txt em { font-style: normal; font-size: 10.5px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: #8FA5B0; }
.ad-row-txt strong { font-weight: 600; font-size: 12.5px; color: #EDF4FA;
    line-height: 1.45; word-break: break-word; }
.ad-kicker { display: inline-block; width: max-content; padding: 4px 13px; border-radius: 999px;
    background: rgba(30,136,229,.22); color: #8FE0EC; font-size: 11px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.ad-copy h3 { color: #FFFFFF; font-size: 26px; margin: 0 0 11px; line-height: 1.2; }
.ad-copy p { color: #C2D3DB; font-size: 13.5px; line-height: 1.6; margin: 0 0 18px; }
.ad-link { color: #8FE0EC; font-weight: 600; font-size: 14.5px; text-decoration: none;
    border-bottom: 1px solid rgba(120,190,250,.4); padding-bottom: 2px; width: max-content; }
.ad-link:hover { color: #FFFFFF; border-color: #FFFFFF; }
.ad-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px;
    border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(10, 37, 64,.75);
    color: #E6EEF7; font-size: 22px; line-height: 1; cursor: pointer; display: flex;
    align-items: center; justify-content: center; z-index: 3; }
.ad-arrow:hover { background: var(--brand); border-color: var(--brand); color: #062A33; }
.ad-prev { left: 14px; }
.ad-next { right: 14px; }
.ad-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 3; }
.ad-dot { width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0;
    background: rgba(255,255,255,.32); cursor: pointer; }
.ad-dot.active { background: var(--brand-light); width: 26px; border-radius: 999px; }

/* thin progress bar that fills over the 5.5s each slide is on screen */
.ad-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
    background: rgba(255,255,255,.10); z-index: 3; }
.ad-progress-bar { display: block; height: 100%; width: 0;
    background: linear-gradient(90deg, var(--brand), var(--brand-light)); }
.ad-carousel.playing .ad-progress-bar { animation: ad-fill var(--ad-duration, 5.5s) linear forwards; }
@keyframes ad-fill { from { width: 0; } to { width: 100%; } }
@media (max-width: 860px) {
    .ad-slide { grid-template-columns: 1fr; }
    .ad-media img, .ad-img-fallback { min-height: 170px; max-height: 170px; }
    .ad-media, .ad-details { border-left: 0; border-top: 1px solid rgba(255,255,255,.10); }
    .ad-copy { padding: 26px 22px 28px; }
    .ad-copy h3 { font-size: 22px; }
    .ad-progress { bottom: 0; }
}

/* ------------------------------------- public records body (readable!) ---
   The landing wrapper sets LIGHT text on a dark background. The records
   content sits on a LIGHT panel, so it must reset the colour to dark text —
   otherwise everything is light-on-light and invisible.                     */
.records-body { background: var(--paper); color: var(--text); }
.records-body .card { background: var(--card); color: var(--text); }
.records-body .muted { color: var(--muted); }
.records-body .small { color: var(--muted); }
.records-body table { color: var(--text); }
.records-body .card-head { color: var(--text); }
.records-body h1, .records-body h2, .records-body h3 { color: var(--text); }
.records-body label { color: var(--text); }
.records-body .kicker { color: var(--brand-deep); }
.records-body tr.group-row td { background: var(--brand-soft); color: var(--text); }
.records-body .empty { color: var(--muted); }

/* ------------------------------------------------------- printable sheet -- */
.print-sheet { max-width: 900px; margin: 0 auto; padding: 34px 30px; background: #fff;
    color: #12283A; font-size: 12.5px; }
.print-head { display: flex; gap: 14px; align-items: center; border-bottom: 2px solid #0A2540;
    padding-bottom: 14px; margin-bottom: 20px; }
.print-head h1 { font-size: 21px; margin: 0; color: #0A2540; }
.print-sheet h2 { font-size: 14px; margin: 22px 0 8px; color: #0A2540; }
.print-table { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
.print-table th { background: #E3F2FD; color: #0A2540; text-align: left; padding: 6px 8px;
    border: 1px solid #DCE7EA; font-size: 11.5px; }
.print-table td { padding: 5px 8px; border: 1px solid #DCE7EA; color: #12283A; }
.print-table tr.grp td { background: #F4F8F9; font-weight: 600; color: #0A2540; }
.print-foot { margin-top: 26px; padding-top: 12px; border-top: 1px solid #DCE7EA;
    color: #5E7482; font-size: 11px; }
@media print {
    .print-sheet { padding: 0; max-width: none; }
    .print-head, .print-foot { box-shadow: none; }
    /* the access-code sheet uses the normal .table, so give it print borders */
    .print-sheet .table th, .print-sheet .table td {
        border: 1px solid #DCE7EA; padding: 5px 8px; }
    .print-sheet .table thead { display: table-header-group; }
    .print-sheet .table tr { page-break-inside: avoid; }
}

/* ------------------------------------------------- inline password reset -- */
.inline-reset { display: inline-flex; gap: 6px; align-items: center; }
.inline-reset input { font-size: 12.5px; }
/* a checkbox with its label, used by the advert show/hide controls */
.check-row { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: #D3E0E6;
    margin: 4px 0 14px; cursor: pointer; }
.check-row input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
/* the advert edit drawer */
tr[data-edit-row] > td { border-top: 1px solid rgba(255,255,255,.12); }
tr[data-edit-row] .field label { color: #C2D3DB; }

.inline-reset input { font-size: 12.5px; }

/* ======================================================================
   PARTNER PAGE — two distinct routes
   "Advertise your product" and "Invest & become a shareholder" are
   deliberately styled differently: the investment route carries a warmer
   gold accent so it reads as a separate, more serious conversation.
   ====================================================================== */
.partner-form { display: grid; gap: 4px; }
.partner-form-head { display: flex; gap: 14px; align-items: flex-start;
    margin-bottom: 18px; padding-bottom: 16px;
    border-bottom: 1px solid var(--line-soft); }
.partner-form-head h3 { font-size: 19px; }
.partner-form-foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
    margin-top: 10px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.10); }

/* ======================================================================
   DEMO SCREENSHOTS — landing page, straight after the advert carousel.
   Each screenshot fades and lifts into place as it scrolls into view.
   ====================================================================== */
.demo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 8px; }
.demo-shot { background: #0A2540; border: 1px solid rgba(255,255,255,.10);
    border-radius: var(--radius); overflow: hidden;
    opacity: 0; transform: translateY(34px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.19,1,.22,1); }
.demo-shot.reveal { opacity: 1; transform: none; }
.demo-shot-frame { position: relative; overflow: hidden; background: #071B30;
    border-bottom: 1px solid rgba(255,255,255,.10); }
.demo-shot-frame img { display: block; width: 100%; height: auto; }
.demo-shot-frame::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10, 37, 64,0) 55%, rgba(10, 37, 64,.55)); }
.demo-shot h3 { color: #FFFFFF; font-size: 17px; margin: 18px 20px 6px; }
.demo-shot p { color: #A9BEC8; font-size: 13.5px; line-height: 1.6; margin: 0 20px 22px; }
@media (max-width: 860px) {
    .demo-grid { grid-template-columns: 1fr; gap: 18px; }
}
/* visitors who prefer reduced motion get the content without the animation */
@media (prefers-reduced-motion: reduce) {
    .demo-shot { opacity: 1; transform: none; transition: none; }
    .ad-media, .ad-copy { transition: none !important; }
    .ad-carousel.playing .ad-progress-bar { animation: none; }
}

/* ======================================================================
   CONTACT BAR + LIVE CHAT
   A thin contact strip above the public navigation, and a floating chat
   assistant.  The assistant runs Dialogflow Messenger when an agent id is
   configured, and a built-in keyword assistant otherwise.
   ====================================================================== */
.contact-bar { background: #0A1B27; border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 12.5px; }
.contact-bar-inner { max-width: 1180px; margin: 0 auto; padding: 7px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.contact-bar-note { color: #7E93A0; }
.contact-bar-links { display: flex; align-items: center; gap: 8px; }
.contact-bar-links a { color: #8FE0EC; font-weight: 600; text-decoration: none; }
.contact-bar-links a:hover { color: #FFFFFF; text-decoration: underline; }
.contact-bar-sep { color: #3E5563; }
.contact-bar-note { display: inline-flex; align-items: center; gap: 10px; }
.contact-bar-social { display: inline-flex; align-items: center; gap: 6px; }
.contact-bar-social a { display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%; color: #9FB4C0;
    border: 1px solid rgba(255,255,255,.18); text-decoration: none;
    transition: background .16s ease, color .16s ease, border-color .16s ease; }
.contact-bar-social a:hover { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }
.contact-bar-social svg { width: 12px; height: 12px; }
@media (max-width: 700px) {
    .contact-bar-note { display: none; }
    .contact-bar-social { display: none; }
    .contact-bar-inner { justify-content: center; }
}

/* --- floating button --- */
/* --- the WhatsApp button inside a bot reply, and the bold inside a message --- */
.chat-msg a.chat-wa { display: inline-block; margin-top: 7px; padding: 6px 12px; border-radius: 8px;
    background: #25D366; color: #FFFFFF; font-weight: 600; font-size: 12.5px; text-decoration: none; }
.chat-msg a.chat-wa:hover { background: #1EB955; }
.chat-msg strong { color: inherit; }
/* "Prefer a person?" -- the lead-in to the footer's human escape hatches */
.chat-foot > span { color: #FFFFFF; font-weight: 400; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 520px) {
    .chat-widget { right: 12px; bottom: 12px; }
    .chat-panel { width: calc(100vw - 24px); height: calc(100vh - 110px); }
    .chat-fab-label { display: none; }
}

/* ======================================================================
   LANDING PAGE CARDS
   `.landing` sets a light body colour for the dark sections, and `.card`
   paints a white panel.  Without this override the card's own text inherits
   the light colour and disappears against the white background.
   ====================================================================== */
.landing .card { color: var(--ink); }
.landing .card h3,
.landing .card-head h3 { color: var(--ink); }
.landing .card .sub,
.landing .card-head .sub { color: var(--muted); }
.landing .card label { color: var(--ink); }
.landing .card .hint { color: var(--muted); }
.landing .card .field input,
.landing .card .field select,
.landing .card .field textarea { color: var(--ink); background: #FFFFFF; }
.landing .card .small,
.landing .card small { color: var(--muted); }
.landing .card .muted { color: var(--muted); }

/* ======================================================================
   INVEST ROUTE — white / green instead of gold
   The user asked for the gold accent to go.  Green now separates the
   investment conversation from the advertising one.  Note the two
   backgrounds: the dark landing sections need a LIGHT green to stay
   legible on navy, while the white form cards need a DARK green.
   ====================================================================== */

/* --- on the dark navy landing sections --- */
.invest-chip { background: rgba(111,220,174,.20) !important; color: #8FECBF !important; }
.invest-card { border: 1px solid rgba(30,158,106,.34) !important;
    background: linear-gradient(160deg, rgba(30,158,106,.07), rgba(255,255,255,.02)) !important; }
.invest-card h3 { color: #0F7A50; }
.invest-card .ic-chip { background: rgba(30,158,106,.14) !important; color: #0F7A50 !important; }
.invest-card p { color: var(--muted); }

/* --- inside the white form cards --- */
.partner-form-invest { border-left: 3px solid var(--green); padding-left: 18px; }
.partner-form-invest .partner-form-head h3 { color: #0F7A50; }
.partner-form-invest .partner-form-head .ic-chip { background: rgba(30,158,106,.14);
    color: #0F7A50; }
.partner-form-invest button.btn-primary { background: var(--green); color: #FFFFFF;
    border-color: var(--green); }
.partner-form-invest button.btn-primary:hover { background: #17845A; }
@media (max-width: 860px) {
    .partner-form-invest { padding-left: 0; border-left: none;
        border-top: 3px solid var(--green); padding-top: 14px; }
}

/* ======================================================================
   FOOTER SOCIAL ICONS
   ====================================================================== */
.foot-social { display: inline-flex; gap: 8px; align-items: center;
    vertical-align: middle; margin-left: 4px; }
.foot-social a { display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%; color: #C2D3DB;
    border: 1px solid rgba(255,255,255,.22); text-decoration: none;
    transition: background .16s ease, color .16s ease, border-color .16s ease; }
.foot-social a:hover { background: var(--brand); border-color: var(--brand);
    color: #FFFFFF; }
.foot-social svg { width: 15px; height: 15px; }

/* ======================================================================
   BACK ARROW
   A top-left arrow that returns to the previous page.  Shown on every page
   except the two main dashboards.
   ====================================================================== */
.back-arrow { display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; flex: none; border-radius: 9px; color: var(--ink);
    border: 1px solid var(--line); background: var(--card); text-decoration: none;
    transition: background .16s ease, color .16s ease, border-color .16s ease; }
.back-arrow:hover { background: var(--brand-soft); color: var(--brand-ink);
    border-color: var(--brand); }
.back-arrow svg { width: 17px; height: 17px; }
/* public pages carry a light back arrow on the dark contact bar */
.contact-bar .back-arrow { color: #C2D3DB; border-color: rgba(255,255,255,.22);
    background: transparent; width: 26px; height: 26px; border-radius: 7px; }
.contact-bar .back-arrow:hover { background: var(--brand); border-color: var(--brand);
    color: #FFFFFF; }
.contact-bar .back-arrow svg { width: 14px; height: 14px; }

/* --

/* the small three-up strip on the CivilPrep waitlist page */
.landing-strip { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap;
    margin: 26px auto 0; max-width: 980px; color: #C4D6E4; font-size: 13px; }
.landing-strip span { display: inline-flex; align-items: center; gap: 7px; }
.landing-strip .ic { color: #44DDF9; }

/* ------------------------------------------------- our core products strip --
   The three systems the company sells, set out directly under the hero
   buttons: School Desk Management System, Store/Inventory Management System
   and Property Management System.                                       */
/* Core products, in the client's reference shape: three items on a slate
   panel beside one accent panel, exactly the band their PROGRAMS /
   CERTIFICATE / AFFORD strip uses.  Six products rotate through it three at a
   time, so the shape never changes -- only which products are in it. */
.core-products { padding: 72px 40px; max-width: 1180px; margin: 0 auto; }
.cp-head { max-width: 1180px; }
.cp-kicker { font-family: var(--sans); font-size: 11.5px; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
    margin-bottom: 14px; }
.cp-kicker::before { content: ""; display: inline-block; width: 26px; height: 1px;
    background: var(--brand); vertical-align: middle; margin-right: 12px; }
.cp-lede { color: var(--muted); font-size: 15px; line-height: 1.65;
    max-width: 62em; margin: 0 0 30px; }
/* the rail holds both groups stacked; only the live one is visible, so the
   band keeps one fixed height while the products swap under it */
.cp-rail { position: relative; }
.cp-set { display: grid; grid-template-columns: repeat(3, 1fr) 1.25fr;
    align-items: stretch; border-radius: 12px; overflow: hidden;
    background: linear-gradient(180deg, #1E3E63 0%, #17324F 100%);
    border: 1px solid rgba(19,44,80,.10);
    opacity: 0; visibility: hidden; position: absolute; inset: 0;
    transition: opacity 520ms ease; }
.cp-set.is-on { opacity: 1; visibility: visible; position: relative; }
.cp-card { display: flex; gap: 13px; align-items: flex-start; padding: 22px 19px;
    text-decoration: none; color: #E6EEF7;
    border-right: 1px solid rgba(255,255,255,.08); }
.cp-card:hover { background: rgba(255,255,255,.05); }
.cp-ic { flex: none; color: #9FD8EA; }
.cp-text { display: flex; flex-direction: column; gap: 2px; }
.cp-name { font-family: var(--sans); font-size: 13.5px; font-weight: 800;
    letter-spacing: .09em; text-transform: uppercase; line-height: 1.35;
    color: #FFFFFF; }
.cp-abbr { font-family: var(--serif); font-size: 19px; font-weight: 800;
    color: #44DDF9; line-height: 1.2; }
.cp-body { margin: 5px 0 0; font-size: 13px; line-height: 1.62; color: #D9E8F3; }
/* the accent panel on the right, the way the reference closes its strip */
.cp-cta { display: flex; align-items: center; justify-content: space-between;
    gap: 14px; padding: 20px 22px; text-decoration: none;
    background: linear-gradient(180deg, #2FC7A8 0%, #22A98D 100%); color: #06281F; }
.cp-cta:hover { background: linear-gradient(180deg, #37D3B4 0%, #26B397 100%); }
.cp-cta-txt { display: flex; flex-direction: column; gap: 1px; }
.cp-cta-txt strong { font-size: 13px; font-weight: 800; letter-spacing: .09em;
    text-transform: uppercase; }
.cp-cta-txt em { font-style: normal; font-size: 12px; color: rgba(6,40,31,.72); }
.cp-cta-arrow { display: flex; flex: none; }
/* the three dots under the band say where in the six you are */
.cp-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.cp-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0;
    background: rgba(19,44,80,.18); cursor: pointer; }
.cp-dot.is-on { background: var(--brand); width: 26px; border-radius: 999px; }
@media (max-width: 980px) {
    .cp-set { grid-template-columns: 1fr 1fr; }
    .cp-card { border-bottom: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 620px) { .cp-set { grid-template-columns: 1fr; } }

/* screen-reader-only text: available to assistive tech, invisible on screen */

/* ---------------- a look inside ---------------- */
/* The client's reference: copy with a check list on the left, the picture in
   the middle, and a dated list down the right the way "Latest News" is set.
   Three columns on white, hairline rules between them. */
.look-inside { padding: 72px 40px; max-width: 1180px; margin: 0 auto; }
.li-grid { display: grid; grid-template-columns: 1fr 1.02fr .82fr;
    gap: 34px; align-items: start; }
.li-copy h2 { font-family: var(--serif); font-size: 32px; color: var(--ink);
    margin: 0 0 14px; line-height: 1.18; }
.li-copy h2 em { font-style: normal; color: var(--brand); }
.li-copy > p { color: var(--muted); font-size: 14.5px; line-height: 1.65;
    margin: 0 0 20px; }
.li-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.li-list li { display: flex; gap: 10px; align-items: flex-start;
    font-size: 14px; color: var(--text); }
.li-list .ic { flex: none; color: var(--brand); margin-top: 2px; }
.li-shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
    box-shadow: 0 18px 40px -22px rgba(19,44,80,.28); }
.li-shot img { display: block; width: 100%; height: auto; }
/* the news column */
.li-side { padding-left: 30px; border-left: 1px solid var(--line); }
.li-side-head { font-family: var(--serif); font-size: 21px; color: var(--ink);
    margin: 0 0 6px; }
.li-row { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between;
    padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; }
.li-row:last-child { border-bottom: 1px solid var(--line); }
.li-row:hover .li-row-txt strong { color: var(--brand); }
.li-row-txt { display: flex; flex-direction: column; gap: 2px; }
.li-row-txt strong { font-size: 14px; font-weight: 700; color: var(--ink);
    transition: color .16s; }
.li-row-txt em { font-style: normal; font-size: 12.5px; color: var(--muted);
    line-height: 1.45; }
.li-row-date { flex: none; font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 980px) {
    .li-grid { grid-template-columns: 1fr; gap: 30px; }
    .li-side { padding-left: 0; border-left: 0; border-top: 1px solid var(--line);
        padding-top: 20px; }
}

/* ------------------------------------------- partner page contact block --
   The plain label/value list was replaced with rows that carry their own
   icon, the way the main contact menu does, and a highlighted response-time
   badge so the promise is the last thing you read.
   --------------------------------------------------------------------------- */
.contact-card { padding: 24px 26px 22px; }
.contact-card-head { display: flex; gap: 14px; align-items: flex-start;
    margin-bottom: 18px; padding-bottom: 18px;
    border-bottom: 1px solid var(--line-soft); }
.contact-card-head h3 { font-size: 19px; margin: 0 0 3px; color: var(--ink); }
.contact-rows { display: grid; gap: 0; }
.contact-row { display: flex; gap: 13px; align-items: center;
    padding: 12px 0; text-decoration: none;
    border-top: 1px solid var(--line-soft); }
.contact-row:first-child { border-top: 0; }
.contact-row:hover .contact-row-tx strong { color: var(--brand-deep); }
.contact-row-ic { flex: none; width: 34px; height: 34px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-soft); color: var(--brand);
    transition: background .16s, color .16s; }
.contact-row:hover .contact-row-ic { background: var(--brand); color: #FFFFFF; }
.contact-row-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.contact-row-tx em { font-style: normal; font-size: 10.5px; font-weight: 700;
    letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
.contact-row-tx strong { font-size: 13.5px; font-weight: 600; color: var(--ink);
    word-break: break-word; transition: color .16s; }
.contact-badge { display: flex; align-items: center; gap: 11px; margin-top: 18px;
    padding: 12px 15px; border-radius: 11px;
    background: rgba(34,169,141,.10); border: 1px solid rgba(34,169,141,.28); }
.contact-badge-ic { flex: none; display: flex; color: #17845A; }
.contact-badge-tx { display: flex; flex-direction: column; gap: 1px;
    font-size: 13px; color: var(--text); }
.contact-badge-tx strong { font-size: 11px; font-weight: 800; letter-spacing: .11em;
    text-transform: uppercase; color: #17845A; }

/* ------------------------------------------------- the two partner paths --
   Advertising and investing are different conversations, so the home page
   now offers them as two distinct, equal-weight cards rather than one mixed
   "become a partner" button.  Each is a full-width link with its own icon,
   label, sub-label and a short line of what the page is actually for.
   --------------------------------------------------------------------------- */
.partner-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.partner-path { display: flex; align-items: flex-start; gap: 15px; padding: 24px 24px 22px;
    text-decoration: none; border-radius: 14px; border: 1px solid var(--line);
    background: var(--card); box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.partner-path:hover { transform: translateY(-3px);
    box-shadow: 0 18px 40px -18px rgba(19,44,80,.28); border-color: rgba(30,110,197,.34); }
.partner-path-ic { flex: none; width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-soft); color: var(--brand); }
.partner-path-alt .partner-path-ic { background: var(--green-soft); color: var(--green); }
.partner-path-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.partner-path-tx strong { font-family: var(--sans); font-size: 17px; font-weight: 800;
    color: var(--ink); line-height: 1.25; }
.partner-path-tx em { font-style: normal; font-size: 11px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.partner-path-alt .partner-path-tx em { color: var(--green); }
.partner-path-tx span { font-size: 13.5px; line-height: 1.6; color: var(--muted);
    margin-top: 4px; }
.partner-path-arrow { flex: none; align-self: center; color: var(--muted-2);
    transition: transform .18s ease, color .18s ease; }
.partner-path:hover .partner-path-arrow { transform: translateX(4px); color: var(--brand); }
@media (max-width: 860px) {
    .partner-split { grid-template-columns: 1fr; }
}

/* ------------------------------------------------- the four portal icons --
   Four colour chips in a row, the way a welcome screen sets its provider
   icons: one colour each, white glyph, nothing else competing with them.
   --------------------------------------------------------------------------- */
.auth-hero-icons { display: flex; gap: 20px; justify-content: center;
    margin: 0 0 16px; }
.auth-hero-ic { width: 44px; height: 44px; border-radius: 12px; flex: none;
    display: flex; align-items: center; justify-content: center;
    color: #FFFFFF; box-shadow: 0 8px 20px -8px rgba(4,16,32,.6); }
.auth-solo .auth-hero-ic { box-shadow: 0 6px 14px -6px rgba(19,44,80,.42); }
.auth-hero-ic-admin   { background: #1E6EC5; }
.auth-hero-ic-teacher { background: #22A98D; }
.auth-hero-ic-parent  { background: #E8A33D; }
.auth-hero-ic-student { background: #7C5CD6; }

/* --------------------------------------------------- Waterriff credit ----
   The mark is black, so it lives at the foot of the white column rather than
   on the dark plate: no plate, no chip, no recolouring -- just the logo at a
   size you can actually read, with the credit beside it.
   --------------------------------------------------------------------------- */
.auth-brandmark { display: flex; align-items: center; gap: 15px; margin-top: 26px; }
.auth-solo .auth-brandmark { margin-top: 22px; }
.auth-brandmark-logo { height: 48px; width: auto; display: block; flex: none; }
.auth-brandmark-tx { display: flex; flex-direction: column; gap: 1px;
    font-size: 11.5px; color: var(--muted); line-height: 1.45; }
.auth-brandmark-tx a { color: var(--brand); font-weight: 700; text-decoration: none; }
.auth-brandmark-tx a:hover { text-decoration: underline; }
.auth-brandmark-ver { color: var(--muted-2); font-size: 11px; margin-top: 2px; }

/* ------------------------------------------------------- the email gate --
   The conversation is closed until an email is left.  The gate replaces the
   log, the chips and the input; submitting it drops the gate for good and
   remembers the address, so a returning visitor walks straight in.
   --------------------------------------------------------------------------- */
.chat-gate { display: none; flex-direction: column; gap: 10px; padding: 18px 16px 20px;
    background: #FFFFFF; }
.chat-widget[data-chat-gated] .chat-gate { display: flex; }
.chat-widget[data-chat-gated] .chat-log,
.chat-widget[data-chat-gated] .chat-quick,
.chat-widget[data-chat-gated] .chat-form { display: none; }
.chat-gate-head { display: flex; align-items: flex-start; gap: 11px; }
.chat-gate-ic { flex: none; width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: #0A1F37; color: #FFFFFF; }
.chat-gate-tx { display: flex; flex-direction: column; gap: 2px; }
.chat-gate-tx strong { font-size: 13.5px; color: var(--ink); line-height: 1.3; }
.chat-gate-tx span { font-size: 12px; color: var(--muted); line-height: 1.45; }
.chat-gate input { width: 100%; border: 1px solid var(--line); border-radius: 9px;
    padding: 10px 12px; font-size: 13px; }
.chat-gate input:focus { outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(30,110,197,.14); }
.chat-gate .btn { width: 100%; justify-content: center; }
.chat-gate-note { margin: 0; font-size: 11px; color: var(--muted-2); text-align: center; }
.chat-gate-err { margin: 0; font-size: 11.5px; font-weight: 600; color: #C0483D; }

/* ------------------------------------------------- the school registration --
   Same card, same sky, same rules as the sign-in screen -- only the fields
   change.  A school hands over its name, address, size, contacts and, the
   question that decides how long setup takes, whether it is already running
   a database or a report-sheet generator.
   --------------------------------------------------------------------------- */
.auth-reg .auth-box { max-width: 560px; }
.reg-form .field { margin-bottom: 13px; }
.reg-opt { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.reg-set { border: 0; padding: 0; margin: 4px 0 18px; }
.reg-set legend { font-size: 12.5px; font-weight: 600; color: var(--ink);
    margin-bottom: 8px; padding: 0; }
.reg-radios { display: grid; gap: 7px; }
.reg-radio { display: flex; align-items: center; gap: 9px; font-size: 13px;
    color: var(--text); cursor: pointer; }
.reg-radio input { width: 16px; height: 16px; accent-color: var(--brand);
    cursor: pointer; margin: 0; flex: none; }
.reg-detail { width: 100%; height: 40px; border: 1px solid #B9C4D0;
    border-radius: 4px; padding: 0 11px; font-size: 13.5px; margin-top: 9px;
    background: #FFFFFF; }
.reg-detail:focus { outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand); }
.reg-done { text-align: center; padding: 6px 0 20px; }
.reg-done-ic { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    background: var(--green-soft, #E4F5EE); color: var(--green, #22A98D); }
.reg-done h2 { font-size: 19px; font-weight: 700; color: var(--ink);
    margin: 0 0 8px; }
.reg-done p { font-size: 13.5px; color: var(--text); line-height: 1.6;
    margin: 0 0 6px; }
.reg-done .small { font-size: 12px; }

/* ------------------------------------------------------------------- chat --
   The live-chat panel and its launcher.  The markup has been shipping since
   the first build but the rules for it were never written, so the launcher
   rendered as a bare browser button and the panel never appeared at all.
   --------------------------------------------------------------------------- */
.chat-widget { position: fixed; right: 20px; bottom: 20px; z-index: 9000;
    display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
    font-family: var(--sans); }
/* the round launcher, in the client's navy */
.chat-fab { position: relative; width: 56px; height: 56px; border-radius: 50%;
    border: 0; padding: 0; cursor: pointer; display: flex; align-items: center;
    justify-content: center; color: #FFFFFF; background: #0A1F37;
    box-shadow: 0 12px 28px -8px rgba(10,31,55,.55);
    transition: transform .16s, background .16s, box-shadow .16s; }
.chat-fab:hover { background: #14355C; transform: translateY(-2px); }
.chat-fab-icon { display: flex; }
.chat-fab-close { display: none; font-size: 26px; line-height: 1; }
.chat-fab-label { position: absolute; right: 68px; top: 50%;
    transform: translateY(-50%); white-space: nowrap;
    background: #0A1F37; color: #FFFFFF; font-size: 12.5px; font-weight: 600;
    padding: 7px 12px; border-radius: 8px; opacity: 0; pointer-events: none;
    transition: opacity .16s; }
.chat-fab:hover .chat-fab-label { opacity: 1; }
/* once the panel is open the launcher becomes the close button.  The script
   marks the widget with data-chat-open, not a class. */
.chat-widget[data-chat-open] .chat-fab { background: #14355C; }
.chat-widget[data-chat-open] .chat-fab-icon { display: none; }
.chat-widget[data-chat-open] .chat-fab-close { display: block; }
.chat-widget[data-chat-open] .chat-fab-label { display: none; }
/* the three dots while the assistant is "typing" */
.chat-msg.typing { color: var(--muted); font-style: italic; }
.chat-typing::after { content: "\2026"; }
/* the panel */
.chat-panel { width: min(360px, calc(100vw - 40px)); background: #FFFFFF;
    border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
    box-shadow: 0 24px 60px -18px rgba(10,37,64,.38);
    display: flex; flex-direction: column; max-height: min(520px, calc(100vh - 120px)); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 11px; padding: 13px 14px;
    background: #0A1F37; color: #FFFFFF; }
.chat-head-avatar { width: 34px; height: 34px; border-radius: 50%; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.18); }
.chat-head-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.chat-head-text strong { font-size: 13.5px; line-height: 1.25; }
.chat-head-text span { font-size: 11.5px; color: #E8F1F8; font-weight: 500; }
.chat-close { margin-left: auto; flex: none; width: 28px; height: 28px;
    border: 0; border-radius: 8px; background: rgba(255,255,255,.14);
    color: #FFFFFF; font-size: 18px; line-height: 1; cursor: pointer; }
.chat-close:hover { background: rgba(255,255,255,.26); }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex;
    flex-direction: column; gap: 10px; background: #F7FAFC; min-height: 130px; }
.chat-msg { max-width: 86%; padding: 9px 12px; border-radius: 12px;
    font-size: 13px; line-height: 1.5; }
.chat-msg.bot { align-self: flex-start; background: #FFFFFF;
    border: 1px solid var(--line); color: var(--text); }
.chat-msg.me { align-self: flex-end; background: var(--brand); color: #FFFFFF; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 14px 0; }
.chat-chip { border: 1px solid var(--line); background: #FFFFFF;
    border-radius: 999px; padding: 6px 12px; font-size: 12px; color: var(--muted);
    cursor: pointer; }
.chat-chip:hover { border-color: var(--brand); color: var(--brand-deep); }
.chat-form { display: flex; gap: 8px; padding: 12px 14px 6px; }
.chat-form input { flex: 1; min-width: 0; padding: 10px 12px; font-size: 13px;
    border: 1px solid var(--line); border-radius: 9px; }
.chat-form input:focus { outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(30,110,197,.12); }
.chat-send { flex: none; width: 40px; height: 40px; border: 0; border-radius: 9px;
    background: var(--brand); color: #FFFFFF; cursor: pointer;
    display: flex; align-items: center; justify-content: center; }
.chat-send:hover { background: var(--brand-deep); }
.chat-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    padding: 10px 14px 12px; font-size: 12px; background: #0A1F37; color: #FFFFFF; }
.chat-foot a { color: #FFFFFF; font-weight: 400; text-decoration: none; }
.chat-foot a:hover { color: #BFD6E8; text-decoration: underline; }
.chat-foot-sep { color: rgba(255,255,255,.65); }
/* the thin contact strip above the public navigation -- the classes are
   .contact-bar*, and these rules were never written either */
.contact-bar { background: var(--ink); color: #C4D6E4; font-size: 12.5px; }
.contact-bar-inner { max-width: 1180px; margin: 0 auto; padding: 8px 32px;
    display: flex; align-items: center; justify-content: center; gap: 14px;
    flex-wrap: wrap; }
.contact-bar a { color: #9FD8EA; text-decoration: none; font-weight: 600; }
.contact-bar a:hover { color: #FFFFFF; text-decoration: underline; }
.contact-bar-note { color: #A8BCC6; }
.contact-bar-social { display: inline-flex; gap: 9px; }
.contact-bar-social a { display: inline-flex; }
.contact-bar-social svg { width: 15px; height: 15px; }
.contact-bar-links { display: inline-flex; align-items: center; gap: 8px;
    flex-wrap: wrap; }
.contact-bar-sep { color: rgba(255,255,255,.26); }
.back-arrow { display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 7px;
    background: rgba(255,255,255,.10); color: #DCE9F5; }
.back-arrow:hover { background: rgba(255,255,255,.20); color: #FFFFFF; }
.back-arrow svg { width: 15px; height: 15px; }
@media (max-width: 620px) {
    .chat-widget { right: 14px; bottom: 14px; }
    .chat-fab-label { display: none; }
}

/* ------------------------------------------------------------------ footer --
   The client's reference footer: a light newsletter band, a dark four-column
   block (brand, links, company, contact, offices), a thin bottom bar, and a
   round accent button that returns to the top.
   --------------------------------------------------------------------------- */
.foot-sub { background: #EFF2F4; border-top: 1px solid var(--line); }
.foot-sub-inner { max-width: 1180px; margin: 0 auto; padding: 30px 40px;
    display: flex; align-items: center; justify-content: space-between; gap: 26px;
    flex-wrap: wrap; }
.foot-sub-copy { display: flex; flex-direction: column; gap: 3px; max-width: 44em; }
.foot-sub-copy strong { font-family: var(--serif); font-size: 19px; color: var(--ink); }
.foot-sub-copy span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.foot-sub-form { display: flex; gap: 10px; flex: none; }
.foot-sub-form input { width: 260px; padding: 11px 14px; font-size: 13.5px;
    border: 1px solid var(--line); border-radius: 8px; background: #FFFFFF;
    color: var(--text); }
.foot-sub-form input:focus { outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(30,110,197,.12); }

.landing-foot { position: relative; color: #A8BCC6;
    background: linear-gradient(160deg, #132C50 0%, #0C1E39 100%); }
.foot-grid { max-width: 1180px; margin: 0 auto; padding: 46px 40px 34px;
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr 1fr; gap: 30px;
    align-items: start; }
.foot-brand img { display: block; height: auto; margin-bottom: 14px; }
.foot-brand p { margin: 0 0 16px; font-size: 13px; line-height: 1.6; color: #9DB3C4; }
.foot-social { display: flex; gap: 10px; }
.foot-social a { width: 34px; height: 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
    color: #C4D6E4; transition: background .16s, border-color .16s, color .16s; }
.foot-social a:hover { background: var(--brand); border-color: var(--brand);
    color: #FFFFFF; }
.foot-social svg { width: 16px; height: 16px; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col-head { font-family: var(--sans); font-size: 12px; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase; color: #FFFFFF;
    margin-bottom: 5px; }
.foot-col a { font-size: 13px; color: #A8BCC6; text-decoration: none;
    transition: color .16s; }
.foot-col a:hover { color: #44DDF9; }
.foot-office { margin: 0; font-size: 13px; line-height: 1.5; color: #9DB3C4; }
.foot-office strong { display: block; color: #E6EEF7; font-size: 13px; }
.foot-bar { border-top: 1px solid rgba(255,255,255,.10);
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    flex-wrap: wrap; padding: 16px 40px; max-width: 1180px; margin: 0 auto;
    font-size: 12.5px; color: #8FA5B0; }
.foot-bar-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-bar-nav a { color: #A8BCC6; text-decoration: none; }
.foot-bar-nav a:hover { color: #44DDF9; }
/* the round accent button, centred on the footer's top edge the way the
   reference sets it */
.foot-top { position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #22A98D; color: #FFFFFF; text-decoration: none;
    box-shadow: 0 10px 24px -10px rgba(34,169,141,.7);
    transition: background .16s, transform .16s; }
.foot-top:hover { background: #1E987C; transform: translateX(-50%) translateY(-2px); }
.foot-top .ic { transform: rotate(-90deg); }
@media (max-width: 980px) {
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
    .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
    .foot-grid { grid-template-columns: 1fr; }
    .foot-sub-form { width: 100%; }
    .foot-sub-form input { flex: 1; width: auto; }
}

/* ---------------------------------------------------------------------------
   Sign-in additions: password visibility, the human check and the cookie
   preference link.
   --------------------------------------------------------------------------- */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 46px; }
.pw-eye { position: absolute; top: 0; right: 0; height: 38px; width: 40px;
    display: flex; align-items: center; justify-content: center; border: 0;
    background: none; color: var(--muted); cursor: pointer; border-radius: 8px; }
.pw-eye:hover { color: var(--ink); background: var(--brand-soft); }
.pw-eye:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

.captcha { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
    padding: 11px 13px; margin: 4px 0 16px; }
.captcha-box { display: flex; align-items: center; gap: 9px; cursor: pointer;
    font-size: 14px; color: var(--ink); user-select: none; }
.captcha-box input { width: 17px; height: 17px; accent-color: var(--brand);
    cursor: pointer; margin: 0; }
.captcha-mark { margin-left: auto; color: var(--muted); display: flex; }
.captcha-q { flex-basis: 100%; display: flex; align-items: center; gap: 10px;
    border-top: 1px solid var(--line); padding-top: 11px; margin-top: 2px; }
.captcha-q[hidden] { display: none; }
.captcha-q label { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.captcha-q input { max-width: 130px; }

.auth-legal { margin: 14px 0 0; font-size: 12.5px; color: var(--muted);
    text-align: center; }
.auth-legal a { color: var(--muted); text-decoration: underline; }
.auth-legal a:hover { color: var(--brand-deep); }

/* the cookie preference sheet, shown on first visit and on demand.  It sits
   above the chat bubble (z-index 9000) and is pulled in from the right so its
   buttons are never hidden behind the bubble. */
.cookie-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px;
    z-index: 9100; width: min(680px, calc(100% - 120px)); background: var(--card);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 16px;
    box-shadow: 0 18px 46px rgba(10, 37, 64, .22); display: flex; gap: 16px;
    align-items: center; }
.cookie-bar[hidden] { display: none; }
.cookie-bar h4 { margin: 0 0 2px; font-size: 14px; }
.cookie-bar p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.cookie-bar .cookie-actions { display: flex; gap: 8px; flex-shrink: 0;
    align-items: center; flex-wrap: wrap; }
@media (max-width: 620px) {
  .cookie-bar { flex-direction: column; }
  .cookie-bar .cookie-actions { width: 100%; }
}


/* ==========================================================================
   GOVERNMENT COLOUR SPLIT
   --------------------------------------------------------------------------
   The government product is a different thing sold to a different buyer, so
   its primary colour is green where the private product is teal.  Everything
   hangs off `body.gov`, which only the government pages carry, so the private
   system's colours are not touched at all.
   ========================================================================== */
body.gov {
    /* A deeper, sharper green than the first pass: the previous mint read as
       washed out next to the private product's teal, and its primary buttons
       kept the dark ink text meant for a light background. */
    --brand:       #0B7A55;
    --brand-light: #12996A;
    --brand-soft:  #E1F4EC;
    --brand-deep:  #065C41;
    --primary:     #0B7A55;
    --primary-soft: #E1F4EC;
    --brand-ink:   #065C41;
    --blue:        #0A6B4C;
    --blue-soft:   #DCF0E7;
    --green:       #0B7A55;
    --green-soft:  #E1F4EC;
}

/* Chips, badges and callouts that name the colour directly rather than
   borrowing --brand still follow, because they are part of the same language. */
body.gov .ic-chip.blue   { background: var(--blue-soft); color: var(--blue); }
body.gov .badge.blue     { background: var(--blue-soft); color: var(--blue);
                           border-color: #C4E5D8; }
body.gov .callout.blue   { background: var(--blue-soft); border-color: #C4E5D8;
                           color: #0C523E; }
body.gov .callout.blue .ic { color: var(--blue); }
body.gov .flash.info     { background: var(--blue-soft); border-color: #C4E5D8;
                           color: #0C523E; }

/* The few rules that hard-code a teal hex instead of using a variable. */
body.gov .btn-light:hover { color: #0E6B4E; }
body.gov .ad-img-fallback { background: linear-gradient(140deg, #0A2540, #0E6B4E); }
body.gov .print-table th  { background: #E3F6EE; }

/* The active sidebar entry and the login page's government sign-in button
   pick up the same green, so the two never look like the same product. */
body.gov .side a.active,
body.gov .side a[aria-current="page"] { color: #FFFFFF; }
/* The base .btn-primary carries a dark ink colour because the private product
   puts it on a light teal.  On the government product the button is a deep
   green, so the text has to be white or it is unreadable. */
body.gov .btn-primary,
body.gov a.btn-primary,
body.gov button.btn-primary {
    background: linear-gradient(180deg, var(--brand), var(--brand-deep));
    border-color: var(--brand-deep);
    color: #FFFFFF;
    box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 6px 16px -8px rgba(6,92,65,.65);
}
body.gov .btn-primary:hover,
body.gov a.btn-primary:hover,
body.gov button.btn-primary:hover {
    background: var(--brand-deep);
    border-color: var(--brand-deep);
    color: #FFFFFF;
    filter: none;
}
body.gov .btn-primary .ic,
body.gov .btn-primary svg { color: #FFFFFF; }
/* The dark "ink" button and the outline button both inherit a colour meant for
   the private palette, so pin them down here too. */
body.gov .btn-ink { background: #12352A; color: #EAF6F0; border-color: #12352A; }
body.gov .btn-ink:hover { background: #0B251C; color: #FFFFFF; }
body.gov .btn-outline:hover { color: var(--brand-deep); border-color: var(--brand); }

/* ---------------------------------------------------------------- CBT -----
   The practice area.  Nothing here is scoped to either product: the same
   tiles, the same question screen and the same clock serve a government
   student, a private student and an administrator previewing the area, and
   the colours follow whichever shell they are inside. */

/* ---- the subject tiles, as in the sample the school sent --------------- */
.cbt-tiles { display: grid; gap: 12px; margin-top: 16px; }
.cbt-tile {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px; border-radius: 14px;
    background: var(--card); border: 1px solid var(--line);
    text-decoration: none; color: var(--text);
    box-shadow: var(--shadow);
    transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.cbt-tile:hover { transform: translateY(-1px); border-color: var(--brand);
                  box-shadow: var(--shadow-lg); text-decoration: none; }
.cbt-tile-ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; flex: none; border-radius: 12px;
    color: #FFFFFF;
}
.cbt-tile-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.cbt-tile-name { font-weight: 650; font-size: 15px; }
.cbt-tile-meta { font-size: 12px; color: var(--muted); }
.cbt-tile-pills { display: flex; gap: 6px; flex: none; }
.cbt-pill {
    font-size: 11px; font-weight: 700; letter-spacing: .04em;
    padding: 4px 9px; border-radius: 999px;
    background: var(--primary-soft); color: var(--brand-ink);
    border: 1px solid var(--line);
}
.cbt-pill:hover { background: var(--primary); color: #FFFFFF; text-decoration: none; }

/* a vivid colour per subject, exactly as the sample does */
.tone-blue    .cbt-tile-ic { background: #2C6BE0; }
.tone-indigo  .cbt-tile-ic { background: #4B4FD8; }
.tone-violet  .cbt-tile-ic { background: #7B3FD4; }
.tone-teal    .cbt-tile-ic { background: #0E9C93; }
.tone-orange  .cbt-tile-ic { background: #E2721F; }
.tone-amber   .cbt-tile-ic { background: #C98A12; }
.tone-sky     .cbt-tile-ic { background: #2A86C8; }
.tone-emerald .cbt-tile-ic { background: #12996A; }
.tone-rose    .cbt-tile-ic { background: #D4436B; }
.tone-lime    .cbt-tile-ic { background: #6FA81C; }
.tone-fuchsia .cbt-tile-ic { background: #B8369E; }
.tone-pink    .cbt-tile-ic { background: #D8568F; }
.tone-cyan    .cbt-tile-ic { background: #1189A8; }
.tone-purple  .cbt-tile-ic { background: #6B3FD4; }

/* ---- the exam bar: subject pills, back arrow and Submit ---------------- */
.cbt-exam-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; margin-bottom: 14px;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow);
}
.cbt-back {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; flex: none; border-radius: 10px;
    background: var(--paper); color: var(--text); border: 1px solid var(--line);
}
.cbt-back:hover { background: var(--primary-soft); text-decoration: none; }
.cbt-exam-pills { display: flex; gap: 7px; flex-wrap: wrap; flex: 1; min-width: 0; }
.cbt-subject-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
    background: var(--paper); border: 1px solid var(--line); color: var(--text);
    white-space: nowrap;
}
.cbt-subject-pill:hover { border-color: var(--brand); text-decoration: none; }
.cbt-subject-pill.is-on { background: var(--primary); color: #FFFFFF;
                          border-color: var(--primary); }
.cbt-submit { flex: none; }

/* ---- progress and the running clock ------------------------------------ */
.cbt-progress {
    padding: 14px 16px; margin-bottom: 14px;
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow);
}
.cbt-progress-top {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; font-weight: 600;
}
.cbt-count { color: var(--text); }
.cbt-clock {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px;
    background: var(--red-soft); color: var(--red);
    font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px;
}
.cbt-clock.is-low { background: var(--red); color: #FFFFFF; }
.cbt-bar {
    height: 8px; border-radius: 999px; background: var(--line-soft);
    overflow: hidden; margin-top: 12px;
}
.cbt-bar-fill {
    height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-light), var(--brand));
    transition: width .3s ease;
}

/* ---- one question on screen, with large tappable options --------------- */
.cbt-options { display: grid; gap: 10px; margin-top: 18px; }
.cbt-option {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--card); cursor: pointer; line-height: 1.5;
    transition: border-color .15s ease, background .15s ease;
}
.cbt-option:hover { border-color: var(--brand); }
.cbt-option.is-on { border-color: var(--primary); background: var(--primary-soft); }
.cbt-option input[type="radio"] {
    margin-top: 3px; accent-color: var(--primary); flex: none;
}
.cbt-letter {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; flex: none; border-radius: 8px;
    background: var(--primary-soft); color: var(--brand-ink);
    font-weight: 700; font-size: 13px;
}
.cbt-option.is-on .cbt-letter { background: var(--primary); color: #FFFFFF; }
.cbt-question {
    padding: 20px 22px; background: var(--card);
    border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.cbt-question-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
.cbt-qno { font-size: 12px; font-weight: 700; letter-spacing: .05em;
           text-transform: uppercase; color: var(--brand-ink); margin-bottom: 8px; }
.cbt-question h2 { margin: 0; font-size: 18px; line-height: 1.55; font-weight: 650; }
.cbt-question-foot {
    display: flex; justify-content: space-between; align-items: center;
    gap: 14px; margin-top: 18px; padding-top: 14px;
    border-top: 1px solid var(--line-soft);
}
.cbt-foot-actions { display: flex; gap: 8px; }
/* a question that has just been answered dims while the next one loads, so
   the automatic move forward does not feel like a jump */
.cbt-question.is-moving { opacity: .45; transition: opacity .12s ease; }

/* ---- the question head tools and the Go-to / Previous / Next row -------- */
.cbt-head-side { display: flex; align-items: center; gap: 8px; flex: none; }
.cbt-tool {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; padding: 0; border-radius: 10px;
    background: var(--card); border: 1px solid var(--line); color: var(--muted);
    cursor: pointer;
}
.cbt-tool:hover { border-color: var(--brand); color: var(--text); }
.cbt-tool.is-on { background: var(--primary-soft); border-color: var(--primary);
                  color: var(--brand-ink); }
.cbt-goto { display: inline-flex; align-items: center; gap: 7px; }
.cbt-goto-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cbt-goto select {
    padding: 8px 10px; border-radius: 10px; font-size: 12.5px;
    background: var(--card); border: 1px solid var(--line); color: var(--text);
}
.cbt-goto select:hover { border-color: var(--brand); }
.cbt-foot-actions .btn { padding: 8px 12px; font-size: 12.5px; }

/* ---- the graduates register: a report sheet with every row on it -------- */
/* The state authority's register carries a School column and runs wider than a
   single school's, so the cells are given room instead of being squeezed. */
.rc-register-wide .rc-head { padding: 22px 30px; }
.rc-register-wide .rc-register-table th,
.rc-register-wide .rc-register-table td { padding: 11px 13px; font-size: 12.5px;
    white-space: nowrap; }
.rc-register-wide .rc-register-table td.wrap,
.rc-register-wide .rc-register-table td.small { white-space: normal; }
.rc-register-wide .rc-summary { grid-template-columns: repeat(4, 1fr); padding: 18px 30px; }
.rc-register-table th,
.rc-register-table td { padding: 9px 10px; font-size: 12.5px; }
.rc-register .rc-summary { grid-template-columns: repeat(4, 1fr); }
.rc-register .rc-summary .v { font-size: 13px; }

/* ---- the statistics display: plain CSS bars, no chart library ----------- */
/* A statistics row must never shrink or clip: the label wraps onto as many
   lines as it needs, the number keeps its own column, and the row grows with
   its content instead of being cut off by the panel. */
.stat-row { padding: 10px 0; border-bottom: 1px solid var(--line-soft);
    overflow: visible; }
.stat-row:last-child { border-bottom: 0; }
.stat-row-top {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 12px; font-size: 13px; color: var(--text); min-width: 0;
}
.stat-row-top > span { min-width: 0; overflow-wrap: anywhere; }
.stat-row-top > strong { flex: none; white-space: nowrap; }
.stat-row-top strong { font-family: var(--serif); font-size: 16px; }
.stat-track {
    height: 9px; border-radius: 999px; margin-top: 7px;
    background: var(--line-soft); overflow: hidden;
}
.stat-fill {
    height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-light), var(--brand));
    transition: width .4s ease;
}
.stat-fill.green   { background: linear-gradient(90deg, #34C77B, #12996A); }
.stat-fill.blue    { background: linear-gradient(90deg, #5AA9F5, #2C6BE0); }
.stat-fill.violet  { background: linear-gradient(90deg, #A98BF0, #6B3FD4); }
.stat-fill.ink     { background: linear-gradient(90deg, #6C8A99, #29414D); }
.stat-fill.red     { background: linear-gradient(90deg, #F5836F, #D2453A); }
.stat-foot { font-size: 11.5px; color: var(--muted); margin-top: 5px; }

/* ---- the map and the faded flags near the top of the admin shell ------- */
.map-strip {
    position: relative; overflow: hidden;
    border-radius: 16px; border: 1px solid var(--line);
    background: linear-gradient(135deg, var(--primary-soft), var(--card));
    box-shadow: var(--shadow);
}
.map-strip-inner {
    position: relative; z-index: 2;
    display: flex; align-items: center; gap: 20px;
    padding: 20px 24px; flex-wrap: wrap;
}
.map-strip-kicker {
    font-size: 11px; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: var(--brand-ink);
}
.map-strip-title { font-family: var(--serif); font-size: 21px; margin-top: 3px; }
.map-strip-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.map-flags { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.map-flag {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 11px; border-radius: 12px;
    background: var(--card); border: 1px solid var(--line);
    font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
    color: var(--text); text-transform: uppercase;
}
.map-flag span.flag-art {
    display: block; width: 26px; height: 18px; border-radius: 3px;
    overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.map-flag img.flag-photo {
    display: block; width: 30px; height: 20px; border-radius: 3px;
    object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08);
    opacity: .85; filter: saturate(.9);
}
.map-art { position: absolute; inset: 0; z-index: 1; opacity: .12; }
.map-art svg { position: absolute; top: 50%; transform: translateY(-50%); }
.map-art .art-africa { left: -6%; height: 190%; opacity: .9; }
.map-art .art-africa path { fill: var(--brand-deep); }
/* the flag logos themselves sit faded into the strip */
.map-flag .flag-art { opacity: .78; filter: saturate(.85); }
.map-strip:hover .map-art { opacity: .18; }

/* The government shell swaps the brand variables, so every rule above already
   turns green there without a second copy. */

/* =====================================================================
   LAYOUT POLISH  (item 7)
   Two complaints drove this block: rules that ran straight into the next
   rule with no air between them, and content that sat flush against the
   edge of the window.  Everything here is additive -- it only ever adds
   breathing room, never takes any away.
   ===================================================================== */

/* The content column used to stretch to the full window width, so on a
   wide screen the last card touched the right edge of the browser.  Cap it
   and centre it instead. */
.content {
    max-width: 1320px;
    margin: 0 auto;
    padding: 26px clamp(16px, 2.6vw, 32px) 64px;
}

/* A card that carried both a header and a note rendered two horizontal
   rules back to back -- the header's bottom rule and the note's bottom rule
   with nothing between them.  The note keeps its own rule now. */
.card-head + .card-note { border-top: 1px solid #BBD9F5; }
.card-note + .card-note { border-top: 1px solid #BBD9F5; }

/* Inside a tight card the table used to start and finish exactly on the
   card's own border.  Give the outer cells a little inset. */
.card-body.tight table.table th:first-child,
.card-body.tight table.table td:first-child { padding-left: 20px; }
.card-body.tight table.table th:last-child,
.card-body.tight table.table td:last-child { padding-right: 20px; }

/* A second row of tabs (Inbox / Archived / Deleted) used to be pulled up
   with a negative margin, which jammed its top rule against the row above. */
.tabs.tabs-sub { margin-top: -2px; margin-bottom: 22px; }

/* The page heading and the first card, and two cards in a row, keep a
   consistent gutter so no two borders ever land on each other. */
.page-head + .tabs { margin-top: -6px; }
.grid { gap: 16px; }

/* Stat tiles inside a grid share one border line when the gutter is tight;
   the grid gap above covers it, but a tile used outside a grid still needs
   its own margin. */
.stat + .stat { margin-top: 0; }

/* Forms and long prose inside a card should not run to the card's edge. */
.card-body > p:last-child, .card-body > ul:last-child,
.card-body > ol:last-child { margin-bottom: 0; }

/* Print and report sheets: the sheet is the page, so its inner rules must
   not sit on the outer border. */
.rc-sheet { padding: 0; }
.rc-sheet .rc-head, .rc-sheet .rc-meta, .rc-sheet .rc-foot { padding-left: 26px; padding-right: 26px; }
.rc-sheet .rc-register { padding: 0 26px; }
.rc-sheet .rc-sign-row { padding: 0 26px 22px; }

/* =====================================================================
   SELECT ALL  --  the tick column of a long roster
   ===================================================================== */
.tick-all { display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    white-space: nowrap; font-weight: 600; }
.tick-all input { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; }
.tick-all input:indeterminate { opacity: .75; }
.tick-all .small { font-weight: 500; }

/* The row tick boxes themselves: big enough to hit on a phone. */
input.tick-row { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }

/* The Load button that follows the filter bar. */
.filter-bar .btn { margin-bottom: 0; }

/* =====================================================================
   AI STUDY TOOLS
   ===================================================================== */
/* The result of a lesson note or a research answer reads better with a
   little air between its headings and paragraphs. */
.ai-result h4 { font-family: var(--serif); font-size: 14.5px; margin: 14px 0 4px;
    color: var(--brand-deep); }
.ai-result h4:first-child { margin-top: 0; }
.ai-result p { margin: 0 0 7px; line-height: 1.6; }
.ai-result ul { margin: 0 0 8px; padding-left: 20px; }
.ai-result li { margin-bottom: 3px; line-height: 1.55; }
.ai-result .hairline { margin: 12px 0; }

/* Converted notes keep the teacher's line structure, so they are shown in a
   monospaced block that can be selected and copied in one go. */
pre.ai-notes { margin: 0; white-space: pre-wrap; word-wrap: break-word;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px; line-height: 1.65; color: var(--text); }

/* The "how it works" tab is prose, so it gets the measure of a page of text
   rather than running the full width of the card. */
.prose { max-width: 68em; }
.prose h3 { font-family: var(--serif); font-size: 15px; margin: 20px 0 6px; }
.prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 10px; line-height: 1.65; }
.prose p:last-child { margin-bottom: 0; }
