/* =========================================================
   국악신문 리뉴얼 - 메인 스타일
   컬러 컨셉: 한지(바탕) · 먹(텍스트) · 단청 주홍(포인트) · 청록(보조)
   ========================================================= */
:root {
  --paper: #faf7f0;
  --paper-2: #f2ece0;
  --ink: #1d1a17;
  --ink-2: #4a443d;
  --ink-3: #8a8178;
  --line: #e2dacb;
  --red: #b5322a;
  --red-dark: #8f241e;
  --jade: #1f5c55;
  --jade-light: #2f7d73;
  --gold: #b8913f;
  --white: #fff;
  --radius: 6px;
  --shadow: 0 6px 24px rgba(29, 26, 23, .08);
  --serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --sans: 'Noto Sans KR', -apple-system, 'Malgun Gothic', sans-serif;
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 10px; }

/* 이미지 플레이스홀더 (실제 기사 이미지로 교체: background-image 지정) */
.ph { display: block; background-color: var(--paper-2); background-size: cover; background-position: center; position: relative; overflow: hidden; }
.ph::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), transparent 60%);
}
.ph-1  { background-image: linear-gradient(135deg, #2b211b, #7a3b2a 60%, #c9935a); }
.ph-2  { background-image: linear-gradient(135deg, #1f5c55, #3e8f7f 55%, #d8c99b); }
.ph-3  { background-image: linear-gradient(135deg, #3b2d4f, #8c4a5e 60%, #e1a77a); }
.ph-4  { background-image: linear-gradient(135deg, #8f241e, #c4553c 55%, #f0c27b); }
.ph-5  { background-image: linear-gradient(135deg, #263238, #4f6d7a 55%, #c0d6df); }
.ph-6  { background-image: linear-gradient(135deg, #4a3b22, #8c7342 55%, #e6d3a3); }
.ph-7  { background-image: linear-gradient(135deg, #102a43, #2f5b8c 55%, #9fb3c8); }
.ph-8  { background-image: linear-gradient(135deg, #3d2b1f, #a0522d 55%, #f4a460); }
.ph-9  { background-image: linear-gradient(135deg, #1b4332, #40916c 55%, #b7e4c7); }
.ph-10 { background-image: linear-gradient(135deg, #5a189a, #9d4edd 55%, #f2d0a4); }

/* ---------- 유틸리티 바 ---------- */
.util-bar { background: var(--ink); color: #cfc7bb; font-size: 13px; }
.util-inner { display: flex; align-items: center; gap: 20px; height: 38px; }
.today { margin-right: auto; letter-spacing: .02em; }
.util-links { display: flex; gap: 18px; }
.util-links a:hover { color: #fff; }
.social { display: flex; gap: 6px; }
.social a {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.1); font-size: 11px; font-weight: 700; transition: background .2s;
}
.social a:hover { background: var(--red); color: #fff; }

/* ---------- 헤더 ---------- */
.header { background: var(--paper); position: sticky; top: 0; z-index: 100; transition: box-shadow .3s; }
.header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.header-inner { display: flex; align-items: center; justify-content: center; position: relative; height: 104px; transition: height .3s; }
.header.scrolled .header-inner { height: 64px; }
.logo { display: flex; align-items: center; gap: 14px; }
.logo-mark {
  display: grid; place-items: center; width: 56px; height: 56px;
  background: var(--red); color: #fff; font-family: var(--serif); font-weight: 900; font-size: 18px;
  line-height: 1; border-radius: 4px; letter-spacing: -.02em; writing-mode: vertical-rl;
  box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 4px rgba(255,255,255,.5);
  transition: transform .3s;
}
.header.scrolled .logo-mark { transform: scale(.75); }
.logo-text strong { display: block; font-family: var(--serif); font-size: 36px; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; }
.logo-text em { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); letter-spacing: .3em; margin-top: 2px; }
.header.scrolled .logo-text strong { font-size: 26px; }
.header.scrolled .logo-text em { display: none; }

.header-actions { position: absolute; right: 20px; display: flex; align-items: center; gap: 10px; }
.btn-pdf {
  font-size: 13px; padding: 7px 14px; border: 1px solid var(--ink); border-radius: 20px; transition: .2s;
}
.btn-pdf:hover { background: var(--ink); color: #fff; }
.btn-search { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.btn-search:hover { background: var(--paper-2); }

.menu-toggle { display: none; position: absolute; left: 20px; width: 40px; height: 40px; padding: 10px 8px; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* GNB */
.gnb { border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); background: var(--paper); }
.gnb-list { display: flex; justify-content: space-between; }
.gnb-item { position: relative; }
.gnb-link {
  display: block; padding: 14px 10px; font-weight: 700; font-size: 16px; position: relative;
}
.gnb-link::after {
  content: ''; position: absolute; left: 50%; bottom: 6px; width: 0; height: 2px; background: var(--red);
  transition: width .25s, left .25s;
}
.gnb-item:hover .gnb-link, .gnb-item.open .gnb-link { color: var(--red); }
.gnb-item:hover .gnb-link::after, .gnb-item.open .gnb-link::after { width: 60%; left: 20%; }
.gnb-sub {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  min-width: 170px; padding: 12px 0; background: #fff; border-top: 2px solid var(--red);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .2s; z-index: 10;
}
.gnb-item.wide .gnb-sub { display: grid; grid-template-columns: repeat(2, 1fr); min-width: 460px; }
.gnb-item:last-child .gnb-sub { left: auto; right: 0; transform: translate(0, 8px); }
.gnb-item:hover .gnb-sub, .gnb-item.open .gnb-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnb-item:last-child:hover .gnb-sub, .gnb-item:last-child.open .gnb-sub { transform: translate(0, 0); }
.gnb-sub a { display: block; padding: 7px 20px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.gnb-sub a:hover { color: var(--red); background: var(--paper); }

/* 드로어 (모바일) */
.drawer { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 300; opacity: 0; visibility: hidden; transition: .3s; }
.drawer.open { opacity: 1; visibility: visible; }
.drawer-panel {
  position: absolute; left: 0; top: 0; bottom: 0; width: min(86vw, 360px); background: var(--paper);
  overflow-y: auto; transform: translateX(-100%); transition: transform .3s;
}
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; background: var(--ink); color: #fff; }
.drawer-close { color: #fff; font-size: 20px; }
.drawer-util { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.drawer-util a { padding: 12px 0; text-align: center; font-size: 13px; border-right: 1px solid var(--line); }
.drawer-util a:last-child { border-right: 0; }
.drawer-btn { width: 100%; display: flex; justify-content: space-between; padding: 15px 20px; font-weight: 700; border-bottom: 1px solid var(--line); text-align: left; }
.drawer-btn i { font-style: normal; color: var(--red); transition: transform .2s; }
.drawer-list li.open .drawer-btn i { transform: rotate(45deg); }
.drawer-sub { display: none; background: var(--paper-2); padding: 8px 0; }
.drawer-list li.open .drawer-sub { display: block; }
.drawer-sub a { display: block; padding: 8px 32px; font-size: 14px; color: var(--ink-2); }

/* 검색 레이어 */
.search-layer {
  position: fixed; left: 0; right: 0; top: 0; z-index: 200; background: var(--paper);
  padding: 40px 20px 30px; box-shadow: var(--shadow); transform: translateY(-110%); transition: transform .35s;
}
.search-layer.open { transform: none; }
.search-form { max-width: 760px; margin: 0 auto; display: flex; gap: 10px; border-bottom: 2px solid var(--ink); }
.search-form input { flex: 1; border: 0; background: none; font: inherit; font-size: 22px; padding: 10px 4px; outline: none; }
.search-form button[type="submit"] { padding: 0 20px; font-weight: 700; color: var(--red); }
.search-close { font-size: 20px; padding: 0 8px; }
.search-tags { max-width: 760px; margin: 16px auto 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.search-tags span { color: var(--ink-3); margin-right: 6px; }
.search-tags a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.search-tags a:hover { border-color: var(--red); color: var(--red); }

/* 티커 */
.ticker { background: #fff; border-bottom: 1px solid var(--line); }
.ticker-inner { display: flex; align-items: center; gap: 16px; height: 44px; }
.ticker-label { flex: none; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 3px; }
.ticker-view { height: 24px; overflow: hidden; flex: 1; }
.ticker-list { transition: transform .5s ease; }
.ticker-list li { height: 24px; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.ticker-list a:hover { text-decoration: underline; }

/* ---------- 공통 섹션 ---------- */
main { display: block; }
.section { padding: 56px 0; }
.sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); flex-wrap: wrap; }
.sec-title { font-family: var(--serif); font-size: 24px; font-weight: 900; display: flex; align-items: center; gap: 10px; letter-spacing: -.02em; }
.sec-title span { font-size: 13px; color: var(--red); border: 1px solid var(--red); padding: 1px 6px; border-radius: 2px; font-weight: 700; }
.sec-title.sm { font-size: 20px; }
.more { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.more:hover { color: var(--red); }
.sec-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.sec-tabs button { padding: 5px 14px; font-size: 14px; border-radius: 20px; color: var(--ink-3); transition: .2s; }
.sec-tabs button:hover { color: var(--ink); }
.sec-tabs button.active { background: var(--ink); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .35s; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.badge { position: absolute; left: 16px; top: 16px; z-index: 1; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; }
.meta { font-size: 13px; color: var(--ink-3); }

/* ---------- 헤드라인 ---------- */
.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; padding-top: 32px; padding-bottom: 40px; }
.hero-main { display: flex; flex-direction: column; }
.hero-thumb { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.hero-thumb::before {
  content: '笛'; position: absolute; right: 24px; bottom: -20px; font-family: var(--serif);
  font-size: 220px; font-weight: 900; color: rgba(255,255,255,.12); line-height: 1;
}
.hero-body { padding-top: 20px; }
.hero-body h2 { font-family: var(--serif); font-size: 32px; font-weight: 900; line-height: 1.35; letter-spacing: -.03em; margin-bottom: 12px; }
.hero-body h2 a:hover { color: var(--red); }
.hero-body p { color: var(--ink-2); font-size: 16px; margin-bottom: 10px; }

.hero-side { border-left: 1px solid var(--line); padding-left: 32px; }
.hero-list li + li { border-top: 1px solid var(--line); }
.hero-list a { display: flex; gap: 14px; padding: 14px 0; align-items: center; }
.hero-list li:first-child a { padding-top: 0; }
.hero-list .thumb { flex: none; width: 112px; aspect-ratio: 4 / 3; border-radius: 4px; }
.hero-list em { display: block; font-style: normal; font-size: 12px; color: var(--red); font-weight: 700; margin-bottom: 2px; }
.hero-list strong { font-size: 16px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-list a:hover strong { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 경연대회 ---------- */
.section-contest { background: var(--paper-2); position: relative; }
.section-contest::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 6px;
  background: repeating-linear-gradient(90deg, var(--red) 0 40px, var(--jade) 40px 80px, var(--gold) 80px 120px, #2b3a67 120px 160px, var(--paper) 160px 200px);
}
.contest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.contest-card a {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: #fff;
  border-radius: var(--radius); border: 1px solid var(--line); transition: .2s; height: 100%;
}
.contest-card a:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.c-date { flex: none; text-align: center; width: 64px; padding-right: 16px; border-right: 1px solid var(--line); }
.c-date b { display: block; font-family: var(--serif); font-size: 20px; }
.c-date span { font-size: 12px; color: var(--ink-3); }
.c-body { flex: 1; min-width: 0; }
.c-body strong { display: block; font-size: 15px; line-height: 1.4; }
.c-body span { font-size: 13px; color: var(--ink-3); }
.c-dday { flex: none; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: var(--paper-2); color: var(--ink-2); }
.contest-card.soon .c-dday { background: var(--jade); color: #fff; }
.contest-card.today .c-dday { background: var(--red); color: #fff; }
.contest-card.end { opacity: .55; }

.award-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.award-list a { display: flex; align-items: center; gap: 14px; background: #fff; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); }
.award-list a:hover { border-color: var(--gold); }
.prize { flex: none; background: var(--gold); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 3px; }
.award-list strong { flex: 1; font-weight: 500; }
.who { font-family: var(--serif); font-weight: 700; color: var(--red); }

/* ---------- 본문 레이아웃 ---------- */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; padding-top: 56px; padding-bottom: 40px; }
.block { margin-bottom: 52px; }
.block.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
.card .thumb { aspect-ratio: 16 / 10; border-radius: var(--radius); margin-bottom: 12px; transition: transform .4s; }
.card a { display: block; }
.card a:hover .thumb { transform: scale(1.015); }
.card em { font-style: normal; font-size: 12px; color: var(--jade); font-weight: 700; }
.card strong { display: block; font-size: 18px; line-height: 1.4; margin: 4px 0 6px; font-family: var(--serif); font-weight: 700; }
.card a:hover strong { color: var(--red); }
.card p { font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.serial-list li + li { border-top: 1px dashed var(--line); }
.serial-list a { display: flex; align-items: center; gap: 18px; padding: 16px 4px; }
.serial-no { font-family: var(--serif); font-size: 24px; font-weight: 900; color: var(--red); opacity: .8; }
.serial-list strong { flex: 1; font-size: 17px; font-weight: 500; }
.serial-list a:hover strong { color: var(--red); }
.serial-author { font-size: 13px; color: var(--ink-3); padding: 3px 10px; background: var(--paper-2); border-radius: 20px; }

.region-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.region-chips button { padding: 6px 14px; font-size: 13px; border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: .2s; }
.region-chips button:hover { border-color: var(--jade); color: var(--jade); }
.region-chips button.active { background: var(--jade); border-color: var(--jade); color: #fff; }

.text-list li { position: relative; padding: 9px 0 9px 14px; border-bottom: 1px solid var(--line); }
.text-list li::before { content: ''; position: absolute; left: 0; top: 19px; width: 4px; height: 4px; background: var(--red); }
.text-list a { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.text-list a:hover { color: var(--red); }
.text-list.two-col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }

/* 사이드바 */
.layout-side { display: flex; flex-direction: column; gap: 24px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side-box h3 { font-family: var(--serif); font-size: 18px; font-weight: 900; margin-bottom: 14px; }
.rank-list { counter-reset: rank; }
.rank-list li { counter-increment: rank; display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rank-list li:last-child { border-bottom: 0; }
.rank-list li::before { content: counter(rank); font-family: var(--serif); font-weight: 900; font-size: 18px; color: var(--ink-3); width: 18px; flex: none; line-height: 1.4; }
.rank-list li:nth-child(-n+3)::before { color: var(--red); }
.rank-list a { font-size: 14px; line-height: 1.5; }
.rank-list a:hover { text-decoration: underline; }

.editorial { background: var(--ink); color: #e8e1d5; border: 0; position: relative; overflow: hidden; }
.editorial::after { content: '論'; position: absolute; right: -10px; bottom: -40px; font-family: var(--serif); font-size: 150px; font-weight: 900; color: rgba(255,255,255,.06); }
.editorial .tag { display: inline-block; font-size: 12px; color: var(--ink); background: var(--gold); padding: 2px 8px; font-weight: 700; margin-bottom: 10px; }
.editorial h3 { color: #fff; font-size: 22px; }
.editorial p { font-size: 14px; line-height: 1.7; color: #bdb4a6; position: relative; z-index: 1; }

.pdf-box { display: flex; gap: 16px; align-items: center; }
.pdf-cover {
  flex: none; width: 92px; aspect-ratio: 3 / 4; background: var(--paper); border: 1px solid var(--line);
  box-shadow: 4px 4px 0 var(--paper-2); display: flex; flex-direction: column; align-items: center; padding-top: 12px;
}
.pdf-cover span { font-family: var(--serif); font-weight: 900; font-size: 15px; border-bottom: 2px solid var(--red); }
.pdf-cover small { font-size: 9px; color: var(--ink-3); margin-top: 4px; }
.pdf-box h3 { margin-bottom: 4px; }
.pdf-box p { font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.btn-line { display: inline-block; font-size: 13px; padding: 5px 14px; border: 1px solid var(--red); color: var(--red); border-radius: 20px; }
.btn-line:hover { background: var(--red); color: #fff; }

.side-links { display: flex; flex-wrap: wrap; gap: 6px; }
.side-links a { display: block; font-size: 13px; padding: 5px 12px; background: var(--paper); border-radius: 20px; }
.side-links a:hover { background: var(--jade); color: #fff; }

/* ---------- 국악人 ---------- */
.section-people { background: var(--ink); color: #fff; }
.sec-head.light { border-color: rgba(255,255,255,.3); }
.sec-head.light .sec-title span { color: var(--gold); border-color: var(--gold); }
.slider-ctrl { margin-left: auto; display: flex; gap: 6px; }
.slider-ctrl button { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #fff; font-size: 20px; line-height: 1; transition: .2s; }
.slider-ctrl button:hover { background: #fff; color: var(--ink); }
.people-track-wrap { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.people-track-wrap::-webkit-scrollbar { display: none; }
.people-track { display: flex; gap: 20px; }
.people-track li { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; }
.people-track .thumb { aspect-ratio: 3 / 4; border-radius: var(--radius); margin-bottom: 12px; filter: saturate(.85); transition: filter .3s; }
.people-track a:hover .thumb { filter: saturate(1.15); }
.people-track em { font-style: normal; font-size: 12px; color: var(--gold); }
.people-track strong { display: block; font-family: var(--serif); font-size: 18px; margin-top: 2px; }

/* ---------- 韓소식 ---------- */
.han-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.han-grid a {
  display: flex; flex-direction: column; align-items: center; padding: 28px 10px 22px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); transition: .25s; text-align: center;
}
.han-grid b {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  font-family: var(--serif); font-size: 28px; background: var(--paper-2); color: var(--ink); margin-bottom: 12px; transition: .25s;
}
.han-grid strong { font-size: 16px; }
.han-grid span { font-size: 12px; color: var(--ink-3); }
.han-grid a:hover { border-color: var(--red); transform: translateY(-4px); box-shadow: var(--shadow); }
.han-grid a:hover b { background: var(--red); color: #fff; }

/* ---------- 뉴스레터 ---------- */
.newsletter { background: var(--jade); color: #fff; padding: 48px 0; position: relative; overflow: hidden; }
.newsletter::before {
  content: ''; position: absolute; inset: 0; opacity: .08;
  background-image: radial-gradient(circle at 0 0, transparent 18px, #fff 19px, #fff 20px, transparent 21px);
  background-size: 40px 40px;
}
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; }
.newsletter h2 { font-family: var(--serif); font-size: 26px; font-weight: 900; margin-bottom: 6px; }
.newsletter p { color: rgba(255,255,255,.8); }
.nl-form { display: flex; flex-wrap: wrap; gap: 8px; width: min(100%, 460px); position: relative; }
.nl-form input { flex: 1; min-width: 0; padding: 14px 18px; border: 0; border-radius: 30px; font: inherit; outline: none; }
.nl-form button { padding: 0 26px; background: var(--ink); color: #fff; border-radius: 30px; font-weight: 700; transition: background .2s; }
.nl-form button:hover { background: var(--red); }
.nl-msg { width: 100%; font-size: 13px; min-height: 20px; padding-left: 18px; }
.nl-msg.ok { color: #d4f5e9; }
.nl-msg.err { color: #ffd2cc; }

/* ---------- 유관기관 ---------- */
.partners { padding: 28px 20px; }
.partners ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; }
.partners a { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.partners a:hover { color: var(--ink); }

/* ---------- 푸터 ---------- */
.footer { background: #15130f; color: #9a9184; font-size: 13px; padding-bottom: 40px; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 28px; }
.footer-menu a { color: #cfc7bb; }
.footer-menu a:hover { color: #fff; }
.footer-menu b { color: #fff; }
.footer-info { display: flex; gap: 40px; align-items: flex-start; }
.footer-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.footer-logo .logo-mark { width: 40px; height: 40px; font-size: 13px; }
.footer-logo strong { font-family: var(--serif); font-size: 22px; color: #fff; }
.footer address p { line-height: 1.9; }
.copy { margin-top: 8px; color: #6e665b; }

/* 맨위로 */
.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 20px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; z-index: 90;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red-dark); }

/* 등장 애니메이션 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 1100px) {
  .gnb-link { font-size: 15px; padding: 14px 6px; }
  .layout { grid-template-columns: 1fr 280px; gap: 32px; }
  .contest-grid { grid-template-columns: repeat(2, 1fr); }
  .han-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .util-links { display: none; }
  .gnb { display: none; }
  .menu-toggle { display: flex; }
  .header-inner { height: 72px; border-bottom: 1px solid var(--line); }
  .header.scrolled .header-inner { height: 60px; }
  .logo-mark { width: 42px; height: 42px; font-size: 14px; }
  .logo-text strong { font-size: 26px; }
  .logo-text em { display: none; }
  .btn-pdf { display: none; }

  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-side { border-left: 0; padding-left: 0; }
  .hero-body h2 { font-size: 26px; }
  .layout { grid-template-columns: 1fr; }
  .layout-side { display: grid; grid-template-columns: 1fr 1fr; }
  .people-track li { flex-basis: calc((100% - 40px) / 3); }
  .newsletter-inner { flex-direction: column; align-items: flex-start; }
  .footer-info { flex-direction: column; gap: 20px; }
}

@media (max-width: 600px) {
  body { font-size: 14px; }
  .section { padding: 40px 0; }
  .sec-title { font-size: 21px; }
  .sec-head .sec-tabs { order: 3; width: 100%; }
  .hero { padding-top: 20px; }
  .hero-body h2 { font-size: 22px; }
  .hero-body p { font-size: 15px; }
  .hero-list .thumb { width: 92px; }
  .hero-list strong { font-size: 15px; }
  .contest-grid, .award-list, .card-grid, .block.split, .text-list.two-col, .layout-side { grid-template-columns: 1fr; }
  .award-list a { flex-wrap: wrap; }
  .people-track li { flex-basis: 70%; }
  .han-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .han-grid a { padding: 18px 6px 14px; }
  .han-grid b { width: 48px; height: 48px; font-size: 22px; }
  .serial-list strong { font-size: 15px; }
  .nl-form button { padding: 0 18px; }
  .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}
