/* 서울교육행정공무원노동조합 — 로고에서 뽑은 남색을 주색으로, 산호·주황은 아주 조금만 */
:root {
  --navy: #0d0b99;
  --navy-deep: #0a0870;
  --navy-ink: #12114a;
  --indigo: #4338c4;
  --coral: #e57b7b;
  --orange: #e8741c;
  --ink: #16161d;
  --text: #33333d;
  --muted: #6e6e7a;
  --faint: #9a9aa6;
  --line: #e8e8ee;
  --line-soft: #f0f0f4;
  --paper: #ffffff;
  --mist: #f6f6f9;
  --mist-2: #eeeef4;
  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 12px;
  --wrap: 1240px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 2px rgba(18, 17, 74, .06);
  --header-h: 84px;
}

/* 기본 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px; line-height: 1.65; letter-spacing: -.01em; word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.035em; line-height: 1.25; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-s); }
.skip:focus { top: 12px; }

.eyebrow { font-size: 14px; font-weight: 600; color: var(--muted); }
.eyebrow-light { color: rgba(255, 255, 255, .7); }
.arrow { display: inline-block; width: 14px; height: 10px; position: relative; vertical-align: 1px; transition: transform .35s var(--ease); }
.arrow::before { content: ""; position: absolute; left: 0; right: 1px; top: 4.5px; height: 1.5px; background: currentColor; }
.arrow::after { content: ""; position: absolute; right: 1px; top: 1px; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }

/* 단추 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--navy); color: #fff; border: 0; border-radius: 8px;
  padding: 12px 22px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  transition: background .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: var(--navy-deep); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; padding: 15px; font-size: 16px; }
.btn-ghost { background: var(--mist); color: var(--ink); }
.btn-ghost:hover { background: var(--mist-2); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #f1f0ff; }
.btn-danger:hover { background: #fdeeee; color: #b42318; }

/* 헤더 */
.header { position: sticky; top: 0; z-index: 80; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); transition: box-shadow .3s var(--ease); }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header-in { display: flex; align-items: center; gap: 40px; height: var(--header-h); }
.logo img { height: 46px; width: auto; }
.gnb { flex: 1; align-self: stretch; display: flex; justify-content: center; }
.gnb-list { display: flex; gap: 6px; }
.gnb-item > a { display: flex; align-items: center; height: 100%; padding: 0 22px; font-size: 17px; font-weight: 600; color: var(--ink); position: relative; transition: color .25s; }
.gnb-item > a::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 22px; height: 2px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.gnb-item > a:hover, .gnb-item.is-current > a { color: var(--navy); }
.gnb-item > a:hover::after, .gnb-item.is-current > a::after { transform: scaleX(1); }

.mega {
  position: absolute; left: 0; right: 0; top: var(--header-h); background: #fff;
  box-shadow: 0 1px 0 var(--line), 0 -1px 0 var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.gnb:hover .mega, .gnb:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-in { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding-top: 36px; padding-bottom: 40px; }
.mega-title { margin-top: 10px; font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.45; letter-spacing: -.03em; }
.mega-head { font-size: 13px; font-weight: 700; color: var(--faint); margin-bottom: 12px; }
.mega-col a { display: block; padding: 6px 0; color: var(--text); font-size: 15px; transition: color .2s, transform .3s var(--ease); }
.mega-col a:hover { color: var(--navy); transform: translateX(3px); }

.util { display: flex; align-items: center; gap: 18px; }
.util form { margin: 0; }
.util-link { background: none; border: 0; padding: 0; font-size: 14px; color: var(--muted); }
.util-link:hover { color: var(--navy); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 8px; background: var(--mist); position: relative; }
.menu-lines, .menu-lines::before, .menu-lines::after { position: absolute; left: 50%; width: 18px; height: 1.8px; margin-left: -9px; background: var(--ink); border-radius: 2px; }
.menu-lines { top: 50%; margin-top: -1px; }
.menu-lines::before, .menu-lines::after { content: ""; left: 0; margin-left: 0; }
.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }

