:root {
    --afc-ink: #17212b;
    --afc-muted: #5a6774;
    --afc-line: #cfd9e2;
    --afc-surface: rgba(255, 255, 255, 0.92);
    --afc-surface-strong: #ffffff;
    --afc-page: #eef3f7;
    --afc-page-accent: #d9e6ef;
    --afc-navy: #17324b;
    --afc-sky: #487da4;
    --afc-gold: #c38b2e;
    --afc-shadow: 0 18px 40px rgba(23, 50, 75, 0.12);
    --afc-radius: 24px;
    --afc-radius-sm: 16px;
    --afc-max-width: 1180px;
    --afc-font-body: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
    --afc-font-heading: "Bahnschrift", "Trebuchet MS", sans-serif;
}

html, body {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--afc-ink);
    font-family: var(--afc-font-body);
    background:
        radial-gradient(circle at top left, rgba(72, 125, 164, 0.22), transparent 34%),
        radial-gradient(circle at top right, rgba(195, 139, 46, 0.14), transparent 28%),
        linear-gradient(180deg, #f8fbfd 0%, var(--afc-page) 32%, #edf2f6 100%);
}

h1, h2, h3, h4 {
    margin: 0 0 0.75rem;
    font-family: var(--afc-font-heading);
    letter-spacing: 0.02em;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1.02;
}

.page-hero h1[tabindex="-1"]:focus {
    outline: none;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 0;
    line-height: 1.7;
}

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

img {
    max-width: 100%;
    display: block;
}

ul {
    margin: 0;
    padding-left: 1.2rem;
}

.site-shell {
    min-height: 100vh;
}

.site-container {
    width: min(calc(100% - 2rem), var(--afc-max-width));
    margin: 0 auto;
}

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid rgba(72, 125, 164, 0.55);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 20;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: var(--afc-surface-strong);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 1rem 0;
    backdrop-filter: blur(18px);
    background: rgba(248, 251, 253, 0.78);
    border-bottom: 1px solid rgba(207, 217, 226, 0.75);
}

.nav-shell {
    display: grid;
    grid-template-columns: minmax(0, 320px) 1fr auto;
    gap: 1rem;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    min-width: 0;
}

.brand-logo {
    width: auto;
    height: 3rem;
    max-width: 9.5rem;
    object-fit: contain;
    object-position: left center;
    flex: 0 0 auto;
}

.brand-text {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.brand-kicker,
.card-kicker,
.section-eyebrow {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--afc-sky);
    font-weight: 700;
}

.brand-title {
    font-size: 1.4rem;
    font-family: var(--afc-font-heading);
    color: var(--afc-navy);
    line-height: 1.05;
}

.brand-tagline,
.subtle-text,
.footer-copy,
.footer-version,
.document-meta,
.download-path,
.validation-message {
    color: var(--afc-muted);
    font-size: 0.96rem;
}

.footer-version {
    margin-top: 0.6rem;
    font-size: 0.88rem;
}

.desktop-nav,
.nav-actions,
.footer-links,
.hero-actions,
.card-footer-row,
.section-nav,
.mobile-menu-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.hero-actions {
    padding-top: 1.5rem;
}

.page-hero .hero-actions > fluent-button + fluent-button::part(control) {
    color: white;
    background: rgba(10, 24, 38, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.page-hero .hero-actions > fluent-button + fluent-button:hover::part(control) {
    color: white;
    background: rgba(255, 255, 255, 0.18);
    border-color: white;
}

.page-hero .hero-actions > fluent-button + fluent-button:focus-visible::part(control) {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    outline: 3px solid rgba(255, 255, 255, 0.95);
    outline-offset: 2px;
}

.desktop-nav {
    justify-content: center;
}

.nav-link,
.nav-utility-link,
.section-nav a,
.footer-links a {
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    color: var(--afc-muted);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.footer-links.legal-links {
    margin-top: 0.75rem;
}

.nav-link.active,
.nav-link:hover,
.nav-utility-link:hover,
.section-nav a:hover,
.footer-links a:hover,
.mobile-nav-link:hover {
    color: var(--afc-navy);
    background: rgba(72, 125, 164, 0.12);
}

.mobile-menu-button {
    display: none;
}

.mobile-menu-card {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--afc-radius-sm);
}

.mobile-menu-links {
    display: grid;
    gap: 0.35rem;
}

.mobile-nav-link {
    padding: 0.8rem 1rem;
    border-radius: 14px;
}

.site-main {
    padding-bottom: 4rem;
}

.page-hero {
    padding: 3.5rem 0 2.5rem;
}

.page-hero .site-container {
    background: linear-gradient(135deg, rgba(23, 50, 75, 0.92), rgba(72, 125, 164, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    border-radius: 32px;
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: var(--afc-shadow);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
    gap: 1.5rem;
    align-items: start;
}

.hero-summary {
    max-width: 62ch;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.88);
}

.hero-aside {
    display: grid;
    gap: 1rem;
}

.content-section {
    padding: 1.2rem 0 2rem;
    scroll-margin-top: 6rem;
}

.content-section-muted {
    padding-top: 2rem;
}

.content-section-muted .site-container {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(207, 217, 226, 0.8);
    border-radius: 28px;
    padding: clamp(1.2rem, 3vw, 2rem);
}

.section-heading {
    display: grid;
    gap: 0.6rem;
    max-width: 70ch;
    margin-bottom: 1.5rem;
}

.public-page .section-heading {
    gap: 0.45rem;
    max-width: 66ch;
    margin-bottom: 1.35rem;
}

.public-page .section-eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.13em;
}

.public-page .hero-summary,
.public-page .section-heading > p,
.public-page .feature-card p:not(.card-kicker),
.public-page .timeline-card p,
.public-page .cta-panel-copy,
.public-page .cta-panel-note,
.public-page .announcement-card p:not(.card-kicker),
.public-page .aircraft-card-body p,
.public-page .stat-detail {
    font-size: 1rem;
    line-height: 1.72;
}

.public-page .feature-card h3,
.public-page .timeline-card h3,
.public-page .announcement-card h3,
.public-page .cta-panel h3,
.public-page .aircraft-card-body h3 {
    line-height: 1.22;
    margin-bottom: 0.55rem;
}

.public-page .card-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.compact-heading {
    margin-bottom: 1rem;
}

.section-nav {
    padding: 0 0 0.6rem;
}

.card-grid,
.stats-grid,
.timeline-grid,
.form-grid,
.footer-grid,
.image-story-grid {
    display: grid;
    gap: 1rem;
}

.card-grid > *,
.stats-grid > *,
.timeline-grid > *,
.footer-grid > *,
.image-story-grid > * {
    min-width: 0;
}

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

.three-up,
.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 15px;
}

.footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    padding: 2.5rem 0 3rem;
}

