:root {
    --primary: #4a148c;
    --primary-dark: #32105f;
    --accent: #ff6f00;
    --ink: #25212a;
    --muted: #625c68;
    --line: #e5ddea;
    --paper: #ffffff;
    --soft: #f7f3f9;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
    line-height: 1.75;
    word-break: keep-all;
}

a {
    color: var(--primary);
    text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #ffb84d;
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -60px;
    left: 1rem;
    z-index: 100;
    padding: 0.7rem 1rem;
    background: #fff;
    color: var(--primary);
    font-weight: 700;
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(74, 20, 140, 0.1);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    min-height: 68px;
    gap: 1.5rem;
}

.brand {
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.top-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem 1.2rem;
}

.top-nav a {
    color: #4d4652;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.top-nav a:hover {
    color: var(--primary);
}

.hero {
    padding: 5.5rem 1rem 4.5rem;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 111, 0, 0.14), transparent 24rem),
        linear-gradient(145deg, #24102f 0%, #4a148c 60%, #67259b 100%);
    color: #fff;
}

.hero-inner,
.article-layout,
.related-inner,
.footer-inner {
    width: min(1040px, 100%);
    margin: 0 auto;
}

.eyebrow {
    margin: 0 0 0.65rem;
    color: #ffd79f;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero h1 {
    max-width: 780px;
    margin: 0 0 1.2rem;
    font-size: clamp(2rem, 5vw, 3.35rem);
    line-height: 1.25;
    letter-spacing: -0.04em;
}

.hero .summary {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2.4vw, 1.18rem);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 3rem;
    padding: 3.5rem 1rem 5rem;
}

.article-body {
    min-width: 0;
}

.article-body h2 {
    margin: 3.2rem 0 1rem;
    color: var(--primary-dark);
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.4;
    letter-spacing: -0.025em;
}

.article-body h2:first-of-type {
    margin-top: 0;
}

.article-body h3 {
    margin: 2rem 0 0.6rem;
    color: #392a43;
    font-size: 1.2rem;
}

.article-body p,
.article-body li {
    color: #46404a;
}

.article-body ul,
.article-body ol {
    padding-left: 1.4rem;
}

.article-body li + li {
    margin-top: 0.45rem;
}

.answer-box,
.note-box,
.cta-box {
    margin: 1.3rem 0 2.2rem;
    padding: 1.35rem 1.5rem;
    border-radius: 12px;
}

.answer-box {
    border-left: 5px solid var(--accent);
    background: #fff7ed;
}

.answer-box strong {
    color: #812f00;
}

.note-box {
    border: 1px solid var(--line);
    background: var(--soft);
}

.cta-box {
    background: var(--primary-dark);
    color: #fff;
}

.cta-box h2,
.cta-box h3,
.cta-box p {
    color: #fff;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.15rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.button.secondary {
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: transparent;
}

.table-wrap {
    margin: 1.2rem 0 2rem;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
}

table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--soft);
    color: var(--primary-dark);
    font-size: 0.93rem;
}

tr:last-child td {
    border-bottom: 0;
}

.checklist {
    list-style: none;
    padding: 0 !important;
}

.checklist li {
    position: relative;
    padding: 0.75rem 0 0.75rem 2rem;
    border-bottom: 1px solid #eee8f1;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0.35rem;
    color: var(--accent);
    font-weight: 900;
}

.step-list {
    counter-reset: steps;
    list-style: none;
    padding: 0 !important;
}

.step-list li {
    position: relative;
    min-height: 3.2rem;
    padding: 0.4rem 0 1.1rem 3.5rem;
}

.step-list li::before {
    counter-increment: steps;
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
}

.location-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.2rem 0 2rem;
}

.location-card {
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
}

.location-card h3 {
    margin-top: 0;
    color: var(--primary);
}

.location-card address {
    color: #46404a;
    font-style: normal;
}

.toc {
    position: sticky;
    top: 96px;
    align-self: start;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
}

.toc strong {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--primary-dark);
}

.toc ol {
    margin: 0;
    padding-left: 1.25rem;
}

.toc li + li {
    margin-top: 0.45rem;
}

.toc a {
    color: #554b5c;
    font-size: 0.92rem;
    text-decoration: none;
}

.faq details {
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
}

.faq summary {
    color: var(--primary-dark);
    cursor: pointer;
    font-weight: 800;
}

.faq details p {
    margin-bottom: 0;
}

.updated {
    margin-top: 2.5rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.related {
    padding: 3.5rem 1rem;
    background: var(--soft);
}

.related h2 {
    margin: 0 0 1.4rem;
    color: var(--primary-dark);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.related-card {
    display: block;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: #3c3342;
    font-weight: 800;
    text-decoration: none;
}

.site-footer {
    padding: 2rem 1rem;
    background: #171322;
    color: rgba(255, 255, 255, 0.8);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}

.site-footer a {
    color: #fff;
}

@media (max-width: 800px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .toc {
        position: static;
        grid-row: 1;
    }

    .location-cards,
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 0.75rem 0;
        gap: 0.35rem;
    }

    .top-nav {
        justify-content: flex-start;
    }

    .hero {
        padding-top: 3.8rem;
    }

    .article-layout {
        padding-top: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
