/* 설치 가이드(/install-guide) 전용 — base.css 에서 이관.
   base.css 는 **고객 전 페이지**에 전송된다(30KB 예산). 한 라우트에서만 쓰는 스타일을
   거기 두면 모든 방문객이 쓰지도 않는 CSS 를 받는다 — admin.css 이관과 같은 이유다.
   ⚠️ install_guide.html 의 extra_head 에서만 로드된다. */

.guide-hero { text-align: center; padding: 28px 0 8px; }
.guide-why, .guide-steps, .guide-verify, .guide-faq { margin: 34px 0; }
.guide-why-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.guide-why-grid .card p { color: var(--muted); font-size: 14px; margin: 6px 0 0; line-height: 1.6; }
.guide-ic { font-size: 26px; margin-bottom: 6px; }

/* CSS-only 탭 */
.guide-tabs > input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.guide-tablist { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px;
  background: var(--surface-alt); border-radius: 12px; }
.guide-tab { padding: 8px 16px; border-radius: 9px; cursor: pointer; font-size: 14px;
  font-weight: 600; color: var(--muted); transition: background .16s, color .16s; }
.guide-panel { display: none; }
/* ⚠️ 탭이 늘면 아래 세 묶음을 **전부** 늘려야 한다(CSS 는 목록을 도출할 수 없다).
   빠뜨리면 탭은 보이는데 눌러도 안 바뀐다 → `tests/test_install_guide_tabs.py` 가 막는다. */
#ig-stock:checked ~ .guide-tablist label[for=ig-stock],
#ig-samsung:checked ~ .guide-tablist label[for=ig-samsung],
#ig-xiaomi:checked ~ .guide-tablist label[for=ig-xiaomi] {
  background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
#ig-stock:checked ~ .guide-panel[data-panel=stock],
#ig-samsung:checked ~ .guide-panel[data-panel=samsung],
#ig-xiaomi:checked ~ .guide-panel[data-panel=xiaomi] { display: block; }
/* 포커스 가시화: 숨긴 라디오 포커스 시 탭 라벨에 아웃라인(a11y). */
#ig-stock:focus-visible ~ .guide-tablist label[for=ig-stock],
#ig-samsung:focus-visible ~ .guide-tablist label[for=ig-samsung],
#ig-xiaomi:focus-visible ~ .guide-tablist label[for=ig-xiaomi] {
  outline: 2px solid var(--accent); outline-offset: 2px; color: var(--text); }

/* 스텝 카드 + 폰 프레임 */
.guide-step { display: flex; gap: 18px; align-items: center; padding: 14px 0;
  border-bottom: 1px solid var(--border); }
.guide-step:last-child { border-bottom: 0; }
.guide-shot { flex: 0 0 auto; }
.guide-shot img, .guide-shot-ph, .guide-ill {
  width: 132px; height: 264px; border-radius: 20px;
  border: 6px solid var(--text); box-sizing: border-box; object-fit: cover;
  background: var(--surface-alt); }
.guide-shot-ph { display: grid; place-items: center; }
.guide-shot-ph span { font-size: 40px; font-weight: 800; color: var(--muted); opacity: .5; }
/* 단계 일러스트 — 테마 변수만 쓴다(라이트/다크 자동). 글자는 넣지 않는다(로케일 무관). */
.guide-ill { display: block; }
.guide-ill .ill-bg { fill: var(--surface-alt); }
.guide-ill .ill-card { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.guide-ill .ill-dim { fill: var(--border); }
.guide-ill .ill-mid { fill: var(--muted); opacity: .45; }
.guide-ill .ill-acc { fill: var(--accent); }
.guide-ill .ill-knob { fill: var(--surface); }
.guide-ill .ill-stroke-acc { stroke: var(--accent); stroke-width: 4;
  stroke-linecap: round; stroke-linejoin: round; }
.guide-step-body strong { font-size: 16px; }
.guide-step-body p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 6px 0 0; }
.guide-step-n { font-size: 11px; font-weight: 700; letter-spacing: .08em;
  color: var(--accent-ink); margin-bottom: 2px; }

.guide-code { display: grid; gap: 12px; }
.guide-code code { display: inline-block; margin-top: 6px; padding: 8px 12px; border-radius: 8px;
  background: var(--surface-alt); font-family: ui-monospace, monospace;
  font-size: 13px; word-break: break-all; }
.guide-copy { margin-left: 8px; font-size: 11px; padding: 3px 9px; vertical-align: middle; }
.guide-detail { border: 1px solid var(--border); border-radius: 12px; padding: 4px 16px;
  margin-bottom: 8px; }
.guide-detail summary { cursor: pointer; padding: 12px 0; font-weight: 600; list-style: none; }
.guide-detail summary::-webkit-details-marker { display: none; }
.guide-detail summary::before { content: "＋"; color: var(--muted); margin-right: 10px; }
.guide-detail[open] summary::before { content: "－"; }
.guide-detail p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0 0 12px; }
.guide-cta { display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 720px) {
  .guide-why-grid { grid-template-columns: 1fr; }
  .guide-step { gap: 12px; }
  .guide-shot img, .guide-shot-ph { width: 96px; height: 192px; }
}
