/* ==========================================================================
   NZPU — New Zealand Powerlifting United
   Faithful reskin of nzpu.org: black-and-white / greyscale. White pages,
   grey Poppins body copy, uppercase Raleway headings, black pill buttons,
   near-black header + hero. Fonts loaded from Google Fonts with system-font
   fallbacks so the site still renders (in a system sans) when offline.
   Design tokens sampled from the live site's computed styles.
   ========================================================================== */

:root {
    --nz-dark: #121519;        /* header / hero near-black (rgba(18,21,25,.98)) */
    --nz-dark-2: #313030;      /* secondary dark panels */
    --nz-black: #000000;       /* buttons */
    --nz-ink: #1a1a1a;         /* headings on light */
    --nz-text: #595c60;        /* body copy grey (from live site) */
    /* Darkened from the site's original #8a8f94 to clear WCAG 2.2 AA 4.5:1 text contrast on white
       (axe-core E2E scan: color-contrast on .nz-eyebrow/.nz-label/.nz-doc__meta/.nz-tier__per etc). */
    --nz-muted: #5a5e63;
    --nz-bg: #ffffff;
    --nz-bg-alt: #f2f5f7;      /* light grey section band (from live site) */
    --nz-border: #e3e7ea;
    --nz-border-dark: #2a2e33;
    --nz-white: #ffffff;
    --nz-heading-font: 'Raleway', 'Segoe UI', Arial, sans-serif;
    --nz-body-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html, body {
    font-family: var(--nz-body-font);
    background-color: var(--nz-bg);
    color: var(--nz-text);
    margin: 0;
    min-height: 100vh;
    scroll-behavior: smooth;
    font-weight: 400;
}

h1, h2, h3, h4, h5 {
    font-family: var(--nz-heading-font);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.1;
    color: var(--nz-ink);
    margin-top: 0;
    /* WCAG 1.4.10 reflow: a long unbroken competition/venue name must wrap at 320 px rather than overflow. */
    overflow-wrap: anywhere;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.35rem; }

a { color: var(--nz-ink); text-decoration: none; }
a:hover { color: var(--nz-black); text-decoration: underline; }

p { line-height: 1.8; color: var(--nz-text); }

.nz-container { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.nz-section { padding: 4.5rem 0; }
.nz-section--tight { padding: 3rem 0; }
.nz-section--alt { background: var(--nz-bg-alt); }
.nz-eyebrow {
    color: var(--nz-muted);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}
.nz-lead { font-size: 1.15rem; color: var(--nz-text); max-width: 62ch; }
.nz-divider { height: 3px; width: 60px; background: var(--nz-ink); border: 0; margin: 1rem 0 1.75rem; }
.nz-center { text-align: center; }
.nz-center .nz-divider { margin-left: auto; margin-right: auto; }

/* ---- Buttons: black pill (from live site: #000, radius 25px, Poppins 500) ---- */
.nz-btn {
    display: inline-block;
    font-family: var(--nz-body-font);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.7rem 2rem;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
    text-decoration: none;
    line-height: 1.3;
}
.nz-btn:hover { text-decoration: none; }
.nz-btn--primary { background: var(--nz-black); color: var(--nz-white); border-color: var(--nz-black); }
.nz-btn--primary:hover { background: #2c2c2c; border-color: #2c2c2c; color: #fff; }
/* Outline sits on light backgrounds by default (black on white) */
.nz-btn--outline { background: transparent; color: var(--nz-ink); border-color: var(--nz-ink); }
.nz-btn--outline:hover { background: var(--nz-ink); color: #fff; }
/* On dark backgrounds, use the light variants */
/* Filled light action for dark surfaces (resource feature cards, hero). Defined explicitly so the
   contrast on a near-black card is #050505 on #fff, never the base button's inherited colours. */
.nz-btn--light { background: #fff; color: var(--nz-black); border-color: #fff; }
.nz-btn--light:hover { background: #dcdcdc; color: var(--nz-black); border-color: #dcdcdc; }
.nz-on-dark .nz-btn--outline, .nz-btn--outline-light { background: transparent; color: #fff; border-color: #fff; }
.nz-on-dark .nz-btn--outline:hover, .nz-btn--outline-light:hover { background: #fff; color: var(--nz-dark); }
.nz-on-dark .nz-btn--primary { background: #fff; color: var(--nz-black); border-color: #fff; }
.nz-on-dark .nz-btn--primary:hover { background: #e6e6e6; border-color: #e6e6e6; }
.nz-btn--block { display: block; width: 100%; text-align: center; }
.nz-btn:disabled, .nz-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---- Top navigation: one-line professional header (professional-ui-payment-first WP1) ----
   Near-black, single row on desktop, an accessible button-driven mobile menu and account dropdown
   (behaviour in wwwroot/js/nzpu-nav.js — this is a static component, not an interactive circuit). */
.nz-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.97);
    border-bottom: 1px solid var(--nz-border-dark);
    backdrop-filter: blur(10px);
}
.nz-nav__inner {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.5rem 1.25rem;
}
.nz-nav__brand { display: flex; align-items: center; flex: 0 0 auto; }
.nz-nav__brand img { height: 40px; width: auto; display: block; }

.nz-nav__toggle {
    display: none;
    margin-left: auto;
    border: 1px solid #4b4b4b;
    border-radius: 10px;
    background: #161616;
    color: #fff;
    cursor: pointer;
    padding: 0.55rem 0.65rem;
}
.nz-nav__toggle span { display: block; width: 20px; height: 2px; background: #fff; margin: 4px 0; border-radius: 1px; }

.nz-nav__links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: 0.5rem;
    flex-wrap: nowrap;
    min-width: 0;
}
.nz-nav__link {
    color: #dfdfdf;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    padding: 0.75rem 0.65rem;
    border-radius: 8px;
    white-space: nowrap;
}
.nz-nav__link:hover, .nz-nav__link.active { color: #fff; background: #1c1c1c; text-decoration: none; }

.nz-nav__actions { display: flex; align-items: center; gap: 0.4rem; margin-left: auto; flex: 0 0 auto; }
.nz-nav__icon-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 42px;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    padding: 0.5rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.nz-nav__icon-link:hover { background: #1c1c1c; color: #fff; text-decoration: none; }
.nz-nav__icon-link svg { width: 19px; height: 19px; flex: 0 0 auto; }
.nz-nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    background: #fff;
    color: var(--nz-black);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.78rem;
    font-weight: 800;
    border: 1px solid #fff;
    border-radius: 999px;
    padding: 0 1.25rem;
    margin-left: 0.25rem;
}
.nz-nav__cta:hover { background: #dcdcdc; border-color: #dcdcdc; }

/* ---- Account menu dropdown ---- */
.nz-account-menu { position: relative; }
.nz-account-menu__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 42px;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    border-radius: 10px;
    padding: 0.5rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 600;
}
.nz-account-menu__button:hover { background: #1c1c1c; }
.nz-account-menu__button svg { width: 19px; height: 19px; }
.nz-account-menu__caret { font-size: 0.8rem; }
.nz-account-menu__list {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 240px;
    display: grid;
    background: #fff;
    color: var(--nz-ink);
    border: 1px solid var(--nz-border);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
    padding: 0.4rem;
    z-index: 10;
}
.nz-account-menu__list[hidden] { display: none; }
.nz-account-menu__item {
    display: block;
    width: 100%;
    text-align: left;
    color: var(--nz-ink);
    background: transparent;
    border: 0;
    padding: 0.6rem 0.7rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--nz-body-font);
}
.nz-account-menu__item:hover { background: var(--nz-bg-alt); text-decoration: none; }
.nz-account-menu__logout-form { margin: 0; }
.nz-account-menu__logout { color: #9a231e; }

/* Between the full desktop layout and the mobile menu the five links, two utility links and the Join
   pill must still share one row. Labels are visually hidden (not display:none) so the accessible names
   survive; the icons keep their 42–44 px targets. */
@media (max-width: 1180px) and (min-width: 961px) {
    .nz-nav__inner { gap: 0.6rem; }
    .nz-nav__links { margin-left: 0; gap: 0; }
    .nz-nav__link { padding: 0.75rem 0.4rem; font-size: 0.68rem; letter-spacing: 0.02em; }
    .nz-nav__icon-link span,
    .nz-account-menu__button > span:not(.nz-account-menu__caret) {
        position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
    }
    .nz-nav__icon-link, .nz-account-menu__button { position: relative; padding: 0.5rem; min-width: 42px; justify-content: center; }
    .nz-nav__cta { padding: 0 0.9rem; font-size: 0.72rem; }
}

@media (max-width: 960px) {
    .nz-nav__toggle { display: inline-flex; }
    .nz-nav__inner { flex-wrap: wrap; min-height: 64px; }
    .nz-nav__links {
        display: none;
        order: 3;
        width: 100%;
        margin: 0;
        padding: 0.5rem 0 0.4rem;
        border-top: 1px solid var(--nz-border-dark);
        flex-direction: column;
        align-items: stretch;
    }
    .nz-nav__links.is-open { display: flex; }
    .nz-nav__link { padding: 0.85rem 0.7rem; }
    .nz-nav__actions { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
}

/* The Account login / Instagram labels wrap under their icon rather than disappearing — hiding text
   visually with display:none would also remove it from the accessible name (WCAG 4.1.2). */
@media (max-width: 480px) {
    .nz-nav__inner { gap: 0.5rem; padding: 0.4rem 0.75rem; }
    .nz-nav__brand img { height: 34px; }
    /* The utility group may shrink and wrap under the brand row on a 320 px screen instead of forcing
       the page wider than the viewport (WCAG 1.4.10 reflow). */
    .nz-nav__actions { flex: 1 1 auto; min-width: 0; flex-wrap: wrap; justify-content: flex-end; gap: 0.25rem; }
    .nz-nav__icon-link, .nz-account-menu__button { flex-direction: column; gap: 0.15rem; padding: 0.35rem 0.4rem; font-size: 0.62rem; min-height: 40px; }
    .nz-nav__cta { min-height: 40px; padding: 0 0.7rem; font-size: 0.68rem; }
}

/* ---- Hero: dark photo background, white uppercase Raleway heading ----
   The owned lifting photo (spec: live asset mapping table) with a strong black overlay so the
   heading/eyebrow/lead clear WCAG AA on top of it. Root-relative url() so the hero background
   resolves the same way regardless of the current route depth or any client-side navigation. */
.nz-hero {
    position: relative;
    min-height: 560px;
    padding: 7rem 0 6rem;
    display: flex;
    align-items: center;
    /* Fallback solid colour declared first so the section still reads correctly (dark, on-brand)
       if the background image fails to load. */
    background-color: var(--nz-dark);
    background-image: linear-gradient(rgba(5,5,5,0.88), rgba(5,5,5,0.92)),
                url('/images/ukpu_home_page_hero-.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
}
.nz-hero h1 { color: #fff; max-width: 18ch; }
.nz-hero .nz-eyebrow { color: rgba(255,255,255,0.75); }
.nz-hero p { color: rgba(255,255,255,0.9); }
.nz-hero__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2rem; }

@media (max-width: 480px) {
    .nz-hero { min-height: 500px; padding: 4.5rem 0; }
}

/* ---- Rules/resources feature: a plain black panel (federation-website WP0 gate D14). The obsolete
   WPU rulebook cover artwork that used to sit behind this section is gone from wwwroot; the historical
   PDF remains under content/files as an archive, never as current guidance. No background image. */
.nz-feature-rules {
    position: relative;
    min-height: 360px;
    padding: 5rem 0;
    display: flex;
    align-items: center;
    background-color: var(--nz-dark);
    color: #fff;
    border-top: 1px solid var(--nz-border-dark);
    border-bottom: 1px solid var(--nz-border-dark);
}
.nz-feature-rules h2 { color: #fff; }
.nz-feature-rules .nz-eyebrow { color: rgba(255,255,255,0.75); }
.nz-feature-rules p { color: rgba(255,255,255,0.9); max-width: 60ch; }

@media (max-width: 480px) {
    .nz-feature-rules { min-height: 360px; padding: 3.5rem 0; }
}

/* ---- Interior page hero banner (photo strip with page title) ---- */
.nz-pagehero {
    position: relative;
    padding: 4.5rem 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
}
.nz-pagehero::before { content: ""; position: absolute; inset: 0; background: rgba(10, 12, 15, 0.55); }
.nz-pagehero > .nz-container { position: relative; }
.nz-pagehero h1 { color: #fff; margin: 0; }
.nz-pagehero p { color: rgba(255,255,255,0.9); margin: 0.75rem auto 0; max-width: 60ch; }
.nz-pagehero .nz-eyebrow { color: rgba(255,255,255,0.75); }
.nz-pagehero .nz-divider { background: #fff; margin-left: auto; margin-right: auto; }

/* ---- Image-backed feature card (home CTAs) ---- */
.nz-feature {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: #fff;
    background-size: cover;
    background-position: center;
}
.nz-feature::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,12,15,0.15) 0%, rgba(10,12,15,0.55) 45%, rgba(10,12,15,0.9) 100%);
}
.nz-feature > * { position: relative; }
.nz-feature h2 { color: #fff; }
.nz-feature p { color: rgba(255,255,255,0.9); }
.nz-feature .nz-divider { background: #fff; }

/* Generic dark band (for dark sections like "Reach out to us").
   background-color (not the `background` shorthand): .nz-hero combines this class with its own
   background-image (the owned hero photo) — the shorthand form would reset that layer back to
   `none` on every page that pairs the two classes, since .nz-on-dark shares .nz-hero's specificity
   and comes later in the cascade. This is exactly how the hero photo previously went missing. */
.nz-on-dark { background-color: var(--nz-dark); color: #fff; }
.nz-on-dark h1, .nz-on-dark h2, .nz-on-dark h3 { color: #fff; }
.nz-on-dark p, .nz-on-dark .nz-lead { color: rgba(255,255,255,0.85); }
.nz-on-dark .nz-eyebrow { color: rgba(255,255,255,0.7); }
.nz-on-dark .nz-divider { background: #fff; }

/* ---- Cards / panels (light) ---- */
.nz-panel {
    background: #fff;
    border: 1px solid var(--nz-border);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.nz-grid { display: grid; gap: 1.5rem; }
/* min(Npx, 100%) caps each track's minimum at the container width itself, so a narrow viewport (WCAG
   1.4.10 reflow — nzpu-competition-entry WP3 task item 3 responsive sweep found this overflowing at
   320px on pages that use these grids, e.g. the competition detail Venue/Entries grid) never forces a
   track wider than the viewport; at any normal width the behaviour is identical to the plain px minimum. */
.nz-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.nz-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.nz-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }

/* ---- Membership tier cards (white, black price) ---- */
.nz-tier {
    background: #fff;
    border: 1px solid var(--nz-border);
    border-top: 4px solid var(--nz-black);
    border-radius: 8px;
    padding: 2.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.nz-tier__name { color: var(--nz-ink); margin-bottom: 0.25rem; }
.nz-tier__age { color: var(--nz-muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 600; }
.nz-tier__price { font-family: var(--nz-heading-font); font-size: 2.8rem; font-weight: 700; color: var(--nz-ink); margin: 1rem 0 0.25rem; }
.nz-tier__per { color: var(--nz-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.nz-tier__cta { margin-top: auto; padding-top: 1.5rem; }

/* ---- Document / resource list ---- */
.nz-doclist { list-style: none; padding: 0; margin: 0; }
.nz-doc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--nz-border);
    border-radius: 6px;
    margin-bottom: 0.75rem;
}
.nz-doc__name { font-weight: 600; color: var(--nz-ink); }
.nz-doc__meta { color: var(--nz-muted); font-size: 0.85rem; }

/* ---- Events ---- */
.nz-event {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.25rem;
    align-items: center;
    background: #fff;
    border: 1px solid var(--nz-border);
    border-left: 4px solid var(--nz-black);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}
.nz-event__date { font-family: var(--nz-heading-font); font-weight: 700; text-transform: uppercase; color: var(--nz-ink); line-height: 1.1; }
.nz-event__title { color: var(--nz-ink); margin: 0 0 0.25rem; }
@media (max-width: 560px) { .nz-event { grid-template-columns: 1fr; } }

/* ---- Records gallery ---- */
.nz-records-cat { margin-bottom: 2.5rem; }
.nz-records-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.nz-record-card { background: #fff; border: 1px solid var(--nz-border); border-radius: 8px; overflow: hidden; }
.nz-record-card img { width: 100%; height: auto; display: block; background: #fff; }
.nz-record-card__label { padding: 0.75rem 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.85rem; color: var(--nz-ink); }

/* ---- Notices ---- */
.nz-notice {
    background: var(--nz-bg-alt);
    border: 1px solid var(--nz-border);
    border-left: 4px solid var(--nz-ink);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    color: var(--nz-text);
}
.nz-notice--info { border-left-color: #4a4a4a; }
.nz-notice--success { border-left-color: #1f7a34; }
.nz-notice--warn { border-left-color: #9a6b00; }

/* ---- Forms (light) ---- */
.nz-form { max-width: 560px; }
.nz-form .nz-field { margin-bottom: 1.1rem; }
.nz-label { display: block; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78rem; color: var(--nz-muted); margin-bottom: 0.4rem; }
.nz-input, .nz-select, .nz-textarea {
    width: 100%;
    background: #fff;
    border: 1px solid #ccd1d6;
    border-radius: 6px;
    color: var(--nz-ink);
    padding: 0.7rem 0.85rem;
    font-size: 1rem;
    font-family: var(--nz-body-font);
}
.nz-input:focus, .nz-select:focus, .nz-textarea:focus { outline: none; border-color: var(--nz-ink); box-shadow: 0 0 0 3px rgba(0,0,0,0.08); }
.nz-textarea { min-height: 130px; resize: vertical; }
.nz-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .nz-form-row { grid-template-columns: 1fr; } }
.validation-message, .nz-error-text { color: #c0231f; font-size: 0.85rem; }

/* ---- Auth card ---- */
.nz-auth-wrap { display: flex; justify-content: center; padding: 3.5rem 1.25rem; background: var(--nz-bg-alt); min-height: 60vh; }
.nz-auth-card { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--nz-border); border-radius: 10px; padding: 2.25rem; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.nz-auth-card__logo { display: block; height: 52px; margin: 0 auto 1.5rem; }

/* ---- Tables ---- */
.nz-table-wrap { overflow-x: auto; }
.nz-table { width: 100%; border-collapse: collapse; }
.nz-table th, .nz-table td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--nz-border); font-size: 0.92rem; color: var(--nz-text); }
.nz-table th { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.75rem; color: var(--nz-muted); }
.nz-table tr:hover td { background: var(--nz-bg-alt); }

/* ---- Badges (greyscale; status is never colour-only — every badge carries a dot/icon + text) ---- */
.nz-badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid transparent; white-space: nowrap; }
.nz-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.nz-badge--active { background: var(--nz-ink); color: #fff; }
.nz-badge--expired { background: #fff; color: var(--nz-muted); border-color: #ccd1d6; }
.nz-badge--pending { background: var(--nz-bg-alt); color: var(--nz-ink); border-color: #ccd1d6; }
.nz-badge--warn { background: #fff8e6; color: #7a5900; border-color: #e8cf8a; }
.nz-badge--danger { background: #fdeceb; color: #9a231e; border-color: #f3b7b3; }
.nz-badge--info { background: #eef3f8; color: #2b4a63; border-color: #c6d6e3; }
.nz-badge--none { background: #fff; color: var(--nz-muted); border-color: #ccd1d6; border-style: dashed; }
.nz-badge--dark { background: var(--nz-dark); color: #fff; }

/* ---- Membership card (account) — dark feature card, stays within B&W ---- */
.nz-memcard {
    background: var(--nz-dark);
    border: 1px solid var(--nz-border-dark);
    border-radius: 12px;
    padding: 1.9rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.nz-memcard::after {
    content: "NZPU"; position: absolute; right: -0.4rem; bottom: -2.6rem; font-size: 8rem; font-weight: 900;
    font-style: italic; color: rgba(255,255,255,0.035); font-family: var(--nz-heading-font); pointer-events: none;
}
.nz-memcard__type { font-family: var(--nz-heading-font); font-size: 1.3rem; font-weight: 700; text-transform: uppercase; color: rgba(255,255,255,0.82); letter-spacing: 0.04em; }
/* Headings and copy placed directly inside the dark card (profile page) must not inherit the light-page
   body/heading colours, which would fall below AA contrast on near-black. */
.nz-memcard h2, .nz-memcard h3, .nz-memcard h4 { color: #fff; }
.nz-memcard p { color: rgba(255,255,255,0.86); }
.nz-memcard__number-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin: 0.35rem 0 0.35rem; position: relative; z-index: 1; }
.nz-memcard__number { font-family: var(--nz-heading-font); font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.01em; color: #fff; margin: 0; }
.nz-memcard__copy {
    display: inline-flex; align-items: center; gap: 0.3rem; background: rgba(255,255,255,0.1); color: #fff;
    border: 1px solid rgba(255,255,255,0.28); border-radius: 999px; padding: 0.3rem 0.75rem; font-size: 0.78rem;
    font-weight: 600; cursor: pointer;
}
.nz-memcard__copy:hover { background: rgba(255,255,255,0.2); }
.nz-memcard__sub { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.nz-memcard__meta { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-top: 1.25rem; padding-top: 1.15rem; border-top: 1px solid rgba(255,255,255,0.14); }
.nz-memcard__meta dt { color: rgba(255,255,255,0.6); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.06em; }
/* Items may shrink below their min-content width and long unbroken values (an account GUID, a login
   email, a member number) wrap instead of widening the grid past a 320 px viewport. */
.nz-memcard__meta > div { min-width: 0; }
.nz-memcard__meta dd { margin: 0.25rem 0 0; font-weight: 600; font-size: 1.05rem; color: #fff; overflow-wrap: anywhere; }
.nz-memcard--empty { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }

/* ---- Renew-early box ---- */
.nz-renewbox { padding: 1.25rem 1.4rem; border: 1px solid var(--nz-border); border-radius: 10px; background: var(--nz-bg-alt); }
.nz-date-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; margin: 0.9rem 0 1.1rem; }
.nz-date-compare__arrow { font-size: 1.3rem; font-weight: 800; color: var(--nz-muted); text-align: center; }
.nz-date-block { padding: 0.8rem 0.9rem; border-radius: 8px; background: #fff; border: 1px solid var(--nz-border); }
.nz-date-block strong { display: block; margin-top: 0.2rem; font-size: 1.1rem; color: var(--nz-ink); }
@media (max-width: 560px) { .nz-date-compare { grid-template-columns: 1fr; } .nz-date-compare__arrow { transform: rotate(90deg); } }

/* ---- Admin dashboard metrics ---- */
.nz-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.nz-metric { background: #fff; border: 1px solid var(--nz-border); border-radius: 10px; padding: 1.25rem 1.4rem; }
.nz-metric__value { font-family: var(--nz-heading-font); font-size: 2.2rem; font-weight: 800; margin: 0.35rem 0 0.15rem; color: var(--nz-ink); }

/* ---- Toolbar (search + filters) ---- */
.nz-toolbar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 1rem 0; }
.nz-toolbar .nz-input, .nz-toolbar .nz-select { min-width: 160px; }
.nz-toolbar .nz-input { flex: 1 1 240px; }

/* ---- Stepper (import centre) ---- */
.nz-stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-bottom: 1.5rem; }
.nz-step { position: relative; padding: 0.8rem 1rem; color: var(--nz-muted); border: 1px solid var(--nz-border); border-radius: 8px; background: var(--nz-bg-alt); font-weight: 700; font-size: 0.9rem; }
.nz-step--active { color: var(--nz-ink); border-color: var(--nz-ink); background: #fff; }
.nz-step--done { color: var(--nz-ink); border-color: var(--nz-border); background: #fff; }
.nz-step__check { margin-right: 0.35rem; }
@media (max-width: 700px) { .nz-stepper { grid-template-columns: 1fr; } }

/* ---- Dropzone (CSV upload) ---- */
.nz-dropzone { padding: 2.5rem 1.5rem; text-align: center; border: 2px dashed var(--nz-border-dark); border-radius: 10px; background: var(--nz-bg-alt); }
.nz-dropzone__icon { width: 52px; height: 52px; margin: 0 auto 0.9rem; display: grid; place-items: center; border-radius: 12px; background: #fff; border: 1px solid var(--nz-border); font-size: 1.4rem; }

/* ---- Import summary tiles ---- */
.nz-import-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0.7rem; margin-top: 1.1rem; }
.nz-summary-item { padding: 0.9rem; border: 1px solid var(--nz-border); border-radius: 8px; background: #fff; text-align: center; }
.nz-summary-item strong { display: block; font-size: 1.5rem; font-family: var(--nz-heading-font); }

/* ---- Toggle switch (accessible: real checkbox, styled track) ---- */
.nz-switch { position: relative; display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.nz-switch input[type="checkbox"] {
    appearance: none; -webkit-appearance: none; width: 40px; height: 22px; margin: 0; border-radius: 999px;
    background: #ccd1d6; border: 1px solid #b9c0c6; position: relative; cursor: pointer; transition: background-color .15s ease;
    flex: none;
}
.nz-switch input[type="checkbox"]::after {
    content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
    background: #fff; transition: left .15s ease; box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.nz-switch input[type="checkbox"]:checked { background: var(--nz-ink); border-color: var(--nz-ink); }
.nz-switch input[type="checkbox"]:checked::after { left: 20px; }
.nz-switch input[type="checkbox"]:focus-visible { outline: 3px solid #5ca9ff; outline-offset: 2px; }

/* ---- External link indicator ---- */
.nz-ext-link { display: inline-flex; align-items: center; gap: 0.3rem; }
.nz-ext-link__icon { font-size: 0.75em; }

/* Links inline within body copy must be distinguishable by more than colour alone (WCAG 2.2 AA
   1.4.1 / axe "link-in-text-block"). */
.nz-lead a, .nz-muted a, p a { text-decoration: underline; text-underline-offset: 2px; }
/* Links inside notices/callouts sit in running text: underline so they never rely on colour alone (WCAG 1.4.1). */
.nz-notice a:not(.nz-btn), .nz-callout a:not(.nz-btn), .nz-field a:not(.nz-btn), li a:not(.nz-btn) { text-decoration: underline; text-underline-offset: 2px; }

/* ---- Callouts ---- */
.nz-callout { padding: 1rem 1.2rem; border-left: 4px solid var(--nz-ink); border-radius: 0 8px 8px 0; background: var(--nz-bg-alt); color: var(--nz-text); }
.nz-callout--success { border-left-color: #1f7a34; }
.nz-callout--warn { border-left-color: #9a6b00; }

/* ---- Screen-reader-only utility ---- */
.nz-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; }

/* ---- Focus visibility (keyboard operability, WCAG 2.2 AA) ---- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible {
    outline: 3px solid #2b6cb0;
    outline-offset: 2px;
}
/* FocusOnNavigate moves programmatic focus to each page's <h1> (tabindex="-1") after a route change so
   screen readers announce the new page; that heading is not an interactive target and must not wear the
   keyboard focus ring. */
h1[tabindex="-1"]:focus, h1[tabindex="-1"]:focus-visible { outline: none; }

/* ---- Live status region (aria-live) ---- */
.nz-live-status { font-weight: 600; }

/* ---- Tier eligibility badge on join cards ---- */
.nz-tier__badge { margin-bottom: 0.5rem; }
.nz-tier--featured { border-top-color: var(--nz-ink); box-shadow: 0 6px 24px rgba(0,0,0,0.1); position: relative; }
.nz-tier--featured::before {
    content: "Most popular"; position: absolute; top: 0.9rem; right: -2.1rem; width: 8.5rem; padding: 0.25rem 0;
    text-align: center; color: #fff; background: var(--nz-ink); transform: rotate(38deg); font-size: 0.62rem;
    font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
}

/* ---- Footer: near-black, greyscale ---- */
.nz-footer { background: var(--nz-dark); border-top: 1px solid var(--nz-border-dark); padding: 2.75rem 0; margin-top: 0; }
.nz-footer__inner { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.nz-footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.nz-footer__links a { color: rgba(255,255,255,0.75); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.nz-footer__links a:hover { color: #fff; }
.nz-footer__copy { color: rgba(255,255,255,0.5); font-size: 0.82rem; }
.nz-footer img { height: 40px; width: auto; }
/* Grouped footer (federation-website D14): brand column plus three labelled link groups. */
.nz-footer__inner--grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; align-items: start; }
.nz-footer__tagline { color: rgba(255,255,255,0.7); font-size: 0.85rem; max-width: 34ch; margin: 1rem 0 0; line-height: 1.6; }
.nz-footer__group h2 { color: #fff; font-size: 0.85rem; letter-spacing: 0.08em; margin: 0 0 0.75rem; }
.nz-footer__group a { display: block; color: rgba(255,255,255,0.75); font-size: 0.88rem; margin: 0.55rem 0; }
.nz-footer__group a:hover { color: #fff; }
.nz-footer__bottom { border-top: 1px solid #373c3e; margin-top: 2rem; padding-top: 1.25rem; }
@media (max-width: 960px) { .nz-footer__inner--grid { grid-template-columns: 1.5fr 1fr 1fr; } .nz-footer__inner--grid > .nz-footer__group:last-child { grid-column: 2 / -1; } }
@media (max-width: 700px) { .nz-footer__inner--grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } .nz-footer__brand { grid-column: 1 / -1; } .nz-footer__inner--grid > .nz-footer__group:last-child { grid-column: auto; } }
@media (max-width: 420px) { .nz-footer__inner--grid { grid-template-columns: 1fr; } }

/* ---- Utility ---- */
.nz-mt-1 { margin-top: 0.5rem; } .nz-mt-2 { margin-top: 1rem; } .nz-mt-3 { margin-top: 1.5rem; } .nz-mt-4 { margin-top: 2rem; }
.nz-mb-2 { margin-bottom: 1rem; } .nz-mb-3 { margin-bottom: 1.5rem; }
.nz-muted { color: var(--nz-muted); }
.nz-flex { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.nz-spin { display: inline-block; width: 1.1em; height: 1.1em; border: 2px solid rgba(0,0,0,0.2); border-top-color: var(--nz-ink); border-radius: 50%; animation: nz-spin 0.7s linear infinite; vertical-align: -0.15em; }
@keyframes nz-spin { to { transform: rotate(360deg); } }

/* ---- Blazor framework error UI (kept from template) ---- */
.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}
.blazor-error-boundary::after { content: "An error has occurred."; }

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

/* ==== WP2 competitions ==== */
/* Stepper variant for the 4-step create-competition flow (nz-stepper's default grid is 3 columns). */
.nz-stepper--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 700px) { .nz-stepper--4 { grid-template-columns: 1fr; } }

/* Danger-zone panel (delete draft) — a quieter warning border than a full notice. */
.danger-zone { border-color: #e3b4b7; }

/* Small button variant used on competition/team tables and cards (nz-btn has no size modifier yet). */
.nz-btn--small { padding: 0.4rem 0.75rem; font-size: 0.85rem; }
/* ==== end WP2 ==== */
/* ==== WP1 communications ==== */
/* admin-calendar-strengthmeet WP1 (ADR-011). Everything here is additive and namespaced; no existing
   rule above is modified. The four-step campaign stepper, the masked-address list and the campaign
   review summary are the only shapes the existing nz-* system did not already cover. */

/* Four-step stepper (the shared .nz-stepper is a fixed three-column grid). */
.nz-stepper--4 { grid-template-columns: repeat(4, 1fr); }

/* The stepper is an <ol>; strip the list affordances without losing the semantics. */
.nz-stepper { list-style: none; padding-left: 0; }

/* Masked recipient rows in a campaign preview. */
.nz-masked { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* The exact confirmation phrase an administrator must retype before a send. Monospaced so a
   transposed digit in the recipient count is visible rather than plausible. */
.nz-confirm-phrase {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1rem;
    letter-spacing: 0.04em;
    user-select: all;
}

/* Campaign exclusion counters reuse .nz-import-summary; only the label needs softening. */
.nz-summary-item span { color: var(--nz-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* At 320px the stepper stacks rather than squeezing four labels into one row. */
@media (max-width: 640px) {
    .nz-stepper, .nz-stepper--4 { grid-template-columns: 1fr; }
}
/* ==== end WP1 ==== */

/* ==== professional-ui-payment-first WP1 ====
   Home quick links, resource feature cards, the join/payment flow, DOB editor and payments panel
   (mockup.html; ADR-014). All additive/namespaced — nothing above is modified except the .nz-nav block
   (replaced above for the one-line header) and the .band -> .nz-band rename on Home.razor. */

/* ---- Home: quick-links grid + featured competition split ---- */
.nz-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--nz-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0,0,0,0.08);
    overflow: hidden;
    transform: translateY(-2.5rem);
    margin-bottom: -1.5rem;
}
.nz-quick-card { padding: 1.5rem; text-decoration: none; min-height: 150px; border-right: 1px solid var(--nz-border); }
.nz-quick-card:last-child { border-right: 0; }
.nz-quick-card:hover { background: var(--nz-bg-alt); text-decoration: none; }
.nz-quick-card__icon { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 10px; background: var(--nz-black); color: #fff; margin-bottom: 1.1rem; font-weight: 700; }
.nz-quick-card strong { display: block; font-size: 0.95rem; color: var(--nz-ink); }
.nz-quick-card small { display: block; color: var(--nz-muted); margin-top: 0.35rem; }

.nz-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr); gap: 3rem; align-items: center; }
.nz-event-card { border: 1px solid var(--nz-border); background: #fff; border-radius: 14px; box-shadow: 0 7px 28px rgba(0,0,0,0.05); overflow: hidden; }
.nz-event-card__top { color: #fff; background: var(--nz-black); padding: 1.4rem 1.5rem; }
.nz-event-card__top span { text-transform: uppercase; color: #bdbdbd; letter-spacing: 0.1em; font-size: 0.7rem; font-weight: 700; }
.nz-event-card__top h3 { margin: 0.5rem 0 0; color: #fff; font-size: 1.5rem; }
.nz-event-card__body { padding: 1.4rem 1.5rem; }
.nz-event-meta { display: grid; gap: 0.7rem; margin: 0 0 1.3rem; }
.nz-event-meta div { display: grid; grid-template-columns: 92px 1fr; gap: 0.6rem; }
.nz-event-meta dt { color: var(--nz-muted); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.nz-event-meta dd { margin: 0; font-weight: 600; }

.nz-band { background: var(--nz-black); color: #fff; }
.nz-band h2 { color: #fff; }
.nz-band p { color: #c5c5c5; }
.nz-benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2rem; }
.nz-benefit { padding: 1.5rem; border: 1px solid #333; border-radius: 14px; background: #101010; }
.nz-benefit__number { color: #8a8a8a; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.nz-benefit h3 { color: #fff; margin: 1.1rem 0 0.5rem; }
.nz-benefit p { margin-bottom: 0; }

@media (max-width: 960px) { .nz-split { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
    .nz-quick-grid { grid-template-columns: repeat(2, 1fr); transform: none; margin-bottom: 0; }
    .nz-benefit-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .nz-quick-grid { grid-template-columns: 1fr; } }

/* ---- Resources: feature cards ---- */
.nz-resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; }
.nz-resource-card { border: 1px solid var(--nz-border); border-radius: 14px; padding: 1.9rem; background: #fff; min-height: 260px; display: flex; flex-direction: column; }
.nz-resource-card--dark { background: var(--nz-dark); color: #fff; border-color: var(--nz-dark); }
.nz-resource-card--dark h3 { color: #fff; }
.nz-resource-card--dark p { color: #c4c4c4; }
.nz-resource-card .nz-button-row { margin-top: auto; padding-top: 1.4rem; }
.nz-tag { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 0.3rem 0.65rem; background: #ededeb; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.3rem; }
.nz-resource-card--dark .nz-tag { background: #252525; color: #ddd; }
.nz-button-row { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
@media (max-width: 700px) { .nz-resource-grid { grid-template-columns: 1fr; } }

/* ---- Join / payment flow ---- */
.nz-form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.nz-form-footer { margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid var(--nz-border); display: flex; align-items: center; justify-content: space-between; gap: 1.1rem; flex-wrap: wrap; }
.nz-help { color: var(--nz-muted); font-size: 0.78rem; margin: 0.4rem 0 0; }
/* Helper text inside the dark member card and dark panels: keep AA contrast against near-black. */
.nz-memcard .nz-help, .nz-on-dark .nz-help { color: rgba(255,255,255,0.8); }
@media (max-width: 900px) { .nz-form-layout { grid-template-columns: 1fr; } }

/* ---- Server-rendered price summary (no client-side arithmetic) ---- */
.nz-price-summary { position: sticky; top: 6.5rem; }
.nz-price-summary__price { font-size: 2.3rem; letter-spacing: -0.02em; font-weight: 800; margin: 0.5rem 0 0; }
.nz-price-summary__price small { font-size: 0.8rem; color: var(--nz-muted); font-weight: 600; }
@media (max-width: 900px) { .nz-price-summary { position: static; } }

/* ---- Embedded Stripe Checkout host ---- */
.nz-checkout-mount { min-height: 220px; border: 1px solid var(--nz-border); border-radius: 12px; background: #fff; }
.nz-checkout-fake { padding: 1.5rem; text-align: center; }
.nz-checkout-fake p { font-weight: 600; }

.nz-payment-privacy { display: flex; gap: 0.9rem; align-items: flex-start; margin-top: 1.4rem; }
.nz-payment-privacy p { margin: 0 0 0.6rem; font-size: 0.85rem; }
.nz-payment-privacy p:last-child { margin-bottom: 0; }

/* ---- Status panel (join/order/DOB confirming pages) ---- */
.nz-status-panel { text-align: center; max-width: 640px; margin: 0 auto; }
.nz-status-panel__spin { width: 2.6rem; height: 2.6rem; border-width: 3px; display: block; margin: 0 auto 1.2rem; }

/* ---- Account profile: DOB editor ---- */
.nz-quote-table { margin: 1rem 0; border: 1px solid var(--nz-border); border-radius: 10px; overflow: hidden; }
.nz-quote-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.7rem; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--nz-border); font-size: 0.85rem; }
.nz-quote-row:last-child { border-bottom: 0; }
.nz-quote-row--head { background: var(--nz-bg-alt); color: var(--nz-muted); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.nz-quote-row strong:last-child { text-align: right; }
@media (max-width: 560px) {
    .nz-quote-row { grid-template-columns: 1fr; }
    .nz-quote-row--head { display: none; }
    .nz-quote-row strong:last-child { text-align: left; }
}

/* ---- Account payments panel ---- */
.nz-stored-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; margin-top: 1rem; }
.nz-stored-data-card { border: 1px solid var(--nz-border); border-radius: 10px; padding: 0.85rem; background: var(--nz-bg-alt); }
.nz-stored-data-card strong { display: block; font-size: 0.78rem; margin-bottom: 0.25rem; }
.nz-stored-data-card span { color: var(--nz-muted); font-size: 0.78rem; }
@media (max-width: 560px) { .nz-stored-data-grid { grid-template-columns: 1fr; } }

/* ---- prefers-reduced-motion (spec §8) ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
/* ==== end professional-ui-payment-first WP1 ==== */

/* ==== nzpu-competition-entry WP3 ==== */

/* ---- Tabs (director manage console) ---- */
.nz-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    border-bottom: 1px solid var(--nz-border);
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}
.nz-tabs__tab {
    appearance: none;
    background: transparent;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    padding: 0.65rem 1rem;
    font: inherit;
    font-weight: 600;
    color: var(--nz-muted);
    cursor: pointer;
    margin-bottom: -1px;
}
.nz-tabs__tab:hover { color: var(--nz-ink); }
.nz-tabs__tab[aria-selected="true"] {
    color: var(--nz-ink);
    background: #fff;
    border-color: var(--nz-border);
    border-bottom: 1px solid #fff;
}
.nz-tabs__panel { padding-top: 1.5rem; }
@media (max-width: 700px) {
    .nz-tabs { overflow-x: auto; flex-wrap: nowrap; border-bottom: none; }
    .nz-tabs__tab { white-space: nowrap; }
}

/* ---- Wordmark (competition branding) ---- */
.nz-wordmark {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 2px solid currentColor;
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
    max-width: 260px;
    text-align: center;
    font-family: var(--nz-heading-font);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-transform: uppercase;
}
.nz-wordmark small {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    opacity: 0.75;
}
.nz-wordmark--block { background: var(--nz-ink); color: var(--nz-bg); border-color: transparent; }
.nz-wordmark--stacked { font-size: 1.6rem; border-width: 3px; }
.nz-wordmark--outline { border-style: dashed; background: transparent; }
.nz-wordmark img { max-width: 100%; max-height: 160px; object-fit: contain; }

/* ---- Slide-over drawer (entry detail) ---- */
.nz-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(560px, 100vw);
    max-height: 100vh;
    overflow-y: auto;
    z-index: 40;
    border-radius: 0;
    box-shadow: -8px 0 28px rgba(0,0,0,0.18);
}
.nz-drawer__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10,12,14,0.45);
    z-index: 39;
}
@media (max-width: 560px) { .nz-drawer { width: 100vw; } }

/* ---- Billing / quote line list ---- */
.nz-bill {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.35rem 0;
    font-size: 0.95rem;
}
.nz-bill--total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--nz-border); margin-top: 0.5rem; padding-top: 0.75rem; }
.nz-bill__estimate-note { font-size: 0.78rem; color: var(--nz-muted); margin: 0.15rem 0 0.5rem; }

/* ---- Progressive enhancement: no-script banner + boot/recovery panel ---- */
.nz-noscript-banner {
    background: var(--nz-bg-alt);
    border-bottom: 1px solid var(--nz-border);
    padding: 0.85rem 5%;
    font-size: 0.9rem;
}
.nz-noscript-banner ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }

/* Shown/hidden purely by the html[data-boot-state] attribute nzpu-boot.js sets — see that file's header
   comment for the full list of values. Deliberately a small, non-blocking corner panel: the server-
   rendered page content underneath must stay fully visible and readable throughout (progressive
   enhancement), this only ever adds a status affordance, never hides the page. */
.nz-boot-panel {
    display: none;
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 50;
    max-width: min(360px, calc(100vw - 2rem));
    background: var(--nz-dark);
    color: #fff;
    border-radius: 8px;
    padding: 1rem 1.1rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    font-size: 0.85rem;
}
.nz-boot-panel p { margin: 0.35rem 0; }
.nz-boot-panel__loading, .nz-boot-panel__recovery, .nz-boot-panel__unsupported { display: none; }
.nz-boot-panel__loading { align-items: center; gap: 0.6rem; }
html[data-boot-state="connecting"] .nz-boot-panel,
html[data-boot-state="reconnecting"] .nz-boot-panel { display: block; }
html[data-boot-state="connecting"] .nz-boot-panel__loading,
html[data-boot-state="reconnecting"] .nz-boot-panel__loading { display: flex; }
html[data-boot-state="timeout"] .nz-boot-panel,
html[data-boot-state="script-failed"] .nz-boot-panel,
html[data-boot-state="reconnect-failed"] .nz-boot-panel,
html[data-boot-state="reconnect-rejected"] .nz-boot-panel { display: block; }
html[data-boot-state="timeout"] .nz-boot-panel__recovery,
html[data-boot-state="script-failed"] .nz-boot-panel__recovery,
html[data-boot-state="reconnect-failed"] .nz-boot-panel__recovery,
html[data-boot-state="reconnect-rejected"] .nz-boot-panel__recovery { display: block; }
html[data-boot-state="unsupported"] .nz-boot-panel { display: block; }
html[data-boot-state="unsupported"] .nz-boot-panel__unsupported { display: block; }
.nz-boot-panel button, .nz-boot-panel a { margin-top: 0.5rem; margin-right: 0.5rem; }
/* ==== end nzpu-competition-entry WP3 ==== */

/* ==== federation-website (WP0 gate §2 D14) ====
   Black-and-white editorial hierarchy from nzpu-federation-mockup.html: page-title bands, event
   tiles with a large date block, pathway tiles, the numbered timeline, key-date panels, filter bars,
   the three-step application form, status summaries and the admin review queue. Additive and
   namespaced; the existing nz-* rules above are untouched. Status is never colour-only: every tag and
   notice carries text. */

/* ---- Page title band ---- */
.nz-page-title { padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--nz-border); background: #fff; }
.nz-page-title h1 { margin: 0.35rem 0 0.75rem; max-width: 22ch; }
.nz-page-title .nz-lead { margin-bottom: 0; }
.nz-page-title--dark { background: var(--nz-dark); color: #fff; border-bottom-color: var(--nz-border-dark); }
.nz-page-title--dark h1 { color: #fff; }
.nz-page-title--dark .nz-lead, .nz-page-title--dark p { color: rgba(255,255,255,0.86); }
.nz-page-title--dark .nz-eyebrow { color: rgba(255,255,255,0.72); }
.nz-page-title--soft { background: var(--nz-bg-alt); }
.nz-breadcrumb { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; color: var(--nz-muted); margin: 0 0 1rem; padding: 0; list-style: none; }
.nz-breadcrumb a { text-decoration: underline; text-underline-offset: 2px; }
.nz-page-title--dark .nz-breadcrumb, .nz-page-title--dark .nz-breadcrumb a { color: rgba(255,255,255,0.8); }

/* ---- Section head (eyebrow + heading + trailing link) ---- */
.nz-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2rem; }
.nz-section-head h2 { margin: 0; max-width: 18ch; }
.nz-textlink { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.nz-textlink--small { font-size: 0.9rem; }

/* ---- Affiliation strip ---- */
.nz-affiliation { border-bottom: 1px solid var(--nz-border); padding: 1rem 0; }
.nz-affiliation__inner { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.nz-affiliation strong { font-size: 0.85rem; letter-spacing: 0.04em; color: var(--nz-ink); }
.nz-affiliation span { font-size: 0.85rem; color: var(--nz-muted); }

/* ---- Tags (text + tone; never colour alone) ---- */
.nz-tag--outline { background: transparent; border: 1px solid #c0c5c7; color: var(--nz-ink); }
.nz-tag--dark { background: var(--nz-ink); color: #fff; }
.nz-tag--light { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.35); color: #fff; }
.nz-tag--success { background: #e8f3ed; color: #1e5943; }
.nz-tag--warn { background: #f5eedc; color: #795a19; }
.nz-tag--inline { margin-bottom: 0; }

/* ---- Notices: error tone ---- */
.nz-notice--error { border-left-color: #8d3434; background: #fcf0ef; color: #702525; }
.nz-notice--error p { color: inherit; }
.nz-notice p:last-child { margin-bottom: 0; }
.nz-error-summary { border: 1px solid #b83b3b; border-left-width: 4px; background: #fcf0ef; color: #702525; padding: 1rem 1.25rem; border-radius: 6px; margin-bottom: 1.25rem; }
.nz-error-summary h2, .nz-error-summary h3 { font-size: 1rem; margin: 0 0 0.5rem; color: #702525; }
.nz-error-summary ul { margin: 0; padding-left: 1.2rem; }
.nz-error-summary a { color: #702525; text-decoration: underline; }

/* ---- Event tiles (calendar + home) ---- */
.nz-event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 1.5rem; }
.nz-event-tile { display: flex; flex-direction: column; border: 1px solid var(--nz-border); background: #fff; border-radius: 6px; overflow: hidden; }
.nz-event-tile--feature { background: #141617; color: #fff; border-color: #141617; }
.nz-event-tile--feature h3, .nz-event-tile--feature p { color: #fff; }
.nz-event-tile--feature .nz-muted { color: #c3c8cb; }
.nz-event-tile__top { padding: 1.6rem 1.6rem 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.nz-event-tile__body { padding: 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; gap: 0.6rem; }
.nz-event-tile__body h3 { font-size: 1.6rem; margin: 0; max-width: 16ch; }
.nz-event-tile__body p { margin: 0; }
.nz-event-tile__actions { margin-top: auto; padding-top: 1.2rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.nz-event-tile__bottom { border-top: 1px solid var(--nz-border); padding: 0.85rem 1.6rem; color: var(--nz-muted); font-size: 0.82rem; }
.nz-event-tile--feature .nz-event-tile__bottom { border-color: #444a4d; color: #c3c8cb; }
.nz-date-block { line-height: 1; text-transform: uppercase; font-family: var(--nz-heading-font); }
.nz-date-block b { display: block; font-size: 2.6rem; letter-spacing: -0.05em; margin-bottom: 0.4rem; font-weight: 800; }
.nz-date-block span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; }

/* ---- Pathway tiles ---- */
.nz-pathway-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1.4rem; }
.nz-pathway-tile { padding: 2rem 0 0.75rem; border-top: 2px solid var(--nz-ink); display: flex; flex-direction: column; }
.nz-pathway-tile__index { font-size: 0.78rem; color: var(--nz-muted); margin-bottom: 1.4rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.nz-pathway-tile h3 { font-size: 1.7rem; }
.nz-pathway-tile p { color: var(--nz-muted); }
.nz-pathway-tile .nz-textlink { margin-top: auto; }

/* ---- Numbered timeline ---- */
.nz-timeline { list-style: none; padding: 0; margin: 1.75rem 0; counter-reset: nz-step; }
.nz-timeline li { position: relative; padding: 0 0 1.7rem 2.75rem; border-left: 1px solid #b7bec1; margin-left: 0.85rem; counter-increment: nz-step; }
.nz-timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.nz-timeline li::before { content: counter(nz-step); position: absolute; left: -0.9rem; top: 0; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--nz-ink); color: #fff; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; }
.nz-timeline li strong { display: block; color: var(--nz-ink); }
.nz-timeline li p { color: var(--nz-muted); margin: 0.35rem 0 0; }

/* ---- Key dates ---- */
.nz-keydate { padding: 1.4rem; border: 1px solid #7b8589; border-radius: 4px; }
.nz-keydate small { color: var(--nz-muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; font-weight: 700; }
.nz-keydate strong { display: block; font-family: var(--nz-heading-font); font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1.15; margin: 0.5rem 0 0; color: var(--nz-ink); }
.nz-page-title--dark .nz-keydate { border-color: rgba(255,255,255,0.5); }
.nz-page-title--dark .nz-keydate strong { color: #fff; }
.nz-page-title--dark .nz-keydate small { color: rgba(255,255,255,0.75); }
.nz-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1rem; margin-top: 1.75rem; }
.nz-big-date { font-family: var(--nz-heading-font); font-size: 2.2rem; letter-spacing: -0.03em; font-weight: 800; line-height: 1.1; margin: 0 0 0.5rem; color: var(--nz-ink); }

/* ---- Detail metadata ---- */
.nz-detail-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1.2rem; margin: 1.5rem 0; }
.nz-detail-meta > div { border-bottom: 1px solid var(--nz-border); padding-bottom: 1rem; min-width: 0; }
.nz-detail-meta dt { color: var(--nz-muted); font-size: 0.82rem; margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.05em; }
.nz-detail-meta dd { margin: 0; font-weight: 600; color: var(--nz-ink); overflow-wrap: anywhere; }

/* ---- Two-column editorial split (main + aside) ---- */
.nz-split-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr); gap: 2.5rem; align-items: start; }
.nz-stack { display: grid; gap: 1.25rem; }
.nz-source { font-size: 0.82rem; color: var(--nz-muted); margin-top: 1.4rem; max-width: 80ch; }
.nz-source a { text-decoration: underline; }

/* ---- Sub navigation (Results / Records) and filter bars ---- */
.nz-subnav { display: flex; gap: 0.2rem; border-bottom: 1px solid var(--nz-border); margin-bottom: 1.75rem; flex-wrap: wrap; padding: 0; list-style: none; }
.nz-subnav a, .nz-subnav button { min-height: 48px; display: inline-flex; align-items: center; background: none; border: 0; border-bottom: 3px solid transparent; text-decoration: none; padding: 0.75rem 1.25rem; color: var(--nz-muted); font-weight: 700; font-family: var(--nz-body-font); font-size: 0.95rem; cursor: pointer; }
.nz-subnav a[aria-current="page"], .nz-subnav button[aria-pressed="true"] { color: var(--nz-ink); border-bottom-color: var(--nz-ink); }
.nz-subnav a:hover, .nz-subnav button:hover { color: var(--nz-ink); text-decoration: none; }
.nz-filterbar { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 1.5rem; }
.nz-filterbar .nz-field { min-width: 165px; flex: 1 1 165px; margin: 0; }
.nz-filterbar .nz-field--search { flex: 2 1 240px; }
.nz-filterbar .nz-btn { margin-bottom: 0.1rem; }
.nz-field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.nz-field .nz-label { margin-bottom: 0; }
.nz-field .nz-hint { font-size: 0.82rem; color: var(--nz-muted); }
.nz-field--invalid .nz-input, .nz-field--invalid .nz-select, .nz-field--invalid .nz-textarea { border-color: #b83b3b; }
.nz-count { font-size: 0.9rem; color: var(--nz-muted); margin: 0 0 1rem; }
.nz-no-results { padding: 2.5rem 1.5rem; border: 1px dashed #b6bdc0; text-align: center; color: var(--nz-muted); border-radius: 6px; }
.nz-numcol { text-align: right; font-variant-numeric: tabular-nums; }
.nz-table caption { text-align: left; font-size: 0.82rem; color: var(--nz-muted); padding: 0.75rem 0.9rem; caption-side: bottom; }
.nz-table-wrap--labelled:focus-visible { outline: 3px solid #2b6cb0; }

/* ---- Simple link list ---- */
.nz-simple-list { list-style: none; margin: 0; padding: 0; }
.nz-simple-list li { border-bottom: 1px solid var(--nz-border); padding: 1.2rem 0; }
.nz-simple-list li a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-decoration: none; }
.nz-simple-list li a:hover strong { text-decoration: underline; }
.nz-simple-list strong { display: block; font-size: 1.02rem; color: var(--nz-ink); }
.nz-simple-list .nz-muted { font-size: 0.85rem; display: block; margin-top: 0.2rem; }

/* ---- FAQ disclosure ---- */
.nz-faq { border-bottom: 1px solid var(--nz-border); padding: 1.1rem 0; }
.nz-faq summary { font-weight: 700; cursor: pointer; min-height: 28px; color: var(--nz-ink); }
.nz-faq p { margin: 0.9rem 0 0; color: var(--nz-muted); }

/* ---- Join band ---- */
.nz-join-band { display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: center; gap: 3rem; }
.nz-join-band__aside { border-left: 1px solid #555e63; padding-left: 2.2rem; }

/* ---- Three-step application form ---- */
.nz-form-layout--steps { grid-template-columns: 270px minmax(0, 1fr); gap: 3rem; }
.nz-form-intro { position: sticky; top: 6.5rem; }
.nz-step-nav { list-style: none; padding: 0; margin: 1.5rem 0; }
.nz-step-nav li { display: flex; gap: 0.75rem; padding: 0.65rem 0; color: var(--nz-muted); font-size: 0.95rem; align-items: center; }
.nz-step-nav li span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #a7afb2; border-radius: 50%; font-size: 0.8rem; flex: 0 0 auto; }
.nz-step-nav li[aria-current="step"] { color: var(--nz-ink); font-weight: 700; }
.nz-step-nav li[aria-current="step"] span { background: var(--nz-ink); color: #fff; border-color: var(--nz-ink); }
.nz-form-box { border: 1px solid var(--nz-border); padding: 2.1rem; border-radius: 6px; background: #fff; }
.nz-form-box h2 { font-size: 1.8rem; }
.nz-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; margin-top: 1.5rem; }
.nz-form-grid .nz-field { margin: 0; }
.nz-full { grid-column: 1 / -1; }
.nz-check { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.95rem; color: var(--nz-text); }
.nz-check input { width: 20px; height: 20px; flex: 0 0 20px; margin: 3px 0 0; accent-color: var(--nz-ink); }
.nz-form-actions { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; margin-top: 1.6rem; border-top: 1px solid var(--nz-border); flex-wrap: wrap; }
.nz-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.5rem 0; }
.nz-review-grid dt { font-size: 0.8rem; color: var(--nz-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.nz-review-grid dd { margin: 0.25rem 0 0; font-weight: 600; overflow-wrap: anywhere; color: var(--nz-ink); }

/* ---- Application status ---- */
.nz-status-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; }
.nz-status-title h2 { font-size: 2rem; margin: 0.25rem 0 0; }
.nz-status-ref { font-size: 0.85rem; color: var(--nz-muted); letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.nz-status-summary { padding: 1.75rem; background: #f3f5f5; border-left: 4px solid var(--nz-ink); margin-top: 1.5rem; }
.nz-status-summary strong { color: var(--nz-ink); }
.nz-status-summary p { margin: 0.6rem 0 0; }

/* ---- Admin review queue ---- */
.nz-admin-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 1.75rem; align-items: start; }
.nz-queue-item { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--nz-border); padding: 1.2rem; margin-bottom: 0.75rem; border-radius: 4px; text-decoration: none; color: var(--nz-ink); }
.nz-queue-item:hover { background: var(--nz-bg-alt); text-decoration: none; }
.nz-queue-item--selected { border: 2px solid var(--nz-ink); padding: calc(1.2rem - 1px); }
.nz-queue-item__row { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.nz-queue-item strong { font-size: 1.05rem; }
.nz-stats { display: flex; gap: 2.2rem; margin: 1.5rem 0; flex-wrap: wrap; }
.nz-stats strong { display: block; font-family: var(--nz-heading-font); font-size: 2rem; letter-spacing: -0.03em; color: var(--nz-ink); }
.nz-stats span { font-size: 0.85rem; color: var(--nz-muted); }
.nz-audit { border-top: 1px solid var(--nz-border); margin-top: 1.5rem; padding-top: 1.25rem; }
.nz-audit p { font-size: 0.88rem; margin: 0.5rem 0; }
.nz-audit__internal { background: #f3f5f5; border-left: 3px solid #7b8589; padding: 0.75rem 1rem; }

/* ---- Records archive gallery keeps .nz-records-grid; provenance line ---- */
.nz-provenance { font-size: 0.8rem; color: var(--nz-muted); }

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .nz-split-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 1.5rem; }
    .nz-form-layout--steps { grid-template-columns: 210px minmax(0, 1fr); gap: 1.75rem; }
    .nz-admin-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .nz-page-title { padding: 2.4rem 0 2rem; }
    .nz-section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .nz-split-layout, .nz-join-band, .nz-form-layout--steps, .nz-form-grid, .nz-review-grid { grid-template-columns: 1fr; }
    .nz-join-band__aside { border-left: 0; border-top: 1px solid #586166; padding: 1.5rem 0 0; }
    .nz-form-intro { position: static; }
    .nz-step-nav { display: flex; gap: 0.9rem; flex-wrap: wrap; margin: 1.2rem 0 0; }
    .nz-step-nav li { font-size: 0.82rem; gap: 0.4rem; padding: 0.3rem 0; }
    .nz-step-nav li span { width: 24px; height: 24px; font-size: 0.72rem; }
    .nz-form-box { padding: 1.4rem 1.2rem; }
    .nz-event-tile__top, .nz-event-tile__body { padding-left: 1.2rem; padding-right: 1.2rem; }
    .nz-event-tile__bottom { padding-inline: 1.2rem; }
    .nz-date-block b { font-size: 2.2rem; }
    .nz-filterbar .nz-field { min-width: 130px; }
    .nz-stats { gap: 1.5rem; }
    .nz-status-title h2 { font-size: 1.6rem; }
    .nz-subnav a, .nz-subnav button { padding: 0.65rem 0.9rem; }
}
@media (max-width: 380px) {
    .nz-detail-meta { grid-template-columns: 1fr; }
    .nz-form-actions .nz-btn { width: 100%; text-align: center; }
}
/* ==== end federation-website ==== */
