:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-strong: #eef3f8;
  --text: #17202a;
  --muted: #5d6b7a;
  --line: #d9e2ec;
  --brand: #0a7f62;
  --brand-strong: #065f49;
  --warning: #8a4d00;
  --max: 920px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--brand-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.brand {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 14px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--brand-strong);
  font-weight: 700;
}

.page-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.hero {
  padding: 22px 0 30px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  line-height: 1.25;
  letter-spacing: 0;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 46px);
}

h2 {
  margin: 42px 0 14px;
  font-size: 21px;
}

p,
li {
  font-size: 16px;
}

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

.document {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(24px, 5vw, 46px);
  margin-top: 28px;
  margin-bottom: 48px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 30px;
}

.link-panel {
  min-height: 132px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
}

.link-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 800;
}

.link-panel strong {
  color: var(--text);
  font-size: 18px;
}

.notice {
  padding: 2px 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--surface);
}

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

th {
  background: var(--surface-strong);
  font-size: 14px;
}

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

pre {
  overflow-x: auto;
  padding: 14px 16px;
  background: #101820;
  color: #f8fafc;
}

code {
  font-family: "Cascadia Mono", "Consolas", monospace;
}

.warning {
  color: var(--warning);
  font-weight: 700;
}

.button-link {
  display: inline-block;
  padding: 10px 14px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px clamp(18px, 4vw, 42px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
  }

  td {
    border-bottom: 1px solid var(--line);
  }

  td:first-child {
    background: var(--surface-strong);
    font-weight: 800;
  }

  td:nth-child(2)::before {
    content: "목적";
  }

  td:nth-child(3)::before {
    content: "저장 위치";
  }

  td:nth-child(2)::before,
  td:nth-child(3)::before {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
  }

  .document {
    border-left: 0;
    border-right: 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-left: 16px;
    padding-right: 16px;
  }
}
