:root {
    --ink: #18202a;
    --muted: #5f6874;
    --paper: #ffffff;
    --soft: #f3f5f7;
    --line: #d9dee5;
    --gold: #b97618;
    --gold-dark: #8c5410;
    --blue: #23384d;
    --shadow: 0 18px 48px rgba(24, 32, 42, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 100;
    padding: 10px 12px;
    border-radius: 6px;
    background: var(--ink);
    color: white;
    font-weight: 900;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(185, 118, 24, 0.55);
    outline-offset: 3px;
}

.page-header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 0;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(24, 32, 42, 0.06);
}

.wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo img {
    display: block;
    width: min(260px, 52vw);
    height: auto;
}

nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav a,
.submenu-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--blue);
    font-size: 0.94rem;
    font-weight: 800;
    text-decoration: none;
}

.submenu-toggle {
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

nav a:hover,
.submenu-toggle:hover,
.has-submenu:focus-within .submenu-toggle {
    background: var(--soft);
}

.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    min-width: 250px;
    padding: 12px 8px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow);
}

.submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}

.submenu li {
    display: block;
}

.submenu a {
    justify-content: flex-start;
    width: 100%;
    white-space: nowrap;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu,
.has-submenu.submenu-open .submenu {
    display: block;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    color: var(--blue);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.hero {
    color: white;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    background:
        linear-gradient(90deg, rgba(12, 17, 23, 0.92), rgba(12, 17, 23, 0.7) 50%, rgba(12, 17, 23, 0.24)),
        var(--hero-image) center right / cover no-repeat;
}

.hero-content {
    max-width: 760px;
    padding: 74px 0 90px;
    text-align: left;
}

.eyebrow {
    display: inline-flex;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p,
li {
    overflow-wrap: anywhere;
}

.hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(2.35rem, 5vw, 4.35rem);
    line-height: 1;
    letter-spacing: 0;
    text-shadow: 0 3px 22px rgba(0, 0, 0, 0.35);
}

.hero p {
    max-width: 690px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.14rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 16px;
    border-radius: 6px;
    background: var(--gold);
    color: white;
    font-weight: 900;
    text-decoration: none;
}

.button.secondary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
}

.section {
    padding: 66px 0;
}

.section.soft {
    background: var(--soft);
}

.article-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.toc {
    position: sticky;
    top: 96px;
    padding: 20px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(24, 32, 42, 0.08);
}

.toc strong {
    display: block;
    margin-bottom: 10px;
}

.toc a {
    display: block;
    padding: 7px 0;
    color: var(--blue);
    font-weight: 800;
    text-decoration: none;
}

.article {
    display: grid;
    gap: 24px;
}

.article-card,
.callout-card {
    padding: 24px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(24, 32, 42, 0.08);
}

.article-card h2 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    line-height: 1.07;
}

.article-card h3 {
    margin: 22px 0 8px;
    font-size: 1.2rem;
}

.article-card p,
.article-card li,
.callout-card p {
    color: var(--muted);
}

.article-card a,
.callout-card a {
    color: var(--gold-dark);
    font-weight: 900;
}

.comparison-grid,
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.mini-card,
.faq-item {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
}

.mini-card h3,
.faq-item h3 {
    margin-top: 0;
}

.callout-card {
    background: var(--blue);
    color: white;
}

.callout-card h2,
.callout-card p {
    color: white;
}

.callout-card p {
    color: rgba(255, 255, 255, 0.82);
}

.disclosure {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

footer {
    margin-top: 0;
}

#scrollToTopBtn {
    border-radius: 6px;
    background: var(--gold);
}

@media (max-width: 940px) {
    .header-inner {
        align-items: center;
        padding: 12px 0;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    nav {
        width: 100%;
    }

    nav ul {
        display: none;
        width: 100%;
        padding-top: 10px;
        border-top: 1px solid var(--line);
        margin-top: 10px;
    }

    body.nav-open nav ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    nav a,
    .submenu-toggle {
        justify-content: center;
        width: 100%;
        background: var(--soft);
    }

    .has-submenu {
        width: 100%;
    }

    .submenu {
        position: static;
        min-width: 0;
        margin-top: 8px;
        box-shadow: none;
        background: white;
    }

    .has-submenu:hover .submenu,
    .has-submenu:focus-within .submenu {
        display: none;
    }

    .has-submenu.submenu-open .submenu {
        display: grid;
        gap: 6px;
    }

    .hero {
        background:
            linear-gradient(180deg, rgba(12, 17, 23, 0.92), rgba(12, 17, 23, 0.68)),
            var(--hero-image) center / cover no-repeat;
    }

    .article-layout,
    .comparison-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .toc {
        position: static;
    }
}

@media (max-width: 620px) {
    .hero-content {
        padding: 52px 0 72px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .button {
        width: 100%;
    }

    body.nav-open nav ul {
        grid-template-columns: 1fr;
    }
}
