:root {
  --bg-color: #FAFAFA;
  --surface-color: #FFFFFF;
  --text-main: #1A1A1A;
  --text-muted: #666666;
  --border-color: #EAEAEA;
  --accent: #2C3E50;
  --max-width: 1240px;
  --measure: 820px;   /* 본문·그림·표·박스가 공유하는 단일 폭 */
  --serif: "Noto Serif KR", Georgia, serif;
  --sans: "Noto Sans KR", -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  border-bottom: 1px solid var(--border-color);
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text-main);
}
nav { display: flex; gap: 1.8rem; align-items: center; font-size: 0.92rem; }
nav a { text-decoration: none; color: var(--text-muted); transition: color 0.2s ease; }
nav a:hover { color: var(--text-main); }
.lang-switch {
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  margin: 0 0 4rem;
  border-radius: 0;
  overflow: hidden;
  min-height: clamp(560px, 78vh, 820px);
  display: flex;
  align-items: flex-end;
  background: #333;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}
.hero-content { position: relative; padding: 3rem 1.5rem; color: #FFFFFF; max-width: var(--max-width); margin: 0 auto; width: 100%; box-sizing: border-box; }
.hero-tag {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.8rem;
}
.hero-title { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.25; font-weight: 400; margin-bottom: 1rem; white-space: nowrap; }
.hero-desc { font-size: 1.05rem; opacity: 0.9; font-weight: 300; margin-bottom: 1.5rem; line-height: 1.5; }
.hero-cta {
  display: inline-block; background: #FFFFFF; color: #111;
  padding: 0.7rem 1.4rem; border-radius: 4px; font-size: 0.9rem; font-weight: 500;
  text-decoration: none; transition: background 0.2s ease;
}
.hero-cta:hover { background: #EAEAEA; }

/* Intro / author section */
.intro-section {
  display: grid; grid-template-columns: 2fr 1fr; gap: 3rem;
  padding: 3rem 0; border-bottom: 1px solid var(--border-color);
}
.intro-text h2 { font-family: var(--serif); font-size: 1.8rem; font-weight: 400; margin-bottom: 1rem; line-height: 1.35; }
.intro-text p { color: var(--text-muted); margin-bottom: 1.2rem; font-size: 0.98rem; }
.intro-card {
  background: var(--surface-color); border: 1px solid var(--border-color);
  border-radius: 8px; padding: 1.5rem; font-size: 0.9rem;
}
.intro-card h4 { font-size: 1rem; margin-bottom: 0.4rem; font-weight: 600; }
.intro-card .role { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.1rem; }
.intro-card .group-label { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin: 0.9rem 0 0.3rem; font-weight: 600; }
.intro-card .group-label:first-of-type { margin-top: 0; }
.intro-card ul { list-style: none; color: var(--text-muted); }

.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
}
.sidebar-card { display: flex; }
.sidebar-card .intro-card { font-size: 0.85rem; width: 100%; display: flex; flex-direction: column; }
.sidebar-card .intro-card h4 { font-size: 0.95rem; }
.intro-card li { margin-bottom: 0.5rem; padding-left: 1rem; position: relative; }
.intro-card li::before { content: "•"; position: absolute; left: 0; color: var(--accent); }

/* Topics grid */
.section-header { margin: 4rem 0 2rem; display: flex; justify-content: space-between; align-items: baseline; }
.section-title { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; }
.section-link { font-size: 0.9rem; color: var(--text-muted); text-decoration: none; }

.topics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.topic-card {
  background: var(--surface-color); border: 1px solid var(--border-color); border-radius: 8px;
  padding: 2rem; text-decoration: none; color: inherit; transition: all 0.2s ease;
  display: flex; flex-direction: column; justify-content: space-between;
}
.topic-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.04); border-color: #CCC; }
.topic-tag { font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.6rem; }
.topic-card h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 0.8rem; line-height: 1.4; }
.topic-card p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.topic-arrow { font-size: 0.9rem; font-weight: 500; color: var(--accent); align-self: flex-start; }

