:root {
    --water-950: oklch(22% 0.05 240);
    --water-900: oklch(28% 0.07 238);
    --water-700: oklch(40% 0.11 236);
    --water-600: oklch(48% 0.13 234);
    --water-500: oklch(57% 0.14 232);
    --water-400: oklch(68% 0.12 228);
    --water-100: oklch(94% 0.025 225);
    --water-50: oklch(97.5% 0.012 220);

    --ink-900: oklch(24% 0.015 240);
    --ink-600: oklch(46% 0.02 240);
    --ink-400: oklch(62% 0.015 240);

    --ok-600: oklch(52% 0.13 152);
    --ok-100: oklch(94% 0.045 152);
    --bad-600: oklch(55% 0.19 25);
    --bad-100: oklch(94% 0.045 25);
    --neutral-100: oklch(94% 0.01 240);

    --shadow-sm: 0 1px 2px oklch(30% 0.05 235 / 0.06);
    --shadow-md: 0 8px 24px -8px oklch(30% 0.08 235 / 0.18);
    --shadow-lg: 0 24px 56px -16px oklch(28% 0.09 235 / 0.32);

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    overscroll-behavior-y: none;
}

.public-body {
    font-family: 'Geist', system-ui, sans-serif;
    background: var(--water-50);
    color: var(--ink-900);
    overscroll-behavior-y: none;
}

.public-gov-bar {
    background: var(--water-950);
    color: oklch(100% 0 0 / 0.85);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0;
}

.public-gov-bar i {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.public-navbar {
    background: transparent;
    border-bottom: 1px solid transparent;
    min-height: 60px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: background-color 0.25s var(--ease-out-expo), border-color 0.25s var(--ease-out-expo), box-shadow 0.25s var(--ease-out-expo);
}

@media (max-width: 991.98px) {
    .public-navbar {
        max-height: 85vh;
        overflow-y: auto;
    }
}

.public-navbar .container {
    width: 100%;
}

@media (max-width: 991.98px) {
    .public-navbar .navbar {
        flex-wrap: wrap;
    }

    .public-navbar .navbar-collapse {
        width: 100%;
    }
}

.public-navbar.is-scrolled {
    background: #fff;
    border-bottom-color: var(--neutral-100);
    box-shadow: var(--shadow-sm);
}

.public-navbar .nav-link {
    position: relative;
    font-weight: 600;
    color: var(--ink-600);
    padding: 0.5rem 0.2rem !important;
    margin: 0 0.7rem;
    transition: color 0.2s var(--ease-out-expo);
}

.public-navbar .nav-link::after {
    content: '';
    position: absolute;
    left: 0.2rem;
    right: 0.2rem;
    bottom: -2px;
    height: 2px;
    background: var(--water-700);
    transform: scaleX(0);
    transition: transform 0.2s var(--ease-out-expo);
}

.public-navbar .nav-link:hover {
    color: var(--water-700);
}

.public-navbar .nav-link:hover::after {
    transform: scaleX(0.6);
}

.public-navbar .nav-link.active {
    color: var(--water-700);
}

.public-navbar .nav-link.active::after {
    transform: scaleX(1);
}

.public-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--water-700);
    flex-wrap: wrap;
    row-gap: 0.4rem;
}

@media (max-width: 575.98px) {
    .public-brand img {
        height: 26px !important;
    }

    .public-brand .navbar-brand-divider {
        height: 20px;
        margin: 0 0.5rem;
    }
}

/* ---------- Hero ---------- */

.hero-water {
    position: relative;
    background:
        linear-gradient(165deg, oklch(40% 0.11 236 / 0.55), oklch(22% 0.05 240 / 0.6)),
        url('/img/hero.webp') center / cover no-repeat;
    color: #fff;
    padding: 5rem 0 7rem;
    overflow: hidden;
}

.hero-water::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(oklch(100% 0 0 / 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, black, transparent 75%);
    pointer-events: none;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--water-100);
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: clamp(2.25rem, 4.4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.01em;
    margin-bottom: 0.9rem;
}

