:root {
    /* CDB — premium civic design system */
    --cdb-blue: #1769aa;
    --cdb-blue-dark: #0f4f82;
    --cdb-blue-soft: #edf5fb;

    --cdb-red: #d63b3b;
    --cdb-red-dark: #a92d2d;
    --cdb-red-soft: #fceded;

    --cdb-green: #249b5a;
    --cdb-green-dark: #18723f;
    --cdb-green-soft: #eaf7f0;

    --cdb-yellow: #f2c230;
    --cdb-yellow-dark: #9b7400;
    --cdb-yellow-soft: #fff8dd;

    /* Premium neutral palette */
    --cdb-black: #101216;
    --cdb-anthracite: #1d2127;
    --bg: #f7f8fa;
    --surface: #ffffff;
    --surface-soft: #f1f3f5;
    --surface-elevated: #ffffff;

    --text: #171a1f;
    --text-soft: #606770;
    --text-muted: #858b93;

    /* Semantic interface tokens */
    --primary: var(--cdb-blue);
    --primary-dark: var(--cdb-blue-dark);
    --primary-soft: var(--cdb-blue-soft);
    --success: var(--cdb-green);
    --danger: var(--cdb-red);
    --accent: var(--cdb-yellow);

    /* Compatibility while existing components migrate */
    --green: var(--primary);
    --green-dark: var(--primary-dark);
    --green-soft: var(--primary-soft);
    --dark: var(--cdb-black);
    --dark-soft: var(--cdb-anthracite);

    /* Structure */
    --border: rgba(16, 18, 22, .10);
    --border-strong: rgba(16, 18, 22, .16);
    --border-light: rgba(255, 255, 255, .14);

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --radius-pill: 999px;

    --container: 1240px;

    /* Refined elevation */
    --shadow-sm:
        0 1px 2px rgba(16, 18, 22, .03),
        0 5px 16px rgba(16, 18, 22, .04);

    --shadow-md:
        0 12px 32px rgba(16, 18, 22, .07);

    --shadow:
        0 28px 72px rgba(16, 18, 22, .09);

    /* Interaction */
    --ease-premium: cubic-bezier(.22, 1, .36, 1);
    --transition-fast: 160ms var(--ease-premium);
    --transition-ui: 240ms var(--ease-premium);
    --focus-ring: 0 0 0 4px rgba(23, 105, 170, .18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);
    background: var(--bg);

    line-height: 1.5;
}

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

button,
input {
    font: inherit;
}

.container {
    width: min(
        calc(100% - 48px),
        var(--container)
    );

    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(244,245,241,.92);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 84px;

    display: flex;
    align-items: center;
    gap: 32px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 250px;
}

.brand-mark {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--green);
    color: #fff;

    font-weight: 800;
    letter-spacing: -.03em;
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-copy strong {
    font-size: 15px;
}

.brand-copy small {
    margin-top: 2px;

    color: var(--text-soft);
    font-size: 11px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;

    margin-left: auto;
}

.main-nav a {
    font-size: 14px;
    font-weight: 650;
}

.main-nav a:hover {
    color: var(--green);
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 18px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-weight: 700;
    font-size: 14px;

    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--green);
    color: #fff;
}

.btn-primary:hover {
    background: var(--green-dark);
}

.btn-secondary {
    border-color: var(--border);
    background: #fff;
}

.google-auth-button {
    width: 100%;
    min-height: 52px;
    gap: 12px;
    padding: 0 20px;

    border: 1px solid #d9dee7;
    border-radius: 12px;

    background: #fff;
    color: #26332e;
    box-shadow: 0 2px 7px rgba(23, 48, 39, .07);

    font-size: 15px;
    font-weight: 650;
    letter-spacing: -.01em;

    transition:
        transform .18s ease,
        background-color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.google-auth-button:hover {
    transform: translateY(-1px);
    border-color: #b8c4d2;
    background: #f8fbfa;
    color: #172a23;
    box-shadow: 0 7px 18px rgba(23, 48, 39, .11);
}

.google-auth-button:focus-visible {
    outline: 3px solid rgba(23, 105, 75, .22);
    outline-offset: 3px;
}

.google-auth-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(23, 48, 39, .08);
}

.google-auth-button[aria-disabled="true"] {
    pointer-events: none;
    opacity: .52;
    box-shadow: none;
}

.google-auth-icon {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;

    color: var(--text-soft);
    font-size: 13px;
    text-align: center;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    flex: 1;
    content: "";
    background: var(--border);
}

.auth-divider span {
    max-width: 72%;
}

.btn-ghost {
    border-color: var(--border);
}

.btn-dark {
    background: var(--dark);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--dark);
}

.btn-outline-light {
    color: #fff;
    border-color: rgba(255,255,255,.35);
}

.btn-large {
    min-height: 54px;
    padding: 0 24px;
}

.hero {
    padding: 88px 0 96px;

    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(23,105,75,.13),
            transparent 30%
        ),
        var(--bg);
}

.hero-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(340px, .6fr);

    gap: 70px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;

    margin-bottom: 20px;

    color: var(--green);

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .14em;
}

.hero h1 {
    max-width: 840px;

    margin: 0;

    font-size: clamp(56px, 7vw, 104px);
    line-height: .92;

    letter-spacing: -.065em;
}

.hero h1 span {
    color: var(--green);
}

.hero-lead {
    max-width: 720px;

    margin: 34px 0 0;

    color: var(--text-soft);

    font-size: clamp(19px, 2vw, 25px);
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 36px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;

    margin-top: 38px;

    color: var(--text-soft);

    font-size: 13px;
    font-weight: 650;
}

.hero-trust span::before {
    content: "•";

    margin-right: 8px;

    color: var(--green);
}

.hero-panel {
    padding: 34px;

    border-radius: var(--radius-lg);

    background: var(--surface);

    box-shadow: var(--shadow);
}

.panel-label {
    color: var(--green);

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .12em;
}

.hero-panel h2 {
    margin: 16px 0 12px;

    font-size: 36px;
    line-height: 1.05;

    letter-spacing: -.04em;
}

.hero-panel p {
    margin: 0;

    color: var(--text-soft);
}

.commune-search {
    margin-top: 28px;
}

.commune-search label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 700;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.search-row input {
    width: 100%;

    min-height: 50px;

    padding: 0 16px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: var(--bg);
}

.search-row input:focus {
    outline: 2px solid rgba(23,105,75,.18);
    border-color: var(--green);
}

.search-note {
    display: block;

    margin-top: 12px;

    color: var(--text-soft);
    font-size: 11px;
}

.section {
    padding: 110px 0;
}

.section-light {
    background: #fff;
}

.section-heading {
    max-width: 800px;

    margin-bottom: 50px;
}

.section-heading h2,
.territory-grid h2,
.transparency-grid h2,
.identity-card h2,
.cta-inner h2 {
    margin: 0;

    font-size: clamp(40px, 5vw, 68px);
    line-height: 1;

    letter-spacing: -.055em;
}

.section-heading p,
.territory-grid p,
.transparency-grid p,
.identity-card p {
    margin: 22px 0 0;

    color: var(--text-soft);

    font-size: 18px;
    line-height: 1.65;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--border);
}

.action-card {
    min-height: 320px;

    padding: 30px;

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.action-card:first-child {
    border-left: 1px solid var(--border);
}

.card-number {
    color: var(--green);

    font-size: 12px;
    font-weight: 800;
}

.action-card h3 {
    margin: 38px 0 14px;

    font-size: 27px;
    line-height: 1.05;

    letter-spacing: -.03em;
}

.action-card p {
    color: var(--text-soft);
}

.action-card a {
    display: inline-block;

    margin-top: 22px;

    color: var(--green);

    font-weight: 750;
}

.section-territory {
    background: var(--surface-soft);
}

.territory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;

    align-items: center;
}

.territory-grid p {
    max-width: 650px;

    margin-bottom: 28px;
}

.territory-stats {
    display: grid;
    gap: 12px;
}

.stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding: 22px 0;

    border-bottom: 1px solid var(--border);
}

.stat strong {
    font-size: 54px;
    line-height: 1;
    letter-spacing: -.05em;
}

.stat span {
    max-width: 230px;

    color: var(--text-soft);
    text-align: right;
}

.section-dark {
    background: var(--dark);
    color: #fff;
}

.section-heading-dark p {
    color: rgba(255,255,255,.68);
}

.consultation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.consultation-card {
    min-height: 310px;

    display: flex;
    flex-direction: column;

    padding: 28px;

    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);

    background: var(--dark-soft);
}

.status-badge {
    align-self: flex-start;

    padding: 7px 10px;

    border-radius: 999px;

    background: rgba(255,255,255,.08);

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .08em;
}

.status-open {
    background: var(--green);
}

.consultation-card h3 {
    margin: 34px 0 14px;

    font-size: 28px;
    line-height: 1.1;

    letter-spacing: -.03em;
}

.consultation-card p {
    margin: 0;

    color: rgba(255,255,255,.65);
}

.consultation-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;

    margin-top: auto;
    padding-top: 28px;

    color: rgba(255,255,255,.52);

    font-size: 12px;
}

.section-transparency {
    background: #fff;
}

.transparency-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
}

.transparency-list {
    border-top: 1px solid var(--border);
}

.transparency-list > div {
    padding: 23px 0;

    display: flex;
    flex-direction: column;
    gap: 4px;

    border-bottom: 1px solid var(--border);
}

.transparency-list strong {
    font-size: 17px;
}

.transparency-list span {
    color: var(--text-soft);
}

.section-identity {
    background: var(--bg);
}

.identity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.identity-card {
    min-height: 430px;

    padding: 42px;

    display: flex;
    flex-direction: column;

    border-radius: var(--radius-lg);

    background: #fff;
}

.identity-card-accent {
    background: var(--green);
    color: #fff;
}

.identity-label {
    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .12em;
}

.identity-card h2 {
    margin-top: 54px;

    font-size: clamp(38px, 4vw, 56px);
}

.identity-card-accent p {
    color: rgba(255,255,255,.75);
}

.identity-card a {
    margin-top: auto;

    font-weight: 800;
}

.cta-section {
    padding: 90px 0;

    background: var(--green-dark);
    color: #fff;
}

.cta-inner {
    display: flex;
    justify-content: space-between;
    gap: 50px;

    align-items: end;
}

.cta-inner h2 {
    max-width: 800px;
}

.cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;

    justify-content: flex-end;
}

.site-footer {
    padding: 80px 0 30px;

    background: #09140f;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
}

.footer-brand {
    font-size: 24px;
    font-weight: 800;
}

.footer-grid p {
    max-width: 430px;

    color: rgba(255,255,255,.55);
}

.footer-grid h2 {
    margin: 0 0 16px;

    font-size: 13px;

    text-transform: uppercase;
    letter-spacing: .1em;
}

.footer-grid a {
    display: block;

    margin: 10px 0;

    color: rgba(255,255,255,.65);

    font-size: 14px;
}

.footer-grid a:hover {
    color: #fff;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 24px;

    display: flex;
    justify-content: space-between;
    gap: 20px;

    border-top: 1px solid rgba(255,255,255,.1);

    color: rgba(255,255,255,.42);

    font-size: 12px;
}

