/* =========================================================
   모든 테마 공통 컴포넌트 (빌드 시 각 테마 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; }

/* =========================================================
   Theme: toss — 토스 UI/UX 스타일
   큰 타이포 · 회색 면 분할 · 테두리 없는 둥근 카드 · 하단 고정 CTA
   ========================================================= */
:root {
  --brand: #3182f6; --brand-ink: #1b64da; --brand-soft: #e8f3ff;
  --g50: #f9fafb; --g100: #f2f4f6; --g200: #e5e8eb; --g300: #d1d6db; --g400: #b0b8c1;
  --g500: #8b95a1; --g600: #6b7684; --g700: #4e5968; --g800: #333d4b; --g900: #191f28;
  --wrap: 1680px; --gutter: clamp(20px, 3.2vw, 48px);
  --r-lg: 28px; --r-md: 20px; --r-sm: 14px;
}
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  color: var(--g900); background: #fff; font-size: 17px; line-height: 1.6; letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.chev { flex: none; color: var(--g400); }

/* ---------- 공통 요소 ---------- */
.t-label { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: var(--brand); letter-spacing: -0.01em; }
.t-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 48px; padding: 0 20px; border: 0; border-radius: 14px;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 16px; transition: background .15s, transform .1s;
}
.t-btn:hover { background: var(--brand-ink); }
.t-btn:active { transform: scale(.97); }
.t-btn.grey { background: var(--g100); color: var(--g700); }
.t-btn.grey:hover { background: var(--g200); }
.t-btn.big { height: 56px; padding: 0 26px; font-size: 17px; border-radius: 16px; }
.t-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.t-thumb { overflow: hidden; border-radius: var(--r-md); background: var(--g100); aspect-ratio: 16 / 10; }
.t-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a:hover .t-thumb img { transform: scale(1.03); }
.t-cat { font-size: 14px; font-weight: 700; color: var(--brand); }

/* ---------- 헤더 ---------- */
.t-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); }
.t-header .wrap { display: flex; align-items: center; height: 64px; gap: 32px; }
.t-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.04em; }
.t-logo span { width: 30px; height: 30px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 15px; }
.t-gnb { display: flex; gap: 4px; }
.t-gnb > a, .t-gnb .dd > button { padding: 8px 14px; border-radius: 10px; border: 0; background: none; font-size: 16px; font-weight: 600; color: var(--g600); }
.t-gnb > a:hover, .t-gnb .dd > button:hover { background: var(--g100); color: var(--g900); }
.t-gnb .dd-panel {
  position: absolute; top: calc(100% + 8px); left: 0; width: 340px; padding: 8px; background: #fff;
  border-radius: var(--r-md); box-shadow: 0 12px 40px rgba(0, 25, 70, .14);
}
.t-gnb .dd-panel a { display: block; padding: 12px 14px; border-radius: 12px; }
.t-gnb .dd-panel a:hover { background: var(--g50); }
.t-gnb .dd-panel b { display: block; font-size: 16px; }
.t-gnb .dd-panel span { font-size: 13px; color: var(--g500); }
.t-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.t-icon { width: 42px; height: 42px; border: 0; border-radius: 12px; background: none; color: var(--g700); display: grid; place-items: center; }
.t-icon:hover { background: var(--g100); }
.t-pill { padding: 9px 16px; border-radius: 12px; background: var(--g100); font-size: 15px; font-weight: 600; color: var(--g700); }
.t-pill:hover { background: var(--g200); }
.menu-btn { display: none; }

/* ---------- 히어로 ---------- */
.t-hero { padding: clamp(32px, 4vw, 72px) 0 clamp(24px, 3vw, 48px); }
.t-hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 96px); align-items: center; }
.t-hero h1 { margin: 0 0 18px; font-size: clamp(34px, 3.6vw, 60px); line-height: 1.25; letter-spacing: -0.05em; font-weight: 800; }
.t-hero-copy { margin: 0 0 12px; font-size: clamp(19px, 1.5vw, 24px); font-weight: 700; color: var(--g800); letter-spacing: -0.03em; }
.t-hero-desc { margin: 0 0 32px; color: var(--g600); font-size: 17px; max-width: 560px; }
.t-feature { display: block; padding: 16px; border-radius: var(--r-lg); background: var(--g50); transition: background .2s; }
.t-feature:hover { background: var(--g100); }
.t-feature .t-thumb { border-radius: var(--r-md); margin-bottom: 20px; }
.t-feature .t-cat, .t-feature h2, .t-feature p { padding: 0 8px; }
.t-feature h2 { margin: 6px 0 8px; font-size: clamp(22px, 1.8vw, 30px); line-height: 1.35; letter-spacing: -0.04em; }
.t-feature p { margin: 0 0 8px; color: var(--g600); }

