:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #182231;
  --muted: #5f6b7a;
  --line: #dce3ec;
  --accent: #2457d6;
  --accent-soft: #eaf0ff;
  font-family: Inter, Pretendard, "Noto Sans KR", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

a {
  color: var(--accent);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.header-inner,
main,
.site-footer {
  width: min(100% - 32px, 860px);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 750;
  text-decoration: none;
}

.language-nav {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
}

.language-nav button {
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
}

.language-nav button:hover,
.language-nav button:focus-visible {
  text-decoration: underline;
}

main {
  padding-block: 40px 56px;
}

.document,
.landing {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(25, 44, 77, 0.06);
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(1.85rem, 6vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

h2 {
  margin: 38px 0 10px;
  padding-top: 8px;
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  line-height: 1.4;
}

h3 {
  margin: 24px 0 6px;
  font-size: 1.05rem;
}

p,
ul,
ol {
  margin-block: 8px 14px;
}

ul,
ol {
  padding-left: 1.4rem;
}

.meta,
.lede,
.note {
  color: var(--muted);
}

.meta {
  margin-bottom: 28px;
  font-size: 0.94rem;
}

.notice {
  margin-block: 24px;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
}

.table-wrap {
  margin-block: 16px 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f7f9fc;
}

tr:last-child td {
  border-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.card {
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

.card:hover,
.card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(36, 87, 214, 0.09);
}

.card strong {
  display: block;
  margin-bottom: 4px;
}

.site-footer {
  padding-bottom: 40px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

@media (max-width: 560px) {
  .header-inner,
  main,
  .site-footer {
    width: min(100% - 20px, 860px);
  }

  .header-inner {
    min-height: 56px;
  }

  main {
    padding-block: 20px 36px;
  }

  .document,
  .landing {
    padding: 22px 18px;
    border-radius: 12px;
  }
}
