/* ============================================================
   Restored layout & feature styles
   (header, auth, editor, dashboard, manifesto, party, extras)
   ============================================================ */

/* ---------- Base helpers ---------- */
.container {
    width: min(100% - 2rem, 1440px);
    margin: 0 auto;
}

.sr-only,
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Site header & footer ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #ffffff;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.site-header.is-hidden {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-100%);
    box-shadow: none;
    pointer-events: none;
}

.site-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #0f172a 0%, #0f766e 55%, #10b981 100%);
    pointer-events: none;
}

/* Single-row header with brand, nav, and auth aligned horizontally. */
.header-grid {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav auth";
    align-items: center;
    column-gap: 1.5rem;
    min-height: 3.2rem;
    padding: 0.5rem 0;
    text-align: left;
}

.brand-area {
    grid-area: brand;
    display: grid;
    justify-items: start;
    gap: 0.02rem;
    min-width: 0;
    line-height: 1.1;
}

.brand {
    color: #0f172a;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.brand-logo-link {
    display: block;
    line-height: 0;
}

.brand-logo {
    display: block;
    height: 30px;
    width: auto;
}

.footer-logo-img {
    display: block;
    height: 34px;
    width: auto;
}

@media (max-width: 640px) {
    .brand-logo {
        height: 26px;
    }
}

.brand-tagline {
    margin: 0;
    color: #0f766e;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.auth-links {
    grid-area: auth;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    justify-self: end;
}

.auth-links a {
    display: inline-flex;
    align-items: center;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.35rem 0.8rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.auth-links a:hover,
.auth-links a:focus-visible {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.05);
}

.auth-links .auth-cta {
    background: #0f172a;
    color: #ffffff;
    border-color: transparent;
}

.auth-links .auth-cta:hover,
.auth-links .auth-cta:focus-visible {
    background: #1e293b;
    color: #ffffff;
}

.logout-form {
    margin: 0;
    display: inline-flex;
}

.logout-form button {
    appearance: none;
    border: none;
    background: #0f172a;
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.35rem 0.8rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.logout-form button:hover,
.logout-form button:focus-visible {
    background: #1e293b;
}

.main-nav {
    grid-area: nav;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    justify-self: center;
}

.main-nav a {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.35rem 0.8rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.05);
}

.main-nav a.is-active {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.08);
    font-weight: 700;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    background: #fff;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #0f172a;
    border-radius: 2px;
}

.site-footer {
    position: relative;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 3rem 0 0;
    margin-top: 3rem;
    background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
    width: 100%;
    color: #e2e8f0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(100% - 2rem, 1440px);
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.6) 15%, rgba(56, 189, 248, 0.5) 50%, rgba(16, 185, 129, 0.6) 85%, transparent 100%);
}

.site-footer .container {
    width: min(100% - 2rem, 1440px);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.9fr;
    gap: 2rem;
    align-items: start;
    padding-bottom: 2rem;
}

.footer-brand {
    max-width: 24rem;
}

.footer-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #86efac;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: #f8fafc;
    text-decoration: none;
    margin-bottom: 0.8rem;
}

.footer-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.8rem;
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 50%, #38bdf8 100%);
    color: #03120d;
    font-weight: 900;
    font-size: 1.15rem;
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.3);
}

.footer-logo-text {
    font-size: 1.28rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.footer-brand p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 20rem;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.2rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.45);
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.15s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.08);
    color: #ffffff;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-column h3 {
    margin: 0 0 0.3rem;
    color: #f8fafc;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-column a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: color 0.15s ease, transform 0.15s ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
    color: #ffffff;
    transform: translateX(2px);
}

.footer-column a:hover,
.footer-column a:focus-visible {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1rem 0 2rem;
    background: rgba(15, 23, 42, 0.55);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom-inner p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.9rem;
    text-align: center;
}

.site-footer-account {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
}

.site-footer-account .logout-form button {
    padding: 0.35rem 0.8rem;
    background: rgba(148, 163, 184, 0.12);
    color: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 999px;
}

.site-footer-account .logout-form button:hover,
.site-footer-account .logout-form button:focus-visible {
    background: #10b981;
    color: #03120d;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-bottom-inner {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* ---------- Contact page ---------- */
.contact-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3.5rem 1.25rem 5rem;
}

.contact-hero {
    max-width: 720px;
    margin-bottom: 2.5rem;
}

.contact-hero .eyebrow {
    margin: 0 0 0.7rem;
    color: #0f766e;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.contact-hero h1 {
    max-width: 12ch;
    margin: 0 0 1rem;
    color: #0f172a;
    font-size: clamp(2.5rem, 6vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.contact-hero>p:last-child {
    max-width: 38rem;
    margin: 0;
    color: #475569;
    font-size: 1.08rem;
    line-height: 1.7;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    gap: 1.25rem;
    align-items: stretch;
}

.contact-aside {
    padding: 2rem;
    border-radius: 1.4rem;
    background: linear-gradient(155deg, #0b1220 0%, #0f172a 55%, #0f766e 150%);
    color: #f8fafc;
    box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.14);
}

.contact-aside-mark {
    display: block;
    width: 3rem;
    height: auto;
}

.contact-aside h2 {
    margin: 2rem 0 0.75rem;
    font-size: 1.8rem;
    letter-spacing: -0.04em;
}

.contact-aside>p {
    margin: 0 0 2.5rem;
    color: #cbd5e1;
    line-height: 1.7;
}

.contact-detail {
    display: grid;
    gap: 0.25rem;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.16);
    color: #e2e8f0;
}

.contact-detail-label {
    color: #86efac;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-detail a {
    color: #f8fafc;
    text-decoration: none;
    font-weight: 700;
}

.contact-card {
    padding: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 1.4rem;
    background: #ffffff;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.06);
}

.contact-form {
    display: grid;
    gap: 1.1rem;
}

/* Username field: the site address reads as a prefix, the handle as the typed part. */
.username-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #ffffff;
}

.username-prefix {
    display: flex;
    align-items: center;
    padding: 0 10px 0 12px;
    background: #f1f5f9;
    border-right: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
}

/* The wrapper draws the border, so the field inside must not draw its own. Each form
   styles its inputs with its own selector (.auth-form input, .form-group input), so
   the field carries a class of its own that outranks both. */
.username-input-wrap .username-field,
.username-input-wrap input,
.auth-form .username-input-wrap input {
    flex: 1;
    min-width: 0;
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 12px;
    background: transparent;
    box-shadow: none;
    font: inherit;
    outline: none;
}

.username-input-wrap .username-field:focus,
.auth-form .username-input-wrap input:focus {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    outline: none;
}

/* 16px text on a phone stops iOS zooming the page when the field takes focus. */
@media (max-width: 640px) {
    .username-prefix {
        padding: 0 8px 0 10px;
        font-size: 12px;
    }

    .username-input-wrap input {
        padding: 12px 10px;
        font-size: 16px;
    }
}

.field-hint[data-username-status].is-ok {
    color: #15803d;
}

.field-hint[data-username-status].is-bad {
    color: #b91c1c;
}

/* Off-screen rather than display:none: some bots skip hidden fields but happily
   fill anything positioned away from the viewport. */
/* The human check, as a popup. */
.contact-check {
    width: min(420px, calc(100vw - 2rem));
    /* The site's reset zeroes margins on everything, which also un-centres a dialog. */
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 30px 80px -30px rgba(15, 23, 42, 0.55);
    color: #0f172a;
    max-height: calc(100vh - 3rem);
    overflow: auto;
}

.contact-check::backdrop {
    background: rgba(11, 31, 24, 0.55);
    backdrop-filter: blur(2px);
}

.contact-check-inner {
    padding: 1.6rem 1.5rem 1.4rem;
}

.contact-check-label {
    margin: 0 0 0.4rem;
    color: #b45309;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-check h2 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}

.contact-check-copy {
    margin: 0 0 1rem;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.55;
}

.contact-check-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    margin-top: 1.1rem;
}

.contact-detail .contact-whatsapp {
    display: inline-block;
    margin-top: 0.25rem;
    color: #0f9d58;
    font-weight: 700;
}

.contact-challenge {
    display: block;
    margin: 0;
    padding: 0.9rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    font-size: 0.92rem;
}

.contact-challenge strong {
    color: #0f172a;
}

.contact-challenge input {
    display: block;
    width: 9rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font: inherit;
}

