:root {
    --bg: #e4e7ec;
    --panel: #f5f7fa;
    --panel-strong: #ffffff;
    --ink: #1d2f4a;
    --muted: #4a5b73;
    --accent: #0f3f86;
    --accent-dark: #0b2f63;
    --accent-soft: #d8e2f3;
    --line: #c4cfde;
    --topbar: #0f3f86;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #f0f2f5 0%, #e4e7ec 260px, #e4e7ec 100%);
}

body[data-page="home"] {
    background: linear-gradient(180deg, #edf1f7 0%, #dfe5ef 260px, #dfe5ef 100%);
}

body[data-page="membership"],
body[data-page="membership-confirm"] {
    background:
        radial-gradient(circle at top right, rgba(15, 63, 134, 0.11), transparent 26%),
        linear-gradient(180deg, #edf2f8 0%, #dfe5ef 220px, #e5eaf2 100%);
}

body[data-page="who"] {
    background: linear-gradient(180deg, #f4f7fb 0%, #e6ecf4 100%);
}

h1, h2, h3 {
    margin: 0 0 0.6rem;
    line-height: 1.2;
    font-family: "Merriweather", Georgia, serif;
    color: #112d57;
}

a {
    color: inherit;
}

.public-layout {
    min-height: 100vh;
}

.public-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 232px;
    height: 100vh;
    z-index: 60;
    background: rgba(255, 255, 255, 0.9);
    border-right: 1px solid rgba(15, 63, 134, 0.12);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    padding: 0.9rem 0.85rem;
    transition: transform 0.25s ease;
}

.public-sidebar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.public-logo-link {
    display: block;
}

.public-logo {
    width: 170px;
    max-width: 100%;
    height: auto;
}

.public-menu-close {
    display: none;
    border: 1px solid rgba(15, 63, 134, 0.2);
    background: #fff;
    color: var(--accent);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
}

.public-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 1rem;
    flex: 1;
    overflow-y: auto;
}

.public-nav-item {
    text-decoration: none;
    color: #3b4b61;
    border-radius: 10px;
    padding: 0.58rem 0.72rem;
    border: 1px solid transparent;
    font-weight: 600;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.public-nav-item[data-i18n="nav_membership"] {
    white-space: nowrap;
}

.public-nav-item:hover {
    background: rgba(15, 63, 134, 0.08);
    border-color: rgba(15, 63, 134, 0.12);
    color: var(--accent-dark);
}

.public-nav-item.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 7px 16px rgba(15, 63, 134, 0.25);
}

.public-nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
}

.public-nav-subitem {
    margin-left: 0.9rem;
    font-size: 0.95rem;
    padding-top: 0.46rem;
    padding-bottom: 0.46rem;
    position: relative;
}

.public-nav-subitem::before {
    content: '↳';
    position: absolute;
    left: -0.62rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7f9c;
    font-size: 0.82rem;
}

.public-sidebar-footer {
    border-top: 1px solid rgba(15, 63, 134, 0.12);
    padding-top: 0.8rem;
}

.public-sidebar .lang-switch {
    border-color: rgba(15, 63, 134, 0.24);
    margin-left: 0;
}

.public-sidebar .lang-switch button {
    color: var(--accent-dark);
}

.public-sidebar .lang-switch button.active {
    background: var(--accent);
    color: #fff;
}

.public-main {
    margin-left: 232px;
    width: calc(100% - 232px);
    padding: 1.15rem 1.35rem 1.7rem;
}

.public-topbar {
    border: 1px solid rgba(15, 63, 134, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    padding: 0.95rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.public-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.public-topbar .page-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-dark);
}

.public-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.public-top-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(15, 63, 134, 0.15);
    color: var(--accent-dark);
    font-weight: 700;
}

.public-menu-toggle {
    display: none;
    border: 1px solid rgba(15, 63, 134, 0.2);
    background: #fff;
    color: var(--accent-dark);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
}

.public-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.public-home-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1rem;
}

body[data-page="home"] .hero h1 {
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
}

@media (max-width: 1100px) {
    .public-home-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .public-sidebar {
        transform: translateX(-100%);
        width: 270px;
    }

    .public-main {
        margin-left: 0;
        width: 100%;
    }

    .public-menu-toggle,
    .public-menu-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.public-menu-open .public-sidebar {
        transform: translateX(0);
    }

    body.public-menu-open .public-menu-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 620px) {
    .public-main {
        padding: 0.8rem 0.75rem 1rem;
    }

    .public-topbar {
        padding: 0.75rem;
    }

    .public-topbar .page-title {
        font-size: 1rem;
        line-height: 1.25;
    }
}

.site-shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1rem 1rem 2rem;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--topbar);
    border-bottom: 3px solid #0a2d5d;
    box-shadow: 0 2px 9px rgba(0, 0, 0, 0.18);
}

.topbar-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0.7rem 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.brand {
    display: flex;
    gap: 0.65rem;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.brand-mark {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(
        180deg,
        #1f1f1f 0%,
        #1f1f1f 33.333%,
        #c03434 33.333%,
        #c03434 66.666%,
        #f0c53a 66.666%,
        #f0c53a 100%
    );
}

.brand-text {
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.94rem;
}

.top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}

.pill {
    border: 1px solid transparent;
    color: #fff;
    border-radius: 4px;
    padding: 0.35rem 0.5rem;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
}

.pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
}

.lang-switch {
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    overflow: hidden;
    margin-left: 0.2rem;
}

.lang-switch button {
    border: none;
    background: transparent;
    color: #fff;
    padding: 0.3rem 0.55rem;
    font-weight: 700;
    cursor: pointer;
}

.lang-switch button.active {
    background: #fff;
    color: var(--accent);
}

.hero {
    margin-top: 0.9rem;
    background: linear-gradient(180deg, #fafbfc 0%, #edf2f8 100%);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.6rem;
    display: grid;
    gap: 0.7rem;
    overflow: hidden;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        118deg,
        transparent 0%,
        transparent 62%,
        rgba(15, 63, 134, 0.08) 84%,
        rgba(15, 63, 134, 0.16) 100%
    );
    pointer-events: none;
}

.hero > * {
    position: relative;
}

