:root {
    --bg: #e9f0f5;
    --panel: rgba(251, 253, 255, 0.97);
    --panel-strong: #ffffff;
    --panel-muted: #f2f7fb;
    --line: rgba(29, 53, 87, 0.16);
    --line-strong: rgba(11, 19, 43, 0.28);
    --text: #102334;
    --muted: #5a6f82;
    --accent: #457b9d;
    --accent-soft: rgba(69, 123, 157, 0.12);
    --accent-strong: #1d3557;
    --header-gold: #b08b4f;
    --header-gold-hover: #c19b61;
    --header-gold-highlight: rgba(245, 230, 192, 0.26);
    --header-gold-shadow: rgba(88, 65, 31, 0.34);
    --header-title-font: "Playfair Display", serif;
    --header-title-edge-gold: #9b7440;
    --header-title-center-gold: #d0b17a;
    --header-title-rule-gold: rgba(208, 177, 122, 0.9);
    --header-title-highlight: rgba(251, 239, 214, 0.14);
    --header-title-low-shadow: rgba(88, 65, 31, 0.18);
    --header-nav-gold: #ddc38f;
    --header-nav-gold-hover: #f2e1bc;
    --shadow: 0 22px 48px rgba(11, 19, 43, 0.11);
    --radius-xl: 12px;
    --radius-lg: 10px;
    --radius-md: 8px;
    --body-font: "IBM Plex Sans", sans-serif;
    --title-font: "Urbanist", sans-serif;
}

body:not(.design-header-body) {
    background:
        radial-gradient(circle at 86% 12%, rgba(242, 197, 124, 0.18), transparent 17%),
        radial-gradient(circle at 12% 14%, rgba(69, 123, 157, 0.1), transparent 20%),
        linear-gradient(180deg, #fbfcfe 0%, var(--bg) 60%, #dde8f0 100%);
}

body:not(.design-header-body)::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(29, 53, 87, 0.035) 1px, transparent 1px),
        linear-gradient(rgba(29, 53, 87, 0.035) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

.frame-host-inline .design-header {
    border-radius: 12px;
    box-shadow: 0 20px 42px rgba(11, 19, 43, 0.12);
}

.panel {
    background: var(--panel);
    box-shadow: var(--shadow);
    border-color: rgba(29, 53, 87, 0.14);
    position: relative;
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: linear-gradient(180deg, #f2c57c 0%, #457b9d 100%);
    pointer-events: none;
}

.section-heading h2 {
    color: #1d3557;
    letter-spacing: -0.045em;
}

.design-header {
    background: #0b132b;
    border-color: rgba(242, 197, 124, 0.22);
    box-shadow: 0 20px 44px rgba(11, 19, 43, 0.16);
}

.header-top {
    background: #0f1c3b;
    isolation: isolate;
}

.header-title h1 {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    font-family: var(--header-title-font);
    font-weight: 400;
    font-size: clamp(2.02rem, 4vw, 3.28rem);
    letter-spacing: -0.03em;
    line-height: 0.98;
    color: var(--header-title-center-gold);
    background: linear-gradient(
        90deg,
        var(--header-title-edge-gold) 0%,
        var(--header-title-edge-gold) 14%,
        var(--header-title-center-gold) 34%,
        var(--header-title-center-gold) 66%,
        var(--header-title-edge-gold) 86%,
        var(--header-title-edge-gold) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 1px 0 var(--header-title-highlight),
        0 -1px 0 var(--header-title-low-shadow),
        0 0 10px rgba(242, 197, 124, 0.04);
}

.header-title h1::after {
    content: "";
    width: clamp(172px, 36vw, 236px);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        transparent 6%,
        var(--header-title-rule-gold) 26%,
        var(--header-title-center-gold) 50%,
        var(--header-title-rule-gold) 74%,
        transparent 94%,
        transparent 100%
    );
    box-shadow: 0 0 16px rgba(242, 197, 124, 0.12);
}

.nav-strip {
    background: #112548;
    border-top-color: rgba(242, 197, 124, 0.14);
}

.nav-list a,
.dropbtn {
    color: var(--header-nav-gold);
    font-family: "Source Sans 3", sans-serif;
    font-size: 1.03rem;
    font-weight: 500;
    letter-spacing: 0.015em;
    text-shadow:
        0 1px 0 rgba(245, 230, 192, 0.16),
        0 -1px 0 rgba(88, 65, 31, 0.22);
}

.nav-list a:hover,
.dropbtn:hover {
    color: var(--header-nav-gold-hover);
}

.dropdown-content {
    background: rgba(255, 255, 255, 0.995);
    border-color: rgba(29, 53, 87, 0.14);
    box-shadow: 0 20px 40px rgba(11, 19, 43, 0.14);
}

.dropdown-content a {
    color: #1d3557;
    font-family: "Source Sans 3", sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: 0.012em;
}

.dropdown-content a:hover {
    background: rgba(69, 123, 157, 0.1);
}

.spec-card,
.spec-preview,
.media-panel,
.map-frame,
.legend-card {
    border-color: rgba(29, 53, 87, 0.14);
    box-shadow: 0 12px 24px rgba(11, 19, 43, 0.06);
}

.map-frame {
    background: #ffffff;
    box-shadow:
        inset 0 0 0 1px rgba(242, 197, 124, 0.18),
        0 18px 34px rgba(11, 19, 43, 0.08);
}
