@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;700;900&family=Noto+Sans+KR:wght@400;500;700&display=swap');
/* =============================================================================
 * 방수119 (bangsoo114.com) — 사이트 디자인
 * -----------------------------------------------------------------------------
 * 컨셉      : "신문 1면 / 에디토리얼" — 방수114 일보.
 *             제호(masthead)·머리기사·단(column) 구분선·광고란·전면광고.
 *             미색 신문지 위 검정 잉크, 포인트는 붉은 잉크 한 가지.
 * 팔레트    : primary   = 붉은 잉크 oklch(46% 0.17 27)
 *             secondary = 먹색      oklch(20% 0 0)
 *             accent    = 감색      oklch(36% 0.08 255)
 *             base      = 신문지 미색 #f6f1e4 / 지면 #fbf8f0 / 잉크 #171513
 * 폰트      : 제목·본문 = Noto Serif KR (명조), UI·메타 = Noto Sans KR
 * 형태      : 라운드 0, 1px 잉크 괘선 + 굵은/이중 괘선, 그림자 없음
 * -----------------------------------------------------------------------------
 * 규약(STYLE.md): 디자인 수정은 이 파일에서만. 테마(theme/daisyui) 폴더 수정 금지.
 *                 마크업 커스텀은 웹루트 main.php / hero.php 에서만.
 * ============================================================================= */

:root {
    --ink: #171513;
    --paper: #fbf8f0;
    --serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;
    --sans: 'Noto Sans KR', system-ui, sans-serif;

    --color-primary: oklch(46% 0.17 27);
    --color-primary-content: oklch(98% 0.01 80);
    --color-secondary: oklch(20% 0 0);
    --color-secondary-content: oklch(98% 0.01 80);
    --color-accent: oklch(36% 0.08 255);
    --color-accent-content: oklch(98% 0.01 80);
    --color-neutral: oklch(22% 0.01 60);
    --color-neutral-content: oklch(96% 0.01 80);

    --color-base-100: #fbf8f0;
    --color-base-200: #f1ebdc;
    --color-base-300: #2a2622;
    --color-base-content: #171513;

    --radius-box: 0;
    --radius-field: 0;
    --radius-selector: 0;
    --border: 1px;
    --depth: 0;
}

body { font-family: var(--sans); }

