:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --fg: #1a1d21;
  --fg-sub: #4f5661;
  --fg-mute: #868e98;
  --line: #e4e7eb;
  --acc: #1f5bd6;
  --acc-soft: #edf3ff;
  --warn: #c2410c;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417;
    --bg-soft: #1b1e22;
    --fg: #eceef1;
    --fg-sub: #b4bac2;
    --fg-mute: #7d848e;
    --line: #2b3036;
    --acc: #6b9bff;
    --acc-soft: #1a2436;
    --warn: #fb923c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-weight: 800; font-size: 18px; color: var(--fg); letter-spacing: -0.3px; }
.logo:hover { text-decoration: none; }
.head-nav a { color: var(--fg-sub); font-size: 15px; margin-left: 18px; }

/* page */
main { padding: 28px 0 64px; }
.crumb { font-size: 14px; color: var(--fg-mute); margin-bottom: 10px; }
.crumb a { color: var(--fg-mute); }
.crumb span { margin: 0 6px; }
h1 { font-size: 30px; line-height: 1.3; letter-spacing: -0.8px; margin: 0 0 10px; }
.meta { font-size: 15px; color: var(--fg-sub); margin: 0 0 24px; }
.meta b { font-weight: 600; color: var(--fg); }
h2 {
  font-size: 21px; letter-spacing: -0.4px; line-height: 1.4;
  margin: 48px 0 14px; padding-top: 28px; border-top: 1px solid var(--line);
}
h3 { font-size: 17px; margin: 22px 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: 17px; color: var(--fg); }

/* next event */
.next {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.next-label { font-size: 13px; font-weight: 600; color: var(--fg-mute); margin-bottom: 2px; }
.next-title { font-size: 18px; font-weight: 700; line-height: 1.45; }
.next-date { font-size: 15px; color: var(--fg-sub); }
.dday {
  flex: none; font-size: 22px; font-weight: 800; color: var(--acc);
  font-variant-numeric: tabular-nums; letter-spacing: -0.5px;
}
.dday.today { color: var(--warn); }
.next-note { font-size: 13px; color: var(--fg-mute); margin: 0 0 8px; }

/* schedule table */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { text-align: left; white-space: nowrap; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font-size: 13px; color: var(--fg-mute); font-weight: 600; border-bottom: 1px solid var(--fg-mute); white-space: nowrap; }
.tbl td.k { font-weight: 600; white-space: nowrap; }
.tbl tr.past td { color: var(--fg-mute); }
.tbl .tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--fg-mute); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; margin-left: 6px; vertical-align: 1px; }

.round { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 14px; overflow: hidden; }
.round-head { padding: 12px 16px; font-weight: 700; background: var(--bg-soft); display: flex; justify-content: space-between; align-items: center; }
.round-head small { font-weight: 500; font-size: 13px; color: var(--fg-mute); }
.round.past .round-head, .round.past dd { color: var(--fg-mute); }
.round dl { margin: 0; padding: 4px 16px 8px; }
.round .row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.round .row:last-child { border-bottom: 0; }
.round dt { font-size: 14px; color: var(--fg-sub); }
.round dd { margin: 0; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.round .row.on dd { color: var(--acc); font-weight: 700; }
.round .row.on dt { color: var(--acc); }
.round dd.now { color: var(--acc); font-weight: 700; }

/* key-value list */
.kv { margin: 0; border-top: 1px solid var(--line); }
.kv div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--fg-sub); font-size: 15px; }
.kv dd { margin: 0; }

.src-text { white-space: pre-line; font-size: 16px; color: var(--fg); }
.box-note { font-size: 14px; color: var(--fg-sub); background: var(--bg-soft); border-radius: var(--radius); padding: 14px 16px; }

ul.plain { padding-left: 20px; margin: 0 0 14px; }
ul.plain li { margin: 4px 0; }
.links { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.links a, .links span {
  display: inline-block; font-size: 15px; padding: 6px 12px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--fg);
}
.links a:hover { border-color: var(--acc); color: var(--acc); text-decoration: none; }
.links span { color: var(--fg-mute); }

.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--fg-mute); }
.site-foot nav a { color: var(--fg-sub); margin-right: 16px; }
.site-foot p { margin: 10px 0 0; }

/* list page */
.group h2 { margin-top: 36px; }
.cert-list { list-style: none; padding: 0; margin: 0; }
.cert-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.cert-list .sub { color: var(--fg-mute); font-size: 14px; white-space: nowrap; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 25px; }
  h2 { font-size: 19px; margin-top: 40px; }
  .wrap { padding: 0 16px; }
  .next { padding: 16px; }
  .next-title { font-size: 16px; }
  .dday { font-size: 19px; }
  .tbl-wide { display: none; }
  .kv div { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .kv dt { font-size: 14px; font-weight: 600; }
}
@media (min-width: 601px) {
  .rounds-mobile { display: none; }
}