/* ---------- 칩 ---------- */
.t-chips { display: flex; gap: 8px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.t-chips::-webkit-scrollbar { display: none; }
.t-chips a { flex: none; padding: 10px 18px; border-radius: 999px; background: var(--g100); font-size: 15px; font-weight: 600; color: var(--g700); }
.t-chips a:hover { background: var(--g200); }
.t-chips a.is-active { background: var(--g900); color: #fff; }
.t-chips.sticky { position: sticky; top: 64px; z-index: 40; background: #fff; padding-top: 12px; padding-bottom: 12px; }

/* ---------- 섹션 ---------- */
.t-sec { padding: clamp(48px, 5vw, 96px) 0; }
.t-sec.tight { padding-top: 24px; }
.t-sec.grey { background: var(--g50); }
.t-head { margin-bottom: clamp(24px, 2.4vw, 40px); }
.t-head h2 { margin: 0; font-size: clamp(26px, 2.2vw, 38px); line-height: 1.3; letter-spacing: -0.05em; font-weight: 800; }
.t-head p:not(.t-label) { margin: 10px 0 0; color: var(--g600); font-size: 17px; }

/* 카드 */
.t-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2vw, 32px); }
.t-card a { display: block; }
.t-card .t-thumb { margin-bottom: 16px; }
.t-card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.4; letter-spacing: -0.035em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-card p { margin: 0 0 10px; color: var(--g600); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-meta { font-size: 14px; color: var(--g500); }
.t-card a:hover h3 { color: var(--brand); }

/* 인기글 패널 */
.t-panel { background: var(--g50); border-radius: 32px; padding: clamp(28px, 3.4vw, 56px); }
.t-rank { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: start; }
.t-rank ol { list-style: none; margin: 0; padding: 0; }
.t-rank li a { display: flex; align-items: center; gap: 20px; padding: 14px 12px; border-radius: 18px; }
.t-rank li a:hover { background: #fff; }
.t-num { flex: none; width: 28px; font-size: 22px; font-weight: 800; color: var(--brand); text-align: center; }
.t-tit { flex: 1; font-size: 18px; font-weight: 600; line-height: 1.45; letter-spacing: -0.03em; }
.t-thumb.sm { flex: none; width: 72px; height: 72px; aspect-ratio: auto; border-radius: 16px; }

/* 분야 타일 */
.t-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.t-tile { display: flex; flex-direction: column; gap: 4px; padding: 28px 24px; border-radius: 24px; background: #fff; transition: transform .15s, box-shadow .15s; }
.t-tile:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0, 25, 70, .08); }
.t-ico { width: 52px; height: 52px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 22px; margin-bottom: 16px; }
.t-tile b { font-size: 19px; letter-spacing: -0.03em; }
.t-tile > span { font-size: 14px; color: var(--g500); }
.t-tile em { margin-top: 18px; font-style: normal; font-size: 14px; font-weight: 700; color: var(--g700); display: flex; align-items: center; gap: 2px; }

/* 의료진 */
.t-docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.t-doc { padding: 32px; border-radius: 24px; background: var(--g50); }
.t-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; }
.t-doc .t-avatar { width: 64px; height: 64px; font-size: 24px; margin-bottom: 18px; }
.t-avatar.lg { width: 72px; height: 72px; font-size: 26px; }
.t-doc h3 { margin: 0; font-size: 22px; }
.t-role { margin: 2px 0 12px; color: var(--brand); font-weight: 600; font-size: 15px; }
.t-doc p:not(.t-role) { margin: 0; color: var(--g700); font-size: 16px; }
.t-doc ul, .t-author-card ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.t-doc li, .t-author-card li { padding: 5px 10px; border-radius: 8px; background: #fff; font-size: 13px; color: var(--g600); }

/* 진료 원칙 */
.t-vals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.t-val { padding: 32px 28px; border-radius: 24px; border: 1px solid var(--g200); }
.t-val span { display: block; font-size: 40px; font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: 22px; }
.t-val h3 { margin: 0 0 6px; font-size: 21px; }
.t-val p { margin: 0; color: var(--g600); font-size: 16px; }

/* FAQ */
.t-split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: start; }
.t-faq details { border-bottom: 1px solid var(--g200); }
.t-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 4px; font-size: 19px; font-weight: 700; letter-spacing: -0.03em; }
.t-faq summary::-webkit-details-marker { display: none; }
.t-faq summary .chev { transform: rotate(90deg); transition: transform .2s; }
.t-faq details[open] summary .chev { transform: rotate(-90deg); }
.t-faq details p { margin: 0 0 24px; padding: 20px 22px; border-radius: 16px; background: var(--g50); color: var(--g700); }

