/* UNOC 2028 C안 — 기관 누리집형(부처형)
 * 범정부 디자인 시스템(KRDS)의 기관 누리집 문법(공식 누리집 띠 · 대메뉴 · 메인 비주얼 · 바로가기 · 탭 게시판 · 배너존 · 관련 기관)을 따르고,
 * 색 · 글꼴 · 간격 · 모서리 · 버튼 · 아이콘은 EpicSemtle DS 2026 토큰을 그대로 쓴다. 움직임은 최소로 둔다. */

:root, [data-theme] {
  --page: var(--color-brand-role-bg-page);
  --gray: var(--color-brand-role-bg-gray-layer-2);
  --gray-2: var(--color-brand-role-bg-gray-layer-3);
  --ink: var(--color-layout-text-title);
  --body: var(--color-layout-text-body);
  --cap: var(--color-layout-text-caption);
  --line: var(--color-layout-stroke-subtle);
  --brand: var(--color-brand-role-fill);
  --brand-text: var(--color-brand-role-text);
  --brand-subtle: var(--color-brand-role-subtle);
  --f-title: var(--font-family-title);
  --f-base: var(--font-family-base);
  --f-num: var(--font-family-numeric);
  --wrap: var(--responsive-page-content-max-width);
  --pad: var(--responsive-page-min-gutter);
  --shadow: 0 12px 32px -12px rgb(0 31 64 / .18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--page); }
body { background: var(--page); color: var(--body); font-family: var(--f-base); font-size: var(--responsive-font-size-body-16); line-height: var(--responsive-line-height-body-16); -webkit-font-smoothing: antialiased; word-break: keep-all; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--color-brand-role-input-stroke-focus); outline-offset: 2px; border-radius: var(--corner-2xs); }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 8px 16px; background: var(--brand); color: #fff; border-radius: var(--corner-m); }
.skip:focus { top: 8px; }

