/* 공통 바닥 — 이 시안은 자기 눈금을 갖고 있어 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); }

/* 송추효사랑요양병원(hyomedics.com) — 초록 머리띠 위 흰 로고줄, 슬라이드 위에 노란 안내 배너 카드,
   그 아래 세 칸(병원소식 목록 · 초록 아이콘 4개 · 비급여/오시는길 상자) → 상담전화 큰 숫자 + 진료시간
   + 온라인상담 → 연회색 푸터. 1,300px 안에 끝나는 아주 짧은 홈. 맑은고딕 계열 12px 눈금. */
/* 색 전환기(palette.js)가 색을 고르기 전에는 이 시안 본래의 색을 씁니다.
   .js-pal 이 붙으면 palettes.css 의 --primary 가 이깁니다. */
body:not(.js-pal) { --primary: #2f9a7d; --primary-dk: #27826a; --primary-lt: #e3f2ed; }
body { --g: var(--primary); --g-dk: var(--primary-dk); --y: #ffd84d; }
body { color: #333; font-size: 13px; word-break: keep-all; overflow-wrap: break-word; }

.brand { background: #fff; }
.brand__in { display: flex; align-items: center; height: 74px; gap: 12px; }
.brand__logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--g-dk); }
.brand__logo i { width: 38px; height: 38px; border-radius: 50%; background: var(--g-dk); position: relative; }
.brand__logo i::after { content: "♥"; color: #fff; position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; }
.brand__logo small { display: block; font-size: 12px; color: #6a6a6a; font-weight: 400; letter-spacing: .1em; }
.gnb { background: var(--g-dk); }
.gnb .wrap { display: flex; height: 44px; align-items: center; }
.gnb a { color: #fff; font-weight: 700; font-size: 15px; padding: 0 30px; border-left: 1px solid rgba(255,255,255,.25); }
.gnb a:first-child { border: 0; padding-left: 0; }

.visual { position: relative; height: 460px; overflow: hidden; }
.visual__bg { width: 100%; height: 100%; object-fit: cover; }
.visual .wrap { position: absolute; inset: 0; left: 50%; transform: translateX(-50%); }
.banner { position: absolute; left: 0; top: 60px; width: min(380px, 100%); background: rgba(255,255,255,.96); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); overflow: hidden; }
.banner__h { padding: 26px 26px 18px; }
.banner__h b { display: block; font-size: 30px; color: #1c2b4a; line-height: 1.25; }
.banner__h span { display: inline-block; margin-top: 10px; background: var(--y); padding: 4px 12px; font-weight: 800; font-size: 14px; }
.banner__f { background: var(--g-dk); color: #fff; padding: 12px 26px; font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; }
.visual__name { position: absolute; right: 0; top: 200px; background: rgba(0,0,0,.55); color: #fff; padding: 14px 30px; font-size: 24px; font-weight: 700; letter-spacing: .2em; }
.visual__thumbs { position: absolute; bottom: 24px; left: 0; display: flex; gap: 6px; }
.visual__thumbs img { width: 64px; height: 46px; object-fit: cover; border: 2px solid rgba(255,255,255,.7); border-radius: 4px; opacity: .8; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.visual__thumbs img:first-child { opacity: 1; border-color: #fff; }

.cols { display: grid; grid-template-columns: 300px 1fr 260px; gap: 30px; padding: 40px 0 30px; }
.news h1, .side h1, .ic h1 { font-size: 18px; font-weight: 400; color: #545029; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.news h1 a { font-size: 13px; color: #666; }
.news li { border-bottom: 1px dotted #ccc; padding: 8px 0; }
.news li b { display: block; font-weight: 700; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news li p { color: #666; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic h1 { justify-content: center; text-align: center; }
.icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: center; margin-top: 30px; }
.icons i { width: 74px; height: 74px; margin: 0 auto 10px; border-radius: 50%; border: 2px solid var(--g); color: var(--primary-dk); display: grid; place-items: center; font-size: 32px; font-style: normal; }
.icons b { display: block; font-size: 14px; color: #333; }
.icons span { font-size: 13px; color: #666; }
.side { display: grid; gap: 12px; align-content: start; }
.side div { color: #fff; padding: 16px 18px; border-radius: 6px; }
.side div:nth-child(1) { background: var(--g-dk); } .side div:nth-child(2) { background: #607d50; } .side div:nth-child(3) { background: #9a6c21; }
.side h1 { color: #fff; font-size: 18px; margin-bottom: 2px; }
.side p { font-size: 13px; }

.bottom { display: grid; grid-template-columns: 1fr 1fr 220px; gap: 30px; padding: 20px 0 40px; border-top: 1px solid #e5e5e5; }
.bottom h1 { font-size: 18px; font-weight: 400; margin-bottom: 8px; }
.tel { font-size: 28px; font-weight: 700; color: #555; letter-spacing: .04em; }
.tel::before { content: "☎ "; color: var(--primary-dk); }
.time { font-size: 13px; line-height: 1.9; }
.time b { display: inline-block; width: 90px; color: #666; }
.online { text-align: center; }
.online i { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 8px; background: var(--g-dk); color: #fff; display: grid; place-items: center; font-size: 34px; font-style: normal; }
.online span { font-size: 13px; color: #666666; }

.ft { background: #f1f1f1; color: #595959; font-size: 13px; line-height: 1.9; padding: 22px 0 30px; }
.ft nav { margin-bottom: 8px; display: flex; gap: 16px; color: #555; font-weight: 700; }
.ft nav em { margin-left: auto; font-style: normal; color: #1f6a56; }
.ft__legal { margin-top: 8px; color: #595959; }
.ft p span, .ft__legal li { text-wrap: pretty; }
.ft p span { white-space: nowrap; }
@media (max-width: 900px) {
  .cols, .bottom { grid-template-columns: 1fr; }
  .gnb .wrap { display: grid; grid-template-columns: repeat(3, 1fr); height: auto; padding: 0; }
  .gnb a { padding: 11px 4px; font-size: 14px; text-align: center; border-left: 1px solid rgba(255,255,255,.2); border-top: 1px solid rgba(255,255,255,.2); }
  .gnb a:nth-child(3n+1) { border-left: 0; padding-left: 4px; }
  .gnb a:nth-child(-n+3) { border-top: 0; }
  .visual { height: 400px; }
  .visual__name { display: none; }
  .banner { top: 40px; }
  .visual__thumbs { bottom: 20px; }
  .icons { gap: 8px; }
  .icons i { width: 64px; height: 64px; font-size: 28px; }
  .time b { width: 80px; }
}
@media (max-width: 420px) { .brand__logo { font-size: 18px; } }

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