:root {
  --brand: #387D72;
  --brand-dark: #2A5F57;
  --ink: #1A1D1C;
  --muted: #5A6461;
  --line: #DCE5E3;
  --tint: #EEF5F4;
  --tbd-bg: #FFF1C2;
  --tbd-ink: #5C4300;
  --warn-bg: #7A1F1F;
  --bg: #FFFFFF;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.7 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--brand-dark); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, .table-wrap:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.draft-banner {
  position: sticky; top: 0; z-index: 5; background: var(--warn-bg); color: #fff;
  padding: 10px 16px; font-size: 15px; line-height: 1.5; display: flex; flex-wrap: wrap; gap: 4px 12px;
}
.site-header, main, .site-footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 22px; letter-spacing: .5px; }
.site-header ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.site-header nav a { display: inline-block; padding: 8px 12px; min-height: 44px; line-height: 28px; border-radius: 999px; text-decoration: none; color: var(--brand-dark); font-weight: 600; font-size: 15px; }
.site-header nav a[aria-current="page"] { background: var(--brand); color: #fff; }
main { padding-top: 8px; padding-bottom: 40px; scroll-margin-top: 10rem; }
h1 { font-size: 28px; line-height: 1.3; margin: 24px 0 16px; }
h2 { font-size: 21px; margin: 36px 0 10px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--brand-dark); }
h3, h4 { font-size: 18px; margin: 24px 0 8px; }
p, li { margin: 8px 0; }
ul, ol { padding-left: 1.4em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--tint); padding: 1px 5px; border-radius: 4px; }
mark.tbd { background: var(--tbd-bg); color: var(--tbd-ink); padding: 0 3px; border-radius: 3px; border-bottom: 2px dashed #B98A00; }
.table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--tint); color: var(--brand-dark); }
tr:last-child td { border-bottom: 0; }
.internal { margin: 8px 0 24px; border: 2px dashed #B98A00; background: #FFFBEA; border-radius: 10px; padding: 8px 14px; font-size: 15px; }
.internal summary { cursor: pointer; font-weight: 700; color: var(--tbd-ink); min-height: 44px; display: flex; align-items: center; }
.internal .src { color: var(--muted); }
.cards { list-style: none; padding: 0; display: grid; gap: 12px; }
.cards a { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.cards a:hover { border-color: var(--brand); background: var(--tint); }
.cards strong { color: var(--brand-dark); font-size: 18px; }
.site-footer { border-top: 1px solid var(--line); padding-top: 12px; padding-bottom: 32px; font-size: 15px; }
.muted { color: var(--muted); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media print { .draft-banner { position: static; } }
