body.public-body {
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--brand-accent) 18%, transparent), transparent 34%),
        linear-gradient(180deg, color-mix(in srgb, var(--body-bg) 90%, #ffffff) 0%, var(--body-bg) 100%);
    color: var(--text-color);
    font-family: "Manrope", sans-serif;
}

body.public-body h1,
body.public-body h2,
body.public-body h3,
body.public-body h4,
body.public-body .navbar-brand {
    color: var(--heading-color);
    font-family: "Fraunces", serif;
}

body.public-body a {
    color: var(--brand-primary);
    text-decoration: none;
}

body.public-body a:hover {
    color: var(--brand-secondary);
}

.section-block {
    padding: 4.5rem 0;
}

.section-tight {
    padding-top: 3.25rem;
}

.section-muted {
    background: color-mix(in srgb, var(--brand-primary) 4%, #ffffff);
}

.section-header {
    max-width: 42rem;
    margin-bottom: 2rem;
}

.section-title {
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.1;
}

.eyebrow,
.mini-label,
.footer-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--brand-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.public-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid color-mix(in srgb, var(--brand-secondary) 12%, transparent);
}

.public-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    margin-right: 1rem;
}

.public-navbar-collapse {
    gap: 1rem;
}

.public-nav-list {
    align-items: center;
    flex-wrap: wrap;
    row-gap: 0.4rem;
}

.navbar-logo {
    display: block;
    width: auto;
    height: 2.5rem;
    max-width: 10rem;
    object-fit: contain;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
}

.public-navbar .nav-link {
    color: var(--text-color);
    padding: 0.6rem 0.9rem !important;
    border-radius: 999px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.public-navbar .nav-link:hover,
.public-navbar .nav-link.active {
    color: var(--brand-secondary);
    background: color-mix(in srgb, var(--brand-primary) 10%, #ffffff);
}

.btn-brand,
.btn-outline-brand {
    border-radius: var(--btn-radius);
    font-weight: 700;
    padding: 0.85rem 1.35rem;
}

.public-navbar-cta {
    margin-left: auto;
}

.btn-brand {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    border: 1px solid transparent;
    color: #ffffff;
}

.btn-brand:hover,
.btn-brand:focus {
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-primary));
    color: #ffffff;
}

