/* 춘천 후한의원 (진료 안내 + 건강 칼럼) — v3 design (2026-11-22)
   Direction: calm and photo-led. One typeface (Pretendard), white paper, a light blue-grey panel colour,
   slate-blue headings and buttons. Photos carry the warmth; the UI stays quiet (hairlines, pills, soft radii).
   The live 진료 상태 pill is the one thing that moves.
   Palettes: default 남청(slate blue); data-palette="charcoal" | "teal" swap the same tokens (preview lets the client compare). */

@font-face { font-family: "Pretendard"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/Pretendard-Regular.subset.woff2) format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/Pretendard-Medium.subset.woff2) format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/Pretendard-SemiBold.subset.woff2) format("woff2"); }
@font-face { font-family: "Pretendard"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/Pretendard-Bold.subset.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --paper: #ffffff;
  --mist: #eef2f7;
  --ink: #162231;
  --body: #37424f;
  --muted: #627083;
  --line: #dfe6ee;
  --line-strong: #c6d2df;
  --brand: #2f507a;
  --head: #274467;
  --brand-deep: #1c3351;
  --brand-tint: #e8eff7;
  --on-brand-muted: #c5d3e4;
  --link: #2a5aa8;
  --open: #17b26a;
  --rest: #f79009;
  --off: #98a2b3;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --danger-line: #fecdca;
  --note: #fff7d6;
  --note-line: #e0c15a;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --gut-l: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  --wrap: 1160px;
  --head-h: 68px;
}
:root[data-palette="charcoal"] {
  --mist: #f6f4f0; --ink: #171614; --body: #3a3833; --muted: #766f66; --line: #e7e2da; --line-strong: #d3ccc1;
  --brand: #2b2925; --head: #2b2925; --brand-deep: #1c1b18; --brand-tint: #f1ede6; --on-brand-muted: #cdc6ba; --link: #85562a;
}
:root[data-palette="teal"] {
  --mist: #f1f6f6; --ink: #0c1a1c; --body: #2d3b3e; --muted: #5d6f73; --line: #dee7e8; --line-strong: #c6d4d6;
  --brand: #0c5a62; --head: #0c5a62; --brand-deep: #083b41; --brand-tint: #e5f1f2; --on-brand-muted: #bcdadd; --link: #0a6770;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; padding-bottom: 76px;
  background: var(--paper); color: var(--body);
  font-family: var(--font); font-size: 1rem; line-height: 1.75; letter-spacing: -0.01em;
  word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 640px) { body { font-size: 1.0625rem; } }
@media (min-width: 900px) { body { padding-bottom: 0; } }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.3; letter-spacing: -0.03em; text-wrap: balance; }
p, ul, ol, dl, dd, figure, table { margin: 0; }
ul, ol { padding: 0; }
p, li, dd { text-wrap: pretty; }
b, strong { font-weight: 600; color: var(--ink); }
small { font-size: 0.875rem; color: var(--muted); }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.nb { white-space: nowrap; }
.clause { display: inline-block; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-line { background: var(--paper); border-color: var(--line-strong); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-white { background: #fff; color: var(--brand-deep); }
.btn-white:hover { background: var(--brand-tint); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.36); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 0.9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* header */
.site-head { position: relative; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 16px; min-height: var(--head-h); }
.brand { display: inline-flex; align-items: baseline; gap: 6px; color: var(--ink); text-decoration: none; font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.035em; white-space: nowrap; }
.brand span { font-weight: 500; color: var(--brand); }
.head-actions { display: none; align-items: center; gap: 16px; margin-left: auto; }

.gnb { display: none; margin-left: 20px; }
.gnb > ul { display: flex; list-style: none; }
.gnb > ul > li { position: relative; }
.gnb .top {
  display: flex; align-items: center; gap: 5px; height: var(--head-h); padding: 0 10px;
  color: var(--ink); text-decoration: none; font-size: 0.96875rem; font-weight: 500; white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent;
}
.gnb li:hover > .top, .gnb li:focus-within > .top { color: var(--brand); }
.gnb li.on > .top { color: var(--brand); font-weight: 700; box-shadow: inset 0 -2px 0 var(--brand); }
.caret { width: 9px; height: 9px; flex: none; margin-top: -3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) scale(0.72); opacity: 0.7; }
.gnb .sub {
  position: absolute; top: 100%; left: -6px; min-width: 232px; padding: 8px; list-style: none;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 32px rgba(11, 18, 32, 0.1);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity 0.14s, transform 0.14s, visibility 0s linear 0.14s;
}
.gnb li:hover > .sub, .gnb li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.gnb .sub a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--body); text-decoration: none; font-size: 0.9375rem; font-weight: 500; white-space: nowrap; }
.gnb .sub a:hover, .gnb .sub a:focus-visible { background: var(--mist); color: var(--brand); }
.gnb .sub a[aria-current="page"] { background: var(--brand-tint); color: var(--brand); font-weight: 600; }

