:root {
  color-scheme: light;
  --ink: #172238;
  --muted: #637086;
  --line: #dce4ef;
  --surface: #ffffff;
  --soft: #f4f7fb;
  --primary: #245edb;
  --primary-dark: #194ab6;
  --notice: #fff8e8;
  --notice-line: #e6c979;
  --danger-soft: #fff1ef;
  --danger: #9f3d31;
  --radius: 18px;
  --shadow: 0 14px 38px rgba(30, 45, 75, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background: #f1f4f8;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  line-height: 1.7;
  word-break: keep-all;
}
a { color: var(--primary-dark); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
code { padding: .12em .35em; border-radius: 5px; background: #edf1f7; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  transform: translateY(-150%);
  padding: 9px 13px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
}
.skip-link:focus { transform: none; }
.site-header {
  display: flex;
  min-height: 70px;
  align-items: center;
  gap: 24px;
  padding: 10px max(22px, calc((100vw - 1080px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
}
.brand { color: var(--ink); font-weight: 900; letter-spacing: -.025em; text-decoration: none; white-space: nowrap; }
.brand small { display: block; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 0; }
.main-nav { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.main-nav a {
  padding: 7px 10px;
  border-radius: 9px;
  color: #526078;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--primary); background: #eaf1ff; }
.page-shell { width: min(1080px, calc(100% - 36px)); flex: 1 0 auto; margin: 38px auto 60px; }
.page-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 24px; }
.side-nav {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.side-nav strong { padding: 7px 9px; font-size: 12px; }
.side-nav a { padding: 7px 9px; border-radius: 7px; color: #59667c; font-size: 12px; text-decoration: none; }
.side-nav a:hover { color: var(--primary); background: #edf3ff; }
.document {
  min-width: 0;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.document > header { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--primary); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
h1, h2, h3 { line-height: 1.35; letter-spacing: -.03em; }
h1 { margin: 9px 0 12px; font-size: clamp(30px, 5vw, 44px); }
h2 { margin: 0 0 13px; font-size: 22px; }
h3 { margin: 22px 0 8px; font-size: 17px; }
p, li, dd { color: #536178; }
.lead { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: 15px; }
.meta { margin: 12px 0 0; color: #768297; font-size: 12px; }
.document section { scroll-margin-top: 20px; padding: 29px 0; border-bottom: 1px solid var(--line); }
.document section:last-child { padding-bottom: 0; border-bottom: 0; }
.document ul, .document ol { padding-left: 22px; }
.document li + li { margin-top: 7px; }
.definition-list { display: grid; gap: 11px; margin: 0; }
.definition-list div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; }
.definition-list dt { color: #344159; font-weight: 850; }
.definition-list dd { margin: 0; }
.notice, .operator-needed, .danger-note {
  padding: 17px 18px;
  border-radius: 12px;
}
.notice { border: 1px solid #cbd9f8; background: #f2f6ff; }
.operator-needed { border: 1px solid var(--notice-line); background: var(--notice); }
.danger-note { border: 1px solid #efb7af; background: var(--danger-soft); }
.notice strong, .operator-needed strong, .danger-note strong { display: block; margin-bottom: 5px; color: var(--ink); }
.operator-needed strong { color: #79500d; }
.danger-note strong { color: var(--danger); }
.notice p, .operator-needed p, .danger-note p { margin: 0; }
.status-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.status-table th, .status-table td { padding: 11px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.status-table th { color: #334058; background: var(--soft); }
.status-table td { color: #536178; }
.status-planned, .status-confirm { display: inline-block; margin-bottom: 4px; padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 900; }
.status-planned { color: #2452a8; background: #e9f0ff; }
.status-confirm { color: #85570d; background: #fff1cc; }
.contact-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.contact-card h2 { margin-bottom: 7px; }
.email-placeholder { display: inline-block; padding: 7px 10px; border: 1px dashed #af8a3c; border-radius: 8px; color: #744c09; background: #fffdf8; font-weight: 800; }
.site-footer {
  flex: 0 0 auto;
  padding: 28px max(22px, calc((100vw - 1080px) / 2));
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.site-footer a { color: #56647a; text-decoration: none; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }
.error-page { display: grid; min-height: 68vh; flex: 1 0 auto; place-items: center; text-align: center; }
.error-card { max-width: 640px; padding: 48px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.error-code { margin: 0; color: var(--primary); font-size: 70px; font-weight: 950; line-height: 1; }
.action-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.action-links a { padding: 9px 14px; border: 1px solid #b9c9eb; border-radius: 9px; text-decoration: none; font-weight: 800; }

@media (max-width: 800px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 8px; }
  .main-nav { width: 100%; margin-left: 0; overflow-x: auto; }
  .page-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; display: flex; overflow-x: auto; }
  .side-nav strong, .side-nav a { white-space: nowrap; }
}
@media (max-width: 560px) {
  body { word-break: normal; }
  .page-shell { width: min(100% - 20px, 1080px); margin-top: 18px; }
  .document { padding: 22px 18px; border-radius: 14px; }
  .definition-list div { grid-template-columns: 1fr; gap: 3px; }
  .status-table { display: block; overflow-x: auto; }
  .error-card { padding: 34px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
