/* ============================================================
   시니어 케어 통합 포털 — 디자인 시스템 v2
   ------------------------------------------------------------
   핵심 사용자: 40~50대 부양 가족 (기획서 1순위 주체).
   방향: '신뢰할 수 있는 케어 핀테크' — 토스·당근식 깔끔함 +
        돌봄의 신뢰감. 흰 바탕, 선명한 청록 포인트, 산세리프 통일,
        콤팩트한 정보 밀도.
   ※ 노인 본인용 모드(for-senior.html)는 별도로 큰 글씨·고대비 유지.
   ============================================================ */

:root {
  /* ============================================================
     색 정책 (v3 — 실용·절제 기반)
     원칙: 바탕은 흰색·회색. 글자는 잉크 검정·회색. 색은 '기능 신호'
     로만 — 응급은 빨강, 그 외 강조는 따뜻한 주황 포인트 하나.
     장식용 그라데이션·색 면(tint) 사용을 최소화한다.
     ============================================================ */
  --paper:        #f6f7f8;   /* 페이지 배경 — 거의 흰 회색 */
  --paper-deep:   #eef0f2;   /* 한 단계 진한 면 (표 헤더 등) */
  --white:        #ffffff;
  --ink:          #1b2127;   /* 본문 글자 — 진한 잉크 */
  --ink-soft:     #5c646c;   /* 보조 글자 */
  --ink-faint:    #8b9298;   /* 더 옅은 보조 */
  --line:         #e1e4e7;   /* 경계선 */
  --line-soft:    #eef0f2;
  --line-strong:  #c9ced3;   /* 진한 경계선 — 강조 테두리용 */

  /* 포인트 — 밝고 따뜻한 주황 하나. 링크·핵심 강조에 쓴다. */
  --teal:         #f08a3c;   /* 포인트 컬러 — 밝은 주황 */
  --teal-deep:    #c2410c;   /* 진한 변형 — 글자·호버 */
  --teal-bright:  #f08a3c;   /* (호환용 — 동일색) */
  --teal-tint:    #fdf0e6;   /* 아주 옅은 주황 면 */
  --teal-tint-2:  #f7dcc4;

  /* 보조 강조 — 별도 색 대신 잉크/포인트로 수렴 (호환용 매핑) */
  --amber:        #c2410c;
  --amber-deep:   #9a3209;
  --amber-tint:   #fdf0e6;

  /* 응급/주의 — 적색만 채도 유지 (유일한 강한 색) */
  --alert:        #c8302a;
  --alert-deep:   #9c241f;
  --alert-tint:   #f7e7e6;

  /* 정보 — 포인트 주황으로 수렴 (호환용 매핑) */
  --info:         #a8500f;
  --info-tint:    #f7efe7;

  /* ----- 타이포  -----
     본문·UI·제목 모두 나눔고딕 — 복지로 등 정부 사이트 표준 글꼴.
     둥글고 또렷한 고딕으로 시니어 가독성을 최우선으로 한다. */
  --font-display: 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif;
  --font-body:    'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif;
  --font-serif:   'Nanum Gothic', 'Malgun Gothic', sans-serif;

  /* ----- 타이포 스케일 — 섹션 위계용 -----
     큰 주제(1순위) > 일반 섹션 > 보조 섹션 순으로 또렷한 차등. */
  --fs-hero:      clamp(22px, 2.6vw, 30px);  /* 히어로 한 줄 */
  --fs-section:   clamp(20px, 2.1vw, 25px);  /* 주력 섹션 제목 */
  --fs-block:     19px;                       /* 일반 블록 제목 */
  --fs-sub:       15px;                       /* 보조 섹션 제목 */

  /* ----- 여백 리듬 — 섹션 간 호흡 차등 ----- */
  --gap-major:    56px;   /* 큰 주제 전환 */
  --gap-section:  38px;   /* 일반 섹션 */
  --gap-minor:    22px;   /* 관련 묶음 */

  /* ----- 치수 ----- */
  --tap:          48px;      /* 최소 탭 높이 */
  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    22px;
  --radius-pill:  999px;
  --shadow-xs:    0 1px 1px rgba(27,33,39,.04);
  --shadow:       0 1px 2px rgba(27,33,39,.05);
  --shadow-lift:  0 2px 6px rgba(27,33,39,.07), 0 6px 16px rgba(27,33,39,.06);
  --maxw:         1280px;
}

/* ----- 폰트 로드 (셀프호스팅) -----
   [무수집 원칙] Google Fonts·jsdelivr 등 외부 CDN을 부르지 않습니다.
   외부 폰트를 부르면 접속자 IP가 해외 사업자로 전송되기 때문입니다.
   파일: assets/fonts/*.woff2 (@fontsource/nanum-gothic 5.1.0, OFL) */
@font-face {
  font-family: 'Nanum Gothic'; font-style: normal; font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/nanum-gothic-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Nanum Gothic'; font-style: normal; font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/nanum-gothic-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Nanum Gothic'; font-style: normal; font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/nanum-gothic-800.woff2') format('woff2');
}

* { margin: 0; padding: 0; box-sizing: border-box; }


html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  font-size: 16px;          /* 본문 16px — 40~50대 기준 현대적 밀도 */
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ============================================================
   레이아웃 셸
   ============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ----- 헤더 ----- */
.site-header {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  min-height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-weight: 800; font-size: 17px;
  color: var(--ink); letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  min-width: 38px; height: 38px; padding: 0 9px; border-radius: 10px;
  background: var(--teal);
  display: grid; place-items: center;
  color: var(--white); font-size: 16px; font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.brand-home {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 800; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1;
}
.header-nav {
  display: flex; align-items: center;
  flex: 1; justify-content: space-between;
  margin-left: 48px;
}
.header-nav a,
.header-nav .mm-tab {
  display: inline-flex; align-items: center;
  padding: 8px 10px; border-radius: 9px;
  color: var(--ink-soft); font-size: 21px; font-weight: 700;
  line-height: 1.2; white-space: nowrap;
  transition: background .12s, color .12s;
}
.header-nav a:hover { background: var(--paper-deep); color: var(--ink); text-decoration: none; }
/* 메가메뉴 탭 버튼 */
.mm-tab {
  background: none; border: none; cursor: pointer;
  font-family: inherit; display: inline-flex; align-items: center; gap: 4px;
  font-size: 21px; font-weight: 700; padding: 8px 10px;
}
.mm-tab:hover { background: var(--paper-deep); color: var(--ink); }
.mm-tab.on { background: var(--teal-tint); color: var(--teal-deep); }
.mm-caret { font-size: 14px; transition: transform .15s; }
.mm-tab.on .mm-caret { transform: rotate(180deg); }
/* 햄버거 — 모바일에서만 보임 */
.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; padding: 9px; flex-direction: column;
  justify-content: space-between;
}
.nav-burger span {
  display: block; height: 2.5px; border-radius: 2px;
  background: var(--ink); transition: transform .15s, opacity .15s;
}
/* ===== 메가메뉴 — 복지로식: 풀와이드 + 좌측 관문 라벨 + 자주 찾는 곳 =====
   배경(.megamenu)은 화면 좌우 끝까지 펼쳐 시원하게.
   콘텐츠(.mm-inner)는 본문과 같은 폭(--maxw) 안에 정렬해 가독성 유지. */
.megamenu {
  border-top: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 16px 28px -18px rgba(0,0,0,.2);
}
.mm-inner {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 24px;
  padding: 26px 0 22px;
}
.mm-main { flex: 1; min-width: 0; }
.mm-panel { display: flex; gap: 22px; width: 100%; }
.megamenu.mm-single .mm-panel { display: flex; }

/* 좌측 관문 라벨 카드 — 색 알약, 누르면 섹터 표지로 */
.mm-gatecard {
  flex-shrink: 0; width: 160px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: 3px;
  border-radius: var(--radius); padding: 22px 14px;
  background: var(--teal); color: #fff;
}
.mm-gatecard:hover { text-decoration: none; filter: brightness(1.06); }
.mm-gc-han {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 800; line-height: 1.25;
}
.mm-gc-tag { font-size: 14px; opacity: .85; }
.mm-gc-go {
  font-size: 14px; font-weight: 700; margin-top: 10px;
  background: rgba(255,255,255,.2); color: #fff;
  padding: 5px 11px; border-radius: var(--radius-pill);
}
/* 관문별 색 — 섹터 통일 (좌측 라벨 카드 배경) */
.mm-gate-vibrant,
.mm-gate-no,
.mm-gate-graceful,
.mm-gate-wellbeing { background: var(--teal); }