.hero-kicker {
    margin: 0;
    color: var(--accent);
    font-family: "Merriweather", Georgia, serif;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.hero h1 {
    margin: 0;
    font-size: clamp(1.9rem, 4.7vw, 3rem);
}

.hero p {
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 760px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1rem;
}

.section {
    margin-top: 1rem;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1rem;
}

.article-copy h1 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.article-copy h2 {
    font-size: 1.5rem;
    margin-top: 1.2rem;
}

.article-copy p {
    margin: 0 0 0.95rem;
    line-height: 1.65;
}

.article-copy ul {
    margin: 0 0 0.95rem 1.15rem;
    padding: 0;
    list-style: disc;
}

.article-copy ul ul {
    margin-top: 0.5rem;
}

.article-copy li {
    margin: 0.35rem 0;
}

.article-copy a {
    color: #1a5ea8;
    text-decoration: underline;
}

.article-copy iframe {
    display: block;
}

body[data-page="immigration"] .section {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

body[data-page="immigration"] .article-copy {
    font-size: 19px;
}

.badge {
    display: inline-block;
    background: #e7eef9;
    color: #12386f;
    border: 1px solid #cad8ef;
    border-radius: 999px;
    font-size: 0.77rem;
    padding: 0.2rem 0.55rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.event-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.event-item {
    border: 1px solid #d2dbe8;
    border-radius: 6px;
    padding: 0.72rem;
    background: var(--panel-strong);
}

.event-item .meta {
    color: var(--muted);
    font-size: 0.93rem;
}

.cta {
    display: inline-block;
    margin-top: 0.55rem;
    text-decoration: none;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    padding: 0.57rem 0.85rem;
    border: 1px solid var(--accent);
    font-weight: 700;
}

.cta:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.cta.secondary {
    background: #fff;
    color: var(--accent-dark);
    border: 1px solid #b4c5de;
}

.cta.secondary:hover {
    background: #f2f6fc;
}

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

.archive-item {
    border: 1px solid #d2dbe8;
    border-radius: 6px;
    padding: 0.8rem;
    background: var(--panel-strong);
}

.report-points {
    margin: 0.55rem 0 0;
    padding-left: 1.1rem;
    color: var(--muted);
}

.report-points li {
    margin: 0.35rem 0;
}

.muted {
    color: var(--muted);
}

.footer {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    color: var(--muted);
    font-size: 0.92rem;
}

.incident-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.incident-form input,
.incident-form select,
.incident-form textarea {
    width: 100%;
    border: 1px solid #c5cfde;
    border-radius: 6px;
    padding: 0.55rem 0.65rem;
    font: inherit;
    background: var(--panel-strong);
}

.incident-form textarea {
    resize: vertical;
}

.incident-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.7rem;
}

.incident-block {
    margin-top: 0.75rem;
}

.incident-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0.7rem;
}

.incident-map-card {
    margin-top: 0.75rem;
    border: 1px solid #c8d2e1;
    border-radius: 6px;
    background: var(--panel-strong);
    overflow: hidden;
}

#incident-map {
    min-height: 340px;
}

.incident-map-warning {
    border-top: 1px solid var(--line);
    padding: 0.55rem 0.7rem;
    color: #92400e;
    background: #fffbeb;
    font-size: 0.9rem;
}

.map-mode-placeholder {
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.4rem;
    color: #4b5563;
    background: repeating-linear-gradient(
        45deg,
        #f8fafc,
        #f8fafc 14px,
        #eef2f7 14px,
        #eef2f7 28px
    );
}

.paraguay-city-marker {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    user-select: none;
}

.paraguay-city-marker-dot {
    width: 8px;
    height: 8px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    background: #1d4ed8;
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.28);
}

.paraguay-city-marker.is-capital .paraguay-city-marker-dot {
    background: #b91c1c;
}

.paraguay-city-marker-label {
    padding: 2px 5px;
    border: 1px solid rgba(100, 116, 139, 0.28);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 5px rgba(15, 23, 42, 0.16);
    color: #1f2937;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.security-map-shell .hero {
    margin-bottom: 0.2rem;
}

.security-map-filter-bar {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

.security-map-filter-bar select {
    min-width: 170px;
}

.security-map-status {
    margin-top: 0.55rem;
    min-height: 1.25rem;
}

.security-map-canvas {
    margin-top: 0.65rem;
    min-height: 480px;
    border: 1px solid #c8d2e1;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.security-map-share {
    margin-top: 0.65rem;
    color: var(--muted);
    font-size: 0.92rem;
    word-break: break-word;
}

.security-map-code {
    display: block;
    margin-top: 0.55rem;
    padding: 0.7rem;
    border: 1px solid #c8d2e1;
    border-radius: 6px;
    background: #f8fafc;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
}

body.embed-mode .topbar,
body.embed-mode .hero,
body.embed-mode .footer,
body.embed-mode .security-map-shell .section:last-of-type {
    display: none;
}

body.embed-mode .site-shell {
    max-width: 100%;
    padding: 0;
}

body.embed-mode .site-shell .section {
    margin-top: 0;
}

body.embed-mode .site-shell .card {
    border-radius: 0;
    border: none;
}

.membership-hero {
    padding: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0) 48%),
        linear-gradient(135deg, rgba(15, 63, 134, 0.12) 0%, rgba(255, 255, 255, 0.8) 55%, rgba(215, 226, 243, 0.92) 100%);
}

.membership-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.membership-overline {
    margin: 0;
    color: #5a6f91;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.membership-hero-copy {
    padding: 1.8rem 1.9rem;
    display: grid;
    gap: 1rem;
    max-width: 860px;
}

.membership-hero-copy h1 {
    margin: 0;
    max-width: none;
    font-size: clamp(1.95rem, 3.8vw, 3.15rem);
    line-height: 1.05;
    white-space: nowrap;
}

.membership-process-flow {
    display: grid;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    border-radius: 16px;
    border: 1px solid rgba(15, 63, 134, 0.12);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 16px 30px rgba(15, 63, 134, 0.08);
    max-width: 720px;
}

.membership-process-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: membership-process;
    display: grid;
    gap: 0.8rem;
}

.membership-process-list li {
    counter-increment: membership-process;
    position: relative;
    padding-left: 3rem;
    color: #213752;
}

.membership-process-list li::before {
    content: counter(membership-process, decimal-leading-zero);
    position: absolute;
    top: -0.02rem;
    left: 0;
    width: 2.05rem;
    height: 2.05rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 63, 134, 0.18);
    background: rgba(255, 255, 255, 0.88);
    color: var(--accent-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.membership-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}

.membership-intro-grid {
    display: block;
}

.membership-benefits-list {
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.72rem;
}

.membership-benefits-list li {
    position: relative;
    padding-left: 1.3rem;
    color: #2d405d;
}

.membership-benefits-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.46rem;
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(15, 63, 134, 0.12);
}

.membership-benefits-card,
.membership-rates-card,
.membership-form-card,
.membership-side-rail .card,
.membership-confirm-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 255, 0.94) 100%);
}

.membership-rate-block + .membership-rate-block {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(15, 63, 134, 0.12);
}

.membership-rate-block p {
    margin: 0.2rem 0 0;
    color: var(--muted);
}

.membership-rates-section {
    margin-top: 1.35rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(15, 63, 134, 0.12);
}

.membership-rates-section h3 {
    margin-bottom: 0.8rem;
}

.membership-layout {
    display: block;
}

