:root {
    --ink: #15334a;
    --muted: #5f7383;
    --blue: #176b87;
    --blue-dark: #10445d;
    --mint: #dff1ec;
    --paper: #f6f8f7;
    --line: #e1e9e7;
}

html {
    font-size: 85%;
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
}

body {
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
.navbar-brand {
    font-family: "Manrope", sans-serif;
    font-weight: 800;
    letter-spacing: -.035em;
}

a {
    color: var(--blue);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -5rem;
    z-index: 1100;
    padding: .75rem 1rem;
    background: #fff;
    border-radius: .5rem;
}

.skip-link:focus {
    top: 1rem;
}

#mainNav {
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.navbar-brand {
    color: var(--blue-dark);
    font-size: 1.1rem;
}

.brand-mark {
    display: inline-grid;
    width: 2.4rem;
    height: 2.4rem;
    margin-right: .55rem;
    place-items: center;
    color: #fff;
    background: var(--blue);
    border-radius: .8rem;
    font-size: .78rem;
    letter-spacing: .02em;
    vertical-align: middle;
}

.brand-logo {
    display: block;
    max-width: 180px;
    max-height: 48px;
    object-fit: contain;
}

.nav-link {
    color: #40586a;
    font-weight: 600;
    font-size: .9rem;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--blue);
}

.language-switcher-toggle {
    display: inline-grid;
    width: 2.8rem;
    height: 2.5rem;
    place-items: center;
    color: var(--blue-dark);
    border: 1px solid var(--line);
    border-radius: .65rem;
}

.language-switcher-toggle:hover,
.language-switcher-toggle:focus,
.language-switcher-toggle[aria-expanded="true"] {
    color: var(--blue);
    background: var(--paper);
    border-color: #a9c6c8;
}

.language-switcher-toggle i {
    font-size: 1.15rem;
}

@media (max-width: 991.98px) {
    #navbarResponsive .navbar-nav {
        align-items: flex-end;
    }

    #navbarResponsive .navbar-nav .nav-item,
    #navbarResponsive .navbar-nav .nav-link {
        text-align: right;
    }

    #navbarResponsive .language-switcher {
        display: flex;
        width: 100%;
        justify-content: flex-end;
        margin: .75rem 0 0 !important;
    }

    #navbarResponsive .language-switcher-toggle {
        margin-left: 0;
    }

    #navbarResponsive .language-switcher .dropdown-menu {
        right: 0;
        left: auto;
    }
}

.language-flag {
    display: inline-block;
    width: 1.75rem;
    margin-right: .5rem;
    font-size: 1rem;
}

.hero {
    position: relative;
    display: flex;
    min-height: 550px;
    align-items: center;
    overflow: hidden;
    padding: 8rem 0 6rem;
    color: #fff;
    background-color: var(--blue-dark);
    background-position: center;
    background-size: cover;
}

.hero::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(105deg, rgba(var(--hero-gradient-start-rgb), var(--hero-gradient-start-alpha)), rgba(var(--hero-gradient-end-rgb), var(--hero-gradient-end-alpha)));
    content: "";
}

.hero::after {
    position: absolute;
    right: -8rem;
    bottom: -16rem;
    width: 38rem;
    height: 38rem;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 4rem rgba(255, 255, 255, .035), 0 0 0 8rem rgba(255, 255, 255, .025);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: #a9e3d3;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 820px;
    margin: 1.25rem 0;
    font-size: clamp(2.125rem, 4.93vw, 4.25rem);
    line-height: 1.08;
}

.hero p {
    max-width: 660px;
    color: rgba(255, 255, 255, .84);
    font-size: clamp(.9rem, 1.7vw, 1.0625rem);
}

.btn-brand {
    padding: .85rem 1.2rem;
    color: #fff;
    background: var(--blue);
    border: 1px solid var(--blue);
    border-radius: .65rem;
    font-weight: 700;
}

.btn-brand:hover,
.btn-brand:focus {
    color: #fff;
    background: var(--button-hover);
    border-color: var(--button-hover);
}