.contact-challenge-note {
    display: block;
    margin-top: 0.45rem;
    color: #94a3b8;
    font-size: 0.8rem;
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form label {
    display: grid;
    gap: 0.45rem;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.7rem;
    padding: 0.8rem 0.9rem;
    background: #f8fafc;
    color: #0f172a;
    font: inherit;
    font-weight: 400;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.contact-form textarea {
    min-height: 9rem;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0f766e;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.contact-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-form .button {
    justify-self: start;
    margin-top: 0.3rem;
}

.alert-success {
    margin-bottom: 1rem;
    border: 1px solid #86efac;
    border-radius: 0.7rem;
    padding: 0.8rem 1rem;
    background: #f0fdf4;
    color: #166534;
}

@media (max-width: 760px) {
    .contact-page {
        padding-top: 2.5rem;
    }

    .contact-layout,
    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .contact-aside,
    .contact-card {
        padding: 1.4rem;
    }
}

/* ---------- Legal pages (terms, privacy, cookies) ---------- */
.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 3.5rem 1.25rem 5rem;
}

.legal-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.legal-eyebrow {
    margin: 0 0 0.6rem;
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.legal-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.legal-updated {
    margin: 0.6rem 0 0;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
}

.legal-intro {
    margin: 1.1rem 0 0;
    color: #334155;
    font-size: 1.02rem;
    line-height: 1.65;
}

.legal-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.legal-section h2 {
    margin: 0 0 0.7rem;
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.legal-section p {
    margin: 0 0 0.85rem;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    margin: 0 0 0.9rem;
    padding-left: 1.15rem;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-section li {
    margin-bottom: 0.45rem;
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 0.4rem 0 1rem;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
    color: #334155;
    line-height: 1.55;
}

.legal-table th {
    color: #0f172a;
    font-weight: 800;
    white-space: nowrap;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    font-size: 0.82rem;
}

.footer-legal a {
    color: #cbd5e1;
    font-weight: 600;
    text-decoration: none;
}

.footer-legal a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.7;
}

.legal-footer a {
    color: #0f766e;
    font-weight: 700;
}

/* ---------- About page ---------- */
.about-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 3rem 1.25rem 5rem;
}

.about-eyebrow {
    margin: 0 0 0.7rem;
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.about-hero h1 {
    margin: 0;
    max-width: 26ch;
    color: #0f172a;
    font-size: clamp(2rem, 4.6vw, 3.3rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

/* The line that used to sit under the headline, kept as a pull quote after the subtext. */
.about-quote {
    /* A bare pull quote: the global blockquote rule gives it a grey card, which is not
       what a quote in a hero should look like. */
    margin: 1.5rem 0 0;
    padding: 0.15rem 0 0.15rem 1.1rem;
    max-width: 38rem;
    border-left: 3px solid #0f766e;
    background: none;
    border-radius: 0;
}

.about-quote p {
    margin: 0;
    color: #0f766e;
    /* Deliberately smaller than the subtext above it: it is a footnote to the paragraph,
       not a second headline. */
    font-size: 0.92rem;
    font-style: italic;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
}

.about-mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.about-mv-card {
    padding: 1.6rem 1.6rem 1.7rem;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: #ffffff;
}

.about-mv-card-vision {
    border-color: #d7e5e0;
    background: #f6fbf8;
}

.about-mv-card h2 {
    margin: 0 0 0.8rem;
    max-width: 26ch;
    color: #0f172a;
    font-size: clamp(1.25rem, 2.3vw, 1.65rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.about-mv-card p:not(.about-eyebrow) {
    margin: 0;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.7;
}

.about-lead {
    margin: 1.2rem 0 0;
    max-width: 46rem;
    color: #475569;
    font-size: 1.08rem;
    line-height: 1.72;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.9rem 0 0;
}

.about-block {
    margin-top: 3.5rem;
}

.about-block-head h2 {
    margin: 0;
    max-width: 30ch;
    color: #0f172a;
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.about-block-body {
    margin-top: 1.1rem;
    max-width: 46rem;
    color: #475569;
    font-size: 1rem;
    line-height: 1.75;
}

.about-block-body p {
    margin: 0 0 1rem;
}

.about-block-body p:last-child {
    margin-bottom: 0;
}

.about-block-body strong {
    color: #0f172a;
}

.about-inline-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.4rem !important;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.9rem;
    margin-top: 1.4rem;
}

.about-grid-three {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.about-card {
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.35rem;
    border: 1px solid #e2e8f0;
    border-radius: 1.1rem;
    background: #ffffff;
}

.about-card h3 {
    margin: 0 0 0.5rem;
    color: #0f172a;
    font-size: 1.02rem;
    letter-spacing: -0.01em;
}

.about-card p {
    margin: 0 0 1rem;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.65;
}

.about-card-link {
    margin-top: auto;
    color: #0f766e;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
}

.about-card-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.about-rules {
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 48rem;
}

.about-rules li {
    padding: 1rem 0;
    border-top: 1px solid #eef2f6;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.7;
}

.about-rules li:last-child {
    border-bottom: 1px solid #eef2f6;
}

.about-rules strong {
    color: #0f172a;
}

.about-final {
    margin-top: 3.5rem;
    padding: 2rem 1.6rem;
    border-radius: 1.25rem;
    background: #0f172a;
}

.about-final h2 {
    margin: 0 0 0.6rem;
    color: #ffffff;
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    letter-spacing: -0.02em;
}

.about-final p {
    margin: 0 0 1.3rem;
    max-width: 40rem;
    color: #cbd5e1;
    font-size: 0.98rem;
    line-height: 1.65;
}


@media (max-width: 760px) {
    .about-page {
        padding-top: 2.5rem;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .about-actions {
        gap: 1.25rem;
    }
}


/* ---------- Auth (login / register) ---------- */
.auth-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3.5rem;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: stretch;
}

.auth-visual {
    display: flex;
    align-items: stretch;
    min-height: 520px;
}

.auth-visual-inner {
    width: 100%;
    color: #fff;
    border-radius: 1.75rem;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 2rem 4rem rgba(15, 23, 42, 0.14);
}

.auth-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-visual-inner h1 {
    margin: 1.2rem 0 0.8rem;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.auth-visual-inner p {
    margin: 0 0 1.5rem;
    max-width: 30rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.04rem;
    line-height: 1.7;
}

.auth-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

.auth-benefits li::before {
    content: "✓";
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.2);
    color: #d1fae5;
    font-weight: 800;
    flex: none;
}

.auth-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.75rem;
    box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.08);
    padding: 2rem;
    align-self: center;
}

.auth-header {
    margin-bottom: 1.25rem;
}

.auth-header .eyebrow {
    margin: 0 0 0.4rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
}

.auth-header h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

/* ---------- The candidate-or-voter question before registering ---------- */
/* A single centred column: no illustration to balance, so a split layout would leave
   half the page empty. */
.register-gate {
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem 1.25rem 4rem;
}

/* No card: the question sits directly on the page, like the onboarding steps. */
.register-gate-card {
    text-align: center;
}

.register-gate-eyebrow {
    margin: 0 0 0.6rem;
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.register-gate-title {
    margin: 0 auto;
    max-width: 18ch;
    color: #0f172a;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.register-gate-lead {
    margin: 1rem auto 0;
    max-width: 34rem;
    color: #475569;
    font-size: 1rem;
    line-height: 1.65;
}

.register-choice-grid {
    display: grid;
    gap: 0.9rem;
    margin: 2rem auto 1.4rem;
    max-width: 40rem;
}

@media (min-width: 640px) {
    .register-choice-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.register-choice {
    position: relative;
    display: grid;
    gap: 0.3rem;
    padding: 1.25rem 1.25rem 1.4rem;
    border: 1px solid #e2e8f0;
    border-radius: 1.1rem;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.register-choice:hover,
.register-choice:focus-visible {
    border-color: #0f766e;
    box-shadow: 0 1rem 2rem -1.4rem rgba(15, 23, 42, 0.4);
    transform: translateY(-2px);
    outline: none;
}

.register-choice-tag {
    color: #0f766e;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.register-choice strong {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.register-choice small {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.55;
}

.register-choice-go {
    margin-top: 0.35rem;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.register-choice-primary {
    border-color: #0f172a;
    background: #0f172a;
}

.register-choice-primary strong,
.register-choice-primary .register-choice-go {
    color: #ffffff;
}

.register-choice-primary small {
    color: #cbd5e1;
}

.register-choice-primary .register-choice-tag {
    color: #5eead4;
}

.register-choice-foot {
    margin: 0 auto;
    max-width: 34rem;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.6;
}

.register-choice-foot a {
    color: #0f172a;
    font-weight: 700;
}

.auth-form label {
    display: grid;
    gap: 0.5rem;
    font-weight: 600;
    color: #0f172a;
}

.auth-form input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.8rem;
    padding: 0.95rem 1rem;
    font-size: 1rem;
    background: #fff;
}

.auth-form input:focus {
    border-color: #0f172a;
    outline: none;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.06);
}

.password-field {
    gap: 0.6rem;
}

.password-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrap input {
    padding-right: 4.1rem;
}

.password-toggle {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.76rem;
    padding: 0.45rem 0.7rem;
    border-radius: 0.6rem;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    background: #e2e8f0;
}

.auth-meta-row {
    display: flex;
    justify-content: flex-start;
    margin-top: -0.1rem;
}

.helper-text {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
}

.auth-switch {
    margin: 1.1rem 0 0;
    color: #475569;
    font-size: 0.96rem;
}

.auth-switch a {
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover,
.auth-switch a:focus-visible {
    text-decoration: underline;
}

/* ---------- Candidate create form ---------- */
.candidate-create-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3.5rem;
}

.candidate-form {
    display: grid;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.05);
}

.candidate-form label {
    display: grid;
    gap: 0.5rem;
    font-weight: 600;
    color: #0f172a;
}

.candidate-form input,
.candidate-form select,
.candidate-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    background: #fff;
    font-family: inherit;
}

.candidate-form input:focus,
.candidate-form select:focus,
.candidate-form textarea:focus {
    border-color: #0f172a;
    outline: none;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.06);
}

.field-hint {
    display: block;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 0.35rem;
}

/* ---------- Explore / search extras ---------- */
.area-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    max-width: 760px;
    margin: 0 auto 1.5rem;
}

.area-search-form input {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 0.95rem 1.1rem;
    font-size: 1rem;
    width: 100%;
    background: #fff;
}

.area-search-form input:focus {
    border-color: #0f172a;
    outline: none;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.06);
}

.search-summary {
    margin: 0.5rem 0 1rem;
    color: #475569;
    text-align: center;
}

.reset-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.reset-filters:hover,
.reset-filters:focus-visible {
    text-decoration: underline;
}

/* ---------- Party pages ---------- */
.party-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.15rem 1.2rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.1rem;
    box-shadow: 0 0.7rem 1.4rem rgba(15, 23, 42, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.party-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 1rem 1.8rem rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.party-card-body {
    display: grid;
    gap: 0.5rem;
}

.party-card h2,
.party-card h3 {
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.party-card p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.party-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.7rem;
    border-top: 1px solid #e2e8f0;
}

.party-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.party-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
}

.party-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
    align-items: center;
    color: #475569;
}

.party-name {
    font-weight: 700;
    color: #0f172a;
}

/* ---------- Party profile ---------- */
.party-page {
    max-width: 1140px;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 4.5rem;
}

.party-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
    color: #94a3b8;
    font-size: 0.8rem;
}

.party-breadcrumb a {
    color: #475569;
    font-weight: 700;
    text-decoration: none;
}

.party-breadcrumb a:hover {
    color: #0f172a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.party-hero {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 2.25rem;
    align-items: start;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.party-hero-media {
    display: grid;
    place-items: center;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: #f8fafc;
}

.party-hero-logo {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 0.75rem;
    object-fit: contain;
}

.party-hero-body {
    min-width: 0;
}

.party-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.party-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.party-chip-strong {
    background: #0f172a;
    color: #ffffff;
}

.party-chip-ok {
    background: #dcfce7;
    color: #166534;
}

.party-chip-warn {
    background: #fef3c7;
    color: #92400e;
}

.party-name {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.party-tagline {
    margin: 0.7rem 0 0;
    color: #0f766e;
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 600;
}

.party-intro {
    margin: 1rem 0 0;
    max-width: 44rem;
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
}

.party-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.6rem 0 0;
}

.party-stats > div {
    min-width: 6.5rem;
    padding: 0.7rem 0.95rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: #ffffff;
}

.party-stats dt {
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.party-stats dd {
    margin: 0.15rem 0 0;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.party-stats dd.party-stats-text {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    max-width: 14rem;
}

.party-candidates {
    padding-top: 2.5rem;
}

.party-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1.35rem;
}

.party-section-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
}

.party-section-head p {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
}

.party-candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.1rem;
}

.party-empty {
    padding: 2.25rem 1.5rem;
    border: 1px dashed #cbd5e1;
    border-radius: 1.25rem;
    background: #f8fafc;
    text-align: center;
}

.party-empty h3 {
    margin: 0 0 0.5rem;
    color: #0f172a;
    font-size: 1.15rem;
}

.party-empty p {
    margin: 0 auto 1.25rem;
    max-width: 34rem;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.65;
}

.party-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

@media (max-width: 780px) {
    .party-hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .party-hero-media {
        justify-self: start;
        padding: 1rem;
    }

    .party-hero-logo {
        max-width: 110px;
    }
}

.party-description {
    max-width: 46rem;
    margin: 0.6rem 0 0.8rem;
    color: #334155;
    font-size: 1rem;
    line-height: 1.7;
}

.party-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    margin: 0 0 0.9rem;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.party-slogan {
    margin: 0 0 0.9rem;
    color: #0f766e;
    font-size: 1rem;
    font-style: italic;
    font-weight: 600;
}

.party-register-note {
    max-width: 40rem;
    margin: 0 0 1rem;
    padding: 0.7rem 0.9rem;
    border-left: 3px solid #b45309;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ---------- Affiliates ---------- */
.affiliate-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4.5rem;
}

.affiliate-hero h1 {
    margin: 0.6rem 0 0;
    max-width: 22ch;
    color: #0f172a;
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.affiliate-eyebrow {
    margin: 0;
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.affiliate-lead {
    margin: 1rem 0 0;
    max-width: 44rem;
    color: #475569;
    font-size: 1.02rem;
    line-height: 1.7;
}

.affiliate-join {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
    margin: 1.6rem 0 0;
}

.affiliate-join span {
    color: #64748b;
    font-size: 0.85rem;
}

/* A steady vertical rhythm between the blocks of the invitation. */
.affiliate-landing > * + * {
    margin-top: 2.6rem;
}

.affiliate-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    margin: 1.6rem 0 0;
}

.affiliate-cta-note {
    color: #64748b;
    font-size: 0.85rem;
}

.affiliate-earn {
    margin: 2.2rem 0 0;
    padding: 1.5rem 1.6rem;
    border: 1px solid #99f6e4;
    border-radius: 1.25rem;
    background: linear-gradient(150deg, #f0fdfa 0%, #ecfdf5 100%);
}

.affiliate-earn-label {
    margin: 0;
    color: #0f766e;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.affiliate-earn-figure {
    margin: 0.35rem 0 0;
    color: #0f172a;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
}

.affiliate-earn-note {
    margin: 0.4rem 0 0;
    color: #475569;
    font-size: 0.9rem;
}

.affiliate-section-lead {
    margin: 0 0 1rem;
    max-width: 42rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.65;
}

.affiliate-benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.9rem;
}

.affiliate-benefit {
    padding: 1.15rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #ffffff;
}

.affiliate-benefit h3 {
    margin: 0 0 0.45rem;
    color: #0f172a;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.affiliate-benefit p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.affiliate-who h2,
.affiliate-benefits h2,
.affiliate-faq h2 {
    margin: 0 0 0.9rem;
    color: #0f172a;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.affiliate-who p,
.affiliate-final p {
    margin: 0;
    max-width: 44rem;
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
}

.affiliate-faq-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
}

.affiliate-faq-item summary {
    cursor: pointer;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    list-style: none;
}

.affiliate-faq-item summary::-webkit-details-marker {
    display: none;
}

.affiliate-faq-item summary::before {
    content: "+";
    display: inline-block;
    width: 1.2rem;
    color: #0f766e;
    font-weight: 900;
}

.affiliate-faq-item[open] summary::before {
    content: "−";
}

.affiliate-faq-item p {
    margin: 0.7rem 0 0 1.2rem;
    max-width: 42rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
}

.affiliate-final {
    margin-top: 2.5rem;
    padding: 1.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: #f8fafc;
}

.affiliate-final h2 {
    margin: 0 0 0.6rem;
    color: #0f172a;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.affiliate-final form {
    margin-top: 1.1rem;
}

.affiliate-final .button {
    margin-top: 1.1rem;
}

.affiliate-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.5rem 0 0;
}

.affiliate-link-input {
    flex: 1 1 22rem;
    min-width: 0;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.85rem;
    background: #f8fafc;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9rem;
}

.affiliate-link-note {
    margin: 0.7rem 0 0;
    color: #64748b;
    font-size: 0.85rem;
}

.affiliate-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.7rem;
    margin: 2rem 0 2.5rem;
}

.affiliate-stat {
    padding: 1rem 1.1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #ffffff;
}

.affiliate-stat p {
    margin: 0 0 0.3rem;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.affiliate-stat strong {
    color: #0f172a;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.affiliate-rates,
.affiliate-how,
.affiliate-commissions {
    margin-top: 2.4rem;
}

.affiliate-rates h2,
.affiliate-how h2,
.affiliate-commissions h2 {
    margin: 0 0 0.9rem;
    color: #0f172a;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.affiliate-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.affiliate-section-head p {
    margin: 0 0 0.9rem;
    color: #64748b;
    font-size: 0.88rem;
}

.affiliate-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    background: #ffffff;
}

.affiliate-table th,
.affiliate-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #eef2f6;
    text-align: left;
    font-size: 0.9rem;
    vertical-align: middle;
}

.affiliate-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.affiliate-table tbody tr:last-child td {
    border-bottom: 0;
}

.affiliate-table .is-right {
    text-align: right;
}

.affiliate-note {
    display: block;
    color: #94a3b8;
    font-size: 0.78rem;
}

.affiliate-pill {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.affiliate-pill.is-pending {
    background: #fef3c7;
    color: #92400e;
}

.affiliate-pill.is-approved {
    background: #dbeafe;
    color: #1e40af;
}

.affiliate-pill.is-paid {
    background: #dcfce7;
    color: #166534;
}

.affiliate-steps {
    margin: 0;
    padding-left: 1.2rem;
    color: #334155;
    line-height: 1.75;
}

.affiliate-steps li + li {
    margin-top: 0.5rem;
}

/* The low door: a page for people who are interested but not ready to register. */
.lead-page {
    padding: 2.5rem 0 4rem;
}

.lead-shell {
    max-width: 940px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.lead-eyebrow {
    margin: 0 0 0.6rem;
    color: #b45309;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lead-hero h1 {
    max-width: 20ch;
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4.2vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.lead-lead {
    max-width: 62ch;
    margin: 0 0 1.75rem;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.65;
}

.lead-points {
    display: grid;
    gap: 0.9rem;
    margin: 0 0 2.5rem;
    padding: 0;
    list-style: none;
}

.lead-points li {
    padding-left: 1.1rem;
    border-left: 2px solid #0f172a;
    color: #475569;
    line-height: 1.6;
}

.lead-points strong {
    display: block;
    color: #0f172a;
}

.lead-card {
    margin-bottom: 2.5rem;
    padding: 1.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #ffffff;
}

.lead-card-title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
}

.lead-card-note,
.lead-hint,
.lead-consent {
    margin: 0 0 1rem;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.55;
}

.lead-form {
    display: grid;
    gap: 1rem;
}

.lead-field {
    display: block;
}

.lead-field > span {
    display: block;
    margin-bottom: 0.35rem;
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lead-field > span em {
    color: #94a3b8;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.lead-field input,
.lead-field select,
.lead-field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.65rem;
    font: inherit;
    color: #0f172a;
    background: #ffffff;
}

.lead-field input:focus,
.lead-field select:focus,
.lead-field textarea:focus {
    border-color: #0f172a;
    outline: 2px solid rgba(15, 23, 42, 0.12);
}

.lead-field-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .lead-field-row {
        grid-template-columns: 1fr 1fr;
    }
}

.lead-hint {
    margin-top: -0.5rem;
}

.lead-submit {
    justify-self: start;
}

.lead-consent {
    margin: 0;
}

.lead-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.lead-errors {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #fecaca;
    border-radius: 0.65rem;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.9rem;
}

.lead-errors p {
    margin: 0 0 0.35rem;
}

.lead-note.is-info {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #bfdbfe;
    border-radius: 0.65rem;
    background: #eff6ff;
    color: #1e40af;
    font-size: 0.9rem;
}

.lead-thanks h2 {
    margin: 0 0 0.6rem;
}

.lead-thanks p {
    max-width: 60ch;
    color: #475569;
    line-height: 1.6;
}

.lead-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.lead-who,
.lead-close {
    margin-bottom: 2rem;
}

.lead-who h2,
.lead-close h2 {
    margin: 0 0 1rem;
    font-size: 1.4rem;
}

.lead-who-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.lead-who-grid article {
    padding: 1.1rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
}

.lead-who-grid h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.lead-who-grid p,
.lead-close p {
    margin: 0;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* The lead inbox. */
.lead-admin-funnel {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.lead-admin-stat {
    flex: 1 1 130px;
    padding: 0.7rem 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.7rem;
    color: #475569;
    text-decoration: none;
    background: #ffffff;
}

.lead-admin-stat span {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.lead-admin-stat strong {
    font-size: 1.35rem;
    color: #0f172a;
}

.lead-admin-stat.is-active {
    border-color: #0f172a;
    background: #f8fafc;
}

.lead-wait {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.lead-wait.is-fresh {
    background: #dcfce7;
    color: #166534;
}

.lead-wait.is-recent {
    background: #f1f5f9;
    color: #475569;
}

.lead-wait.is-stale {
    background: #fef3c7;
    color: #92400e;
}

.lead-status-form,
.lead-note-form {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.lead-status-form select,
.lead-note-form input {
    padding: 0.35rem 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.45rem;
    font: inherit;
    font-size: 0.82rem;
}

.lead-note-form input {
    min-width: 11rem;
}

/* The published conversion rate, stated where the dollar figures are. */
.affiliate-rate-note {
    margin: 1.1rem 0 0;
    padding: 0.85rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.6;
}

.affiliate-rate-note strong {
    color: #0f172a;
}

/* Whether the sign-in address has been proved, said next to the field. */
.account-verified,
.account-unverified {
    margin-left: 0.4rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-verified {
    background: #dcfce7;
    color: #166534;
}

.account-unverified {
    background: #fef3c7;
    color: #92400e;
}

/* The public handle is shown, not edited: it is the candidate's permanent address. */
.handle-locked {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin: 0.35rem 0 0.45rem;
}

.handle-locked code {
    padding: 0.45rem 0.7rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.9rem;
}

.handle-locked-badge {
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-label {
    display: block;
    color: #0f172a;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Tabs that split one console area across several pages. */
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.admin-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.admin-tab span {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
}

.admin-tab:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.admin-tab.is-active {
    background: #0f172a;
    color: #ffffff;
}

.admin-tab.is-active span {
    color: #cbd5e1;
}

/* A rate is a type and a value; both have to read as controls. */
.admin-rate-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.admin-rate-cell select {
    padding: 0.35rem 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-rate-resolved {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Rate inputs in the console: they must look editable, not like printed figures. */
.admin-inline-field {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.6rem;
    background: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
}

.admin-inline-field span {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.admin-inline-field input {
    width: 6.5rem;
    padding: 0.2rem 0.3rem;
    border: 0;
    background: transparent;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 700;
}

.admin-inline-field input:focus {
    outline: 2px solid #0f766e;
    outline-offset: 2px;
    border-radius: 0.35rem;
}

.affiliate-fineprint {
    margin: 1.6rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.65;
}

/* ---------- Blog ---------- */
.blog-hero {
    max-width: 1140px;
    margin: 0 auto;
    padding: 3rem 1.25rem 1.5rem;
}

.blog-eyebrow {
    margin: 0 0 0.6rem;
    color: #0f766e;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.blog-hero h1 {
    margin: 0;
    max-width: 24ch;
    color: #0f172a;
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.blog-lead {
    margin: 1rem 0 0;
    max-width: 46rem;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.7;
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.6rem;
}

.blog-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.blog-filter span {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
}

.blog-filter:hover {
    border-color: #94a3b8;
    color: #0f172a;
}

.blog-filter.is-active {
    border-color: #0f172a;
    background: #0f172a;
    color: #ffffff;
}

.blog-filter.is-active span {
    color: #cbd5e1;
}

.blog-feature,
.blog-grid,
.blog-pagination,
.blog-empty,
.blog-post,
.blog-more {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.blog-feature {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    gap: 0;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-feature:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 24px 48px -32px rgba(15, 23, 42, 0.45);
}

.blog-feature-media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 18rem;
    background: linear-gradient(150deg, #0f172a 0%, #134e4a 100%);
    overflow: hidden;
}

.blog-feature-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-feature-mark {
    color: rgba(255, 255, 255, 0.35);
    font-size: 6rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
}

.blog-feature-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.7rem;
}

.blog-feature-body h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.blog-feature-body h2 a,
.blog-card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.blog-feature-body p {
    margin: 0;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.65;
}

.blog-stretched::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.blog-chip {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #0f766e;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.blog-meta {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 600;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.4rem;
    padding-bottom: 1rem;
}

/* Three columns once there is room, so the grid reads as a grid whatever the count. */
@media (min-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.blog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: #ffffff;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 20px 36px -30px rgba(15, 23, 42, 0.5);
}

.blog-card-media {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    background: linear-gradient(150deg, #0f172a 0%, #134e4a 100%);
    overflow: hidden;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-mark {
    color: rgba(255, 255, 255, 0.45);
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.15rem 1.2rem 1.3rem;
}

.blog-card-body h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.08rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.blog-card-body p {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.6;
}

.blog-pagination {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.blog-empty {
    padding-top: 2rem;
    padding-bottom: 5rem;
    text-align: center;
}

.blog-empty h2 {
    margin: 0 0 0.6rem;
    color: #0f172a;
    font-size: 1.4rem;
}

.blog-empty p {
    margin: 0 auto 1.4rem;
    max-width: 34rem;
    color: #64748b;
    line-height: 1.7;
}

.blog-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

/* ---------- One post ---------- */
.blog-post {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.blog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    color: #94a3b8;
    font-size: 0.8rem;
}

.blog-breadcrumb a {
    color: #475569;
    font-weight: 700;
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    color: #0f172a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-post-header {
    max-width: 44rem;
    margin: 0 auto;
    text-align: left;
}

.blog-post-header h1 {
    margin: 0.7rem 0 0;
    color: #0f172a;
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.blog-standfirst {
    margin: 1rem 0 0;
    color: #475569;
    font-size: 1.15rem;
    line-height: 1.6;
}

.blog-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 1.3rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-cover {
    max-width: 52rem;
    margin: 2rem auto 0;
}

.blog-cover img {
    width: 100%;
    border-radius: 1.25rem;
}

.blog-prose {
    max-width: 44rem;
    margin: 2.25rem auto 0;
    color: #1e293b;
    font-size: 1.06rem;
    line-height: 1.78;
}

.blog-prose > * + * {
    margin-top: 1.2em;
}

.blog-prose h2 {
    margin-top: 2.2em;
    color: #0f172a;
    font-size: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.blog-prose h3 {
    margin-top: 1.8em;
    color: #0f172a;
    font-size: 1.2rem;
}

.blog-prose a {
    color: #0f766e;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-prose ul,
.blog-prose ol {
    padding-left: 1.4rem;
}

.blog-prose ul {
    list-style: disc;
}

.blog-prose ol {
    list-style: decimal;
}

.blog-prose li + li {
    margin-top: 0.4rem;
}

.blog-prose blockquote {
    margin: 1.6em 0;
    padding: 0.2rem 0 0.2rem 1.1rem;
    border-left: 3px solid #0f766e;
    color: #334155;
    font-style: italic;
}

.blog-prose blockquote p {
    margin: 0;
}

.blog-prose code {
    padding: 0.12rem 0.35rem;
    border-radius: 0.35rem;
    background: #f1f5f9;
    font-size: 0.9em;
}

.blog-prose pre {
    padding: 1rem 1.1rem;
    border-radius: 0.85rem;
    background: #0f172a;
    color: #e2e8f0;
    overflow-x: auto;
}

.blog-prose pre code {
    padding: 0;
    background: none;
    color: inherit;
}

.blog-prose hr {
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 2.4em 0;
}

.blog-post-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 44rem;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.blog-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.blog-share a {
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
}

.blog-share a:hover {
    color: #0f766e;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.blog-more {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

.blog-more h2 {
    margin: 0 0 1.2rem;
    color: #0f172a;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

@media (max-width: 820px) {
    .blog-feature {
        grid-template-columns: 1fr;
    }

    .blog-feature-media {
        min-height: 12rem;
    }

    .blog-feature-body {
        padding: 1.4rem;
    }
}

/* ---------- Geography pages (county / constituency / ward) ----------
   The hero is full-bleed by design; everything under it sits in a measured column rather
   than running to the edges of the screen. */
.geo-body {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.5rem 1.25rem 4rem;
}

@media (min-width: 640px) {
    .geo-body {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.geo-body > .overview-cards {
    margin-left: 0;
    margin-right: 0;
}

.party-pagination {
    margin: 1.5rem auto 3rem;
}

.pagination-summary {
    margin: 0 0 0.9rem;
    color: #64748b;
    font-size: 0.85rem;
    text-align: center;
}

.party-card-flag {
    margin: 0.4rem 0 0;
    color: #b45309;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.party-card-description {
    margin: 0.55rem 0 0;
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.party-abbreviation {
    display: inline-block;
    margin: 0.15rem 0 0;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    flex: none;
}

.party-image-card {
    overflow: hidden;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.party-image-card-wrap {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f8fafc;
}

.party-image-card-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- Candidate extras ---------- */
.candidate-card-alt {
    display: grid;
    gap: 0.65rem;
    padding: 1.1rem 1.15rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1.1rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.candidate-card-alt:hover,
.candidate-card-alt:focus-visible {
    border-color: #cbd5e1;
    box-shadow: 0 0.7rem 1.3rem rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.candidate-card-alt h3 {
    margin: 0;
    color: #0f172a;
}

.candidate-card-alt p {
    margin: 0;
    color: #475569;
    line-height: 1.55;
}

.candidate-card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.candidate-card-stats>div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.7rem;
    padding: 0.6rem 0.7rem;
}

.candidate-card-stats span {
    display: block;
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.candidate-card-stats strong {
    color: #0f172a;
}

.candidate-content {
    color: #334155;
    line-height: 1.75;
}

.candidate-location {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
}

.candidate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.candidate-summary {
    margin: 0;
    color: #334155;
    line-height: 1.7;
}

.candidate-meta-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.candidate-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 600;
}

.candidate-badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 700;
}

.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
    font-size: 0.8rem;
    font-weight: 800;
}

.icon,
.icon-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.45rem;
    background: #f1f5f9;
    color: #0f172a;
    flex: none;
}

.candidate-panel-manifestos {
    display: grid;
    gap: 0.9rem;
}

/* ---------- Buttons (small / ghost / inline) ---------- */
.button-small {
    padding: 0.55rem 0.85rem;
    font-size: 0.8rem;
    line-height: 1;
}

.button-ghost {
    background: transparent;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    box-shadow: none;
}

.button-ghost:hover,
.button-ghost:focus-visible {
    background: #f8fafc;
    box-shadow: none;
    transform: none;
}

.inline-status-form,
.inline-form {
    display: inline-flex;
    margin: 0;
}

/* ============================================================
   Redesigned candidate dashboard
   ============================================================ */
.dash-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 3.5rem;
}

.dash-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.35rem;
}

.dash-kicker {
    margin: 0 0 0.35rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dash-header h1 {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    letter-spacing: -0.045em;
    color: #0f172a;
    line-height: 1.1;
}

.dash-lead {
    margin: 0.45rem 0 0;
    max-width: 48ch;
    color: #475569;
    line-height: 1.6;
}

.dash-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.dash-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.dash-metric {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.1rem;
    padding: 1rem 1.05rem;
    box-shadow: 0 0.7rem 1.4rem rgba(15, 23, 42, 0.04);
}

.dash-metric-accent {
    background: linear-gradient(145deg, #0f172a 0%, #134e4a 100%);
    border-color: transparent;
    color: #f8fafc;
}

.dash-metric-label {
    display: block;
    margin-bottom: 0.45rem;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dash-metric-accent .dash-metric-label,
.dash-metric-accent p {
    color: rgba(248, 250, 252, 0.78);
}

.dash-metric strong {
    display: block;
    font-size: 1.7rem;
    letter-spacing: -0.05em;
    line-height: 1;
    color: #0f172a;
}

.dash-metric-accent strong {
    color: #fff;
}

.dash-metric p {
    margin: 0.45rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
}

.dash-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
    gap: 1.1rem;
    align-items: start;
}

.dash-main-col,
.dash-side-col {
    display: grid;
    gap: 1.1rem;
}

.dash-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.2rem 1.25rem 1.25rem;
    box-shadow: 0 0.8rem 1.6rem rgba(15, 23, 42, 0.04);
}

.dash-next-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.dash-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.dash-card-head h2 {
    margin: 0.2rem 0 0;
    font-size: 1.25rem;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.dash-step-pill {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.4rem 0.7rem;
}

.dash-card-copy,
.dash-card-note {
    margin: 0 0 1rem;
    color: #475569;
    line-height: 1.6;
}

.dash-steps {
    list-style: none;
    margin: 0 0 1.1rem;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.dash-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
    align-items: start;
    padding: 0.85rem 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.95rem;
    background: #fff;
}

.dash-steps li.is-done {
    border-color: rgba(22, 101, 52, 0.18);
    background: rgba(220, 252, 231, 0.35);
}

.dash-steps li.is-current {
    border-color: rgba(15, 118, 110, 0.28);
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.08);
}

.dash-step-index {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 800;
}

.dash-steps li.is-done .dash-step-index {
    background: #dcfce7;
    color: #166534;
}

.dash-steps li.is-current .dash-step-index {
    background: #0f172a;
    color: #fff;
}

.dash-steps strong {
    display: block;
    color: #0f172a;
    margin-bottom: 0.15rem;
}

.dash-steps p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.dash-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.dash-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 1.35rem 1.2rem;
    text-align: center;
}

.dash-empty-compact {
    padding: 1.1rem;
}

.dash-empty h3 {
    margin: 0 0 0.4rem;
    color: #0f172a;
}

.dash-empty p {
    margin: 0 0 1rem;
    color: #475569;
}

.dash-manifesto-list {
    display: grid;
    gap: 0.75rem;
}

.dash-manifesto-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.dash-manifesto-copy {
    min-width: 0;
    flex: 1;
}

.dash-manifesto-topline {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.dash-manifesto-topline time {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
}

.dash-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dash-status.is-live {
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
}

.dash-status.is-draft {
    background: rgba(148, 163, 184, 0.16);
    color: #475569;
}

.dash-manifesto-row h3 {
    margin: 0 0 0.3rem;
    font-size: 1.02rem;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.dash-manifesto-row p {
    margin: 0;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.55;
}

.dash-manifesto-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.dash-profile-card {
    display: grid;
    gap: 1rem;
}

.dash-profile-identity {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.dash-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0f172a, #0f766e);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    flex: none;
}

.dash-profile-identity h3 {
    margin: 0 0 0.15rem;
    font-size: 1.08rem;
    color: #0f172a;
}

.dash-profile-identity p {
    margin: 0;
    color: #64748b;
}

.dash-meta-list {
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

.dash-meta-list>div {
    display: grid;
    gap: 0.15rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.dash-meta-list dt {
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dash-meta-list dd {
    margin: 0;
    color: #0f172a;
    font-weight: 600;
}

.dash-progress-block+.dash-progress-block {
    margin-top: 0.95rem;
}

.dash-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
    color: #475569;
    font-weight: 700;
    font-size: 0.9rem;
}

.dash-progress-row strong {
    color: #0f172a;
}

.dash-progress-track {
    height: 0.65rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.dash-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f172a 0%, #0f766e 100%);
}

.dash-profile-list {
    display: grid;
    gap: 0.65rem;
}

.dash-profile-mini {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    background: #f8fafc;
}

.dash-profile-mini strong {
    display: block;
    color: #0f172a;
}

.dash-profile-mini p {
    margin: 0.15rem 0 0;
    color: #64748b;
    font-size: 0.88rem;
}

.dash-account-form {
    display: grid;
    gap: 0.85rem;
}

.dash-account-form label {
    display: grid;
    gap: 0.4rem;
    font-weight: 600;
    color: #0f172a;
}

.dash-account-form input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.8rem;
    padding: 0.85rem 0.95rem;
    font-size: 0.98rem;
    background: #fff;
}

.dash-account-form input:focus {
    border-color: #0f172a;
    outline: none;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.06);
}

.dash-account-form button {
    width: fit-content;
}

/* ============================================================
   Redesigned manifesto reading page
   ============================================================ */
.ms-page {
    padding-bottom: 3.5rem;
}

.ms-hero {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 48%, #134e4a 100%);
    color: #f8fafc;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.ms-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 2rem;
}

.ms-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    margin-bottom: 1rem;
    color: rgba(226, 232, 240, 0.72);
    font-size: 0.9rem;
}

.ms-breadcrumb a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
}

.ms-breadcrumb a:hover,
.ms-breadcrumb a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.ms-kicker {
    margin: 0 0 0.45rem;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ms-hero .ms-kicker {
    color: rgba(148, 163, 184, 0.95);
}

.ms-hero h1 {
    margin: 0;
    max-width: 18ch;
    font-size: clamp(2.2rem, 4.4vw, 3.7rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #fff;
}

.ms-subtitle {
    margin: 0.85rem 0 0;
    max-width: 54ch;
    color: rgba(226, 232, 240, 0.9);
    font-size: 1.08rem;
    line-height: 1.6;
}

.ms-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.35rem;
}

.ms-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.ms-author-photo,
.ms-author-fallback,
.ms-side-identity img,
.ms-side-fallback {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 999px;
    object-fit: cover;
    flex: none;
}

.ms-author-fallback,
.ms-side-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 800;
}

.ms-side-fallback {
    background: linear-gradient(145deg, #0f172a, #0f766e);
    border: none;
}

.ms-author-name {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.02rem;
}

.ms-author-name:hover,
.ms-author-name:focus-visible {
    text-decoration: underline;
}

.ms-author p {
    margin: 0.15rem 0 0;
    color: rgba(226, 232, 240, 0.82);
    font-size: 0.94rem;
}

.ms-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ms-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
}

.ms-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.35rem;
}

.ms-hero-actions .button-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.16);
}

.ms-hero-actions .button-secondary:hover,
.ms-hero-actions .button-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.18);
}

.ms-layout {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 1.4rem;
    align-items: start;
}

.ms-content {
    display: grid;
    gap: 1.1rem;
    min-width: 0;
}

.ms-summary,
.ms-body,
.ms-end-card,
.ms-related,
.ms-side-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    box-shadow: 0 0.8rem 1.6rem rgba(15, 23, 42, 0.04);
}

.ms-summary {
    padding: 1.25rem 1.4rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.ms-summary p:last-child {
    margin: 0.35rem 0 0;
    color: #1e293b;
    font-size: 1.08rem;
    line-height: 1.7;
}

.ms-body {
    padding: 1.8rem 1.7rem 2rem;
}

.ms-body h2,
.ms-body h3,
.ms-body h4 {
    margin-top: 1.7rem;
    margin-bottom: 0.7rem;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.ms-body h2:first-child,
.ms-body h3:first-child,
.ms-body h4:first-child,
.ms-body p:first-child {
    margin-top: 0;
}

.ms-body p,
.ms-body li,
.ms-body blockquote {
    color: #1e293b;
    line-height: 1.85;
    font-size: 1.08rem;
}

.ms-body p {
    margin: 0 0 1.15rem;
}

.ms-body ul,
.ms-body ol {
    margin: 0 0 1.2rem;
    padding-left: 1.3rem;
}

.ms-body blockquote {
    margin: 1.4rem 0;
    padding: 1rem 1.15rem;
    border-left: 4px solid #0f172a;
    background: #f8fafc;
    border-radius: 0.8rem;
}

.ms-empty-body {
    text-align: center;
    padding: 1.5rem 1rem;
}

.ms-empty-body h2 {
    margin-top: 0;
    font-family: inherit;
}

.ms-empty-body p {
    max-width: 38ch;
    margin: 0.5rem auto 1.1rem;
    color: #475569;
}

.ms-end-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
}

.ms-end-card h2 {
    margin: 0.2rem 0 0.35rem;
    font-size: 1.3rem;
    letter-spacing: -0.03em;
}

.ms-end-card p {
    margin: 0;
    color: #475569;
}

.ms-end-actions,
.ms-side-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.ms-related {
    padding: 1.25rem 1.3rem 1.4rem;
}

.ms-related-head h2 {
    margin: 0.2rem 0 0;
    font-size: 1.25rem;
}

.ms-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 0.95rem;
}

.ms-related-card {
    display: grid;
    gap: 0.4rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #f8fafc;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.ms-related-card:hover,
.ms-related-card:focus-visible {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 0.7rem 1.2rem rgba(15, 23, 42, 0.06);
}

.ms-related-card h3 {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
}

.ms-related-card p {
    margin: 0;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.5;
}

.ms-related-card span {
    color: #0f766e;
    font-size: 0.88rem;
    font-weight: 700;
}

.ms-sidebar {
    position: sticky;
    top: 1.1rem;
    display: grid;
    gap: 0.9rem;
}

.ms-side-card {
    padding: 1.15rem 1.1rem 1.2rem;
}

.ms-side-card-soft {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.ms-side-identity {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0.55rem 0 1rem;
}

.ms-side-identity h2 {
    margin: 0 0 0.15rem;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}

.ms-side-identity p {
    margin: 0;
    color: #64748b;
}

.ms-side-meta {
    margin: 0 0 1rem;
    display: grid;
    gap: 0.6rem;
}

.ms-side-meta>div {
    display: grid;
    gap: 0.15rem;
    padding: 0.7rem 0.75rem;
    border-radius: 0.8rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.ms-side-meta dt {
    color: #94a3b8;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ms-side-meta dd {
    margin: 0;
    color: #0f172a;
    font-weight: 600;
}

.ms-side-card-soft h3 {
    margin: 0.25rem 0 0.7rem;
    font-size: 1.05rem;
}

.ms-side-card-soft ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #475569;
    display: grid;
    gap: 0.45rem;
    line-height: 1.5;
}

/* ============================================================
   Editor / writing experience
   ============================================================ */
body.is-writing-mode {
    background: #fff;
}

body.is-writing-mode .app-shell {
    background: #fff;
}

body.is-writing-mode .site-header,
body.is-writing-mode .site-footer,
body.is-writing-mode .compare-banner {
    display: none !important;
}

body.is-writing-mode .page-container {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

.manifesto-create-page {
    min-height: 100vh;
    background: #fff;
    padding: 0 0 5rem;
}

.manifesto-write-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(8px);
}

.manifesto-write-topbar-inner {
    width: min(100%, 1192px);
    margin: 0 auto;
    min-height: 3.6rem;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.manifesto-write-topbar-left,
.manifesto-write-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-width: 0;
}

.manifesto-write-brand {
    color: #191919;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.04em;
    font-size: 1.05rem;
}

.manifesto-write-divider {
    width: 1px;
    height: 1rem;
    background: rgba(15, 23, 42, 0.14);
}

.manifesto-write-back {
    color: #6b6b6b;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    max-width: 18rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manifesto-write-back:hover,
.manifesto-write-brand:hover {
    color: #191919;
}

.autosave-state {
    color: #757575;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.manifesto-write-linkbtn,
.manifesto-write-ghost,
.manifesto-write-publish {
    appearance: none;
    border: none;
    background: transparent;
    font: inherit;
    cursor: pointer;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.manifesto-write-linkbtn {
    color: #6b6b6b;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.45rem 0.7rem;
}

.manifesto-write-linkbtn:hover {
    color: #191919;
    background: rgba(15, 23, 42, 0.04);
}

.manifesto-write-ghost {
    color: #191919;
    border: 1px solid rgba(15, 23, 42, 0.12);
    padding: 0.5rem 0.95rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.manifesto-write-ghost:hover {
    background: rgba(15, 23, 42, 0.03);
}

.manifesto-write-publish {
    background: #1a8917;
    color: #fff;
    padding: 0.55rem 1.05rem;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: none;
}

.manifesto-write-publish:hover {
    background: #156d12;
}

.manifesto-alert {
    width: min(100%, 720px);
    margin: 1rem auto 0;
    padding: 0 1.25rem;
}

.manifesto-write-form {
    width: 100%;
    margin: 0;
    padding: 0;
}

.manifesto-write-column {
    width: min(100%, 800px);
    margin: 0 auto;
    padding: 3.2rem 1rem 4rem;
}

.manifesto-write-title {
    display: block;
    margin: 0 0 1.4rem;
}

.manifesto-write-title input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #242424;
    font-size: clamp(2.4rem, 5vw, 3.1rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 700;
    padding: 0;
    box-shadow: none;
}

.manifesto-write-title input::placeholder {
    color: #b3b3b1;
}

.manifesto-write-editor,
.manifesto-editor {
    width: 100%;
    min-height: 55vh;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.manifesto-priority-picker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 2rem;
    padding: 0.85rem 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.manifesto-priority-label,
.manifesto-priority-hint {
    display: block;
}

.manifesto-priority-label {
    color: #242424;
    font-size: 0.82rem;
    font-weight: 700;
}

.manifesto-priority-hint {
    margin-top: 0.15rem;
    color: #8b8b88;
    font-size: 0.78rem;
}

.manifesto-priority-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.manifesto-priority-controls select {
    min-width: 13rem;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 999px;
    padding: 0.55rem 0.8rem;
    background: #fff;
    color: #242424;
    font: inherit;
    font-size: 0.82rem;
}

.manifesto-priority-add {
    border: 0;
    border-radius: 999px;
    padding: 0.58rem 0.9rem;
    background: #1a8917;
    color: #fff;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}

.manifesto-priority-add:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 720px) {
    .manifesto-priority-picker {
        align-items: stretch;
        flex-direction: column;
    }

    .manifesto-priority-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .manifesto-priority-controls select {
        min-width: 0;
        width: 100%;
    }
}

.manifesto-write-editor .codex-editor,
.manifesto-write-editor .codex-editor__redactor,
.manifesto-write-editor .ce-block,
.manifesto-editor .codex-editor,
.manifesto-editor .codex-editor__redactor,
.manifesto-editor .ce-block {
    width: 100%;
    max-width: none;
}

.manifesto-write-editor .ce-block,
.manifesto-editor .ce-block {
    font-size: 1.25rem;
    line-height: 1.75;
    color: #242424;
    margin: 0 0 0.15rem;
}

.manifesto-write-editor .ce-paragraph,
.manifesto-editor .ce-paragraph {
    font-size: 1.28rem;
    line-height: 1.78;
    color: #242424;
}

.manifesto-write-editor .ce-header,
.manifesto-editor .ce-header {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #242424;
}

.manifesto-write-editor .codex-editor__redactor,
.manifesto-editor .codex-editor__redactor {
    padding-bottom: 18rem !important;
}

.manifesto-write-summary {
    margin-top: 3rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 1.1rem;
    color: #6b6b6b;
}

.manifesto-write-summary summary {
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    color: #6b6b6b;
    list-style: none;
}

.manifesto-write-summary summary::-webkit-details-marker {
    display: none;
}

.manifesto-write-summary textarea {
    width: 100%;
    margin-top: 0.85rem;
    min-height: 110px;
    resize: vertical;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
    background: #fafafa;
    color: #242424;
    font: inherit;
    font-size: 0.98rem;
    line-height: 1.55;
}

.manifesto-write-summary textarea:focus-visible {
    outline: 2px solid rgba(26, 137, 23, 0.25);
    border-color: #1a8917;
}

.manifesto-summary-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.35);
}

.manifesto-summary-modal[hidden] {
    display: none;
}

.manifesto-summary-modal-card {
    position: relative;
    width: min(100%, 420px);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.25);
    padding: 1.75rem 1.5rem 1.5rem;
    text-align: left;
}

.manifesto-summary-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border: none;
    background: transparent;
    border-radius: 0.5rem;
    color: #64748b;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.manifesto-summary-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.manifesto-summary-modal-card h2 {
    margin: 0 0 0.6rem;
    font-size: 1.4rem;
    color: #0f172a;
}

.manifesto-summary-modal-card p {
    margin: 0 0 1.25rem;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.manifesto-summary-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.manifesto-ai-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 45;
}

.manifesto-ai-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.manifesto-ai-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, calc(100vw - 1rem));
    height: 100vh;
    background: #fff;
    box-shadow: -1rem 0 2rem rgba(15, 23, 42, 0.1);
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    transform: translateX(105%);
    transition: transform 0.24s ease;
    z-index: 50;
    overflow-y: auto;
}

.manifesto-ai-drawer.is-open {
    transform: translateX(0);
}

.manifesto-ai-panel {
    padding: 1.25rem 1.2rem 2rem;
}

.manifesto-ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b6b6b;
}

.manifesto-ai-close {
    border: none;
    background: transparent;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    color: #6b6b6b;
    cursor: pointer;
}

.manifesto-ai-intro,
.manifesto-ai-empty {
    margin: 0 0 1rem;
    color: #6b6b6b;
    font-size: 0.94rem;
    line-height: 1.55;
}

.manifesto-ai-controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.manifesto-ai-controls input {
    width: 100%;
    min-height: 2.9rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    padding: 0.8rem 1rem;
    background: #fff;
    color: #191919;
    font: inherit;
    outline: none;
}

.manifesto-ai-controls input::placeholder {
    color: #9a9a9a;
}

.manifesto-ai-controls input:focus-visible {
    border-color: #1a8917;
    box-shadow: 0 0 0 3px rgba(26, 137, 23, 0.12);
}

.manifesto-ai-suggestion {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.9rem;
    background: #fafafa;
    padding: 0.95rem 1rem;
}

.manifesto-ai-suggestion-label {
    margin: 0 0 0.45rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #757575;
}

.manifesto-ai-output {
    margin: 0;
    color: #242424;
    font-size: 0.98rem;
    line-height: 1.65;
    white-space: pre-wrap;
}

.manifesto-ai-suggestion-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.95rem;
}

.manifesto-ai-suggestion-actions .button[disabled],
.manifesto-ai-suggestion-actions .button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.manifesto-inline-toolbar {
    position: fixed;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.3rem 0.4rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 0.55rem;
    background: #191919;
    box-shadow: 0 0.55rem 1.4rem rgba(15, 23, 42, 0.18);
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    pointer-events: none;
}

.manifesto-inline-toolbar.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.manifesto-inline-toolbar button {
    appearance: none;
    border: none;
    border-radius: 0.4rem;
    background: transparent;
    color: #fff;
    font: inherit;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
}

.manifesto-inline-toolbar button:hover,
.manifesto-inline-toolbar button:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {

    .auth-shell,
    .dash-main-grid,
    .ms-layout {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 260px;
    }

    .dash-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ms-sidebar {
        position: static;
    }

    .ms-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .header-grid {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand toggle"
            "nav   nav"
            "auth  auth";
        row-gap: 0.3rem;
        padding: 0.45rem 0;
    }

    .nav-toggle {
        display: flex;
        grid-area: toggle;
        margin-left: auto;
    }

    .main-nav,
    .auth-links {
        display: none;
    }

    .site-header.is-menu-open .main-nav,
    .site-header.is-menu-open .auth-links {
        display: flex;
    }

    .main-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        justify-self: stretch;
        width: 100%;
    }

    .main-nav a,
    .auth-links a {
        display: flex;
        width: 100%;
        box-sizing: border-box;
        padding: 0.65rem 0.9rem;
        border-radius: 0.6rem;
    }

    .auth-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        width: 100%;
    }

    .auth-links .auth-cta,
    .auth-links .logout-form {
        width: 100%;
    }

    .auth-links .auth-cta,
    .auth-links .logout-form button {
        justify-content: flex-start;
        box-sizing: border-box;
    }
}

@media (max-width: 720px) {

    .dash-header,
    .ms-end-card,
    .dash-manifesto-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .dash-header-actions,
    .dash-manifesto-actions,
    .ms-end-actions {
        width: 100%;
    }

    .dash-metrics {
        grid-template-columns: 1fr;
    }

    .ms-hero h1 {
        max-width: none;
    }

    .area-search-form {
        grid-template-columns: 1fr;
    }

    .manifesto-write-topbar-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.65rem;
        padding: 0.8rem 1rem;
    }

    .manifesto-write-topbar-right {
        width: 100%;
        justify-content: flex-start;
    }

    .manifesto-write-column {
        padding-top: 2rem;
    }

    .manifesto-ai-controls {
        grid-template-columns: 1fr;
    }

    .manifesto-write-back {
        max-width: 12rem;
    }
}

/* ============================================================
   Redesigned candidate & manifesto cards
   ============================================================ */

/* Card chrome — override shared `.overview-cards article` rules */
.overview-cards article.candidate-card,
.overview-cards article.candidate-card:focus-within {
    padding: 0;
    gap: 0;
    justify-content: flex-start;
    background: #ffffff;
    border: 1px solid #eceff3;
    border-radius: 1.75rem;
    overflow: hidden;
    box-shadow: 0 1.1rem 2rem rgba(15, 23, 42, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.overview-cards article.candidate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1.55rem 2.5rem rgba(15, 23, 42, 0.14);
    border-color: rgba(13, 148, 136, 0.4);
}

/* The manifesto card is rendered both inside .overview-cards (on /manifestos)
   and in a plain grid (homepage), so it carries its own layout rather than
   relying on the .overview-cards article rule. This is the single definition
   of the card shell. */
article.manifesto-card,
article.manifesto-card:focus-within {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 245px;
    padding: 1.25rem 1.2rem 1.15rem;
    gap: 0.55rem;
    justify-content: flex-start;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    box-shadow: 0 0.8rem 1.6rem rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Card links never underline. The generic .overview-cards article a:hover rule
   would underline them on /manifestos but not on the homepage. */
article.manifesto-card a,
article.manifesto-card a:hover,
article.manifesto-card a:focus-visible {
    text-decoration: none;
}

article.manifesto-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 1.2rem 2.2rem rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

/* ---------- Candidate card ---------- */
/* The card reads as one target: the name link stretches over the whole card, and the
   controls that must stay clickable on their own are lifted above it. */
.candidate-card {
    position: relative;
    cursor: pointer;
}

.candidate-card-stretched::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.candidate-card-actions,
.candidate-card-actions a,
.candidate-card-actions button,
.candidate-card form {
    position: relative;
    z-index: 2;
}

.candidate-card:has(.candidate-card-stretched:focus-visible) {
    outline: 2px solid #0f766e;
    outline-offset: 3px;
}

.candidate-card-media {
    position: relative;
    display: block;
    margin: 0.72rem 0.72rem 0;
    aspect-ratio: 1 / 1.04;
    overflow: hidden;
    border-radius: 1.45rem;
    background: #e5e7eb;
    border: 4px solid #ffffff;
}

.candidate-card .candidate-card-media {
    margin: 3px;
    color: inherit;
}

.candidate-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.overview-cards article.candidate-card:hover .candidate-card-img {
    transform: scale(1.03);
}

.candidate-card-party-mark {
    position: absolute;
    left: 0.72rem;
    bottom: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.55rem;
    height: 2.55rem;
    padding: 2px;
    border: 1px solid #ffffff;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 0.45rem 0.85rem rgba(15, 23, 42, 0.2);
    z-index: 1;
}

.candidate-card-party-mark img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.candidate-card-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.08rem;
    height: 1.08rem;
    margin-left: 0.2rem;
    border-radius: 999px;
    background: #10b981;
    color: #fff;
    vertical-align: 0.08em;
    box-shadow: 0 0.25rem 0.55rem rgba(16, 185, 129, 0.28);
}

.candidate-card-verified-badge svg {
    width: 0.68rem;
    height: 0.68rem;
}

.candidate-card-role {
    display: grid;
    gap: 0.28rem;
    margin: 0;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    min-width: 0;
    overflow: hidden;
}

/* The handle beside the name: identifies a person where a name cannot. */
.candidate-card-handle {
    display: block;
    margin-top: -0.15rem;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.candidate-card-role-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.candidate-card-role-item svg {
    width: 0.8rem;
    height: 0.8rem;
    color: #94a3b8;
    flex: none;
}

.candidate-card-party-logo {
    width: 0.82rem;
    height: 0.82rem;
    border-radius: 0.2rem;
    object-fit: cover;
    background: #f1f5f9;
    flex: none;
}

.candidate-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.72rem;
    flex: 1;
    padding: 0.82rem 1.05rem 1.02rem;
}

.candidate-card-head {
    display: grid;
    gap: 0.5rem;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 0.5rem;
}

.candidate-card-name {
    margin: 0;
    font-size: 1.34rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 800;
    text-transform: capitalize;
}

.candidate-card .candidate-card-name a {
    color: #111827;
    text-decoration: none;
}

.candidate-card .candidate-card-name a:hover,
.candidate-card .candidate-card-name a:focus-visible {
    color: #0f172a;
    text-decoration: none;
}

.candidate-card-summary {
    margin: 0;
    color: #475569;
    font-size: 0.82rem;
    line-height: 1.42;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.candidate-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 0.15rem;
}

.candidate-card-metrics {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.candidate-card-metric {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    color: #111827;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    max-width: 8.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.candidate-card-metric svg {
    width: 0.82rem;
    height: 0.82rem;
    color: #6b7280;
    flex: none;
}

.candidate-card-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    flex: none;
}

.candidate-card .candidate-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    min-height: 1.85rem;
    padding: 0.38rem 0.78rem;
    border-radius: 999px;
    background: #eceef0;
    color: #111827;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    margin-top: 0;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.candidate-card .candidate-card-link:hover,
.candidate-card .candidate-card-link:focus-visible {
    background: #e4e7eb;
    color: #0f172a;
    transform: translateY(-1px);
}

.candidate-card .candidate-card-link.is-active {
    background: #22c55e;
    color: #ffffff;
    box-shadow: 0 0.55rem 1rem rgba(34, 197, 94, 0.35);
}

.candidate-card .candidate-card-link.is-active:hover,
.candidate-card .candidate-card-link.is-active:focus-visible {
    background: #16a34a;
    color: #ffffff;
    transform: translateY(-1px);
}

.candidate-card .candidate-card-link.is-added {
    background: #e2e8f0;
    color: #475569;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.candidate-card .inline-form {
    margin: 0;
    display: inline-flex;
}

.candidate-card .inline-form button.candidate-card-link {
    appearance: none;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 700px) {
    .candidate-card-media {
        margin: 0.62rem 0.62rem 0;
        border-radius: 1.25rem;
    }

    .candidate-card-body {
        padding: 0.8rem 0.92rem 0.92rem;
    }

    .candidate-card-party-mark {
        left: 0.62rem;
        bottom: 0.62rem;
        width: 2.3rem;
        height: 2.3rem;
    }

    .candidate-card-name {
        font-size: 1.26rem;
    }

    .candidate-card-summary {
        font-size: 0.8rem;
    }

    .candidate-card .candidate-card-link {
        min-width: 4.3rem;
        font-size: 0.76rem;
    }

    .candidate-card-metric {
        font-size: 0.75rem;
        max-width: 6.2rem;
    }
}

/* ---------- Manifesto card ---------- */
.manifesto-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.3rem;
    border-radius: 1.25rem 0 0 1.25rem;
}

.manifesto-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.manifesto-card-kicker {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.manifesto-card .manifesto-card-arrow {
    color: #cbd5e1;
    font-size: 1rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

article.manifesto-card:hover .manifesto-card-arrow {
    transform: translateX(3px);
    color: #0f766e;
}

.manifesto-card .manifesto-card-title {
    margin: 0.2rem 0 0;
    font-size: 1.2rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.manifesto-card .manifesto-card-title a {
    color: #0f172a;
    text-decoration: none;
}

.manifesto-card .manifesto-card-title a:hover,
.manifesto-card .manifesto-card-title a:focus-visible {
    color: #0f766e;
}

.manifesto-card .manifesto-card-author {
    display: block;
    margin: 0;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.manifesto-card .manifesto-card-author:hover,
.manifesto-card .manifesto-card-author:focus-visible {
    color: #0f766e;
}

.manifesto-card-candidate {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.manifesto-card-candidate-image {
    display: block;
    width: 3.1rem;
    height: 3.1rem;
    flex: none;
    object-fit: cover;
    border-radius: 999px;
    background: #e5e7eb;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e2e8f0;
}

.manifesto-card-candidate-details {
    min-width: 0;
}

.manifesto-card .manifesto-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin: 0.2rem 0 0;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.35;
}

.manifesto-card-avatar {
    display: none;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: linear-gradient(145deg, #0f172a, #0f766e);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    flex: none;
}

.manifesto-card .manifesto-card-summary {
    margin: 0;
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.6;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.manifesto-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #eef2f7;
    justify-content: space-between;
}

.manifesto-card .manifesto-card-read {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 0;
    transition: background 0.15s ease;
}

.manifesto-card .manifesto-card-read:hover,
.manifesto-card .manifesto-card-read:focus-visible {
    background: #1e293b;
    color: #fff;
}

.manifesto-card .manifesto-card-compare {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 0;
    transition: background 0.15s ease;
}

.manifesto-card .manifesto-card-compare:hover,
.manifesto-card .manifesto-card-compare:focus-visible {
    background: #f8fafc;
}

/* ============================================================
   Explore page
   ============================================================ */
.explore-hero {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 50%, #134e4a 100%);
    color: #f8fafc;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.explore-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2rem 1.25rem 2.25rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.explore-hero-copy {
    max-width: 58ch;
}

.explore-hero .eyebrow {
    color: rgba(148, 163, 184, 0.95);
}

.explore-hero h1 {
    margin: 0.35rem 0 0.6rem;
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.explore-hero-copy p:last-child {
    margin: 0;
    color: rgba(226, 232, 240, 0.85);
    line-height: 1.65;
}

.explore-hero-stats {
    display: flex;
    gap: 0.85rem;
    flex: none;
}

.explore-stat {
    display: grid;
    gap: 0.2rem;
    min-width: 6.5rem;
    padding: 0.9rem 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
}

.explore-stat strong {
    font-size: 1.7rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.explore-stat span {
    color: rgba(226, 232, 240, 0.75);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.explore-finder {
    max-width: 1180px;
    margin: 1.5rem auto 0;
    padding: 0 1.25rem;
}

.explore-finder-copy {
    margin-bottom: 1rem;
}

.explore-finder-copy .eyebrow {
    color: #64748b;
}

.explore-finder-copy h2 {
    margin: 0.25rem 0 0.35rem;
    font-size: 1.55rem;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.explore-finder-copy p {
    margin: 0;
    color: #475569;
}

.explore-finder-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 0.75rem;
    align-items: end;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.1rem 1.2rem 1.2rem;
    box-shadow: 0 0.8rem 1.6rem rgba(15, 23, 42, 0.05);
}

.explore-finder-form label {
    display: grid;
    gap: 0.4rem;
}

.explore-finder-form label>span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.explore-finder-form select {
    width: 100%;
    min-height: 2.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 0.95rem;
}

.explore-finder-form select:focus {
    border-color: #0f172a;
    outline: none;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.06);
}

.explore-finder-form .button {
    min-height: 2.9rem;
}

.explore-county-grid,
.explore-position-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0.85rem;
}

.explore-county-card,
.explore-position-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.explore-county-card:hover,
.explore-county-card:focus-visible,
.explore-position-card:hover,
.explore-position-card:focus-visible {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 0.7rem 1.3rem rgba(15, 23, 42, 0.06);
}

.explore-county-card h3,
.explore-position-card h3 {
    margin: 0 0 0.2rem;
    font-size: 1.02rem;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.explore-county-card div>span,
.explore-position-card div>span {
    color: #64748b;
    font-size: 0.85rem;
}

.explore-card-arrow {
    color: #cbd5e1;
    font-size: 1.1rem;
    transition: transform 0.15s ease, color 0.15s ease;
}

.explore-county-card:hover .explore-card-arrow,
.explore-position-card:hover .explore-card-arrow {
    transform: translateX(3px);
    color: #0f766e;
}

@media (max-width: 960px) {
    .explore-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .explore-finder-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .explore-finder-form .button {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .explore-hero-stats {
        width: 100%;
    }

    .explore-stat {
        flex: 1;
        min-width: 0;
    }

    .explore-finder-form {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Candidates page
   ============================================================ */
.candidates-hero {
    background: #ffffff;
    color: #f8fafc;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.candidates-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.4rem 1.25rem 2.1rem;
    display: grid;
    gap: 1.35rem;
}

.candidates-hero-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.candidates-hero-copy {
    max-width: 58ch;
}

.candidates-hero .eyebrow {
    color: #c9a227;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 800;
    display: none;
}

.candidates-hero h1 {
    margin: 0.35rem 0 0.6rem;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 0.95;
    letter-spacing: -0.05em;

}

.candidates-hero-copy p:last-child {
    margin: 0;
    color: rgba(17, 17, 17, 0.85);
    line-height: 1.65;
}

.candidates-hero-stats {
    display: flex;
    gap: 0.75rem;
    flex: none;
}

.candidates-hero-stat {
    display: grid;
    gap: 0.2rem;
    min-width: 7rem;
    padding: 0.9rem 1.1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
}

.candidates-hero-stat strong {
    font-size: 1.8rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.candidates-hero-stat span {
    color: rgba(226, 232, 240, 0.75);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.candidates-hero .candidates-search-form {
    background: rgba(255, 255, 255, 0.96);
}

.candidates-hero .candidates-summary {
    background: rgba(15, 23, 42, 0.22);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(226, 232, 240, 0.9);
}

.candidates-hero .filter-chip {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.candidates-toolbar {
    max-width: 1180px;
    margin: 1.5rem auto 1rem;
    padding: 0 1.25rem;
}

.candidates-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 0.65rem;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.55rem 0.65rem;
    box-shadow: 0 0.8rem 1.6rem rgba(15, 23, 42, 0.05);
}

.candidates-search-form input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: #0f172a;
    padding: 0.5rem 0.75rem;
    min-width: 0;
}

.candidates-search-form .button {
    white-space: nowrap;
}

.candidates-filters-toggle {
    display: inline-flex;
    white-space: nowrap;
}

.candidates-filters-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 26, 21, 0.55);
    z-index: 40;
}

.candidates-filters-overlay[hidden] {
    display: none;
}

body.candidates-filters-open {
    overflow: hidden;
}

.candidates-summary {
    margin-top: 0.9rem;
    padding: 0.9rem 1.1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    color: #475569;
}

.candidates-summary p {
    margin: 0 0 0.55rem;
}

.candidates-summary p:last-child {
    margin-bottom: 0;
}

.candidates-summary .active-filters {
    margin-top: 0.6rem;
}

/* Page shell for the filters button + results. The filters themselves are
   presented as a modal (see .candidates-filters), so this must stay a normal
   flow container: as a 290px card grid it confined .candidates-results — and
   therefore the whole card grid inside it — to a single narrow track. */
.candidates-layout {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem 3rem;
}

.candidates-filters {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 50;
    width: min(520px, calc(100% - 2rem));
    max-height: min(86vh, 760px);
    overflow: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.15rem 1.1rem 1.2rem;
    box-shadow: 0 1.8rem 4rem rgba(15, 23, 42, 0.22);
    transform: translate(-50%, -50%);
    display: none;
}

.candidates-filters.is-open {
    display: block;
}

.candidates-filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.candidates-filters-head-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.candidates-filters-close {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    border-radius: 999px;
    min-height: 2.2rem;
    padding: 0 0.9rem;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.candidates-filters-head h2 {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.candidates-reset {
    color: #0f766e;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.candidates-reset:hover,
.candidates-reset:focus-visible {
    text-decoration: underline;
}

.candidates-filters-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.candidates-filters-form label {
    display: grid;
    gap: 0.35rem;
}

.candidates-filters-form label>span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.candidates-filters-form select {
    width: 100%;
    min-height: 2.7rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.7rem;
    padding: 0.55rem 0.7rem;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 0.95rem;
}

.candidates-filters-form select:focus {
    border-color: #0f172a;
    outline: none;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.06);
}

.candidates-filters-form .candidates-apply {
    width: 100%;
    justify-content: center;
    margin-top: 0.2rem;
    grid-column: 1 / -1;
}

.candidates-results {
    min-width: 0;
}

.candidates-results-head {
    margin-bottom: 0.85rem;
    padding: 0 0.2rem;
}

.candidates-results-head p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
}

.candidates-results .candidate-grid {
    margin: 0;
}

@media (max-width: 900px) {
    .candidates-hero-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .candidates-filters-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .candidates-search-form {
        grid-template-columns: 1fr;
        border-radius: 1.1rem;
    }

    .candidates-search-form .button {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   Following page
   ============================================================ */
.following-body {
    max-width: 1180px;
    margin: 1.5rem auto 0;
    padding: 0 1.25rem 3rem;
}

.following-head {
    margin-bottom: 0.85rem;
}

.following-head p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
}

.following-hidden-note {
    margin-top: 0.35rem !important;
    color: #64748b !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
}

.following-empty {
    max-width: 560px;
    margin: 0 auto;
    padding: 2.5rem 1.75rem;
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 1.25rem;
    text-align: center;
}

.following-empty h2 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.following-empty p {
    margin: 0 0 1.25rem;
    color: #475569;
    line-height: 1.6;
}

/* ============================================================
   Home page
   ============================================================ */
.home-hero {
    position: relative;
    background: #ffffff;
    color: #0f172a;
    border-bottom: 1px solid #eef2f7;
}

.home-hero-glows {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.home-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.14;
    pointer-events: none;
}

.home-hero-glow-a {
    width: 34rem;
    height: 34rem;
    top: -13rem;
    right: -9rem;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.5), transparent 70%);
}

.home-hero-glow-b {
    width: 28rem;
    height: 28rem;
    bottom: -13rem;
    left: -9rem;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.35), transparent 70%);
}

.home-hero-inner {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1.25rem 3.25rem;
    text-align: center;
}

.home-hero .eyebrow {
    color: #64748b;
}

.home-hero h1 {
    margin: 0.5rem 0 0.75rem;
    font-size: clamp(2.6rem, 6vw, 4.25rem);
    line-height: 1;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.home-hero-sub {
    max-width: 56ch;
    margin: 0 auto 1.6rem;
    color: #475569;
    font-size: 1.12rem;
    line-height: 1.65;
}

.home-hero-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: center;
    max-width: 640px;
    margin: 0 auto 1.1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.5rem 0.6rem;
    box-shadow: 0 0.7rem 1.6rem rgba(15, 23, 42, 0.08);
    position: relative;
}

.home-hero-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: #0f172a;
    padding: 0.55rem 0.75rem;
    min-width: 0;
}

/* ---------- Live search dropdown ---------- */
.live-search-dropdown {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    z-index: 60;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 1.4rem 3rem rgba(15, 23, 42, 0.16);
    max-height: 26rem;
    overflow-y: auto;
    padding: 0.5rem;
    text-align: left;
}

.live-search-group+.live-search-group {
    margin-top: 0.25rem;
}

.live-search-group-label {
    margin: 0.5rem 0.35rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.live-search-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0.6rem;
    border-radius: 0.6rem;
    text-decoration: none;
    color: #0f172a;
}

.live-search-item:hover,
.live-search-item.is-highlighted {
    background: #f1f5f9;
}

.live-search-item-icon {
    flex: none;
    width: 1.9rem;
    height: 1.9rem;
    display: grid;
    place-items: center;
    background: #f1f5f9;
    border-radius: 0.5rem;
    font-size: 0.95rem;
}

.live-search-item-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.live-search-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-search-item-subtitle {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-search-badge {
    flex: none;
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 600;
    color: #0f766e;
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    white-space: nowrap;
}

.live-search-all {
    display: block;
    padding: 0.6rem 0.7rem;
    margin-top: 0.35rem;
    border-top: 1px solid #eef2f7;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f766e;
    text-decoration: none;
}

.live-search-all:hover {
    color: #0b5c55;
    text-decoration: underline;
}

.live-search-empty {
    margin: 0;
    padding: 0.75rem 0.7rem;
    color: #64748b;
    font-size: 0.9rem;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
}

.home-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    max-width: 760px;
    margin: 2.25rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #eef2f7;
}

.home-hero-stat {
    display: grid;
    gap: 0.25rem;
    text-align: center;
}

.home-hero-stat strong {
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #0f172a;
}

.home-hero-stat span {
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.25rem 1.25rem 0;
}

.home-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.home-section-head .eyebrow {
    color: #64748b;
}

.home-section-head h2 {
    margin: 0.25rem 0 0;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.home-section-link {
    color: #0f766e;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    white-space: nowrap;
}

.home-section-link:hover,
.home-section-link:focus-visible {
    text-decoration: underline;
}

.home-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.home-step {
    position: relative;
    padding: 1.2rem 1.15rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.1rem;
    box-shadow: 0 0.7rem 1.4rem rgba(15, 23, 42, 0.04);
}

.home-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    margin-bottom: 0.75rem;
    border-radius: 999px;
    background: linear-gradient(145deg, #0f172a, #0f766e);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
}

.home-step h3 {
    margin: 0 0 0.3rem;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.home-step p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
    font-size: 0.94rem;
}

.home-cta {
    max-width: 1180px;
    margin: 2.5rem auto 0;
    padding: 0 1.25rem 3rem;
}

.home-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 118, 110, 0.92));
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 1.5rem;
    color: #f8fafc;
}

.home-cta-inner .eyebrow,
.home-cta-inner p {
    color: rgba(248, 250, 252, 0.85);
}

.home-cta-inner h2 {
    margin: 0.25rem 0 0.35rem;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    color: #fff;
}

.home-cta-inner p {
    margin: 0;
    line-height: 1.6;
}

.home-cta-inner .button {
    flex: none;
    background: #fff;
    color: #0f172a;
}

@media (max-width: 900px) {
    .home-steps {
        grid-template-columns: 1fr;
    }

    .home-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .home-hero-search {
        grid-template-columns: 1fr;
        border-radius: 1.1rem;
    }

    .home-hero-search .button {
        width: 100%;
        justify-content: center;
    }

    .home-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

/* ============================================================
   Share buttons & dashboard campaign toolkit
   ============================================================ */
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

.share-buttons-label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-right: 0.25rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.share-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.share-btn.is-copied {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.share-btn-whatsapp:hover {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #15803d;
}

.share-btn-x:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.share-btn-facebook:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.share-btn-linkedin:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #0e7490;
}

.share-btn-copy:hover {
    background: #fefce8;
    border-color: #fde68a;
    color: #a16207;
}

.ms-share {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eef2f7;
}

.candidate-profile-share {
    margin-top: 1rem;
}

.dash-journey {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dash-journey li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.dash-journey-num {
    flex: none;
    width: 1.6rem;
    height: 1.6rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.dash-journey li.is-done .dash-journey-num {
    background: #ecfdf5;
    color: #15803d;
}

.dash-journey li.is-current .dash-journey-num {
    background: #0f766e;
    color: #fff;
}

.dash-journey li div strong {
    display: block;
    font-size: 0.92rem;
    color: #0f172a;
}

.dash-journey li div p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}

.dash-tool {
    padding-top: 0.9rem;
    margin-top: 0.9rem;
    border-top: 1px solid #eef2f7;
}

.dash-tool-label {
    margin: 0 0 0.5rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.dash-tool-empty {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    color: #64748b;
}

/* ============================================================
   Candidate profile — responsive
   ============================================================ */
@media (max-width: 640px) {
    .candidate-profile-header {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 0.9rem;
        padding: 1.1rem 1rem;
    }

    .candidate-profile-photo {
        width: 84px;
        height: 84px;
    }

    .candidate-profile-main {
        width: 100%;
    }

    .candidate-profile-meta-item {
        white-space: normal;
    }

    .candidate-profile-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .profile-stat {
        padding: 0.85rem 0.9rem;
    }

    .candidate-profile-actions {
        gap: 0.45rem;
    }

    .candidate-profile-actions .button {
        flex: 1 1 auto;
        justify-content: center;
    }

    .candidate-profile-actions .inline-form {
        flex: 1 1 auto;
    }

    .candidate-profile-actions .inline-form .button {
        width: 100%;
    }

    .candidate-manifesto-grid {
        grid-template-columns: 1fr;
    }

    .candidate-panel {
        padding: 1.1rem;
    }
}

/* ============================================================
   Candidate Onboarding System (Master Spec & 7 Steps)
   ============================================================ */

.onboarding-page {
    min-height: calc(100vh - 70px);
    padding: 2rem 1.25rem 5rem;
}

.onboarding-container {
    max-width: 820px;
    margin: 0 auto;
}

/* Onboarding Header & Progress Bar */
.onboarding-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.25rem 1.25rem;
    flex-wrap: wrap;
}

.onboarding-header-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.onboarding-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #0f172a;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.onboarding-brand-logo {
    display: block;
    height: 30px;
    width: auto;
}

.onboarding-brand .brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, #0f172a 0%, #0f766e 100%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 900;
}

.onboarding-step-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.onboarding-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.autosave-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
}

.autosave-status .save-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #10b981;
}

.onboarding-save-exit {
    color: #64748b;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
}

.onboarding-save-exit:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.05);
}

/* Segmented progress: one mark per step. A single bar could only say how far along
   you were, never how many steps there were - and at step five it looked identical to
   step four. */
.onboarding-progress-steps {
    display: flex;
    gap: 6px;
    width: 100%;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.onboarding-progress-step {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    transition: background 0.25s ease, transform 0.25s ease;
}

.onboarding-progress-step.is-done {
    background: #0f172a;
}

.onboarding-progress-step.is-current {
    background: linear-gradient(90deg, #0f172a 0%, #1f2937 100%);
    transform: scaleY(1.6);
}

@media (prefers-reduced-motion: reduce) {
    .onboarding-progress-step,
    .onboarding-progress-step.is-current {
        transition: none;
        transform: none;
    }
}

/* Welcome Card (Step 1) */
.onboarding-welcome-card {
    background: #ffffff;
    padding: 3.5rem 2.5rem;
    text-align: center;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f766e;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.welcome-badge .brand-mark-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 0.4rem;
    background: #0f172a;
    color: #fff;
    font-weight: 900;
    font-size: 0.85rem;
}

.welcome-heading {
    margin: 0 auto 1.1rem;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #0f172a;
    max-width: 18ch;
}

.welcome-lead {
    margin: 0 auto 2.5rem;
    max-width: 36rem;
    color: #475569;
    font-size: 1.12rem;
    line-height: 1.65;
}

.welcome-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.75rem;
    text-align: left;
}

.pillar-card {
    padding: 1.5rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
}

.pillar-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.75rem;
}

.pillar-card h3 {
    margin: 0 0 0.4rem;
    color: #0f172a;
    font-size: 1.05rem;
}

.pillar-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.5;
}

.welcome-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.welcome-reassurance {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 500;
}

/* The step content sits on the page rather than in a floating panel: the white card,
   its border, its shadow and its rounding all framed content that did not need a
   frame, and pushed the questions a screen-width inward. */
.onboarding-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

@media (max-width: 640px) {
    .onboarding-welcome-card {
        border: none;
        box-shadow: none;
        border-radius: 1rem;
        padding: 1.25rem 0.9rem;
    }
}

.step-intro {
    margin-bottom: 2rem;
}

.step-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.85rem, 3.5vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.step-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 1.02rem;
    line-height: 1.55;
    max-width: 44ch;
}

/* Forms */
.onboarding-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: grid;
    gap: 0.45rem;
}

.form-group label,
.section-label {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    font-size: 0.98rem;
    color: #0f172a;
    background: #fff;
    font-family: inherit;
    outline: none;
    transition: all 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.form-row {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.form-row>.form-group {
    flex: 1 1 240px;
}

.form-row>.flex-2 {
    flex: 2 1 320px;
}

.form-row>.flex-1 {
    flex: 1 1 200px;
}

.hidden-field {
    display: none !important;
}

.required {
    color: #ef4444;
}

.optional-tag {
    font-weight: 500;
    font-size: 0.75rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.logged-in-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 0 1rem;
    border-radius: 0;
    background: none;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.user-avatar-initial {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    flex: none;
}

.logged-in-notice p {
    margin: 0;
    color: #0f172a;
    font-size: 0.95rem;
}

.form-checkbox-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #334155;
    font-weight: 500;
    line-height: 1.45;
}

.checkbox-label input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    accent-color: #0f766e;
    cursor: pointer;
}

/* Position Cards Grid (Step 3) */
.position-cards-container {
    display: grid;
    gap: 0.85rem;
}

.position-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

.position-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1.1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 1.1rem;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.15s ease;
}

.position-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.position-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-2px);
}

.position-card.is-selected {
    border-color: #0f172a;
    background: #f8fafc;
    box-shadow: 0 0 0 2px #0f172a, 0 0.5rem 1rem rgba(15, 23, 42, 0.08);
}

.position-card-level {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 0.55rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.position-card-title {
    color: #0f172a;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.position-card-desc {
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.4;
}

/* Geographic Area Card */
/* Flat like the rest of the step: a rule and space instead of a panel. */
.geographic-area-card {
    margin-top: 1.75rem;
    padding: 1.5rem 0 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
    border-radius: 0;
    background: none;
}

.subsection-title {
    margin: 0 0 0.4rem;
    color: #0f172a;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.geo-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* Party Choice Toggle */
.party-choice-section {
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: #ffffff;
}

.party-toggle-pills {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.toggle-pill {
    flex: 1 1 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.95rem;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.95rem;
    color: #475569;
    background: #f8fafc;
    transition: all 0.15s ease;
    min-height: 64px;
    text-align: left;
}

.toggle-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.toggle-pill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 0.6rem;
    background: #e2e8f0;
    color: #334155;
    transition: all 0.15s ease;
}

.toggle-pill-icon svg {
    width: 19px;
    height: 19px;
}

.toggle-pill-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.25;
}

.toggle-pill-text strong {
    font-size: 0.95rem;
}

.toggle-pill-text small {
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.01em;
}

.toggle-pill.is-active {
    border-color: #0f172a;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.12);
}

.toggle-pill.is-active .toggle-pill-icon {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.toggle-pill.is-active .toggle-pill-text small {
    color: rgba(255, 255, 255, 0.72);
}

.toggle-pill:hover {
    border-color: #94a3b8;
    transform: translateY(-1px);
    box-shadow: 0 0.65rem 1.25rem rgba(15, 23, 42, 0.08);
}

.toggle-pill.is-active:hover {
    border-color: #0f172a;
    transform: translateY(-1px);
}

.toggle-pill:focus-within {
    outline: 3px solid rgba(15, 23, 42, 0.18);
    outline-offset: 2px;
}

/* ---------------------------------------------------------------
   Party picker (shared component: onboarding step 3 + dashboard)
   --------------------------------------------------------------- */
.party-picker-panel[hidden],
.party-picker-independent[hidden] {
    display: none;
}

.party-picker-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.party-picker-search {
    position: relative;
    flex: 1 1 260px;
}

.party-picker-search-icon {
    position: absolute;
    top: 50%;
    left: 0.85rem;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.party-picker-search input[type="search"] {
    width: 100%;
    padding: 0.7rem 0.9rem 0.7rem 2.5rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.8rem;
    background: #f8fafc;
    font-size: 0.92rem;
    font-weight: 600;
    color: #0f172a;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.party-picker-search input[type="search"]:focus {
    outline: none;
    border-color: #0f172a;
    background: #ffffff;
}

.party-picker-results {
    margin-top: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 0.6rem 1.4rem rgba(15, 23, 42, 0.06);
}

.party-result {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease;
}

.party-result:last-child {
    border-bottom: 0;
}

.party-result:hover,
.party-result:focus-visible {
    background: #f8fafc;
    outline: none;
}

.party-result-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: contain;
    background: #f1f5f9;
    flex: none;
}

.party-result-name {
    flex: 1;
    min-width: 0;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 700;
}

.party-result-abbr {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex: none;
}

.party-selected {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.75rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid #0f172a;
    border-radius: 0.9rem;
    background: #f8fafc;
}

.party-selected-logo img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: contain;
    background: #ffffff;
    display: block;
}

.party-selected-name {
    flex: 1;
    min-width: 0;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 800;
}

.party-selected-change {
    border: 0;
    background: none;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}


.party-picker-independent {
    padding: 1rem 1.25rem;
    border-radius: 0.85rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.92rem;
    line-height: 1.55;
}

.party-picker-independent p {
    margin: 0;
}

.priority-summary-card {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.85rem;
    padding: 0;
    margin-bottom: 1.25rem;
    border: 0;
    border-radius: 0;
    background: none;
    color: #0f172a;
}

.priority-summary-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.45;
}

.priority-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #eef2f0;
    border: 0;
    color: #0f172a;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.priority-tools {
    margin-bottom: 1rem;
}

.priority-search {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.9rem;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.priority-search:focus {
    outline: none;
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

/* Search-first picker: results appear under the field as they are typed, and chosen
   issues become removable chips. */
.priority-picker {
    position: relative;
    margin-bottom: 1rem;
}

.priority-results {
    margin-top: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 0.6rem 1.4rem rgba(15, 23, 42, 0.06);
}

.priority-result {
    display: block;
    width: 100%;
    padding: 0.7rem 0.95rem;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    background: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease;
}

.priority-result:last-child {
    border-bottom: 0;
}

.priority-result:hover,
.priority-result:focus-visible {
    background: #f8fafc;
    outline: none;
}

.priority-result-name {
    display: block;
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 800;
}

.priority-result-description {
    display: block;
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.4;
}

.priority-empty {
    margin: 0.6rem 0 0;
    color: #64748b;
    font-size: 0.82rem;
}

.priority-chip-remove {
    display: inline-grid;
    place-items: center;
    width: 1.1rem;
    height: 1.1rem;
    margin-left: 0.15rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
}

.priority-chip-remove:hover {
    background: rgba(255, 255, 255, 0.3);
}

.selected-priorities-box {
    margin-top: 1.5rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
}

.selected-priorities-box h3 {
    margin: 0;
    color: #0f172a;
    font-size: 0.98rem;
    font-weight: 800;
}

.selected-priority-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.selected-priority-tags span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
}

.custom-priority-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

/* The label and its button stop sharing a line once the button would wrap onto two. */
@media (max-width: 640px) {
    .custom-priority-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .custom-priority-header .button {
        white-space: nowrap;
    }
}

.custom-priority-header label {
    margin: 0;
    font-weight: 700;
    color: #0f172a;
}

.custom-priority-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.custom-priority-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.custom-priority-row input {
    flex: 1;
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.9rem;
    background: #ffffff;
    color: #0f172a;
}

.custom-priority-row input:focus {
    outline: none;
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.remove-custom-priority-btn {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.7rem;
    background: #ffffff;
    color: #475569;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

/* ------------------------------------------------------------------
   Guided priority writer (/candidate/{slug}/manifesto/write)
   ------------------------------------------------------------------ */
.mpw-page {
    min-height: 100vh;
    background: #f8fafc;
    color: #0f172a;
}

.mpw-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
}

.mpw-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 960px;
    margin: 0 auto;
    padding: 0.7rem 1.25rem;
}

.mpw-topbar-left,
.mpw-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.mpw-brand {
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #020617;
    text-decoration: none;
}

.mpw-divider {
    width: 1px;
    height: 18px;
    background: #cbd5e1;
}

.mpw-context {
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mpw-linkbtn {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    padding: 0.4rem 0.7rem;
}

.mpw-linkbtn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.mpw-saved {
    font-size: 0.76rem;
    font-weight: 700;
    color: #16a34a;
}

.mpw-saved.is-dirty {
    color: #b45309;
}

.mpw-shell {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

.mpw-intro h1 {
    margin: 0.35rem 0 0.6rem;
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.mpw-eyebrow {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #16a34a;
}

.mpw-lede {
    margin: 0;
    max-width: 62ch;
    color: #475569;
    line-height: 1.6;
}

.mpw-progress {
    margin-top: 1.5rem;
    padding: 1rem 1.15rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #ffffff;
}

.mpw-progress-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}

.mpw-progress-head strong {
    font-size: 0.95rem;
}

.mpw-progress-percent {
    font-size: 0.82rem;
    font-weight: 800;
    color: #64748b;
}

.mpw-progress-track {
    height: 8px;
    margin: 0.6rem 0 0.55rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.mpw-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #16a34a, #0f172a);
    transition: width 0.25s ease;
}

.mpw-progress-note {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}

.mpw-alert {
    margin-top: 1.25rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid #fecaca;
    border-radius: 0.85rem;
    background: #fef2f2;
    color: #991b1b;
}

.mpw-alert ul {
    margin: 0;
    padding-left: 1.1rem;
}

.mpw-empty {
    margin-top: 1.5rem;
    padding: 2.5rem 1.75rem;
    border: 1px dashed #cbd5e1;
    border-radius: 1.25rem;
    background: #ffffff;
    text-align: center;
}

.mpw-empty h2 {
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.mpw-empty p {
    margin: 0 auto 1.25rem;
    max-width: 52ch;
    color: #475569;
    line-height: 1.6;
}

.mpw-empty-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mpw-stepper {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    background: #ffffff;
}

.mpw-page.is-stepping .mpw-stepper {
    display: flex;
}

.mpw-step-position {
    font-size: 0.82rem;
    font-weight: 800;
    color: #475569;
}

.mpw-cards {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.mpw-card {
    padding: 1.35rem;
    border: 1px solid #e2e8f0;
    border-radius: 1.15rem;
    background: #ffffff;
}

.mpw-card.is-written {
    border-color: #bbf7d0;
}

/* Stepping hides every card but the active one. Without JS the page has no
   .is-stepping class, so every card simply stacks and stays usable. */
.mpw-page.is-stepping .mpw-card {
    display: none;
}

.mpw-page.is-stepping .mpw-card.is-active {
    display: block;
}

.mpw-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
}

.mpw-card-num {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 0.6rem;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
}

.mpw-card-title h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.mpw-card-icon {
    font-size: 1.05rem;
}

.mpw-card-status {
    display: inline-block;
    margin-top: 0.2rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.mpw-card.is-written .mpw-card-status {
    color: #16a34a;
}

.mpw-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.mpw-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mpw-field label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    cursor: pointer;
}

.mpw-field-label {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
}

.mpw-field-hint {
    font-size: 0.78rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.45;
}

.mpw-field textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #0f172a;
    resize: vertical;
}

.mpw-field textarea:focus {
    outline: none;
    border-color: #16a34a;
    background: #ffffff;
}

.mpw-add {
    margin-top: 1.5rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #ffffff;
}

.mpw-add label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 800;
}

.mpw-add-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.mpw-add-row select {
    flex: 1 1 240px;
    padding: 0.65rem 0.75rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.7rem;
    background: #f8fafc;
    font-size: 0.88rem;
    font-weight: 600;
}

.mpw-add-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: #64748b;
}

.mpw-summary-field {
    margin-top: 1.25rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #ffffff;
}

.mpw-summary-field summary {
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 800;
}

.mpw-optional {
    margin-left: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.mpw-summary-field textarea {
    width: 100%;
    margin-top: 0.7rem;
    padding: 0.7rem 0.8rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
}

.mpw-actions {
    display: flex;
    gap: 0.7rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.mpw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.15rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #ffffff;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.mpw-btn:hover:not(:disabled) {
    border-color: #94a3b8;
    background: #f8fafc;
}

.mpw-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.mpw-btn-primary {
    border-color: #0f172a;
    background: #0f172a;
    color: #ffffff;
}

.mpw-btn-primary:hover:not(:disabled) {
    border-color: #0f172a;
    background: #1e293b;
}

.mpw-step-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
}

.mpw-actions-note {
    margin: 0.75rem 0 0;
    text-align: right;
    font-size: 0.78rem;
    color: #64748b;
}

@media (max-width: 760px) {
    .mpw-fields {
        grid-template-columns: 1fr;
    }

    .mpw-actions {
        justify-content: stretch;
    }

    .mpw-actions .mpw-btn {
        flex: 1 1 100%;
    }

    .mpw-actions-note {
        text-align: left;
    }
}

/* Entry point to the guided writer, shown inside the free-form editor. */
.manifesto-guided-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0 auto 1rem;
    padding: 0.95rem 1.15rem;
    max-width: 1100px;
    border: 1px solid #bbf7d0;
    border-radius: 1rem;
    background: #f0fdf4;
}

.manifesto-guided-copy {
    min-width: 0;
}

.manifesto-guided-eyebrow {
    margin: 0 0 0.15rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #15803d;
}

.manifesto-guided-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #166534;
}

.manifesto-guided-cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1rem;
    border-radius: 0.75rem;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.manifesto-guided-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.6rem 1.2rem rgba(15, 23, 42, 0.16);
}

@media (max-width: 640px) {
    .manifesto-guided-cta {
        flex: 1 1 100%;
        justify-content: center;
    }
}

.compact-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

@media (max-width: 640px) {
    .party-toggle-pills {
        flex-direction: column;
    }

    .toggle-pill {
        width: 100%;
        flex-basis: 100%;
        justify-content: center;
    }

    .priority-grid {
        grid-template-columns: 1fr;
    }

    .priority-card {
        min-height: auto;
    }
}

/* Step 4: Photo & Profile Details */
.photo-upload-section {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding: 1.5rem;
    border: 1px dashed #cbd5e1;
    border-radius: 1.25rem;
    background: #f8fafc;
}

.photo-preview-wrap {
    flex: none;
}

.candidate-avatar-preview {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.1);
}

.avatar-placeholder {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f172a 0%, #0f766e 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.1);
}

.photo-action-copy h3 {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
    color: #0f172a;
}

.photo-action-copy p {
    margin: 0 0 0.85rem;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.45;
}

.photo-buttons {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.skip-photo-text {
    font-size: 0.82rem;
    color: #94a3b8;
}

.label-with-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.char-counter {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
}

.social-details-accordion {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 0.9rem 1.1rem;
    background: #ffffff;
}

.social-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 700;
    color: #0f172a;
    font-size: 0.92rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.profile-meter-card {
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
}

.meter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.65rem;
}

.meter-note {
    font-weight: 500;
    color: #64748b;
    font-size: 0.8rem;
}

.meter-bar-track {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.meter-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0f172a 0%, #334155 100%);
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* Step 5: Manifesto Decision */
.manifesto-reassurance-banner {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1.15rem 1.35rem;
    border-radius: 1.1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.manifesto-reassurance-banner .reassurance-icon {
    font-size: 1.35rem;
    flex: none;
}

.manifesto-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.manifesto-choice-card {
    display: flex;
    flex-direction: column;
    padding: 2.25rem 2rem;
    border: 2px solid #e2e8f0;
    border-radius: 1.4rem;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
}

.manifesto-choice-card:hover {
    border-color: #0f766e;
    transform: translateY(-3px);
    box-shadow: 0 1.25rem 2.25rem rgba(15, 23, 42, 0.08);
}

.choice-icon {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.manifesto-choice-card h2 {
    margin: 0 0 0.65rem;
    font-size: 1.35rem;
    color: #0f172a;
}

.manifesto-choice-card p {
    margin: 0 0 1.5rem;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.55;
    flex: 1;
}

.choice-btn {
    width: 100%;
}

.upload-drop-zone {
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    border: 1.5px dashed #cbd5e1;
    border-radius: 0.85rem;
    background: #f8fafc;
}

.upload-drop-zone input {
    width: 100%;
}

.drop-hint {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.78rem;
    color: #94a3b8;
}

/* Step 6: Piece-by-Piece Manifesto Builder */
.step-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.autosave-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: #f0fdf4;
    color: #166534;
    font-size: 0.75rem;
    font-weight: 700;
}

.manifesto-meta-box {
    padding: 1.25rem 1.4rem;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: #f8fafc;
}

.pieces-manager-section {
    display: grid;
    gap: 1.25rem;
}

.pieces-manager-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.pieces-count-badge {
    display: inline-block;
    color: #0f766e;
    font-weight: 700;
    font-size: 0.85rem;
}

.submitted-pieces-list {
    display: grid;
    gap: 0.95rem;
}

.pieces-empty-state {
    padding: 3rem 1.5rem;
    border: 2px dashed #cbd5e1;
    border-radius: 1.25rem;
    text-align: center;
    background: #ffffff;
}

.pieces-empty-state .empty-icon {
    font-size: 2.6rem;
    display: block;
    margin-bottom: 0.75rem;
}

.pieces-empty-state h4 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    color: #0f172a;
}

.pieces-empty-state p {
    margin: 0 auto 1.25rem;
    max-width: 32rem;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.55;
}

.piece-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.2rem 1.35rem;
    border: 1px solid #e2e8f0;
    border-radius: 1.15rem;
    background: #ffffff;
    box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.03);
    transition: all 0.15s ease;
}

.piece-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.06);
}

.piece-card-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.piece-icon {
    font-size: 1.85rem;
    flex: none;
}

.piece-copy {
    min-width: 0;
}

.piece-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f766e;
    margin-bottom: 0.2rem;
}

.piece-copy h4 {
    margin: 0 0 0.25rem;
    color: #0f172a;
    font-size: 1.05rem;
}

.piece-copy p {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.45;
}

.piece-actions {
    display: flex;
    gap: 0.45rem;
    flex: none;
}

/* Modal Overlay for Priority Piece Single Editor */
.piece-editor-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.piece-editor-dialog {
    background: #ffffff;
    border-radius: 1.5rem;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2rem 4rem rgba(15, 23, 42, 0.25);
    overflow: hidden;
    animation: modalIn 0.2s ease-out;
}

.piece-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    background: #0f172a;
    color: #ffffff;
    flex: none;
}