.membership-form-card,
.membership-side-rail {
    min-width: 0;
}

.membership-side-rail {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 1rem;
}

.membership-card-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.9rem;
}

.membership-card-head p {
    margin: 0.35rem 0 0;
}

.membership-form-badge {
    white-space: nowrap;
}

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

.membership-fieldset {
    margin: 0;
    border: 1px solid #d2dbe8;
    border-radius: 14px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.membership-fieldset legend {
    padding: 0 0.35rem;
    font-family: "Merriweather", Georgia, serif;
    color: #12386f;
    font-size: 1rem;
}

.membership-helper {
    margin: 0 0 0.9rem;
    color: var(--muted);
    font-size: 0.94rem;
}

.membership-option-group > .membership-helper {
    display: block;
    margin: -0.25rem 0 0;
}

.membership-grid {
    display: grid;
    gap: 0.85rem;
}

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

.membership-span-2 {
    grid-column: 1 / -1;
}

.membership-field {
    display: grid;
    gap: 0.36rem;
}

.membership-field span,
.membership-group-label {
    font-weight: 700;
    color: #233955;
}

.membership-field small {
    color: var(--muted);
    font-size: 0.92rem;
}

.membership-field input,
.membership-field textarea {
    width: 100%;
    border: 1px solid #c5cfde;
    border-radius: 10px;
    padding: 0.68rem 0.75rem;
    font: inherit;
    color: var(--ink);
    background: var(--panel-strong);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.membership-field textarea {
    resize: vertical;
    min-height: 118px;
}

.membership-field input:focus,
.membership-field textarea:focus {
    outline: none;
    border-color: rgba(15, 63, 134, 0.65);
    box-shadow: 0 0 0 4px rgba(15, 63, 134, 0.12);
}

.membership-check {
    margin-top: 0.85rem;
    display: inline-flex;
    gap: 0.65rem;
    align-items: center;
    color: #233955;
    font-weight: 600;
}

.membership-option-group {
    display: grid;
    gap: 0.65rem;
}

.membership-choice-row,
.membership-consent-list,
.membership-membership-options {
    display: grid;
    gap: 0.7rem;
}

.membership-choice-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.membership-choice,
.membership-tier {
    position: relative;
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    border: 1px solid #d2dbe8;
    border-radius: 12px;
    background: #fff;
    padding: 0.78rem 0.88rem;
    color: #213752;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.membership-choice-block {
    display: flex;
}

.membership-choice input,
.membership-tier input,
.membership-check input {
    margin-top: 0.18rem;
    accent-color: var(--accent);
}

.membership-choice:hover,
.membership-tier:hover {
    border-color: rgba(15, 63, 134, 0.26);
    transform: translateY(-1px);
}

.membership-choice:has(input:checked),
.membership-tier:has(input:checked) {
    border-color: rgba(15, 63, 134, 0.55);
    background: linear-gradient(180deg, rgba(225, 233, 245, 0.82), rgba(255, 255, 255, 0.98));
    box-shadow: 0 12px 24px rgba(15, 63, 134, 0.1);
}

.membership-choice span,
.membership-tier span {
    line-height: 1.45;
}

.membership-tier-copy {
    display: grid;
    gap: 0.18rem;
}

.membership-tier-copy small {
    color: var(--muted);
    font-size: 0.92rem;
}

.membership-submit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.membership-submit-note {
    margin: -0.2rem 0 0;
    padding: 0.88rem 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 63, 134, 0.1);
    background: rgba(235, 241, 250, 0.84);
    color: #314866;
}

.membership-form-status {
    min-height: 1.35rem;
    flex: 1 1 280px;
    color: var(--muted);
}

.membership-form-status.is-error {
    color: #b42318;
}

.membership-form-status.is-success {
    color: #15603b;
}

.membership-confirm-card {
    display: grid;
    gap: 1rem;
}

.membership-confirm-status {
    border: 1px solid #d2dbe8;
    border-radius: 14px;
    padding: 1rem;
    background: #fff;
}

.membership-confirm-status h2,
.membership-confirm-status p,
.membership-confirm-status ul {
    margin: 0;
}

.membership-confirm-status.is-loading {
    background:
        linear-gradient(120deg, rgba(15, 63, 134, 0.04), rgba(15, 63, 134, 0.12), rgba(15, 63, 134, 0.04)),
        #fff;
}

.membership-confirm-status.is-success {
    border-color: rgba(21, 96, 59, 0.28);
    background: rgba(233, 247, 238, 0.8);
}

.membership-confirm-status.is-error {
    border-color: rgba(180, 35, 24, 0.24);
    background: rgba(254, 243, 242, 0.92);
}

.membership-step2-list {
    margin: 0.8rem 0 0;
    padding-left: 1.1rem;
    color: #41556f;
}

body[data-page="who"] .who-draft-shell {
    width: min(760px, 100%);
    margin: clamp(2rem, 7vw, 5rem) auto 0;
    padding: clamp(1.5rem, 5vw, 3rem);
    text-align: center;
}

body[data-page="who"] .who-draft-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 0.26rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 63, 134, 0.18);
    background: rgba(255, 255, 255, 0.74);
    color: var(--accent-dark);
    font-weight: 700;
}

body[data-page="who"] .who-draft-shell h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

body[data-page="who"] .who-draft-intro {
    max-width: 560px;
    margin: 0.3rem auto 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.6;
}

body[data-page="who"] .who-team-list {
    display: grid;
    gap: 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(15, 63, 134, 0.14);
}

body[data-page="who"] .who-team-row {
    display: grid;
    grid-template-columns: 4.75rem minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1.05rem 0;
    border-bottom: 1px solid rgba(15, 63, 134, 0.14);
    text-align: left;
}

body[data-page="who"] .who-person-photo {
    width: 4rem;
    height: 4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(15, 63, 134, 0.18);
    border-radius: 50%;
    background: #f7f9fc;
    color: #12386f;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 35, 67, 0.08);
}

body[data-page="who"] .who-person-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body[data-page="who"] .who-person-copy {
    min-width: 0;
}

body[data-page="who"] .who-team-row h2 {
    margin: 0;
    color: #12386f;
    font-size: 1.2rem;
}

body[data-page="who"] .who-team-row p {
    margin: 0.25rem 0 0;
    color: #314866;
    font-size: 1rem;
    line-height: 1.55;
}

@media (max-width: 520px) {
    body[data-page="who"] .who-team-row {
        grid-template-columns: 3.75rem minmax(0, 1fr);
        gap: 0.85rem;
    }

    body[data-page="who"] .who-person-photo {
        width: 3.25rem;
        height: 3.25rem;
        font-size: 0.86rem;
    }
}

body[data-page="membership"] .public-main {
    font-size: 1.5rem;
}

body[data-page="membership"] .membership-hero-copy {
    max-width: 980px;
}