.hero-tagline {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--water-100);
    margin-bottom: 0.5rem;
}

.hero-lead {
    max-width: 34rem;
    color: oklch(94% 0.015 225 / 0.85);
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.hero-cta {
    background: #fff;
    color: var(--water-800, var(--water-700));
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.65rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s var(--ease-out-expo);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--water-900);
}

.hero-illustration {
    width: 240px;
    height: 240px;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, oklch(100% 0 0 / 0.18), oklch(100% 0 0 / 0.05) 70%);
    border: 1px solid oklch(100% 0 0 / 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-illustration::before {
    content: '';
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    border: 1px dashed oklch(100% 0 0 / 0.18);
}

.hero-illustration-img {
    max-width: 200px;
    max-height: 200px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ---------- Hero search / stat card ---------- */

.hero-search-card {
    background: oklch(100% 0 0 / 0.16);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid oklch(100% 0 0 / 0.28);
    border-radius: 1.1rem;
    box-shadow: var(--shadow-lg);
    padding: 1.75rem 1.75rem 1.5rem;
    margin-top: -3.5rem;
    position: relative;
    z-index: 2;
}

.hero-search-tabs {
    gap: 0.4rem;
    border-bottom: 1px solid oklch(100% 0 0 / 0.22);
    padding-bottom: 1rem;
    margin-bottom: 1.25rem !important;
}

.hero-search-tabs .nav-link {
    color: oklch(100% 0 0 / 0.8);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 0.9rem;
    border-radius: 0.55rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background-color 0.2s var(--ease-out-expo), color 0.2s var(--ease-out-expo);
}

.hero-search-tabs .nav-link i {
    width: 16px;
    height: 16px;
}

.hero-search-tabs .nav-link:hover {
    background: oklch(100% 0 0 / 0.14);
    color: #fff;
}

.hero-search-tabs .nav-link.active {
    background: #fff;
    color: var(--water-700);
}

.hero-search-stat {
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.hero-search-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: oklch(100% 0 0 / 0.7);
    margin-top: 0.3rem;
}

/* ---------- Feature row ---------- */

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border-radius: 1rem;
    background: var(--water-100);
    color: var(--water-700);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s var(--ease-out-expo), background-color 0.25s var(--ease-out-expo);
}

.feature-icon i {
    width: 26px;
    height: 26px;
}

.feature-item:hover .feature-icon {
    background: var(--water-700);
    color: #fff;
    transform: translateY(-3px);
}

/* ---------- Titik pantau grid ---------- */

.titik-card {
    overflow: hidden;
    transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s var(--ease-out-expo);
}

.titik-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.titik-card-cover {
    height: 96px;
    background: linear-gradient(135deg, var(--water-100), oklch(90% 0.035 220));
    color: var(--water-700);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem 0.9rem 0 0;
}

.titik-card-cover i {
    width: 30px;
    height: 30px;
}

/* ---------- Cara lapor (connected steps) ---------- */

.cara-lapor {
    background: linear-gradient(180deg, var(--water-600), var(--water-700));
    color: #fff;
    padding: 4rem 0;
}

.cara-step-row {
    position: relative;
}

.cara-step {
    position: relative;
}

.cara-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 26px;
    right: -50%;
    width: 100%;
    border-top: 2px dashed oklch(100% 0 0 / 0.22);
    z-index: 0;
}