.editor-header-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #86efac;
}

.piece-editor-header h3 {
    margin: 0.15rem 0 0;
    font-size: 1.25rem;
    color: #ffffff;
}

.piece-editor-close {
    appearance: none;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.piece-editor-form {
    padding: 1.5rem 1.75rem;
    overflow-y: auto;
    display: grid;
    gap: 1.25rem;
}

.topic-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.55rem;
    max-height: 160px;
    overflow-y: auto;
    padding: 0.4rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: #f8fafc;
}

.modal-topic-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.5rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #ffffff;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}

.modal-topic-card:hover {
    border-color: #0f172a;
}

.modal-topic-card.is-selected {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.m-topic-icon {
    font-size: 1.35rem;
    margin-bottom: 0.2rem;
}

.m-topic-title {
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
}

.modal-topic-card.is-selected .m-topic-title {
    color: #ffffff;
}

.piece-editor-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

/* Voter Preview Mockup & Checklist */
.voter-preview-box {
    border: 1.5px solid #0f172a;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.08);
    margin-bottom: 2rem;
}

.preview-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1.25rem;
    background: #0f172a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.preview-badge {
    background: #10b981;
    color: #03120d;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-weight: 900;
}

.preview-candidate-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.preview-avatar {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.6rem;
    overflow: hidden;
    flex: none;
}

.preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-info h2 {
    margin: 0 0 0.25rem;
    font-size: 1.4rem;
    color: #0f172a;
}

.preview-office {
    margin: 0;
    color: #0f766e;
    font-weight: 700;
    font-size: 0.95rem;
}

.preview-slogan {
    margin: 0.35rem 0 0;
    font-style: italic;
    color: #64748b;
    font-size: 0.88rem;
}

.preview-manifesto-body {
    padding: 1.75rem;
}

.preview-manifesto-title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    color: #0f172a;
}

.preview-manifesto-sub {
    margin: 0 0 1.5rem;
    color: #64748b;
    font-size: 0.95rem;
}

.preview-sections-list {
    display: grid;
    gap: 1.25rem;
}

.preview-section-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    background: #f8fafc;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
}

.preview-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #0f172a;
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    flex: none;
}

.preview-sec-content h4 {
    margin: 0 0 0.35rem;
    color: #0f172a;
    font-size: 1.05rem;
}

.preview-sec-content p {
    margin: 0;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.55;
}

.preview-outcome-tag {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f766e;
    background: #f0fdf4;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.publication-checklist-card {
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: #f8fafc;
    margin-bottom: 2rem;
}

.publication-checklist-card h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: #0f172a;
}

.checklist-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.checklist-items li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    font-weight: 900;
    font-size: 0.85rem;
    flex: none;
}

