/* 레이아웃: 맨 위에 '마감 임박 공고' 접수대장, 그 아래 머리기사와 기사 목록 + 오른쪽 보조 단 */
:root {
  --bg: #F2F6F4;
  --surface: #FFFFFF;
  --ink: #13211C;
  --muted: #5A6A64;
  --line: #D5DEDA;
  --accent: #0B6B57;
  --accent-soft: #DDEEE8;
  --urgent: #C4301D;
  --urgent-soft: #FBE4DF;
  --slot: #EEF1E4;
  --slot-ink: #5E6630;
  --font-mast: "Black Han Sans", "IBM Plex Sans KR", "Malgun Gothic", sans-serif;
  --font-body: "IBM Plex Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --font-data: "IBM Plex Mono", "Consolas", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1513; --surface: #161F1C; --ink: #E5ECE9; --muted: #94A49E; --line: #2A3632;
    --accent: #56C7A9; --accent-soft: #17332C; --urgent: #FF7059; --urgent-soft: #3A1C17;
    --slot: #1E2418; --slot-ink: #B5BE82; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p, ol, ul { margin: 0; }
h1, h2, h3 { text-wrap: balance; line-height: 1.3; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
.num { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.draft-bar { background: var(--ink); color: var(--bg); font-size: 13px; padding: 6px 16px; text-align: center; }

.site-head { padding-top: 20px; }
.mast { font-family: var(--font-mast); font-size: clamp(40px, 8vw, 64px); line-height: 1; letter-spacing: -0.01em; text-decoration: none; display: inline-block; }
.mast span { color: var(--urgent); }
.tagline { color: var(--muted); font-size: 14px; margin-top: 6px; }
.sections { display: flex; gap: 4px; overflow-x: auto; margin-top: 18px; border-bottom: 2px solid var(--ink); }
.sections a { padding: 10px 14px; font-weight: 500; white-space: nowrap; text-decoration: none; border-bottom: 4px solid transparent; margin-bottom: -2px; }
.sections a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); font-weight: 700; }

main { padding-block: 24px 48px; display: flex; flex-direction: column; gap: 32px; }
.label { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); text-decoration: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.badge-ad, .badge-draft { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 3px; padding: 0 6px; }
.badge-ad { color: var(--slot-ink); background: var(--slot); border: 1px solid var(--slot-ink); }
.badge-draft { color: var(--urgent); background: var(--urgent-soft); }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec-title h1 { font-size: 26px; }
.sec-title h2 { font-size: 20px; }
.sec-title small, .sec-title a { color: var(--muted); font-size: 13px; }
.empty, .note { color: var(--muted); }
.note { font-size: 14px; }

.board { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 20px; }
.board-list { list-style: none; padding: 0; }
.board-list li { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding-block: 12px; border-top: 1px dashed var(--line); }
.board-list li:first-child { border-top: 0; }
.dday { font-family: var(--font-data); font-weight: 600; font-size: 15px; text-align: center; padding: 6px 0; border-radius: 4px; background: var(--accent-soft); color: var(--accent); }
.dday.hot { background: var(--urgent-soft); color: var(--urgent); border: 1.5px solid var(--urgent); transform: rotate(-3deg); }
.board-list .t { font-weight: 700; }
.board-list .m { color: var(--muted); font-size: 14px; }
.board-list .due { font-size: 14px; color: var(--muted); text-align: right; white-space: nowrap; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; min-width: 0; }
.card:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.card h3 { font-size: 19px; }
.card .sum { color: var(--muted); font-size: 15px; }
.card .meta { color: var(--muted); font-size: 13px; }
.card.lead { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.card.lead h3 { font-size: clamp(26px, 4.4vw, 38px); letter-spacing: -0.02em; }
.card.lead .sum { font-size: 17px; max-width: 60ch; }
.list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }

.ad { display: flex; flex-direction: column; gap: 2px; background: var(--slot); color: var(--slot-ink); border: 1px solid var(--slot-ink); border-radius: 6px; padding: 16px; font-size: 14px; text-decoration: none; }
.ad.house { border-style: dashed; }
.ad b { font-size: 16px; }
.ad-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }

.box { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.box h2 { font-size: 17px; }
.box p { font-size: 14px; color: var(--muted); }
.btn { background: var(--accent); color: var(--surface); border-radius: 4px; padding: 10px; font-weight: 700; text-align: center; text-decoration: none; }
.news .soon { color: var(--accent); font-weight: 500; }

.article { max-width: 720px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.article h1 { font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.02em; }
.article > .meta { color: var(--muted); font-size: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.article .summary { font-size: 19px; font-weight: 500; }
.disclose { background: var(--slot); color: var(--slot-ink); border-radius: 4px; padding: 10px 14px; font-size: 14px; font-weight: 500; }
.body { display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.8; }
.body h2 { font-size: 23px; margin-top: 12px; }
.body h3 { font-size: 19px; margin-top: 6px; }
.body a { color: var(--accent); }
.body ul, .body ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.body blockquote { margin: 0; padding-left: 16px; border-left: 3px solid var(--accent); color: var(--muted); }
.body hr { border: 0; border-top: 1px solid var(--line); width: 100%; }
.table-wrap { overflow-x: auto; }
.body table { border-collapse: collapse; font-size: 15px; min-width: 100%; }
.body th, .body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.body th { background: var(--accent-soft); white-space: nowrap; }
.correction { background: var(--urgent-soft); border-radius: 4px; padding: 12px 14px; font-size: 15px; }
.correction strong { color: var(--urgent); margin-right: 6px; }
.sources { font-size: 14px; }
.sources h2 { font-size: 15px; margin-bottom: 6px; }
.sources ul { padding-left: 1.2em; }
.sources a { color: var(--accent); }
.fix { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.related { margin-top: 12px; }
.related h2 { font-size: 19px; margin-bottom: 14px; }

footer { border-top: 2px solid var(--ink); padding-block: 24px 40px; font-size: 13px; color: var(--muted); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 16px; font-size: 14px; color: var(--ink); }
footer strong { color: var(--ink); }
footer dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 24px; margin: 12px 0; }
footer dl div { display: flex; gap: 8px; }
footer dt { font-weight: 700; color: var(--ink); white-space: nowrap; }
footer dd { margin: 0; }

@media (max-width: 820px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .list { grid-template-columns: minmax(0, 1fr); }
  .board-list li { grid-template-columns: 60px minmax(0, 1fr); }
  .board-list .due { grid-column: 2; text-align: left; }
}
