/* =========================================================
   센터원 테마 전용 — c1.css(디자인 원본에서 복사) 위에 얹는 것만.
   c1.css 는 _design/sync_theme.py 가 덮어쓰므로 여기에는 테마에만 있는 것
   (하위 메뉴 · 모바일 서랍 · 주치의 링크 · 고정 헤더 · 래퍼)을 둔다.
========================================================= */

body.c1-body { background: #f2f4f6; }
/* 상류 style.css 의 body { text-rendering: optimizeLegibility } 가 커닝을 켜 글자 폭이 디자인보다 좁아진다 */
.c1 { text-rendering: auto; }
.c1-host, .c1-chrome { display: block; }
.c1-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.c1-skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #191f28; color: #fff !important; font-size: 14px; font-weight: 700; }
.c1-skip:focus { top: 12px; }

/* ── 고정 헤더 ─────────────────────────────────────────── */
.c1-chrome--head { position: sticky; top: 0; z-index: 60; }
body.admin-bar .c1-chrome--head { top: 32px; }
@media (max-width: 782px) { body.admin-bar .c1-chrome--head { top: 0; } }
.c1-chrome--head .c1-hd { transition: box-shadow .2s; }
.c1-chrome--head.is-scrolled .c1-hd { box-shadow: 0 1px 0 #e5e8eb, 0 8px 24px rgba(25, 31, 40, .06); }

/* ── 1차 메뉴 + 하위 메뉴 ───────────────────────────────── */
.c1 .c1-hd__nav { align-items: center; align-self: stretch; }
.c1 .c1-hd__item { position: relative; display: flex; align-items: center; height: 100%; }
.c1 .c1-hd__item > a { padding: 8px 0; transition: color .15s; }
.c1 .c1-hd__item > a:hover { color: #191f28; }
.c1 .c1-hd__sub { position: absolute; top: calc(100% - 8px); left: 50%; min-width: 220px; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 16px 40px rgba(25, 31, 40, .14); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .16s, transform .16s, visibility .16s; }
.c1 .c1-hd__item:hover .c1-hd__sub,
.c1 .c1-hd__item:focus-within .c1-hd__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.c1 .c1-hd__sub a { display: block; padding: 11px 14px; border-radius: 12px; font-size: 15px; font-weight: 600; color: #4e5968; white-space: nowrap; }
.c1 .c1-hd__sub a:hover, .c1 .c1-hd__sub a:focus-visible { background: #f2f4f6; color: #191f28; }

/* ── 주치의 링크 · 전화 버튼 · 햄버거 ───────────────────── */
.c1 .c1-hd__cta { gap: 6px; }
.c1 .c1-hd__cta-num { font-family: var(--c1-en); letter-spacing: .01em; }
.c1 .c1-hd__burger { display: none; position: relative; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.c1 .c1-hd__burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: #191f28; }
.c1 .c1-hd__burger span:nth-child(1) { top: 15px; }
.c1 .c1-hd__burger span:nth-child(2) { top: 21px; }
.c1 .c1-hd__burger span:nth-child(3) { top: 27px; }

@media (max-width: 1240px) {
  .c1 .c1-hd__cta-label { display: none; }
  .c1 .c1-hd__nav { gap: 26px; margin-right: 24px; }
}
@media (max-width: 1100px) {
  .c1 .c1-hd__nav, .c1 .c1-hd__member { display: none; }
  .c1 .c1-hd__util { margin-left: auto; gap: 8px; }
  .c1 .c1-hd__burger { display: block; }
}
@media (max-width: 560px) {
  .c1.v-h .c1-hd { height: 60px; }
  .c1.v-h .c1-hd__logo img { height: 24px; }
  .c1 .c1-hd__in { padding: 0 16px; }
  .c1 .c1-hd__cta-num { display: none; }
  .c1 .c1-hd__cta { width: 44px; padding: 0; border-radius: 12px; }
}

/* ── 모바일 서랍 ───────────────────────────────────────── */
.c1-drawer { position: fixed; inset: 0; z-index: 200; }
.c1-drawer[hidden] { display: none; }
.c1 .c1-drawer__bg { position: absolute; inset: 0; background: rgba(25, 31, 40, .45); }
.c1 .c1-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); overflow-y: auto; padding: 18px 20px 32px; background: #fff; box-shadow: -12px 0 40px rgba(25, 31, 40, .18); animation: c1-drawer-in .22s ease-out; }
@keyframes c1-drawer-in { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
.c1 .c1-drawer__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #e5e8eb; }
.c1 .c1-drawer__member { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--c1-teal-700); }
.c1 .c1-drawer__close { width: 40px; height: 40px; border: 0; border-radius: 12px; background: #f2f4f6; font-size: 24px; line-height: 1; color: #191f28; cursor: pointer; }
.c1 .c1-drawer__list li { border-bottom: 1px solid #f2f4f6; }
.c1 .c1-drawer__parent { display: block; padding: 16px 4px; font-size: 18px; font-weight: 800; letter-spacing: -.03em; color: #191f28; }
.c1 .c1-drawer__list li.is-on > .c1-drawer__parent { color: var(--c1-teal-700); }
.c1 .c1-drawer__kids { display: grid; gap: 2px; margin: -6px 0 12px; }
.c1 .c1-drawer__kids a { padding: 9px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: #4e5968; }
.c1 .c1-drawer__kids a:hover { background: #f2f4f6; }
.c1 .c1-drawer__call { margin-top: 24px; padding: 20px; border-radius: 20px; background: #f2f4f6; }
.c1 .c1-drawer__call p { font-size: 14px; font-weight: 700; color: #4e5968; }
.c1 .c1-drawer__call .c1-btn { width: 100%; margin: 12px 0 10px; font-family: var(--c1-en); }
.c1 .c1-drawer__call small { display: block; font-size: 13px; line-height: 1.7; color: #8b95a1; }
html.c1-lock, html.c1-lock body { overflow: hidden; }

/* ── 본문 ──────────────────────────────────────────────── */
.c1 .c1-sec--article { padding-top: 24px; }
.c1 .c1-crumb a:hover { text-decoration: underline; }

/* ── 푸터 ──────────────────────────────────────────────── */
.c1 .c1-ft__tel a { color: inherit; }
@media (max-width: 1100px) {
  .c1 .c1-ft__top { flex-direction: column; gap: 24px; }
  .c1 .c1-ft__links { flex-wrap: wrap; gap: 14px 22px; }
}
@media (max-width: 760px) {
  .c1 .c1-ft { padding: 48px 0 40px; }
  .c1 .c1-ft__info { grid-template-columns: 1fr; gap: 22px; }
  .c1 .c1-ft__tel { font-size: 24px; }
  .c1 .c1-ft__copy { margin-top: 28px; line-height: 1.8; }
}

/* ── 콘솔 연결 부품 (Centerone_Blocks) ─────────────────── */
.c1 .c1-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--c1-ink); outline: none; }
.c1 .c1-search input::placeholder { color: var(--c1-mute); }
.c1 .c1-search button { flex: none; cursor: pointer; }
.c1 .c1-scard[hidden] { display: none; }
.c1 .c1-empty { padding: 28px; border-radius: 20px; background: #fff; font-size: 15px; color: var(--c1-mute); text-align: center; }
.c1 .c1-news .c1-empty { padding: 22px 4px; background: none; text-align: left; }
.c1 .c1-hours-special { display: grid; gap: 6px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: #fff3df; font-size: 14px; color: #8a5a10; }
.c1 .c1-hours-special b { margin-right: 8px; color: #191f28; }
.c1 .c1-hours-special span { color: #8b95a1; }
.c1 .c1-article__side > .c1-btn { width: 100%; }

/* ── 콘솔 › 공지/배너 연결 ─────────────────────────────── */
/* 헤더 마키 — 고정 헤더 안 맨 위 한 줄. 상류 style.css 는 640px 아래에서 fixed 로 띄우는데
   c1 은 헤더째 sticky 라 흐름 안에 둔다. */
body.c1-body .clinic-marquee { position: relative !important; top: auto !important; height: 36px; background: #191f28; color: #fff; font-family: var(--c1-font); font-size: 13.5px; }
body.c1-body .clinic-marquee-item { padding: 0 max(16px, calc(50% - 592px)); }
body.c1-body .clinic-marquee-title { color: #fff; }
body.c1-body .clinic-marquee-dot { color: #ffa62b; opacity: 1; }
body.c1-body .clinic-marquee-item:hover .clinic-marquee-title { color: #82c0cc; }
/* 메뉴 배너 — 모바일 서랍 아래 정사각 3칸 */
.c1 .c1-drawer .medisync01-mnav__banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.c1 .c1-drawer .medisync01-mnav__banners img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; }
/* 팝업 — 배너 한 장일 때 상류는 1040px 무대에 600px 그림을 가운데 두고 아래 줄만 넓게 남겼다 */
body.c1-body .medisync01-notice-popup__dialog:has(.medisync01-banner--single-center) { width: min(640px, 94vw); }
