/* =====================================================================
   국민연금 온에어 — 사이트 디자인 시스템 (doc/23_디자인시스템.md)
   시안: [국민연금] 온에어 웹페이지.psd (PC 메인 1920) → 웹 기준으로 조정
   ===================================================================== */

@font-face {
    font-family: "SUIT";
    src: url("/fonts/suit/SUIT-Variable.woff2") format("woff2-variations"), url("/fonts/suit/SUIT-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    /* ---------- 색: 브랜드 (공단 CI 가이드 A.5) ---------- */
    --nps-blue: #0F0063;
    --nps-orange: #FF5900;
    --nps-green: #8CCA24;

    /* ---------- 색: 사이트 ---------- */
    --c-navy: #1D1471;          /* 제목·주요 글자 */
    --c-navy-ink: #1B1740;      /* 카드 제목 */
    --c-primary: #0A6BE0;       /* 시안 #0376F5 → 흰 글자 대비 4.5 맞춤 */
    --c-primary-soft: #E1EEFE;
    --c-sky: #0085D8;           /* 첫 화면 하늘 */
    --c-lime: #CAF75E;          /* "지금 보기" 버튼 */
    --c-event: #D4431A;         /* 시안 #FF6437 → 대비 맞춤 */
    --c-event-ink: #A02611;
    --c-event-soft: #FEF3EF;
    --c-text: #222222;
    --c-text-2: #424242;
    --c-text-3: #6B6B6B;        /* 설명 (시안 #949494 → 대비 맞춤) */
    --c-text-4: #767676;        /* 날짜 (시안 #B3B3B3 → 대비 맞춤, 최소값) */
    --c-line: #E5E7EB;
    --c-line-soft: #F2F2F2;
    --c-bg: #FFFFFF;
    --c-bg-soft: #F7F8FA;
    --c-footer: #6B6B6B;        /* 시안 #959595 → 흰 글자 대비 맞춤 */
    --c-focus: #FF5900;         /* 키보드 초점 (NPS Orange) */

    /* 메뉴별 색 (바로가기 카드·꼬리표) — 배경 / 글자 */
    --m-learn-bg: #DEEFFF;  --m-learn: #1D1471;
    --m-news-bg: #FFF0EA;   --m-news: #983921;
    --m-fund-bg: #E8F8E7;   --m-fund: #124E2D;
    --m-video-bg: #EDE7FF;  --m-video: #3811A9;
    --m-truth-bg: #FFF7E1;  --m-truth: #9A5A00;   /* 시안 #FFA00B → 대비 맞춤 */

    /* 분류 꼬리표 (흰 글자) */
    --tag-news: #D4431A;
    --tag-policy: #0A6BE0;
    --tag-fund: #2A8027;
    --tag-story: #8F4CF6;
    --tag-video: #5B3CC4;

    /* ---------- 글자 ---------- */
    --font: "SUIT", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700; --fw-extrabold: 800; --fw-heavy: 900;
    /* 크기 단계 (PC) — 시안 1920 값 × 약 0.75 */
    --fs-display: 40px;   /* 이벤트 큰 제목 */
    --fs-h1: 32px;        /* 섹션 제목 */
    --fs-h2: 24px;        /* 카드 큰 제목 */
    --fs-h3: 20px;        /* 글 카드 제목 */
    --fs-lead: 18px;      /* 메뉴·소개 문구 */
    --fs-body: 16px;
    --fs-sm: 15px;
    --fs-xs: 14px;        /* 최소 */
    --lh-tight: 1.3; --lh-body: 1.6;
    --ls: -0.02em;        /* 시안 자간 -30~-45 */

    /* ---------- 간격·모양 ---------- */
    --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px;
    --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-30: 120px;
    --radius-sm: 8px; --radius: 16px; --radius-lg: 24px; --radius-pill: 999px;
    --shadow-card: 0 2px 10px rgba(16, 24, 64, .06);
    --shadow-hover: 0 10px 28px rgba(16, 24, 64, .12);

    /* ---------- 그리드 ---------- */
    --container: 1440px;
    --gutter: 40px;       /* 좌우 여백 */
    --gap: 24px;          /* 칸 사이 */
    --header-h: 88px;
}

@media (max-width: 1199px) {
    :root { --gutter: 32px; --gap: 20px; --fs-display: 34px; --fs-h1: 28px; --fs-h2: 22px; --fs-h3: 18px; --header-h: 72px; }
}
@media (max-width: 767px) {
    :root { --gutter: 20px; --gap: 16px; --fs-display: 28px; --fs-h1: 24px; --fs-h2: 20px; --fs-h3: 17px; --fs-lead: 16px; --header-h: 60px; }
}

/* ---------- 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--c-text); background: var(--c-bg); letter-spacing: var(--ls); word-break: keep-all; overflow-wrap: anywhere; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--sp-4); top: -60px; z-index: 1000; background: var(--c-navy); color: #fff; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm); }
.skip-link:focus { top: var(--sp-4); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- 그리드 ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1199px) { .grid-4, .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-m2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 글자 ---------- */
.t-display { font-size: var(--fs-display); font-weight: var(--fw-heavy); line-height: var(--lh-tight); }
.t-h1 { font-size: var(--fs-h1); font-weight: var(--fw-heavy); line-height: var(--lh-tight); color: var(--c-navy); }
.t-h2 { font-size: var(--fs-h2); font-weight: var(--fw-heavy); line-height: var(--lh-tight); }
.t-h3 { font-size: var(--fs-h3); font-weight: var(--fw-bold); line-height: 1.45; color: var(--c-navy-ink); }
.t-lead { font-size: var(--fs-lead); font-weight: var(--fw-bold); color: var(--c-text-3); }
.t-body { font-size: var(--fs-body); }
.t-sm { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.t-date { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--c-text-4); }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 48px; padding: 0 var(--sp-6); border: 0; border-radius: var(--radius-pill); font-size: var(--fs-lead); font-weight: var(--fw-extrabold); line-height: 1; transition: transform .15s, box-shadow .15s, background-color .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn .ico { width: 20px; height: 20px; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-event { background: var(--c-event); color: #fff; }
.btn-lime { background: var(--c-lime); color: var(--c-navy); }
.btn-line { background: #fff; color: var(--c-navy); box-shadow: inset 0 0 0 1px var(--c-line); }
.btn-sm { min-height: 40px; padding: 0 var(--sp-4); font-size: var(--fs-sm); }
.link-more { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-sm); font-weight: var(--fw-extrabold); color: #0E066C; }
.link-more .ico { width: 18px; height: 18px; }
.link-more[hidden] { display: none; }

/* ---------- 꼬리표 ---------- */
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 var(--sp-3); border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: var(--fw-bold); color: #fff; background: var(--c-navy); white-space: nowrap; }
.tag-news { background: var(--tag-news); } .tag-policy { background: var(--tag-policy); } .tag-fund { background: var(--tag-fund); }
.tag-story { background: var(--tag-story); } .tag-video { background: var(--tag-video); } .tag-event { background: var(--c-event); }

/* ---------- 탭 (분류 고르기) ---------- */
.tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.tab { height: 40px; padding: 0 var(--sp-5); border: 0; border-radius: var(--radius-pill); background: var(--c-line-soft); color: var(--c-text-2); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.tab[aria-selected="true"], .tab.is-on { background: var(--c-primary); color: #fff; font-weight: var(--fw-extrabold); }
/* 모바일: 옆으로 밀리며 잘리지 않게 한 줄에 똑같이 나눔 (5개면 5칸, 긴 이름은 두 줄) — 온에어 의견 11-18 */
@media (max-width: 767px) {
    .tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
    .tab { height: auto; min-height: 44px; padding: var(--sp-1) 4px; font-size: 13px; line-height: 1.25; word-break: keep-all; letter-spacing: -.02em; border-radius: 12px; }
}

/* ---------- 섹션 제목 (번호 + 제목 + 소개) ---------- */
.sec-head { display: flex; align-items: center; gap: var(--sp-4) var(--sp-8); flex-wrap: wrap; margin-bottom: var(--sp-8); }
.sec-head .num { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: 22px; font-weight: var(--fw-heavy); }
.sec-head .t-h1 { margin-right: var(--sp-2); }
.sec-head .t-lead { font-size: var(--fs-body); }
@media (max-width: 767px) { .sec-head { gap: var(--sp-2) var(--sp-3); } .sec-head .num { width: 40px; height: 40px; font-size: 17px; } .sec-head .t-lead { flex-basis: 100%; } }

/* ---------- 카드: 글 ---------- */
.card-post { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--c-line), var(--shadow-card); transition: transform .2s, box-shadow .2s; }
.card-post:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--c-line), var(--shadow-hover); }
.card-post .thumb { aspect-ratio: 16 / 10; background: var(--c-bg-soft); overflow: hidden; }
.card-post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-post .body { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5) var(--sp-6) var(--sp-6); }
.card-post .tag { align-self: flex-start; }

/* ---------- 카드: 메뉴 바로가기 ---------- */
.card-menu { position: relative; display: flex; flex-direction: column; min-height: 176px; padding: var(--sp-6); border-radius: var(--radius); transition: transform .2s, box-shadow .2s; }
.card-menu:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-menu .t-h2 { padding-right: 64px; }
.card-menu p { margin-top: var(--sp-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: 1.5; padding-right: 48px; }
.card-menu .icon { position: absolute; right: var(--sp-5); top: var(--sp-5); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; }
.card-menu .icon img, .card-menu .icon svg { width: 28px; height: 28px; }
.card-menu .go { margin-top: auto; align-self: flex-end; width: 24px; height: 24px; }
.card-menu.m-learn { background: var(--m-learn-bg); color: var(--m-learn); }
.card-menu.m-news { background: var(--m-news-bg); color: var(--m-news); }
.card-menu.m-fund { background: var(--m-fund-bg); color: var(--m-fund); }
.card-menu.m-video { background: var(--m-video-bg); color: var(--m-video); }
.card-menu.m-truth { background: var(--m-truth-bg); color: var(--m-truth); }
@media (max-width: 767px) { .card-menu { min-height: 132px; padding: var(--sp-4); } .card-menu .icon { width: 40px; height: 40px; right: var(--sp-3); top: var(--sp-3); } .card-menu .icon img, .card-menu .icon .mask-icon { width: 20px; height: 20px; } .card-menu .t-h2 { font-size: 17px; padding-right: 40px; } .card-menu p { display: none; } }

/* ---------- 카드: 영상 ---------- */
.card-video { display: block; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .2s; }
.card-video:hover { transform: translateY(-4px); }
.card-video .thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-video .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-video .play { position: absolute; left: var(--sp-4); bottom: var(--sp-4); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--c-navy); }
.card-video .play svg { width: 18px; height: 18px; margin-left: 3px; }
.card-video .name { display: block; padding: var(--sp-4); text-align: center; font-size: var(--fs-lead); font-weight: var(--fw-extrabold); color: var(--c-navy); }

/* ---------- 카드: 체험&참여 ---------- */
.card-feature { position: relative; display: flex; flex-direction: column; gap: var(--sp-4); min-height: 340px; padding: var(--sp-10); border-radius: var(--radius-lg); overflow: hidden; }
.card-feature .art { position: absolute; right: var(--sp-8); bottom: var(--sp-6); width: 44%; max-width: 360px; pointer-events: none; }
.card-feature .btn { margin-top: auto; align-self: flex-start; }
.card-feature.is-event { background: var(--c-event-soft); color: var(--c-event-ink); }
.card-feature.is-play { background: var(--c-primary-soft); color: #1D1D1D; }
.card-feature .sub { font-size: var(--fs-h3); font-weight: var(--fw-extrabold); }
.card-feature .desc { font-size: var(--fs-lead); font-weight: var(--fw-bold); color: var(--c-text-2); max-width: 55%; }
@media (max-width: 767px) { .card-feature { min-height: 260px; padding: var(--sp-6); } .card-feature .art { width: 46%; right: var(--sp-3); } .card-feature .desc { max-width: 60%; font-size: var(--fs-sm); } }

/* ---------- 머리말 ---------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 50; height: var(--header-h); color: #fff; }
.site-header.is-solid { position: sticky; top: 0; background: #fff; color: var(--c-navy); box-shadow: 0 1px 0 var(--c-line); }
.site-header .inner { display: flex; align-items: center; height: 100%; gap: var(--sp-10); }
.site-header .brand { display: flex; align-items: center; gap: var(--sp-3); flex: none; }
.site-header .brand img { height: 44px; width: auto; }
/* 배너 밝기에 따라 (관리자에서 배너마다 고름) — 어두운 바탕: 흰 로고, 밝은 바탕: 원래 색 로고·남색 메뉴 */
.site-header .brand .logo-on-light, .site-header.tone-light .brand .logo-on-dark { display: none; }
.site-header.tone-light .brand .logo-on-light { display: block; }
.site-header.tone-light { color: var(--c-navy); }
.site-header.tone-light .gnb a { text-shadow: none; }
.site-header .gnb { display: flex; gap: var(--sp-10); margin-right: auto; }
.site-header .gnb a { font-size: 19px; font-weight: var(--fw-bold); padding: var(--sp-2) 0; text-shadow: 0 1px 2px rgba(0, 40, 90, .25); }
.site-header.is-solid .gnb a { text-shadow: none; }
.site-header .gnb a[aria-current="page"], .site-header .gnb a:hover { box-shadow: inset 0 -3px 0 currentColor; }
.site-header .util { display: flex; gap: var(--sp-2); }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: inherit; }
.icon-btn svg { width: 26px; height: 26px; }
@media (max-width: 1199px) { .site-header .gnb { display: none; } .site-header .brand img { height: 38px; } .site-header .inner { justify-content: space-between; } }
@media (max-width: 767px) { .site-header .brand img { height: 32px; } }

/* ---------- 꼬리말 ---------- */
.site-footer { background: var(--c-footer); color: #fff; padding: var(--sp-12) 0; text-align: center; font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.site-footer .logo { height: 28px; width: auto; margin: 0 auto var(--sp-5); }
.site-footer .policy { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin-bottom: var(--sp-4); font-weight: var(--fw-bold); }
.site-footer .policy .is-strong { text-decoration: underline; text-underline-offset: 4px; font-weight: var(--fw-heavy); }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer .copy { margin-top: var(--sp-4); font-size: var(--fs-xs); opacity: .9; }

/* ---------- 색을 바꿀 수 있는 아이콘 (SVG 모양 + 글자색) ---------- */
.mask-icon { display: inline-block; width: 28px; height: 28px; background: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }

/* ---------- 전체 메뉴 (오른쪽에서 열림) ---------- */
.all-menu { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: flex-end; background: rgba(15, 0, 99, .45); }
.all-menu[hidden] { display: none; }
.all-menu .panel { width: min(420px, 100%); height: 100%; overflow-y: auto; background: #fff; color: var(--c-text); padding: var(--sp-5) var(--sp-8) var(--sp-12); box-shadow: -8px 0 32px rgba(0, 0, 0, .15); }
.all-menu .panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-6); }
.all-menu .panel-head img { height: 34px; width: auto; }
.all-menu .group { padding: var(--sp-5) 0; border-top: 1px solid var(--c-line); }
.all-menu .group > a { display: inline-block; font-size: var(--fs-lead); font-weight: var(--fw-heavy); color: var(--c-navy); }
.all-menu .group ul { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin-top: var(--sp-3); }
.all-menu .group li a { display: inline-block; padding: var(--sp-1) 0; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-text-2); }
.all-menu .group li a:hover, .all-menu .group > a:hover { text-decoration: underline; text-underline-offset: 4px; }
body.is-locked { overflow: hidden; }
@media (max-width: 767px) { .all-menu .panel { padding: var(--sp-4) var(--gutter) var(--sp-10); } }

/* =====================================================================
   메인 화면
   ===================================================================== */

/* 첫 화면 */
.home-hero { position: relative; background: var(--c-sky) url("/images/main/hero-sky.webp") center top / cover no-repeat; color: #fff; padding: calc(var(--header-h) + var(--sp-6)) 0 var(--sp-16); overflow: hidden; }
.hero-inner { position: relative; padding-right: calc(var(--gutter) + 72px); }
.hero-slides { position: relative; }
.hero-slide { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; min-height: 500px; }
.hero-slide[hidden] { display: none; }
.hero-copy { padding: 0 0 var(--sp-10) var(--sp-8); }
.hero-title { font-size: 26px; font-weight: var(--fw-bold); line-height: 1.45; text-shadow: 0 1px 6px rgba(0, 60, 130, .25); }
.btn-hero { margin-top: var(--sp-8); min-height: 60px; padding: 0 var(--sp-8); font-size: 20px; color: #0B4FB0; }
.btn-hero .ico { width: 26px; height: 26px; color: #0A6BE0; }
.hero-art { justify-self: center; width: 100%; max-width: 660px; }
.hero-art img { width: 100%; filter: drop-shadow(0 18px 30px rgba(0, 40, 110, .18)); }
.hero-pager { position: absolute; right: calc(-72px + var(--sp-2)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); }
.hero-dot, .hero-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0, 38, 100, .45); color: #fff; font-size: 17px; font-weight: var(--fw-heavy); }
.hero-dot[aria-current="true"] { background: var(--c-navy); }
.hero-toggle { background: rgba(255, 255, 255, .35); }
.hero-toggle .i-pause { width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.hero-toggle.is-paused .i-pause { width: 0; height: 0; border: 0; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.home-hero.tone-light { color: var(--c-navy); }
.home-hero.tone-light .hero-title { text-shadow: none; }
.home-hero.tone-light .hero-toggle { background: rgba(0, 38, 100, .45); }
.hero-videos { padding: 0 var(--sp-8); margin-top: var(--sp-2); }
.hero-videos .card-video { border: 3px solid rgba(255, 255, 255, .9); box-shadow: 0 8px 24px rgba(0, 50, 120, .18); }
.hero-videos .card-video .thumb { aspect-ratio: 346 / 269; }

/* 메뉴 바로가기 */
.home-menus { padding: var(--sp-12) 0 var(--sp-4); }
.home-menus .ico-play { display: block; width: 26px; height: 26px; margin-left: 4px; color: var(--m-video); }

/* 01·02 섹션: 왼쪽 번호 줄 (PC) */
.home-flow > .container { position: relative; }
.home-sec { padding-top: var(--sp-16); }
.latest-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.latest-bar .tabs { min-width: 0; }
.tab-panel .empty { padding: var(--sp-12) 0; text-align: center; color: var(--c-text-3); }
.latest-grid .card-post { height: 100%; }
/* 최신 글 좌우 넘김 (PC 4개씩) — 온에어 의견 11-18. 태블릿·휴대폰은 앞 4개만 */
.latest-slider { position: relative; }
.latest-grid > li:nth-child(n+5) { display: none; }
.latest-grid > li[data-on] { display: block; }
.latest-nav { position: absolute; top: 28%; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: #fff; color: var(--c-navy); box-shadow: 0 4px 14px rgba(15, 0, 99, .16); cursor: pointer; }
.latest-nav .ico { width: 20px; height: 20px; }
.latest-nav.is-prev { left: -24px; } .latest-nav.is-next { right: -24px; }
.latest-nav:disabled { opacity: 0; pointer-events: none; }
.latest-nav:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 2px; }
@media (max-width: 1023px) { .latest-nav { display: none; } .latest-grid > li[data-on] { display: none; } .latest-grid > li:nth-child(-n+4) { display: block; } }
.feature-grid { grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); }
.card-feature h3 { display: flex; flex-direction: column; gap: var(--sp-1); }
.card-feature .tag { align-self: flex-start; }
.card-feature.is-play .sub { font-weight: var(--fw-semibold); color: var(--c-text-2); }
.card-feature.is-event .art { width: 42%; right: 10%; bottom: 50%; transform: translateY(50%); }
.card-feature.is-play .art { width: 40%; max-width: 260px; right: 0; bottom: 0; }
@media (min-width: 1200px) {
    .home-flow > .container { padding-left: calc(var(--gutter) + 104px); }
    .home-flow > .container::before { content: ""; position: absolute; left: calc(var(--gutter) + 25px); top: 0; bottom: var(--sp-10); width: 2px; background: #BCD8FA; }
    .home-flow .sec-head { position: relative; }
    .home-flow .sec-head .num { position: absolute; left: -104px; top: 50%; transform: translateY(-50%); box-shadow: 0 0 0 8px #fff; }
}

/* 공단 SNS */
.home-sns { padding: var(--sp-20) 0; }
.sns-box { position: relative; overflow: hidden; min-height: 260px; padding: var(--sp-12) var(--sp-16) var(--sp-12); border-radius: var(--radius); background: #CDE9FD url("/images/main/sns-bg.webp") center bottom / auto 122% no-repeat; } /* 그림 위쪽 물결은 시안에서 꼬리말에 붙일 때 쓰던 모양 → 카드에서는 잘라 냄 */
.sns-title { font-size: var(--fs-h1); font-weight: var(--fw-heavy); line-height: 1.35; color: var(--c-navy); }
.sns-links { display: flex; gap: var(--sp-4); margin-top: var(--sp-5); }
.sns-links a { display: block; border-radius: 12px; }
.sns-links img { width: 44px; height: 44px; }
.sns-char { position: absolute; right: 10%; bottom: 0; width: 18%; max-width: 260px; }

/* 태블릿 */
@media (max-width: 1199px) {
    .home-hero { padding-bottom: var(--sp-12); }
    .hero-inner { padding-right: calc(var(--gutter) + 56px); }
    .hero-pager { right: -56px; }
    .hero-slide { min-height: 380px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .hero-copy { padding-left: 0; }
    .hero-title { font-size: 22px; }
    .hero-videos { padding: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hero-videos .card-video .name { font-size: var(--fs-body); padding: var(--sp-3) var(--sp-2); }
    .home-menus .grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-3); }
    .home-menus .card-menu { min-height: 150px; padding: var(--sp-4); }
    .home-menus .card-menu .t-h2 { font-size: 17px; padding-right: 0; margin-top: 52px; }
    .home-menus .card-menu .icon { left: var(--sp-4); right: auto; top: var(--sp-4); width: 44px; height: 44px; }
    .home-menus .card-menu .icon .mask-icon { width: 22px; height: 22px; }
    .home-menus .card-menu p, .home-menus .card-menu .go { display: none; }
    .feature-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .card-feature.is-event .art { width: 32%; right: var(--sp-4); top: var(--sp-6); bottom: auto; transform: none; }
    .card-feature .desc { max-width: none; }
    .sns-box { padding: var(--sp-10) var(--sp-10) var(--sp-8); }
    .sns-char { right: var(--sp-6); width: 24%; }
}

/* 작은 태블릿: 글 카드 2칸 (4개가 3+1로 남지 않게) */
@media (min-width: 768px) and (max-width: 1023px) { .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) and (max-width: 1199px) { .latest-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* 모바일 */
@media (max-width: 767px) {
    .home-hero { background-image: url("/images/main/hero-sky-960.webp"); background-position: 62% top; padding: calc(var(--header-h) + var(--sp-4)) 0 var(--sp-10); }
    .hero-inner { padding-right: var(--gutter); }
    .hero-slide { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .hero-copy { padding: var(--sp-4) 0 0; position: relative; z-index: 1; }
    .hero-title { font-size: 21px; }
    .btn-hero { margin-top: var(--sp-5); min-height: 52px; font-size: 18px; padding: 0 var(--sp-6); }
    .hero-art { width: 70%; max-width: 340px; justify-self: end; margin-top: calc(var(--sp-6) * -1); }
    .hero-pager { top: auto; bottom: 0; right: 0; transform: none; flex-direction: row; gap: 0; }
    .hero-dot, .hero-toggle { width: 40px; height: 40px; font-size: 15px; }
    .hero-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-6); }
    .hero-videos .card-video { border-radius: var(--radius); border-width: 2px; }
    .hero-videos .card-video .play { width: 34px; height: 34px; left: var(--sp-2); bottom: var(--sp-2); }
    .hero-videos .card-video .play svg { width: 14px; height: 14px; }
    .hero-videos .card-video .name { font-size: var(--fs-sm); padding: var(--sp-2); }
    .home-menus { padding-top: var(--sp-8); }
    .home-menus .grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
    .home-menus .card-menu { min-height: 104px; padding: var(--sp-3) 2px; align-items: center; text-align: center; border-radius: 12px; }
    .home-menus .card-menu .icon { position: static; order: -1; width: 40px; height: 40px; margin: 0 auto var(--sp-2); }
    .home-menus .card-menu .icon .mask-icon { width: 20px; height: 20px; }
    .home-menus .ico-play { width: 20px; height: 20px; margin-left: 3px; }
    .home-menus .card-menu .t-h2 { margin-top: 0; font-size: var(--fs-xs); font-weight: var(--fw-extrabold); line-height: 1.3; overflow-wrap: normal; }
    .home-sec { padding-top: var(--sp-12); }
    .latest-bar { flex-direction: column; align-items: stretch; gap: var(--sp-3); }
    /* 모바일: 전체보기를 제목 줄 오른쪽에 (탭 아래에 두면 잘 안 보임 — 온에어 의견 11-18) */
    .home-sec:has(.latest-bar) { position: relative; }
    .latest-bar .link-more { position: absolute; right: 0; top: calc(var(--sp-12) + 8px); }
    .latest-grid { grid-template-columns: minmax(0, 1fr); }
    .latest-grid .card-post { flex-direction: row; }
    .latest-grid .card-post .thumb { flex: none; width: 38%; aspect-ratio: 4 / 3; }
    .latest-grid .card-post .body { padding: var(--sp-3) var(--sp-4); gap: var(--sp-2); }
    .latest-grid .card-post .tag { height: 24px; padding: 0 var(--sp-2); }
    .latest-grid .card-post .t-h3 { font-size: var(--fs-body); }
    .feature-grid { grid-template-columns: minmax(0, 1fr); }
    .card-feature { min-height: 240px; }
    .card-feature .t-display { font-size: 26px; }
    .card-feature.is-event .art { width: 36%; right: var(--sp-3); top: var(--sp-4); }
    .card-feature.is-play .art { width: 36%; }
    .home-sns { padding: var(--sp-12) 0; }
    /* 모바일 SNS 배너: 높이 절반 정도로 (온에어 의견 11-18) */
    .sns-box { min-height: 118px; padding: var(--sp-5) var(--sp-5) var(--sp-4); background-position: 70% bottom; }
    .sns-title { font-size: 16px; padding-right: 30%; }
    .sns-links { gap: var(--sp-2); margin-top: var(--sp-3); }
    .sns-links img { width: 30px; height: 30px; }
    .sns-char { width: 26%; right: var(--sp-2); }
}

/* =====================================================================
   서브 화면 공통 — 머리(위치·제목·게시판 고르기)
   ===================================================================== */
.page-head { background: var(--m-learn-bg); padding: var(--sp-10) 0 var(--sp-8); }
.page-head.ph-news { background: var(--m-news-bg); }
.page-head.ph-fund { background: var(--m-fund-bg); }
.page-head.ph-video { background: var(--m-video-bg); }
.page-head.ph-truth { background: var(--m-truth-bg); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--c-text-2); }
.crumbs li + li::before { content: "›"; margin-right: var(--sp-2); color: var(--c-text-3); }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ph-title { margin-top: var(--sp-3); font-size: var(--fs-display); font-weight: var(--fw-heavy); line-height: var(--lh-tight); color: var(--c-navy); }
.ph-desc { margin-top: var(--sp-2); font-size: var(--fs-lead); font-weight: var(--fw-semibold); color: var(--c-text-2); }
.ph-boards { margin-top: var(--sp-6); }
.ph-boards ul { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.ph-boards a { display: inline-flex; align-items: center; height: 40px; padding: 0 var(--sp-5); border-radius: var(--radius-pill); background: #fff; color: var(--c-text-2); font-size: var(--fs-sm); font-weight: var(--fw-bold); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.ph-boards a:hover { color: var(--c-navy); box-shadow: inset 0 0 0 1px currentColor; }
.ph-boards a[aria-current="page"] { background: var(--c-primary); color: #fff; box-shadow: none; }
@media (max-width: 767px) {
    .page-head { padding: var(--sp-6) 0 var(--sp-5); }
    .ph-desc { font-size: var(--fs-body); }
    .ph-boards { margin-top: var(--sp-4); }
    /* 모바일: 게시판 고르기는 줄을 바꿔 모두 보이게 (옆으로 잘리지 않게 — 온에어 의견 11-18) */
    .ph-boards ul { gap: 6px; }
    .ph-boards a { height: 34px; padding: 0 var(--sp-3); font-size: 13px; }
}

/* ---------- 게시판 목록 ---------- */
.board-wrap { padding-top: var(--sp-10); padding-bottom: var(--sp-20); }
.board-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.board-count { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-text-3); }
.board-count b { color: var(--c-primary); font-weight: var(--fw-heavy); }
.board-count .sep { margin: 0 var(--sp-1); }
.board-search { display: flex; align-items: center; width: min(320px, 100%); height: 48px; padding: 0 var(--sp-2) 0 var(--sp-5); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--c-line); background: #fff; }
.board-search:focus-within { box-shadow: inset 0 0 0 2px var(--c-primary); }
.board-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: var(--fs-body); outline: none; }
.board-search button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--c-navy); }
.board-search button svg { width: 22px; height: 22px; }
.board-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.board-grid .card-post { height: 100%; }
.board-grid .t-sum { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--c-text-3); line-height: 1.5; }
.board-grid.skin-gallery .card-post .thumb { aspect-ratio: 1 / 1; }
.board-grid.skin-video .card-post .thumb { position: relative; aspect-ratio: 16 / 9; }
.board-grid.is-shorts .card-post .thumb { aspect-ratio: 3 / 4; }
/* 영상갤러리 통합 목록: Shorts(세로 영상)도 가로 칸에 맞춰 — 흐린 배경 위에 세로 그림 전체를 가운데 (공단 의견 9페이지 ②) */
.card-clip.is-short .thumb { position: relative; background: #0d1a30; }
.card-clip.is-short .short-bg { position: absolute; inset: -10%; background-size: cover; background-position: center; filter: blur(14px) brightness(.75); }
.card-clip.is-short .thumb img, .card-clip.is-short .thumb picture { position: relative; z-index: 1; }
.card-clip.is-short .thumb img { object-fit: contain; }
.card-clip.is-short .play { z-index: 2; }
.card-clip .play { position: absolute; left: var(--sp-3); bottom: var(--sp-3); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--c-navy); }
.card-clip .play svg { width: 16px; height: 16px; margin-left: 2px; }
.board-empty { padding: var(--sp-20) 0; text-align: center; color: var(--c-text-3); }
.board-empty .btn { margin-top: var(--sp-4); }
@media (max-width: 1199px) { .board-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    .board-wrap { padding-top: var(--sp-6); padding-bottom: var(--sp-12); }
    .board-bar { flex-direction: column-reverse; align-items: stretch; gap: var(--sp-3); margin-bottom: var(--sp-4); }
    .board-search { width: 100%; }
    .board-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); }
    .board-grid:not(.skin-video):not(.skin-gallery) .card-post { flex-direction: row; }
    .board-grid:not(.skin-video):not(.skin-gallery) .card-post .thumb { flex: none; width: 38%; aspect-ratio: 4 / 3; }
    .board-grid .card-post .body { padding: var(--sp-3) var(--sp-4); gap: var(--sp-2); }
    .board-grid .card-post .t-h3 { font-size: var(--fs-body); }
    .board-grid .t-sum { display: none; }
    .board-grid.skin-video, .board-grid.skin-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .board-grid.skin-video .card-post .body, .board-grid.skin-gallery .card-post .body { padding: var(--sp-3); }
    .board-grid.skin-video .t-h3, .board-grid.skin-gallery .t-h3 { font-size: var(--fs-sm); }
}

/* ---------- 쪽 번호 ---------- */
.pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: var(--sp-1); margin-top: var(--sp-12); }
.pg { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 var(--sp-2); border-radius: var(--radius-pill); font-weight: var(--fw-bold); color: var(--c-text-2); }
a.pg:hover { background: var(--c-line-soft); }
.pg.is-on { background: var(--c-primary); color: #fff; font-weight: var(--fw-heavy); }
.pg-arrow svg { width: 20px; height: 20px; }
.pg.is-off { color: var(--c-line); }
.pg-gap { color: var(--c-text-3); padding: 0 var(--sp-1); }
@media (max-width: 767px) { .pager { margin-top: var(--sp-8); gap: 0; } .pg { min-width: 40px; height: 40px; } }

/* =====================================================================
   글 보기
   ===================================================================== */
/* 본문 폭: 글 보기·검색 1200 (온에어 의견 11-18 — 좌우 여백 줄임), 약관 등 긴 글은 880 유지 */
.post-wrap { max-width: calc(1200px + var(--gutter) * 2); padding-top: var(--sp-12); padding-bottom: var(--sp-20); }
.post-head { padding-bottom: var(--sp-6); border-bottom: 2px solid var(--c-navy); margin-bottom: var(--sp-8); }
.post-title { margin-top: var(--sp-4); font-size: var(--fs-h1); font-weight: var(--fw-heavy); line-height: 1.35; color: var(--c-navy-ink); }
.post-sub { margin-top: var(--sp-2); font-size: var(--fs-lead); font-weight: var(--fw-bold); color: var(--c-text-2); }
.post-meta { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); margin-top: var(--sp-4); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--c-text-4); }
.post-meta span + span::before { content: ""; display: inline-block; width: 1px; height: 10px; margin-right: var(--sp-4); background: var(--c-line); }
.post-alert { margin-bottom: var(--sp-6); padding: var(--sp-4) var(--sp-5); border-radius: var(--radius-sm); background: var(--c-primary-soft); color: var(--c-navy); font-weight: var(--fw-bold); }
.post-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.post-video.is-shorts { aspect-ratio: 9 / 16; max-width: 400px; margin: 0 auto; }
.post-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-video-link { margin: var(--sp-3) 0 var(--sp-8); text-align: right; }
.post-video-link a { display: inline-flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--c-text-2); }
.post-video-link .ico { width: 16px; height: 16px; }