.topic-card--placeholder {
  border-style: dashed;
  cursor: default;
  pointer-events: none;
  color: var(--text-muted);
}
.topic-card--placeholder:hover { transform: none; box-shadow: none; border-color: var(--border-color); }
.topic-card--placeholder h3 { color: var(--text-muted); font-weight: 500; }

/* Clinical banner */
.clinical-banner {
  background: #1E232A; color: #FFFFFF; border-radius: 8px; padding: 3rem; margin: 4rem 0;
  display: grid; grid-template-columns: 2fr 1fr; align-items: center; gap: 2rem;
}
.clinical-banner h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; margin-bottom: 0.8rem; }
.clinical-banner p { font-size: 0.95rem; color: #A0AEC0; line-height: 1.5; }
.clinical-btn {
  justify-self: end; background: transparent; color: #FFF; border: 1px solid #4A5568;
  padding: 0.8rem 1.6rem; border-radius: 4px; text-decoration: none; font-size: 0.9rem;
  transition: all 0.2s ease;
}
.clinical-btn:hover { background: #FFF; color: #111; }

/* Footer */
footer { border-top: 1px solid var(--border-color); padding: 3rem 0; margin-top: 4rem; font-size: 0.85rem; color: var(--text-muted); }
.intro-card .profile-links a { color: var(--accent); text-decoration: none; }
.intro-card .profile-links a:hover { text-decoration: underline; }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-disclaimer { max-width: 60ch; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
footer a { color: var(--text-muted); }

/* Search */
.search-trigger {
  background: none; border: none; cursor: pointer; font: inherit;
  color: var(--text-muted); font-size: 0.92rem; padding: 0; margin-right: 0.4rem;
}
.search-trigger:hover { color: var(--text-main); }
.search-overlay {
  position: fixed; inset: 0; background: rgba(20,20,20,0.5);
  display: none; align-items: flex-start; justify-content: center;
  z-index: 1100; padding: 10vh 1.5rem 1.5rem;
}
.search-overlay.is-open { display: flex; }
.search-box {
  background: var(--surface-color); border-radius: 10px; width: 100%; max-width: 560px;
  padding: 1.4rem; box-shadow: 0 20px 50px rgba(0,0,0,0.25); max-height: 70vh; overflow-y: auto;
}
.search-box input {
  width: 100%; font-size: 1rem; padding: 0.7rem 0.9rem; box-sizing: border-box;
  border: 1px solid var(--border-color); border-radius: 6px; font-family: inherit; color: var(--text-main);
}
.search-box input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-results { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.search-result { display: block; text-decoration: none; padding: 0.7rem 0.7rem; border-radius: 6px; }
.search-result:hover { background: var(--bg-color); }
.search-result .sr-tag { font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.2rem; }
.search-result .sr-title { font-family: var(--serif); font-weight: 500; color: var(--text-main); margin-bottom: 0.2rem; font-size: 1rem; }
.search-result .sr-excerpt { font-size: 0.85rem; color: var(--text-muted); }
.search-empty { font-size: 0.9rem; color: var(--text-muted); padding: 0.4rem; }

@media (max-width: 768px) {
  /* 헤더 — 좁은 화면에서는 브랜드와 내비를 두 줄로 */
  .nav-container { flex-direction: column; align-items: flex-start; gap: 0.65rem; padding: 0.9rem 1.15rem; }
  .brand { font-size: 1.18rem; }
  nav { width: 100%; flex-wrap: wrap; gap: 0.45rem 1.05rem; font-size: 0.86rem; }
  .search-trigger { font-size: 0.86rem; margin-right: 0; }
  .lang-switch { font-size: 0.75rem; padding: 0.15rem 0.5rem; }

  .intro-section, .clinical-banner { grid-template-columns: 1fr; }
  .clinical-btn { justify-self: start; }
  .hero { min-height: 60vh; }
  .hero-title { font-size: 1.5rem; white-space: normal; }
  .content-with-sidebar { grid-template-columns: 1fr; }
}

/* ===================================================================
   Article / condition page (질환 상세 페이지) — 같은 톤으로 맞춘 버전
   =================================================================== */
.article-header { padding: 3rem 0 1rem; max-width: var(--measure); margin: 0 auto; }
.article-header .kicker { font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.article-header h1 { font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 2.4rem); line-height: 1.3; font-weight: 400; margin: 0 0 1rem; }
.updated { font-size: 0.85rem; color: var(--text-muted); }

.article-body { max-width: var(--measure); margin: 0 auto; padding-bottom: 3rem; }

/* 본문 블록은 모두 같은 좌우 끝을 쓴다 */
.article-body > *,
.article-body .callout,
.article-figure { max-width: var(--measure); margin-left: auto; margin-right: auto; }

.article-body h2 {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 500;
  line-height: 1.45; letter-spacing: -0.01em; margin: 3.4rem 0 1.1rem;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.55; margin: 2.2rem 0 0.7rem; }
.article-body p { margin: 0 0 1.45rem; font-size: 1.02rem; line-height: 1.88; color: var(--text-main); }

.article-figure { margin-top: 1.8rem; margin-bottom: 2.4rem; }
.article-figure img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--border-color); }
.article-figure figcaption {
  margin-top: 0.85rem; font-size: 0.92rem; line-height: 1.78; color: #5a5a5a;
}
.article-figure figcaption strong { color: var(--text-main); font-weight: 600; }
.article-figure figcaption em { font-style: normal; color: var(--accent); }

/* 글자가 많은 도식 — 모바일에서 가로로 밀어 보기 */
.figure-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.figure-scroll img { width: 100%; height: auto; display: block;
  border-radius: 10px; border: 1px solid var(--border-color); }
.figure-hint { display: none; }
@media (max-width: 640px) {
  .figure-hint { display: block; font-size: 0.84rem; color: var(--text-muted); margin: 0 0 0.4rem; }
  .figure-scroll img { width: auto; max-width: none; min-width: 880px; }
}
.article-body .inline-note {
  font-size: 0.97rem; line-height: 1.8; color: var(--text-muted);
  border-left: 3px solid var(--accent); padding: 0.5rem 0 0.5rem 1rem; margin: -0.5rem 0 1.8rem;
}
.article-body .inline-note a { color: var(--accent); text-decoration: underline; }
.article-body ul, .article-body ol { margin: 0 auto 1.45rem; padding-left: 1.4rem; line-height: 1.8; font-size: 1.02rem; }
.article-body li { margin-bottom: 0.55rem; }

.article-body table { width: 100%; border-collapse: collapse; margin: 1.4rem auto 2.4rem; font-size: 0.93rem; }
.article-body th, .article-body td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border-color); vertical-align: top; line-height: 1.65; }
.article-body th { font-weight: 600; color: var(--text-main); background: var(--bg-color); font-size: 0.82rem; letter-spacing: 0.02em; }
.article-body td:first-child, .article-body th:first-child { font-weight: 500; color: var(--text-main); white-space: nowrap; }
.article-body tr:last-child td { border-bottom: none; }
/* 첫 칸 문구가 긴 표 — 줄바꿈 허용 */
.article-body table.wrap-first td:first-child,
.article-body table.wrap-first th:first-child { white-space: normal; }
@media (max-width: 640px) {
  .article-body table, .article-body thead, .article-body tbody, .article-body th, .article-body td, .article-body tr { display: block; }
  .article-body th { display: none; }
  .article-body td { border: none; padding: 0.3rem 0; }
  .article-body tr { padding: 0.9rem 0; border-bottom: 1px solid var(--border-color); }
  .article-body td:first-child { color: var(--accent); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.2rem; white-space: normal; }
}


