/* dodogas 공통 스타일: 밝은 톤이 기본, 오른쪽 위 버튼으로 어두운 화면 전환 */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --fg: #1b2433;
  --muted: #5a687c;
  --line: #dde4ee;
  --accent: #3f51d6;
  --accent-soft: #e8ebfc;
  --on-accent: #ffffff;
  --ok: #17745a;
  --ok-soft: #e1f3ec;
  --lock-soft: #eef1f6;
  --sample-bg: #fff4d6;
  --sample-fg: #7a5600;
  --hero-from: #eef1ff;
  --hero-to: #f6f8fb;
  --font-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121722;
  --surface: #1a2130;
  --fg: #e7ecf5;
  --muted: #9aa8bd;
  --line: #2b3548;
  --accent: #909cff;
  --accent-soft: #252d52;
  --on-accent: #10142b;
  --ok: #5fd0a8;
  --ok-soft: #173a30;
  --lock-soft: #1f2736;
  --sample-bg: #3a2f10;
  --sample-fg: #f3cf7a;
  --hero-from: #1b2240;
  --hero-to: #121722;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent); }
.container { width: 100%; max-width: 960px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
main { flex: 1; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 16px; min-height: 58px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.logo { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--fg); text-decoration: none; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 999px; font-weight: 500; font-size: 14px; }
.nav a:hover { background: var(--lock-soft); color: var(--fg); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.theme-btn { appearance: none; border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; width: 34px; height: 34px; cursor: pointer; font-size: 15px; line-height: 1; }
.theme-btn:hover { border-color: var(--accent); }
.nav a:focus-visible, .theme-btn:focus-visible, .btn:focus-visible, .chip-btn:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* page head & hero */
.page-head { padding: 40px 0 8px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--accent); margin: 0 0 6px; text-transform: uppercase; }
h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.lead { margin: 0; color: var(--muted); max-width: 60ch; }
.hero { background: linear-gradient(180deg, var(--hero-from), var(--hero-to)); padding: 56px 0 40px; }
.hero h1 { font-size: 36px; }
.hero .lead { font-size: 16px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); cursor: pointer; font-family: inherit; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn:hover { filter: brightness(1.06); }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* sections */
.section { padding: 32px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 20px; }
.section-head a { font-size: 14px; }
.sample-flag { display: inline-block; font-size: 12px; font-weight: 600; background: var(--sample-bg); color: var(--sample-fg); padding: 2px 9px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.notice { margin: 0 0 14px; padding: 10px 14px; border-radius: 8px; background: var(--sample-bg); color: var(--sample-fg); font-size: 14px; }

/* table */
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 14px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
thead th { background: var(--lock-soft); font-size: 13px; font-weight: 600; }
tbody th { font-weight: 600; }
.dash { color: var(--muted); }

/* cards */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin: 0; font-size: 16px; line-height: 1.4; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card .meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.card .foot { margin-top: auto; padding-top: 8px; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.end { background: var(--lock-soft); color: var(--muted); }
.cta-card { background: var(--accent-soft); border-color: transparent; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px; }
.cta-card h3 { font-size: 18px; }
.cta-card p { color: var(--fg); opacity: 0.8; }

/* filter chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 16px; }
.chip-btn { appearance: none; font: inherit; font-size: 14px; font-weight: 500; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--fg); cursor: pointer; }
.chip-btn:hover { border-color: var(--accent); }
.chip-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }

/* guides */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 16px 58px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.steps h3 { margin: 0 0 4px; font-size: 16px; }
.steps p { margin: 0; color: var(--muted); }
.steps img { margin-top: 10px; border-radius: 8px; border: 1px solid var(--line); }

/* faq */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; }
details + details { margin-top: 8px; }
summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style-position: inside; }
details p { margin: 0 0 14px; color: var(--muted); }

/* footer */
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0 36px; color: var(--muted); font-size: 13px; }
.site-footer .links { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.site-footer a { color: var(--muted); }
.site-footer .risk { margin: 0; }

@media (max-width: 560px) {
  h1 { font-size: 25px; }
  .hero h1 { font-size: 28px; }
  .hero { padding: 40px 0 28px; }
  .site-header .container { gap: 4px 12px; }
  .logo { order: 1; }
  .theme-btn { order: 2; margin-left: auto; }
  .nav { order: 3; margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; flex: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .nav a, .btn, .chip-btn { transition: background-color 0.15s, color 0.15s, border-color 0.15s; }
}
