:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --soft: #eef4f1;
  --ink: #17211d;
  --muted: #5f6c66;
  --line: #d8e1dc;
  --accent: #176b5d;
  --accent-dark: #0d4f45;
  --blue: #315f8f;
  --warn: #9a5a14;
  --note: #fff7df;
  --radius: 8px;
  --shadow: 0 14px 32px rgba(18, 45, 38, 0.08);
}
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.7; }
a { color: var(--accent-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--blue); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: 0.6rem 0.8rem; z-index: 20; }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.header-inner, .container, .footer-inner { width: min(1120px, calc(100vw - 32px)); margin: 0 auto; }
.header-inner { display: flex; flex-direction: column; gap: 0.75rem; padding: 0.9rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); font-weight: 800; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--radius); color: white; background: var(--accent-dark); }
.site-nav, .footer-links, .keyword-row { display: flex; flex-wrap: wrap; gap: 0.45rem 0.9rem; }
.site-nav a, .footer-links a { color: var(--muted); font-size: 0.94rem; text-decoration: none; }
.home-hero, .page-hero { background: #fff; border-bottom: 1px solid var(--line); }
.home-hero { padding: 2.9rem 0 2.2rem; }
.page-hero.compact { padding: 2.3rem 0; }
.hero-grid { display: grid; gap: 1.4rem; align-items: center; }
.eyebrow, .card-kicker { margin: 0 0 0.5rem; color: var(--accent-dark); font-size: 0.78rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.3; letter-spacing: 0; }
h1 { margin: 0; font-size: 2.15rem; }
h2 { margin: 2rem 0 0.7rem; font-size: 1.45rem; }
h3 { margin: 0 0 0.45rem; font-size: 1.08rem; }
.home-hero h1 { font-size: 2.55rem; }
.lead { max-width: 720px; margin: 0.8rem 0 0; color: var(--muted); font-size: 1.08rem; overflow-wrap: anywhere; }
.search-box { margin-top: 1.2rem; }
.search-box input { width: min(100%, 560px); min-height: 3rem; padding: 0.85rem 1rem; border: 1px solid #cbd8d4; border-radius: var(--radius); font: inherit; }
.keyword-row { margin-top: 0.8rem; }
.keyword-row a { padding: 0.4rem 0.65rem; background: var(--soft); border-radius: var(--radius); text-decoration: none; font-size: 0.94rem; }
.hero-panel, .card, .side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.hero-panel { padding: 1.1rem; box-shadow: var(--shadow); }
.hero-panel img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--soft); }
.notice-strip { margin-top: 1.2rem; padding: 0.9rem 1rem; border: 1px solid #ecd392; background: var(--note); color: var(--warn); border-radius: var(--radius); }
.section-heading { margin: 2.5rem 0 1rem; }
.section-heading p { color: var(--muted); }
.card-grid { display: grid; gap: 1rem; margin-bottom: 2rem; }
.card { padding: 1rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.card h3 a { color: var(--ink); }
.content-layout { display: grid; gap: 1.4rem; padding: 2rem 0 3rem; }
.content-main { min-width: 0; }
.content-main.single { max-width: 820px; padding: 2rem 0 3rem; }
.content-main p { max-width: 76ch; }
.content-main h2 { padding-left: 0.75rem; border-left: 4px solid var(--accent); }
.side-box { padding: 1rem; background: #fbfcfb; }
.side-box h2 { margin-top: 0; font-size: 1.1rem; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; min-width: 540px; border-collapse: collapse; table-layout: fixed; }
th, td { padding: 0.75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
th { width: 34%; background: #f1f6f4; }
.check-list, .related-list, .sitemap-list { padding-left: 1.2rem; }
.check-list li, .related-list li, .sitemap-list li { margin: 0.45rem 0; }
details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 0.8rem 0.9rem; margin: 0.65rem 0; }
summary { cursor: pointer; font-weight: 800; }
.article-meta { margin-top: 0.8rem; color: var(--muted); font-size: 0.92rem; }
.answer-box, .toc-box, .asset-box, .tool-panel, .diagnosis-result, .evidence-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 1rem; }
.answer-box { background: #f1f8f5; border-color: #b9d8cc; }
.toc-box h2 { margin-top: 0; font-size: 1.1rem; }
.toc-box ol { margin: 0; padding-left: 1.2rem; }
.summary-list { background: #fbfcfb; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.85rem 0.85rem 0.85rem 2rem; }
.asset-grid, .evidence-grid { display: grid; gap: 1rem; margin-bottom: 2rem; }
.asset-box p, .diagnosis-result p, .update-note { color: var(--muted); }
.evidence-card img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.evidence-card figcaption { color: var(--muted); font-size: 0.92rem; }
.source-list { padding-left: 1.2rem; }
.source-list li { margin: 0.45rem 0; }
.tool-panel { display: grid; gap: 0.9rem; margin: 2rem 0 1rem; }
.tool-panel label { display: grid; gap: 0.35rem; font-weight: 800; }
.tool-panel select { min-height: 2.8rem; border: 1px solid #cbd8d4; border-radius: var(--radius); padding: 0.65rem; font: inherit; background: #fff; }
.checkbox-row { display: flex !important; align-items: center; gap: 0.55rem; }
.diagnosis-result { margin: 1rem 0 2rem; background: #fbfcfb; }
.hub-table { margin-bottom: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.72rem 1rem; border: 1px solid var(--accent); border-radius: var(--radius); font: inherit; font-weight: 800; text-decoration: none; }
.button.primary { background: var(--accent); color: #fff; }
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 1.6rem 0; }
.footer-inner { display: grid; gap: 1rem; }
.fine-print { width: min(1120px, calc(100vw - 32px)); margin: 1rem auto 0; color: var(--muted); font-size: 0.92rem; }
@media (min-width: 720px) {
  .header-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); }
  .home-hero h1 { font-size: 3rem; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-grid, .evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .content-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .content-side { position: sticky; top: 92px; align-self: start; }
}
@media (max-width: 640px) {
  .site-nav, .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem 0.7rem; }
  .site-nav a, .footer-links a { min-width: 0; overflow-wrap: anywhere; }
  table { min-width: 0; }
  th, td { padding: 0.65rem; word-break: break-all; }
  th { width: 34%; }
  .lead, .content-main p, .content-main li { overflow-wrap: anywhere; word-break: keep-all; }
}
@media (max-width: 420px) {
  .header-inner, .container, .footer-inner, .fine-print { width: min(100vw - 24px, 1120px); }
  .home-hero h1, h1 { font-size: 1.9rem; }
}