/* 본문: 옛 편집기 글꼴(굴림 등)은 사이트 글꼴로, 크기·색·정렬은 작성자 의도대로 */
.prose { font-size: 17px; line-height: 1.8; color: var(--c-text); overflow-wrap: break-word; }
.prose * { font-family: inherit !important; max-width: 100%; }
.prose p, .prose div { margin: 0; }
.prose p + p { margin-top: .4em; }
.prose td, .prose th { line-height: 1.6; } /* 옛 글 표 안 줄 간격은 옛 화면대로 조금 촘촘하게 */
.prose td p + p, .prose th p + p { margin-top: 0; }
.prose img { height: auto !important; display: inline-block; vertical-align: middle; }
.prose picture { display: inline; }
/* 그림만 있는 문단은 가운데로 (본문 폭 1200에서 880 카드뉴스가 왼쪽에 붙지 않게, 글은 대부분 가운데 정렬) */
.prose :is(p, div):has(> :is(img, picture):only-child), .prose :is(p, div):has(> a:only-child > :is(img, picture)) { text-align: center; }
.prose h2, .prose h3, .prose h4 { margin: 1.4em 0 .6em; color: var(--c-navy); line-height: 1.4; }
.prose ul, .prose ol { margin: .6em 0; padding-left: 1.4em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100% !important; border-collapse: collapse; margin: 1em 0; font-size: var(--fs-sm); }
.prose .tbl-scroll { overflow-x: auto; margin: 1em 0; }
.prose .tbl-scroll > table { margin: 0; }
.prose th, .prose td { border: 1px solid var(--c-line); padding: var(--sp-2) var(--sp-3); }
.prose iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-sm); }
.prose blockquote { margin: 1em 0; padding: var(--sp-4) var(--sp-5); border-left: 4px solid var(--c-primary); background: var(--c-bg-soft); }