.cara-step-number {
    width: 52px;
    height: 52px;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--water-700);
    border: 1px solid oklch(100% 0 0 / 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* ---------- Stats + testimonial strip ---------- */

.stats-strip {
    background: var(--water-600);
    color: #fff;
    padding: 3rem 0;
}

.stats-number {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.testimonial-card {
    background: oklch(100% 0 0 / 0.1);
    border: 1px solid oklch(100% 0 0 / 0.18);
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    font-size: 1.02rem;
    line-height: 1.55;
}

/* ---------- Sections & cards ---------- */

.public-section {
    padding: 3.5rem 0;
}

.public-card {
    background: #fff;
    border-radius: 0.9rem;
    border: 1px solid var(--neutral-100);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s var(--ease-out-expo), transform 0.2s var(--ease-out-expo);
}

a:hover > .public-card {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.public-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.public-status-badge i {
    width: 8px;
    height: 8px;
}

.public-status-memenuhi { color: var(--ok-600); background: var(--ok-100); }
.public-status-melebihi { color: var(--bad-600); background: var(--bad-100); }
.public-status-belum_ada_data { color: var(--ink-400); background: var(--neutral-100); }

.public-footer {
    background: linear-gradient(180deg, var(--water-950), oklch(15% 0.03 240));
    color: oklch(85% 0.015 230 / 0.85);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

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

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

.footer-brand {
    color: #fff;
}

.footer-brand p {
    color: oklch(85% 0.015 230 / 0.7);
    line-height: 1.6;
}

.footer-col-title {
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    font-size: 0.875rem;
}

.footer-links a {
    color: oklch(85% 0.015 230 / 0.75);
    text-decoration: none;
    transition: color 0.2s var(--ease-out-expo);
}

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

.footer-links i {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--water-400);
}

.footer-social {
    display: flex;
    gap: 0.6rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: oklch(100% 0 0 / 0.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s var(--ease-out-expo), transform 0.2s var(--ease-out-expo);
}

.footer-social a:hover {
    background: var(--water-500);
    transform: translateY(-2px);
}

.footer-social i {
    width: 16px;
    height: 16px;
}

.footer-bottom {
    border-top: 1px solid oklch(100% 0 0 / 0.1);
    padding: 1.25rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: oklch(85% 0.015 230 / 0.6);
}


#publicMap, #laporMap, #titikDetailMap {
    height: 480px;
    border-radius: 0.75rem;
    border: 1px solid var(--neutral-100);
}

/* ---------- Section rhythm ---------- */

.public-section + .public-section {
    border-top: 1px solid var(--neutral-100);
}

.public-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--water-600);
    margin-bottom: 0.4rem;
}

/* ---------- Forms (lapor sungai, filters) ---------- */

.public-form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--ink-900);
    margin-bottom: 0.35rem;
}

.public-form-hint {
    font-size: 0.78rem;
    color: var(--ink-400);
    margin-top: 0.35rem;
}

.public-fieldset {
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--neutral-100);
}

.public-fieldset:first-child {
    padding-top: 0.25rem;
}

.public-fieldset:last-of-type {
    border-bottom: none;
    padding-bottom: 0.5rem;
}

.public-fieldset-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink-900);
    margin-bottom: 0.25rem;
}

.public-fieldset-title i {
    width: 18px;
    height: 18px;
    color: var(--water-600);
}

.public-fieldset-hint {
    font-size: 0.82rem;
    color: var(--ink-400);
    margin-bottom: 1.1rem;
}

.form-control,
.form-select {
    border-color: var(--neutral-100);
    border-radius: 0.55rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--water-500);
    box-shadow: 0 0 0 3px var(--water-100);
}

/* ---------- Empty state ---------- */

.public-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--ink-400);
}

.public-empty-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--water-50);
    display: flex;
    align-items: center;
    justify-content: center;
}

.public-empty-icon i {
    width: 26px;
    height: 26px;
    color: var(--water-500);
}

.leaflet-interactive:focus {
    outline: none;
}

.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--water-700);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s var(--ease-out-expo), transform 0.25s var(--ease-out-expo), background-color 0.2s var(--ease-out-expo);
    z-index: 1040;
}

.back-to-top i {
    width: 20px;
    height: 20px;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--water-900);
}

/* ---------- News cards (beranda) ---------- */

.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 0.9rem;
    border: 1px solid var(--neutral-100);
    overflow: hidden;
    transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s var(--ease-out-expo);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.news-card-cover {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, var(--water-100), oklch(90% 0.035 220));
    color: var(--water-700);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.news-card-cover i {
    width: 32px;
    height: 32px;
}

