/*
=========================================================
[택갈이 핵심 1] GLOBAL DESIGN TOKENS
병원별 색상/폭/둥근 정도를 바꿀 때 우선 여기부터 수정.
=========================================================
*/
:root {
  --primary: #1468b8;          /* ★ 병원 대표색 */
  --primary-dark: #0b4b89;     /* ★ 대표색 진한 버전 */
  --primary-soft: #eaf4fc;     /* ★ 대표색 아주 연한 배경 */
  --accent: #35a7a0;           /* ★ 보조 포인트색 */

  --text-main: #16202b;
  --text-sub: #65717d;
  --text-light: #ffffff;

  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-dark: #12202e;

  --border: #e2e8ef;

  --container: 1400px;         /* ★ 사이트 전체 최대 폭 */
  --site-content-width: 1400px;
  --header-height: 86px;       /* ★ 메인 헤더 높이 */

  --radius-sm: 10px;
  --radius-md: 18px;           /* ★ 카드 둥근 정도 */
  --radius-lg: 28px;

  --shadow-soft: 0 16px 50px rgba(19, 41, 64, .08);
}

html.site-concept-calm-teal { --radius-sm: 14px; --radius-md: 26px; --radius-lg: 38px; }
html.site-concept-warm-coral { --radius-sm: 16px; --radius-md: 28px; --radius-lg: 44px; }
html.site-concept-premium-navy { --radius-sm: 2px; --radius-md: 4px; --radius-lg: 6px; --shadow-soft: 0 22px 70px rgba(4,10,20,.24); }
html.site-concept-violet-tech { --radius-sm: 16px; --radius-md: 28px; --radius-lg: 40px; --shadow-soft: 0 22px 70px rgba(85,56,170,.16); }
html.site-concept-swiss-red { --radius-sm: 0; --radius-md: 0; --radius-lg: 0; --shadow-soft: 10px 10px 0 rgba(21,21,21,.1); }
html.site-concept-botanical-sage { --radius-sm: 18px; --radius-md: 36px 36px 14px 14px; --radius-lg: 80px 80px 20px 20px; }
html.site-concept-heritage-burgundy { --radius-sm: 2px; --radius-md: 2px; --radius-lg: 2px; --shadow-soft: 0 24px 70px rgba(76,28,38,.11); }
html.site-concept-aero-silver { --radius-sm: 14px; --radius-md: 24px; --radius-lg: 34px; --shadow-soft: 0 28px 80px rgba(28,78,132,.13); }
html.site-concept-gallery-cobalt { --radius-sm: 0; --radius-md: 0; --radius-lg: 0; --shadow-soft: 14px 14px 0 rgba(23,71,209,.1); }
html.site-concept-quiet-linen { --radius-sm: 5px; --radius-md: 9px; --radius-lg: 14px; --shadow-soft: 0 28px 80px rgba(71,56,42,.1); }
html.site-concept-mono-editorial { --radius-sm: 0; --radius-md: 0; --radius-lg: 0; --shadow-soft: 8px 8px 0 #171b20; }

body {
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg);
  line-height: 1.6;
  word-break: keep-all;
}