/* ── 모바일 타이포 — 측정 폭이 좁아지는 만큼 글자는 키운다 ───────── */
@media (max-width: 640px) {
  .article-body p,
  .article-body ul, .article-body ol { font-size: 1.06rem; line-height: 1.85; }
  .article-body h2 { font-size: 1.34rem; margin: 2.8rem 0 0.9rem; }
  .article-body h3 { font-size: 1.1rem; margin: 1.9rem 0 0.6rem; }
  .callout { padding: 1.2rem 1.25rem; border-radius: 7px; margin: 2rem auto; }
  .callout p { font-size: 1.15rem; line-height: 1.8; }
  .callout .label { font-size: 1.12rem; }
  .faq-item h3 { font-size: 1.2rem; }
  .faq-item p { font-size: 1.15rem; }
  .article-figure figcaption { font-size: 0.98rem; line-height: 1.8; }
  .article-body .inline-note { font-size: 1.02rem; padding-left: 0.85rem; }
  .refs { font-size: 0.98rem; line-height: 1.82; }
  .author-box { font-size: 1rem; line-height: 1.78; }
  .container { padding: 0 1.15rem; }
}

/* Page hero photo band — for sub-page headers (not the homepage hero) */
.page-hero-band {
  margin: 2rem 0 0;
  border-radius: 12px;
  overflow: hidden;
  height: 240px;
}
.page-hero-band img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.94); }
@media (max-width: 768px) {
  .page-hero-band { height: 160px; }
}

