/* ==========================================================
   pages/info.css — 글 위주 페이지 (계산 방법 · 데이터 출처 · 개인정보 · 약관 · 문의 · 404)
   .info-layout(목차 + 본문) · .prose(본문 글) · .ct-form(문의 양식)
   ========================================================== */

.info-layout { display: grid; gap: 20px; }
.info-toc { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.info-toc::-webkit-scrollbar { display: none; }
.info-toc p { display: none; }
.info-toc a {
  flex: none; height: 34px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px;
  background: var(--surface-2); font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap;
}
.info-toc a:hover { background: #EDF0F5; color: var(--ink); }

.prose { min-width: 0; max-width: 760px; }
.prose section { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line-2); }
.prose section:last-of-type { border-bottom: 0; margin-bottom: 8px; }
.prose h2 { margin-bottom: 12px; font-size: 21px; font-weight: 800; letter-spacing: -.035em; }
.prose p { font-size: 15.5px; line-height: 1.8; color: var(--ink-2); }
.prose p + p, .prose p + .tbl-wrap, .prose .tbl-wrap + p, .prose p + .wstack, .prose .wlegend + .tbl-wrap, .prose .ex-grid + p { margin-top: 14px; }
.prose b { color: var(--ink); font-weight: 800; }
.prose a:not(.btn):not(.strong) { color: var(--brand-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.prose .tbl-wrap { border: 1px solid var(--line); border-radius: var(--r-md); }
.prose .tbl th, .prose .tbl td { padding: 11px 12px; }
.prose .tbl .wrap-td { white-space: normal; min-width: 180px; }
.prose .note { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }
.prose .wstack { margin-top: 4px; }
.t-exp { color: var(--exp-deep) !important; }
.t-aff { color: var(--aff-deep) !important; }
.td-cat { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }

.bullets { display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 18px; font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }
.bullets li::before { content: ""; position: absolute; left: 3px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

.steps { display: grid; gap: 10px; counter-reset: step; }
.steps li { position: relative; display: grid; gap: 2px; padding: 14px 16px 14px 56px; border-radius: var(--r-md); background: var(--surface-2); counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 14px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 13px; font-weight: 800;
}
.steps b { font-size: 15.5px; font-weight: 800; }
.steps span { font-size: 14px; color: var(--ink-2); }

.ex-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.ex { display: grid; gap: 2px; padding: 14px; border-radius: var(--r-md); }
.ex b { font-size: 26px; font-weight: 900; letter-spacing: -.04em; color: var(--navy); }
.ex span { font-size: 12.5px; font-weight: 700; }
.ex.exp { background: var(--exp-soft); } .ex.exp span { color: var(--exp-deep); }
.ex.aff { background: var(--aff-soft); } .ex.aff span { color: var(--aff-deep); }
.ex.flat { background: var(--surface-2); } .ex.flat span { color: var(--ink-3); }

/* ---------- 문의 양식 ---------- */
.ct-form { display: grid; gap: 18px; }
.fld { display: grid; gap: 8px; min-width: 0; }
.fld-label { font-size: 14px; font-weight: 800; }
.fld-label small { margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--ink-4); }
.fld-row { display: grid; gap: 18px; }
.fld .select { width: 100%; height: 48px; }
.field-sm { height: 48px; border-radius: 12px; }
.field-sm input { font-size: 15px; }
.ct-form textarea {
  width: 100%; padding: 14px 16px; border: 0; border-radius: 14px; resize: vertical; min-height: 140px;
  box-shadow: inset 0 0 0 1.5px var(--line); font-size: 15px; line-height: 1.7; outline: none; transition: box-shadow .15s;
}
.ct-form textarea:focus { box-shadow: inset 0 0 0 2px var(--brand), var(--focus-ring); }
.fld-err { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--exp-deep); }
.ct-note { display: flex; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 13px; line-height: 1.65; color: var(--ink-2); }
.ct-note .ico { margin-top: 3px; color: var(--ink-4); }

/* ---------- 404 ---------- */
.nf { padding: 72px 0; }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.nf .empty { padding: 48px 20px; }

@media (min-width: 640px) {
  .fld-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .info-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; }
  .info-toc { position: sticky; top: calc(var(--hdr-h) + var(--nav-h) + 20px); flex-direction: column; gap: 2px; margin: 0; padding: 0; overflow: visible; }
  .info-toc p { display: block; margin-bottom: 6px; padding: 0 12px; font-size: 12px; font-weight: 800; color: var(--ink-4); }
  .info-toc a { height: 36px; background: none; border-radius: 10px; }
  .info-toc a:hover { background: var(--surface-2); }
}