@media (max-width: 1100px) {

    .main-nav {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .hero-grid,
    .territory-grid,
    .transparency-grid {
        grid-template-columns: 1fr;
    }

    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .consultation-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

}

@media (max-width: 760px) {

    .container {
        width: min(
            calc(100% - 28px),
            var(--container)
        );
    }

    .site-header {
        position: relative;
    }

    .header-inner {
        min-height: 72px;
    }

    .brand-lockup {
        min-width: 0;
    }

    .brand-copy small {
        display: none;
    }

    .header-actions .btn-ghost {
        display: none;
    }

    .hero {
        padding: 56px 0 70px;
    }

    .hero-grid {
        gap: 45px;
    }

    .hero h1 {
        font-size: clamp(50px, 15vw, 76px);
    }

    .section {
        padding: 75px 0;
    }

    .action-grid,
    .identity-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .action-card {
        border-left: 1px solid var(--border);
    }

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

    .hero-panel {
        padding: 25px;
    }

    .cta-inner {
        align-items: start;
        flex-direction: column;
    }

    .cta-actions {
        justify-content: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
    }

}

/* =========================================================
   INNER PAGES
   ========================================================= */

.page-hero {
    padding: 100px 0 90px;

    background:
        radial-gradient(
            circle at 85% 25%,
            rgba(23,105,75,.14),
            transparent 28%
        ),
        var(--bg);
}

.page-hero h1 {
    max-width: 950px;

    margin: 0;

    font-size: clamp(54px, 7vw, 94px);
    line-height: .95;

    letter-spacing: -.06em;
}

.page-hero p {
    max-width: 760px;

    margin: 28px 0 0;

    color: var(--text-soft);

    font-size: 21px;
    line-height: 1.6;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 14px;
}

.feature-card {
    min-height: 220px;

    padding: 28px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--surface);
}

.feature-card h3 {
    margin: 0;

    font-size: 25px;
    line-height: 1.1;

    letter-spacing: -.03em;
}

.feature-card p {
    margin: 18px 0 0;

    color: var(--text-soft);
}

.commune-directory {
    max-width: 880px;
}

.directory-search {
    max-width: 720px;

    margin-top: 38px;
}

.directory-search label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 750;
}

@media (max-width: 1000px) {

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 640px) {

    .page-hero {
        padding: 65px 0 60px;
    }

    .page-hero h1 {
        font-size: clamp(46px, 14vw, 70px);
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   MUNICIPALITY DIRECTORY
   ========================================================= */

.municipality-results {
    margin-top: 50px;
}

.results-heading {
    display: flex;
    gap: 10px;
    align-items: baseline;

    padding-bottom: 18px;

    border-bottom: 1px solid var(--border);
}

.results-heading span {
    color: var(--text-soft);
}

.municipality-list {
    border-bottom: 1px solid var(--border);
}

.municipality-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    padding: 22px 0;

    border-bottom: 1px solid var(--border);
}

.municipality-result:hover strong {
    color: var(--green);
}

.municipality-result strong {
    display: block;

    font-size: 22px;
    letter-spacing: -.025em;
}

.municipality-alt-name {
    display: block;

    margin-top: 2px;

    color: var(--text-soft);
    font-size: 14px;
}

.municipality-result small {
    display: block;

    margin-top: 7px;

    color: var(--text-soft);
}

.municipality-result-meta {
    display: flex;
    align-items: center;
    gap: 16px;

    color: var(--text-soft);

    font-size: 13px;
}

.empty-state {
    padding: 60px 0;
}

.empty-state h2 {
    margin: 0;

    font-size: 34px;
}

.empty-state p {
    color: var(--text-soft);
}


/* =========================================================
   MUNICIPALITY PAGE
   ========================================================= */

.municipality-hero {
    padding: 80px 0 90px;

    background:
        radial-gradient(
            circle at 85% 30%,
            rgba(23,105,75,.16),
            transparent 32%
        ),
        var(--bg);
}

.back-link {
    display: inline-block;

    margin-bottom: 45px;

    color: var(--text-soft);

    font-size: 14px;
    font-weight: 700;
}

.municipality-hero h1 {
    margin: 0;

    font-size: clamp(64px, 10vw, 130px);
    line-height: .88;

    letter-spacing: -.07em;
}

.municipality-language-name {
    margin-top: 15px;

    color: var(--text-soft);

    font-size: 25px;
}

.municipality-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    margin-top: 38px;
}

.municipality-meta span,
.postal-list span {
    display: inline-flex;
    align-items: center;

    min-height: 34px;

    padding: 0 13px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: rgba(255,255,255,.55);

    font-size: 12px;
    font-weight: 700;
}

.postal-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 12px;
}

.postal-list span {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

@media (max-width: 700px) {

    .municipality-result {
        align-items: flex-start;
        flex-direction: column;
    }

    .municipality-result-meta {
        flex-wrap: wrap;
    }

}

/* =========================================================
   LOCAL MCB SPACE
   ========================================================= */

.local-space-status {
    padding: 40px 0;

    background: var(--surface-soft);
}

.local-space-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    padding: 34px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: #fff;
}

.local-space-panel h2 {
    margin: 0;

    font-size: clamp(30px, 4vw, 48px);
    line-height: 1;

    letter-spacing: -.045em;
}

.local-space-panel p {
    max-width: 720px;

    margin: 14px 0 0;

    color: var(--text-soft);
}

.local-space-state {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
}

.local-space-state span {
    padding: 8px 12px;

    border-radius: 999px;

    background: var(--green);
    color: #fff;

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .08em;
}

.local-space-state small {
    color: var(--text-soft);
}

@media (max-width: 760px) {

    .local-space-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .local-space-state {
        align-items: flex-start;
    }

}

/* =========================================================
   CITIZEN TABLE
   ========================================================= */

.citizen-table-section {
    padding: 0 0 45px;
    background: var(--surface-soft);
}

.citizen-table-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;

    padding: 36px;

    border-radius: var(--radius-lg);

    background: var(--dark);
    color: #fff;
}

.citizen-table-panel h2 {
    margin: 0;

    font-size: clamp(34px, 4vw, 54px);
    line-height: 1;

    letter-spacing: -.045em;
}

.citizen-table-panel p {
    max-width: 760px;

    margin: 16px 0 0;

    color: rgba(255,255,255,.68);
}

.citizen-table-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.citizen-table-meta span {
    padding: 8px 12px;

    border-radius: 999px;

    background: var(--green);

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .08em;
}

.citizen-table-meta small {
    color: rgba(255,255,255,.6);
}

@media (max-width: 760px) {

    .citizen-table-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .citizen-table-meta {
        align-items: flex-start;
    }

}

/* =========================================================
   CITIZEN TABLE DASHBOARD
   ========================================================= */

.citizen-table-dashboard {
    padding: 0 0 70px;
    background: var(--surface-soft);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.dashboard-stat {
    padding: 26px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: #fff;
}

.dashboard-stat strong {
    display: block;

    font-size: 38px;
    line-height: 1;

    letter-spacing: -.045em;
}

.dashboard-stat span {
    display: block;

    margin-top: 8px;

    color: var(--text-soft);
    font-size: 13px;
}

.citizen-table-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;

    margin-top: 45px;
}

.citizen-table-details h3 {
    margin: 0 0 20px;

    font-size: 26px;
    letter-spacing: -.03em;
}

.empty-inline {
    padding: 22px 0;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    color: var(--text-soft);
}

.member-item,
.meeting-item {
    padding: 17px 0;

    display: flex;
    justify-content: space-between;
    gap: 20px;

    border-bottom: 1px solid var(--border);
}

.member-item span,
.meeting-item span,
.meeting-item small {
    color: var(--text-soft);
    font-size: 13px;
}

.meeting-item {
    flex-direction: column;
    gap: 4px;
}

@media (max-width: 760px) {

    .dashboard-grid,
    .citizen-table-details {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   MUNICIPAL PARTICIPATION
   ========================================================= */

.municipality-participation {
    padding: 85px 0;

    background: #fff;
}

.participation-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 50px;

    margin-bottom: 55px;
}

.participation-heading h2 {
    max-width: 780px;

    margin: 0;

    font-size: clamp(40px, 5vw, 68px);
    line-height: .98;

    letter-spacing: -.055em;
}

.participation-heading p {
    max-width: 650px;

    margin: 18px 0 0;

    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.6;
}

.participation-counters {
    display: flex;
    gap: 10px;
}

.participation-counters > div {
    min-width: 130px;

    padding: 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: var(--surface-soft);
}

.participation-counters strong {
    display: block;

    font-size: 34px;
    line-height: 1;

    letter-spacing: -.045em;
}

.participation-counters span {
    display: block;

    margin-top: 7px;

    color: var(--text-soft);
    font-size: 12px;
}


.participation-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.participation-column {
    padding: 30px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: var(--surface-soft);
}

.participation-column-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 25px;

    margin-bottom: 32px;
}

.participation-column-heading h3 {
    margin: 0;

    font-size: 31px;
    line-height: 1;

    letter-spacing: -.04em;
}

.text-link {
    color: var(--green);

    font-size: 13px;
    font-weight: 750;

    white-space: nowrap;
}


.participation-empty {
    min-height: 300px;

    padding: 35px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    border-radius: var(--radius-md);

    background: #fff;
}

.participation-empty-number {
    margin-bottom: auto;

    color: var(--green);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: .1em;
}

.participation-empty h4 {
    max-width: 390px;

    margin: 35px 0 0;

    font-size: 28px;
    line-height: 1.05;

    letter-spacing: -.035em;
}

.participation-empty p {
    max-width: 460px;

    margin: 14px 0 0;

    color: var(--text-soft);
    line-height: 1.55;
}


.proposal-list,
.consultation-list {
    display: grid;
    gap: 10px;
}

.proposal-card,
.consultation-local-card {
    padding: 25px;

    border-radius: var(--radius-md);

    background: #fff;
}

.proposal-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.proposal-type {
    color: var(--text-soft);

    font-size: 11px;
    font-weight: 750;

    text-transform: uppercase;
    letter-spacing: .08em;
}

.proposal-card h4,
.consultation-local-card h4 {
    margin: 22px 0 0;

    font-size: 25px;
    line-height: 1.08;

    letter-spacing: -.035em;
}

.proposal-card p,
.consultation-local-card p {
    margin: 12px 0 0;

    color: var(--text-soft);
    line-height: 1.55;
}

.proposal-footer,
.consultation-local-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;

    margin-top: 22px;
    padding-top: 16px;

    border-top: 1px solid var(--border);

    color: var(--text-soft);
    font-size: 12px;
}


@media (max-width: 900px) {

    .participation-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .participation-columns {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 620px) {

    .participation-counters {
        width: 100%;
    }

    .participation-counters > div {
        flex: 1;
        min-width: 0;
    }

    .participation-column-heading {
        flex-direction: column;
    }

}

/* =========================================================
   PUBLIC PROPOSAL
   ========================================================= */

.proposal-hero {
    padding: 75px 0 90px;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(23,105,75,.16),
            transparent 30%
        ),
        var(--bg);
}

.proposal-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;

    margin-bottom: 26px;

    color: var(--text-soft);

    font-size: 12px;
    font-weight: 750;

    text-transform: uppercase;
    letter-spacing: .08em;
}

.proposal-hero h1 {
    max-width: 1050px;

    margin: 0;

    font-size: clamp(52px, 7vw, 96px);
    line-height: .95;

    letter-spacing: -.06em;
}

.proposal-summary {
    max-width: 820px;

    margin: 28px 0 0;

    color: var(--text-soft);

    font-size: 21px;
    line-height: 1.55;
}

.proposal-main-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 45px;
}

.proposal-main-stats > div {
    min-width: 150px;

    padding: 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: rgba(255,255,255,.6);
}

.proposal-main-stats strong {
    display: block;

    font-size: 24px;
    line-height: 1;
}

.proposal-main-stats span {
    display: block;

    margin-top: 7px;

    color: var(--text-soft);
    font-size: 12px;
}

.proposal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr);
    gap: 70px;
}

.proposal-body {
    margin-top: 24px;

    font-size: 18px;
    line-height: 1.75;
}

.proposal-info-card {
    padding: 28px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: var(--surface-soft);
}

