/* ==========================================================================
   Care Providers' Voice — 2026 refresh
   Design tokens sampled directly from the approved site-plan screenshots.
   ========================================================================== */

:root {
    /* Brand */
    --pink: #ef5a8f;
    --pink-dark: #e1487e;
    --pink-200: #fad7e3;
    --pink-100: #fdebf1;
    --pink-050: #fbe9ee;

    --teal: #326b81;
    --teal-light: #3a7992;
    --teal-deep: #254f5f;
    --green: #86c6a1;

    /* Neutrals */
    --ink: #283a42;
    --ink-soft: #303b44;
    --body: #7f8b91;
    --body-light: #98a2a8;
    --cream: #fefcfa;
    --line: #ece7e4;

    /* Shape */
    --r-md: 16px;
    --r-lg: 20px;
    --r-xl: 26px;
    --pill: 999px;

    --shadow-sm: 0 1px 2px rgba(40, 58, 66, .05), 0 6px 18px rgba(40, 58, 66, .04);
    --shadow-md: 0 2px 6px rgba(40, 58, 66, .06), 0 18px 40px rgba(40, 58, 66, .07);
    --shadow-lg: 0 30px 60px rgba(40, 58, 66, .16);

    --container: 1485px;
    --gutter: 24px;

    /* Accent — follows the "I'm here as a…" switch. Components reference these
       rather than a named colour, so the theme swaps in one place. The brand
       logo and the admin tooling deliberately stay pink. */
    --accent: var(--pink);
    --accent-dark: var(--pink-dark);
    --accent-200: var(--pink-200);
    --accent-100: var(--pink-100);
    --accent-050: var(--pink-050);
    --accent-rgb: 239, 90, 143;
    --accent-dark-rgb: 225, 72, 126;

    /* Secondary button (header Log In) — kept off the accent hue so it never
       becomes indistinguishable from the primary call to action. */
    --btn-secondary: var(--teal);

    /* Highlighted quick-link tile, against the teal tile gradient. */
    --tile-hi-a: #ec578c;
    --tile-hi-b: #cc4175;

    /* Backdrop of the "Join free today" card — mirrors the hero photo. */
    --hero-photo: url('../img/hero-provider.jpg');
}

:root[data-active-audience="Candidate"] {
    --accent: var(--teal);
    --accent-dark: #29596c;
    --accent-200: #cfe0e7;
    --accent-100: #e9f1f4;
    --accent-050: #eef5f7;
    --accent-rgb: 50, 107, 129;
    --accent-dark-rgb: 41, 89, 108;

    --btn-secondary: var(--ink);

    /* Lighter than the base tile gradient so it still reads as the highlight. */
    --tile-hi-a: #57a6c1;
    --tile-hi-b: #2f6b81;

    --hero-photo: url('../img/hero.jpg');
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: Lato, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: Nunito, Lato, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    margin: 0;
    letter-spacing: -.015em;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

button { font: inherit; cursor: pointer; }

/* The audience switch hides content with the `hidden` attribute. The UA rule
   for it is weaker than component rules like `.update-card { display: flex }`,
   so it has to win outright or hidden cards would still render. */
[hidden] { display: none !important; }

.container {
    width: min(var(--container), 100% - (var(--gutter) * 2));
    margin-inline: auto;
}

/* Grid tracks default to a min-content floor, which the intrinsic width of the
   photography would otherwise blow past on narrow screens. */
.hero__grid > *, .updates > *, .tiles > *, .list-columns > *, .split > *,
.testimonials > *, .footer-grid > * { min-width: 0; }

.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;
}

/* ---------- Logo ---------- */

.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo__mark { flex: none; color: var(--teal); }
.logo__rule { width: 1.5px; align-self: stretch; background: var(--pink); opacity: .55; }
.logo__word {
    font-family: Nunito, sans-serif;
    font-weight: 900;
    font-size: 15px;
    line-height: 1.06;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: var(--pink);
    white-space: nowrap;
}

