:root {
  --ink: #2b2a33;
  --muted: #5d5b68;
  --bg: #fffaf3;
  --card: #ffffff;
  --coral: #e8664f;
  --teal: #2a9d8f;
  --sun: #f4b942;
  --line: #eadfce;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.notice-bar {
  position: sticky; top: 0; z-index: 10;
  background: var(--ink); color: #fff;
  text-align: center; font-weight: 700; font-size: 16px;
  padding: 10px 12px;
}

.hero {
  position: relative; overflow: hidden;
  padding: 48px 20px 40px;
  background: linear-gradient(160deg, #ffe7d6 0%, #fff3d1 55%, #d9f1ec 100%);
}
.shapes span { position: absolute; border-radius: 50%; opacity: .35; }
.shapes span:nth-child(1) { width: 160px; height: 160px; background: var(--coral); top: -40px; right: -40px; }
.shapes span:nth-child(2) { width: 90px; height: 90px; background: var(--teal); bottom: 20px; right: 30px; }
.shapes span:nth-child(3) { width: 60px; height: 60px; background: var(--sun); top: 60px; left: -20px; }
.hero > *:not(.shapes) { position: relative; max-width: 720px; margin-left: auto; margin-right: auto; }
.hero-host { color: var(--muted); font-weight: 700; margin-bottom: .4em; }
.hero h1 { font-size: 34px; }
.hero-lead { font-size: 19px; }

.facts { display: grid; gap: 10px; margin: 20px auto 24px; }
.facts li {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.85);
  border-radius: 14px; padding: 12px 16px;
}
.facts strong { font-size: 15px; color: var(--muted); }
.facts span { font-size: 19px; font-weight: 600; }
.facts.plain li { background: var(--card); border: 1px solid var(--line); }

.btn {
  display: block; text-align: center; text-decoration: none;
  background: var(--coral); color: #fff;
  font-size: 20px; font-weight: 700;
  padding: 16px 20px; border-radius: 14px; min-height: 56px;
}
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

main { max-width: 720px; margin: 0 auto; padding: 0 20px; }
section { padding: 40px 0; border-bottom: 1px solid var(--line); }
section:last-child { border-bottom: 0; }
h2 { font-size: 26px; }
h2::before {
  content: ""; display: inline-block; width: 12px; height: 12px;
  border-radius: 3px; background: var(--teal); margin-right: 10px; vertical-align: middle;
}
h3 { font-size: 20px; margin-top: 1.4em; }
.sub { color: var(--muted); }

.programs { display: grid; gap: 14px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-left: 6px solid var(--coral);
  border-radius: 14px; padding: 16px 18px;
}
.card.common { border-left-color: var(--sun); }
.card h3 { margin: 0 0 .2em; }
.card p { margin-bottom: .5em; }
.time { font-weight: 700; color: var(--coral); font-size: 17px; }
.card.common .time { color: #b07b00; }
.zone { color: var(--muted); font-size: 16px; }
.tag {
  display: inline-block; font-size: 15px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; background: #fdf0c9; color: #7a5600;
}
.tag.pick { background: #d9f1ec; color: #1d6b61; }

.callout {
  background: #d9f1ec; border-radius: 14px; padding: 14px 16px; font-weight: 600;
}
.tbd li {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
}
.tbd em { font-style: normal; font-weight: 700; color: var(--muted); }

.principles li, .contact li { padding: 8px 0 8px 22px; position: relative; }
.principles li::before, .contact li::before {
  content: ""; position: absolute; left: 4px; top: 18px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--coral);
}
.activities { display: grid; gap: 12px; }
.activities li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.activities h4 { font-size: 18px; margin-bottom: .3em; }
.activities p { margin: 0; color: var(--muted); font-size: 17px; }
.small { font-size: 15px; color: var(--muted); margin-top: .6em; }

footer {
  background: var(--ink); color: #fff; text-align: center;
  padding: 24px 20px; font-size: 15px;
}
footer p { margin: .2em 0; }

@media (min-width: 720px) {
  .hero h1 { font-size: 44px; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .btn { display: inline-block; }
  .activities { grid-template-columns: 1fr 1fr; }
}

/* ===== 신청 폼 ===== */
.btn-row { display: grid; gap: 10px; }
.btn-ghost { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.btn-small { font-size: 16px; padding: 10px 14px; min-height: 44px; }
button.btn { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
button.btn.btn-ghost { border: 2px solid var(--ink); }
button.btn:disabled { opacity: .6; cursor: progress; }
.steps { list-style: decimal; padding-left: 1.4em; }
.steps li { padding: 4px 0; }
.callout.warn { background: #fff1d6; border: 2px solid var(--sun); font-weight: 500; }
.field { margin: 22px 0; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.req { font-size: 14px; color: var(--coral); margin-left: 4px; }
.field input[type=text], .field input[type=tel], .field input[type=number], .field input[type=password] {
  width: 100%; font-size: 19px; font-family: inherit;
  padding: 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
.field input:focus { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.field input[aria-invalid=true] { border-color: var(--coral); }
.hint { font-size: 15px; color: var(--muted); margin: 6px 0 0; }
.err { color: #b3261e; font-weight: 700; font-size: 16px; margin: 6px 0 0; }
.err:empty { display: none; }
.check {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 2px solid var(--line); border-radius: 12px;
  padding: 14px; margin-top: 10px; cursor: pointer;
}
.check input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--teal); }
.check b { display: block; }
.check small { display: block; color: var(--muted); font-size: 15px; }
.check:has(input:checked) { border-color: var(--teal); background: #effaf7; }
.privacy { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.privacy h3 { font-size: 17px; margin-top: 0; }
.privacy ul { list-style: disc; padding-left: 1.2em; font-size: 16px; color: var(--muted); }
.consent { font-size: 16px; }
.status { border-radius: 12px; padding: 14px 16px; font-weight: 600; margin: 16px 0; }
.status.info { background: #e8f1ff; }
.status.error { background: #fde8e6; color: #8c1d15; }
.status.unknown { background: #fff1d6; color: #6b4a00; border: 2px solid var(--sun); }
.done { background: #effaf7; border: 2px solid var(--teal); border-radius: 16px; padding: 20px; }
.done:focus { outline: none; }
.done-badge { display: inline-block; background: var(--teal); color: #fff; font-weight: 800; padding: 6px 14px; border-radius: 999px; font-size: 18px; }
.receipt { font-size: 18px; }
.receipt strong { display: block; font-size: 28px; letter-spacing: .04em; color: #1d6b61; }
.done dl, .app-item dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 1em; }
.done dt, .app-item dt { color: var(--muted); }
.done dd, .app-item dd { margin: 0; font-weight: 600; }
footer a { color: #fff; }

/* ===== 관리자 ===== */
.admin { padding-top: 28px; padding-bottom: 40px; }
.admin h1 { font-size: 28px; }
.admin-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 12px 0; }
.admin-actions { display: flex; gap: 8px; }
.admin-actions .btn { width: auto; }
.summary { font-size: 20px; font-weight: 700; margin: 0; }
.app-list { display: grid; gap: 12px; }
.app-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.app-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.app-head span { color: var(--muted); font-size: 15px; }

@media (min-width: 720px) {
  .btn-row { grid-template-columns: 1fr 1fr; max-width: 520px; }
  .btn-row .btn { display: block; }
}
