

@import url("brand.css");

/* ---------------------------------------------------------
   2027 세무사 특별 세미나 · 참가 신청 페이지 (v3 디자인·내용)
   --------------------------------------------------------- */

:root {
  /* 기본값 = v3 디자인. script.js SeminarRules.DEFAULTS와 같아야 편집기 미리보기 = 실제 페이지 */
  --font-title: "KoPub Batang Medium", "KoPub Batang", "KoPubWorld Batang", Batang, "AppleMyungjo", serif;
  --font-body: "KoPub Dotum", "KoPubWorld Dotum", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --brown: #90652e;
  --fs-h1-p: 76px; --fs-h1-m: 42px;
  --fs-h2-p: 48px; --fs-h2-m: 31px;
  /* 25단계: 실제 글자 크기 = 기본값일 때의 원래 식 + (설정값 − 기본값). 디자인 탭 값을 바꾸면 어느 화면 폭에서나 바뀜 */
  --size-h1: clamp(calc(var(--fs-h1-p) * .66), calc(4.8vw + var(--fs-h1-p) - 76px), var(--fs-h1-p));
  --size-h2: clamp(calc(var(--fs-h2-p) * 2 / 3), calc(3.1vw + var(--fs-h2-p) - 48px), var(--fs-h2-p));
  --fs-h3: 20px; --fs-p: 16px; --fs-sm: 14px;

  --paper: #fbf9f5;
  --ink: #302d28;
  --muted: #645e55;
  --rule: #d9d2c5;
  --pale: #f0ebe2;
  --hero-bg: #f7f3eb;
  --facts-bg: #f1ece2;
  --band: #f1ede5;
  --dark: #2d2c27;
  --footer: #292925;
  --btn-hover: #5a4630;
  --gold-line: #ab8149;
  --err: #953b23;
  --err-bg: #fbedea;

  --shell: min(1240px, 89%);
  --section-space: clamp(100px, 9vw, 146px);
  --heading-gap: clamp(33px, 3.5vw, 54px);
  --herringbone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800' viewBox='0 0 800 800'%3E%3Cdefs%3E%3Cpattern id='h' width='400' height='400' patternTransform='rotate(45)' patternUnits='userSpaceOnUse'%3E%3Cpath d='M0 0H300V100H0Z M300 0H400V300H300Z M0 100H100V400H0Z M100 300H400V400H100Z' fill='none' stroke='%23D9A154' stroke-opacity='.2' stroke-width='.8'/%3E%3C/pattern%3E%3C/defs%3E%3Cpath fill='url(%23h)' d='M0 0H800V800H0Z'/%3E%3C/svg%3E");
}

/* ---------- 바탕 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--font-body); word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #b58c4b; outline-offset: 4px; }
.hidden, [hidden] { display: none !important; }
.shell { width: var(--shell); margin: 0 auto; }
.em { font-style: normal; color: var(--brown); }
p { color: var(--muted); }
h3 { letter-spacing: -.055em; }
.ic { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
figcaption { font-size: 11px; color: #71685a; margin-top: 8px; }
.skip { position: absolute; top: -100px; left: 12px; z-index: 99; background: #fff; padding: 10px; }
.skip:focus { top: 5px; }

/* 금색 선이 붙은 작은 머리글 */
.kicker { display: flex; align-items: center; gap: 12px; color: var(--brown); font: bold 11px/1.5 Arial, var(--font-body); letter-spacing: 2.2px; }
.kicker i { width: 27px; height: 2px; background: var(--gold-line); flex: none; }