body[data-page="membership"] .membership-process-flow {
    max-width: 900px;
}

body[data-page="membership"] .membership-benefits-card h2,
body[data-page="membership"] .membership-form-card h2 {
    font-size: 1.5rem;
}

body[data-page="membership"] .membership-rates-section h3 {
    font-size: 1.17rem;
}

body[data-page="membership"] .membership-overline {
    font-size: 1.17rem;
}

body[data-page="membership"] .hero p,
body[data-page="membership"] .membership-process-list li,
body[data-page="membership"] .membership-benefits-list li,
body[data-page="membership"] .membership-rate-block p,
body[data-page="membership"] .membership-field,
body[data-page="membership"] .membership-group-label,
body[data-page="membership"] .membership-choice,
body[data-page="membership"] .membership-tier,
body[data-page="membership"] .membership-submit-note,
body[data-page="membership"] .membership-form-status,
body[data-page="membership"] .muted {
    font-size: 1.5rem;
    line-height: 1.48;
}

body[data-page="membership"] .membership-helper {
    font-size: 1.41rem;
    line-height: 1.45;
}

body[data-page="membership"] .membership-field small,
body[data-page="membership"] .membership-tier-copy small {
    font-size: 1.38rem;
    line-height: 1.42;
}

body[data-page="membership"] .badge {
    font-size: 1.16rem;
}

body[data-page="membership"] .membership-process-list li {
    padding-left: 3.7rem;
}

body[data-page="membership"] .membership-process-list li::before {
    width: 2.7rem;
    height: 2.7rem;
    font-size: 1.28rem;
}

body[data-page="membership"] .membership-field input,
body[data-page="membership"] .membership-field textarea {
    padding: 0.9rem 1rem;
}

body[data-page="membership"] .membership-card-head {
    flex-wrap: wrap;
}

body[data-page="membership"] .cta {
    font-size: 1.5rem;
    padding: 0.72rem 1.05rem;
}

@media (max-width: 980px) {
    .brand-text {
        font-size: 0.82rem;
    }

    .hero {
        padding: 1.25rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

    .membership-side-rail {
        position: static;
    }
}

@media (max-width: 860px) {
    .topbar-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
    }

    .top-actions {
        width: 100%;
        gap: 0.35rem;
    }

    .pill {
        padding: 0.32rem 0.5rem;
    }

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

    .membership-grid.two,
    .membership-choice-row {
        grid-template-columns: 1fr;
    }

    #incident-map {
        min-height: 260px;
    }

    .security-map-canvas {
        min-height: 360px;
    }
}

@media (max-width: 620px) {
    .membership-hero-copy,
    .membership-hero-panel {
        padding: 1.15rem 1rem;
    }

    .membership-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .membership-fieldset {
        padding: 0.9rem 0.85rem;
    }

    .membership-submit-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

body[data-page="home"] {
    --brand-blue: #0f4fc4;
    --brand-blue-dark: #082c72;
    --brand-red: #d7282f;
    --brand-gold: #f2a51a;
    --brand-black: #18191c;
    --home-line: #d9e3f2;
    background:
        radial-gradient(1200px 460px at 92% 0%, rgba(45, 116, 207, 0.18), transparent 62%),
        radial-gradient(720px 420px at 0% 82%, rgba(44, 107, 190, 0.09), transparent 66%),
        linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%);
    color: #172d54;
}

body[data-page="home"] h1,
body[data-page="home"] h2,
body[data-page="home"] h3 {
    font-family: "Outfit", "Source Sans 3", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}

body[data-page="home"] .public-layout {
    min-height: 100dvh;
}

body[data-page="home"] .public-sidebar {
    top: 8px;
    left: 8px;
    width: 280px;
    height: calc(100dvh - 16px);
    padding: 22px 16px;
    border: 1px solid rgba(15, 79, 196, 0.1);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.91)),
        #ffffff;
    box-shadow: 0 20px 46px rgba(36, 61, 98, 0.13);
    overflow: hidden;
}

body[data-page="home"] .public-sidebar::after {
    content: "";
    position: absolute;
    right: -62px;
    bottom: -44px;
    width: 260px;
    height: 190px;
    border-radius: 56% 44% 0 0;
    background: linear-gradient(145deg, rgba(16, 88, 205, 0.1), rgba(255, 255, 255, 0));
    pointer-events: none;
}

body[data-page="home"] .public-sidebar-head,
body[data-page="home"] .public-nav,
body[data-page="home"] .public-sidebar-footer {
    position: relative;
}

body[data-page="home"] .public-logo {
    width: 232px;
}

body[data-page="home"] .public-nav {
    gap: 10px;
    margin-top: 30px;
}

