/* 기수엮 — 먹색 바탕 위 크림색 선 하나로 그리는 2색 체계
   레이아웃: 첫 화면은 물결문 부산 지도, 하위 페이지는 물결띠 머리 + 한 단 본문 */
:root {
  --sea: #3b3631;        /* 바다, 페이지 바탕 */
  --land: #4c463f;       /* 뭍, 카드 바탕 */
  --deep: #2f2b27;       /* 머리띠, 바닥글 */
  --line: #efe5d2;       /* 문양 선, 주요 글자 */
  --soft: #d6cbb6;       /* 보조 글자 */
  --muted: #a99f8d;      /* 흐린 표식 */
  --ink: #3a3530;        /* 크림 위 글자 */
  --display: 'Nanum Myeongjo', 'Noto Serif KR', 'Apple SD Gothic Neo', serif;
  --body: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sea);
  color: var(--line);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
}
a { color: var(--line); }
a:hover { color: #ffffff; }
:focus-visible { outline: 2px solid var(--line); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.25; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-size: 13px; letter-spacing: .32em; color: var(--soft); }
.rule { display: flex; gap: 6px; }
.rule span { height: 3px; background: var(--line); }
.rule span:nth-child(1) { width: 64px; } .rule span:nth-child(2) { width: 16px; } .rule span:nth-child(3) { width: 6px; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px; border-radius: 23px;
  font-size: 15px; font-weight: 500; letter-spacing: .06em; text-decoration: none;
  border: 2px solid var(--line); background: transparent; color: var(--line); cursor: pointer; font-family: var(--body);
}
.btn.fill { background: var(--line); color: var(--ink); }
.btn.fill:hover { background: #ffffff; color: var(--ink); }

/* 상단 */
.top {
  position: absolute; left: 0; right: 0; top: 0; z-index: 30;
  padding-block: 24px;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3vw, 36px); line-height: 1.2; letter-spacing: .2em; text-decoration: none; display: inline-flex; align-items: baseline; gap: 10px; }
.top .btn { min-height: 44px; background: var(--land); }

/* 첫 화면 지도 */
.map-hero { position: relative; background: var(--sea); }
.map-hero .frame { position: absolute; inset: 14px; border: 2px solid rgba(239,229,210,.55); pointer-events: none; z-index: 25; }
.map-hero .frame::after { content: ''; position: absolute; inset: 5px; border: 1px solid rgba(239,229,210,.25); }
.map-box { position: relative; height: max(640px, 100svh); overflow: hidden; touch-action: pan-y; }
.map-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-text {
  position: absolute; z-index: 12; left: max(6%, 28px); top: 104px; width: min(330px, 30%);
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; pointer-events: none;
}
.hero-text > * { pointer-events: auto; }
.hero-text .eyebrow, .hero-text .lead { background: rgba(76,70,63,.88); padding: 2px 8px; }
.hero-text h1 { font-size: clamp(3.2rem, 7vw, 5.8rem); letter-spacing: .08em; line-height: 1.05; text-shadow: 0 0 18px var(--land); }
.hero-text .lead { white-space: nowrap; font-family: var(--display); font-size: 17px; line-height: 1.8; color: #e4dac7; }

.marker {
  position: absolute; z-index: 15; transform: translate(-50%, -24px);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; color: var(--line); font-family: var(--body);
}
.marker .seal {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--sea); color: var(--line); border: 2px solid var(--line);
  box-shadow: 0 0 0 4px var(--sea), 0 0 0 6px rgba(239,229,210,.35);
  font-family: var(--display); font-weight: 800; font-size: 21px; transition: background .2s, color .2s, box-shadow .2s;
}
.marker .seal::before { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--line); animation: pulse 2.6s ease-out infinite; }
.marker .tag { font-size: 13px; font-weight: 700; letter-spacing: .04em; background: var(--line); color: var(--ink); padding: 3px 11px; border-radius: 12px; white-space: nowrap; }
.marker:hover .seal, .marker:focus-visible .seal, .marker.on .seal { background: var(--line); color: var(--ink); box-shadow: 0 0 0 4px var(--sea), 0 0 0 6px var(--line); }
.marker.soon .seal { border-style: dashed; color: var(--muted); border-color: var(--muted); }
.marker.soon .seal::before { display: none; }
.marker.soon .tag { background: var(--land); color: var(--soft); border: 1px dashed var(--muted); }
.marker.soon .tag::after { content: '(준비중)'; font-weight: 400; }
@keyframes pulse { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

.legend {
  position: absolute; z-index: 20; right: max(5%, 28px); top: 96px; width: min(330px, 86%);
  padding: 18px 20px; background: rgba(59,54,49,.95); border: 2px solid var(--line);
  outline: 1px solid rgba(239,229,210,.4); outline-offset: 4px;
  display: flex; flex-direction: column; gap: 8px; min-height: 0;
}
.legend .tagline { font-size: 12px; letter-spacing: .3em; color: var(--soft); }
.legend h2 { font-size: 22px; }
.legend .story { font-size: 14px; line-height: 1.7; color: #d8cebb; }
.legend .desc { font-size: 14px; line-height: 1.7; color: #f6eedd; font-weight: 500; }
.legend .btn { align-self: flex-start; margin-top: 4px; min-height: 44px; }

/* 첫 화면 아래 */
.band { padding-block: 88px; }
.band.deep { background: var(--deep); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.story-grid h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-top: 14px; }
.story-grid p { margin-top: 16px; color: var(--soft); max-width: 36em; }
.facts { display: grid; gap: 0; border: 2px solid var(--line); }
.facts div { padding: 18px 22px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.facts div + div { border-top: 1px solid rgba(239,229,210,.35); }
.facts b { font-family: var(--display); font-size: 26px; font-weight: 800; }
.facts span { font-size: 13px; color: var(--soft); letter-spacing: .08em; }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 32px; }
.menu-card {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 16px; align-items: center;
  padding: 18px; border: 2px solid rgba(239,229,210,.5); text-decoration: none; background: var(--sea);
}
.menu-card:hover { border-color: var(--line); }
.menu-card .seal { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 22px; }
.menu-card b { font-size: 16px; }
.menu-card span { font-size: 13px; color: var(--soft); }
.menu-card.soon { border-style: dashed; color: var(--muted); }
.menu-card.soon .seal { border-style: dashed; border-color: var(--muted); }

.foot { background: var(--deep); padding-block: 40px; font-size: 13px; color: var(--soft); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.foot-brand { display: grid; gap: 4px; }
.foot strong { color: var(--line); font-family: var(--display); font-size: 28px; line-height: 1.3; letter-spacing: .14em; margin-bottom: 4px; }

.foot-menu { display: grid; grid-template-columns: repeat(4, max-content); gap: 4px 24px; margin-left: auto; }
.foot-menu a, .foot-menu > span { display: flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; }
.foot-menu a:hover, .foot-menu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.foot-menu .soon { color: var(--muted); }
.foot-menu small { font-size: 10px; }

/* 서브페이지의 맨 위로 버튼 */
.back-to-top { position: fixed; z-index: 40; right: max(24px, env(safe-area-inset-right, 0px)); bottom: max(24px, env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: var(--deep); color: var(--line); cursor: pointer; }
.back-to-top:hover { background: var(--line); color: var(--deep); }
.back-to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body[data-page] .foot { padding-bottom: 96px; }

/* 하위 페이지 */
.page-head { position: relative; background: var(--deep); padding-top: 104px; overflow: hidden; }
.page-head canvas { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 150px; display: block; }
.page-head .wrap { position: relative; z-index: 2; display: flex; gap: 28px; align-items: flex-start; padding-bottom: 170px; flex-wrap: wrap; }
.page-head .big-seal { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--line); box-shadow: 0 0 0 6px var(--deep), 0 0 0 8px rgba(239,229,210,.4); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 44px; flex: none; }
.page-head .meta { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 320px; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.page-head .story { color: var(--soft); width: 100%; max-width: none; min-height: 3.4em; word-break: keep-all; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 18px; border-bottom: 1px solid rgba(239,229,210,.25); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(239,229,210,.45); border-radius: 20px; font-size: 14px; text-decoration: none; }
.chip.here { background: var(--line); color: var(--ink); border-color: var(--line); }
.chip.soon { border-style: dashed; color: var(--muted); }

.section { padding-block: 56px; border-bottom: 1px solid rgba(239,229,210,.18); }
.section:last-child { border-bottom: 0; }
.section > h2 { font-size: clamp(1.5rem, 3vw, 2rem); display: flex; align-items: center; gap: 14px; }
.section > h2::before { content: ''; width: 28px; height: 14px; border: 2px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; flex: none; }
.section > .intro.greeting { max-width: 52em; font-size: 18px; line-height: 1.9; word-break: keep-all; }
.section > .intro { margin-top: 12px; color: var(--soft); max-width: 40em; }
.grid { display: grid; gap: 16px; margin-top: 28px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--land); border: 1px solid rgba(239,229,210,.3); padding: 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card h3 { font-size: 20px; }
.card .sub { font-size: 13px; color: var(--soft); letter-spacing: .06em; }
.card p { color: #e4dac7; font-size: 15px; }
.card.soon { border-style: dashed; background: transparent; }
.person { display: flex; align-items: center; gap: 14px; }
.person .ring { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 18px; flex: none; }
.lead-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.lead-card .person { align-items: flex-start; }
.lead-card .person > div { flex: 1; min-width: 0; }
.lead-card .sub { display: block; min-height: 3.4em; }
.names { display: flex; flex-wrap: wrap; gap: 8px; }
.names span { padding: 2px 12px; border: 1px solid rgba(239,229,210,.5); border-radius: 14px; font-size: 15px; }
.list { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 44em; }
.list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.list li::before { content: ''; width: 14px; height: 7px; margin-top: 10px; border: 2px solid var(--line); border-bottom: 0; border-radius: 7px 7px 0 0; }

.timeline { margin-top: 32px; display: grid; gap: 40px; }
.year { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; }
.year > h3 { font-size: 34px; color: var(--soft); }
.year ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.year li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 16px; padding-block: 14px; border-top: 1px solid rgba(239,229,210,.22); align-items: baseline; }
.year li .m { font-variant-numeric: tabular-nums; color: var(--soft); font-size: 14px; }
.year li b { font-size: 16px; }
.year li p { font-size: 14px; color: var(--soft); }
.year li .n { font-size: 13px; color: var(--soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.kind { display: inline-block; font-size: 11px; letter-spacing: .1em; padding: 0 8px; border: 1px solid rgba(239,229,210,.4); border-radius: 10px; margin-left: 8px; color: var(--soft); vertical-align: 2px; }

.notice { margin-top: 28px; padding: 22px 24px; border: 2px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.notice p { color: #e4dac7; max-width: 40em; }

form.inquiry { position: relative; margin-top: 28px; display: grid; gap: 16px; max-width: 640px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: var(--soft); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--line); background: var(--land); border: 1px solid rgba(239,229,210,.45); padding: 12px 14px; min-height: 46px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.form-msg { padding: 14px 16px; border: 1px dashed var(--line); color: #e4dac7; }

.soon-box { margin-top: 28px; padding: 32px; border: 2px dashed var(--muted); text-align: left; display: grid; gap: 14px; }
.soon-box b { font-family: var(--display); font-size: 22px; }

@media (max-width: 820px) {
  .foot-menu { width: 100%; margin-left: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
  .top { position: relative; background: var(--sea); }
  .hero-text { position: relative; left: auto; top: auto; width: auto; padding: 8px max(20px, env(safe-area-inset-left, 0px)) 24px; }
  .hero-text .lead { font-size: clamp(10px, 3.2vw, 17px); }
  .map-box { height: 560px; }
  .legend { position: relative; right: auto; bottom: auto; top: auto; width: auto; margin: 16px max(20px, env(safe-area-inset-right, 0px)) 24px; min-height: 0; }
  .map-hero .frame { display: none; }
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .page-head { padding-top: 24px; }
  .year { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .year li { grid-template-columns: 64px minmax(0, 1fr); }
  .year li .n { grid-column: 2; }
  .marker .tag { font-size: 12px; padding: 2px 8px; }
  .marker .seal { width: 40px; height: 40px; font-size: 18px; }
}
@media (max-width: 480px) {
  .marker .tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .marker .seal::before { animation: none; }
}

/* 좁은 화면에서는 지도를 옆으로 밀어 볼 수 있게 합니다 */
.map-scroll { position: relative; }
@media (max-width: 820px) {
  .map-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .map-scroll .map-box { min-width: 820px; touch-action: pan-x pan-y; }
  .marker .seal { width: 44px; height: 44px; }
}
@media (max-width: 480px) { .marker .tag { display: inline-block; } }

/* 협업문의 전송 상태 */
.inquiry-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.inquiry-note { color: var(--soft); font-size: 13px; }
.inquiry .btn:disabled { opacity: .6; cursor: wait; }
.form-msg[data-status="success"] { border-style: solid; }
.form-msg[data-status="error"] { border-style: solid; border-width: 2px; }

/* 행사: 다가오는 행사는 입장권 모양 날짜 띠, 지난 행사는 얇은 띠와 같은 모양의 팝업 */
.poster-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.poster-btn img { display: block; width: 100%; height: auto; }
.ec-list { margin-top: 28px; display: grid; gap: 24px; }
.ec { position: relative; display: grid; grid-template-columns: 210px minmax(0, 1fr) 300px; background: var(--land); border: 2px solid var(--line); }
.ec.no-side { grid-template-columns: 210px minmax(0, 1fr); }
.ec .date { position: relative; background: var(--deep); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 26px 22px 0; overflow: hidden; }
.ec .date .y { font-size: 13px; letter-spacing: .2em; color: var(--soft); }
.ec .md { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -.02em; }
.ec .md small { font-size: 26px; color: var(--soft); margin-left: 2px; }
.ec .md.range { font-size: 44px; }
.ec .date .t { font-size: 15px; }
.ec .date .t span { display: block; font-size: 13px; color: var(--soft); }
.ec .dday { display: inline-flex; align-items: center; min-height: 26px; margin-top: 6px; padding: 0 10px; border-radius: 13px; background: var(--line); color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.ec .dday.done { background: transparent; color: var(--muted); border: 1px dashed var(--muted); }
.ec .date canvas { display: block; flex: none; margin: auto -22px 0; width: calc(100% + 44px); height: 84px; }
.ec .cut { position: absolute; top: 0; bottom: 0; left: 210px; border-left: 2px dashed rgba(239,229,210,.55); }
.ec .cut::before, .ec .cut::after { content: ''; position: absolute; left: -13px; width: 24px; height: 12px; background: var(--sea); border: 2px solid var(--line); }
.ec .cut::before { top: -2px; border-top: 0; border-radius: 0 0 12px 12px; }
.ec .cut::after { bottom: -2px; border-bottom: 0; border-radius: 12px 12px 0 0; }
.ec .info { padding: 26px 28px; display: grid; gap: 16px; align-content: start; min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
.ec .series { font-size: 13px; letter-spacing: .14em; color: var(--soft); }
.ec .ev-title { font-size: clamp(24px, 2.8vw, 32px); }
.ec .ev-theme { font-family: var(--display); font-size: 16px; color: #e4dac7; margin-top: -8px; }
.ec .sessions { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ec .sessions:empty { display: none; }
.ec .sessions li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 12px; }
.ec .sessions .no { grid-row: span 3; width: 34px; height: 17px; margin-top: 6px; border: 2px solid var(--line); border-bottom: 0; border-radius: 17px 17px 0 0; position: relative; }
.ec .sessions .no::after { content: ''; position: absolute; left: 6px; right: 6px; top: 5px; bottom: 0; border: 2px solid rgba(239,229,210,.6); border-bottom: 0; border-radius: 12px 12px 0 0; }
.ec .sessions .lbl { font-size: 11px; letter-spacing: .2em; color: var(--soft); }
.ec .sessions b { font-family: var(--display); font-size: 17px; line-height: 1.4; }
.ec .sessions .who { font-size: 13px; color: var(--soft); }
.ec .line { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: #e4dac7; }
.ec .line span { display: inline-flex; gap: 6px; }
.ec .line em { flex: none; font-style: normal; color: var(--soft); }
.ec .cta { display: flex; flex-wrap: wrap; gap: 10px; }
.ec-contact { font-size: 13px; color: var(--soft); }
.ec .side { padding: 26px 26px 26px 0; display: grid; gap: 10px; align-content: start; }
.ec .side .poster-btn { border: 1px solid rgba(239,229,210,.45); padding: 8px; background: var(--deep); }
.ec .side small { font-size: 12px; color: var(--soft); text-align: center; }
.ec-empty { margin-top: 28px; padding: 28px 24px; border: 2px dashed var(--muted); color: var(--soft); display: grid; gap: 6px; }
.ec-empty b { font-family: var(--display); font-size: 20px; color: var(--line); }

.ep-year { margin-top: 32px; }
.ep-year > h3 { font-size: 26px; color: var(--soft); display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.ep-year > h3 small { font-family: var(--body); font-weight: 400; font-size: 13px; color: var(--muted); }
.ep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ep { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; border: 1px solid rgba(239,229,210,.35); min-width: 0; transition: border-color .2s, background .2s; }
.ep:hover { border-color: var(--line); background: rgba(239,229,210,.05); }
.ep:focus-within { outline: 2px solid var(--line); outline-offset: 3px; }
.ep.has-poster { border: 2px solid var(--line); }
.ep .d { background: var(--deep); display: grid; align-content: center; justify-items: center; gap: 2px; padding: 12px 6px; text-align: center; }
.ep .d small { font-size: 11px; letter-spacing: .14em; color: var(--soft); }
.ep .d b { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ep .d b.long { font-size: 20px; }
.ep .d span { font-size: 12px; color: var(--soft); }
.ep .i { padding: 14px 18px; border-left: 2px dashed rgba(239,229,210,.4); display: grid; gap: 4px; align-content: center; min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
.ep .t { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.ep .t .kind { margin-left: 0; }
.ep .i p { font-size: 14px; color: #e4dac7; }
.ep .n { font-size: 13px; color: var(--soft); font-variant-numeric: tabular-nums; }
.ep-open { padding: 0; border: 0; background: none; color: var(--line); font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.35; text-align: left; cursor: pointer; }
.ep-open::after { content: ''; position: absolute; inset: 0; }
.ep-open:focus-visible { outline: none; }
.ep .go { position: absolute; right: 14px; top: 12px; font-size: 12px; color: var(--soft); letter-spacing: .06em; pointer-events: none; }
.ep.has-poster .go { right: 96px; }
.ep .th { position: relative; z-index: 1; width: 76px; padding: 10px 12px 10px 0; align-self: center; }
.ep .th .poster-btn { border: 1px solid rgba(239,229,210,.45); padding: 3px; background: var(--deep); }
.ep-more { margin-top: 20px; }

dialog.tk, dialog.zoom { padding: 0; color: var(--line); max-height: 92vh; overflow: auto; }
dialog.tk { border: 0; background: transparent; width: min(94vw, 1080px); max-width: none; }
dialog.zoom { border: 2px solid var(--line); background: var(--deep); width: min(92vw, 640px); }
dialog.tk::backdrop, dialog.zoom::backdrop { background: rgba(20,18,16,.82); }
dialog.tk .bar { display: flex; justify-content: flex-end; padding-bottom: 10px; }
dialog.tk .bar .btn { background: var(--deep); }
dialog.tk .ec .cut::before, dialog.tk .ec .cut::after { background: #1b1916; }
dialog.zoom .bar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; background: var(--deep); font-size: 14px; }
dialog.zoom img { display: block; width: 100%; height: auto; }

@media (max-width: 960px) {
  .ec, .ec.no-side { grid-template-columns: 180px minmax(0, 1fr); }
  .ec .cut { left: 180px; }
  .ec .date { grid-row: span 2; }
  .ec .side { grid-column: 2; padding: 0 28px 26px; grid-template-columns: 240px minmax(0, 1fr); align-items: end; }
  .ec .side small { text-align: left; }
}
@media (max-width: 820px) {
  .ec, .ec.no-side { grid-template-columns: minmax(0, 1fr); }
  .ec .cut { position: relative; left: auto; top: auto; bottom: auto; height: 0; border-left: 0; border-top: 2px dashed rgba(239,229,210,.55); }
  .ec .cut::before, .ec .cut::after { top: -13px; bottom: auto; width: 12px; height: 24px; }
  .ec .cut::before { left: -2px; border: 2px solid var(--line); border-left: 0; border-radius: 0 12px 12px 0; }
  .ec .cut::after { left: auto; right: -2px; border: 2px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; }
  .ec .date { grid-row: auto; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: 16px; padding: 20px 18px 0; }
  .ec .date .y, .ec .dday { grid-column: 1 / -1; justify-self: start; }
  .ec .md { font-size: 52px; }
  .ec .md.range { font-size: 36px; }
  .ec .date .t { padding-bottom: 4px; }
  .ec .date canvas { grid-column: 1 / -1; margin: 14px -18px 0; width: calc(100% + 36px); height: 48px; }
  .ec .info { padding: 22px 18px; }
  .ec .side { grid-column: 1; padding: 0 18px 22px; grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .ec .side .poster-btn { width: min(100%, 320px); }
  .ec .side small { text-align: center; }
}
@media (max-width: 600px) {
  .ep { grid-template-columns: 72px minmax(0, 1fr); }
  .ep .d { grid-row: span 2; }
  .ep .d b { font-size: 22px; } .ep .d b.long { font-size: 16px; }
  .ep .i { padding: 12px 52px 12px 14px; }
  .ep .th { grid-column: 2; width: 92px; padding: 0 14px 12px; }
  .ep .go, .ep.has-poster .go { right: 10px; top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .ep { transition: none; } }

/* 운영진·운영위원: 행사 날짜 띠와 같은 명함형 카드 */
.wave-band {
  display: block; height: 72px;
  background:
    radial-gradient(circle at 50% 100%, transparent 3px, var(--line) 3px 4.6px, transparent 4.6px 7px, var(--line) 7px 8.6px, transparent 8.6px 11px, var(--line) 11px 12.6px, transparent 12.6px) 0 0 / 24px 24px,
    radial-gradient(circle at 50% 100%, transparent 3px, var(--line) 3px 4.6px, transparent 4.6px 7px, var(--line) 7px 8.6px, transparent 8.6px 11px, var(--line) 11px 12.6px, transparent 12.6px) 12px 12px / 24px 24px,
    var(--deep);
}
.tm-leads { margin-top: 28px; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.tm-lead { display: grid; grid-template-columns: 196px minmax(0, 1fr); min-height: 280px; background: var(--land); border: 2px solid var(--line); }
.tm-lead .tm-side { background: var(--deep); display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 32px; overflow: hidden; }
.tm-lead .wave-band { margin-top: auto; width: 100%; }
.tm-seal { width: 60px; height: 60px; flex: none; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 26px; }
.tm-lead .tm-seal { width: 96px; height: 96px; border-width: 3px; box-shadow: 0 0 0 5px var(--deep), 0 0 0 7px rgba(239,229,210,.4); font-size: 40px; }
.tm-info { display: flex; flex-direction: column; gap: 8px; padding: 28px 30px; border-left: 2px dashed rgba(239,229,210,.5); min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
.tm-role { font-size: 13px; letter-spacing: .12em; color: var(--soft); }
.tm-lead .tm-role { letter-spacing: .3em; }
.tm-lead h3 { font-size: 34px; letter-spacing: .06em; }
.tm-units { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.tm-units li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.tm-units b { width: 24px; height: 24px; border-radius: 3px; background: var(--line); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 14px; }
.tm-intro { color: #e4dac7; font-size: 15px; margin-top: 4px; }
.tm-link { margin-top: auto; font-size: 13px; color: var(--soft); }

.tm-group { margin-top: 28px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: stretch; }
.tm-group + .tm-group { margin-top: 20px; }
.tm-head { background: var(--deep); border: 1px solid rgba(239,229,210,.35); display: flex; flex-direction: column; gap: 4px; padding: 30px 26px 0; overflow: hidden; }
.tm-head h3 { font-size: 46px; line-height: 1.15; letter-spacing: .04em; }
.tm-head .sub { margin-top: 12px; font-size: 14px; color: var(--soft); }
.tm-head .wave-band { margin: auto -26px 0; height: 48px; }
.tm-cards { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: stretch; }
.tm-card .tm-info { justify-content: center; }
.tm-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); min-height: 150px; background: var(--land); border: 1px solid rgba(239,229,210,.4); }
.tm-card .tm-side { background: var(--deep); display: flex; align-items: center; justify-content: center; }
.tm-card .tm-info { padding: 18px; gap: 4px; }
.tm-card h4 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.3; letter-spacing: .06em; }
.tm-card .tm-intro { font-size: 14px; }

@media (max-width: 1100px) {
  .tm-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
}
@media (max-width: 820px) {
  .tm-lead { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .tm-lead .tm-side { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 18px; padding: 22px 20px 0; }
  .tm-lead .tm-seal { width: 72px; height: 72px; font-size: 30px; grid-row: span 1; }
  .tm-lead .wave-band { grid-column: 1 / -1; margin: 16px -20px 0; width: auto; height: 36px; }
  .tm-lead .tm-info { border-left: 0; border-top: 2px dashed rgba(239,229,210,.55); padding: 18px 20px 20px; }
  .tm-lead h3 { font-size: 28px; }
  .tm-group { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tm-head { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 14px; padding: 24px 18px 0; }
  .tm-head h3 { font-size: 36px; }
  .tm-head .sub { flex-basis: 100%; }
  .tm-head .wave-band { flex-basis: calc(100% + 36px); margin: 12px -18px 0; height: 24px; }
  .tm-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tm-card { grid-template-columns: 80px minmax(0, 1fr); min-height: 124px; }
}