.mnav { margin-left: auto; }
.mnav > summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; list-style: none; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 0.9375rem;
}
.mnav > summary::-webkit-details-marker { display: none; }
.mnav > summary i { width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.mnav > summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 2px solid currentColor; }
.mnav[open] > summary { background: var(--mist); }
.mnav-panel {
  position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--head-h) - 84px); overflow: auto;
  padding: 4px var(--gut-r) 20px var(--gut-l); background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 32px rgba(11, 18, 32, 0.08);
}
.mnav-list { list-style: none; }
.mnav-list > li { border-bottom: 1px solid var(--line); }
.mnav-list a, .mnav-list summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; color: var(--ink); text-decoration: none; font-weight: 600; cursor: pointer; list-style: none; }
.mnav-list summary::-webkit-details-marker { display: none; }
.mnav-list summary .caret { margin: 0 6px 0 0; transition: transform 0.14s; }
.mnav-list details[open] > summary .caret { transform: rotate(225deg) scale(0.72); margin-top: 4px; }
.mnav-list a[aria-current="page"] { color: var(--brand); }
.mnav-list ul { list-style: none; padding: 0 0 10px 12px; }
.mnav-list ul a { min-height: 44px; font-weight: 500; color: var(--body); }
.mnav-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
/* 760px부터는 메뉴를 항상 로고 줄에 펼쳐 둔다(소분류는 마우스를 올리면 나온다). 그보다 좁은 휴대폰만 '메뉴' 버튼을 쓴다. */
@media (min-width: 760px) {
  .gnb { display: block; }
  .mnav { display: none; }
  .gnb .top { padding: 0 8px; font-size: 0.9375rem; }
}
@media (min-width: 760px) and (max-width: 899.98px) {
  .head-row { flex-wrap: wrap; min-height: 0; padding-top: 16px; }
  .gnb { order: 3; flex: 0 0 100%; margin: 4px 0 0 -8px; }
  .gnb .top { height: 46px; }
}
@media (min-width: 900px) { .site-head { position: sticky; top: 0; } }
@media (min-width: 1040px) { .head-actions { display: flex; } }
@media (min-width: 1200px) { .gnb { margin-left: 32px; } .gnb .top { padding: 0 13px; font-size: 0.96875rem; } }