/* 리스트 행 */
.t-rows { display: grid; gap: 8px; }
.t-rows.two { grid-template-columns: 1fr 1fr; column-gap: 32px; }
.t-row a { display: flex; align-items: center; gap: 28px; padding: 20px 16px; border-radius: 20px; }
.t-row a:hover { background: var(--g50); }
.t-row-text { flex: 1; min-width: 0; }
.t-row h3 { margin: 4px 0 6px; font-size: 20px; line-height: 1.4; letter-spacing: -0.035em; }
.t-row p { margin: 0 0 8px; color: var(--g600); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-row time { font-size: 14px; color: var(--g500); }
.t-row .t-thumb { flex: none; width: clamp(120px, 14vw, 220px); border-radius: 16px; }
.t-more { display: flex; justify-content: center; margin-top: 32px; }
.t-more .t-btn { min-width: 240px; }
.t-count { margin: 0 0 12px; color: var(--g600); }
.t-count b { color: var(--g900); }

/* 병원 안내 */
.t-clinic { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); padding: clamp(32px, 4vw, 64px); border-radius: 32px; background: #fff; }
.t-clinic h2 { margin: 0 0 10px; font-size: clamp(26px, 2.2vw, 36px); letter-spacing: -0.05em; }
.t-clinic-head > p:not(.t-label) { margin: 0 0 28px; color: var(--g600); }
.t-clinic .t-btns { flex-direction: column; max-width: 420px; }
.t-info { margin: 0; }
.t-info div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--g100); }
.t-info dt { color: var(--g500); font-size: 16px; }
.t-info dd { margin: 0; font-weight: 600; font-size: 17px; }
.t-info small { display: block; font-weight: 400; color: var(--g500); font-size: 14px; margin-top: 2px; }

/* 푸터 */
.t-footer { padding: 48px 0 56px; font-size: 14px; color: var(--g500); border-top: 1px solid var(--g100); }
.t-flinks { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 28px; font-weight: 600; color: var(--g700); }
.t-flinks a:hover { color: var(--g900); }
.t-footer strong { color: var(--g800); font-size: 16px; }
.t-footer address { font-style: normal; margin: 10px 0; line-height: 1.9; }
.t-footer p { margin: 6px 0 0; }
.t-copy { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 20px !important; }
.t-copy span { letter-spacing: .1em; font-size: 11px; }
.t-copy b { color: var(--g700); }

/* 하단 고정 CTA (모바일) */
.t-cta-bar { display: none; }

/* =========================================================
   글 상세
   ========================================================= */
