:root {
  --primary: #2f7a5f;
  --primary-dark: #235c47;
  --bg: #f7f8f6;
  --card: #ffffff;
  --text: #23282a;
  --muted: #6b7472;
  --border: #e1e5e2;
  --danger: #b3413d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: var(--primary);
  color: #fff;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.site-header .brand {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}
.site-header .brand .brand-prefix {
  font-family: "궁서", "Gungsuh", "HY Gungso", serif;
  font-weight: 400;
  font-size: 1.5em;
  margin-right: 4px;
}
.site-header nav a {
  color: #eafff5;
  text-decoration: none;
  margin-left: 18px;
  font-size: 0.95rem;
}
.site-header nav a:hover { text-decoration: underline; }
.site-header .member-badge {
  color: #eafff5;
  margin-left: 18px;
  font-size: 0.95rem;
}
.inline-form { display: inline; }
.link-btn {
  background: none;
  border: none;
  color: #eafff5;
  cursor: pointer;
  font-size: 0.95rem;
  margin-left: 18px;
  padding: 0;
  font-family: inherit;
}
.link-btn:hover { text-decoration: underline; }

.content { padding: 32px 20px 60px; min-height: 60vh; }

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-text { flex: 1 1 320px; }
.hero-image {
  width: 320px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

h1 { font-size: 1.6rem; margin-bottom: 8px; }
h2 { font-size: 1.25rem; margin-top: 0; }
.subtitle { color: var(--muted); margin-top: 0; margin-bottom: 24px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.grid.list-col {
  grid-template-columns: 1fr;
}

.section-title {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.menu-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .15s, transform .15s;
}
.menu-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); transform: translateY(-2px); }
.menu-card h2 { color: var(--primary-dark); margin-bottom: 6px; }
.menu-card p { color: var(--muted); margin: 0; font-size: 0.92rem; }

table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
th { color: var(--muted); font-weight: 600; }

.badge {
  display: inline-block;
  background: #eef3f0;
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.8rem;
}
.badge.lock { background: #fbeeee; color: var(--danger); }

form.stack { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
label { font-weight: 600; font-size: 0.92rem; }
input[type=text], input[type=tel], input[type=password], textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
textarea { min-height: 100px; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 6px; }
.hint { color: var(--muted); font-size: 0.85rem; }

button, .btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .btn:hover { background: var(--primary-dark); }
.btn.secondary { background: var(--muted); }
.btn.danger { background: var(--danger); }

.error {
  background: #fbeeee;
  color: var(--danger);
  border: 1px solid #f0caca;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.row-actions { display: flex; gap: 8px; align-items: center; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.detail dt { font-weight: 700; margin-top: 14px; color: var(--primary-dark); }
.detail dd { margin: 4px 0 0; white-space: pre-wrap; }

.editor-wrapper { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.editor-toolbar {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 8px;
  background: #f0f2f0;
  border-bottom: 1px solid var(--border);
  flex-wrap: nowrap;
  overflow-x: auto;
}
.editor-toolbar select, .editor-toolbar button {
  font-size: 0.85rem;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  flex: 0 0 auto;
  white-space: nowrap;
}
.editor-toolbar select {
  width: 6.5em;
}
.editor-toolbar button:hover { background: #e6e9e6; }
.editor-area {
  min-height: 220px;
  padding: 14px;
  outline: none;
  background: #fff;
}
.editor-area:empty:before { content: attr(data-placeholder); color: var(--muted); }

.rich-content img { max-width: 100%; height: auto; border-radius: 6px; }
.rich-content p { margin: 0 0 10px; }
.rich-content .video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 12px 0;
}
.rich-content .video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
