:root {
    color-scheme: light;
    --guide-ink: #17333a;
    --guide-muted: #51666b;
    --guide-bg: #f6f1e8;
    --guide-surface: #ffffff;
    --guide-line: #d7ded8;
    --guide-teal: #1f6f62;
    --guide-teal-dark: #134b45;
    --guide-blue: #2f6f8f;
    --guide-gold: #d39a33;
    --guide-shadow: 0 18px 42px rgba(22, 48, 57, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--guide-bg);
}

body {
    margin: 0;
    color: var(--guide-ink);
    background: var(--guide-bg);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    letter-spacing: 0;
}

a {
    color: inherit;
}

.map-guide-page {
    min-height: 100vh;
}

.map-guide-hero {
    min-height: 620px;
    display: flex;
    flex-direction: column;
    color: #fffdf8;
    background:
        linear-gradient(90deg, rgba(14, 34, 39, 0.92), rgba(14, 34, 39, 0.68) 54%, rgba(14, 34, 39, 0.22)),
        url("/social-preview.png") center / cover no-repeat,
        #163039;
}

.map-guide-nav {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.map-guide-brand,
.map-guide-nav-link,
.map-guide-primary-action,
.map-guide-secondary-action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.map-guide-brand {
    gap: 10px;
    font-size: 1rem;
}

.map-guide-brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 253, 248, 0.55);
    border-radius: 50%;
    background: rgba(255, 253, 248, 0.14);
    font-size: 0.8rem;
    font-weight: 800;
}

.map-guide-nav-link {
    padding: 0 16px;
    border: 1px solid rgba(255, 253, 248, 0.52);
    background: rgba(255, 253, 248, 0.1);
}

.map-guide-hero-content {
    width: min(1120px, calc(100% - 40px));
    margin: auto;
    padding: 72px 0 96px;
}

.map-guide-kicker,
.map-guide-section-label {
    margin: 0 0 10px;
    color: var(--guide-gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.map-guide-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: 3.4rem;
    line-height: 1.04;
    letter-spacing: 0;
}

.map-guide-hero-copy {
    max-width: 720px;
    margin: 22px 0 0;
    color: #f4eee4;
    font-size: 1.2rem;
}

.map-guide-actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.map-guide-primary-action,
.map-guide-secondary-action {
    padding: 12px 18px;
    border: 1px solid transparent;
}

.map-guide-primary-action {
    color: #fffdf8;
    background: var(--guide-teal);
}

.map-guide-primary-action:hover,
.map-guide-primary-action:focus-visible {
    background: var(--guide-teal-dark);
}

.map-guide-secondary-action {
    color: #fffdf8;
    border-color: rgba(255, 253, 248, 0.55);
    background: rgba(255, 253, 248, 0.12);
}

.map-guide-secondary-action:hover,
.map-guide-secondary-action:focus-visible,
.map-guide-nav-link:hover,
.map-guide-nav-link:focus-visible {
    background: rgba(255, 253, 248, 0.22);
}

main {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 56px 0 64px;
}

.map-guide-section {
    margin: 0 0 48px;
}

.map-guide-intro {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
    gap: 32px;
    align-items: start;
}

.map-guide-section h2,
.map-guide-callout h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.16;
    letter-spacing: 0;
}

.map-guide-section h3 {
    margin: 0 0 8px;
    color: var(--guide-ink);
    font-size: 1.05rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.map-guide-section p,
.map-guide-card p,
.map-guide-faq p,
.map-guide-callout p,
.map-guide-footer p {
    margin: 0;
}

.map-guide-section > p,
.map-guide-intro > p,
.map-guide-split p,
.map-guide-card p,
.map-guide-faq p,
.map-guide-callout p {
    color: var(--guide-muted);
}

.map-guide-section-heading {
    max-width: 680px;
    margin-bottom: 20px;
}

.map-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.map-guide-card,
.map-guide-faq article {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--guide-line);
    border-radius: 8px;
    background: var(--guide-surface);
    box-shadow: 0 10px 22px rgba(22, 48, 57, 0.06);
}

.map-guide-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 28px;
    align-items: start;
}

.map-guide-muted {
    width: calc(100% + 40px);
    margin-left: -20px;
    padding: 34px 20px;
    border: 1px solid #e4dccf;
    border-radius: 8px;
    background: #fbf8f1;
}

.map-guide-list,
.map-guide-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.map-guide-list li,
.map-guide-steps li {
    margin: 0 0 12px;
    padding: 14px 16px;
    border-left: 4px solid var(--guide-blue);
    border-radius: 0 8px 8px 0;
    background: rgba(255, 255, 255, 0.78);
    color: var(--guide-ink);
}

.map-guide-steps {
    counter-reset: map-guide-steps;
}

.map-guide-steps li {
    counter-increment: map-guide-steps;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.map-guide-steps li::before {
    content: counter(map-guide-steps);
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #fffdf8;
    background: var(--guide-teal);
    font-size: 0.88rem;
    font-weight: 800;
}

.map-guide-note {
    padding: 30px;
    border-left: 5px solid var(--guide-gold);
    border-radius: 8px;
    background: #fffdf8;
    box-shadow: var(--guide-shadow);
}

.map-guide-note p {
    margin-top: 12px;
}

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

.map-guide-callout {
    margin: 52px 0 0;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-radius: 8px;
    color: #fffdf8;
    background: #17333a;
}

.map-guide-callout p {
    margin-top: 8px;
    color: #e8efe9;
}

.map-guide-callout .map-guide-primary-action {
    flex: 0 0 auto;
    background: #d39a33;
}

.map-guide-callout .map-guide-primary-action:hover,
.map-guide-callout .map-guide-primary-action:focus-visible {
    background: #b77d20;
}

.map-guide-footer {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--guide-muted);
    font-size: 0.95rem;
}

.map-guide-footer a {
    color: var(--guide-teal-dark);
    font-weight: 700;
}

@media (max-width: 880px) {
    .map-guide-hero {
        min-height: 560px;
        background:
            linear-gradient(180deg, rgba(14, 34, 39, 0.9), rgba(14, 34, 39, 0.72)),
            url("/social-preview.png") center / cover no-repeat,
            #163039;
    }

    .map-guide-hero h1 {
        font-size: 2.5rem;
    }

    .map-guide-hero-copy {
        font-size: 1.08rem;
    }

    .map-guide-intro,
    .map-guide-split,
    .map-guide-grid,
    .map-guide-faq {
        grid-template-columns: 1fr;
    }

    .map-guide-callout {
        align-items: stretch;
        flex-direction: column;
    }

    .map-guide-callout .map-guide-primary-action {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .map-guide-nav,
    .map-guide-hero-content,
    main,
    .map-guide-footer {
        width: min(100% - 28px, 1120px);
    }

    .map-guide-nav {
        padding-top: 16px;
    }

    .map-guide-brand span:last-child {
        display: none;
    }

    .map-guide-hero-content {
        padding: 58px 0 72px;
    }

    .map-guide-hero h1 {
        font-size: 2.15rem;
    }

    .map-guide-actions {
        flex-direction: column;
    }

    .map-guide-primary-action,
    .map-guide-secondary-action {
        width: 100%;
    }

    main {
        padding-top: 40px;
    }

    .map-guide-section h2,
    .map-guide-callout h2 {
        font-size: 1.55rem;
    }

    .map-guide-card,
    .map-guide-faq article,
    .map-guide-note,
    .map-guide-callout {
        padding: 20px;
    }

    .map-guide-muted {
        width: 100%;
        margin-left: 0;
        padding: 24px 18px;
    }

    .map-guide-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
