/* 유기공고 — moss + cream */
:root,
html[data-theme="light"] {
  --moss: #2f4a32;
  --moss-deep: #1c2e1e;
  --moss-mid: #3d5a3a;
  --gold: #c4a35a;
  --gold-hover: #d4b56c;
  --gold-soft: #f3ead4;
  --cream: #f3efe6;
  --card: #ffffff;
  --ink: #1b1a16;
  --ink-soft: #524e46;
  --muted: #7a7468;
  --line: #e2ddd2;
  --ok: #1f7a4d;
  --ok-bg: #e8f6ee;
  --soon: #8a6a1a;
  --soon-bg: #f7f0de;
  --live: #3d5a3a;
  --live-bg: #e8f0e6;
  --week: #3a4a5a;
  --week-bg: #e6edf3;
  --mute-bg: #eeeae4;
  --genre-ink: #4a3d14;
  --mark: #f3ead4;
  --header-fg: #eef3ee;
  --footer-fg: #eef3ee;
  --footer-mute: #b8c4b8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(47, 74, 50, 0.08);
  --max: 1080px;
  color-scheme: light;
}
html[data-theme="dark"] {
  --moss: #4a6b4e;
  --moss-deep: #0c100d;
  --moss-mid: #b8d0b4;
  --gold: #d4b56c;
  --gold-hover: #e8c87a;
  --gold-soft: #3d3018;
  --cream: #10120f;
  --card: #1a1d18;
  --ink: #f0ebe3;
  --ink-soft: #c4bdb0;
  --muted: #9a9286;
  --line: #32382f;
  --ok: #5dba86;
  --ok-bg: #163022;
  --soon: #d4b56c;
  --soon-bg: #2a2210;
  --live: #9ccc96;
  --live-bg: #1e2e1c;
  --week: #a8c0d4;
  --week-bg: #1c2430;
  --mute-bg: #2a2622;
  --genre-ink: #e8d5a0;
  --mark: #f3ead4;
  --header-fg: #eef3ee;
  --footer-fg: #eef3ee;
  --footer-mute: #b8c4b8;
  --shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}