/* 모바일 서랍 메뉴 */
.drawer { position: fixed; inset: 0; z-index: 200; background: rgba(18, 17, 74, .35); }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: #fff; padding: 20px 24px 32px; overflow-y: auto; animation: slideIn .4s var(--ease); }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer-close { background: var(--mist); border: 0; border-radius: 8px; padding: 8px 16px; font-size: 14px; }
.drawer-group { border-bottom: 1px solid var(--line); }
.drawer-group summary { list-style: none; padding: 18px 0; font-size: 18px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; cursor: pointer; }
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-group summary::after { content: "+"; font-weight: 400; color: var(--faint); }
.drawer-group[open] summary::after { content: "\2212"; }
.drawer-group ul { padding: 0 0 14px; }
.drawer-group a { display: block; padding: 8px 0; color: var(--text); }
.drawer-foot { display: flex; gap: 8px; margin-top: 24px; }
.drawer-foot form { margin: 0; }

/* 알림 */
.toast-wrap { position: fixed; top: calc(var(--header-h) + 14px); left: 50%; transform: translateX(-50%); z-index: 150; display: grid; gap: 8px; width: min(560px, calc(100% - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 14px; box-shadow: var(--shadow); font-size: 15px; animation: toastIn .5s var(--ease), toastOut .5s var(--ease) 6s forwards; }
.toast-error { background: #b42318; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); visibility: hidden; } }

/* 나타나기 효과 */
.reveal { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
/* 글자가 투명한 채로 멈추는 일이 없도록 움직임만 준다(백그라운드 탭·캡처에서도 내용이 보이게) */
@keyframes rise { from { transform: translateY(14px); } }

/* 메인: 첫 화면 */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero-title { font-size: clamp(36px, 4.6vw, 60px); font-weight: 800; line-height: 1.15; letter-spacing: -.045em; color: var(--navy-ink); }
.hero-lead { margin-top: 24px; max-width: 34em; font-size: 18px; color: var(--muted); line-height: 1.75; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

.hero-visual { position: relative; }
.slider { position: relative; border-radius: var(--radius-l); overflow: hidden; background: var(--mist); aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
.slide.on { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 6s linear; }
.slide.on img { transform: scale(1); }
.slider-ctrl { position: absolute; z-index: 2; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 4px; background: rgba(22, 22, 29, .55); backdrop-filter: blur(10px); border-radius: 8px; padding: 4px; color: #fff; }
.slider-count { font-size: 13px; padding: 0 8px; font-variant-numeric: tabular-nums; }
.slider-prev, .slider-next { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; position: relative; }
.slider-prev:hover, .slider-next:hover { background: rgba(255, 255, 255, .15); }
.slider-prev::after, .slider-next::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-top: 1.5px solid #fff; border-right: 1.5px solid #fff; }
.slider-prev::after { transform: translate(-30%, -50%) rotate(-135deg); }
.slider-next::after { transform: translate(-70%, -50%) rotate(45deg); }

.hero-panel { position: relative; border-radius: var(--radius-l); aspect-ratio: 5 / 4; background: var(--navy); display: grid; place-items: center; }
.hero-panel-mark { width: 160px; height: 160px; }
.hero-photo-frame { position: relative; border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 5 / 4; background: var(--mist); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: slowzoom 18s ease-out both; }
@keyframes slowzoom { from { transform: scale(1.06); } }

/* 바로가기 */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; }
.quick-item { display: grid; gap: 2px; padding: 26px 24px; position: relative; transition: background .3s var(--ease); }
.quick-item + .quick-item::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--line); }
.quick-item:hover { background: var(--mist); }
.quick-item strong { font-size: 18px; color: var(--ink); letter-spacing: -.03em; }
.quick-item span { font-size: 14px; color: var(--muted); }

/* 섹션 공통 */
.section { padding: 96px 32px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; }
.link-more { font-size: 15px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.link-more:hover { color: var(--navy); }
.link-more:hover .arrow { transform: translateX(4px); }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; background: var(--mist); padding: 4px; border-radius: 8px; }
.tab { border: 0; background: transparent; padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background .25s var(--ease), color .25s; }
.tab:hover { color: var(--ink); }
.tab.on { background: #fff; color: var(--navy); box-shadow: var(--shadow); }

.news-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; }
.notice-list { border-top: 1px solid var(--ink); }
.notice-list li { border-bottom: 1px solid var(--line); }
.notice-list a { display: grid; gap: 2px; padding: 15px 2px; }
.notice-list span { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-list a:hover span { color: var(--navy); }
.notice-list time { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.lines li { border-bottom: 1px solid var(--line); }
.lines li:first-child { border-top: 1px solid var(--ink); }
.lines a { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: center; padding: 18px 4px; transition: padding .35s var(--ease); }
.lines a:hover { padding-left: 12px; }
.lines-board { font-size: 13px; font-weight: 600; color: var(--indigo); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lines-title { font-size: 17px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lines a:hover .lines-title { color: var(--navy); }
.lines time { font-size: 14px; color: var(--faint); font-variant-numeric: tabular-nums; }
.lines-more a { display: flex; justify-content: flex-end; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; font-weight: 600; padding: 16px 4px; }
.lines-more a:hover { padding-left: 4px; color: var(--navy); }
.empty-line { padding: 36px 4px; color: var(--faint); }

  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; min-height: 340px;
  padding: 34px; border-radius: var(--radius-l); overflow: hidden; color: #fff;
  background: linear-gradient(160deg, #1a1868 0%, #16161d 100%);
  transition: transform .5s var(--ease);
}

/* 사진 모자이크 */
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 220px); gap: 16px; }
.mosaic-item { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.mosaic-item:first-child { grid-row: span 2; }
.mosaic-img, .mosaic-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mosaic-img img { transition: transform 1.2s var(--ease); }
.mosaic-item:hover img { transform: scale(1.05); }
.mosaic-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(12, 12, 20, .72)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mosaic-item:first-child .mosaic-cap { font-size: 20px; padding: 60px 26px 24px; }

/* 지부 소식 */
.branch-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.branch-list li { border-bottom: 1px solid var(--line); }
.branch-list a { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 18px 2px; }
.branch-name { font-size: 13px; font-weight: 700; color: var(--navy); background: #efeefe; border-radius: 4px; padding: 4px 10px; justify-self: start; }
.branch-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.branch-list a:hover .branch-title { color: var(--navy); }
.branch-list time { color: var(--faint); font-size: 14px; font-variant-numeric: tabular-nums; }

/* 가입 띠 */
.join-band { margin-top: 112px; background: var(--navy); color: #fff; }
.join-in { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: 72px; padding-bottom: 72px; flex-wrap: wrap; }
.join-title { color: #fff; font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; }
.join-desc { margin-top: 10px; color: rgba(255, 255, 255, .75); max-width: 40em; }

/* 관련 기관 */
.related { background: var(--mist); padding: 26px 0; }
.related-in { display: flex; align-items: center; gap: 32px; }
.related-label { font-size: 13px; font-weight: 700; color: var(--faint); flex-shrink: 0; }
.related-list { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.related-list a { color: var(--muted); font-size: 14px; }
.related-list a:hover { color: var(--navy); }
.related-list img { height: 36px; width: auto; filter: grayscale(1); opacity: .75; transition: .3s; }
.related-list a:hover img { filter: none; opacity: 1; }

/* 하위 페이지 머리 */
.subhead { background: #fff; position: relative; }
.subhead > .wrap { position: relative; padding-top: 44px; padding-bottom: 28px; }
.subhead-title { margin-top: 6px; font-size: 28px; font-weight: 700; color: var(--ink); }
.subhead-lead { margin-top: 12px; color: var(--muted); }
.subnav { position: relative; background: #fff; box-shadow: 0 1px 0 var(--line), 0 -1px 0 var(--line); }
.subnav-list { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
.subnav-list li:last-child { padding-right: 24px; }
.subnav-list::-webkit-scrollbar { display: none; }
.subnav-list a { display: block; padding: 18px 16px; white-space: nowrap; color: var(--muted); font-weight: 600; font-size: 15px; position: relative; }
.subnav-list a:hover { color: var(--ink); }
.subnav-list a.on { color: var(--navy); }
.subnav-list a.on::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; background: var(--navy); }

/* 게시판 목록 */
.board { padding-top: 40px; padding-bottom: 96px; }
.board-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.board-count { color: var(--muted); font-size: 15px; }
.board-count strong { color: var(--navy); }
.search { display: flex; align-items: center; background: var(--mist); border-radius: 8px; padding: 4px 4px 4px 18px; min-width: 300px; transition: background .25s, box-shadow .25s; }
.search:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--indigo); }
.search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 15px; padding: 8px 0; outline: none; min-width: 0; }
.search button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--navy); position: relative; flex-shrink: 0; }
.search-ico { position: absolute; left: 11px; top: 10px; width: 13px; height: 13px; border: 1.8px solid #fff; border-radius: 50%; }
.search-ico::after { content: ""; position: absolute; width: 6px; height: 1.8px; background: #fff; right: -6px; bottom: -3px; transform: rotate(45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.chip { padding: 7px 16px; border-radius: 8px; background: var(--mist); color: var(--muted); font-size: 14px; font-weight: 600; transition: .25s var(--ease); }
.chip:hover { color: var(--ink); background: var(--mist-2); }
.chip.on { background: var(--navy); color: #fff; }

.rows { border-top: 1px solid var(--ink); }
.row { display: grid; grid-template-columns: 76px 1fr; align-items: center; border-bottom: 1px solid var(--line); animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
.row.is-notice { background: #fafaff; }
.row-no { text-align: center; color: var(--faint); font-size: 14px; font-variant-numeric: tabular-nums; }
.row-main { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 20px 16px 20px 4px; }
.row-title { font-size: 17px; color: var(--ink); line-height: 1.5; }
.row-main:hover .row-title { color: var(--navy); }
.row-meta { display: flex; gap: 16px; color: var(--faint); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-file { font-size: 12px; color: var(--faint); margin-left: 4px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 4px; background: #efeefe; color: var(--navy); margin-right: 6px; vertical-align: 2px; }
.pill-accent { background: var(--navy); color: #fff; margin: 0; }
.pill-muted { background: #fdeeee; color: #b4483f; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); grid-column: 1 / -1; }
.empty-title { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }

.g-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 24px; padding-top: 8px; }
.g-card { display: block; animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
.g-thumb { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.g-card:hover .g-thumb img { transform: scale(1.05); }
.g-title { display: block; margin-top: 14px; font-weight: 700; font-size: 17px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-card:hover .g-title { color: var(--navy); }
.g-date { font-size: 14px; color: var(--faint); }

.board-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 36px; }
.pager { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pager a, .pager strong { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 15px; font-variant-numeric: tabular-nums; padding: 0 12px; }
.pager a { color: var(--muted); }
.pager a:hover { background: var(--mist); color: var(--ink); }
.pager strong { background: var(--ink); color: #fff; }

/* 글보기 */
.article { max-width: 880px; padding-top: 56px; padding-bottom: 96px; }
.article-head { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.article-title { margin-top: 12px; font-size: clamp(26px, 3vw, 34px); font-weight: 800; line-height: 1.35; }
.article-meta { display: flex; gap: 18px; margin-top: 16px; color: var(--faint); font-size: 14px; font-variant-numeric: tabular-nums; }
.prose { padding: 36px 0; font-size: 17px; line-height: 1.85; color: var(--text); }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: 24px; margin: 1.8em 0 .7em; }
.prose h3 { font-size: 19px; margin: 1.6em 0 .6em; }
.prose ul, .prose ol { margin: 0 0 1.1em 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: .3em 0; }
.prose img { border-radius: var(--radius); margin: 0 0 24px; }
.prose a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--mist); color: var(--ink); font-weight: 700; }
.prose-wrap { padding-top: 56px; padding-bottom: 96px; }
.prose-wrap .prose { max-width: 880px; padding-top: 0; }
.page-image { width: 100%; }

.files { background: var(--mist); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.files-head { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.files a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.files li:first-child a { border-top: 0; }
.files-name { color: var(--indigo); font-weight: 600; }
.files a:hover .files-name { text-decoration: underline; text-underline-offset: 3px; }
.files-size { color: var(--faint); font-size: 13px; white-space: nowrap; }

.shortlink { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: #fff6ef; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.shortlink-title { font-weight: 700; color: var(--ink); }
.shortlink-desc { font-size: 14px; color: var(--muted); }
.article-actions { display: flex; justify-content: space-between; gap: 8px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-actions-right { display: flex; gap: 8px; }
.article-actions form { margin: 0; }

/* 폼 */
.form-card { max-width: 880px; padding-top: 48px; padding-bottom: 96px; }
.form-title { font-size: 24px; font-weight: 800; margin-bottom: 28px; }
.field { display: grid; gap: 8px; margin-bottom: 22px; border: 0; padding: 0; }
.field > label, .field legend { font-size: 14px; font-weight: 700; color: var(--ink); }
.field input:not([type=checkbox]):not([type=hidden]), .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 0; border-radius: var(--radius-s); background: var(--mist);
  font: inherit; font-size: 16px; color: var(--ink); transition: background .25s, box-shadow .25s;
}
.field input[type=file] { padding: 12px; font-size: 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: 0 0 0 2px var(--indigo); }
.field textarea { min-height: 320px; line-height: 1.75; resize: vertical; }
.has-error input, .has-error select, .has-error textarea { box-shadow: 0 0 0 2px #e5484d; background: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); line-height: 1.6; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); flex-shrink: 0; }
.help { font-size: 13px; color: var(--faint); }
.error { font-size: 13px; color: #c4320a; font-weight: 600; }
.form-error { background: #fdeeee; color: #b42318; padding: 14px 18px; border-radius: var(--radius-s); margin-bottom: 20px; font-size: 14px; font-weight: 600; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 12px; }

/* 로그인·가입 */
.auth { display: grid; grid-template-columns: .6fr 1fr; min-height: calc(100dvh - var(--header-h)); }
.auth-side { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 72px 64px; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; }
.auth-side > * { position: relative; }
.auth-mark { position: absolute; top: 64px; left: 64px; }
.auth-quote { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; line-height: 1.4; letter-spacing: -.04em; }
.auth-side-note { font-size: 14px; color: rgba(255, 255, 255, .65); max-width: 26em; }
.auth-main { padding: 72px 64px; display: flex; flex-direction: column; justify-content: center; max-width: 560px; width: 100%; }
.auth-title { font-size: 32px; font-weight: 800; }
.auth-intro { margin: 10px 0 28px; color: var(--muted); }
.auth-form .field { margin-bottom: 18px; }
.auth-form .btn-block { margin-top: 8px; }
.auth-links { display: flex; justify-content: center; gap: 22px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.auth-links a { font-weight: 600; color: var(--ink); }
.auth-links a:hover { color: var(--navy); }
.page-auth .footer { display: none; }

/* 팝업 */
.popup { position: fixed; top: calc(var(--header-h) + 32px); left: 50%; transform: translateX(-50%); z-index: 120; width: min(420px, calc(100% - 32px)); background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 24px rgba(18, 17, 74, .18); animation: rise .6s var(--ease); }
.popup-body { padding: 20px 22px; }
.popup-foot { display: flex; justify-content: space-between; background: var(--ink); }
.popup-foot button { background: none; border: 0; color: #fff; padding: 14px 18px; font-size: 14px; }
.popup-foot button:hover { color: #ffb27a; }

/* 푸터 */
.footer { background: var(--ink); color: #a7a7b4; font-size: 14px; padding: 56px 0 48px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .1); flex-wrap: wrap; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-name { color: #fff; font-size: 17px; font-weight: 700; }
.footer-en { color: #5f5f70; font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a:hover { color: #fff; }
.footer-links strong { color: #fff; }
.footer-bottom { padding-top: 24px; display: grid; gap: 8px; }
.footer-info { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.copyright { color: #6f6f80; }

.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 0 0 1px var(--line); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .4s var(--ease); }
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-top: 1.8px solid var(--ink); border-left: 1.8px solid var(--ink); transform: translate(-50%, -25%) rotate(45deg); }

/* 태블릿 */
@media (max-width: 1080px) {
  .gnb-item > a { padding: 0 14px; font-size: 16px; }
  .gnb-item > a::after { left: 14px; right: 14px; }
  .header-in { gap: 20px; }
  .hero-grid { gap: 40px; }
  .mega-in { grid-template-columns: repeat(4, 1fr); }
  .mega-intro { display: none; }
}

/* 모바일 */
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .wrap { padding: 0 16px; }
  .logo img { height: 34px; }
  .gnb, .util .util-link, .util .btn { display: none; }
  .header-in { justify-content: space-between; }
  .menu-btn { display: block; }
  .hero { padding: 28px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-title { font-size: 34px; }
  .hero-lead { font-size: 16px; margin-top: 16px; }
  .hero-cta { margin-top: 24px; }
  .hero-cta .btn { flex: 1; padding: 14px 18px; font-size: 15px; }
  .quick { grid-template-columns: 1fr 1fr; }
  .quick-item { padding: 20px 14px; gap: 10px; }
  .quick-item:nth-child(3)::before { display: none; }
  .quick-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .quick-item strong { font-size: 16px; }
  .quick-item span { font-size: 13px; }
  .section { padding: 64px 16px 0; }
  .section-head { margin-bottom: 20px; }
  .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tab { white-space: nowrap; }
  .news-grid { grid-template-columns: 1fr; gap: 24px; }
  .lines a { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 2px; }
  .lines-board { grid-column: 1 / -1; font-size: 12px; }
  .lines-title { font-size: 16px; }
  .lines time { font-size: 13px; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 140px 140px; gap: 10px; }
  .mosaic-item:first-child { grid-column: span 2; grid-row: auto; }
  .mosaic-item:nth-child(n+6) { display: none; }
  .branch-list { grid-template-columns: 1fr; }
  .branch-list a { grid-template-columns: auto 1fr auto; gap: 10px; padding: 14px 0; }
  .join-band { margin-top: 72px; }
  .join-in { padding-top: 48px; padding-bottom: 48px; }
  .join-in .btn { width: 100%; }
  .related-in { flex-direction: column; align-items: flex-start; gap: 12px; }
  .subhead > .wrap { padding-top: 36px; padding-bottom: 28px; }
  .subnav-list { padding: 0 8px; }
  .subnav-list a { padding: 15px 10px; font-size: 14px; }
  .subnav-list a.on::after { left: 10px; right: 10px; }
  .board { padding-top: 24px; padding-bottom: 64px; }
  .search { min-width: 0; width: 100%; }
  .row { grid-template-columns: 1fr; }
  .row-no { display: none; }
  .row.is-notice .row-no { display: block; text-align: left; padding: 14px 2px 0; }
  .row-main { grid-template-columns: 1fr; gap: 6px; padding: 16px 2px; }
  .row-title { font-size: 16px; }
  .row-meta { font-size: 13px; gap: 12px; }
  .g-grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .g-title { font-size: 15px; }
  .board-foot { flex-direction: column-reverse; align-items: stretch; }
  .board-foot .btn { width: 100%; }
  .pager { justify-content: center; }
  .article { padding-top: 32px; padding-bottom: 64px; }
  .prose { font-size: 16px; }
  .article-actions { flex-wrap: wrap; }
  .form-card { padding-top: 28px; padding-bottom: 64px; }
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-side { display: none; }
  .auth-mark { position: static; width: 44px; height: 44px; margin-bottom: 6px; }
  .auth-quote { font-size: 22px; }
  .auth-side-note { display: none; }
  .auth-main { padding: 32px 20px 56px; }
  .auth-title { font-size: 26px; }
  .page-auth .footer { display: block; }
  .footer { padding: 40px 0 36px; }
  .to-top { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