.checklist-items li strong {
    display: block;
    color: #0f172a;
    font-size: 0.88rem;
}

.checklist-items li span {
    color: #64748b;
    font-size: 0.8rem;
}

.onboarding-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.onboarding-actions>* {
    flex: 1 1 0;
}

.onboarding-actions .button,
.onboarding-actions a {
    width: auto;
    min-width: 0;
    justify-content: center;
    text-align: center;
}

@media (max-width: 640px) {
    .onboarding-actions {
        flex-direction: row;
        align-items: stretch;
    }

    .onboarding-actions .button,
    .onboarding-actions a {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .welcome-pillars {
        grid-template-columns: 1fr;
    }

    .step-badge-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.publish-btn {
    font-size: 1.1rem !important;
    padding: 0.95rem 2rem !important;
}

/* ============================================================
   Step 7: Published Celebration & Digital Campaign Kit
   ============================================================ */

.published-celebration-page {
    min-height: calc(100vh - 70px);
    background: #f8fafc;
    padding: 3rem 1.25rem 6rem;
}

.published-container {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.celebration-hero {
    text-align: center;
}

.celebration-emoji {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-weight: 800;
    font-size: 0.82rem;
    margin-bottom: 1rem;
}

.celebration-hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    letter-spacing: -0.04em;
    color: #0f172a;
}

.celebration-subtitle {
    margin: 0 auto;
    max-width: 36rem;
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.6;
}

.published-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 1.25rem;
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.05);
    flex-wrap: wrap;
}