.news-card-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: oklch(20% 0.02 240 / 0.65);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.news-card-tag-static {
    position: static;
    display: inline-block;
}

.news-card-body {
    padding: 1.1rem 1.1rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-date {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink-400);
}

.news-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink-900);
    margin: 0.35rem 0 0.4rem;
    line-height: 1.35;
}

.news-card-excerpt {
    font-size: 0.85rem;
    color: var(--ink-600);
    margin: 0;
    line-height: 1.55;
}

/* ---------- Report feed (beranda) ---------- */

.report-feed {
    background: #fff;
    border-radius: 0.9rem;
    border: 1px solid var(--neutral-100);
    overflow: hidden;
}

.report-feed-item {
    display: flex;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--neutral-100);
    transition: background-color 0.2s var(--ease-out-expo);
}

.report-feed-item:last-child {
    border-bottom: none;
}

.report-feed-item:hover {
    background: var(--water-50);
}

.report-feed-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--water-100);
    color: var(--water-700);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.report-feed-icon i {
    width: 17px;
    height: 17px;
}

.report-feed-content {
    flex: 1;
    min-width: 0;
}

.report-feed-time {
    font-size: 0.72rem;
    color: var(--ink-400);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ---------- Konten toolbar (artikel index) ---------- */

.konten-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: linear-gradient(155deg, var(--water-50), #fff 65%);
    border: 1px solid var(--neutral-100);
    border-radius: 22px;
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-sm);
}

.konten-toolbar-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.konten-search {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--neutral-100);
    border-radius: 999px;
    padding: 0.55rem 0.6rem 0.55rem 1rem;
    transition: border-color 0.2s var(--ease-out-expo), box-shadow 0.2s var(--ease-out-expo);
}

.konten-search:focus-within {
    border-color: var(--water-400);
    box-shadow: 0 0 0 3px var(--water-100);
}

.konten-search i {
    width: 16px;
    height: 16px;
    color: var(--water-600);
    flex-shrink: 0;
}

.konten-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.875rem;
    width: 100%;
}

.konten-search-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--neutral-100);
    color: var(--ink-400);
    flex-shrink: 0;
    transition: background-color 0.2s var(--ease-out-expo), color 0.2s var(--ease-out-expo);
}

.konten-search-clear:hover {
    background: var(--bad-100);
    color: var(--bad-600);
}

.konten-search-clear i {
    width: 13px;
    height: 13px;
    color: inherit;
}

.konten-sort {
    display: flex;
    gap: 0.25rem;
    background: #fff;
    border: 1px solid var(--neutral-100);
    border-radius: 999px;
    padding: 0.25rem;
    flex-shrink: 0;
}

.konten-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink-400);
    text-decoration: none;
    transition: background-color 0.2s var(--ease-out-expo), color 0.2s var(--ease-out-expo);
}

.konten-sort-btn i {
    width: 14px;
    height: 14px;
}

.konten-sort-btn:hover {
    color: var(--water-600);
}

.konten-sort-btn.active {
    background: var(--water-600);
    color: #fff;
}

.konten-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.konten-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #fff;
    border: 1px solid var(--neutral-100);
    color: var(--ink-600);
    text-decoration: none;
    transition: background-color 0.2s var(--ease-out-expo), color 0.2s var(--ease-out-expo), border-color 0.2s var(--ease-out-expo), transform 0.15s var(--ease-out-expo);
}

.konten-chip:hover {
    border-color: var(--water-400);
    color: var(--water-700);
    transform: translateY(-1px);
}

.konten-chip.active {
    background: var(--water-700);
    border-color: var(--water-700);
    color: #fff;
}

/* ---------- Article detail ---------- */

.article-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.article-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, oklch(20% 0.02 240 / 0.15), oklch(15% 0.02 240 / 0.85));
}

.article-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    color: #fff;
    max-width: 760px;
    padding: 4rem 0 2.5rem;
}

.article-hero-title {
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
}