.post-file { margin-top: var(--sp-8); }
.post-file a { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--c-line); font-size: var(--fs-sm); }
.post-file a:hover { box-shadow: inset 0 0 0 1px var(--c-primary); }
.post-file .ico { flex: none; width: 22px; height: 22px; color: var(--c-primary); }
.post-file b { word-break: break-all; }
.post-faq { margin-top: var(--sp-10); }
.post-faq h2 { font-size: var(--fs-h3); font-weight: var(--fw-heavy); color: var(--c-navy); margin-bottom: var(--sp-3); }
.post-faq details { border-top: 1px solid var(--c-line); }
.post-faq details:last-child { border-bottom: 1px solid var(--c-line); }
.post-faq summary { padding: var(--sp-4) 0; font-weight: var(--fw-bold); cursor: pointer; }
.post-faq summary::before { content: "Q. "; color: var(--c-primary); font-weight: var(--fw-heavy); }
.post-faq p { padding: 0 0 var(--sp-4) var(--sp-6); color: var(--c-text-2); }
.post-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-8); }
.post-tags a { display: inline-block; padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-pill); background: var(--c-line-soft); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-text-2); }
.post-tags a:hover { background: var(--c-primary-soft); color: var(--c-navy); }

.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-top: var(--sp-10); padding: var(--sp-5) 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.post-share .label { margin-right: var(--sp-2); font-weight: var(--fw-extrabold); color: var(--c-navy); }
.share-btn { display: inline-flex; align-items: center; gap: var(--sp-2); height: 40px; padding: 0 var(--sp-4) 0 var(--sp-2); border: 0; border-radius: var(--radius-pill); background: var(--c-line-soft); font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--c-text-2); }
.share-btn:hover { background: var(--c-primary-soft); }
.share-btn[hidden] { display: none; }
.share-btn .ico { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: #fff; color: var(--c-navy); }
.share-btn .sns { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 14px; font-weight: var(--fw-heavy); }
.sns-fb { background: #1877F2; } .sns-x { background: #000; } .sns-band { background: #06A03C; }
.share-msg { font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--tag-fund); }

.post-rate { margin-top: var(--sp-10); padding: var(--sp-8); border-radius: var(--radius); background: var(--c-bg-soft); }
.post-rate h2, .post-comments h2 { font-size: var(--fs-h3); font-weight: var(--fw-heavy); color: var(--c-navy); }
.rate-row { border: 0; margin: var(--sp-5) 0 0; padding: 0; }
.rate-row legend { padding: 0; margin-bottom: var(--sp-2); font-weight: var(--fw-bold); }
.rate-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-2); }
.rate-scale label { position: relative; }
.rate-scale input { position: absolute; opacity: 0; inset: 0; }
.rate-scale span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; border-radius: var(--radius-sm); background: #fff; box-shadow: inset 0 0 0 1px var(--c-line); font-size: var(--fs-h3); font-weight: var(--fw-heavy); color: var(--c-text-2); cursor: pointer; }
.rate-scale small { font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--c-text-3); }
.rate-scale input:checked + span { background: var(--c-primary); color: #fff; box-shadow: none; }
.rate-scale input:checked + span small { color: #fff; }
.rate-scale input:focus-visible + span { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.post-rate .btn { margin-top: var(--sp-6); }

.post-comments { margin-top: var(--sp-10); }
.post-comments h2 span { color: var(--c-primary); }
.post-comments form { margin-top: var(--sp-4); }
.post-comments .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.post-comments textarea { width: 100%; padding: var(--sp-4); border: 0; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--c-line); font: inherit; font-size: var(--fs-body); resize: vertical; }
.post-comments textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--c-primary); }
.post-comments textarea[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--c-event); }
.cm-foot { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-3); margin-top: var(--sp-2); }
.cm-err { margin-right: auto; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--c-event); }
.cm-count { font-size: var(--fs-xs); color: var(--c-text-3); }
.cm-list { margin-top: var(--sp-6); }
.cm-list li { padding: var(--sp-4) 0; border-top: 1px solid var(--c-line); }
.cm-list p { white-space: pre-line; }
.cm-list time { display: block; margin-top: var(--sp-1); font-size: var(--fs-xs); color: var(--c-text-4); }