/* Full-bleed page header hero (sub-pages) */
.page-hero {
  position: relative;
  width: 100%;
  min-height: clamp(620px, 88vh, 980px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 2.5rem;
}
.page-hero .hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.9);
}
.page-hero .hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,15,15,0) 0%, rgba(15,15,15,0.06) 45%, rgba(15,15,15,0.46) 100%);
}
.page-hero-content {
  position: relative; z-index: 2; width: 100%;
  max-width: var(--max-width); margin: 0 auto; box-sizing: border-box;
  padding: 2rem 1.5rem 2rem;
  color: #fff;
}
.page-hero-content .kicker { color: rgba(255,255,255,0.82); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.8rem; }
.page-hero-content h1 { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.28; font-weight: 400; color: #fff; margin: 0 0 0.7rem; }
.page-hero-content .hero-sub { color: rgba(255,255,255,0.9); font-size: 0.95rem; max-width: 68ch; margin: 0; }
.page-hero-content .updated { color: rgba(255,255,255,0.72); font-size: 0.85rem; margin: 0; }

.photo-credit {
  position: absolute;
  bottom: 0.9rem;
  right: 1.2rem;
  z-index: 3;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.72);
}

.callout {
  background: var(--surface-color);
  border: 1px solid var(--border-color); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 1.4rem 1.7rem; margin: 2.2rem auto;
}
.callout p { margin: 0; font-size: 1.12rem; line-height: 1.84; color: var(--text-main); }
.callout p + p { margin-top: 0.7rem; }
.callout .label { font-weight: 600; margin-bottom: 0.6rem; display: block; color: var(--accent); font-size: 1.1rem; letter-spacing: -0.01em; }

.faq-item { border-top: 1px solid var(--border-color); padding: 1.5rem 0; max-width: var(--measure); margin-left: auto; margin-right: auto; }
.faq-item:last-child { border-bottom: 1px solid var(--border-color); }
.faq-item h3 { margin: 0 0 0.7rem; font-size: 1.18rem; font-weight: 600; }
.faq-item p { margin: 0; font-size: 1.12rem; line-height: 1.84; color: var(--text-main); }

.refs { font-size: 0.93rem; line-height: 1.8; color: var(--text-muted); max-width: var(--measure); margin-left: auto; margin-right: auto; }
.refs li { margin-bottom: 0.45rem; }

.author-box { margin: 3.2rem auto 0; padding-top: 1.8rem; border-top: 1px solid var(--border-color); max-width: var(--measure); font-size: 0.95rem; line-height: 1.75; color: var(--text-muted); }
.author-box strong { color: var(--text-main); font-family: var(--serif); font-weight: 500; font-size: 1rem; }