/* preview-only */
.preview-bar { background: #111827; color: #e5e7eb; font-size: 0.8125rem; line-height: 1.5; }
.preview-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-block: 9px; }
.preview-bar b { color: #fde68a; }
.palette { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.palette button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 7px; border: 1px solid #4b5563; border-radius: 999px; background: transparent; color: #e5e7eb; font: inherit; font-weight: 600; cursor: pointer; }
.palette button i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.5); }
.palette button[aria-pressed="true"] { background: #fff; border-color: #fff; color: #111827; }
.check { background: var(--note); border: 1px dashed var(--note-line); border-radius: 6px; padding: 1px 7px; font-size: 0.8125rem; font-weight: 500; color: #5c4a00; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.slots { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.slot { aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 12px; border: 1.5px dashed var(--line-strong); border-radius: 12px; background: var(--mist); color: var(--muted); font-size: 0.8125rem; line-height: 1.5; }

/* home: hero */
.hero { background: var(--mist); }
.hero-grid { display: grid; gap: 32px; padding-block: 40px 48px; grid-template-columns: minmax(0, 1fr); }
.status-pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 0.875rem; font-weight: 600; line-height: 1.45; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--open); box-shadow: 0 0 0 4px rgba(23, 178, 106, 0.16); }
.dot.rest { background: var(--rest); box-shadow: 0 0 0 4px rgba(247, 144, 9, 0.16); }
.dot.off { background: var(--off); box-shadow: 0 0 0 4px rgba(152, 162, 179, 0.2); }
.hero h1 { margin-top: 18px; font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.22; letter-spacing: -0.045em; }
.hero .lead { margin-top: 18px; max-width: 33em; font-size: 1.0625rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hours-card { padding: 26px 24px; border-radius: 20px; background: var(--brand-deep); color: #fff; }
.hours-card h2 { color: var(--on-brand-muted); font-size: 0.875rem; font-weight: 600; letter-spacing: 0; }
.hours { width: 100%; margin-top: 8px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); text-align: left; vertical-align: top; }
.hours th { width: 7.2em; color: var(--on-brand-muted); font-weight: 500; white-space: nowrap; }
.hours td { color: #fff; font-weight: 600; }
.hours small { display: block; color: var(--on-brand-muted); font-size: 0.875rem; font-weight: 400; }
.hours tr.today th { color: #fff; }
.hours tr.today th::after { content: "오늘"; margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: #fff; color: var(--brand-deep); font-size: 0.6875rem; font-weight: 700; vertical-align: 2px; }
.hours-tel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.hours-tel .tel { color: #fff; text-decoration: none; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hours-note { margin-top: 14px; color: var(--on-brand-muted); font-size: 0.8125rem; line-height: 1.6; }
@media (min-width: 640px) { .hero .lead { font-size: 1.125rem; } .hours-card { padding: 30px; } }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr); align-items: center; gap: 64px; padding-block: 76px; } }

/* home: sections */
.band { padding-block: 60px; }
.band-mist { background: var(--mist); }
.band h2 { font-size: clamp(1.5rem, 2.8vw, 2.125rem); letter-spacing: -0.04em; }
.section-lead { margin-top: 12px; max-width: 40em; color: var(--muted); }
@media (min-width: 960px) { .band { padding-block: 92px; } }

.directory { display: grid; gap: 36px 40px; margin-top: 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr)); }
.dir-group h3 { padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-size: 1.0625rem; letter-spacing: -0.02em; }
.dir-group h3 + ul + h3 { margin-top: 28px; }
.dir-group h3 a { color: inherit; text-decoration: none; }
.dir-group ul { list-style: none; }
.dir-group li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--body); text-decoration: none; font-weight: 500; }
.dir-group li a::after { content: ""; flex: none; width: 7px; height: 7px; border-top: 1.5px solid var(--line-strong); border-right: 1.5px solid var(--line-strong); transform: rotate(45deg); }
.dir-group li a:hover { color: var(--brand); }
.dir-group li a:hover::after { border-color: var(--brand); }
.scope-line { margin-top: 28px; color: var(--muted); font-size: 0.9375rem; }

.flow { display: grid; margin-top: 36px; list-style: none; counter-reset: flow; grid-template-columns: minmax(0, 1fr); }
.flow li { position: relative; padding: 0 0 26px 52px; counter-increment: flow; }
.flow li::before { content: counter(flow); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--paper); color: var(--brand); font-size: 0.9375rem; font-weight: 700; }
.flow li::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 1px; background: var(--line-strong); }
.flow li:last-child { padding-bottom: 0; }
.flow li:last-child::after { display: none; }
.flow b { display: block; font-size: 1.0625rem; }
.flow span { display: block; margin-top: 2px; color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }
@media (min-width: 960px) {
  .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
  .flow li { padding: 52px 0 0; }
  .flow li::after { left: 44px; right: -22px; top: 17px; bottom: auto; width: auto; height: 1px; }
}