/* 단추·글 고리 */
.button, .head-apply { display: inline-flex; justify-content: center; align-items: center; gap: 24px; background: var(--ink); color: #fff; border: 1px solid var(--ink); transition: background .18s; }
.button { min-height: 49px; padding: 11px 23px; font-size: 16px; }
.button:hover, .head-apply:hover { background: var(--btn-hover); }
.button.line { background: transparent; color: var(--ink); }
.button.line:hover { background: var(--ink); color: #fff; }
.text-link, .view-program { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; }
.text-link { border-bottom: 1px solid #b8ac99; padding-bottom: 4px; white-space: nowrap; }
.view-program { border-bottom: 1px solid #ab9f8b; padding: 5px 0; }
.nav a:hover, .text-link:hover, .view-program:hover { color: var(--brown); }
.photo-credit { display: block; width: fit-content; color: #756c60; font-size: 11px; margin-top: 6px; text-decoration: underline; text-underline-offset: 3px; }
.track-label { display: inline-block; width: fit-content; color: #755326; background: #f1e7d6; padding: 5px 9px; font: 700 13px/1.3 var(--font-body); letter-spacing: .5px; }
.session-meta { display: flex; justify-content: space-between; align-items: center; }
.session-meta .track-label { font: bold 11px Arial, var(--font-body); letter-spacing: 1.7px; color: var(--brown); }

/* 구간 공통 */
.block { padding-block: var(--section-space); }
.block > .kicker, .block > div > .kicker { margin-bottom: 15px; }
h2 { font: normal var(--size-h2)/1.35 var(--font-title); letter-spacing: -.065em; }
.band { background: var(--band); border-block: 1px solid var(--rule); }
.heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: var(--heading-gap); }
.heading .button { min-height: 43px; padding: 9px 17px; gap: 14px; font-size: 14px; }
.intro, .audience-grid, .apply-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 9%; }
.sessions, .venue-grid { display: grid; grid-template-columns: 1fr 1fr; }

/* ---------- 머리 ---------- */
.site-header { position: sticky; top: 0; z-index: 8; background: rgba(251, 249, 245, .98); border-bottom: 1px solid var(--rule); }
.header-inner { width: var(--shell); margin: 0 auto; height: 85px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.brand-mark .bi-logo { width: 61px; height: auto; }
.brand-mark > svg { display: block; width: 34px; height: 34px; color: var(--ink); }
.brand-sep { height: 32px; width: 1px; background: var(--rule); }
.brand-text { font-family: var(--font-title); font-size: 21px; letter-spacing: -1.4px; line-height: 1.3; font-weight: 600; }
.brand-text small { display: block; font: 8.5px Arial, sans-serif; letter-spacing: 1.4px; margin-top: 5px; color: #756b5f; }
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(18px, 2.4vw, 37px); font-size: 14px; }
.head-apply { padding: 10px 17px; font-size: 14px; }
.menu-toggle { display: none; }

/* ---------- 첫 화면 ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); border-bottom: 1px solid var(--rule); }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--herringbone) center / 1050px; opacity: .52; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: .98fr 1fr; align-items: center; column-gap: 5.8%; padding-block: clamp(76px, 7.2vw, 116px); }
.hero .kicker { font: 600 14px var(--font-body); letter-spacing: 2.5px; }
.hero-names { border-left: 1px solid #c9bda9; padding-left: 12px; font: 13px var(--font-body); color: var(--muted); letter-spacing: 0; }
.hero h1 { font: normal var(--size-h1)/1.17 var(--font-title); letter-spacing: -.068em; margin-block: 26px; }
.hero h1 .year { font-family: Georgia, serif; letter-spacing: -.065em; font-size: 1.12em; }
.hero-desc { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.65; color: #5b544b; letter-spacing: -.4px; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 32px; }
.event-photo { min-width: 0; }
.event-photo .photo { height: clamp(345px, 32vw, 460px); background: var(--pale) var(--herringbone) center / 700px; }
.hero.has-art .event-photo .photo { background: var(--art) center / cover no-repeat; }
.event-photo figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.event-photo figcaption a { display: inline-flex; align-items: center; gap: 4px; }
/* 사진을 아직 안 올렸으면 사진 설명·출처는 숨김(빈 칸 아래 설명만 남지 않게) */
.hero:not(.has-art) .event-photo figcaption:not(.poster-caption),
.art-place:not(.has-art) figcaption,
.audience:not(.has-art) .archive-credit,
.speaker:has(img[data-media]:not([src])) .photo-credit { display: none; }

/* ---------- 행사 정보 (세로 한 줄씩) ---------- */
.facts { background: var(--facts-bg); border-bottom: 1px solid var(--rule); }
.facts-list { padding-block: 20px; }
.fact { display: flex; flex-direction: column; padding: 27px 0; }
.fact:not([hidden]):not(.hidden) ~ .fact { border-top: 1px solid #d5ccbd; }
.fact-label { display: flex; align-items: center; gap: 10px; color: #756348; font-size: 15px; }
.fact-label .ic { font-size: 19px; stroke-width: 1.65; }
.fact strong { font-size: 23px; letter-spacing: -.8px; margin: 9px 0 3px; line-height: 1.45; }
.fact small { font-size: 16px; line-height: 1.7; color: #6e6559; }
.patron-logo { width: 265px; max-width: 100%; height: auto; margin: 13px 0 8px; }
.patron-logo:not([src]) { display: none; }
.patron-logo[src] ~ .patron-name { display: none; }
.patron-name { font-size: 23px; font-weight: 700; letter-spacing: -.8px; margin: 9px 0 3px; }

/* ---------- 세미나 소개 ---------- */
.intro-text { padding-top: 8px; font-size: 17px; line-height: 1.85; }
.intro-text p + p { margin-top: 19px; }
.intro-text .text-link { margin-top: 22px; }

/* ---------- 강의 ---------- */
.sessions { gap: clamp(24px, 3vw, 44px); }
.session { padding: clamp(30px, 3.1vw, 47px); border-top: 3px solid #b4894e; background: #fbf9f4; }
.session h3 { font: normal clamp(23px, 2.2vw, 33px)/1.5 var(--font-title); letter-spacing: -.06em; margin: 23px 0 9px; }
.lecturer { display: inline-flex; align-items: center; gap: 9px; width: fit-content; font-size: 15px; }
.lecturer .ic { color: var(--brown); font-size: 14px; }
.avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; overflow: hidden; background: #ebe8e0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.session p { margin-top: 24px; line-height: 1.75; }
.session ul { border-top: 1px solid var(--rule); margin: 24px 0 0; padding: 18px 0 0 16px; line-height: 1.9; font-size: 15px; }
.session li + li { margin-top: 4px; }

/* ---------- 강사진 (21단계) — 전부 #speakers 아래 ---------- */
img[data-media]:not([src]), img[data-img-kind="media"]:not([src]) { visibility: hidden; }
[data-img-kind="bg"].has-art:not(.audience):not(.responsibility):not(.photo) { background: var(--art) center / cover no-repeat; }
#speakers .speakers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
#speakers .speaker { display: grid; grid-template-columns: minmax(240px, 34%) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "photo head" "photo info"; gap: 0 clamp(32px, 5vw, 76px); align-items: start; align-content: start; border-top: 1px solid var(--rule); padding-block: 48px; }
#speakers .speaker:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(240px, 34%); grid-template-areas: "head photo" "info photo"; }
#speakers .speaker:target { border-top-color: var(--brown); }

/* 사진 칸: 올리기 전에는 이름과 '사진 준비 중'(빈 회색 칸 대신) */
#speakers .speaker-photo { position: relative; display: block; grid-area: photo; width: auto; aspect-ratio: 4 / 5; overflow: hidden; background: var(--pale) var(--herringbone) center / 420px; }
#speakers .speaker-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
#speakers .speaker-photo img:not([src]) { display: none; }
#speakers .speaker-photo .ph { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
#speakers .speaker-photo:has(img:not([src])) .ph { display: flex; }
#speakers .speaker-photo .ph b { font: 500 30px/1.2 var(--font-title); color: #8a7351; letter-spacing: -.04em; }
#speakers .speaker-photo .ph small { font-size: 11px; color: #9a8b74; letter-spacing: 1px; }

/* 이름·한 줄 소개 */
#speakers .speaker-head { grid-area: head; }
#speakers .speaker h3 { font: normal 46px/1.2 var(--font-title); margin: 12px 0 0; letter-spacing: -.05em; }
#speakers .speaker h3 small { font: 15px var(--font-body); color: var(--muted); margin-left: 6px; letter-spacing: 0; }
#speakers .speaker .speaker-intro { font: 21px/1.6 var(--font-title); color: var(--ink); margin: 14px 0 0; letter-spacing: -.03em; }

/* 약력 | 전문 분야·담당 강의 */
#speakers .speaker-info { grid-area: info; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px 32px; align-content: start; border-top: 1px dashed var(--rule); padding-top: 22px; margin-top: 24px; }
#speakers .speaker-info .k { display: block; font: bold 11px/1.5 Arial, var(--font-body); letter-spacing: 1.8px; color: var(--brown); margin-bottom: 8px; }
#speakers .speaker-info .side { display: grid; gap: 20px; align-content: start; }
#speakers .speaker .bio { font-size: 15px; line-height: 1.95; color: var(--ink); border-left: 2px solid #e2d4bd; padding-left: 14px; margin: 0; }
#speakers .speaker .specialty { font-size: 15px; color: var(--ink); margin: 0; }
#speakers .speaker .lecture { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #cdb48c; }
#speakers .speaker .lecture .ic { color: var(--brown); }
#speakers .speaker .photo-credit { margin-top: 2px; min-height: 0; }

/* 휴대폰: 사진 작게 왼쪽 + 이름·한 줄 소개, 아래에 약력·전문 분야·담당 강의 */
@media (max-width: 900px) {
  #speakers .speaker, #speakers .speaker:nth-child(even) { grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "photo head" "info info"; gap: 0 18px; padding-block: 28px; }
  #speakers .speaker-photo { aspect-ratio: 3 / 4; }
  #speakers .speaker-photo .ph b { font-size: 20px; }
  #speakers .speaker h3 { font-size: 30px; margin-top: 8px; }
  #speakers .speaker .speaker-intro { font-size: 16px; margin-top: 8px; }
  #speakers .speaker-info { grid-template-columns: minmax(0, 1fr); margin-top: 20px; padding-top: 18px; gap: 18px; }
}
@media (max-width: 380px) {
  #speakers .speaker, #speakers .speaker:nth-child(even) { grid-template-columns: 88px minmax(0, 1fr); gap: 0 14px; }
  #speakers .speaker h3 { font-size: 26px; }
}

/* ---------- 이런 분께 추천 (진한 띠) ---------- */
.audience { position: relative; isolation: isolate; background: var(--dark); color: #f5f0e6; }
.audience::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(28,25,20,.80), rgba(28,25,20,.68) 38%, rgba(28,25,20,.91) 62%, #24231f 100%), var(--herringbone) center / 1050px; }
.audience.has-art::before { background: linear-gradient(90deg, rgba(28,25,20,.80), rgba(28,25,20,.68) 38%, rgba(28,25,20,.91) 62%, #24231f 100%), var(--art) center 48% / cover no-repeat; }
.audience .kicker { color: #e3bf89; }
.audience p { color: #d4cfc2; }
.audience-grid { align-items: center; }
.audience-intro > p { margin-top: 18px; }
.archive-credit { display: inline-flex; align-items: center; gap: 4px; margin-top: 30px; color: #e7ddcf; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.audience-list > div { display: flex; align-items: flex-start; gap: 16px; border-top: 1px solid #948d7d; padding-block: 23px; }
.audience-list > div > .ic { color: #dcb881; font-size: 19px; margin-top: 5px; }
.audience-list h3 { font-size: 18px; font-weight: 500; }
.audience-list p { font-size: 15px; margin-top: 3px; }

/* ---------- 프로그램 ---------- */
.date-note { display: flex; align-items: center; gap: 7px; color: #756348; font-size: 13px; }
.program-table { border-top: 2px solid #524633; }
.table-head, .table-row { display: grid; grid-template-columns: 24% 1fr 19%; align-items: center; gap: 15px; border-bottom: 1px solid var(--rule); padding: 13px 18px; }
.table-head { background: #f2eee6; font-size: 13px; color: #6b6254; }
.table-row { padding-block: 30px; }
.table-row strong { font: normal 23px var(--font-body); }
.table-row h3 { font: normal 23px/1.5 var(--font-title); margin-top: 3px; }
.note { display: block; font-size: 13px; color: #746b61; margin-top: 13px; }

/* ---------- 오시는 길 ---------- */
.venue-grid { align-items: center; gap: 6%; }
.venue-photo { aspect-ratio: 1.85; background: var(--pale) var(--herringbone) center / 700px; }
.art-place.has-art .venue-photo { background: var(--art) center / cover no-repeat; }
.venue-info h3 { font: normal 29px var(--font-title); }
.venue-info h3 .addr { display: block; margin: 5px 0 15px; font: 16px/1.65 var(--font-body); letter-spacing: 0; color: var(--muted); }
#placeLocBr { display: none; }
.venue-row { display: flex; gap: 12px; border-top: 1px solid var(--rule); padding-block: 16px; }
.venue-row > .ic { color: var(--brown); font-size: 20px; margin-top: 3px; }
.venue-row small { display: block; color: var(--muted); font-size: 14px; }
.map { margin-top: 8px; font-size: 14px; }
.map iframe { margin-top: 10px; width: 100%; height: 210px; border: 1px solid var(--rule); }

/* ---------- 참가 신청 ---------- */
.apply-intro > p { margin: 12px 0 22px; }
.apply-info { border-top: 1px solid var(--rule); padding-top: 8px; max-width: 300px; }
.apply-info > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 4px 0; }
.apply-info b { font-weight: 500; }
.tbd { display: none; }
[data-fact][hidden] + .tbd, [data-fact].hidden + .tbd { display: inline; }
.reg-card { border-top: 2px solid #514b40; padding-top: 29px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 18px; }
.field label { display: block; font-size: 14px; }
.field .wide, .field.wide { grid-column: 1 / -1; }
.field input, .field select { width: 100%; height: 45px; margin-top: 5px; padding: 8px 12px; color: var(--ink); background: #fff; border: 1px solid #c7c0b3; border-radius: 0; font-size: 16px; }
.field .is-invalid { border-color: var(--err); }
.error { color: var(--err); margin-top: 6px; font-size: 13px; font-weight: 600; }
.alert { margin-bottom: 18px; padding: 12px 14px; background: var(--err-bg); color: var(--err); border-left: 3px solid var(--err); font-size: 14px; }
.privacy { border-block: 1px solid var(--rule); padding: 12px 0; margin: 19px 0 12px; font-size: 14px; }
.privacy p { margin-top: 8px; line-height: 1.7; }
.consent { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.consent input { width: 17px; height: 17px; accent-color: var(--brown); }
.consent-box.is-invalid .consent { color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit { width: 100%; margin-top: 22px; }
.submit:disabled { opacity: .7; cursor: wait; }

/* 신청 결과 화면 */
.result { padding: 6px 0; }
.result .icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; color: var(--brown); font-size: 22px; }
.result .icon.info { color: #756348; }
.result .icon.closed { color: #756b5f; }
.result h3 { font: normal 26px var(--font-title); margin: 14px 0 10px; }
.result p { line-height: 1.75; }
.result p strong { color: var(--ink); }
.summary { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; border-block: 1px solid var(--rule); padding: 16px 0; margin: 22px 0; font-size: 15px; }
.summary dt { color: var(--muted); }
.summary dd { font-weight: 600; }

/* ---------- 아랫단 ---------- */
.site-footer { background: var(--footer); color: #f2ede2; padding-block: 73px 35px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12%; }
.footer-label { display: block; color: #dabc92; font-size: 13px; margin-bottom: 15px; }
.footer-logo { display: block; font-family: var(--font-title); font-size: 20px; }
.footer-logo .bi-logo { width: 74px; height: auto; }
.footer-grid p { color: #d0cabe; font-size: 14px; line-height: 1.75; margin: 12px 0; }
.patron-box { display: inline-flex; background: #f9f6ef; color: var(--ink); padding: 12px 16px; }
.patron-box .patron-logo { width: 192px; margin: 0; }
.patron-box .patron-name { font-size: 16px; margin: 0; }
.colophon { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid #535047; margin-top: 28px; padding-top: 17px; color: #bab5a9; font-size: 12px; }
.colophon a { white-space: nowrap; }

/* ---------- 화면 폭별 ---------- */
@media (max-width: 1050px) {
  .header-inner { gap: 18px; }
  .brand { gap: 10px; }
  .brand-text { font-size: 18px; }
  .nav { gap: 16px; }
  :root { --size-h1: clamp(calc(var(--fs-h1-p) * .65), calc(5.5vw + var(--fs-h1-p) - 76px), var(--fs-h1-p)); }
}

/* 휴대폰·태블릿: 한 줄 배치, 메뉴 접기 */
@media (max-width: 900px) {
  :root { --shell: calc(100% - 44px); --section-space: 76px; --heading-gap: 30px; }
  html { scroll-padding-top: 88px; }
  .shell, .header-inner { max-width: 640px; }
  .header-inner { height: auto; min-height: 72px; padding-block: 12px; gap: 12px; }
  .brand { margin-right: auto; gap: 10px; white-space: normal; }
  .brand-mark .bi-logo { width: 46px; }
  .brand-text { font-size: 18px; letter-spacing: -1px; }
  .brand-text small { font-size: 8px; letter-spacing: .8px; }
  .head-apply { display: none; }
  .menu-toggle { display: inline-flex; justify-content: center; align-items: center; order: 4; width: 44px; height: 44px; flex: none; padding: 0; border: 1px solid var(--rule); background: transparent; font-size: 22px; line-height: 1; color: #000; }
  .nav { display: none; position: absolute; inset: 100% 0 auto; margin: 0; padding: 16px 22px; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .nav a { display: block; padding: 11px 0; font-size: 16px; }

  .hero-grid, .intro, .sessions, .audience-grid, .venue-grid, .apply-grid, .footer-grid, .field-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { padding-block: 52px 46px; gap: 38px; }
  .hero .kicker { flex-wrap: wrap; gap: 9px; font-size: 13px; letter-spacing: 1.1px; }
  :root { --size-h1: clamp(var(--fs-h1-m), calc(7.5vw + var(--fs-h1-m) - 42px), calc(var(--fs-h1-m) + 23px)); }
  .hero h1 { line-height: 1.3; margin-block: 24px; }
  .hero-desc { font-size: 17px; line-height: 1.8; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 29px; }
  .hero-actions .button { width: 100%; min-height: 54px; font-size: 17px; }
  .view-program { align-self: center; min-height: 44px; font-size: 15px; }
  .event-photo .photo { height: auto; aspect-ratio: 1.5; }
  .event-photo figcaption { align-items: flex-start; gap: 10px; font-size: 12px; }
  .event-photo figcaption a { flex: none; }

  :root { --size-h2: max(var(--fs-h2-m), min(calc(5.5vw + var(--fs-h2-m) - 31px), calc(var(--fs-h2-m) + 11px))); }
  h2 { line-height: 1.45; }
  .heading { flex-direction: column; align-items: flex-start; gap: 18px; }
  .heading .button { min-height: 46px; padding: 10px 16px; font-size: 15px; }
  .intro, .venue-grid, .apply-grid { row-gap: 34px; }
  .intro-text { padding: 0; font-size: 17px; line-height: 1.9; }

  .sessions { gap: 28px; }
  .session { padding: 29px 24px 34px; }
  .session h3 { font-size: 28px; }
  .session p, .session ul { font-size: 16px; line-height: 1.9; }
  .session li + li { margin-top: 8px; }

  .photo-credit { font-size: 12px; margin-top: 12px; min-height: 32px; }

  .audience-grid { row-gap: 42px; }
  .audience-list p { font-size: 16px; line-height: 1.8; }
  .audience::before, .audience.has-art::before { background-position: center, 42% top; background-size: cover, auto 380px; }
  .audience.has-art::before { background-image: linear-gradient(to bottom, rgba(28,25,20,.74), rgba(28,25,20,.67) 185px, var(--dark) 375px), var(--art); background-repeat: no-repeat; }

  .date-note { font-size: 14px; }
  .table-head { display: none; }
  .table-row { grid-template-columns: minmax(0, 1fr); gap: 13px; padding-block: 28px; }
  .table-row strong { font-size: 23px; }
  .table-row h3 { font-size: 25px; margin-top: 9px; }
  .table-row > span:last-child { font-size: 16px; }

  .venue-info h3 .addr, .venue-row small { font-size: 16px; }
  .venue-row { padding-block: 20px; }

  .field-grid { gap: 23px; }
  .field label { font-size: 16px; }
  .field input, .field select { height: 52px; margin-top: 8px; font-size: 17px; }
  .privacy, .consent { font-size: 15px; line-height: 1.8; }
  .consent { align-items: flex-start; gap: 10px; padding-block: 8px; }
  .consent input { flex: none; width: 21px; height: 21px; margin-top: 3px; }
  .submit { min-height: 54px; margin-top: 28px; font-size: 17px; }
  .apply-info > div { font-size: 16px; padding-block: 7px; }

  .footer-grid { gap: 34px; }
  .footer-grid p { font-size: 15px; }
  .colophon { align-items: flex-start; gap: 20px; }
}

@media (max-width: 650px) {
  .brand-sep { height: 25px; }
  .brand-text small { margin-top: 3px; }
  .kicker { font-size: 10px; }
  .block > .kicker, .block > div > .kicker { margin-bottom: 11px; }
  .button { padding: 10px 18px; }
  .heading .button { gap: 7px; }
  .text-link { font-size: 13px; gap: 4px; }
  .event-photo figcaption { margin-top: 9px; }
  .hero-names { padding-left: 9px; }
  .audience-list > div { padding-block: 18px; }
  .table-row { padding-inline: 4px; }
  .table-row > span:last-child { color: var(--muted); }
  .venue-info h3 { font-size: 25px; }
  .site-footer { padding-block: 52px 28px; }
  .colophon { font-size: 11px; }
}

@media (max-width: 380px) {
  :root { --shell: calc(100% - 36px); }
  .brand-text { font-size: 16px; }
  .hero-names { border: 0; padding-left: 36px; flex-basis: 100%; }
  :root { --size-h1: calc(var(--fs-h1-m) - 3px); }
}

@media (max-width: 369px) {
  .date-note { display: block; text-align: right; }
  .date-note .ic { display: none; }
}

/* ---------- 참석 방식 및 온라인 참여 안내 (22단계) ---------- */
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.mode-field legend { display: block; padding: 0; font-size: 14px; }
.mode-field legend small { color: var(--muted); font-size: 13px; }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 5px; }
.mode-field .mode-opt { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 66px; padding: 12px 12px 12px 42px; background: #fff; border: 1px solid #c7c0b3; font-size: 15px; cursor: pointer; }
.mode-opt input { position: absolute; left: 13px; top: 15px; width: 18px; height: 18px; margin: 0; accent-color: var(--brown); }
.mode-opt b { font-size: 15px; font-weight: 700; }
.mode-opt small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.mode-opt:has(input:checked) { border-color: var(--brown); box-shadow: inset 0 0 0 1px var(--brown); }
.mode-opt:has(input:focus-visible) { outline: 2px solid var(--brown); outline-offset: 2px; }
.mode-opt.is-off { opacity: .55; cursor: not-allowed; }
.mode-tag { position: absolute; right: 8px; top: 8px; padding: 1px 6px; background: var(--err-bg); color: var(--err); font-size: 11px; font-weight: 700; }
.mode-field.is-invalid .mode-opt { border-color: var(--err); }

/* 초대 주소로 들어온 사람 및 완료 화면 단추(26단계) */
.invite-note { margin-bottom: 20px; padding: 12px 14px; background: #fff; border-left: 3px solid var(--gold-line); font-size: 15px; line-height: 1.6; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.result-actions .button { flex: 1 1 200px; }
.invite-msg { margin-top: 12px; padding: 10px 12px; background: var(--pale); font-size: 14px; line-height: 1.6; word-break: break-all; }

.v4-online-only [data-place-row],
.v4-online-only [data-offline-only] { display: none !important; }
body:not(.v4-online-only) [data-online-only] { display: none !important; }

.online-card { margin-top: 22px; padding: 20px; background: #fff; border: 1px solid var(--rule); }
.online-card b { display: block; margin-bottom: 4px; font-size: 17px; }
.result .online-card p { color: var(--muted); font-size: 15px; line-height: 1.7; }

@media (max-width: 900px) {
  .mode-field legend { font-size: 16px; }
  .mode-grid { margin-top: 8px; }
}
/* ---------- 입장 QR · 내 입장권 · 출석 확인 (23단계) ---------- */
.qr-cap { color: var(--brown); font: bold 12px/1.5 Arial, var(--font-body); letter-spacing: 2.2px; }
.qr-img { display: block; width: 220px; height: 220px; padding: 10px; background: #fff; image-rendering: pixelated; }
.qr-who { font-size: 17px; font-weight: 700; }
.result .qr-say { margin-top: 6px; font-size: 15px; line-height: 1.6; }
.result .qr-sub { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.qr-save { min-width: 200px; margin-top: 14px; }

.qr-wrap { margin-top: 22px; }
.qr-ticket { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--dark); color: #f3ede2; }
.qr-ticket .t-top { padding: 22px 20px 18px; }
.qr-ticket .qr-cap { color: #d9a154; letter-spacing: 2.6px; }
.qr-ticket .t-ev { margin: 6px 0 12px; font: normal 22px/1.4 var(--font-title); color: #f3ede2; }
.qr-ticket .t-info { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 14px; }
.qr-ticket .t-info dt { color: #b8ae9d; }
.qr-ticket .t-cut { position: relative; height: 0; margin: 0 14px; border-top: 2px dashed #6b655a; }
.qr-ticket .t-cut::before, .qr-ticket .t-cut::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); }
.qr-ticket .t-cut::before { left: -24px; }
.qr-ticket .t-cut::after { right: -24px; }
.qr-ticket .t-qr { display: flex; align-items: center; gap: 16px; padding: 18px 20px 22px; }
.qr-ticket .t-qr .qr-img { flex: none; width: 140px; height: 140px; padding: 7px; }
.qr-ticket .t-ev, .qr-ticket .qr-who, .qr-ticket .t-info dd { color: #f3ede2; }
.qr-ticket .qr-say { color: #d6cdbf; font-size: 14px; }
.qr-wrap .qr-save { width: 100%; }
.v4-has-qr [data-ticket-hide] { display: none !important; }
@media (min-width: 720px) {
  .qr-ticket { grid-template-columns: minmax(0, 1fr) auto auto; }
  .qr-ticket .t-cut { width: 0; height: auto; margin: 14px 0; border-top: 0; border-left: 2px dashed #6b655a; }
  .qr-ticket .t-cut::before { left: -11px; top: -26px; }
  .qr-ticket .t-cut::after { left: -11px; right: auto; top: auto; bottom: -26px; }
  .qr-ticket .t-qr { flex-direction: column; justify-content: center; text-align: center; }
}

.ticket-main { max-width: 560px; padding-block: 44px 72px; }
.ticket-page h2 { margin: 12px 0 0; font-size: 31px; }
.ticket-note { margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.ticket-admin { margin-top: 26px; font-size: 13px; text-align: center; }
.ticket-admin a { color: var(--muted); text-decoration: underline; }

.checkin { max-width: 440px; margin: 0 auto; background: #fff; border: 1px solid var(--rule); font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif; font-size: 15px; }
.checkin-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.checkin-head h2 { margin: 0; font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.4; }
.checkin-head span { color: var(--muted); font-size: 12px; }
.checkin-state { margin: 16px 16px 12px; padding: 12px 14px; border-radius: 6px; font-weight: 700; }
.checkin-state[data-state="ready"] { background: #eaf2ec; color: #3d7a55; }
.checkin-state[data-state="done"] { background: #fef3c7; color: #b45309; }
.checkin-state[data-state="warn"] { background: var(--err-bg); color: var(--err); }
.checkin-state[data-state="locked"] { background: var(--pale); color: var(--muted); }
.checkin-info { display: grid; grid-template-columns: 34% 1fr; margin: 0 16px; }
.checkin-info dt, .checkin-info dd { padding: 7px 0; border-bottom: 1px solid var(--pale); }
.checkin-info dt { color: var(--muted); }
.checkin-info dd { font-weight: 600; }
.checkin-btn { width: calc(100% - 32px); min-height: 56px; margin: 14px 16px 0; border-radius: 8px; font-size: 17px; font-weight: 700; }
.checkin-btn:disabled { opacity: .4; cursor: not-allowed; }
.checkin-help { margin: 10px 16px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.checkin-count { display: flex; gap: 8px; margin: 14px 16px 16px; }
.checkin-count div { flex: 1; padding: 8px; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; text-align: center; font-size: 13px; }
.checkin-count b { display: block; font-size: 18px; }
.checkin-btn.warn-confirm { background: var(--err); border-color: var(--err); color: #fff; }
.checkin-cancel-wrap { margin: 10px 16px 0; text-align: center; }
.checkin-cancel-link { border: 0; background: none; padding: 4px 6px; color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.checkin-cancel-link:hover { color: var(--err); }
.checkin-confirm { margin: 10px 16px 0; padding: 12px; border: 1px solid #f3b8b2; background: var(--err-bg); border-radius: 8px; font-size: 13px; color: var(--ink); }
.checkin-confirm p { color: var(--ink); line-height: 1.5; }
.checkin-confirm p small { color: var(--muted); font-size: 12px; }
.checkin-confirm-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.checkin-confirm-btns button { padding: 7px 12px; border-radius: 6px; border: 1px solid var(--rule); background: #fff; font-size: 12px; font-weight: 700; color: var(--ink); }
.checkin-confirm-btns button.danger { background: var(--err); border-color: var(--err); color: #fff; }

@media (max-width: 420px) {
  .mode-grid { grid-template-columns: minmax(0, 1fr); }
  .qr-ticket .t-qr .qr-img { width: 120px; height: 120px; }
}

/* 25단계: 글 칸의 보이는 크기 단계(data-size). 진짜 태그는 그대로, 글자 크기·줄 간격만 — H1·H2는 페이지와 같은 --size-h1·h2 */
.hero-copy, .intro > *, .sessions > *, .audience-grid > *, .audience-list > div > div, .venue-row > span, .apply-grid > *, .footer-grid > *, .colophon > span { min-width: 0; }
[data-size] { overflow-wrap: anywhere; max-width: 100%; }
.text-link:has([data-size]), .brand:has([data-size]) { white-space: normal; }
[data-size="h1"] { font-size: var(--size-h1) !important; line-height: 1.17 !important; }
[data-size="h2"] { font-size: var(--size-h2) !important; line-height: 1.35 !important; }
[data-size="h3"] { font-size: var(--fs-h3) !important; line-height: 1.5 !important; }
[data-size="p"] { font-size: var(--fs-p) !important; line-height: 1.75 !important; }
[data-size="sm"] { font-size: var(--fs-sm) !important; line-height: 1.6 !important; }
@media (max-width: 900px) {
  [data-size="h1"] { line-height: 1.3 !important; }
  [data-size="h2"] { line-height: 1.45 !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