.link-info {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.link-label {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.link-url {
    color: #0f766e;
    font-weight: 800;
    font-size: 1.15rem;
    word-break: break-all;
}

.copy-btn {
    white-space: nowrap;
}

.copy-btn.is-copied {
    background: #10b981 !important;
}

.instant-share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.share-channel-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 1.25rem;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.share-channel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.12);
}

.share-whatsapp {
    background: #25d366;
    color: #042f13;
}

.share-x {
    background: #000000;
    color: #ffffff;
}

.share-facebook {
    background: #1877f2;
    color: #ffffff;
}

.channel-icon {
    font-size: 2rem;
    flex: none;
}

.share-channel-btn strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.share-channel-btn span {
    font-size: 0.82rem;
    opacity: 0.9;
    line-height: 1.35;
    display: block;
}

/* Campaign Kit Poster */
.campaign-kit-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.75rem;
    padding: 2.25rem;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.05);
}

.campaign-kit-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.kit-badge {
    display: inline-block;
    color: #0f766e;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.campaign-kit-header h2 {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
    color: #0f172a;
}

.campaign-kit-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}

.kit-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.campaign-poster-wrapper {
    display: flex;
    justify-content: center;
}

.campaign-poster-card {
    width: 100%;
    max-width: 520px;
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 45%, #0f766e 100%);
    color: #ffffff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.25);
}

.poster-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #a7f3d0;
    margin-bottom: 1.5rem;
}

.poster-main {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.poster-avatar-box {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #334155;
    border: 3px solid rgba(255, 255, 255, 0.2);
    flex: none;
}

.poster-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    background: #0f172a;
}

