/*
Theme Name: OneulCheck Edit
Description: 오늘체크 — 오늘 바뀐 것, 오늘 필요한 정보만 체크. 속보성 정보 허브 전용 테마.
Version: 1.0.0
Author: 오늘체크
Text Domain: oneulcheck-edit
*/

:root {
  --ink: #111;
  --body-c: #222;
  --sub: #444;
  --mute: #767676;
  --hair: #e4e4e4;
  --hair2: #ececec;
  --line-bd: #d9d9d9;
  --accent: #e04e00;
  --accent-dk: #b84300;
  --chip-bg: #c14a00;
  --tint: #fdf1e8;
  --foot-orange: #ffb387;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: #fff; color: #111;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 17px; line-height: 1.8;
}
a { color: #111; text-decoration: none; }
a:hover { color: var(--accent-dk); }
::selection { background: #111; color: #fff; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { text-wrap: balance; }

.site { min-height: 100vh; display: flex; flex-direction: column; }

/* ── 상단 검정 스트립 ─────────────────── */
.top-strip {
  background: #111; color: #fff; font-size: 13px; font-weight: 600;
  padding: 8px 20px; text-align: center; letter-spacing: 0.02em;
}

/* ── 고정 헤더 ────────────────────────── */
.site-head { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 2px solid #111; }
.site-head__in {
  max-width: 1040px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; }
.logo .dot { color: var(--accent); }
.site-nav { display: flex; gap: 20px; font-size: 15px; font-weight: 600; }
.site-nav a { padding: 8px 0; }

/* ── 카테고리 탭 (실제 카테고리 링크) ── */
.tabs { border-bottom: 1px solid var(--hair); }
.tabs__in { max-width: 1040px; margin: 0 auto; padding: 12px 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.tab { padding: 10px 18px; border: 1.5px solid var(--line-bd); font-size: 15.5px; font-weight: 600; }
.tab:hover { border-color: #111; color: #111; }
.tab.is-active { background: #111; border-color: #111; color: #fff; font-weight: 700; }

/* ── 메인 컨테이너 ────────────────────── */
.site-main { max-width: 1040px; margin: 0 auto; padding: 36px 20px 0; width: 100%; flex: 1; }
.site-main--narrow { max-width: 760px; padding: 28px 20px 0; }

/* ── 홈: 오늘 업데이트 강조 박스 ──────── */
.today-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
.today-head .today-title { margin: 0; font-size: clamp(24px, 4vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.today-head .date { color: var(--accent); font-size: clamp(18px, 3vw, 22px); font-weight: 800; }
.today-head .count { color: var(--mute); font-size: 15px; font-weight: 600; }
.today-box { border: 2px solid #111; }
.today-item { display: block; padding: 20px 22px; border-bottom: 1px solid var(--hair); }
.today-item:last-child { border-bottom: none; }
.today-item:hover { background: var(--tint); color: #111; }
.today-item__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 9px; }
.today-item__time { font-size: 14px; color: var(--mute); font-weight: 600; }
.today-item__title { font-size: clamp(18px, 2.6vw, 21px); font-weight: 800; line-height: 1.4; letter-spacing: -0.01em; }
.today-item__sum { font-size: 15.5px; color: var(--sub); line-height: 1.6; margin-top: 6px; }

/* ── 칩 ───────────────────────────────── */
.chip-cat { font-size: 13px; font-weight: 800; border: 1.5px solid #111; padding: 3px 10px; color: #111; flex: none; }
.chip-dday { font-size: 13px; font-weight: 800; background: var(--chip-bg); color: #fff; padding: 4.5px 10px; flex: none; }

/* ── AD SLOT ──────────────────────────── */
.ad-slot {
  border: 1.5px dashed #c9c9c9; background: #f7f7f7; min-height: 100px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; margin: 32px 0;
}
.ad-slot--list-top { margin: 30px 0 6px; }
.ad-slot__tag { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; color: #8a8a8a; }
.ad-slot__note { font-size: 12.5px; color: #a0a0a0; }

/* ── 홈: 날짜별 타임라인 ──────────────── */
.tl-head { display: flex; align-items: baseline; gap: 10px; border-bottom: 2px solid #111; padding-bottom: 10px; margin-top: 34px; }
.tl-head h2 { margin: 0; font-size: 19px; font-weight: 800; }
.tl-head .sub { color: var(--mute); font-size: 15px; font-weight: 600; }
.tl-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 17px 2px; border-bottom: 1px solid var(--hair2); }
.tl-row__time { font-size: 14px; color: var(--mute); font-weight: 600; width: 46px; flex: none; }
.tl-row__title { font-size: 17.5px; font-weight: 700; line-height: 1.45; flex: 1; min-width: 220px; }

/* ── 더 보기 버튼 ─────────────────────── */
.more-wrap { margin: 26px 0 0; text-align: center; }
.more-wrap a { display: inline-block; border: 2px solid #111; padding: 13px 34px; font-size: 16px; font-weight: 800; }
.more-wrap a:hover { background: #111; color: #fff; }

/* ── 카테고리 페이지 ──────────────────── */
.cat-title { margin: 0; font-size: clamp(28px, 5vw, 36px); font-weight: 800; letter-spacing: -0.02em; }
.cat-desc { margin: 10px 0 0; font-size: 16.5px; line-height: 1.7; color: var(--sub); text-wrap: pretty; }
.cat-count { margin: 8px 0 0; font-size: 14px; color: var(--mute); font-weight: 600; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 0; }
.chips .chip { padding: 8px 15px; border: 1.5px solid var(--line-bd); font-size: 14px; font-weight: 600; }
.chips .chip:hover { border-color: #111; color: #111; }
.chips .chip.is-active { background: #111; border-color: #111; color: #fff; font-weight: 700; }
.cat-list { border-top: 2px solid #111; margin-top: 26px; }
.cat-row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding: 19px 2px; border-bottom: 1px solid var(--hair2); }
.cat-row__date { font-size: 16.5px; font-weight: 800; width: 76px; flex: none; }
.cat-row__title { font-size: 17.5px; font-weight: 700; line-height: 1.45; flex: 1; min-width: 220px; }
.cat-row__time { font-size: 14px; color: var(--mute); font-weight: 600; flex: none; }

/* ── 페이지네이션 (44px 터치 타깃) ────── */
.pager { display: flex; justify-content: center; gap: 6px; margin: 34px 0 0; flex-wrap: wrap; }
.pager .page-numbers {
  min-width: 44px; height: 44px; padding: 0 6px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line-bd); font-size: 16px; font-weight: 600; color: #111;
}
.pager a.page-numbers:hover { border-color: #111; }
.pager .page-numbers.current { background: #111; border-color: #111; color: #fff; font-weight: 800; }
.pager .page-numbers.dots { border: none; color: var(--mute); }

/* ── 글 상세 ──────────────────────────── */
.crumbs { font-size: 14px; color: var(--mute); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--accent-dk); }
.post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.post-meta__date { font-size: 14.5px; color: var(--mute); font-weight: 600; }
.post-meta__updated { font-size: 14.5px; color: var(--accent-dk); font-weight: 800; }
.entry-title { margin: 14px 0 0; font-size: clamp(25px, 5.2vw, 36px); font-weight: 800; line-height: 1.32; letter-spacing: -0.02em; }

/* D-day 카운터 (oc_dday 메타, 서버 계산) */
.dday-line { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; flex-wrap: wrap; }
.dday-chip { font-size: 13.5px; font-weight: 800; background: var(--chip-bg); color: #fff; padding: 5px 11px; }
.dday-note { font-size: 15px; color: var(--sub); font-weight: 600; }

/* ── 본문 타이포그래피 (시니어 큰 글씨) ─ */
.entry-content { margin-top: 12px; }
.entry-content p { font-size: 17px; line-height: 1.8; color: var(--body-c); margin: 16px 0 0; text-wrap: pretty; }
.entry-content h2 {
  border-top: 2px solid #111; padding-top: 18px; margin: 40px 0 0;
  font-size: clamp(21px, 3.4vw, 26px); font-weight: 800; letter-spacing: -0.015em;
}
.entry-content h3 { margin: 28px 0 0; font-size: 19px; font-weight: 800; }
.entry-content ul, .entry-content ol { margin: 16px 0 0; padding-left: 22px; font-size: 17px; line-height: 1.8; color: var(--body-c); }
.entry-content li { margin: 6px 0 0; }
.entry-content a { color: var(--accent-dk); text-decoration: underline; text-underline-offset: 3px; }
.entry-content strong.hl, .entry-content .hl { color: var(--accent-dk); font-weight: 800; }
.entry-content blockquote { margin: 20px 0 0; padding: 14px 18px; border-left: 3px solid #111; background: #f7f7f7; }

/* ── 표 (정답표·비교표) ───────────────── */
.table-scroll, .entry-content .table-scroll { overflow-x: auto; margin: 18px 0 0; }
.entry-content table, .compare-table {
  width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.55; margin: 18px 0 0;
}
.table-scroll table { margin: 0; }
.entry-content th, .compare-table th {
  background: #f4f4f4; border: 1px solid var(--line-bd); padding: 11px 12px;
  font-size: 14.5px; text-align: left; white-space: nowrap;
}
.entry-content td, .compare-table td { border: 1px solid #e2e2e2; padding: 12px; }
.entry-content th.is-after, .compare-table th.is-after { background: var(--tint); color: var(--accent-dk); }
.entry-content td.is-after, .compare-table td.is-after,
.entry-content td.is-answer, .compare-table td.is-answer { font-weight: 800; color: var(--accent-dk); }
.entry-content td.is-old, .compare-table td.is-old { color: var(--mute); }

/* ── 결론 박스 (본문 HTML이 그림) ─────── */
.conclusion-box { border: 2px solid #111; margin: 24px 0 0; }
.conclusion-box__head {
  background: #111; color: #fff; padding: 11px 18px;
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  font-size: 14px; font-weight: 800; letter-spacing: 0.05em;
}
.conclusion-box__head .time { color: var(--foot-orange); }
.conclusion-box__body { background: var(--tint); padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 13px; }
.conclusion-box__body p { margin: 0; }
.answer-row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.answer-row__label { font-size: 15.5px; font-weight: 700; width: 64px; flex: none; }
.answer-row__value { font-size: clamp(26px, 5vw, 32px); font-weight: 800; color: var(--accent); letter-spacing: -0.01em; }
.answer-row__time { font-size: 14px; color: var(--mute); }
.conclusion-box__deadline { border-top: 1px solid #f0dcc8; padding-top: 13px; font-size: 16px; font-weight: 600; }
.conclusion-box__cta,
.entry-content a.conclusion-box__cta {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: #111; color: #fff; font-size: 16.5px; font-weight: 700; padding: 14px 24px;
  text-decoration: none;
}
.conclusion-box__cta:hover, .entry-content a.conclusion-box__cta:hover { background: var(--chip-bg); color: #fff; }

/* ── 참여 방법 단계 리스트 ────────────── */
.entry-content ol.steps, .steps { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.steps li { display: flex; gap: 12px; font-size: 17px; line-height: 1.7; color: var(--body-c); margin: 0; }
.steps li > strong:first-child, .steps .num { color: var(--accent); flex: none; }

/* ── 출처 섹션 ────────────────────────── */
.sources { border-top: 2px solid #111; margin-top: 36px; padding-top: 18px; }
.entry-content .sources h2, .sources h2 { margin: 0 0 12px; font-size: 19px; font-weight: 800; border-top: none; padding-top: 0; }
.entry-content .sources ol, .sources ol { margin: 0; padding-left: 20px; font-size: 15px; line-height: 2; color: var(--sub); }
.sources a { color: var(--accent-dk); text-decoration: underline; text-underline-offset: 3px; }
.sources .checked { color: #8a8a8a; }
.entry-content .sources p, .sources p { margin: 12px 0 0; font-size: 13.5px; color: var(--mute); line-height: 1.7; }

/* ── 함께 보기 ────────────────────────── */
.related { margin-top: 32px; }
.related h2 { margin: 0 0 12px; font-size: 19px; font-weight: 800; }
.related__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.related__card { border: 1.5px solid var(--line-bd); padding: 15px 17px; display: flex; flex-direction: column; gap: 5px; }
.related__card:hover { border-color: #111; color: #111; }
.related__kicker { font-size: 12.5px; font-weight: 700; color: var(--mute); }
.related__title { font-size: 16px; font-weight: 700; line-height: 1.45; }

/* ── 고정 페이지 ──────────────────────── */
.page-title { margin: 0; font-size: clamp(25px, 5.2vw, 36px); font-weight: 800; line-height: 1.32; letter-spacing: -0.02em; }

/* ── 검정 푸터 ────────────────────────── */
.site-foot { background: #111; color: #c9c9c9; margin-top: 64px; }
.site-foot__in { max-width: 1040px; margin: 0 auto; padding: 40px 20px 24px; }
.site-foot__top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: baseline; }
.site-foot__brand { color: #fff; font-size: 20px; font-weight: 800; }
.site-foot__desc { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: #a8a8a8; }
.site-foot__links { display: flex; gap: 18px; font-size: 14.5px; font-weight: 600; flex-wrap: wrap; }
.site-foot__links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-foot__links a:hover { color: var(--foot-orange); }
.site-foot__legal { border-top: 1px solid #333; margin-top: 26px; padding-top: 14px; font-size: 12.5px; color: #8a8a8a; line-height: 1.7; }

/* ── 빈 목록 ──────────────────────────── */
.empty-note { padding: 36px 0; color: var(--mute); }

/* 결론박스 폴백: __body 구조가 없어도 여백·틴트 적용 */
.conclusion-box:not(:has(.conclusion-box__body)) { background: var(--tint); padding: 20px 24px; }
.conclusion-box ul { margin: 10px 0 0 20px; display: flex; flex-direction: column; gap: 10px; }
.conclusion-box > strong { font-size: 18px; }
