/* ==========================================================================
   온길에듀뉴스 — Design System v7
   레이아웃 개념: 흰 지면 + 가는 회색 괘선 + 블루 내비 바. 기사가 주인공인 정돈된 신문형 그리드.
   컬러: 교육 블루 1색 + 로고의 해(골드)는 포인트로만. 장식(그라디언트·그림자·이모지) 최소화.
   ========================================================================== */
:root {
  --brand: #1B4FB8;
  --brand-dark: #133E93;
  --brand-50: #EEF3FC;
  --brand-100: #DCE6F8;
  --gold: #F2A900;
  --red: #D92D20;
  --green: #0E9F6E;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6B7280;
  --faint: #9CA3AF;
  --line: #E5E7EB;
  --line-2: #F1F2F4;
  --bg: #FFFFFF;
  --bg-soft: #F7F8FA;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --wrap: 1200px;
  --r: 4px;
  --r2: 8px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; letter-spacing: -0.02em; word-break: keep-all; overflow-wrap: anywhere; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
a:hover .hl, a.hl:hover { color: var(--brand); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -9999px; }
.meta { font-size: 13px; color: var(--muted); }
.meta .dot::before, .dates .dot::before { content: '·'; margin: 0 6px; color: var(--faint); }
.empty { padding: 36px 0; text-align: center; color: var(--muted); font-size: 14.5px; }

/* ---------- Header ---------- */
.hd { background: #fff; }
.hd-top { display: flex; justify-content: space-between; align-items: center; height: 36px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line-2); }
.hd-date { display: flex; gap: 14px; align-items: center; }
.hd-dday { color: var(--ink-2); font-weight: 600; }
.hd-dday b { color: var(--brand); font-weight: 800; margin-left: 2px; }
.hd-util { display: flex; }
.hd-util a { padding: 0 10px; color: var(--muted); position: relative; }
.hd-util a + a::before { content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 1px; background: var(--line); }
.hd-util a:hover { color: var(--ink); }
.hd-main { display: flex; align-items: center; gap: 28px; padding-top: 18px; padding-bottom: 18px; }
.hd-main .menu-btn, .hd .m-search { display: none; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand .mark { width: 48px; height: 48px; border-radius: 22%; }
.brand .word { display: flex; flex-direction: column; line-height: 1; }
.brand .word .ko { font-size: 29px; font-weight: 800; letter-spacing: -0.06em; color: var(--brand); }
.brand .word .ko em { font-style: normal; color: var(--ink); }
.brand .word .en { margin-top: 7px; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: -0.01em; }
.hd-search { display: flex; align-items: center; width: 340px; height: 44px; border: 1px solid #CBD2DC; border-radius: 22px; padding: 0 6px 0 18px; background: #fff; transition: border-color .15s; }
.hd-search:focus-within { border-color: var(--brand); }
.hd-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 14.5px; background: transparent; }
.hd-search input::placeholder { color: var(--faint); }
.hd-search button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.hd-search button:hover { color: var(--brand); }
.hd-ongil { display: flex; gap: 6px; }
.hd-ongil a { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 6px; border: 1px solid var(--line); border-radius: 22px; font-weight: 700; font-size: 14px; color: var(--ink); transition: border-color .15s, color .15s; }
.hd-ongil a:hover { border-color: var(--brand); color: var(--brand); }
.hd-ongil i { font-style: normal; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; }
.hd-ongil i.g { background: var(--green); } .hd-ongil i.b { background: var(--brand); }
.hd-ongil span { display: flex; flex-direction: column; line-height: 1.1; }
.hd-ongil small { display: none; }

.gnb { position: sticky; top: 0; z-index: 40; background: var(--brand); }
.gnb-in { display: flex; justify-content: space-between; align-items: stretch; }
.gnb ul { list-style: none; margin: 0; padding: 0; display: flex; }
.gnb li a { display: block; position: relative; color: #fff; }
.gnb-main li a { padding: 14px 15px; font-size: 16px; font-weight: 700; }
.gnb-main li:first-child a { padding-left: 0; }
.gnb-main li a:hover { background: var(--brand-dark); }
.gnb-main li:first-child a:hover { background: transparent; color: #DCE6F8; }
.gnb-main li a.on::after { content: ''; position: absolute; left: 15px; right: 15px; bottom: 0; height: 3px; background: var(--gold); }
.gnb-main li:first-child a.on::after { left: 0; }
.gnb-svc { align-items: center; gap: 2px; }
.gnb-svc li a { padding: 7px 12px; font-size: 14px; font-weight: 600; color: #DCE6F8; border-radius: 4px; }
.gnb-svc li a:hover, .gnb-svc li a.on { color: #fff; background: rgba(255,255,255,.12); }

.ticker { border-bottom: 1px solid var(--line); background: #fff; }
.ticker .wrap { display: flex; align-items: center; height: 44px; gap: 14px; overflow: hidden; }
.ticker .label { flex: none; font-size: 12px; font-weight: 800; color: var(--brand); border: 1px solid var(--brand); padding: 1px 8px; border-radius: 2px; }
.ticker .label.breaking { color: #fff; background: var(--red); border-color: var(--red); }
.ticker .track { flex: 1; position: relative; height: 24px; overflow: hidden; }
.ticker ul { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.ticker li { position: absolute; inset: 0; opacity: 0; transform: translateY(8px); transition: .4s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14.5px; font-weight: 600; color: var(--ink-2); line-height: 24px; }
.ticker li.on { opacity: 1; transform: none; }

.menu-btn { border: 0; background: none; width: 40px; height: 40px; cursor: pointer; place-items: center; color: var(--ink); }
.drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.drawer .dim { position: absolute; inset: 0; background: rgba(17,24,39,.45); opacity: 0; transition: .25s; }
.drawer .panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(86vw, 340px); background: #fff; transform: translateX(-100%); transition: .3s; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.drawer.open { pointer-events: auto; } .drawer.open .dim { opacity: 1; } .drawer.open .panel { transform: none; }
.drawer .panel ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.drawer .panel li a { display: flex; justify-content: space-between; padding: 13px 4px; border-bottom: 1px solid var(--line-2); font-weight: 700; }
.drawer .close { align-self: flex-end; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; }
.search { display: flex; align-items: center; border: 1px solid #CBD2DC; border-radius: 22px; padding: 0 6px 0 16px; height: 44px; background: #fff; }
.search input { border: 0; outline: 0; flex: 1; min-width: 0; background: transparent; font-size: 15px; }
.search button { border: 0; background: none; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }

/* ---------- Common blocks ---------- */
.kicker { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--brand); }
.kicker.navy { color: var(--brand); }
.badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 2px; margin-right: 6px; vertical-align: 2px; line-height: 1.5; }
.badge.hot { background: var(--red); color: #fff; }
.badge.excl { background: var(--ink); color: #fff; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 16px; }
.sec-head h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.04em; }
.sec-head h2 small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 8px; letter-spacing: -0.01em; }
.sec-head .cnt { color: var(--brand); }
.sec-head .more { font-size: 13px; color: var(--muted); }
.sec-head .more:hover { color: var(--brand); }
.thumb { position: relative; overflow: hidden; background: var(--bg-soft); aspect-ratio: 16 / 10; border-radius: var(--r); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a:hover .thumb img { transform: scale(1.03); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--brand); background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; padding: 9px 18px; border-radius: var(--r); cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink-2); background: #fff; }
.btn.coral { background: var(--brand); }
.btn.sm { font-size: 13px; padding: 6px 12px; }
.btn.block { width: 100%; }
.notice { padding: 13px 16px; border-radius: var(--r2); font-size: 14.5px; }
.notice.ok { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.notice.err { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.flash { padding: 10px 14px; border-radius: var(--r); background: var(--brand-50); color: var(--brand-dark); font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.pager { display: flex; justify-content: center; gap: 4px; margin-top: 32px; }
.pager a, .pager span { min-width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; padding: 0 10px; }
.pager .on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Home ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.lead-story .thumb { aspect-ratio: 16 / 9; }
.lead-story .body { padding-top: 16px; }
.lead-story h2 { font-size: 30px; font-weight: 800; line-height: 1.32; margin: 6px 0 10px; letter-spacing: -0.05em; }
.lead-story .sub { margin: 0 0 14px; font-size: 16.5px; color: var(--ink-2); }
.lead-story ul.points { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line-2); display: grid; gap: 6px; }
.lead-story ul.points li { position: relative; padding-left: 14px; font-size: 14.5px; color: var(--ink-2); }
.lead-story ul.points li::before { content: ''; position: absolute; left: 0; top: .7em; width: 4px; height: 4px; background: var(--brand); }
.top-list { display: flex; flex-direction: column; }
.top-item { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line-2); }
.top-item:first-child { padding-top: 0; }
.top-item:last-child { border-bottom: 0; }
.top-item .thumb { aspect-ratio: 4 / 3; }
.top-item h3 { margin: 3px 0 5px; font-size: 17px; font-weight: 700; line-height: 1.42; letter-spacing: -0.04em; }
.top-item p { margin: 0; font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.ongil-gate { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gate-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r2); background: #fff; color: var(--ink); transition: border-color .15s; }
.gate-card:hover { border-color: var(--brand); }
.gate-card .ic { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.gate-card.study .ic { background: var(--green); } .gate-card.adm .ic { background: var(--brand); }
.gate-card .ic svg { width: 24px; height: 24px; }
.gate-card > div { flex: 1; min-width: 0; }
.gate-card .gk { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.gate-card h3 { margin: 2px 0 3px; font-size: 17.5px; font-weight: 800; letter-spacing: -0.04em; }
.gate-card p { margin: 0; font-size: 13.5px; color: var(--muted); }
.gate-card .go { flex: none; font-size: 13.5px; font-weight: 700; color: var(--brand); }
.gate-card.study .go { color: var(--green); }
.ad-wide { margin: 24px 0 0; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; padding: 34px 0 56px; }
.layout > aside { display: flex; flex-direction: column; gap: 26px; }
.stack { display: flex; flex-direction: column; gap: 42px; }
.latest-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.latest-list li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; font-weight: 600; min-width: 0; }
.latest-list .t { flex: none; width: 54px; color: var(--faint); font-size: 12.5px; font-weight: 600; padding-top: 2px; }
.latest-list a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.sec-block .first { display: block; margin-bottom: 12px; }
.sec-block .first .thumb { margin-bottom: 12px; }
.sec-block .first h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; line-height: 1.42; letter-spacing: -0.04em; }
.sec-block .first p { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sec-block ul { list-style: none; margin: 0; padding: 0; }
.sec-block li { padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-cards, .opinion-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.data-card h3 { margin: 10px 0 0; font-size: 15.5px; font-weight: 700; line-height: 1.45; }
.op-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r2); }
.op-card .q { display: none; }
.op-card h3 { margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.45; }
.op-card .who { font-size: 13px; color: var(--muted); margin-top: auto; }

.home-cm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hc { border: 1px solid var(--line); border-radius: var(--r2); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.hc-h { font-weight: 800; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.hc-h span { display: none; }
.hc-h::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.hc ul { list-style: none; margin: 0; padding: 0; flex: 1; }
.hc li { font-size: 14px; padding: 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 1px solid var(--line-2); }
.hc li b { color: var(--muted); font-size: 12px; font-weight: 700; margin-right: 6px; }
.hc-w { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--brand); }

.tracker-band { border: 1px solid var(--line); border-radius: var(--r2); padding: 24px; background: var(--bg-soft); }
.tracker-band .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.tracker-band h2 { margin: 0; font-size: 19px; font-weight: 800; }
.tracker-band .head p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.tracker-band .go { font-size: 13.5px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.tr-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tr-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r2); }
.tr-card:hover { border-color: var(--brand); }
.tr-card .yr { font-size: 12px; font-weight: 700; color: var(--brand); }
.tr-card strong { font-size: 14.5px; line-height: 1.45; }
.tr-card .tg { font-size: 12.5px; color: var(--muted); }
.status-pill { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 2px; background: var(--brand-50); color: var(--brand); }

/* ---------- Sidebar widgets ---------- */
.widget h3 { margin: 0 0 8px; font-size: 16px; font-weight: 800; display: flex; align-items: baseline; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.widget h3 .en { margin-left: auto; font-size: 11px; color: var(--faint); font-weight: 600; letter-spacing: .1em; }
.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank li { counter-increment: r; display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.rank li::before { content: counter(r); flex: none; width: 18px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.dday-card { border: 1px solid var(--line); border-radius: var(--r2); padding: 18px 20px; display: flex; flex-direction: column; }
.dday-card .lbl { font-size: 13px; color: var(--muted); font-weight: 600; }
.dday-card .num { font-size: 40px; font-weight: 800; color: var(--ink); line-height: 1.15; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin: 2px 0; }
.dday-card .num::after { content: ''; display: block; width: 28px; height: 3px; background: var(--gold); margin-top: 6px; }
.dday-card .date { font-size: 13px; color: var(--muted); margin-top: 6px; }
.dday-card a { font-size: 13.5px; font-weight: 700; color: var(--brand); margin-top: 10px; }
.week-box { border: 1px solid var(--line); border-radius: var(--r2); padding: 16px 18px 12px; }
.wk-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.wk-head h3 { margin: 0; font-size: 16px; font-weight: 800; }
.wk-range { font-size: 12px; color: var(--muted); }
.wk-list { list-style: none; margin: 0; padding: 0; }
.wk-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.wk-list li:last-child { border-bottom: 0; }
.wk-date { flex: none; min-width: 64px; font-weight: 700; color: var(--c, var(--brand)); font-variant-numeric: tabular-nums; font-size: 12.5px; padding-top: 1px; }
.wk-t { font-weight: 600; line-height: 1.45; }
.wk-cat { display: inline-block; font-size: 11px; font-weight: 700; color: var(--c); margin-right: 6px; }
.wk-sub { font-size: 12px; font-weight: 700; color: var(--muted); margin: 10px 0 0; }
.wk-empty { font-size: 13px; color: var(--muted); margin: 8px 0; }
.wk-more { display: block; text-align: center; margin-top: 8px; padding: 9px; border-top: 1px solid var(--line); color: var(--brand); font-weight: 700; font-size: 13.5px; }
.link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.link-grid a { font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.link-grid a:hover { color: var(--brand); }
.cta-card { border: 1px solid var(--line); border-radius: var(--r2); padding: 18px 20px; }
.cta-card .k { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .08em; }
.cta-card h4 { margin: 6px 0 6px; font-size: 16.5px; font-weight: 800; line-height: 1.4; }
.cta-card p { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); }

/* ---------- Ads & 온길 ---------- */
.ad { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ad .ad-tag { position: absolute; top: 6px; right: 6px; font-size: 10px; font-weight: 700; color: #fff; background: rgba(0,0,0,.45); padding: 0 5px; border-radius: 2px; z-index: 1; }
.ad-text { padding: 16px 18px; } .ad-text strong { display: block; font-size: 15.5px; } .ad-text span { font-size: 13.5px; color: var(--muted); }
.ad-house { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r2); }
.ad-house.tall { flex-direction: column; align-items: flex-start; }
.ad-label-row { font-size: 10.5px; letter-spacing: .14em; color: var(--faint); font-weight: 700; margin-bottom: 4px; }
.ad-house .t { font-size: 15px; font-weight: 800; color: var(--ink); }
.ad-house .d { font-size: 13px; color: var(--muted); }
.ob-tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--muted); border: 1px solid var(--line); border-radius: 2px; padding: 0 6px; background: #fff; }
.ongil-side { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r2); background: #fff; }
.ongil-side strong { font-size: 16.5px; font-weight: 800; line-height: 1.42; }
.os-desc { font-size: 13px; color: var(--muted); }
.os-bars { display: none; }
.os-cta { align-self: flex-start; margin-top: 4px; font-size: 13.5px; font-weight: 700; color: var(--brand); }
.ongil-inline { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin: 30px 0; padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--r); background: var(--bg-soft); }
.oi-mark { width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.oi-body { display: flex; flex-direction: column; gap: 3px; }
.oi-body strong { font-size: 15.5px; font-weight: 800; }
.oi-body span:last-child { font-size: 13.5px; color: var(--muted); }
.oi-cta { background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: var(--r); white-space: nowrap; }
.oi-cta:hover { background: var(--brand-dark); }
.ongil-band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px 30px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--bg-soft); }
.ongil-band h2 { margin: 10px 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -0.04em; }
.ongil-band p { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }
.ob-points { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 5px; }
.ob-points li { font-size: 14.5px; font-weight: 600; padding-left: 18px; position: relative; }
.ob-points li::before { content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.ob-cta { display: inline-block; background: var(--brand); color: #fff; font-weight: 700; padding: 11px 20px; border-radius: var(--r); }
.ob-visual { background: #fff; border: 1px solid var(--line); border-radius: var(--r2); padding: 18px; position: relative; }
.gauge svg { width: 100%; max-width: 200px; display: block; margin: 0 auto; }
.gauge svg path:first-child { stroke: var(--line); } .gauge svg path:last-child { stroke: var(--brand); }
.g-num { text-align: center; font-size: 18px; font-weight: 800; margin-top: -30px; } .g-lbl { text-align: center; font-size: 12px; color: var(--muted); }
.ob-rows { display: grid; gap: 8px; margin-top: 14px; }
.ob-rows div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.ob-rows i { display: block; height: 7px; border-radius: 4px; background: linear-gradient(90deg, var(--brand) var(--w), var(--line-2) var(--w)); }
.ob-note { position: absolute; right: 10px; top: 8px; font-size: 10px; color: var(--faint); }
.ongil-wide { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--bg-soft); }
.ongil-wide strong { font-size: 16px; font-weight: 800; } .ow-desc { font-size: 13.5px; color: var(--muted); } .ow-cta { font-weight: 700; color: var(--brand); white-space: nowrap; }

/* ---------- Section / list pages ---------- */
.page-head { padding: 30px 0 18px; border-bottom: 1px solid var(--line); }
.page-head .crumb { font-size: 13px; color: var(--muted); }
.page-head h1 { margin: 6px 0 4px; font-size: 28px; font-weight: 800; letter-spacing: -0.05em; }
.page-head p { margin: 0; color: var(--muted); }
.list-article { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.list-article h2 { margin: 3px 0 7px; font-size: 19px; font-weight: 700; line-height: 1.42; letter-spacing: -0.04em; }
.list-article p { margin: 0 0 8px; font-size: 14.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Article ---------- */
.article-head { padding: 30px 0 0; max-width: 820px; }
.article-head .crumb { font-size: 13px; color: var(--muted); display: flex; gap: 8px; }
.article-head h1 { font-size: 34px; font-weight: 800; line-height: 1.34; letter-spacing: -0.05em; margin: 12px 0 14px; }
.article-head .subtitle { margin: 0 0 20px; padding-left: 14px; border-left: 3px solid var(--brand); font-size: 17.5px; color: var(--ink-2); font-weight: 500; line-height: 1.6; }
.byline { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.byline .who { display: flex; align-items: center; gap: 10px; }
.byline .avatar img.mark, .byline .avatar .mark { width: 32px; height: 32px; }
.byline .name { font-weight: 700; font-size: 14.5px; }
.byline .dates { font-size: 12.5px; color: var(--muted); }
.tools { display: flex; gap: 6px; }
.tools button, .tools a { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: #fff; display: grid; place-items: center; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.tools button:hover, .tools a:hover { border-color: var(--ink-2); }
.article-figure { margin: 24px 0 6px; }
.article-figure .thumb { aspect-ratio: 16 / 9; }
.article-figure figcaption { font-size: 12.5px; color: var(--muted); padding-top: 8px; line-height: 1.5; }
.article-figure figcaption a { text-decoration: underline; text-underline-offset: 2px; }
.summary-box { margin: 24px 0; padding: 18px 22px; background: var(--bg-soft); border-top: 2px solid var(--brand); }
.summary-box .h { font-size: 13px; font-weight: 800; color: var(--brand); margin-bottom: 6px; }
.summary-box ul { margin: 0; padding-left: 18px; }
.summary-box li { font-size: 15.5px; font-weight: 600; margin: 4px 0; }
.prose { font-size: 17.5px; line-height: 1.85; color: #1F2937; letter-spacing: -0.02em; }
.prose.fs-1 { font-size: 15.5px; } .prose.fs-3 { font-size: 19.5px; } .prose.fs-4 { font-size: 21.5px; }
.prose p { margin: 0 0 1.25em; }
.prose h2 { font-size: 1.16em; font-weight: 800; margin: 1.9em 0 .7em; letter-spacing: -0.04em; padding-left: 12px; border-left: 3px solid var(--brand); line-height: 1.4; }
.prose h3 { font-size: 1.04em; font-weight: 700; margin: 1.5em 0 .6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.25em; }
.prose li { margin: .3em 0; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line); color: var(--ink-2); }
.table-wrap { overflow-x: auto; margin: 1.3em 0 1.7em; border-top: 2px solid var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: .84em; line-height: 1.5; }
.prose th { background: var(--bg-soft); font-weight: 700; text-align: left; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.applies-box { margin: 30px 0; border: 1px solid var(--brand-100); border-radius: var(--r2); overflow: hidden; }
.applies-box .h { display: flex; align-items: center; gap: 8px; padding: 11px 18px; background: var(--brand-50); color: var(--brand-dark); font-weight: 800; font-size: 15px; }
.applies-box .b { padding: 14px 20px 4px; font-size: 15.5px; line-height: 1.7; }
.applies-box .b ul { padding-left: 1.1em; margin: 0 0 10px; }
.applies-box .b p { margin: 0 0 10px; }
.source-box { margin: 28px 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r2); font-size: 13.5px; color: var(--ink-2); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; }
.source-box dt { font-weight: 700; color: var(--ink); } .source-box dd { margin: 0; }
.source-box dd a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.source-box .note { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; margin: 4px 0 0; }
.copyright-line { font-size: 13px; color: var(--muted); margin: 18px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }
.tags a { font-size: 13px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink-2); }
.tags a:hover { border-color: var(--brand); color: var(--brand); }
.like-row { display: flex; justify-content: center; margin: 30px 0; }
.like-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 22px; padding: 10px 24px; cursor: pointer; font-weight: 700; }
.like-btn .n { color: var(--muted); font-weight: 600; }
.like-btn.on { border-color: var(--brand); color: var(--brand); }
.comments { margin-top: 36px; }
.cm-form { border: 1px solid var(--line); border-radius: var(--r2); padding: 16px; background: var(--bg-soft); display: grid; gap: 10px; }
.cm-form .row { display: grid; grid-template-columns: 150px 150px 1fr; gap: 8px; }
.cm-form input, .cm-form select, .cm-form textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--r); padding: 9px 12px; background: #fff; font-size: 14px; }
.cm-form textarea { min-height: 92px; resize: vertical; }
.cm-form .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); }
.cm-sort { display: flex; gap: 14px; font-size: 13.5px; margin: 16px 0 4px; }
.cm-sort a { color: var(--muted); } .cm-sort a.on { color: var(--ink); font-weight: 800; }
.cm-list { list-style: none; margin: 0; padding: 0; }
.cm { padding: 15px 0; border-bottom: 1px solid var(--line-2); }
.cm.reply { padding-left: 26px; }
.cm .h { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.cm .h b { font-weight: 800; } .cm .h .meta { margin-left: auto; }
.cm .role { font-size: 11px; font-weight: 700; padding: 0 6px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); }
.cm .c { margin: 6px 0 8px; font-size: 15px; white-space: pre-wrap; }
.cm .acts { display: flex; gap: 12px; font-size: 12.5px; color: var(--muted); }
.cm .acts button { border: 0; background: none; padding: 0; cursor: pointer; color: inherit; }
.cm .acts button:hover { color: var(--ink); }
.reply-slot:empty { display: none; } .reply-slot { margin-top: 10px; }
.related { margin-top: 44px; }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.related-grid h3 { margin: 10px 0 0; font-size: 14.5px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Banner heads (calendar / tracker / community / ad) ---------- */
.cal-hero, .tracker-hero, .cm-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 32px 0 26px; color: var(--ink); }
.cal-hero h1, .tracker-hero h1, .cm-hero h1 { margin: 4px 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -0.05em; }
.cal-hero p, .tracker-hero p, .cm-hero p { margin: 0; color: var(--muted); max-width: 680px; }
.cal-hero .kicker, .tracker-hero .kicker, .cm-hero .kicker { color: var(--brand) !important; font-size: 12px; letter-spacing: .06em; }
.ad-hero { background: var(--brand); color: #fff; padding: 46px 0 40px; }
.ad-hero .k { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: #DCE6F8; }
.ad-hero h1 { margin: 10px 0 12px; font-size: 32px; font-weight: 800; letter-spacing: -0.05em; line-height: 1.32; }
.ad-hero p { margin: 0; max-width: 620px; color: #DCE6F8; }
.ad-stats { display: flex; gap: 40px; margin-top: 24px; flex-wrap: wrap; }
.ad-stats b { display: block; font-size: 22px; font-weight: 800; } .ad-stats span { font-size: 13px; color: #DCE6F8; }

/* ---------- Calendar ---------- */
.cal-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin: 24px 0 14px; }
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-nav h2 { margin: 0; font-size: 22px; font-weight: 800; min-width: 130px; text-align: center; }
.cal-nav a { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 18px; }
.cal-nav .cal-today { width: auto; border-radius: 17px; padding: 0 14px; font-size: 13px; }
.cal-filter { display: flex; flex-wrap: wrap; gap: 4px; }
.cal-filter a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 5px 11px; border: 1px solid var(--line); border-radius: 15px; color: var(--ink-2); }
.cal-filter a i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.cal-filter a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; }
.cal-layout > aside { display: flex; flex-direction: column; gap: 20px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-left: 1px solid var(--line); }
.cal-dow { text-align: center; font-size: 12.5px; font-weight: 700; padding: 9px 0; background: var(--bg-soft); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal-dow.sun, .cal-d.sun { color: var(--red); } .cal-dow.sat, .cal-d.sat { color: var(--brand); }
.cal-cell { min-height: 108px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-cell.out { background: #FBFBFC; } .cal-cell.out .cal-d { opacity: .35; }
.cal-cell.today { background: #FFFBEB; }
.cal-cell.today .cal-d { background: var(--brand); color: #fff; border-radius: 10px; padding: 0 7px; }
.cal-d { font-size: 13px; font-weight: 700; align-self: flex-start; }
.cal-ev { display: block; font-size: 11.5px; font-weight: 600; line-height: 1.4; padding: 1px 5px; border-left: 2px solid var(--c); background: var(--bg-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev:hover { color: var(--brand); }
.cal-more { font-size: 11px; color: var(--muted); padding-left: 4px; }
.cal-list-h { font-size: 18px; font-weight: 800; margin: 28px 0 10px; } .cal-list-h span { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.cal-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.cal-list li { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--line-2); scroll-margin-top: 70px; }
.cal-list li:target { background: #FFFBEB; }
.cl-date { color: var(--c); display: flex; flex-direction: column; } .cl-date b { font-size: 15px; } .cl-date small { font-size: 12px; }
.cl-body { display: flex; flex-direction: column; gap: 3px; } .cl-body strong { font-size: 15px; }
.cl-body .wk-cat { width: fit-content; }
.cl-kind { font-size: 11px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); padding: 0 5px; width: fit-content; }
.cl-src { font-size: 12.5px; color: var(--muted); }
.cal-links { border: 1px solid var(--line); border-radius: var(--r2); padding: 14px 16px; display: flex; flex-direction: column; }
.cal-links h4 { margin: 0 0 6px; font-size: 15px; font-weight: 800; }
.cal-links a { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.cal-links a small { color: var(--muted); font-weight: 500; }

/* ---------- Tracker page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 4px; margin: 24px 0 18px; }
.filters button { border: 1px solid var(--line); background: #fff; border-radius: 15px; padding: 6px 13px; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.filters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.year-group { margin-bottom: 32px; }
.year-group > h2 { font-size: 21px; font-weight: 800; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.tr-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--r2); margin-bottom: 10px; overflow: hidden; }
.tr-row .l { padding: 16px; background: var(--bg-soft); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.tr-row .l .area { font-size: 12px; font-weight: 700; color: var(--brand); }
.tr-row .l strong { font-size: 15.5px; line-height: 1.45; } .tr-row .l .tgt { font-size: 13px; color: var(--ink-2); }
.tr-row .cmp { padding: 16px; font-size: 14.5px; }
.tr-row .cmp .lab { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.tr-row .cmp.after { border-left: 1px dashed var(--line); } .tr-row .cmp.after .lab { color: var(--brand); }
.tr-row .src { display: block; font-size: 12px; color: var(--muted); margin-top: 10px; }
.st { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 2px; width: fit-content; }
.st-확정 { background: var(--brand); color: #fff; } .st-시행중 { background: var(--green); color: #fff; }
.st-예고 { background: #FEF3C7; color: #92400E; } .st-논의중 { background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line); }

/* ---------- Community ---------- */
.cmx { padding-bottom: 56px; }
.cmx-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 28px 0 16px; }
.cmx-top h1 { margin: 0 0 4px; font-size: 28px; font-weight: 800; letter-spacing: -0.05em; }
.cmx-top p { margin: 0; color: var(--muted); font-size: 14px; }
.cmx-write { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand); color: #fff; font-weight: 700; padding: 10px 20px; border-radius: var(--r); white-space: nowrap; }
.cmx-write:hover { background: var(--brand-dark); }
.cmx-write.big { display: flex; padding: 13px; }
.cmx-tabs { display: flex; border-bottom: 1px solid var(--line); }
.cmx-tabs a { position: relative; padding: 12px 20px; font-weight: 700; font-size: 15.5px; color: var(--muted); }
.cmx-tabs a span { display: none; }
.cmx-tabs a:hover { color: var(--ink); }
.cmx-tabs a.on { color: var(--ink); }
.cmx-tabs a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; background: var(--brand); }
.cmx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; margin-top: 20px; }
.cmx-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.cmx-filter .seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cmx-filter .seg a { padding: 7px 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); border-right: 1px solid var(--line); }
.cmx-filter .seg a:last-child { border-right: 0; }
.cmx-filter .seg a.on { background: var(--brand); color: #fff; }
.cmx-filter select { border: 1px solid var(--line); border-radius: var(--r); padding: 7px 10px; font-size: 14px; background: #fff; }
.cmx-filter select.wide { min-width: 200px; }
.cmx-search { margin-left: auto; display: flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cmx-search input { border: 0; padding: 7px 10px; width: 160px; outline: 0; font-size: 14px; }
.cmx-search button { border: 0; background: var(--bg-soft); padding: 0 12px; cursor: pointer; font-size: 13px; font-weight: 600; }
.cmx-list { border-top: 2px solid var(--ink); }
.cmx-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 100px 72px 52px; gap: 10px; align-items: center; padding: 12px 8px; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.cmx-row.head { font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--bg-soft); padding: 9px 8px; }
.cmx-row.head span:nth-child(n+3) { text-align: center; }
a.cmx-row:hover { background: #FAFBFC; }
.cmx-row.notice { background: var(--brand-50); }
.c-type em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--c); }
.c-title { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-title small { font-size: 12px; font-weight: 700; margin-right: 6px; }
.c-title b { color: var(--brand); margin-left: 4px; font-weight: 700; }
.c-title i { font-style: normal; font-size: 12px; color: var(--faint); margin-left: 8px; }
.c-who, .c-date, .c-view { text-align: center; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmx-empty { margin-top: 18px; padding: 26px; border: 1px dashed var(--line); border-radius: var(--r2); text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.cmx-empty strong { font-size: 16px; } .cmx-empty > span { font-size: 13.5px; color: var(--muted); }
.starters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.starters a { border: 1px solid var(--line); border-radius: 16px; padding: 7px 13px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.starters a:hover { border-color: var(--brand); color: var(--brand); }
.cmx-side { display: flex; flex-direction: column; gap: 16px; }
.cmx-box { border: 1px solid var(--line); border-radius: var(--r2); padding: 14px 16px; }
.cmx-box h3 { margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.cmx-box ol { margin: 0; padding-left: 18px; font-size: 14px; } .cmx-box ol li { padding: 4px 0; }
.cmx-link { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-top: 1px solid var(--line-2); }
.cmx-link span { display: none; } .cmx-link b { font-size: 14px; } .cmx-link small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.cmx-link:hover b { color: var(--brand); }
.cp-head { border-bottom: 1px solid var(--line); padding: 12px 0 16px; }
.cp-head .pt { font-size: 12px; font-weight: 700; color: var(--c); margin-right: 6px; }
.cp-head .tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 2px; padding: 0 6px; margin-right: 4px; }
.cp-head h1 { font-size: 25px; font-weight: 800; letter-spacing: -0.04em; margin: 10px 0 8px; }
.cp-body { white-space: pre-wrap; font-size: 16.5px; line-height: 1.85; padding: 22px 0; min-height: 120px; }
.cp-acts { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 8px 0 22px; border-bottom: 1px solid var(--line); }

/* ---------- University ---------- */
.uni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.uni { position: relative; border: 1px solid var(--line); border-radius: var(--r2); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.uni.partner { border-color: var(--brand); }
.uni-ad { position: absolute; top: 12px; right: 12px; font-size: 10.5px; font-weight: 700; color: var(--brand); border: 1px solid var(--brand-100); padding: 0 5px; }
.uni-head { display: flex; gap: 12px; align-items: center; }
.uni-badge { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-weight: 800; font-size: 13px; flex: none; }
.uni-logo { width: 48px; height: 48px; object-fit: contain; flex: none; }
.uni-head h2 { margin: 0; font-size: 16.5px; font-weight: 800; } .uni-meta { font-size: 12.5px; color: var(--muted); }
.uni-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.uni-stats div { background: var(--bg-soft); border-radius: var(--r); padding: 10px 12px; }
.uni-stats span { display: block; font-size: 12px; color: var(--muted); } .uni-stats b { font-size: 19px; font-weight: 800; }
.uni-src { margin: 0; font-size: 12px; color: var(--muted); } .uni-hl { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--brand); }
.uni-news { list-style: none; margin: 0; padding: 0; } .uni-news li { font-size: 13.5px; padding: 6px 0; border-top: 1px solid var(--line-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uni-links { display: flex; gap: 6px; margin-top: auto; }
.uni-links a { flex: 1; text-align: center; font-size: 12.5px; font-weight: 700; padding: 8px 6px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink-2); }
.uni-links a:hover { border-color: var(--brand); color: var(--brand); }
.uni-note { margin-top: 20px; padding: 14px 18px; border-radius: var(--r2); background: var(--bg-soft); font-size: 14px; color: var(--ink-2); }

/* ---------- Forms (advertise / report / write) ---------- */
.form-card { border: 1px solid var(--line); border-radius: var(--r2); padding: 26px; background: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 700; }
.field label .req { color: var(--red); margin-left: 2px; }
.field input, .field select, .field textarea { border: 1px solid #CBD2DC; border-radius: var(--r); padding: 10px 12px; font-size: 15px; background: #fff; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 0; }
.field textarea { min-height: 130px; resize: vertical; }
.field .help { font-size: 12.5px; color: var(--muted); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.check-card { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r); padding: 11px 13px; cursor: pointer; font-size: 14px; }
.check-card:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.check-card input { margin-top: 3px; accent-color: var(--brand); }
.check-card b { display: block; } .check-card span { color: var(--muted); font-size: 12.5px; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 34px 0; }
.product { border: 1px solid var(--line); border-radius: var(--r2); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.product .ic { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.product h3 { margin: 0; font-size: 16.5px; font-weight: 800; } .product p { margin: 0; font-size: 14px; color: var(--ink-2); }
.product .spec { font-size: 12.5px; color: var(--muted); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-2); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 36px; padding: 0; counter-reset: s; }
.steps li { list-style: none; counter-increment: s; border-top: 2px solid var(--brand); padding: 12px 2px; font-size: 14px; font-weight: 700; }
.steps li::before { content: 'STEP ' counter(s); display: block; font-size: 11px; color: var(--brand); letter-spacing: .08em; margin-bottom: 2px; }

/* ---------- Static pages & schools ---------- */
.doc { max-width: 800px; padding: 10px 0 56px; }
.doc h2 { font-size: 20px; font-weight: 800; margin: 34px 0 12px; }
.doc p, .doc li { color: var(--ink-2); line-height: 1.85; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; border-top: 2px solid var(--ink); }
.doc th, .doc td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc th { width: 180px; background: var(--bg-soft); }
.school-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; margin: 22px 0 56px; }
.school { border: 1px solid var(--line); border-radius: var(--r2); padding: 16px; }
.school .k { font-size: 12px; color: var(--brand); font-weight: 700; } .school h3 { margin: 4px 0 8px; font-size: 16.5px; } .school p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 24px; background: var(--bg-soft); border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }
.site-footer .links { border-bottom: 1px solid var(--line); }
.site-footer .links .wrap { display: flex; flex-wrap: wrap; gap: 4px 20px; padding-top: 14px; padding-bottom: 14px; }
.site-footer .links a { color: var(--ink); font-weight: 600; } .site-footer .links a.em { color: var(--brand); }
.site-footer .main .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 36px; padding-top: 28px; padding-bottom: 32px; }
.f-brand { display: flex; align-items: center; gap: 10px; }
.f-brand .mark { width: 40px; height: 40px; }
.f-brand .ko { font-size: 20px; font-weight: 800; color: var(--brand); letter-spacing: -0.05em; } .f-brand .ko em { font-style: normal; color: var(--ink); }
.f-brand .en { font-size: 10px; letter-spacing: .3em; color: var(--muted); font-weight: 600; margin-top: 4px; display: block; }
.site-footer .info p { margin: 0 0 3px; line-height: 1.75; }
.site-footer .info span + span::before { content: '|'; margin: 0 9px; color: #D1D5DB; }
.site-footer .info .copy { margin-top: 10px; color: var(--muted); }
.site-footer .company { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.site-footer .company img { max-height: 32px; max-width: 170px; filter: none; }
.site-footer .company img.no-filter { filter: invert(1) hue-rotate(180deg) brightness(.35); }
.site-footer .company .pub { font-size: 12px; color: var(--muted); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .hd-search { width: 260px; }
  .gnb-main li a { padding: 14px 10px; font-size: 15px; }
  .layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 32px; }
  .tr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .hd-top { display: none; }
  .hd-main { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 6px; padding-top: 10px; padding-bottom: 10px; }
  .hd-main .menu-btn, .hd .m-search { display: grid !important; }
  .brand { margin: 0; justify-self: center; gap: 8px; }
  .brand .mark { width: 36px; height: 36px; }
  .brand .word .ko { font-size: 22px; }
  .brand .word .en { display: none; }
  .hd-search, .hd-ongil { display: none; }
  .gnb-in { padding-left: 0; padding-right: 0; }
  .gnb-main { overflow-x: auto; scrollbar-width: none; padding: 0 12px; flex: 1; }
  .gnb-main::-webkit-scrollbar { display: none; }
  .gnb-main li a { white-space: nowrap; padding: 12px 10px; }
  .gnb-svc { display: none; }
  .hero, .layout, .sections, .latest-list, .data-cards, .opinion-row, .home-cm, .ongil-gate, .products, .form-grid, .tr-row, .cal-layout, .cmx-layout, .ongil-band { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 22px; padding-top: 18px; }
  .lead-story h2 { font-size: 24px; }
  .layout { padding-top: 24px; }
  .data-cards .data-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center; }
  .data-cards .data-card h3 { margin: 0; font-size: 14.5px; }
  .article-head h1 { font-size: 26px; } .article-head .subtitle { font-size: 16px; } .prose { font-size: 16.5px; }
  .cm-form .row { grid-template-columns: 1fr 1fr; } .cm-form .row input[name=nickname] { grid-column: 1 / -1; }
  .tr-row .l { border-right: 0; border-bottom: 1px solid var(--line); } .tr-row .cmp.after { border-left: 0; border-top: 1px dashed var(--line); }
  .cal-cell { min-height: 60px; padding: 3px; }
  .cal-ev { font-size: 0; height: 5px; padding: 0; border-left: 0; background: var(--c); border-radius: 2px; }
  .cmx-row { grid-template-columns: 58px minmax(0, 1fr) 54px; }
  .cmx-row .c-who, .cmx-row .c-view, .cmx-row.head span:nth-child(3), .cmx-row.head span:nth-child(5) { display: none; }
  .cmx-search { margin-left: 0; width: 100%; } .cmx-search input { flex: 1; }
  .cmx-top .cmx-write { display: none; }
  .cmx-tabs { overflow-x: auto; } .cmx-tabs a { white-space: nowrap; padding: 12px 14px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 18px; }
  .gate-card { flex-wrap: wrap; } .gate-card .go { width: 100%; }
  .site-footer .main .wrap { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .site-footer .company { align-items: flex-start; text-align: left; }
  .site-footer .info span { display: block; } .site-footer .info span + span::before { display: none; }
  .ongil-inline { grid-template-columns: auto minmax(0, 1fr); } .oi-cta { grid-column: 1 / -1; text-align: center; }
  .ad-hero h1, .page-head h1, .cal-hero h1, .tracker-hero h1, .cm-hero h1, .cmx-top h1 { font-size: 24px; }
}
@media (max-width: 560px) {
  .top-item { grid-template-columns: minmax(0, 1fr) 100px; gap: 12px; } .top-item h3 { font-size: 15.5px; } .top-item p { display: none; }
  .list-article { grid-template-columns: minmax(0, 1fr) 104px; gap: 14px; } .list-article .thumb { order: 2; } .list-article h2 { font-size: 16.5px; } .list-article p { display: none; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .tr-cards { grid-template-columns: minmax(0, 1fr); }
  .ad-house { flex-direction: column; align-items: flex-start; }
  .doc th { width: 110px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .hd, .gnb, .ticker, .site-footer, aside, .comments, .related, .tools, .ad, .ad-house, .like-row { display: none !important; } .layout { display: block; } }
.cmx-link div { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 900px) { .gnb .gnb-svc { display: none; } .gnb .gnb-main { overflow-x: auto; } }
