/* ============================================================
   공공 배움·일자리 허브 — 디자인 시스템 (시니어 포털 디자인 토큰 재사용)
   ------------------------------------------------------------
   핵심 사용자: 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:         #6D44E8;   /* 포인트 컬러 — 밝은 바이올렛 */
  --teal-deep:    #6D44E8;   /* 진한 변형 — 글자·호버 */
  --teal-bright:  #7C5CFC;   /* (호환용 — 동일색) */
  --teal-tint:    #F0ECFF;   /* 아주 옅은 주황 면 */
  --teal-tint-2:  #DED3FF;

  /* 보조 강조 — 별도 색 대신 잉크/포인트로 수렴 (호환용 매핑) */
  --amber:        #6D44E8;
  --amber-deep:   #5B33C7;
  --amber-tint:   #F0ECFF;

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

  /* 정보 — 포인트 바이올렛으로 수렴 (호환용 매핑) */
  --info:         #6D44E8;
  --info-tint:    #F0ECFF;

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

/* ----- 폰트 로드 ----- */
@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700;800&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

* { 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;
  /* sticky footer: 내용이 짧아도 푸터를 화면 바닥에 고정 */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100vh;
}
/* flex 자식들이 가로 폭을 잃지 않도록 (margin:auto 가운데정렬 박스 보호)
   ※ 헤더/푸터는 site.js가 outerHTML 교체 후 .hub-header / .hub-footer 가 됨 */
body > .hub-header,
body > .hub-footer,
body > #site-header,
body > #site-footer,
body > .page-body,
body > .nw-wrap,
body > .bd-wrap,
body > section,
body > div {
  width: 100%;
}
/* 푸터를 항상 맨 아래로 밀어냄 (본문이 짧을 때)
   실제 렌더 후 요소는 .hub-footer 이므로 그쪽에 적용 */
body > .hub-footer,
body > #site-footer { margin-top: auto; }

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: 10px; 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-name { font-size: 15px; font-weight: 800; margin-top: 4px; }
.mm-gc-tag { font-size: 11.5px; opacity: .85; }
.mm-gc-go {
  font-size: 11.5px; 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: 12px; 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: 13px; font-weight: 800; color: var(--teal-deep);
  display: flex; align-items: center; gap: 6px; margin-bottom: 11px;
}
.mm-pop-star { font-size: 12px; }
.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: 13.5px; 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: 11px; 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: 13px; 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-eyebrow {
  display: inline-block;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.08em;
  color: var(--teal); text-transform: uppercase;
  margin-bottom: 10px;
}
.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;
}
.section-lead {
  font-size: 15.5px; color: var(--ink-soft); line-height: 1.7;
  margin-top: 10px; max-width: 640px;
}

/* ----- 카드 ----- */
.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); }

/* ----- 신뢰 경계 배지 (중립정보 vs 사업자정보) ----- */
.trust-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  padding: 4px 10px; border-radius: var(--radius-pill);
}
.trust-public  { background: var(--teal-tint);  color: var(--teal-deep); }
.trust-vendor  { background: var(--paper-deep); color: var(--ink-soft); }

/* ----- 표 ----- */
.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: 13.5px;
}
.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;
}
.breadcrumb {
  font-size: 13.5px; color: var(--ink-faint);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.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; }

/* ----- 비교 카드 그리드 ----- */
.compare-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.compare-card { padding: 20px; }
.compare-card h4 {
  font-size: 16px; font-weight: 800; color: var(--teal-deep);
  margin-bottom: 10px;
}
.compare-card .pro, .compare-card .con {
  font-size: 16.5px; line-height: 1.7; margin-top: 8px;
  padding-left: 24px; position: relative;
}
.compare-card .pro::before { content: "+"; position: absolute; left: 4px; color: var(--teal); font-weight: 800; }
.compare-card .con::before { content: "!"; position: absolute; left: 6px; color: var(--amber-deep); font-weight: 800; }

/* ----- 정보 리스트 항목 ----- */
.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); }