body[data-page="home"] .public-nav-item {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    border-radius: 14px;
    color: #304467;
    font-size: 1rem;
    line-height: 1.15;
    box-shadow: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body[data-page="home"] .public-nav-item .ph {
    width: 22px;
    min-width: 22px;
    color: #283f69;
    font-size: 1.45rem;
}

body[data-page="home"] .public-nav-item .nav-label {
    min-width: 0;
}

body[data-page="home"] .public-nav-item:hover {
    transform: translateY(-1px);
    background: rgba(15, 79, 196, 0.07);
}

body[data-page="home"] .public-nav-item.active {
    color: #ffffff;
    background: linear-gradient(135deg, #0f57d6 0%, #0744b8 100%);
    border-color: rgba(7, 68, 184, 0.28);
    box-shadow: 0 15px 28px rgba(15, 79, 196, 0.27);
}

body[data-page="home"] .public-nav-item.active .ph {
    color: #ffffff;
}

body[data-page="home"] .public-sidebar-footer {
    border: 0;
    padding-top: 18px;
}

body[data-page="home"] .public-sidebar .lang-switch {
    width: 100%;
    justify-content: stretch;
    padding: 4px;
    border: 1px solid rgba(15, 79, 196, 0.09);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 24px rgba(36, 61, 98, 0.09);
}

body[data-page="home"] .public-sidebar .lang-switch button {
    flex: 1 1 0;
    border-radius: 999px;
    padding: 8px 10px;
    color: #4b5d78;
}

body[data-page="home"] .public-sidebar .lang-switch button + button {
    border-left: 1px solid rgba(15, 79, 196, 0.1);
}

body[data-page="home"] .public-sidebar .lang-switch button.active {
    background: var(--brand-blue);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(15, 79, 196, 0.2);
}

body[data-page="home"] .public-main {
    margin-left: 296px;
    width: calc(100% - 296px);
    padding: 0 0 32px;
}

body[data-page="home"] .public-topbar {
    display: none;
}

body[data-page="home"]:not(.public-menu-open) .public-menu-backdrop {
    display: none;
}

body[data-page="home"] .home-hero {
    min-height: 520px;
    margin-top: 0;
    padding: 70px 64px 58px;
    border: 0;
    border-bottom: 1px solid rgba(132, 153, 181, 0.22);
    border-radius: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 36%, rgba(255, 255, 255, 0.68) 55%, rgba(255, 255, 255, 0.08) 100%),
        url("/frontend/assets/images/public-home-hero-v2.webp") center right / cover no-repeat;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

body[data-page="home"] .home-hero::after {
    display: none;
}

body[data-page="home"] .hero-alert {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 79, 196, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-blue);
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(36, 61, 98, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
}

body[data-page="home"] .hero-alert:hover {
    transform: translateY(-1px);
    background: #ffffff;
}

body[data-page="home"] .hero-alert:active,
body[data-page="home"] .cta:active,
body[data-page="home"] .home-card-link:active {
    transform: translateY(1px);
}

body[data-page="home"] .hero-alert .ph {
    font-size: 1.5rem;
}

body[data-page="home"] .hero-copy {
    max-width: 700px;
    min-width: 0;
}

body[data-page="home"] .hero-overline {
    margin: 0 0 8px;
    color: var(--brand-blue);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.2;
}

body[data-page="home"] .home-hero h1 {
    margin: 0;
    max-width: 700px;
    color: #082762;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.08;
    text-wrap: normal;
}

body[data-page="home"] .hero-stripes {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 26px 0 24px;
}

body[data-page="home"] .hero-stripes span {
    width: 72px;
    height: 5px;
    border-radius: 999px;
}

body[data-page="home"] .stripe-black {
    background: var(--brand-black);
}

body[data-page="home"] .stripe-red {
    background: var(--brand-red);
}

body[data-page="home"] .stripe-gold {
    background: var(--brand-gold);
}

body[data-page="home"] .home-hero .hero-kicker {
    margin: 0 0 10px;
    color: var(--brand-blue);
    font-family: "Outfit", "Source Sans 3", "Segoe UI", Arial, sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.25;
}

body[data-page="home"] .home-hero .hero-text {
    max-width: 590px;
    margin: 0;
    color: #405577;
    font-size: 1.08rem;
    line-height: 1.62;
}

body[data-page="home"] .home-hero .membership-inline-actions {
    margin-top: 28px;
}

body[data-page="home"] .cta,
body[data-page="home"] .home-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

body[data-page="home"] .cta {
    min-height: 46px;
    margin-top: 0;
    padding: 0 18px;
    border-radius: 9px;
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 79, 196, 0.2);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body[data-page="home"] .cta:hover {
    background: var(--brand-blue-dark);
    border-color: var(--brand-blue-dark);
}

body[data-page="home"] .cta.secondary {
    background: #ffffff;
    color: var(--brand-blue);
    border-color: rgba(15, 79, 196, 0.45);
    box-shadow: none;
}

body[data-page="home"] .cta.secondary:hover {
    background: #f4f8ff;
    border-color: var(--brand-blue);
}

body[data-page="home"] .section {
    margin-top: 0;
}

body[data-page="home"] .public-home-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: 0;
    padding: 42px 64px;
    border-bottom: 1px solid rgba(132, 153, 181, 0.2);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.22)),
        rgba(244, 248, 253, 0.44);
}

body[data-page="home"] .home-card {
    position: relative;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

body[data-page="home"] .events-card {
    padding-right: 42px;
    border-right: 1px solid rgba(132, 153, 181, 0.22);
}

body[data-page="home"] .security-card {
    padding-left: 42px;
}

body[data-page="home"] .home-card-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

body[data-page="home"] .home-card-head.compact {
    grid-template-columns: auto minmax(0, 1fr);
}

body[data-page="home"] .home-card h2 {
    margin: 0;
    color: #0c2b64;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.15;
}

body[data-page="home"] .events-card h2 {
    white-space: nowrap;
}

body[data-page="home"] .home-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(36, 61, 98, 0.12);
}

body[data-page="home"] .home-card-icon .ph {
    font-size: 1.55rem;
}