/* Clinical professional gate modal */
.gate-overlay {
  position: fixed; inset: 0; background: rgba(20,20,20,0.55);
  display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 1.5rem;
}
.gate-overlay.is-open { display: flex; }
.gate-box {
  background: var(--surface-color); border-radius: 10px; max-width: 440px; width: 100%;
  padding: 2rem; box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.gate-box h4 { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; margin-bottom: 0.8rem; }
.gate-box p { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 1.6rem; line-height: 1.55; }
.gate-actions { display: flex; flex-direction: column; gap: 0.6rem; }
.gate-actions button {
  font-family: inherit; font-size: 0.92rem; padding: 0.75rem 1rem; border-radius: 5px;
  cursor: pointer; border: 1px solid var(--border-color); background: var(--surface-color); color: var(--text-main);
}
.gate-actions button.gate-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.gate-actions button:hover { opacity: 0.9; }

/* Story section — quote card that expands on click */
.story-section {
  max-width: none;
  margin: 0;
  padding: 0 0 3rem;
  border-bottom: 1px solid var(--border-color);
}
.story-card {
  display: block;
  width: 100%;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.8rem 2rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease;
}
.story-card:hover { border-color: #CCC; }
.story-card .story-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.story-card .story-quote {
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-main);
  word-break: keep-all;
  margin-bottom: 1.1rem;
}
.story-card .story-hint {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}
@media (max-width: 640px) {
  .story-card { padding: 1.5rem 1.3rem; }
  .story-card .story-quote { font-size: 1.3rem; }
}
.story-full {
  padding: 1.6rem 2rem 0;
}
.story-full p.story-body {
  font-size: 0.96rem;
  color: var(--text-muted);
  text-align: left;
  margin-bottom: 1rem;
  line-height: 1.7;
}
.story-full .story-sign {
  margin-top: 1.4rem;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--text-main);
}

table .muted { font-size: 0.85em; color: var(--text-muted); font-weight: 400; }

.article-body .profile-links { list-style: none; padding-left: 0; }
.article-body .profile-links a { color: var(--accent); text-decoration: none; }
.article-body .profile-links a:hover { text-decoration: underline; }

