:root {
  --bg: #f7f6f2;
  --card: #ffffff;
  --text: #1d1d1b;
  --muted: #6b6a65;
  --line: #e4e2db;
  --accent: #2f5d50;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615;
    --card: #1f1f1d;
    --text: #ecebe6;
    --muted: #9c9a93;
    --line: #33322f;
    --accent: #7fb8a4;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", sans-serif;
  line-height: 1.7;
  word-break: keep-all;
}
main { max-width: 680px; margin: 0 auto; padding: 56px 20px 80px; }
.eyebrow { margin: 0; color: var(--accent); font-weight: 600; letter-spacing: .04em; }
h1 { margin: 4px 0 32px; font-size: 2rem; }
.notice {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 20px;
}
.notice > summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 56px 24px 24px;
  position: relative;
}
.notice > summary::-webkit-details-marker { display: none; }
.notice > summary::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .15s;
}
.notice[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.notice > summary h2 { margin: 4px 0 0; }
.notice > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 12px; }
.notice-body { padding: 0 24px 24px; }
.notice.past { background: transparent; }
.notice.past > summary h2 { color: var(--muted); font-size: 1.1rem; }
.notice.past > summary time::after {
  content: "지난 공지";
  margin-left: 8px;
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8rem;
}
time { color: var(--muted); font-size: .9rem; }
h2 { margin: 4px 0 16px; font-size: 1.3rem; }
.notice-body > :last-child { margin-bottom: 0; }
.notice-body p, .notice-body ul, .notice-body ol { margin: 0 0 12px; }
.notice-body ul, .notice-body ol { padding-left: 1.2em; }
.notice-body li { margin: 2px 0; }
.notice-body h3 { margin: 20px 0 8px; font-size: 1.05rem; }
.notice-body a { color: var(--accent); }
.notice-body code { background: var(--bg); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.empty { color: var(--muted); }
.notice-body h4 { margin: 16px 0 6px; font-size: 1rem; }
.notice-body pre {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  overflow-x: auto;
  margin: 0 0 12px;
}
.notice-body pre code { background: none; padding: 0; }
.notice-body pre { position: relative; padding-right: 72px; }
.notice-body pre + pre { margin-top: -4px; }
.copy-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  color: var(--muted);
  font: inherit;
  font-size: .8rem;
  cursor: pointer;
}
.copy-btn:hover { color: var(--text); border-color: var(--muted); }
.copy-btn.done { color: var(--accent); border-color: var(--accent); }
.notice-body blockquote {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  background: var(--bg);
  border-radius: 0 8px 8px 0;
}
.notice-body blockquote > :last-child { margin-bottom: 0; }
.notice-body table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: .95rem; }
.notice-body th, .notice-body td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.notice-body th { color: var(--muted); font-weight: 600; }

/* 탭 (Mac / Windows) */
.tabs { margin: 8px 0 16px; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tabs > label {
  display: inline-block;
  padding: 6px 16px;
  margin-right: 4px;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
}
.tabs > input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.tabs > input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.tab-panel {
  display: none;
  border: 1px solid var(--line);
  border-radius: 0 8px 8px 8px;
  padding: 16px;
}
.tab-panel > :first-child { margin-top: 0; }
.tab-panel > :last-child { margin-bottom: 0; }
.tabs > input:nth-of-type(1):checked ~ .tab-panel:nth-of-type(1),
.tabs > input:nth-of-type(2):checked ~ .tab-panel:nth-of-type(2),
.tabs > input:nth-of-type(3):checked ~ .tab-panel:nth-of-type(3),
.tabs > input:nth-of-type(4):checked ~ .tab-panel:nth-of-type(4) { display: block; }
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
}
footer { color: var(--muted); font-size: .9rem; margin-top: 40px; }
