/* 팀닥터 사이트 공용 스타일 — 핸드오프 2026-11-28 4절 + docs/handoff/HUMANIZE-DESLOP.md 4절
 *
 * 색: Blue #0F5DD1 · Navy #00203A · White. 그라데이션·드롭섀도우·이모지 금지.
 * 모서리: 심볼처럼 바깥만 부드럽게. 누르는 것(버튼·타일·입력) 8, 독립된 면 12, 태그 4. 섹션·표 행·구분선은 0, 알약형 없음.
 * 글꼴: Pretendard Variable 셀프호스팅(동적 서브셋). 굵기 800 제목·숫자 / 700 소제목·버튼 / 500 메뉴·칩 / 400 본문.
 * 구획은 헤어라인과 여백으로 나눈다. 섹션 위 아이브로, 섹션 등장 애니메이션을 쓰지 않는다.
 */

:root{
  --blue:#0F5DD1; --navy:#00203A; --white:#FFFFFF;
  --tx:#00203A; --tx2:#3A4A63; --tx3:#5B6B84;
  --ln:#D5DCE8; --ln2:#E3E8F0; --mist:#F4F7FC;
  /* 네이비 면 위 글자·선: 회색이 아니라 네이비 색조에서 뽑는다 */
  --on-navy2:#B6C6DE; --blue-on-navy:#7EA8F2; --on-navy3:#8FA6C8; --navy-ln:#1C3A58;
  /* 파랑 면 위 보조 글자 */
  --on-blue2:#E4EDFF;
  --font:"Pretendard Variable",Pretendard,"Noto Sans KR",system-ui,sans-serif;
  --wrap:1200px; --gut:32px; --sec:96px;
  --r-ctl:8px; --r-panel:12px; --r-tag:4px; --r-device:36px; /* 기기 목업 테두리만 */
}
@media (max-width:720px){ :root{ --gut:20px; --sec:64px; } }

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-padding-top:88px; scroll-padding-bottom:calc(80px + env(safe-area-inset-bottom, 0px)); }
body{ margin:0; background:var(--white); color:var(--tx); font-family:var(--font); font-size:16px; line-height:1.7; font-weight:400;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; word-break:keep-all; overflow-wrap:break-word; }
img,svg{ display:block; max-width:100%; }
h1,h2,h3,h4,p,ul,ol,dl,dd,figure{ margin:0; }
ul,ol{ padding:0; list-style:none; }
button{ font:inherit; color:inherit; }
a{ color:var(--blue); text-underline-offset:.2em; text-decoration-thickness:1px; }
a:hover{ color:var(--navy); }

/* 브라우저 기본 요소도 팔레트로 */
::selection{ background:#CFDFF8; color:var(--navy); }
.navy ::selection{ background:var(--blue); color:var(--white); }
:focus{ outline:none; }
:focus-visible{ outline:2px solid var(--blue); outline-offset:2px; }
.navy :focus-visible{ outline-color:var(--white); }
input,textarea{ caret-color:var(--blue); }
.num{ font-variant-numeric:tabular-nums; }

.wrap{ max-width:var(--wrap); margin:0 auto; padding:0 var(--gut); }
.sec{ padding:var(--sec) 0; }
.mist{ background:var(--mist); }
.navy{ background:var(--navy); color:var(--white); }

.h2{ font-size:34px; line-height:1.35; font-weight:800; letter-spacing:-.02em; }
.lead{ font-size:17px; line-height:1.75; color:var(--tx2); max-width:44em; }
.navy .lead{ color:var(--on-navy2); }
@media (max-width:720px){ .h2{ font-size:26px; } .lead{ font-size:16px; } }

/* 버튼: 모서리 8, 높이 48 / 56 */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:0 22px; border:1px solid transparent;
  font-size:16px; font-weight:700; line-height:1.2; text-decoration:none; cursor:pointer; border-radius:var(--r-ctl); }
.btn-lg{ min-height:56px; padding:0 32px; font-size:17px; }
.btn-blue{ background:var(--blue); color:var(--white); }
.btn-blue:hover{ background:#0B4DB0; color:var(--white); }
.btn-line{ border-color:var(--ln); background:var(--white); color:var(--navy); }
.btn-line:hover{ border-color:var(--navy); color:var(--navy); }
.btn-white{ background:var(--white); color:var(--navy); }
.btn-white:hover{ background:var(--mist); color:var(--navy); }
.btn[disabled]{ opacity:.45; cursor:not-allowed; }

/* 헤더 */
.hdr{ position:sticky; top:0; z-index:20; background:var(--white); border-bottom:1px solid var(--ln2); }
.hdr .wrap{ display:flex; align-items:center; gap:24px; height:72px; }
.brand{ display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--tx3); flex:none; }
.brand img{ height:26px; width:auto; }
.brand span{ font-size:12px; font-weight:500; color:var(--tx3); }
.gnb{ display:flex; align-items:center; gap:28px; margin-left:auto; font-size:15px; font-weight:500; }
.gnb a{ color:var(--navy); text-decoration:none; }
.gnb a:hover{ color:var(--blue); }
.hdr .btn{ min-height:44px; padding:0 18px; font-size:15px; }
@media (max-width:1000px){ .gnb{ display:none; } .hdr .btn{ margin-left:auto; } }
@media (max-width:420px){ .brand span, .hdr .btn .long{ display:none; } .hdr .wrap{ height:64px; } .brand img{ height:22px; } }

/* 푸터 */
.foot{ padding:48px 0 32px; font-size:14px; color:var(--tx3); border-top:1px solid var(--ln2); }
.foot .top{ display:flex; flex-wrap:wrap; gap:16px 48px; justify-content:space-between; padding-bottom:28px; border-bottom:1px solid var(--ln2); }
.foot .about{ max-width:620px; line-height:1.7; color:var(--tx2); }
.foot .propose{ max-width:420px; line-height:1.7; }
.foot dl{ display:flex; flex-wrap:wrap; gap:6px 24px; padding:24px 0 16px; }
.foot dl div{ display:flex; gap:8px; }
.foot dt{ color:var(--tx3); }
.foot dd{ color:var(--tx2); }
.foot dd a{ color:var(--tx2); }
.foot .bot{ display:flex; flex-wrap:wrap; gap:12px 24px; justify-content:space-between; align-items:center; }
.foot .bot nav{ display:flex; gap:20px; }
.foot .bot nav a{ color:var(--tx2); text-decoration:none; }
.foot .bot nav a:hover{ color:var(--blue); }

/* 하단 고정 바: 문서 끝에 놓여 sticky 로 붙는다. 본문 끝을 가리지 않는다 */
.dock{ position:sticky; bottom:0; z-index:15; padding-bottom:env(safe-area-inset-bottom, 0px); background:var(--white); border-top:1px solid var(--ln); transform:translateY(100%); opacity:0; pointer-events:none; transition:transform .16s ease-out, opacity .16s ease-out; }
.dock.on{ transform:none; opacity:1; pointer-events:auto; }
.no-js .dock{ transform:none; opacity:1; pointer-events:auto; }
.dock .wrap{ display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:64px; }
.dock p{ font-size:15px; font-weight:700; }
.dock .btn{ min-height:44px; }
/* 데스크톱은 헤더 버튼이 늘 보이므로 하단 바를 두지 않는다(같은 버튼이 위아래에 겹치고, 짙은 섹션 위로 흰 바가 끼어든다) */
@media (min-width:1001px){ .dock{ display:none; } }

@media (prefers-reduced-motion:reduce){ *{ scroll-behavior:auto !important; transition:none !important; animation:none !important; } }