/* ----- 공식 창구 바로가기 (각 사건 페이지 공통) ----- */
.offdesk {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.offdesk-head {
  display: flex; align-items: center; gap: 8px;
  background: var(--paper-deep); padding: 12px 16px;
  font-size: 14px; font-weight: 800; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.offdesk-list { display: flex; flex-direction: column; }
.offdesk-row {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 16px; border-top: 1px solid var(--line-soft);
}
.offdesk-row:first-child { border-top: none; }
.offdesk-row .od-ic {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--paper); display: grid; place-items: center; font-size: 18px;
}
.offdesk-row .od-text { flex: 1; min-width: 0; }
.offdesk-row .od-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.offdesk-row .od-desc { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; margin-top: 1px; }
.offdesk-row .od-go {
  flex-shrink: 0; font-size: 12.5px; font-weight: 700;
  padding: 7px 13px; border-radius: var(--radius-pill);
  background: var(--teal); color: var(--white);
}
.offdesk-row .od-go:hover { background: var(--teal-deep); text-decoration: none; }
/* 우리 지도 버튼 + 공식 명단 버튼을 세로로 묶는 칸 */
.offdesk-row .od-acts {
  flex-shrink: 0; display: flex; flex-direction: column; gap: 6px;
  align-items: stretch; text-align: center;
}
.offdesk-row .od-map {
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
  padding: 7px 13px; border-radius: var(--radius-pill);
  background: var(--amber); color: var(--ink);
}
.offdesk-row .od-map:hover { background: var(--amber-deep); color: var(--white); text-decoration: none; }
.offdesk-row .od-tel {
  flex-shrink: 0; font-size: 14px; font-weight: 800; color: var(--teal-deep);
}

/* ============================================================
   공식 창구 사이드 카드 — 가시성 강화
   데스크탑(1280px+): 우측에 고정되어 스크롤해도 항상 보임
   좁은 화면: 본문 흐름 안, 페이지 상단에 자연스럽게 표시
   ============================================================ */
.offdesk-side {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.offdesk-side .ods-head {
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
  padding: 15px 18px;
  display: flex; flex-direction: column; gap: 5px;
}
.offdesk-side .ods-badge {
  align-self: flex-start;
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
  background: var(--teal); color: #fff;
  padding: 3px 11px; border-radius: var(--radius-pill);
}
.offdesk-side .ods-title { font-size: 17px; font-weight: 800; color: var(--ink); }
.offdesk-side .ods-list { display: flex; flex-direction: column; }
.offdesk-side .ods-row {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 18px; border-top: 1px solid var(--line-soft);
}
.offdesk-side .ods-row:first-child { border-top: none; }
.offdesk-side .ods-ic {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: var(--paper); display: grid; place-items: center; font-size: 20px;
}
.offdesk-side .ods-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.offdesk-side .ods-name { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.offdesk-side .ods-desc { font-size: 13px; color: var(--ink-soft); margin-top: 2px; line-height: 1.45; }
.offdesk-side .ods-go {
  flex-shrink: 0; font-size: 13px; font-weight: 700;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--teal); color: var(--white);
}
.offdesk-side .ods-go:hover { background: var(--teal-deep); text-decoration: none; }
.offdesk-side .ods-tel {
  flex-shrink: 0; font-size: 15.5px; font-weight: 800; color: var(--teal-deep);
}
.offdesk-side .ods-tel:hover { text-decoration: none; }
.offdesk-side .ods-foot {
  font-size: 12.5px; color: var(--ink-faint); line-height: 1.55;
  padding: 12px 18px 14px; border-top: 1px solid var(--line-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: 12.5px; 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: 11px; 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: 12px; 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; }
}

/* ----- 본문 내부 2단 배치 (세로 길이 절반으로) ----- *//* pb-row: 두 섹션/블록을 좌우로 나란히. 좁은 화면에선 세로. */
.pb-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 34px;
}
.pb-row > * { margin-bottom: 0 !important; }
@media (min-width: 720px) {
  .pb-row { grid-template-columns: 1fr 1fr; gap: 24px; }
  /* 좌우 비율 변형 */
  .pb-row.ratio-6040 { grid-template-columns: 1.5fr 1fr; }
  .pb-row.ratio-4060 { grid-template-columns: 1fr 1.5fr; }
}
/* pb-row 안의 섹션은 위쪽 정렬 */
.pb-row > section, .pb-row > div { align-self: start; }

/* ----- 폼 요소 (체크/입력) ----- */
.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: 13px; 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: 13.5px; 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 > label .fld-hint {
  display: block; font-weight: 500; font-size: 14.5px;
  color: var(--ink-soft); margin-top: 2px;
}
.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;
}

/* ============================================================
   3층 디렉토리 · 커뮤니티
   ============================================================ */

/* ----- 신뢰의 경계 띠 — 사업자 정보 구역임을 명시 ----- */
.boundary-band {
  background: repeating-linear-gradient(135deg,
    #efe9dc, #efe9dc 10px, #e7e0cf 10px, #e7e0cf 20px);
  border-radius: var(--radius);
  padding: 18px 22px; margin-bottom: 28px;
  display: flex; gap: 14px; align-items: flex-start;
}
.boundary-band .bb-ic { font-size: 22px; flex-shrink: 0; }
.boundary-band .bb-text { font-size: 15.5px; color: var(--ink-soft); line-height: 1.65; }
.boundary-band .bb-text strong { color: var(--ink); font-weight: 800; }

/* ----- 디렉토리 필터 ----- */
.dir-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.dir-filter .df-btn {
  min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--white);
  font-family: var(--font-body); font-size: 15.5px; font-weight: 700;
  color: var(--ink-soft); cursor: pointer; transition: all .15s;
}
.dir-filter .df-btn:hover { border-color: var(--teal); }
.dir-filter .df-btn.on {
  background: var(--teal); color: var(--white); border-color: var(--teal);
}

/* ----- 사업자 카드 ----- */
.prov-list { display: flex; flex-direction: column; gap: 14px; }
.prov-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow);
}
.prov-card .pc-top {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.prov-card .pc-name {
  font-family: var(--font-display); font-size: 20px; font-weight: 800;
  color: var(--ink);
}
.prov-card .pc-cat {
  font-size: 13px; font-weight: 800; padding: 3px 11px;
  border-radius: 20px; background: var(--paper-deep); color: var(--ink-soft);
}
.prov-card .pc-desc { font-size: 16px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 10px; }
.prov-card .pc-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 15px; color: var(--ink-soft); margin-bottom: 12px;
}
.prov-card .pc-meta b { color: var(--ink); font-weight: 700; }
.prov-card .pc-public {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--teal-tint); border-radius: 10px;
  padding: 11px 14px; font-size: 14.5px; color: var(--teal-deep);
  line-height: 1.55;
}
.prov-card .pc-public .pcp-ic { flex-shrink: 0; }
.prov-card .pc-public a { font-weight: 700; }
.prov-card .pc-public.pc-noeval {
  background: var(--amber-tint); color: var(--amber-deep);
}