.proposal-info-card dl {
    margin: 25px 0 0;
}

.proposal-info-card dl > div {
    padding: 14px 0;

    display: flex;
    justify-content: space-between;
    gap: 20px;

    border-bottom: 1px solid var(--border);
}

.proposal-info-card dt {
    color: var(--text-soft);
}

.proposal-info-card dd {
    margin: 0;

    font-weight: 700;
    text-align: right;
}

.proposal-history {
    padding: 80px 0;

    background: var(--surface-soft);
}

.proposal-timeline {
    max-width: 850px;

    margin-top: 40px;
}

.proposal-timeline-item {
    position: relative;

    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 18px;

    padding-bottom: 28px;
}

.proposal-timeline-item::before {
    content: "";

    position: absolute;
    left: 6px;
    top: 15px;
    bottom: 0;

    width: 1px;

    background: var(--border);
}

.proposal-timeline-item:last-child::before {
    display: none;
}

.proposal-timeline-marker {
    position: relative;
    z-index: 1;

    width: 13px;
    height: 13px;

    margin-top: 4px;

    border-radius: 50%;

    background: var(--green);
}

.proposal-timeline-item strong {
    display: block;

    font-size: 20px;
}

.proposal-timeline-item span {
    display: block;

    margin-top: 4px;

    color: var(--text-soft);
    font-size: 12px;
}

.proposal-timeline-item p {
    margin: 10px 0 0;

    color: var(--text-soft);
}

@media (max-width: 850px) {

    .proposal-layout {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   AUTH
   ========================================================= */

.auth-section {
    padding: 90px 0;

    min-height: 70vh;

    background: var(--bg);
}

.auth-container {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 80px;
    align-items: start;
}

.auth-intro h1 {
    max-width: 760px;

    margin: 0;

    font-size: clamp(48px, 6vw, 78px);
    line-height: .96;

    letter-spacing: -.06em;
}

.auth-intro p {
    max-width: 620px;

    margin-top: 24px;

    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.6;
}

.auth-card {
    padding: 36px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background: #fff;
}

.auth-card h2 {
    margin: 0 0 28px;

    font-size: 35px;
    letter-spacing: -.04em;
}

.auth-form {
    display: grid;
    gap: 22px;
}

.auth-form label {
    display: grid;
    gap: 8px;

    font-weight: 700;
}

.auth-form input {
    width: 100%;

    padding: 14px 15px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: #fff;

    font: inherit;
}

.auth-form small {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 400;
}

.form-error {
    margin-bottom: 20px;
    padding: 14px;

    border-radius: 10px;

    background: #fff1f1;
}

.dev-token-warning {
    margin-top: 30px;
    padding: 18px;

    border: 1px dashed var(--border);
    border-radius: 10px;

    background: var(--surface-soft);
}

.dev-token-warning code {
    display: block;

    margin-top: 10px;

    overflow-wrap: anywhere;
}

@media (max-width: 850px) {

    .auth-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

}

/* Authentication propagation — Civic System V2 */
.auth-card {
    box-shadow: var(--shadow-sm);
}

.auth-card h1,
.auth-card h2 {
    color: var(--cdb-black);
}

.auth-form input:focus {
    border-color: var(--primary);
    box-shadow: var(--focus-ring);
    outline: none;
}

.registration-legal a {
    color: var(--primary);
}

/* =========================================================
   LEGAL DOCUMENTS
   ========================================================= */

.legal-hero {
    padding: 75px 0 55px;
    background: var(--bg);
}

.legal-hero h1 {
    max-width: 900px;
    margin: 0;

    font-size: clamp(44px, 6vw, 76px);
    line-height: .98;
    letter-spacing: -.055em;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 28px;
}

.legal-meta span {
    padding: 8px 12px;

    border: 1px solid var(--border);
    border-radius: 999px;

    font-size: 12px;
}

.legal-content-section {
    padding: 60px 0 90px;
}

.legal-draft-warning {
    margin-bottom: 30px;
    padding: 18px 20px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface-soft);

    font-weight: 700;
}

.legal-document {
    max-width: 920px;
}

.legal-document pre {
    margin: 0;

    white-space: pre-wrap;
    overflow-wrap: anywhere;

    font-family: inherit;
    font-size: 16px;
    line-height: 1.7;
}

.registration-legal {
    display: grid;
    gap: 9px;

    padding: 18px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: var(--surface-soft);
}

.registration-legal a {
    color: var(--green);
    font-weight: 700;
}

.registration-closed {
    margin-top: 8px;
    padding-top: 12px;

    border-top: 1px solid var(--border);

    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.5;
}

.auth-form button:disabled {
    opacity: .45;
    cursor: not-allowed;
}


/* =========================================================
   A6.7 — ACTIVE APPLICATION FINAL PREMIUM UI
   Final visual authority for the complete citizen journey
   ========================================================= */

:root {
    --active-green: var(--green, #17694b);
    --active-green-dark: #10533b;
    --active-green-soft: #edf7f2;
    --active-ink: var(--text, #18332a);
    --active-muted: var(--text-soft, #66756f);
    --active-line: rgba(20, 55, 43, .105);
    --active-surface: #ffffff;
    --active-surface-soft: #f8faf9;
    --active-shadow:
        0 1px 2px rgba(14, 39, 30, .025),
        0 18px 50px rgba(14, 39, 30, .045);
}


/* =========================================================
   1. GLOBAL PAGE RHYTHM
   ========================================================= */

.active-application-page,
.active-application-form {
    width: min(100%, 1460px);
    margin-inline: auto;
}

.active-application-form {
    position: relative;
    padding-bottom: 90px;
}

.active-application-form form {
    width: 100%;
}


/* =========================================================
   2. PROGRESS — PREMIUM JOURNEY
   ========================================================= */

.active-progress {
    position: relative;

    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));

    gap: 12px;

    margin: 38px 0 48px;
    padding: 18px;

    border: 1px solid var(--active-line);
    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(248, 251, 249, .98),
            rgba(255, 255, 255, .98)
        );

    box-shadow:
        0 8px 28px rgba(14, 39, 30, .035);
}

.active-progress span {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 72px;

    padding: 10px 10px 10px 54px;

    border: 1px solid transparent;
    border-radius: 14px;

    color: var(--active-muted);

    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;

    transition:
        background .18s ease,
        border-color .18s ease,
        transform .18s ease;
}

.active-progress span::before {
    display: none;
}

.active-progress strong {
    position: absolute;
    top: 50%;
    left: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    margin: 0;

    transform: translateY(-50%);

    border: 1px solid rgba(23, 105, 75, .12);
    border-radius: 50%;

    background: var(--active-green-soft);

    color: var(--active-green);

    font-size: 11px;
    font-weight: 850;
    letter-spacing: .04em;
}

.active-progress span:hover {
    transform: translateY(-1px);

    border-color: rgba(23, 105, 75, .10);
    background: rgba(23, 105, 75, .025);
}


/* =========================================================
   3. EACH STEP = PREMIUM CONTENT PANEL
   ========================================================= */

.active-step {
    position: relative;

    margin: 28px 0 0;
    padding: 42px 42px 46px;

    overflow: hidden;

    border: 1px solid var(--active-line);
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(250, 252, 251, .98) 100%
        );

    box-shadow: var(--active-shadow);
}

.active-step + .active-step {
    margin-top: 26px;
    padding-top: 42px;
    border-top: 1px solid var(--active-line);
}

.active-step::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--active-green),
            rgba(23, 105, 75, .22) 42%,
            transparent 78%
        );
}


/* =========================================================
   4. STEP HEADERS
   ========================================================= */

.active-step-heading {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: flex-start;

    gap: 18px;

    margin: 0 0 34px;
    padding-bottom: 25px;

    border-bottom: 1px solid rgba(20, 55, 43, .08);
}

.active-step-heading > .card-number {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    margin: 0;

    border-radius: 16px;

    background: var(--active-green-soft);

    color: var(--active-green);

    font-size: 13px;
    font-weight: 900;
    letter-spacing: .06em;

    box-shadow:
        inset 0 0 0 1px rgba(23, 105, 75, .07);
}