*, *::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(--moss-mid); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--card); color: var(--ink); padding: 8px 12px; z-index: 80; }
.site-header { background: var(--moss); color: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 12px rgba(28, 46, 30, 0.35); }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.logo { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; color: #fff; text-decoration: none; }
.logo span { color: var(--mark); background: rgba(0,0,0,0.22); padding: 2px 8px 3px; border-radius: 8px; }
.nav { display: flex; gap: 16px; }
.nav a { color: var(--header-fg); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; padding: 4px 0; }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav a[aria-current="page"], .nav a:hover { color: #fff; }
.search-wrap { margin-left: auto; flex: 1 1 160px; min-width: min(100%, 160px); max-width: 320px; }
.search-wrap input {
  border: 0; border-radius: 999px; padding: 8px 14px; min-width: 140px;
  font: inherit; background: var(--card); color: var(--ink); width: 100%;
}
.theme-toggle {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 999px;
  background: rgba(255,255,255,0.12); color: var(--mark);
  cursor: pointer;
}
.theme-toggle:hover, .theme-toggle:focus-visible { background: rgba(255,255,255,0.22); }
.theme-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.theme-toggle svg { display: block; }
.theme-toggle .theme-icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; }
.sample-banner {
  background: var(--gold-soft); color: var(--moss);
  text-align: center; padding: 10px 16px; font-weight: 700; font-size: 0.92rem;
  border-bottom: 1px solid var(--line);
}
html[data-theme="dark"] .sample-banner { color: var(--mark); }
.badge-sample {
  display: inline-block; font-size: 0.72rem; font-weight: 800;
  padding: 2px 8px; border-radius: 999px;
  background: var(--gold-soft); color: var(--genre-ink);
}
.sample-note { color: var(--muted); font-size: 0.92rem; }
.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(--gold); 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; }
.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,
.section-title { margin: 0; font-size: 1.25rem; font-weight: 700; }
.section-note { color: var(--muted); margin: 0; font-size: 0.9rem; }
.area-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.area-card {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--card); color: var(--moss); text-decoration: none; font-weight: 700;
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px;
  font-size: 1rem; line-height: 1.2; white-space: nowrap;
}
html[data-theme="dark"] .area-card { color: var(--mark); }
.area-card strong { font-size: 1rem; font-weight: 700; }
.area-card span { color: inherit; font-size: 0.78rem; font-weight: 600; opacity: 0.78; }
.area-card:hover { background: var(--moss); color: #fff; border-color: var(--moss); }
html[data-theme="dark"] .area-card:hover { color: #fff; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 10px 18px; border-radius: 999px;
  background: var(--card); color: var(--moss); text-decoration: none; font-weight: 700;
  border: 1px solid var(--line); font-size: 1rem; line-height: 1.2; white-space: nowrap;
}
html[data-theme="dark"] .chip { color: var(--mark); }
.chip:hover, .chip.is-on { background: var(--moss); color: #fff; border-color: var(--moss); }
.chip-grid.compact { margin-top: 8px; }
.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 {
  position: relative; overflow: hidden;
  aspect-ratio: 3/2; display: grid; place-items: center;
  color: #fff; text-decoration: none;
}
.thumb img, .thumb-block img {
  width: 58%; height: auto; max-width: 180px;
  opacity: 0.92;
}
.thumb .badge-sample { position: absolute; left: 10px; top: 10px; }
.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(--moss); }
html[data-theme="dark"] .dday { color: var(--gold); }
.dday.is-live { color: var(--live); }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin: 6px 4px 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: var(--mute-bg); color: var(--muted); }
.genre-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--genre-ink); }
.card h3 { margin: 4px 0; font-size: 1.05rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--gold); }
.when { color: var(--ink-soft); margin: 0; font-size: 0.92rem; }
.place { color: var(--muted); margin: 4px 0 0; font-size: 0.86rem; }
.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); flex-wrap: wrap; }
.facts { display: grid; gap: 10px; margin: 20px 0; }
.facts div { display: grid; grid-template-columns: 5.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; }
.thumb-block {
  position: relative;
  aspect-ratio: 21/9; max-width: 42rem; border-radius: var(--radius);
  display: grid; place-items: center; color: #fff; margin: 16px 0;
}
.detail-photos {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 42rem; margin: 16px 0;
}
.detail-photos figure { margin: 0; }
.detail-photos img {
  display: block; width: 100%; height: auto; max-width: 100%;
  object-fit: contain; border-radius: var(--radius); opacity: 1;
}
.dday-lg { font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--moss); margin: 8px 0 16px; }
html[data-theme="dark"] .dday-lg { color: var(--gold); }
.dday-lg.is-live { color: var(--live); font-size: clamp(1.6rem, 4vw, 2rem); }
.crumb { font-size: 0.92rem; }
.site-footer { background: var(--moss-deep); color: var(--footer-fg); 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: var(--gold); }
.footer-legal { color: var(--footer-mute); font-size: 0.85rem; }
.empty-search { display: none; padding: 24px; text-align: center; color: var(--muted); background: var(--card); border-radius: var(--radius); border: 1px dashed var(--line); }
.empty-search.is-visible { display: block; }
.card.is-hidden { display: none; }
@media (max-width: 640px) {
  .search-wrap { width: 100%; max-width: none; margin-left: 0; }
  .facts div { grid-template-columns: 1fr; }
}
@media (min-width: 720px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.thumb:not(.is-sil) img {
  width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 1;
}

.chip-lg { padding: 12px 22px; font-size: 1.05rem; }
.chip-count { font-size: 0.78rem; font-weight: 600; opacity: 0.78; margin-left: 0.5em; }
