/*
Theme Name: Dolbom Basic
Description: 돌봄홈 시설 표준 테마 (지역아동센터·다함께돌봄·어린이집) — 샘톡 연동
Version: 0.2.0
Author: 제이소프트
Text Domain: dolbom-basic
Requires PHP: 7.4
*/

:root {
  --ink: #1c2b24;
  --sub: #4e5d55;
  --line: #e4ece7;
  --soft: #f7faf8;
  --mint: #eef7f1;
  --primary: #237a57;
  --primary-ink: #1d6a4b;
  --accent: #f6b93b;
  --warm: #b5452a;
  --dark: #1c2b24;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: 'Noto Sans KR', sans-serif; line-height: 1.6; word-break: keep-all; }
a { color: var(--primary-ink); }
a:hover { color: #134b35; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.jua { font-family: 'Jua', 'Noto Sans KR', sans-serif; font-weight: 400; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 상단 안내줄 */
.topbar { background: var(--dark); color: #d9e6df; font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar .right { display: flex; gap: 18px; }

/* 헤더 */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: relative; z-index: 50; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .logo { width: 46px; height: 46px; border-radius: 50%; background: var(--mint); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 46px; }
.brand .logo img { width: 46px; height: 46px; object-fit: cover; }
.brand .logo.sq, .b-avatar.sq { border-radius: 12%; }   /* 로고 모양 정사각형 (PC관리자에서 고름) - 2026-11-04 */
.brand .logo.has-logo, .b-avatar.has-logo { background: #fff; }   /* 올린 로고(투명 PNG) 뒤는 흰색 — 기본 집 아이콘일 때만 초록 - 2026-11-04 */
.brand .name { display: flex; flex-direction: column; line-height: 1.2; }
.brand .name b { font-family: 'Jua', sans-serif; font-weight: 400; font-size: 26px; }
.brand .name small { font-size: 12px; color: var(--sub); }

.nav-toggle { display: none; }
.nav-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; align-items: center; justify-content: center; cursor: pointer; background: #fff; }
.nav-area { display: flex; align-items: center; gap: 18px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; gap: 4px 6px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: block; padding: 10px 12px; font-size: 17px; font-weight: 700; color: var(--ink); text-decoration: none; border-radius: 10px; }
.main-nav > ul > li > a:hover, .main-nav > ul > li.current-menu-ancestor > a, .main-nav > ul > li.current-menu-item > a { color: var(--primary-ink); background: var(--mint); }
.main-nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.08); display: none; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: block; }
.main-nav .sub-menu a { display: block; padding: 9px 12px; font-size: 15px; color: var(--ink); text-decoration: none; border-radius: 8px; }
.main-nav .sub-menu a:hover { background: var(--soft); color: var(--primary-ink); }
.btn { display: inline-block; text-decoration: none; font-weight: 800; border-radius: 14px; padding: 14px 24px; font-size: 17px; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { color: var(--ink); filter: brightness(.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(1.05); }
.btn-white { background: #fff; color: var(--primary-ink); }
.btn-line { border: 1px solid var(--primary); color: var(--primary-ink); background: #fff; }
.btn-sm { padding: 10px 18px; font-size: 15px; border-radius: 12px; }
.btn-pill { border-radius: 999px; padding: 10px 20px; }

@media (max-width: 960px) {
  .nav-btn { display: inline-flex; }
  .nav-area { width: 100%; display: none; flex-direction: column; align-items: stretch; }
  .nav-toggle:checked ~ .nav-area { display: flex; }
  .main-nav > ul { flex-direction: column; }
  .main-nav .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 6px 14px; }
}

/* 메인 배너 */
.hero { background: var(--mint); }
.hero .wrap { padding-top: 32px; padding-bottom: 32px; }
.hero-box { position: relative; border-radius: 28px; overflow: hidden; background: #cfe8f2; min-height: 420px; display: flex; align-items: flex-end; }
.hero-box > svg, .hero-box > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-text { position: relative; padding: 44px; display: flex; flex-direction: column; gap: 14px; max-width: 600px; }
.hero-text h1 { margin: 0; font-size: 46px; line-height: 1.25; }
.hero-text p { margin: 0; font-size: 18px; color: #2c3a33; }
.hero-text .btns { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.hero-box.has-photo { align-items: center; }
.hero-box.has-photo > img { object-position: center 60%; }
.hero-box .hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,25,15,.62) 0%, rgba(10,25,15,.25) 45%, rgba(10,25,15,0) 70%); }
.hero-box.has-photo .hero-text h1 { color: #fff; }
.hero-box.has-photo .hero-text p { color: #eef3ef; }
@media (max-width: 600px) { .hero-text { padding: 28px; } .hero-text h1 { font-size: 32px; } .hero-box { min-height: 360px; } }
/* A안 메인 문구·버튼·배경·배치 (PC관리자에서 고름) - 2026-11-10 */
.hero-box.has-photo { max-height: 640px; }
.hero-box .hero-text h1, .hero-box .hero-text p { word-break: keep-all; }   /* 줄바꿈은 낱말 단위 */
.hero-box .hero-shade { background: linear-gradient(90deg, rgba(var(--hs-rgb), var(--hs-a)) 0%, rgba(var(--hs-rgb), calc(var(--hs-a) * .4)) 45%, rgba(var(--hs-rgb), 0) 70%); }
.hero-box.hs-h-r .hero-shade { background: linear-gradient(270deg, rgba(var(--hs-rgb), var(--hs-a)) 0%, rgba(var(--hs-rgb), calc(var(--hs-a) * .4)) 45%, rgba(var(--hs-rgb), 0) 70%); }
.hero-box.hs-h-c .hero-shade { background: rgba(var(--hs-rgb), calc(var(--hs-a) * .6)); }
.hero-box.hs-v-t { align-items: flex-start; } .hero-box.hs-v-m { align-items: center; } .hero-box.hs-v-b { align-items: flex-end; }
.hero-box.hs-h-l { justify-content: flex-start; }
.hero-box.hs-h-c { justify-content: center; } .hero-box.hs-h-c .hero-text { text-align: center; align-items: center; } .hero-box.hs-h-c .btns { justify-content: center; }
.hero-box.hs-h-r { justify-content: flex-end; } .hero-box.hs-h-r .hero-text { text-align: right; align-items: flex-end; } .hero-box.hs-h-r .btns { justify-content: flex-end; }
.hero-box.hs-font-jua .hero-text h1 { font-family: 'Jua', 'Noto Sans KR', sans-serif; font-weight: 400; }
.hero-box.hs-font-gothic .hero-text h1 { font-family: 'Noto Sans KR', sans-serif; font-weight: 900; letter-spacing: -.5px; }
.hero-box.hs-font-serif .hero-text h1 { font-family: 'Noto Serif KR', serif; font-weight: 700; }
.hero-box.hs-size-s .hero-text h1 { font-size: 34px; } .hero-box.hs-size-m .hero-text h1 { font-size: 46px; } .hero-box.hs-size-l .hero-text h1 { font-size: 58px; }
.hero-box.hs-light .hero-text h1 { color: #fff; } .hero-box.hs-light .hero-text p { color: #eef3ef; }
.hero-box.hs-dark .hero-text h1 { color: var(--ink); } .hero-box.hs-dark .hero-text p { color: #2c3a33; }
/* 나란히: 한쪽 색 바탕에 글, 다른 쪽 사진 (글이 사진을 가리지 않음). 오른쪽 위치면 사진이 왼쪽 */
.hero-box.hs-split { display: grid; grid-template-columns: 42% 58%; background: rgb(var(--hs-rgb)); max-height: none; }
.hero-box.hs-split .hero-text { grid-column: 1; grid-row: 1; align-self: center; max-width: none; }
.hero-box.hs-split.hs-v-t .hero-text { align-self: start; } .hero-box.hs-split.hs-v-b .hero-text { align-self: end; }
.hero-box.hs-split .hs-photo { grid-column: 2; grid-row: 1; position: relative; overflow: hidden; min-height: 420px; max-height: 640px; }
.hero-box.hs-split .hs-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-box.hs-split.hs-h-r { grid-template-columns: 58% 42%; } .hero-box.hs-split.hs-h-r .hero-text { grid-column: 2; } .hero-box.hs-split.hs-h-r .hs-photo { grid-column: 1; }
@media (max-width: 600px) {
  .hero-box.hs-size-s .hero-text h1 { font-size: 26px; } .hero-box.hs-size-m .hero-text h1 { font-size: 32px; } .hero-box.hs-size-l .hero-text h1 { font-size: 38px; }
  .hero-box.hs-split, .hero-box.hs-split.hs-h-r { grid-template-columns: 1fr; }
  .hero-box.hs-split .hs-photo, .hero-box.hs-split.hs-h-r .hs-photo { grid-column: 1; grid-row: 1; min-height: 220px; }
  .hero-box.hs-split .hero-text, .hero-box.hs-split.hs-h-r .hero-text { grid-column: 1; grid-row: 2; }
}

/* 바로가기 */
.quick { background: var(--mint); }
.quick .wrap { padding-bottom: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.quick a { background: #fff; border-radius: var(--radius); padding: 22px 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 700; }
.quick a:hover { box-shadow: 0 8px 20px rgba(0,0,0,.06); color: var(--primary-ink); }

/* 섹션 */
.sec { padding: 64px 0; }
.sec.soft { background: var(--soft); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 22px; }
.sec-head h2 { margin: 0; font-size: 34px; }
.sec-head p { margin: 4px 0 0; font-size: 15px; color: var(--sub); }
.more { font-weight: 700; text-decoration: none; }

.grid-album { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }   /* auto-fill: 글이 1개여도 화면 폭 전체로 늘어나지 않게 - 2026-11-10 */
.card-album { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.card-album .thumb { height: 150px; border-radius: 18px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; }
.card-album .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-album b { font-size: 17px; }
.card-album span { font-size: 14px; color: var(--sub); }
.tone-0 { background: #fde6c8; color: #7a4b00; } .tone-1 { background: #d6ecf5; color: #1f5871; }
.tone-2 { background: #dff0e6; color: #1d6a4b; } .tone-3 { background: #ffe3da; color: #8a3520; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.panel { background: #fff; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; }
.panel-head h3 { margin: 0; font-size: 22px; font-weight: 800; }
.list { margin: 0; padding: 0; list-style: none; font-size: 16px; }
.list li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf2ef; text-decoration: none; color: var(--ink); }
.list li:last-child a { border-bottom: 0; }
.list li a:hover { color: var(--primary-ink); }
.list .date { color: var(--sub); flex: 0 0 auto; }
.list li a { align-items: center; }
.list .li-t { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.list .li-ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.list .li-ico.meal { background: #fff1cc; color: #c27a00; }   /* 식단 아이콘 - 2026-11-10 */
.empty { color: var(--sub); font-size: 15px; padding: 10px 0; }
.mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mini a { border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.mini .green { background: var(--mint); } .mini .green b { color: var(--primary-ink); }
.mini .yellow { background: #fff4da; } .mini .yellow b { color: #7a4b00; }

.grid-needs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.card-need { border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card-need b { font-size: 19px; }
.card-need p { margin: 0; font-size: 15px; color: var(--sub); }
.card-need .btns { display: flex; gap: 10px; padding-top: 4px; }

.donate-band { background: var(--primary); color: #fff; }
.donate-band .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.donate-band h2 { margin: 0 0 10px; font-size: 34px; }
.donate-band p { margin: 0; font-size: 17px; color: #e3f1ea; }
.donate-band .btns { display: flex; flex-wrap: wrap; gap: 12px; }

.logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.logos > * { height: 64px; border-radius: 14px; background: var(--soft); border: 1px dashed #c9d9cf; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--sub); text-decoration: none; padding: 6px; text-align: center; }
.links { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.links a { display: flex; justify-content: space-between; text-decoration: none; color: var(--ink); background: var(--soft); border-radius: 12px; padding: 12px 16px; }
.links a:hover { color: var(--primary-ink); }

/* 하위 페이지 */
.page-head { background: var(--mint); }
.page-head .wrap { padding-top: 40px; padding-bottom: 40px; }
.page-head .crumb { font-size: 14px; color: var(--sub); }
.page-head .crumb a { text-decoration: none; }
.page-head h1 { margin: 6px 0 0; font-size: 38px; }
.page-head .head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.page-head .head-chips { margin-top: 6px; }
.content { padding: 48px 0 72px; }
.content .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.side { flex: 1 1 220px; max-width: 260px; }
.side h2 { margin: 0 0 12px; font-size: 20px; }
.side ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.side li a { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.side li:last-child a { border-bottom: 0; }
.side li.on a, .side li a:hover { background: var(--mint); color: var(--primary-ink); font-weight: 700; }
.main-col { flex: 999 1 560px; min-width: 0; }
.entry { font-size: 17px; }
.entry h2 { font-size: 26px; margin: 32px 0 12px; }
.entry h3 { font-size: 21px; margin: 24px 0 10px; }
.entry table { border-collapse: collapse; width: 100%; }
.entry td, .entry th { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry th { background: var(--soft); }
.entry .notice-box { background: #fff4da; border-radius: 14px; padding: 16px 20px; }
.post-meta { color: var(--sub); font-size: 15px; margin-bottom: 20px; }
.board { border-top: 2px solid var(--ink); }
.board a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: 17px; }
.board a:hover { color: var(--primary-ink); background: var(--soft); }
.board .date { color: var(--sub); flex: 0 0 auto; font-size: 15px; }
.pager { display: flex; gap: 8px; justify-content: center; padding-top: 28px; }
.pager .page-numbers { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; }
.pager .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.back { display: inline-block; margin-top: 32px; }

/* ===== 시안 전환 막대 ===== */
.layout-switch { position: sticky; top: 0; z-index: 100; background: #111; color: #ddd; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; padding: 6px 10px; }
.layout-switch span { margin-right: 6px; opacity: .8; }
.layout-switch a { color: #fff; text-decoration: none; padding: 4px 12px; border-radius: 999px; border: 1px solid #444; }
.layout-switch a.on { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 800; }

/* ===== B·C안 공통: 메뉴 4개 헤더 + 휴대폰 탭바 ===== */
.btn-soft { background: var(--mint); color: var(--primary-ink); }
.btn-warm { background: var(--warm); color: #fff; }
.btn-warm:hover { color: #fff; }
.btn-ghost { border: 2px solid #fff; color: #fff; padding: 12px 22px; }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.12); }
.site-header.simple .wrap { padding-top: 12px; padding-bottom: 12px; }
.site-header.simple .brand .logo { width: 38px; height: 38px; flex-basis: 38px; }
.site-header.simple .brand .name b { font-size: 22px; }
.nav4 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 16px; font-weight: 700; }
.nav4 a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav4 a.on { color: var(--primary-ink); border-bottom-color: var(--primary); }
.nav4 a.n-donate { background: var(--accent); color: var(--ink); padding: 6px 16px; border-radius: 999px; border: 0; }
.nav4 a.n-admin { font-size: 13px; color: var(--sub); }
.site-header.over-hero { position: absolute; left: 0; right: 0; background: transparent; border: 0; z-index: 20; }
.site-header.over-hero .brand, .site-header.over-hero .nav4 a { color: #fff; }
.site-header.over-hero .nav4 a.on { border-bottom-color: #fff; }
.site-header.over-hero .nav4 a.n-donate { color: var(--ink); }
.site-header.over-hero .brand .logo { background: #fff; }
.tabbar { display: none; }
.tg { font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.tg-green { background: #dff0e6; color: #1d6a4b; } .tg-yellow { background: #fff0d1; color: #7a4b00; }
.tg-blue { background: #e6f0fa; color: #1f4f80; } .tg-warm { background: #ffe3da; color: #8a3520; }
.ntag { color: #1f4f80; }
.small { font-size: 14px; color: var(--sub); margin: 0; }
@media (max-width: 768px) {
  .nav4 { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; height: 64px; background: #fff; border-top: 1px solid var(--line); z-index: 90; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 700; color: var(--sub); text-decoration: none; }
  .tabbar a.on { color: var(--primary-ink); }
  body.layout-a, body.layout-b, body.layout-c { padding-bottom: 64px; }
}

/* ===== B안 · 피드형 ===== */
body.layout-b { background: #f4f6f5; }
.b-top { padding-top: 20px; }
.b-cover { position: relative; border-radius: 24px; overflow: hidden; height: 400px; background: #cfe8f2; }
.b-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; display: block; }
/* 메인 사진이 있으면 사진 비율대로 높이 (너무 긴 세로 사진만 760px 까지) - 2026-10-28 */
.b-cover.has-photo { height: auto; }
/* 메인 사진이 없을 때(기본 그림): 흰 바탕 가운데 샘톡 로고 - 2026-10-28 */
.b-cover:not(.has-photo) { background: #fff url(img/samtalk-logo.png) center / auto 46% no-repeat; border: 1px solid #e3ebe6; box-sizing: border-box; }
.b-cover.has-photo img { height: auto; max-height: 760px; }
/* 노출 영역을 정한 사진: 상자 비율 = 높이, 사진은 그 영역만 보이게 (style 은 front-b.php) - 2026-10-28 */
.b-cover.crop { position: relative; }
.b-cover.crop img { position: absolute; max-width: none; max-height: none; object-fit: fill; }
.b-profile { background: #fff; border-radius: 24px; margin-top: -40px; position: relative; padding: 0 28px 22px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }
.b-id { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.b-avatar { width: 108px; height: 108px; margin-top: -40px; border-radius: 50%; background: var(--primary); border: 5px solid #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.b-avatar img { width: 100%; height: 100%; object-fit: cover; }
.b-id h1 { margin: 12px 0 0; font-size: 32px; line-height: 1.2; }
/* B안 메인 문구·버튼 (A·C안과 같은 설정) - 2026-11-10 */
.b-profile.hs-font-jua .b-id h1 { font-family: 'Jua', 'Noto Sans KR', sans-serif; font-weight: 400; }
.b-profile.hs-font-gothic .b-id h1 { font-family: 'Noto Sans KR', sans-serif; font-weight: 900; letter-spacing: -.5px; }
.b-profile.hs-font-serif .b-id h1 { font-family: 'Noto Serif KR', serif; font-weight: 700; }
.b-btns { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 4px; }
.b-btns .btn { padding: 11px 18px; font-size: 15px; border-radius: 12px; }
.b-cover .b-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--hs-rgb), var(--hs-a)) 0%, rgba(var(--hs-rgb), calc(var(--hs-a) * .4)) 45%, rgba(var(--hs-rgb), 0) 70%); }
.b-cover.hs-h-r .b-shade { background: linear-gradient(270deg, rgba(var(--hs-rgb), var(--hs-a)) 0%, rgba(var(--hs-rgb), calc(var(--hs-a) * .4)) 45%, rgba(var(--hs-rgb), 0) 70%); }
.b-cover.hs-h-c .b-shade { background: rgba(var(--hs-rgb), calc(var(--hs-a) * .6)); }
.b-cover-text { position: absolute; inset: 0; display: flex; padding: 32px 40px 64px; box-sizing: border-box; }   /* 아래는 프로필 카드가 덮는 만큼 띄움 */
.b-cover-text h2 { margin: 0; line-height: 1.25; word-break: keep-all; max-width: 640px; color: #fff; }
.b-cover.hs-v-t .b-cover-text { align-items: flex-start; } .b-cover.hs-v-m .b-cover-text { align-items: center; } .b-cover.hs-v-b .b-cover-text { align-items: flex-end; }
.b-cover.hs-h-c .b-cover-text { justify-content: center; text-align: center; } .b-cover.hs-h-r .b-cover-text { justify-content: flex-end; text-align: right; }
.b-cover.hs-font-jua h2 { font-family: 'Jua', 'Noto Sans KR', sans-serif; font-weight: 400; } .b-cover.hs-font-gothic h2 { font-family: 'Noto Sans KR', sans-serif; font-weight: 900; } .b-cover.hs-font-serif h2 { font-family: 'Noto Serif KR', serif; font-weight: 700; }
.b-cover.hs-size-s h2 { font-size: 30px; } .b-cover.hs-size-m h2 { font-size: 40px; } .b-cover.hs-size-l h2 { font-size: 52px; }
.b-cover.hs-dark h2 { color: var(--ink); }
@media (max-width: 600px) { .b-cover-text { padding: 18px 18px 48px; } .b-cover.hs-size-s h2 { font-size: 22px; } .b-cover.hs-size-m h2 { font-size: 26px; } .b-cover.hs-size-l h2 { font-size: 32px; } .b-btns { width: 100%; } }
.b-id p { margin: 0; color: var(--sub); }
.b-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.b-actions .btn { padding: 12px 20px; font-size: 16px; border-radius: 12px; }
.b-body { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; padding-top: 20px; padding-bottom: 64px; }
.b-feed { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.b-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 700; padding: 8px 16px; border-radius: 999px; }
.chips a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pin { background: #fff4da; border-radius: 18px; padding: 14px 18px; display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); font-weight: 700; }
.pin span { background: var(--accent); font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.card { background: #fff; border-radius: 22px; overflow: hidden; }
.card .meta { padding: 16px 18px 12px; display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--sub); }
.card .photo { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.card .body a { text-decoration: none; color: var(--ink); }
.card .body b { font-size: 19px; }
.card .body p { margin: 0; font-size: 15px; color: #3f4f47; }
.card .react { display: flex; gap: 18px; font-size: 14px; color: var(--sub); }
/* 카드 머리: [분류] 제목 ··· 날짜, 응원하기·공유 버튼 - 2026-10-28 */
.card .card-head .tit { flex: 1; min-width: 0; font-size: 19px; font-weight: 700; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .card-head .when { flex: none; font-size: 14px; color: var(--sub); }
.card .react button { appearance: none; border: 0; background: none; padding: 4px 0; font: inherit; color: var(--sub); cursor: pointer; }
.card .react button:hover { color: var(--ink); }
.card .react .st-cheer.on { color: #e0566b; }
.card .react em { font-style: normal; font-weight: 700; margin-left: 2px; }
.st-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #1f2a24; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 9999; }
@media (max-width: 600px) { .card .card-head { flex-wrap: wrap; } .card .card-head .tit { flex-basis: 100%; order: 3; white-space: normal; } }
.card-need { border: 2px solid #ffd9cc; }
.card-row { display: flex; gap: 14px; align-items: center; padding: 14px; text-decoration: none; color: var(--ink); }
.card-row img { flex: 0 0 140px; width: 140px; height: 104px; object-fit: cover; border-radius: 14px; }
.card-row .txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card-row .meta { padding: 0; display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--sub); }
.card-row b { font-size: 16px; }
.more-feed { text-align: center; padding: 10px; font-weight: 700; text-decoration: none; }
.b-side .panel { padding: 22px; gap: 10px; }
.b-side h3 { margin: 0; font-size: 18px; font-weight: 800; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.three a { background: var(--mint); border-radius: 12px; padding: 12px 6px; text-align: center; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 700; }
.panel-green { background: var(--primary) !important; color: #fff; }
.panel-green h3 { color: #fff; font-size: 22px; font-weight: 400; }
.panel-green .small { color: #e3f1ea; }
.panel-green .btn { text-align: center; padding: 11px; font-size: 15px; }
.link-white { color: #fff !important; font-size: 14px; }
@media (max-width: 600px) { .b-cover { height: 240px; border-radius: 0; } .b-top.wrap { padding: 0; } .b-profile { border-radius: 0 0 20px 20px; padding: 0 18px 16px; } .b-avatar { width: 80px; height: 80px; } .b-actions { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); } .b-actions .btn { padding: 11px 4px; text-align: center; font-size: 14px; } }

/* ===== C안 · 웹진형 ===== */
body.layout-c { background: #fbfaf6; }
.c-hero { position: relative; height: 720px; overflow: hidden; background: #2b3a2f; color: #fff; }
.c-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.c-hero.has-crop { height: auto; min-height: 460px; max-height: 760px; }   /* 정한 영역 비율 (aspect-ratio 는 style) - 2026-11-10 */
.c-hero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,14,.55) 0%, rgba(10,20,14,0) 28%, rgba(10,20,14,0) 50%, rgba(10,20,14,.75) 100%); }
.c-hero-text { position: absolute; left: 0; right: 0; bottom: 56px; display: flex; flex-direction: column; gap: 14px; }
.c-hero .issue { align-self: flex-start; font-size: 14px; font-weight: 800; letter-spacing: .08em; border: 1px solid rgba(255,255,255,.7); padding: 4px 12px; border-radius: 999px; }
.c-hero h1 { margin: 0; font-size: 64px; line-height: 1.15; }
.c-hero p { margin: 0; font-size: 19px; max-width: 620px; color: #eef3ef; }
.c-hero .btns { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.c-hero .btn { font-size: 16px; padding: 13px 22px; border-radius: 12px; }
/* C안 메인 문구·버튼·배경·배치 (A안과 같은 설정) - 2026-11-10 */
.c-hero h1, .c-hero p { word-break: keep-all; }
.c-hero.hs-v-b .shade { background: linear-gradient(180deg, rgba(var(--hs-rgb), calc(var(--hs-a) * .7)) 0%, rgba(var(--hs-rgb), 0) 28%, rgba(var(--hs-rgb), 0) 45%, rgba(var(--hs-rgb), calc(var(--hs-a) * 1.2)) 100%); }
.c-hero.hs-v-m .shade { background: linear-gradient(180deg, rgba(var(--hs-rgb), calc(var(--hs-a) * .7)) 0%, rgba(var(--hs-rgb), calc(var(--hs-a) * .5)) 30%, rgba(var(--hs-rgb), calc(var(--hs-a) * .5)) 70%, rgba(var(--hs-rgb), calc(var(--hs-a) * .3)) 100%); }
.c-hero.hs-v-t .shade { background: linear-gradient(180deg, rgba(var(--hs-rgb), var(--hs-a)) 0%, rgba(var(--hs-rgb), calc(var(--hs-a) * .5)) 40%, rgba(var(--hs-rgb), 0) 65%); }
.c-hero.hs-v-t .c-hero-text { top: 120px; bottom: auto; }   /* 위: 사진 위 메뉴 아래 */
.c-hero.hs-v-m .c-hero-text { top: 50%; bottom: auto; transform: translateY(-40%); }
.c-hero.hs-h-c .c-hero-text { align-items: center; text-align: center; } .c-hero.hs-h-c .issue { align-self: center; } .c-hero.hs-h-c .btns { justify-content: center; } .c-hero.hs-h-c p { margin: 0 auto; }
.c-hero.hs-h-r .c-hero-text { align-items: flex-end; text-align: right; } .c-hero.hs-h-r .issue { align-self: flex-end; } .c-hero.hs-h-r .btns { justify-content: flex-end; }
.c-hero.hs-font-jua h1 { font-family: 'Jua', 'Noto Sans KR', sans-serif; font-weight: 400; }
.c-hero.hs-font-gothic h1 { font-family: 'Noto Sans KR', sans-serif; font-weight: 900; letter-spacing: -1px; }
.c-hero.hs-font-serif h1 { font-family: 'Noto Serif KR', serif; font-weight: 700; }
.c-hero.hs-size-s h1 { font-size: 48px; } .c-hero.hs-size-m h1 { font-size: 64px; } .c-hero.hs-size-l h1 { font-size: 78px; }
.c-hero.hs-dark { color: var(--ink); } .c-hero.hs-dark p { color: #2c3a33; } .c-hero.hs-dark .issue { border-color: rgba(28,43,36,.5); }
.c-hero.hs-dark .btn-ghost { border-color: var(--ink); color: var(--ink); }
/* 나란히: 한쪽 색 바탕에 글, 다른 쪽 사진 (위치 오른쪽이면 사진이 왼쪽) */
.c-hero.hs-split { height: auto; display: grid; grid-template-columns: 44% 56%; background: rgb(var(--hs-rgb)); }
.c-hero.hs-split .c-photo { grid-column: 2; grid-row: 1; position: relative; overflow: hidden; min-height: 520px; max-height: 760px; }
.c-hero.hs-split .c-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-hero.hs-split .c-hero-text { position: relative; inset: auto; transform: none; grid-column: 1; grid-row: 1; align-self: center; margin: 0; max-width: none; padding: 120px 48px 56px; box-sizing: border-box; }
.c-hero.hs-split.hs-v-t .c-hero-text { align-self: start; } .c-hero.hs-split.hs-v-b .c-hero-text { align-self: end; }
.c-hero.hs-split.hs-h-r { grid-template-columns: 56% 44%; } .c-hero.hs-split.hs-h-r .c-photo { grid-column: 1; } .c-hero.hs-split.hs-h-r .c-hero-text { grid-column: 2; }
.c-sec { padding-top: 64px; padding-bottom: 24px; }
.c-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 28px; }
.c-head h2 { margin: 0; font-size: 28px; font-weight: 900; letter-spacing: -.02em; }
.c-tags { display: flex; flex-wrap: wrap; gap: 16px; font-size: 15px; font-weight: 700; }
.c-tags a { color: var(--sub); text-decoration: none; }
.kicker { display: block; font-size: 13px; font-weight: 800; color: var(--primary-ink); letter-spacing: .05em; }
.k-yellow { color: #9a6400; } .k-blue { color: #1f4f80; } .k-green { color: var(--primary-ink); } .k-warm { color: var(--warm); }
.c-cover { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; }
.c-cover a { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.c-main img { width: 100%; height: 440px; object-fit: cover; border-radius: 6px; }
.c-main h3 { margin: 0; font-size: 34px; font-weight: 900; line-height: 1.3; letter-spacing: -.02em; }
.c-main p { margin: 0; font-size: 17px; color: #3f4f47; }
.c-side { display: flex; flex-direction: column; gap: 22px; }
.c-side img { width: 100%; height: 190px; object-fit: cover; border-radius: 6px; }
.c-side b { font-size: 19px; line-height: 1.4; }
.c-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 180px; gap: 8px; padding-top: 24px; padding-bottom: 24px; }
.c-mosaic a.big { grid-column: span 2; grid-row: span 2; }
.c-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }
.c-three { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.c-col { border-top: 2px solid var(--ink); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.c-col a { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.c-col img { width: 100%; height: 200px; object-fit: cover; border-radius: 6px; }
.c-col b { font-size: 18px; }
.c-feature { background: #fff4da; margin-top: 40px; }
.c-feature .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.c-feature img { flex: 1 1 420px; min-width: 0; width: 100%; height: 340px; object-fit: cover; border-radius: 6px; }
.c-feature .wrap > div { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.c-feature h2 { margin: 0; font-size: 34px; font-weight: 900; line-height: 1.3; }
.c-feature p { margin: 0; font-size: 17px; color: #3f4f47; }
.c-feature .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.c-quote { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.c-quote > div { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.c-quote blockquote { margin: 0; font-size: 34px; line-height: 1.45; }
.c-quote img { flex: 1 1 360px; min-width: 0; width: 100%; height: 300px; object-fit: cover; border-radius: 6px; }
.c-info { border-top: 1px solid #e4e1d6; }
.c-info .wrap { padding-top: 48px; padding-bottom: 48px; }
.c-info h3 { margin: 0 0 10px; font-size: 20px; font-weight: 900; }
.c-info .panel-green { border-radius: 6px; padding: 22px; }
.c-info .btns { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.pills a { background: var(--mint); text-decoration: none; color: var(--ink); font-weight: 800; font-size: 14px; padding: 10px 16px; border-radius: 999px; }
@media (max-width: 768px) {
  .c-hero { height: 560px; }
  .c-hero h1, .c-hero.hs-size-m h1 { font-size: 36px; } .c-hero.hs-size-s h1 { font-size: 30px; } .c-hero.hs-size-l h1 { font-size: 42px; }
  .c-hero.hs-split, .c-hero.hs-split.hs-h-r { grid-template-columns: 1fr; height: auto; }
  .c-hero.hs-split .c-photo, .c-hero.hs-split.hs-h-r .c-photo { grid-column: 1; grid-row: 1; min-height: 260px; }
  .c-hero.hs-split .c-hero-text, .c-hero.hs-split.hs-h-r .c-hero-text { grid-column: 1; grid-row: 2; padding: 28px 20px; }
  .c-hero p { font-size: 16px; }
  .c-cover { grid-template-columns: 1fr; }
  .c-main img { height: 240px; }
  .c-main h3 { font-size: 22px; }
  .c-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 110px; }
  .c-mosaic a.big { grid-column: span 1; grid-row: span 1; }
}

/* 단체·협회 사이트 (남색 계열) */
body.site-group { --ink: #1b2733; --sub: #4f5d6b; --line: #e1e8ef; --soft: #f5f8fb; --mint: #eef4fa; --primary: #1f4f80; --primary-ink: #1f4f80; --dark: #16324f; }
body.site-group a { color: var(--primary-ink); }
body.site-group a:hover { color: #163a5e; }
body.site-group .main-nav > ul > li > a { color: var(--ink); }
body.site-group .main-nav > ul > li > a:hover, body.site-group .main-nav > ul > li.current-menu-ancestor > a { color: var(--primary-ink); background: var(--mint); }
body.site-group .hero-box { background: #d7e7f5; }
body.site-group .donate-band p { color: #d6e2ee; }
body.site-group .site-footer { color: #c7d4e1; }
body.site-group .btn-primary, body.site-group .btn-accent, body.site-group .btn-white { color: inherit; }
body.site-group .btn-primary { color: #fff; }
body.site-group .btn-accent { color: var(--ink); }
body.site-group .btn-white { color: var(--primary-ink); }
.quick-4 a { flex-direction: row; justify-content: flex-start; padding: 22px 24px; text-align: left; }
.quick-4 a small { display: block; font-weight: 400; font-size: 14px; color: var(--sub); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.box { border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.tag-dark { background: var(--ink); color: #fff; }
.tag-warm { background: #ffe3da; color: #8a3520; }
.site-tag { font-size: 12px; font-weight: 700; color: var(--primary-ink); }
.split { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.split > .wide { flex: 999 1 560px; min-width: 0; }
.split > .narrow { flex: 1 1 320px; min-width: 0; background: #fff; border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.webzine { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.webzine a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); font-size: 14px; }
.webzine .cover { height: 150px; border-radius: 14px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; overflow: hidden; }
.webzine .cover img { width: 100%; height: 100%; object-fit: cover; }
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.partners > * { height: 60px; border-radius: 12px; background: var(--soft); border: 1px dashed #c3d3e2; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--sub); }

/* 하단 */
.site-footer { background: var(--dark); color: #c9d6cf; font-size: 15px; }
.site-footer .wrap { padding-top: 44px; padding-bottom: 44px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer .col { display: flex; flex-direction: column; gap: 6px; }
.site-footer .fname { font-family: 'Jua', sans-serif; font-size: 24px; color: #fff; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer .by { color: #9fb5a9; }
.site-footer .by a { color: #cfe5d8; }
.b-side .list .empty-li { color: var(--sub); font-size: 14px; padding: 6px 0; }   /* 공지 없음 - 2026-10-30 */

/* 메인 사진이 기본 그림일 때 안내 (담당자·미리보기에만) - 2026-10-31 */
.hero-default-notice { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); z-index: 5; background: #c0392b; color: #fff; font-weight: 800; font-size: 16px; padding: 10px 20px; border-radius: 999px; box-shadow: 0 4px 16px rgba(0,0,0,.25); text-align: center; white-space: nowrap; animation: hero-default-blink 1.2s step-start infinite; }
.hero-default-notice small { display: block; font-size: 12px; font-weight: 500; opacity: .9; }
@keyframes hero-default-blink { 50% { opacity: .25; } }
@media (max-width: 600px) { .hero-default-notice { white-space: normal; width: 86%; font-size: 14px; } }

/* 글 첨부 PDF 내려받기 (우리들의이야기 · 후원금 수입·사용내역) - 2026-10-31 */
.st-files ul { list-style: none; margin: 16px 0; padding: 0; }
.st-files li { margin: 6px 0; }
.st-files a { display: inline-block; padding: 8px 14px; border: 1px solid #c9d9cf; border-radius: 10px; background: #f3f8f5; color: #2f7d5b; font-weight: 700; text-decoration: none; }
