/* ============================================================
   실벗(SilBeot) 매뉴얼 전용 보조 스타일
   - kiam.kr 공통 /manual/assets/style.css 위에 얹어서 사용
   - 실벗 브랜드(따뜻한 오렌지) + 어르신 친화(큰 글자) 적용
   ============================================================ */

/* 실벗 브랜드 컬러로 매뉴얼 변수 덮어쓰기 */
:root {
  --brand: #F47B3A;          /* 실벗 메인 오렌지 */
  --brand-dark: #D85F1F;
  --brand-light: #FFE5D0;
  --sb-heart: #FF6B6B;
  --sb-health: #4FB39E;
  --sb-family: #F0A93B;
  --sb-safety: #E74C3C;
  --sb-village: #9B7BD8;
  --sb-ai: #3A6FD8;
}
[data-theme="dark"] {
  --brand-light: #5a3417;
}

/* 어르신 친화: 본문 글자 키우기 */
.m-content p,
.m-content li { font-size: 16.5px; line-height: 1.9; }
.m-content h1 { font-size: 32px; }
.m-content h2 { font-size: 23px; }
.m-content h3 { font-size: 18px; }
.m-content .page-desc, .m-content .lead { font-size: 17px; line-height: 1.8; color: var(--text2); }

/* 로고 박스 - 실벗 '실' */
.m-header .logo-box { font-family: 'Jua','Apple SD Gothic Neo',sans-serif; }