.post-nav { margin-top: var(--sp-12); }
.post-nav ul { border-top: 2px solid var(--c-navy); }
.post-nav li { border-bottom: 1px solid var(--c-line); }
.post-nav li a, .post-nav li .none { display: flex; gap: var(--sp-6); padding: var(--sp-4) var(--sp-2); }
.post-nav .k { flex: none; width: 64px; font-size: var(--fs-sm); font-weight: var(--fw-extrabold); color: var(--c-navy); }
.post-nav .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-nav .none .t { color: var(--c-text-3); }
.post-nav li a:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.post-nav > .btn { display: flex; width: max-content; margin: var(--sp-8) auto 0; }
@media (max-width: 767px) {
    .post-wrap { padding-top: var(--sp-6); padding-bottom: var(--sp-12); }
    .post-head { margin-bottom: var(--sp-6); }
    .prose { font-size: 16px; }
    .post-share .label { flex-basis: 100%; }
    .post-rate { padding: var(--sp-5); }
    .rate-scale { gap: var(--sp-1); }
    .rate-scale span { min-height: 72px; padding: var(--sp-1) 2px; font-size: var(--fs-lead); }
    .rate-scale small { line-height: 1.2; text-align: center; }
    .post-nav .k { width: 52px; }
    .post-nav li a, .post-nav li .none { gap: var(--sp-3); }
}