body[data-page="home"] .home-card-icon.blue {
    background: linear-gradient(135deg, #1767dc, #0d4fbe);
}

body[data-page="home"] .home-card-icon.red {
    background: linear-gradient(135deg, #ed3a3a, #c81827);
}

body[data-page="home"] .home-card-icon.gold {
    background: linear-gradient(135deg, #f7b431, #e99913);
}

body[data-page="home"] .home-card-link {
    color: var(--brand-blue);
    font-weight: 700;
    font-size: 0.86rem;
    white-space: nowrap;
    transition: transform 0.2s ease, color 0.2s ease;
}

body[data-page="home"] .events-card .home-card-head {
    gap: 14px;
    grid-template-columns: auto minmax(0, 1fr);
}

body[data-page="home"] .events-card .home-card-link {
    grid-column: 2;
    justify-self: start;
    margin-top: -8px;
}

body[data-page="home"] .home-card-link:hover {
    color: var(--brand-blue-dark);
    transform: translateX(2px);
}

body[data-page="home"] .event-list {
    gap: 0;
}

body[data-page="home"] .event-item {
    position: relative;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    min-height: 0;
    padding: 20px 0 20px 24px;
    border: 0;
    border-left: 4px solid var(--brand-blue);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body[data-page="home"] .event-item + .event-item {
    margin-top: 0;
    border-top: 1px solid rgba(132, 153, 181, 0.2);
}

body[data-page="home"] .event-item.event-state {
    min-height: 96px;
    align-items: center;
    color: #405577;
    font-weight: 600;
}

body[data-page="home"] .event-item.event-state > span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

body[data-page="home"] .event-date-icon {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eaf2ff;
    color: var(--brand-blue);
}

body[data-page="home"] .event-date-icon .ph {
    font-size: 1.8rem;
}

body[data-page="home"] .event-copy {
    min-width: 0;
    display: grid;
    gap: 7px;
}

body[data-page="home"] .event-copy strong {
    color: #0c2b64;
    font-size: 1.08rem;
    line-height: 1.3;
}

body[data-page="home"] .event-item .meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #596b86;
    font-size: 0.98rem;
}

body[data-page="home"] .event-detail-link {
    justify-self: start;
    min-height: 40px;
    margin-top: 8px;
    padding: 0 18px;
}

body[data-page="home"] .security-card {
    background: transparent;
}

body[data-page="home"] .security-card::before {
    display: none;
}

body[data-page="home"] .security-card::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: -22px;
    width: 178px;
    height: 178px;
    opacity: 0.09;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg%20width='178'%20height='178'%20viewBox='0%200%20178%20178'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3E%3Cpath%20d='M89%2018C107%2037%20129%2048%20157%2051V87C157%20122%20138%20151%2089%20169C40%20151%2021%20122%2021%2087V51C49%2048%2071%2037%2089%2018Z'%20stroke='%23d7282f'%20stroke-width='8'%20stroke-linejoin='round'/%3E%3Cpath%20d='M89%2046V137'%20stroke='%23d7282f'%20stroke-width='5'%20stroke-linecap='round'%20stroke-dasharray='2%2014'/%3E%3C/svg%3E");
    pointer-events: none;
}

body[data-page="home"] .security-card .muted {
    max-width: 470px;
    margin: 0 0 22px;
    color: #405577;
    font-size: 1.02rem;
    line-height: 1.6;
}

body[data-page="home"] .home-card-actions {
    position: relative;
    display: grid;
    gap: 10px;
    max-width: 290px;
}

body[data-page="home"] .archive-card {
    min-height: 196px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: center;
    padding: 36px 64px 42px;
    border-bottom: 1px solid rgba(132, 153, 181, 0.18);
    background:
        radial-gradient(320px 260px at 100% 100%, rgba(242, 165, 26, 0.22), transparent 68%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.22));
}

body[data-page="home"] .archive-copy {
    min-width: 0;
}

body[data-page="home"] .archive-copy .muted {
    max-width: 920px;
    margin: 0 0 20px;
    color: #405577;
    font-size: 1.02rem;
    line-height: 1.6;
}

body[data-page="home"] .archive-visual {
    position: relative;
    min-height: 190px;
}

body[data-page="home"] .archive-visual::before {
    content: "";
    position: absolute;
    inset: -12px -22px 0 86px;
    opacity: 0.24;
    background-image: radial-gradient(rgba(242, 165, 26, 0.95) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
}

body[data-page="home"] .archive-photo {
    position: absolute;
    width: 178px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.96);
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(36, 61, 98, 0.18);
}

body[data-page="home"] .archive-photo.main {
    right: 42px;
    top: 0;
    transform: rotate(4deg);
}

body[data-page="home"] .archive-photo.sub {
    right: 184px;
    top: 76px;
    width: 146px;
    transform: rotate(-2deg);
}

@media (max-width: 1180px) {
    body[data-page="home"] .public-home-grid {
        grid-template-columns: 1fr;
    }

    body[data-page="home"] .events-card {
        padding-right: 0;
        padding-bottom: 32px;
        border-right: 0;
        border-bottom: 1px solid rgba(132, 153, 181, 0.22);
    }

    body[data-page="home"] .security-card {
        padding-top: 32px;
        padding-left: 0;
    }

    body[data-page="home"] .security-card .muted,
    body[data-page="home"] .home-card-actions {
        max-width: 560px;
    }

    body[data-page="home"] .archive-card {
        grid-template-columns: minmax(0, 1fr) 260px;
    }
}

@media (max-width: 980px) {
    body[data-page="home"] .home-hero {
        min-height: 470px;
        padding: 58px 34px 42px;
    }

    body[data-page="home"] .home-hero h1 {
        max-width: 640px;
        font-size: 3.2rem;
    }
}

@media (max-width: 900px) {
    body[data-page="home"] .public-sidebar {
        top: 0;
        left: 0;
        width: 286px;
        height: 100dvh;
        border-radius: 0 16px 16px 0;
        transform: translateX(-100%);
    }

    body[data-page="home"].public-menu-open .public-sidebar {
        transform: translateX(0);
    }

    body[data-page="home"] .public-main {
        margin-left: 0;
        width: 100%;
        padding: 12px 0 24px;
    }

    body[data-page="home"] .public-topbar {
        display: flex;
        margin-bottom: 12px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.86);
        box-shadow: 0 12px 26px rgba(36, 61, 98, 0.09);
    }

    body[data-page="home"] .public-menu-toggle,
    body[data-page="home"] .public-menu-close {
        border-radius: 10px;
    }

    body[data-page="home"] .hero-alert {
        display: none;
    }
}

@media (max-width: 720px) {
    body[data-page="home"] .home-hero {
        min-height: 520px;
        padding: 38px 22px 34px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 56%, rgba(255, 255, 255, 0.4) 100%),
            url("/frontend/assets/images/public-home-hero-v2.webp") 64% center / cover no-repeat;
    }

    body[data-page="home"] .hero-overline {
        font-size: 1.25rem;
    }

    body[data-page="home"] .home-hero h1 {
        max-width: 100%;
        font-size: 2.1rem;
        line-height: 1.1;
        overflow-wrap: anywhere;
    }

    body[data-page="home"] .hero-stripes {
        gap: 10px;
        margin: 20px 0 22px;
    }

    body[data-page="home"] .hero-stripes span {
        width: 56px;
    }

    body[data-page="home"] .home-hero .hero-kicker {
        font-size: 1.25rem;
    }

    body[data-page="home"] .home-hero .hero-text,
    body[data-page="home"] .security-card .muted,
    body[data-page="home"] .archive-copy .muted {
        font-size: 1rem;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    body[data-page="home"] .home-card {
        padding: 0;
        border-radius: 0;
    }

    body[data-page="home"] .public-home-grid {
        padding: 30px 22px;
    }

    body[data-page="home"] .archive-card {
        padding: 30px 22px;
    }

    body[data-page="home"] .home-card-head {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 14px;
    }

    body[data-page="home"] .home-card-link {
        grid-column: 2;
        justify-self: start;
    }

    body[data-page="home"] .event-item {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 14px;
        min-height: 0;
        padding: 18px 16px 18px 20px;
    }

    body[data-page="home"] .event-date-icon {
        width: 50px;
        height: 50px;
    }

    body[data-page="home"] .event-date-icon .ph {
        font-size: 1.45rem;
    }

    body[data-page="home"] .archive-card {
        grid-template-columns: 1fr;
    }

    body[data-page="home"] .archive-visual {
        min-height: 172px;
    }

    body[data-page="home"] .archive-photo.main {
        right: 22px;
    }

    body[data-page="home"] .archive-photo.sub {
        right: 138px;
    }
}

@media (max-width: 460px) {
    body[data-page="home"] .public-main {
        padding: 10px 0 18px;
    }

    body[data-page="home"] .home-hero {
        min-height: 560px;
        padding: 32px 18px;
    }

    body[data-page="home"] .home-hero h1 {
        font-size: 1.78rem;
    }

    body[data-page="home"] .hero-stripes span {
        width: 46px;
    }

    body[data-page="home"] .home-card h2 {
        font-size: 1.35rem;
    }

    body[data-page="home"] .event-item {
        grid-template-columns: 1fr;
    }

    body[data-page="home"] .archive-visual {
        display: none;
    }
}