/* 우측 메뉴 카드 목록 */
.mm-links {
  flex: 1; min-width: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  align-content: start;
}
.mm-item {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: var(--white);
}
.mm-item:hover {
  text-decoration: none;
  border-color: var(--line-strong);
  background: var(--paper);
}
.mm-ic {
  font-size: 18px; width: 26px; flex-shrink: 0; text-align: center;
}
.mm-it-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mm-it-label { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.mm-it-desc { font-size: 14px; color: var(--ink-faint); }

/* 자주 찾는 곳 칸 */
.mm-popular {
  flex-shrink: 0; width: 210px;
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 16px 16px 14px;
}
.mm-pop-head {
  font-size: 14px; font-weight: 800; color: var(--teal-deep);
  display: flex; align-items: center; gap: 6px; margin-bottom: 11px;
}
.mm-pop-star { font-size: 14px; }
.mm-pop-list { display: flex; flex-direction: column; gap: 2px; }
.mm-pop-item {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 9px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.mm-pop-item:hover { background: var(--white); text-decoration: none; }
.mm-pop-ic { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }
.mm-pop-note {
  font-size: 14px; color: var(--ink-faint); line-height: 1.5;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--line);
}

.mm-foot {
  flex-basis: 100%; margin-top: 4px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-faint);
  display: flex; align-items: center; gap: 7px;
}
.mmf-ic { font-size: 15px; }
.mm-foot a { color: var(--teal-deep); font-weight: 700; }
/* 헤더의 사이트맵 링크 */
.header-nav a.nav-sitemap {
  display: inline-flex; align-items: center;
}
/* 메가메뉴 안의 모바일 유틸 링크 — 데스크톱에선 숨김 */
.mm-util { display: none; }

/* ----- 푸터 ----- */
.site-footer {
  background: #20262c;
  color: #c4cace;
  margin-top: 80px;
  padding: 44px 0 38px;
  font-size: 16px;
  border-top: 3px solid var(--teal);
}
.site-footer .wrap { display: flex; flex-direction: column; gap: 14px; }
.site-footer strong { color: var(--white); font-size: 18px; }
.site-footer .foot-note { color: #969ca1; font-size: 14.5px; line-height: 1.7; }
.site-footer a { color: #c4cace; text-decoration: underline; }

/* ============================================================
   공통 컴포넌트
   ============================================================ */

/* ----- 버튼 ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  min-height: var(--tap); padding: 0 22px;
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s;
  letter-spacing: -0.01em;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--teal); color: var(--white); box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--teal-deep); box-shadow: var(--shadow); }
.btn-amber { background: var(--amber); color: var(--white); box-shadow: var(--shadow-xs); }
.btn-amber:hover { background: var(--amber-deep); box-shadow: var(--shadow); }
.btn-ghost { background: var(--white); color: var(--teal); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal); background: var(--teal-tint); }
.btn-block { display: flex; width: 100%; }
.btn-lg { min-height: 52px; font-size: 16px; padding: 0 28px; }
.section-title {
  font-family: var(--font-serif);
  font-size: var(--fs-section); font-weight: 600;
  color: var(--ink); line-height: 1.32; letter-spacing: -0.015em;
}
/* 보조 섹션 제목 — 주력 섹션보다 한 단계 작게 (위계 차등) */
.section-title-sub {
  font-size: var(--fs-sub); font-weight: 700;
  color: var(--ink-soft); letter-spacing: -0.01em;
}

/* ----- 카드 ----- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ----- 알림 박스 ----- */
.callout {
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 17px; line-height: 1.55;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.callout .ic { font-size: 22px; flex-shrink: 0; line-height: 1.4; }
.callout-alert { background: var(--alert-tint); color: var(--alert-deep); border-color: #e6c4c2; }
.callout strong { font-weight: 800; color: var(--ink); }
.callout-alert strong { color: var(--alert-deep); }

/* ----- 표 ----- */
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table th, .data-table td {
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--line); vertical-align: top;
  line-height: 1.55;
}
.data-table th {
  background: var(--paper-deep); font-weight: 700; color: var(--ink);
  font-size: 14px;
}
.data-table tr:last-child td { border-bottom: none; }

/* ============================================================
   페이지 공통 — 사건 페이지 헤더
   ============================================================ */
.page-hero {
  background: var(--white);
  color: var(--ink);
  padding: 32px 0 30px;
  border-bottom: 1px solid var(--line);
}
.page-hero.hero-alert {
  background: var(--alert-tint);
  border-bottom: 1px solid #e6c4c2;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: var(--fs-hero); font-weight: 600;
  line-height: 1.3; letter-spacing: -0.02em;
  color: var(--ink);
}
.page-hero.hero-alert h1 { color: var(--alert-deep); }
.page-hero .hero-sub {
  font-size: 15.5px; color: var(--ink-soft);
  margin-top: 12px; max-width: 940px; line-height: 1.65;
}

.page-body { padding: 36px 0; }
.page-body section { margin-bottom: var(--gap-section); }
.page-body section:last-child { margin-bottom: 0; }
.block-title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 800; color: var(--ink);
  margin-bottom: 14px; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 9px;
}
.block-title .num {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--teal); color: var(--white);
  font-size: 14px; font-weight: 700; flex-shrink: 0;
  font-family: var(--font-body);
}
.block-text { font-size: 18px; color: var(--ink); line-height: 1.65; max-width: 940px; }
.block-text + .block-text { margin-top: 12px; }
/* pb-row 안에서는 칸이 이미 좁으므로 폭 제한 해제 */
.pb-row .block-text { max-width: none; }

/* ----- 시간순 단계 (사건 가이드의 핵심) ----- */
.steps { list-style: none; counter-reset: step; }
.steps > li {
  position: relative;
  padding: 0 0 22px 50px;
  counter-increment: step;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal); border: none;
  color: var(--white); font-weight: 800; font-size: 15px;
  display: grid; place-items: center;
}
.steps > li::after {
  content: ""; position: absolute;
  left: 17px; top: 36px; bottom: 0; width: 2px;
  background: var(--line);
}
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps .step-title {
  font-size: 16px; font-weight: 800; color: var(--ink);
  margin-bottom: 4px; padding-top: 6px;
}
.steps .step-desc { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }

/* ----- 정보 리스트 항목 ----- */
.list-rows { display: flex; flex-direction: column; gap: 12px; }
.list-row {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.list-row .rk { font-size: 17px; font-weight: 800; color: var(--teal-deep); min-width: 120px; flex-shrink: 0; }
.list-row .rv { font-size: 17px; color: var(--ink-soft); line-height: 1.7; }

/* ----- 다음 단계 연결 ----- */
.next-link {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 17px;
  background: var(--white); border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.next-link .nl-text { flex: 1; }
.next-link .nl-text strong { display: block; font-size: 20px; color: var(--ink); margin-bottom: 3px; }
.next-link .nl-text span { font-size: 17px; color: var(--ink-soft); }

/* ----- 카테고리 그리드 (간병용품 쇼핑 연결 공통) ----- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 14px; }
@media (min-width: 1100px) and (max-width: 1450px) { .cat-grid { margin-right: 88px; } }
.cat-card { padding: 22px 22px; display: flex; flex-direction: column; }
.cat-card .ci { display: none; }
.cat-card h4 { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 7px; line-height: 1.25; }
.cat-card p { font-size: 18px; color: var(--ink-soft); line-height: 1.55; }
.cat-links {
  display: flex; gap: 8px; margin-top: 14px; padding-top: 13px;
  border-top: 1px solid var(--line-soft);
}
.cat-links a {
  flex: 1; text-align: center;
  font-size: 16px; font-weight: 700;
  padding: 11px 8px; border-radius: var(--radius-sm);
  background: var(--paper-deep); color: var(--ink-soft);
  transition: background .12s, color .12s;
}
.cat-links a:hover {
  background: var(--teal-tint); color: var(--teal-deep); text-decoration: none;
}
.cat-note {
  font-size: 14px; color: var(--ink-faint); line-height: 1.6;
  margin-top: 14px;
}
/* 한·일 통합 쇼핑 링크 — 국가별 줄 구분 */
.cat-shop {
  margin-top: 14px; padding-top: 13px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 8px;
}
.cat-shop-row {
  display: flex; align-items: center; gap: 6px;
}
.cat-shop-row .cs-flag {
  flex-shrink: 0; font-size: 14px; font-weight: 800;
  padding: 3px 8px; border-radius: var(--radius-pill);
  letter-spacing: .02em;
}
.cat-shop-row .cs-kr { background: var(--teal-tint); color: var(--teal-deep); }
.cat-shop-row .cs-jp { background: var(--paper-deep); color: var(--ink-soft); }
.cat-shop-row a {
  flex: 1; text-align: center;
  font-size: 14px; font-weight: 700;
  padding: 7px 4px; border-radius: var(--radius-sm);
  background: var(--paper-deep); color: var(--ink-soft);
  transition: background .12s, color .12s;
}
.cat-shop-row a:hover {
  background: var(--teal-tint); color: var(--teal-deep); text-decoration: none;
}

/* ============================================================
   사건 페이지 본문 레이아웃 — 단일 단
   공식 창구는 전 페이지 공통 우측 사이드바로 일원화됨.
   ============================================================ */
.pb-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.pb-main { min-width: 0; }
@media (max-width: 760px) {
  .pb-inner { padding: 0 18px; }
}
@media (min-width: 720px) {
}

/* ----- 폼 요소 (체크/입력) ----- */
.field { margin-bottom: 22px; }
.field label {
  display: block; font-size: 18px; font-weight: 700;
  color: var(--ink); margin-bottom: 10px;
}
.field input[type=text],
.field select {
  width: 100%; min-height: var(--tap);
  padding: 0 18px; font-size: 18px; font-family: var(--font-body);
  border: 2px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--teal);
}
.choice-row { display: flex; flex-direction: column; gap: 12px; }
.choice {
  display: flex; align-items: center; gap: 14px;
  min-height: var(--tap); padding: 14px 20px;
  border: 2px solid var(--line); border-radius: var(--radius);
  background: var(--white); cursor: pointer; font-size: 18px;
  transition: border-color .12s, background .12s;
}
.choice:hover { border-color: var(--teal); }
.choice.sel { border-color: var(--teal); background: var(--teal-tint); }
.choice .box {
  width: 28px; height: 28px; border-radius: 7px;
  border: 2.5px solid var(--line); flex-shrink: 0;
  display: grid; place-items: center; color: var(--white);
  font-weight: 800; font-size: 16px;
}
.choice.sel .box { background: var(--teal); border-color: var(--teal); }

/* ----- API 연동 안내 배너 ----- */
.api-banner {
  background: repeating-linear-gradient(45deg, var(--paper-deep), var(--paper-deep) 12px, #e8e1d0 12px, #e8e1d0 24px);
  border: 1.5px dashed var(--ink-soft);
  border-radius: var(--radius);
  padding: 16px 20px; font-size: 15.5px; color: var(--ink-soft);
  display: flex; gap: 12px; align-items: flex-start; line-height: 1.6;
}
.api-banner code {
  background: var(--ink); color: var(--paper);
  padding: 2px 8px; border-radius: 5px; font-size: 14px;
}

/* ============================================================
   2층 개인화 동반자
   ============================================================ */

/* ----- 헤더의 '내 동반자' 강조 ----- */
.header-nav a.nav-companion {
  color: var(--amber-deep); font-weight: 800;
}

/* ----- 헤더의 응급 119 버튼 ----- */
.header-nav a.nav-emergency {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--alert); color: var(--white);
  font-weight: 800; font-size: 21px;
  padding: 8px 16px; border-radius: var(--radius-pill);
}
.header-nav a.nav-emergency:hover {
  background: var(--alert-deep); color: var(--white);
}
.header-nav a.nav-emergency .ne-ic { font-size: 18px; }

/* ----- 페이지 상단 개인화 배너 (다른 페이지에 삽입) ----- */
.pbanner {
  display: flex; align-items: center; gap: 16px;
  border-radius: var(--radius); padding: 16px 20px;
  margin-bottom: 28px; line-height: 1.55;
}
.pbanner .pb-ic { font-size: 24px; flex-shrink: 0; }
.pbanner .pb-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pbanner .pb-text strong { font-weight: 800; font-size: 17px; }
.pbanner .pb-text span { font-size: 15.5px; }
.pbanner .pb-text b { font-weight: 800; }
.pbanner .pb-btn {
  flex-shrink: 0; min-height: 48px; display: inline-flex; align-items: center;
  padding: 0 20px; border-radius: 10px; font-weight: 700; font-size: 15.5px;
  background: var(--teal); color: var(--white);
}
.pbanner .pb-btn:hover { background: var(--teal-deep); text-decoration: none; }
.pbanner .pb-btn-ghost {
  background: var(--white); color: var(--teal); border: 2px solid var(--line);
}
.pbanner .pb-btn-ghost:hover { background: var(--white); border-color: var(--teal); }
.pbanner-invite { background: var(--amber-tint); color: var(--amber-deep); }
.pbanner-active { background: var(--teal-tint); color: var(--teal-deep); }
.pbanner-active .pb-ic {
  background: var(--teal); color: var(--white);
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}

/* ----- 동반자 대시보드 ----- */
.cmp-greet {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800; color: var(--teal-deep);
  margin-bottom: 6px;
}
.cmp-sub { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 28px; }

/* 부모님 상태 요약 카드 */
.cmp-summary {
  background: #20262c; color: #c4cace;
  border-radius: var(--radius); padding: 26px 28px; margin-bottom: 32px;
}
.cmp-summary .cs-name {
  font-family: var(--font-display); font-size: 24px; font-weight: 800;
  color: var(--white); margin-bottom: 18px;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.cmp-summary .cs-name .cs-rel {
  font-family: var(--font-body); font-size: 14.5px; font-weight: 600;
  color: #aab0b5; background: rgba(255,255,255,.10);
  padding: 3px 12px; border-radius: 20px;
}
.cmp-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: rgba(255,255,255,.14);
  border-radius: 10px; overflow: hidden;
}
.cmp-grid .cg-cell { background: #20262c; padding: 14px 16px; }
/* 홀수 개일 때 마지막 셀은 한 줄 전체를 채운다 */
.cmp-grid .cg-cell.cg-wide { grid-column: 1 / -1; }
.cmp-grid .cg-k {
  font-size: 14px; color: #9aa0a5; font-weight: 700;
  letter-spacing: .02em; margin-bottom: 4px;
}
.cmp-grid .cg-v { font-size: 16px; color: var(--white); font-weight: 700; line-height: 1.5; }
.cmp-summary .cs-edit {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 14.5px; color: #c4cace; font-weight: 600;
}
.cmp-summary .cs-edit:hover { color: var(--white); }
.cmp-summary .cs-actions {
  display: flex; gap: 22px; flex-wrap: wrap;
}
.cmp-summary .cs-actions .cs-edit { margin-top: 18px; }

/* 알림(다음에 챙길 일) 리스트 */
.rmd-list { display: flex; flex-direction: column; gap: 14px; }
.rmd {
  display: flex; gap: 16px; background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow);
}
.rmd .rmd-ic { font-size: 26px; flex-shrink: 0; }
.rmd .rmd-body { flex: 1; }
.rmd .rmd-title { font-weight: 800; font-size: 18px; color: var(--ink); margin-bottom: 5px; }
.rmd .rmd-text { font-size: 16px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 12px; }
.rmd .rmd-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 15.5px; color: var(--teal);
  min-height: 44px;
}
.rmd-env .rmd-demo {
  margin-top: 10px; font-size: 14px; color: var(--ink-soft);
  background: var(--paper-deep); border-radius: 8px; padding: 8px 12px;
}

/* 빈 상태(미등록) */
.cmp-empty {
  background: var(--white); border: 2px dashed var(--line);
  border-radius: var(--radius-lg); padding: 44px 32px; text-align: center;
}
.cmp-empty .ce-ic { font-size: 44px; margin-bottom: 14px; }
.cmp-empty h2 {
  font-family: var(--font-display); font-size: 24px; color: var(--teal-deep);
  margin-bottom: 10px;
}
.cmp-empty p {
  font-size: 16.5px; color: var(--ink-soft); max-width: 520px;
  margin: 0 auto 22px; line-height: 1.7;
}