/* 큰 단계 박스 (어르신용) — 공통 step보다 큼직하게 */
.sb-steps { list-style: none; padding: 0; margin: 20px 0; counter-reset: sbstep; }
.sb-step {
  display: flex; gap: 18px; margin-bottom: 16px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 22px; align-items: flex-start;
}
.sb-step .n {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,#F47B3A,#FFB570); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; font-family: 'Jua',sans-serif;
  box-shadow: 0 4px 10px rgba(244,123,58,.35);
}
.sb-step .b { flex: 1; min-width: 0; }
.sb-step .b .t { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.sb-step .b .d { font-size: 16px; color: var(--text2); line-height: 1.75; }
.sb-step .b .d b { color: var(--brand-dark); }

/* 화면 위치 안내 핀 (예: "화면 맨 아래", "오른쪽 위") */
.sb-where {
  display: inline-block; background: var(--brand-light); color: var(--brand-dark);
  border-radius: 20px; padding: 2px 12px; font-size: 14px; font-weight: 700;
  margin: 0 2px;
}

/* 버튼 모양 안내 (실제 앱 버튼처럼 보이게) */
.sb-btn-demo {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg,#F47B3A,#D85F1F); color: #fff;
  border-radius: 30px; padding: 8px 20px; font-size: 15px; font-weight: 800;
  box-shadow: 0 4px 12px rgba(244,123,58,.35); vertical-align: middle;
}
.sb-btn-demo.gray { background: #fff; color: var(--brand); border: 2px solid var(--brand); box-shadow: none; }
.sb-btn-demo.red  { background: linear-gradient(135deg,#FF6B6B,#E74C3C); box-shadow: 0 4px 12px rgba(231,76,60,.35); }

/* 큰 기능 카드 그리드 (소개 페이지) */
.sb-feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 16px; margin: 24px 0 32px;
}
.sb-feature {
  display: block; text-decoration: none; color: inherit;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 18px; padding: 22px; transition: .2s;
}
.sb-feature:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(244,123,58,.15); }
.sb-feature .ic {
  width: 56px; height: 56px; border-radius: 16px; font-size: 28px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.sb-feature .nm { font-size: 18px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.sb-feature .ds { font-size: 15px; color: var(--text2); line-height: 1.7; }
.ic-heart{background:#FFD6D6;color:#FF6B6B}
.ic-health{background:#C8EBE3;color:#4FB39E}
.ic-safety{background:#FFCDD2;color:#E74C3C}
.ic-family{background:#FFE9B0;color:#C79A1E}
.ic-village{background:#E5D9F5;color:#9B7BD8}
.ic-ai{background:#D6E0F5;color:#3A6FD8}
.ic-help{background:#FFE0CC;color:#D85F1F}
.ic-pay{background:#FFE0CC;color:#D85F1F}
.ic-cal{background:#FFE5CC;color:#9C5E1E}

/* 큰 안내 박스 (어르신용 강조) */
.sb-callout {
  border-radius: 16px; padding: 18px 20px; margin: 20px 0;
  font-size: 16px; line-height: 1.8; display: flex; gap: 14px; align-items: flex-start;
}
.sb-callout .emo { font-size: 26px; flex-shrink: 0; line-height: 1.2; }
.sb-callout.tip    { background: var(--brand-light); border: 1px solid #F4B888; color: var(--brand-dark); }
.sb-callout.warn   { background: #FFE3E3; border: 1px solid #F1A5A5; color: #B71C1C; }
.sb-callout.info   { background: #E3F2FD; border: 1px solid #90CAF9; color: #1565C0; }
.sb-callout.ok     { background: #E8F5E9; border: 1px solid #A5D6A7; color: #2E7D32; }
[data-theme="dark"] .sb-callout.tip  { color: #FFD9B8; }
[data-theme="dark"] .sb-callout.warn { color: #FFB4B4; }
[data-theme="dark"] .sb-callout.info { color: #BBDEFB; }
[data-theme="dark"] .sb-callout.ok   { color: #C8E6C9; }

/* 휴대폰 화면 미리보기 (목업) */
.sb-phone {
  width: 260px; margin: 16px auto; background: #1a1a1a;
  border-radius: 30px; padding: 12px 8px; box-shadow: 0 14px 34px rgba(0,0,0,.28);
}
.sb-phone-scr {
  background: #FFF4E5; border-radius: 22px; overflow: hidden; min-height: 420px;
  display: flex; flex-direction: column; color: #2D2D2D;
}
.sb-phone-top {
  background: linear-gradient(135deg,#F47B3A,#FFB570); color: #fff;
  padding: 16px 16px 20px; font-weight: 800; font-size: 15px;
}
.sb-phone-bd { padding: 14px; flex: 1; font-size: 13px; }

/* 알고리즘/흐름도 */
.sb-flow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  justify-content: center; background: var(--bg2); border: 1px dashed var(--brand);
  border-radius: 14px; padding: 18px; margin: 18px 0;
}
.sb-flow .node {
  background: var(--bg); border: 2px solid var(--brand); color: var(--brand-dark);
  border-radius: 12px; padding: 8px 14px; font-size: 14px; font-weight: 700;
}
.sb-flow .arr { color: var(--brand); font-size: 20px; font-weight: 900; }

/* FAQ 아코디언 */
.sb-faq { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin: 16px 0; }
.sb-faq details { border-bottom: 1px solid var(--border); }
.sb-faq details:last-child { border-bottom: none; }
.sb-faq summary {
  padding: 16px 20px; font-size: 16px; font-weight: 700; cursor: pointer;
  list-style: none; background: var(--bg2); color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.sb-faq summary::-webkit-details-marker { display: none; }
.sb-faq summary::before { content: 'Q'; color: var(--brand); font-weight: 900; font-size: 18px; }
.sb-faq details[open] summary { background: var(--brand-light); color: var(--brand-dark); }
.sb-faq .ans { padding: 16px 20px; font-size: 16px; line-height: 1.8; color: var(--text2); }
.sb-faq .ans::before { content: 'A. '; color: var(--brand); font-weight: 900; }

/* 정보 테이블 살짝 키움 */
.m-table th, .m-table td { font-size: 14.5px; padding: 11px 14px; }

/* 사이드바 그룹 타이틀 위 실벗 배지 */
.sb-side-badge {
  margin: 0 20px 14px; padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(135deg,#F47B3A,#FFB570); color: #fff;
  font-size: 13px; line-height: 1.6;
}
.sb-side-badge b { font-size: 15px; font-family: 'Jua',sans-serif; }

/* 큰 다음 단계 버튼 */
.sb-next-cta {
  display: block; text-align: center; text-decoration: none;
  background: linear-gradient(135deg,#F47B3A,#D85F1F); color: #fff;
  border-radius: 50px; padding: 16px; font-size: 17px; font-weight: 800;
  margin: 28px 0 8px; box-shadow: 0 8px 20px rgba(244,123,58,.35);
}
.sb-next-cta:hover { transform: translateY(-2px); }

/* 번호 매긴 체크리스트 */
ul.sb-check { list-style: none; padding: 0; }
ul.sb-check li { position: relative; padding: 7px 0 7px 30px; font-size: 16px; }
ul.sb-check li::before {
  content: '✓'; position: absolute; left: 0; top: 7px;
  color: #fff; background: var(--brand); width: 20px; height: 20px;
  border-radius: 50%; font-size: 12px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}

@media (max-width: 768px) {
  .m-content p, .m-content li { font-size: 17px; }
  .sb-step { padding: 16px; gap: 14px; }
}
