:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #17202a;
  --muted: #5d6876;
  --line: #dce2ea;
  --brand: #315efb;
  --brand-dark: #2346bd;
  --notice-bg: #fff7df;
  --notice-border: #d9a900;
  --danger-bg: #fff0f0;
  --danger-border: #d04a4a;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

a {
  color: var(--brand-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 1rem;
  z-index: 10;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  background: var(--text);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.page,
.footer-inner {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.85rem;
  font-size: 0.9rem;
}

.page {
  padding: 2rem 0 4rem;
}

.card {
  margin-top: 1rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(23 32 42 / 6%);
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.3;
}

h1 {
  margin: 0.2rem 0 0.5rem;
  font-size: clamp(2rem, 8vw, 3rem);
}

h2 {
  margin: 2.4rem 0 0.75rem;
  padding-top: 0.25rem;
  font-size: 1.45rem;
}

h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
}

p,
ul,
ol,
dl,
table {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

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

li + li {
  margin-top: 0.35rem;
}

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

.notice,
.warning {
  margin: 1.25rem 0;
  padding: 1rem;
  border-left: 4px solid var(--notice-border);
  border-radius: 0.35rem;
  background: var(--notice-bg);
}

.warning {
  border-left-color: var(--danger-border);
  background: var(--danger-bg);
}

.notice > :first-child,
.warning > :first-child {
  margin-top: 0;
}

.notice > :last-child,
.warning > :last-child {
  margin-bottom: 0;
}

.button-link {
  display: inline-block;
  margin: 0.5rem 0;
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.button-link:hover {
  background: var(--brand-dark);
}

.table-wrap {
  overflow-x: auto;
}

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

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

th {
  background: #f0f3f8;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner p {
  margin: 0.25rem 0;
}

@media (max-width: 620px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.9rem 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .page {
    padding-top: 1.25rem;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .site-footer,
  .skip-link {
    display: none;
  }

  .page {
    width: 100%;
    padding: 0;
  }

  .card {
    border: 0;
    box-shadow: none;
  }
}