/* About page */
.about-canvas { position: relative; isolation: isolate; border-radius: 14px; overflow: hidden; background: #141414; padding: 2rem 2.2rem 0.6rem; margin-bottom: 2.5rem; }
.about-canvas .about-photo { position: absolute; top: 0; right: 0; width: min(40%, 380px); z-index: 0; line-height: 0; }
.about-canvas .about-photo img { width: 100%; height: auto; display: block; filter: grayscale(1) contrast(1.05); }
.about-canvas .about-photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(20,20,20,0) 55%, rgba(20,20,20,0.92) 92%, #141414 100%),
              linear-gradient(to bottom, rgba(20,20,20,0) 58%, rgba(20,20,20,0.9) 90%, #141414 100%); }
.about-canvas .article-body { position: relative; z-index: 2; padding-bottom: 1.2rem; max-width: 470px; }
.about-canvas .article-body p,
.about-canvas .article-body li { color: rgba(255,255,255,0.92); font-size: 0.88rem; line-height: 1.6; margin-bottom: 0.5rem; }
.about-canvas .article-body ul { margin: 0.3rem 0 1rem; }
.about-canvas .article-body li { margin-bottom: 0.25rem; }
.about-canvas .article-body h2 { color: #fff; font-size: 1.02rem; margin: 1.3rem 0 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.20); padding-bottom: 0.35rem; }
.about-canvas .article-body a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.about-canvas .article-body em { color: rgba(255,255,255,0.92); }
.about-canvas .article-body .refs li { color: rgba(255,255,255,0.78); font-size: 0.8rem; line-height: 1.45; }
.about-canvas .article-body .author-box { color: rgba(255,255,255,0.72); font-size: 0.82rem; margin-top: 1.2rem; padding-top: 0.8rem; border-top: 1px solid rgba(255,255,255,0.18); background: transparent; }
.about-lede p { font-size: 0.95rem !important; }
@media (max-width: 900px) {
  .about-canvas .about-photo { position: static; width: 100%; max-width: 300px; margin: 0 auto 1.2rem; border-radius: 10px; overflow: hidden; }
  .about-canvas .about-photo::after { background: none; }
  .about-canvas .article-body { max-width: none; }
}
@media (max-width: 768px) { .about-canvas { padding: 1.4rem 1.2rem 0.4rem; border-radius: 10px; } }

.intro-card h4 .intro-name-link { color: inherit; text-decoration: none; border-bottom: 1px solid var(--border-color); transition: border-color .15s; }
.intro-card h4 .intro-name-link:hover { border-bottom-color: var(--accent); }

/* ── 섹션 하단 '더 보기' 링크 ─────────────────────────────── */
.section-more { margin: 1.5rem 0 0; text-align: right; }
.section-more a {
  font-size: 0.92rem; color: var(--text-muted); text-decoration: none;
  border-bottom: 1px solid var(--border-color); padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.section-more a:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 640px) { .section-more { text-align: left; } }

/* 카드 4장 섹션 — 3+1로 떨어지지 않도록 2×2 */
@media (min-width: 900px) { .topics-grid.grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* ── 전공의·학생용 메타정보 블록과 목차 ─────────────────────── */
.article-meta {
  max-width: var(--measure); margin: 0 auto 2.2rem; padding: 1.1rem 1.3rem;
  background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 7px;
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.5rem 1rem;
  font-size: 0.93rem; line-height: 1.7;
}
.article-meta dt { color: var(--text-muted); font-size: 0.82rem; letter-spacing: 0.02em; padding-top: 0.15rem; }
.article-meta dd { margin: 0; color: var(--text-main); }
.article-meta dd a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--border-color); }
.article-meta dd a:hover { border-color: var(--accent); }
.article-meta .meta-muted { color: var(--text-muted); }
.key-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.key-chip {
  display: inline-block; padding: 0.12rem 0.5rem; border-radius: 3px;
  background: var(--surface-color); border: 1px solid var(--border-color);
  font-size: 0.84rem; color: var(--text-muted); white-space: nowrap;
}
.article-toc {
  display: block;   /* 전역 nav{display:flex} 무력화 */
  max-width: var(--measure); margin: 0 auto 2.4rem; padding: 1rem 1.3rem 1.1rem;
  border-left: 3px solid var(--border-color);
}
.article-toc .toc-label {
  display: block; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.55rem;
}
.article-toc ol { margin: 0; padding-left: 1.2rem; font-size: 0.95rem; line-height: 1.85; }
.article-toc li { margin: 0; }
.article-toc a { color: var(--text-main); text-decoration: none; border-bottom: 1px solid transparent; }
.article-toc a:hover { color: var(--accent); border-color: var(--accent); }
.article-body h2[id] { scroll-margin-top: 90px; }
@media (max-width: 640px) {
  .article-meta { grid-template-columns: 1fr; gap: 0.15rem; padding: 1rem 1.1rem; }
  .article-meta dt { padding-top: 0.5rem; }
  .article-toc ol { font-size: 1rem; }
}
.article-toc ol ul { list-style: none; margin: 0.15rem 0 0.35rem; padding-left: 0.9rem; }
.article-toc ol ul li { font-size: 0.92rem; color: var(--text-muted); }
.article-toc ol ul li::before { content: "– "; color: var(--text-muted); }
.article-body h3[id] { scroll-margin-top: 90px; }

/* ── Learning Hub ──────────────────────────────────────────── */
.hub { max-width: var(--measure); margin: 0 auto; padding-bottom: 3rem; }
.hub-intro { font-size: 1.02rem; line-height: 1.85; color: var(--text-main); margin: 0 0 1.4rem; }
.hub-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 1.2rem;
  font-size: 0.9rem; color: var(--text-muted);
  padding: 0.8rem 1rem; background: var(--bg-color);
  border: 1px solid var(--border-color); border-radius: 7px; margin-bottom: 3rem;
}
.lv {
  display: inline-block; padding: 0.08rem 0.5rem; border-radius: 3px;
  font-size: 0.78rem; letter-spacing: 0.02em; white-space: nowrap;
}
.lv-basic { background: #e7eff1; color: #315b69; }
.lv-adv   { background: #f4e7e4; color: #a8503f; }

.hub-topic { margin: 0 0 3.6rem; }
.hub-topic h2 {
  font-family: var(--serif); font-size: 1.5rem; font-weight: 500;
  margin: 0 0 0.5rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--border-color);
}
.hub-topic-en { font-family: var(--sans); font-size: 0.82rem; color: var(--text-muted); letter-spacing: 0.04em; margin-left: 0.5rem; }
.hub-lead { font-size: 0.96rem; line-height: 1.8; color: var(--text-muted); margin: 0 0 1.5rem; }

.path-list { list-style: none; margin: 0; padding: 0; }
.path-step { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--border-color); }
.path-step:last-child { border-bottom: none; }
.step-n {
  flex: 0 0 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--bg-color); border: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.86rem; color: var(--text-muted); margin-top: 0.1rem;
}
.step-body { flex: 1 1 auto; min-width: 0; }
.step-title { font-size: 1.05rem; color: var(--text-main); text-decoration: none; border-bottom: 1px solid var(--border-color); }
.step-title:hover { color: var(--accent); border-color: var(--accent); }
.step-why { margin: 0.35rem 0 0.5rem; font-size: 0.95rem; line-height: 1.7; color: var(--text-main); }
.step-meta { margin: 0.45rem 0 0.3rem; display: flex; align-items: center; gap: 0.6rem; }
.step-min { font-size: 0.85rem; color: var(--text-muted); }
.step-secs { margin: 0; font-size: 0.86rem; line-height: 1.65; color: var(--text-muted); }

