/* 본문 페이지(소개·개인정보처리방침·404) 공통 스타일.
   색과 글꼴은 index.html과 같은 토큰을 씁니다. */
:root { color-scheme: light; }
[hidden] { display: none !important; }

:root {
  --bg: #EDF0EE;
  --surface: #FAFBFA;
  --ink: #13201B;
  --muted: #5A6962;
  --line: #D5DCD8;
  --line-strong: #A9B5AF;
  --accent: #0E6B4D;
  --sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1411; --surface: #141E1A; --ink: #E7EEEA; --muted: #93A39B;
    --line: #26342E; --line-strong: #43554C; --accent: #5CC9A0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1411; --surface: #141E1A; --ink: #E7EEEA; --muted: #93A39B;
  --line: #26342E; --line-strong: #43554C; --accent: #5CC9A0;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.75; padding-inline: 16px; padding-block: 24px 56px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shell { max-width: 720px; margin: 0 auto; }
.top { padding-bottom: 16px; border-bottom: 2px solid var(--ink); margin-bottom: 24px; }
h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.top p { margin: 6px 0 0; color: var(--muted); font-size: 13.5px; }
.back { display: inline-block; margin-bottom: 14px; color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 500; }
.back:hover { color: var(--ink); }
h2 { margin: 32px 0 8px; padding-top: 18px; border-top: 1px solid var(--line-strong); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
h2:first-of-type { margin-top: 24px; }
h3 { margin: 20px 0 6px; font-size: 15px; font-weight: 700; }
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 20px; }
li { margin-bottom: 6px; }
li::marker { color: var(--line-strong); }
a { color: var(--accent); }
b { font-weight: 700; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; margin: 0 0 12px; }
.box p:last-child { margin-bottom: 0; }
table { border-collapse: collapse; width: 100%; margin: 0 0 12px; font-size: 14px; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface); font-weight: 700; white-space: nowrap; }
code { font-family: var(--mono); font-size: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; }
footer { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line-strong); font-size: 12.5px; color: var(--muted); }
footer a { color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.meta li { margin: 0; }

/* 계산기 목록(소개 페이지) */
.list { margin: 0 0 12px; padding: 0; list-style: none; }
.list li { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list a { font-weight: 700; text-decoration: none; }
.list a:hover { text-decoration: underline; }
.list span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* 404 안내 */
.center { text-align: center; padding-block: 56px 32px; }
.center .mark { width: 72px; height: 72px; margin: 0 auto 20px; display: block; }
.center h1 { font-size: 26px; }
.center p { margin: 10px 0 0; color: var(--muted); }
/* 밝은 테마는 진한 녹색 배경이라 흰 글자, 어두운 테마는 연한 녹색 배경이라 검은 글자를 씁니다. */
.cta { display: inline-block; margin-top: 24px; padding: 11px 20px; border-radius: 6px; background: var(--accent); color: #FAFBFA; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.cta:hover { filter: brightness(1.08); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta { color: #0C1411; }
}
:root[data-theme="dark"] .cta { color: #0C1411; }
