/* 축제달력 */
:root {
  --wine: #9a3412;
  --wine-deep: #7c2d12;
  --wine-mid: #c2410c;
  --clay: #fdba74;
  --clay-hover: #fb923c;
  --clay-soft: #fff7ed;
  --cream: #faf6f1;
  --card: #ffffff;
  --ink: #1c1714;
  --ink-soft: #5a534c;
  --muted: #8a8278;
  --line: #e8e0d6;
  --ok: #1f7a4d;
  --ok-bg: #e8f6ee;
  --soon: #b45309;
  --soon-bg: #fff4e5;
  --live: #9a2218;
  --live-bg: #fdecea;
  --week: #9a3412;
  --week-bg: #ffedd5;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(74, 29, 40, 0.08);
  --max: 1080px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; }
a { color: var(--wine); text-underline-offset: 3px; }
a:hover { color: var(--clay-hover); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.site-header { background: var(--wine); color: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 12px rgba(74, 29, 40, 0.25); }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.logo { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; color: #fff; text-decoration: none; }
.logo span { color: #fff7ed; background: rgba(0,0,0,0.18); padding: 2px 8px 3px; border-radius: 8px; }
.nav { display: flex; gap: 16px; }
.nav a { color: #ffedd5; text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; padding: 4px 0; }
.nav a[aria-current="page"] { border-bottom-color: #fdba74; }
.nav a[aria-current="page"], .nav a:hover { color: #fff; }
.search-wrap { margin-left: auto; flex: 1 1 200px; min-width: min(100%, 200px); max-width: 320px; }
.search-wrap input {
  border: 0; border-radius: 999px; padding: 8px 14px; min-width: 180px;
  font: inherit; background: #fff; color: var(--ink);
}
.page { flex: 1; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 28px 20px 64px; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.25; letter-spacing: -0.03em; margin: 0 0 12px; }
.kicker { color: var(--clay-hover); font-weight: 700; letter-spacing: 0.06em; font-size: 0.82rem; margin: 0 0 8px; }
.lede { color: var(--ink-soft); margin: 0 0 12px; max-width: 40rem; }
.today-line { color: var(--muted); font-size: 0.92rem; }
.sample-note { background: var(--clay-soft); color: var(--wine); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.92rem; }
.ad-slot { background: #f3eee8; color: var(--muted); text-align: center; padding: 28px; border-radius: var(--radius-sm); margin: 24px 0; border: 1px dashed var(--line); }
.section { margin-top: 36px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 1.25rem; }
.section-note { color: var(--muted); margin: 0; font-size: 0.9rem; }
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}
.chip {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; border-radius: 999px;
  background: #fff; color: var(--wine); text-decoration: none; font-weight: 700;
  border: 1px solid var(--line);
  text-align: center; font-size: 0.95rem; line-height: 1.2;
  word-break: keep-all; white-space: nowrap;
}
.chip-grid.compact .chip { padding: 7px 12px; font-size: 0.9rem; }
.chip.is-2line { white-space: nowrap; }
.chip:hover { background: var(--wine); color: #fff; border-color: var(--wine); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--wine-mid), var(--clay)); display: grid; place-items: center; color: #fff; font-weight: 700; text-decoration: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 14px 16px 18px; }
.card-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.card-kind { color: var(--muted); font-size: 0.85rem; }
.dday { font-weight: 800; color: var(--wine); }
.dday.is-live { color: var(--live); }
.dday.is-week { color: var(--week); }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin: 6px 0; }
.badge-live { background: var(--live-bg); color: var(--live); }
.badge-week { background: var(--week-bg); color: var(--week); }
.badge-soon { background: var(--soon-bg); color: var(--soon); }
.badge-mute { background: #eeeae4; color: var(--muted); }
.card h3 { margin: 4px 0; font-size: 1.05rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--clay-hover); }
.when { color: var(--ink-soft); margin: 0; font-size: 0.92rem; }
.empty { color: var(--muted); }
.detail h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.meta-line { display: flex; gap: 12px; align-items: center; color: var(--ink-soft); }
.facts { display: grid; gap: 10px; margin: 20px 0; }
.facts div { display: grid; grid-template-columns: 4.5rem 1fr; gap: 8px; }
.facts dt { color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; }
.muted { color: var(--muted); font-size: 0.9rem; }
.prose { max-width: 42rem; }
.prose h2 { margin-top: 1.6em; }
.site-footer { background: var(--wine-deep); color: #f3e6ea; padding: 28px 20px; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-brand { font-weight: 800; margin: 0 0 8px; }
.site-footer a { color: #ffd2b3; }
.footer-legal { color: #c9b4b8; font-size: 0.85rem; }
.crumb { font-size: 0.92rem; }
.hero-img img { border-radius: var(--radius); width: 100%; }
@media (max-width: 640px) {
  .search-wrap { width: 100%; }
  .search-wrap { margin-left: auto; flex: 1 1 200px; min-width: min(100%, 200px); max-width: 320px; }
.search-wrap input { width: 100%; }
  .facts div { grid-template-columns: 1fr; }
}

.chip.is-on { background: var(--wine); color: #fff; border-color: var(--wine); }
.dday-lg { font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--wine); margin: 8px 0 16px; }
.dday-lg.is-live { color: var(--live); font-size: clamp(1.6rem, 4vw, 2rem); }

.place { color: var(--muted); margin: 4px 0 0; font-size: 0.86rem; }
.empty-search { display: none; padding: 24px; text-align: center; color: var(--muted); background: #fff; border-radius: var(--radius); border: 1px dashed var(--line); }
.empty-search.is-visible { display: block; }
.card.is-hidden { display: none; }
.ad-slot.in-article { min-height: 120px; }
.thumb.is-empty span { padding: 0 12px; text-align: center; }
.header-inner .search-wrap input { width: 100%; }
@media (min-width: 720px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.official-wrap { margin: 28px 0 8px; max-width: 42rem; }
.official-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 16px 20px; border-radius: 14px;
  background: var(--wine); color: #fff; font-weight: 800; font-size: 1.08rem;
  text-decoration: none; box-shadow: var(--shadow);
}
.official-btn:hover { background: var(--wine-deep); color: #fff; }

.date-filter {
  display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end;
  margin: 18px 0 0;
}
.date-filter label {
  display: grid; gap: 4px; font-size: 0.8rem; color: var(--ink-soft); font-weight: 600;
}
.date-filter input[type="date"] {
  border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px;
  font: inherit; background: #fff; color: var(--ink);
}
.date-filter button {
  border: 0; border-radius: 999px; padding: 8px 16px;
  background: var(--wine); color: #fff; font-weight: 700; cursor: pointer;
}
.date-clear { color: var(--muted); font-size: 0.86rem; padding-bottom: 6px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 20px 0; }
.gallery img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; }

.review-list { display: grid; gap: 12px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.review-fest { margin: 0 0 6px; font-weight: 700; }
.review-meta { color: var(--muted); font-size: 0.88rem; margin: 0 0 8px; }
.review-body { margin: 0; white-space: pre-wrap; }
.stars { color: var(--wine); letter-spacing: 1px; }
.review-form { display: grid; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.review-form label { display: grid; gap: 4px; font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }
.review-form input[type="text"], .review-form textarea {
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; color: var(--ink);
}
.review-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; }
.rating-set { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; align-items: center; }
.rating-set legend { font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }
.review-form button {
  justify-self: start; border: 0; border-radius: 999px; padding: 10px 18px;
  background: var(--wine); color: #fff; font-weight: 700; cursor: pointer;
}
.review-flash { padding: 10px 12px; border-radius: 10px; background: #fff4e5; color: var(--wine); }
.review-flash.is-ok { background: var(--ok-bg); color: var(--ok); }
.honeypot { position: absolute; left: -9999px; height: 0; overflow: hidden; }
