/* 마을곳간: 흰 바탕, 검정 글자, 녹색 한 가지. 그림자, 그라데이션, 둥근 카드 없음. */
:root {
  --ink: #161616;
  --sub: #4a4a4a;
  --rule: #d8d8d8;
  --green: #1e6b3c;
  --green-dark: #154d2b;
  --paper: #ffffff;
  --mark: #f3f1e8;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 18px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: var(--green); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; }

.col { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }

/* 머리글 */
.top { border-bottom: 1px solid var(--rule); }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; }
.top nav { display: flex; gap: 20px; font-size: 16px; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
.top .top-apply { color: var(--green); font-weight: 700; }

/* 첫 화면 */
.intro { padding-top: 56px; padding-bottom: 56px; }
.intro h1 { font-size: clamp(34px, 7vw, 52px); font-weight: 800; margin-bottom: 20px; }
.lede { font-size: 20px; color: var(--ink); max-width: 620px; }

.timetable, .plan { width: 100%; border-collapse: collapse; margin: 28px 0 10px; font-size: 17px; }
.timetable caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
.timetable th, .timetable td, .plan th, .plan td { text-align: left; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.timetable thead th { border-bottom: 2px solid var(--ink); font-size: 15px; color: var(--sub); font-weight: 600; }
.timetable tbody th, .plan th { font-weight: 700; white-space: nowrap; padding-right: 20px; }
.small { font-size: 15px; color: var(--sub); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 32px; }
.button {
  display: inline-block; background: var(--green); color: #fff; border: 0; border-radius: 6px;
  padding: 14px 24px; font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--green-dark); }
.button[disabled] { opacity: 0.6; cursor: wait; }
.textlink { font-weight: 600; }

/* 본문 구역 */
.block { padding-top: 48px; padding-bottom: 48px; border-top: 1px solid var(--rule); }
.block h2 { font-size: 26px; font-weight: 800; margin-bottom: 22px; display: flex; align-items: baseline; gap: 12px; }
.num { font-size: 16px; font-weight: 700; color: var(--green); }
.source { font-size: 14px; color: var(--sub); margin-top: 8px; }
strong { font-weight: 800; }

.duties { margin: 0; }
.duties dt { font-weight: 800; font-size: 19px; margin-top: 22px; }
.duties dt:first-child { margin-top: 0; }
.duties dd { margin: 4px 0 0; color: var(--ink); }

.steps { margin: 0; padding-left: 1.4em; }
.steps li { padding: 6px 0 6px 4px; }
.steps li::marker { font-weight: 700; color: var(--green); }

.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.plain li:first-child { padding-top: 0; }
.plain b { display: inline-block; min-width: 3.2em; }

/* 신청 양식 */
.form { margin-top: 24px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 16px; }
.opt { font-weight: 400; color: var(--sub); font-size: 14px; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; padding: 12px; min-height: 50px;
  border: 1px solid #9a9a9a; border-radius: 6px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--green); outline-offset: 0; border-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { font-size: 15px; color: var(--sub); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 10px 0; }
.privacy summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.privacy p { margin: 8px 0 0; }
.agree { display: flex; gap: 10px; align-items: center; font-size: 16px; }
.agree input { width: 22px; height: 22px; accent-color: var(--green); }
.form .button { justify-self: start; min-width: 180px; }
.status { font-weight: 700; min-height: 1.5em; margin: 0; }
.status.ok { color: var(--green); }
.status.err { color: #a61b1b; }

/* 바닥글 */
.foot { border-top: 1px solid var(--rule); padding: 28px 0 40px; font-size: 15px; color: var(--sub); }
.foot p { margin: 0; }

@media (max-width: 520px) {
  body { font-size: 17px; }
  .intro { padding-top: 36px; padding-bottom: 40px; }
  .lede { font-size: 18px; }
  .timetable, .plan { font-size: 16px; }
  .timetable thead { display: none; }
  .timetable tbody tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  .timetable tbody th, .timetable tbody td { display: block; border: 0; padding: 0; }
  .timetable tbody td:last-child { color: var(--sub); font-size: 15px; }
  .block { padding-top: 40px; padding-bottom: 40px; }
  .block h2 { font-size: 23px; }
  .form .button { width: 100%; }
}
