/* 세계문화 어울림 축제 · 교육용 가상 행사 화면 스타일
   외부 이미지·폰트 없이 색 블록과 글자만 사용해요. */

:root {
  --bg: #fbf6ee;
  --surface: #ffffff;
  --tint: #f3ebdd;
  --ink: #2b2622;
  --ink-soft: #5e554d;
  --line: #e4d8c6;
  --primary: #1f6f68;      /* 깊은 청록 */
  --primary-ink: #ffffff;
  --primary-soft: #dcefec;
  --coral: #e2725b;
  --mustard: #e3a92f;
  --plum: #8a5a8c;
  --sky: #4c8fc4;
  --error: #b3261e;
  --error-soft: #fdecea;
  --warn-soft: #fff4d6;
  --ok: #1d6b3a;
  --ok-soft: #e2f3e8;
  --notice-bg: #2b2622;
  --notice-ink: #fff6dd;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
h1, h2, h3 { line-height: 1.3; margin: 0; }
h2 { font-size: 1.6rem; margin-bottom: 0.9rem; }
h3 { font-size: 1.1rem; margin: 1.4rem 0 0.4rem; }
p { margin: 0 0 0.6rem; }
small { font-size: 0.85em; color: var(--ink-soft); font-weight: 400; }
a { color: var(--primary); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* 맨 위 띠 */
.notice-bar {
  position: sticky; top: 0; z-index: 10;
  background: var(--notice-bg); color: var(--notice-ink);
  text-align: center; font-weight: 700; font-size: 0.95rem;
  padding: 0.55rem 16px;
  letter-spacing: 0.02em;
}

/* 첫 화면 */
.hero {
  position: relative; overflow: hidden;
  background: var(--primary); color: var(--primary-ink);
  padding: 3rem 0 3.2rem;
}
.hero .wrap { position: relative; }
.eyebrow { font-weight: 700; opacity: 0.9; font-size: 0.95rem; margin-bottom: 0.6rem; }
.hero h1 { font-size: clamp(2.3rem, 10vw, 3.6rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1rem; }
.lead { font-size: 1.1rem; max-width: 30em; opacity: 0.95; margin-bottom: 1.4rem; }
.facts { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 0.5rem; }
.facts li {
  display: flex; gap: 0.8rem; align-items: baseline;
  background: rgba(255,255,255,0.12); border-radius: 12px; padding: 0.6rem 0.9rem;
}
.facts small { color: inherit; opacity: 0.85; display: block; }
.fact-label {
  flex: 0 0 3.4em; font-weight: 700; font-size: 0.9rem;
  color: var(--ink); background: var(--mustard); border-radius: 999px;
  text-align: center; padding: 0.05rem 0;
}
.hero-shapes .dot { position: absolute; border-radius: 50%; opacity: 0.9; }
.dot-a { width: 180px; height: 180px; background: var(--coral); right: -60px; top: -50px; }
.dot-b { width: 90px; height: 90px; background: var(--mustard); right: 70px; top: 90px; }
.dot-c { width: 120px; height: 120px; background: var(--plum); right: -30px; bottom: -40px; }
.dot-d { width: 54px; height: 54px; background: var(--sky); right: 120px; bottom: 30px; }
@media (max-width: 520px) {
  .dot-a { width: 120px; height: 120px; right: -50px; top: -40px; }
  .dot-b { width: 56px; height: 56px; right: 18px; top: 70px; }
  .dot-c, .dot-d { display: none; }
}

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 1.8rem;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 800; font-size: 1.1rem;
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--coral); color: #fff; }
.hero .btn-primary { background: #fff; color: var(--primary); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; }
.btn-ghost { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }
.btn:focus-visible, input:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }

/* 섹션 */
.section { padding: 2.6rem 0; }
.section-tint { background: var(--tint); }
.hint { color: var(--ink-soft); font-size: 0.95rem; }

/* 프로그램 카드 */
.programs { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.9rem; }
.program {
  display: grid; grid-template-columns: 1fr; gap: 0.3rem;
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--line); border-left: 8px solid var(--line);
  padding: 1rem 1.1rem;
}
.program.c1 { border-left-color: var(--coral); }
.program.c2 { border-left-color: var(--mustard); }
.program.c3 { border-left-color: var(--plum); }
.program.common { background: transparent; border-style: dashed; border-left-style: solid; }
.program-time { font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.program h3 { margin: 0 0 0.2rem; font-size: 1.2rem; }
.zone { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0.3rem; }
.zone::before { content: "구역 · "; }
.tag { display: inline-block; font-size: 0.82rem; font-weight: 700; border-radius: 999px; padding: 0.1rem 0.7rem; }
.tag-pick { background: var(--primary-soft); color: var(--primary); }
.tag-common { background: var(--tint); color: var(--ink-soft); }
@media (min-width: 620px) {
  .program { grid-template-columns: 8.5em 1fr; gap: 1rem; }
}

/* 참가 안내 */
.steps { padding-left: 1.3rem; margin: 0; }
.steps li { margin-bottom: 0.4rem; }
.tbd { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.tbd li {
  display: flex; justify-content: space-between; gap: 0.8rem; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0.6rem 0.9rem;
}
.tbd em { flex: none; font-style: normal; font-weight: 700; font-size: 0.85rem; background: var(--warn-soft); border-radius: 999px; padding: 0.1rem 0.6rem; }

/* 주최·주관 */
.host { margin: 0 0 1rem; display: grid; gap: 0.4rem; }
.host div { display: flex; gap: 0.8rem; }
.host dt { font-weight: 800; flex: 0 0 3em; color: var(--primary); }
.host dd { margin: 0; }
.activities { padding-left: 1.2rem; margin: 0; }
.activities li { margin-bottom: 0.5rem; }
.activities strong { display: block; }
.contact { list-style: none; padding: 0; margin: 0; color: var(--ink-soft); }

/* 신청 폼 */
.form-notice {
  background: var(--warn-soft); border: 2px solid var(--mustard);
  border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1.4rem;
}
.form-notice strong { display: block; margin-bottom: 0.3rem; }
.form-notice p { margin: 0; }
form { display: grid; gap: 1.2rem; }
.field { margin: 0; border: 0; padding: 0; min-width: 0; }
.field > label, legend { display: block; font-weight: 800; margin-bottom: 0.4rem; padding: 0; }
.req { font-size: 0.78rem; font-weight: 700; color: var(--coral); margin-left: 0.3rem; }
input[type="text"], input[type="tel"], input[type="number"], input[type="password"] {
  width: 100%; min-height: 56px; padding: 0 1rem;
  font: inherit; font-size: 1.1rem; color: var(--ink);
  background: var(--surface); border: 2px solid var(--line); border-radius: 12px;
}
.help { font-size: 0.9rem; color: var(--ink-soft); margin: 0.3rem 0 0; }
.check {
  display: flex; gap: 0.8rem; align-items: flex-start;
  background: var(--surface); border: 2px solid var(--line); border-radius: 12px;
  padding: 0.9rem 1rem; margin-bottom: 0.5rem; cursor: pointer;
}
.check input { width: 24px; height: 24px; flex: none; margin: 0.1rem 0 0; accent-color: var(--primary); }
.check small { display: block; }
.check:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.privacy { background: var(--tint); border-radius: 12px; padding: 0.9rem 1rem; margin-bottom: 0.6rem; font-size: 0.92rem; }
.privacy h3 { margin: 0 0 0.4rem; font-size: 0.98rem; }
.privacy ul { margin: 0; padding-left: 1.1rem; }
.field-error { color: var(--error); font-weight: 700; font-size: 0.95rem; margin: 0.3rem 0 0; }
.field-error:empty { display: none; }
.field.invalid input[type="text"], .field.invalid input[type="tel"], .field.invalid input[type="number"] { border-color: var(--error); }
.field.invalid .check { border-color: var(--error); }

.status { border-radius: 12px; padding: 0.9rem 1rem; font-weight: 600; }
.status.error { background: var(--error-soft); color: var(--error); }
.status.warn { background: var(--warn-soft); color: var(--ink); border: 2px solid var(--mustard); }
.status.info { background: var(--primary-soft); color: var(--primary); }

/* 접수 완료 */
.done {
  background: var(--ok-soft); border: 2px solid var(--ok);
  border-radius: var(--radius); padding: 1.4rem 1.2rem;
}
.done:focus { outline: none; }
.done-badge { display: inline-block; background: var(--ok); color: #fff; font-weight: 800; border-radius: 999px; padding: 0.15rem 0.9rem; }
.done h3 { margin-top: 0.4rem; }
.receipt { font-size: 1.1rem; }
.receipt strong { display: block; font-size: 1.5rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.done-summary { display: grid; gap: 0.2rem; margin: 0.6rem 0 1rem; }
.done-summary div { display: flex; gap: 0.6rem; }
.done-summary dt { flex: 0 0 6.5em; color: var(--ink-soft); }
.done-summary dd { margin: 0; font-weight: 600; }

/* 바닥글 */
.footer { background: var(--notice-bg); color: var(--notice-ink); padding: 2rem 0 2.6rem; font-size: 0.92rem; }
.footer a { color: var(--notice-ink); }

/* 관리자 */
.admin-main { padding: 2rem 0 3rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.2rem; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.admin-bar .btn { min-height: 44px; font-size: 0.95rem; padding: 0 1.1rem; }
.stats { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.stat { background: var(--primary-soft); color: var(--primary); border-radius: 12px; padding: 0.5rem 0.9rem; font-weight: 700; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: top; }
th { background: var(--tint); font-weight: 800; }
tr:last-child td { border-bottom: 0; }
.empty { color: var(--ink-soft); padding: 1rem; }