.poster-name {
    margin: 0 0 0.35rem;
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #fff;
}

.poster-office {
    margin: 0;
    color: #86efac;
    font-weight: 700;
    font-size: 0.95rem;
}

.poster-area {
    margin: 0.15rem 0 0;
    color: #cbd5e1;
    font-size: 0.88rem;
}

.poster-slogan {
    margin: 0.5rem 0 0;
    font-style: italic;
    color: #e2e8f0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.poster-qr-footer {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.poster-qr-box {
    width: 5.5rem;
    height: 5.5rem;
    background: #ffffff;
    border-radius: 0.85rem;
    padding: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.poster-qr-box svg {
    width: 100%;
    height: 100%;
}

.poster-qr-callout strong {
    display: block;
    font-size: 0.98rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.poster-qr-callout span {
    font-size: 0.82rem;
    color: #cbd5e1;
    word-break: break-all;
}

/* Dashboard Launchpad Card */
.dashboard-launchpad-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.75rem;
    padding: 2.25rem;
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.05);
}

.launchpad-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.launchpad-header h2 {
    margin: 0;
    font-size: 1.45rem;
    color: #0f172a;
}

.stats-counter-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-pill {
    padding: 1.2rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.1rem;
    text-align: center;
}

.stat-pill .stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.stat-pill .stat-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.next-step-box {
    padding: 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1.1rem;
}

.next-step-icon {
    font-size: 1.75rem;
    display: block;
    margin-bottom: 0.5rem;
}

.next-step-box h4 {
    margin: 0 0 0.35rem;
    color: #0f172a;
    font-size: 1.05rem;
}

.next-step-box p {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.5;
}

.launchpad-footer {
    display: flex;
    justify-content: flex-end;
}

/* AI Assistant Modal Dialog */
.ai-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.ai-modal-dialog {
    background: #ffffff;
    border-radius: 1.5rem;
    max-width: 560px;
    width: 100%;
    box-shadow: 0 2rem 4rem rgba(15, 23, 42, 0.25);
    overflow: hidden;
    animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ai-modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: #0f172a;
    color: #ffffff;
}

.ai-sparkle {
    font-size: 1.35rem;
}

.ai-modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    flex: 1;
}

.ai-modal-close {
    appearance: none;
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

.ai-modal-body {
    padding: 1.5rem;
    display: grid;
    gap: 1.25rem;
    max-height: 70vh;
    overflow-y: auto;
}

.ai-modal-intro {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ai-questions-box {
    padding: 1.1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
}

.ai-questions-box h4 {
    margin: 0 0 0.5rem;
    font-size: 0.86rem;
    color: #0f172a;
}

.ai-questions-box ul {
    margin: 0;
    padding-left: 1.25rem;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.5;
}

.ai-suggestion-box {
    padding: 1.1rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 1rem;
}

.ai-suggestion-box h4 {
    margin: 0 0 0.5rem;
    font-size: 0.86rem;
    color: #166534;
}

.ai-suggestion-text {
    color: #0f172a;
    font-size: 0.92rem;
    line-height: 1.6;
    white-space: pre-line;
}

.ai-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .welcome-pillars,
    .stats-counter-row {
        grid-template-columns: 1fr;
    }

    .onboarding-welcome-card,
    .onboarding-card,
    .campaign-kit-section,
    .dashboard-launchpad-card {
        padding: 1.75rem 1.25rem;
        border-radius: 1.25rem;
    }

    .photo-upload-section {
        flex-direction: column;
        text-align: center;
    }

    .photo-buttons {
        justify-content: center;
    }

    .campaign-poster-card {
        padding: 1.5rem;
    }

    .poster-main {
        flex-direction: column;
        text-align: center;
    }

    .poster-qr-footer {
        flex-direction: column;
        text-align: center;
    }
}

@media print {
    body {
        background: #fff !important;
    }

    body * {
        visibility: hidden !important;
    }

    #campaign-poster,
    #campaign-poster * {
        visibility: visible !important;
    }

    #campaign-poster {
        position: absolute !important;
        left: 50% !important;
        top: 2rem !important;
        transform: translateX(-50%) !important;
        width: 100% !important;
        max-width: 600px !important;
        box-shadow: none !important;
        border: 2px solid #0f172a !important;
    }
}

/* ============================================================
   Candidate dashboard workspace (app shell + sidebar)
   ============================================================ */
.candidate-dashboard-page {
    display: grid;
    grid-template-columns: 17.5rem minmax(0, 1fr);
    grid-template-areas: "sidebar main";
    align-items: start;
    min-height: 100vh;
    background: #f4f6f5;
    color: #10231c;
}

.app-shell:has(.candidate-dashboard-page)>.site-header,
.app-shell:has(.candidate-dashboard-page)>.site-footer {
    display: none;
}

body.dashboard-sidebar-open {
    overflow: hidden;
}

/* --- Sidebar ------------------------------------------------- */
.dashboard-sidebar {
    grid-area: sidebar;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
    height: 100vh;
    padding: 1.3rem 1.05rem 1.2rem;
    border-right: 1px solid rgba(16, 35, 28, 0.1);
    background: #ffffff;
    overflow-y: auto;
}

.dashboard-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.dashboard-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: inherit;
    text-decoration: none;
}

/* The workspace brands: the same lockup as the public header, so the two surfaces
   read as one product. The label under it carries what the old text pair said. */
.dashboard-brand-logo {
    display: block;
    height: 26px;
    width: auto;
}

.dashboard-sidebar-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}

.dashboard-sidebar-logo {
    height: 30px;
}

.dashboard-brand-label {
    color: #64748b;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
}

.dashboard-sidebar-mark {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 0.75rem;
    background: #0a0a0a;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 900;
}

.dashboard-sidebar-brand-copy strong,
.dashboard-sidebar-brand-copy small,
.dashboard-sidebar-candidate-copy strong,
.dashboard-sidebar-candidate-copy small,
.dashboard-sidebar-link-copy strong,
.dashboard-sidebar-link-copy small {
    display: block;
}

.dashboard-sidebar-brand-copy strong {
    color: #0f172a;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.dashboard-sidebar-brand-copy small {
    margin-top: 0.05rem;
    color: #7c8b84;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dashboard-sidebar-close {
    display: none;
    place-items: center;
    flex: none;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.7rem;
    background: #ffffff;
    color: #475569;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.dashboard-sidebar-candidate {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem;
    border: 1px solid #e6eeea;
    border-radius: 1rem;
    background: #f7faf8;
}

.dashboard-sidebar-avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.8rem;
    background: #0a0a0a;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 900;
    overflow: hidden;
}

.dashboard-sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-sidebar-candidate-copy {
    min-width: 0;
}