body[data-page="immigration"] {
    --brand-blue: #0f4fc4;
    --brand-blue-dark: #082c72;
    --brand-gold: #f2a51a;
    --brand-red: #d7282f;
    --immigration-line: #d8e2f0;
    background:
        radial-gradient(980px 420px at 86% 0%, rgba(15, 79, 196, 0.13), transparent 64%),
        radial-gradient(680px 360px at 0% 94%, rgba(242, 165, 26, 0.12), transparent 68%),
        linear-gradient(180deg, #f5f8fc 0%, #edf3f9 100%);
    color: #172d54;
}

body[data-page="immigration"] h1,
body[data-page="immigration"] h2,
body[data-page="immigration"] h3 {
    font-family: "Outfit", "Source Sans 3", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}

body[data-page="immigration"] .public-layout {
    min-height: 100dvh;
}

body[data-page="immigration"] .public-sidebar {
    top: 8px;
    left: 8px;
    width: 280px;
    height: calc(100dvh - 16px);
    padding: 22px 16px;
    border: 1px solid rgba(15, 79, 196, 0.1);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.91)),
        #ffffff;
    box-shadow: 0 20px 46px rgba(36, 61, 98, 0.13);
    overflow: hidden;
}

body[data-page="immigration"] .public-sidebar::after {
    content: "";
    position: absolute;
    right: -62px;
    bottom: -44px;
    width: 260px;
    height: 190px;
    border-radius: 56% 44% 0 0;
    background: linear-gradient(145deg, rgba(16, 88, 205, 0.1), rgba(255, 255, 255, 0));
    pointer-events: none;
}

body[data-page="immigration"] .public-sidebar-head,
body[data-page="immigration"] .public-nav,
body[data-page="immigration"] .public-sidebar-footer {
    position: relative;
}

body[data-page="immigration"] .public-logo {
    width: 232px;
}

body[data-page="immigration"] .public-nav {
    gap: 10px;
    margin-top: 30px;
}

body[data-page="immigration"] .public-nav-item {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    border-radius: 14px;
    color: #304467;
    font-size: 1rem;
    line-height: 1.15;
    box-shadow: none;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body[data-page="immigration"] .public-nav-item .ph {
    width: 22px;
    min-width: 22px;
    color: #283f69;
    font-size: 1.45rem;
}

body[data-page="immigration"] .public-nav-item .nav-label {
    min-width: 0;
}

body[data-page="immigration"] .public-nav-item:hover {
    transform: translateY(-1px);
    background: rgba(15, 79, 196, 0.07);
}

body[data-page="immigration"] .public-nav-item.active {
    color: #ffffff;
    background: linear-gradient(135deg, #0f57d6 0%, #0744b8 100%);
    border-color: rgba(7, 68, 184, 0.28);
    box-shadow: 0 15px 28px rgba(15, 79, 196, 0.27);
}

body[data-page="immigration"] .public-nav-item.active .ph {
    color: #ffffff;
}

body[data-page="immigration"] .public-sidebar-footer {
    border: 0;
    padding-top: 18px;
}

body[data-page="immigration"] .public-sidebar .lang-switch {
    width: 100%;
    justify-content: stretch;
    padding: 4px;
    border: 1px solid rgba(15, 79, 196, 0.09);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 24px rgba(36, 61, 98, 0.09);
}

body[data-page="immigration"] .public-sidebar .lang-switch button {
    flex: 1 1 0;
    border-radius: 999px;
    padding: 8px 10px;
    color: #4b5d78;
}

body[data-page="immigration"] .public-sidebar .lang-switch button + button {
    border-left: 1px solid rgba(15, 79, 196, 0.1);
}

body[data-page="immigration"] .public-sidebar .lang-switch button.active {
    background: var(--brand-blue);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(15, 79, 196, 0.2);
}

body[data-page="immigration"] .public-main {
    margin-left: 296px;
    width: calc(100% - 296px);
    padding: 0 0 38px;
}

body[data-page="immigration"] .public-topbar {
    display: none;
}

body[data-page="immigration"]:not(.public-menu-open) .public-menu-backdrop {
    display: none;
}

body[data-page="immigration"] .immigration-article {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 1rem;
}

body[data-page="immigration"] .immigration-hero {
    min-height: 450px;
    padding: 48px 64px 56px;
    border-bottom: 1px solid rgba(132, 153, 181, 0.22);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.95) 38%, rgba(255, 255, 255, 0.68) 57%, rgba(255, 255, 255, 0.12) 100%),
        url("/frontend/assets/images/public-home-hero-v2.webp") center right / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body[data-page="immigration"] .immigration-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
    color: #49617f;
    font-size: 0.88rem;
    font-weight: 700;
}

body[data-page="immigration"] .immigration-breadcrumb a {
    color: var(--brand-blue);
    text-decoration: none;
}

body[data-page="immigration"] .immigration-breadcrumb .ph {
    color: #8396b2;
    font-size: 0.88rem;
}

body[data-page="immigration"] .immigration-hero-copy {
    max-width: 680px;
    min-width: 0;
}

body[data-page="immigration"] .immigration-hero h1 {
    margin: 0;
    color: #082762;
    font-size: clamp(2.2rem, 4.2vw, 3.6rem);
    font-weight: 700;
    line-height: 1.04;
}

body[data-page="immigration"] .immigration-hero h2 {
    margin: 18px 0 18px;
    color: var(--brand-blue);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 700;
    line-height: 1.25;
}

body[data-page="immigration"] .immigration-hero p {
    max-width: 590px;
    margin: 0 0 13px;
    color: #405577;
    font-size: 1.08rem;
    line-height: 1.62;
}

body[data-page="immigration"] .immigration-podcast-jump {
    min-height: 46px;
    margin-top: 16px;
    padding: 0 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid rgba(15, 79, 196, 0.45);
    background: #ffffff;
    color: var(--brand-blue);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(15, 79, 196, 0.11);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

body[data-page="immigration"] .immigration-podcast-jump:hover {
    background: #f4f8ff;
    border-color: var(--brand-blue);
}

body[data-page="immigration"] .immigration-podcast-jump:active,
body[data-page="immigration"] .rail-podcast-card:active {
    transform: translateY(1px);
}

body[data-page="immigration"] .immigration-body {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(260px, 320px);
    gap: 58px;
    align-items: start;
    padding: 50px 64px 46px;
    border-bottom: 1px solid rgba(132, 153, 181, 0.2);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.54), rgba(255, 255, 255, 0.2)),
        rgba(244, 248, 253, 0.44);
}

body[data-page="immigration"] .immigration-main-copy {
    min-width: 0;
    display: grid;
    gap: 34px;
}

body[data-page="immigration"] .immigration-text-section {
    position: relative;
    padding-left: 30px;
    border-left: 3px solid rgba(15, 79, 196, 0.18);
}

body[data-page="immigration"] .immigration-text-section::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 4px;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: var(--brand-blue);
    box-shadow: 0 0 0 7px rgba(15, 79, 196, 0.09);
}

body[data-page="immigration"] .immigration-text-section h2 {
    max-width: 680px;
    margin: 0 0 16px;
    color: #0c2b64;
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    font-weight: 700;
    line-height: 1.15;
}