.t-crumb { display: flex; align-items: center; gap: 2px; font-size: 15px; color: var(--g500); font-weight: 600; margin-bottom: 18px; }
.t-crumb a:hover { color: var(--g900); }
.t-crumb .chev { width: 16px; height: 16px; }
.t-ahead { padding-top: clamp(32px, 4vw, 64px); }
.t-ahead h1 { margin: 0 0 18px; font-size: clamp(30px, 3vw, 52px); line-height: 1.28; letter-spacing: -0.05em; font-weight: 800; max-width: 1200px; }
.t-lead { margin: 0 0 32px; font-size: clamp(18px, 1.3vw, 21px); color: var(--g600); max-width: 1100px; }
.t-author { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 32px; }
.t-author b { display: block; font-size: 17px; }
.t-author > div > span { font-size: 14px; color: var(--g500); }
.t-dates { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.t-dates span { padding: 6px 12px; border-radius: 10px; background: var(--g100); font-size: 13px; color: var(--g600); font-weight: 600; }
.t-dates .t-badge { background: var(--brand-soft); color: var(--brand); }
.t-cover .t-thumb { aspect-ratio: 21 / 9; border-radius: var(--r-lg); }
.t-cover { margin: 0 auto; }

.t-body { padding-top: clamp(32px, 3vw, 56px); }
.t-summary { padding: clamp(24px, 2.4vw, 40px); border-radius: 24px; background: var(--g50); margin-bottom: 32px; }
.t-answer { margin: 0 0 18px; font-size: clamp(19px, 1.4vw, 23px); font-weight: 700; line-height: 1.6; letter-spacing: -0.03em; color: var(--g900); }
.t-keys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.t-keys li { position: relative; padding-left: 30px; color: var(--g700); font-size: 16px; }
.t-keys li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 12px; display: grid; place-items: center; font-weight: 800; }
.t-toc { margin-bottom: 48px; }
.t-toc p { margin: 0 0 10px; font-weight: 700; color: var(--g500); font-size: 15px; }
.t-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: t; display: flex; flex-wrap: wrap; gap: 8px; }
.t-toc li a { display: block; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--g200); font-size: 15px; font-weight: 600; color: var(--g700); }
.t-toc li a:hover { border-color: var(--g900); color: var(--g900); }

.t-content { font-size: 18px; line-height: 1.85; color: var(--g800); }
.t-content p { margin: 0 0 1.3em; }
.t-content h2 { margin: 2.2em 0 .7em; font-size: clamp(24px, 1.8vw, 30px); line-height: 1.35; letter-spacing: -0.045em; color: var(--g900); scroll-margin-top: 90px; }
.t-content strong { color: var(--g900); background: linear-gradient(transparent 62%, var(--brand-soft) 0); }
.t-content figure { margin: 2.4em 0; }
.t-content img { border-radius: var(--r-md); margin: 0 auto; }
.t-content figcaption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--g500); }
.t-content blockquote { margin: 2.4em 0; padding: 28px 32px; border-radius: 20px; background: var(--g50); font-size: 20px; font-weight: 600; line-height: 1.7; color: var(--g800); }
.t-content ul { padding-left: 1.2em; margin: 0 0 1.3em; }
.t-content li { margin-bottom: .4em; }
.t-content .table-wrap { margin: 2.2em 0; border-radius: 20px; border: 1px solid var(--g200); }
.t-content table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; }
.t-content caption { text-align: left; padding: 18px 20px 0; font-weight: 700; color: var(--g600); font-size: 14px; }
.t-content th, .t-content td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--g100); }
.t-content thead th { color: var(--g500); font-size: 14px; font-weight: 600; }
.t-content tbody tr:last-child th, .t-content tbody tr:last-child td { border-bottom: 0; }
.t-content tbody th { white-space: nowrap; }