.btn-outline-brand {
    padding: .8rem 1.15rem;
    color: var(--blue-dark);
    border: 1px solid #a9c6c8;
    border-radius: .65rem;
    font-weight: 700;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
    color: #fff;
    background: var(--button-hover);
    border-color: var(--button-hover);
}

.hero .btn-outline-light:hover,
.hero .btn-outline-light:focus {
    color: #fff;
    background: var(--button-hover);
    border-color: var(--button-hover);
}

.stats {
    position: relative;
    z-index: 2;
    margin-top: -2.3rem;
}

.stat-card {
    height: 100%;
    padding: 1.35rem 1.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .9rem;
    box-shadow: 0 .8rem 2.5rem rgba(21, 51, 74, .08);
}

.stat-card-municipalities {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    display: inline-grid;
    flex: 0 0 3.25rem;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    border-radius: 1rem;
    font-size: 1.35rem;
}

.stat-icon-members {
    color: var(--blue);
    background: #e5f2f5;
}

.stat-icon-founding {
    color: #56806e;
    background: var(--mint);
}

.stat-number {
    display: block;
    color: var(--blue);
    font-family: "Manrope", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

.stat-label {
    color: var(--muted);
    font-size: .92rem;
}

.page-section {
    padding: 6rem 0;
}

.section-alt {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-kicker {
    margin-bottom: .7rem;
    color: var(--blue);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.section-heading {
    margin-bottom: 1rem;
    font-size: clamp(1.7rem, 3.4vw, 2.55rem);
}

.section-intro {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.08rem;
}

.section-image {
    display: block;
    width: 100%;
    max-height: 320px;
    border-radius: 1rem;
    object-fit: cover;
}

.info-card {
    height: 100%;
    padding: 1.6rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .9rem;
}

.info-card h3 {
    margin-bottom: .8rem;
    font-size: 1.2rem;
}

.page-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}

.page-card:hover,
.page-card:focus {
    color: inherit;
    transform: translateY(-3px);
    box-shadow: 0 .8rem 2rem rgba(21, 51, 74, .1);
}

.icon-badge {
    display: inline-grid;
    width: 2.65rem;
    height: 2.65rem;
    margin-bottom: 1rem;
    place-items: center;
    color: var(--blue);
    background: var(--mint);
    border-radius: .75rem;
    font-size: 1.1rem;
}

.content-list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--muted);
}

.content-list li {
    padding: .22rem 0 .22rem .3rem;
}

.content-list li::marker {
    color: var(--blue);
}

.institution-panel {
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
}

.institution-panel+.institution-panel {
    margin-top: 1.5rem;
}

.table-wrap {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .85rem;
}

.table {
    margin: 0;
    --bs-table-bg: transparent;
}

.table tbody tr:nth-child(odd)>* {
    --bs-table-bg-type: #fff;
}