html[class*="site-concept-"] body { transition: background-color .25s ease, color .25s ease; }
html.site-concept-premium-navy body { background: #0b1422; }
html.site-concept-botanical-sage body { background: #f8f6ef; }
html.site-concept-heritage-burgundy body { background: #fbf7ef; }
html.site-concept-aero-silver body { background: #f2f7fc; }
html.site-concept-gallery-cobalt body { background: #f5f2e9; }
html.site-concept-quiet-linen body { background: #faf8f3; }
html.site-concept-swiss-red body { font-family: "Noto Sans KR", Pretendard, sans-serif; }
html.site-concept-heritage-burgundy :is(h1,h2,.footer-logo) { font-family: "Nanum Myeongjo", Georgia, serif; }
html.site-concept-gallery-cobalt :is(h1,h2,.footer-logo) { font-family: "Nanum Myeongjo", Georgia, serif; }
html.site-concept-quiet-linen :is(h1,h2,h3,.footer-logo) { font-family: Pretendard, "Noto Sans KR", sans-serif; }
html.site-concept-aero-silver :is(h1,h2,h3) { letter-spacing: -.045em; }
html.site-concept-mono-editorial :is(h1,h2,h3) { letter-spacing: -.055em; }
html:not([data-site-palette="concept"])[class*="site-concept-"] body:not(.admin-body) {
  background: var(--site-concept-surface);
  color: var(--site-concept-title);
}
html.site-background-custom body { background:var(--site-custom-background) !important; }
html.site-background-custom main .section:not(.section--dark):not(.section--soft) { background:var(--site-custom-background) !important; color:var(--site-custom-foreground); }
html.site-background-custom main .section--soft { background:var(--site-custom-background) !important; background:color-mix(in srgb,var(--site-custom-background) 84%,var(--site-concept-soft)) !important; }
html.site-background-custom .template-content { background:var(--site-custom-background) !important; color:var(--site-custom-foreground); }
html.site-background-dark :is(.template-content,.section:not(.section--dark)) :is(.section-heading > p,.split-section__content > p:not(.section-eyebrow),.hospital-stats dd,.public-content-text.ql-editor,.template-empty,.doctors-empty-state) { color:var(--site-custom-muted); }
html.site-background-dark :is(.template-content,.section:not(.section--dark)) :is(.section-heading h2,.split-section__content h2,.template-section-title h2,.doctors-empty-state strong) { color:var(--site-custom-foreground); }
html.site-background-dark :is(.service-card,.contact-panel,.location-panel,.home-notice-list,.template-doctor-card,.schedule-template,.location-guide-grid section) { color:var(--site-concept-title); }

main img:not([data-no-lightbox]) { cursor: zoom-in; }
.site-image-lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; background: transparent; }
.site-image-lightbox[open] { display: grid; place-items: center; }
.site-image-lightbox::backdrop { background: rgba(5,12,20,.88); backdrop-filter: blur(5px); }
.site-image-lightbox__panel { width: min(94vw,1500px); height: min(92vh,1000px); position: relative; display: grid; place-items: center; }
.site-image-lightbox__panel figure { width: 100%; height: 100%; display: grid; grid-template-rows: minmax(0,1fr) auto; place-items: center; touch-action: pan-y; user-select: none; }
.site-image-lightbox__panel figure img { max-width: 100%; max-height: 84vh; width: auto; height: auto; display: block; object-fit: contain; border-radius: 6px; box-shadow: 0 24px 80px rgba(0,0,0,.42); cursor: default; }
.site-image-lightbox__panel figcaption { min-height: 40px; padding-top: 12px; display: flex; align-items: center; justify-content: center; gap: 12px; color: #fff; font-size: 13px; }
.site-image-lightbox__panel figcaption small { color: rgba(255,255,255,.66); }
.site-image-lightbox__close,.site-image-lightbox__nav { position: absolute; z-index: 2; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: rgba(10,20,30,.72); color: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.22); }
.site-image-lightbox__close { width: 44px; height: 44px; top: 0; right: 0; font-size: 28px; }
.site-image-lightbox__nav { width: 52px; height: 52px; top: 50%; font-family: Arial,sans-serif; font-size: 38px; transform: translateY(-50%); }
.site-image-lightbox__nav--prev { left: 0; }
.site-image-lightbox__nav--next { right: 0; }
.site-image-lightbox__close:hover,.site-image-lightbox__nav:hover { background: #1468b8; }
@media (max-width: 700px) {
  .site-image-lightbox__panel { width: 96vw; height: 92vh; }
  .site-image-lightbox__panel figure img { max-height: 78vh; }
  .site-image-lightbox__close { width: 40px; height: 40px; top: 4px; right: 4px; }
  .site-image-lightbox__nav { width: 42px; height: 42px; top: auto; bottom: 8px; transform: none; }
  .site-image-lightbox__nav--prev { left: calc(50% - 52px); }
  .site-image-lightbox__nav--next { right: calc(50% - 52px); }
  .site-image-lightbox__panel figcaption { padding-bottom: 60px; }
}

html {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: scroll !important;
  scrollbar-gutter: stable;
}

body {
  min-height: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.site-container {
  width: min(calc(100% - 48px), var(--site-content-width, var(--container)));
  margin: 0 auto;
}

.section {
  padding: 110px 0;
}

.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: var(--text-light); }

.section-eyebrow {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 46px;
}

.section-heading h2,
.split-section__content h2,
.contact-panel h2 {
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.2;
  letter-spacing: -.045em;
}

.section-heading > p {
  max-width: 480px;
  color: var(--text-sub);
}

.section-heading--light > p { color: rgba(255,255,255,.62); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  transition: .2s ease;
}

.button--primary {
  background: var(--primary);
  color: #fff;
}
.button--primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.button--ghost {
  border: 1px solid rgba(255,255,255,.55);
  color: #fff;
}
.button--ghost:hover { background: rgba(255,255,255,.1); }

.button--white {
  background: #fff;
  color: var(--primary-dark);
}

.text-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--primary);
  font-weight: 800;
}

/* 실제 이미지가 들어오기 전 구조 확인용 */
.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(20,104,184,.12), rgba(53,167,160,.08)),
    #e8eef4;
  color: #82909d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

/* 메인/하위 페이지 공통 푸터 */
.site-footer {
  padding: 58px 0 28px;
  background: #0c1721;
  color: rgba(255,255,255,.6);
  font-size: 13px;
}
.site-footer__inner { display:flex; justify-content:space-between; gap:40px; }
.footer-logo { display:inline-block; margin-bottom:16px; color:#fff; font-size:22px; font-weight:900; }
.site-footer__links { display:flex; gap:22px; color:rgba(255,255,255,.8); }
.site-footer__copyright { margin-top:34px; padding-top:22px; border-top:1px solid rgba(255,255,255,.1); font-size:11px; }
html.site-concept-clean-blue .site-footer { background:#092c4b; }
html.site-concept-calm-teal .site-footer { background:#234b45; }
html.site-concept-warm-coral .site-footer { background:#5b2c20; }
html.site-concept-premium-navy .site-footer { border-top:1px solid #c49a55; background:#070e18; }
html.site-concept-violet-tech .site-footer { background:#291c54; }
html.site-concept-swiss-red .site-footer { border-top:8px solid #e33b32; background:#151515; }
html.site-concept-botanical-sage .site-footer { background:#334a3d; }
html.site-concept-heritage-burgundy .site-footer { border-top:3px double #d5b9b2; background:#3e2027; }
html.site-concept-aero-silver .site-footer { border-top:1px solid rgba(191,211,234,.65); background:linear-gradient(135deg,#0a1b2e,#112d4c); }
html.site-concept-gallery-cobalt .site-footer { border-top:16px solid #1747d1; background:#12161d; }
html.site-concept-quiet-linen .site-footer { border-top:1px solid #9a7b57; background:#302a25; }
html.site-concept-mono-editorial .site-footer { border-top:8px solid #fff; background:#171b20; }

/* The global site palette owns footer and shared placeholder colors. Concept rules above keep geometry only. */
html[class*="site-concept-"] .site-footer {
  border-color: color-mix(in srgb,var(--site-concept-accent) 54%,var(--site-concept-accent-dark));
  background: linear-gradient(135deg,var(--site-concept-accent-dark),color-mix(in srgb,var(--site-concept-accent-dark) 78%,var(--site-concept-accent)));
  color: color-mix(in srgb,var(--site-concept-on-accent) 68%,transparent);
}
html[class*="site-concept-"] .footer-logo { color:var(--site-concept-on-accent); }
html[class*="site-concept-"] .site-footer__links { color:color-mix(in srgb,var(--site-concept-on-accent) 84%,transparent); }
html[class*="site-concept-"] .site-footer__copyright { border-color:color-mix(in srgb,var(--site-concept-on-accent) 16%,transparent); }
html[class*="site-concept-"] .image-placeholder {
  background:linear-gradient(135deg,color-mix(in srgb,var(--site-concept-accent) 13%,var(--site-concept-surface)),var(--site-concept-soft));
  color:var(--site-concept-muted);
}

@media (max-width:560px) {
  .site-footer__inner { flex-direction:column; }
  .site-footer__links { flex-wrap:wrap; }
}

/* 2026 blue medical collection · shared geometry and footer systems */
html.site-concept-midnight-command { --radius-sm:2px; --radius-md:3px; --radius-lg:4px; --shadow-soft:0 24px 70px rgba(0,8,20,.34); }
html.site-concept-cobalt-modular { --radius-sm:0; --radius-md:0; --radius-lg:0; --shadow-soft:9px 9px 0 rgba(6,71,230,.16); }
html.site-concept-surgical-mono { --radius-sm:0; --radius-md:0; --radius-lg:0; --shadow-soft:none; }
html.site-concept-imaging-glass { --radius-sm:10px; --radius-md:18px; --radius-lg:28px; --shadow-soft:0 26px 80px rgba(0,10,28,.32); }

html.site-concept-midnight-command body,
html.site-concept-imaging-glass body { background:var(--site-concept-surface); color:var(--site-concept-title); }

html.site-concept-midnight-command .site-footer {
  position:relative;
  padding-top:78px;
  border-top:1px solid var(--site-concept-accent);
  background-color:#050b14;
  background-image:linear-gradient(rgba(47,125,244,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(47,125,244,.07) 1px,transparent 1px);
  background-size:30px 30px;
}
html.site-concept-midnight-command .site-footer::before { content:"SYSTEM / ONLINE"; position:absolute; top:23px; left:max(24px,calc((100% - var(--container))/2)); color:#72adff; font:800 10px/1 Consolas,monospace; letter-spacing:.18em; }
html.site-concept-midnight-command .footer-logo { padding:9px 12px; border:1px solid #2f7df4; font:800 17px/1 Consolas,Pretendard,sans-serif; letter-spacing:-.04em; }
html.site-concept-midnight-command .site-footer__links { display:grid; grid-template-columns:repeat(3,auto); gap:0; border:1px solid #233a58; }
html.site-concept-midnight-command .site-footer__links a { padding:12px 16px; border-right:1px solid #233a58; }

html.site-concept-cobalt-modular .site-footer { padding-top:0; border-top:18px solid #0647e6; background:#071426; }
html.site-concept-cobalt-modular .site-footer__inner { padding-top:58px; }
html.site-concept-cobalt-modular .footer-logo { padding:10px 14px; background:#0647e6; color:#fff; font-size:18px; text-transform:uppercase; }
html.site-concept-cobalt-modular .site-footer__links { gap:0; border:1px solid rgba(255,255,255,.36); }
html.site-concept-cobalt-modular .site-footer__links a { padding:12px 17px; border-right:1px solid rgba(255,255,255,.36); }

html.site-concept-surgical-mono .site-footer { border-top:1px solid #090d13; background:#f8fafc; color:#5c6673; }
html.site-concept-surgical-mono .footer-logo { color:#090d13; font-family:Georgia,"Nanum Myeongjo",serif; font-weight:700; }
html.site-concept-surgical-mono .site-footer__links { color:#090d13; }
html.site-concept-surgical-mono .site-footer__links a { padding-bottom:5px; border-bottom:1px solid #090d13; }
html.site-concept-surgical-mono .site-footer__copyright { border-color:#abb7c6; }

html.site-concept-imaging-glass .site-footer { position:relative; overflow:hidden; border-top:1px solid #27527c; background:radial-gradient(circle at 15% 0,rgba(69,162,255,.21),transparent 32%),linear-gradient(135deg,#051225,#0b1b31); }
html.site-concept-imaging-glass .site-footer::after { content:""; width:320px; height:320px; position:absolute; right:-130px; bottom:-190px; border:1px solid rgba(69,162,255,.3); border-radius:50%; box-shadow:0 0 70px rgba(69,162,255,.15),inset 0 0 60px rgba(69,162,255,.08); }
html.site-concept-imaging-glass .footer-logo { text-shadow:0 0 24px rgba(69,162,255,.4); }
html.site-concept-imaging-glass .site-footer__links { padding:8px; border:1px solid rgba(133,194,255,.22); border-radius:14px; background:rgba(255,255,255,.035); backdrop-filter:blur(18px); }
html.site-concept-imaging-glass .site-footer__links a { padding:7px 10px; }

@media (max-width:560px) {
  html.site-concept-midnight-command .site-footer__links { grid-template-columns:1fr; }
  html.site-concept-midnight-command .site-footer__links a { border-right:0; border-bottom:1px solid #233a58; }
}

/* Footer and utility surfaces follow the same frameless rule as the page. */
html:is(.site-concept-midnight-command,.site-concept-cobalt-modular,.site-concept-surgical-mono,.site-concept-imaging-glass) :is(
  .site-footer,
  .site-footer__inner,
  .site-footer__top,
  .site-footer__links,
  .site-footer__links a,
  .site-footer__copyright,
  .quick-menu,
  .reservation-cta
) { border:0 !important; outline:0 !important; }