.active-step-heading .eyebrow {
    display: block;

    margin: 3px 0 0;

    color: var(--active-green);

    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.active-step-heading h2 {
    max-width: 1050px;

    margin: 8px 0 0;

    color: var(--active-ink);

    font-size: clamp(28px, 2.8vw, 39px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.035em;
}


/* =========================================================
   5. COLOUR CODING OF THE SIX STEPS
   ========================================================= */

.active-step:nth-of-type(1) .active-step-heading > .card-number {
    color: #2878b8;
    background: #eaf4fb;
}

.active-step:nth-of-type(2) .active-step-heading > .card-number {
    color: #438b68;
    background: #eaf6ef;
}

.active-step:nth-of-type(3) .active-step-heading > .card-number {
    color: var(--active-green);
    background: #e9f5ef;
}

.active-step:nth-of-type(4) .active-step-heading > .card-number {
    color: #b65d64;
    background: #fbecef;
}

.active-step:nth-of-type(5) .active-step-heading > .card-number {
    color: #b98528;
    background: #fbf3df;
}

.active-step:nth-of-type(6) .active-step-heading > .card-number {
    color: #795ca8;
    background: #f1ecf8;
}


/* =========================================================
   6. IDENTITY / INFORMATION CARDS
   ========================================================= */

.active-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;

    margin: 0 0 28px;
}

.active-field {
    min-width: 0;

    padding: 20px 22px;

    border: 1px solid rgba(20, 55, 43, .09);
    border-radius: 15px;

    background:
        linear-gradient(
            145deg,
            #fbfcfb,
            #f6f9f7
        );

    transition:
        border-color .17s ease,
        box-shadow .17s ease,
        transform .17s ease;
}

.active-field:hover {
    transform: translateY(-1px);

    border-color: rgba(23, 105, 75, .20);

    box-shadow:
        0 8px 22px rgba(14, 39, 30, .04);
}

.active-label {
    display: block;

    color: var(--active-muted);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.active-field strong {
    display: block;

    margin-top: 7px;

    color: var(--active-ink);

    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}


/* =========================================================
   7. FORM LABELS
   ========================================================= */

.active-step > label:not(.active-choice),
.active-field > label {
    display: block;

    margin: 25px 0 9px;

    color: var(--active-ink);

    font-size: 14px;
    font-weight: 780;
    line-height: 1.45;
}


/* =========================================================
   8. TEXT FIELDS
   ========================================================= */

.active-step input[type="text"],
.active-step input[type="email"],
.active-step input[type="tel"],
.active-step input[type="number"],
.active-step input[type="date"],
.active-step textarea,
.active-step select {
    box-sizing: border-box;

    width: 100%;

    padding: 15px 17px;

    border: 1px solid rgba(20, 55, 43, .14);
    border-radius: 12px;

    outline: none;

    background: #fff;

    color: var(--active-ink);

    font: inherit;
    font-size: 15px;
    line-height: 1.5;

    box-shadow:
        inset 0 1px 1px rgba(14, 39, 30, .015),
        0 1px 2px rgba(14, 39, 30, .018);

    transition:
        border-color .17s ease,
        box-shadow .17s ease,
        transform .17s ease;
}

.active-step textarea {
    display: block;

    min-height: 135px;

    resize: vertical;
}

.active-step textarea[rows="6"] {
    min-height: 175px;
}

.active-step input:hover,
.active-step textarea:hover,
.active-step select:hover {
    border-color: rgba(23, 105, 75, .30);
}

.active-step input[type="text"]:focus,
.active-step input[type="email"]:focus,
.active-step input[type="tel"]:focus,
.active-step input[type="number"]:focus,
.active-step input[type="date"]:focus,
.active-step textarea:focus,
.active-step select:focus {
    border-color: var(--active-green);

    background: #fff;

    box-shadow:
        0 0 0 4px rgba(23, 105, 75, .075),
        0 6px 18px rgba(23, 105, 75, .055);
}


/* =========================================================
   9. HELP TEXT
   ========================================================= */

.active-help {
    max-width: 900px;

    margin: 9px 0 0;

    color: var(--active-muted);

    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   10. CHOICE GROUPS — INTERESTS / SKILLS / VALUES
   ========================================================= */

.active-choice-group {
    margin: 25px 0 0;
    padding: 24px;

    border: 1px solid rgba(20, 55, 43, .09);
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            rgba(249, 251, 250, .95),
            rgba(255, 255, 255, .96)
        );
}

.active-choice-group > legend {
    padding: 0 9px;

    color: var(--active-ink);

    font-size: 16px;
    font-weight: 800;
}

.active-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 10px;

    margin-top: 7px;
}

.active-choice {
    position: relative;

    display: flex;
    align-items: flex-start;

    min-width: 0;

    gap: 10px;

    margin: 0;
    padding: 13px 14px;

    border: 1px solid rgba(20, 55, 43, .07);
    border-radius: 11px;

    background: rgba(255, 255, 255, .86);

    color: var(--active-ink);

    cursor: pointer;

    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;

    transition:
        transform .15s ease,
        border-color .15s ease,
        background .15s ease,
        box-shadow .15s ease;
}

.active-choice:hover {
    transform: translateY(-1px);

    border-color: rgba(23, 105, 75, .20);

    background: var(--active-green-soft);

    box-shadow:
        0 5px 15px rgba(14, 39, 30, .035);
}

.active-choice input[type="checkbox"],
.active-choice input[type="radio"] {
    flex: 0 0 auto;

    width: 18px;
    height: 18px;

    margin: 1px 0 0;

    accent-color: var(--active-green);

    cursor: pointer;
}


/* =========================================================
   11. ENGAGEMENT PATH CARDS — FINAL AUTHORITY
   ========================================================= */

.active-path-group {
    margin: 30px 0 0;
    padding: 0;

    border: 0;
}

.active-path-group > legend {
    margin: 0;
    padding: 0;

    color: var(--active-ink);

    font-size: clamp(21px, 2vw, 27px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.active-path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 16px;

    margin-top: 25px;
}

.active-path-card {
    position: relative;

    display: block;

    min-width: 0;

    cursor: pointer;
}

.active-path-card > input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    overflow: hidden;

    pointer-events: none;
}

.active-path-content {
    position: relative;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    height: 100%;
    min-height: 230px;

    padding: 28px;

    overflow: hidden;

    border: 1px solid rgba(20, 55, 43, .11);
    border-radius: 17px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f9fbfa
        );

    box-shadow:
        0 1px 2px rgba(14, 39, 30, .02),
        0 8px 24px rgba(14, 39, 30, .035);

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.active-path-content::before {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: inherit;

    background:
        radial-gradient(
            circle at 0 0,
            rgba(23, 105, 75, .055),
            transparent 46%
        );

    opacity: 0;
    pointer-events: none;

    transition: opacity .18s ease;
}

.active-path-content::after {
    content: "";

    position: absolute;
    top: 29px;
    right: 27px;

    box-sizing: border-box;

    width: 20px;
    height: 20px;

    border: 2px solid rgba(20, 55, 43, .27);
    border-radius: 50%;

    background: #fff;

    box-shadow: inset 0 0 0 4px #fff;
}

.active-path-icon {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    border-radius: 16px;
}

.active-path-icon svg {
    width: 27px;
    height: 27px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.active-path-number {
    position: absolute;
    top: 34px;
    right: 61px;
    z-index: 2;

    color: rgba(20, 55, 43, .38);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: .09em;
}

.active-path-content strong {
    position: relative;
    z-index: 2;

    display: block;

    margin-top: 25px;
    padding-right: 8px;

    color: var(--active-ink);

    font-size: clamp(18px, 1.45vw, 22px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.022em;
}

.active-path-content > span:last-child {
    position: relative;
    z-index: 2;

    display: block;

    margin-top: 11px;

    color: var(--active-muted);

    font-size: 14px;
    line-height: 1.52;
}

.active-path-card:hover .active-path-content {
    transform: translateY(-3px);

    border-color: rgba(23, 105, 75, .28);

    box-shadow:
        0 14px 34px rgba(14, 39, 30, .07);
}

.active-path-card:hover .active-path-content::before {
    opacity: 1;
}

.active-path-card > input:checked + .active-path-content {
    transform: translateY(-1px);

    border-color: var(--active-green);

    background:
        linear-gradient(
            145deg,
            #f7fcf9,
            #eef8f3
        );

    box-shadow:
        0 0 0 3px rgba(23, 105, 75, .06),
        0 14px 32px rgba(23, 105, 75, .09);
}

.active-path-card > input:checked
+ .active-path-content::before {
    opacity: 1;
}

.active-path-card > input:checked
+ .active-path-content::after {
    border-color: var(--active-green);
    background: var(--active-green);
}

.active-path-card > input:checked
+ .active-path-content .active-path-icon {
    color: #fff;
    background: var(--active-green);

    box-shadow:
        0 7px 18px rgba(23, 105, 75, .18);
}

.active-path-card > input:checked
+ .active-path-content strong {
    color: var(--active-green-dark);
}

.active-path-card > input:focus-visible
+ .active-path-content {
    outline: 3px solid rgba(23, 105, 75, .25);
    outline-offset: 3px;
}


/* Six civic colours */

.active-path-icon--compass {
    color: #2878b8;
    background: #eaf4fb;
}

.active-path-icon--sprout {
    color: #438b68;
    background: #eaf6ef;
}

.active-path-icon--people {
    color: var(--active-green);
    background: #e8f4ee;
}

.active-path-icon--team {
    color: #b65d64;
    background: #fbecef;
}

.active-path-icon--progress {
    color: #b98528;
    background: #fbf3df;
}

.active-path-icon--location {
    color: #795ca8;
    background: #f1ecf8;
}


/* =========================================================
   12. STANDALONE CHECKBOX / RADIO LINES
   ========================================================= */

.active-step > label:has(input[type="checkbox"]),
.active-step > label:has(input[type="radio"]) {
    display: flex;
    align-items: flex-start;

    gap: 11px;

    margin: 17px 0 0;
    padding: 14px 16px;

    border: 1px solid rgba(20, 55, 43, .08);
    border-radius: 11px;

    background: #fafcfb;

    color: var(--active-ink);

    cursor: pointer;

    font-size: 14px;
    font-weight: 650;
}

.active-step > label:has(input[type="checkbox"]):hover,
.active-step > label:has(input[type="radio"]):hover {
    border-color: rgba(23, 105, 75, .20);
    background: var(--active-green-soft);
}

.active-step > label:has(input[type="checkbox"]) input,
.active-step > label:has(input[type="radio"]) input {
    flex: 0 0 auto;

    width: 18px;
    height: 18px;

    margin: 1px 0 0;

    accent-color: var(--active-green);
}


/* =========================================================
   13. FORM ACTION ZONE
   ========================================================= */

.active-form-actions,
.active-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
    padding-top: 27px;

    border-top: 1px solid rgba(20, 55, 43, .09);
}

.active-form-actions button,
.active-actions button,
.active-form-actions a,
.active-actions a {
    box-sizing: border-box;

    min-height: 48px;

    padding: 13px 22px;

    border-radius: 999px;

    font-size: 14px;
    font-weight: 800;

    transition:
        transform .15s ease,
        box-shadow .15s ease;
}

.active-form-actions button:hover,
.active-actions button:hover,
.active-form-actions a:hover,
.active-actions a:hover {
    transform: translateY(-1px);
}


/* =========================================================
   14. VALIDATION / ERROR
   ========================================================= */

.active-error,
.active-step .error,
.active-step .field-error {
    margin: 8px 0 0;

    color: #a13f3a;

    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

.active-step [aria-invalid="true"] {
    border-color: #b85f58;

    box-shadow:
        0 0 0 4px rgba(184, 95, 88, .07);
}


/* =========================================================
   15. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .active-step *,
    .active-progress *,
    .active-path-card *,
    .active-choice {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}


/* =========================================================
   16. TABLET
   ========================================================= */

@media (max-width: 1100px) {
    .active-progress {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .active-path-grid,
    .active-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .active-step {
        padding: 34px;
    }
}


/* =========================================================
   17. MOBILE
   ========================================================= */

@media (max-width: 720px) {
    .active-application-form {
        padding-bottom: 55px;
    }

    .active-progress {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 6px;

        margin: 25px 0 32px;
        padding: 10px;

        border-radius: 15px;
    }

    .active-progress span {
        min-height: 60px;

        padding-left: 46px;

        font-size: 11px;
    }

    .active-progress strong {
        width: 30px;
        height: 30px;
    }

    .active-step {
        margin-top: 18px;
        padding: 25px 20px 29px;

        border-radius: 17px;
    }

    .active-step + .active-step {
        margin-top: 18px;
        padding-top: 25px;
    }

    .active-step-heading {
        gap: 13px;

        margin-bottom: 25px;
        padding-bottom: 20px;
    }

    .active-step-heading > .card-number {
        width: 43px;
        height: 43px;

        border-radius: 13px;
    }

    .active-step-heading h2 {
        font-size: 27px;
    }

    .active-field-grid,
    .active-choice-grid,
    .active-path-grid {
        grid-template-columns: 1fr;
    }

    .active-choice-group {
        padding: 17px;
    }

    .active-path-content {
        min-height: 0;

        padding: 22px;
    }

    .active-path-content::after {
        top: 23px;
        right: 22px;
    }

    .active-path-number {
        top: 28px;
        right: 55px;
    }

    .active-path-content strong {
        margin-top: 20px;

        font-size: 20px;
    }

    .active-form-actions,
    .active-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .active-form-actions button,
    .active-actions button,
    .active-form-actions a,
    .active-actions a {
        width: 100%;

        text-align: center;
    }
}

/* A13 ACCESSIBILITY BASELINE */

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;

    padding: 12px 18px;

    border-radius: 8px;

    background: var(--dark);
    color: #fff;

    font-weight: 750;

    transform: translateY(-180%);
    transition: transform .15s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.skip-target {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

:where(
    a,
    button,
    input,
    select,
    textarea,
    [tabindex]
):focus-visible {
    outline: 3px solid #f0b429;
    outline-offset: 3px;
}

@media (max-width: 1100px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 14px 22px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .main-nav {
        display: flex;
        order: 3;
        width: 100%;
        gap: 18px;
        margin-left: 0;
        padding: 4px 2px 8px;

        overflow-x: auto;
        scrollbar-width: thin;
    }

    .main-nav a {
        flex: 0 0 auto;
        min-height: 40px;

        display: inline-flex;
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
/* Legacy enrichment administration */
.admin-enrichment {
    padding: 3rem 0;
}

.admin-enrichment-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.admin-enrichment-stats .stat-card {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border: 1px solid #d9e1df;
    border-radius: 0.75rem;
    background: #fff;
}

.admin-enrichment-stats strong {
    font-size: 1.6rem;
}

.admin-enrichment fieldset {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
}

.admin-enrichment label {
    display: grid;
    gap: 0.4rem;
}

.admin-enrichment-table-scroll {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.admin-enrichment-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.admin-enrichment-table th,
.admin-enrichment-table td {
    padding: 0.8rem;
    border-bottom: 1px solid #d9e1df;
    text-align: left;
    vertical-align: top;
}

.admin-enrichment-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.admin-enrichment .notice {
    margin: 1.5rem 0;
    padding: 1rem;
    border-left: 4px solid #176b5b;
    background: #edf7f4;
}

.admin-enrichment dl {
    display: grid;
    grid-template-columns: minmax(10rem, 14rem) 1fr;
    gap: 0.65rem 1rem;
}

.admin-enrichment dt {
    font-weight: 700;
}

.admin-enrichment form + form,
.admin-enrichment section + section {
    margin-top: 1.5rem;
}

.admin-enrichment textarea {
    min-height: 7rem;
}

@media (max-width: 700px) {
    .admin-enrichment dl {
        grid-template-columns: 1fr;
    }

    .admin-enrichment dd {
        margin-left: 0;
    }
}


/* =========================================================
   CDB CIVIC SYSTEM V2 — PUBLIC FOUNDATION
   ========================================================= */

body { background:var(--bg); color:var(--text); font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
::selection { background:var(--primary-soft); color:var(--primary-dark); }
.container { width:min(calc(100% - 64px),var(--container)); }

.site-header { background:rgba(255,255,255,.88); border-bottom:1px solid rgba(16,18,22,.08); box-shadow:0 1px 0 rgba(255,255,255,.72); backdrop-filter:saturate(180%) blur(22px); -webkit-backdrop-filter:saturate(180%) blur(22px); }
.header-inner { min-height:76px; gap:28px; }
.brand-lockup { min-width:238px; gap:13px; }
.brand-mark { width:46px; height:46px; flex:0 0 46px; border:1px solid rgba(23,105,170,.16); background:linear-gradient(145deg,#fff 0%,var(--primary-soft) 100%); color:var(--primary); box-shadow:var(--shadow-sm); font-size:13px; font-weight:850; letter-spacing:-.045em; }
.brand-copy strong { color:var(--text); font-size:15px; font-weight:760; letter-spacing:-.025em; }
.brand-copy small { color:var(--text-muted); font-size:10.5px; font-weight:550; letter-spacing:.015em; }
.main-nav { gap:4px; }
.main-nav a { min-height:42px; display:inline-flex; align-items:center; padding:0 13px; border-radius:var(--radius-pill); color:#4f565f; font-size:13.5px; font-weight:650; transition:color var(--transition-fast),background var(--transition-fast); }
.main-nav a:hover { background:var(--surface-soft); color:var(--text); }
.header-actions { align-items:center; gap:8px; min-width:0; }
.header-user { max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text-soft); font-size:13px; font-weight:650; }
.header-logout-form { margin:0; }

@media (max-width:760px) {
    .header-actions { margin-left:auto; }
    .header-user { max-width:110px; }
    .header-logout-form { display:none; }
}

.btn { min-height:46px; padding:0 20px; border-radius:var(--radius-pill); font-size:13.5px; font-weight:720; letter-spacing:-.01em; box-shadow:none; transition:transform var(--transition-fast),box-shadow var(--transition-fast),background-color var(--transition-fast),border-color var(--transition-fast),color var(--transition-fast); }
.btn:hover { transform:translateY(-1px); }
.btn:active { transform:translateY(0); }
.btn-primary { border-color:var(--primary); background:var(--primary); color:#fff; box-shadow:0 7px 18px rgba(23,105,170,.16); }
.btn-primary:hover { border-color:var(--primary-dark); background:var(--primary-dark); box-shadow:0 10px 24px rgba(23,105,170,.20); }
.btn-secondary,.btn-ghost { border-color:var(--border); background:rgba(255,255,255,.82); color:var(--text); }
.btn-secondary:hover,.btn-ghost:hover { border-color:var(--border-strong); background:#fff; }
.btn-large { min-height:56px; padding:0 26px; font-size:15px; }

.hero { position:relative; overflow:hidden; padding:112px 0 124px; background:radial-gradient(circle at 88% 12%,rgba(23,105,170,.10),transparent 31%),radial-gradient(circle at 75% 70%,rgba(36,155,90,.045),transparent 27%),linear-gradient(180deg,#fff 0%,var(--bg) 100%); }
.hero::before { position:absolute; top:0; left:50%; width:min(100%,1440px); height:1px; content:""; transform:translateX(-50%); background:linear-gradient(90deg,transparent,rgba(23,105,170,.22),rgba(214,59,59,.15),rgba(36,155,90,.18),rgba(242,194,48,.18),transparent); }
.hero h1,.page-hero h1,.municipality-hero h1,.proposal-hero h1 { color:var(--cdb-black); font-weight:720; text-wrap:balance; }
.hero p,.page-hero p,.proposal-summary { text-wrap:pretty; }
.hero-panel { border:1px solid var(--border); background:rgba(255,255,255,.82); box-shadow:var(--shadow); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }
.page-hero,.municipality-hero,.proposal-hero { position:relative; overflow:hidden; background:radial-gradient(circle at 88% 18%,rgba(23,105,170,.085),transparent 29%),linear-gradient(180deg,#fff 0%,var(--bg) 100%); }
.page-hero { padding:108px 0 98px; }
.page-hero h1 { font-size:clamp(50px,6.7vw,88px); }
.page-hero p { color:var(--text-soft); }

.section { padding:120px 0; }
.section-light,.section-transparency,.municipality-participation { background:#fff; }
.section-territory,.local-space-status,.citizen-table-dashboard,.proposal-history { background:var(--surface-soft); }
.section-heading { margin-bottom:58px; }
.section-heading h2,.territory-grid h2,.transparency-grid h2,.identity-card h2,.cta-inner h2,.participation-heading h2 { color:var(--cdb-black); font-weight:700; letter-spacing:-.055em; text-wrap:balance; }

.action-grid { gap:14px; border-top:0; }
.action-card { display:flex; flex-direction:column; min-height:330px; padding:32px; border:1px solid var(--border); border-radius:var(--radius-md); background:var(--surface); box-shadow:var(--shadow-sm); transition:transform var(--transition-ui),box-shadow var(--transition-ui),border-color var(--transition-ui); }
.action-card:first-child { border-left:1px solid var(--border); }
.action-card-action:hover { transform:translateY(-4px); border-color:rgba(23,105,170,.20); box-shadow:var(--shadow-md); }
.action-card-action a { margin-top:auto; padding-top:22px; }
.card-number,.action-card a,.text-link,.participation-empty-number { color:var(--primary); }
.action-card h3 { color:var(--cdb-black); font-weight:700; }
.feature-card,.dashboard-stat,.proposal-card,.consultation-local-card,.proposal-info-card,.local-space-panel { border:1px solid var(--border); background:var(--surface); box-shadow:var(--shadow-sm); }
.section-dark,.citizen-table-panel { background:radial-gradient(circle at 90% 10%,rgba(23,105,170,.20),transparent 30%),var(--dark); }
.consultation-card { border-color:rgba(255,255,255,.11); background:rgba(255,255,255,.055); box-shadow:inset 0 1px 0 rgba(255,255,255,.035); }
.status-open,.local-space-state span,.citizen-table-meta span { background:var(--success); }

input,select,textarea { border-color:var(--border); border-radius:var(--radius-sm); }
input:focus,select:focus,textarea:focus { border-color:var(--primary); box-shadow:var(--focus-ring); outline:none; }
:where(a,button,input,select,textarea,[tabindex]):focus-visible { outline:3px solid var(--primary); outline-offset:3px; }

@media (max-width:1100px) { .container { width:min(calc(100% - 40px),var(--container)); } .header-inner { min-height:70px; } }
@media (max-width:760px) { .container { width:min(calc(100% - 28px),var(--container)); } .hero { padding:76px 0 84px; } .page-hero,.municipality-hero,.proposal-hero { padding-top:68px; padding-bottom:72px; } .section { padding:82px 0; } .section-heading { margin-bottom:38px; } .action-card { min-height:0; padding:26px; } .brand-copy small { display:none; } .brand-lockup { min-width:auto; } }
@media (prefers-reduced-motion:reduce) { .action-card:hover,.btn:hover { transform:none; } }


/* Citizen space propagation — Civic System V2 */
.commune-directory {
    max-width: 100%;
}

.commune-directory > .empty-state + .empty-state,
.commune-directory > .empty-state + section,
.commune-directory > section + .empty-state {
    margin-top: 18px;
}

.active-status-panel,
.active-summary-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.active-status-panel {
    padding: 32px;
    margin-bottom: 18px;
}

.active-status-panel h2,
.active-summary-card strong {
    color: var(--cdb-black);
}

.active-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.active-summary-card {
    padding: 24px;
}

.active-summary-card > span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
}

.active-summary-card > strong {
    font-size: 18px;
}

@media (max-width:760px) {
    .active-status-panel {
        padding: 26px;
    }

    .active-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Coordination workspace propagation — Civic System V2 */
.coordinator-workspaces {
    display: grid;
    gap: 18px;
}

.coordinator-workspace-card,
.coordinator-table-card,
.coordinator-meeting-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.coordinator-workspace-card {
    padding: 36px;
}

.coordinator-workspace-card > span {
    color: var(--primary);
    font-size: 11px;
    font-weight: 780;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.coordinator-workspace-card h2,
.coordinator-workspace-card h3,
.coordinator-workspace-card h4,
.coordinator-workspace-card h5 {
    color: var(--cdb-black);
}

.coordinator-section {
    margin-top: 30px;
}

.coordinator-table-card {
    margin-top: 14px;
    padding: 26px;
}

.coordinator-meeting-form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
    padding: 22px;
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.coordinator-meeting-form p {
    margin: 0;
}

.coordinator-meeting-form label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.coordinator-meetings {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.coordinator-meeting-card {
    padding: 20px;
}

.coordinator-meeting-card form {
    display: inline-block;
    margin: 6px 8px 6px 0;
}

@media (max-width:760px) {
    .coordinator-workspace-card {
        padding: 26px;
    }

    .coordinator-table-card,
    .coordinator-meeting-form {
        padding: 20px;
    }
}

/* Public surface propagation */
.feature-card {
    box-shadow: var(--shadow-sm);
}

.municipality-result:hover strong {
    color: var(--primary);
}

.empty-state {
    padding: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.empty-state h2 {
    color: var(--cdb-black);
    font-weight: 700;
    letter-spacing: -.04em;
}

@media (max-width:760px) {
    .empty-state {
        padding: 26px;
    }
}

/* =========================================================
   CDB CIVIC SYSTEM V2 — REFERENCE HOMEPAGE
   ========================================================= */

.hero-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, .72fr);
    gap: clamp(48px, 6vw, 92px);
    align-items: center;
}

.hero-content {
    max-width: 790px;
}

.eyebrow {
    margin-bottom: 22px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 780;
    letter-spacing: .16em;
}

.hero h1 {
    max-width: 780px;
    font-size: clamp(54px, 6.25vw, 92px);
    line-height: .96;
    letter-spacing: -.062em;
}

.hero h1 span {
    color: var(--primary);
}

.hero-lead {
    max-width: 670px;
    margin-top: 30px;
    color: var(--text-soft);
    font-size: clamp(18px, 1.7vw, 22px);
    line-height: 1.58;
    letter-spacing: -.012em;
}

.hero-actions {
    gap: 10px;
    margin-top: 34px;
}

.hero-trust {
    gap: 9px;
    margin-top: 34px;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 650;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,.68);
}

.hero-trust span::before {
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--success);
    content: "";
}

.hero-trust span:nth-child(2)::before { background: var(--primary); }
.hero-trust span:nth-child(3)::before { background: var(--cdb-red); }
.hero-trust span:nth-child(4)::before { background: var(--accent); }

.hero-panel {
    position: relative;
    padding: clamp(30px, 3.2vw, 42px);
    border-radius: var(--radius-lg);
}

.hero-panel::before {
    position: absolute;
    top: 0;
    right: 34px;
    left: 34px;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg,var(--primary) 0 28%,var(--cdb-red) 28% 50%,var(--success) 50% 76%,var(--accent) 76% 100%);
    content: "";
}

.panel-label {
    color: var(--primary);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .15em;
}

.hero-panel h2 {
    max-width: 390px;
    margin: 18px 0 14px;
    color: var(--cdb-black);
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.hero-panel p {
    max-width: 430px;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.65;
}

.commune-search {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
}

.commune-search label {
    margin-bottom: 9px;
    color: var(--text);
    font-size: 12px;
    font-weight: 720;
}

.search-row {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 8px;
}

.search-row input {
    min-width: 0;
    min-height: 52px;
    padding: 0 17px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font-size: 15px;
    transition: border-color var(--transition-fast),box-shadow var(--transition-fast),background var(--transition-fast);
}

.search-row input::placeholder {
    color: var(--text-muted);
}

.search-row input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: var(--focus-ring);
    outline: none;
}

.search-row .btn-dark {
    min-height: 52px;
    padding-inline: 18px;
    border-radius: var(--radius-sm);
    background: var(--cdb-black);
}

.search-row .btn-dark:hover {
    background: #292d33;
}

.search-note {
    max-width: 390px;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 10.5px;
    line-height: 1.5;
}

.territory-stats {
    gap: 0;
    padding: 10px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.72);
    box-shadow: var(--shadow-sm);
}

.stat {
    padding: 25px 4px;
}

.stat:last-child {
    border-bottom: 0;
}

.stat strong {
    color: var(--cdb-black);
    font-size: clamp(42px,4vw,58px);
    font-weight: 690;
}

.stat span {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 1000px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 52px;
    }

    .hero-content {
        max-width: 820px;
    }

    .hero-panel {
        width: min(100%, 680px);
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: clamp(46px, 14vw, 66px);
        line-height: .98;
    }

    .hero-lead {
        font-size: 18px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-trust {
        gap: 7px;
    }

    .hero-panel {
        padding: 28px 22px;
        border-radius: var(--radius-md);
    }

    .hero-panel::before {
        right: 22px;
        left: 22px;
    }

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

    .search-row .btn-dark {
        width: 100%;
        justify-content: center;
    }

    .territory-grid {
        gap: 44px;
    }

    .territory-stats {
        padding: 6px 20px;
    }
}

/* CDB — Participer : engagement durable */
.participation-engagement {
    position: relative;
    overflow: hidden;

    margin-top: 34px;
    padding: 42px 46px;

    border: 1px solid rgba(23, 105, 170, .13);
    border-radius: var(--radius-lg);

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(36, 155, 90, .10),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            var(--cdb-blue-soft) 0%,
            var(--surface) 72%
        );

    box-shadow: var(--shadow-sm);
}

.participation-engagement::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;

    width: 5px;

    background: var(--cdb-green);

    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.participation-engagement .eyebrow {
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--cdb-green-dark);
    font-weight: 800;
    line-height: 1;
    letter-spacing: .13em;
}

.participation-engagement .eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--cdb-green);
}

.participation-engagement h2 {
    max-width: 760px;

    margin: 0;

    color: var(--text);

    font-size: clamp(28px, 3vw, 40px);
    font-weight: 750;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.participation-engagement p {
    max-width: 900px;

    margin: 18px 0 26px;

    color: var(--text-soft);

    font-size: 17px;
    line-height: 1.65;
}

.participation-engagement .button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 0 22px;

    border: 1px solid var(--cdb-blue);
    border-radius: var(--radius-pill);

    background: var(--cdb-blue);
    color: #fff;

    font-size: 14px;
    font-weight: 750;
    line-height: 1;

    box-shadow: 0 8px 20px rgba(23, 105, 170, .16);

    transition:
        transform var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.participation-engagement .button-primary::after {
    content: "→";

    margin-left: 10px;

    font-size: 17px;

    transition: transform var(--transition-fast);
}

.participation-engagement .button-primary:hover {
    transform: translateY(-2px);

    border-color: var(--cdb-blue-dark);
    background: var(--cdb-blue-dark);

    box-shadow: 0 12px 26px rgba(23, 105, 170, .22);
}

.participation-engagement .button-primary:hover::after {
    transform: translateX(3px);
}

.participation-engagement .button-primary:focus-visible {
    outline: none;
    box-shadow:
        var(--focus-ring),
        0 8px 20px rgba(23, 105, 170, .16);
}

@media (max-width: 760px) {
    .participation-engagement {
        margin-top: 24px;
        padding: 30px 26px;

        border-radius: var(--radius-md);
    }

    .participation-engagement h2 {
        font-size: clamp(26px, 8vw, 34px);
    }

    .participation-engagement p {
        margin: 16px 0 24px;

        font-size: 16px;
    }

    .participation-engagement .button-primary {
        width: 100%;
    }
}

/* Home — citizen journey */
.citizen-journey-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.citizen-journey-grid .action-card {
    min-height: 300px;
}

@media (max-width: 1080px) {
    .citizen-journey-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .citizen-journey-grid {
        grid-template-columns: 1fr;
    }

    .citizen-journey-grid .action-card {
        min-height: 0;
    }
}

/* Home — understand before taking a position */
.home-understand {
    position: relative;
    overflow: hidden;
    background: #fff;
}

.home-understand::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(calc(100% - 48px), var(--container));
    height: 1px;
    content: "";
    transform: translateX(-50%);
    background: var(--border);
}

.home-understand-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: clamp(48px, 8vw, 120px);
    align-items: end;
    margin-bottom: 56px;
}

.home-understand-heading h2 {
    max-width: 850px;
    margin: 14px 0 0;
    color: var(--cdb-black);
    font-size: clamp(38px, 4.6vw, 66px);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: .98;
    text-wrap: balance;
}

.home-understand-heading > p {
    max-width: 520px;
    margin: 0;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.75;
}

.home-understand-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.home-understand-card {
    min-width: 0;
    padding: 38px 38px 42px 0;
}

.home-understand-card + .home-understand-card {
    padding-left: 38px;
    border-left: 1px solid var(--border);
}

.home-understand-index {
    display: block;
    margin-bottom: 46px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
}

.home-understand-card h3 {
    margin: 0 0 16px;
    color: var(--cdb-black);
    font-size: clamp(21px, 2vw, 27px);
    line-height: 1.1;
    letter-spacing: -.035em;
}

.home-understand-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.home-understand-footer {
    display: flex;
    gap: 32px;
    align-items: center;
    justify-content: space-between;
    padding-top: 30px;
}

.home-understand-footer p {
    margin: 0;
    color: var(--text-soft);
}

.home-understand-footer strong {
    color: var(--cdb-black);
}

.home-understand-footer .text-link {
    flex: 0 0 auto;
}

@media (max-width: 900px) {
    .home-understand-heading {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .home-understand-grid {
        grid-template-columns: 1fr;
    }

    .home-understand-card,
    .home-understand-card + .home-understand-card {
        padding: 30px 0;
        border-left: 0;
    }

    .home-understand-card + .home-understand-card {
        border-top: 1px solid var(--border);
    }

    .home-understand-index {
        margin-bottom: 20px;
    }
}

@media (max-width: 620px) {
    .home-understand-heading {
        margin-bottom: 38px;
    }

    .home-understand-heading h2 {
        font-size: clamp(34px, 11vw, 48px);
    }

    .home-understand-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Public participatory dossier — Civic AI understanding layer */
.civic-ai-public {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 92% 8%,
            rgba(37, 99, 235, .08),
            transparent 32%
        ),
        #f7f9fc;
}

.civic-ai-public-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .7fr);
    gap: clamp(40px, 7vw, 100px);
    align-items: end;
    margin-bottom: 42px;
}

.civic-ai-public-heading h2 {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--cdb-black);
    font-size: clamp(38px, 4.4vw, 62px);
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: 1;
    text-wrap: balance;
}

.civic-ai-public-heading > p {
    max-width: 540px;
    margin: 0;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.75;
}

.civic-ai-public-panel {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .07);
}

.civic-ai-public-summary {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 30px;
    padding: 38px 42px;
    border-bottom: 1px solid var(--border);
}

.civic-ai-public-label {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.civic-ai-public-summary p {
    max-width: 900px;
    margin: 0;
    color: var(--cdb-black);
    font-size: clamp(20px, 2vw, 27px);
    line-height: 1.5;
    letter-spacing: -.02em;
}

.civic-ai-public-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.civic-ai-public-card {
    min-width: 0;
    padding: 34px 42px 38px;
    border-bottom: 1px solid var(--border);
}

.civic-ai-public-card:nth-child(odd) {
    border-right: 1px solid var(--border);
}

.civic-ai-public-card h3 {
    margin: 0 0 18px;
    color: var(--cdb-black);
    font-size: 18px;
    letter-spacing: -.02em;
}

.civic-ai-public-card ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.civic-ai-public-card li {
    position: relative;
    padding-left: 20px;
    color: var(--text-soft);
    line-height: 1.65;
}

.civic-ai-public-card li::before {
    position: absolute;
    top: .68em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    content: "";
}

.civic-ai-public-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--border);
    background: #fbfcfe;
}

.civic-ai-public-meta > div {
    display: flex;
    min-width: 0;
    gap: 8px;
    flex-direction: column;
    padding: 26px 30px;
}

.civic-ai-public-meta > div + div {
    border-left: 1px solid var(--border);
}

.civic-ai-public-meta strong {
    color: var(--cdb-black);
    font-size: 13px;
}

.civic-ai-public-meta span {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.civic-ai-public-doctrine {
    margin: 0;
    padding: 24px 42px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.65;
}

.civic-ai-public-doctrine strong {
    color: var(--cdb-black);
}

@media (max-width: 900px) {
    .civic-ai-public-heading {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .civic-ai-public-summary {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .civic-ai-public-meta {
        grid-template-columns: 1fr;
    }

    .civic-ai-public-meta > div + div {
        border-top: 1px solid var(--border);
        border-left: 0;
    }
}

@media (max-width: 700px) {
    .civic-ai-public-heading h2 {
        font-size: clamp(34px, 11vw, 48px);
    }

    .civic-ai-public-panel {
        border-radius: 18px;
    }

    .civic-ai-public-summary,
    .civic-ai-public-card,
    .civic-ai-public-doctrine {
        padding-right: 24px;
        padding-left: 24px;
    }

    .civic-ai-public-grid {
        grid-template-columns: 1fr;
    }

    .civic-ai-public-card:nth-child(odd) {
        border-right: 0;
    }

    .civic-ai-public-meta > div {
        padding-right: 24px;
        padding-left: 24px;
    }
}

/* Public debate catalogue */
.debate-topic-navigation__links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

.debate-topic-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(20, 35, 55, 0.14);
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease;
}

.debate-topic-link:hover,
.debate-topic-link:focus-visible {
    transform: translateY(-2px);
    border-color: currentColor;
    box-shadow: 0 8px 24px rgba(20, 35, 55, 0.10);
}

.debate-topic-link:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.debate-topic-link.is-active {
    border-width: 2px;
}

.debate-topic-link strong {
    flex: 0 0 auto;
    min-width: 2rem;
    text-align: center;
}

.debate-card {
    position: relative;
    cursor: pointer;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease;
}

.debate-card:hover,
.debate-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(20, 35, 55, 0.10);
}

.debate-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.debate-card__link:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.debate-card__more {
    position: relative;
    margin-top: auto;
    font-weight: 700;
}

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

@media (max-width: 720px) {
    .debate-topic-navigation__links {
        grid-template-columns: 1fr;
    }

    .debate-topic-link {
        min-height: 64px;
    }
}

/* Safe editorial rendering for public debates */
.public-editorial-content {
    max-width: 76ch;
    font-size: 1.05rem;
    line-height: 1.75;
}

.public-editorial-content > :first-child,
.public-comment-content > :first-child {
    margin-top: 0;
}

.public-editorial-content > :last-child,
.public-comment-content > :last-child {
    margin-bottom: 0;
}

.public-editorial-content p {
    margin: 0 0 1.25rem;
}

.public-editorial-content h2,
.public-editorial-content h3 {
    line-height: 1.25;
    text-wrap: balance;
}

.public-editorial-content h2 {
    margin: 2.25rem 0 0.85rem;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.public-editorial-content h3 {
    margin: 1.75rem 0 0.7rem;
    font-size: clamp(1.15rem, 1.7vw, 1.35rem);
}

.public-editorial-content ul {
    margin: 0 0 1.35rem;
    padding-left: 1.4rem;
}

.public-editorial-content li + li {
    margin-top: 0.45rem;
}

.public-editorial-content a,
.public-comment-content a {
    overflow-wrap: anywhere;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

.public-editorial-content strong,
.public-comment-content strong {
    font-weight: 700;
}

.public-comment-content {
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.public-comment-content p {
    margin: 0 0 0.85rem;
}

@media (max-width: 720px) {
    .public-editorial-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .public-editorial-content h2 {
        margin-top: 1.8rem;
    }

    .public-editorial-content h3 {
        margin-top: 1.45rem;
    }
}

.comment-author-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.comment-author-badge--mcb {
    color: #14532d;
    background: #dcfce7;
    border: 1px solid #86efac;
}

.comment-author-badge--coordinator {
    color: #1e3a8a;
    background: #dbeafe;
    border: 1px solid #93c5fd;
}

.header-user-link {
    display: inline-block;
    text-decoration: none;
}
.header-user-link:hover,
.header-user-link:focus-visible {
    color: var(--primary);
    text-decoration: underline;
}

.header-notification {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-soft);
    text-decoration: none;
}
.header-notification:hover,
.header-notification:focus-visible {
    color: var(--primary);
    background: #edf5fa;
}
.header-notification__count {
    position: absolute;
    top: -3px;
    right: -5px;
    min-width: 18px;
    padding: 1px 4px;
    border-radius: 20px;
    background: #ba3434;
    color: white;
    font-size: 11px;
    text-align: center;
}
.citizen-notifications { max-width: 760px; }
.citizen-notifications__list {
    padding: 1.5rem 2rem;
    border: 1px solid #dce7e5;
    border-radius: 18px;
    background: white;
}
.citizen-notifications__list li + li { margin-top: 1rem; }
.citizen-notifications__settings {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid #dce7e5;
    border-radius: 18px;
    background: white;
}

.header-account {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    min-width: 0;
    padding: .2rem .35rem .2rem .7rem;
    border: 1px solid #dde8ec;
    border-radius: 999px;
    background: #f7fafb;
}
.header-account .header-user {
    max-width: 190px;
}
@media (max-width: 760px) {
    .header-account .header-user { max-width: 105px; }
}

.header-search-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-soft);
}
.header-search-link:hover,
.header-search-link:focus-visible {
    color: var(--primary);
    background: #edf5fa;
}
.citizen-search { max-width: 760px; }
.citizen-search__form,
.citizen-search__results {
    padding: 1.5rem;
    border: 1px solid #dce7e5;
    border-radius: 18px;
    background: #fff;
}
.citizen-search__controls {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .5rem;
}
.citizen-search__controls input {
    flex: 1 1 250px;
    min-width: 0;
}
.citizen-search__results { list-style: none; margin: 1.5rem 0; }
.citizen-search__results li + li { margin-top: .9rem; }

/* CDB IDENTITE VECTORIELLE START */

.site-header .brand-lockup .cdb-brand-symbol{
    display:block;
    width:52px;
    height:50px;
    max-width:none;
    object-fit:contain;
    flex:0 0 52px;
}
.site-footer .footer-brand .cdb-footer-logo{
    display:block;
    box-sizing:content-box;
    width:142px;
    height:auto;
    max-width:100%;
    padding:12px;
    margin-bottom:18px;
    background:#fff;
    border-radius:8px;
}
@media(max-width:640px){
    .site-header .brand-lockup .cdb-brand-symbol{
        width:40px;
        height:39px;
        flex-basis:40px;
    }
    .site-footer .footer-brand .cdb-footer-logo{
        width:115px;
    }
}

/* CDB IDENTITE VECTORIELLE END */

/* CDB PLATFORM SIDEBAR START */
.cdb-platform-toggle{
    display:none;
}

@media(min-width:901px){
    body.cdb-platform-menu-ready{
        padding-right:78px;
    }

    body.cdb-platform-menu-ready > .site-header{
        position:fixed;
        inset:0 0 0 auto;
        width:78px;
        height:100vh;
        height:100dvh;
        z-index:200;
        margin:0;
        padding:0;
        border:0;
        border-left:1px solid rgba(25,35,50,.08);
        background:rgba(255,255,255,.88);
        box-shadow:none;
        backdrop-filter:blur(22px);
        -webkit-backdrop-filter:blur(22px);
        overflow:visible;
        transition:
            width .28s ease,
            background .28s ease,
            box-shadow .28s ease;
    }

    body.cdb-platform-menu-ready > .site-header.cdb-menu-open{
        width:280px;
        background:rgba(255,255,255,.97);
        box-shadow:-20px 0 65px rgba(15,25,40,.12);
    }

    body.cdb-platform-menu-ready .site-header .header-inner{
        display:flex;
        flex-direction:column;
        flex-wrap:nowrap;
        align-items:stretch;
        justify-content:flex-start;
        gap:25px;
        width:100%;
        max-width:none;
        height:100%;
        min-height:0;
        margin:0;
        padding:28px 12px 24px;
        overflow-x:hidden;
        overflow-y:auto;
        overscroll-behavior:contain;
        scrollbar-width:thin;
    }

    body.cdb-platform-menu-ready .site-header .brand-lockup{
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        gap:14px;
        width:100%;
        min-width:0;
        flex:0 0 auto;
        margin:0;
        padding:0;
        text-decoration:none;
    }

    body.cdb-platform-menu-ready .site-header .cdb-brand-symbol{
        width:44px;
        height:44px;
        flex:0 0 44px;
        max-width:none;
        object-fit:contain;
        transition:width .28s ease,height .28s ease;
    }

    body.cdb-platform-menu-ready .site-header.cdb-menu-open .cdb-brand-symbol{
        width:76px;
        height:74px;
        flex-basis:74px;
    }

    body.cdb-platform-menu-ready .site-header .brand-copy{
        display:block;
        width:0;
        max-height:0;
        overflow:hidden;
        opacity:0;
        text-align:center;
        white-space:nowrap;
        transition:opacity .2s ease,max-height .28s ease;
    }

    body.cdb-platform-menu-ready .site-header.cdb-menu-open .brand-copy{
        width:100%;
        max-height:65px;
        opacity:1;
    }

    body.cdb-platform-menu-ready .site-header .brand-copy strong{
        display:block;
        font-size:16px;
        line-height:1.4;
        letter-spacing:-.025em;
        color:#252830;
    }

    body.cdb-platform-menu-ready .site-header .brand-copy small{
        display:block;
        margin-top:5px;
        font-size:10px;
        color:#7a828d;
    }

    body.cdb-platform-menu-ready .site-header .main-nav{
        display:flex;
        flex-direction:column;
        flex-wrap:nowrap;
        align-items:stretch;
        order:initial;
        gap:7px;
        width:100%;
        margin:0;
        padding:0;
        overflow:visible;
        flex:0 0 auto;
    }

    body.cdb-platform-menu-ready .site-header .main-nav a{
        position:relative;
        display:flex;
        align-items:center;
        justify-content:flex-start;
        gap:0;
        width:100%;
        height:48px;
        min-height:48px;
        margin:0;
        padding:0 0 0 52px;
        border:0;
        border-radius:8px;
        background:transparent;
        color:#59616c;
        text-decoration:none;
        font-size:13px;
        font-weight:550;
        overflow:hidden;
        white-space:nowrap;
    }

    body.cdb-platform-menu-ready .site-header .main-nav a:before{
        content:attr(data-cdb-icon);
        position:absolute;
        inset:0 auto 0 0;
        display:flex;
        align-items:center;
        justify-content:center;
        width:52px;
        font-size:21px;
        font-weight:400;
        color:#59616c;
    }

    body.cdb-platform-menu-ready .site-header .main-nav a:hover,
    body.cdb-platform-menu-ready .site-header .main-nav a[aria-current="page"]{
        background:#eef1f5;
        color:#202124;
    }

    body.cdb-platform-menu-ready .site-header .main-nav a[aria-current="page"]{
        box-shadow:inset 3px 0 #4285F4;
    }

    body.cdb-platform-menu-ready .site-header .main-nav a:nth-child(4n+1)[aria-current="page"]{
        box-shadow:inset 3px 0 #EA4335;
    }

    body.cdb-platform-menu-ready .site-header .main-nav a:nth-child(4n+2)[aria-current="page"]{
        box-shadow:inset 3px 0 #34A853;
    }

    body.cdb-platform-menu-ready .site-header .main-nav a:nth-child(4n)[aria-current="page"]{
        box-shadow:inset 3px 0 #FBBC05;
    }

    body.cdb-platform-menu-ready .site-header .cdb-menu-label{
        display:inline-block;
        max-width:0;
        overflow:hidden;
        opacity:0;
        white-space:nowrap;
        transition:opacity .18s ease,max-width .28s ease;
    }

    body.cdb-platform-menu-ready .site-header.cdb-menu-open .cdb-menu-label{
        max-width:220px;
        opacity:1;
    }

    body.cdb-platform-menu-ready .site-header .header-actions{
        display:flex;
        flex-direction:column;
        align-items:stretch;
        gap:9px;
        width:100%;
        min-width:0;
        margin:auto 0 0;
        padding-top:20px;
        border-top:1px solid #e9edf2;
        flex:0 0 auto;
    }

    body.cdb-platform-menu-ready .site-header .header-account{
        display:flex;
        flex-direction:column;
        align-items:stretch;
        gap:8px;
        width:100%;
    }

    body.cdb-platform-menu-ready .site-header .header-search-link,
    body.cdb-platform-menu-ready .site-header .header-notification{
        display:flex;
        align-items:center;
        justify-content:flex-start;
        position:relative;
        width:100%;
        height:44px;
        min-height:44px;
        margin:0;
        padding:0 16px;
        border:0;
        border-radius:7px;
        background:#f2f4f7;
        color:#505965;
        text-decoration:none;
    }

    body.cdb-platform-menu-ready .site-header .header-search-link svg,
    body.cdb-platform-menu-ready .site-header .header-notification svg{
        display:block;
        flex:0 0 20px;
        width:20px;
        height:20px;
        margin:0;
    }

    body.cdb-platform-menu-ready .site-header.cdb-menu-open .header-search-link:after{
        content:"Rechercher un citoyen";
        padding-left:14px;
        font-size:12px;
        white-space:nowrap;
    }

    body.cdb-platform-menu-ready .site-header.cdb-menu-open .header-notification:after{
        content:"Mes notifications";
        padding-left:14px;
        font-size:12px;
        white-space:nowrap;
    }

    body.cdb-platform-menu-ready .site-header .header-notification__count{
        position:absolute;
        top:3px;
        right:3px;
        min-width:16px;
        height:16px;
        padding:0 3px;
        border-radius:10px;
        background:#EA4335;
        color:white;
        font-size:9px;
        line-height:16px;
        text-align:center;
    }

    body.cdb-platform-menu-ready .site-header .header-user-link,
    body.cdb-platform-menu-ready .site-header .header-actions .btn{
        position:relative;
        display:flex;
        align-items:center;
        justify-content:flex-start;
        gap:0;
        width:100%;
        min-width:0;
        height:45px;
        min-height:45px;
        margin:0;
        padding:0 8px 0 52px;
        border-radius:7px;
        font-size:12px;
        overflow:hidden;
        white-space:nowrap;
        text-decoration:none;
    }

    body.cdb-platform-menu-ready .site-header .header-user-link{
        background:#f2f4f7;
        color:#505965;
    }

    body.cdb-platform-menu-ready .site-header .header-actions .btn:before,
    body.cdb-platform-menu-ready .site-header .header-user-link:before{
        content:attr(data-cdb-icon);
        position:absolute;
        left:0;
        top:0;
        display:flex;
        align-items:center;
        justify-content:center;
        width:52px;
        height:45px;
        font-size:20px;
    }

    body.cdb-platform-menu-ready .site-header .header-actions .btn-primary{
        background:#252830;
        border-color:#252830;
        color:#fff;
    }

    body.cdb-platform-menu-ready .site-header .header-actions .btn-ghost{
        background:#f2f4f7;
        border-color:transparent;
        color:#505965;
    }

    body.cdb-platform-menu-ready .site-header .header-logout-form{
        display:block;
        width:100%;
        margin:0;
    }

    body.cdb-platform-menu-ready .cdb-platform-toggle{
        position:absolute;
        left:-21px;
        top:50%;
        transform:translateY(-50%);
        display:flex;
        align-items:center;
        justify-content:center;
        width:42px;
        height:42px;
        margin:0;
        padding:0;
        border:1px solid rgba(30,40,55,.12);
        border-radius:50%;
        background:#fff;
        color:#252830;
        box-shadow:0 5px 20px rgba(15,25,40,.16);
        cursor:pointer;
        z-index:2;
    }

    body.cdb-platform-menu-ready .cdb-platform-toggle:hover{
        background:#f2f4f7;
    }

    body.cdb-platform-menu-ready .cdb-platform-toggle svg{
        display:block;
        width:20px;
        height:20px;
        transition:transform .28s ease;
    }

    body.cdb-platform-menu-ready .cdb-platform-toggle[aria-expanded="true"] svg{
        transform:rotate(180deg);
    }

    body.cdb-platform-menu-ready .site-header :focus-visible{
        outline:2px solid #4285F4;
        outline-offset:2px;
    }

    body.cdb-platform-menu-ready > .skip-link:focus{
        z-index:250;
    }
}

@media(prefers-reduced-motion:reduce){
    body.cdb-platform-menu-ready .site-header,
    body.cdb-platform-menu-ready .site-header *,
    body.cdb-platform-menu-ready .site-header *:before,
    body.cdb-platform-menu-ready .site-header *:after{
        transition:none!important;
    }
}
/* CDB PLATFORM SIDEBAR END */


/* CDB HOME CITIZEN HIGHLIGHT EXTERNAL V1 */
.hero .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}
.hero .hero-actions a.cdb-home-citizen-access {
    grid-column: 1 / -1;
    justify-self: start;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 64px;
    max-width: 100%;
    padding: 18px 30px;
    background: #f2c230 !important;
    background-image: none !important;
    color: #172b42 !important;
    -webkit-text-fill-color: #172b42;
    border: 2px solid #d6a719 !important;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(110, 80, 0, .20);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
    white-space: normal;
    opacity: 1;
}
.hero .hero-actions a.cdb-home-citizen-access:hover {
    background: #ffda57 !important;
    border-color: #9a7400 !important;
}
.hero .hero-actions a.cdb-home-citizen-access:focus-visible {
    outline: 3px solid #172b42;
    outline-offset: 4px;
}
.hero .hero-actions a.cdb-home-citizen-access span {
    color: inherit !important;
}
@media (max-width: 600px) {
    .hero .hero-actions {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero .hero-actions a.cdb-home-citizen-access {
        justify-self: stretch;
        width: 100%;
        font-size: 18px;
        padding: 16px 20px;
    }
}


/* CDB CITIZEN ACCESS RIGHT RED V1 */
.hero-grid > .cdb-home-citizen-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    align-self: start;
}
.cdb-home-citizen-column > .hero-panel {
    width: 100%;
    margin: 0;
}
.cdb-home-citizen-column > a.cdb-citizen-access-red {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    min-height: 64px;
    padding: 18px 22px;
    background: #187544 !important;
    background-image: none !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    border: 2px solid #125a34;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(24,117,68,.22);
    font-family: inherit;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    opacity: 1;
}
.cdb-home-citizen-column > a.cdb-citizen-access-red:hover {
    background: #125a34 !important;
}
.cdb-home-citizen-column > a.cdb-citizen-access-red:focus-visible {
    outline: 3px solid #172b42;
    outline-offset: 4px;
}
.cdb-home-citizen-column > a.cdb-citizen-access-red span {
    color: inherit;
}
@media (max-width: 600px) {
    .cdb-home-citizen-column > a.cdb-citizen-access-red {
        font-size: 18px;
    }
}
/* END CDB CITIZEN ACCESS RIGHT RED V1 */

/* CDB LOGIN FOUR COLORS V1 */
.auth-card.cdb-login-four-colors {
    position: relative;
}
.auth-card.cdb-login-four-colors::after {
    content: "";
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        var(--primary) 0 28%,
        var(--cdb-red) 28% 50%,
        var(--success) 50% 76%,
        var(--accent) 76% 100%
    );
}
@media (max-width: 600px) {
    .auth-card.cdb-login-four-colors::after {
        left: 22px;
        right: 22px;
    }
}
/* END CDB LOGIN FOUR COLORS V1 */

/* CDB LOGOUT RED CONTRAST V1 */
.site-header .header-actions .header-logout-form button.btn {
    background: #b91c1c !important;
    background-image: none !important;
    border: 1px solid #991b1b !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    font-weight: 750;
    opacity: 1;
}
.site-header .header-actions .header-logout-form button.btn:hover {
    background: #991b1b !important;
    border-color: #7f1d1d !important;
    color: #fff !important;
}
.site-header .header-actions .header-logout-form button.btn:focus-visible {
    outline: 3px solid #172b42 !important;
    outline-offset: 3px;
}
.site-header .header-actions .header-logout-form button.btn::before,
.site-header .header-actions .header-logout-form button.btn .cdb-menu-label {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}
@media (min-width: 901px) {
    body.cdb-platform-menu-ready .site-header.cdb-menu-open
    .header-logout-form button.btn .cdb-menu-label {
        font-size: 14px;
        font-weight: 750;
    }
}
/* END CDB LOGOUT RED CONTRAST V1 */

/* CDB IA KA HOME V1 */
.hero .cdb-iaka-welcome {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 28px 0;
    max-width: 640px;
    min-width: 0;
}
.cdb-iaka-welcome .cdb-iaka-image {
    display: block;
    flex: 0 0 130px;
    width: 130px;
    height: auto;
    max-width: 30%;
    object-fit: contain;
}
.cdb-iaka-welcome .cdb-iaka-bubble {
    flex: 1;
    min-width: 0;
    padding: 20px 22px;
    border: 1px solid #c8deed;
    border-radius: 20px 20px 20px 5px;
    background: #fff;
    color: #294358;
    box-shadow: 0 6px 22px rgba(23,79,124,.07);
}
.cdb-iaka-welcome .cdb-iaka-bubble p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.cdb-iaka-welcome .cdb-iaka-bubble p + p {
    margin-top: 7px;
}
.cdb-iaka-welcome .cdb-iaka-bubble strong {
    color: #174f7c;
    font-size: 18px;
}
@media (max-width: 600px) {
    .hero .cdb-iaka-welcome {
        gap: 12px;
        align-items: flex-start;
    }
    .cdb-iaka-welcome .cdb-iaka-image {
        flex-basis: 85px;
        width: 85px;
    }
    .cdb-iaka-welcome .cdb-iaka-bubble {
        padding: 15px;
    }
    .cdb-iaka-welcome .cdb-iaka-bubble strong {
        font-size: 16px;
    }
    .cdb-iaka-welcome .cdb-iaka-bubble p {
        font-size: 14px;
    }
}
/* END CDB IA KA HOME V1 */


/* CDB HOME CONSULTATIONS — COMPACT V1 */

.cdb-home-consultations {
    padding-top: clamp(48px, 5vw, 76px);
    padding-bottom: clamp(48px, 5vw, 76px);
}

.cdb-home-consultations .section-heading {
    margin-bottom: 28px;
}

.cdb-home-consultations .section-heading h2 {
    margin-top: 12px;
    margin-bottom: 14px;
    color: #fff;
    font-size: clamp(30px, 3.5vw, 48px);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.cdb-home-consultations .section-heading p {
    max-width: 680px;
    margin-bottom: 0;
    color: rgba(255,255,255,.78);
    line-height: 1.65;
}

.cdb-home-consultations .empty-state {
    padding: clamp(22px, 3vw, 34px);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
}

.cdb-home-consultations .empty-state h3 {
    margin: 0 0 10px;
    color: #172333;
    font-size: clamp(19px, 2vw, 24px);
    line-height: 1.3;
}

.cdb-home-consultations .empty-state p {
    margin: 0;
    color: #536170;
    line-height: 1.6;
}

.cdb-home-consultations .consultation-card {
    min-height: 260px;
}

@media (max-width: 760px) {
    .cdb-home-consultations {
        padding-top: 44px;
        padding-bottom: 48px;
    }

    .cdb-home-consultations .section-heading {
        margin-bottom: 22px;
    }

    .cdb-home-consultations .empty-state {
        padding: 22px;
    }

    .cdb-home-consultations .consultation-card {
        min-height: 0;
    }
}


/* CDB — PROFILS CLIQUABLES DES MEMBRES COMMUNAUX */
.cdb-member-item .cdb-member-identity {
    min-width: 0;
}

.cdb-member-profile-link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
}

.cdb-member-profile-link strong {
    color: inherit;
    transition: color .2s ease;
}

.cdb-member-profile-link small {
    font-size: 12px;
    font-weight: 600;
    color: #2373a8;
}

.cdb-member-profile-link:hover strong {
    color: #2373a8;
}

.cdb-member-profile-link:hover small {
    text-decoration: underline;
}

.cdb-member-profile-link:focus-visible {
    outline: 3px solid #2373a8;
    outline-offset: 5px;
}


/* CDB — ACCÈS À LA PAGE DE LA TABLE CITOYENNE */
.cdb-table-access {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding: 26px 30px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e0e7e2;
}

.cdb-table-access h3 {
    margin: 0 0 8px;
}

.cdb-table-access p {
    margin: 0;
    color: #647067;
}

.cdb-table-access-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 22px;
    border-radius: 12px;
    background: #16834a;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease;
}

.cdb-table-access-button:hover {
    background: #106739;
}

.cdb-table-access-button:focus-visible,
.cdb-table-back:focus-visible {
    outline: 3px solid #2373a8;
    outline-offset: 4px;
}

.cdb-table-dedicated {
    padding: 55px 0 85px;
}

.cdb-table-back {
    display: inline-block;
    margin-bottom: 28px;
    color: #16834a;
    font-weight: 700;
}

.cdb-table-page-header {
    margin-bottom: 35px;
}

.cdb-table-page-header h1 {
    margin: 12px 0;
}

.cdb-table-dedicated .citizen-table-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 45px;
}

@media (max-width: 800px) {
    .cdb-table-dedicated .citizen-table-details {
        grid-template-columns: 1fr;
    }

    .cdb-table-access {
        padding: 22px;
    }

    .cdb-table-access-button {
        width: 100%;
        text-align: center;
    }
}