.image-story-grid {
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
    align-items: stretch;
}

.feature-card,
.stat-card,
.timeline-card,
.aircraft-card,
.announcement-card,
.document-card,
.cta-panel,
.form-card {
    border-radius: var(--afc-radius-sm);
    background: var(--afc-surface);
    box-shadow: var(--afc-shadow);
}

.feature-card,
.stat-card,
.timeline-card,
.announcement-card,
.document-card,
.cta-panel,
.form-card {
    padding: 1.35rem;
}

.public-page .stat-card,
.public-page .timeline-card {
    display: grid;
    gap: 0.55rem;
}

.cta-panel
{
    display: grid;
    gap: 1rem;
}

.aircraft-card {
    overflow: hidden;
}

.aircraft-card-image,
.feature-image {
    width: 100%;
    display: block;
    object-fit: cover;
}

.aircraft-card-image {
    aspect-ratio: 16 / 10;
}

.aircraft-card-banner {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(23, 50, 75, 0.95), rgba(72, 125, 164, 0.9));
    color: white;
    font-family: var(--afc-font-heading);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.aircraft-card-body {
    padding: 1.35rem;
    display: grid;
    gap: 1rem;
}

.image-frame {
    min-height: 100%;
    border-radius: var(--afc-radius-sm);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--afc-shadow);
}

.image-frame .feature-image {
    height: 100%;
    min-height: 320px;
}

.logo-frame {
    display: grid;
    place-items: center;
    padding: 2rem;
    background:
        radial-gradient(circle at top, rgba(72, 125, 164, 0.18), transparent 46%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 244, 248, 0.92));
}

.logo-feature {
    width: min(100%, 320px);
    height: auto;
}

.media-card {
    overflow: hidden;
    padding: 0;
}

.media-card .feature-image {
    aspect-ratio: 16 / 10;
}

.media-card-body {
    padding: 1.2rem 1.25rem 1.3rem;
    display: grid;
    gap: 0.7rem;
}

.card-heading-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
}

.detail-list {
    display: grid;
    gap: 0.55rem;
}

.compact-list {
    padding-left: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-family: var(--afc-font-heading);
    color: var(--afc-navy);
}

.public-page .stat-value {
    font-size: clamp(2rem, 3.3vw, 2.45rem);
    line-height: 1;
}

.stat-label,
.document-title,
.footer-title {
    font-weight: 700;
}

.public-page .stat-label {
    font-size: 1rem;
    line-height: 1.35;
}

.public-page .stat-detail {
    color: var(--afc-muted);
}

.document-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.document-list-item {
    display: grid;
    gap: 0.7rem;
    padding-top: 1rem;
    border-top: 1px solid var(--afc-line);
}

.document-list-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.document-status {
    display: grid;
    gap: 0.45rem;
}

.download-path {
    font-family: Consolas, "Courier New", monospace;
    word-break: break-all;
}

.faq-list {
    display: grid;
    gap: 0.9rem;
}

.faq-item {
    padding: 1rem 1.2rem;
    border-radius: var(--afc-radius-sm);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--afc-line);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.faq-item p {
    margin-top: 0.8rem;
}

.gallery-slot {
    min-height: 180px;
    padding: 1.2rem;
    border-radius: var(--afc-radius-sm);
    border: 1px dashed rgba(23, 50, 75, 0.28);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(217, 230, 239, 0.55));
    display: grid;
    align-content: end;
    gap: 0.35rem;
}