/* ---------- 검색 · 약관 ---------- */
.search-big { display: flex; gap: var(--sp-2); padding: var(--sp-2); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 2px var(--c-primary); background: #fff; }
.search-big input { flex: 1; min-width: 0; padding: 0 var(--sp-4); border: 0; background: transparent; font: inherit; font-size: var(--fs-lead); outline: none; }
.search-big .btn { flex: none; }
.search-big .btn svg { width: 20px; height: 20px; }
.search-count { margin: var(--sp-8) 0 var(--sp-4); }
.search-list li { border-top: 1px solid var(--c-line); }
.search-list li:last-child { border-bottom: 1px solid var(--c-line); }
.search-list a { display: flex; gap: var(--sp-5); padding: var(--sp-5) 0; }
.search-list a:hover .t-h3 { text-decoration: underline; text-underline-offset: 3px; }
.search-list .thumb { flex: none; width: 160px; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; background: var(--c-bg-soft); }
.search-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-list .body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); min-width: 0; }
.policy-ver { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-8); font-weight: var(--fw-bold); }
.policy-ver select { height: 44px; padding: 0 var(--sp-3); border: 0; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--c-line); font: inherit; font-size: var(--fs-sm); max-width: 100%; background: #fff; }
.policy-wrap { max-width: calc(880px + var(--gutter) * 2); }
.policy-wrap .prose { font-size: 16px; }
.policy-date { margin-top: var(--sp-10); padding-top: var(--sp-5); border-top: 1px solid var(--c-line); font-weight: var(--fw-bold); color: var(--c-text-2); }
@media (max-width: 767px) {
    .search-big { border-radius: var(--radius); }
    .search-big input { font-size: var(--fs-body); padding: 0 var(--sp-2); }
    .search-big .btn { padding: 0 var(--sp-4); }
    .search-big .btn span { display: none; }
    .search-list a { gap: var(--sp-3); padding: var(--sp-4) 0; }
    .search-list .thumb { width: 104px; }
    .search-list .t-h3 { font-size: var(--fs-body); }
    .policy-ver { flex-wrap: wrap; }
}

