/* =========================================================
   모든 테마 공통 컴포넌트 (빌드 시 각 테마 theme.css 앞에 합쳐짐)
   blog.js 가 사용하는 상태 클래스와 검색 레이어만 정의합니다.
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; word-break: keep-all; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: #111; color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.is-hidden { display: none !important; }
.dd { position: relative; }
.dd-panel { display: none; }
.dd.is-open .dd-panel { display: block; }
.m-nav { display: none; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* 검색 레이어 */
.search-layer { position: fixed; inset: 0; z-index: 200; background: rgba(15, 18, 22, .5); display: none; padding: 10vh 16px; }
.search-layer.is-open { display: block; }
.search-box { max-width: 680px; margin: 0 auto; background: #fff; border-radius: 20px; padding: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .2); }
.search-box input { width: 100%; border: 0; border-bottom: 2px solid var(--brand); font: inherit; font-size: 20px; padding: 8px 4px 12px; outline: none; background: transparent; }
.search-results { margin-top: 12px; max-height: 56vh; overflow-y: auto; }
.search-results a { display: block; padding: 12px 6px; border-bottom: 1px solid #eceef0; font-size: 15px; color: #1b1e22; }
.search-results a:hover { color: var(--brand); }
.search-results small { display: block; color: #8a9097; font-size: 12px; margin-top: 2px; }
.search-empty { color: #8a9097; padding: 16px 6px; font-size: 14px; }

/* =========================================================
   OLA Webzine — 업체별 블로그 공통 레이아웃
   업체마다 바뀌는 값은 :root 의 --brand 계열 변수뿐입니다.
   ========================================================= */
:root {
  --brand: #0e6b6f;          /* 업체 대표 색상 (생성 시 교체) */
  --brand-ink: #0a4f52;      /* 대표 색상의 진한 버전 */
  --brand-soft: #e7f3f2;     /* 대표 색상의 옅은 배경 */

  --ink: #14171a;
  --ink-2: #4a5056;
  --ink-3: #8a9097;
  --line: #e6e8eb;
  --bg: #ffffff;
  --bg-2: #f6f7f8;
  --radius: 20px;
  --radius-sm: 12px;
  --wrap: 1680px;
  --gutter: clamp(16px, 3.2vw, 48px);
  --shadow: 0 10px 30px rgba(20, 23, 26, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 썸네일 (이미지 없을 때 자리표시) ---------- */
.thumb {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 10;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ph { width: 100%; height: 100%; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-ink) 100%); }
.ph-2 { background: linear-gradient(135deg, #5b7f95, #2f4a5c); }
.ph-3 { background: linear-gradient(135deg, #c98b5a, #8a5532); }
.ph-4 { background: linear-gradient(135deg, #7a8f5c, #4b5e33); }
.ph-5 { background: linear-gradient(135deg, #8a7aa8, #574a75); }
a:hover .thumb img { transform: scale(1.04); }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; height: 68px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.03em; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 15px;
}
.logo img { height: 30px; width: auto; }
.gnb { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.gnb > a, .gnb .dd > button {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2);
  background: none; border: 0;
}
.gnb > a:hover, .gnb .dd > button:hover, .gnb > a.is-active { color: var(--brand); background: var(--brand-soft); }
.dd { position: relative; }
.dd-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 280px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: 8px; display: none;
}
.dd.is-open .dd-panel { display: block; }
.dd-panel a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.dd-panel a:hover { background: var(--bg-2); color: var(--brand); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: none;
  display: grid; place-items: center; color: var(--ink-2);
}
.icon-btn:hover { background: var(--bg-2); color: var(--brand); }
.menu-btn { display: none; }

/* 모바일 메뉴 */
.m-nav { display: none; }
@media (max-width: 860px) {
  .gnb { display: none; }
  .menu-btn { display: grid; }
  .site-header .search-btn { margin-left: auto; }
  .site-header .wrap { gap: 4px; }
  .m-nav.is-open {
    display: block; position: fixed; inset: 68px 0 0; background: #fff; z-index: 49;
    padding: 16px 24px 40px; overflow-y: auto;
  }
  .m-nav h4 { margin: 20px 0 8px; font-size: 12px; color: var(--ink-3); letter-spacing: .08em; }
  .m-nav a { display: block; padding: 12px 0; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); }
}

/* ---------- 검색 오버레이 ---------- */
.search-layer {
  position: fixed; inset: 0; z-index: 100; background: rgba(20, 23, 26, .45);
  display: none; padding: 80px 16px;
}
.search-layer.is-open { display: block; }
.search-box {
  max-width: 640px; margin: 0 auto; background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.search-box input {
  width: 100%; border: 0; border-bottom: 2px solid var(--brand); font-size: 20px; padding: 8px 4px 12px; outline: none; font-family: inherit;
}
.search-results { margin-top: 12px; max-height: 50vh; overflow-y: auto; }
.search-results a { display: block; padding: 12px 6px; border-bottom: 1px solid var(--line); font-size: 15px; }
.search-results a:hover { color: var(--brand); }
.search-results small { display: block; color: var(--ink-3); font-size: 12px; }
.search-empty { color: var(--ink-3); padding: 16px 6px; font-size: 14px; }

/* ---------- 공통 섹션 ---------- */
.section { padding: clamp(52px, 5vw, 96px) 0; }
.section.alt { background: var(--bg-2); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.sec-head h2 { margin: 0; font-size: clamp(23px, 1.9vw, 32px); line-height: 1.3; letter-spacing: -0.04em; }
.sec-head p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--brand); text-transform: uppercase;
}
/* OLA 시그니처: 짧은 대표색 막대 */
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--brand); }
.more-link { font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.more-link:hover { color: var(--brand); }
.more-link::after { content: " →"; }
.chip {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); padding: 4px 10px; border-radius: 999px;
}
.date { font-size: 13px; color: var(--ink-3); }

/* ---------- 히어로 슬라이더 ---------- */
.hero { padding: 28px 0 0; }
.slider { position: relative; border-radius: 28px; overflow: hidden; height: clamp(420px, 34vw, 600px); background: var(--ink); }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none;
}
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide .ph, .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 14, 18, .78) 0%, rgba(10, 14, 18, .35) 55%, rgba(10, 14, 18, 0) 100%);
}
.slide-body {
  position: absolute; z-index: 2; left: clamp(28px, 4vw, 80px); bottom: clamp(56px, 5vw, 88px); max-width: 680px; color: #fff;
}
.slide-body .meta { font-size: 14px; opacity: .85; margin-bottom: 14px; }
.slide-body h2 { margin: 0 0 14px; font-size: clamp(28px, 2.6vw, 46px); line-height: 1.28; letter-spacing: -0.045em; }
.slide-body p { margin: 0; font-size: 15px; opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slider-ctrl {
  position: absolute; z-index: 3; right: 32px; bottom: 32px; display: flex; align-items: center; gap: 10px;
}
.dots { display: flex; gap: 6px; }
.dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: rgba(255, 255, 255, .45); transition: width .3s; }
.dots button.is-active { width: 26px; background: #fff; }
.arrow {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center;
}
.arrow:hover { background: rgba(255, 255, 255, .2); }
.intro { margin: 32px auto 0; text-align: center; max-width: 880px; }
.intro h1 { margin: 0 0 6px; font-size: clamp(20px, 1.6vw, 26px); letter-spacing: -0.04em; }
.intro p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- 오늘의 글 (대표 1 + 카드) ---------- */
.feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.feature .thumb { aspect-ratio: 4 / 3; border-radius: 16px; }
.feature h3 { margin: 12px 0; font-size: 26px; line-height: 1.38; letter-spacing: -0.04em; }
.feature p { color: var(--ink-2); margin: 0 0 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 22px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 15px; border: 0;
}
.btn:hover { background: var(--brand-ink); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card .thumb { margin-bottom: 14px; }
.card h3 {
  margin: 8px 0 6px; font-size: 17px; line-height: 1.45; letter-spacing: -0.03em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card p {
  margin: 0 0 8px; font-size: 14px; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover h3 { color: var(--brand); }

/* ---------- 인기글 랭킹 ---------- */
.rank-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.rank-wrap .sec-head { display: block; }
.rank-list { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.rank-list li { border-bottom: 1px solid var(--line); }
.rank-list a { display: flex; align-items: center; gap: 22px; padding: 20px 4px; }
.rank-list .num {
  flex: none; width: 44px; font-size: 30px; font-weight: 800; color: var(--ink-3);
  font-variant-numeric: tabular-nums; letter-spacing: -0.04em;
}
.rank-list li:nth-child(-n+3) .num { color: var(--brand); }
.rank-list .tit { font-size: 17px; font-weight: 600; line-height: 1.45; }
.rank-list a:hover .tit { color: var(--brand); }

/* ---------- FAQ ---------- */
.faq { max-width: 1000px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 12px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 700; font-size: 17px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--brand); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--ink-2); }
.faq .answer p { margin: 0 0 8px; }
.faq .q { color: var(--brand); margin-right: 6px; }

/* ---------- 진료 철학 ---------- */
.values-head { text-align: center; margin-bottom: 36px; }
.values-head h2 { margin: 10px 0 6px; font-size: clamp(23px, 2vw, 34px); letter-spacing: -0.04em; }
.values-head p { margin: 0; color: var(--ink-2); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value { background: #fff; border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); }
.value b { display: block; font-size: 13px; color: var(--brand); letter-spacing: .1em; margin-bottom: 14px; }
.value h3 { margin: 0 0 8px; font-size: 20px; }
.value p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ---------- 의료진 ---------- */
.doctors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.doctor { display: flex; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.doctor .avatar {
  flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 22px; overflow: hidden;
}
.doctor .avatar img { width: 100%; height: 100%; object-fit: cover; }
.doctor h3 { margin: 2px 0 2px; font-size: 18px; }
.doctor .role { font-size: 13px; color: var(--brand); font-weight: 600; margin-bottom: 8px; }
.doctor p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ---------- 분야별 노트 (카테고리 카드) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 180px;
  padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.cat-card:hover { border-color: var(--brand); transform: translateY(-3px); }
.cat-card h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.4; letter-spacing: -0.03em; }
.cat-card p { margin: 0; font-size: 13px; color: var(--ink-3); }
.cat-card .count { margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--brand); }

/* ---------- 최근 발행한 글 (리스트) ---------- */
.recent { border-top: 2px solid var(--ink); }
.recent li { list-style: none; border-bottom: 1px solid var(--line); }
.recent ul { margin: 0; padding: 0; }
.recent a { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px 4px; }
.recent .tit { font-weight: 600; }
.recent a:hover .tit { color: var(--brand); }
.recent li.is-hidden { display: none; }
.load-more { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- 병원 안내 CTA ---------- */
.clinic {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
  background: var(--brand); color: #fff; border-radius: 28px; padding: 44px 48px;
}
.clinic h2 { margin: 10px 0 8px; font-size: 28px; letter-spacing: -0.04em; }
.clinic .eyebrow { color: #fff; }
.clinic .eyebrow::before { background: #fff; }
.clinic p { margin: 0; opacity: .85; }
.clinic dl { margin: 0; display: grid; grid-template-columns: 80px 1fr; gap: 10px 12px; font-size: 15px; }
.clinic dt { opacity: .7; }
.clinic dd { margin: 0; font-weight: 600; }
.clinic .actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.clinic .btn { background: #fff; color: var(--brand-ink); }
.clinic .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }

/* =========================================================
   카테고리 / 코너 목록 페이지
   ========================================================= */
.list-hero { padding: 56px 0 32px; border-bottom: 1px solid var(--line); }
.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.crumb a:hover { color: var(--brand); }
.list-hero h1 { margin: 10px 0 8px; font-size: 36px; letter-spacing: -0.045em; line-height: 1.3; }
.list-hero p { margin: 0; color: var(--ink-2); }
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 24px 0; }
.cat-tabs a {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.cat-tabs a:hover { border-color: var(--brand); color: var(--brand); }
.cat-tabs a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.post-list .card.is-hidden { display: none; }
.list-count { font-size: 14px; color: var(--ink-3); margin-bottom: 20px; }
.list-count b { color: var(--ink); }

/* =========================================================
   글 상세 페이지
   ========================================================= */
.article-head { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: clamp(32px, 4vw, 64px) var(--gutter) 28px; }
.article-head h1 { margin: 14px 0 18px; font-size: clamp(27px, 2.5vw, 44px); line-height: 1.32; letter-spacing: -0.045em; }
.article-head .lead { font-size: 18px; color: var(--ink-2); margin: 0 0 24px; }
.byline { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.byline .avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 800;
}
.byline b { color: var(--ink); display: block; }
.article-cover { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto 8px; padding: 0 var(--gutter); }
.article-cover .thumb { aspect-ratio: 21 / 9; border-radius: var(--radius); }

.article-body { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 40px var(--gutter) 0; font-size: 17.5px; line-height: 1.85; }
.article-body p { margin: 0 0 1.4em; }
.article-body h2 { margin: 2.2em 0 .8em; font-size: 25px; line-height: 1.4; letter-spacing: -0.04em; }
.article-body h3 { margin: 1.8em 0 .6em; font-size: 20px; letter-spacing: -0.03em; }
.article-body img { border-radius: var(--radius-sm); margin: 2em auto; height: auto; }
.article-body figure .thumb { max-width: 1200px; margin: 0 auto; }
.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
  margin: 2em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brand); color: var(--ink-2); font-size: 18px;
}
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.article-body li { margin-bottom: .4em; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
/* 핵심 요약 박스 */
.summary-box {
  background: var(--brand-soft); border-radius: var(--radius-sm); padding: 24px 26px; margin: 0 0 2.4em; font-size: 16.5px;
}
.summary-box strong { display: block; color: var(--brand-ink); margin-bottom: 6px; font-size: 14px; letter-spacing: .06em; }
.summary-box p { margin: 0; }
/* 목차 */
.toc { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 24px; margin: 0 0 2.4em; font-size: 15px; }
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--brand); }

.article-foot { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 40px auto 0; padding: 0 var(--gutter); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.tags a { font-size: 13px; color: var(--ink-2); background: var(--bg-2); padding: 6px 12px; border-radius: 999px; }
.tags a:hover { color: var(--brand); }
.notice { font-size: 13px; color: var(--ink-3); margin: 20px 0 0; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.prev-next a { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.prev-next a:hover { border-color: var(--brand); }
.prev-next small { display: block; color: var(--ink-3); font-size: 12px; margin-bottom: 4px; }
.prev-next span { font-weight: 600; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.prev-next .next { text-align: right; }


/* ---------- 헤더 보조 ---------- */
.dd-panel small { color: var(--ink-3); font-size: 12px; }
.gnb .gnb-home { color: var(--brand); border: 1px solid var(--brand-soft); margin-left: 6px; }

/* ---------- 카드 그리드 ---------- */
.cards-mt { margin-top: 40px; }
.card a { display: block; }

/* ---------- 의료진 자격 ---------- */
.creds { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.creds li { font-size: 12px; color: var(--ink-2); background: var(--bg-2); border-radius: 6px; padding: 3px 8px; }
.section.alt .creds li { background: #fff; }

/* ---------- 글 상세 보강 (E-E-A-T / AEO) ---------- */
.byline { flex-wrap: wrap; }
.byline > div span { display: block; color: var(--ink-3); font-size: 13px; }
.byline .byline-role { display: inline; color: var(--brand); font-weight: 600; font-size: 13px; margin-left: 4px; }
.reviewed { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; }
.article-cover { margin-top: 0; }
.article-body figure { margin: 2em 0; }
.article-body figure img { margin: 0 auto; }
.article-body figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); text-align: center; }
.table-wrap { overflow-x: auto; margin: 2em 0; -webkit-overflow-scrolling: touch; }
.article-body table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.article-body caption { text-align: left; font-weight: 700; font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.article-body th, .article-body td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body thead th { background: var(--brand-soft); color: var(--brand-ink); border-bottom: 0; }
.article-body tbody th { font-weight: 700; white-space: nowrap; }
.post-faq { margin-top: 3em; }
.post-faq .faq summary { font-size: 16px; }
.post-faq .answer { font-size: 16px; }
.sources { margin-top: 3em; padding-top: 1.6em; border-top: 1px solid var(--line); }
.sources h2 { font-size: 18px; margin: 0 0 .6em; }
.sources ol { font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.author-box {
  display: flex; gap: 20px; padding: 28px; margin-bottom: 28px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
}
.author-box .avatar {
  flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 22px;
}
.author-box small { color: var(--ink-3); font-size: 12px; letter-spacing: .04em; }
.author-box h2 { margin: 2px 0 6px; font-size: 20px; }
.author-box h2 span { font-size: 13px; color: var(--brand); font-weight: 600; margin-left: 4px; }
.author-box p { margin: 0; color: var(--ink-2); font-size: 15px; }
.author-box .creds li { background: #fff; }
.author-box .more-link { display: inline-block; margin-top: 12px; }
.section-gap { height: clamp(48px, 5vw, 80px); }

/* ---------- 푸터 (회사 정보) ---------- */
.site-footer { margin-top: clamp(56px, 5vw, 96px); border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 13px; color: var(--ink-3); background: var(--bg-2); }
.site-footer > .wrap:first-child { display: grid; grid-template-columns: 1fr auto auto; gap: 24px 64px; }
.site-footer strong { color: var(--ink); font-size: 16px; }
.site-footer address { font-style: normal; margin-top: 10px; line-height: 1.9; }
.site-footer address span + span::before { content: "|"; margin: 0 10px; color: #cfd3d7; }
.site-footer address br + span::before { content: none; }
.site-footer p { margin: 10px 0 0; }
.f-disclaimer { max-width: 760px; }
.site-footer a:hover { color: var(--brand); }
.f-links h4 { margin: 0 0 12px; font-size: 13px; color: var(--ink); }
.f-links ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.ola-sign { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); letter-spacing: .1em; font-size: 11px; }
.ola-sign b { color: var(--ink-2); }

/* =========================================================
   반응형
   ≥1440 큰 모니터 / 1100–1439 노트북 / 720–1099 태블릿 / <720 모바일
   ========================================================= */
@media (min-width: 1440px) {
  .feature { padding: 44px; gap: 64px; }
  .feature h3 { font-size: 30px; }
}
@media (max-width: 1279px) {
  .gnb > a, .gnb .dd > button { padding: 8px 10px; }
}
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .doctors { grid-template-columns: repeat(2, 1fr); }
  .rank-wrap { grid-template-columns: 1fr; gap: 8px; }
  .site-footer > .wrap:first-child { grid-template-columns: 1fr 1fr; }
  .f-info { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .clinic { grid-template-columns: 1fr; }
}
@media (max-width: 719px) {
  .slider { height: 440px; border-radius: 20px; }
  .slide::after { background: linear-gradient(0deg, rgba(10, 14, 18, .88) 0%, rgba(10, 14, 18, .25) 75%); }
  .slide-body { left: 22px; right: 22px; bottom: 72px; }
  .slide-body h2 { font-size: 25px; }
  .slider-ctrl { left: 22px; right: auto; bottom: 26px; }
  .slider-ctrl .arrow { display: none; }
  .sec-head { flex-wrap: wrap; }
  .feature { padding: 16px; }
  .feature h3 { font-size: 21px; }
  .cards { grid-template-columns: 1fr; gap: 28px; }
  .cat-grid, .values, .doctors { grid-template-columns: 1fr; }
  .cat-card { min-height: 0; }
  .doctor { padding: 20px; }
  .rank-list a { gap: 14px; padding: 16px 2px; }
  .rank-list .num { font-size: 24px; width: 34px; }
  .rank-list .tit { font-size: 16px; }
  .recent a { flex-direction: column; align-items: flex-start; gap: 4px; }
  .faq summary { font-size: 16px; padding: 18px 48px 18px 18px; }
  .faq summary::after { right: 18px; }
  .faq .answer { padding: 0 18px 18px; }
  .clinic { padding: 32px 22px; border-radius: 20px; }
  .clinic dl { grid-template-columns: 64px 1fr; font-size: 14px; }
  .clinic .btn { flex: 1 1 auto; justify-content: center; }
  .list-hero { padding: 36px 0 24px; }
  .list-hero h1 { font-size: 28px; }
  .cat-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 20px var(--gutter); scrollbar-width: none; }
  .cat-tabs a { flex: none; }
  .article-head { padding: 32px var(--gutter) 20px; }
  .article-head h1 { font-size: 27px; }
  .article-head .lead { font-size: 16px; }
  .reviewed { margin-left: 52px; }
  .article-body { padding: 28px var(--gutter) 0; font-size: 16.5px; }
  .article-body h2 { font-size: 22px; }
  .article-foot { padding: 0 var(--gutter); }
  .author-box { flex-direction: column; padding: 22px; }
  .prev-next { grid-template-columns: 1fr; }
  .prev-next .next { text-align: left; }
  .site-footer > .wrap:first-child { grid-template-columns: 1fr; }
  .site-footer address span { display: block; }
  .site-footer address span + span::before { content: none; }
  .site-footer address br { display: none; }
}

@media (max-width: 719px) { .article-cover .thumb { aspect-ratio: 16 / 10; } }

/* =========================================================
   생성기 전용 보조 스타일 (모든 테마 공통, theme.css 뒤에 합쳐짐)
   시안에는 없던 실제 데이터용 요소(사진 아바타, 핵심 포인트, 빈 목록 등)
   ========================================================= */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.key-points { margin: 12px 0 0; padding-left: 1.2em; }
.key-points li { margin: 4px 0; }
.empty-list { padding: 48px 0; text-align: center; color: #8a9097; }
.notfound { padding: 96px 0; text-align: center; }
.notfound h1 { margin: 0 0 12px; }
.notfound p { margin: 0 0 24px; color: #5b6168; }
.t-avatar, .p-dav, .a-av { overflow: hidden; }
.t-avatar img, .p-dav img, .a-av img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.t-logo img, .a-logo img, .p-wlogo img { height: 30px; width: auto; }
.ola-link { color: inherit; text-decoration: none; }
.ola-link:hover { text-decoration: underline; }
