/* 하위 쪽(개인정보·지원·확률) — site.css 위에 얹는 문서 모양. 색은 site.css :root 이름만. */
.nav-home { margin-left: auto; padding: 8px 14px; border-radius: var(--r-pill); white-space: nowrap; text-decoration: none; font-size: 15px; font-weight: 700; color: var(--ink-soft); transition: background .2s, color .2s; }
.nav-home:hover { background: var(--paper-2); color: var(--ink); }

.doc-hero { position: relative; padding: calc(130px + env(safe-area-inset-top)) 0 var(--s6); background: linear-gradient(180deg, var(--sky) 0%, var(--paper) 100%); }
.doc-hero .wrap { position: relative; }
.doc-hero h1 { margin: 0; font: 700 clamp(38px, 6vw, 68px)/1.08 var(--font-display); text-wrap: balance; }
.doc-hero .lead { margin: var(--s3) 0 0; max-width: 36em; color: var(--ink-soft); font-weight: 600; }
.doc-meta { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.doc-meta > span { padding: 6px 14px; border-radius: var(--r-pill); background: var(--white); border: 2px solid var(--ink); font-size: 13px; font-weight: 800; }
.doc-peek { position: absolute; right: 0; bottom: calc(-1 * var(--s6) - 18px); width: clamp(110px, 13vw, 160px); z-index: 2; filter: drop-shadow(0 6px 0 var(--shadow)); }

.doc { display: grid; grid-template-columns: 220px 1fr; gap: var(--s5); padding: var(--s5) 0 var(--s7); align-items: start; }
.doc > * { min-width: 0; }
.toc { position: sticky; top: 100px; display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 8px 12px; border-radius: var(--r-sm); text-decoration: none; font-size: 14px; font-weight: 700; color: var(--ink-soft); transition: background .2s, color .2s; }
.toc a:hover { background: var(--paper-2); color: var(--ink); }

.doc-card { background: var(--white); border-radius: var(--r-md); padding: clamp(24px, 4vw, 56px); border: var(--line-w) solid var(--ink); box-shadow: 0 8px 0 var(--paper-3); }
.doc-card section + section { margin-top: var(--s5); padding-top: var(--s5); border-top: 2px dashed var(--paper-2); }
.doc-card h2 { display: flex; align-items: baseline; gap: var(--s3); margin: 0 0 var(--s3); font: 700 clamp(22px, 2.6vw, 28px)/1.3 var(--font-display); scroll-margin-top: 100px; }
.doc-card h2 .no { flex: none; display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 50%; background: var(--yuzu); border: 2px solid var(--ink); font: 700 14px/1 var(--font-body); translate: 0 -3px; }
.doc-card h3 { margin: var(--s4) 0 var(--s2); font: 700 18px/1.4 var(--font-display); }
.doc-card p, .doc-card li { font-size: 16px; }
.doc-card p { margin: 0 0 var(--s3); }
.doc-card ul { margin: 0 0 var(--s3); padding-left: 1.2em; }
.doc-card li + li { margin-top: var(--s1); }
.doc-card a { color: var(--wood-2); font-weight: 700; }
.doc-card .note { font-size: 14px; color: var(--ink-soft); }

.tbl { overflow-x: auto; margin: 0 0 var(--s3); border-radius: var(--r-sm); border: 2px solid var(--paper-3); }
.tbl table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
.tbl th, .tbl td { padding: 10px 14px; border-bottom: 1px solid var(--paper-2); text-align: left; vertical-align: top; }
.tbl.num td { text-align: right; white-space: nowrap; }
.tbl.num th[scope=row] { white-space: nowrap; }
.tbl.num thead th:not(:first-child) { text-align: right; }
.tbl thead th { white-space: nowrap; font-size: 13px; font-weight: 800; color: var(--ink-soft); background: var(--paper); }
.tbl tbody tr:nth-child(even) { background: var(--paper); }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.formula { margin: 0 0 var(--s3); padding: var(--s3) var(--s4); border-left: 5px solid var(--yuzu); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--paper); }
.stars { color: var(--yuzu-deep); letter-spacing: .05em; }

.contact { display: grid; grid-template-columns: auto 1fr; gap: var(--s4); align-items: center; margin-bottom: var(--s4); padding: var(--s4); border-radius: var(--r-md); background: linear-gradient(180deg, var(--water) 0%, var(--water-2) 100%); border: var(--line-w) solid var(--ink); }
.contact img { width: 84px; }
.contact p { margin: 0; font-size: 15px; }
.doc-card .contact .mail { display: inline-block; margin: var(--s1) 0 var(--s2); font: 800 clamp(18px, 2.4vw, 24px)/1.3 var(--font-body); color: var(--ink); text-decoration: none; word-break: break-all; }

.faq { display: grid; gap: var(--s2); margin: 0 0 var(--s3); }
.faq details { border-radius: var(--r-sm); background: var(--paper); border: 2px solid var(--paper-2); transition: border-color .2s; }
.faq details[open] { border-color: var(--paper-3); background: var(--white); }
.faq summary { display: flex; justify-content: space-between; gap: var(--s3); padding: 14px 18px; cursor: pointer; list-style: none; font: 700 16px/1.45 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--yuzu); border: 2px solid var(--ink); font: 800 18px/1 var(--font-body); transition: rotate .25s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details > div { padding: 0 18px 14px; }
.faq details p:last-child { margin-bottom: 0; }

.todo { padding: 0 4px; border-radius: 4px; background: var(--yuzu); color: var(--ink); font-weight: 700; }

@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: var(--s3); }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: var(--s1); }
  .toc a { padding: 6px 12px; border: 2px solid var(--paper-3); border-radius: var(--r-pill); font-size: 13px; }
  .contact { grid-template-columns: 1fr; }
  .doc-peek { display: none; }
  .nav:has(.nav-home) .brand span { display: none; }
  .doc-hero { padding-bottom: var(--s5); }
}