/* ----- 커뮤니티 ----- */
.comm-write {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 26px;
}
.comm-write h3 {
  font-family: var(--font-display); font-size: 19px; color: var(--teal-deep);
  margin-bottom: 14px;
}
.comm-write .cw-row { display: flex; flex-direction: column; gap: 12px; }
.comm-write input[type=text], .comm-write textarea, .comm-write select {
  font-family: var(--font-body); font-size: 16px;
  border: 2px solid var(--line); border-radius: 10px;
  padding: 12px 14px; background: var(--white); color: var(--ink);
  width: 100%;
}
.comm-write input[type=text], .comm-write select { min-height: 52px; }
.comm-write textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.comm-write input:focus, .comm-write textarea:focus, .comm-write select:focus {
  border-color: var(--teal); outline: none;
}
.comm-write .cw-sel-row { display: flex; gap: 12px; flex-wrap: wrap; }
.comm-write .cw-sel-row > * { flex: 1; min-width: 160px; }

.post-list { display: flex; flex-direction: column; gap: 14px; }
.post-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
}
.post-card .po-top {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-bottom: 8px;
}
.post-card .po-topic {
  font-size: 13px; font-weight: 800; padding: 3px 11px;
  border-radius: 20px; background: var(--teal-tint); color: var(--teal-deep);
}
.post-card .po-meta { font-size: 14px; color: var(--ink-soft); }
.post-card .po-title {
  font-family: var(--font-display); font-size: 19px; font-weight: 800;
  color: var(--ink); margin-bottom: 6px;
}
.post-card .po-body { font-size: 16px; color: var(--ink-soft); line-height: 1.65; white-space: pre-wrap; }
.post-empty {
  text-align: center; padding: 30px; color: var(--ink-soft); font-size: 16px;
}

/* ----- 반응형 ----- */
@media (max-width: 720px) {
  body { font-size: 18px; }
  .wrap { padding: 0 18px; }
  /* 데스크톱 가로 네비는 숨기고 햄버거를 노출 */
  .header-nav { display: none; }
  .nav-burger { display: flex; }
  .site-header .wrap { min-height: 66px; }
  /* 긴 브랜드명이 햄버거와 겹치지 않도록 모바일에서 축소 */
  .brand { font-size: 15px; gap: 7px; }
  .brand-mark { width: 32px; height: 32px; font-size: 13px; }
  /* 메가메뉴는 모바일에서 세로 목록으로 — 섹터가 위에서 아래로 쌓임 */
  .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-name { margin-top: 0; }
  .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; }
  .comm-write .cw-sel-row { flex-direction: column; }
}

/* ----- 접근성: 포커스 가시화 ----- */
: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: 13px; 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: 11.5px; font-weight: 700; color: var(--teal-deep);
  background: var(--teal-tint); padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.feed-meta {
  font-size: 12.5px; color: var(--ink-soft); margin-top: 6px;
  line-height: 1.55;
}
.feed-stamp {
  font-size: 12px; color: var(--ink-faint); margin-top: 10px;
}

/* ============================================================
   바로 연결 링크 박스 — 본문 안에서 공식 창구로 직행
   ============================================================ */