.btn-outline-brand {
    border: 1px solid color-mix(in srgb, var(--brand-primary) 28%, transparent);
    color: var(--brand-secondary);
    background: #ffffff;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
    color: var(--brand-secondary);
    border-color: var(--brand-primary);
    background: color-mix(in srgb, var(--brand-primary) 6%, #ffffff);
}

.hero-section {
    padding: 5.5rem 0 4rem;
}

.hero-copy {
    max-width: 38rem;
    color: color-mix(in srgb, var(--text-color) 72%, #ffffff);
    font-size: 1.15rem;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    color: color-mix(in srgb, var(--text-color) 74%, #ffffff);
    font-weight: 600;
}

.hero-points i,
.feature-check {
    color: var(--brand-accent);
}

.hero-side-card,
.service-card,
.info-card,
.step-card,
.cta-strip,
.page-hero-card,
.form-shell,
.status-card,
.feedback-card,
.success-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid color-mix(in srgb, var(--brand-secondary) 10%, transparent);
    border-radius: var(--card-radius);
    box-shadow: 0 20px 40px rgba(16, 24, 40, 0.08);
}

.hero-side-card,
.page-hero-card,
.form-shell,
.status-card,
.feedback-card,
.success-card {
    padding: clamp(1.5rem, 2vw, 2.25rem);
}

.service-card,
.info-card,
.step-card {
    padding: 1.5rem;
}

.mini-stat + .mini-stat {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid color-mix(in srgb, var(--brand-secondary) 10%, transparent);
}

.mini-stat strong {
    display: block;
    margin-top: 0.3rem;
}

.service-card h3,
.info-card h3,
.step-card h3,
.status-card strong,
.success-card strong {
    color: var(--heading-color);
}

.service-card p,
.info-card p,
.feedback-card p,
.status-card p,
.footer-copy {
    color: color-mix(in srgb, var(--text-color) 72%, #ffffff);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-primary) 10%, #ffffff);
    color: var(--brand-primary);
    font-size: 1.4rem;
}

.step-card {
    position: relative;
    overflow: hidden;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-accent), color-mix(in srgb, var(--brand-accent) 70%, #ffffff));
    color: var(--brand-secondary);
    font-weight: 800;
}

.cta-strip {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.intro-card {
    background: linear-gradient(180deg, color-mix(in srgb, var(--brand-primary) 5%, #ffffff), rgba(255, 255, 255, 0.92));
}

.page-hero-card {
    background: linear-gradient(180deg, color-mix(in srgb, var(--brand-secondary) 6%, #ffffff), rgba(255, 255, 255, 0.96));
}

.issue-cluster-card {
    background: linear-gradient(180deg, color-mix(in srgb, var(--brand-primary) 4%, #ffffff), rgba(255, 255, 255, 0.96));
}

.issue-list {
    margin: 0;
    padding-left: 1.15rem;
    color: color-mix(in srgb, var(--text-color) 80%, #ffffff);
    display: grid;
    gap: 0.55rem;
}

.issue-next-card,
.resource-card,
.faq-card {
    background: rgba(255, 255, 255, 0.94);
}

.resource-card h2,
.faq-card h3,
.issue-next-card h2 {
    color: var(--heading-color);
}

.form-shell .form-label {
    font-weight: 700;
    color: var(--heading-color);
}

.form-control,
.form-select {
    min-height: 3.1rem;
    border-radius: calc(var(--btn-radius) - 2px);
    border-color: color-mix(in srgb, var(--brand-secondary) 14%, transparent);
    padding: 0.9rem 1rem;
}

textarea.form-control {
    min-height: auto;
}

.form-control:focus,
.form-select:focus {
    border-color: color-mix(in srgb, var(--brand-primary) 48%, transparent);
    box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--brand-primary) 14%, transparent);
}

.status-grid {
    display: grid;
    gap: 1rem;
}

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

.status-grid strong {
    display: block;
    margin-top: 0.35rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-primary) 10%, #ffffff);
    color: var(--brand-secondary);
    font-size: 0.92rem;
    font-weight: 700;
}

.status-spotlight {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: clamp(1.4rem, 2.4vw, 2rem);
    border-radius: var(--card-radius);
    border: 1px solid color-mix(in srgb, var(--brand-secondary) 12%, transparent);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 40px rgba(16, 24, 40, 0.08);
}

.spotlight-review {
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 8%, #ffffff), rgba(255, 255, 255, 0.98));
    border-color: color-mix(in srgb, var(--brand-primary) 22%, transparent);
}

.spotlight-action {
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand-accent) 10%, #ffffff), rgba(255, 255, 255, 0.98));
    border-color: color-mix(in srgb, var(--brand-accent) 26%, transparent);
}

.spotlight-payment {
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand-secondary) 8%, #ffffff), rgba(255, 255, 255, 0.98));
    border-color: color-mix(in srgb, var(--brand-secondary) 24%, transparent);
}

.spotlight-closed {
    background: linear-gradient(135deg, color-mix(in srgb, #10b981 8%, #ffffff), rgba(255, 255, 255, 0.98));
    border-color: color-mix(in srgb, #10b981 22%, transparent);
}

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

.progress-step {
    padding: 1rem 1.1rem;
    border-radius: calc(var(--card-radius) - 6px);
    border: 1px solid color-mix(in srgb, var(--brand-secondary) 14%, transparent);
    background: color-mix(in srgb, var(--body-bg) 28%, #ffffff);
}

.progress-step-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.progress-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-secondary) 10%, #ffffff);
    color: var(--heading-color);
    font-size: 0.9rem;
    font-weight: 800;
}

.progress-step-state {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--text-color) 64%, #ffffff);
}

.progress-step-title {
    margin-bottom: 0.45rem;
    color: var(--heading-color);
    font-size: 1.05rem;
}

.progress-step.state-complete {
    border-color: color-mix(in srgb, #10b981 18%, transparent);
    background: color-mix(in srgb, #10b981 8%, #ffffff);
}

.progress-step.state-complete .progress-step-number {
    background: #10b981;
    color: #ffffff;
}

.progress-step.state-complete .progress-step-state {
    color: #047857;
}

.progress-step.state-current {
    border-color: color-mix(in srgb, var(--brand-primary) 26%, transparent);
    background: color-mix(in srgb, var(--brand-primary) 8%, #ffffff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-primary) 12%, transparent);
}

.progress-step.state-current .progress-step-number {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #ffffff;
}

.progress-step.state-current .progress-step-state {
    color: var(--brand-secondary);
}

.progress-step.state-attention {
    border-color: color-mix(in srgb, var(--brand-accent) 34%, transparent);
    background: color-mix(in srgb, var(--brand-accent) 10%, #ffffff);
}

.progress-step.state-attention .progress-step-number {
    background: var(--brand-accent);
    color: var(--brand-secondary);
}

.progress-step.state-attention .progress-step-state {
    color: color-mix(in srgb, var(--brand-secondary) 84%, #000000);
}

.progress-step.state-upcoming {
    opacity: 0.92;
}

.payment-info-card {
    border-color: color-mix(in srgb, var(--brand-accent) 26%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--brand-accent) 6%, #ffffff), rgba(255, 255, 255, 0.96));
}

.payment-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: color-mix(in srgb, #10b981 12%, #ffffff);
    color: #047857;
    border: 1px solid color-mix(in srgb, #10b981 18%, transparent);
    font-weight: 700;
}

.timeline-list {
    display: grid;
    gap: 1rem;
}

.timeline-card {
    padding: 1rem 1.15rem;
    border-radius: calc(var(--card-radius) - 8px);
    border: 1px solid color-mix(in srgb, var(--brand-secondary) 12%, transparent);
    background: color-mix(in srgb, var(--body-bg) 35%, #ffffff);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1rem 1fr;
    gap: 1rem;
    align-items: start;
}

.timeline-dot {
    width: 0.75rem;
    height: 0.75rem;
    margin-top: 0.45rem;
    border-radius: 999px;
    background: var(--brand-primary);
}

.choice-row {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.choice-card {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 1rem;
    border: 1px solid color-mix(in srgb, var(--brand-secondary) 14%, transparent);
    border-radius: calc(var(--btn-radius) - 2px);
    cursor: pointer;
    background: #ffffff;
    font-weight: 600;
}

.choice-card input {
    accent-color: var(--brand-primary);
}

.instruction-list {
    margin: 0;
    padding-left: 1.2rem;
    color: color-mix(in srgb, var(--text-color) 80%, #ffffff);
}

.success-card {
    max-width: 48rem;
    margin: 0 auto;
}

.success-reference-card strong {
    font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.success-reference-grid .next-step-card h2 {
    color: var(--heading-color);
}

.success-icon {
    width: 4rem;
    height: 4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-primary) 10%, #ffffff);
    color: var(--brand-primary);
    font-size: 2rem;
}

.public-footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid color-mix(in srgb, var(--brand-secondary) 10%, transparent);
}

.footer-shell {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-meta {
    display: grid;
    gap: 0.35rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.2rem;
}

.footer-links a {
    font-weight: 600;
}

.public-empty-state {
    padding: 1.5rem;
    border-radius: var(--card-radius);
    background: rgba(255, 255, 255, 0.92);
    border: 1px dashed color-mix(in srgb, var(--brand-secondary) 16%, transparent);
    box-shadow: 0 12px 24px rgba(16, 24, 40, 0.05);
}

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

.feedback-summary strong {
    display: block;
    margin-top: 0.35rem;
}

.feedback-thankyou .info-card {
    background: color-mix(in srgb, var(--brand-primary) 4%, #ffffff);
}

.alerts-stack .alert + .alert {
    margin-top: 0.75rem;
}

.alert {
    border-radius: calc(var(--btn-radius) + 2px);
    border: 1px solid transparent;
    box-shadow: 0 12px 24px rgba(16, 24, 40, 0.06);
}

.compact-info-card {
    min-height: 100%;
    padding: 1rem 1.15rem;
}

.form-text code {
    color: var(--heading-color);
    background: color-mix(in srgb, var(--brand-accent) 16%, #ffffff);
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
}

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

    .public-navbar-collapse {
        padding-top: 1rem;
    }

    .public-nav-list {
        align-items: stretch;
    }

    .public-navbar .nav-link {
        white-space: normal;
    }

    .public-navbar-cta {
        margin-left: 0;
        margin-top: 0.75rem;
    }

    .status-spotlight {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .status-summary-grid,
    .feedback-summary,
    .status-progress-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .hero-section,
    .section-block {
        padding: 3.25rem 0;
    }

    .hero-points {
        flex-direction: column;
        gap: 0.65rem;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .timeline-dot {
        margin-top: 0;
    }
}
