/* Newcastle Green Party members' portal. Sits on top of Bootstrap 5.3.3.
   Palette and fonts follow the Ouseburn microsite (Green Party colours).
   Manrope and Bebas Neue are served from /assets/fonts (SIL Open Font
   Licence, see the OFL files there), so members' browsers never contact
   Google. Manrope is a variable font: one file covers every weight. */

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/assets/fonts/manrope-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Bebas Neue';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/bebas-neue-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Bebas Neue';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/bebas-neue-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --gc-green: #00a85a;        /* Green Party primary: accents and borders */
    --gc-green-dark: #00643b;   /* header, footer, headings */
    --gc-green-light: #e6f7f0;  /* hero band, panels */
    --gc-on-dark: #a8e6c8;      /* links and sub-text on dark green */
    --gc-muted: #5a636b;        /* muted text that stays >= 4.5:1 on light backgrounds */
    --bs-body-font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-body-bg: #f8f9fa;
}

body {
    font-family: var(--bs-body-font-family);
    color: #1f2933;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--gc-green-dark);
}

a { color: var(--gc-green-dark); }
a:hover { color: #004d2e; }

:focus-visible {
    outline: 3px solid var(--gc-green-dark);
    outline-offset: 2px;
}

/* Header ------------------------------------------------------------- */

.site-header {
    background: var(--gc-green-dark);
    padding: 0.6rem 0;
}

.brand-lockup {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
    padding: 0.25rem 0;
}

.brand-lockup:hover .brand-top,
.brand-lockup:focus-visible .brand-top { color: var(--gc-on-dark); }

.brand-top {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    letter-spacing: 0.04em;
    color: #fff;
}

.brand-sub {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.32em;
    color: var(--gc-on-dark);
    margin-top: 0.1rem;
}

.nav-out {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.25rem;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.nav-out:hover,
.nav-out:focus-visible { color: var(--gc-on-dark); text-decoration: underline; }
.site-header :focus-visible { outline-color: #fff; }

/* Footer ------------------------------------------------------------- */

.site-footer {
    background: var(--gc-green-dark);
    color: #d6e6dd;
    padding: 1.5rem 0;
    font-size: 0.875rem;
}

.site-footer a { color: var(--gc-on-dark); }
.site-footer :focus-visible { outline-color: #fff; }

.beta-tag {
    display: inline-block;
    padding: 0.15rem 0.7rem;
    border: 1px solid var(--gc-on-dark);
    border-radius: 999px;
    color: var(--gc-on-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Hero, cards, buttons ------------------------------------------------ */

.hero {
    background: var(--gc-green-light);
    border-radius: 0.5rem;
    padding: 2rem 1.25rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
    line-height: 1.05;
    margin-bottom: 0.5rem;
}

.hero p { color: var(--gc-muted); margin-bottom: 0; }

.choice-card {
    border: 0;
    border-top: 4px solid var(--gc-green);
    text-align: center;
}

.choice-card .card-title { font-size: 1.75rem; }

.card-text.text-muted,
.text-muted { color: var(--gc-muted) !important; }

/* Primary buttons use the dark green: white on it is 7.3:1. (White on the
   brand #00a85a is only 3.1:1, so the brand green stays for accents.) */
.btn-gc {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--gc-green-dark);
    --bs-btn-border-color: var(--gc-green-dark);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #004d2e;
    --bs-btn-hover-border-color: #004d2e;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #003d24;
    --bs-btn-active-border-color: #003d24;
    --bs-btn-focus-shadow-rgb: 0, 100, 59;
    font-size: 1.15rem;
    font-weight: 700;
    min-height: 48px;
}

.btn-outline-gc {
    --bs-btn-color: var(--gc-green-dark);
    --bs-btn-border-color: var(--gc-green-dark);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--gc-green-dark);
    --bs-btn-hover-border-color: var(--gc-green-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #003d24;
    --bs-btn-active-border-color: #003d24;
    font-size: 1.15rem;
    font-weight: 700;
    min-height: 48px;
}

/* Login card ---------------------------------------------------------- */

.auth-card {
    border: 0;
    border-top: 4px solid var(--gc-green);
}

.auth-card .form-control { min-height: 52px; font-size: 1.15rem; }

/* Large, centred, numeric one-time-code field. */
.code-input {
    font-size: 2rem !important;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-align: center;
    padding-left: 0.4em;
}

/* Portal cards --------------------------------------------------------- */

.system-card { border: 0; border-left: 4px solid var(--gc-green); }
.system-card .card-title { font-size: 1.6rem; margin-bottom: 0.25rem; }
.new-tab-note {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
}

.system-card.is-disabled { border-left-color: #b8c2bc; background: #eef1ef; }
.system-card.is-disabled .card-title { color: var(--gc-muted); }

.soon-tag {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: #dde3df;
    color: #3d474f;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* The member's own magic link, on their portal page only. Same panel style as
   the microsite's .personal-url-box: light green, brand-green border, rounded. */

.personal-link {
    background: var(--gc-green-light);
    border: 1px solid var(--gc-green);
    border-radius: 0.5rem;
    padding: 1.25rem;
}

.personal-link h2 { margin-bottom: 0.5rem; }

/* The whole link, never shortened: on a narrow screen it wraps before "?mc="
   (a <wbr> there) so the code itself stays in one piece, and one tap selects
   all of it. */
.personal-link-url {
    display: block;
    padding: 0.6rem 0.75rem;
    background: #fff;
    border: 1px solid #b7d9c7;
    border-radius: 0.375rem;
    color: #1f2933;
    font-size: 1rem;
    overflow-wrap: anywhere;
    user-select: all;
    -webkit-user-select: all;
}

.personal-link-warning { color: #3d474f; }

/* Feedback box: the last thing on every page, above the footer -------- */

.feedback-band {
    background: var(--gc-green-light);
    border-top: 4px solid var(--gc-green);
    padding: 2rem 0;
}

.feedback-band h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.feedback-inner { max-width: 42rem; margin: 0 auto; }
.feedback-band textarea { min-height: 7rem; font-size: 1.05rem; }
.feedback-note { color: #3d474f; font-size: 0.95rem; }

/* Honeypot: off-screen, not display:none, so simple bots still fill it. */
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Information pages: a readable measure ------------------------------- */

.prose {
    max-width: 42rem;
    margin: 0 auto;
    background: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    font-size: 1.05rem;
    line-height: 1.65;
}

.prose h1 { font-size: 2.5rem; line-height: 1.05; }

@media (min-width: 768px) {
    .hero { padding: 3rem 2rem; }
    .prose { padding: 2.25rem 2.5rem; }
}
