/* ─────────────────────────────────────────────
   늘편한신내과의원 · 공통 스타일
   글꼴: Pretendard · 본문 17px (어르신도 편하게 읽는 크기)
   색: 병원 로고의 네이비 · 블루를 바탕으로, 인증 · 강조에만 금색
   ───────────────────────────────────────────── */
:root {
  --navy: #0B3563;
  --navy-2: #0F3D6E;
  --blue: #1A6DB5;
  --sky: #3A9BD5;
  --blue-soft: #EAF3FB;
  --ink: #142536;
  --ink-2: #33475B;
  --muted: #5A6B7C;
  --line: #DFE8F1;
  --line-2: #EDF2F7;
  --soft: #F4F8FC;
  --gold: #9A7209;
  --gold-2: #D6AE3C;
  --warn: #8A4B00;
  --warn-soft: #FFF6E5;
  --danger: #B42318;
  --danger-soft: #FDF0EE;
  --ok: #146C3B;
  --ok-soft: #E5F4EA;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(11, 53, 99, .06);
  --shadow: 0 14px 40px rgba(11, 53, 99, .10);
  --shadow-lg: 0 24px 60px rgba(11, 53, 99, .18);
  --grad: linear-gradient(135deg, #0B3563 0%, #134C8A 55%, #1A6DB5 100%);
  --font: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --header-h: 50px;
  --fs: 1; /* 글자 배율: 빌드 때 모든 font-size 에 곱해짐 (휴대폰 .8 · 맨 아래 참고) */
  color-scheme: light;
}
@media (max-width: 760px) { :root { --fs: .8; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 64px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: max(12px, calc(17px * var(--fs, 1)));
  line-height: 1.75;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: #fff;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; color: var(--navy); letter-spacing: -0.03em; font-weight: 800; }
h3 { font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 10px; font-weight: 700; }
.skip:focus { top: 0; color: #fff; }
.pc-only { display: inline; }
@media (max-width: 760px) { .pc-only { display: none; } }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 860px; }

/* ── 머리말: 흰 로고 줄 + 네이비 메뉴 막대 (기존 dmlife.com 구성) ── */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 52; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 46px; height: 46px; }
.brand__div { width: 1px; height: 30px; background: var(--line); }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__text strong { font-size: max(12px, calc(19px * var(--fs, 1))); font-weight: 700; color: var(--navy); letter-spacing: -0.04em; }
.brand__text small { font-size: max(12px, calc(13px * var(--fs, 1))); color: var(--sky); font-weight: 600; letter-spacing: 0; }
.topbar__info { display: flex; align-items: center; gap: 18px; list-style: none; font-size: max(12px, calc(15px * var(--fs, 1))); color: var(--muted); }
.topbar__info a { color: var(--ink-2); text-decoration: none; }
.topbar__info a:hover { color: var(--blue); }
.topbar__tel { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: max(12px, calc(17px * var(--fs, 1))); color: var(--blue) !important; }
.topbar__pill { display: inline-flex; align-items: center; gap: 5px; padding: 7px 15px; border-radius: 999px; background: var(--grad); color: #fff !important; font-weight: 700; box-shadow: 0 4px 12px rgba(15, 61, 110, .3); }
.topbar__pill svg { width: 16px; height: 16px; }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); align-items: center; justify-content: center; }
.menu-btn__close { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: inline; }

.mainnav { position: sticky; top: 0; z-index: 50; background: linear-gradient(135deg, #0F3D6E, #1A6DB5); box-shadow: 0 2px 10px rgba(15, 61, 110, .25); }
.mainnav__in { display: flex; align-items: stretch; justify-content: space-between; height: var(--header-h); }
.mainnav__list { display: flex; list-style: none; }
.mainnav__item { position: relative; }
.mainnav__link { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 0 20px; color: #fff; text-decoration: none; font-size: max(12px, calc(14.5px * var(--fs, 1))); font-weight: 500; white-space: nowrap; line-height: 1.25; border-right: 1px solid rgba(255, 255, 255, .12); }
.mainnav__item:first-child .mainnav__link { border-left: 1px solid rgba(255, 255, 255, .12); }
.mainnav__link small { font-size: 9px; font-weight: 400; letter-spacing: .06em; color: rgba(255, 255, 255, .6); margin-top: 2px; }
.mainnav__link:hover, .mainnav__item:focus-within > .mainnav__link, .mainnav__item:hover > .mainnav__link { background: rgba(255, 255, 255, .14); color: #fff; }
.mainnav__item.is-current > .mainnav__link { background: rgba(255, 255, 255, .2); box-shadow: inset 0 -3px 0 #E8A840; }
.mainnav__sub { display: none; position: absolute; left: 0; top: 100%; min-width: 200px; list-style: none; background: #fff; border-radius: 0 0 12px 12px; box-shadow: 0 12px 28px rgba(11, 53, 99, .2); overflow: hidden; padding: 6px 0; }
.mainnav__item:hover .mainnav__sub, .mainnav__item:focus-within .mainnav__sub { display: block; }
.mainnav__sub a { display: block; padding: 10px 18px; color: var(--ink); text-decoration: none; font-size: max(12px, calc(14px * var(--fs, 1))); font-weight: 500; white-space: nowrap; }
.mainnav__sub a:hover { background: var(--blue-soft); color: var(--blue); }
.mainnav__cta { display: inline-flex; align-items: center; gap: 7px; align-self: center; padding: 8px 18px; border-radius: 4px; background: #E8A840; color: #fff; font-weight: 700; font-size: max(12px, calc(14px * var(--fs, 1))); text-decoration: none; white-space: nowrap; }
.mainnav__cta:hover { background: #D4952E; color: #fff; }
.mainnav__cta svg { width: 17px; height: 17px; }

@media (max-width: 1180px) {
  .mainnav__link { padding: 0 11px; font-size: max(12px, calc(14px * var(--fs, 1))); }
  .topbar__addr { display: none; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .topbar { position: sticky; top: 0; }
  .topbar__in { min-height: 64px; }
  .topbar__info { display: none; }
  .brand img { width: 38px; height: 38px; }
  .brand__div { display: none; }
  .brand__text strong { font-size: max(12px, calc(18px * var(--fs, 1))); }
  .brand__text small { font-size: 12px; }
  .menu-btn { display: inline-flex; }
  .mainnav { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: #fff; box-shadow: none; overflow-y: auto; padding-bottom: 100px; }
  .mainnav.is-open { display: block; }
  .mainnav__in { flex-direction: column; height: auto; padding-top: 8px; }
  .mainnav__list { flex-direction: column; }
  .mainnav__item { border-bottom: 1px solid var(--line-2); padding: 6px 0 12px; }
  .mainnav__link { flex-direction: row; justify-content: flex-start; gap: 10px; height: auto; padding: 12px 4px 6px; color: var(--navy); font-size: max(12px, calc(19px * var(--fs, 1))); font-weight: 800; border: 0 !important; }
  .mainnav__link small { color: var(--sky); margin: 0; }
  .mainnav__link:hover, .mainnav__item:hover > .mainnav__link, .mainnav__item:focus-within > .mainnav__link, .mainnav__item.is-current > .mainnav__link { background: transparent; box-shadow: none; color: var(--navy); }
  .mainnav__sub { display: flex !important; flex-wrap: wrap; gap: 6px; position: static; box-shadow: none; padding: 4px 0 0; min-width: 0; background: transparent; }
  .mainnav__sub a { padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: max(12px, calc(15px * var(--fs, 1))); font-weight: 500; }
  .mainnav__cta { align-self: stretch; justify-content: center; margin-top: 16px; padding: 14px; border-radius: 999px; font-size: max(12px, calc(17px * var(--fs, 1))); }
  html:not(.js) .mainnav { display: block; position: static; }
  html:not(.js) .menu-btn { display: none; }
}

.today { display: inline-flex; align-items: center; gap: 6px; padding: 1px 11px; border-radius: 999px; font-size: max(12px, calc(13px * var(--fs, 1))); font-weight: 700; background: rgba(255, 255, 255, .14); color: #fff; }
.today::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .75; }
.today.is-open { background: #1E8A4C; }
.today.is-break { background: #9A6700; }
.today.is-closed { background: rgba(255, 255, 255, .14); }
.today--light { background: var(--line-2); color: var(--muted); }
.today--light.is-open { background: var(--ok-soft); color: var(--ok); }
.today--light.is-break { background: var(--warn-soft); color: var(--warn); }
.today--light.is-closed { background: var(--line-2); color: var(--muted); }

/* ── 공통 부품 ─────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 26px; border-radius: 999px; font-size: max(12px, calc(17px * var(--fs, 1))); font-weight: 700; text-decoration: none; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(26, 109, 181, .25); }
.btn--primary:hover { color: #fff; box-shadow: 0 12px 26px rgba(26, 109, 181, .32); }
.btn--ghost { background: #fff; color: var(--navy); border-color: #C6D7E8; }
.btn--ghost:hover { background: var(--soft); color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); box-shadow: 0 10px 26px rgba(0, 0, 0, .18); }
.btn--light:hover { color: var(--navy); }
.btn--glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); }
.btn--glass:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.btn--naver { background: #03A94D; color: #fff; }
.btn--naver:hover { color: #fff; }
.btn--kakao { background: #FEE500; color: #191600; }
.btn--kakao:hover { color: #191600; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

.kicker { font-size: max(12px, calc(13px * var(--fs, 1))); font-weight: 800; letter-spacing: .14em; color: var(--sky); margin-bottom: 10px; }
.kicker--gold { color: var(--gold-2); }
.eyebrow { font-size: max(12px, calc(15px * var(--fs, 1))); font-weight: 700; color: var(--blue); }
.tag { display: inline-block; padding: 3px 11px; border-radius: 999px; background: var(--blue-soft); color: var(--navy-2); font-size: max(12px, calc(13.5px * var(--fs, 1))); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips > * { padding: 5px 13px; border-radius: 999px; background: var(--blue-soft); color: var(--navy-2); font-size: max(12px, calc(14.5px * var(--fs, 1))); font-weight: 600; }

.ico { display: inline-grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 16px; background: var(--blue-soft); color: var(--blue); }
.ico svg { width: 26px; height: 26px; }

.section { padding: 96px 0; }
.section--soft { background: var(--soft); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.section__head h2, .h2 { font-size: max(12px, calc(38px * var(--fs, 1))); }
.section__head p:not(.kicker) { color: var(--muted); margin-top: 10px; font-size: max(12px, calc(18px * var(--fs, 1))); }
.h3 { font-size: max(12px, calc(22px * var(--fs, 1))); margin-bottom: 14px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.card--soft { background: var(--soft); box-shadow: none; }
.card h3 { font-size: max(12px, calc(20px * var(--fs, 1))); margin-bottom: 10px; }
.card > .ico { margin-bottom: 18px; }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }

.note { border-radius: 14px; padding: 18px 22px; font-size: max(12px, calc(16px * var(--fs, 1))); line-height: 1.7; background: var(--soft); border: 1px solid var(--line); }
.note--warn { background: var(--warn-soft); border-color: #F1D69A; color: #5C3A00; }
.note--danger { background: var(--danger-soft); border-color: #F2C4BE; color: #7A1A12; }
.note strong { color: inherit; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow-sm); }
.steps li::before { content: counter(step, decimal-leading-zero); font-size: max(12px, calc(15px * var(--fs, 1))); font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--grad); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 10px; }
.steps strong { font-size: max(12px, calc(18px * var(--fs, 1))); color: var(--ink); }
.steps span { font-size: max(12px, calc(15.5px * var(--fs, 1))); color: var(--muted); line-height: 1.6; }
.steps--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 26px 0; }
.steps--compact li { padding: 18px 18px 16px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; box-shadow: none; }
.steps--compact li::before { margin: 0; width: 34px; height: 34px; font-size: max(12px, calc(13px * var(--fs, 1))); border-radius: 10px; }
.steps--compact span { flex-basis: 100%; font-size: max(12px, calc(15px * var(--fs, 1))); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps, .steps--compact { grid-template-columns: minmax(0, 1fr); } }

/* 표 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; font-size: max(12px, calc(16px * var(--fs, 1))); }
.table th, .table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table thead th { background: var(--soft); font-size: max(12px, calc(14.5px * var(--fs, 1))); color: var(--muted); font-weight: 700; }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table tbody tr:hover { background: #FAFCFE; }
.table tbody th { font-weight: 700; color: var(--ink); }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .code { color: var(--muted); font-size: max(12px, calc(14px * var(--fs, 1))); white-space: nowrap; }
.table .lvl-ok { color: var(--ok); font-weight: 700; }
.table .lvl-warn { color: var(--warn); font-weight: 700; }
.table .lvl-bad { color: var(--danger); font-weight: 700; }
.table-src { margin-top: 10px; font-size: max(12px, calc(14px * var(--fs, 1))); color: var(--muted); }
@media (max-width: 640px) {
  .table { font-size: max(12px, calc(15px * var(--fs, 1))); }
  .table th, .table td { padding: 12px 14px; }
  .table .code { display: none; }
}

/* ── 페이지 머리 · 목차 ────────────────────── */
.page-head { position: relative; background: var(--soft); border-bottom: 1px solid var(--line); padding: 52px 0 46px; }
.page-head h1 { font-size: max(12px, calc(44px * var(--fs, 1))); margin-top: 10px; }
.page-head .lead { margin-top: 14px; font-size: max(12px, calc(19px * var(--fs, 1))); color: var(--ink-2); max-width: 760px; }
/* 하위 페이지 머리: 컴팩트 배너 (왼쪽 남색 그라데이션 + 오른쪽 밝은 병원 사진) */
.ph-split { position: relative; overflow: hidden; padding: 30px 0 26px; border-bottom: 0;
  background: linear-gradient(100deg, #0B3563 0%, #0F4A85 45%, #1A6DB5 100%); color: #fff; }
.ph-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 44%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%); mask-image: linear-gradient(90deg, transparent 0%, #000 26%); }
.ph-photo img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.1) saturate(1.08) contrast(1.02); }
.ph-split .page-head__in { position: relative; z-index: 1; }
.ph-split .page-head__in > * { max-width: 58%; }
.ph-split .crumbs, .ph-split .crumbs a { color: rgba(255, 255, 255, .7); font-size: max(12px, calc(13px * var(--fs, 1))); }
.ph-split .crumbs a:hover { color: #fff; }
.ph-eyebrow { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: #9CC7EA; }
.ph-eyebrow::before { content: ""; width: 24px; height: 1.5px; background: currentColor; }
.ph-split h1 { margin-top: 6px; font-size: max(12px, calc(34px * var(--fs, 1))); font-weight: 700; letter-spacing: -.03em; color: #fff; }
.ph-split .lead { margin-top: 8px; font-size: max(12px, calc(15.5px * var(--fs, 1))); line-height: 1.65; color: rgba(255, 255, 255, .85); }
.ph-facts { display: flex; flex-wrap: wrap; margin-top: 18px; list-style: none; }
.ph-facts li { display: flex; flex-direction: column; gap: 1px; padding: 2px 22px 2px 0; margin-right: 22px; border-right: 1px solid rgba(255, 255, 255, .22); }
.ph-facts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.ph-facts strong { font-size: max(12px, calc(18px * var(--fs, 1))); font-weight: 700; color: #fff; letter-spacing: -.02em; }
.ph-facts span { font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.ph-split:not(:has(.ph-facts)) { padding-bottom: 34px; }
@media (max-width: 760px) {
  .ph-split { padding: 0 0 22px; }
  .ph-photo { position: relative; width: 100%; height: 130px; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .ph-split .page-head__in { margin-top: -18px; }
  .ph-split .page-head__in > * { max-width: none; }
  .ph-split h1 { font-size: max(12px, calc(27px * var(--fs, 1))); }
  .ph-split .lead { font-size: max(12px, calc(14.5px * var(--fs, 1))); }
  .ph-facts { margin-top: 14px; gap: 8px 0; }
  .ph-facts li { padding-right: 14px; margin-right: 14px; }
  .ph-facts strong { font-size: max(12px, calc(15.5px * var(--fs, 1))); }
  .ph-facts span { font-size: 11.5px; }
}
.page-head--article h1 { font-size: max(12px, calc(36px * var(--fs, 1))); line-height: 1.4; margin-top: 6px; }
.page-head--article .eyebrow { margin-top: 16px; }
.crumbs { font-size: max(12px, calc(14.5px * var(--fs, 1))); color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.subnav ul { display: flex; gap: 6px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 16px 16px; white-space: nowrap; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--navy); }
.subnav a.is-active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 700; }
.subnav a.subnav__out { color: var(--blue); }
@media (max-width: 640px) {
  .page-head { padding: 32px 0 30px; }
  .page-head h1 { font-size: max(12px, calc(32px * var(--fs, 1))); }
  .page-head--article h1 { font-size: max(12px, calc(27px * var(--fs, 1))); }
  .page-head .lead { font-size: max(12px, calc(17px * var(--fs, 1))); }
  .subnav a { padding: 13px 12px; font-size: max(12px, calc(16px * var(--fs, 1))); }
}

.block { padding: 76px 0; }
.block + .block:not(.block--soft) { border-top: 1px solid var(--line-2); }
.block--soft { background: var(--soft); }
.block > .wrap > h2, .block__title { font-size: max(12px, calc(32px * var(--fs, 1))); margin-bottom: 14px; }
.block__lead { color: var(--ink-2); margin-bottom: 32px; max-width: 800px; font-size: max(12px, calc(18px * var(--fs, 1))); }
.block h3 { font-size: max(12px, calc(21px * var(--fs, 1))); margin: 36px 0 16px; }
.block .card h3 { font-size: max(12px, calc(20px * var(--fs, 1))); margin: 0 0 10px; }
@media (max-width: 640px) {
  .block { padding: 52px 0; }
  .block > .wrap > h2, .block__title { font-size: max(12px, calc(26px * var(--fs, 1))); }
  .block__lead { font-size: max(12px, calc(17px * var(--fs, 1))); }
  .section { padding: 60px 0; }
  .section__head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .section__head h2, .h2 { font-size: max(12px, calc(28px * var(--fs, 1))); }
  .section__head p:not(.kicker) { font-size: max(12px, calc(16.5px * var(--fs, 1))); }
}

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 960px) { .split, .split--even { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

.doctor { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: center; }
.doctor__photo { width: 100%; max-width: 240px; aspect-ratio: 221 / 267; object-fit: cover; object-position: top; border-radius: 18px; border: 6px solid #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow); background: #fff; }
.doctor__quote { font-size: max(12px, calc(28px * var(--fs, 1))); font-weight: 800; line-height: 1.45; letter-spacing: -0.03em; color: var(--navy); margin: 4px 0 18px; }
.doctor__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; list-style: none; margin: 22px 0 28px; font-size: max(12px, calc(16px * var(--fs, 1))); }
.doctor__meta li { padding-left: 18px; position: relative; }
.doctor__meta li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
@media (max-width: 760px) {
  .doctor { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .doctor__photo { max-width: 240px; }
  .doctor__quote { font-size: max(12px, calc(22px * var(--fs, 1))); }
  .doctor__meta { grid-template-columns: minmax(0, 1fr); }
}

/* 목록 */
.line-list { list-style: none; border-top: 2px solid var(--navy); }
.line-list a { display: flex; justify-content: space-between; gap: 16px; padding: 15px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.line-list a:hover { color: var(--blue); }
.line-list__meta { color: var(--muted); font-size: max(12px, calc(15px * var(--fs, 1))); white-space: nowrap; }

.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; }
.post { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 30px 28px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; overflow: hidden; }
.post::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--grad); opacity: .85; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.post__cat { align-self: flex-start; padding: 3px 11px; border-radius: 999px; background: var(--blue-soft); font-size: max(12px, calc(13.5px * var(--fs, 1))); font-weight: 700; color: var(--blue); }
.post__title { font-size: max(12px, calc(19.5px * var(--fs, 1))); font-weight: 800; line-height: 1.45; color: var(--navy); letter-spacing: -0.03em; }
.post__sum { font-size: max(12px, calc(15.5px * var(--fs, 1))); color: var(--muted); line-height: 1.65; }
.post__meta { margin-top: auto; padding-top: 8px; font-size: max(12px, calc(14px * var(--fs, 1))); color: var(--muted); }
@media (max-width: 960px) { .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .post-list { grid-template-columns: minmax(0, 1fr); } .post { padding: 24px 22px 20px; } }

/* 사진 */
.gallery { display: grid; gap: 14px; list-style: none; }
.gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery li { display: flex; flex-direction: column; gap: 8px; }
.thumb { display: block; border-radius: 14px; overflow: hidden; background: var(--line-2); aspect-ratio: 4 / 3; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.thumb:hover img { transform: scale(1.04); }
.thumb__cap { font-size: max(12px, calc(15px * var(--fs, 1))); font-weight: 600; color: var(--ink-2); }
.more-wrap { text-align: center; margin-top: 24px; }
@media (max-width: 760px) { .gallery--3, .gallery--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 강의 · 좌장 */
.lectures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; }
.lectures--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lecture { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.lecture:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lecture .thumb { border-radius: 0; position: relative; aspect-ratio: 4 / 3; }
.lecture__play { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; border-radius: 999px; background: rgba(11, 53, 99, .88); color: #fff; font-size: max(12px, calc(13px * var(--fs, 1))); font-weight: 700; }
.lecture__play::before { content: ""; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #fff; }
.lecture__body { padding: 15px 18px 18px; display: flex; flex-direction: column; gap: 2px; }
.lecture__title { font-weight: 700; line-height: 1.45; color: var(--navy); }
.lecture__meta { font-size: max(12px, calc(14.5px * var(--fs, 1))); color: var(--muted); }
@media (max-width: 960px) { .lectures, .lectures--home { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .lectures { grid-template-columns: minmax(0, 1fr); } .lectures--home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .lectures--home .lecture__body { padding: 10px 12px 12px; font-size: max(12px, calc(15px * var(--fs, 1))); } }

/* 스캔 문서 */
.doc-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.doc-card blockquote { position: relative; margin: 24px 0 0; padding: 26px 28px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: max(12px, calc(19px * var(--fs, 1))); font-weight: 600; line-height: 1.7; color: var(--navy); }
.doc-card blockquote::before { content: "“"; position: absolute; left: 18px; top: -18px; font-size: max(12px, calc(72px * var(--fs, 1))); line-height: 1; color: var(--sky); font-family: Georgia, serif; }
.doc-card cite { display: block; margin-top: 10px; font-style: normal; font-weight: 400; font-size: max(12px, calc(14.5px * var(--fs, 1))); color: var(--muted); }
@media (max-width: 860px) { .doc-card { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.faq + .faq { margin-top: 12px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 20px 22px; font-size: max(12px, calc(18px * var(--fs, 1))); font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--grad); color: #fff; font-size: max(12px, calc(15px * var(--fs, 1))); font-weight: 800; }
.faq summary::after { content: ""; margin-left: auto; flex-shrink: 0; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(-135deg); }
.faq[open] summary { color: var(--blue); }
.faq__a { padding: 0 22px 22px 68px; color: var(--ink-2); }
@media (max-width: 640px) { .faq summary { font-size: max(12px, calc(17px * var(--fs, 1))); padding: 16px; } .faq__a { padding: 0 16px 18px 16px; } }

/* 진료시간 표 */
.hours { list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 4px 24px; box-shadow: var(--shadow-sm); }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line-2); font-size: max(12px, calc(17.5px * var(--fs, 1))); }
.hours li:last-child { border-bottom: 0; }
.hours b { color: var(--navy); font-variant-numeric: tabular-nums; }
.hours .off b { color: var(--danger); }
.hours small { display: block; font-size: max(12px, calc(14px * var(--fs, 1))); color: var(--muted); font-weight: 400; }

.map-img { display: block; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #F0F4F0; box-shadow: var(--shadow); }
.map-img img { width: 100%; }
.addr-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.addr-list li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
.addr-list b { color: var(--blue); font-size: max(12px, calc(15.5px * var(--fs, 1))); }

/* 공지 */
.notice-list { display: flex; flex-direction: column; gap: 16px; }
.notice__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.notice__head h2 { font-size: max(12px, calc(21px * var(--fs, 1))); }
.notice__date { margin-left: auto; font-size: max(12px, calc(14.5px * var(--fs, 1))); color: var(--muted); }
.notice:target { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }

/* 건강보험 고시 변경 */
.hira-updated { font-size: max(12px, calc(15px * var(--fs, 1))); color: var(--muted); margin: -16px 0 18px; }
.hira-updated b { color: var(--navy); }
.hira-list { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.hira-list li + li { border-top: 1px solid var(--line-2); }
.hira-list a { display: flex; flex-direction: column; gap: 4px; padding: 16px 22px; color: var(--ink); text-decoration: none; }
.hira-list a:hover { background: var(--soft); color: var(--ink); }
.hira-list a:hover .hira-list__title { color: var(--blue); text-decoration: underline; }
.hira-list__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: max(12px, calc(14.5px * var(--fs, 1))); color: var(--muted); }
.hira-list__title { font-weight: 700; line-height: 1.5; color: var(--navy); }
.hira-empty { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); }

/* 본문(글) */
.prose { font-size: max(12px, calc(17.5px * var(--fs, 1))); line-height: 1.9; color: var(--ink-2); }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: max(12px, calc(26px * var(--fs, 1))); margin-top: 48px; color: var(--navy); padding-left: 14px; border-left: 4px solid var(--sky); line-height: 1.35; }
.prose h3 { font-size: max(12px, calc(20px * var(--fs, 1))); margin-top: 32px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); }
.prose .note, .prose .table-wrap { margin-top: 20px; }
.prose .summary { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.prose .summary p { font-weight: 800; color: var(--blue); font-size: max(12px, calc(14px * var(--fs, 1))); letter-spacing: .08em; margin-bottom: 8px; }
.prose .summary ul { margin: 0; }
.prose .tip { background: var(--grad); color: #DCE8F4; border-radius: var(--radius); padding: 24px 28px; }
.prose .tip strong { display: block; color: #fff; margin-bottom: 6px; }
.checks { list-style: none; padding: 0 !important; }
.checks li { position: relative; padding-left: 30px; }
.checks li + li { margin-top: 6px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 12px; height: 7px; border-left: 3px solid var(--sky); border-bottom: 3px solid var(--sky); transform: rotate(-45deg); }
.article { padding: 44px 0 8px; }
.article > h2:first-child { margin-top: 0; }
@media (max-width: 640px) { .prose { font-size: max(12px, calc(17px * var(--fs, 1))); } .prose h2 { font-size: max(12px, calc(22px * var(--fs, 1))); } }

.disclaimer { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: max(12px, calc(14.5px * var(--fs, 1))); color: var(--muted); }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 600; line-height: 1.5; }
.pager a:hover { border-color: var(--sky); box-shadow: var(--shadow-sm); }
.pager small { color: var(--blue); font-weight: 700; font-size: max(12px, calc(13.5px * var(--fs, 1))); }
.pager__next { text-align: right; }
@media (max-width: 560px) { .pager { grid-template-columns: minmax(0, 1fr); } .pager__next { text-align: left; } }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; padding: 32px 36px; border-radius: var(--radius-lg); background: var(--grad); color: #DCE8F4; box-shadow: var(--shadow); }
.cta-band strong { display: block; color: #fff; font-size: max(12px, calc(20px * var(--fs, 1))); margin-bottom: 4px; }
.cta-band span { font-size: max(12px, calc(15.5px * var(--fs, 1))); }
.cta-band .btn--primary { background: #fff; color: var(--navy); flex-shrink: 0; box-shadow: none; }
.cta-band .btn--primary:hover { background: var(--blue-soft); color: var(--navy); }
@media (max-width: 640px) { .cta-band { flex-direction: column; align-items: stretch; padding: 24px; } }
.related { margin: 56px 0 72px; }
.related h2 { font-size: max(12px, calc(22px * var(--fs, 1))); margin-bottom: 18px; }
.related .post-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.related .post { padding: 22px 20px 18px; }
.related .post__title { font-size: max(12px, calc(17px * var(--fs, 1))); }
.related .post__sum { display: none; }
@media (max-width: 760px) { .related .post-list { grid-template-columns: minmax(0, 1fr); } }

.byline { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: max(12px, calc(15.5px * var(--fs, 1))); line-height: 1.55; }
.byline img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.byline__date { color: var(--muted); font-size: max(12px, calc(14.5px * var(--fs, 1))); }

/* ── 바닥글 ────────────────────────────────── */
.footer { background: #082848; color: #B9CDE2; font-size: max(12px, calc(15px * var(--fs, 1))); line-height: 1.8; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #fff; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); gap: 48px; padding: 64px 24px 40px; }
.footer__name { display: flex; align-items: center; gap: 10px; font-size: max(12px, calc(20px * var(--fs, 1))); font-weight: 800; color: #fff; margin-bottom: 10px; letter-spacing: -0.03em; }
.footer__name img { width: 36px; height: 36px; }
.footer__info p + p { margin-top: 8px; }
.footer__nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; list-style: none; }
.footer__label { font-weight: 700; color: #fff; margin-bottom: 6px; }
.footer__related ul { list-style: none; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 24px 30px; font-size: max(12px, calc(13.5px * var(--fs, 1))); color: #8EA9C6; }
@media (max-width: 960px) { .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 44px 20px 28px; } }

/* 휴대폰 하단 고정 버튼 */
.actionbar { display: none; }
@media (max-width: 960px) {
  body { padding-bottom: 78px; }
  .actionbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11, 53, 99, .08); backdrop-filter: blur(8px); }
  .actionbar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; border-radius: 999px; font-size: max(12px, calc(17px * var(--fs, 1))); font-weight: 700; text-decoration: none; }
  .actionbar__call { background: var(--grad); color: #fff; }
  .actionbar__call:hover { color: #fff; }
  .actionbar__map { border: 1px solid #C6D7E8; color: var(--navy); background: #fff; }
}
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ── 사진 크게 보기 ────────────────────────── */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6, 18, 32, .94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 64px 72px 32px; }
.lightbox__stage { position: relative; display: flex; align-items: center; justify-content: center; max-width: 100%; max-height: calc(100% - 48px); }
.lightbox__img, .lightbox__video { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 10px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); background: #000; }
.lightbox__play { position: absolute; inset: 0; margin: auto; width: 80px; height: 80px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .9); background: rgba(11, 53, 99, .85); }
.lightbox__play::before { content: ""; position: absolute; left: 31px; top: 23px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.lightbox__cap { color: #DCE8F0; font-size: max(12px, calc(16px * var(--fs, 1))); text-align: center; }
.lightbox__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: max(12px, calc(34px * var(--fs, 1))); line-height: 1; display: grid; place-items: center; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .28); }
.lightbox__close { top: 14px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox { padding: 64px 8px 24px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
  .lightbox__img, .lightbox__video { max-height: calc(100vh - 200px); }
}
body.no-scroll { overflow: hidden; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
@media print {
  .topbar, .header, .subnav, .actionbar, .footer__nav, .footer__related, .lightbox { display: none !important; }
  body { padding: 0; font-size: 12pt; }
}

/* ═════════ 첫 화면 (포털형 3단 · 기존 dmlife.com 배치) ═════════ */
.portal-bg { background: #EEF3F8; padding: 22px 0 40px; }
.portal { display: grid; grid-template-columns: minmax(0, 370px) minmax(0, 1fr) 256px; grid-template-areas: "hero hero side" "left center side"; gap: 16px; align-items: start; }
.p-hero { grid-area: hero; position: relative; border-radius: 14px; overflow: hidden; background: var(--navy); box-shadow: 0 6px 20px rgba(15, 61, 110, .16); min-height: 400px; }
.p-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 53, 99, .05) 30%, rgba(11, 53, 99, .82) 100%); }
.p-hero__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 26px 30px 28px; color: #fff; }
.p-hero__badge { display: inline-block; padding: 5px 13px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); font-size: max(12px, calc(14px * var(--fs, 1))); margin-bottom: 12px; backdrop-filter: blur(4px); }
.p-hero__badge b { color: var(--gold-2); }
.p-hero h2 { color: #fff; font-size: max(12px, calc(27px * var(--fs, 1))); line-height: 1.45; letter-spacing: -0.035em; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.p-hero__text > p:not(.p-hero__badge) { margin: 8px 0 16px; font-size: max(12px, calc(15.5px * var(--fs, 1))); color: rgba(255, 255, 255, .88); }
.p-hero__tel { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 10px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); color: #fff; text-decoration: none; font-size: max(12px, calc(24px * var(--fs, 1))); font-weight: 800; letter-spacing: .02em; backdrop-filter: blur(6px); }
.p-hero__tel small { font-size: max(12px, calc(13px * var(--fs, 1))); font-weight: 600; color: rgba(255, 255, 255, .8); letter-spacing: 0; }
.p-hero__tel:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.p-side { grid-area: side; display: flex; flex-direction: column; gap: 14px; }
.p-center { grid-area: center; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.p-left { grid-area: left; display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.box { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(15, 61, 110, .05); }
.box__head { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 18px; background: #F7FAFD; border-bottom: 1px solid var(--line); }
.box__title { position: relative; padding-left: 12px; font-size: max(12px, calc(17px * var(--fs, 1))); font-weight: 800; color: var(--navy); }
.box__title::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 17px; margin-top: -8.5px; border-radius: 2px; background: var(--blue); }
.box__sub { font-size: max(12px, calc(13.5px * var(--fs, 1))); color: var(--muted); }
.box__more, .tabs__more { margin-left: auto; font-size: max(12px, calc(14px * var(--fs, 1))); color: var(--muted); text-decoration: none; white-space: nowrap; }
.box__more:hover, .tabs__more:hover { color: var(--blue); }
.box__head .today { margin-left: auto; font-size: 12px; padding: 1px 9px; white-space: nowrap; }
.box__head--navy { background: var(--blue); border-bottom: 0; }
.box__head--navy .box__title { color: #fff; letter-spacing: .06em; font-size: max(12px, calc(15px * var(--fs, 1))); padding-left: 0; }
.box__head--navy .box__title::before { display: none; }
.box__body { padding: 16px 18px; }
.box__body--tight { padding: 12px; }
.box__body--flush { padding: 0; }
.box__note { margin-top: 12px; font-size: max(12px, calc(14px * var(--fs, 1))); color: var(--muted); }
.box__empty { padding: 18px; color: var(--muted); font-size: max(12px, calc(15px * var(--fs, 1))); }

/* 탭 게시판 */
.tabs__list { display: flex; align-items: stretch; min-height: 50px; padding: 0 12px; background: #F7FAFD; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__list [role="tab"] { padding: 0 14px; border: 0; background: none; font-size: max(12px, calc(16px * var(--fs, 1))); font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs__list [role="tab"][aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.tabs__more { align-self: center; padding-left: 10px; }
.board { list-style: none; padding: 6px 0; }
.board a { display: flex; align-items: center; gap: 12px; padding: 9px 18px; color: var(--ink); text-decoration: none; font-size: max(12px, calc(15.5px * var(--fs, 1))); }
.board a:hover { background: #F7FAFD; color: var(--blue); }
.board__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board__tag { display: inline-block; margin-right: 8px; padding: 1px 7px; border-radius: 4px; background: var(--blue-soft); color: var(--blue); font-size: 12.5px; font-weight: 700; vertical-align: 1px; }
.board__tag--notice { background: #FFF1DC; color: #9A5B00; }
.board__tag--guide { background: #E5F4EA; color: var(--ok); }
.board__date { flex-shrink: 0; font-size: max(12px, calc(13.5px * var(--fs, 1))); color: #8A99A8; }
.board__foot { padding: 4px 18px 14px; font-size: max(12px, calc(13.5px * var(--fs, 1))); color: var(--muted); }

.icon-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; border-top: 1px solid var(--line); }
.icon-links li + li { border-left: 1px solid var(--line); }
.icon-links a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px; color: var(--ink-2); text-decoration: none; font-size: max(12px, calc(15px * var(--fs, 1))); font-weight: 600; }
.icon-links a:hover { background: #F7FAFD; color: var(--blue); }
.icon-links .ico { width: 46px; height: 46px; border-radius: 50%; }

.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; }
.svc-grid li { border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.svc-grid li:nth-child(3n) { border-right: 0; }
.svc-grid li:nth-last-child(-n+3) { border-bottom: 0; }
.svc-grid a { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 16px 16px 15px; color: var(--ink); text-decoration: none; }
.svc-grid a:hover { background: #F7FAFD; }
.svc-grid .ico { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 6px; }
.svc-grid .ico svg { width: 21px; height: 21px; }
.svc-grid strong { font-size: max(12px, calc(16.5px * var(--fs, 1))); color: var(--navy); }
.svc-grid span:not(.ico) { font-size: max(12px, calc(13.5px * var(--fs, 1))); color: var(--muted); line-height: 1.5; }
.svc-grid em { align-self: flex-start; margin-top: 6px; padding: 1px 8px; border-radius: 4px; background: var(--blue-soft); color: var(--blue); font-size: 12.5px; font-style: normal; font-weight: 700; }

.steps--box { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.steps--box li { padding: 14px 12px; box-shadow: none; background: #F7FAFD; text-align: center; align-items: center; }
.steps--box li::before { width: 30px; height: 30px; font-size: 12px; border-radius: 50%; margin-bottom: 4px; }
.steps--box strong { font-size: max(12px, calc(15.5px * var(--fs, 1))); }
.steps--box span { font-size: max(12px, calc(13.5px * var(--fs, 1))); }

.faq--mini { border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line-2); }
.faq--mini + .faq--mini { margin-top: 0; }
.faq--mini:last-child { border-bottom: 0; }
.faq--mini summary { font-size: max(12px, calc(15.5px * var(--fs, 1))); padding: 13px 18px; gap: 10px; }
.faq--mini summary::before { width: 22px; height: 22px; font-size: 12px; border-radius: 50%; }
.faq--mini .faq__a { padding: 10px 18px 14px 50px; font-size: max(12px, calc(15px * var(--fs, 1))); background: #F7FAFD; }

.resv { padding: 18px; background: linear-gradient(135deg, #0F3D6E, #1A6DB5); color: #fff; }
.resv__title { font-size: max(12px, calc(14px * var(--fs, 1))); font-weight: 700; color: rgba(255, 255, 255, .8); margin-bottom: 8px; }
.resv__btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 8px; border-radius: 10px; background: #fff; color: var(--navy); font-size: max(12px, calc(19px * var(--fs, 1))); font-weight: 800; text-decoration: none; }
.resv__btn:hover { color: var(--blue); }
.resv__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.resv__row a { padding: 8px 4px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .35); color: #fff; text-align: center; font-size: max(12px, calc(14.5px * var(--fs, 1))); font-weight: 600; text-decoration: none; }
.resv__row a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.mini-hours { list-style: none; padding: 8px 18px 0; }
.mini-hours li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: max(12px, calc(15px * var(--fs, 1))); }
.mini-hours li:last-child { border-bottom: 0; }
.mini-hours b { color: var(--blue); }
.mini-hours .off b { color: var(--danger); }
.mini-hours__note { padding: 4px 18px 14px; font-size: max(12px, calc(13.5px * var(--fs, 1))); color: var(--muted); }
.quickmenu { list-style: none; }
.quickmenu a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); text-decoration: none; font-size: max(12px, calc(15.5px * var(--fs, 1))); font-weight: 600; transition: padding .15s; }
.quickmenu li:last-child a { border-bottom: 0; }
.quickmenu a:hover { color: var(--blue); background: #F7FAFD; padding-left: 20px; }
.quickmenu .ico { width: 30px; height: 30px; border-radius: 8px; }
.quickmenu .ico svg { width: 17px; height: 17px; }

.doc-mini { display: flex; gap: 14px; align-items: flex-start; }
.doc-mini > img { width: 92px; height: 112px; object-fit: cover; object-position: top; border-radius: 10px; border: 2px solid var(--line); flex-shrink: 0; }
.doc-mini__name { font-size: max(12px, calc(18px * var(--fs, 1))); font-weight: 800; color: var(--navy); }
.doc-mini__name small { display: block; font-size: max(12px, calc(13px * var(--fs, 1))); font-weight: 600; color: var(--blue); }
.doc-mini__text { margin: 8px 0 10px; font-size: max(12px, calc(14.5px * var(--fs, 1))); line-height: 1.7; color: var(--ink-2); }
.chips--sm > * { font-size: 12.5px; padding: 2px 9px; }
.p-left .gallery--3 { gap: 6px; }
.p-left .thumb { border-radius: 8px; }
.press-mini { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.press-mini img { width: 64px; height: 80px; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--line); flex-shrink: 0; }
.press-mini small { display: block; font-size: 12.5px; color: var(--blue); font-weight: 700; }
.press-mini strong { font-size: max(12px, calc(15px * var(--fs, 1))); line-height: 1.45; }
.press-mini:hover strong { color: var(--blue); }
.lectures--mini { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.lectures--mini .lecture { box-shadow: none; border-radius: 8px; }
.lectures--mini .lecture__body { padding: 7px 9px 9px; }
.lectures--mini .lecture__title { font-size: max(12px, calc(13.5px * var(--fs, 1))); }
.lectures--mini .lecture__meta { display: none; }

@media (max-width: 1100px) {
  .portal { grid-template-columns: minmax(0, 330px) minmax(0, 1fr) 230px; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid li:nth-child(3n) { border-right: 1px solid var(--line-2); }
  .svc-grid li:nth-child(2n) { border-right: 0; }
  .svc-grid li:nth-last-child(-n+3) { border-bottom: 1px solid var(--line-2); }
  .svc-grid li:last-child { border-bottom: 0; }
  .steps--box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .portal-bg { padding: 12px 0 28px; }
  .portal { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "side" "center" "left"; gap: 12px; }
  .p-hero { min-height: 340px; }
  .p-hero h2 { font-size: max(12px, calc(21px * var(--fs, 1))); }
  .p-side { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .p-side .box--quick { display: none; }
  .p-hero__tel { font-size: max(12px, calc(21px * var(--fs, 1))); }
}
@media (max-width: 600px) {
  .p-hero { min-height: 320px; border-radius: 12px; }
  .p-hero__text { padding: 18px 18px 20px; }
  .p-hero h2 { font-size: max(12px, calc(18.5px * var(--fs, 1))); }
  .p-hero__text > p:not(.p-hero__badge) { font-size: max(12px, calc(13.5px * var(--fs, 1))); }
  .p-hero__badge { font-size: 12.5px; }
  .p-side { grid-template-columns: minmax(0, 1fr); }
  .svc-grid a { padding: 13px 12px; }
  .board a { padding: 10px 14px; font-size: max(12px, calc(15px * var(--fs, 1))); }
  .icon-links a { font-size: max(12px, calc(13.5px * var(--fs, 1))); }
  .icon-links .ico { width: 40px; height: 40px; }
}

/* ═════════ 공유 · 채널 (입소문 장치) ═════════ */
.share-wrap { padding-bottom: 56px; }
.share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 36px; padding: 20px 24px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); }
.share__label { font-weight: 800; color: var(--navy); }
.share__label span { display: block; font-size: max(12px, calc(14px * var(--fs, 1))); font-weight: 400; color: var(--muted); }
.share__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: max(12px, calc(15px * var(--fs, 1))); font-weight: 700; text-decoration: none; }
.share__btn:hover { border-color: var(--sky); color: var(--blue); }
.share__btn--main { background: var(--grad); color: #fff; border-color: transparent; }
.share__btn--main:hover { color: #fff; }
.share__btn--band { color: #0E8A3F; }
.share__btn--naver { color: #03A94D; }
.share__btn--fb { color: #1877F2; }
.share__done { flex-basis: 100%; font-size: max(12px, calc(14px * var(--fs, 1))); color: var(--ok); }
.share__done:empty { display: none; }
.kakao-cta { display: block; margin-top: 16px; padding: 18px 22px; border-radius: var(--radius); background: #FEE500; color: #191600; text-decoration: none; }
.kakao-cta strong { display: block; font-size: max(12px, calc(17px * var(--fs, 1))); }
.kakao-cta span { font-size: max(12px, calc(14.5px * var(--fs, 1))); }
.kakao-cta:hover { color: #191600; filter: brightness(.97); }

.channels { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.channel { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.channel:hover { border-color: var(--sky); color: var(--ink); background: #F7FAFD; }
.channel strong { display: block; font-size: max(12px, calc(15px * var(--fs, 1))); }
.channel small { font-size: 12.5px; color: var(--muted); }
.channel__dot { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; background: var(--blue); }
.channel--naverPlace .channel__dot, .channel--naverBlog .channel__dot { background: #03C75A; }
.channel--youtube .channel__dot { background: #FF0000; }
.channel--kakao .channel__dot { background: #FEE500; }
.channel--instagram .channel__dot { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }
.footer__channels { list-style: none; }
.footer__channels .channel { border: 0; padding: 3px 0; color: #fff; }
.footer__channels .channel:hover { background: none; text-decoration: underline; }
.footer__channels .channel small { display: none; }
.footer__channels .channel__dot { width: 10px; height: 10px; border-radius: 50%; }

.related-sites { background: #F0F4F8; padding: 18px 0; border-top: 1px solid var(--line); }
.related-sites__in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.related-sites__label { font-weight: 800; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.related-sites__label small { font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.related-sites ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.related-sites a { display: inline-block; padding: 6px 14px; border-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: max(12px, calc(14.5px * var(--fs, 1))); font-weight: 600; text-decoration: none; }
.related-sites a:hover { color: var(--blue); border-color: var(--sky); }

.guide-links { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.guide-links a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; }
.guide-links a:hover { border-color: var(--sky); color: var(--blue); }
.guide-links .ico { width: 42px; height: 42px; border-radius: 12px; }
@media (max-width: 640px) { .guide-links { grid-template-columns: minmax(0, 1fr); } .share { padding: 18px; } }
.portal-share { padding-top: 0; } .portal-share .share { margin-top: 0; background: #fff; }
@media (max-width: 960px) { .p-hero__tel { display: none; } }

/* ═════════ 언론 · 학술 원문 (학술지 원문 소개 방식) ═════════ */
.pub { margin: 0; }
.pub__cover { position: relative; display: block; text-decoration: none; padding: 0 14px 14px 0; }
.pub__sheet { position: relative; z-index: 2; display: block; aspect-ratio: var(--ar, .707); overflow: hidden; background: #fff; border: 1px solid #DDE3EA; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 18px 40px -18px rgba(16, 24, 40, .28); transition: box-shadow .3s, transform .3s; }
.pub__sheet img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* 여러 쪽짜리는 뒤에 종이가 겹친 표현 */
.pub--stack .pub__cover::before, .pub--stack .pub__cover::after { content: ""; position: absolute; border: 1px solid #DDE3EA; border-radius: 3px; background: #fff; }
.pub--stack .pub__cover::before { z-index: 1; inset: 7px 7px 7px 7px; transform: translate(0, 0); box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.pub--stack .pub__cover::after { z-index: 0; inset: 14px 0 0 14px; background: #FAFBFC; }
.pub--stack .pub__sheet { margin: 0; }
/* 잡지 펼침면: 가운데 접힌 자국 */
.pub--interview .pub__cover { padding: 0; }
.pub--interview .pub__sheet::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 36px; margin-left: -18px; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .07) 46%, rgba(0, 0, 0, .14) 50%, rgba(0, 0, 0, .07) 54%, rgba(0, 0, 0, 0) 100%); }
.pub__badge { position: absolute; z-index: 3; left: 12px; top: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(15, 32, 52, .78); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.pub__zoom { position: absolute; z-index: 3; left: 50%; bottom: 30px; transform: translate(-50%, 6px); opacity: 0; padding: 7px 16px; border-radius: 999px; background: var(--navy); color: #fff; font-size: max(12px, calc(14px * var(--fs, 1))); font-weight: 700; white-space: nowrap; transition: opacity .2s, transform .2s; }
.pub--interview .pub__zoom { bottom: 16px; }
.pub__cover:hover .pub__sheet, .pub__cover:focus-visible .pub__sheet { box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 24px 48px -18px rgba(16, 24, 40, .34); }
.pub__cover:hover .pub__zoom, .pub__cover:focus-visible .pub__zoom { opacity: 1; transform: translate(-50%, 0); }

.pub__pages { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pub__pages-label { flex-shrink: 0; font-size: max(12px, calc(13.5px * var(--fs, 1))); font-weight: 700; color: var(--muted); }
.pub__pages ul { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }
.pub__pages a { display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.pub__pages img { width: 72px; aspect-ratio: var(--ar, .707); object-fit: cover; object-position: top; background: #fff; border: 1px solid #DDE3EA; border-radius: 2px; box-shadow: 0 4px 10px -4px rgba(16, 24, 40, .22); transition: transform .2s, border-color .2s; }
.pub--interview .pub__pages img { width: 128px; }
.pub__pages a:hover img { transform: translateY(-2px); border-color: var(--sky); }
.pub__pages a:hover { color: var(--blue); }
.pub--expert { max-width: 420px; margin-left: auto; margin-right: auto; }

/* 서지 정보 */
.biblio { margin: 22px 0 0; border-top: 2px solid var(--navy); }
.biblio > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: max(12px, calc(15.5px * var(--fs, 1))); }
.biblio dt { font-weight: 700; color: var(--muted); font-size: max(12px, calc(14.5px * var(--fs, 1))); }
.biblio dd { margin: 0; color: var(--ink); }
.biblio em { font-style: italic; font-weight: 700; color: var(--navy); }
.biblio__act { margin-top: 20px; }
.doc-card blockquote { margin-top: 24px; }
@media (max-width: 640px) {
  .pub__pages { flex-direction: column; align-items: flex-start; }
  .pub__pages img { width: 64px; }
  .pub--interview .pub__pages img { width: 120px; }
  .biblio > div { grid-template-columns: 72px minmax(0, 1fr); font-size: max(12px, calc(15px * var(--fs, 1))); }
}

/* ═════════ 인증서 액자: 얇은 무광 프레임 + 흰 매트 ═════════
   크기는 글자 크기(em) 기준으로 비례 (큰 화면 16px · 첫 화면 작은 칸은 축소) */
.awards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3em 2.4em; list-style: none; font-size: max(12px, calc(16px * var(--fs, 1))); max-width: 980px; margin: 0 auto; }
.award { display: flex; flex-direction: column; align-items: center; text-align: center; }
.frame { position: relative; display: block; width: 100%; padding: .42em; border-radius: 2px; text-decoration: none;
  background: #1F2B3A;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 1px 2px rgba(16, 24, 40, .12), 0 22px 40px -22px rgba(16, 24, 40, .45);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; }
.frame__mat { display: block; padding: 1.5em; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04), inset 0 1px 3px rgba(0, 0, 0, .08); }
.frame__art { display: block; aspect-ratio: 1 / 1.45; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px #E6EAF0; }
.frame__art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.frame__zoom { position: absolute; left: 50%; bottom: 1.5em; transform: translate(-50%, .4em); opacity: 0; padding: .4em 1em; border-radius: 999px; background: rgba(15, 32, 52, .86); color: #fff; font-size: .8em; font-weight: 700; white-space: nowrap; transition: opacity .2s, transform .2s; }
.frame:hover, .frame:focus-visible { transform: translateY(-.25em); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 2px 4px rgba(16, 24, 40, .12), 0 30px 50px -24px rgba(16, 24, 40, .5); }
.frame:hover .frame__zoom, .frame:focus-visible .frame__zoom { opacity: 1; transform: translate(-50%, 0); }

.award__issuer { margin-top: 1.5em; font-size: .78em; font-weight: 700; letter-spacing: .08em; color: var(--sky); }
.award__title { margin-top: .3em; font-size: 1.08em; font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1.4; }
.award__meta { margin-top: .35em; font-size: .84em; color: var(--muted); line-height: 1.5; }

/* 첫 화면 작은 칸 */
.award-mini .awards { font-size: 6.4px; gap: 12px; }
.award-mini .frame__zoom, .award-mini .award__issuer, .award-mini .award__meta { display: none; }
.award-mini .award__title { margin-top: 10px; font-size: 12.5px; letter-spacing: -.03em; }

@media (max-width: 760px) { .awards { font-size: 11px; gap: 2.6em 1.4em; } .award__title { font-size: 1.3em; } .award__issuer { font-size: 1em; } .award__meta { font-size: 1.05em; } }
@media (max-width: 560px) {
  .awards { grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: 9.5px; }
  .awards .award:last-child { grid-column: 1 / -1; width: 50%; justify-self: center; }
  .award-mini .awards { grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: 7px; }
  .award-mini .awards .award:last-child { grid-column: auto; width: auto; }
  .award__meta { display: none; }
}

/* ═════════ 휴대폰 컴팩트 배치 (하위 페이지 전체) ═════════
   글자는 위 --fs 로 0.8배, 여기서는 사진 · 여백 · 상자 크기를 줄여 첫 화면과 비슷한 밀도로 맞춤 */
@media (max-width: 760px) {
  body { line-height: 1.7; }
  /* 머리말 */
  :root { --header-h: 56px; }
  .topbar__in { min-height: 56px; }
  .brand { gap: 9px; }
  .brand img { width: 32px; height: 32px; }
  .menu-btn { width: 42px; height: 42px; }
  .mainnav { top: 56px; }
  .mainnav__link { padding: 10px 4px 4px; }
  .mainnav__sub a { padding: 4px 11px; }
  .mainnav__cta { padding: 11px; }
  /* 페이지 머리: 사진 띠 낮게, 글 상자 촘촘히 */
  .page-head.ph-split { padding: 0 0 16px; }
  .ph-photo { height: 84px; }
  .ph-split .page-head__in { margin-top: -12px; }
  .ph-eyebrow { margin-top: 4px; letter-spacing: .16em; }
  .ph-eyebrow::before { width: 16px; }
  .ph-split h1, .page-head.ph-split h1 { margin-top: 2px; font-size: max(12px, calc(27px * var(--fs, 1))); }
  .ph-split .lead { margin-top: 4px; line-height: 1.6; }
  .ph-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; }
  .ph-facts li, .ph-facts li:last-child { padding: 0 8px; margin: 0; }
  .ph-facts li:first-child { padding-left: 0; }
  .ph-facts span { line-height: 1.4; }
  .page-head { padding: 22px 0 20px; }
  .page-head .lead { margin-top: 8px; }
  .subnav a { padding: 10px 10px; border-bottom-width: 2px; }
  /* 구획 · 상자 */
  .block { padding: 32px 0; }
  .block__lead { margin-bottom: 18px; }
  .block h3 { margin: 24px 0 10px; }
  .section { padding: 36px 0; }
  .section__head { margin-bottom: 18px; }
  .grid { gap: 10px; }
  .card { padding: 16px 16px 18px; border-radius: 12px; }
  .card > .ico { margin-bottom: 10px; }
  .ico { width: 38px; height: 38px; border-radius: 11px; }
  .ico svg { width: 20px; height: 20px; }
  .note { padding: 12px 14px; border-radius: 10px; }
  .chips { gap: 6px; }
  .chips > * { padding: 3px 10px; }
  .tag { padding: 2px 9px; }
  .btn { min-height: 44px; padding: 0 18px; gap: 6px; }
  .btn-row { gap: 8px; }
  .steps { gap: 8px; }
  .steps li { padding: 14px 14px 14px; border-radius: 12px; }
  .steps li::before { width: 30px; height: 30px; border-radius: 9px; margin-bottom: 4px; }
  .steps--compact { margin: 16px 0; }
  .steps--compact li { padding: 12px; }
  .steps--compact li::before { width: 28px; height: 28px; }
  .table-wrap { border-radius: 12px; }
  .table th, .table td { padding: 9px 10px; }
  .doctor { gap: 16px; }
  .doctor__photo { max-width: 170px; border-width: 4px; border-radius: 14px; }
  .doctor__meta { margin: 14px 0 18px; gap: 6px; }
  .line-list a { padding: 11px 2px; }
  .post-list { gap: 10px; }
  .post { padding: 16px 16px 14px; gap: 6px; border-radius: 14px; }
  .gallery { gap: 8px; }
  .thumb { border-radius: 10px; }
  .lectures { gap: 10px; }
  .lecture__body { padding: 10px 12px 12px; }
  .doc-card blockquote { padding: 18px 18px 16px; }
  .faq + .faq { margin-top: 8px; }
  .faq summary { padding: 12px 14px; gap: 10px; }
  .faq summary::before { width: 24px; height: 24px; border-radius: 7px; }
  .faq__a { padding: 0 14px 14px; }
  .hours { padding: 2px 16px; border-radius: 12px; }
  .hours li { padding: 10px 0; }
  .addr-list { gap: 10px; }
  .addr-list li { grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
  .notice-list { gap: 10px; }
  .notice__head { margin-bottom: 8px; gap: 6px 10px; }
  .hira-updated { margin: -8px 0 12px; }
  .hira-list a { padding: 12px 14px; gap: 2px; }
  /* 글(건강정보) */
  .article { padding: 26px 0 4px; }
  .prose > * + * { margin-top: 12px; }
  .prose h2 { margin-top: 32px; padding-left: 10px; border-left-width: 3px; }
  .prose h3 { margin-top: 22px; }
  .prose .summary, .prose .tip { padding: 16px 18px; border-radius: 12px; }
  .byline { margin-top: 14px; padding-top: 12px; gap: 10px; }
  .byline img { width: 40px; height: 40px; }
  .disclaimer { margin-top: 28px; padding-top: 14px; }
  .pager { margin-top: 18px; gap: 8px; }
  .pager a { padding: 12px 14px; }
  .cta-band { margin-top: 18px; padding: 18px; gap: 12px; border-radius: 14px; }
  .related { margin: 36px 0 44px; }
  .related h2 { margin-bottom: 12px; }
  .related .post { padding: 14px 14px 12px; }
  /* 공유 · 바닥글 · 하단 버튼 */
  .share-wrap { padding-bottom: 32px; }
  .share { margin-top: 24px; padding: 14px; gap: 10px; }
  .share__btn { min-height: 36px; padding: 0 12px; }
  .kakao-cta { padding: 14px 16px; }
  .related-sites { padding: 12px 0; }
  .related-sites__in { gap: 10px; }
  .related-sites ul { gap: 6px; }
  .related-sites a { padding: 4px 10px; }
  .footer { line-height: 1.7; }
  .footer__grid { gap: 18px; padding: 28px 16px 18px; }
  .footer__name img { width: 28px; height: 28px; }
  .footer__bottom { padding: 14px 16px 20px; }
  body { padding-bottom: 64px; }
  .actionbar { gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .actionbar a { height: 46px; }
  .biblio > div { padding: 8px 2px; }
  .pub__pages { margin-top: 12px; padding-top: 12px; }
}

/* 휴대폰: 목차를 탭처럼 — 고른 부분만 보이기 (site.js 가 html.tabmode 를 붙임) */
.tab-next { display: none; }
html.tabmode .tab-pane:not(.is-shown) { display: none; }
html.tabmode .tab-pane { border-top: 0 !important; }
html.tabmode .tab-next { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding: 13px 16px; border-radius: 12px; background: var(--blue-soft); color: var(--navy); text-decoration: none; }
html.tabmode .tab-next span { font-size: 12px; font-weight: 700; color: var(--blue); }
html.tabmode .tab-next strong { flex: 1; font-size: max(12px, calc(15px * var(--fs, 1))); }
html.tabmode .tab-next::after { content: "→"; font-weight: 700; color: var(--blue); }

/* ═════════ 하위 페이지 제목 띠: 제목 하나만, 낮고 깔끔하게 ═════════ */
.page-head.page-title { padding: 0; background: linear-gradient(180deg, #FFFFFF 0%, #F3F7FB 100%); border-bottom: 1px solid var(--line); }
.page-title__in { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 92px; }
.page-head.page-title h1 { position: relative; margin: 0; padding-bottom: 12px; font-size: max(12px, calc(30px * var(--fs, 1))); font-weight: 700; letter-spacing: -.035em; color: var(--navy); text-align: center; }
.page-head.page-title h1::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 28px; height: 3px; margin-left: -14px; border-radius: 2px; background: linear-gradient(90deg, var(--sky), var(--blue)); }
.pt-nav { display: none; }

/* 휴대폰: 메뉴 띠(가로로 밀어 보기) + 낮은 제목 띠 + 양옆 ‹ › */
.navstrip { display: none; }
@media (max-width: 960px) {
  .navstrip { display: block; background: linear-gradient(135deg, #0F3D6E, #1A6DB5); }
  .navstrip ul { display: flex; list-style: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .navstrip ul::-webkit-scrollbar { display: none; }
  .navstrip li + li a { border-left: 1px solid rgba(255, 255, 255, .14); }
  .navstrip a { display: block; padding: 0 16px; line-height: 42px; white-space: nowrap; color: rgba(255, 255, 255, .86); text-decoration: none; font-size: max(12px, calc(16px * var(--fs, 1))); font-weight: 500; }
  .navstrip a.is-current { color: #fff; font-weight: 700; background: rgba(255, 255, 255, .16); box-shadow: inset 0 -3px 0 #E8A840; }
  .page-title__in { justify-content: space-between; min-height: 64px; }
  .page-head.page-title h1 { font-size: max(12px, calc(26px * var(--fs, 1))); padding-bottom: 9px; }
  .page-head.page-title h1::after { width: 22px; margin-left: -11px; }
  .pt-nav { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: max(12px, calc(22px * var(--fs, 1))); line-height: 1; text-decoration: none; box-shadow: var(--shadow-sm); }
  .pt-nav:hover { color: var(--blue); border-color: var(--sky); }
  .pt-nav--off { visibility: hidden; }
}

/* 밀어서 옆 메뉴로 넘어갈 때 살짝 미끄러지는 효과 */
@keyframes swipe-in-next { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes swipe-in-prev { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
main.swipe-in-next { animation: swipe-in-next .22s ease-out; }
main.swipe-in-prev { animation: swipe-in-prev .22s ease-out; }
body.swipe-out-next main { transition: transform .16s ease-in, opacity .16s ease-in; transform: translateX(-28px); opacity: 0; }
body.swipe-out-prev main { transition: transform .16s ease-in, opacity .16s ease-in; transform: translateX(28px); opacity: 0; }
@media (prefers-reduced-motion: reduce) { main.swipe-in-next, main.swipe-in-prev { animation: none; } body.swipe-out-next main, body.swipe-out-prev main { transition: none; } }

/* 제목 띠는 화면에서 없앰 (위 메뉴의 노란 밑줄로 위치 표시). 제목(h1)은 검색엔진 · 화면낭독기용으로만 남김 */
.page-head.page-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* PC에서 '다음' 버튼은 오른쪽에 작게 */
@media (min-width: 761px) {
  html.tabmode .tab-next { max-width: 360px; margin: 36px 0 0 auto; padding: 14px 20px; }
  html.tabmode .tab-next strong { font-size: max(12px, calc(16px * var(--fs, 1))); }
}

/* ═════════ 구획 제목: 첫 화면 상자 제목과 같은 왼쪽 파란 막대 + 설명 + 가는 구분선 ═════════ */
.block > .wrap > h2, .block__title { position: relative; padding-left: 16px; margin-bottom: 10px; font-size: max(12px, calc(27px * var(--fs, 1))); font-weight: 700; line-height: 1.35; letter-spacing: -.035em; color: var(--navy); }
.block > .wrap > h2::before, .block__title::before { content: ""; position: absolute; left: 0; top: .22em; height: 1em; width: 4px; border-radius: 2px; background: linear-gradient(180deg, var(--sky), var(--blue)); }
.block__lead { max-width: none; margin: 0 0 30px; padding: 0 0 22px 16px; border-bottom: 1px solid var(--line); font-size: max(12px, calc(16.5px * var(--fs, 1))); line-height: 1.75; color: var(--muted); }
.block__lead strong { color: var(--ink-2); }
.block > .wrap > h2:not(:has(+ .block__lead)), .block__title:not(:has(+ .block__lead)) { padding-bottom: 18px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
/* 구획 안의 작은 제목 (예: 당뇨병의 종류 · 진단 기준) */
.block .wrap > h3 { display: flex; align-items: center; gap: 10px; margin: 38px 0 14px; font-size: max(12px, calc(19px * var(--fs, 1))); font-weight: 700; letter-spacing: -.03em; color: var(--navy); }
.block .wrap > h3::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--sky); }
.block .wrap > h3[style*="margin-top:0"] { margin-top: 0; }

/* 탭으로 볼 때: 위 여백을 줄이고 바탕을 하나로 */
html.tabmode .tab-pane.block { padding: 34px 0 60px; background: #fff; }
html.tabmode .tab-pane .card--soft { background: var(--soft); }

@media (max-width: 760px) {
  .block > .wrap > h2, .block__title { padding-left: 12px; font-size: max(12px, calc(27px * var(--fs, 1))); }
  .block > .wrap > h2::before, .block__title::before { width: 3px; }
  .block__lead { margin-bottom: 20px; padding: 0 0 16px 12px; }
  .block > .wrap > h2:not(:has(+ .block__lead)), .block__title:not(:has(+ .block__lead)) { padding-bottom: 14px; margin-bottom: 20px; }
  .block .wrap > h3 { margin: 26px 0 10px; gap: 8px; }
  .block .wrap > h3::before { width: 7px; height: 7px; }
  html.tabmode .tab-pane.block { padding: 22px 0 36px; }
}

/* 원장 인사말: 다른 구획과 같은 제목 형식 + 사진 · 글 */
.doctor--greeting { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.doctor--greeting .doctor__photo { max-width: 220px; }
.doctor--greeting .prose { font-size: max(12px, calc(17px * var(--fs, 1))); }
.doctor__sign { margin-top: 22px !important; padding-top: 16px; border-top: 1px solid var(--line); text-align: right; color: var(--muted); font-size: max(12px, calc(15px * var(--fs, 1))); }
.doctor__sign strong { margin-left: 6px; font-size: max(12px, calc(19px * var(--fs, 1))); color: var(--navy); letter-spacing: .08em; }
@media (max-width: 760px) {
  .doctor--greeting { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
  .doctor--greeting .doctor__photo { max-width: 110px; border-width: 3px; border-radius: 10px; }
  .doctor--greeting > div { grid-column: 1 / -1; }
}
.tab-pane.swipe-in-next { animation: swipe-in-next .22s ease-out; }
.tab-pane.swipe-in-prev { animation: swipe-in-prev .22s ease-out; }