.hub-todo { margin-top: 1.3rem; padding: 0.9rem 1.1rem; background: var(--bg-color); border-radius: 7px; }
.hub-todo-label { display: block; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem; }
.hub-todo ul { margin: 0; padding-left: 1.1rem; font-size: 0.92rem; line-height: 1.8; color: var(--text-muted); }

.concept-index { display: grid; grid-template-columns: minmax(12rem, 18rem) 1fr; gap: 0.1rem 1.2rem; margin: 0; font-size: 0.93rem; }
.concept-index dt { padding: 0.45rem 0; border-top: 1px solid var(--border-color); color: var(--text-main); }
.concept-index dd { padding: 0.45rem 0; border-top: 1px solid var(--border-color); margin: 0; color: var(--text-muted); }
.concept-index dd a { color: var(--text-muted); text-decoration: none; border-bottom: 1px solid transparent; }
.concept-index dd a:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 640px) {
  .concept-index { grid-template-columns: 1fr; gap: 0; }
  .concept-index dt { border-top: 1px solid var(--border-color); padding-bottom: 0.1rem; }
  .concept-index dd { border-top: none; padding-top: 0; font-size: 0.88rem; }
  .path-step { gap: 0.7rem; }
}
.hub-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  max-width: var(--measure); margin: 0 auto 2.5rem; padding: 1.3rem 1.5rem;
  background: var(--bg-color); border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent); border-radius: 7px;
  text-decoration: none; color: inherit; transition: border-color 0.2s ease;
}
.hub-banner:hover { border-color: var(--accent); }
.hub-banner strong { display: block; font-size: 1.05rem; margin-bottom: 0.3rem; }
.hub-banner span { font-size: 0.93rem; line-height: 1.7; color: var(--text-muted); }
.hub-banner-arrow { flex: 0 0 auto; font-size: 0.9rem; color: var(--accent); }
@media (max-width: 640px) { .hub-banner { flex-direction: column; align-items: flex-start; gap: 0.7rem; } }