/* ===== 배경: 신문지 결 ===== */
.drawer-content {
    background-color: #efe8d6;
    background-image:
        repeating-linear-gradient(0deg, rgba(60,40,10,.025) 0 1px, transparent 1px 3px),
        radial-gradient(120% 80% at 50% 0%, #f6f1e4 0%, #ebe3cf 100%);
}

#site-header { background: var(--paper); border-bottom: 3px double var(--ink); }
#site-header a, #site-header .btn { font-family: var(--serif); font-weight: 700; }
#site-footer { background: var(--paper); border-top: 3px double var(--ink); font-family: var(--serif); }

/* ===== 지면(paper) ===== */
.paper {
    background: var(--paper);
    border: 1px solid var(--ink);
    box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 18px 30px -24px rgba(40,25,5,.45);
    padding: 1.25rem 1.25rem 1.75rem;
}
@media (min-width: 768px) { .paper { padding: 1.75rem 2.25rem 2.25rem; } }

/* 제호 */
.masthead { text-align: center; border-bottom: 4px double var(--ink); padding-bottom: .75rem; margin-bottom: 1.25rem; }
.masthead-meta, .masthead-sub {
    display: flex; justify-content: space-between; gap: 1rem;
    font-size: .75rem; letter-spacing: .04em; color: #4a443c;
    border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: .3rem .25rem;
}
.masthead-sub { border-top: 0; border-bottom: 0; text-transform: uppercase; }
.masthead-title {
    font-family: var(--serif); font-weight: 900; color: var(--ink);
    font-size: clamp(2.6rem, 9vw, 5.6rem); line-height: 1.05; letter-spacing: -.02em; margin: .5rem 0 .1rem;
}

/* 머리기사 */
.lead-wrap { border-bottom: 1px solid var(--ink); }
.lead { padding: .5rem 0 1.5rem; }
@media (min-width: 1024px) { .lead { padding-right: 2rem; border-right: 1px solid var(--ink); } }
.kicker { font-family: var(--sans); font-size: .78rem; font-weight: 700; color: var(--color-primary); letter-spacing: .05em; margin-bottom: .35rem; }
.headline { font-family: var(--serif); font-weight: 900; font-size: clamp(1.7rem, 4.4vw, 2.9rem); line-height: 1.22; letter-spacing: -.02em; }
.deck { font-family: var(--serif); font-size: 1.05rem; color: #3b352d; margin: .8rem 0 1rem; padding-bottom: .8rem; border-bottom: 1px dotted #6b6256; }
.body-serif { font-family: var(--serif); line-height: 1.85; color: #2a2520; text-align: justify; word-break: keep-all; }
.dropcap::first-letter {
    float: left; font-family: var(--serif); font-weight: 900; font-size: 3.6rem; line-height: .9;
    padding: .2rem .5rem 0 0; color: var(--color-primary);
}

.sidebar-box { padding: 1rem 0 1.25rem; }
@media (min-width: 1024px) { .sidebar-box { padding: .5rem 0 1.5rem 2rem; } }
.figures > div { border-top: 1px solid var(--ink); padding: .8rem 0; }
.figures dt { font-family: var(--serif); font-weight: 900; font-size: 2.6rem; line-height: 1; }
.figures dt small { font-size: 1rem; font-weight: 700; margin-left: .15rem; }
.figures dd { font-size: .85rem; color: #4a443c; margin-top: .25rem; }
.small-print { font-size: .8rem; color: #5a5248; margin-top: .75rem; }

/* 버튼: 납작한 인쇄 버튼 */
#site-main .btn { font-family: var(--serif); font-weight: 700; border: 1.5px solid var(--ink); box-shadow: none; }
#site-main .btn-outline { background: transparent; color: var(--ink); }
#site-main .btn-outline:hover { background: var(--ink); color: var(--paper); }

/* 속보 띠 */
.ticker { display: flex; align-items: stretch; border: 1px solid var(--ink); background: var(--paper); overflow: hidden; }
.ticker-label { background: var(--color-primary); color: #fff; font-weight: 700; padding: .45rem .9rem; font-family: var(--serif); white-space: nowrap; }
.ticker-viewport { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-track { display: inline-block; white-space: nowrap; padding-left: 1rem; font-family: var(--serif); font-size: .92rem; animation: ticker 48s linear infinite; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* 섹션 머리: 면 번호 + 제목 + 괘선 */
.section-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.25rem; border-bottom: 3px solid var(--ink); padding-bottom: .5rem; }
.section-head h2 { font-family: var(--serif); font-weight: 900; font-size: clamp(1.3rem, 3vw, 1.9rem); letter-spacing: -.01em; }
.section-head .rule { flex: 1; }
.page-no { font-family: var(--sans); font-size: .72rem; font-weight: 700; border: 1px solid var(--ink); padding: .15rem .45rem; white-space: nowrap; }

/* 단(column) — 단 사이 세로 괘선 */
.columns > .col { padding: .25rem 0 1rem; border-bottom: 1px solid #b9ae9c; }
@media (min-width: 640px) {
    .columns { column-gap: 0; }
    .columns > .col { padding: .25rem 1.1rem 1rem; border-bottom: 0; border-left: 1px solid #b9ae9c; }
    .columns > .col:first-child { border-left: 0; padding-left: 0; }
}
.columns .body-serif { text-align: left; }
.col-title { font-family: var(--serif); font-weight: 900; font-size: 1.2rem; margin-bottom: .45rem; line-height: 1.35; }

/* 진행 절차 번호 */
.steps-news .step-no { display: inline-block; font-family: var(--serif); font-weight: 900; font-size: 2.2rem; color: var(--color-primary); line-height: 1; margin-bottom: .3rem; }

/* 사설 인용 */
.pledge .col-title { font-size: 1.35rem; }

/* 광고란 */
.ad-box { position: relative; border: 1.5px solid var(--ink); padding: 1rem 1rem .8rem; background: #fffdf7; }
.ad-box--feature { background: var(--ink); color: var(--paper); }
.ad-box--feature .ad-tag { border-color: var(--paper); }
.ad-box--feature .ad-foot { color: #d9cfbd; border-color: #6b6256; }
.ad-tag { display: inline-block; font-size: .65rem; font-weight: 700; letter-spacing: .1em; border: 1px solid var(--ink); padding: .05rem .4rem; margin-bottom: .5rem; }
.ad-title { font-family: var(--serif); font-weight: 900; font-size: 1.45rem; margin-bottom: .25rem; }
.ad-foot { font-size: .75rem; margin-top: .6rem; padding-top: .4rem; border-top: 1px dashed #8a8070; color: #5a5248; }

/* 게시판 latest */
.board-news a { font-family: var(--serif); }

/* 전면광고 CTA */
.full-ad { text-align: center; background: var(--paper); border: 6px double var(--ink); padding: 2.5rem 1.25rem; }
.full-ad .ad-tag { margin-bottom: 1rem; }
.full-ad-title { font-family: var(--serif); font-weight: 900; font-size: clamp(1.8rem, 5vw, 3rem); margin-bottom: .75rem; }
.full-ad-tel {
    display: inline-block; margin-top: 1.25rem; font-family: var(--serif); font-weight: 900;
    font-size: clamp(2.2rem, 7vw, 4rem); color: var(--color-primary); letter-spacing: .02em;
    border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: .2rem 1rem;
}
.full-ad-tel:hover { background: var(--color-primary); color: #fff; }

/* 한글 제목은 어절 단위로 줄바꿈, 좁은 화면에서는 양쪽 맞춤 해제 */
.headline, .section-head h2, .col-title, .full-ad-title, .ad-title { word-break: keep-all; }
@media (max-width: 767px) { .body-serif { text-align: left; } }
