:root {
  --ink: #17211d;
  --muted: #5f6d67;
  --line: #dfe6e2;
  --paper: #fff;
  --wash: #f4f7f5;
  --green: #17624b;
  --green-dark: #0f4938;
  --gold: #d9a441;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; line-height: 1.65; }
a { color: inherit; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.korea-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.korea-header__inner { width: min(1280px, calc(100% - 40px)); min-height: 78px; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.korea-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 220px; text-decoration: none; }
.korea-brand img { width: 42px; height: 42px; }
.korea-brand span { display: grid; line-height: 1.2; }
.korea-brand strong { font-size: 17px; }
.korea-brand small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.korea-nav { display: flex; gap: 18px; margin-right: auto; }
.korea-nav a { color: #34433d; font-size: 13px; font-weight: 700; text-decoration: none; }
.korea-nav a:hover { color: var(--green); }
.korea-search { display: flex; width: 300px; }
.korea-search input { min-width: 0; width: 100%; height: 39px; padding: 0 12px; border: 1px solid #ccd8d2; border-radius: 5px 0 0 5px; font: inherit; font-size: 13px; }
.korea-search button { height: 39px; padding: 0 14px; border: 0; border-radius: 0 5px 5px 0; background: var(--green); color: #fff; font-weight: 800; cursor: pointer; }

.korea-hero { border-bottom: 1px solid var(--line); background: var(--wash); }
.korea-hero > div { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 64px; }
.korea-kicker, .section-heading p, .category-head > p:first-child { margin: 0 0 9px; color: var(--green); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.korea-hero h1 { max-width: 900px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 68px); line-height: 1.04; letter-spacing: 0; }
.korea-hero div > p:last-child { max-width: 760px; margin: 22px 0 0; color: var(--muted); font-size: 18px; }

.korea-main-section { width: min(1080px, calc(100% - 40px)); min-height: 50vh; margin: 0 auto; padding: 56px 0 80px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 14px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.section-heading h2, .category-head h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 32px; line-height: 1.15; }
.category-head { max-width: 760px; margin-bottom: 34px; }
.category-head > p:last-child { color: var(--muted); }

.guide-list { border-top: 0; }
.guide-row { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 26px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.guide-row:not(:has(.guide-row__image)) { grid-template-columns: 1fr; }
.guide-row__image { overflow: hidden; aspect-ratio: 3 / 2; border-radius: 5px; background: var(--wash); }
.guide-row__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.guide-row__category { margin: 0 0 5px !important; color: var(--green); font-size: 12px !important; font-weight: 800; text-transform: uppercase; }
.guide-row h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 25px; line-height: 1.22; }
.guide-row h2 a { text-decoration: none; }
.guide-row h2 a:hover { color: var(--green); }
.guide-row p { max-width: 760px; margin: 9px 0; color: var(--muted); font-size: 15px; }
.guide-row small { color: #76827d; font-size: 12px; }
.empty-guides { padding: 48px 0; border-bottom: 1px solid var(--line); }
.empty-guides h1, .empty-guides h2 { font-family: Georgia, "Times New Roman", serif; }

.korea-article-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 88px; }
.korea-article { width: min(100%, 800px); }
.article-head { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.article-category { margin: 0 0 12px; color: var(--green); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.article-category a { text-decoration: none; }
.article-head h1, .korea-article > h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: 0; }
.article-summary { margin: 18px 0 0; color: var(--muted); font-size: 19px; line-height: 1.62; }
.article-meta { margin: 14px 0 0; color: #77837e; font-size: 12px; }
.article-cover { display: block; width: 100%; height: auto; margin: 30px 0; border-radius: 6px; }
.quick-answer { margin: 30px 0; padding: 22px 24px; border-left: 4px solid var(--green); background: #f2f8f5; }
.quick-answer strong { display: block; margin-bottom: 7px; color: var(--green-dark); font-size: 13px; text-transform: uppercase; }
.quick-answer p { margin: 0; font-size: 18px; line-height: 1.65; }
.article-content { font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.83; }
.article-content h2, .article-faq h2, .article-sources h2 { margin: 2.2em 0 .65em; font-family: Inter, ui-sans-serif, sans-serif; font-size: 27px; line-height: 1.25; }
.article-content h3 { margin: 1.7em 0 .55em; font-family: Inter, ui-sans-serif, sans-serif; font-size: 20px; }
.article-content p { margin: 0 0 1.15em; }
.article-content ul, .article-content ol { margin: 0 0 1.35em; padding-left: 1.4em; }
.article-content li { margin: .4em 0; }
.article-content table { width: 100%; margin: 1.5em 0; border-collapse: collapse; font-family: Inter, ui-sans-serif, sans-serif; font-size: 14px; }
.article-content th, .article-content td { padding: 11px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content th { background: var(--wash); }
.article-faq, .article-sources { margin-top: 48px; padding-top: 4px; border-top: 2px solid var(--ink); }
.article-faq details { border-bottom: 1px solid var(--line); }
.article-faq summary { padding: 17px 0; font-weight: 800; cursor: pointer; }
.article-faq details p { margin: 0 0 18px; color: var(--muted); }
.article-sources li { margin: 8px 0; overflow-wrap: anywhere; }
.article-sources > p { color: var(--muted); font-size: 13px; }
.draft-bar { padding: 10px 20px; background: #251f17; color: #fff; font: 700 13px/1.4 Inter, sans-serif; text-align: center; }
.draft-bar a { margin-left: 12px; color: #ffe39d; }
.trust-page { width: min(100%, 760px); }
.trust-page h1 { font-family: Georgia, "Times New Roman", serif; font-size: 42px; }
.trust-page p { color: #3e4b46; font-size: 17px; }

.korea-footer { border-top: 1px solid #315047; background: #17382f; color: #eaf1ee; }
.korea-footer__inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 26px; display: flex; justify-content: space-between; gap: 30px; }
.korea-footer strong { font-family: Georgia, "Times New Roman", serif; font-size: 22px; }
.korea-footer p { margin: 7px 0 0; color: #b8c8c2; font-size: 13px; }
.korea-footer nav { display: flex; flex-wrap: wrap; gap: 18px; align-content: start; }
.korea-footer a { color: #f4f8f6; font-size: 13px; font-weight: 700; text-decoration: none; }
.korea-footer__copy { width: min(1180px, calc(100% - 40px)); margin: 0 auto !important; padding: 16px 0 26px; border-top: 1px solid rgba(255,255,255,.12); }

@media (max-width: 980px) {
  .korea-header__inner { flex-wrap: wrap; padding: 12px 0; }
  .korea-nav { order: 3; width: 100%; overflow-x: auto; padding: 4px 0; }
  .korea-nav a { white-space: nowrap; }
  .korea-search { margin-left: auto; }
}

@media (max-width: 680px) {
  .korea-header__inner, .korea-hero > div, .korea-main-section, .korea-article-shell, .korea-footer__inner, .korea-footer__copy { width: min(100% - 28px, 1180px); }
  .korea-brand { min-width: 0; }
  .korea-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 14px; overflow: visible; }
  .korea-nav a { white-space: normal; }
  .korea-search { order: 4; width: 100%; }
  .korea-hero > div { padding: 46px 0 42px; }
  .korea-hero h1 { font-size: 40px; }
  .korea-hero div > p:last-child { font-size: 16px; }
  .korea-main-section, .korea-article-shell { padding: 38px 0 60px; }
  .guide-row { grid-template-columns: 110px minmax(0, 1fr); gap: 15px; padding: 18px 0; }
  .guide-row h2 { font-size: 20px; }
  .guide-row p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13px; }
  .article-head h1, .korea-article > h1 { font-size: 36px; }
  .article-summary { font-size: 17px; }
  .article-content { font-size: 17px; }
  .article-content table { display: block; overflow-x: auto; white-space: nowrap; }
  .korea-footer__inner { flex-direction: column; }
}