.golink-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.golink-box .gl-head {
  font-size: 13.5px; font-weight: 800; color: var(--ink);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.golink-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.golink {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 11px 13px;
  transition: border-color .12s, transform .12s;
}
.golink:hover {
  text-decoration: none; border-color: var(--teal);
  transform: translateY(-1px);
}
.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-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.golink .gl-name { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.golink .gl-desc { font-size: 12px; color: var(--ink-soft); margin-top: 1px; }
.golink .gl-arrow { font-size: 13px; color: var(--teal); font-weight: 800; flex-shrink: 0; }
.golink .gl-tel { font-size: 14px; font-weight: 800; color: var(--teal-deep); 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-emblem {
  width: 76px; height: 76px; flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--teal-tint);
  display: grid; place-items: center;
}
.sector-emblem svg { width: 72%; height: 72%; display: block; }
.sector-emblem .em-motif {
  fill: none; stroke: var(--teal-tint-2);
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.sector-emblem .em-ring { stroke: var(--teal-tint-2); }
.sector-emblem .em-han {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 800; fill: var(--teal-deep);
  text-anchor: middle; dominant-baseline: central;
}
.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: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.sevent-tx .se-go {
  font-size: 13px; 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; }
  .sector-emblem { width: 68px; height: 68px; }
}

/* ============================================================
   소식·건강정보 카드 (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: 11.5px; 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: 13px; 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: 12px; 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; }

/* ============================================================
   지금 할 일 요약 — 긴급도별 3단계 (삐뽀삐뽀식)
   ============================================================ */
.timeline-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tl-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.tl-when {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 800;
  color: var(--tl-color);
  margin-bottom: 8px;
}
.tl-step h4 {
  font-size: 15px; font-weight: 800; color: var(--ink);
  margin-bottom: 5px;
}
.tl-step p {
  font-size: 13px; color: var(--ink-soft); line-height: 1.55;
}
.tl-now    { --tl-color: #d62b20; }
.tl-week   { --tl-color: #7C5CFC; }
.tl-later  { --tl-color: #3a7d57; }
@media (max-width: 680px) {
  .timeline-box { grid-template-columns: 1fr; }
}

/* ============================================================
   장기요양 비용 계산기
   ============================================================ */
.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: 12px; 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: 11.5px; 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: 13.5px; 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: 13px; 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: 12.5px; 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: 13px; 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: 12.5px; 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: 11px; 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: 13px; 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: 12.5px; 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: 13px; 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: 13px; 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: 13px; font-weight: 800; color: var(--ink);
  margin-bottom: 3px;
}
.jstep-desc {
  font-size: 11.5px; 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: 13.5px; 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: 13px; 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: 11px; }
  .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); }

/* ----- 배움 카드 그리드 (health·work 공통) ----- */
.learn-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.learn-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
}
.learn-card .lc-ic { font-size: 24px; margin-bottom: 7px; }
.learn-card h4 { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 5px; }
.learn-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.learn-card .lc-links {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 6px;
}
.learn-card .lc-links a {
  font-size: 13px; font-weight: 700; color: var(--teal-deep);
}
.src-tag {
  display: inline-block; font-size: 11px; font-weight: 800;
  padding: 2px 8px; border-radius: var(--radius-pill);
  margin-bottom: 8px;
}
/* 자료 종류별 변형 — health: book/video/study, work: job/share/volun */
.src-book, .src-job   { background: var(--teal-tint);  color: var(--teal-deep); }
.src-video            { background: var(--alert-tint); color: var(--alert-deep); }
.src-study            { background: var(--info-tint);  color: var(--info); }
.src-share            { background: var(--amber-tint); color: var(--amber-deep); }
.src-volun            { background: var(--info-tint);  color: var(--info); }

/* ============================================================
   정부 공식 창구 사이드바 — 전 페이지 공통 고정
   기본: 펼침. 사용자가 접을 수 있음.
   ============================================================ */
/* 접혀 있을 때 — 우측에 붙은 작은 손잡이 버튼 */
.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%);
  transition: transform .22s ease;
  overflow-y: auto;
  padding: 0 18px 22px;
}
/* 기본 = 펼침 (데스크톱). body.ob-open 이면 들어와 있음 */
body.ob-open .official-bar { transform: translateX(0); }
/* 사이드바가 열려 있을 때 본문을 그만큼 밀어 가리지 않게 함.
   헤더(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: 13px; font-weight: 700; color: var(--ink-soft);
}
.ob-close:hover { background: var(--line); color: var(--ink); }
.ob-intro {
  font-size: 12.5px; color: var(--ink-soft); line-height: 1.6;
  margin-bottom: 16px;
}
.ob-group { margin-bottom: 16px; }
.ob-cat {
  font-size: 12px; 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: 13px; font-weight: 700; color: var(--ink);
  line-height: 1.35;
}
.ob-desc {
  display: block; font-size: 11px; color: var(--ink-faint);
  line-height: 1.4; margin-top: 2px;
}
.ob-foot {
  font-size: 11px; 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%);
  transition: transform .22s ease;
  overflow-y: auto;
  padding: 0 18px 22px;
}
body.nb-open .news-bar { transform: translateX(0); }
@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: 13px; font-weight: 700; color: var(--ink-soft);
}
.nb-close:hover { background: var(--line); color: var(--ink); }
.nb-intro {
  font-size: 12.5px; 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: 10.5px; font-weight: 800; color: var(--teal-deep);
  background: var(--teal-tint); padding: 2px 7px;
  border-radius: var(--radius-pill);
}
.nb-date { font-size: 11px; color: var(--ink-faint); }
.nb-item-tx {
  display: block; font-size: 13.5px; font-weight: 700;
  color: var(--ink); line-height: 1.45;
}
.nb-loading {
  font-size: 12.5px; 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: 13.5px; 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-tag {
  display: inline-block;
  font-size: 12px; font-weight: 800;
  color: var(--teal-deep); background: var(--teal-tint);
  padding: 4px 11px; border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.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: 13px; }
.xtip.xtip-on::after { content: "▴"; }
.xtip:hover, .xtip.xtip-on { 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:hover .xtip-pop, .xtip.xtip-on .xtip-pop { opacity: 1; visibility: visible; }
.xtip .xtip-pop strong { color: var(--amber); }
@media (max-width: 640px) { .xtip .xtip-pop { max-width: 80vw; } }

/* ============================================================
   카드 다이어트 — 카드 본문을 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: 12px; }
.cd-more:hover, .cd-more:focus { background: var(--amber); color: #fff; outline: none; }
.cd-more.cd-open::after { content: " ▴"; }

/* ============================================================
   배움·일자리 허브 (learn-jobs.html) 전용 컴포넌트
   ------------------------------------------------------------
   기존 토큰(--teal, --ink 등)과 .news-card/.field 패턴을 재사용.
   ============================================================ */

/* 두 축 제목 — 섹션 번호 자리에 '축 ①/②' 배지 */
.axis-title { align-items: center; }
.axis-num {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal); color: #fff; font-weight: 800;
  font-size: 13.5px; padding: 4px 11px; border-radius: var(--radius-pill);
  margin-right: 10px; white-space: nowrap;
}