.article-byline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--neutral-100);
}

.article-byline-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--water-600), var(--water-900));
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--ink-900);
}

.article-content p {
    margin-bottom: 1.4rem;
}

.article-content h2,
.article-content h3 {
    font-weight: 700;
    margin: 2rem 0 1rem;
}

.article-content img {
    width: 100%;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

.article-content a {
    color: var(--water-700);
    text-decoration: underline;
}

.article-content blockquote {
    border-left: 3px solid var(--water-500);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--ink-600);
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.4rem;
    padding-left: 1.4rem;
}

.article-divider {
    height: 1px;
    background: var(--neutral-100);
    margin: 3rem 0 2rem;
}

.article-cover {
    position: relative;
    margin-bottom: 1.75rem;
}

.article-cover-img {
    width: 100%;
    border-radius: 0.9rem;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.article-cover .news-card-tag {
    top: 1rem;
    left: 1rem;
}

/* ---------- Lightbox ---------- */

.article-cover-img.js-lightbox {
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: flex;
    align-items: center;
    justify-content: center;
    background: oklch(10% 0.01 240 / 0);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease-out-expo), background-color 0.3s var(--ease-out-expo);
    padding: 2rem;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
    background: oklch(10% 0.01 240 / 0.92);
}

.lightbox-img {
    max-width: 100%;
    max-height: 88vh;
    border-radius: 0.5rem;
    box-shadow: 0 30px 80px oklch(0% 0 0 / 0.5);
    transform: scale(0.94);
    transition: transform 0.3s var(--ease-out-expo);
}

.lightbox.is-open .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: oklch(100% 0 0 / 0.1);
    border: 1px solid oklch(100% 0 0 / 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s var(--ease-out-expo);
}

.lightbox-close:hover {
    background: oklch(100% 0 0 / 0.2);
}

.lightbox-close i {
    width: 18px;
    height: 18px;
}

.public-navbar .nav-link i {
    width: 18px;
    height: 18px;
}

.navbar-brand-divider {
    display: inline-block;
    width: 1px;
    height: 28px;
    background: var(--neutral-100);
    margin: 0 0.85rem;
}

@media (max-width: 991.98px) {
    .public-navbar .nav-link {
        margin: 0;
        padding: 0.65rem 0.75rem !important;
        border-radius: 0.5rem;
    }

    .public-navbar .nav-link::after {
        display: none;
    }

    .public-navbar .nav-link:hover,
    .public-navbar .nav-link.active {
        background: var(--water-50);
    }

    .public-navbar .navbar-collapse {
        margin-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}

.has-mobile-bottom-nav {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

@media (min-width: 992px) {
    .has-mobile-bottom-nav {
        padding-bottom: 0;
    }
}

.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    display: flex;
    align-items: stretch;
    background: #fff;
    border-top: 1px solid var(--neutral-100);
    box-shadow: 0 -4px 16px oklch(0% 0 0 / 0.06);
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.5rem 0.25rem 0.4rem;
    color: var(--neutral-400);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1;
    transition: color 0.15s ease;
}

.mobile-bottom-nav-item i {
    width: 20px;
    height: 20px;
}

.mobile-bottom-nav-item.active {
    color: var(--water-700);
}

.hero-title-accent {
    color: oklch(85% 0.16 90);
    text-shadow: 0 4px 20px oklch(100% 0 0 / 0.75);
}

.public-card table.table th,
.public-card table.table td {
    padding: 0.75rem 1.1rem;
}

.back-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem 0.45rem 0.7rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--neutral-100);
    color: var(--ink-600);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.2s var(--ease-out-expo), color 0.2s var(--ease-out-expo), transform 0.2s var(--ease-out-expo);
}

.back-pill i {
    width: 15px;
    height: 15px;
    transition: transform 0.2s var(--ease-out-expo);
}

.back-pill:hover {
    background: var(--water-700);
    color: #fff;
    transform: translateX(-2px);
}

.back-pill:hover i {
    transform: translateX(-2px);
}
