/* ========== 근로장려금 등 정책 상세 페이지 (site.css 변수 + 정책 전용) ========== */
.policy-page{
  --policy-hero-bg: #1e3a5f;
  --policy-hero-fg: #ffffff;
  --policy-bar: #374151;
  --policy-amount: #c2410c;
  --policy-card-shadow: 0 4px 20px rgba(0,0,0,.08);
  --policy-card-radius: 16px;
  --policy-section-bg: #f9f9f9;
  background: #fff;
}
@media (prefers-color-scheme: dark){
  .policy-page{
    --policy-hero-bg: #1e3a5f;
    --policy-hero-fg: #e5e7eb;
    --policy-bar: #6b7280;
    --policy-amount: #fb923c;
    --policy-card-shadow: 0 4px 20px rgba(0,0,0,.25);
  }
}


/* ----- 히어로 배너 ----- */
.policy-hero{
  background: var(--policy-hero-bg);
  color: var(--policy-hero-fg);
  border-radius: var(--policy-card-radius);
  padding: 28px 24px;
  margin-bottom: 24px;
  text-align: center;
}
.policy-hero-icon{ font-size: 2rem; display: block; margin-bottom: 8px; }
.policy-hero-title{ font-size: 1.5rem; font-weight: 800; margin: 0 0 6px; letter-spacing: -.02em; }
.policy-hero-lead{ font-size: 0.95rem; opacity: .92; margin: 0; line-height: 1.5; }

/* ----- 카드 공통 (바깥 배경 흰색, 카드덱만 연한 회색) ----- */
.policy-page .policy-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--policy-card-radius);
  box-shadow: var(--policy-card-shadow);
  padding: 24px;
  margin-bottom: 20px;
}
.policy-page .grid .item{
  background: var(--policy-section-bg);
  border: 1px solid #e5e5e5;
}
.policy-page .grid .item .btnrow .btn{
  background: var(--btn-primary);
  color: var(--btn-primary-fg);
  border-color: var(--btn-primary);
}
.policy-page .grid .item .btnrow .btn:hover{
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  color: var(--btn-primary-fg);
}
.policy-section-card{ padding-left: 20px; border-left: 4px solid var(--policy-bar); }
/* DB 본문 상세만: 맨 바깥 한 겹만 박스 제거(모바일 가로폭 확보), 각 섹션 박스는 유지 */
.policy-page > .policy-body-outer{
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: 0;
}
.policy-page > .policy-body-outer.policy-section-card{ padding-left: 0; border-left: none; }
.policy-page .grid .item .btnrow{ justify-content: flex-end; }

/* ----- 섹션 헤드 (번호 + 제목) ----- */
.policy-section-head{ display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.policy-section-num{ font-size: 1.5rem; font-weight: 800; color: var(--policy-bar); line-height: 1.2; }
.policy-section-title{ font-size: 1.125rem; font-weight: 800; color: var(--fg); margin: 0; letter-spacing: -.01em; }

/* ----- 본문 ----- */
.policy-body{ margin: 0 0 14px; font-size: 15px; line-height: 1.65; color: var(--fg); }
.policy-body.muted{ color: var(--muted); }
.policy-list{ margin: 0 0 12px; padding-left: 1.25em; line-height: 1.7; }
.policy-list li{ margin-bottom: 8px; }
.policy-note{ margin: 14px 0 0; font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ----- 표 ----- */
.policy-table-wrap{ overflow-x: auto; margin: 16px 0 0; border-radius: 12px; border: 1px solid var(--border); }
.policy-table{ width: 100%; border-collapse: collapse; font-size: 14px; }
.policy-table th,
.policy-table td{ padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.policy-table thead th{ background: color-mix(in srgb, var(--border) 50%, transparent); font-weight: 700; color: var(--fg); }
.policy-table tbody tr:last-child td{ border-bottom: 0; }
.policy-table .policy-amount{ font-weight: 700; color: var(--policy-amount); white-space: nowrap; }

/* ----- FAQ 아코디언 (질문만 보임, 클릭 시 답변) ----- */
.faq-accordion{ margin-top: 8px; }
.faq-item{ border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; background: var(--policy-section-bg); }
.faq-item:last-child{ margin-bottom: 0; }
.faq-q{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  text-align: left;
  cursor: pointer;
  list-style: none;
  border: 0;
  background: transparent;
  transition: background .2s ease;
}
.faq-q::-webkit-details-marker{ display: none; }
.faq-q::after{
  content: "▾";
  font-size: 14px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .25s ease;
}
.faq-item[open] .faq-q::after{ transform: rotate(-180deg); }
.faq-q:hover{ background: color-mix(in srgb, var(--border) 30%, transparent); }
.faq-a{
  padding: 14px 18px 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: #fff;
}

/* ----- 하단 버튼·푸터 ----- */
.policy-actions{ display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; margin-bottom: 20px; justify-content: flex-end; }
.policy-page-footer{ font-size: 13px; color: var(--muted); text-align: center; padding: 16px 0 32px; border-top: 1px solid var(--border); }

/* ========== 미디어 쿼리 ========== */
@media (max-width: 480px){
  .policy-hero{ padding: 22px 18px; margin-bottom: 18px; }
  .policy-hero-icon{ font-size: 1.75rem; }
  .policy-hero-title{ font-size: 1.25rem; }
  .policy-hero-lead{ font-size: 0.9rem; }
  .policy-page .policy-card{ padding: 18px; padding-left: 16px; margin-bottom: 16px; }
  .policy-page > .policy-body-outer{ padding: 0; }
  .policy-page .grid{ grid-template-columns: 1fr; }
  .policy-section-card{ border-left-width: 3px; padding-left: 14px; }
  .policy-section-num{ font-size: 1.25rem; }
  .policy-section-title{ font-size: 1rem; }
  .policy-table th, .policy-table td{ padding: 10px 12px; font-size: 13px; }
  .faq-q{ padding: 14px 16px; font-size: 14px; }
  .faq-a{ padding: 12px 16px 16px; font-size: 13px; }
}

@media (max-width: 768px){
  .policy-hero{ padding: 24px 20px; }
  .policy-section-head{ margin-bottom: 14px; }
  .policy-table-wrap{ margin-top: 12px; }
}

@media (max-width: 1024px){
  .policy-table .policy-amount{ white-space: normal; }
}

@media (max-width: 1280px){
}