/* ── 주력 콘텐츠 카드 (공단 의견 2026-11-23): 큰 배너와 같은 항목 3~5개를 한 줄로, 지금 배너의 카드 강조. 휴대폰은 세로로 쌓음 ── */
.hero-cards { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--gap); }
.hero-cards .card-video { transition: transform .2s, box-shadow .2s, opacity .2s, border-color .2s; }
.hero-cards .card-video:not([aria-current]) { opacity: .82; }
.hero-cards .card-video[aria-current] { border-color: #D9F35C; box-shadow: 0 0 0 3px rgba(217, 243, 92, .55), 0 12px 28px rgba(0, 50, 120, .28); transform: translateY(-4px); opacity: 1; }
.hero-cards .card-video:hover { opacity: 1; }
.hero-pager.has-cards .hero-dot { display: none; }
@media (min-width: 768px) and (max-width: 1199px) { .hero-cards { padding: 0; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); } }
/* 휴대폰 배치 3가지 — 관리자 > 메인 화면 관리 > 화면 배치 */
@media (max-width: 767px) {
    .hero-cards .card-video[aria-current] { transform: none; }
    /* 세로로 쌓기 */
    .hero-cards.m-stack { grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
    .hero-cards.m-stack .card-video { display: flex; align-items: center; flex-direction: row; border-width: 2px; }
    .hero-cards.m-stack .card-video .thumb { flex: none; width: 34%; aspect-ratio: 4 / 3; }
    .hero-cards.m-stack .card-video .name { flex: 1; text-align: left; font-size: var(--fs-body); padding: var(--sp-3) var(--sp-4); }
    /* 한 줄에 모두 (작게) */
    .hero-cards.m-row { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 6px; }
    .hero-cards.m-row .card-video { border-width: 2px; border-radius: 10px; }
    .hero-cards.m-row .card-video .thumb { aspect-ratio: 1 / 1; }
    .hero-cards.m-row .card-video .play { width: 24px; height: 24px; left: 4px; bottom: 4px; }
    .hero-cards.m-row .card-video .play svg { width: 10px; height: 10px; }
    .hero-cards.m-row .card-video .name { font-size: 12px; line-height: 1.3; padding: 6px 4px; word-break: keep-all; }
    /* 한 줄 + 옆으로 밀기 */
    .hero-cards.m-slide { display: flex; gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: var(--sp-6) calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 10px; }
    .hero-cards.m-slide::-webkit-scrollbar { display: none; }
    .hero-cards.m-slide > li { flex: 0 0 62%; scroll-snap-align: start; }
}

/* ── 영상갤러리 배치 3가지 (관리자 > 메인 화면 관리 > 화면 배치) ── */
.kind-tabs { display: flex; gap: var(--sp-2); margin: 0 0 var(--sp-6); }
.kind-tabs a { display: inline-flex; align-items: center; height: 38px; padding: 0 var(--sp-5); border-radius: var(--radius-pill); background: var(--c-line-soft); color: var(--c-text-2); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.kind-tabs a[aria-current] { background: var(--c-primary); color: #fff; }
.card-clip.is-tall .thumb, .board-grid.skin-video .card-clip.is-tall .thumb { aspect-ratio: 9 / 16; }
/* 원래 비율로 섞기 — 벽돌 쌓기 */
.board-grid.layout-mixed { display: block; columns: 4; column-gap: var(--gap); }
.board-grid.layout-mixed > li { break-inside: avoid; margin-bottom: var(--gap); }
@media (max-width: 1199px) { .board-grid.layout-mixed { columns: 3; } }
@media (max-width: 767px) { .board-grid.layout-mixed { columns: 2; column-gap: var(--sp-3); } .board-grid.layout-mixed > li { margin-bottom: var(--sp-3); } }
/* Shorts 줄 따로 */
.shorts-strip { margin-bottom: var(--sp-10); }
.strip-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.shorts-strip ul { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: var(--sp-3); scrollbar-width: thin; }
/* 칸 사이를 목록과 같은 간격으로, PC 5개 + 다음 카드 조금(넘겨 볼 수 있다는 표시) */
.shorts-strip li { flex: 0 0 calc((100% - 5 * var(--gap)) / 5.3); min-width: 150px; scroll-snap-align: start; }
@media (min-width: 768px) and (max-width: 1023px) { .shorts-strip li { flex-basis: calc((100% - 3 * var(--gap)) / 3.3); } }
.shorts-strip .card-post { height: 100%; }
.shorts-strip .thumb { position: relative; display: block; overflow: hidden; }
.shorts-strip .thumb img { width: 100%; height: 100%; object-fit: cover; }
.strip-title { margin-bottom: var(--sp-4); }
@media (max-width: 767px) { .shorts-strip ul { margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) var(--sp-2); gap: var(--gap); } .shorts-strip li { flex-basis: 42%; min-width: 0; } }

/* 주력 콘텐츠 — 완성된 배너 그림 한 장 (PC 1920×800 · 휴대폰 1080×1080 권장, 자르지 않고 그대로) */
.hero-slide:has(> .hero-full) { display: block; min-height: 0; }
.hero-full { display: block; border-radius: var(--radius-lg, 20px); overflow: hidden; box-shadow: 0 14px 34px rgba(0, 40, 110, .18); }
.hero-full img { display: block; width: 100%; height: auto; }
.hero-full:focus-visible { outline: 3px solid #D9F35C; outline-offset: 3px; }
@media (max-width: 767px) { .hero-full { border-radius: var(--radius); } }

/* 체험&참여 카드 1~4개 (2개는 원래 시안 비율, 3개 이상은 같은 너비·작게) */
.feature-grid.n-1 { grid-template-columns: minmax(0, 1fr); }
.feature-grid.n-3 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); } /* 첫 카드가 가장 중요 — 2:1:1 (2026-11-23) */
.feature-grid.n-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-grid.n-3 .card-feature:not(:first-child), .feature-grid.n-4 .card-feature { min-height: 300px; padding: var(--sp-8) var(--sp-6); }
.feature-grid.n-3 .card-feature:not(:first-child) .t-display, .feature-grid.n-4 .t-display { font-size: 26px; }
.feature-grid.n-3 .card-feature:not(:first-child) .desc, .feature-grid.n-4 .desc { max-width: none; font-size: var(--fs-body); }
.feature-grid.n-3 .card-feature:not(:first-child) .art, .feature-grid.n-4 .card-feature .art { width: 38%; max-width: 160px; right: var(--sp-4); bottom: var(--sp-4); top: auto; transform: none; }
@media (max-width: 1199px) {
    .feature-grid.n-3, .feature-grid.n-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-grid.n-3 > :first-child { grid-column: 1 / -1; } /* 태블릿: 첫 카드 한 줄 전체, 나머지 2개 */
}
@media (max-width: 767px) { .feature-grid.n-1, .feature-grid.n-3, .feature-grid.n-4 { grid-template-columns: minmax(0, 1fr); } .feature-grid.m-stack.n-3 > :first-child { grid-column: auto; } }

/* 체험&참여 — 완성된 카드 그림 한 장 (카드 칸을 꽉 채움, 가장자리는 잘릴 수 있음) */
.card-feature.is-full { display: block; padding: 0; background: #eef2f8; }
.card-feature.is-full picture, .card-feature.is-full img { display: block; width: 100%; height: 100%; }
.card-feature.is-full img { position: absolute; inset: 0; object-fit: cover; }
.card-feature.is-full:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; }
/* 체험&참여 — 휴대폰 2개씩 (관리자 화면 배치에서 고름) */
@media (max-width: 767px) {
    .feature-grid.m-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: var(--sp-3); }
    .feature-grid.m-grid2.n-1 { grid-template-columns: minmax(0, 1fr) !important; }
    .feature-grid.m-grid2 .card-feature { min-height: 210px; padding: var(--sp-4); gap: var(--sp-2); border-radius: var(--radius); }
    .feature-grid.m-grid2 .card-feature .t-display { font-size: 18px; }
    .feature-grid.m-grid2 .card-feature .sub { font-size: 12px; }
    .feature-grid.m-grid2 .card-feature .desc { display: none; }
    .feature-grid.m-grid2 .card-feature .btn { min-height: 36px; padding: 0 var(--sp-3); font-size: 13px; }
    .feature-grid.m-grid2 .card-feature .btn .ico { width: 14px; height: 14px; }
    /* 그림은 글자를 가리지 않게 제목과 단추 사이 오른쪽에 */
    .feature-grid.m-grid2 .card-feature .art { position: static; order: 2; align-self: flex-end; width: 56%; max-width: 96px; margin-top: auto; transform: none; }
    .feature-grid.m-grid2 .card-feature .btn { order: 3; margin-top: var(--sp-2); align-self: stretch; justify-content: space-between; white-space: nowrap; gap: 4px; }
    .feature-grid.m-grid2 .card-feature .tag, .feature-grid.m-grid2 .card-feature h3 { order: 1; }
    .feature-grid.m-grid2 .card-feature .tag { font-size: 11px; }
    /* 휴대폰: 완성 그림은 자르지 않고 그림 비율 그대로 */
    .feature-grid .card-feature.is-full { min-height: 0; padding: 0; }
    .feature-grid .card-feature.is-full img { position: static; height: auto; }
}

