:root {
  --bg: #f1f5f1;
  --bg-accent: #dfece2;
  --surface: #ffffff;
  --surface-2: #f6f9f7;
  --text: #1f2b24;
  --muted: #54635a;
  --line: #d2ddd5;
  --brand: #24573a;
  --brand-2: #7ea86f;
  --warn: #9f6b08;
  --shadow: 0 12px 30px rgba(28, 46, 35, 0.08);
}

:root[data-theme="dark"] {
  --bg: #111814;
  --bg-accent: #1a251e;
  --surface: #18211b;
  --surface-2: #1d2a22;
  --text: #e7efe9;
  --muted: #afc1b4;
  --line: #2f4338;
  --brand: #78b18b;
  --brand-2: #a8c78a;
  --warn: #e7bf71;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans KR", "Pretendard", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 5% 15%, var(--bg-accent) 0%, transparent 30%),
    radial-gradient(circle at 95% 8%, rgba(126, 168, 111, 0.16) 0%, transparent 28%),
    var(--bg);
  line-height: 1.6;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: blur(8px);
}

.brand {
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand span {
  color: var(--muted);
  font-weight: 600;
  margin-left: 6px;
}

.top-actions {
  display: flex;
  gap: 8px;
}

.chip {
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 700;
  cursor: pointer;
}

.section-nav {
  position: sticky;
  top: 57px;
  z-index: 25;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.section-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  white-space: nowrap;
  font-weight: 700;
}

.section-nav a.active {
  color: var(--brand);
  border-color: var(--line);
  background: var(--surface-2);
}

.container {
  width: min(1140px, 92vw);
  margin: 24px auto 72px;
  display: grid;
  gap: 18px;
}

.hero,
.summary,
.content-block,
.admin-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.kicker {
  margin: 0 0 8px;
  color: var(--brand);
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.35;
}

.sub {
  margin-top: 10px;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.btn {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 14px;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

.btn-primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.section-head h2 {
  margin: 0;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary .card-grid,
.content-block .card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface-2);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.card p,
.card li {
  margin: 0;
  color: var(--text);
}

.card ul {
  margin: 0;
  padding-left: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 2px 8px;
  border: 1px solid color-mix(in srgb, var(--warn) 44%, var(--line));
  border-radius: 999px;
  color: var(--warn);
  font-size: 0.78rem;
  font-weight: 700;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.value {
  text-align: center;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface-2);
}

.media-grid {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.media {
  border: 1px dashed var(--line);
  border-radius: 12px;
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-2) 86%, transparent);
}

.timeline {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.step {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface-2);
}

.table-wrap {
  margin-top: 10px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.notice {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

.detail-toggle {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.detail-panel {
  margin-top: 10px;
  display: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  padding: 12px;
}

.detail-panel.open {
  display: block;
}

.faq-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  padding: 10px 12px;
}

summary {
  font-weight: 800;
  cursor: pointer;
}

.contact-form {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.contact-form label.full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--surface);
  color: var(--text);
}

.team {
  margin-top: 12px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .summary .card-grid,
  .content-block .card-grid,
  .card-grid.two,
  .card-grid.three,
  .value-grid,
  .media-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 10px 14px;
  }

  .section-nav {
    top: 53px;
    padding: 8px 12px;
  }

  .container {
    width: 94vw;
    margin-top: 14px;
  }

  .summary .card-grid,
  .content-block .card-grid,
  .card-grid.two,
  .card-grid.three,
  .value-grid,
  .media-grid,
  .timeline,
  .contact-form {
    grid-template-columns: 1fr;
  }
}