.split { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }
.teaser { display: grid; gap: 14px; margin-top: 18px; max-width: 34em; grid-template-columns: minmax(0, 1fr); }
.band .slots { margin-top: 28px; }
.band .faq, .band .guide-list { margin-top: 28px; max-width: 48em; }

/* inner pages */
.crumbs { padding-top: 22px; color: var(--muted); font-size: 0.875rem; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-current] { color: var(--ink); font-weight: 500; }
.page-head { padding: 22px 0 0; }
.page-head h1 { max-width: 22em; font-size: clamp(1.75rem, 3.7vw, 2.625rem); line-height: 1.25; letter-spacing: -0.045em; }
.page-head .lead { margin-top: 16px; max-width: 42em; font-size: 1.0625rem; }
.byline { margin-top: 18px; color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
.byline a { color: inherit; }
.subnav { margin-top: 26px; border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 2px; list-style: none; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gut-r)) 0 calc(-1 * var(--gut-l)); padding: 0 var(--gut-r) 0 var(--gut-l); }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; margin-bottom: -1px; padding: 12px; border-bottom: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 0.9375rem; font-weight: 500; white-space: nowrap; }
.subnav li:first-child a { padding-left: 0; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { border-bottom-color: var(--ink); color: var(--ink); font-weight: 700; }
.page-head-rule { margin-top: 28px; border: 0; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .page-head .lead { font-size: 1.125rem; } .page-head { padding-top: 28px; } }

.layout { display: grid; gap: 48px; padding-block: 36px 72px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; padding-block: 48px 104px; } }
.prose { display: grid; gap: 52px; max-width: 46em; grid-template-columns: minmax(0, 1fr); align-content: start; }
.prose section { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.prose h2 { font-size: 1.4375rem; letter-spacing: -0.035em; }
.prose h3 { margin-top: 10px; font-size: 1.125rem; letter-spacing: -0.02em; }
@media (min-width: 640px) { .prose h2 { font-size: 1.5625rem; } }
.prose ul:not([class]), .alert ul, .teaser ul:not([class]), .faq .a ul { display: grid; gap: 8px; list-style: none; }
.prose ul:not([class]) > li, .alert ul > li, .teaser ul:not([class]) > li, .faq .a ul > li { position: relative; padding-left: 18px; }
.prose ul:not([class]) > li::before, .alert ul > li::before, .teaser ul:not([class]) > li::before, .faq .a ul > li::before { content: ""; position: absolute; left: 3px; top: 0.74em; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.prose ul:not([class]) > li > b:first-child { margin-right: 4px; }

.glance { padding: 24px; border-radius: 16px; background: var(--mist); }
.prose .glance h2 { font-size: 0.9375rem; letter-spacing: -0.01em; color: var(--brand); }
.glance dl { display: grid; grid-template-columns: minmax(0, 1fr); }
.glance dl > div { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.glance dl > div:first-child { border-top: 0; padding-top: 0; }
.glance dl > div:last-child { padding-bottom: 0; }
.glance dt { color: var(--ink); font-weight: 600; }
@media (min-width: 620px) { .glance { padding: 28px; } .glance dl > div { grid-template-columns: 8.5em minmax(0, 1fr); gap: 20px; } }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.6; }
.table-scroll table:has(thead th:nth-child(3)) { min-width: 580px; }
.table-scroll th, .table-scroll td { padding: 12px 16px; text-align: left; vertical-align: top; }
.table-scroll thead th { background: var(--mist); color: var(--ink); font-weight: 600; white-space: nowrap; }
.table-scroll tbody tr { border-top: 1px solid var(--line); }
.table-scroll tbody th { min-width: 5.6em; color: var(--ink); font-weight: 600; }
@media (max-width: 619px) {
  /* three or more columns: each row becomes a labelled block instead of a sideways scroll */
  .table-scroll table:has(thead th:nth-child(3)) { min-width: 0; }
  .table-scroll table:has(thead th:nth-child(3)) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-scroll table:has(thead th:nth-child(3)) tbody tr { display: block; padding: 14px 16px; }
  .table-scroll table:has(thead th:nth-child(3)) tbody tr:first-child { border-top: 0; }
  .table-scroll table:has(thead th:nth-child(3)) tbody th { display: block; padding: 0 0 6px; font-size: 1rem; }
  .table-scroll table:has(thead th:nth-child(3)) tbody td { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); gap: 12px; padding: 3px 0; }
  .table-scroll table:has(thead th:nth-child(3)) tbody td::before { content: attr(data-label); color: var(--muted); font-size: 0.875rem; }
  .table-scroll table:has(thead th:nth-child(3)) tbody td:empty { display: none; }
}
.hours-plain { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); font-variant-numeric: tabular-nums; }
.hours-plain th, .hours-plain td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.hours-plain th { width: 8.5em; color: var(--ink); font-weight: 600; white-space: nowrap; }
.hours-plain tr.today { background: var(--brand-tint); }
.hours-plain tr.today th::after { content: "오늘"; margin-left: 8px; padding: 2px 7px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 0.6875rem; font-weight: 700; vertical-align: 2px; }
.open-line { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.open-line:empty { display: none; }

.alert { display: grid; gap: 12px; padding: 22px; border: 1px solid var(--danger-line); border-radius: 14px; background: var(--danger-bg); grid-template-columns: minmax(0, 1fr); }
.prose .alert h3, .alert h3 { margin: 0; color: var(--danger); font-size: 1.0625rem; }
.alert ul > li::before { background: var(--danger); opacity: 0.55; }
.care-note { display: grid; gap: 6px; padding: 18px 20px; border-radius: 12px; background: var(--mist); font-size: 0.9375rem; line-height: 1.7; grid-template-columns: minmax(0, 1fr); }
.care-note > b { font-size: 0.9375rem; }

ol.steps { display: grid; gap: 18px; list-style: none; counter-reset: step; grid-template-columns: minmax(0, 1fr); }
ol.steps > li { position: relative; padding-left: 46px; counter-increment: step; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--brand); font-size: 0.875rem; font-weight: 700; }
ol.steps > li > b { display: block; }
ol.weeks { display: grid; list-style: none; border-top: 1px solid var(--ink); grid-template-columns: minmax(0, 1fr); }
ol.weeks > li { display: grid; gap: 4px; padding: 14px 12px; border-bottom: 1px solid var(--line); }
ol.weeks .when { color: var(--brand); font-weight: 700; font-variant-numeric: tabular-nums; }
ol.weeks > li.key { background: var(--brand-tint); }
@media (min-width: 620px) { ol.weeks > li { grid-template-columns: 6.5em minmax(0, 1fr); gap: 20px; } }

