@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --sea: #123c55;        /* 깊은 바다 */
  --sea-2: #1f6b86;      /* 얕은 바다 */
  --pebble: #8c9aa3;     /* 몽돌 회색 */
  --fog: #eef4f6;        /* 해무 (페이지 배경) */
  --sand: #fbf8f2;       /* 카드 배경 */
  --ink: #16262e;        /* 본문 */
  --sunset: #d9822b;     /* 접수 중 강조 (한 곳에만) */
  --ok: #2e7d5b; --warn: #b8862b; --bad: #b6473c; --mute: #5f6b73;
  --line: #d6e0e5;
  --radius: 14px;
  --maxw: 760px;
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fog); color: var(--ink); font-size: 17px; line-height: 1.6; letter-spacing: -0.01em; }
a { color: var(--sea-2); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(30px, 6vw, 44px); font-weight: 800; }
h2 { font-size: clamp(22px, 4vw, 28px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--mute); }
.small { font-size: 14px; }
:focus-visible { outline: 3px solid var(--sunset); outline-offset: 2px; }

/* 상단 바 */
.topbar { background: var(--sea); color: #fff; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.topbar .brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.topbar .brand small { font-weight: 500; opacity: .8; margin-left: 8px; font-size: 13px; }
.topbar nav a { color: #dfeaf0; text-decoration: none; margin-left: 16px; font-size: 15px; }
.topbar nav a.on { color: #fff; border-bottom: 2px solid var(--sunset); padding-bottom: 2px; }

/* 히어로 */
.hero { position: relative; background: var(--sea); color: #fff; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,60,85,.25) 0%, rgba(18,60,85,.85) 100%); }
.hero .wrap { position: relative; z-index: 1; padding: 56px 20px 40px; }
.hero h1 { margin-bottom: 10px; }
.hero .lead { font-size: 18px; max-width: 32em; color: #e4eef3; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; color: #cfe0e8; margin-top: 18px; }

/* 섹션 */
section.block { padding: 36px 0 8px; }
section.block h2 { padding-left: 14px; border-left: 5px solid var(--sea-2); }

/* 카드 */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 14px; }
.card.sand { background: var(--sand); }
.card h3 { margin-bottom: 6px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 10px 20px; border-radius: 10px; border: 1px solid var(--sea); background: var(--sea); color: #fff; font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; font-family: inherit; }
.btn:hover { background: #0e3147; }
.btn.hot { background: var(--sunset); border-color: var(--sunset); }
.btn.hot:hover { background: #bf7022; }
.btn.ghost { background: #fff; color: var(--sea); }
.btn.ghost:hover { background: var(--fog); }
.btn.sm { min-height: 38px; padding: 6px 12px; font-size: 14px; font-weight: 600; border-radius: 8px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.block { width: 100%; }

/* 상태 배지 */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.badge.open { background: var(--sunset); color: #fff; }
.badge.soon { background: #e3ebf0; color: var(--sea); }
.badge.full { background: #f3e3c2; color: #7a5410; }
.badge.closed { background: #e8e8e8; color: #666; }
.badge.done { background: #dde3e6; color: #666; }
.badge.pending { background: #e3ebf0; color: var(--sea); }
.badge.confirmed { background: #d8efe4; color: var(--ok); }
.badge.waitlist { background: #f3e3c2; color: #7a5410; }
.badge.dropped, .badge.cancelled, .badge.noshow { background: #f5dcd9; color: var(--bad); }
.badge.attended { background: #d8efe4; color: var(--ok); }

/* 회차 일정 — 주차별 행 */
.week { margin-bottom: 22px; }
.week h3 { font-size: 16px; color: var(--mute); font-weight: 600; margin-bottom: 8px; }
.session { display: grid; grid-template-columns: 92px 1fr auto; gap: 8px 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 8px; }
.session.open { border-color: var(--sunset); box-shadow: 0 0 0 3px rgba(217,130,43,.12); }
.session .when { font-weight: 800; font-size: 17px; line-height: 1.3; }
.session .when span { display: block; font-weight: 500; font-size: 14px; color: var(--mute); }
.session .what { min-width: 0; }
.session .what b { font-size: 17px; }
.session .what span { display: block; font-size: 14px; color: var(--mute); }
.session .seats { font-size: 14px; color: var(--mute); margin-top: 2px; }
.session .act { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (max-width: 520px) {
  .session { grid-template-columns: 1fr; }
  .session .act { flex-direction: row; justify-content: space-between; align-items: center; }
  .topbar .brand small { display: none; }
  .topbar nav a { margin-left: 12px; font-size: 14px; white-space: nowrap; }
  .yn { grid-template-columns: 1fr; gap: 6px; }
  .yn .opts label { flex: 1; justify-content: center; }
}

/* 프로그램 소개 */
.prog { display: grid; grid-template-columns: 1fr; gap: 12px; }
.prog .card { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; }
.prog .card img { width: 110px; height: 90px; object-fit: cover; border-radius: 10px; }
.prog .card .no { font-size: 13px; color: var(--mute); }

/* 폼 */
form .field { margin-bottom: 18px; }
label.lbl { display: block; font-weight: 700; margin-bottom: 6px; }
label.lbl small { font-weight: 500; color: var(--mute); margin-left: 6px; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], select, textarea {
  width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid #b9c6cd; border-radius: 10px; background: #fff; color: var(--ink); min-height: 50px;
}
textarea { min-height: 90px; resize: vertical; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #b9c6cd; border-radius: 10px; padding: 10px 14px; background: #fff; cursor: pointer; min-height: 48px; }
.choices input { width: 20px; height: 20px; accent-color: var(--sea-2); }
.choices input:checked + span { font-weight: 700; color: var(--sea); }
.yn { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.yn .q { font-size: 16px; }
.yn .opts { display: flex; gap: 6px; }
.yn .opts label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid #b9c6cd; border-radius: 8px; background: #fff; min-height: 44px; }
.yn .opts input { accent-color: var(--sea-2); width: 18px; height: 18px; }
.consent label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--sea-2); flex: none; }
.consent .txt { font-size: 15px; }
.consent .txt b { display: block; font-size: 16px; }
.msg { padding: 14px 16px; border-radius: 10px; margin: 14px 0; font-size: 15px; }
.msg.err { background: #fbe9e7; color: #8a2f27; border: 1px solid #f0c7c2; }
.msg.ok { background: #e3f3eb; color: #1f5c43; border: 1px solid #bfe3d0; }
.msg.info { background: #e8f0f4; color: var(--sea); border: 1px solid #c9dbe4; }

/* 안내 목록 */
ul.plain { padding-left: 1.2em; margin: 0 0 1em; }
ul.plain li { margin-bottom: 6px; }
dl.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 0; }
dl.kv dt { color: var(--mute); font-size: 15px; }
dl.kv dd { margin: 0; }

/* 접수 완료 */
.ticket { background: var(--sea); color: #fff; border-radius: var(--radius); padding: 24px; text-align: center; }
.ticket .code { font-size: 36px; font-weight: 800; letter-spacing: .02em; margin: 6px 0; }
.ticket .st { font-size: 18px; }

/* 푸터 */
footer { margin-top: 48px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--mute); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
footer img { height: 34px; }
footer .org { line-height: 1.5; }

/* 관리자 */
.admin body { font-size: 15px; }
.admin-shell { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin: 16px 0; flex-wrap: wrap; }
.tabs button { font: inherit; font-size: 15px; font-weight: 600; padding: 10px 16px; border: 0; background: none; color: var(--mute); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs button.on { color: var(--sea); border-bottom-color: var(--sunset); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat b { display: block; font-size: 28px; font-weight: 800; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--mute); }
table.grid { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
table.grid th, table.grid td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: middle; }
table.grid th { background: #e8f0f4; color: var(--sea); font-weight: 700; position: sticky; top: 0; z-index: 1; white-space: nowrap; }
table.grid tr.sel td { background: #fff6e8; }
table.grid td.num { text-align: right; }
.tablewrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--line); max-height: 70vh; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.toolbar select, .toolbar input { min-height: 38px; font-size: 14px; padding: 6px 10px; width: auto; }
.pill { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #e3ebf0; color: var(--sea); font-weight: 600; }
.pill.care2 { background: #f3e3c2; color: #7a5410; }
.pill.care3 { background: #f5dcd9; color: var(--bad); }
.modal { position: fixed; inset: 0; background: rgba(10,30,40,.55); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal.on { display: flex; }
.modal .box { background: #fff; border-radius: 14px; max-width: 640px; width: 100%; max-height: 90vh; overflow: auto; padding: 20px 22px; }
.log { font-size: 13px; border-left: 3px solid var(--line); padding: 4px 10px; margin-bottom: 6px; color: var(--mute); }
.log b { color: var(--ink); }
.inline-select { font: inherit; font-size: 13px; padding: 4px 6px; min-height: 32px; width: auto; border-radius: 6px; }
.loginbox { max-width: 400px; margin: 60px auto; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .topbar, footer, .toolbar, .tabs { display: none; } body { background: #fff; } }

/* v2 */
.seatbar { display: inline-block; vertical-align: middle; width: 90px; height: 8px; background: #e6ecf0; border-radius: 999px; overflow: hidden; margin-right: 6px; }
.seatbar i { display: block; height: 100%; background: var(--sunset); border-radius: 999px; }
.session.full { opacity: .72; }
.session.full .seatbar i { background: #b08a4a; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #cfe0e8; margin-right: 12px; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: #999; display: inline-block; }
.live.on i { background: #3dd68c; box-shadow: 0 0 0 3px rgba(61,214,140,.25); }
.feed { max-height: 320px; overflow: auto; }
.feed .row { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: center; }
.feed .row.new { background: #fff7e8; }
.feed .t { color: var(--mute); font-size: 12px; }
.bar { height: 8px; background: #e6ecf0; border-radius: 999px; overflow: hidden; min-width: 90px; }
.bar i { display: block; height: 100%; background: var(--sea); }
.bar.fullb i { background: #b08a4a; }
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
@media (max-width: 900px) { .grid2 { grid-template-columns: 1fr; } }

/* ===== v3.1 사이트 리디자인 ===== */
:root { --gold: #d9a22b; --sky: #4fa3d9; --deep: #0e2a4a; }
.wrap.wide { max-width: 1040px; }
.topbar .wrap.wide { height: 64px; }
.brand .comma { color: var(--gold); font-weight: 900; margin: 0 -2px 0 -3px; font-size: 1.15em; line-height: 0; position: relative; top: -2px; }
.topbar nav a { margin-left: 14px; }
.topbar nav a.cta { background: var(--sunset); color: #fff; padding: 7px 12px; border-radius: 8px; border: 0; font-weight: 700; }
@media (max-width: 720px) { .topbar nav a:not(.cta):not(.on) { display: none; } .topbar .wrap.wide { height: 58px; } }

/* 랜딩 히어로 */
.hero2 { background: var(--deep); color: #fff; position: relative; overflow: hidden; }
.hero2 .bg { position: absolute; inset: 0; background: url(../img/hero_mongdol.jpg) center 60%/cover; }
.hero2::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,42,74,.80) 0%, rgba(14,42,74,.50) 50%, rgba(14,42,74,.10) 100%); }
.hero2 .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; padding: 48px 20px 44px; }
.hero2 .kicker { font-size: 14px; letter-spacing: .14em; color: #bfe0f5; font-weight: 700; margin-bottom: 10px; }
.hero2 h1 { font-size: clamp(38px, 7vw, 64px); line-height: 1.05; margin-bottom: 14px; letter-spacing: -0.03em; }
.hero2 h1 .comma { color: var(--gold); }
.hero2 .tag { font-size: clamp(18px, 2.6vw, 22px); color: #e6f0f7; margin-bottom: 6px; font-weight: 600; }
.hero2 .sub { color: #c9dbe8; font-size: 16px; margin-bottom: 22px; }
.hero2 .ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero2 .poster { border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.45); transform: rotate(1.5deg); border: 4px solid rgba(255,255,255,.9); }
.free { display: inline-block; background: var(--gold); color: #1d2430; font-weight: 800; border-radius: 999px; padding: 4px 14px; font-size: 15px; margin-bottom: 12px; }
@media (max-width: 820px) { .hero2 .wrap { grid-template-columns: 1fr; padding: 36px 20px 32px; } .hero2 .poster { max-width: 320px; margin: 8px auto 0; transform: none; } }

/* 핵심 정보 띠 */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: -26px; position: relative; z-index: 2; }
.facts .f { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: 0 6px 20px rgba(18,60,85,.08); }
.facts .f small { display: block; font-size: 12px; color: var(--mute); letter-spacing: .06em; }
.facts .f b { display: block; font-size: 17px; margin-top: 2px; line-height: 1.3; }
@media (max-width: 820px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* 섹션 타이틀 */
.sec { padding: 44px 0 10px; }
.sec .eyebrow { font-size: 13px; letter-spacing: .14em; color: var(--sea-2); font-weight: 700; }
.sec h2 { border: 0; padding: 0; font-size: clamp(24px, 4vw, 32px); }
.sec .desc { color: var(--mute); max-width: 44em; }
.sec.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* 프로그램 카드 3열 */
.prog3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.prog3 .p { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.prog3 .p img { height: 170px; width: 100%; object-fit: cover; }
.prog3 .p .b { padding: 16px 18px 18px; flex: 1; }
.prog3 .p .n { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.prog3 .p h3 { margin-bottom: 2px; }
.prog3 .p .s { color: var(--mute); font-size: 14px; margin-bottom: 8px; }
.prog3 .p p { font-size: 15px; margin: 0; }
@media (max-width: 820px) { .prog3 { grid-template-columns: 1fr; } .prog3 .p img { height: 150px; } }

/* 120분 흐름 */
.flow3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.flow3 .s { background: var(--sand); border-left: 5px solid var(--sea-2); border-radius: 0 12px 12px 0; padding: 14px 16px; }
.flow3 .s b { display: block; font-size: 22px; color: var(--sea); }
.flow3 .s b small { font-size: 13px; color: var(--mute); margin-left: 4px; font-weight: 600; }
.flow3 .s .t { font-weight: 700; margin: 4px 0; }
.flow3 .s p { font-size: 14px; color: #333; margin: 0; }
.flow3 .s.two { border-color: var(--ok); } .flow3 .s.three { border-color: var(--gold); }
@media (max-width: 720px) { .flow3 { grid-template-columns: 1fr; } }

/* 타임라인 */
.tl2 { list-style: none; margin: 0; padding: 0; }
.tl2 li { display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.tl2 li b { color: var(--sea); }

/* 함께합니다 */
.partners { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; padding: 26px 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.partners .city { font-weight: 800; font-size: 22px; color: var(--sea); letter-spacing: -0.02em; }
.partners .city small { display: block; font-size: 12px; color: var(--mute); font-weight: 600; letter-spacing: .1em; }
.partners .x { color: var(--gold); font-size: 22px; font-weight: 800; }
.partners img { height: 44px; width: auto; }

/* FAQ */
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.faq summary::after { content: "+"; color: var(--sea-2); font-weight: 800; }
details.faq[open] summary::after { content: "−"; }
details.faq p { padding-bottom: 14px; margin: 0; color: #333; font-size: 15px; }

/* 푸터 */
footer { background: var(--deep); color: #c9d7e2; margin-top: 56px; padding: 30px 0 34px; font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
footer .org b { color: #fff; }
footer .logos { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; } footer .logos span { background: #fff; border-radius: 8px; padding: 6px 10px; display: inline-flex; align-items: center; } footer .logos img { height: 28px; width: auto; }
footer .together { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 14px; color: #9fb4c6; font-size: 13px; }
@media (max-width: 720px) { footer .wrap { grid-template-columns: 1fr; } }

/* 미니 CTA 박스 */
.cta-box { background: linear-gradient(135deg, var(--sea) 0%, var(--sea-2) 100%); color: #fff; border-radius: 16px; padding: 26px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cta-box h3 { color: #fff; margin: 0 0 4px; font-size: 22px; }
.cta-box p { margin: 0; color: #dbe8f0; }