/* 등록 폼 */
.cmp-form { display: flex; flex-direction: column; gap: 26px; }
.fld { display: flex; flex-direction: column; gap: 9px; }
.fld > label {
  font-weight: 800; font-size: 17px; color: var(--ink);
}
.fld input[type=text] {
  font-family: var(--font-body); font-size: 17px;
  border: 2px solid var(--line); border-radius: 10px;
  padding: 14px 16px; background: var(--white); color: var(--ink);
  min-height: var(--tap); width: 100%;
}
.fld input[type=text]:focus { border-color: var(--teal); outline: none; }
.opt-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.opt {
  display: flex; align-items: center; gap: 10px;
  border: 2px solid var(--line); border-radius: 10px;
  padding: 13px 15px; background: var(--white); cursor: pointer;
  min-height: var(--tap); font-size: 15.5px; font-weight: 600;
  transition: border-color .15s, background .15s;
}
.opt:hover { border-color: var(--teal); }
.opt .opt-box {
  width: 24px; height: 24px; border-radius: 6px;
  border: 2px solid var(--line); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--white);
}
.opt.on { border-color: var(--teal); background: var(--teal-tint); }
.opt.on .opt-box { background: var(--teal); border-color: var(--teal); }
.opt-radio .opt-box { border-radius: 50%; }
.cmp-form .form-note {
  font-size: 14.5px; color: var(--ink-soft); line-height: 1.6;
}

/* ----- 반응형 ----- */
@media (max-width: 720px) {
  body { font-size: 18px; }
  .wrap { padding: 0 18px; }
  /* v138: 모바일 헤더 — 메뉴 탭·개선의견은 숨기되
     사이트맵·맞춤 설정·응급 세 버튼은 콤팩트하게 유지 */
  .header-nav {
    display: flex; align-items: center;
    flex: 0 0 auto;                 /* 데스크톱의 '꽉 채워 분산'(flex:1) 해제 */
    justify-content: flex-end;      /* 오른쪽으로 모아 */
    gap: 10px;                      /* 일정한 간격 */
    margin-left: auto; margin-right: 10px;
  }
  .header-nav .mm-tab, .header-nav .nav-fb { display: none; }
  .header-nav a.nav-sitemap,
  .header-nav a.nav-companion {
    font-size: 15px; font-weight: 700; padding: 7px 8px; white-space: nowrap;
  }
  .header-nav a.nav-emergency {
    font-size: 15px; padding: 7px 10px; white-space: nowrap;
  }
  .header-nav a.nav-emergency .ne-ic { font-size: 15px; }
  .nav-burger { display: flex; flex-shrink: 0; }
  .site-header .wrap { min-height: 66px; }
  /* 긴 브랜드명이 햄버거와 겹치지 않도록 모바일에서 축소 */
  .brand { font-size: 15px; gap: 7px; }
  .brand-mark { width: 32px; height: 32px; font-size: 14px; }
  /* 메가메뉴는 모바일에서 세로 목록으로 — 섹터가 위에서 아래로 쌓임 */
  .mm-inner { flex-direction: column; gap: 18px; padding: 18px 0 14px; }
  .mm-main { width: 100%; }
  .mm-panel { flex-direction: column; gap: 12px; }
  .mm-gatecard {
    width: 100%; flex-direction: row; justify-content: flex-start;
    gap: 12px; padding: 14px 16px; text-align: left;
  }
  .mm-gc-han { font-size: 18px; }
  .mm-gc-go { margin-top: 0; margin-left: auto; }
  .mm-links { grid-template-columns: 1fr; }
  /* 자주 찾는 곳 — 모바일에서도 표시, 전체 너비 */
  .mm-popular { width: 100%; }
  .mm-foot { margin-top: 0; }
  /* 모바일에서만 보이는 유틸 링크 줄 (사이트맵·동반자·응급) */
  .mm-util {
    display: flex; flex-wrap: wrap; gap: 8px;
    padding-top: 14px; border-top: 1px solid var(--line);
  }
  .mm-util-link {
    flex: 1; min-width: 90px; text-align: center;
    padding: 11px 8px; border-radius: var(--radius-sm);
    background: var(--paper-deep); color: var(--ink);
    font-size: 14px; font-weight: 700;
  }
  .mm-util-link.mm-util-em { background: var(--alert); color: var(--white); }
  /* 햄버거 열림 표시 — X 모양 */
  .site-header.mm-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.mm-open .nav-burger span:nth-child(2) { opacity: 0; }
  .site-header.mm-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .page-hero { padding: 32px 0 36px; }
  .page-body { padding: 36px 0; }
  .steps > li { padding-left: 54px; }
  .list-row { flex-direction: column; gap: 4px; }
  .list-row .rk { min-width: 0; }
  .pbanner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .pbanner .pb-btn { width: 100%; justify-content: center; }
  .cmp-summary { padding: 22px 20px; }
}

/* ----- 접근성: 포커스 가시화 ----- */
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ----- 모션 줄이기 선호 존중 ----- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   자동 수집 피드 (feed.js)
   ============================================================ */
