/* chaeyong.manuz.com — 관보·공고문: 미색 종이, 먹 글자, 명조 제목, 굵은 괘선, 인주 빨강 D-day 도장. 라이트 고정 */
:root {
    --paper: #f3ecd9; --sheet: #fbf7ec; --ink: #1d1a15; --ink2: #4a443a; --rule: #1d1a15; --hair: #cfc4a8; --red: #b4231b; --red-bg: #f6e0d6;
    --serif: "Nanum Myeongjo", "AppleMyungjo", "Noto Serif KR", "Noto Serif CJK KR", "Batang", "바탕", serif;
    --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 var(--sans); word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 9; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; line-height: 1.35; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; margin: 2.2rem 0 .8rem; padding-bottom: .35rem; border-bottom: 2px solid var(--rule); display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
h2 small { font: 400 .85rem var(--sans); color: var(--ink2); }
h2 .more { margin-left: auto; font: 400 .9rem var(--sans); }
.small { font-size: .88rem; color: var(--ink2); }
.red { color: var(--red); }

/* 제호 */
.mast { background: var(--sheet); border-bottom: 1px solid var(--rule); }
.mast .wrap { text-align: center; padding-top: 10px; }
.mast-top { display: flex; justify-content: space-between; gap: 8px; margin: 0; font-size: .78rem; color: var(--ink2); border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.title { display: block; font-family: var(--serif); font-weight: 800; font-size: clamp(1.7rem, 7vw, 2.4rem); letter-spacing: .08em; text-decoration: none; padding: 10px 0 8px; border-bottom: 5px double var(--rule); }
.title b { color: var(--red); font-weight: 800; }
.nav { display: flex; justify-content: center; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 9px; text-decoration: none; font-weight: 600; font-size: .9rem; }
.nav a + a { border-left: 1px solid var(--hair); }
.nav a[aria-current] { color: var(--red); text-decoration: underline; text-decoration-thickness: 2px; }

.main { padding-top: 8px; padding-bottom: 32px; }
.hero { padding: 18px 0 6px; }
.eyebrow { margin: 0; font-size: .85rem; color: var(--ink2); letter-spacing: .02em; }
.h1 { font-size: clamp(1.55rem, 6vw, 2.1rem); margin: .25rem 0 .5rem; }
.lead { margin: 0; color: var(--ink2); }
.lead b { color: var(--ink); }

/* 요약 숫자: 이중 괘선 상자 */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 18px 0 6px; }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { display: block; background: var(--sheet); border: 3px double var(--rule); padding: 10px 12px; text-decoration: none; color: var(--ink); min-height: 44px; }
.kpi p { margin: 0; }
.k-lbl { font-size: .82rem; color: var(--ink2); }
.k-val { font-family: var(--serif); font-weight: 800; font-size: 1.7rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.k-val small { font: 600 .85rem var(--sans); margin-left: 2px; color: var(--ink2); }
.kpi.red { border-color: var(--red); }
.kpi.red .k-val { color: var(--red); }
a.kpi:hover { background: #fff; }

/* D-day 도장 */
.stamp { flex: none; display: inline-grid; place-items: center; width: 58px; height: 58px; border: 2.5px solid var(--red); border-radius: 50%; color: var(--red); font: 800 .82rem/1 var(--sans);
    letter-spacing: -.02em; transform: rotate(-9deg); background: rgba(255, 255, 255, .35); box-shadow: inset 0 0 0 2px rgba(180, 35, 27, .15); }
.stamp.hot { background: var(--red); color: #fff; }
.stamp.done { border-color: #8d8576; color: #6b6458; transform: rotate(-4deg); background: none; box-shadow: none; }
.stamp.big { width: 84px; height: 84px; font-size: 1.05rem; border-width: 3px; }

/* 공고 목록 */
.plist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule); }
.plist li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 2px; border-bottom: 1px solid var(--hair); }
.pl-body { min-width: 0; flex: 1; }
.pl-body p { margin: 0; }
.pl-inst { font-size: .85rem; font-weight: 700; }
.pl-inst a { text-decoration: none; color: var(--ink2); }
.pl-title { font-family: var(--serif); font-weight: 800; font-size: 1.04rem; line-height: 1.45; margin: 2px 0 !important; }
.pl-title a { text-decoration: none; display: inline-block; padding: 2px 0; }
.pl-title a:hover { text-decoration: underline; }
.pl-meta { font-size: .84rem; color: var(--ink2); }
.pl-meta b { color: var(--red); }

/* 칩 */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; padding: 0; }
.chips a, .chips span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--rule); background: var(--sheet); text-decoration: none; font-size: .92rem; }
.chips b { font-variant-numeric: tabular-nums; color: var(--red); }
.chips [aria-current] { background: var(--ink); color: var(--sheet); }
.facetnav h2 { font-size: 1.05rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; background: var(--ink); color: var(--sheet); text-decoration: none; font-weight: 700; border: 2px solid var(--ink); margin: 4px 6px 4px 0; }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }

