/* 공통 바닥 — 이 시안은 자기 눈금을 갖고 있어 layouts.css 의 눈금을 쓰지 않습니다. */
html { overflow-x: hidden; }
h1, h2, h3, h4 { line-height: 1.3; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 동두천서울요양병원(seoulyoyang.kr) — 흰 머리 + 짙은 사진 히어로에 굵은 흰 글 가운데 정렬,
   전화번호는 노란 형광펜, 「소개」 가운데 제목 + 검은 영상 상자 → 인사말 + 사진 → 짙은 회색 띠에
   흰 사진 카드 6장 → 문의·오시는 길 + 지도 → 검은 푸터. 글꼴 Noto Sans 계열의 단정한 병원 홈. */
/* 색 전환기(palette.js)가 색을 고르기 전에는 이 시안 본래의 색을 씁니다.
   .js-pal 이 붙으면 palettes.css 의 --primary 가 이깁니다. */
body:not(.js-pal) { --primary: #1a4f8b; --primary-dk: #123a68; --primary-lt: #e6eef8; }
body { --blue: var(--primary); --y: #ffe600; --gray: #4a4a4a; }
body { color: #333; }

.hd { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid #e5e5e5; }
.hd__in { display: flex; align-items: center; height: 80px; gap: 40px; }
.hd__logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--blue); }
.hd__logo i { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); display: inline-block; position: relative; }
.hd__logo i::after { content: "+"; color: #fff; font-weight: 900; font-size: 24px; position: absolute; inset: 0; display: grid; place-items: center; }
.nv { display: flex; gap: 34px; margin-left: auto; font-size: 15px; font-weight: 600; }
.nv a:hover { color: var(--blue); }

.hero { position: relative; min-height: 620px; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55); }
.hero__in { position: relative; padding: 60px 20px; }
.hero__t { font-size: 34px; font-weight: 800; line-height: 1.5; text-shadow: 0 2px 10px rgba(0,0,0,.5); color: #fff; }
.hero__t small { display: block; font-size: 26px; font-weight: 700; }
.hero__tel { margin-top: 30px; font-size: 26px; font-weight: 800; line-height: 1.6; }
.hero__tel span { background: var(--y); color: #111; padding: 2px 10px; }
.hero__dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.hero__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.5); }
.hero__dots i:first-child { background: #fff; }
.hero__arr { position: absolute; top: 50%; width: 44px; height: 44px; border: 2px solid rgba(255,255,255,.6); border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 20px; }
.hero__arr--l { left: 24px; } .hero__arr--r { right: 24px; }

.sec { padding: 70px 0; }
.sec__t { text-align: center; font-size: 26px; font-weight: 700; color: #222; margin-bottom: 36px; }
.sec__t::after { content: ""; display: block; width: 40px; height: 2px; background: var(--blue); margin: 14px auto 0; }
.video { position: relative; aspect-ratio: 16/6.4; justify-items: center; padding: 24px; background: radial-gradient(ellipse at center, #3a1f3a 0%, #120a12 70%); border-radius: 4px; color: #fff; display: grid; place-content: center; text-align: center; }
.video__yt { display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.video__yt i { width: 68px; height: 48px; background: #ff0000; border-radius: 12px; display: inline-block; position: relative; }
.video__yt i::after { content: ""; position: absolute; left: 27px; top: 14px; border-left: 18px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.video b { font-size: 18px; }
.video p { margin-top: 8px; font-size: 14px; color: #d6cfd6; }

.greet { display: grid; grid-template-columns: 1fr 300px; gap: 50px; align-items: start; }
.greet p { font-size: 15px; color: #555; margin-bottom: 14px; line-height: 1.9; }
.greet strong { display: block; font-size: 18px; color: #222; margin-bottom: 18px; }
.greet__sig { margin-top: 26px; font-size: 14px; color: #666666; }
.greet__sig b { font-family: "Gowun Batang", Batang, serif; font-size: 24px; color: #222; margin-left: 12px; }
.greet img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }

.dark { background: #4a4a4a; color: #fff; }
.dark .sec__t { color: #fff; } .dark .sec__t::after { background: #fff; }
.dark__lead { text-align: center; font-size: 15px; color: #ddd; margin: -14px 0 40px; line-height: 1.8; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cd { background: #fff; color: #333; display: flex; flex-direction: column; }
.cd img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card__b { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.cd h3 { font-size: 17px; margin-bottom: 8px; }
.cd p { font-size: 13.5px; color: #666; line-height: 1.7; }
.cd a { color: var(--blue); font-size: 13px; margin-top: auto; padding-top: 10px; align-self: flex-start; }
.dark__btn { display: block; width: fit-content; margin: 40px auto 0; padding: 14px 40px; border: 1px solid #fff; color: #fff; font-size: 14px; font-weight: 600; }

.contact { text-align: center; font-size: 14px; color: #555; line-height: 2; }
.map { margin-top: 30px; height: 380px; background: #e9eef0; position: relative; overflow: hidden;
  background-image: linear-gradient(#d9e0e4 1px, transparent 1px), linear-gradient(90deg, #d9e0e4 1px, transparent 1px); background-size: 60px 60px; }
.map::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; background: var(--blue); border-radius: 50% 50% 50% 0; transform: translate(-50%, -100%) rotate(-45deg); }
.map span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, 10px); white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--blue); }

.ft { background: #232323; color: #b5b5b5; font-size: 12.5px; line-height: 1.9; padding: 34px 0; }
.ft b { color: #fff; }
.ft__legal { margin-top: 14px; padding-top: 12px; border-top: 1px solid #3a3a3a; font-size: 12px; color: #9a9a9a; }
.nw { white-space: nowrap; }
.sep { font-style: normal; }

/* 모바일 메뉴 — 스크립트 없이 <details> 로 엽니다. 넓은 화면에서는 숨깁니다. */
.mnav { display: none; }
.mnav summary { list-style: none; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; cursor: pointer; border-radius: 4px; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary span { display: block; width: 24px; height: 2px; background: #333; transition: transform .2s, opacity .2s; }
.mnav[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mnav[open] summary span:nth-child(2) { opacity: 0; }
.mnav[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mnav__list { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid #e5e5e5; box-shadow: 0 10px 20px rgba(0,0,0,.12); display: flex; flex-direction: column; }
.mnav__list a { padding: 15px 24px; border-bottom: 1px solid #eee; font-size: 16px; font-weight: 600; color: #333; }
.mnav__list a:hover { color: var(--blue); }

@media (max-width: 860px) {
  .nv { display: none; }
  .mnav { display: block; margin-left: auto; }
  .hd__in { height: 68px; }
  .greet, .cards { grid-template-columns: 1fr; }
  .greet img { aspect-ratio: 3/2; }
  .cards { grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero { min-height: 480px; }
  .hero__arr { display: none; }
  .hero__t { font-size: 24px; } .hero__t small { font-size: 18px; margin-top: 4px; }
  .hero__tel { font-size: 19px; }
  .hero__tel span { white-space: nowrap; }
  .video { aspect-ratio: 16/10; }
  .contact > span, .ft .nw { display: block; }
  .contact .sep, .ft .sep, .ft .nw + br { display: none; }
  .contact { line-height: 1.8; }
  .map { height: 300px; }
}
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .hero__tel { font-size: 17px; } .hero__t { font-size: 22px; } }

/* ── 원래 인라인 style 이던 자리 — CSP 때문에 클래스로 뺐습니다 ── */
.si-1 { padding-top:0; }