ul.plain.tight { margin: 0; padding-left: 18px; }
ul.plain.tight li { margin: 2px 0; }
ol.plain { padding-left: 22px; margin: 0 0 14px; }
ol.plain li { margin: 4px 0; }
.kv dd { font-size: 16px; }
.src-line { margin: 40px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.5; color: var(--fg-mute); }
.src-line a { color: var(--fg-mute); text-decoration: underline; }
.search { margin: 8px 0 8px; }
.search input {
  width: 100%; font: inherit; font-size: 16px; color: var(--fg); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
}
.search input:focus { outline: none; border-color: var(--acc); }
.empty { color: var(--fg-mute); font-size: 15px; }
.now .on-name { font-weight: 600; }
.cert-list li[hidden], .group[hidden], .now[hidden] { display: none; }
.outlinks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.outlinks a {
  display: grid; grid-template-columns: 1fr auto; column-gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg);
}
.outlinks a:hover { border-color: var(--acc); text-decoration: none; }
.outlinks .ol-t { font-weight: 600; }
.outlinks .ol-d { grid-column: 1; font-size: 14px; color: var(--fg-mute); }
.outlinks .ol-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--fg-mute); font-size: 18px; }
.outlinks a:hover .ol-arrow { color: var(--acc); }
.ol-note { font-size: 15px; color: var(--fg-sub); margin: -4px 0 12px; }
/* timeline */
.tl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 4px 2px; }
.tl { display: block; width: 100%; min-width: 600px; height: auto; font-family: inherit; }
.tl-grid { stroke: var(--line); stroke-width: 1; }
.tl-band { fill: var(--bg-soft); }
.tl-mon { fill: var(--fg-mute); font-size: 12px; text-anchor: middle; }
.tl-lbl { fill: var(--fg-sub); font-size: 13px; font-weight: 600; }
.tl-reg { fill: var(--acc); background: var(--acc); }
.tl-exam { fill: var(--fg); background: var(--fg); }
.tl-pass { fill: var(--warn); background: var(--warn); }
.tl-past { opacity: .28; }
.tl-today { stroke: var(--warn); stroke-width: 1.5; stroke-dasharray: 3 3; }
.tl-today-t { fill: var(--warn); font-size: 11px; font-weight: 700; text-anchor: middle; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--fg-sub); margin: 10px 2px 0; }
.tl-legend .lg { display: inline-block; width: 14px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }
.tl-legend .lg.dot { width: 9px; height: 9px; border-radius: 50%; }
.tl-legend .lg.line { width: 0; height: 12px; border-left: 2px dashed var(--warn); border-radius: 0; vertical-align: -2px; }
@media (max-width: 600px) { .tl-wrap::after { content: "← 옆으로 밀어서 보기"; display: block; font-size: 12px; color: var(--fg-mute); padding: 2px 8px 4px; } }

/* ===== 홈페이지 레이아웃 ===== */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px); }
.home .wrap, .site-head .wrap, .site-foot .wrap { max-width: 1040px; }
.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo-mark {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px;
  background: var(--acc); color: #fff; font-size: 14px; font-weight: 800; letter-spacing: 0;
}
.head-nav a { font-weight: 500; }
.head-nav a:hover { color: var(--fg); text-decoration: none; }