/* 공고문 */
.doc { background: var(--sheet); border: 1px solid var(--rule); outline: 1px solid var(--rule); outline-offset: 3px; padding: 18px 16px 8px; margin: 18px 3px 8px; }
.doc-head { position: relative; border-bottom: 3px double var(--rule); padding-bottom: 12px; }
.doc-head .stamp { position: absolute; right: -4px; top: -6px; }
.doc-no { margin: 0 92px 0 0; font-size: .82rem; color: var(--ink2); }
.doc-no a { color: var(--ink2); }
.doc-title { font-size: clamp(1.3rem, 5.4vw, 1.75rem); margin: 10px 92px 8px 0; }
.doc-period { margin: 0 0 6px; font-weight: 600; }
.doc-act { margin: 0; }
.doc-sec h2 { border-bottom-width: 1px; font-size: 1.08rem; margin-top: 1.6rem; }
.doc-sec h2 span { color: var(--red); }
.txt { white-space: normal; font-size: .95rem; }
.more-txt summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; }
.kv { width: 100%; border-collapse: collapse; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); }
.kv th, .kv td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.kv th { width: 6.5em; font-weight: 700; white-space: nowrap; background: rgba(29, 26, 21, .04); }

/* 표 */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); font-size: .93rem; background: var(--sheet); }
.tbl th, .tbl td { padding: 9px 8px; border-bottom: 1px solid var(--hair); text-align: left; white-space: nowrap; }
.tbl thead th { border-bottom: 1px solid var(--rule); font-size: .85rem; }
.tbl .n { text-align: right; font-variant-numeric: tabular-nums; }
.tbl a { display: inline-block; padding: 6px 0; }

/* 해설 */
.notes { border-left: 4px solid var(--red); background: var(--sheet); padding: 4px 14px 6px; margin: 20px 0; }
.notes h2 { border: 0; font-size: 1.02rem; margin: .6rem 0 .2rem; }
.notes p { margin: .45rem 0; }

/* 막대 */
.bars { margin: 16px 0; background: var(--sheet); border: 1px solid var(--hair); padding: 10px 10px 6px; }
.bars figcaption { font-size: .85rem; font-weight: 700; margin-bottom: 4px; }
.bars svg { display: block; width: 100%; height: 120px; }
.bars rect { fill: var(--ink); }
.bars rect.cur { fill: var(--red); }
.bars line { stroke: var(--ink); stroke-width: .4; }
.bars-x { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--ink2); }
.bars-x b { color: var(--red); }

.insts { list-style: none; padding: 0; margin: 12px 0; columns: 1; border-top: 2px solid var(--rule); }
@media (min-width: 640px) { .insts { columns: 2; column-gap: 24px; } }
.insts li { break-inside: avoid; border-bottom: 1px solid var(--hair); }
.insts a { display: block; padding: 8px 2px; text-decoration: none; min-height: 44px; }
.insts b { display: block; font-family: var(--serif); font-weight: 800; }
.insts li.on b { color: var(--red); }
.insts span { font-size: .8rem; color: var(--ink2); }

.xlink { background: var(--sheet); border: 1px dashed var(--rule); padding: 10px 12px; }
.certs { margin-top: 1.2rem; }
.empty-note { background: var(--sheet); padding: 12px; border: 1px solid var(--hair); }
.toc { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 12px 0; }
.toc a { min-height: 44px; display: inline-flex; align-items: center; }
.changelog { padding-left: 1.2em; }

/* 공용 조각(pub-*) */
.ad { margin: 24px 0; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 700; padding: 6px 0; }
.faq-a { padding: 0 0 12px; color: var(--ink2); }
.src-block { margin-top: 28px; border-top: 3px double var(--rule); padding-top: 4px; }
.src-block h2 { border: 0; font-size: 1rem; margin: .8rem 0 .2rem; }
.src { padding-left: 1.1em; margin: 4px 0; font-size: .9rem; }
.src a { display: inline-block; padding: 4px 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; padding: 0; margin: 18px 0 0; font-size: .85rem; line-height: 1.4; color: var(--ink2); }
.crumbs li { display: flex; align-items: center; min-height: 44px; }
.crumbs li + li::before { content: "›"; margin: 0 6px; }
.crumbs a { display: flex; align-items: center; min-height: 44px; }

.foot { background: var(--ink); color: #e9e2cf; margin-top: 24px; padding: 22px 0 28px; font-size: .86rem; }
.foot a { color: #fff; }
.foot-brand { font-family: var(--serif); font-weight: 800; font-size: 1.1rem; margin: 0 0 8px; border-bottom: 1px solid #6b6458; padding-bottom: 8px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 14px; }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; }
.foot-copy { color: #a39b88; margin-bottom: 0; }
