/* 세계문화 어울림 축제 · 휴대폰 먼저 · 외부 이미지·폰트 없음 */
:root {
  --bg: #fffaf2;
  --surface: #ffffff;
  --tint: #fdf0e1;
  --ink: #2a211b;
  --muted: #6b5d52;
  --line: #ead9c6;
  --primary: #b8461f;      /* 따뜻한 주황 · 흰 글자 대비 충분 */
  --primary-ink: #ffffff;
  --teal: #11706b;
  --teal-soft: #dff1ee;
  --gold: #e9a93a;
  --plum: #7a4a8c;
  --error: #b3261e;
  --error-soft: #fdecea;
  --ok: #1e6b3a;
  --ok-soft: #e4f4e8;
  --radius: 14px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; margin-top: 1.2em; }
p { margin: 0 0 .75em; }
small { font-size: .85em; color: var(--muted); }
a { color: var(--teal); }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 48px 0; }
.wrap.section { padding-left: var(--gutter); padding-right: var(--gutter); }
.tint { background: var(--tint); }
.muted { color: var(--muted); }

/* 맨 위 띠 */
.notice-bar {
  position: sticky; top: 0; z-index: 10;
  background: var(--ink); color: #fff;
  text-align: center; font-weight: 700; font-size: .95rem;
  padding: 8px var(--gutter);
}

/* 첫 화면 */
.hero { position: relative; overflow: hidden; padding: 44px 0 52px; background: var(--teal-soft); }
.hero .wrap { position: relative; }
.shapes span { position: absolute; border-radius: 50%; opacity: .9; }
.shapes span:nth-child(1) { width: 160px; height: 160px; background: var(--gold); right: -50px; top: -40px; }
.shapes span:nth-child(2) { width: 90px; height: 90px; background: var(--primary); right: 70px; top: 90px; opacity: .25; }
.shapes span:nth-child(3) { width: 120px; height: 120px; background: var(--plum); left: -60px; bottom: -50px; opacity: .2; }
.shapes span:nth-child(4) { width: 46px; height: 46px; background: var(--teal); right: 30px; bottom: 30px; opacity: .35; border-radius: 10px; transform: rotate(18deg); }
.eyebrow { font-weight: 700; color: var(--teal); margin-bottom: .25em; }
.hero h1 { font-size: 2.1rem; }
.lead { font-size: 1.1rem; }
.facts { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 8px; }
.facts li { display: flex; gap: 12px; background: rgba(255,255,255,.85); border-radius: var(--radius); padding: 10px 14px; }
.facts .k { flex: 0 0 4.2em; font-weight: 700; color: var(--teal); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1.1rem;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { filter: brightness(.94); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-block { width: 100%; }
.btn:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* 프로그램 */
.programs { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; border-left: 6px solid var(--line); }
.card.pick { border-left-color: var(--teal); }
.card h3 { margin: 0 0 .2em; }
.card .time { font-weight: 700; color: var(--primary); margin: 0; }
.card .zone { color: var(--muted); margin-bottom: .4em; }
.tag { display: inline-block; font-size: .85rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.tag-pick { background: var(--teal-soft); color: var(--teal); }
.tag-common { background: #f1ebe4; color: var(--muted); }

/* 안내 */
.steps { padding-left: 1.3em; }
.steps li { margin-bottom: .4em; }
.tbd, .kv { margin: 0; display: grid; gap: 8px; }
.tbd div, .kv div { display: flex; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.tbd dt, .kv dt { font-weight: 600; }
.tbd dd { margin: 0; color: var(--muted); white-space: nowrap; }
.kv dd { margin: 0; text-align: right; }
.kv { margin-bottom: 16px; }

.acts { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.acts li { background: var(--surface); border-radius: var(--radius); padding: 14px 18px; border: 1px solid var(--line); }
.acts h3 { margin: 0 0 .2em; }
.acts p { margin: 0; }

.contact { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px 18px; }
.contact p { margin: 0 0 .25em; }
.contact-title { font-weight: 700; }

/* 신청 */
.apply { background: var(--teal-soft); }
.practice-note { background: #fff6d6; border: 1px solid var(--gold); border-radius: 10px; padding: 10px 14px; font-weight: 600; }
form { background: var(--surface); border-radius: var(--radius); padding: 20px 18px; }
.field { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
label, legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.req { font-size: .8rem; font-weight: 700; color: var(--primary); margin-left: 4px; }
input[type="text"], input[type="tel"], input[type="number"], input[type="password"] {
  width: 100%; min-height: 54px; font: inherit; font-size: 1.1rem;
  padding: 10px 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
input[aria-invalid="true"] { border-color: var(--error); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; padding: 12px; border: 2px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.check input { width: 24px; height: 24px; margin-top: 3px; flex: 0 0 24px; accent-color: var(--teal); }
.check small { display: block; }
.hint { color: var(--muted); font-size: .95rem; margin: 6px 0 0; }
.err, .form-error { color: var(--error); background: var(--error-soft); border-radius: 8px; padding: 6px 10px; margin: 6px 0 0; font-weight: 600; }
.form-error { margin-bottom: 16px; }
.consent-box { background: var(--tint); border-radius: 12px; padding: 14px; }
.consent-title { font-weight: 700; margin-bottom: .3em; }
.consent-list { margin: 0 0 12px; padding-left: 1.2em; font-size: .95rem; }
.consent-box .check { background: #fff; }

.status { margin-top: 16px; border-radius: 12px; padding: 14px; }
.status-unknown { background: var(--error-soft); border: 2px solid var(--error); }
.status p { margin: 0 0 .4em; }

.done { background: var(--surface); border-radius: var(--radius); padding: 28px 20px; text-align: center; border: 3px solid var(--ok); }
.done:focus { outline: none; }
.done-badge { display: inline-block; background: var(--ok); color: #fff; font-weight: 800; font-size: 1.3rem; padding: 6px 22px; border-radius: 999px; }
.receipt { font-size: 1.15rem; background: var(--ok-soft); border-radius: 10px; padding: 12px; }
.receipt strong { display: block; font-size: 1.4rem; letter-spacing: .04em; color: var(--ok); }

.footer { background: var(--ink); color: #e9dfd5; padding: 28px 0 40px; font-size: .95rem; }
.footer a { color: #ffd38a; }
.footer p { margin: 0 0 .4em; }

/* 관리자 */
.admin-main { padding: 32px 0 60px; }
.admin-box { background: var(--surface); border-radius: var(--radius); padding: 20px 18px; border: 1px solid var(--line); }
.summary { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 18px; }
.summary div { background: var(--teal-soft); border-radius: 10px; padding: 8px 14px; font-weight: 700; }
.app-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.app-list li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.app-list .rno { font-weight: 700; color: var(--teal); }
.app-list .row { margin: 0; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.toolbar .btn { min-height: 44px; padding: 0 18px; font-size: 1rem; }

@media (min-width: 720px) {
  .hero h1 { font-size: 2.8rem; }
  .programs { grid-template-columns: 1fr 1fr; }
  .acts { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
