@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap");

:root {
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: #10213b;
  background: #fff;
  font-synthesis: none;
  --navy: #071d3a;
  --navy-2: #102d50;
  --teal: #00a59b;
  --teal-dark: #008b83;
  --teal-soft: #e8f8f6;
  --surface: #f4f8fa;
  --line: #dce5eb;
  --muted: #63758a;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; min-width: 320px; padding-bottom: 104px; background: var(--white); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
a:focus-visible, summary:focus-visible { outline: 3px solid #f6b94a; outline-offset: 3px; }

.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(220,229,235,.92); background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
.header-inner { width: min(1180px, calc(100% - 40px)); height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-size: 21px; font-weight: 800; letter-spacing: -.05em; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; color: var(--white); background: var(--teal); font-size: 20px; line-height: 1; }
.header-inner nav { display: flex; align-items: center; gap: 27px; color: #344a63; font-size: 13px; font-weight: 700; }
.header-cta { min-height: 42px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 8px; color: var(--white); background: var(--navy); }

.breadcrumb { width: min(1180px, calc(100% - 40px)); display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 auto; padding: 28px 0 18px; color: #78889a; font-size: 11px; }
.breadcrumb strong { color: var(--navy); }
.article-hero { width: min(1180px, calc(100% - 40px)); min-height: 480px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; overflow: hidden; margin: 0 auto 72px; border: 1px solid var(--line); border-radius: 17px; background: #f4f8fa; box-shadow: 0 22px 60px rgba(10,35,64,.09); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 58px 54px; }
.category { margin: 0 0 16px; color: var(--teal-dark); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.article-hero h1 { margin: 0; color: var(--navy); font-size: clamp(34px, 4vw, 50px); line-height: 1.25; letter-spacing: -.055em; word-break: keep-all; }
.lead { margin: 24px 0 0; color: #536a82; font-size: 15px; line-height: 1.9; word-break: keep-all; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 28px; }
.hero-meta span { padding: 6px 9px; border: 1px solid #d8e2e8; border-radius: 6px; color: #617387; background: rgba(255,255,255,.78); font-size: 10px; font-weight: 700; }
.article-hero figure { position: relative; min-height: 480px; margin: 0; background: #d9e5e5; }
.article-hero figure::after { content: ""; position: absolute; inset: 0; box-shadow: inset 30px 0 38px rgba(244,248,250,.22); pointer-events: none; }
.article-hero figure img { width: 100%; height: 100%; object-fit: cover; }
.article-hero figcaption { position: absolute; z-index: 1; right: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: 7px 9px; border-radius: 5px; color: #354b63; background: rgba(255,255,255,.9); font-size: 9px; }

.article-layout { width: min(1120px, calc(100% - 40px)); display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 58px; align-items: start; margin: 0 auto 110px; }
.article-toc { position: sticky; top: 102px; display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--white); }
.article-toc strong { padding: 17px; color: var(--navy); background: var(--surface); font-size: 12px; }
.article-toc a { padding: 10px 17px; border-top: 1px solid #edf1f4; color: #627489; font-size: 10px; line-height: 1.45; }
.article-toc a:hover { color: var(--teal-dark); background: #f6fbfa; }
.article-body { min-width: 0; }
.answer-box, .article-section { display: grid; grid-template-columns: 50px minmax(0,1fr); gap: 24px; padding: 54px 0; border-bottom: 1px solid var(--line); }
.answer-box { padding-top: 0; }
.section-number { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--navy); font-size: 11px; font-weight: 800; }
.article-body h2 { margin: 0 0 22px; color: var(--navy); font-size: 29px; line-height: 1.4; letter-spacing: -.04em; word-break: keep-all; }
.article-body h3 { margin: 0 0 10px; color: var(--navy); font-size: 18px; }
.article-body p { margin: 0 0 16px; color: #53677e; font-size: 14px; line-height: 1.95; word-break: keep-all; }
.answer-box ol { display: grid; gap: 9px; margin: 0; padding: 0; counter-reset: quick; list-style: none; }
.answer-box li { position: relative; min-height: 50px; display: flex; align-items: center; padding: 12px 16px 12px 54px; border: 1px solid #dce6eb; border-radius: 9px; color: #304860; background: #fbfcfd; font-size: 13px; font-weight: 700; }
.answer-box li::before { counter-increment: quick; content: counter(quick); position: absolute; left: 15px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--teal-dark); background: var(--teal-soft); font-size: 10px; }
.notice { margin-top: 16px !important; padding: 14px 16px; border-left: 3px solid var(--teal); color: #4f6b68 !important; background: var(--teal-soft); font-size: 12px !important; }

.visual-analysis { overflow: hidden; margin: 62px 0 14px; padding: 36px; border-radius: 16px; color: var(--white); background: var(--navy); box-shadow: 0 22px 50px rgba(7,29,58,.16); }
.visual-analysis > header { max-width: 720px; margin-bottom: 25px; }
.visual-analysis .visual-kicker { margin: 0 0 9px; color: #63ddd6; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.visual-analysis h2 { margin-bottom: 12px; color: var(--white); font-size: 28px; }
.visual-analysis > header > p:last-child { margin: 0; color: #b8c9d8; font-size: 12px; line-height: 1.8; }
.review-visual { position: relative; overflow: hidden; margin: 0; border-radius: 11px; background: #102d50; }
.review-visual img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.review-visual figcaption { position: absolute; right: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 7px 9px; border-radius: 5px; color: #284057; background: rgba(255,255,255,.92); font-size: 9px; line-height: 1.5; }
.review-dashboard { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.review-dashboard article { min-height: 168px; padding: 20px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; background: rgba(255,255,255,.06); }
.review-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-card-head > span { color: #63ddd6; font-size: 10px; font-weight: 800; }
.review-card-head em { padding: 5px 8px; border: 1px solid rgba(99,221,214,.32); border-radius: 999px; color: #9aeee9; background: rgba(0,165,155,.14); font-size: 9px; font-style: normal; font-weight: 800; }
.review-dashboard h3 { margin: 18px 0 8px; color: var(--white); font-size: 17px; }
.review-dashboard p { margin: 0; color: #b9c7d4; font-size: 11px; line-height: 1.75; }
.decision-flow { margin-top: 12px; padding: 22px; border-radius: 10px; color: var(--navy); background: var(--white); }
.flow-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.flow-title strong { font-size: 14px; }
.flow-title > span { color: #6f8092; font-size: 9px; }
.decision-flow ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.decision-flow li { position: relative; min-width: 0; padding-right: 15px; }
.decision-flow li:not(:last-child)::after { content: "→"; position: absolute; top: 3px; right: 5px; color: #9db0c2; font-size: 11px; }
.decision-flow li > span { display: block; margin-bottom: 7px; color: var(--teal-dark); font-size: 9px; font-weight: 800; }
.decision-flow li b { display: block; color: #344d66; font-size: 10px; line-height: 1.45; word-break: keep-all; }
.visual-disclaimer { margin: 17px 0 0 !important; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.13); color: #aebfce !important; font-size: 10px !important; line-height: 1.7 !important; }
.visual-disclaimer strong { color: #63ddd6; }

.law-table { overflow: hidden; margin-top: 25px; border: 1px solid var(--line); border-radius: 10px; }
.law-row { min-height: 94px; display: grid; grid-template-columns: .75fr 1.25fr 1.25fr; align-items: center; gap: 20px; padding: 16px 19px; border-top: 1px solid var(--line); color: #5c6f84; font-size: 11px; line-height: 1.7; }
.law-row:first-child { border-top: 0; }
.law-row strong { color: var(--navy); font-size: 12px; }
.law-head { min-height: 42px; color: #6b7b8d; background: var(--surface); font-size: 10px; font-weight: 800; }
.policy-note { margin-top: 18px; padding: 19px 21px; border: 1px solid #bfe4e0; border-radius: 9px; background: #f0faf9; }
.policy-note strong { color: var(--teal-dark); font-size: 12px; }
.policy-note p { margin: 7px 0 0; color: #55706e; font-size: 12px; }

.comparison-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
.comparison-grid > div { padding: 23px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.comparison-grid p { margin: 0; font-size: 12px; }
.process-list { display: grid; gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.process-list li { display: grid; grid-template-columns: 165px 1fr; gap: 24px; padding: 17px 3px; border-bottom: 1px solid var(--line); }
.process-list b { color: var(--navy); font-size: 13px; }
.process-list span { color: #607187; font-size: 12px; line-height: 1.7; }
.document-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 0 0 20px; padding: 0; list-style: none; }
.document-list li { position: relative; padding: 14px 14px 14px 38px; border: 1px solid var(--line); border-radius: 8px; color: #435970; background: #fbfcfd; font-size: 12px; }
.document-list li::before { content: "✓"; position: absolute; left: 14px; color: var(--teal-dark); font-weight: 800; }
.faq-section details { overflow: hidden; border-bottom: 1px solid var(--line); }
.faq-section details:first-of-type { border-top: 1px solid var(--line); }
.faq-section summary { padding: 18px 2px; color: var(--navy); font-size: 14px; font-weight: 700; cursor: pointer; }
.faq-section details p { padding: 0 2px 18px; }

.sources { margin: 58px 0; padding: 32px; border-radius: 13px; color: var(--white); background: var(--navy); }
.sources h2 { color: var(--white); font-size: 24px; }
.sources > p { color: #b8c7d6; font-size: 12px; }
.sources ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 22px 0 0; padding: 0; list-style: none; }
.sources li { min-height: 86px; padding: 15px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.04); }
.sources a { color: #63ddd6; font-size: 11px; font-weight: 800; }
.sources li p { margin: 7px 0 0; color: #aebdcb; font-size: 10px; line-height: 1.55; }
.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 36px; margin: 60px 0; padding: 38px 40px; border-radius: 13px; color: var(--white); background: var(--teal-dark); }
.article-cta p { margin: 0 0 5px; color: #c9fffb; font-size: 11px; font-weight: 800; }
.article-cta h2 { margin: 0 0 6px; color: var(--white); font-size: 25px; }
.article-cta span { color: #d3f4f1; font-size: 11px; }
.article-cta > a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 8px; color: var(--navy); background: var(--white); font-size: 12px; font-weight: 800; }
.related { margin-top: 70px; }
.related > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.related a { min-height: 142px; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.related a:hover { border-color: #82d2cd; box-shadow: 0 12px 28px rgba(13,54,75,.08); }
.related span { color: var(--teal-dark); font-size: 9px; font-weight: 800; }
.related strong { margin-top: 10px; color: var(--navy); font-size: 13px; }
.related small { margin-top: auto; color: #718296; font-size: 10px; }

footer { padding: 40px 24px; color: #91a2b5; background: #06182f; }
footer > div, footer > p { width: min(1120px, 100%); margin: 0 auto; }
footer > div { display: flex; justify-content: space-between; gap: 20px; font-size: 11px; }
footer strong { color: var(--white); font-size: 16px; }
footer > p { margin-top: 17px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.1); font-size: 10px; line-height: 1.7; }

.hub-main { min-height: 80vh; background: var(--surface); }
.hub-hero { width: min(1180px, calc(100% - 40px)); padding: 84px 0 72px; }
.hub-hero, .hub-list { margin: 0 auto; }
.hub-hero p, .hub-heading p { margin: 0 0 12px; color: var(--teal-dark); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.hub-hero h1 { margin: 0; color: var(--navy); font-size: clamp(40px, 5vw, 62px); line-height: 1.2; letter-spacing: -.06em; }
.hub-hero > span { max-width: 650px; display: block; margin-top: 24px; color: #5d7187; font-size: 15px; line-height: 1.85; word-break: keep-all; }
.hub-list { width: min(1180px, calc(100% - 40px)); padding-bottom: 110px; }
.hub-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 28px; }
.hub-heading h2 { margin: 0; color: var(--navy); font-size: 32px; }
.hub-heading > span { max-width: 410px; color: #66788b; font-size: 12px; line-height: 1.7; }
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.hub-grid article { display: grid; grid-template-columns: 42% 58%; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.hub-grid article > img { width: 100%; height: 100%; min-height: 290px; object-fit: cover; }
.hub-grid article > div { display: flex; flex-direction: column; padding: 26px; }
.hub-grid article span { color: var(--teal-dark); font-size: 10px; font-weight: 800; }
.hub-grid article h2 { margin: 10px 0; color: var(--navy); font-size: 19px; }
.hub-grid article p { margin: 0; color: #64758a; font-size: 11px; line-height: 1.75; }
.hub-grid article small { margin-top: 13px; color: #8592a1; font-size: 9px; }
.card-link { margin-top: auto; padding-top: 20px; color: var(--navy); font-size: 11px; font-weight: 800; }

.persistent-contact { position: fixed; z-index: 60; left: 50%; bottom: 18px; width: min(760px, calc(100% - 32px)); min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 11px 12px 11px 21px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; color: var(--white); background: rgba(7,29,58,.97); box-shadow: 0 18px 45px rgba(4,22,45,.28); transform: translateX(-50%); backdrop-filter: blur(14px); }
.persistent-contact > div { min-width: 0; display: grid; gap: 3px; }
.persistent-contact strong { overflow: hidden; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.persistent-contact > div span { color: #b8c8d8; font-size: 9px; }
.persistent-contact > a { flex: 0 0 auto; min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 18px; border-radius: 9px; color: var(--navy); background: #f7c65d; font-size: 12px; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.persistent-contact > a:hover { background: #ffd981; transform: translateY(-1px); }

@media (max-width: 900px) {
  .article-hero { grid-template-columns: 1fr; }
  .article-hero figure { min-height: 360px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { position: static; display: none; }
  .hub-grid { grid-template-columns: 1fr; }
  .decision-flow ol { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .decision-flow li:nth-child(3)::after { display: none; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 74px; }
  .header-inner { height: 64px; }
  .header-inner nav > a:not(.header-cta) { display: none; }
  .brand { font-size: 18px; }
  .brand-mark { width: 34px; height: 34px; }
  .breadcrumb, .article-hero, .article-layout, .hub-hero, .hub-list { width: min(100% - 28px, 1180px); }
  .article-hero { margin-bottom: 42px; border-radius: 12px; }
  .hero-copy { padding: 36px 24px; }
  .article-hero h1 { font-size: 31px; }
  .lead { font-size: 13px; }
  .article-hero figure { min-height: 270px; }
  .answer-box, .article-section { grid-template-columns: 1fr; gap: 14px; padding: 39px 0; }
  .answer-box { padding-top: 0; }
  .section-number { width: 36px; height: 36px; }
  .article-body h2 { font-size: 24px; }
  .article-body p { font-size: 13px; }
  .visual-analysis { margin-top: 42px; padding: 22px 16px; border-radius: 12px; }
  .visual-analysis h2 { font-size: 23px; }
  .review-visual figcaption { position: static; max-width: none; border-radius: 0; color: #aebfce; background: rgba(255,255,255,.05); }
  .review-dashboard { grid-template-columns: 1fr; }
  .review-dashboard article { min-height: 0; }
  .flow-title { align-items: flex-start; flex-direction: column; gap: 5px; }
  .decision-flow { padding: 18px 15px; }
  .decision-flow ol { grid-template-columns: 1fr; gap: 0; }
  .decision-flow li { min-height: 57px; padding: 0 0 15px 42px; }
  .decision-flow li:not(:last-child)::after, .decision-flow li:nth-child(3)::after { content: "↓"; top: auto; right: auto; bottom: 1px; left: 14px; display: block; }
  .decision-flow li > span { position: absolute; top: 1px; left: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--teal-dark); }
  .decision-flow li b { padding-top: 7px; font-size: 11px; }
  .law-table { border: 0; overflow: visible; }
  .law-head { display: none; }
  .law-row { grid-template-columns: 1fr; gap: 8px; min-height: 0; margin-top: 10px; padding: 18px; border: 1px solid var(--line) !important; border-radius: 9px; }
  .comparison-grid, .document-list, .sources ul, .related > div { grid-template-columns: 1fr; }
  .process-list li { grid-template-columns: 1fr; gap: 7px; }
  .sources { padding: 26px 20px; }
  .article-cta { align-items: stretch; flex-direction: column; padding: 29px 23px; }
  .article-cta > a { justify-content: center; }
  footer > div { align-items: flex-start; flex-direction: column; }
  .hub-hero { padding: 60px 0 55px; }
  .hub-hero h1 { font-size: 37px; }
  .hub-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .hub-grid article { grid-template-columns: 1fr; }
  .hub-grid article > img { min-height: 220px; height: 220px; }
  body { padding-bottom: 91px; }
  .persistent-contact { left: 0; bottom: 0; width: 100%; min-height: 78px; padding: 11px 12px 11px 16px; border-width: 1px 0 0; border-radius: 16px 16px 0 0; transform: none; }
  .persistent-contact > div span { display: none; }
  .persistent-contact strong { max-width: 46vw; font-size: 10px; }
  .persistent-contact > a { min-height: 48px; padding: 0 15px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