.home { padding: 0 0 72px; }
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding-top: 52px; padding-bottom: 44px; }
.hero-kicker { font-size: 14px; font-weight: 700; color: var(--acc); margin: 0 0 10px; }
.hero h1 { font-size: 38px; line-height: 1.28; letter-spacing: -1.2px; margin: 0 0 14px; }
.hero-sub { font-size: 17px; color: var(--fg-sub); margin: 0 0 22px; }
.hero .search { margin: 0 0 16px; }
.hero .search input { padding: 15px 16px 15px 44px; font-size: 16px; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.04);
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23868e98' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M12.5 12.5 17 17'/%3E%3C/svg%3E") no-repeat 16px center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips-t { font-size: 13px; color: var(--fg-mute); margin-right: 4px; width: 100%; }
.chip { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--fg); }
.chip:hover { border-color: var(--acc); color: var(--acc); text-decoration: none; }
.hero-pic { display: flex; justify-content: center; }
.hero-art { width: 100%; max-width: 440px; height: auto; }
.ha-sun { fill: #ffd27a; }
.ha-cloud { fill: #fff; }
.ha-hill-far { fill: #cfe0ff; }
.ha-hill-mid { fill: #a9cba0; }
.ha-hill-near { fill: #7fb38a; }
.ha-road { fill: #f4ead9; }
.ha-tree { fill: #3f8f5b; }
.ha-tree rect { fill: #8a6a4f; }
.ha-tree-2 path { fill: #2f7a4b; }
.ha-flag rect { fill: #5b6470; }
.ha-flag path { fill: var(--acc); }
@media (prefers-color-scheme: dark) {
  .ha-sun { fill: #e9c46a; } .ha-cloud { fill: #2a3038; }
  .ha-hill-far { fill: #22324d; } .ha-hill-mid { fill: #2e4a38; } .ha-hill-near { fill: #365c43; }
  .ha-road { fill: #4a4438; } .ha-tree { fill: #4f9e6b; } .ha-tree-2 path { fill: #3f8a5a; }
}

.block { margin-top: 44px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.block-head h2 { margin: 0; padding: 0; border: 0; font-size: 22px; }
.block-sub { font-size: 14px; color: var(--fg-mute); }

.ev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ev-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--fg); background: var(--bg); }
.ev-card:hover { border-color: var(--acc); text-decoration: none; }
.ev-state { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--acc); background: var(--acc-soft); border-radius: 6px; padding: 2px 8px; }
.ev-state.on { color: #fff; background: var(--warn); }
.ev-t { font-weight: 700; line-height: 1.45; margin-top: 4px; }
.ev-w { font-size: 14px; color: var(--fg-sub); font-variant-numeric: tabular-nums; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); color: var(--fg); border: 1px solid transparent; }
.tile:hover { border-color: var(--acc); text-decoration: none; }
.tile-t { font-weight: 700; }
.tile-n { font-size: 13px; color: var(--fg-mute); }
.tile-pro { background: var(--acc-soft); }

.home .group { margin-top: 26px; scroll-margin-top: 72px; }
.home .group h3 { font-size: 17px; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--fg); }
.home .group h3 small { font-size: 13px; color: var(--fg-mute); font-weight: 500; margin-left: 4px; }
.home .cert-list { columns: 2; column-gap: 36px; }
.home .cert-list li { break-inside: avoid; padding: 10px 2px; }
#tech, #pro-wrap { scroll-margin-top: 72px; }

.site-foot { background: var(--bg-soft); margin-top: 24px; padding: 36px 0 44px; }
.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--fg); font-size: 16px; }
.site-foot p { max-width: 640px; }
.site-foot nav { margin: 14px 0 0; }
.foot-note { font-size: 12px; }

@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; gap: 8px; padding-top: 36px; padding-bottom: 28px; }
  .hero-pic { order: -1; }
  .hero-art { max-width: 300px; }
  .ev-grid { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 27px; }
  .hero-sub { font-size: 15px; }
  .hero-art { max-width: 240px; }
  .ev-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .home .cert-list { columns: 1; }
  .hide-sm { display: none; }
  .head-nav a { margin-left: 12px; font-size: 14px; }
}
p.note { font-size: 14px; color: var(--fg-sub); background: var(--bg-soft); border-radius: 8px; padding: 8px 12px; }
details.raw { border: 1px solid var(--line); border-radius: var(--radius); padding: 0; margin: 8px 0 14px; }
details.raw summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--acc); list-style: none; }
details.raw summary::-webkit-details-marker { display: none; }
details.raw summary::after { content: " ▾"; }
details.raw[open] summary::after { content: " ▴"; }
details.raw .raw-text { white-space: pre-line; font-size: 15px; line-height: 1.6; padding: 4px 16px 4px; border-top: 1px solid var(--line); }
details.raw p.note { margin: 8px 16px 14px; }
/* 상세 페이지 사이드바 (PC) */
.wrap-side { max-width: 1040px; }
.side { display: none; }
@media (min-width: 1080px) {
  .wrap-side { display: grid; grid-template-columns: minmax(0, 720px) 240px; gap: 56px; justify-content: center; }
  .side { display: block; }
  .side-in { position: sticky; top: 80px; padding-top: 34px; display: grid; gap: 22px; }
  .side-t { font-size: 13px; font-weight: 700; color: var(--fg-mute); margin: 0 0 6px; }
  .toc { display: grid; border-left: 2px solid var(--line); }
  .toc a { font-size: 14px; color: var(--fg-sub); padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; }
  .toc a:hover { color: var(--acc); border-left-color: var(--acc); text-decoration: none; }
  .side-box { display: grid; background: var(--bg-soft); border-radius: 12px; padding: 16px; }
  .side-box a { font-size: 14px; color: var(--fg); padding: 5px 0; }
  .side-box a.side-all { color: var(--acc); font-weight: 600; margin-top: 6px; }
}
.content h2 { scroll-margin-top: 72px; }
tr:not(.past) .tag, .round:not(.past) .round-head small { display: none; }
.round .row.on dd, .round .row.on dt { color: var(--acc); }
.round .row.on dd { font-weight: 700; }
.tl-past { opacity: .28; }
.faq { display: grid; gap: 4px; }
.faq-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 16px; margin: 0 0 6px; }
.faq-item h3::before { content: "Q. "; color: var(--acc); }
.faq-item p { margin: 0; color: var(--fg-sub); font-size: 15px; font-variant-numeric: tabular-nums; }