/* ── 본문·절 단위 검색 결과 ────────────────────────────────── */
.search-overlay .search-box { max-width: 680px; max-height: 78vh; }
.search-result { border-bottom: 1px solid var(--border-color); border-radius: 0; padding: 0.9rem 0.3rem; }
.search-result:last-child { border-bottom: none; }
.search-result:hover { background: transparent; }
.search-result a.sr-title { display: block; text-decoration: none; }
.search-result a.sr-title:hover { color: var(--accent); }
.sr-sec {
  display: block; text-decoration: none; margin-top: 0.5rem; padding: 0.4rem 0.6rem;
  border-left: 2px solid var(--border-color); border-radius: 0 4px 4px 0;
}
.sr-sec:hover { background: var(--bg-color); border-left-color: var(--accent); }
.sr-sec-title { display: block; font-size: 0.86rem; color: var(--text-main); margin-bottom: 0.15rem; }
.sr-sec-text { display: block; font-size: 0.83rem; line-height: 1.65; color: var(--text-muted); }
.sr-sec mark { background: #fdf0c8; color: var(--text-main); padding: 0 1px; border-radius: 2px; }
.sr-more { display: block; margin-top: 0.4rem; padding-left: 0.6rem; font-size: 0.8rem; color: var(--text-muted); }

/* ── Read deeper — 본문에서 심화 글로 넘기는 블록 ───────────── */
.read-deeper {
  max-width: var(--measure); margin: 1.8rem auto 2.2rem; padding: 0.95rem 1.2rem;
  background: var(--bg-color); border-left: 3px solid var(--accent); border-radius: 0 7px 7px 0;
}
.read-deeper .rd-label {
  display: block; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.45rem;
}
.read-deeper .rd-q { margin: 0 0 0.35rem; font-size: 0.95rem; color: var(--text-muted); }
.read-deeper .rd-link {
  font-size: 1rem; color: var(--text-main); text-decoration: none;
  border-bottom: 1px solid var(--border-color);
}
.read-deeper .rd-link:hover { color: var(--accent); border-color: var(--accent); }
.read-deeper .rd-sub { margin: 0.35rem 0 0; font-size: 0.87rem; line-height: 1.65; color: var(--text-muted); }

/* 표 머리글 아래 작은 보조 설명 */
.article-body .th-sub { display: block; font-weight: 400; font-size: 0.84em;
  color: var(--text-muted); letter-spacing: 0; }

/* 등급 표 — 열 너비를 고정해 머리글이 쪼개지지 않게 */
.article-body table.grade-table th:first-child,
.article-body table.grade-table td:first-child { white-space: nowrap; width: 3.2rem; }
.article-body table.grade-table th:nth-child(3),
.article-body table.grade-table td:nth-child(3) { white-space: nowrap; width: 7.5rem; }
.article-body table.grade-table td:nth-child(2) { width: 24%; }

/* 에세이 중간에 한 줄만 크게 — 글의 마디를 짓는 자리 */
.article-body p.essay-line {
  max-width: var(--measure);
  margin: 2.7rem auto;
  padding: 0 0.4rem;
  font-size: 1.36rem;
  line-height: 1.72;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
  text-align: center;
  text-wrap: balance;
  word-break: keep-all;   /* 한글이 단어 중간에서 끊기지 않게 */
  overflow-wrap: break-word;
}
@media (max-width: 640px) {
  .article-body p.essay-line {
    font-size: 1.16rem; line-height: 1.68; margin: 2.1rem auto; text-align: left;
  }
}

/* 인쇄: 그림·캡션·상자·표 행이 페이지 사이에서 잘리지 않게 */
@media print {
  .article-figure, .callout, figure, tr { break-inside: avoid; page-break-inside: avoid; }
  h2, h3 { break-after: avoid; page-break-after: avoid; }
  .page-hero { min-height: 0 !important; height: auto !important; }
  .page-hero h1 { color: #111 !important; }
}

/* 표 안의 묶음 제목 행 (예: 잠복고환 3편 근거표) */
.article-body th.tgroup { background: #F2F5F7; color: var(--accent); font-size: 0.86rem; font-weight: 600; white-space: normal; letter-spacing: 0.01em; }
@media (max-width: 640px) {
  .article-body th.tgroup { display: block; margin-top: 1rem; padding: 0.5rem 0.7rem; border-radius: 6px; border: none; }
  .article-body tr:has(> th.tgroup) { padding: 0; border-bottom: none; }
}