/* 분야 탭 — news-tab 과 같은 톤, 줄바꿈 허용 */
.field-tabs {
  display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px;
}
.field-tab {
  border: 1px solid var(--line); background: var(--white);
  color: var(--ink-soft); font-family: var(--font-body);
  font-size: 14px; font-weight: 700; padding: 9px 15px;
  border-radius: var(--radius-pill); cursor: pointer; min-height: 40px;
  transition: background .15s, color .15s, border-color .15s;
}
.field-tab:hover { background: var(--teal-tint); color: var(--teal-deep); border-color: var(--teal-tint-2); }
.field-tab.on { background: var(--teal); color: #fff; border-color: var(--teal); }

/* 부제목 — 분야 피드 아래 '대표 바로가기' 묶음 머리 */
.sub-title {
  font-size: var(--fs-sub); font-weight: 800; color: var(--ink);
  margin: 26px 0 14px;
}

/* 배움터·채용 카드 칩 행 (분야 칩 + 마감 D-day) */
.news-card .nc-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.news-card .nc-row .nc-kind { margin-bottom: 0; }

/* 분야 칩 색 — 배움(주황 계열) / 채용(잉크 테두리 계열) */
.nc-learn  { background: var(--teal-tint);  color: var(--teal-deep); }
.nc-govjob { background: var(--paper-deep); color: var(--ink); }

/* 마감 D-day 배지 */
.nc-dday {
  display: inline-flex; align-items: center; font-size: 12px;
  font-weight: 800; padding: 3px 9px; border-radius: var(--radius-pill);
  background: var(--paper-deep); color: var(--ink-soft);
}
.nc-dday-soon { background: var(--alert-tint); color: var(--alert-deep); }
.nc-dday-end  { background: var(--paper-deep); color: var(--ink-faint); }

/* (v18) 배움→자격→지원 흐름 띠(.connect-flow) 제거 — 마크업 삭제에 따라 규칙도 정리 */

/* 분야 탭 + 지역 선택을 한 줄에 (좁으면 줄바꿈) */
.filter-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.filter-row .field-tabs { margin-bottom: 0; flex: 1 1 auto; }
.region-pick {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
}
.region-label { font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.region-select {
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 9px 16px; min-height: 40px; cursor: pointer;
}
.region-select:hover { border-color: var(--teal-tint-2); }
.region-select:focus { outline: 2px solid var(--teal); outline-offset: 1px; }

/* ============================================================
   독립 프로젝트(공공 배움·일자리 허브) — 자체 헤더·푸터
   ============================================================ */
.hub-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hub-header .hh-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 15px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.hub-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.hub-brand .hb-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg,#8B7BF0,#5B8DEF);
  display: inline-flex; align-items: center; justify-content: center;
}
.hub-brand .hb-mark svg { display:block; }
.hub-brand .hb-name { font-size: 21px; font-weight: 800; color: var(--ink); }
.hub-brand .hb-name small { display: block; font-size: 13px; font-weight: 700; color: var(--ink-faint); margin-top: 1px; }
.hub-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.hub-nav a {
  font-size: 15.5px; font-weight: 700; color: var(--ink); text-decoration: none;
  padding: 9px 15px; border-radius: var(--radius-pill); min-height: 42px;
  display: inline-flex; align-items: center;
}
.hub-nav a:hover { background: var(--teal-tint); color: var(--teal-deep); }

/* 모바일: 헤더 가시성은 유지하되 줄바꿈 방지를 위해 적정 축소 */
@media (max-width: 720px) {
  .hub-header .hh-inner { padding: 12px 16px; gap: 10px; flex-wrap: wrap; }
  .hub-brand .hb-mark { width: 36px; height: 36px; }
  .hub-brand .hb-name { font-size: 18px; }
  .hub-brand .hb-name small { font-size: 12px; }
  .hub-nav { gap: 4px; width: 100%; }
  .hub-nav a { font-size: 14.5px; padding: 8px 11px; min-height: 40px; }
}
@media (max-width: 560px) {
  .hub-brand .hb-name small { display: none; }
  .hub-nav a { padding: 7px 10px; font-size: 13px; }
}

.hub-footer {
  margin-top: 48px; background: var(--ink); color: #c7ccd1;
}
.hub-footer .hf-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 28px 20px;
  font-size: 13.5px; line-height: 1.7;
}
.hub-footer strong { color: #fff; font-size: 15px; }
.hub-footer .hf-note { color: #9aa0a6; font-size: 12.5px; margin-top: 8px; }
.hub-footer a { color: #B9A6FB; text-decoration: none; }

/* 검색창 + 정렬 행 (배움터·채용) */
.search-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 16px;
}
.hub-search {
  flex: 1 1 280px; min-width: 0; font-family: var(--font-body);
  font-size: 15px; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 11px 18px; min-height: 44px;
}
.hub-search::placeholder { color: var(--ink-faint); }
.hub-search:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.sort-pick { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; }
.sort-label { font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }

/* ============================================================
   즐겨찾기 별표 + 내 보관함
   ============================================================ */
.news-card.has-fav { position: relative; }
.nc-fav {
  position: absolute; top: 10px; right: 10px;
  width: 36px; height: 36px; line-height: 1; padding: 0;
  border: none; background: transparent; cursor: pointer;
  font-size: 22px; color: var(--ink-faint); border-radius: 8px;
}
.nc-fav:hover { background: var(--amber-tint, #F0ECFF); color: var(--amber, #7C5CFC); }
.nc-fav.on { color: #7C5CFC; }
.nc-fav:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.news-card.has-fav .nc-title { padding-right: 34px; }

.mybox {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 16px 0 0;
}
.mybox-tab {
  font-family: var(--font-body); font-size: 14.5px; font-weight: 800;
  color: var(--ink-soft); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 9px 16px; min-height: 42px; cursor: pointer;
}
.mybox-tab:hover { background: var(--teal-tint); color: var(--teal-deep); }
.mybox-tab.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.mybox-count {
  display: inline-block; min-width: 20px; text-align: center;
  font-size: 12.5px; font-weight: 800; padding: 1px 7px; border-radius: 999px;
  background: var(--paper-deep); color: var(--ink); margin-left: 4px;
}
.mybox-tab.on .mybox-count { background: rgba(255,255,255,.25); color: #fff; }
.mybox-hint { font-size: 12.5px; color: var(--ink-faint); }

.mybox-panel {
  margin-top: 12px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 10px;
}
.mb-toolbar { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.mb-clear {
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
  background: var(--paper-deep); border: none; border-radius: var(--radius-pill);
  padding: 6px 12px; cursor: pointer; min-height: 34px;
}
.mb-clear:hover { background: var(--line); }
.mb-empty { color: var(--ink-faint); padding: 14px; margin: 0; }
.mb-row { display: flex; align-items: stretch; gap: 8px; }
.mb-row + .mb-row { border-top: 1px solid var(--line); }
.mb-link {
  flex: 1 1 auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  text-decoration: none; color: var(--ink); padding: 11px 8px; border-radius: 8px;
}
.mb-link:hover { background: var(--teal-tint); }
.mb-chip {
  font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: var(--radius-pill);
  flex-shrink: 0;
}
.mb-title { font-size: 14.5px; font-weight: 700; }
.mb-meta { font-size: 12.5px; color: var(--ink-soft); }
.mb-dl { color: var(--alert-deep, #c0392b); font-weight: 700; margin-left: 8px; }
.mb-remove {
  flex-shrink: 0; width: 38px; border: none; background: transparent;
  color: var(--ink-faint); font-size: 16px; cursor: pointer; border-radius: 8px;
}
.mb-remove:hover { background: var(--alert-tint, #fdecec); color: var(--alert-deep, #c0392b); }

/* ============================================================
   모바일 필터 시트
   ============================================================ */
.filter-trigger { display: none; }   /* 데스크톱: 트리거 숨김, 컨트롤 인라인 */
.axis-controls .sheet-head,
.axis-controls .sheet-foot { display: none; }

@media (max-width: 640px) {
  .filter-trigger {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-body); font-size: 15px; font-weight: 800;
    color: var(--teal-deep); background: var(--teal-tint);
    border: 1px solid var(--teal-tint-2); border-radius: var(--radius-pill);
    padding: 12px 18px; min-height: 48px; width: 100%; justify-content: center;
    cursor: pointer; margin-bottom: 14px;
  }
  /* 컨트롤을 하단 시트로 */
  .axis-controls {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    background: var(--white); border-top-left-radius: 18px; border-top-right-radius: 18px;
    box-shadow: 0 -8px 30px rgba(0,0,0,.25);
    padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
    transform: translateY(110%); transition: transform .25s ease;
    max-height: 82vh; overflow-y: auto;
  }
  .axis-controls.open { transform: translateY(0); }
  .axis-controls .sheet-head {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 17px; font-weight: 800; color: var(--ink);
    padding: 8px 2px 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px;
    position: sticky; top: 0; background: var(--white);
  }
  .axis-controls .sheet-close {
    width: 40px; height: 40px; border: none; background: var(--paper-deep);
    border-radius: 10px; font-size: 18px; cursor: pointer; color: var(--ink-soft);
  }
  .axis-controls .filter-row,
  .axis-controls .search-row { flex-direction: column; align-items: stretch; }
  .axis-controls .field-tabs { gap: 8px; }
  .axis-controls .region-pick,
  .axis-controls .sort-pick { justify-content: space-between; }
  .axis-controls .region-select { flex: 1 1 auto; }
  .axis-controls .sheet-foot { display: block; margin-top: 8px; }
  .axis-controls .sheet-apply {
    width: 100%; min-height: 50px; font-size: 16px; font-weight: 800;
    color: #fff; background: var(--teal); border: none; border-radius: var(--radius-pill);
    cursor: pointer;
  }
  .sheet-backdrop {
    position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.4);
  }
  body.sheet-lock { overflow: hidden; }
  .mybox-hint { width: 100%; }
}

/* 보관함 내보내기/공유 버튼 + 토스트 */
.mb-toolbar { gap: 8px; }
.mb-act {
  font-size: 13.5px; font-weight: 700; color: var(--teal-deep);
  background: var(--teal-tint); border: 1px solid var(--teal-tint-2);
  border-radius: var(--radius-pill); padding: 7px 13px; cursor: pointer; min-height: 36px;
}
.mb-act:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.ljh-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px);
  background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 700;
  padding: 12px 20px; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,.25));
  opacity: 0; transition: opacity .2s, transform .2s; z-index: 200; pointer-events: none;
  max-width: 90vw; text-align: center;
}
.ljh-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 마감 임박 바 + 토글 + 배지 강조 */
.imminent-bar { margin: 0 0 14px; }
.imminent-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 14.5px; font-weight: 800;
  color: var(--alert-deep, #c0392b); background: var(--alert-tint, #fdecec);
  border: 1px solid var(--alert-deep, #c0392b); border-radius: var(--radius-pill);
  padding: 10px 16px; min-height: 44px; cursor: pointer;
}
.imminent-toggle strong { font-weight: 900; }
.imminent-toggle:hover { background: var(--alert-deep, #c0392b); color: #fff; }
.imminent-toggle.on { background: var(--alert-deep, #c0392b); color: #fff; }
.imminent-toggle.on::after { content: " ✓"; }

/* 임박 D-day 배지 — 시선 끄는 펄스 */
.nc-dday-soon {
  background: var(--alert-deep, #c0392b); color: #fff; font-weight: 800;
  animation: ddayPulse 1.6s ease-in-out infinite;
}
@keyframes ddayPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,.45); }
  50%      { box-shadow: 0 0 0 5px rgba(192,57,43,0); }
}
@media (prefers-reduced-motion: reduce) {
  .nc-dday-soon { animation: none; }
}

/* 더 보기 버튼 */
.load-more {
  display: block; width: 100%; margin: 16px 0 4px;
  font-family: var(--font-body); font-size: 15.5px; font-weight: 800;
  color: var(--teal-deep); background: var(--white);
  border: 1px solid var(--teal-tint-2); border-radius: var(--radius);
  padding: 14px; min-height: 50px; cursor: pointer;
}
.load-more span { font-weight: 700; color: var(--ink-faint); font-size: 13.5px; }
.load-more:hover { background: var(--teal-tint); border-color: var(--teal); }

/* ── 무료 배움 플랫폼 바로가기 (외부 공공 플랫폼 카드) ───────────── */
.plat-strip { margin: 4px 0 20px; }
.plat-strip-title {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 16px; font-weight: 800; color: var(--ink); margin: 0 0 11px;
}
.plat-strip-note { font-size: 12.5px; font-weight: 500; color: var(--ink-soft); }
.plat-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.plat-card { gap: 6px; }
.plat-badge {
  align-self: flex-start; font-size: 11.5px; font-weight: 800;
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--teal-tint); color: var(--teal-deep);
}
.plat-badge-loc   { background: #eef1f4; color: #3a4654; }
.plat-name { font-size: 15.5px; font-weight: 800; color: var(--ink); }
.plat-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.55; }
.plat-go   { margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--teal-deep); }

/* ============================================================
   배움/채용 2단 기둥 레이아웃 (v14) — 좌:배우는 곳 / 우:채용 공고
   ------------------------------------------------------------
   세로로 늘어지던 두 축을 좌우 패널로 재편성.
   1024px 미만에서는 자동으로 세로로 떨어집니다(모바일 대응).
   ============================================================ */
.hub-split{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
  margin-bottom:var(--gap-major);
}
@media (min-width:1024px){
  .hub-split{ grid-template-columns:1fr 1fr; gap:24px; align-items:start; }
}

/* 각 기둥 = 하나의 패널(두 개의 화면처럼 보이게) */
.hub-col{
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  background:var(--white);
  box-shadow:var(--shadow);
  overflow:hidden;
  margin-bottom:0 !important;
}

/* 패널 머리띠 — 배움(주황) / 채용(잉크)으로 색 구분
   [v19] sticky 제거: 사이트 헤더(top:64px) 아래에 붙어 따라오면서
   패널 상단에 흰 여백이 생기던 문제 해결. 머리띠는 일반 흐름으로 둔다. */
.hub-col-head{
  display:flex; align-items:center; gap:10px;
  padding:15px 18px;
  font-family:var(--font-display);
  color:#fff;
}
.hub-col.learn .hub-col-head{ background:#8B7BF0; }
.hub-col.jobs  .hub-col-head{ background:#5B8DEF; }
.hub-col-head .hc-ic{ font-size:24px; line-height:1; }
.hub-col-head .hc-title{ font-size:19px; font-weight:800; letter-spacing:-0.01em; }
.hub-col-head .hc-sub{
  margin-left:auto; font-size:13px; font-weight:700;
  padding:3px 10px; border-radius:var(--radius-pill);
  background:rgba(255,255,255,.18);
}

.hub-col-body{ padding:18px; }
@media (max-width:640px){ .hub-col-body{ padding:14px; } }

.hub-col-lead{
  margin:0 0 16px;
  font-size:14.5px; line-height:1.6; color:var(--ink-soft);
}

/* 컬럼 안에서는 기존 축 제목/섹션 여백 제거 (머리띠가 대신함) */
.hub-col .axis-title{ display:none; }
.hub-col section{ margin-bottom:0; }

/* ----- 접이식 더보기 (플랫폼·대표포털) ----- */
.col-more{
  margin-top:18px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--paper);
  overflow:hidden;
}
.col-more + .col-more{ margin-top:12px; }
.col-more > summary{
  list-style:none; cursor:pointer;
  display:flex; align-items:center; gap:8px;
  min-height:var(--tap);
  padding:12px 16px;
  font-weight:800; font-size:15px; color:var(--ink);
}
.col-more > summary::-webkit-details-marker{ display:none; }
.col-more > summary::after{
  content:"▾"; margin-left:auto;
  font-size:13px; color:var(--ink-soft);
  transition:transform .18s ease;
}
.col-more[open] > summary{ border-bottom:1px solid var(--line); }
.col-more[open] > summary::after{ transform:rotate(180deg); }
.col-more > summary:hover{ background:var(--paper-deep); }
.col-more > summary:focus-visible{ outline:3px solid var(--teal); outline-offset:-3px; }
.col-more .cm-count{
  font-size:12px; font-weight:700; color:var(--ink-faint);
  background:var(--white); border:1px solid var(--line);
  padding:1px 8px; border-radius:var(--radius-pill);
}
.col-more .col-more-inner{ padding:14px 16px 16px; background:var(--white); }
.col-more .cm-note{
  margin:0 0 12px; font-size:13px; line-height:1.6; color:var(--ink-soft);
}

/* 좁은 패널 안에서 플랫폼/대표 카드 그리드가 답답하지 않게 */
.hub-col .plat-grid,
.hub-col .cg-grid{ grid-template-columns:repeat(auto-fill, minmax(190px,1fr)); }

/* 컬럼 안 필터는 항상 펼쳐두기(데스크탑) — 트리거 버튼 숨김 */
@media (min-width:641px){
  .hub-col .filter-trigger{ display:none; }
}

/* ============================================================
   배움 ↔ 채용 선택적 연동 — 토글 바 / 스위치 / 토스트 (v14)
   ============================================================ */
.link-bar{
  display:flex; align-items:center; flex-wrap:wrap; gap:10px 16px;
  padding:14px 18px; margin-bottom:16px;
  border:1px solid var(--line); border-radius:var(--radius);
  background:var(--paper);
  transition:background .2s, border-color .2s;
}
body.link-on .link-bar{ background:var(--teal-tint); border-color:var(--teal-tint-2); }

/* 커스텀 스위치 (터치 타깃 48px 확보) */
.link-switch{
  display:inline-flex; align-items:center; gap:10px;
  min-height:var(--tap); cursor:pointer; user-select:none;
}
.link-switch input{ position:absolute; opacity:0; width:0; height:0; }
.ls-track{
  position:relative; width:50px; height:28px; flex:0 0 auto;
  background:var(--line-strong); border-radius:var(--radius-pill);
  transition:background .18s;
}
.ls-thumb{
  position:absolute; top:3px; left:3px; width:22px; height:22px;
  background:#fff; border-radius:50%;
  box-shadow:var(--shadow); transition:transform .18s;
}
.link-switch input:checked + .ls-track{ background:var(--teal); }
.link-switch input:checked + .ls-track .ls-thumb{ transform:translateX(22px); }
.link-switch input:focus-visible + .ls-track{ outline:3px solid var(--teal); outline-offset:2px; }
.ls-label{ font-size:15.5px; font-weight:800; color:var(--ink); }
.link-hint{ font-size:13.5px; line-height:1.55; color:var(--ink-soft); }
.link-hint b{ color:var(--ink); }

/* 연동 켜짐 — 두 머리띠에 작은 연결 표시 */
body.link-on .hub-col-head .hc-sub::before{ content:"🔗 "; }

/* 토스트 */
.link-toast{
  position:fixed; left:50%; bottom:24px; transform:translate(-50%, 16px);
  z-index:200; max-width:90vw;
  padding:12px 20px; border-radius:var(--radius-pill);
  background:var(--ink); color:#fff;
  font-size:14px; font-weight:700; box-shadow:var(--shadow-lift);
  opacity:0; pointer-events:none;
  transition:opacity .2s, transform .2s;
}
.link-toast.show{ opacity:1; transform:translate(-50%, 0); }

@media (prefers-reduced-motion: reduce){
  .ls-thumb, .link-toast, .link-bar{ transition:none; }
}

/* ============================================================
   배움 디렉토리 — 중앙정부 / 지방정부 그룹 (v15)
   ============================================================ */
.dir-group{ margin-bottom:22px; }
.dir-group:last-of-type{ margin-bottom:0; }
.dir-title{
  display:flex; align-items:center; flex-wrap:wrap; gap:8px;
  font-family:var(--font-display);
  font-size:16px; font-weight:800; color:var(--ink);
  margin:0 0 12px;
}
.dir-tag{
  font-size:12px; font-weight:800; color:#fff;
  padding:3px 10px; border-radius:var(--radius-pill);
}
.dir-tag-central{ background:var(--teal); }     /* 중앙정부 = 주황 */
.dir-tag-local{ background:var(--ink); }         /* 지방정부 = 잉크 */
.dir-sub{ font-size:12.5px; font-weight:600; color:var(--ink-faint); }

/* 거주 지역 선택 줄 */
.dir-region{
  display:flex; align-items:center; gap:10px;
  margin-bottom:12px;
}
.dir-region-label{ font-size:14px; font-weight:700; color:var(--ink-soft); flex:0 0 auto; }
.dir-region select{
  flex:1 1 auto; min-height:var(--tap);
  padding:0 14px; font-size:16px; font-family:var(--font-body);
  border:2px solid var(--line-strong); border-radius:var(--radius);
  background:var(--white); color:var(--ink); cursor:pointer;
}
.dir-region select:focus{ outline:none; border-color:var(--teal); }

.dir-empty{
  margin:0 0 4px; padding:14px 16px;
  font-size:13.5px; line-height:1.55; color:var(--ink-soft);
  background:var(--paper); border:1px dashed var(--line-strong);
  border-radius:var(--radius);
}
/* 카드가 하나라도 보이면 그리드에 위쪽 여백 */
.dir-cards:not(:empty){ margin-top:0; }

/* 중앙정부 배지 — 주황 tint (지방=회색 plat-badge-loc 그대로) */
.plat-badge-central{
  background:var(--teal-tint); color:var(--teal-deep);
}

/* ────────────────────────────────────────────────────────────
   마감 지난 공고 포함 토글 (v17) — 채용 축, 임박 바 아래
   기본은 진행 중 공고만 표시. 체크 시 만료 공고도 노출.
   ──────────────────────────────────────────────────────────── */
.expired-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 10px;
  font-size: 15px;
  color: var(--ink-soft, #5a6472);
  cursor: pointer;
  user-select: none;
}
.expired-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--brand, #0e7490);
  cursor: pointer;
}