.t-post-faq, .t-src { margin-top: 64px; }
.t-post-faq h2, .t-src h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -0.045em; }
.t-src ol { color: var(--g600); font-size: 15px; padding-left: 1.2em; }
.t-author-card { display: flex; gap: 24px; margin-top: 64px; padding: clamp(24px, 2.6vw, 40px); border-radius: 28px; background: var(--g50); }
.t-author-card h2 { margin: 0 0 6px; font-size: 23px; }
.t-author-card h2 span { font-size: 15px; color: var(--brand); font-weight: 600; margin-left: 4px; }
.t-author-card p:not(.t-label) { margin: 0; color: var(--g700); }
.t-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.t-tags a { padding: 8px 14px; border-radius: 10px; background: var(--g100); font-size: 14px; font-weight: 600; color: var(--g600); }
.t-tags a::before { content: "#"; }
.t-notice { margin: 20px 0 0; font-size: 14px; color: var(--g500); }
.t-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 32px; }
.t-pn a { padding: 22px 24px; border-radius: 20px; background: var(--g50); }
.t-pn a:hover { background: var(--g100); }
.t-pn a[rel="next"] { text-align: right; }
.t-pn small { display: block; color: var(--g500); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.t-pn b { font-size: 17px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* 카테고리 */
.t-list-hero { padding-top: clamp(32px, 4vw, 64px); padding-bottom: 12px; }
.t-list-hero h1 { margin: 0 0 12px; font-size: clamp(32px, 3vw, 52px); letter-spacing: -0.05em; }
.t-list-hero p { margin: 0; color: var(--g600); font-size: 18px; }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1280px) {
  .t-tiles { grid-template-columns: repeat(3, 1fr); }
  .t-pill { display: none; }
}
@media (max-width: 1100px) {
  .t-cards { grid-template-columns: repeat(3, 1fr); }
  .t-cards .t-card:nth-child(4) { display: none; }
  .t-rank, .t-split { grid-template-columns: 1fr; gap: 16px; }
  .t-vals { grid-template-columns: repeat(2, 1fr); }
  .t-docs { grid-template-columns: repeat(2, 1fr); }
  .t-rows.two { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .t-gnb { display: none; }
  .menu-btn { display: grid; }
  .m-nav.is-open { display: block; position: fixed; inset: 64px 0 0; z-index: 49; background: #fff; padding: 8px var(--gutter) 120px; overflow-y: auto; }
  .m-nav a { display: flex; justify-content: space-between; align-items: center; padding: 18px 4px; font-size: 18px; font-weight: 700; border-bottom: 1px solid var(--g100); }
  .t-hero .wrap { grid-template-columns: 1fr; }
  .t-hero .t-btns { display: none; }
  .t-clinic { grid-template-columns: 1fr; }
  .t-cards { grid-template-columns: repeat(2, 1fr); }
  .t-cards .t-card:nth-child(4) { display: block; }
  /* 하단 고정 CTA */
  .t-cta-bar {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, #fff 30%);
  }
  .t-cta-bar .t-btn { height: 56px; font-size: 17px; border-radius: 16px; }
  .t-cta-bar .t-btn.grey { flex: 1; }
  .t-cta-bar .t-btn:not(.grey) { flex: 2; }
  body { padding-bottom: 88px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .t-cards { grid-template-columns: 1fr; gap: 28px; }
  .t-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .t-tile { padding: 20px 18px; }
  .t-ico { width: 44px; height: 44px; font-size: 19px; margin-bottom: 10px; }
  .t-tile > span { display: none; }
  .t-tile em { margin-top: 8px; }
  .t-vals, .t-docs { grid-template-columns: 1fr; }
  .t-doc { padding: 24px; }
  .t-panel { border-radius: 24px; padding: 24px 12px; }
  .t-panel .t-head { padding: 0 12px; }
  .t-rank li a { gap: 14px; padding: 12px; }
  .t-tit { font-size: 16px; }
  .t-thumb.sm { width: 56px; height: 56px; border-radius: 12px; }
  .t-row a { gap: 16px; padding: 16px 0; }
  .t-row a:hover { background: none; }
  .t-row h3 { font-size: 17px; }
  .t-row p { display: none; }
  .t-row .t-thumb { width: 104px; aspect-ratio: 1; }
  .t-faq summary { font-size: 17px; padding: 20px 2px; }
  .t-clinic { padding: 28px 22px; border-radius: 24px; }
  .t-clinic .t-btns { display: none; }
  .t-info div { grid-template-columns: 64px 1fr; }
  .t-info dd { font-size: 16px; }
  .t-dates { margin-left: 0; }
  .t-cover .t-thumb { aspect-ratio: 16 / 10; border-radius: 20px; }
  .t-keys { grid-template-columns: 1fr; }
  .t-content { font-size: 17px; }
  .t-content blockquote { padding: 22px; font-size: 18px; }
  .t-author-card { flex-direction: column; }
  .t-pn { grid-template-columns: 1fr; }
  .t-pn a[rel="next"] { text-align: left; }
  .t-chips.sticky { top: 64px; }
}

/* =========================================================
   생성기 전용 보조 스타일 (모든 테마 공통, 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; }