.logo--light .logo__mark { color: #fff; }
.logo--light .logo__rule { background: #fff; opacity: .45; }
.logo--light .logo__word { color: #fff; }
.logo--sm { gap: 9px; }
.logo--sm .logo__word { font-size: 12px; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: 0; border-radius: var(--pill);
    font-family: Nunito, sans-serif; font-weight: 800;
    padding: 14px 30px; font-size: 17px;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn-pink { background: var(--accent); color: #fff; }
.btn-pink:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(var(--accent-rgb), .32); }

.btn-teal { background: var(--btn-secondary); color: #fff; padding: 12px 26px; font-size: 16px; }
.btn-teal:hover { background: #29596c; }

.btn-lg { padding: 17px 40px; font-size: 18px; }

.link-pink {
    color: var(--accent); font-family: Nunito, sans-serif; font-weight: 800; font-size: 17px;
    display: inline-flex; align-items: center; gap: 8px;
    transition: gap .18s ease;
}
.link-pink:hover { color: var(--accent-dark); gap: 12px; }

/* ---------- Section furniture ---------- */

.eyebrow {
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 13px;
    letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}

.section-title { font-size: clamp(28px, 3vw, 36px); font-weight: 800; line-height: 1.15; }

.section { padding: 60px 0; }

.section-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
    margin-bottom: 30px;
}
.section-head .eyebrow { display: block; margin-bottom: 8px; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    position: sticky; top: 0; z-index: 40;
    backdrop-filter: blur(10px);
    background: linear-gradient(180deg, rgba(253, 242, 244, .92), rgba(254, 250, 250, .82));
}

.site-header__inner { display: flex; align-items: center; gap: 26px; height: 92px; }

.search {
    display: flex; align-items: center; gap: 10px;
    background: #f2e6eb; border-radius: var(--pill);
    padding: 0 20px; height: 46px;
    color: var(--body);
    /* Shrinks first when the signed-in controls need the room. */
    flex: 0 1 300px; min-width: 56px;
}
.search input {
    border: 0; background: transparent; outline: none;
    font-family: Lato, sans-serif; font-size: 16px; color: var(--ink); width: 100%;
}
.search input::placeholder { color: var(--body-light); }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); margin-left: 8px; margin-right: auto; }
.nav a {
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 17px; color: var(--teal);
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.nav a:hover { color: var(--accent); }
.nav a .plus { color: var(--body-light); font-weight: 700; font-size: 15px; }

.header-actions { display: flex; align-items: center; gap: 22px; flex: none; margin-left: auto; }
.icon-btn {
    background: transparent; border: 0; color: var(--teal);
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--pill);
}
.icon-btn:hover { background: rgba(50, 107, 129, .08); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { position: relative; padding: 34px 0 84px; }
.hero::before {
    content: ""; position: absolute; inset: -92px 0 auto 0; height: 700px; z-index: -1;
    background: radial-gradient(760px 460px at 0% 0%, var(--accent-050) 0%, transparent 62%);
    pointer-events: none;
}

.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

.hero__tag {
    display: inline-block; background: var(--accent-200); color: var(--accent-dark);
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 13px;
    letter-spacing: .1em; text-transform: uppercase;
    padding: 9px 20px; border-radius: var(--pill);
}

.hero__ask { margin: 32px 0 10px; color: var(--body); font-size: 16px; }

.segmented { display: inline-flex; background: #f1eced; border-radius: var(--pill); padding: 4px; }
.segmented button {
    display: inline-flex; align-items: center; gap: 10px;
    border: 0; background: transparent; border-radius: var(--pill);
    padding: 12px 26px; color: var(--body);
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 16px;
    transition: background-color .18s ease, color .18s ease;
}
.segmented button.is-active { background: var(--accent); color: #fff; }

.hero h1 {
    margin: 28px 0 0;
    font-size: clamp(42px, 5.2vw, 68px);
    font-weight: 800; line-height: .96; letter-spacing: -.03em;
}
.hero h1 .underlined { position: relative; display: inline-block; }
.hero h1 .underlined::after {
    content: ""; position: absolute; left: 2px; right: 2px; bottom: -.13em; height: 10px;
    border-radius: var(--pill); background: var(--accent);
    clip-path: polygon(0 40%, 100% 0, 100% 58%, 0 100%);
}

.hero__lead { margin-top: 36px; max-width: 480px; font-size: 18px; line-height: 1.68; color: var(--body); }

.hero__cta { display: flex; align-items: center; gap: 34px; margin-top: 42px; }

.proof { display: flex; align-items: center; gap: 18px; margin-top: 48px; }
.avatars { display: flex; }
.avatars span {
    width: 40px; height: 40px; border-radius: var(--pill);
    display: grid; place-items: center; color: #fff;
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 13px;
    border: 3px solid var(--cream); margin-left: -8px;
}
.avatars span:first-child { margin-left: 0; }
.proof strong { font-family: Nunito, sans-serif; font-size: 20px; font-weight: 800; display: block; }
.proof small { color: var(--body); font-size: 15px; }

.hero__media { position: relative; }
.hero__media .hero-photo {
    width: 100%; height: 628px; object-fit: cover; border-radius: var(--r-xl);
    box-shadow: var(--shadow-md);
}

.join-card {
    position: absolute; left: -30px; bottom: -34px; width: 216px;
    border-radius: var(--r-lg); overflow: hidden; padding: 20px 18px 18px; color: #fff;
    background: linear-gradient(150deg, rgba(40, 58, 66, .8), rgba(var(--accent-dark-rgb), .92)),
                var(--hero-photo) center/cover;
    box-shadow: var(--shadow-lg);
}
.join-card__label {
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 11px;
    letter-spacing: .12em; text-transform: uppercase; opacity: .85;
}
.join-card h3 { color: #fff; font-size: 22px; font-weight: 800; line-height: 1.12; margin: 6px 0 16px; }
.join-card .btn { width: 100%; padding: 12px 16px; font-size: 15px; background: #fff; color: var(--accent); }
.join-card .btn:hover { background: var(--accent-100); }

/* ==========================================================================
   Latest events & updates
   ========================================================================== */

.updates { display: grid; grid-template-columns: 1.9fr 1fr 1fr; gap: 22px; }

.feature-card {
    position: relative; grid-row: span 2;
    min-height: 470px; border-radius: var(--r-lg); overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 32px; color: #fff;
}
.feature-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.feature-card::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(21, 29, 33, .3) 0%, rgba(21, 29, 33, .18) 38%, rgba(21, 29, 33, .86) 100%);
}
/* Flex items accept z-index without being positioned, so the caption stacks
   above the scrim while the date chip keeps its own absolute placement. */
.feature-card > :not(.feature-card__img) { z-index: 1; }
.feature-card .badge { align-self: flex-start; margin-bottom: 18px; }
.feature-card h3 { color: #fff; font-size: 32px; font-weight: 800; line-height: 1.15; max-width: 16ch; }
.feature-card p { margin-top: 14px; font-size: 16px; color: rgba(255, 255, 255, .92); }

.date-chip {
    position: absolute; top: 22px; left: 22px; z-index: 2;
    width: 66px; border-radius: 12px; overflow: hidden; text-align: center;
    box-shadow: var(--shadow-sm);
}
.date-chip .d {
    background: #fff; color: var(--ink); display: block; padding: 8px 0 6px;
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 24px; line-height: 1;
}
.date-chip .m {
    background: var(--accent); color: #fff; display: block; padding: 4px 0 5px;
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .08em;
}

.badge {
    display: inline-block; background: var(--accent); color: #fff;
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 11px;
    letter-spacing: .09em; text-transform: uppercase;
    padding: 6px 12px; border-radius: var(--pill);
}

.update-card {
    background: #fff; border-radius: var(--r-md); overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.update-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.update-card__media { position: relative; height: 110px; flex: none; }
.update-card__media img { width: 100%; height: 100%; object-fit: cover; }
.update-card__media .badge { position: absolute; top: 14px; left: 14px; }
.update-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; gap: 14px; }
.update-card h4 { font-size: 17px; font-weight: 800; line-height: 1.3; }
.update-card small { color: var(--body-light); font-size: 14px; margin-top: auto; }

/* ==========================================================================
   Quick-link tiles
   ========================================================================== */

.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }

.tile {
    position: relative; min-height: 274px; border-radius: var(--r-lg);
    padding: 28px 26px; display: flex; flex-direction: column; color: #fff;
    background: linear-gradient(150deg, var(--teal-light), var(--teal-deep));
    transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tile--pink { background: linear-gradient(150deg, var(--tile-hi-a), var(--tile-hi-b)); }
.tile h3 { color: #fff; font-size: 22px; font-weight: 800; line-height: 1.18; margin-top: auto; }
.tile .icon { opacity: .95; }
.tile__go {
    margin-top: 20px; width: 36px; height: 36px; border-radius: var(--pill);
    background: rgba(255, 255, 255, .16); display: grid; place-items: center;
}

/* ==========================================================================
   Lists — upcoming events / featured resources
   ========================================================================== */

.list-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.list-columns h2 { font-size: 30px; font-weight: 800; margin-bottom: 22px; }

.row-card {
    display: flex; align-items: center; gap: 18px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 14px 20px 14px 14px; margin-bottom: 14px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.row-card:hover { border-color: var(--accent-200); box-shadow: var(--shadow-sm); }
.row-card__thumb { width: 64px; height: 60px; border-radius: 10px; object-fit: cover; flex: none; }
.row-card__doc {
    width: 62px; height: 60px; border-radius: 12px; flex: none;
    background: var(--accent-100); color: var(--accent); display: grid; place-items: center;
}
.row-card__text { flex: 1; min-width: 0; }
.row-card__text strong { font-family: Nunito, sans-serif; font-size: 17px; font-weight: 800; display: block; }
.row-card__text span { color: var(--body); font-size: 15px; }
.row-card__end { color: var(--accent); flex: none; display: grid; place-items: center; }

/* ==========================================================================
   Stats bar
   ========================================================================== */

.stats {
    background: var(--accent); border-radius: var(--r-xl); color: #fff;
    display: grid; grid-template-columns: repeat(4, 1fr); padding: 42px 20px;
}
.stats div { text-align: center; padding: 0 16px; }
.stats div + div { border-left: 1px solid rgba(255, 255, 255, .3); }
.stats strong { display: block; font-family: Nunito, sans-serif; font-size: 42px; font-weight: 800; line-height: 1.05; }
.stats span { font-size: 15px; opacity: .95; }

/* ==========================================================================
   Training / courses
   ========================================================================== */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

.pill-soft {
    display: inline-block; background: var(--accent-100); color: var(--accent-dark);
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 15px;
    padding: 9px 18px; border-radius: var(--pill);
}

.split h2 { margin: 26px 0 22px; font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; line-height: 1.1; }
.split .lead { color: var(--body); font-size: 17px; line-height: 1.7; max-width: 52ch; }

.check-list { list-style: none; padding: 0; margin: 30px 0 36px; display: grid; gap: 14px; }
.check-list li { display: flex; align-items: center; gap: 14px; font-family: Nunito, sans-serif; font-weight: 700; font-size: 17px; }
.check-list i {
    width: 26px; height: 26px; border-radius: var(--pill); flex: none;
    background: var(--accent-100); color: var(--accent); display: grid; place-items: center;
}

.split__media { position: relative; }
.split__media img { width: 100%; height: 448px; object-fit: cover; border-radius: var(--r-lg); }
.floating-stat {
    position: absolute; left: -38px; bottom: 32px;
    background: #fff; border-radius: 0 14px 14px 0; padding: 16px 24px;
    box-shadow: var(--shadow-md);
}
.floating-stat strong { display: block; font-family: Nunito, sans-serif; font-size: 30px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.floating-stat span { font-size: 14px; color: var(--body); }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 34px; }
.quote-card {
    background: #fff; border-radius: var(--r-lg); padding: 34px 32px 30px;
    box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.quote-card__mark { color: var(--accent-200); margin-bottom: 22px; }
.quote-card p { color: var(--ink-soft); font-size: 16px; line-height: 1.62; }
.quote-card__who { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.quote-card__who .av {
    width: 44px; height: 44px; border-radius: var(--pill); display: grid; place-items: center;
    color: #fff; font-family: Nunito, sans-serif; font-weight: 800; font-size: 14px; flex: none;
}
.quote-card__who strong { font-family: Nunito, sans-serif; font-size: 16px; font-weight: 800; display: block; }
.quote-card__who span { color: var(--body); font-size: 14px; }

/* ==========================================================================
   Closing CTA
   ========================================================================== */

.cta-banner {
    position: relative; border-radius: var(--r-xl); overflow: hidden;
    text-align: center; color: #fff; padding: 84px 24px;
}
.cta-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-banner::after { content: ""; position: absolute; inset: 0; background: rgba(24, 33, 38, .62); }
.cta-banner > :not(.cta-banner__img) { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; line-height: 1.16; }
.cta-banner p { margin: 18px auto 30px; font-size: 17px; color: rgba(255, 255, 255, .9); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .82); margin-top: 70px; padding: 66px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--accent); }
.site-footer .blurb { margin-top: 24px; font-size: 15px; line-height: 1.65; max-width: 32ch; }
.site-footer address { font-style: normal; font-size: 15px; line-height: 1.75; }
.footer-bottom {
    margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .13);
    text-align: center; font-size: 14px; color: rgba(255, 255, 255, .62);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
    .nav { display: none; }
    .search { width: 220px; }
    .hero__grid { grid-template-columns: 1fr; gap: 48px; }
    .hero__media .hero-photo { height: 420px; }
    .updates { grid-template-columns: 1fr 1fr; }
    .feature-card { grid-column: span 2; grid-row: auto; min-height: 360px; }
    .tiles { grid-template-columns: repeat(3, 1fr); }
    .split { grid-template-columns: 1fr; gap: 44px; }
    .floating-stat { left: 0; }
    .testimonials { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
    .search { display: none; }
    .list-columns { grid-template-columns: 1fr; gap: 44px; }
    .updates { grid-template-columns: 1fr; }
    .feature-card { grid-column: auto; }
    .tiles { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: 1fr 1fr; gap: 30px 0; padding: 34px 12px; }
    .stats div + div { border-left: 0; }
    .stats div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .3); padding-top: 26px; }
    .hero__cta { flex-wrap: wrap; gap: 20px; }
    .hero h1 { font-size: clamp(34px, 9vw, 46px); }
    /* The pill pair is wider than a phone; let it fill and share the row. */
    .segmented { display: flex; width: 100%; }
    .segmented button { flex: 1; justify-content: center; padding: 12px 12px; font-size: 15px; }
    .join-card { left: 16px; bottom: -24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 44px 0; }
}

/* ==========================================================================
   Accounts — header state, sign-in / registration, dashboard, admin
   ========================================================================== */

.account-chip { display: inline-flex; align-items: center; gap: 10px; }
.account-chip__av {
    width: 38px; height: 38px; border-radius: var(--pill); flex: none;
    display: grid; place-items: center; background: var(--accent); color: #fff;
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 13px;
}
.account-chip__name {
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 16px; color: var(--ink);
    max-width: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.account-chip:hover .account-chip__name { color: var(--accent); }
.account-admin { font-size: 16px; }

/* ---------- Auth pages ---------- */

.auth { padding: 54px 0 80px; position: relative; }
.auth::before {
    content: ""; position: absolute; inset: -92px 0 auto 0; height: 620px; z-index: -1;
    background: radial-gradient(760px 460px at 0% 0%, var(--accent-050) 0%, transparent 62%);
}

.auth__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: stretch; }
.auth__grid--narrow { grid-template-columns: 1fr 1fr; }
.auth__grid > * { min-width: 0; }

.auth__card {
    background: #fff; border-radius: var(--r-xl); padding: 44px 46px 38px;
    box-shadow: var(--shadow-md);
}
.auth__card h1 { font-size: clamp(30px, 3.2vw, 40px); font-weight: 800; margin: 10px 0 0; line-height: 1.1; }
.auth__lead { color: var(--body); margin-top: 12px; font-size: 17px; }
.auth__card form { margin-top: 30px; }
.auth__submit { width: 100%; margin-top: 26px; }
.auth__alt { margin-top: 22px; color: var(--body); font-size: 16px; text-align: center; }

.field { margin-bottom: 20px; border: 0; padding: 0; }
.field label, .field legend {
    display: block; margin-bottom: 8px; padding: 0;
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 15px; color: var(--ink);
}
.field input[type="text"], .field input[type="email"], .field input[type="password"] {
    width: 100%; padding: 14px 18px;
    border: 1.5px solid var(--line); border-radius: 14px;
    background: var(--cream); color: var(--ink);
    font-family: Lato, sans-serif; font-size: 16px;
    transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .14); background: #fff;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-hint { display: block; margin-top: 6px; color: var(--body-light); font-size: 13px; }
.field-error { display: block; margin-top: 6px; color: var(--pink-dark); font-size: 14px; font-weight: 700; }
.field-errors { margin-bottom: 20px; color: var(--pink-dark); font-size: 15px; font-weight: 700; }
.field-errors ul { margin: 0; padding-left: 18px; }
.field-errors:empty { display: none; }

.field-check { display: flex; align-items: center; gap: 10px; color: var(--body); font-size: 15px; }
.field-check input { width: 18px; height: 18px; accent-color: var(--accent); }

.role-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.role-choice input { position: absolute; opacity: 0; pointer-events: none; }
.role-choice__box {
    display: grid; gap: 4px; height: 100%;
    border: 1.5px solid var(--line); border-radius: 16px; padding: 18px 18px 16px;
    background: var(--cream); color: var(--body); cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}
.role-choice__box strong { font-family: Nunito, sans-serif; font-size: 17px; color: var(--ink); }
.role-choice__box small { font-size: 13px; line-height: 1.45; }
.role-choice input:checked + .role-choice__box {
    border-color: var(--accent); background: var(--accent-100); color: var(--accent-dark);
}
.role-choice input:checked + .role-choice__box strong { color: var(--accent-dark); }
.role-choice input:focus-visible + .role-choice__box { box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18); }

.auth__aside {
    position: relative; border-radius: var(--r-xl); overflow: hidden;
    min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end;
    color: #fff; padding: 38px;
}
.auth__aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.auth__aside::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(21, 29, 33, .25), rgba(21, 29, 33, .85));
}
.auth__aside-body { position: relative; z-index: 1; }
.auth__aside h2 { color: #fff; font-size: 30px; font-weight: 800; line-height: 1.15; }
.auth__aside p { margin-top: 12px; color: rgba(255, 255, 255, .9); }
.auth__aside .check-list { margin: 22px 0 0; }
.auth__aside .check-list li { color: #fff; font-size: 16px; }
.auth__aside .check-list i { background: rgba(255, 255, 255, .18); color: #fff; font-style: normal; font-size: 13px; }

.auth__message { max-width: 60ch; }
.auth__message h1 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; margin: 10px 0 16px; }
.auth__message p { color: var(--body); margin-bottom: 26px; }

/* ---------- Dashboard ---------- */

.dash__head { display: flex; align-items: center; gap: 20px; margin-bottom: 38px; }
.dash__head h1 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; margin-top: 4px; }
.dash__head .avatars span { width: 62px; height: 62px; font-size: 20px; }
.dash__org { color: var(--body); margin-top: 4px; }
.dash__tiles { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.dash__tiles .tile__go { font-size: 18px; line-height: 1; }

/* ---------- Admin table ---------- */

.status-note {
    background: var(--pink-100); color: var(--pink-dark);
    border-radius: 14px; padding: 14px 20px; margin-bottom: 22px;
    font-family: Nunito, sans-serif; font-weight: 700; font-size: 15px;
}

.table-wrap { overflow-x: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); background: #fff; }
.user-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.user-table th, .user-table td { padding: 18px 22px; text-align: left; vertical-align: middle; }
.user-table thead th {
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 13px;
    letter-spacing: .1em; text-transform: uppercase; color: var(--body);
    border-bottom: 1px solid var(--line);
}
.user-table tbody tr + tr { border-top: 1px solid var(--line); }
.user-table td { color: var(--body); font-size: 15px; }

.user-cell { display: flex; align-items: center; gap: 14px; }
.user-cell .av {
    width: 42px; height: 42px; border-radius: var(--pill); flex: none;
    display: grid; place-items: center; background: var(--teal); color: #fff;
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 13px;
}
.user-cell strong { display: block; font-family: Nunito, sans-serif; font-size: 16px; color: var(--ink); }
.user-cell span span { font-size: 14px; }

.role-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.role-pill {
    border: 1.5px solid var(--line); background: var(--cream); color: var(--body);
    border-radius: var(--pill); padding: 7px 15px;
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 13px;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}
.role-pill:hover { border-color: var(--pink-200); color: var(--pink-dark); }
.role-pill.is-on { background: var(--pink); border-color: var(--pink); color: #fff; }
.role-pill.is-on:hover { background: var(--pink-dark); border-color: var(--pink-dark); color: #fff; }

.table-note { margin-top: 16px; color: var(--body-light); font-size: 14px; }

@media (max-width: 1180px) {
    .auth__grid, .auth__grid--narrow { grid-template-columns: 1fr; }
    .auth__aside { min-height: 300px; order: -1; }
}

@media (max-width: 780px) {
    .account-chip__name, .account-admin { display: none; }
    .auth__card { padding: 30px 24px 26px; }
    .field-row, .role-choice { grid-template-columns: 1fr; }
    .dash__head { flex-wrap: wrap; }
}

/* Signed-in header carries an account chip, an admin link and Log Out; drop the
   least important pieces before anything is forced to wrap. */
@media (max-width: 1500px) {
    /* Avatar alone identifies the account; the name is the first thing to go
       so Log Out and Arrange panels always stay reachable. */
    .account-chip__name { display: none; }
}

@media (max-width: 1500px) {
    /* Signed-in admins carry the most header controls; the search goes first
       rather than letting it squash into an unusable stub. */
    .site-header .search { display: none; }
}

/* ==========================================================================
   Homepage panel arranging (administrators only)
   ========================================================================== */

.btn-outline {
    background: transparent; color: var(--teal);
    box-shadow: inset 0 0 0 1.5px var(--teal);
    padding: 11px 22px; font-size: 15px;
}
.btn-outline:hover { background: var(--teal); color: #fff; }

.btn-ghost { background: transparent; color: var(--body); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: #fff; color: var(--ink); }

.arrange { padding-bottom: 40px; }

.arrange-bar {
    position: sticky; top: 92px; z-index: 30;
    background: var(--ink); color: #fff;
    padding: 16px 0;
}
.arrange-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.arrange-bar .eyebrow { color: var(--pink-200); display: block; }
.arrange-bar p { font-size: 15px; color: rgba(255, 255, 255, .78); margin-top: 3px; }
.arrange-bar__actions { display: flex; gap: 12px; flex: none; }
.arrange-bar .btn-ghost { color: rgba(255, 255, 255, .85); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.arrange-bar .btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.arrange-item {
    position: relative;
    margin: 22px auto;
    width: min(var(--container), 100% - (var(--gutter) * 2));
    border: 2px dashed var(--line);
    border-radius: var(--r-lg);
    background: #fff;
    transition: border-color .18s ease, opacity .18s ease, box-shadow .18s ease;
}
.arrange-item:hover { border-color: var(--pink-200); }
.arrange-item.is-dragging { opacity: .45; border-color: var(--pink); box-shadow: var(--shadow-md); }
.arrange-item.just-moved { border-color: var(--pink); }
.arrange-item.is-hidden { opacity: .5; }
.arrange-item.is-hidden .arrange-item__preview { filter: grayscale(1); }

.arrange-item__bar {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--cream);
    border-radius: calc(var(--r-lg) - 2px) calc(var(--r-lg) - 2px) 0 0;
}
.arrange-item__name {
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 16px;
    margin-right: auto;
}

.arrange-grip {
    display: grid; place-items: center; width: 34px; height: 34px; flex: none;
    border-radius: 10px; background: #fff; color: var(--body);
    box-shadow: inset 0 0 0 1.5px var(--line);
    cursor: grab;
}
.arrange-grip:active { cursor: grabbing; }
.arrange-grip:hover { color: var(--pink); box-shadow: inset 0 0 0 1.5px var(--pink-200); }

.arrange-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--body); }
.arrange-toggle input { width: 17px; height: 17px; accent-color: var(--pink); }

.arrange-move { display: inline-flex; gap: 6px; }
.arrange-move button {
    width: 34px; height: 34px; border: 0; border-radius: 10px;
    background: #fff; color: var(--teal); font-size: 15px;
    box-shadow: inset 0 0 0 1.5px var(--line);
}
.arrange-move button:hover { background: var(--teal); color: #fff; box-shadow: none; }

.arrange-item__fields {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}
.arrange-item__fields label { display: grid; gap: 6px; }
.arrange-item__fields span {
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 13px; color: var(--body);
}
.arrange-item__fields input, .arrange-item__fields textarea {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid var(--line); border-radius: 10px;
    background: var(--cream); color: var(--ink);
    font-family: Lato, sans-serif; font-size: 15px; resize: vertical;
}
.arrange-item__fields input:focus, .arrange-item__fields textarea:focus {
    outline: none; border-color: var(--pink); background: #fff;
    box-shadow: 0 0 0 3px rgba(239, 90, 143, .14);
}

/* The preview is the real panel, capped in height and non-interactive, so the
   list stays scannable while each panel is still recognisable. */
.arrange-item__preview {
    position: relative; overflow: hidden;
    max-height: 320px;
    border-radius: 0 0 calc(var(--r-lg) - 2px) calc(var(--r-lg) - 2px);
}
.arrange-item__preview::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 90px; pointer-events: none;
    background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}
.arrange-item__preview > .section, .arrange-item__preview > .hero { padding-block: 26px; }
.arrange-item__preview .container { width: calc(100% - 36px); }
.arrange-item__preview .hero::before { display: none; }
.arrange-item__preview a, .arrange-item__preview button { pointer-events: none; }

.arrange-foot { display: flex; gap: 14px; align-items: center; padding-top: 12px; }

@media (max-width: 780px) {
    .arrange-bar { top: 76px; }
    .arrange-bar__inner { flex-direction: column; align-items: flex-start; }
    .arrange-item__bar { gap: 10px; }
    .arrange-item__name { width: 100%; order: -1; }
}

/* Reset-to-default sits on its own row under the panel's text fields. */
.arrange-reset {
    grid-column: 1 / -1;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-top: 2px;
}
.arrange-reset button {
    border: 0; border-radius: var(--pill);
    background: transparent; color: var(--teal);
    box-shadow: inset 0 0 0 1.5px var(--line);
    padding: 8px 16px;
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 13px;
    transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.arrange-reset button:hover { background: var(--teal); color: #fff; box-shadow: none; }
.arrange-reset__note {
    font-family: Nunito, sans-serif; font-weight: 700; font-size: 13px; color: var(--pink-dark);
}

/* Audience-split panels show a field group per side of the hero switch. */
.arrange-item__fields.is-split {
    grid-template-columns: 1fr 1fr;
}
.arrange-audience { display: grid; gap: 12px; align-content: start; min-width: 0; }
.arrange-audience__title {
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 14px; color: var(--ink);
    padding-bottom: 8px; border-bottom: 1.5px solid var(--line);
}
.arrange-audience__fields {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px;
}
.arrange-audience__wide { grid-column: 1 / -1; }

.arrange-tag {
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 11px;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--teal); background: rgba(50, 107, 129, .1);
    padding: 4px 10px; border-radius: var(--pill);
}

.arrange-reset__hint { font-size: 13px; color: var(--body-light); }

@media (max-width: 980px) {
    .arrange-item__fields.is-split { grid-template-columns: 1fr; }
}

/* ==========================================================================
   News banner — cycles the top stories, managed at /Admin/News
   ========================================================================== */

.news { padding: 26px 0 0; }

.news-banner {
    position: relative; overflow: hidden;
    background: #fff; border-radius: var(--r-xl);
    box-shadow: var(--shadow-md);
    /* Accent edge so the banner reads as a distinct alert, not another card. */
    border-left: 6px solid var(--accent);
}

.news-banner__viewport { display: block; }

.news-slide {
    display: grid; grid-template-columns: 260px 1fr; align-items: stretch;
    gap: 0; text-decoration: none; color: inherit;
    animation: news-in .45s ease both;
}
.news-banner.is-paused .news-slide { animation: none; }

@keyframes news-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

.news-slide__media { display: block; overflow: hidden; }
.news-slide__media img { width: 100%; height: 100%; object-fit: cover; min-height: 172px; }

.news-slide__body {
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
    padding: 26px 200px 26px 30px;
}
.news-slide__meta { display: flex; align-items: center; gap: 12px; }
.news-slide__eyebrow {
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 12px;
    letter-spacing: .14em; text-transform: uppercase; color: var(--body-light);
}
.news-slide h3 { font-size: clamp(20px, 2.1vw, 26px); font-weight: 800; line-height: 1.2; }
.news-slide p { color: var(--body); font-size: 16px; line-height: 1.6; max-width: 68ch; }
.news-slide .link-pink { font-size: 16px; margin-top: 2px; }

/* Urgent stories get a quiet pulse rather than anything shouty. */
.badge--live { display: inline-flex; align-items: center; gap: 7px; }
.badge__pulse {
    width: 7px; height: 7px; border-radius: var(--pill);
    background: #fff; flex: none;
    animation: news-pulse 1.8s ease-in-out infinite;
}
@keyframes news-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .35; transform: scale(.8); }
}

.news-banner__controls {
    position: absolute; right: 24px; bottom: 22px;
    display: flex; align-items: center; gap: 10px;
}
.news-banner.is-single .news-banner__controls { display: none; }

.news-nav {
    width: 34px; height: 34px; border: 0; border-radius: var(--pill);
    background: var(--cream); color: var(--teal);
    box-shadow: inset 0 0 0 1.5px var(--line);
    display: grid; place-items: center;
    transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.news-nav:hover { background: var(--accent); color: #fff; box-shadow: none; }

.news-dots { display: inline-flex; align-items: center; gap: 7px; }
.news-dot {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--pill);
    background: var(--line); cursor: pointer;
    transition: background-color .16s ease, width .16s ease;
}
.news-dot.is-on { background: var(--accent); width: 22px; }

/* Thin accent line showing time to the next story. */
.news-banner__progress {
    position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
    transform-origin: 0 50%;
    background: var(--accent); opacity: .5;
    animation: news-progress 6.5s linear both;
}
.news-banner.is-single .news-banner__progress,
.news-banner.is-paused .news-banner__progress { display: none; }

@keyframes news-progress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .news-slide { animation: none; }
    .news-banner__progress { display: none; }
    .badge__pulse { animation: none; }
}

@media (max-width: 980px) {
    .news-slide { grid-template-columns: 1fr; }
    .news-slide__media img { min-height: 150px; max-height: 190px; }
    .news-slide__body { padding: 22px 22px 64px; }
    .news-banner__controls { right: 18px; bottom: 16px; }
}

/* Content admin (news + events) -------------------------------------------------------------- */

.admin-table td { vertical-align: middle; }
.admin-table tr.is-muted { opacity: .55; }
.admin-thumb { width: 62px; height: 48px; border-radius: 9px; object-fit: cover; flex: none; }

.admin-actions { display: flex; align-items: center; gap: 14px; }
.admin-actions form { display: inline; }
.link-danger {
    border: 0; background: transparent; padding: 0; color: var(--body);
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 15px;
}
.link-danger:hover { color: #c2405f; text-decoration: underline; }

.admin-form {
    margin-top: 34px; background: #fff; border-radius: var(--r-lg);
    padding: 30px 32px 28px; box-shadow: var(--shadow-sm);
    max-width: 900px;
}
.admin-form h2 { font-size: 24px; font-weight: 800; margin-bottom: 22px; }
.admin-form textarea, .admin-form select {
    width: 100%; padding: 14px 18px;
    border: 1.5px solid var(--line); border-radius: 14px;
    background: var(--cream); color: var(--ink);
    font-family: Lato, sans-serif; font-size: 16px;
}
.admin-form textarea { resize: vertical; }
.admin-form textarea:focus, .admin-form select:focus {
    outline: none; border-color: var(--accent); background: #fff;
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .14);
}
.admin-form .field-row { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.field-checks { display: flex; flex-wrap: wrap; gap: 22px; margin: 6px 0 4px; }
.admin-form__actions { display: flex; gap: 12px; margin-top: 24px; }

.admin-links { display: inline-flex; align-items: center; gap: 20px; }
.admin-status { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.admin-shape { color: var(--body-light); font-size: 14px; }
.status-note--warn { background: #fdf1e3; color: #8a5a1e; }

/* ==========================================================================
   Nav dropdown
   ========================================================================== */

.nav-item { position: relative; }
.nav-item__trigger {
    border: 0; background: transparent; padding: 0;
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 17px; color: var(--teal);
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.nav-item__trigger:hover, .nav-item.is-open .nav-item__trigger { color: var(--accent); }
.nav-item__trigger .plus { color: var(--body-light); font-weight: 700; font-size: 15px; }

.nav-menu {
    position: absolute; top: calc(100% + 14px); left: -18px; z-index: 50;
    min-width: 220px; padding: 10px;
    background: #fff; border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    display: grid; gap: 2px;
}
.nav-menu::before {
    /* Bridges the gap so the menu doesn't close as the pointer travels to it. */
    content: ""; position: absolute; inset: -14px 0 100% 0;
}
.nav-menu a {
    padding: 9px 14px; border-radius: 10px; line-height: 1.35;
    font-family: Nunito, sans-serif; font-weight: 700; font-size: 16px; color: var(--ink);
}
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--accent-100); color: var(--accent-dark); }

/* ==========================================================================
   DSPT page
   ========================================================================== */

.page-hero { padding: 40px 0 70px; }
.page-hero__grid {
    display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: center;
}
.page-hero__grid > * { min-width: 0; }
.page-hero h1 {
    margin: 26px 0 0;
    font-size: clamp(38px, 4.6vw, 60px); font-weight: 800; line-height: 1; letter-spacing: -.03em;
}
.page-hero .hero__lead { margin-top: 28px; max-width: 54ch; }

.fact-card {
    background: #fff; border-radius: var(--r-xl); padding: 32px 34px;
    box-shadow: var(--shadow-md);
    border-top: 6px solid var(--accent);
}
.fact-card__label {
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 12px;
    letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.fact-card__value {
    display: block; margin: 6px 0 12px;
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 44px; line-height: 1;
    color: var(--ink); letter-spacing: -.02em;
}
.fact-card p { color: var(--body); font-size: 16px; line-height: 1.6; }
.fact-card__list {
    display: grid; gap: 16px; margin: 24px 0 0; padding-top: 22px;
    border-top: 1px solid var(--line);
}
.fact-card__list div { display: flex; align-items: baseline; gap: 12px; }
.fact-card__list dt {
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 22px; color: var(--accent);
    min-width: 56px;
}
.fact-card__list dd { margin: 0; color: var(--body); font-size: 15px; }

.prose { max-width: 74ch; }
.prose p { color: var(--body); font-size: 18px; line-height: 1.7; margin-top: 16px; }
.prose .section-title { margin-top: 8px; }
.prose-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose-link:hover { color: var(--accent-dark); }

.section-lead { color: var(--body); font-size: 18px; line-height: 1.7; max-width: 76ch; margin-bottom: 30px; }

/* Boroughs ---------------------------------------------------------------- */

.borough-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.borough-card {
    background: #fff; border-radius: var(--r-lg); padding: 28px 30px;
    box-shadow: var(--shadow-sm);
}
.borough-card h3 {
    display: flex; align-items: center; gap: 12px;
    font-size: 20px; font-weight: 800; margin-bottom: 18px;
}
.borough-card h3 .icon { width: 22px; height: 22px; color: var(--accent); flex: none; }
.borough-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.borough-card li {
    background: var(--cream); border: 1px solid var(--line); border-radius: var(--pill);
    padding: 7px 14px; font-size: 14px; color: var(--ink-soft);
}

/* Why it matters ---------------------------------------------------------- */

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-grid > * { min-width: 0; }
.why-card {
    background: #fff; border-radius: var(--r-lg); padding: 30px 30px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.why-card__icon {
    width: 52px; height: 52px; border-radius: 16px; margin-bottom: 20px;
    background: var(--accent-100); color: var(--accent);
    display: grid; place-items: center;
}
.why-card__icon .icon { width: 26px; height: 26px; }
.why-card h3 { font-size: 19px; font-weight: 800; line-height: 1.3; margin-bottom: 10px; }
.why-card p { color: var(--body); font-size: 16px; line-height: 1.6; }

/* Real-life example ------------------------------------------------------- */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compare > * { min-width: 0; }
.compare-card { border-radius: var(--r-lg); padding: 32px 34px; }
.compare-card h3 { font-size: 21px; font-weight: 800; margin-bottom: 22px; }
.compare-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.compare-card li { display: flex; align-items: flex-start; gap: 14px; font-size: 16px; line-height: 1.55; }
.compare-card i {
    width: 24px; height: 24px; border-radius: var(--pill); flex: none; margin-top: 1px;
    display: grid; place-items: center;
}

.compare-card--risk { background: var(--ink); color: rgba(255, 255, 255, .86); }
.compare-card--risk h3 { color: #fff; }
.compare-card--risk i { background: rgba(255, 255, 255, .14); color: #ffb4b4; }

.compare-card--safe { background: #fff; box-shadow: var(--shadow-sm); color: var(--ink-soft); }
.compare-card--safe i { background: var(--accent-100); color: var(--accent); }

/* Protect your service ---------------------------------------------------- */

.protect-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.protect-card {
    background: linear-gradient(150deg, var(--teal-light), var(--teal-deep));
    border-radius: var(--r-lg); padding: 28px 26px; color: #fff;
}
.protect-card__icon { display: block; margin-bottom: 40px; opacity: .95; }
.protect-card h3 { color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.protect-card p { color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 1.55; }

.cta-banner .btn .icon { width: 20px; height: 20px; }

/* Paragraph rhythm where several .lead blocks stack. */
.split .lead + .lead { margin-top: 16px; }
.split .lead + .btn { margin-top: 26px; }

@media (max-width: 1180px) {
    .page-hero__grid { grid-template-columns: 1fr; gap: 44px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 780px) {
    .compare { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .page-hero { padding: 28px 0 50px; }
    .fact-card { padding: 26px 24px; }
}

.hero__partners { margin-top: 30px; color: var(--body); font-size: 15px; line-height: 1.6; max-width: 52ch; }

/* ==========================================================================
   News detail
   ========================================================================== */

.story { padding-bottom: 40px; }
.story__inner { max-width: 760px; margin-inline: auto; }

.story__head { position: relative; padding: 34px 0 30px; }
.story__head::before {
    content: ""; position: absolute; inset: -92px 0 auto 0; height: 460px; z-index: -1;
    background: radial-gradient(760px 420px at 0% 0%, var(--accent-050) 0%, transparent 62%);
    pointer-events: none;
}
.story__back { font-size: 16px; }
.story__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 26px 0 18px; }
.story__meta time { color: var(--body-light); font-size: 15px; }
.story__draft {
    background: #fdf1e3; color: #8a5a1e; border-radius: var(--pill);
    padding: 5px 13px; font-family: Nunito, sans-serif; font-weight: 800; font-size: 12px;
}
.story h1 {
    font-size: clamp(32px, 4.2vw, 50px); font-weight: 800; line-height: 1.08; letter-spacing: -.025em;
}
.story__standfirst {
    margin-top: 22px; font-size: 20px; line-height: 1.6; color: var(--body);
}

.story__image {
    width: 100%; max-height: 460px; object-fit: cover;
    border-radius: var(--r-xl); margin: 10px 0 44px;
}

/* Rendered Markdown --------------------------------------------------------
   Element selectors are deliberate: this markup is generated, not authored. */
.story__body { font-size: 18px; line-height: 1.75; color: var(--ink-soft); }
.story__body > * + * { margin-top: 22px; }
.story__body h2 { font-size: 30px; font-weight: 800; line-height: 1.2; margin-top: 42px; }
.story__body h3 { font-size: 23px; font-weight: 800; line-height: 1.25; margin-top: 34px; }
.story__body h4 { font-size: 19px; font-weight: 800; margin-top: 28px; }
.story__body ul, .story__body ol { padding-left: 24px; display: grid; gap: 10px; }
.story__body li { padding-left: 4px; }
.story__body li::marker { color: var(--accent); font-weight: 700; }
.story__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.story__body a:hover { color: var(--accent-dark); }
.story__body strong { font-weight: 700; color: var(--ink); }
.story__body blockquote {
    margin-left: 0; padding: 6px 0 6px 26px;
    border-left: 4px solid var(--accent-200);
    color: var(--body); font-size: 19px;
}
.story__body code {
    background: var(--cream); border: 1px solid var(--line); border-radius: 6px;
    padding: 2px 7px; font-size: .9em;
}
.story__body pre {
    background: var(--ink); color: #fff; border-radius: var(--r-md);
    padding: 20px 24px; overflow-x: auto;
}
.story__body pre code { background: none; border: 0; color: inherit; padding: 0; }
.story__body img { border-radius: var(--r-md); margin-inline: auto; }
.story__body hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.story__body table { width: 100%; border-collapse: collapse; }
.story__body th, .story__body td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }

.story__cta { margin-top: 40px; }

.story__more { margin-top: 70px; padding-top: 46px; border-top: 1px solid var(--line); }
.story-more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.story-more-grid > * { min-width: 0; }

/* Markdown toolbar (admin) ------------------------------------------------- */

.md-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.md-toolbar button {
    min-width: 36px; height: 32px; padding: 0 10px;
    border: 0; border-radius: 8px;
    background: var(--cream); color: var(--ink);
    box-shadow: inset 0 0 0 1.5px var(--line);
    font-family: Nunito, sans-serif; font-weight: 700; font-size: 13px;
}
.md-toolbar button:hover { background: var(--accent); color: #fff; box-shadow: none; }

@media (max-width: 780px) {
    .story__standfirst { font-size: 18px; }
    .story__body { font-size: 17px; }
}

/* Event dates on a detail page. */
.story__when {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px;
    margin: 30px 0 0; padding: 24px 26px;
    background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--accent);
}
.story__when dt {
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 12px;
    letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
    margin-bottom: 5px;
}
.story__when dd { margin: 0; font-family: Nunito, sans-serif; font-weight: 700; font-size: 17px; color: var(--ink); }
.story__past {
    background: var(--cream); color: var(--body); box-shadow: inset 0 0 0 1.5px var(--line);
    border-radius: var(--pill); padding: 5px 13px;
    font-family: Nunito, sans-serif; font-weight: 800; font-size: 12px;
}

/* Single-column account pages (change password). */
.auth__single { max-width: 620px; }
.auth__back { display: inline-flex; margin-bottom: 22px; font-size: 16px; }

.password-rules {
    list-style: none; padding: 0; margin: 12px 0 0;
    display: flex; flex-wrap: wrap; gap: 8px;
}
.password-rules li {
    background: var(--cream); border: 1px solid var(--line); border-radius: var(--pill);
    padding: 6px 13px; font-size: 13px; color: var(--body);
}

.status-note--done { background: #e8f4ec; color: #1f6b40; }
.dash__account { margin-left: auto; align-self: center; }

/* Administrator-issued password, shown once. */
.issued {
    background: #fff; border-radius: var(--r-lg); padding: 24px 28px; margin-bottom: 22px;
    box-shadow: var(--shadow-sm); border-left: 5px solid var(--accent);
}
.issued__value { margin: 10px 0 14px; }
.issued__value code {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 26px; letter-spacing: .06em; color: var(--ink);
    background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
    padding: 12px 20px; user-select: all;
}
.issued__note { color: var(--body); font-size: 15px; line-height: 1.6; max-width: 70ch; }

.lock-tag {
    display: inline-block; margin-left: 8px;
    background: #fdf1e3; color: #8a5a1e; border-radius: var(--pill);
    padding: 3px 10px; font-family: Nunito, sans-serif; font-weight: 800; font-size: 11px;
    letter-spacing: .06em; text-transform: uppercase;
}

.admin-actions .link-pink {
    border: 0; background: transparent; padding: 0; font-size: 15px; cursor: pointer;
}