/* 큰 배너 이전·다음 화살표 (멈춤 단추 위아래 / 휴대폰은 양옆) */
.hero-nav { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .35); color: #fff; cursor: pointer; }
.hero-nav:hover, .hero-toggle:hover { background: rgba(255, 255, 255, .55); }
.home-hero.tone-light .hero-nav { background: rgba(0, 38, 100, .45); }
.hero-nav:focus-visible, .hero-toggle:focus-visible { outline: 3px solid #D9F35C; outline-offset: 2px; }
.hero-nav .i-prev, .hero-nav .i-next { width: 10px; height: 10px; border: solid #fff; border-width: 0 0 3px 3px; transform: rotate(45deg); margin-left: 4px; }
.hero-nav .i-next { transform: rotate(-135deg); margin: 0 4px 0 0; }
.hero-pager .hero-nav[data-hero-prev] { order: -1; }
@media (min-width: 768px) { .hero-pager .hero-nav .i-prev { transform: rotate(135deg); margin: 4px 0 0; } .hero-pager .hero-nav .i-next { transform: rotate(-45deg); margin: 0 0 4px; } }
@media (max-width: 767px) { .hero-nav { width: 40px; height: 40px; } }

/* 배경 사진만 쓰는 배너: 휴대폰에서 문구와 카드 사이에 사진이 보일 자리 (그림이 있는 배너와 높이를 비슷하게) */
.hero-art-space { min-height: 1px; }
@media (max-width: 767px) { .hero-art-space { height: 58vw; } }

/* 큰 배너 부드럽게 넘김: 바탕은 겹쳐서 서서히, 글자·그림은 살짝 올라오며 나타남 (동작 줄이기 설정이면 없음) */
.home-hero { position: relative; isolation: isolate; }
.hero-bgfade { position: absolute; inset: 0; z-index: -1; pointer-events: none; transition: opacity .9s ease; }
.home-hero > .container { position: relative; }
.hero-slide:not([hidden]) .hero-copy, .hero-slide:not([hidden]) .hero-art, .hero-slide:not([hidden]) .hero-full { animation: heroIn .8s ease both; }
.hero-slide:not([hidden]) .hero-art { animation-delay: .1s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero-cards .card-video { transition: transform .4s ease, box-shadow .4s ease, opacity .4s ease, border-color .4s ease; }
@media (prefers-reduced-motion: reduce) { .hero-slide .hero-copy, .hero-slide .hero-art, .hero-slide .hero-full { animation: none !important; } .hero-bgfade { display: none; } }

/* 큰 배너 높이 맞춤: 모든 배너를 같은 자리에 겹쳐 두고 가장 큰 배너(첫 배너) 높이로 — 넘어갈 때 아래 카드가 들썩이지 않게 (PC·태블릿·휴대폰, 2026-11-23) */
.hero-slides { display: grid; }
.hero-slides > .hero-slide { grid-area: 1 / 1; }
.hero-slides > .hero-slide[hidden] { display: grid; visibility: hidden; pointer-events: none; }
.hero-slides > .hero-slide:has(> .hero-full)[hidden] { display: block; }
.hero-slides > .hero-slide[hidden] * { animation: none !important; }

/* 체험&참여 휴대폰 "세로로 쌓기": 카드 안 빈 공간 줄이기 (그림은 오른쪽 아래, 글자·단추는 왼쪽) */
@media (max-width: 767px) {
    .feature-grid.m-stack .card-feature:not(.is-full) { min-height: 0; padding: var(--sp-6) var(--sp-5); padding-right: 38%; gap: var(--sp-3); }
    .feature-grid.m-stack .card-feature:not(.is-full) .btn { margin-top: var(--sp-2); }
    .feature-grid.m-stack .card-feature .art { width: 34%; max-width: 150px; right: var(--sp-3); bottom: var(--sp-3); top: auto; transform: none; }
    .feature-grid.m-stack .card-feature .desc { max-width: none; }
}

