:root {
    --navy: #0a3161;
    --navy-mid: #143f77;
    --red: #b31942;
    --cream: #f4f8ff;
    --white: #ffffff;
    --line: #d8e2f2;
    --text: #2f3f57;
    --muted: #5d6d86;
    --shadow-sm: 0 10px 28px rgba(10, 49, 97, 0.08);
    --shadow-md: 0 18px 44px rgba(10, 49, 97, 0.14);
    --radius: 16px;
    --font-display: 'Merriweather', Georgia, serif;
    --font-body: 'Public Sans', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(179, 25, 66, 0.1), transparent 30%),
        linear-gradient(180deg, #f9fbff 0%, var(--cream) 46%, #edf3ff 100%);
    line-height: 1.75;
}

a {
    color: var(--navy);
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(90deg, #08264d 0%, var(--navy) 55%, var(--navy-mid) 100%);
    border-bottom: 4px solid var(--red);
    box-shadow: 0 10px 24px rgba(8, 38, 77, 0.16);
}

.topbar-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.edition-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--white);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.page {
    max-width: 1160px;
    margin: 0 auto;
    padding: 28px 24px 72px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 18px;
}

.breadcrumbs a {
    text-decoration: none;
    color: var(--red);
    font-weight: 600;
}

.hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 42px 28px 34px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 34%),
        linear-gradient(135deg, #08264d 0%, var(--navy) 48%, #1c4f94 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 8px;
    background: linear-gradient(90deg, var(--red) 0 34%, rgba(255,255,255,0.95) 34% 66%, #7fb2ff 66% 100%);
}

.eyebrow {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.16;
    margin: 16px 0 14px;
}

.hero p {
    max-width: 760px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.83rem;
}

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

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    transition: 0.2s ease;
}

.button-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.button-link-primary {
    background: var(--white);
    border-color: var(--white);
    color: var(--navy);
}

.button-link-primary:hover {
    background: #f3f7ff;
}

.section {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    margin-top: 24px;
    box-shadow: var(--shadow-sm);
}

.section h2 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: 1.6rem;
    line-height: 1.25;
    color: var(--navy);
}

.section h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1.08rem;
    color: var(--navy);
}

.section p:last-child {
    margin-bottom: 0;
}

.intro-box {
    background: linear-gradient(180deg, rgba(236, 243, 255, 0.98), rgba(248, 250, 255, 0.96));
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(238,244,255,0.92));
}

.card p,
.card ul,
.card ol {
    margin: 0;
}

.rank-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 12px;
}

.rank-list li {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(239,244,255,0.94));
}

.rank-num {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--red), #7f1633);
    color: var(--white);
    font-weight: 800;
    font-size: 0.95rem;
}

.rank-content strong {
    display: block;
    margin-bottom: 4px;
    color: var(--navy);
}

.rank-content span {
    color: var(--muted);
    font-size: 0.94rem;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 12px;
}

.check-list li {
    position: relative;
    padding-left: 18px;
}

.check-list li::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--red);
}

.note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.86rem;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #edf3ff;
    border: 1px solid var(--line);
    color: var(--navy);
    font-size: 0.82rem;
    font-weight: 700;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.link-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(238,244,255,0.92));
    box-shadow: var(--shadow-sm);
}

.link-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--navy);
}

.link-card span {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
}

.faq {
    display: grid;
    gap: 12px;
}

.faq details {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(241,246,255,0.92));
    padding: 14px 16px;
}

.faq summary {
    cursor: pointer;
    color: var(--navy);
    font-weight: 700;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq details p {
    margin: 10px 0 0;
    color: var(--text);
}

.source-list {
    margin: 14px 0 0;
    padding-left: 18px;
}

.source-list li {
    margin: 8px 0;
}

.footer {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px 56px;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer p {
    margin: 0;
}

@media (max-width: 720px) {
    .topbar-inner,
    .page,
    .footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero,
    .section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .rank-list li {
        grid-template-columns: 34px 1fr;
        gap: 12px;
        padding: 14px;
    }

    .rank-num {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }
}
