:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1f23;
  --muted: #545b63;
  --line: #d9dcdf;
  --accent: #0b5cad;
  --accent-text: #ffffff;
  --err: #a1201b;
  --err-bg: #fdecea;
  --warn: #7a4b00;
  --warn-bg: #fff4dc;
  --note: #35506b;
  --note-bg: #eaf1f8;
  --ok: #1d6b3a;
  --ok-bg: #e7f5ec;
  --notice-bg: #f1efe8;
  --focus: #e8a400;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14171a; --surface: #1c2024; --text: #e8eaec; --muted: #a9b0b7; --line: #343a40;
    --accent: #7db7f0; --accent-text: #0d1114; --err: #ff9a92; --err-bg: #3a1c1a; --warn: #f1c26b; --warn-bg: #352a14;
    --note: #a8c6e4; --note-bg: #1c2a38; --ok: #8fd6a6; --ok-bg: #173022; --notice-bg: #23272b; --focus: #ffcf4d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14171a; --surface: #1c2024; --text: #e8eaec; --muted: #a9b0b7; --line: #343a40;
  --accent: #7db7f0; --accent-text: #0d1114; --err: #ff9a92; --err-bg: #3a1c1a; --warn: #f1c26b; --warn-bg: #352a14;
  --note: #a8c6e4; --note-bg: #1c2a38; --ok: #8fd6a6; --ok-bg: #173022; --notice-bg: #23272b; --focus: #ffcf4d;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Hiragino Sans", "Noto Sans JP", sans-serif;
  overflow-wrap: anywhere;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible, textarea:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 16px; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--line); background: var(--surface); }
header.site > .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand { font-weight: 700; text-decoration: none; color: var(--text); }
.brand span { color: var(--muted); font-weight: 500; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; font-size: 15px; }
.notice { background: var(--notice-bg); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text); }
.notice p { margin: 0; padding: 8px 0; }
.notice .tr { color: var(--muted); }
/* The notice sits inside <header class="site"> (a landmark, axe best-practice 'region'); header keeps the bottom border. */
header.site .notice { border-bottom: 0; border-top: 1px solid var(--line); }
main { padding: 24px 0 40px; }
h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.2; margin: 8px 0 12px; }
h2 { font-size: 22px; margin: 32px 0 10px; }
h3 { font-size: 18px; margin: 20px 0 6px; }
.lead { font-size: 18px; color: var(--muted); max-width: 46em; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 16px 0; }
.benefits { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding: 0; list-style: none; }
.benefits li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
label { font-weight: 600; display: block; margin: 8px 0 4px; }
textarea { width: 100%; min-height: 160px; font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 8px;
  border: 1px solid var(--muted); border-radius: 6px; background: var(--bg); color: var(--text); }
input[type="file"] { max-width: 100%; color: var(--text); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
button, .btn {
  font: inherit; font-weight: 600; border-radius: 6px; padding: 9px 16px; cursor: pointer; border: 1px solid var(--accent);
  background: var(--surface); color: var(--accent); text-decoration: none; display: inline-block; min-height: 44px;
}
button.primary, .btn.primary { background: var(--accent); color: var(--accent-text); }
.hint { color: var(--muted); font-size: 14px; }
.summary { font-weight: 600; padding: 10px 12px; border-radius: 6px; margin: 12px 0; }
.summary.ok { background: var(--ok-bg); color: var(--ok); }
.summary.bad { background: var(--err-bg); color: var(--err); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { background: var(--notice-bg); font-weight: 600; }
.sev { font-weight: 700; font-size: 12px; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.sev-error { background: var(--err-bg); color: var(--err); }
.sev-warning { background: var(--warn-bg); color: var(--warn); }
.sev-note, .sev-info { background: var(--note-bg); color: var(--note); }
.hts-CP2 { color: var(--err); font-weight: 700; }
.hts-CP1 { color: var(--warn); font-weight: 700; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; background: var(--notice-bg); padding: 1px 4px; border-radius: 4px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 8px 0; }
summary { font-weight: 600; cursor: pointer; }
.quote { border-left: 4px solid var(--accent); padding: 4px 14px; }
footer.site { border-top: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--muted); padding: 20px 0 28px; }
footer.site ul { padding-left: 18px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
textarea.short { min-height: 90px; }
.card > h2:first-child { margin-top: 0; }
:lang(ko) { word-break: keep-all; }
