/* site pages (views/site.js): 문의 /support · 회사 정보 /company · 이용약관 /terms · 개인정보처리방침 /privacy · 환불 안내 /refund
   Uses the tokens from styles.css (--bg, --card, --line, --muted, --faint, --accent, --warn, --mint, --radius …). */
.site { max-width: 820px; margin: 0 auto; min-width: 0; overflow-wrap: anywhere; }
html[lang=ko] .site { word-break: keep-all; } /* Korean breaks at spaces; Japanese needs normal CJK breaking */
.site.wide { max-width: 1120px; }
.site code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }
main.site-main { padding-bottom: 32px; } /* logged-out pages have no bottom nav */
.site-crumb { margin: 0 0 12px; font-size: 13px; }
.site-crumb a { color: var(--muted); font-weight: 600; }
.site-crumb a:hover { color: var(--text); text-decoration: underline; }
.site-lead { margin: 0 0 16px; color: var(--muted); }
.site-head { margin-bottom: 16px; }
.site-block { margin-top: 28px; }
.site-block > h2 { margin-bottom: 10px; }
.site-note { margin: 12px 2px 0; line-height: 1.6; }
.site-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.site-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.site-actions.center { justify-content: center; }
.site-related { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.site-related .chip { white-space: normal; }

/* draft / effective-date banner */
.site-draft { margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: #2b2412; border: 1px solid #5a4b1d; color: #ffe6a8; font-size: 13.5px; font-weight: 700; }
.site-eff { margin: 6px 0 0; }

/* legal documents: TOC + sections (TOC sticks beside the text on wide screens) */
.site-doc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.site-toc { padding: 12px 14px; }
.site-toc h2 { font-size: 13px; color: var(--faint); margin: 0 0 6px; }
.site-toc ol { margin: 0; padding-left: 22px; display: grid; gap: 5px; font-size: 13.5px; }
.site-toc a { color: var(--muted); }
.site-toc a:hover, .site-toc a:focus-visible { color: var(--text); text-decoration: underline; }
@media (min-width: 1100px) {
  .site-doc-grid { grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; }
  .site-toc { position: sticky; top: 72px; max-height: calc(100dvh - 96px); overflow-y: auto; }
}
.site-doc { min-width: 0; }
.site-sec { padding: 2px 0 6px; }
.site-sec + .site-sec { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 10px; }
.site-sec h2 { font-size: 17px; margin: 0 0 8px; scroll-margin-top: 72px; }
.site-sec h2:focus { outline: none; }
.site-sec p { margin: 0 0 8px; line-height: 1.75; }
.site-sec ul { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 5px; }
.site-sec li { line-height: 1.7; }
mark.site-ph { background: rgba(255, 207, 107, .14); color: var(--warn); border-radius: 4px; padding: 0 3px; font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* company info */
.site-dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.site-dl > div { display: grid; gap: 2px; padding: 12px 14px; border-top: 1px solid var(--line); min-width: 0; }
.site-dl > div:first-child { border-top: 0; }
.site-dl dt { font-size: 12.5px; color: var(--faint); font-weight: 700; }
.site-dl dd { margin: 0; min-width: 0; }
@media (min-width: 700px) { .site-dl > div { grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: baseline; } .site-dl dt { font-size: 13.5px; } }
.site-missing { color: var(--faint); font-style: italic; }
.site-env { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; word-break: normal;
  font-size: 11.5px; color: var(--faint); background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

/* support form + my inquiries */
.site input[type=email] { width: 100%; min-height: 40px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); }
.site-form [aria-invalid=true] { border-color: var(--danger); }
.site-form textarea { min-height: 150px; }
.site-form .field { min-width: 0; }
.site-counter { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; color: var(--faint); }
.site-counter.under { color: var(--warn); }
.site-form .err:empty { display: none; }
.site-ok { text-align: center; padding: 28px 16px; }
.site-ok:focus { outline: none; }
.site-ok h2 { margin-bottom: 8px; }
.site-ok p { margin: 0 0 12px; }
.site-receipt code { display: inline-block; margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); color: var(--text); font-size: 13px; }
.site-empty { padding: 18px 16px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.site-empty p { margin: 0 0 10px; }
.site-inqs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-inq summary { list-style: none; cursor: pointer; padding: 12px 14px; display: grid; gap: 6px; }
.site-inq summary::-webkit-details-marker { display: none; }
.site-inq-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.site-inq-t { font-weight: 800; }
.site-inq-body { padding: 0 14px 12px; border-top: 1px solid var(--line); }
.site-inq-body p { margin: 10px 0 0; white-space: pre-wrap; }
.pill.st-in_progress { color: #1b1530; background: var(--warn); border-color: transparent; }
.pill.st-answered { color: #0b2a22; background: var(--mint); border-color: transparent; }
.pill.st-closed { color: var(--faint); background: transparent; }

/* loading skeleton */
.site-skel { display: grid; gap: 12px; padding: 8px 0; }
.site-skel i { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--card) 25%, var(--card2) 50%, var(--card) 75%); background-size: 200% 100%; animation: site-shimmer 1.2s linear infinite; }
@keyframes site-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .site-skel i { animation: none; } }