body[data-page="immigration"] .immigration-text-section p {
    max-width: 760px;
    margin: 0 0 16px;
    color: #314969;
    font-size: 1.08rem;
    line-height: 1.72;
}

body[data-page="immigration"] .immigration-text-section p:last-child {
    margin-bottom: 0;
}

body[data-page="immigration"] .helper-list {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

body[data-page="immigration"] .helper-list li {
    position: relative;
    margin: 0;
    padding: 17px 18px 17px 22px;
    border: 1px solid rgba(132, 153, 181, 0.26);
    border-left: 4px solid var(--brand-blue);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.76);
    color: #314969;
    line-height: 1.58;
    box-shadow: 0 14px 28px rgba(36, 61, 98, 0.07);
}

body[data-page="immigration"] .helper-list strong {
    color: #0c2b64;
}

body[data-page="immigration"] .article-copy a {
    color: var(--brand-blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

body[data-page="immigration"] .immigration-side-rail {
    position: sticky;
    top: 32px;
    display: grid;
    gap: 16px;
}

body[data-page="immigration"] .rail-podcast-card,
body[data-page="immigration"] .rail-note {
    border-radius: 14px;
    border: 1px solid rgba(132, 153, 181, 0.22);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 34px rgba(36, 61, 98, 0.08);
}

body[data-page="immigration"] .rail-podcast-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 18px;
    color: #0c2b64;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

body[data-page="immigration"] .rail-podcast-card:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 79, 196, 0.34);
    background: #ffffff;
}

body[data-page="immigration"] .rail-icon {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-blue);
    color: #ffffff;
}

body[data-page="immigration"] .rail-icon .ph {
    font-size: 1.45rem;
}

body[data-page="immigration"] .rail-podcast-card strong {
    display: block;
    font-size: 1rem;
    line-height: 1.2;
}

body[data-page="immigration"] .rail-podcast-card small {
    display: block;
    margin-top: 4px;
    color: #526885;
    font-size: 0.9rem;
    line-height: 1.35;
}

body[data-page="immigration"] .rail-note {
    padding: 18px;
    background:
        radial-gradient(220px 130px at 100% 0%, rgba(242, 165, 26, 0.18), transparent 66%),
        rgba(255, 255, 255, 0.78);
}

body[data-page="immigration"] .rail-note .ph {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: rgba(242, 165, 26, 0.16);
    color: #af750e;
    font-size: 1.25rem;
}

body[data-page="immigration"] .rail-note p {
    margin: 0;
    color: #405577;
    font-size: 0.97rem;
    line-height: 1.55;
}

body[data-page="immigration"] .immigration-podcast-section {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    padding: 48px 64px 64px;
    background:
        radial-gradient(360px 260px at 100% 100%, rgba(15, 79, 196, 0.1), transparent 70%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.35));
}

body[data-page="immigration"] .podcast-heading {
    min-width: 0;
}

body[data-page="immigration"] .podcast-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eaf2ff;
    color: var(--brand-blue);
    font-weight: 800;
    font-size: 0.9rem;
}

body[data-page="immigration"] .podcast-badge .ph {
    font-size: 1.1rem;
}

body[data-page="immigration"] .immigration-podcast-section h2 {
    margin: 0;
    color: #0c2b64;
    font-size: clamp(1.65rem, 2.8vw, 2.45rem);
    font-weight: 700;
    line-height: 1.12;
}

body[data-page="immigration"] .podcast-player-frame {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(132, 153, 181, 0.26);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 52px rgba(36, 61, 98, 0.13);
}

body[data-page="immigration"] .podcast-player-frame iframe {
    width: 100%;
    height: 240px;
    display: block;
    border: 0;
}

@media (max-width: 1180px) {
    body[data-page="immigration"] .immigration-body {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    body[data-page="immigration"] .immigration-side-rail {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    body[data-page="immigration"] .public-sidebar {
        top: 0;
        left: 0;
        width: 286px;
        height: 100dvh;
        border-radius: 0 16px 16px 0;
        transform: translateX(-100%);
    }

    body[data-page="immigration"].public-menu-open .public-sidebar {
        transform: translateX(0);
    }

    body[data-page="immigration"] .public-main {
        margin-left: 0;
        width: 100%;
        padding: 12px 0 24px;
    }

    body[data-page="immigration"] .public-topbar {
        display: flex;
        margin-bottom: 12px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.86);
        box-shadow: 0 12px 26px rgba(36, 61, 98, 0.09);
    }

    body[data-page="immigration"] .public-menu-toggle,
    body[data-page="immigration"] .public-menu-close {
        border-radius: 10px;
    }

    body[data-page="immigration"] .immigration-hero {
        min-height: 430px;
        padding: 42px 34px 46px;
    }

    body[data-page="immigration"] .immigration-body,
    body[data-page="immigration"] .immigration-podcast-section {
        padding-left: 34px;
        padding-right: 34px;
    }

    body[data-page="immigration"] .immigration-podcast-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    body[data-page="immigration"] .immigration-hero {
        min-height: 520px;
        padding: 34px 22px 38px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.93) 58%, rgba(255, 255, 255, 0.46) 100%),
            url("/frontend/assets/images/public-home-hero-v2.webp") 64% center / cover no-repeat;
    }

    body[data-page="immigration"] .immigration-breadcrumb {
        margin-bottom: 22px;
    }

    body[data-page="immigration"] .immigration-hero h1 {
        font-size: 2.2rem;
        overflow-wrap: anywhere;
    }

    body[data-page="immigration"] .immigration-hero p,
    body[data-page="immigration"] .immigration-text-section p {
        font-size: 1rem;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    body[data-page="immigration"] .immigration-body,
    body[data-page="immigration"] .immigration-podcast-section {
        padding: 32px 22px;
    }

    body[data-page="immigration"] .immigration-text-section {
        padding-left: 22px;
    }

    body[data-page="immigration"] .helper-list li {
        padding: 15px 16px;
    }

    body[data-page="immigration"] .immigration-side-rail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    body[data-page="immigration"] .public-main {
        padding: 10px 0 18px;
    }

    body[data-page="immigration"] .immigration-hero {
        min-height: 560px;
        padding: 30px 18px 34px;
    }

    body[data-page="immigration"] .immigration-hero h1 {
        font-size: 1.8rem;
    }

    body[data-page="immigration"] .immigration-hero h2,
    body[data-page="immigration"] .immigration-text-section h2 {
        font-size: 1.28rem;
    }

    body[data-page="immigration"] .immigration-body,
    body[data-page="immigration"] .immigration-podcast-section {
        padding-left: 18px;
        padding-right: 18px;
    }

    body[data-page="immigration"] .podcast-player-frame iframe {
        height: 280px;
    }
}
