/* ---------------------------------------------------------------------------------------------------------------------
   사용자 페이지 기본 스타일 — Phase 1 은 심플 시맨틱 HTML, 디자인은 추후 병원별 오버라이드로 입힌다.
   병원 전용 CSS 는 hospitals/<병원코드>/static/css/site.css 로 이 파일을 대체한다.
   --------------------------------------------------------------------------------------------------------------------- */
:root {
	--primary: #2b6cb0;
}

body {
	margin: 0 auto;
	max-width: 60rem;
	padding: 0 1rem;
	font-family: var(--font-body, "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif);
	line-height: 1.6;
	color: #1a202c;
}

/* ── 메뉴 (fragments/menu) — 항목은 /admin 메뉴 관리, 모양은 스킨 ───────────────── */
.site-header { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: .6rem 0; }
.site-brand { margin: 0; font-weight: 700; font-size: 1.15rem; }
.site-brand a { color: inherit; text-decoration: none; }
.menu-top > ul, .menu-footer > ul, .menu-side ul, .menu-quick ul { list-style: none; margin: 0; padding: 0; }
.menu-top > ul { display: flex; gap: .2rem; flex-wrap: wrap; }
.menu-top > ul > li { position: relative; }
.menu-top a, .menu-top span { display: block; padding: .45rem .75rem; color: inherit; text-decoration: none; border-radius: .35rem; }
.menu-top li.active > a { color: var(--primary); font-weight: 600; }
.menu-top a:hover { background: #f1f5f9; }
/* 2단 드롭다운 — 호버/포커스로 펼침 (JS 없음) */
.menu-top li.has-sub > ul.menu-sub {
	display: none; position: absolute; top: 100%; left: 0; min-width: 11rem; z-index: 20;
	background: #fff; border: 1px solid #e2e8f0; border-radius: .4rem; box-shadow: 0 8px 24px rgba(15,23,42,.08); padding: .3rem 0;
}
.menu-top li.has-sub:hover > ul.menu-sub, .menu-top li.has-sub:focus-within > ul.menu-sub { display: block; }
.menu-top li.has-sub > a::after, .menu-top li.has-sub > span::after { content: " ▾"; font-size: .75em; color: #94a3b8; }

/* 드롭다운 안 그룹 제목·구분선 (메뉴 관리의 "그룹 제목"/"구분선" 항목) */
ul.menu-sub li.menu-heading > span { padding: .5rem .75rem .2rem; font-size: .78rem; font-weight: 700; color: #64748b; letter-spacing: .02em; }
ul.menu-sub li.menu-divider { height: 0; margin: .3rem .75rem; border-top: 1px solid #e2e8f0; }
.menu-footer ul.menu-sub li.menu-heading > span { padding: .3rem 0 0; }
.menu-footer ul.menu-sub li.menu-divider { margin: .2rem 0; }

.site-footer { margin-top: 3rem; padding: 1.5rem 0; border-top: 1px solid #e2e8f0; color: #64748b; font-size: .9rem; }
.menu-footer > ul { display: flex; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: .6rem; }
.menu-footer a { color: inherit; }
.menu-footer li.menu-group > a, .menu-footer li.menu-group > .menu-label { font-weight: 700; color: #334155; }
.menu-footer ul.menu-sub { list-style: none; padding: 0; margin: .3rem 0 0; display: flex; flex-direction: column; gap: .2rem; font-size: .85rem; }

/* 본문 + 사이드 메뉴 */
.page-wrap.has-side { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 2rem; align-items: start; }
.page-side { position: sticky; top: 1rem; }
.menu-side li a, .menu-side li span { display: block; padding: .4rem .6rem; color: inherit; text-decoration: none; border-radius: .35rem; }
.menu-side li.active > a { background: #eff6ff; color: var(--primary); font-weight: 600; }
.menu-side li ul { padding-left: .8rem; }

/* 퀵 메뉴 — PC: 우측 세로 고정 / 모바일: 하단 가로 고정바 */
.menu-quick { position: fixed; right: 1rem; top: 50%; transform: translateY(-50%); z-index: 30; }
.menu-quick ul { display: flex; flex-direction: column; gap: .4rem; }
.menu-quick a {
	display: flex; flex-direction: column; align-items: center; gap: .15rem; width: 3.8rem; padding: .55rem .2rem;
	background: #fff; border: 1px solid #e2e8f0; border-radius: .7rem; box-shadow: 0 4px 14px rgba(15,23,42,.08);
	color: #334155; text-decoration: none; font-size: .72rem; font-weight: 600;
}
.menu-quick a::before { font-size: 1.25rem; line-height: 1; }
.menu-quick a[data-icon="phone"]::before    { content: "📞"; }
.menu-quick a[data-icon="calendar"]::before { content: "📅"; }
.menu-quick a[data-icon="chat"]::before     { content: "💬"; }
.menu-quick a[data-icon="map"]::before      { content: "📍"; }
.menu-quick a[data-icon="kakao"]::before    { content: "🟡"; }
.menu-quick a[data-icon="clock"]::before    { content: "🕘"; }
.menu-quick a[data-icon="top"]::before      { content: "⬆"; }
.menu-quick a:hover { border-color: var(--primary); color: var(--primary); }

@media (max-width: 768px) {
	[data-mobile="hide"] { display: none !important; }
	.menu-top li.has-sub > ul.menu-sub { position: static; display: block; border: 0; box-shadow: none; padding-left: .8rem; }
	.page-wrap.has-side { grid-template-columns: 1fr; }
	.page-side { position: static; }
	.menu-quick { right: 0; left: 0; top: auto; bottom: 0; transform: none; }
	.menu-quick ul { flex-direction: row; gap: 0; background: #fff; border-top: 1px solid #e2e8f0; }
	.menu-quick li { flex: 1; }
	.menu-quick a { width: auto; border: 0; border-radius: 0; box-shadow: none; padding: .5rem 0; }
	body { padding-bottom: 4rem; }   /* 하단 고정바에 가리지 않게 */
}

a { color: var(--primary); }

table { border-collapse: collapse; }
th, td { border: 1px solid #cbd5e0; padding: .4rem .8rem; }

form label { display: block; font-weight: 600; }
input, textarea { width: 100%; max-width: 30rem; padding: .4rem; }
button { padding: .5rem 1.5rem; cursor: pointer; }

.error { color: #c53030; }

/* ── 게시판 웹진형 ─────────────────────────────────────────────────────────── */
.webzine-list { display: flex; flex-direction: column; gap: 2rem; }
.webzine-card img { width: 100%; max-height: 320px; object-fit: cover; border-radius: .4rem; }
.webzine-card a { text-decoration: none; color: inherit; }
.webzine-card h2 { margin: .5rem 0 .3rem; }

/* ── 게시판 갤러리형 ───────────────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.gallery-item { display: block; text-decoration: none; color: inherit; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: .4rem; background: #edf2f7; }
.gallery-item__title { display: block; margin-top: .4rem; font-weight: 600; }

/* ── 글 작성자 배지 ── */
.post-author { display: flex; align-items: center; gap: .6rem; margin: .6rem 0 1.2rem; }
.post-author img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.post-author span { display: flex; flex-direction: column; }
.post-author small { color: #64748b; font-size: .82rem; }

/* ── 페이지 섹션 (fragments/sections) — 구조는 섹션 계약, 모양은 스킨 ── */
.sec { margin: 2rem 0; }
.sec-group { margin: 0; }
.sec-group--divided { margin-top: 3rem; padding-top: 3rem; border-top: 1px solid #e2e8f0; }
.sec-group__sample { margin: 0; padding: 1.5rem; text-align: center; color: #94a3b8; border: 2px dashed #cbd5e1; border-radius: .6rem; font-size: .9rem; }
.sec-hero { position: relative; border-radius: .8rem; overflow: hidden; background: #f1f5f9; }
.sec-hero__image { width: 100%; max-height: 420px; object-fit: cover; display: block; }
.sec-hero__text { padding: 1.2rem 1.4rem; }
.sec-hero__headline { margin: 0; font-size: 1.6rem; font-weight: 800; color: #0f172a; }
.sec-hero__subline { margin: .3rem 0 0; color: #475569; }
.sec-philosophy__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.sec-philosophy__list li { border: 1px solid #e2e8f0; border-radius: .6rem; padding: 1rem; }
.sec-philosophy__icon { font-size: 1.5rem; display: block; margin-bottom: .3rem; }
.sec-philosophy__list h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.sec-philosophy__list p { margin: 0; color: #475569; font-size: .92rem; }
.sec-history__list { display: grid; grid-template-columns: 6rem 1fr; gap: .4rem 1rem; }
.sec-history__list dt { font-weight: 700; color: var(--primary); }
.sec-history__list dd { margin: 0; }
.sec-facilities__grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.sec-facilities__grid figure { margin: 0; }
.sec-facilities__grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: .5rem; }
.sec-facilities__grid figcaption { font-size: .85rem; color: #64748b; margin-top: .3rem; }
.sec-faq__item { border-top: 1px solid #e2e8f0; padding: .8rem 0; }
.sec-faq__q { margin: 0 0 .3rem; font-size: 1.05rem; }
.sec-faq__a { margin: 0; color: #334155; }
.sec-staff__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1.2rem; }
.staff-card { display: flex; gap: 1rem; align-items: flex-start; border: 1px solid #e2e8f0; border-radius: .6rem; padding: 1rem; }
.staff-card__photo { width: 120px; height: 150px; object-fit: cover; border-radius: .4rem; flex-shrink: 0; }
.staff-card h3 { margin: 0 0 .3rem; }
.staff-card h3 small { color: #64748b; font-weight: 500; font-size: .85rem; margin-left: .3rem; }
.staff-card__specialty { margin: 0 0 .4rem; color: #475569; font-size: .92rem; }
.sec-hours__table { width: 100%; }
.sec-hours__table tr.is-closed td { color: #94a3b8; }
.sec-holidays__list { padding-left: 1.2rem; }
@media (max-width: 640px) { .staff-card { flex-direction: column; } .staff-card__photo { width: 100%; height: auto; aspect-ratio: 4/5; max-width: 240px; } }

/* ── 게시판 목록 (fragments/boards/list) — 고정 구조, 레이아웃은 modifier ── */
.board-head { margin: 0 0 1.2rem; }
.board-head__desc { color: #64748b; margin: .2rem 0 0; }
.board-search { display: flex; gap: .4rem; margin: 0 0 1rem; max-width: 28rem; }
.board-search__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.board-search input { flex: 1; min-width: 0; padding: .45rem .7rem; border: 1px solid #cbd5e1; border-radius: .35rem; font: inherit; }
.board-search button { padding: .45rem .9rem; border: 1px solid var(--primary); background: var(--primary); color: #fff; border-radius: .35rem; font: inherit; cursor: pointer; }
.board-search__result { color: #475569; margin: 0 0 1rem; }
.board-search__result a { margin-left: .5rem; font-size: .9em; }
.board-list { display: grid; gap: 1.2rem; }
.board-item { position: relative; }
.board-item__title { margin: 0; font-size: 1.15rem; line-height: 1.4; }
.board-item__title a { color: inherit; text-decoration: none; }
.board-item__title a:hover { color: var(--primary); }
.board-item__thumb { display: block; overflow: hidden; border-radius: .5rem; background: #f1f5f9; }
.board-item__thumb img { width: 100%; display: block; object-fit: cover; aspect-ratio: 16/9; }
.board-item__summary { margin: .4rem 0 0; color: #475569; font-size: .93rem; line-height: 1.6; }
.board-item__body { margin: .8rem 0 0; }
.board-item__meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center; margin-top: .5rem; font-size: .82rem; color: #94a3b8; }
.board-item__category { color: var(--primary); font-weight: 600; }
.board-item__author { display: inline-flex; align-items: center; gap: .35rem; color: #475569; }
.board-item__author img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.board-empty { color: #94a3b8; padding: 2rem 0; text-align: center; }
.board-pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.board-pager a { padding: .4rem .9rem; border: 1px solid #e2e8f0; border-radius: .4rem; text-decoration: none; }
/* 블로그형 — 세로 나열, 본문 전체 노출 가능 */
.board-list--blog .board-item { padding-bottom: 1.4rem; border-bottom: 1px solid #e2e8f0; }
.board-list--blog .board-item__title { font-size: 1.35rem; }
.board-list--blog .board-item__thumb { margin-bottom: .7rem; }
/* 웹진형 — 썸네일 + 제목/요약 가로 카드 */
.board-list--webzine .board-item { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; align-items: start; }
.board-list--webzine .board-item__thumb { grid-row: 1 / span 3; }
.board-list--webzine .board-item__thumb img { aspect-ratio: 4/3; }
.board-list--webzine .board-item:not(:has(.board-item__thumb)) { grid-template-columns: 1fr; }
/* 갤러리형 — 그리드, 열 수는 data-columns */
.board-list--gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.board-list--gallery[data-columns="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.board-list--gallery[data-columns="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.board-list--gallery[data-columns="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.board-list--gallery[data-columns="6"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.board-list--gallery .board-item__thumb img { aspect-ratio: 4/3; }
.board-list--gallery .board-item__title { font-size: 1rem; margin-top: .5rem; }
/* 게시판형 — 한 줄 행 */
.board-list--list { gap: 0; border-top: 2px solid #334155; }
.board-list--list .board-item { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center; padding: .7rem .4rem; border-bottom: 1px solid #e2e8f0; }
.board-list--list .board-item__title { font-size: 1rem; }
.board-list--list .board-item__meta { margin: 0; justify-content: flex-end; white-space: nowrap; }
.board-list--list .board-item__summary, .board-list--list .board-item__thumb { display: none; }
@media (max-width: 640px) {
	.board-list--webzine .board-item { grid-template-columns: 1fr; }
	.board-list--gallery, .board-list--gallery[data-columns] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.board-list--list .board-item { grid-template-columns: 1fr; }
}
/* 태그 — 목록 뱃지(ul.board-item__tags) · 글 상세(ul.post-tags) · 태그 페이지 */
.board-item__tags, .post-tags { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.board-item__tags li a, .post-tags li a { display: inline-block; padding: .1rem .55rem; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: .78rem; text-decoration: none; }
.board-item__tags li a::before, .post-tags li a::before { content: "#"; opacity: .6; margin-right: .1rem; }
.board-item__tags li a:hover, .post-tags li a:hover { background: var(--primary); color: #fff; }
.post-tags { margin-top: 1.5rem; }
.board-item__pin { display: inline-block; margin-right: .4rem; padding: 0 .45rem; border-radius: 999px; background: var(--primary); color: #fff; font-size: .75em; vertical-align: middle; }
.board-page--tag .tag-hash { color: var(--primary); margin-right: .15rem; }
/* 글 상세 옵션 — 공유(div.post-share) · 이전/다음(nav.post-nav) · 관련 글(section.post-related) */
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 1.5rem; font-size: .82rem; }
.post-share__label { color: #94a3b8; margin-right: .2rem; }
.post-share a, .post-share button { padding: .3rem .7rem; border: 1px solid #e2e8f0; border-radius: 999px; background: #fff; color: #475569; text-decoration: none; font: inherit; cursor: pointer; }
.post-share a:hover, .post-share button:hover { border-color: var(--primary); color: var(--primary); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid #e2e8f0; }
.post-nav a { display: flex; flex-direction: column; gap: .2rem; text-decoration: none; color: inherit; padding: .6rem .8rem; border: 1px solid #e2e8f0; border-radius: .5rem; }
.post-nav a:hover { border-color: var(--primary); }
.post-nav small { color: #94a3b8; font-size: .75rem; }
.post-nav__next { text-align: right; grid-column: 2; }
.post-nav__prev { grid-column: 1; }
.post-related { margin-top: 2.5rem; }
.post-related h2 { font-size: 1.1rem; margin: 0 0 .8rem; }
.post-related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.post-related a { display: flex; flex-direction: column; gap: .3rem; text-decoration: none; color: inherit; }
.post-related__thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: .4rem; background: #f1f5f9; }
.post-related__title { font-size: .92rem; line-height: 1.4; }
.post-related__date { font-size: .75rem; color: #94a3b8; }
@media (max-width: 640px) {
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__next { grid-column: auto; text-align: left; }
	.post-related ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── 팝업·배너 (fragments/popups) — 고정 구조, 모양은 스킨·병원 CSS 로 ── */
.site-banner { position: sticky; top: 0; z-index: 96; display: flex; align-items: center; background: var(--primary); color: #fff; font-size: .9rem; }
.site-banner__link { flex: 1 1 auto; display: block; padding: .55rem 2.4rem .55rem 1rem; color: inherit; text-decoration: none; text-align: center;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-banner__close { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); border: 0; background: none; color: inherit;
	opacity: .75; font-size: .95rem; cursor: pointer; padding: .3rem .5rem; }
.site-banner__close:hover { opacity: 1; }
.site-popups { position: fixed; inset: 0; z-index: 97; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-content: flex-start;
	padding: max(8vh, 3rem) 1rem 2rem; overflow: auto; pointer-events: none; }
.site-popup { pointer-events: auto; width: 100%; background: #fff; border-radius: .6rem; box-shadow: 0 18px 50px rgba(15, 23, 42, .3); overflow: hidden;
	display: flex; flex-direction: column; }
/* display:flex 가 UA [hidden] 을 덮으므로 명시 — 슬라이드 비활성 장·JS 처리 전 깜빡임 방지 */
.site-popups[hidden], .site-popup[hidden], .site-banner[hidden] { display: none !important; }
.site-popup__link { display: block; color: inherit; text-decoration: none; }
.site-popup__link img { display: block; width: 100%; height: auto; }
.site-popup__title { display: block; padding: 1rem 1rem 0; font-size: 1.05rem; }
.site-popup__body { display: block; padding: .8rem 1rem; font-size: .9rem; line-height: 1.6; color: #475569; }
.site-popup__dots { display: flex; justify-content: center; gap: .4rem; padding: .5rem 0 .1rem; }
.site-popup__dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: #cbd5e1; cursor: pointer; }
.site-popup__dots button.is-active { background: var(--primary); }
.site-popup__actions { display: flex; border-top: 1px solid #e2e8f0; margin-top: auto; }
.site-popup__actions button { flex: 1 1 auto; border: 0; background: #f8fafc; color: #475569; font-size: .82rem; padding: .6rem; cursor: pointer; }
.site-popup__actions button + button { border-left: 1px solid #e2e8f0; }
.site-popup__actions button:hover { background: #eef2f7; }
@media (max-width: 640px) {
	.site-popups { padding: 4vh .8rem 1.5rem; flex-direction: column; align-items: center; flex-wrap: nowrap; }
	.site-popup { width: 100%; max-width: 94vw !important; }
}

/* ── 소셜 링크 (fragments/social) — 고정 구조. 아이콘은 글자 배지 기본, 스킨이 교체 ── */
.social-links { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1rem 0 0; padding: 0; justify-content: center; }
.social-link { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; color: inherit; font-size: .82rem; }
.social-link__icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-style: normal;
	font-weight: 700; font-size: .8rem; color: #fff; background: #64748b; }
.social-link__icon::before { content: "•"; }
.social-link--naver-blog .social-link__icon { background: #03c75a; }
.social-link--naver-blog .social-link__icon::before { content: "b"; }
.social-link--tistory .social-link__icon { background: #ff5a4a; }
.social-link--tistory .social-link__icon::before { content: "T"; }
.social-link--facebook .social-link__icon { background: #1877f2; }
.social-link--facebook .social-link__icon::before { content: "f"; }
.social-link--instagram .social-link__icon { background: linear-gradient(45deg, #f09433, #dc2743 55%, #bc1888); }
.social-link--instagram .social-link__icon::before { content: "◎"; font-weight: 400; }
.social-link--x .social-link__icon { background: #111; }
.social-link--x .social-link__icon::before { content: "𝕏"; }
.social-link--threads .social-link__icon { background: #111; }
.social-link--threads .social-link__icon::before { content: "@"; }
.social-link--website .social-link__icon { background: var(--primary); }
.social-link--website .social-link__icon::before { content: "🔗"; font-size: .7rem; }
.social-link:hover .social-link__label { text-decoration: underline; }
.social-link--naver-place .social-link__icon { background: #03c75a; }
.social-link--naver-place .social-link__icon::before { content: "N"; }
.social-link--youtube .social-link__icon { background: #ff0000; }
.social-link--youtube .social-link__icon::before { content: "▶"; font-size: .6rem; }
.social-link--kakao-channel .social-link__icon { background: #fee500; color: #191919; }
.social-link--kakao-channel .social-link__icon::before { content: "K"; }

/* ── 의료진 프로필 (/staff/{id}) ── */
.staff-profile-page { max-width: 720px; margin: 0 auto; }
.staff-profile__photo { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; margin-bottom: 1rem; }
.staff-profile h1 small { font-size: .6em; color: var(--muted, #64748b); font-weight: 400; margin-left: .4rem; }
.staff-profile__specialty { color: var(--primary); font-weight: 600; }
.staff-profile__bio { margin-top: 1rem; line-height: 1.8; }
.staff-profile__posts { margin-top: 2.5rem; border-top: 1px solid #e2e8f0; padding-top: 1.2rem; }
.staff-profile__posts h2 { font-size: 1.1rem; }
.staff-profile__posts ul { list-style: none; padding: 0; margin: 0; }
.staff-profile__posts li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed #e2e8f0; }
.staff-profile__posts time { color: #94a3b8; font-size: .82rem; white-space: nowrap; }

/* ── 소셜 로그인 버튼 — 각사 브랜드 가이드 기본색 ── */
.social-login .social-btn {
	display: inline-block; padding: .55rem 1.1rem; margin: 0 .3rem .3rem 0; border-radius: .4rem;
	text-decoration: none; font-weight: 600; font-size: .95rem;
}
.social-btn--naver  { background: #03c75a; color: #fff; }
.social-btn--kakao  { background: #fee500; color: #191919; }
.social-btn--google { background: #fff; color: #1f1f1f; border: 1px solid #cbd5e0; }

/* ── 이미지 섹션 (sec-image) — 직접 업로드 블록 ─────────────────────────────────────────────────────────────────── */
.sec-image figure{ margin:0 0 14px; }
.sec-image img{ display:block; width:100%; height:auto; border-radius:12px; }
.sec-image figcaption{ margin-top:8px; font-size:.88em; color:#6d7a70; text-align:center; }

/* ── 안내 화면(404·4xx·홈페이지 중단) — 헤더·푸터 사이 가운데 메시지 ── */
.site-notice { max-width: 38rem; margin: 4rem auto 5rem; padding: 0 1rem; text-align: center; }
.site-notice__code { margin: 0 0 .6rem; font-size: .9rem; font-weight: 700; letter-spacing: .12em; color: #94a3b8; }
.site-notice h1 { margin: 0; font-size: 1.6rem; line-height: 1.4; }
.site-notice p { margin: 1rem 0 0; color: #475569; line-height: 1.7; }
.site-notice__reason { text-align: left; padding: 1rem 1.2rem; background: #f8fafc; border-radius: .6rem; }
.site-notice__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.6rem; }
.site-notice__actions a { display: inline-block; padding: .6rem 1.2rem; border: 1px solid #cbd5e1; border-radius: .5rem; color: inherit; text-decoration: none; }
.site-notice__actions a:first-child { background: var(--primary, #1f4e79); border-color: transparent; color: #fff; }


/* ── 자주 묻는 질문 (/faq 기본 템플릿 · [##_faq.list_##] 고정 구조) ── */
.faq-head { margin: 0 0 1.2rem; }
.faq-filter { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0 0 1.2rem; }
.faq-filter__category { display: flex; align-items: center; gap: .4rem; }
.faq-filter select, .faq-filter input { padding: .45rem .7rem; border: 1px solid #cbd5e1; border-radius: .35rem; font: inherit; }
.faq-filter input { flex: 1 1 14rem; min-width: 0; }
.faq-filter button { padding: .45rem .9rem; border: 1px solid var(--primary); background: var(--primary); color: #fff; border-radius: .35rem; font: inherit; cursor: pointer; }
.faq-result { color: #475569; margin: 0 0 1rem; }
.faq-result a { margin-left: .5rem; font-size: .9em; }
.faq-list { display: flex; flex-direction: column; gap: .6rem; }
.faq-item { padding: 1rem 1.2rem; border: 1px solid #e2e8f0; border-radius: .5rem; background: #fff; }
.faq-item__q { margin: 0; font-size: 1.05rem; }
.faq-item__a { margin-top: .5rem; color: #334155; }
.faq-item__a > :first-child { margin-top: 0; }
.faq-item__a > :last-child { margin-bottom: 0; }
.faq-empty { color: #94a3b8; padding: 2rem 0; text-align: center; }

/* ── 병원 지도 블록 [##_map_##] — 크기 상자. 지도(fragments/map)는 상자를 100% 채운다. 스킨은 .clinic-map-box 크기만 바꾼다 ── */
.clinic-map-box { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 280px; overflow: hidden; border-radius: .5rem; background: #e2e8f0; }
.clinic-map-box > .clinic-map { position: absolute; inset: 0; }
/* 지도 마커 위 병원 이름 말풍선 (fragments/map — 네이버 InfoWindow·카카오 CustomOverlay 내용) */
.clinic-map__label { position: relative; padding: 6px 12px; border-radius: 999px; background: #fff; color: #1a1c19; font-size: 13px; font-weight: 700;
	line-height: 1.3; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.22); }
.clinic-map__label::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: #fff; }