.feed-loading {
  font-size: 14px; color: var(--ink-faint); padding: 16px 0;
}
.feed-pending {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--teal-tint); border: 1px solid var(--teal-tint-2);
  border-radius: var(--radius); padding: 16px 18px;
}
.feed-pending .fp-ic { font-size: 20px; flex-shrink: 0; }
.feed-pending strong {
  display: block; font-size: 14.5px; color: var(--teal-deep);
  margin-bottom: 3px;
}
.feed-pending div { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.feed-grid {
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
@media (min-width: 720px) {
  .feed-grid { grid-template-columns: 1fr 1fr; }
}
.feed-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 13px 15px;
}
.feed-card-top {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.feed-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.feed-cat {
  font-size: 14px; font-weight: 700; color: var(--teal-deep);
  background: var(--teal-tint); padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.feed-meta {
  font-size: 14px; color: var(--ink-soft); margin-top: 6px;
  line-height: 1.55;
}
.feed-stamp {
  font-size: 14px; color: var(--ink-faint); margin-top: 10px;
}
.golink .gl-ic {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: var(--paper-deep); display: grid; place-items: center;
  font-size: 17px;
}
.golink .gl-arrow { font-size: 14px; color: var(--teal); font-weight: 800; flex-shrink: 0; }

/* ============================================================
   섹터 표지 페이지 (희·로·애·락 각 섹터)
   ============================================================ */
.sector-hero {
  padding: 32px 0 28px;
  color: var(--ink);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.sector-hero .wrap { display: flex; align-items: center; gap: 22px; }
.sector-hero h1 {
  font-family: var(--font-serif);
  font-size: 27px; font-weight: 600; letter-spacing: -0.015em;
  margin-bottom: 6px; color: var(--ink);
}
.sector-hero p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.sector-hero .breadcrumb { color: var(--ink-faint); margin-bottom: 10px; }
.sector-hero .breadcrumb a { color: var(--ink-soft); }

/* 섹터별 색 — 통일 (엠블럼·상단선) */
.sec-vibrant,
.sec-no,
.sec-graceful,
.sec-wellbeing  { --sec-accent: var(--teal); }

/* 섹터 안 사건 카드 목록 */
.sector-body { padding: 36px 0 20px; }
.sector-intro {
  font-size: 15.5px; color: var(--ink); line-height: 1.7;
  max-width: 760px; margin-bottom: 24px;
}
.sevent-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.sevent-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
  transition: transform .13s, box-shadow .13s, border-color .13s;
}
.sevent-card:hover {
  text-decoration: none; transform: translateY(-3px);
  box-shadow: var(--shadow-lift); border-color: var(--teal-tint-2);
}
.sevent-ic {
  width: 50px; height: 50px; border-radius: 13px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 25px;
  background: var(--paper-deep);
}
.sevent-tx { display: flex; flex-direction: column; gap: 4px; }
.sevent-tx strong {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 800; color: var(--ink);
}
.sevent-tx span { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.sevent-tx .se-go {
  font-size: 14px; font-weight: 700; color: var(--teal); margin-top: 4px;
}
@media (max-width: 680px) {
  .sevent-grid { grid-template-columns: 1fr; }
  .sector-hero .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ============================================================
   소식·건강정보 카드 (feed.js의 renderNews — 공통)
   ============================================================ */
.news-grid {
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
@media (min-width: 600px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
}
.news-card {
  display: flex; flex-direction: column; gap: 5px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.news-card:hover {
  text-decoration: none;
  border-color: var(--teal-tint-2);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
.news-card .nc-kind {
  align-self: flex-start;
  font-size: 14px; font-weight: 800;
  padding: 3px 9px; border-radius: var(--radius-pill);
}
.nc-news    { background: var(--info-tint);  color: var(--info); }
.nc-policy  { background: var(--teal-tint);  color: var(--teal-deep); }
.nc-benefit { background: var(--amber-tint); color: var(--amber-deep); }
.nc-health  { background: var(--alert-tint); color: var(--alert-deep); }
.nc-jobs    { background: var(--teal-tint);  color: var(--teal-deep); }
.news-card .nc-title {
  font-size: 15.5px; font-weight: 700; color: var(--ink);
  line-height: 1.45;
}
.news-card .nc-summary {
  font-size: 14px; color: var(--ink-soft); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .nc-meta {
  font-size: 14px; color: var(--ink-faint); margin-top: 2px;
}
.feed-empty {
  font-size: 14px; color: var(--ink-faint); padding: 20px 0;
}

/* ============================================================
   흔한 오해 코너 — 잘못 알기 쉬운 점을 바로잡기
   ============================================================ */
.myth-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 1100px) and (max-width: 1450px) { .myth-box { margin-right: 88px; } }
.myth-head {
  background: var(--amber-tint);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 8px;
}
.myth-head .mh-ic { font-size: 24px; }
.myth-head strong {
  font-size: 19px; font-weight: 800; color: var(--amber-deep);
}
.myth-list { display: flex; flex-direction: column; }
.myth-item {
  padding: 16px 18px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 760px) { .myth-item { grid-template-columns: 1fr; gap: 8px; } }
.myth-item:first-child { border-top: none; }
.myth-x, .myth-o {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 19px; line-height: 1.5;
}
.myth-x { margin-bottom: 0; }
.myth-x .mk, .myth-o .mk {
  flex-shrink: 0; width: 50px; padding: 5px 0; border-radius: 6px;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800; line-height: 1.3;
}
.myth-x .mk {
  background: var(--alert-tint); color: var(--alert-deep);
}
.myth-o .mk {
  background: var(--teal-tint); color: var(--teal-deep);
}
.myth-x .mtx { color: var(--ink); }
.myth-x .mtx s { color: var(--ink); text-decoration: none; }
.myth-o .mtx { color: var(--ink); font-weight: 500; }
.myth-o .mtx strong { color: var(--teal-deep); font-weight: 800; }
@media (max-width: 680px) {
}

/* ============================================================
   장기요양 비용 계산기
   ============================================================ */
.cost-calc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cc-head {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
  padding: 18px 22px;
  display: flex; align-items: center; gap: 11px;
}
.cc-head .cc-ic { font-size: 28px; }
.cc-head strong {
  font-size: 24px; font-weight: 800; color: var(--ink);
}
.cc-body {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
}
.cc-inputs {
  padding: 24px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  justify-content: space-between; gap: 16px;
}
.cc-field { display: flex; flex-direction: column; gap: 6px; }
.cc-field label {
  font-size: 18px; font-weight: 700; color: var(--ink);
}
.cc-field select, .cc-field input {
  font-family: inherit; font-size: 19px;
  padding: 14px 15px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink);
}
.cc-field select:focus, .cc-field input:focus {
  outline: 2px solid var(--teal-tint-2); border-color: var(--teal);
}
.cc-field .cc-sub {
  font-size: 14px; color: var(--ink-faint); line-height: 1.5;
}
.cc-output { padding: 20px; }
@media (min-width: 1100px) and (max-width: 1450px) {
  .cc-output { padding-right: 92px; }
}
.cc-big {
  background: var(--teal);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  margin-bottom: 16px;
}
.cc-big-label {
  display: block; font-size: 17px; font-weight: 700;
  color: rgba(255,255,255,.9); margin-bottom: 6px;
}
.cc-big-num {
  display: block;
  font-family: var(--font-display);
  font-size: 36px; font-weight: 800; color: #fff;
  letter-spacing: -0.02em;
}
.cc-rows { display: flex; flex-direction: column; }
.cc-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 18px;
}
.cc-row:last-child { border-bottom: none; }
.cc-row span { color: var(--ink-soft); }
.cc-row b { color: var(--ink); font-weight: 700; white-space: nowrap; }
.cc-row-warn span, .cc-row-warn b { color: var(--alert-deep); }
.cc-row-sub span, .cc-row-sub b { color: var(--ink-faint); }
.cc-note {
  font-size: 17px; color: var(--ink-soft);
  line-height: 1.6; margin-top: 14px;
}
.cc-note-warn {
  color: var(--alert-deep);
  background: var(--alert-tint);
  padding: 12px 14px; border-radius: var(--radius-sm);
}
.cc-hint {
  font-size: 18px; color: var(--ink-faint);
  text-align: center; padding: 40px 16px;
}
@media (max-width: 680px) {
  .cc-body { grid-template-columns: 1fr; }
  .cc-inputs { border-right: none; border-bottom: 1px solid var(--line); }
  .cc-big-num { font-size: 28px; }
}

/* ============================================================
   상황별 통합 길잡이 (guide)
   ============================================================ */
.guide-hero {
  background: var(--white);
  color: var(--ink); padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.guide-hero .breadcrumb { color: var(--ink-faint); }
.guide-hero .breadcrumb a { color: var(--ink-soft); }
.guide-hero h1 {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 600; margin: 8px 0 10px;
  letter-spacing: -0.015em; color: var(--ink);
}
.guide-hero .gh-sub {
  font-size: 14.5px; color: var(--ink-soft); line-height: 1.6;
  max-width: 620px;
}
/* 흐름 단계 */
.flow {
  display: flex; flex-direction: column;
  position: relative;
}
.flow-step {
  display: flex; gap: 16px;
  padding-bottom: 26px;
  position: relative;
}
.flow-step:last-child { padding-bottom: 0; }
/* 세로 연결선 */
.flow-step::before {
  content: ""; position: absolute;
  left: 17px; top: 38px; bottom: -4px;
  width: 2px; background: var(--line);
}
.flow-step:last-child::before { display: none; }
.flow-num {
  flex-shrink: 0; width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--teal); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 16px;
  position: relative; z-index: 1;
}
.flow-step.urgent .flow-num { background: var(--alert); }
.flow-body {
  flex: 1; min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.flow-step.urgent .flow-body {
  border-color: var(--alert);
  background: var(--alert-tint);
}
.flow-when {
  display: inline-block;
  font-size: 14px; font-weight: 800;
  color: var(--teal-deep);
  background: var(--teal-tint);
  padding: 2px 9px; border-radius: var(--radius-pill);
  margin-bottom: 8px;
}
.flow-step.urgent .flow-when {
  color: var(--alert-deep); background: #fff;
}
.flow-body h3 {
  font-size: 16.5px; font-weight: 800; color: var(--ink);
  margin-bottom: 6px;
}
.flow-body p {
  font-size: 14px; color: var(--ink-soft); line-height: 1.6;
  margin-bottom: 10px;
}
.flow-body p:last-child { margin-bottom: 0; }
.flow-links {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 10px;
}
.flow-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 700;
  padding: 7px 12px; border-radius: var(--radius-pill);
  background: var(--teal-tint); color: var(--teal-deep);
}
.flow-link:hover { background: var(--teal); color: #fff; }
.flow-link.tel { background: var(--alert-tint); color: var(--alert-deep); }
.flow-link.tel:hover { background: var(--alert); color: #fff; }
.flow-tip {
  font-size: 14px; color: var(--ink-faint);
  background: var(--paper); border-radius: var(--radius-sm);
  padding: 9px 11px; margin-top: 10px; line-height: 1.55;
}

/* 통합 길잡이 입구 (situations 페이지) */
.guide-entry {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 22px;
  color: var(--ink);
}
.guide-entry .ge-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
}
.guide-entry .ge-head strong {
  font-size: 16.5px; font-weight: 800; color: var(--ink);
}
.guide-entry .ge-sub {
  font-size: 14px; color: var(--ink-soft);
  line-height: 1.55; margin-bottom: 14px;
}
.guide-entry-list { display: flex; flex-direction: column; gap: 8px; }
.guide-entry-item {
  display: flex; align-items: center; gap: 11px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .15s ease, background .15s ease;
}
.guide-entry-item:hover {
  background: var(--white);
  border-color: var(--teal);
  text-decoration: none;
}
.guide-entry-item .gei-ic { font-size: 20px; flex-shrink: 0; }
.guide-entry-item .gei-tx { flex: 1; min-width: 0; }
.guide-entry-item .gei-tx b {
  display: block; font-size: 14.5px; font-weight: 800; color: var(--ink);
}
.guide-entry-item .gei-tx span {
  font-size: 14px; color: var(--ink-soft);
}
.guide-entry-item .gei-arrow {
  flex-shrink: 0; font-size: 16px; color: var(--teal);
}
.guide-entry-item.soon {
  background: var(--paper);
  cursor: default; opacity: .6;
}
.guide-entry-item.soon:hover { background: var(--paper); border-color: var(--line); }
.guide-entry-item .gei-soon {
  flex-shrink: 0; font-size: 14px; font-weight: 700;
  color: var(--ink-faint);
  border: 1px solid var(--line-strong);
  padding: 2px 8px; border-radius: var(--radius-pill);
}

/* ============================================================
   내 주변 찾기 (위치 기반)
   ============================================================ */
.nearby-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.nearby-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 5px;
}
.nearby-head .nb-ic { font-size: 21px; }
.nearby-head strong {
  font-size: 17px; font-weight: 800; color: var(--ink);
}
.nearby-sub {
  font-size: 14px; color: var(--ink-soft);
  line-height: 1.55; margin-bottom: 14px;
}
.nearby-pick {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 14px;
}
.nearby-pick select, .nearby-pick input {
  font-family: inherit; font-size: 14.5px;
  padding: 11px 13px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink);
}
.nearby-pick select:focus, .nearby-pick input:focus {
  outline: 2px solid var(--teal-tint-2); border-color: var(--teal);
}
.nearby-targets { display: flex; flex-direction: column; gap: 8px; }
.nearby-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: background .15s ease, border-color .15s ease;
}
.nearby-item:hover {
  background: var(--teal-tint);
  border-color: var(--teal);
  text-decoration: none;
}
.nearby-item .ni-ic { font-size: 21px; flex-shrink: 0; }
.nearby-item .ni-tx { flex: 1; min-width: 0; }
.nearby-item .ni-tx b {
  display: block; font-size: 14.5px; font-weight: 700;
  color: var(--ink);
}
.nearby-item .ni-tx span {
  font-size: 14px; color: var(--ink-faint);
}
.nearby-item .ni-arrow {
  flex-shrink: 0; font-size: 15px; color: var(--teal-deep);
  font-weight: 700;
}
.nearby-hint {
  font-size: 14px; color: var(--ink-faint);
  text-align: center; padding: 22px 16px;
}
@media (max-width: 560px) {
  .nearby-pick { grid-template-columns: 1fr; }
}

/* ============================================================
   돌봄 여정 지도 — 지금 내 단계는?
   ============================================================ */
.journey {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.journey-head { margin-bottom: 4px; }
.journey-head strong {
  font-size: 17px; font-weight: 800; color: var(--ink);
}
.journey-sub {
  font-size: 14px; color: var(--ink-soft);
  line-height: 1.55; margin-bottom: 18px;
}
.journey-map {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.jstep {
  text-align: center;
  padding: 0 6px;
  position: relative;
  cursor: pointer;
}
/* 단계 연결선 */
.jstep::before {
  content: ""; position: absolute;
  top: 19px; left: -50%; width: 100%;
  height: 3px; background: var(--line);
  z-index: 0;
}
.jstep:first-child::before { display: none; }
.jstep-dot {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--line);
  display: grid; place-items: center;
  font-size: 18px;
  margin: 0 auto 9px;
  position: relative; z-index: 1;
  transition: border-color .15s ease, background .15s ease;
}
.jstep-name {
  font-size: 14px; font-weight: 800; color: var(--ink);
  margin-bottom: 3px;
}
.jstep-desc {
  font-size: 14px; color: var(--ink-faint);
  line-height: 1.4;
}
.jstep:hover .jstep-dot,
.jstep.active .jstep-dot {
  border-color: var(--teal);
  background: var(--teal-tint);
}
.jstep.active .jstep-name { color: var(--teal-deep); }
/* 선택 시 안내 패널 */
.journey-panel {
  margin-top: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: none;
}
.journey-panel.show { display: block; }
.journey-panel h4 {
  font-size: 15px; font-weight: 800; color: var(--ink);
  margin-bottom: 6px;
}
.journey-panel p {
  font-size: 14px; color: var(--ink-soft);
  line-height: 1.6; margin-bottom: 10px;
}
.journey-panel .jp-links {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.journey-panel .jp-link {
  font-size: 14px; font-weight: 700;
  padding: 7px 13px; border-radius: var(--radius-pill);
  background: var(--white); color: var(--teal);
  border: 1px solid var(--line);
}
.journey-panel .jp-link:hover {
  background: var(--teal); color: #fff; border-color: var(--teal);
}
@media (max-width: 620px) {
  .journey-map { grid-template-columns: repeat(5, 1fr); }
  .jstep { padding: 0 2px; }
  .jstep-dot { width: 34px; height: 34px; font-size: 15px; }
  .jstep::before { top: 16px; }
  .jstep-name { font-size: 14px; }
  .jstep-desc { display: none; }
}

/* ============================================================
   공용 컴포넌트 — 페이지 간 중복 inline 스타일을 통합
   (3순위 코드 정리: community/companion/directory/health/work)
   ============================================================ */

/* ----- 토스트 알림 (저장·완료 안내) ----- */
.toast {
  position: fixed; left: 50%; bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: #20262c; color: var(--white);
  padding: 14px 26px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 15.5px;
  box-shadow: var(--shadow-lift); opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s; z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   정부 공식 창구 사이드바 — 전 페이지 공통 고정
   기본: 펼침. 사용자가 접을 수 있음.
   ============================================================ */
/* 접혀 있을 때 — 우측에 붙은 작은 손잡이 버튼 */
.ob-toggle {
  position: fixed; right: 0; top: 50%;
  transform: translateY(calc(-50% - 86px));
  z-index: 900;
  height: 150px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal); color: #fff;
  border: none; cursor: pointer;
  padding: 0 22px;
  border-radius: 22px 0 0 22px;
  box-shadow: -3px 3px 18px rgba(0,0,0,.22);
  transition: opacity .15s, visibility .15s, background .12s;
}
.ob-toggle:hover { background: var(--teal-deep); }
/* 사이드바가 열려 있으면 손잡이는 숨김 */
body.ob-open .ob-toggle { opacity: 0; visibility: hidden; }
.ob-toggle-tx {
  font-family: var(--font-display);
  font-size: 23px; font-weight: 800; line-height: 1.5;
  text-align: center;
}
/* 사이드바 본체 */
.official-bar {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: 396px; z-index: 950;
  background: var(--white);
  border-left: 1px solid var(--line);
  box-shadow: -6px 0 22px rgba(0,0,0,.10);
  transform: translateX(100%);
  visibility: hidden; /* v129: 닫힘 = 숨김 — 인앱 브라우저가 화면 밖 패널을 페이지 폭으로 계산하는 것 차단 */
  transition: transform .22s ease, visibility .22s;
  overflow-y: auto;
  padding: 0 18px 22px;
}
/* 기본 = 펼침 (데스크톱). body.ob-open 이면 들어와 있음 */
body.ob-open .official-bar { transform: translateX(0); visibility: visible; }
/* 사이드바가 열려 있을 때 본문을 그만큼 밀어 가리지 않게 함.
   헤더(sticky)·푸터·사이드바 자신은 제외하고, 그 사이 콘텐츠만 민다. */
@media (min-width: 761px) {
  body.ob-open > section,
  body.ob-open > div {
    margin-right: 396px;
    transition: margin-right .22s ease;
  }
  body.ob-open > #site-header,
  body.ob-open > #site-footer,
  body.ob-open > .official-bar,
  body.ob-open > .ob-toggle {
    margin-right: 0;
  }
  /* 헤더·푸터는 전체폭이라 내부 .wrap이 가운데 정렬되어
     사이드바로 좁아진 본문과 좌측선이 어긋난다 — 좌측 정렬로 맞춘다. */
  body.ob-open > #site-header .wrap,
  body.ob-open > #site-footer .wrap {
    margin-left: 0;
    margin-right: auto;
    max-width: calc(var(--maxw) - 396px);
  }
  /* 본문 섹션의 .wrap도 좌측 정렬로 맞춰 헤더와 시작점을 일치시킨다.
     (기본은 margin:0 auto 라 가운데 정렬되어 헤더와 어긋난다) */
  body.ob-open > section .wrap,
  body.ob-open > div .wrap {
    margin-left: 0;
    margin-right: auto;
  }
}
.ob-head {
  position: sticky; top: 0;
  background: var(--white);
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 12px;
}
.ob-title { font-size: 16px; font-weight: 800; color: var(--ink); }
.ob-close {
  background: var(--paper-deep); border: none; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 12px; border-radius: 16px;
  font-size: 14px; font-weight: 700; color: var(--ink-soft);
}
.ob-close:hover { background: var(--line); color: var(--ink); }
.ob-intro {
  font-size: 14px; color: var(--ink-soft); line-height: 1.6;
  margin-bottom: 16px;
}
.ob-group { margin-bottom: 16px; }
.ob-cat {
  font-size: 14px; font-weight: 800; color: var(--teal-deep);
  margin-bottom: 7px;
}
/* 카테고리 안 링크 — 한 줄에 2개씩 */
.ob-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px;
}
.ob-link {
  display: block;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 11px;
}
.ob-link:hover {
  border-color: var(--teal); background: var(--teal-tint);
  text-decoration: none;
}
.ob-name {
  display: block; font-size: 14px; font-weight: 700; color: var(--ink);
  line-height: 1.35;
}
.ob-desc {
  display: block; font-size: 14px; color: var(--ink-faint);
  line-height: 1.4; margin-top: 2px;
}
.ob-foot {
  font-size: 14px; color: var(--ink-faint); line-height: 1.5;
  padding-top: 10px; border-top: 1px solid var(--line-soft);
}

/* ───── 시니어 뉴스 사이드바 — 정부 공식 창구의 형제 ───── */
/* 토글 손잡이 — 정부 공식 손잡이 바로 아래, 사이에 여백 */
.nb-toggle {
  position: fixed; right: 0; top: 50%;
  transform: translateY(calc(-50% + 86px));
  z-index: 900;
  height: 150px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal); color: #fff;
  border: none; cursor: pointer;
  padding: 0 22px;
  border-radius: 22px 0 0 22px;
  box-shadow: -3px 3px 18px rgba(0,0,0,.22);
  transition: opacity .15s, visibility .15s, background .12s;
}
.nb-toggle:hover { background: var(--teal-deep); }
body.nb-open .nb-toggle { opacity: 0; visibility: hidden; }
.nb-toggle-tx {
  font-family: var(--font-display);
  font-size: 23px; font-weight: 800; line-height: 1.5;
  text-align: center;
}
/* 패널 */
.news-bar {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: 396px; z-index: 950;
  background: var(--white);
  border-left: 1px solid var(--line);
  box-shadow: -6px 0 22px rgba(0,0,0,.10);
  transform: translateX(100%);
  visibility: hidden; /* v129: 닫힘 = 숨김 — 인앱 브라우저가 화면 밖 패널을 페이지 폭으로 계산하는 것 차단 */
  transition: transform .22s ease, visibility .22s;
  overflow-y: auto;
  padding: 0 18px 22px;
}
body.nb-open .news-bar { transform: translateX(0); visibility: visible; }
@media (min-width: 761px) {
  body.nb-open > section,
  body.nb-open > div {
    margin-right: 396px;
    transition: margin-right .22s ease;
  }
  body.nb-open > #site-header,
  body.nb-open > #site-footer,
  body.nb-open > .news-bar,
  body.nb-open > .news-bar ~ .nb-toggle,
  body.nb-open > .official-bar,
  body.nb-open > .ob-toggle,
  body.nb-open > .nb-toggle {
    margin-right: 0;
  }
  body.nb-open > #site-header .wrap,
  body.nb-open > #site-footer .wrap {
    margin-left: 0; margin-right: auto;
    max-width: calc(var(--maxw) - 396px);
  }
  body.nb-open > section .wrap,
  body.nb-open > div .wrap {
    margin-left: 0; margin-right: auto;
  }
}
.nb-head {
  position: sticky; top: 0;
  background: var(--white);
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 12px;
}
.nb-title { font-size: 16px; font-weight: 800; color: var(--ink); }
.nb-close {
  background: var(--paper-deep); border: none; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 12px; border-radius: 16px;
  font-size: 14px; font-weight: 700; color: var(--ink-soft);
}
.nb-close:hover { background: var(--line); color: var(--ink); }
.nb-intro {
  font-size: 14px; color: var(--ink-soft); line-height: 1.6;
  margin-bottom: 14px;
}
.nb-list { display: flex; flex-direction: column; gap: 8px; }
.nb-item {
  display: block;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 11px 13px;
}
.nb-item:hover {
  border-color: var(--teal); background: var(--teal-tint);
  text-decoration: none;
}
.nb-item-top {
  display: flex; align-items: center; gap: 7px; margin-bottom: 5px;
}
.nb-kind {
  font-size: 14px; font-weight: 800; color: var(--teal-deep);
  background: var(--teal-tint); padding: 2px 7px;
  border-radius: var(--radius-pill);
}
.nb-date { font-size: 14px; color: var(--ink-faint); }
.nb-item-tx {
  display: block; font-size: 14px; font-weight: 700;
  color: var(--ink); line-height: 1.45;
}
.nb-loading {
  font-size: 14px; color: var(--ink-faint); padding: 8px 0;
}
.nb-more {
  display: block; text-align: center; margin-top: 14px;
  padding: 12px; background: var(--teal);
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 800; color: #fff;
}
.nb-more:hover { background: var(--teal-deep); text-decoration: none; }
@media (max-width: 760px) {
  .news-bar { width: 86vw; max-width: 320px; }
}
@media (max-width: 760px) {
  .official-bar { width: 86vw; max-width: 320px; }
}

/* ===================== 링크 카드 (업체·기관 바로가기) ===================== */
/* caregiver·health·work·senior-startup 등에서 공통 사용 —
   카드 전체가 링크, 이름 크게, 설명 짧게 */
.cg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
@media (min-width: 1100px) and (max-width: 1450px) {
  .cg-grid { margin-right: 88px; }
}
.cg-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 26px;
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.cg-card:hover {
  text-decoration: none;
  border-color: var(--teal);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
.cg-name {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 25px; font-weight: 800; color: var(--ink);
  line-height: 1.2; margin-bottom: 10px;
}
.cg-name .cg-arrow { font-size: 20px; color: var(--teal-deep); }
.cg-card:hover .cg-name { color: var(--teal-deep); }
.cg-desc {
  font-size: 18px; color: var(--ink-soft);
  line-height: 1.5; margin: 0;
}

/* ===== '자세히' 버튼 + 툴팁 (전역 — 모든 세부 페이지 공통) ===== */
.xtip {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  margin-left: 8px; vertical-align: middle;
  padding: 5px 14px; border-radius: 999px;
  background: var(--amber-tint, #fdebd9); color: var(--amber-deep);
  font-size: 16px; font-weight: 800; cursor: pointer; flex-shrink: 0;
  border: 1.5px solid var(--amber); user-select: none;
  line-height: 1.2; white-space: nowrap;
}
.xtip::before { content: "자세히"; }
.xtip::after { content: "▾"; font-size: 14px; }
.xtip.xtip-on::after { content: "▴"; }
.xtip.xtip-on { background: var(--amber); color: #fff; outline: none; }
/* v134: hover는 마우스 기기에서만 — 터치의 'hover 잔상'이 풍선을 못 닫게 하던 문제 해결 */
@media (hover: hover) {
  .xtip:hover { background: var(--amber); color: #fff; outline: none; }
}
.xtip .xtip-pop {
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 340px;
  background: var(--ink); color: #fff;
  font-size: 18px; font-weight: 500; line-height: 1.6; letter-spacing: -0.01em;
  text-align: left; padding: 16px 18px; border-radius: 14px;
  box-shadow: 0 10px 32px rgba(0,0,0,.28);
  opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s;
  z-index: 80; pointer-events: none; white-space: normal;
}
.xtip .xtip-pop::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 8px solid transparent; border-top-color: var(--ink);
}
.xtip.xtip-on .xtip-pop { opacity: 1; visibility: visible; }
@media (hover: hover) {
  .xtip:hover .xtip-pop { opacity: 1; visibility: visible; }
}
.xtip .xtip-pop strong { color: var(--amber); }
/* v133: 모바일 — 자세히 풍선은 누른 버튼 '바로 아래', 화면 밖이면 JS가 안쪽으로 보정 */
@media (max-width: 640px) {
  /* v135: 터치에서는 버튼 상태(xtip-on)만이 유일한 진실 —
     hover 잔상 등 어떤 경로로도 풍선이 다시 살아나지 못하게 최우선 규칙으로 고정 */
  .xtip:not(.xtip-on) .xtip-pop {
    opacity: 0 !important;
    visibility: hidden !important;
  }
  .xtip .xtip-pop {
    bottom: auto;
    top: calc(100% + 10px);
    width: min(86vw, 420px);
    max-width: 86vw;
    max-height: 60vh;
    overflow-y: auto;
    font-size: 19px;
    z-index: 1300;
    pointer-events: auto;
  }
  /* 꼬리 화살표 — 풍선이 아래에 있으니 위를 향하게, 가로 위치는 버튼 추적(--ax) */
  .xtip .xtip-pop::after {
    top: auto; bottom: 100%;
    left: var(--ax, 50%);
    border: 8px solid transparent;
    border-top-color: transparent;
    border-bottom-color: var(--ink);
  }
}
/* 터치 기기 — 카드의 hover 들림 효과 제거 (눌린 hover가 고정창 위치를 틀어지게 하는 것 방지) */
@media (hover: none) {
  .step-brick:hover, .mh-brick:hover { transform: none; }
}

/* ============================================================
   카드 다이어트 — 카드 본문을 1줄로 줄이고 '자세히'로 펼침
   (JS가 .cd-clip 클래스와 토글 버튼을 자동 부여)
   ============================================================ */
.cd-clip {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cd-clip.cd-clip-2 { -webkit-line-clamp: 2; }
.cd-clip.cd-open {
  -webkit-line-clamp: unset;
  overflow: visible;
}
/* 카드 안 '자세히/접기' 토글 버튼 */
.cd-more {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 8px;
  padding: 5px 13px; border-radius: 999px;
  background: var(--amber-tint, #fdebd9); color: var(--amber-deep);
  font-size: 15px; font-weight: 800; cursor: pointer;
  border: 1.5px solid var(--amber); user-select: none;
  line-height: 1.2; white-space: nowrap; width: fit-content;
}
.cd-more::after { content: " ▾"; font-size: 14px; }
.cd-more:hover, .cd-more:focus { background: var(--amber); color: #fff; outline: none; }
.cd-more.cd-open::after { content: " ▴"; }

/* ---- 데이터 기준일 고지 (v115) ---- */
.data-basis{
  max-width:1232px; margin:10px auto 0; padding:10px 16px;
  font-size:15px; line-height:1.55; color:#4b5b63;
  background:#f2f7f8; border-left:4px solid #9cc3cd; border-radius:8px;
}


/* ============================================================
   눌러서 전화 (tel: 링크) — v119
   시설 검색결과·피드의 전화번호를 휴대폰에서 바로 걸 수 있게.
   시니어 사용성: 탭 영역 충분히, 누르는 것임이 보이게.
   ============================================================ */
a.tel-call {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 8px 14px; margin: 2px 0;
  background: #eaf6ef; border: 1.5px solid #bfe3cc;
  border-radius: 12px; text-decoration: none;
  color: var(--ink); font-weight: 700;
}
a.tel-call:hover { background: #ddf0e5; text-decoration: none; }
a.tel-call b { font-weight: 800; }
a.tel-call .tc-hint {
  font-size: 12.5px; font-weight: 800; color: #2f7d4f;
  background: #fff; border-radius: 8px; padding: 2px 8px;
  white-space: nowrap;
}
/* 전화를 걸 수 없는 큰 화면(PC)에서는 '눌러서 전화' 꼬리표만 감춤
   — 번호는 그대로 보이고, 마우스 환경에서 헛된 기대를 만들지 않음 */
@media (min-width: 1000px) and (hover: hover) and (pointer: fine) {
  a.tel-call .tc-hint { display: none; }
  a.tel-call { background: transparent; border-color: transparent;
    padding: 0; min-height: 0; cursor: text; }
}


/* ============================================================
   헤더 '개선 의견' 토글 + 패널 — v120
   ============================================================ */
.nav-fb {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 44px; padding: 8px 16px; margin-left: 6px;
  border: 1.5px solid var(--teal, #2f7d6d); border-radius: 999px;
  background: #eef7f4; color: var(--teal-deep, #235c50);
  font-family: inherit; font-size: 16px; font-weight: 800;
  cursor: pointer; white-space: nowrap;
}
.nav-fb:hover { background: #ddefe9; }
.fb-panel {
  position: fixed; top: 64px; right: 16px; z-index: 1200;
  width: 340px; max-width: calc(100vw - 24px);
  background: var(--white, #fff); border: 1px solid var(--line, #ddd);
  border-radius: 16px; box-shadow: 0 12px 34px rgba(0,0,0,.16);
  padding: 16px 18px 14px;
}
.fbp-head { display: flex; align-items: center; justify-content: space-between;
  font-size: 18px; margin-bottom: 6px; }
.fbp-close { border: 0; background: none; font-size: 20px; cursor: pointer;
  padding: 8px 10px; color: var(--ink-soft, #666); }
.fbp-lead { font-size: 16px; line-height: 1.65; color: var(--ink); margin: 0 0 12px; }
.fbp-btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; margin-bottom: 10px; border-radius: 12px;
  border: 1.5px solid var(--line, #ddd); text-decoration: none;
  font-size: 17px; font-weight: 800; color: var(--ink);
  background: var(--paper, #fafafa);
}
.fbp-btn:hover { background: #f0f0ec; text-decoration: none; }
.fbp-kakao { background: #fdf0b8; border-color: #f3d11a; }
.fbp-kakao:hover { background: #fae47e; }
.fbp-wait { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft, #666);
  background: var(--paper-deep, #f4f1ea); border-radius: 10px;
  padding: 12px 14px; margin: 0 0 10px; }
.fbp-note { font-size: 13.5px; color: var(--ink-soft, #666); margin: 4px 0 0; }
@media (max-width: 760px) {
  .nav-fb { display: none; }   /* 모바일은 햄버거 메뉴 안의 항목으로 */
  .fb-panel { top: 60px; right: 8px; }
}


/* ============================================================
   v125 모바일 최적화 — 사이드 토글 축소 + 가로 넘침 방지
   ============================================================ */
@media (max-width: 760px) {
  /* 본문이 화면보다 넓어져 옆으로 밀리는 현상 원천 차단 (안전망)
     v129: hidden(전 브라우저 지원)을 기본으로, 지원 브라우저는 clip으로 상향 */
  html, body { overflow-x: hidden; overflow-x: clip; }

  /* (c) 입력 요소 16px 이상 — 답변·선택 터치 시 브라우저 자동 확대 방지 */
  input, select, textarea { font-size: 16px; }

  /* 1. 우측 토글(정부 공식/시니어 뉴스) — 본문을 가리지 않는 콤팩트 탭으로 */
  .ob-toggle, .nb-toggle {
    height: auto;
    padding: 11px 9px;
    border-radius: 13px 0 0 13px;
    box-shadow: -2px 2px 10px rgba(0,0,0,.18);
  }
  .ob-toggle-tx, .nb-toggle-tx {
    font-size: 12.5px;
    line-height: 1.35;
    font-weight: 800;
  }
  /* 위아래 간격도 축소된 크기에 맞게 재배치 */
  .ob-toggle { transform: translateY(calc(-50% - 52px)); }
  .nb-toggle { transform: translateY(calc(-50% + 52px)); }

  /* 6. 내 주변 찾기 — 작은 화면에서 안쪽 여백 슬림하게 (폭 기준 통일) */
  .nearby-box { padding: 16px 14px; }
}


/* ============================================================
   v137: 포털 풍선 — 열린 '자세히' 풍선은 body 최상위로 이동해 표시
   ============================================================ */
.xtip-pop.xt-portal {
  position: fixed !important;
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  max-width: none;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--ink); color: #fff;
  font-size: 19px; font-weight: 500; line-height: 1.6;
  letter-spacing: -0.01em; text-align: left;
  padding: 16px 18px; border-radius: 14px;
  box-shadow: 0 10px 32px rgba(0,0,0,.28);
  z-index: 2000;
  pointer-events: auto;
  white-space: normal;
}
.xtip-pop.xt-portal::after { display: none; }
.xtip-pop.xt-portal strong { color: var(--amber); }


/* v138: 아주 좁은 화면 — 헤더 한 줄 유지를 위해 '홈' 라벨 숨김 */
@media (max-width: 400px) {
  .brand-home { display: none; }
  .header-nav { gap: 7px; margin-right: 7px; }
  .header-nav a.nav-sitemap,
  .header-nav a.nav-companion { padding: 7px 6px; font-size: 14px; }
  .header-nav a.nav-emergency { padding: 7px 8px; font-size: 14px; }
}