.aircraft-gallery-image {
    width: 100%;
    min-height: 220px;
    max-height: 260px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.35rem;
}

.inline-notice {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(72, 125, 164, 0.1);
}

.inline-notice.error {
    border: 1px solid rgba(169, 45, 45, 0.2);
    background: rgba(169, 45, 45, 0.12);
}

.form-card {
    max-width: 820px;
}

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

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

.three-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-field {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.form-field label {
    font-weight: 700;
}

.form-field .subtle-text {
    margin-top: 0.1rem;
}

.afc-input {
    width: 100%;
    min-height: 44px;
    padding: 0.72rem 0.85rem;
    border-radius: 14px;
    border: 1px solid rgba(23, 50, 75, 0.18);
    background: rgba(255, 255, 255, 0.95);
    color: var(--afc-ink);
    font: inherit;
    box-sizing: border-box;
}

.afc-input:focus {
    outline: 2px solid rgba(72, 125, 164, 0.28);
    border-color: rgba(72, 125, 164, 0.72);
}

.afc-textarea {
    min-height: 120px;
    resize: vertical;
}

.afc-textarea.tall {
    min-height: 180px;
}

.form-checkbox {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    margin: 1rem 0 0.4rem;
}

.form-checkbox label {
    font-weight: 600;
    line-height: 1.5;
}

.form-checkbox input {
    margin-top: 0.2rem;
}

.upload-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.form-actions {
    margin-top: 0.75rem;
}

.form-actions.split {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.admin-list,
.admin-history {
    display: grid;
    gap: 1rem;
}

.empty-state-card {
    max-width: 720px;
}

.notice-card,
.next-action-card,
.quick-link-card,
.requirement-card {
    height: 100%;
}

.inline-logout-form {
    display: inline;
    margin: 0;
}

.nav-button-link {
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.validation-message {
    display: block;
    margin-top: 0.1rem;
}

.validation-summary-errors,
.validation-errors {
    margin: 0 0 1rem;
    padding: 1rem 1rem 1rem 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(169, 45, 45, 0.2);
    background: rgba(169, 45, 45, 0.08);
    color: #7a2020;
}

.validation-summary-errors ul,
.validation-errors ul {
    margin: 0;
}

.stacked-space {
    margin-top: 1rem;
}

.site-footer {
    border-top: 1px solid rgba(207, 217, 226, 0.8);
    background: rgba(248, 251, 253, 0.85);
}

.footer-link {
    color: var(--afc-navy);
    display: block;
    margin-top: 0.35rem;
}

#blazor-error-ui {
    background: #a92d2d;
    color: white;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: none;
    position: fixed;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    box-shadow: var(--afc-shadow);
    z-index: 50;
}

#blazor-error-ui .reload {
    color: white;
    font-weight: 700;
    margin-left: 1rem;
}

#blazor-error-ui .dismiss {
    float: right;
    cursor: pointer;
}

@media (max-width: 980px) {
    .nav-shell {
        grid-template-columns: 1fr auto;
    }

    .brand-logo {
        height: 2.65rem;
        max-width: 8.5rem;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .nav-actions .nav-utility-link {
        display: none;
    }

    .hero-grid,
    .image-story-grid,
    .footer-grid,
    .timeline-grid,
    .three-up,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .site-container {
        width: min(calc(100% - 1rem), var(--afc-max-width));
    }

    .site-header {
        padding: 0.75rem 0;
    }

    .brand-link {
        gap: 0.7rem;
    }

    .brand-logo {
        height: 2.35rem;
        max-width: 7.5rem;
    }

    .brand-title {
        font-size: 1.12rem;
    }

    .brand-tagline {
        font-size: 0.84rem;
    }

    h1 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .public-page .section-heading {
        gap: 0.4rem;
    }

    .public-page .hero-summary,
    .public-page .section-heading > p,
    .public-page .feature-card p:not(.card-kicker),
    .public-page .timeline-card p,
    .public-page .cta-panel-copy,
    .public-page .cta-panel-note,
    .public-page .announcement-card p:not(.card-kicker),
    .public-page .aircraft-card-body p,
    .public-page .stat-detail {
        font-size: 0.98rem;
        line-height: 1.68;
    }

    .page-hero {
        padding-top: 2rem;
    }

    .page-hero .site-container,
    .content-section-muted .site-container {
        border-radius: 22px;
    }

    .hero-grid,
    .image-story-grid,
    .two-up,
    .three-up,
    .stats-grid,
    .timeline-grid,
    .form-grid,
    .three-column,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .card-heading-row,
    .card-footer-row {
        flex-direction: column;
        align-items: start;
    }

    .nav-actions {
        justify-content: end;
        gap: 0.5rem;
    }

    .hero-actions {
        padding-top: 1rem;
    }

    .hero-actions,
    .mobile-menu-actions,
    .footer-links {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions > *,
    .mobile-menu-actions > *,
    .footer-links > * {
        width: 100%;
    }

    .form-actions.split {
        justify-content: start;
    }

    .upload-row {
        align-items: stretch;
    }
}
