/* home-extra.css: 홈에서 원본에 없거나 build-css.py EXCLUDE로 빠진 부품 복원. 원본 변수(--rd-*)와 원본 값만 쓴다 */
@layer components {
/* 원본 home.css에서 EXCLUDE로 빠졌던 좌측 캐릭터(.hero-char)·로드맵 일러스트(.path-art)·선택지 아이콘(.pic-art) */
.rd .hero-char { position: relative; }
.rd .hero-char img { mix-blend-mode: multiply; width: 330px; height: auto; margin: 118px 0px 0px 24px; }
.rd .choice .pic { overflow: hidden; }
.rd .choice .pic .pic-art { width: 42px; height: 42px; object-fit: contain; }
.rd .path-art { object-fit: contain; flex: 0 0 auto; width: 112px; height: 112px; }

/* 원형 노드 연결선(svg.map-line) 폭 고정 및 span.who 가독성 */
.rd .map-line { width: 100%; height: 100%; }
.rd .stop .who { white-space: normal; word-break: keep-all; line-height: 1.35; text-align: center; justify-content: center; }

/* 도착(.stop.goal) 노드 호버 및 스타일 */
.rd .stop.goal a:hover .node { background: var(--rd-yellow); border-style: solid; }
.rd .stop.goal .who { color: var(--rd-ink-3); }

/* 토글(details.roadmap-practice) 펼침 시 단계별 말머리·카드 구조화로 가독성 강화 */
.rd .roadmap-practice { max-width: 880px; margin: 18px 0 24px; }
.rd .roadmap-practice > summary { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; background: var(--rd-paper-2); border: 1.5px solid var(--rd-line-2); font-size: 14.5px; font-weight: 800; color: var(--rd-ink); transition: border-color 0.12s, background 0.12s; list-style: none; }
.rd .roadmap-practice > summary::-webkit-details-marker { display: none; }
.rd .roadmap-practice > summary::before { content: "▸"; font-size: 13px; color: var(--rd-red); transition: transform 0.15s; }
.rd .roadmap-practice[open] > summary { border-color: var(--rd-ink); background: var(--rd-yellow); }
.rd .roadmap-practice[open] > summary::before { transform: rotate(90deg); }
.rd .roadmap-practice > summary:hover { border-color: var(--rd-ink); }
.rd .bp-practice-box { margin-top: 12px; padding: 20px 22px; border: 2px solid var(--rd-ink); border-radius: 14px; background: var(--rd-paper-2); box-shadow: var(--rd-shadow-ink); }
.rd .bp-practice-intro { margin: 0 0 14px !important; font-size: 15px; font-weight: 700; color: var(--rd-ink); line-height: 1.6; }
.rd .bp-practice-list { margin: 0 !important; padding: 0 !important; list-style: none; display: grid; gap: 10px; }
.rd .bp-practice-list li { display: grid; grid-template-columns: 168px 1fr; align-items: baseline; gap: 12px; padding: 10px 14px; background: #fff; border: 1px solid var(--rd-line-2); border-radius: 10px; line-height: 1.6; }
.rd .bp-practice-step { display: inline-block; font-size: 13.5px; font-weight: 800; color: var(--rd-red-ink); white-space: nowrap; }
.rd .bp-practice-text { font-size: 14.5px; color: var(--rd-ink-2); }

@media (max-width: 1100px) {
  .rd .hero-char img { width: 240px; margin-left: 30px; }
}
@media (max-width: 900px) {
  .rd .hero-char { align-items: end; gap: 12px; min-height: 0px; display: flex; }
  .rd .hero-char img { order: -1; width: 132px; margin: 0px; }
  .rd .path-art { width: 76px; height: 76px; }
  .rd .path-top { scroll-margin-top: 24px; }
}
@media (max-width: 600px) {
  .rd .hero-char img { width: 92px; }
  .rd .choice .pic .pic-art { width: 34px; height: 34px; }
  .rd .path-art { width: 64px; height: 64px; }
  .rd .bp-practice-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* 원본 글 화면의 .btn·.btn-primary 값 */
.rd .btn { border: 2px solid var(--rd-ink); cursor: pointer; background: rgb(255, 255, 255); border-radius: 12px; justify-content: center; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; font-weight: 700; transition: transform 0.12s, box-shadow 0.12s; display: inline-flex; }
.rd .btn-primary { background: var(--rd-red); color: rgb(255, 255, 255); box-shadow: var(--rd-shadow-ink); }
.rd .btn-primary:hover { box-shadow: 4px 4px 0 var(--rd-ink); transform: translate(-1px, -1px); }
.rd .btn-primary:active { box-shadow: 1px 1px 0 var(--rd-ink); transform: translate(2px, 2px); }

/* 가이드 카드 필터 줄과 카드 사이 간격 */
.rd .bp-home-filters { margin-bottom: 28px; }
.rd .bp-empty { color: var(--rd-ink-2); margin: 0; }

/* 상담 안내 띠: 상황 카드 선택 모양(2px 잉크 테두리·노랑·잉크 그림자 3px)을 가져옴 */
.rd .bp-band { border: 2px solid var(--rd-ink); background: var(--rd-yellow); box-shadow: var(--rd-shadow-ink); border-radius: 14px; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 32px; display: flex; }
.rd .bp-band h2 { letter-spacing: -0.03em; margin: 0; font-size: 24px; font-weight: 800; line-height: 1.3; }
.rd .bp-band p { color: var(--rd-ink); margin: 6px 0 0; }
.rd .bp-band .btn-primary { flex: 0 0 auto; }
@media (max-width: 700px) { .rd .bp-band { flex-direction: column; align-items: flex-start; padding: 22px 20px; } }
}