/* ── 공식 누리집 띠 ── */
.gov { background: var(--gray); border-bottom: 1px solid var(--line); font-size: var(--responsive-font-size-caption); color: var(--body); }
.gov__in { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.gov__id { display: flex; align-items: center; gap: 8px; }
.gov__mark { width: 18px; height: 12px; border-radius: 2px; background: linear-gradient(180deg, #cd2e3a 0 50%, #0047a0 50% 100%); box-shadow: 0 0 0 1px var(--line); } /* 태극 색 약식 표시(연출 전용) */
.gov__util { display: flex; align-items: center; gap: 20px; }
.gov__lang { display: flex; gap: 10px; }
.gov__lang a { color: var(--cap); } .gov__lang a[aria-current] { color: var(--ink); font-weight: 700; }

/* ── 헤더 · 대메뉴 ── */
.hd { position: sticky; top: 0; z-index: 40; background: var(--page); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.hd.is-stuck { box-shadow: 0 6px 20px -12px rgb(0 0 0 / .25); }
.hd__in { display: flex; align-items: center; height: 84px; gap: var(--responsive-spacing-40); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__sym { width: 44px; height: 44px; }
.brand__txt { display: grid; line-height: 1.2; }
.brand__txt b { font-family: var(--f-title); font-weight: 800; font-size: var(--responsive-font-size-heading-4); color: var(--ink); letter-spacing: -.01em; }
.brand__txt small { font-size: var(--responsive-font-size-micro); color: var(--cap); letter-spacing: .02em; }
.gnb { flex: 1; display: flex; justify-content: center; }
.gnb > ul { display: flex; gap: var(--responsive-spacing-8); }
.gnb > ul > li { position: relative; }
.gnb > ul > li > a { display: block; padding: 0 22px; line-height: 84px; font-family: var(--f-title); font-weight: 700; font-size: var(--responsive-font-size-heading-5, 18px); color: var(--ink); position: relative; }
.gnb > ul > li > a::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 3px; background: var(--brand); transform: scaleX(0); transition: transform .25s; }
.gnb > ul > li:hover > a, .gnb > ul > li:focus-within > a { color: var(--brand-text); }
.gnb > ul > li:hover > a::after, .gnb > ul > li:focus-within > a::after { transform: scaleX(1); }
.gnb__sub { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 6px); min-width: 180px; padding: 12px; background: var(--page); border: 1px solid var(--line); border-radius: var(--corner-l); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.gnb > ul > li:hover .gnb__sub, .gnb > ul > li:focus-within .gnb__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnb__sub a { display: block; padding: 9px 12px; border-radius: var(--corner-s); font-size: var(--responsive-font-size-body-15, 15px); color: var(--body); white-space: nowrap; }
.gnb__sub a:hover { background: var(--brand-subtle); color: var(--brand-text); }
.hd__util { display: flex; gap: var(--responsive-spacing-16); flex: none; }

/* ── 메인 비주얼 ── */
.mv { position: relative; height: 560px; overflow: hidden; background: #0b3a6b; color: #fff; }
.mv__slides, .mv__slide { position: absolute; inset: 0; }
.mv__slide { opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.mv__slide.is-on { opacity: 1; visibility: visible; }
.mv__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.04); transition: transform 7s ease-out; }
.mv__slide.is-on .mv__img { transform: scale(1); }
.mv__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 31 64 / .72) 0%, rgb(0 31 64 / .45) 38%, rgb(0 31 64 / 0) 70%); }
.mv__copy { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-bottom: 56px; }
.mv__kicker { font-size: var(--responsive-font-size-body-16); font-weight: 600; letter-spacing: .02em; color: #cfe6ff; margin-bottom: var(--responsive-spacing-16); }
.mv__title { font-family: var(--f-title); font-weight: 400; font-size: var(--responsive-font-size-display-medium, 52px); line-height: 1.22; letter-spacing: -.02em; }
.mv__title b { font-weight: 800; }
.mv__desc { margin: var(--responsive-spacing-20) 0 var(--responsive-spacing-32); font-size: var(--responsive-font-size-description-18, 18px); line-height: 1.6; color: rgb(255 255 255 / .9); font-weight: 300; }
.mv__slide:not(.is-on) .mv__copy > * { opacity: 0; transform: translateY(16px); }
.mv__copy > * { transition: opacity .7s .25s, transform .7s .25s; }
.mv__bar { position: absolute; left: 0; right: 0; bottom: 92px; z-index: 3; }
.mv__ctrl { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 16px; border-radius: var(--corner-full); background: rgb(0 18 38 / .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: var(--responsive-font-size-caption); }
.mv__count { font-family: var(--f-num); margin-right: 6px; color: rgb(255 255 255 / .7); } .mv__count b { color: #fff; }
.mv__btn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; color: #fff; }
.mv__btn:hover { background: rgb(255 255 255 / .16); }
.mv__prog { width: 72px; height: 2px; margin: 0 8px; background: rgb(255 255 255 / .3); border-radius: 2px; overflow: hidden; }
.mv__prog i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }

/* 개막까지 · 행사 기본정보 카드 */
.dd { position: absolute; z-index: 3; top: 50%; right: max(var(--pad), calc((100vw - var(--wrap)) / 2)); transform: translateY(calc(-50% - 28px)); width: 300px; padding: 28px; border-radius: var(--corner-2xl); color: var(--body); }
.dd__lab { font-size: var(--responsive-font-size-label); color: var(--cap); }
.dd__num { font-family: var(--f-num); font-weight: 700; font-size: 44px; line-height: 1.1; color: var(--ink); letter-spacing: -.02em; margin: 2px 0 18px; }
.dd__num b { color: var(--brand-text); }
.dd__facts { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.dd__facts div { display: flex; justify-content: space-between; gap: 12px; font-size: var(--responsive-font-size-body-15, 15px); }
.dd__facts dt { display: flex; align-items: center; gap: 6px; color: var(--cap); }
.dd__facts dt span { font-size: 18px; color: var(--brand-text); }
.dd__facts dd { color: var(--ink); font-weight: 600; }

/* ── 바로가기 ── */
.quick { position: relative; z-index: 4; margin-top: -56px; }
.quick__list { display: grid; grid-template-columns: repeat(8, 1fr); border-radius: var(--corner-2xl); padding: 20px 12px; }
.quick__list a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 4px; border-radius: var(--corner-l); font-size: var(--responsive-font-size-body-15, 15px); font-weight: 600; color: var(--ink); text-align: center; transition: background .2s, color .2s; }
.quick__ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--brand-subtle); color: var(--brand-text); transition: background .2s, color .2s, transform .2s; }
.quick__list a:hover { color: var(--brand-text); }
.quick__list a:hover .quick__ic { background: var(--brand); color: #fff; transform: translateY(-3px); }
.quick__list li + li a { position: relative; }

/* ── 공통 섹션 ── */
.sec { padding-block: var(--responsive-spacing-64, 64px); }
.sec__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--responsive-spacing-24); }
.sec__t { font-family: var(--f-title); font-weight: 800; font-size: var(--responsive-font-size-heading-2); color: var(--ink); letter-spacing: -.01em; }
.more { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: 18px; color: var(--body); transition: background .2s, color .2s, border-color .2s; }
.more:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ── 알림 게시판 ── */
.board { padding-top: var(--responsive-spacing-64, 64px); }
.board__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--responsive-spacing-40); align-items: stretch; }
.tabs__head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--ink); }
.tabs__list { display: flex; gap: var(--responsive-spacing-32); }
.tabs__list [role="tab"] { position: relative; padding: 0 0 14px; font-family: var(--f-title); font-weight: 700; font-size: var(--responsive-font-size-heading-3); color: var(--cap); }
.tabs__list [aria-selected="true"] { color: var(--ink); }
.tabs__list [aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; background: var(--brand); }
.tabs__head .more { margin-bottom: 10px; }
.list li { border-bottom: 1px solid var(--line); }
.list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 22px 4px; }
.list a:hover .list__t { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
.tag { font-style: normal; font-size: var(--responsive-font-size-caption); font-weight: 600; padding: 3px 10px; border-radius: var(--corner-full); background: var(--brand-subtle); color: var(--brand-text); }
.tag--p { background: var(--gray-2); color: var(--body); }
.list__t { font-size: var(--responsive-font-size-body-17, 17px); font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list time { font-family: var(--f-num); font-size: var(--responsive-font-size-body-15, 15px); color: var(--cap); }

.about { display: flex; flex-direction: column; align-items: flex-start; padding: 32px; border-radius: var(--corner-2xl); background: var(--gray); }
.about__lab { font-size: var(--responsive-font-size-label); font-weight: 700; color: var(--brand-text); margin-bottom: 12px; }
.about__t { font-family: var(--f-title); font-weight: 800; font-size: var(--responsive-font-size-heading-3); line-height: 1.35; color: var(--ink); }
.about__d { margin: 14px 0 24px; font-size: var(--responsive-font-size-body-15, 15px); line-height: 1.65; color: var(--body); flex: 1; }

/* ── 역대 UN해양총회 ── */
.history { background: var(--gray); }
.his { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--responsive-page-card-gap); }
.his__item { display: flex; flex-direction: column; background: var(--page); border-radius: var(--corner-2xl); overflow: hidden; border: 1px solid var(--line); padding-bottom: 22px; }
.his__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; margin: 0 0 18px; background: var(--gray-2); }
.his__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.his__item:hover .his__img img { transform: scale(1.05); }
.his__img figcaption { position: absolute; right: 8px; bottom: 8px; font-size: 11px; color: #fff; background: rgb(0 0 0 / .45); padding: 2px 8px; border-radius: var(--corner-xs); }
.his__img--next { display: grid; place-items: center; background: linear-gradient(135deg, #0063cc, #001f40); }
.his__img--next span { font-family: var(--f-num); font-weight: 800; font-size: 48px; color: #fff; letter-spacing: -.02em; }
.his__item > :not(.his__img) { margin-inline: 22px; }
.his__no { font-size: var(--responsive-font-size-label); font-weight: 700; color: var(--brand-text); }
.his__item h3 { margin-top: 4px; font-family: var(--f-title); font-weight: 700; font-size: var(--responsive-font-size-heading-4); color: var(--ink); }
.his__meta { margin-top: 6px; font-size: var(--responsive-font-size-caption); color: var(--cap); }
.his__d { margin-top: 10px; font-size: var(--responsive-font-size-body-15, 15px); line-height: 1.55; color: var(--body); flex: 1; }
.his__link { margin-top: 16px; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-size: var(--responsive-font-size-body-15, 15px); font-weight: 600; color: var(--brand-text); }
.his__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.his__item--next { border-color: var(--brand); }

/* ── 배너존 ── */
.banners__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--responsive-page-card-gap); }
.bn { position: relative; display: flex; align-items: flex-end; min-height: 220px; border-radius: var(--corner-2xl); overflow: hidden; color: #fff; isolation: isolate; }
.bn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.bn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(0 31 64 / .78), rgb(0 31 64 / .2)); }
.bn:hover img { transform: scale(1.05); }
.bn__txt { display: grid; gap: 6px; padding: 28px 32px; max-width: 80%; }
.bn__txt em { font-style: normal; font-size: var(--responsive-font-size-label); font-weight: 700; color: #cfe6ff; }
.bn__txt b { font-family: var(--f-title); font-size: var(--responsive-font-size-heading-3); font-weight: 800; }
.bn__txt span { font-size: var(--responsive-font-size-body-15, 15px); color: rgb(255 255 255 / .88); }
.bn__go { position: absolute; right: 24px; bottom: 28px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: rgb(255 255 255 / .18); transition: background .2s, color .2s; }
.bn:hover .bn__go { background: #fff; color: var(--brand-text); }

/* ── 관련 기관 ── */
.orgs { border-top: 1px solid var(--line); background: var(--page); }
.orgs__in { display: flex; align-items: center; gap: var(--responsive-spacing-32); padding-block: 22px; }
.orgs__t { flex: none; font-size: var(--responsive-font-size-body-16); font-weight: 700; color: var(--ink); }
.orgs__list { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.orgs__list a { display: inline-flex; align-items: center; gap: 4px; font-size: var(--responsive-font-size-body-15, 15px); color: var(--body); }
.orgs__list a:hover { color: var(--brand-text); }

/* ── 푸터 ── */
.ft { background: var(--gray); border-top: 1px solid var(--line); padding-block: 40px 48px; font-size: var(--responsive-font-size-caption); color: var(--cap); }
.ft__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 24px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.ft__policy { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: var(--responsive-font-size-body-15, 15px); color: var(--body); }
.ft__policy b { color: var(--brand-text); }
.ft__org b { color: var(--ink); margin-right: 8px; }
.ft__copy { margin-top: 8px; }

/* ── 반응형 ── */
@media (max-width: 1199px) {
  .gnb > ul > li > a { padding: 0 14px; }
  .hd__util .epic-button__label { display: none; }
  .dd { display: none; }
  .quick__list { grid-template-columns: repeat(4, 1fr); row-gap: 8px; }
  .his { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .gov__util li:first-child { display: none; }
  .hd__in { height: 64px; gap: 12px; }
  .brand__sym { width: 36px; height: 36px; }
  .brand__txt small { display: none; }
  .gnb { display: none; }
  .hd__util { margin-left: auto; gap: 4px; }
  .mv { height: 480px; }
  .mv__title { font-size: 34px; }
  .mv__desc br { display: none; }
  .mv__bar { bottom: 84px; }
  .board__grid, .banners__grid { grid-template-columns: 1fr; }
  .his { grid-template-columns: 1fr; }
  .orgs__in { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ft__top { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* D-Day 카드 · 퀵메뉴 바: 에셈DS 글라스 middle(라이트 흰색 60%) — 사진이 은은히 비치는 밝은 유리 */
.dd.epic-glass, .quick__list.epic-glass { position: absolute; }
.quick__list.epic-glass { position: relative; }
.dd .dd__facts { border-top-color: rgb(16 24 40 / .12); }