.dashboard-sidebar-candidate-copy strong {
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-sidebar-candidate-copy small {
    margin-top: 0.1rem;
    color: #7c8b84;
    font-size: 0.72rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-sidebar-nav {
    display: grid;
    gap: 1.15rem;
}

.dashboard-sidebar-label {
    margin: 0 0 0.45rem 0.6rem;
    color: #9aa8a1;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dashboard-sidebar-list {
    display: grid;
    gap: 0.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dashboard-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.7rem;
    border-radius: 0.75rem;
    color: #5d6f67;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.dashboard-sidebar-link svg,
.dashboard-sidebar-action svg,
.dashboard-sidebar-logout svg {
    flex: none;
    width: 1.08rem;
    height: 1.08rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.dashboard-sidebar-link-copy {
    min-width: 0;
}

.dashboard-sidebar-link-copy strong {
    font-size: 0.85rem;
    font-weight: 800;
}

.dashboard-sidebar-link-copy small {
    margin-top: 0.1rem;
    color: #98a7a0;
    font-size: 0.7rem;
    font-weight: 600;
}

.dashboard-sidebar-link:hover {
    background: #f2f5f3;
    color: #0a0a0a;
}

.dashboard-sidebar-link.is-active {
    background: #0a0a0a;
    color: #ffffff;
}

.dashboard-sidebar-link.is-active .dashboard-sidebar-link-copy small {
    color: rgba(255, 255, 255, 0.65);
}

.dashboard-sidebar-foot {
    display: grid;
    gap: 0.3rem;
    margin-top: auto;
    padding-top: 1.1rem;
    border-top: 1px solid #e9efec;
}

.dashboard-sidebar-badge {
    display: inline-grid;
    place-items: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    margin-left: 0.4rem;
    border-radius: 999px;
    background: #b91c1c;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    vertical-align: 0.1em;
}

.dashboard-sidebar-note {
    margin: 0 0 0.5rem;
    padding: 0.55rem 0.7rem;
    border-radius: 0.7rem;
    background: #f2f7f4;
    color: #4d6157;
    font-size: 0.72rem;
    font-weight: 700;
}

.dashboard-sidebar-note span {
    display: inline-grid;
    place-items: center;
    min-width: 1.3rem;
    height: 1.3rem;
    margin-right: 0.35rem;
    border-radius: 999px;
    background: #0a0a0a;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 900;
}

.dashboard-sidebar-action,
.dashboard-sidebar-logout button {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 0;
    border-radius: 0.7rem;
    background: transparent;
    color: #6b7d74;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.dashboard-sidebar-action:hover,
.dashboard-sidebar-logout button:hover {
    background: #f2f5f3;
    color: #0a0a0a;
}

.dashboard-sidebar-logout {
    margin: 0;
}

/* --- Mobile topbar + off-canvas drawer ----------------------- */
.dashboard-topbar {
    grid-area: topbar;
    display: none;
    align-items: center;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(16, 35, 28, 0.1);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
}

.dashboard-topbar-toggle {
    display: grid;
    place-content: center;
    gap: 0.24rem;
    flex: none;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.7rem;
    background: #ffffff;
    cursor: pointer;
}

.dashboard-topbar-toggle span {
    display: block;
    width: 1.05rem;
    height: 2px;
    border-radius: 2px;
    background: #0a0a0a;
}

.dashboard-topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 900;
    text-decoration: none;
}

.dashboard-topbar-mark {
    display: grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 0.55rem;
    background: #0a0a0a;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 900;
}

.dashboard-topbar-section {
    margin-left: auto;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: #f1f3f2;
    color: #5d6f67;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dashboard-sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(10, 10, 10, 0.45);
}

/* --- Main column --------------------------------------------- */
.candidate-dashboard-main {
    grid-area: main;
    width: 100%;
    padding: 2.3rem clamp(1rem, 4vw, 3rem) 4rem;
}

.dashboard-narrow-main {
    max-width: 1020px;
}

.candidate-dashboard-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.candidate-dashboard-header h1 {
    margin: 0;
    color: #10231c;
    font-size: clamp(2rem, 4vw, 3.3rem);
    letter-spacing: -0.055em;
    line-height: 1;
}

.candidate-dashboard-header p:not(.dashboard-eyebrow) {
    max-width: 42rem;
    margin: 0.65rem 0 0;
    color: #64756d;
    line-height: 1.65;
}

.dashboard-eyebrow {
    margin: 0 0 0.45rem;
    color: #525252;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.candidate-dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.candidate-dashboard-metrics article {
    min-height: 7.2rem;
    padding: 1rem;
    border: 1px solid rgba(16, 35, 28, 0.1);
    border-radius: 1rem;
    background: #fff;
}

.candidate-dashboard-metrics article span,
.candidate-dashboard-metrics article small {
    display: block;
}

.dashboard-metric-icon {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.75rem;
    border-radius: 0.6rem;
    background: #f1f1f1;
    color: #0a0a0a;
}

.dashboard-metric-icon svg,
.dashboard-inline-icon {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.dashboard-metric-dark .dashboard-metric-icon {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.dashboard-inline-icon {
    display: inline-block;
    vertical-align: -0.18em;
    margin-right: 0.25rem;
}

.candidate-dashboard-metrics article span {
    color: #6b7d74;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.candidate-dashboard-metrics article strong {
    display: block;
    margin: 0.55rem 0 0.25rem;
    color: #10231c;
    font-size: 1.9rem;
    letter-spacing: -0.05em;
}

.candidate-dashboard-metrics article small {
    color: #829089;
    font-size: 0.78rem;
}

.candidate-dashboard-metrics .dashboard-metric-dark {
    background: #0a0a0a;
    border-color: #0a0a0a;
}

.candidate-dashboard-metrics .dashboard-metric-dark span,
.candidate-dashboard-metrics .dashboard-metric-dark small,
.candidate-dashboard-metrics .dashboard-metric-dark strong {
    color: #fff;
}

.candidate-dashboard-metrics .dashboard-metric-dark small {
    color: #b5b5b5;
}

.candidate-dashboard-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.dashboard-panel {
    padding: 1.35rem;
    border: 1px solid rgba(16, 35, 28, 0.1);
    border-radius: 1.1rem;
    background: #fff;
}

.dashboard-panel-featured {
    grid-row: span 2;
    background: #f1f1f1;
    border-color: #d4d4d4;
}

.dashboard-panel-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-panel h2 {
    margin: 0;
    color: #10231c;
    font-size: 1.3rem;
    letter-spacing: -0.035em;
}

.dashboard-panel p:not(.dashboard-eyebrow) {
    margin: 0.65rem 0 1.1rem;
    color: #64756d;
    line-height: 1.6;
}

.dashboard-panel-number {
    color: #737373;
    font-size: 1.5rem;
    font-weight: 900;
}

.dashboard-text-link {
    color: #0a0a0a;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-journey-panel {
    margin-top: 0.75rem;
}

.dashboard-journey-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 1.3rem;
}

.dashboard-journey-track>div {
    position: relative;
    display: grid;
    gap: 0.2rem;
    padding-top: 0.3rem;
    color: #829089;
}

.dashboard-journey-track>div:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0.9rem;
    left: 2rem;
    right: -0.35rem;
    height: 2px;
    background: #dbe7e1;
}

.dashboard-journey-track span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: #dbe7e1;
    color: #547066;
    font-size: 0.7rem;
    font-weight: 800;
}

.dashboard-journey-track strong {
    color: #38564b;
    font-size: 0.82rem;
}

.dashboard-journey-track small {
    color: #829089;
    font-size: 0.72rem;
}

.dashboard-journey-track .is-done span,
.dashboard-journey-track .is-current span {
    background: #0a0a0a;
    color: #fff;
}

.dashboard-profile-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem;
    margin-bottom: 0.75rem;
    border-radius: 1.1rem;
    background: #0a0a0a;
    color: #fff;
}

.dashboard-profile-avatar {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: #ffffff;
    color: #0a0a0a;
    font-size: 1.5rem;
    font-weight: 900;
}

.dashboard-profile-hero .dashboard-eyebrow,
.dashboard-profile-hero h2,
.dashboard-profile-hero p:not(.dashboard-eyebrow) {
    color: #fff;
}

.dashboard-profile-hero h2 {
    margin: 0;
    font-size: 1.7rem;
}

.dashboard-progress {
    grid-column: 1 / -1;
    height: 0.5rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.dashboard-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #ffffff;
}

.dashboard-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.dashboard-detail-grid>div {
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    border: 1px solid rgba(16, 35, 28, 0.1);
    border-radius: 0.9rem;
    background: #fff;
}

.dashboard-detail-grid span {
    color: #829089;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-detail-grid strong {
    color: #10231c;
}

/* --- Dashboard profile page ---------------------------------- */
.dashboard-profile-avatar,
.dashboard-profile-avatar img {
    overflow: hidden;
}

.dashboard-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-profile-hero-copy {
    min-width: 0;
}

.dashboard-flash {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    padding: 0.9rem 1.1rem;
    border-radius: 0.9rem;
    font-size: 0.85rem;
    line-height: 1.6;
}

.dashboard-flash ul {
    margin: 0;
    padding-left: 1.1rem;
}

.dashboard-flash-success {
    border: 1px solid #bfe6cf;
    background: #eefaf3;
    color: #14603a;
}

.dashboard-flash-error {
    border: 1px solid #f2c6c6;
    background: #fdf3f3;
    color: #952121;
}

.dashboard-checklist-panel.is-complete {
    border-color: #c7e8d8;
    background: #f6fbf8;
}

/* --- Campaign priorities panels (dashboard) ------------------- */
.dashboard-priorities-panel {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.dashboard-priorities-panel .dashboard-panel-heading {
    margin-bottom: 1rem;
}

.dashboard-priorities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dashboard-priorities-list.is-compact {
    grid-template-columns: 1fr;
    gap: 0;
}

.dashboard-priority {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(16, 35, 28, 0.12);
}

.dashboard-priority-num {
    flex: none;
    min-width: 1.6rem;
    color: #0a0a0a;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.dashboard-priority-label {
    color: #10231c;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.dashboard-priority-tag {
    margin-left: auto;
    flex: none;
    padding: 2px 8px;
    border: 1.5px solid rgba(10, 10, 10, 0.35);
    border-radius: 999px;
    color: #4d6157;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-priorities-empty {
    margin: 0.5rem 0 1rem;
    max-width: 46rem;
    color: #6b7d74;
    font-size: 0.9rem;
    line-height: 1.65;
}

.dashboard-priorities-cta {
    margin-top: 1.1rem;
}

/* --- Subscription locks the electoral office ------------------ */
.position-lock-notice {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #d9e6df;
    border-left: 4px solid #0a0a0a;
    border-radius: 0.7rem;
    background: #f4f7f5;
    color: #3f5148;
    font-size: 0.85rem;
    line-height: 1.65;
}

.position-lock-notice strong {
    color: #10231c;
}

.position-lock-notice a {
    color: #0a0a0a;
    font-weight: 800;
    white-space: nowrap;
}

.position-lock-notice.is-warning {
    border-color: #f0dcb0;
    border-left-color: #b8860b;
    background: #fdf8ec;
    color: #6b571d;
}

.position-card.is-locked {
    cursor: not-allowed;
    opacity: 0.5;
    background: #f7f8f7;
}

.position-card.is-locked:hover {
    transform: none;
    border-color: #e2e8f0;
    box-shadow: none;
}

.position-card.is-locked.is-selected::after {
    background: #9aa79f;
}

.dashboard-checklist {
    display: grid;
    gap: 0.65rem;
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
}

.dashboard-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.dashboard-checklist-mark {
    display: grid;
    place-items: center;
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: #0a0a0a;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 900;
}

.dashboard-checklist strong {
    display: block;
    font-size: 0.88rem;
}

.dashboard-checklist small {
    display: block;
    margin-top: 0.1rem;
    color: #7c8b84;
    font-size: 0.78rem;
}

.dashboard-profile-form {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.dashboard-profile-form .dashboard-panel {
    margin-bottom: 0;
}

.dashboard-profile-form .form-group+.form-group {
    margin-top: 1rem;
}

.dashboard-profile-form .position-card {
    gap: 0.3rem;
    min-height: 0;
    padding: 0.85rem 1rem;
}

.dashboard-profile-form .position-cards-grid,
.dashboard-profile-form .geographic-area-card {
    margin-bottom: 1.1rem;
}

.dashboard-profile-form .social-grid {
    margin-top: 0.9rem;
}

/* Cover photo picker */
.cover-preview {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 5;
    margin-bottom: 0.9rem;
    overflow: hidden;
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    background: #f1f5f3;
}

.cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-preview-empty {
    display: grid;
    gap: 0.3rem;
    padding: 1rem;
    text-align: center;
}

.cover-preview-empty strong {
    display: block;
    color: #0f172a;
    font-size: 0.95rem;
}

.cover-preview-empty span {
    display: block;
    color: #7c8b84;
    font-size: 0.8rem;
}

.cover-buttons {
    margin-bottom: 1.6rem;
}

.profile-photo-row {
    padding-top: 1.4rem;
    border-top: 1px solid #e9efec;
}

.dashboard-profile-actions {
    position: sticky;
    bottom: 0.75rem;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(16, 35, 28, 0.12);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 0.9rem 1.8rem rgba(16, 35, 28, 0.08);
}

.dashboard-profile-actions-copy strong {
    display: block;
    font-size: 0.9rem;
}

.dashboard-profile-actions-copy span {
    display: block;
    margin-top: 0.15rem;
    color: #7c8b84;
    font-size: 0.78rem;
}

.dashboard-profile-actions-buttons {
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 600px) {
    .dashboard-profile-actions {
        position: static;
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-profile-actions-buttons .button {
        flex: 1;
        justify-content: center;
    }
}

.dashboard-empty-state {
    padding: 4rem 1.5rem;
    border: 1px dashed #b8ccc2;
    border-radius: 1.25rem;
    background: #fff;
    text-align: center;
}

.dashboard-empty-icon {
    display: block;
    margin-bottom: 0.75rem;
    color: #0a0a0a;
}

.dashboard-empty-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.dashboard-empty-state h2 {
    margin: 0;
}

.dashboard-empty-state p {
    max-width: 30rem;
    margin: 0.65rem auto 1.25rem;
    color: #64756d;
}

.dashboard-manifesto-list,
.dashboard-analytics-list {
    display: grid;
    gap: 0.75rem;
}

.dashboard-manifesto-card {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid rgba(16, 35, 28, 0.1);
    border-radius: 1rem;
    background: #fff;
}

.dashboard-manifesto-card h2 {
    margin: 0.45rem 0 0;
    font-size: 1.15rem;
}

.dashboard-manifesto-card p {
    max-width: 42rem;
    margin: 0.45rem 0 0;
    color: #64756d;
    line-height: 1.55;
}

.dashboard-status {
    display: inline-flex;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dashboard-status.is-live {
    background: #f1f1f1;
    color: #0a0a0a;
}

.dashboard-status.is-draft {
    background: #f1f5f3;
    color: #64756d;
}

.dashboard-card-actions {
    display: flex;
    gap: 0.45rem;
    flex: none;
}

.share-kit-link-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 1rem;
    padding: 1.4rem;
    margin-bottom: 0.75rem;
    border-radius: 1.1rem;
    background: #0a0a0a;
    color: #fff;
}

.share-kit-link-panel .dashboard-eyebrow {
    color: #a3a3a3;
}

.share-kit-link-panel strong {
    overflow-wrap: anywhere;
    font-size: 1.15rem;
}

.dashboard-share-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.dashboard-share-card {
    display: grid;
    gap: 0.25rem;
    padding: 1.2rem;
    border-radius: 1rem;
    color: #fff;
    text-decoration: none;
}

.dashboard-share-card span {
    display: inline-flex;
    width: 1.8rem;
    height: 1.8rem;
}

.dashboard-share-card span svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.dashboard-share-card strong {
    font-size: 1rem;
}

.dashboard-share-card small {
    opacity: 0.85;
}

.dashboard-qr-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-qr-box {
    /* A QR code only scans if it stays square and keeps its quiet zone, so the
       box must never be squeezed by the text beside it. */
    flex: none;
    width: 8rem;
    height: 8rem;
    padding: 0.45rem;
    border-radius: 0.75rem;
    background: #fff;
}

.dashboard-qr-box svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* The inline QR is square by construction; keep it that way wherever it is
   dropped, instead of inheriting a stretched box. */
.manifesto-qr-svg {
    display: block;
    aspect-ratio: 1 / 1;
}

.dashboard-analytics-list>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #e6eeea;
}

.dashboard-analytics-list>div:last-child {
    border-bottom: 0;
}

.dashboard-analytics-list span {
    color: #64756d;
    font-size: 0.85rem;
}

.analytics-note {
    margin-top: 0.75rem;
    background: #e8f5ef;
    border-color: #c7e8d8;
}

/* ---------------------------------------------------------------
   Readership statistics
   --------------------------------------------------------------- */
.readership-locked {
    margin-bottom: 1rem;
    padding: 1.15rem 1.35rem;
    border: 1px solid #fde68a;
    border-radius: 1rem;
    background: #fffbeb;
}

.readership-locked h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #92400e;
    letter-spacing: -0.01em;
}

.readership-locked p {
    margin: 0 0 0.85rem;
    color: #78350f;
    font-size: 0.9rem;
    line-height: 1.55;
}

.readership-empty {
    margin: 0;
    padding: 1rem 1.15rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.85rem;
    background: #f8fafc;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.55;
}

.readership-chart {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 168px;
    padding: 0.5rem 0 0;
}

.readership-chart-col {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    height: 100%;
    min-width: 0;
}

.readership-chart-value {
    font-size: 0.72rem;
    font-weight: 800;
    color: #64748b;
}

.readership-chart-bar {
    width: 100%;
    max-width: 46px;
    min-height: 4px;
    border-radius: 0.4rem 0.4rem 0.2rem 0.2rem;
    background: linear-gradient(180deg, #10b981 0%, #047857 100%);
    transition: height 0.2s ease;
}

.readership-chart-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #94a3b8;
}

.readership-sources {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.6rem;
}

.readership-source {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #ffffff;
}

.readership-source-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.readership-source-value {
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
}

/* A QR row names the poster and shows the code it prints, so the candidate can
   match a row to a physical poster. */
.readership-source-code {
    display: inline-block;
    margin-left: 0.45rem;
    padding: 0.1rem 0.35rem;
    border-radius: 0.35rem;
    background: #f1f5f9;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #475569;
}

.dashboard-qr-code-note {
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    color: #64748b;
}

.dashboard-qr-code-note code {
    padding: 0.1rem 0.35rem;
    border-radius: 0.35rem;
    background: #f1f5f9;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.76rem;
    color: #334155;
    /* A printed link is one long token; let it wrap so it cannot push the QR
       box out of shape on a narrow window. */
    overflow-wrap: anywhere;
}

.readership-locations {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.readership-location-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.3rem;
}

.readership-location-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}

.readership-location-value {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
}

.readership-location-track {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.readership-location-bar {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #10b981 0%, #047857 100%);
}

.readership-subheading {
    margin: 1.25rem 0 0.6rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #64748b;
}

.readership-privacy {
    margin: 1rem 0 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: #64748b;
}

@media (max-width: 640px) {
    .readership-chart {
        height: 132px;
        gap: 0.3rem;
    }

    .readership-chart-value {
        font-size: 0.64rem;
    }
}

@media (max-width: 1024px) {
    .candidate-dashboard-page {
        grid-template-columns: 1fr;
        grid-template-areas: "topbar" "main";
    }

    .dashboard-topbar {
        display: flex;
    }

    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 50;
        width: min(19rem, 86vw);
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.22s ease;
    }

    .dashboard-sidebar.is-open {
        transform: translateX(0);
    }

    .dashboard-sidebar-close {
        display: grid;
    }

    .candidate-dashboard-main {
        padding-top: 1.5rem;
    }

    .candidate-dashboard-header {
        align-items: start;
        flex-direction: column;
    }

    .candidate-dashboard-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .candidate-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-panel-featured {
        grid-row: auto;
    }
}

@media (max-width: 600px) {

    .candidate-dashboard-metrics,
    .dashboard-detail-grid,
    .dashboard-share-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-journey-track {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 1rem;
    }

    .dashboard-journey-track>div::after {
        display: none;
    }

    .dashboard-manifesto-card,
    .dashboard-qr-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-card-actions {
        width: 100%;
    }

    .dashboard-card-actions .button {
        flex: 1;
        text-align: center;
    }

    .share-kit-link-panel {
        grid-template-columns: 1fr;
    }

    .dashboard-analytics-list>div {
        align-items: start;
        flex-direction: column;
        gap: 0.2rem;
    }
}
.admin-staff-level {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.admin-staff-level.is-owner {
    background: #0f172a;
    color: #ffffff;
}

.admin-staff-level.is-admin {
    background: #e2e8f0;
    color: #0f172a;
}

.admin-staff-level.is-editor {
    background: #ede9fe;
    color: #5b21b6;
}

.admin-staff-level.is-support {
    background: #dbeafe;
    color: #1e40af;
}

.admin-staff-level.is-finance {
    background: #dcfce7;
    color: #166534;
}

.admin-support-message {
    max-width: 46ch;
    margin: 0.4rem 0 0;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.55;
}

/* The help centre: answers first, then a person. */
.help-page {
    padding: 2.5rem 0 4rem;
}

.help-shell {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.help-eyebrow {
    margin: 0 0 0.6rem;
    color: #b45309;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.help-hero h1 {
    margin: 0 0 0.8rem;
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.help-lead {
    max-width: 62ch;
    margin: 0 0 1.4rem;
    color: #475569;
    font-size: 1.02rem;
    line-height: 1.65;
}

.help-search {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.help-search input {
    flex: 1;
    padding: 0.75rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.7rem;
    font: inherit;
}

.help-categories {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    margin-bottom: 2.25rem;
}

.help-category {
    display: block;
    padding: 1rem 1.1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    color: #0f172a;
    text-decoration: none;
    background: #ffffff;
}

.help-category:hover {
    border-color: #0f172a;
}

.help-category strong {
    display: block;
    margin-bottom: 0.3rem;
}

.help-category span {
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.5;
}

.help-list-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.help-list-head h2 {
    margin: 0;
    font-size: 1.2rem;
}

.help-clear {
    color: #475569;
    font-size: 0.85rem;
    font-weight: 700;
}

.help-articles {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #eef2f0;
}

.help-articles li {
    border-bottom: 1px solid #eef2f0;
}

.help-articles a {
    display: block;
    padding: 0.95rem 0;
    color: #0f172a;
    text-decoration: none;
}

.help-articles a:hover strong {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.help-articles strong {
    display: block;
    margin-bottom: 0.2rem;
}

.help-articles span {
    color: #64748b;
    font-size: 0.9rem;
}

.help-empty {
    padding: 1rem 0;
    color: #64748b;
}

.help-breadcrumb {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 1.2rem;
    color: #94a3b8;
    font-size: 0.82rem;
}

.help-breadcrumb a {
    color: #475569;
}

.help-article header {
    margin-bottom: 1.5rem;
}

.help-article h1 {
    margin: 0 0 0.7rem;
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.help-body h2 {
    margin: 1.8rem 0 0.6rem;
    font-size: 1.15rem;
}

.help-body p {
    margin: 0 0 1rem;
    color: #334155;
    font-size: 1rem;
    line-height: 1.75;
}

.help-body ul,
.help-body ol {
    margin: 0 0 1.1rem;
    padding-left: 1.3rem;
    color: #334155;
    line-height: 1.75;
}

.help-body li {
    margin-bottom: 0.4rem;
}

.help-note {
    padding: 0.8rem 1rem;
    border-left: 3px solid #0f172a;
    background: #f8fafc;
    font-size: 0.95rem;
}

.help-related,
.help-siblings {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eef2f0;
}

.help-related h2 {
    margin: 0 0 0.6rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #64748b;
}

.help-related ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.help-related li {
    margin-bottom: 0.35rem;
}

.help-siblings {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.help-sibling {
    max-width: 46%;
    color: #0f172a;
    text-decoration: none;
}

.help-sibling span {
    display: block;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.help-sibling.is-next {
    text-align: right;
}

/* The support form. */
.help-support {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.help-support-inner {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 800px) {
    .help-support-inner {
        grid-template-columns: 0.8fr 1.2fr;
        align-items: start;
    }
}

.help-support-copy h2 {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
}

.help-support-copy p {
    margin: 0 0 0.7rem;
    color: #475569;
    line-height: 1.6;
}

.help-support-note {
    font-size: 0.88rem;
    color: #64748b;
}

.help-support-card {
    display: grid;
    gap: 0.8rem;
    padding: 1.4rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.9rem;
    background: #ffffff;
}

.help-support-card.is-sent {
    border-color: #86efac;
    background: #f0fdf4;
}

.help-support-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.help-field {
    display: block;
}

.help-field > span {
    display: block;
    margin-bottom: 0.3rem;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.help-field input,
.help-field select,
.help-field textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.6rem;
    font: inherit;
    color: #0f172a;
    background: #ffffff;
}

.help-hint {
    margin: -0.35rem 0 0;
    color: #94a3b8;
    font-size: 0.82rem;
}

.help-form-row {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: 1fr;
}

@media (min-width: 620px) {
    .help-form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.help-errors {
    padding: 0.7rem 0.9rem;
    border: 1px solid #fecaca;
    border-radius: 0.6rem;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.88rem;
}

.help-errors p {
    margin: 0 0 0.3rem;
}

/* Use cases: six rooms, each with its own screen. */
.usecase-page {
    padding: 2.5rem 0 4rem;
}

.usecase-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.usecase-eyebrow {
    margin: 0 0 0.6rem;
    color: #b45309;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.usecase-hero {
    max-width: 780px;
    margin-bottom: 2rem;
}

.usecase-hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.06;
    letter-spacing: -0.025em;
}

.usecase-lead {
    margin: 0;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.65;
}

.usecase-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.usecase-jump a {
    padding: 0.35rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.usecase-jump a:hover {
    border-color: #0f172a;
}

.usecase-row {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: 1fr;
    align-items: center;
    margin-bottom: 3.5rem;
}

@media (min-width: 900px) {
    .usecase-row {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 2.5rem;
    }

    .usecase-row.is-flipped .usecase-copy {
        order: 2;
    }

    .usecase-row.is-flipped .usecase-shot {
        order: 1;
    }
}

.usecase-role {
    margin: 0 0 0.5rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.usecase-copy h2 {
    margin: 0 0 0.8rem;
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.usecase-body {
    margin: 0 0 1rem;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.7;
}

.usecase-steps {
    margin: 0 0 1.25rem;
    padding-left: 1.35rem;
    color: #334155;
    font-size: 0.94rem;
    line-height: 1.65;
    /* A global reset removes list markers; these steps are a sequence, so restore them. */
    list-style: decimal;
}

.usecase-steps li {
    margin-bottom: 0.35rem;
    list-style: decimal;
    padding-left: 0.15rem;
}

.usecase-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: baseline;
}

.usecase-cta {
    display: inline-block;
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 2px;
}

.usecase-cta.is-secondary {
    border-bottom-color: #94a3b8;
    color: #475569;
}

.usecase-shot {
    margin: 0;
}

.usecase-shot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.45);
}

.usecase-close {
    max-width: 640px;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.usecase-close h2 {
    margin: 0 0 0.6rem;
    font-size: 1.35rem;
}

.usecase-close p {
    margin: 0 0 1rem;
    color: #475569;
    line-height: 1.65;
}

.usecase-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* The sharing guide: six surfaces and the rules that keep them scannable. */
.shareguide-page {
    padding: 2.5rem 0 4rem;
}

.shareguide-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.shareguide-eyebrow {
    margin: 0 0 0.6rem;
    color: #b45309;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.shareguide-hero {
    max-width: 760px;
    margin-bottom: 2rem;
}

.shareguide-hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.06;
    letter-spacing: -0.025em;
}

.shareguide-lead {
    margin: 0 0 1.25rem;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.65;
}

.shareguide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.shareguide-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.75rem 0 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.shareguide-jump a {
    padding: 0.35rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #0f172a;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.shareguide-jump a:hover {
    border-color: #0f172a;
}

.shareguide-row {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: 1fr;
    align-items: center;
    margin-bottom: 3.5rem;
}

@media (min-width: 900px) {
    .shareguide-row {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 2.5rem;
    }

    .shareguide-row.is-flipped .shareguide-copy {
        order: 2;
    }

    .shareguide-row.is-flipped .shareguide-shot {
        order: 1;
    }
}

.shareguide-kicker {
    margin: 0 0 0.5rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.shareguide-copy h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.shareguide-body {
    margin: 0 0 1rem;
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.7;
}

.shareguide-specs {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #e2e8f0;
}

.shareguide-specs li {
    padding: 0.5rem 0 0.5rem 1.1rem;
    border-bottom: 1px solid #eef2f0;
    color: #334155;
    font-size: 0.9rem;
    position: relative;
}

.shareguide-specs li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0f9d58;
}

.shareguide-shot {
    margin: 0;
}

.shareguide-shot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: #f8fafc;
}

.shareguide-rules {
    margin-bottom: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.shareguide-rules h2 {
    margin: 0 0 1.25rem;
    font-size: 1.4rem;
}

.shareguide-rule-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.shareguide-rule {
    padding: 1.1rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
}

.shareguide-rule-number {
    display: block;
    margin-bottom: 0.35rem;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.shareguide-rule h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
}

.shareguide-rule p {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.6;
}

.shareguide-close {
    max-width: 640px;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.shareguide-close h2 {
    margin: 0 0 0.6rem;
    font-size: 1.35rem;
}

.shareguide-close p {
    margin: 0 0 1rem;
    color: #475569;
    line-height: 1.65;
}


/* An unconfirmed address no longer stops the workspace, so the sidebar says what is
   waiting. Amber, not red: this is a step left to do, not a fault. */
.dashboard-verify-note {
    margin: 0.75rem 0.9rem 0.25rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid #f0dcb4;
    border-radius: 12px;
    background: #fdf7ea;
}

.dashboard-verify-title {
    margin: 0 0 0.2rem;
    color: #7a4a10;
    font-size: 0.82rem;
    font-weight: 900;
}

.dashboard-verify-copy {
    margin: 0 0 0.5rem;
    color: #8a5a1c;
    font-size: 0.76rem;
    line-height: 1.45;
}

.dashboard-verify-link {
    color: #7a4a10;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* The permanent link card: what the address opens, and the document on its own. */
.share-link-note {
    margin: 6px 0 0;
    max-width: 62ch;
    color: #64756d;
    font-size: 13px;
    line-height: 1.5;
}

.share-manifesto-note {
    margin: 10px 2px 0;
    color: #64756d;
    font-size: 13px;
    line-height: 1.5;
}

.share-manifesto-note a {
    color: #0b5c42;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1.5px solid currentColor;
}