.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 44px 18px 0; color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 1.5px; background: var(--ink); transition: transform 0.16s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq .a { display: grid; gap: 10px; padding: 0 44px 20px 0; grid-template-columns: minmax(0, 1fr); }

.related { display: grid; gap: 12px; list-style: none; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.related a { display: grid; gap: 2px; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--body); text-decoration: none; }
.related a:hover { border-color: var(--brand); }
.related b { font-size: 1rem; }
.related span { color: var(--muted); font-size: 0.875rem; line-height: 1.55; }
.guide-list { list-style: none; border-top: 1px solid var(--ink); }
.guide-list a { display: grid; gap: 4px; padding: 18px 28px 18px 0; position: relative; border-bottom: 1px solid var(--line); color: var(--body); text-decoration: none; }
.guide-list a::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-top: 1.5px solid var(--line-strong); border-right: 1.5px solid var(--line-strong); transform: rotate(45deg); }
.guide-list a:hover b { color: var(--brand); }
.guide-list a:hover::after { border-color: var(--brand); }
.guide-list b { font-size: 1.0625rem; letter-spacing: -0.02em; }
.guide-list span { color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.refs { padding-top: 28px; border-top: 1px solid var(--line); }
.prose .refs h2 { font-size: 0.9375rem; letter-spacing: -0.01em; color: var(--muted); }
.refs ol { display: grid; gap: 6px; padding-left: 1.3em; color: var(--muted); font-size: 0.8125rem; line-height: 1.6; }
.refs a { color: inherit; }

.aside { display: grid; gap: 28px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.aside-card { display: grid; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; grid-template-columns: minmax(0, 1fr); }
.aside-card h2 { font-size: 1rem; letter-spacing: -0.02em; }
.aside-card .now { display: flex; align-items: flex-start; gap: 10px; color: var(--body); font-size: 0.9375rem; line-height: 1.6; }
.aside-card .now .dot { margin-top: 0.55em; }
.aside-card .tel a { color: var(--ink); text-decoration: none; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.aside-card small { line-height: 1.7; display: block; }
.toc { display: none; }
.toc b { font-size: 0.875rem; }
.toc ol { display: grid; gap: 8px; margin-top: 10px; padding-left: 14px; border-left: 1px solid var(--line); list-style: none; font-size: 0.875rem; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); }
@media (min-width: 1000px) { .aside { position: sticky; top: calc(var(--head-h) + 24px); } .toc { display: block; } }

/* 칼럼: 글, 목록 */
.col-head h1 { max-width: 24em; }
.answer { display: grid; gap: 8px; padding: 22px 24px; border-radius: 16px; background: var(--brand-tint); grid-template-columns: minmax(0, 1fr); }
.answer > b { color: var(--brand); font-size: 0.875rem; font-weight: 700; }
.answer p { color: var(--ink); font-size: 1.0625rem; font-weight: 500; line-height: 1.7; }
.col-figure img { width: 100%; border-radius: 16px; }
.col-note { margin-top: 14px; color: var(--muted); font-size: 0.8125rem; line-height: 1.6; }
.col-list { display: grid; list-style: none; border-top: 1px solid var(--ink); grid-template-columns: minmax(0, 1fr); }
.col-list a { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--body); text-decoration: none; }
.col-list img { grid-row: 1 / span 4; width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
.col-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.col-topic { padding: 1px 9px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.col-list b { font-size: 1.0625rem; line-height: 1.45; letter-spacing: -0.02em; }
.col-list a:hover b { color: var(--brand); }
.col-list .check { justify-self: start; }
.col-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
@media (min-width: 640px) { .col-list a { grid-template-columns: 112px minmax(0, 1fr); column-gap: 20px; } .col-list img { width: 112px; height: 112px; } }
.band .col-list { margin-top: 28px; }
@media (min-width: 900px) { .col-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
.more { margin-top: 28px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pager a { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.pager a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 예약 band, footer, phone dock */
.call { background: var(--brand-deep); color: #fff; }
.call .wrap { display: grid; gap: 28px; padding-block: 52px; grid-template-columns: minmax(0, 1fr); }
.call h2 { color: #fff; font-size: clamp(1.375rem, 2.6vw, 1.875rem); letter-spacing: -0.04em; }
.call p { margin-top: 10px; max-width: 34em; color: var(--on-brand-muted); }
.call .tel { margin: 0; }
.call .tel a { color: #fff; text-decoration: none; font-size: clamp(1.75rem, 3.4vw, 2.25rem); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.call-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (min-width: 900px) { .call .wrap { grid-template-columns: minmax(0, 1.2fr) auto; align-items: center; gap: 64px; padding-block: 72px; } }

.site-foot { border-top: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 0.875rem; line-height: 1.7; }
.site-foot .wrap { display: grid; gap: 28px; padding-block: 44px 40px; grid-template-columns: minmax(0, 1fr); }
.foot-scope { max-width: 46em; color: var(--body); font-size: 0.9375rem; }
.foot-cols { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.foot-cols b { display: block; margin-bottom: 8px; font-size: 0.875rem; }
.foot-cols ul { display: grid; gap: 4px; list-style: none; }
.site-foot a { color: inherit; text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.foot-legal { display: grid; gap: 6px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.8125rem; }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 8px;
  padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.96);
}
.dock a { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); color: var(--ink); text-decoration: none; font-size: 0.9375rem; font-weight: 600; }
.dock a.primary { border-color: var(--brand); background: var(--brand); color: #fff; }
@media (min-width: 900px) { .dock { display: none; } }

/* ===== v3 (2026-11-22): 사진이 들어간 구성 =====
   첫 화면: 큰 사진 + 한 줄 글 → 옅은 색 판의 제목과 버튼 → 진료 과목 카드 → 사진과 글이 엇갈리는 소개 줄.
   진료 안내 페이지: 옅은 색 판 위의 제목과 오른쪽 사진. 사진은 assets/img/ (없으면 사진 없이 그려진다). */
.kicker { color: var(--brand); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.01em; }
.kicker + h2, .kicker + h3 { margin-top: 8px; }
.band h2, .zig-row h3, .care-card h3, .intro3 h1, .page-hero h1 { color: var(--head); }
.go { font-size: 0.9375rem; font-weight: 600; }
.go a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--brand); text-decoration: none; }
.go a::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.go a:hover { text-decoration: underline; }
figure { overflow: hidden; }
figure > img { width: 100%; height: 100%; object-fit: cover; }

/* 첫 화면: 큰 사진 */
.hero3 { position: relative; isolation: isolate; display: grid; min-height: 400px; background: var(--brand-deep); color: #fff; overflow: hidden; }
.hero3 > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero3::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 27, 44, 0.42) 0%, rgba(15, 27, 44, 0.8) 100%); }
.hero3.no-photo::after { display: none; }
.hero3 .wrap { display: grid; align-content: end; justify-items: start; gap: 14px; width: 100%; padding-block: 64px 40px; }
.hero3 .status-pill { border-color: transparent; }
.hero3 .slogan { max-width: 13em; color: #fff; font-size: clamp(1.75rem, 4.8vw, 3.25rem); font-weight: 700; line-height: 1.28; letter-spacing: -0.045em; text-wrap: balance; }
.hero3 .sub { max-width: 30em; color: rgba(255, 255, 255, 0.88); font-size: 1.0625rem; }
@media (min-width: 900px) {
  .hero3 { min-height: 560px; }
  .hero3::after { background: linear-gradient(90deg, rgba(15, 27, 44, 0.82) 0%, rgba(15, 27, 44, 0.56) 44%, rgba(15, 27, 44, 0.08) 100%); }
  .hero3 > img { object-position: 50% 50%; }
  .hero3 .wrap { padding-block: 120px 76px; }
  .hero3 .sub { font-size: 1.1875rem; }
}

/* 첫 화면: 제목과 버튼이 있는 옅은 색 판 */
.intro3 { background: var(--mist); }
.intro3 .wrap { display: grid; gap: 32px; padding-block: 48px; grid-template-columns: minmax(0, 1fr); }
.tag { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); color: var(--head); font-size: 0.8125rem; font-weight: 600; }
.intro3 h1 { margin-top: 16px; font-size: clamp(1.75rem, 4.2vw, 2.875rem); line-height: 1.26; letter-spacing: -0.045em; }
.intro3 .lead { margin-top: 18px; max-width: 34em; font-size: 1.0625rem; }
.jump { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 20px; list-style: none; font-size: 0.875rem; }
.jump a { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); text-decoration: none; }
.jump a:hover { color: var(--head); text-decoration: underline; }
.intro3 figure { aspect-ratio: 4 / 3; border-radius: 18px; }
@media (min-width: 900px) {
  .intro3 .wrap { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; gap: 72px; padding-block: 84px; }
  .intro3 figure { aspect-ratio: 5 / 6; max-height: 540px; }
}

/* 진료 과목 카드 */
.care3 { display: grid; gap: 16px; margin-top: 36px; grid-template-columns: minmax(0, 1fr); }
.care-card { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: 16px; background: var(--paper); overflow: hidden; }
.care-card .txt { display: grid; gap: 12px; align-content: start; padding: 24px; grid-template-columns: minmax(0, 1fr); }
.care-card h3 { font-size: 1.25rem; letter-spacing: -0.03em; }
.care-card h3 a { color: inherit; text-decoration: none; }
.care-card h3 a:hover { text-decoration: underline; }
.care-card .txt > p:not(.go) { color: var(--muted); font-size: 0.9375rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); color: var(--body); font-size: 0.875rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.chips a:hover { border-color: var(--brand); color: var(--brand); }
.care-card figure { order: -1; aspect-ratio: 16 / 9; }
.care-card.lead-card { border-color: var(--line-strong); background: var(--mist); }
@media (min-width: 720px) {
  .care3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .care-card.lead-card { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .care-card.lead-card figure { order: 0; aspect-ratio: auto; min-height: 300px; }
  .care-card.lead-card .txt { padding: 36px; align-content: center; }
  .care-card.lead-card h3 { font-size: 1.5rem; }
}
@media (min-width: 1040px) { .care3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 사진과 글이 엇갈리는 소개 줄 */
.band-line { border-top: 1px solid var(--line); }
.zig3 { display: grid; gap: 56px; grid-template-columns: minmax(0, 1fr); }
.zig-row { display: grid; gap: 24px; align-items: center; grid-template-columns: minmax(0, 1fr); }
.zig-row figure { aspect-ratio: 3 / 2; border-radius: 18px; }
.zig-row h3 { font-size: clamp(1.375rem, 2.6vw, 1.875rem); line-height: 1.34; letter-spacing: -0.04em; }
.zig-row h3 + p { margin-top: 14px; max-width: 32em; }
.zig-row .go { margin-top: 14px; }
@media (min-width: 900px) {
  .zig3 { gap: 96px; }
  .zig-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; }
  .zig-row:nth-child(even) figure { order: 2; }
}

/* 진료시간 카드를 본문 줄에 둘 때 */
.split > .hours-card { align-self: start; }
.split h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); }

/* 진료 안내 페이지 머리 */
.page-hero { background: var(--mist); }
.page-hero-grid { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.page-hero .page-head { padding-top: 18px; }
.page-hero .page-head h1 { margin-top: 8px; }
.page-hero figure { display: none; }
.page-hero .subnav { margin-top: 24px; border-bottom: 0; }
.page-hero .subnav a[aria-current="page"] { border-bottom-color: var(--head); color: var(--head); }
.page-hero .page-head-rule { height: 36px; margin: 0; border: 0; }
@media (min-width: 900px) {
  .page-hero-grid.has-photo { grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 56px; align-items: center; }
  .page-hero figure { display: block; aspect-ratio: 3 / 2; margin-top: 18px; border-radius: 16px; }
}

/* 본문 안의 인물 사진 */
.portrait { width: min(100%, 240px); aspect-ratio: 2 / 3; border-radius: 16px; }
.band .portrait { margin-top: 24px; width: min(100%, 200px); }

/* 화면 옆 빠른 상담 버튼(넓은 화면). 좁은 화면에는 아래 고정 줄(.dock)이 있다 */
.quick { display: none; }
@media (min-width: 1320px) {
  .quick { position: fixed; right: 16px; bottom: 28px; z-index: 35; display: grid; gap: 10px; }
  .quick a { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 0.8125rem; font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px rgba(22, 34, 49, 0.22); }
  .quick a:hover { background: var(--brand-deep); }
}
@media print { .quick, .hero3 > img { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-head, .dock, .call, .preview-bar, .aside, .subnav { display: none !important; }
  body { padding-bottom: 0; }
}