.table tbody tr:nth-child(even)>* {
    --bs-table-bg-type: var(--table-row-even, #e8f0ef);
}

.table.minutes-admin-table {
    min-width: 1100px;
}

.table thead th {
    padding: .9rem 1rem;
    color: var(--blue-dark);
    background: #edf5f3;
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.table-sort-button {
    padding: 0;
    color: inherit;
    background: none;
    border: 0;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.table-sort-button:hover,
.table-sort-button:focus-visible {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: .2em;
}

.table-sort-button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.sort-indicator {
    display: inline-block;
    min-width: 1em;
    color: var(--blue);
}

.table tbody td,
.table tbody th {
    padding: .72rem 1rem;
    border-color: #edf1f0;
}

.city-number {
    width: 4.5rem;
    color: #8093a0;
    font-variant-numeric: tabular-nums;
}

.country-pill {
    display: inline-block;
    padding: .15rem .55rem;
    color: var(--blue-dark);
    background: #edf5f3;
    border-radius: 99px;
    font-size: .82rem;
}

.join-card {
    padding: clamp(1.5rem, 4vw, 3rem);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: 0 .75rem 2rem rgba(21, 51, 74, .05);
}

.document-card {
    height: 100%;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .85rem;
}

.document-status {
    display: inline-block;
    padding: .25rem .65rem;
    color: #536a78;
    background: #edf1f2;
    border-radius: 99px;
    font-size: .8rem;
    font-weight: 700;
}

.pdf-download {
    display: inline-block;
    color: #c83434;
    font-size: 1.45rem;
    line-height: 1;
    text-decoration: none;
}

.pdf-download:hover,
.pdf-download:focus {
    color: #8f1e1e;
}

button.pdf-download {
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.contact-section {
    color: #fff;
    background: var(--blue-dark);
}

.contact-section .section-kicker {
    color: #a9e3d3;
}

.contact-section .section-intro {
    color: rgba(255, 255, 255, .76);
}

.contact-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: .85rem;
}

.contact-card a {
    color: #bcebdd;
    font-weight: 700;
}

footer {
    color: #6a7c88;
    background: #fff;
    font-size: .88rem;
}

.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1030;
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    color: #fff;
    background: var(--blue);
    border: 1px solid var(--blue);
    border-radius: 50%;
    box-shadow: 0 .3rem 1rem rgba(21, 51, 74, .2);
    font-size: 1.25rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s, visibility .2s, background-color .2s, border-color .2s, transform .2s;
}

.back-to-top.is-visible {
    visibility: visible;
    pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:focus-visible {
    color: #fff;
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    transform: translateY(-2px);
}

.back-to-top:focus-visible {
    outline: 3px solid #a9e3d3;
    outline-offset: 3px;
}

.password-change-menu {
    position: relative;
}

.password-change-menu>summary {
    list-style: none;
}

.password-change-menu>summary::-webkit-details-marker {
    display: none;
}

.password-change-menu>form {
    position: absolute;
    top: calc(100% + .5rem);
    right: 0;
    z-index: 1100;
    width: min(22rem, calc(100vw - 2rem));
}

.admin-main {
    min-height: 70vh;
    padding-top: 6rem;
}

.admin-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}

.admin-tabs .nav-link {
    white-space: nowrap;
}

.facebook-swiper {
    padding: .25rem .25rem 1rem;
}

.facebook-slide {
    height: auto;
}

.facebook-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .9rem;
    box-shadow: 0 .5rem 1.5rem rgba(21, 51, 74, .06);
}

.facebook-embed-card {
    align-items: center;
    min-height: 36rem;
    padding: .75rem;
}

.facebook-embed-card iframe {
    display: block;
    width: 100%;
    max-width: 500px;
    flex: 1;
}

.facebook-embed-title {
    align-self: flex-start;
    margin: .25rem .25rem .75rem;
}

.minutes-video-button {
    border: 0;
    background: transparent;
}

.minutes-video-frame {
    aspect-ratio: 16 / 9;
}

.minutes-video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.facebook-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.facebook-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.4rem;
}

.facebook-date {
    margin-bottom: .65rem;
    color: var(--muted);
    font-size: .85rem;
}

.facebook-message {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 1.2rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    white-space: normal;
    overflow-wrap: anywhere;
}

.facebook-original-link {
    margin-top: auto;
    font-weight: 700;
    text-decoration: none;
}

.facebook-original-link:hover,
.facebook-original-link:focus {
    text-decoration: underline;
}

.facebook-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.facebook-slider-controls .swiper-button-prev,
.facebook-slider-controls .swiper-button-next {
    position: static;
    width: 2.6rem;
    height: 2.6rem;
    margin: 0;
    color: var(--blue);
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
}

.facebook-slider-controls .swiper-button-prev::after,
.facebook-slider-controls .swiper-button-next::after {
    font-size: 1rem;
    font-weight: 800;
}

.facebook-slider-controls .swiper-pagination {
    position: static;
    width: auto;
}

@media (max-width: 767.98px) {
    .hero {
        min-height: 485px;
        padding-top: 7rem;
    }

    .page-section {
        padding: 4.5rem 0;
    }

    .stats {
        margin-top: -1.25rem;
    }

    .table thead th,
    .table tbody td,
    .table tbody th {
        padding: .65rem .6rem;
        font-size: .88rem;
    }

    .city-number {
        width: 2.8rem;
    }

    .back-to-top {
        right: .9rem;
        bottom: .9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}