:root {
  --bg: #f6f4ef;
  --panel: #fffdf8;
  --ink: #23211c;
  --muted: #6f695f;
  --line: #ded7ca;
  --accent: #2f6f62;
  --accent-soft: #dce9e3;
  --warn: #8a4d1f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans KR", "Segoe UI", sans-serif;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
.shell { display: grid; grid-template-columns: 292px minmax(0, 1fr); min-height: 100dvh; }
.side {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 28px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.84);
  backdrop-filter: blur(18px);
  overflow: auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--accent); }
.brand-mark svg { width: 18px; height: 18px; }
.side-note { margin: 10px 0 24px; color: var(--muted); font-size: 13px; }
.search-label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.search {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 12px 12px;
  color: var(--ink);
  font-size: 14px;
  outline: none;
}
.search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.toc { display: grid; gap: 6px; margin-top: 22px; }
.toc a { padding: 9px 10px; color: var(--muted); border-radius: 8px; font-size: 14px; }
.toc a:hover { background: var(--accent-soft); color: var(--ink); }
.toc-label { margin: 14px 10px 2px; color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.content { padding: 42px clamp(20px, 5vw, 72px) 80px; max-width: 1240px; width: 100%; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) 280px;
  gap: 28px;
  align-items: stretch;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.eyebrow { color: var(--accent); text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
h1 { margin: 12px 0 16px; font-size: clamp(36px, 6vw, 70px); line-height: .98; letter-spacing: 0; }
h2 { margin: 0; font-size: 24px; letter-spacing: 0; }
p { color: var(--muted); line-height: 1.72; }
.hero p, .page-hero p { max-width: 760px; font-size: 17px; }
.utility { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.link, .pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
}
.pill { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.official-pill.status-ok { color: #1f6b3f; background: #dceee1; }
.official-pill.status-name { color: #33638a; background: #dceaf5; }
.official-pill.status-candidate { color: #8a5a14; background: #f6e7c4; }
.official-pill.status-weak { color: #7c4c2a; background: #f4ddd0; }
.official-pill.status-none { color: #8a3030; background: #f3d9d9; }
.hero-side, .fact-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 12px;
}
.stat { display: flex; justify-content: space-between; align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.stat:last-child { border-bottom: 0; padding-bottom: 0; }
.stat span { color: var(--muted); font-size: 13px; }
.stat strong { font-size: 28px; }
.notice { margin: 24px 0; padding: 16px 18px; border: 1px solid #e3c8a8; background: #fff8ed; border-radius: 8px; color: var(--warn); line-height: 1.65; }
.notice.compact { margin: 14px 0 0; }
.notice a { color: var(--warn); border-bottom: 1px solid currentColor; font-weight: 700; }
.group { margin-top: 36px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 14px; }
.section-head span { color: var(--muted); font-size: 14px; }
.feature-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.feature-strip a {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.feature-strip a:hover { border-color: var(--accent); }
.feature-strip strong { font-size: 18px; }
.feature-strip span { color: var(--muted); line-height: 1.55; font-size: 14px; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 16px; }
.status-card {
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.status-card span { color: var(--muted); font-size: 13px; font-weight: 800; }
.status-card strong { font-size: 34px; line-height: 1; }
.status-card small { color: var(--muted); line-height: 1.45; }
.status-card.status-ok { border-color: #9cccad; background: #f0f8f2; }
.status-card.status-name { border-color: #abcadf; background: #f0f7fb; }
.status-card.status-candidate { border-color: #dfc37b; background: #fff8e7; }
.status-card.status-weak { border-color: #dfb7a4; background: #fff1ea; }
.status-card.status-none { border-color: #daa3a3; background: #fff0f0; }
.index-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 16px; }
.catalog-grid.compact { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.index-card {
  display: grid;
  gap: 8px;
  min-height: 158px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.index-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.index-card strong { font-size: 22px; }
.index-card small, .card-kicker { color: var(--muted); line-height: 1.5; }
.catalog-card {
  display: grid;
  gap: 8px;
  min-height: 164px;
  padding: 16px;
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.catalog-card:hover { border-color: var(--accent); }
.catalog-card span { color: var(--accent); font-size: 12px; font-weight: 800; }
.catalog-card strong { font-size: 19px; line-height: 1.35; }
.catalog-card small { color: var(--muted); line-height: 1.5; }
.mini-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.mini-row .pill { min-height: 26px; padding: 5px 8px; font-size: 12px; }
.page-hero { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.product-title { display: grid; grid-template-columns: minmax(0, 1.4fr) 360px; gap: 24px; align-items: start; }
.back-link { display: inline-flex; margin-bottom: 22px; color: var(--accent); font-weight: 700; }
.fact-panel dl { display: grid; gap: 12px; margin: 0; }
.official-facts { margin-top: 16px; }
.official-facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.identity-facts { margin-top: 16px; }
.identity-facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact-panel div { display: grid; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.fact-panel div:last-child { border-bottom: 0; }
dt { color: var(--muted); font-size: 12px; }
dd { margin: 0; font-weight: 700; }
.wiki-section {
  margin-top: 24px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.pharmacist-brief {
  border-color: #9cccad;
  background: #fbfefb;
}
.brief-lead { margin: 14px 0 0; color: var(--ink); }
.brief-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.brief-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 220px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}
.brief-card h3 { margin: 0; font-size: 17px; }
.brief-card ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.58; }
.brief-card li + li { margin-top: 7px; }
.brief-card p { margin: 0; }
.brief-card.accent { border-color: #9cccad; background: #f0f8f2; }
.brief-card.danger { border-color: #daa3a3; background: #fff0f0; }
.brief-card.caution { border-color: #dfc37b; background: #fff8e7; }
.gold-monograph {
  border-color: #b6944f;
  background: #fffaf0;
  box-shadow: 0 18px 42px rgba(87, 64, 22, 0.08);
}
.gold-judgment {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #d8bd7a;
  border-radius: 8px;
  background: #fffdf8;
}
.gold-judgment span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.gold-judgment p { margin: 0; font-weight: 700; line-height: 1.65; }
.gold-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.gold-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 190px;
  padding: 16px;
  border: 1px solid #dfc37b;
  border-radius: 8px;
  background: #fffefb;
}
.gold-card.wide { grid-column: span 3; min-height: auto; }
.gold-card h3 { margin: 0; font-size: 17px; }
.gold-card p { margin: 0; }
.gold-card ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.58; }
.gold-card li + li { margin-top: 7px; }
.gold-card.danger { border-color: #daa3a3; background: #fff0f0; }
.gold-card.caution { border-color: #dfc37b; background: #fff8e7; }
.real-question-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.real-question-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.real-question-card h3 { font-size: 16px; line-height: 1.4; }
.real-question-card p { color: var(--muted); line-height: 1.58; }
.real-question-card small { color: var(--accent); font-weight: 700; line-height: 1.45; }
.enriched-monograph { border-color: #abcadf; background: #f8fcff; }
.enriched-monograph.pending { border-color: var(--line); background: var(--panel); }
.monograph-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.monograph-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 190px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
}
.monograph-card.wide { grid-column: span 3; min-height: auto; }
.monograph-card h3, .monograph-faq h3 { margin: 0; font-size: 17px; }
.monograph-card p { margin: 0; }
.monograph-card ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.58; }
.monograph-card li + li { margin-top: 7px; }
.monograph-card.danger { border-color: #daa3a3; background: #fff0f0; }
.monograph-card.caution { border-color: #dfc37b; background: #fff8e7; }
.evidence-note { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.monograph-faq { margin-top: 18px; }
.faq-list.compact { margin-top: 10px; }
.wiki-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.clean-list { margin: 16px 0 0; padding-left: 20px; color: var(--muted); line-height: 1.72; }
.clean-list li + li { margin-top: 8px; }
.coverage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.coverage div { border-top: 1px solid var(--line); padding-top: 12px; }
.coverage span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.faq-list { display: grid; gap: 14px; margin-top: 16px; }
.faq-item {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.faq-item:first-child { border-top: 0; padding-top: 0; }
.faq-item h3 { margin: 10px 0 8px; font-size: 20px; line-height: 1.35; letter-spacing: 0; }
.faq-item p { margin: 8px 0; }
.faq-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.faq-tags .pill { min-height: 26px; padding: 5px 8px; font-size: 12px; }
.applies { margin-top: 10px; color: var(--muted); line-height: 1.65; font-size: 14px; }
.applies a { color: var(--accent); border-bottom: 1px solid currentColor; }
.inline-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.inline-links a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f3ea;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}
.condition-list { display: grid; gap: 8px; margin-top: 16px; }
.condition-list a,
.condition-list span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.condition-list a:first-child,
.condition-list span:first-child { border-top: 0; }
.condition-list strong { color: var(--ink); }
.condition-list span span,
.condition-list em { color: var(--muted); font-style: normal; font-size: 13px; white-space: nowrap; }
.excerpt { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.excerpt:first-of-type { border-top: 0; padding-top: 0; }
.excerpt h3 { margin: 0 0 8px; font-size: 17px; }
.empty-state { margin-top: 14px; padding: 14px 0 0; border-top: 1px solid var(--line); }
.official-candidates { margin-top: 16px; }
.refs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.refs a { color: var(--accent); border-bottom: 1px solid currentColor; }
.code-block {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #25231f;
  color: #f6f4ef;
  line-height: 1.55;
  font-size: 13px;
}
.code-block code, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
code { background: #eee7da; color: var(--ink); padding: 2px 5px; border-radius: 5px; }
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; margin-top: 24px; }
table { width: 100%; border-collapse: collapse; min-width: 920px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; line-height: 1.55; }
thead th { background: #f1ede4; color: var(--muted); font-size: 12px; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th a { color: var(--accent); }
.steps { display: grid; gap: 12px; padding: 0; margin: 16px 0 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 120px 1fr; gap: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.steps span { color: var(--muted); line-height: 1.65; }
.is-hidden { display: none !important; }
@media (max-width: 860px) {
  .shell { display: block; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 280px; overflow: auto; padding-right: 4px; }
  .hero, .product-title, .wiki-grid, .coverage, .feature-strip, .brief-grid, .monograph-grid, .gold-grid, .real-question-grid, .official-facts dl, .identity-facts dl { grid-template-columns: 1fr; }
  .monograph-card.wide, .gold-card.wide { grid-column: auto; }
  .content { padding: 28px 16px 64px; }
  h1 { font-size: 42px; }
  .section-head { display: block; }
  .steps li { grid-template-columns: 1fr; }
}
