:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --surface-2: #f2ebe1;
  --text: #1d1813;
  --muted: #6b6155;
  --line: #e7ddd0;
  --accent: #c8401a;
  --accent-ink: #ffffff;
  --accent-soft: #fbe3d8;
  --gold: #b0843b;
  --ad: #7a5b00;
  --ad-bg: #fff1bf;
  --focus: #1f6feb;
  --live: #16a34a;
  --live-soft: #dcfce7;
  --live-ink: #14532d;
  --soon: #2563eb;
  --soon-soft: #dbeafe;
  --radius: 8px;
  --side: 252px;
  --side-min: 76px;
  --shadow: 0 1px 2px rgb(40 20 0 / .05), 0 8px 24px rgb(40 20 0 / .06);
  --shadow-lift: 0 2px 4px rgb(40 20 0 / .06), 0 22px 44px rgb(40 20 0 / .14);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --serif: "Noto Serif KR", "Apple Myungjo", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14110e; --surface: #1f1a15; --surface-2: #2a231c; --text: #f4ede4;
    --muted: #b4a898; --line: #372e25; --accent: #ff7b4f; --accent-ink: #1b0f08;
    --accent-soft: #3b2117; --gold: #e0b56a; --gold-ink: var(--gold); --ad: #ffd666; --ad-bg: #3a2f0a; --focus: #7fb0ff;
    --shadow: 0 1px 0 rgb(255 255 255 / .03); --shadow-lift: 0 18px 40px rgb(0 0 0 / .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  display: flex; min-height: 100vh; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
/* 아이콘 글꼴이 늦게 와도 자리가 흔들리지 않게 크기를 미리 잡는다 */
i[class*="ph-"] { display: inline-block; width: 1em; height: 1em; line-height: 1; flex: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 0px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 60; }
.skip:focus { left: 8px; }

.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 40;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform-origin: 0 50%; transform: scaleX(0); opacity: 0; transition: opacity .3s;
}
body.is-detail .progress { opacity: 1; }

/* ---------- 사이드바 ---------- */
.sidebar {
  position: sticky; top: 0; height: 100vh; width: var(--side); flex: none; z-index: 20;
  background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 12px; overflow-y: auto; overflow-x: hidden;
  transition: width .35s var(--ease);
}
.brand { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; margin-bottom: 14px; text-decoration: none; }
.brand-mark { height: 34px; width: auto; flex: none; }
.brand-word { height: 34px; width: auto; }
.collapse {
  display: flex; align-items: center; gap: 12px; width: 100%; height: 40px; margin-bottom: 4px;
  border: 0; background: transparent; color: var(--muted);
  border-radius: 2px; padding: 0 12px; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s;
}
.collapse:hover { color: var(--text); background: var(--surface-2); }
.collapse i { font-size: 20px; flex: none; width: 26px; text-align: center; }
#nav h2 { font-size: 11px; letter-spacing: .08em; color: var(--muted); margin: 20px 12px 6px; font-weight: 700; white-space: nowrap; }
#nav a {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 2px;
  text-decoration: none; color: var(--text); font-size: 15px; white-space: nowrap;
  transition: background .2s, color .2s, transform .2s var(--ease);
}
#nav a:hover { background: var(--surface-2); transform: translateX(2px); }
#nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
#nav a[aria-current="page"]::before {
  content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 0px 0px 0; background: var(--accent);
}
#nav .ico { width: 26px; text-align: center; flex: none; font-size: 21px; color: var(--muted); transition: color .2s; }
#nav a:hover .ico, #nav a[aria-current="page"] .ico { color: var(--accent); }
.label { transition: opacity .2s; }

body.collapsed .sidebar { width: var(--side-min); }
body.collapsed .label { display: none; }
body.collapsed #nav h2 { visibility: hidden; height: 0; margin: 12px 0 0; }
body.collapsed .collapse { justify-content: center; padding: 0; }
body.collapsed .collapse i { transform: scaleX(-1); }
body.collapsed .brand { justify-content: center; padding: 0; }
body.collapsed .brand-word { display: none; }
body.collapsed #nav a { justify-content: center; padding-inline: 0; }
body.collapsed #nav a:hover { transform: none; }

/* ---------- 본문 ---------- */
.page { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
main { padding: 28px 40px 56px; width: 100%; }
main:focus, main:focus-visible { outline: none; }
/* 본문은 스크립트가 그리므로, 그리기 전 푸터가 위로 올라왔다 밀려나지 않게 높이를 먼저 잡는다 */
main { min-height: 100vh; }
.page-head h1 { font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); margin: 0 0 6px; letter-spacing: -.02em; }
.lead { color: var(--muted); margin: 0 0 18px; }
.notice {
  background: var(--surface-2); border: 1px dashed var(--line); border-radius: 2px;
  padding: 10px 14px; font-size: 14px; color: var(--muted); margin-bottom: 18px;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 7px 15px; font: inherit; font-size: 14px; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .2s var(--ease);
}
.chip:hover { transform: translateY(-1px); border-color: var(--accent); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 700; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 24px; font-size: 14px; }
select {
  font: inherit; font-size: 14px; padding: 6px 10px; border-radius: 0px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.count { color: var(--muted); font-size: 14px; margin-left: auto; }
.row > label:not(.toggle) { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }
.row select { height: 36px; }
/* 목록 필터 스위치: 글자와 가운데 정렬, 켜지면 스위치가 오른쪽으로 */
.toggle { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 36px; padding: 0 14px 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; line-height: 1; cursor: pointer; user-select: none; transition: border-color .2s, background .2s; }
.toggle:hover { border-color: var(--text); }
.toggle input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tg-track { position: relative; flex: none; width: 30px; height: 18px; border-radius: 999px; background: color-mix(in srgb, var(--muted) 35%, var(--surface)); transition: background .2s; }
.tg-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .25); transition: transform .2s var(--ease); }
.toggle:has(input:checked) { border-color: var(--text); font-weight: 700; }
.toggle input:checked + .tg-track { background: var(--live); }
.toggle input:checked + .tg-track::after { transform: translateX(12px); }
.toggle:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

/* 카드 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: transparent; }
.card:active { transform: translateY(-2px) scale(.99); }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card-link:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.thumb {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
  font-size: 50px; background: var(--g, var(--surface-2));
}
.thumb > * { transition: transform .8s var(--ease); }
.card:hover .thumb > * { transform: scale(1.08); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.contain { background: #fff; }
.thumb.contain img { object-fit: contain; padding: 12px; }
.body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.tag { background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: 2px 10px; }
.tag.live { background: #15803d; color: #fff; font-weight: 700; }
.tag.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.card h3 { font-size: 16.5px; margin: 0; line-height: 1.4; letter-spacing: -.01em; }
.sub { color: var(--muted); font-size: 13px; margin: 0; }
.ad-badge { background: var(--ad-bg); color: var(--ad); border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; }
.cta {
  margin-top: auto; text-align: center; border-radius: 2px; padding: 10px 12px; font-size: 14px; font-weight: 700;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; border: 0;
  transition: filter .2s, transform .2s var(--ease);
}
.cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cta[aria-disabled="true"] { background: var(--surface-2); color: var(--muted); cursor: not-allowed; transform: none; filter: none; }

section.block { margin-top: 56px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.block h2 { font-family: var(--serif); font-size: 24px; margin: 0; letter-spacing: -.02em; }
.eyebrow { display: block; font-size: 12px; letter-spacing: .12em; color: var(--gold-ink, #85611f); font-weight: 700; margin-bottom: 4px; }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- 상세 페이지 ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.hero {
  position: relative; border-radius: 18px; overflow: hidden; min-height: 420px;
  display: grid; align-items: end; color: #fff; isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2; display: grid; place-items: center;
  font-size: 140px; background: var(--g);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media span { filter: drop-shadow(0 20px 30px rgb(0 0 0 / .25)); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(0 0 0 / 0) 25%, rgb(10 6 2 / .78) 100%);
}
.hero-body { padding: 36px 40px 40px; }
.hero .meta .tag { background: rgb(255 255 255 / .18); color: #fff; backdrop-filter: blur(8px); }
.hero .meta .tag.live { background: var(--live); }
.hero h1 {
  font-family: var(--serif); font-size: clamp(30px, 4.4vw, 54px); line-height: 1.15; margin: 12px 0 10px; letter-spacing: -.03em;
}
.hero p.summary { max-width: 640px; margin: 0; color: rgb(255 255 255 / .86); font-size: 17px; }

/* 한눈에 보기 */
.glance { margin-top: 24px; padding: 26px 28px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.glance-title { font-family: var(--serif); font-size: 20px; margin: 0 0 18px; letter-spacing: -.02em; }
.glance { container-type: inline-size; }
.glance-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; }
@container (max-width: 1000px) {
  .glance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance-grid .g:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@container (max-width: 440px) { .glance-grid { grid-template-columns: 1fr; } }
.glance-grid .g {
  display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto 1fr; column-gap: 12px; row-gap: 2px;
  padding: 14px 18px 14px 0; border-top: 1px solid var(--line);
}
.glance-grid .gi {
  grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 4px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent); font-size: 20px; line-height: 1;
}
.glance-grid dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.glance-grid dd { margin: 0; }
.glance-grid dd strong { display: block; font-size: 17px; line-height: 1.4; letter-spacing: -.01em; }
.glance-grid dd strong a { text-decoration: none; color: var(--accent); }
.glance-grid dd span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.glance-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.glance-actions .place-actions { margin: 0; }

/* 지도·복사·공유 버튼 */
.place-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pa {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: border-color .2s, background .2s;
}
.pa:hover { border-color: var(--text); }
.pa i { font-size: 16px; color: var(--muted); }
.pa .dot { width: 14px; height: 14px; border-radius: 0px; flex: none; }
.pa.kakao .dot { background: #fee500; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.pa.naver .dot { background: #03c75a; }
.pa.tmap .dot { background: linear-gradient(135deg, #ef3e56, #6a5cff); }
.pa.home { background: var(--text); color: var(--bg); border-color: var(--text); }
.pa.weather i { color: #0ea5e9; }
.pa.home i { color: inherit; }
.place-actions.compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.place-actions.compact .pa { height: 32px; padding: 0 10px; font-size: 12.5px; gap: 6px; justify-content: center; min-width: 0; }
.pa > span:not(.dot), .pa { overflow: hidden; text-overflow: ellipsis; }
.map-cta { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 40px; margin-top: 8px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface-2); color: var(--text); font: 600 13px/1.2 system-ui, sans-serif; cursor: pointer; }
.map-cta:hover { border-color: var(--text); }
.addr { display: flex; align-items: flex-start; gap: 5px; margin: 6px 0 0; font-size: 14px; color: var(--text); }
.addr i { color: var(--accent); font-size: 16px; margin-top: 2px; flex: none; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 70; max-width: calc(100% - 32px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 4px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lift); transition: opacity .25s, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.btn i { font-size: 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
  text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font-family: inherit;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }

.toc {
  position: sticky; top: 0; z-index: 10; margin: 36px -40px 0; padding: 10px 40px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line); display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.toc a {
  flex: none; padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); text-decoration: none;
  transition: background .25s, color .25s;
}
.toc a:hover { color: var(--text); }
.toc a.active { background: var(--text); color: var(--bg); font-weight: 700; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; margin-top: 40px; }
.list-layout { margin-top: 0; gap: 28px; }
.list-layout > .detail-main { min-width: 0; }
.festival-list-layout .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.detail-main > section.block:first-child { margin-top: 0; }
.detail-main section { scroll-margin-top: 80px; }
.prose p { margin: 0 0 14px; font-size: 16.5px; line-height: 1.85; }
/* 행사 소개 맨 앞 일정 */
.ov-when { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin: 12px 0 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.ov-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 20px; flex: none; }
.ov-body { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ov-label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ov-body strong { font-size: 17px; line-height: 1.4; }
.ov-sub { font-size: 13.5px; color: var(--muted); }
.ov-body .nw, .table-wrap td.nw { white-space: nowrap; }
.table-wrap th, .table-wrap td { word-break: keep-all; }
.ov-side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ov-state { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.ov-state.is-live { background: color-mix(in srgb, var(--live) 14%, var(--surface)); color: color-mix(in srgb, var(--live) 62%, var(--text)); }
.ov-state.is-live .st-dot { background: var(--live); animation: live-ring 1.8s ease-out infinite; }
.ov-state.is-soon { background: color-mix(in srgb, var(--soon) 12%, var(--surface)); color: color-mix(in srgb, var(--soon) 70%, var(--text)); }
.ov-state.is-soon .st-dot { background: var(--soon); }
.ov-link { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; }
.ov-link:hover { border-color: var(--text); }
.info-table { display: grid; grid-template-columns: 72px 1fr; gap: 12px 16px; margin: 24px 0 0; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font-size: 15px; }
.info-table dt { color: var(--muted); }
.info-table dd { margin: 0; }

.programs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; container-type: inline-size; }
.programs li { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.programs li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.programs .time { display: inline-flex; align-self: flex-start; align-items: center; gap: 5px; color: var(--accent); font-weight: 700; font-size: 13px; background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }
.programs strong { display: block; margin-bottom: 2px; }
.programs span.d { color: var(--muted); font-size: 14px; }

.transit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.transit-card { padding: 18px 20px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.transit-card h3 { margin: 0 0 10px; font-size: 16px; display: flex; gap: 8px; align-items: center; }
.transit-card h3 i { font-size: 22px; color: var(--accent); }
.transit-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.transit-card li + li { margin-top: 4px; }

/* 지난 축제: 가운데 세로선 + 좌우 교차 연표 (스크롤 없음) */
.history-track { container-type: inline-size; }
.history-line { position: relative; list-style: none; margin: 0; padding: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.history-line::before, .history-line::after {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; border-radius: 0px; background: var(--line);
}
.history-line::after { background: linear-gradient(180deg, var(--gold), var(--accent)); transform-origin: top; transform: scaleY(0); transition: transform 3.6s cubic-bezier(.25, .6, .3, 1); }
.history-track.in .history-line::after { transform: scaleY(1); }
.history-item { position: relative; grid-column: 1; text-align: right; padding: 4px 0 26px; min-width: 0; }
.history-item:nth-child(even) { grid-column: 2; text-align: left; margin-top: 44px; }
.history-item:nth-child(odd):not(:first-child) { margin-top: -18px; }
.h-dot {
  position: absolute; top: 8px; right: -37px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent); transform: scale(0);
  transition: transform .8s var(--ease); transition-delay: calc(var(--i) * 450ms + 400ms);
}
.history-item:nth-child(even) .h-dot { right: auto; left: -37px; }
.history-track.in .h-dot { transform: scale(1); }
.history-item .yr { display: block; font-family: var(--serif); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.history-item p { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.history-item > .yr, .history-item > p { opacity: 0; transform: translateY(12px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i) * 450ms + 550ms); }
.history-track.in .history-item > .yr, .history-track.in .history-item > p { opacity: 1; transform: none; }
.history-item.is-now .h-dot { width: 23px; height: 23px; top: 5px; right: -40px; background: var(--accent); border-color: var(--accent-soft); }
.history-item.is-now:nth-child(even) .h-dot { right: auto; left: -40px; }
.history-track.in .is-now .h-dot { animation: now-pulse 2.4s ease-out infinite; animation-delay: 3.6s; }
@keyframes now-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }
.history-item.is-now { padding: 14px 16px 16px; margin-bottom: 8px; background: var(--accent-soft); border-radius: 6px; }
/* NOW 카드는 선이 다 그어지고 앞 연도가 나온 뒤 마지막에 부드럽게 나타난다 (배경·배지 포함) */
.history-track .history-item.is-now { opacity: 0; transform: translateY(18px) scale(.97); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); transition-delay: calc(var(--i) * 450ms + 900ms); }
.history-track.in .history-item.is-now { opacity: 1; transform: none; }
.history-item.is-now .h-dot { top: 18px; }
.history-item.is-now .yr { color: var(--accent); }
.history-item.is-now p { color: var(--text); font-weight: 600; }
.now-badge { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; }
.now-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
.history-track.reveal { opacity: 1; transform: none; }
@container (max-width: 560px) {
  .history-line { grid-template-columns: 1fr; padding-left: 30px; }
  .history-line::before, .history-line::after { left: 8px; }
  .history-item, .history-item:nth-child(even), .history-item:nth-child(odd):not(:first-child) { grid-column: 1; text-align: left; margin-top: 0; }
  .history-item .h-dot, .history-item:nth-child(even) .h-dot { right: auto; left: -30px; }
  .history-item.is-now .h-dot, .history-item.is-now:nth-child(even) .h-dot { left: -33px; }
}

.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tips li { display: flex; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.tips li::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* 자주 묻는 질문 (2026-09-28 개편): 질문마다 카드, 왼쪽 Q·A 표시, 오른쪽 원 안의 +(펼치면 ×). 펼친 카드는 전체 테두리를 연한 강조색으로 두껍게 한다 */
.faq { display: grid; gap: 8px; }
/* 한 줄 2개(2026-09-28 사용자 지시). 펼친 카드만 길어지도록 위쪽 정렬, 닫힌 카드는 질문 두 줄 높이로 맞춘다. 폭 640px 이하는 1개 */
.faq { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.faq summary { min-height: calc(2 * 1.55em + 30px); }
.faq > details:last-child:nth-child(odd) { grid-column: 1 / -1; }  /* 격자 원칙: 홀수 마지막 칸은 한 줄 전체 */
@media (max-width: 640px) { .faq { grid-template-columns: minmax(0, 1fr); } .faq summary { min-height: 0; } }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; interpolate-size: allow-keywords; transition: border-color .2s, box-shadow .2s; }
.faq details:hover { border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 28%, var(--line)); }
.faq summary { cursor: pointer; list-style: none; padding: 15px 16px 15px 18px; font-weight: 700; font-size: 15.5px; line-height: 1.55; display: flex; align-items: center; gap: 12px; border-radius: 6px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq details > p::before { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 2px; font-size: 13px; font-weight: 800; line-height: 1; }
.faq summary::before { content: "Q"; background: var(--accent-soft); color: var(--accent); }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-left: auto; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 19px; font-weight: 500; line-height: 1; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent-soft); color: var(--accent); }
.faq summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq details > p { position: relative; margin: 0 18px; padding: 14px 4px 18px 38px; border-top: 1px dashed var(--line); color: var(--text); font-size: 15px; line-height: 1.75; }
.faq details > p::before { content: "A"; position: absolute; left: 0; top: 13px; background: var(--surface-2); color: var(--muted); }
@media (max-width: 560px) {
  .faq summary { padding: 14px 12px 14px 14px; gap: 10px; }
  .faq details > p { margin: 0 14px; padding-left: 36px; }
}

/* 먼저 알고 가기 (2026-09-28): 핵심 키워드 '○○란?' 카드. 한 줄 답(강조 상자) → 설명 → 사실 칩 → 그림(놀이 순서·요소·공연 날짜) → 안내 → 출처 */
.kw-list { display: grid; gap: 14px; }
.kw { min-width: 0; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; container-type: inline-size; overflow-wrap: anywhere; }
.kw-head { display: flex; align-items: center; gap: 12px; }
.kw-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 20px; }
.kw h3 { margin: 1px 0 0; font-size: 19px; line-height: 1.35; }
.kw-answer { margin: 14px 0 0; padding: 12px 14px; border: 2px solid color-mix(in srgb, var(--accent) 16%, transparent); border-radius: 4px; background: color-mix(in srgb, var(--accent) 5%, var(--surface)); font-size: 16px; font-weight: 700; line-height: 1.6; }
.kw-text p { margin: 12px 0 0; font-size: 15.5px; line-height: 1.8; }
.kw-facts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kw-facts li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 1px; background: var(--surface-2); font-size: 13px; font-weight: 700; line-height: 1.35; }
.kw-facts i { color: var(--accent); font-size: 16px; }
.kw-block { margin-top: 18px; }
.kw-block h4 { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.kw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.kw-steps li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); }
.kw-step-n { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 90%, var(--text)); font-size: 12.5px; font-weight: 800; }
.kw-steps strong { display: block; font-size: 14.5px; line-height: 1.4; }
.kw-steps span:not(.kw-step-n) { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--muted); }
@container (min-width: 520px) { .kw-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (max-width: 519px) {
  .kw-steps li { align-items: center; }
  .kw-steps strong, .kw-steps span:not(.kw-step-n) { display: inline; }
  .kw-steps span:not(.kw-step-n) { margin: 0 0 0 6px; }
}
.kw-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kw-chips li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 1px; background: var(--surface); font-size: 14px; font-weight: 700; }
.kw-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.kw-tiles { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kw-tiles li { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px; border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); border-radius: 6px; background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.kw-tile-ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 4px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 20px; }
.kw-tiles strong { font-size: 15px; }
.kw-tiles span:not(.kw-tile-ico) { font-size: 13px; line-height: 1.55; color: var(--muted); }
@container (min-width: 620px) { .kw-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kw-venues { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kw-place { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 700; }
.kw-slots { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kw-slot { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 1px; background: var(--surface); font-size: 13.5px; line-height: 1.4; }
.kw-slot b { font-weight: 800; }
.kw-slot small { font-size: 12px; color: var(--muted); }
.kw-slot.is-past { opacity: .45; }
.kw-slot.is-today { border-color: color-mix(in srgb, var(--live) 45%, var(--line)); background: color-mix(in srgb, var(--live) 10%, var(--surface)); }
.kw-slot.is-today b { color: color-mix(in srgb, var(--live) 62%, var(--text)); }
.kw-slot em { display: inline-block; margin-right: 4px; padding: 1px 6px; border-radius: 999px; background: color-mix(in srgb, var(--live) 72%, #000); color: #fff; font-size: 11.5px; font-style: normal; font-weight: 800; vertical-align: 1px; }
.kw-notes { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; }
.kw-notes li { display: flex; gap: 6px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.kw-notes i { flex: none; margin-top: 3px; font-size: 16px; }
.kw-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.kw-src { flex: 1 1 100%; margin: 2px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
/* 카드가 보일 때 놀이 순서·요소 타일이 차례로 한 번 나타난다(동작 줄이기 설정이면 끔) */
.kw .kw-steps li, .kw .kw-tiles li { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--k) * 70ms + 150ms); }
.kw.in .kw-steps li, .kw.in .kw-tiles li { opacity: 1; transform: none; }
@media (max-width: 560px) {
  .kw { padding: 18px 16px; }
  .kw h3 { font-size: 18px; }
  .kw-steps li { padding: 8px 10px; }
}

/* 사진·포스터 */
.hero-credit {
  position: absolute; top: 16px; right: 18px; z-index: 1; font-size: 12px; color: rgb(255 255 255 / .85); text-decoration: none;
  background: rgb(0 0 0 / .35); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(6px);
}
.hero-credit:hover { color: #fff; }
/* 사진: 큰 사진 + 포스터, 아래 같은 크기 썸네일 줄 */
.gallery-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .5fr); gap: 10px; }
.gallery-feature.no-poster { grid-template-columns: 1fr; }
.tile {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 4px; overflow: hidden; cursor: zoom-in;
  background: var(--surface-2); font: inherit;
}
.tile.main { aspect-ratio: 16 / 10; }
.tile.poster { height: 100%; }
.tile.poster img { object-fit: cover; object-position: top; }
/* 썸네일: 가로 스크롤 없이 12칸 격자. 칸 수(--d·--t·--p)는 app.js가 정하고, 높이는 4열(좁으면 2열) 한 칸의 16:10으로 모든 줄을 맞춘다 */
.gallery-strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; margin-top: 10px; container-type: inline-size; }
.gallery-strip .tile { --c: 4; grid-column: span var(--d, 3); height: calc((100cqw - (var(--c) - 1) * 10px) / var(--c) * .625); }
.gallery-strip .strip-poster { display: none; }
.gallery-hint { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgb(0 0 0 / .6)); }
.tile-cap { position: absolute; left: 12px; right: 36px; bottom: 10px; z-index: 1; color: #fff; font-size: 13px; font-weight: 600; text-align: left; }
.tile i { position: absolute; right: 10px; bottom: 10px; z-index: 1; color: #fff; font-size: 18px; opacity: .85; }

/* 사진 팝업 */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(12 9 6 / .94); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; height: 100vh; display: grid; grid-template-rows: 1fr auto; padding: 56px 0 20px; min-width: 0; }
.lightbox img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.lightbox figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; padding-top: 14px; font-size: 14px; }
.lb-count { color: rgb(255 255 255 / .6); font-variant-numeric: tabular-nums; }
.lb-credit, .lb-credit a { color: rgb(255 255 255 / .6); font-size: 12.5px; }
.lb-nav, .lb-close {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgb(255 255 255 / .12); color: #fff; font-size: 24px; justify-self: center; transition: background .2s;
}
.lb-nav:hover, .lb-close:hover { background: rgb(255 255 255 / .24); }
.lb-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; font-size: 22px; }

/* 영상 */
.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.video { margin: 0; }
.video-frame { aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video figcaption { margin-top: 8px; }
.video figcaption strong { display: block; font-size: 15px; }
.video figcaption span { font-size: 13px; color: var(--muted); }

/* 정보 확인일 */
.glance-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 18px; }
.glance-head .glance-title { margin: 0; }
.verified { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--live-ink); background: var(--live-soft); padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.verified i { font-size: 15px; color: var(--live); }
.verified.sample { color: var(--muted); background: var(--surface-2); }

/* 날짜별 일정표 */
.sched-days { display: flex; flex-wrap: wrap; gap: 6px; }
.sched-days .sday { flex: 1 1 calc((100% - (var(--per, 12) - 1) * 6px) / var(--per, 12)); }
.sday { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; min-width: 0; }
.sday b { font-size: 15px; }
.sday span { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.sday.today { border-color: var(--live); }
.sday.today span { color: var(--live-ink); font-weight: 700; }
.sday.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.sday.on span { color: color-mix(in srgb, var(--bg) 75%, transparent); }
.sched-zones { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.sched-zones .chip { padding: 5px 12px; font-size: 13px; }
.sched-zones .chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.sched-count { margin: 14px 0 8px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.sched-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.sched-list li { display: grid; grid-template-columns: 128px minmax(0, 1fr) minmax(0, 220px); gap: 12px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 14.5px; }
.sched-list li:first-child { border-top: 0; }
.sched-list li.now { background: var(--live-soft); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--live) 30%, transparent); }
#schedPanel { container-type: inline-size; }
@container (max-width: 640px) {
  .sched-list li { grid-template-columns: 1fr; gap: 3px; }
  .sched-list .s-time { flex-direction: row; gap: 8px; align-items: center; }
}
.s-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent); font-size: 13.5px; display: flex; flex-direction: column; }
.s-time em { font-style: normal; font-size: 11.5px; color: var(--live); font-weight: 800; }
.s-title { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.s-title a { color: var(--text); text-decoration: none; }
.s-title a:hover { color: var(--accent); text-decoration: underline; }
.s-place { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.s-place i { color: var(--accent); flex: none; }
.sched-more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 8px; padding: 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font: inherit; font-size: 14px; font-weight: 700; color: var(--text); cursor: pointer; }
.sched-more:hover { border-color: var(--text); }

/* 목록 카드: 진행 중 */
.card.is-live { border-color: var(--live); box-shadow: 0 0 0 1px var(--live), var(--shadow); }
.card.is-live:hover { border-color: var(--live); box-shadow: 0 0 0 1px var(--live), var(--shadow-lift); }
/* 종료된 축제: 목록에서 흐리게 구분 */
.card.is-done .thumb { filter: grayscale(.7); opacity: .8; }
.card.is-done .body { opacity: .8; }

/* 맨 위로 */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.to-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 50; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 20px;
  box-shadow: var(--shadow-lift); cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--text); }

/* 모바일 하단 고정 바 (상세 페이지) */
.mbar { display: none; }

/* 축제 기간 날씨 */
#weather .wx-grid { container-type: inline-size; }
.wx-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.wx { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; text-align: center; min-width: 0; }
.wx.today { border-color: var(--live); background: var(--live-soft); }
.wx-date { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.wx.today .wx-date { color: var(--live-ink); }
.wx-ico { font-size: 34px; color: #f59e0b; margin: 4px 0; }
.wx strong { font-size: 14px; white-space: nowrap; }
.wx-date, .wx-temp, .wx-pop { white-space: nowrap; }
.wx-temp { font-size: 13.5px; color: var(--muted); }
.wx-temp b { color: var(--accent); font-size: 15px; }
.wx-pop { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; color: #0369a1; }
.wx em { font-style: normal; font-size: 11px; color: var(--live-ink); font-weight: 700; line-height: 1.3; }
/* 칸이 좁으면(하루 카드가 76px보다 좁아지면) 하루를 한 줄로 */
.wx-wrap { container-type: inline-size; }
@container (max-width: 700px) {
  .wx-grid { grid-auto-flow: row; grid-template-columns: 1fr; gap: 6px; }
  .wx { display: grid; grid-template-columns: 64px 28px minmax(0, 1fr) auto 52px; align-items: center; gap: 8px; padding: 10px 14px; text-align: left; }
  .wx-ico { font-size: 26px; margin: 0; }
  .wx strong { font-size: 14px; }
  .wx em { grid-column: 1 / -1; margin-top: -4px; }
}
.wx-later { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; background: var(--surface-2); border-radius: 4px; font-size: 13.5px; color: var(--muted); }
.wx-later i { font-size: 18px; flex: none; margin-top: 1px; }

.wx-dust { font-size: 11.5px; font-weight: 700; white-space: nowrap; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.wx-dust.g-좋음 { background: #dbeafe; color: #1e40af; } .wx-dust.g-보통 { background: #dcfce7; color: #166534; }
.wx-dust.g-나쁨 { background: #fef3c7; color: #92400e; } .wx-dust.g-매우나쁨 { background: #fee2e2; color: #991b1b; }
.wx-warn { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; padding: 12px 14px; border-radius: 4px; background: var(--live-soft); color: var(--live-ink); font-size: 13.5px; }
.wx-warn i { font-size: 20px; flex: none; margin-top: 1px; }
.wx-warn strong { display: block; font-size: 14px; }
.wx-warn p { margin: 4px 0 0; color: var(--text); }
.wx-warn span { display: block; margin-top: 2px; font-size: 12px; opacity: .8; }
.wx-warn.on { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.wx-warn.on .pre { color: #7c2d12; }

/* 방문 전 확인 */
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check { display: flex; gap: 12px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.ck-ico { width: 40px; height: 40px; flex: none; border-radius: 2px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-size: 20px; }
.ck-label { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.check strong { display: block; font-size: 16px; }
.check p { margin: 3px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.check.unknown .ck-ico { background: var(--surface-2); color: var(--muted); }
.check.unknown strong { color: var(--muted); }

/* 제휴 자리 가안: 채울 내용이 없으면 '광고·제휴 자리 가안 보기'를 켰을 때만 보인다 */
body:not(.show-ads) .aff-only { display: none; }
.aff-tag { font-size: 11px !important; font-weight: 800; background: #b45309; color: #fff; padding: 2px 8px; border-radius: 999px; margin-bottom: 4px; }

/* 주변 숙소 (2026-09-27 개편): '함께 가 볼 만한 축제'처럼 가로 2개 고정, 1개면 왼쪽 절반. 카드는 사진 왼쪽 가로형.
   묶음 폭 520px 이하에서 1개, 700px 이하에서 사진 84px (rel-grid·rel-card와 같은 규칙) */
.stay-slot-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; color: #92400e; }
.stay-slot-note .aff-tag { margin: 0; }
@container (max-width: 520px) { .stay-grid { grid-template-columns: 1fr; } }
.stay-card:hover { border-color: var(--text); box-shadow: var(--shadow); }
.stay-body .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.stay-pros { list-style: none; margin: 1px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.stay-pros li { padding: 2px 8px; border-radius: 1px; font-size: 12px; font-weight: 700; line-height: 1.5; color: #15803d; background: color-mix(in srgb, #15803d 9%, var(--surface)); border: 1px solid color-mix(in srgb, #15803d 22%, transparent); }
.stay-body .rel-why { margin-top: 2px; }
.stay-credit { margin: 0; font-size: 11.5px; color: var(--muted); }
.stay-card .cta { margin-top: 6px; }
.stay-deals { margin-top: 2px; padding: 10px 12px; border: 2px solid color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 3px; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); font-size: 12.5px; }
.stay-deals ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 5px; }
.stay-deals li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; line-height: 1.45; }
.stay-deals code { font: 700 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 1px 6px; border-radius: 0px; background: var(--surface); border: 1px solid var(--line); overflow-wrap: anywhere; }
.stay-deals li span { min-width: 0; color: var(--muted); }
.stay-deals p { margin: 6px 0 0; font-size: 11.5px; color: var(--muted); }
.stay-card.is-slot { border: 2px dashed #d97706; background: #fff7e8; color: #92400e; }
.stay-card.is-slot:hover { box-shadow: none; border-color: #d97706; }
.stay-card.is-slot .stay-pros li { color: #92400e; background: #fde9c8; border-color: #f5c77e; }
.camp-benefit { display: flex; align-items: flex-start; gap: 5px; }
.camp-benefit i { flex: none; margin-top: 2px; color: var(--accent); }
.fair-offer { display: grid; gap: 3px; min-width: 0; padding: 11px 13px; border: 2px solid color-mix(in srgb, var(--accent) 32%, var(--line)); border-radius: 6px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); line-height: 1.45; overflow-wrap: anywhere; }
.fair-offer-label { display: inline-flex; align-items: center; gap: 5px; width: fit-content; color: var(--accent); font-size: 12px; font-weight: 800; }
.fair-offer strong { color: var(--text); font-size: 17px; line-height: 1.35; word-break: keep-all; }
.fair-offer-condition { color: var(--text); font-size: 13px; font-weight: 650; }
.fair-offer-detail { margin-top: 3px; padding-top: 6px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.fair-offer.is-card { margin-top: 4px; }
.fair-offer.is-hero { margin: 0 0 15px; padding: 13px 15px; }
.fair-offer.is-hero strong { font-size: clamp(18px, 2vw, 22px); }
.fair-offer.is-hero .fair-offer-condition { font-size: 14px; }
.fair-offer.is-aside { margin: 0 0 12px; }
.fair-offer.is-aside strong { font-size: 18px; }
.camp-event { display: grid; gap: 5px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.camp-event dd { display: flex; align-items: flex-start; gap: 6px; margin: 0; }
.camp-event i { flex: none; margin-top: 2px; color: var(--accent); }
.camp-event span { min-width: 0; overflow-wrap: anywhere; }
.camp-mobile { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: var(--text); font-size: 13px; font-weight: 700; line-height: 1.5; }
.camp-mobile i { flex: none; margin-top: 2px; color: var(--accent); }
.camp-hero-body .camp-mobile { margin-bottom: 14px; }
.camp-image-note { display: block; margin: 0; color: var(--text); font-size: 12px; font-weight: 600; line-height: 1.6; }
.card-link > .camp-image-note { padding: 10px 14px 0; }

/* 캘린더 메뉴 */
.cal-menu { position: relative; }
.cal-menu summary { list-style: none; }
.cal-menu summary::-webkit-details-marker { display: none; }
.cal-menu[open] { flex-basis: 100%; }
.cal-menu[open] summary { background: var(--surface-2); }
.cal-pop { margin-top: 8px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px; min-width: 0; }
.cal-pop a, .cal-pop button { display: grid; grid-template-columns: 24px 1fr; align-items: center; column-gap: 8px; padding: 10px 12px; border-radius: 0px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; text-align: left; cursor: pointer; }
.cal-pop a:hover, .cal-pop button:hover { background: var(--surface-2); }
.cal-pop i { font-size: 20px; color: var(--accent); grid-row: span 2; }
.cal-pop small { font-size: 12px; color: var(--muted); font-weight: 400; }
.pa-none { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); padding: 4px 2px; }
.place-actions.no-pos { display: flex; flex-wrap: wrap; align-items: center; }
.place-actions.compact.no-pos .pa-none { grid-column: 1 / -1; }

/* 추천 대상 */
.audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.aud { padding: 20px 20px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; }
.aud-head { display: flex; gap: 12px; align-items: flex-start; }
.aud-ico { width: 40px; height: 40px; flex: none; border-radius: 4px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); font-size: 20px; }
.aud h3 { margin: 0; font-size: 16.5px; }
.aud-head p { margin: 3px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.aud ul { margin: 14px 0 0; padding-left: 18px; font-size: 14.5px; line-height: 1.65; }
.aud li + li { margin-top: 6px; }
.aud-when { margin: auto 0 0; padding-top: 14px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--accent); }

/* 주차 지도 */
.pmap-wrap { margin-bottom: 18px; }
.pmap { height: 380px; border-radius: 6px; border: 1px solid var(--line); overflow: hidden; z-index: 0; background: var(--surface-2); }
.pmap-legend { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text); }
.pmap-legend li { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 14px; border-radius: 50%; background: var(--lg, #15803d); flex: none; }
.lg[data-tone="shuttle"] { --lg: #2563eb; } .lg[data-tone="paid"] { --lg: #d97706; } .lg[data-tone="far"] { --lg: #7c3aed; } .lg[data-tone="bus"] { --lg: #475569; }
.lg.venue { background: var(--accent); border-radius: 0px; }
.lg.nopos { background: transparent; border: 2px dashed #9ca3af; }
.mk { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; font: 800 13px/1 system-ui, sans-serif; border: 2px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .35); }
.mk.venue { width: 30px; height: 30px; border-radius: 0px; background: var(--accent); font-size: 15px; }
.leaflet-popup-content { font: 13px/1.5 "Pretendard Variable", system-ui, sans-serif; }
.pnum { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 50%; background: var(--tone, #15803d); color: #fff; font-size: 12.5px; font-weight: 800; flex: none; }
.pnum.nopos { background: transparent; color: #6b7280; border: 2px dashed #9ca3af; }
.p-main { align-items: center; }
/* 지도에서 보기: 다른 버튼(.pa)과 같은 모양으로 지도·복사 버튼 아래 가로 전체 */
.map-cta { display: flex; width: 100%; justify-content: center; margin-top: 6px;
  height: 34px; min-height: 0; border-radius: 999px; background: var(--surface); font: inherit; font-size: 13px; font-weight: 600; }
.map-cta i { color: var(--tone, var(--accent)); }
.place-actions.compact + .map-cta { height: 32px; padding: 0 10px; font-size: 12.5px; gap: 6px; }
.nopos-tag { margin-left: auto; font-size: 12px; color: #6b7280; border: 1px dashed #9ca3af; padding: 2px 8px; border-radius: 0px; }
.pgroup li.no-pos { background: repeating-linear-gradient(135deg, transparent 0 10px, rgb(0 0 0 / .02) 10px 20px), var(--surface); border-style: dashed; border-color: color-mix(in srgb, var(--muted) 28%, var(--line)); }
.pgroup li.no-pos .p-main strong { color: var(--muted); }

/* 주차 거리 */
.route { display: inline-flex; align-items: flex-start; gap: 6px; margin-top: 8px; font-size: 13.5px; font-weight: 600; line-height: 1.45; color: var(--text); background: var(--surface-2); padding: 5px 10px; border-radius: 1px; }
.route i { margin-top: 1px; }
.route i { font-size: 16px; color: var(--tone, var(--accent)); }
.route-note { margin: 12px 2px 0; font-size: 12.5px; color: var(--muted); }
.info-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.info-links a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.info-links a:hover { border-color: var(--text); }
.info-links i { color: var(--accent); }

/* 애드센스 위치 가안 */
.ad-slot { display: none; }
body.show-ads .ad-slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center;
  min-height: 110px; margin: 32px 0; padding: 16px; border: 2px dashed #3b82f6; border-radius: 4px;
  background: repeating-linear-gradient(135deg, rgb(59 130 246 / .06) 0 12px, rgb(59 130 246 / .02) 12px 24px); color: #1d4ed8;
}
body.show-ads .ad-slot strong { font-size: 15px; }
body.show-ads .ad-slot span { font-size: 13px; }
body.show-ads .ad-slot em { font-size: 12px; font-style: normal; opacity: .75; }
.ad-slot-tag { font-size: 11px !important; font-weight: 800; letter-spacing: .1em; background: #1d4ed8; color: #fff; padding: 2px 8px; border-radius: 999px; margin-bottom: 4px; }
body.show-ads .aside .ad-slot { min-height: 600px; margin: 0; }
body.show-ads .grid > .ad-slot { grid-column: 1 / -1; margin: 0; min-height: 120px; }
.ad-toggle { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 14px 12px 4px; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.ad-toggle input { accent-color: #3b82f6; width: 16px; height: 16px; }
body.collapsed .ad-toggle { justify-content: center; padding-inline: 0; }


.credit { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }
.credit a { color: var(--muted); }
.credit a:hover { color: var(--accent); }

/* 표 */
.sub-h { font-size: 15px; margin: 0 0 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table-wrap th, .table-wrap td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap thead th { font-size: 12.5px; color: var(--muted); font-weight: 600; background: var(--surface-2); white-space: nowrap; }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.table-wrap tbody th { font-weight: 700; min-width: 7em; }
.table-wrap tbody th.nw { white-space: nowrap; }
.notes { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.notes li + li { margin-top: 4px; }
.lead-notes { margin: 0 0 14px; color: var(--text); }

/* 위치 */
.map { aspect-ratio: 16 / 7; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); margin-bottom: 14px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.venues { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.venues .place-actions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.venues .place-actions .pa { grid-column: span 2; }
.venues .place-actions .pa[data-copy], .venues .place-actions .pa[data-share] { grid-column: span 3; }
.venues .place-actions.no-pos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.venues .place-actions.no-pos .pa { grid-column: auto; }
.place-actions.no-pos .pa-none { grid-column: 1 / -1; flex-basis: 100%; }
.venues .pa { justify-content: center; min-width: 0; padding: 0 10px; }
.venues li { min-width: 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; container-type: inline-size; }
@container (max-width: 325px) {
  .venues .place-actions:not(.no-pos) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .venues .place-actions:not(.no-pos) .pa { grid-column: auto; }
  .venues .place-actions:not(.no-pos) .pa:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.venues .v-head strong { display: block; font-size: 16px; }
.venues .v-head span { font-size: 13px; color: var(--muted); }
.venues li:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* 메인 행사장: 첫 번째 카드, 배경색과 배지로 구분 */
.venues li.is-main { background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); border: 2px solid color-mix(in srgb, var(--accent) 24%, var(--line)); }
.venues .v-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.venues .v-title strong { min-width: 0; }
.main-badge { display: inline-flex; align-items: center; gap: 3px; flex: none; padding: 2px 9px 2px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; line-height: 1.4; }
.main-badge i { font-size: 13px; }
.venues .v-head .main-badge { font-size: 12px; color: var(--accent-ink); }
.main-badge[hidden] { display: none; }
.map-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.map-cap i { font-size: 16px; color: var(--accent); }
.map-cap strong { font-size: 14px; color: var(--text); }
.map-cap .main-badge i { font-size: 13px; color: inherit; }
.more-link { margin: 14px 0 0; font-size: 14px; }
.more-link a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 600; }
.more-link i { color: var(--accent); font-size: 18px; }

/* 주차 그룹 */
/* 격자·카드 안 내용이 칸을 넘지 않게 */
.pgroup li, .aud, .transit-card, .glance-grid .g, .video, .programs li > div, .card .body { min-width: 0; overflow-wrap: anywhere; }
.p-main, .addr, .route { max-width: 100%; }
.route { flex-wrap: nowrap; }

/* 그룹마다 색을 달리한다: 도보(초록)·셔틀(파랑)·유료(주황)·먼 곳(보라)·버스(회색) */
/* 주차: 그룹은 색 띠 머리글, 주차장은 각각 독립 카드(내용 높이만큼, 늘어나지 않게) */
.pgroup { --tone: #15803d; --tone-bg: #ecfdf3; --tone-ink: #14532d; }
.pgroup[data-tone="shuttle"] { --tone: #2563eb; --tone-bg: #eff5ff; --tone-ink: #1e3a8a; }
.pgroup[data-tone="paid"] { --tone: #d97706; --tone-bg: #fff7e8; --tone-ink: #7c2d12; }
.pgroup[data-tone="far"] { --tone: #7c3aed; --tone-bg: #f4efff; --tone-ink: #4c1d95; }
.pgroup[data-tone="bus"] { --tone: #475569; --tone-bg: #f1f5f9; --tone-ink: #1e293b; }
.pgroup + .pgroup { margin-top: 26px; }
.pgroup-head { margin-bottom: 10px; padding: 12px 16px; background: var(--tone-bg); border: 2px solid color-mix(in srgb, var(--tone) 22%, transparent); border-radius: 6px; }
.pgroup-head h3 { margin: 0; font-size: 16px; color: var(--tone-ink); }
.pgroup-head p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.pgroup ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: start; container-type: inline-size; }
.pgroup li { grid-column: span 3; padding: 14px 16px; background: color-mix(in srgb, var(--tone) 4%, var(--surface)); border: 2px solid color-mix(in srgb, var(--tone) 20%, var(--line)); border-radius: 7px; }
/* 주차 격자(2026-09-27 사용자 지시): 카드 크기를 통일한다. 목록 폭 560px 이상이면 한 줄 3개(6칸 중 2칸씩), 520~559px 2개, 그보다 좁으면 1개.
   마지막 줄에 1~2개만 남아도 늘리지 않고 같은 크기로 왼쪽부터 둔다 */
@container (min-width: 560px) { .pgroup li { grid-column: span 2; } }
.pgroup li .p-acts > .place-actions:first-child { margin-top: 8px; }
@container (max-width: 519px) { .pgroup li { grid-column: 1 / -1; } }
.p-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.p-main strong { font-size: 15px; }
.spaces { font-size: 13px; font-weight: 700; color: var(--tone, var(--accent)); background: var(--tone-bg, var(--accent-soft)); padding: 1px 8px; border-radius: 999px; }
.pnote { font-size: 13px; color: var(--muted); }
.pgroup .place-actions { margin-top: 8px; }
.btn.sm { padding: 7px 12px; font-size: 13px; flex: none; }
.btn.sm i { font-size: 16px; }
.programs .place { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.programs span.d { display: block; }
.transit { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* 공식 채널 */
.links-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.links-box a { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 0px; text-decoration: none; font-size: 14px; transition: background .2s; }
.links-box a:hover { background: var(--surface-2); }
.links-box i { font-size: 20px; color: var(--accent); flex: none; }
.links-box span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 오른쪽 칸: 16:9 카드 목록 */
.aside { display: grid; gap: 16px; }
.aside-box { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.aside-box h3 { margin: 0 0 10px; font-size: 15px; }
.list-aside .aside-box h2 { margin: 0 0 10px; font-size: 16px; }
.list-aside .aside-box > p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.list-picks { display: grid; gap: 10px; }
.list-pick { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 82px; padding: 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); text-decoration: none; }
.list-pick:hover { border-color: var(--accent); }
.list-pick img { display: block; width: 70px; height: 68px; object-fit: contain; background: #fff; border-radius: 4px; }
.list-pick span { display: grid; gap: 2px; min-width: 0; }
.list-pick small { color: var(--muted); font-size: 11px; }
.list-pick .ad-badge { justify-self: start; color: var(--ad); font-size: 11px; }
.list-pick strong { font-size: 13px; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.list-pick b { font-size: 12px; color: var(--accent); }
.list-checks { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.list-checks li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.5; }
.list-checks i { color: var(--accent); font-size: 19px; margin-top: 1px; }
.aside-title { display: flex; align-items: baseline; justify-content: space-between; margin: 14px 4px 0; padding-top: 18px; border-top: 1px solid var(--line); }
.aside-title h3 { margin: 0; font-size: 15px; }
.aside-title span { font-size: 12px; color: var(--muted); }
.aside .thumb { aspect-ratio: 16 / 9; font-size: 44px; }
.aside .body { padding: 12px 14px 14px; gap: 5px; }
.aside .card h3 { font-size: 15px; }
.aside-cards { grid-column: 1 / -1; display: grid; gap: 16px; }
@media (min-width: 1101px) and (max-width: 1339px) {
  .list-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-grid.list-layout > .aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-self: start; }
  .detail-grid.list-layout > .aside::before { display: none; }
  .list-layout .aside-rail { position: static; display: contents; }
  .list-layout .aside-box { grid-column: auto; }
}
/* 데스크톱: 칸을 본문 높이만큼 늘이고 내용(.aside-rail)을 양방향 sticky로 붙인다. 위치 값은 app.js stickyAside()가 정한다(2026-09-28)
   ::before 높이(--rail-shift)는 레일의 기준 위치. 열 폭은 minmax(0, 1fr)로 둬서 긴 링크 이름이 칸을 넓히지 않게 한다 */
@media (min-width: 1101px) {
  .detail-grid > .aside { display: block; align-self: stretch; }
  .detail-grid > .aside::before { content: ""; display: block; height: var(--rail-shift, 0px); }
  .aside-rail { position: sticky; top: 24px; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-content: start; }
}
/* 1100px 이하: 레일 상자를 없는 것처럼 두어 기존 .aside 격자(2열 카드 등)가 그대로 적용되게 한다 */
@media (max-width: 1100px) { .aside-rail { display: contents; } }
.status-box { position: relative; overflow: hidden; }
/* 상태 상자 한 줄(2026-09-28 사용자 지시): ● 상태 · 남은 날 · 짧은 기간(9.24 ~ 10.4). 오른쪽 칸 320px에서 줄바꿈 없이 들어가게 여백을 줄였다.
   글자가 작아져 큰 글자 대비 기준(3:1)을 쓸 수 없으므로 상태별 진한 색(4.5:1 이상)을 쓴다. 연한 배경(--live-soft·--soon-soft)은 어두운 화면에서도
   밝으므로 글자색을 --text에 맡기지 않는다. 종료는 투명도 대신 회색 배경·흐린 글자 */
.aside-box.status-box { display: flex; align-items: center; gap: 10px; padding: 12px 16px; white-space: nowrap; }
.status-box h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.st-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.status-box.is-live { background: var(--live-soft); border-color: color-mix(in srgb, var(--live) 45%, transparent); }
.status-box.is-live h3, .status-box.is-live .countdown, .status-box.is-live .st-range { color: var(--live-ink); }
.status-box.is-live .st-dot { background: var(--live); box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent); animation: live-ring 1.8s ease-out infinite; }
.status-box.is-soon { background: var(--soon-soft); border-color: color-mix(in srgb, var(--soon) 40%, transparent); }
.status-box.is-soon .st-dot { background: var(--soon); }
.status-box.is-soon h3, .status-box.is-soon .countdown, .status-box.is-soon .st-range { color: color-mix(in srgb, var(--soon) 60%, #000); }
.status-box.is-done { background: var(--surface-2); }
.status-box.is-done h3 { color: var(--muted); }
.st-range { margin: 0 0 0 auto; font-size: 13px; color: var(--muted); }
@keyframes live-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.countdown { font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--accent); }
/* 잘못된 정보 제보(2026-09-28): '공식 채널·문의' 마지막 줄 버튼(링크 줄과 같은 모양)과 제보 창(dialog).
   입력 칸 테두리는 3:1 이상, 글자 16px(아이폰 확대 방지). 버튼에는 움직이는 효과를 넣지 않는다 */
.links-box .rp-row:not(:first-child) { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.rp-open { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 6px; border: 0; border-radius: 0px; background: none; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: background .2s; }
.rp-open:hover { background: var(--surface-2); }
.rp-cta:hover, .report-dlg .btn:hover { transform: none; }
.report-dlg { width: min(560px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lift); overflow: auto; overscroll-behavior: contain; word-break: keep-all; scroll-padding-top: 72px; }
.report-dlg::backdrop { background: rgb(20 12 4 / .5); }
/* 제목·닫기 줄은 창 안에서 스크롤해도 위에 남는다 */
.rp-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 8px 22px; background: var(--surface); }
.rp-head h2 { margin: 0; font-size: 19px; }
.rp-x { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 18px; cursor: pointer; }
.rp-x:hover { background: var(--surface-2); }
.rp-form { display: grid; gap: 14px; padding: 0 22px 22px; }
.rp-intro { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.rp-field { display: grid; gap: 6px; min-width: 0; }
.rp-field label { font-size: 14px; font-weight: 700; }
.rp-field label small { margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.rp-field input, .rp-field select, .rp-field textarea, .rp-out { width: 100%; min-width: 0; padding: 9px 12px; border: 1px solid color-mix(in srgb, var(--text) 45%, var(--surface)); border-radius: 2px; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; line-height: 1.5; }
.rp-field select { height: 44px; }
.rp-field textarea, .rp-out { resize: vertical; }
.rp-field input[readonly] { background: var(--surface-2); }
.rp-url { margin: 0; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.rp-hint { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.rp-privacy { display: flex; align-items: flex-start; gap: 6px; }
.rp-privacy i { margin-top: 2px; font-size: 15px; flex: none; }
.report-dlg .doc-todo { margin: 0; }
.rp-acts { display: flex; flex-wrap: wrap; gap: 8px; }
/* 비어 있을 때도 알림 영역(role=status)이 접근성 트리에 남도록 숨김 글자 방식으로 감춘다 */
.rp-done:empty { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); }
.rp-done { margin: 0; padding: 9px 13px; border-radius: 4px; background: var(--live-soft); color: var(--live-ink); font-size: 14px; font-weight: 600; }
/* 자동 복사 실패 안내는 성공 색(초록) 대신 노란 안내 색 */
.rp-done.is-warn { border: 2px solid color-mix(in srgb, var(--gold) 28%, transparent); background: color-mix(in srgb, var(--gold) 10%, var(--surface)); color: var(--text); }
@media (max-width: 560px) {
  .rp-head { padding: 12px 10px 8px 16px; }
  .rp-form { padding: 0 16px 16px; }
  .rp-acts .btn { flex: 1 1 auto; justify-content: center; }
}
/* 함께 가 볼 만한 축제(연계): 2열 가로 카드, 홀수 마지막 칸은 한 줄 전체 */
.cq { container-type: inline-size; }
.rel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 28px; }
@container (max-width: 700px) { .rel-card { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; } }
@container (max-width: 520px) { .rel-grid { grid-template-columns: 1fr; } }
.rel-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.rel-card:hover { border-color: var(--text); box-shadow: var(--shadow); }
.rel-thumb { position: relative; aspect-ratio: 1; border-radius: 3px; overflow: hidden; background: var(--g); display: grid; place-items: center; font-size: 40px; }
.rel-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rel-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rel-body .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.rel-body strong { font-size: 15.5px; line-height: 1.4; }
.rel-date { font-size: 13px; color: var(--muted); }
.rel-why { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.rel-why li { display: flex; align-items: flex-start; gap: 6px; }
.rel-why i { flex: none; margin-top: 2px; font-size: 15px; color: var(--accent); }
/* 출처: 눈에 덜 띄는 옅은 카드. 우선순위별 색 점·세로선, 자료 종류 아이콘, 도메인 */
.sources { margin-top: 56px; padding: 18px 20px 16px; border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--surface-2) 40%, var(--bg)); font-size: 13px; color: var(--muted); }
.src-head { display: flex; align-items: center; gap: 12px; }
.src-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 4px; background: var(--surface); border: 1px solid var(--line); color: var(--gold); font-size: 20px; flex: none; }
.src-head h2 { margin: 0; font-size: 15px; color: var(--text); }
.src-head p { margin: 2px 0 0; font-size: 12px; }
.src-tier { --tier: #9ca3af; margin-top: 16px; }
.src-tier[data-tier="1"] { --tier: var(--accent); }
.src-tier[data-tier="2"] { --tier: var(--soon); }
.src-tier h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 12.5px; font-weight: 700; color: var(--text); }
.src-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tier); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tier) 18%, transparent); flex: none; }
.src-tier ul { list-style: none; margin: 0 0 0 4px; padding: 2px 0 0 10px; border-left: 2px solid color-mix(in srgb, var(--tier) 28%, transparent); }
.src-tier a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border-radius: 3px; color: var(--muted); text-decoration: none; transition: background .2s, color .2s; }
.src-tier a:hover { background: var(--surface); color: var(--text); }
.src-tier a > i:first-child { font-size: 17px; color: color-mix(in srgb, var(--tier) 80%, var(--text)); flex: none; }
.src-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.src-label { color: var(--text); line-height: 1.45; }
.src-host { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-go { font-size: 14px; opacity: .5; flex: none; }
.src-tier a:hover .src-go { opacity: 1; color: var(--accent); }
.src-note { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
.pager a { padding: 18px 20px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; background: var(--surface); transition: transform .3s var(--ease), box-shadow .3s; }
.pager a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.pager a:last-child { text-align: right; }
.pager small { color: var(--muted); display: block; font-size: 12px; }

/* 스크롤 등장: 페이지 상단(제목·히어로)에는 쓰지 않는다 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.in { opacity: 1; transform: none; }

.foot { margin-top: auto; padding: 24px 40px 32px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.foot p { margin: 4px 0; }
.scrim { position: fixed; inset: 0; background: rgb(0 0 0 / .4); z-index: 19; backdrop-filter: blur(2px); }

@media (max-width: 1100px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .aside { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .aside-box, .aside-title { grid-column: 1 / -1; }
  body.show-ads .aside .ad-slot { display: none; }
  /* 카드 2열. 홀수 마지막 카드는 빈칸 없이 한 줄 전체로 두고 사진(한 칸 폭)·글을 나란히 놓는다 */
  .aside-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .aside-cards > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .aside-cards > .card:last-child:nth-child(odd), .aside-cards > .card:last-child:nth-child(odd) > .card-link { flex-direction: row; }
  .aside-cards > .card:last-child:nth-child(odd) > .card-link { flex: 1; min-width: 0; }
  .aside-cards > .card:last-child:nth-child(odd) .thumb { flex: 0 0 calc(50% - 6px); aspect-ratio: auto; min-height: 120px; }
}
@media (max-width: 860px) {
  .sidebar {
    position: fixed; left: 0; top: 0; width: min(290px, 86vw);
    transform: translateX(-100%); transition: transform .35s var(--ease); box-shadow: var(--shadow-lift);
  }
  body.drawer-open .sidebar { transform: none; }
  body.collapsed .sidebar { width: min(290px, 86vw); }
  body.collapsed .label { display: revert; }
  body.collapsed .brand-word.label { display: block; }
  body.collapsed #nav h2 { visibility: visible; height: auto; margin: 20px 12px 6px; }
  .collapse { display: none; }
  .topbar {
    display: flex; align-items: center; gap: 12px; padding: 10px 16px; position: sticky; top: 0; z-index: 15;
    background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
  }
  .topbar-brand { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; }
  .topbar-brand img { width: 32px; height: 32px; }
  .topbar-title { font-weight: 800; }
  .menu-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 2px;
    border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 20px; cursor: pointer;
  }
  body.collapsed .brand { justify-content: flex-start; padding: 0 12px; }
  body.collapsed .brand-word { display: block; }
  body.collapsed #nav a { justify-content: flex-start; padding-inline: 12px; }
  main { padding: 18px 16px 40px; }
  .foot { padding: 20px 16px 28px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .aside { grid-template-columns: 1fr 1fr; gap: 12px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .chip { flex: none; }
  .hero { min-height: 340px; border-radius: 12px; }
  .hero-body { padding: 24px 20px 26px; }
  .hero-media { font-size: 100px; }
  .toc { margin: 28px -16px 0; padding: 8px 16px; top: 61px; }
  .detail-main section { scroll-margin-top: 130px; }
  .transit { grid-template-columns: 1fr; }
  .gallery-feature { grid-template-columns: 1fr; }
  .gallery-feature .poster { display: none; }
  .gallery-strip .tile { grid-column: span var(--t, 3); }
  @container (max-width: 519px) { .gallery-strip .tile { --c: 2; grid-column: span var(--p, 6); } }
  .gallery-strip .strip-poster { display: block; }
  .gallery-strip .tile .tile-cap { font-size: 12px; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lb-nav { position: absolute; bottom: 18px; }
  .lb-nav.prev { left: 18px; } .lb-nav.next { right: 18px; }
  .lightbox figure { padding: 60px 0 84px; }
  .venues { grid-template-columns: 1fr; }
  .audience, .videos, .checks, .programs { grid-template-columns: 1fr; }
  /* 모바일 누름 영역: 손가락으로 누르기 쉽게 40px 이상 */
  .pa, .place-actions.compact .pa, .place-actions.compact + .map-cta { height: 42px; font-size: 13.5px; }
  .sched-zones .chip, .chip { min-height: 38px; }
  .p-main { row-gap: 8px; }
  .sched-list li { grid-template-columns: 1fr; gap: 3px; }
  .s-time { flex-direction: row; gap: 8px; align-items: center; }
  .mbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .mbar a, .mbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 11.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
  .mbar i { font-size: 22px; color: var(--accent); }
  body.is-detail .foot { padding-bottom: 96px; }
  body.is-detail .to-top { bottom: 84px; }
  body.is-detail .toast { bottom: 88px; }
  .map { aspect-ratio: 4 / 3; }
  .programs li { grid-template-columns: 1fr; gap: 4px; }
  .pager { grid-template-columns: 1fr; }
  .pager a:last-child { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .kw .kw-steps li, .kw .kw-tiles li { opacity: 1 !important; transform: none !important; }
  .history-line::after, .h-dot { transform: none !important; }
  .history-item > .yr, .history-item > p, .history-track .history-item.is-now { opacity: 1 !important; transform: none !important; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-word { filter: invert(1) brightness(.95); }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pgroup { --tone-bg: color-mix(in srgb, var(--tone) 16%, var(--surface)); --tone-ink: color-mix(in srgb, var(--tone) 55%, white); }
}

/* ---------- 사이드바: 검색·블로그 펼침·사이트 안내 (2026-09-27) ---------- */
.nav-search { display: flex; align-items: center; gap: 4px; height: 40px; margin: 2px 0 6px; padding: 0 6px 0 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); transition: border-color .2s; }
.nav-search:focus-within { border-color: var(--text); }
.ns-btn { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.ns-btn:hover { color: var(--accent); }
.nav-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; outline: none; }
.nav-search input::placeholder { color: var(--muted); }

.nav-toggle { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 2px; background: transparent; color: var(--text); font: inherit; font-size: 15px; text-align: left; white-space: nowrap; cursor: pointer; transition: background .2s; }
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle .ico { width: 26px; text-align: center; flex: none; font-size: 21px; color: var(--muted); }
.nav-toggle.on .ico, .nav-toggle:hover .ico { color: var(--accent); }
.nav-toggle.on { font-weight: 700; }
.nav-toggle .caret { margin-left: auto; font-size: 14px; color: var(--muted); transition: transform .2s var(--ease); }
.nav-group.open .caret { transform: rotate(180deg); }
.nav-sub { position: relative; margin: 2px 0 4px 24px; padding-left: 14px; border-left: 1px solid var(--line); }
#nav .nav-sub a { padding: 7px 12px; font-size: 14px; color: var(--muted); }
#nav .nav-sub a:hover { color: var(--text); }
#nav .nav-sub a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
#nav .nav-sub a[aria-current="page"]::before { left: -15px; top: 8px; bottom: 8px; width: 2px; }

.side-foot { padding: 10px 12px 2px; margin-top: auto; border-top: 1px solid var(--line); }
/* 광고 가안 토글은 로컬 시안에만 있다. 토글이 있으면 토글이 아래로 밀고, 없으면(운영) 안내 줄이 맨 아래로 간다 */
.ad-toggle + .side-foot { margin-top: 8px; }
.side-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 10px; }
.side-foot li a { display: inline-block; padding: 3px 0; font-size: 12.5px; color: var(--muted); text-decoration: none; }
.side-foot li a:hover { color: var(--text); text-decoration: underline; }
.side-foot li a.strong { color: var(--text); font-weight: 700; }
.sf-copy { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.sf-ico { display: none; }
/* 접힌 메뉴(데스크톱만, 모바일 서랍은 항상 펼친 모양) */
@media (min-width: 861px) {
  body.collapsed .nav-search { justify-content: center; padding: 0; border-color: transparent; background: transparent; }
  body.collapsed .ns-btn { width: 40px; height: 40px; border-radius: 2px; }
  body.collapsed .ns-btn:hover { background: var(--surface-2); }
  body.collapsed .nav-toggle { justify-content: center; padding-inline: 0; }
  body.collapsed .nav-toggle .caret, body.collapsed .nav-sub { display: none; }
  body.collapsed .side-foot { padding-inline: 0; text-align: center; }
  body.collapsed .side-foot ul, body.collapsed .sf-copy { display: none; }
  body.collapsed .sf-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 2px; color: var(--muted); font-size: 20px; }
  body.collapsed .sf-ico:hover { background: var(--surface-2); color: var(--accent); }
}

/* ---------- 목록 필터 보강: 링크형 칩·내 위치 거리 ---------- */
a.chip { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.chip[aria-current="page"] { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 700; }
.near-note { display: flex; align-items: flex-start; gap: 6px; margin: -12px 0 18px; font-size: 13px; color: var(--muted); }
.near-note i, .card .dist i { flex: none; margin-top: 2px; color: var(--accent); }
.card .dist { display: flex; gap: 5px; margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--text); }

/* ---------- 블로그·추천 상품 카드 (2열, 홀수 마지막은 한 줄 전체) ---------- */
.card-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card-list > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.post-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.post-card h3 { margin: 6px 0 4px; font-size: 16px; line-height: 1.45; }
.post-card p { margin: 0; font-size: 14px; color: var(--muted); }
.post-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 26px; }
/* 블로그(2026-10-02): 실제 발행 글. 카드 전체가 원래 글 주소로 가는 링크 */
a.post-card { color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.post-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 2px 10px rgb(0 0 0 / .06); }
a.post-card:hover h3 { color: var(--accent); }
a.post-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.post-card .meta { align-items: center; }
.post-card time { color: var(--muted); }
.post-card h3 { overflow-wrap: anywhere; }
.blog-sec { margin-top: 28px; }
.blog-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.blog-sec-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; }
.blog-sec-head h2 i { color: var(--accent); font-size: 20px; }
.blog-sec-head h2 span { font-size: 13px; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 1px 9px; }
.blog-sec-head a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.blog-sec-head a:hover { text-decoration: underline; }
.search-more { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
/* 추천 상품 색 묶음: a 초록 · b 파랑 · c 주황 (화면에는 이름을 붙이지 않는다). 버튼 글자 대비 4.5:1 이상 */
.tone-a { --tn: #03c75a; --tn-bg: #e6f9ee; --tn-ink: #046b36; --tn-btn: #047a3e; }
.tone-b { --tn: #2563eb; --tn-bg: #e8efff; --tn-ink: #1d4ed8; --tn-btn: #1d4ed8; }
.tone-c { --tn: #f97316; --tn-bg: #fff1e6; --tn-ink: #b3410b; --tn-btn: #b3410b; }
.card.shop-card { border: 2px solid color-mix(in srgb, var(--tn) 24%, var(--line)); background: color-mix(in srgb, var(--tn) 4%, var(--surface)); }
.shop-thumb { display: block; aspect-ratio: 1; background: var(--tn-bg); color: var(--tn-ink); }
.shop-thumb img { object-fit: contain; padding: 6px; background: #fff; }
.shop-card .sub { margin: 4px 0 0; }
.shop-list-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.shop-list-head h2 { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.35; }
.shop-list-head .count { white-space: nowrap; }
.shop-list .shop-card .sub { color: var(--text); line-height: 1.5; }
.shop-card .shop-category-tag { background: var(--tn-bg); color: var(--tn-ink); font-weight: 700; }
.shop-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 8px 0 4px; }
.shop-price strong { font-size: 20px; }
.shop-price small { font-size: 12px; color: var(--muted); }
.shop-card .cta.shop-go { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: auto; background: var(--tn-btn); border-color: var(--tn-btn); color: #fff; }
.shop-card .card-link .body { justify-content: flex-start; }
.shop-card .body, .shop-item { word-break: keep-all; overflow-wrap: anywhere; }
.shop-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.g2 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.disclosure { display: flex; gap: 12px; margin: 0 0 14px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--ad) 30%, var(--line)); border-radius: 6px; background: var(--ad-bg); color: var(--text); }
.disclosure > i { flex: none; margin-top: 2px; font-size: 20px; color: var(--ad); }
.disclosure strong { font-size: 14px; }
.disclosure p { margin: 4px 0 0; font-size: 14px; }
.disclosure .disc-law { font-size: 12.5px; color: var(--muted); }
.shop-list-disclosure { gap: 8px; padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--ad) 22%, var(--line)); background: color-mix(in srgb, var(--ad) 4%, var(--surface)); }
.shop-list-disclosure > i { margin-top: 1px; font-size: 16px; }
.shop-list-disclosure > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.shop-list-disclosure strong { font-size: 12px; white-space: nowrap; }
.shop-list-disclosure p { margin: 0; font-size: 12px; line-height: 1.45; }
.shop-list-disclosure .disc-law { font-size: 11px; }
.ad-h { display: flex; align-items: center; gap: 8px; margin: 26px 0 4px; font-size: 17px; }
.ad-note { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.block-head h2 .ad-badge { font-family: inherit; font-size: 12px; vertical-align: middle; }
.near-where { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--live-soft); color: var(--live-ink); font-size: 13.5px; font-weight: 700; }
.near-where i { color: var(--live); }

/* ---------- 검색 결과 ---------- */
.search-sec { margin-top: 28px; }
.search-sec h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 18px; }
.search-sec h2 span { font-size: 13px; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 1px 9px; }
.search-pages { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.search-pages a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 14px; }
.search-pages a:hover { border-color: var(--text); }

/* ---------- 사이트 안내 문서 ---------- */
.doc { max-width: 760px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 15.5px; line-height: 1.8; }
.doc h2 { margin: 26px 0 8px; font-size: 17px; }
.doc h2:first-child { margin-top: 0; }
.doc p { margin: 0 0 10px; }
.doc ul, .doc ol { margin: 0 0 10px; padding-left: 20px; }
.doc-todo { padding: 9px 13px; border: 2px solid color-mix(in srgb, var(--gold) 28%, transparent); background: color-mix(in srgb, var(--gold) 10%, var(--surface)); border-radius: 4px; font-size: 14px; color: var(--text); }
.doc-law { margin-top: 20px !important; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.doc-list { list-style: none; padding: 0 !important; }
.doc-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.doc-list li:last-child { border-bottom: 0; }
.doc-date { display: block; font-size: 12.5px; color: var(--muted); }
.doc-nav { display: flex; flex-wrap: wrap; gap: 8px; max-width: 760px; margin-top: 18px; }
.doc-nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 13.5px; }
.doc-nav a[aria-current="page"] { border-color: var(--text); color: var(--text); font-weight: 700; }
@media (max-width: 860px) {
  .side-foot li a { display: inline-flex; align-items: center; min-height: 36px; }
  .nav-search { height: 44px; }
}
@media (max-width: 640px) {
  .grid.g2 { grid-template-columns: 1fr; }
  .card-list { grid-template-columns: 1fr; }
  .doc { padding: 18px 16px; }
}

/* ---------- 작은 카드 격자: 광고 묶음 가로 4개, 추천 상품 최대 6개 ---------- */
.grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@container (max-width: 560px) { .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid.shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@container (min-width: 400px) { .grid.shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (min-width: 600px) { .grid.shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (min-width: 760px) { .grid.shop-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.g4 .card .body, .shop-grid .card .body { padding: 10px 12px 12px; gap: 6px; }
.g4 .card h3 { font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-grid .card h3 { font-size: 16px; line-height: 1.4; }
.g4 .card .meta, .shop-grid .card .meta { font-size: 11.5px; gap: 4px; }
.g4 .card .cta, .shop-grid .card .cta { min-height: 36px; padding: 8px 8px; font-size: 13px; }
.shop-grid .card .sub { font-size: 12.5px; }
.shop-grid .shop-thumb { font-size: 40px; }
.shop-list .shop-thumb { aspect-ratio: 3 / 2; }
.shop-list .shop-card:hover .shop-thumb img { transform: none; }
.shop-list .card h3 { font-size: 14px; }
.shop-list .shop-price strong { font-size: 16px; }
.shop-list .cta.shop-go { gap: 2px; padding-inline: 4px; font-size: 11px; white-space: nowrap; }
@media (max-width: 640px) {
  .festival-list-layout .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shop-list-head h2 { font-size: 19px; }
}
/* 주차 카드가 좁으면(3열 노트북 폭) 버튼 이름을 짧게: 카카오맵 → 카카오, 주소 복사 → 복사 */
.lbl-s { display: none; }
.pgroup li .p-acts { container-type: inline-size; } /* 카드(li)에 두면 레이아웃 격리로 subgrid가 꺼진다 */
@container (max-width: 189px) {
  .place-actions.compact .pa { padding: 0 7px; gap: 4px; }
  .lbl-l { display: none; }
  .lbl-s { display: inline; }
}

/* 블로그 분류 절취선: 새 글 분류(예시)와 eventlong 기존 글 분류 사이 */
#nav .nav-sub a .nav-n { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.blog-filters { align-items: center; }
.chip small { font-size: 12px; opacity: .7; }
@media (max-width: 860px) { .blog-filters { flex-wrap: wrap; overflow: visible; } }


/* ---------- 주변 숙소 CTR (2026-09-27): 걸어서 시간 강조, 예약처 상호·구분 색 버튼, 예약처별 보기 ---------- */
.pa.stay-jump i { color: var(--accent); }

/* ---------- 참여형 캠페인 소개 페이지 (/campaign/<slug>/) ---------- */
.camp-page { container-type: inline-size; }
.camp-hero { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.camp-hero-img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 628; object-fit: cover; background: var(--surface-2); }
.fair-page .camp-hero-img { aspect-ratio: auto; max-height: 480px; object-fit: contain; }
.camp-cover { margin: 0; }
.camp-cover figcaption { padding: 7px 14px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.camp-cover .camp-image-note { margin-top: 4px; }
.camp-hero-body { padding: 24px 28px 28px; }
.camp-hero h1 { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 40px); line-height: 1.2; letter-spacing: -.03em; margin: 12px 0 12px; }
.camp-hook { margin: 0 0 10px; font-size: 18px; font-weight: 700; line-height: 1.5; color: var(--text); }
.camp-hook small { display: inline-block; margin-left: 8px; font-size: 11.5px; font-weight: 600; color: var(--muted); vertical-align: 2px; }
.camp-lead { margin: 0 0 18px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.camp-apply { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 18px; border-radius: 5px; background: var(--accent); color: var(--accent-ink); font-size: 16.5px; font-weight: 800; text-decoration: none; transition: filter .2s; }
.camp-apply:hover { filter: brightness(1.07); }
.camp-apply .ad-badge { background: rgb(255 255 255 / .9); color: var(--ad); }
.camp-apply i { font-size: 18px; }
.camp-apply.is-hero { max-width: 420px; }
.camp-glance { margin-top: 20px; }
.camp-glance .glance-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@container (max-width: 1000px) { .camp-glance .glance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 440px) { .camp-glance .glance-grid { grid-template-columns: 1fr; } }
/* 넓은 화면: 이미지 왼쪽·글 오른쪽으로 제목과 신청 버튼을 첫 화면에 둔다 */
@container (min-width: 860px) {
  .camp-hero { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); align-items: center; }
  .camp-hero-body { padding: 24px 28px; }
}
/* 박람회는 혜택·신청 조건을 사진보다 먼저 읽는다. 사진은 원본 비율로 뒤에 둔다. */
.fair-page .camp-hero { display: block; }
.fair-page .camp-hero-img { max-height: 360px; }
.camp-sec { margin-top: 36px; }
.camp-sec h2 { font-family: var(--serif); font-size: 22px; letter-spacing: -.02em; margin: 0 0 14px; }
.camp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.camp-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.camp-steps p { margin: 6px 0 0; line-height: 1.6; }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.camp-src { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.camp-src a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
.camp-mid { margin-top: 28px; padding: 18px; border: 2px solid color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 8px; background: color-mix(in srgb, var(--accent) 5%, var(--surface)); text-align: center; }
.camp-mid .camp-apply { max-width: 420px; margin: 0 auto; }
.camp-mid p { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.camp-src-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.camp-src-list li { font-size: 13px; }
.camp-src-list a { display: inline-flex; align-items: center; gap: 4px; color: var(--text); }
.camp-bar { display: none; }
@media (max-width: 860px) {
  .camp-hero-body { padding: 18px 18px 22px; }
  .camp-hook { font-size: 16.5px; }
  .camp-apply.is-hero { max-width: none; }
  .fair-page .camp-apply.is-hero { display: none; }
  .mbar.camp-bar { display: block; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  .mbar.camp-bar a.camp-apply { flex-direction: row; gap: 8px; min-height: 48px; padding: 10px 14px; border-radius: 5px; background: var(--accent); color: var(--accent-ink); font-size: 15.5px; font-weight: 800; }
  .mbar.camp-bar i { font-size: 18px; color: var(--accent-ink); }
}

/* ---------- 주변 숙소 카드 (2026-09-27 개편) ----------
   세로 카드: 큰 사진(공공누리 원본 비율 3:2, 자르지 않음) → 추가 사진 최대 3장 → 이름·배지·주소 → 예약처 목록.
   예약처는 제휴 링크가 있는 곳만 구분 색 버튼('준비 중'은 2026-09-28부터 숨김). 격자는 아래 '3개씩 격자' 블록 */
.stay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.stay-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.stay-media { display: grid; gap: 4px; padding: 6px 6px 0; }
.stay-photo { position: relative; aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font-size: 46px; color: var(--muted); }
.stay-photo .sp-main { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: zoom-in; }
.stay-photo img, .sp-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sp-top { position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 5px; font-size: 12px; line-height: 1.5; pointer-events: none; }
.sp-top .tag { background: rgb(255 255 255 / .92); color: #1d1813; font-weight: 700; }
.sp-walk { position: absolute; left: 8px; bottom: 8px; right: 56px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; width: fit-content; max-width: calc(100% - 64px); margin: 0; padding: 6px 10px; border-radius: 3px; background: rgb(255 255 255 / .94); color: var(--text); font-size: 12.5px; font-weight: 600; box-shadow: 0 2px 8px rgb(0 0 0 / .15); pointer-events: none; }
.sp-walk i { align-self: center; font-size: 16px; color: var(--accent); }
.sp-walk b { color: var(--accent); font-size: 15px; letter-spacing: -.01em; }
.sp-walk span { color: var(--muted); }
.sp-count { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: rgb(0 0 0 / .6); color: #fff; font-size: 12px; font-weight: 700; pointer-events: none; }
.stay-thumbs { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; }
.sp-thumb { position: relative; aspect-ratio: 3 / 2; padding: 0; border: 0; border-radius: 2px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.sp-thumb:hover img, .sp-main:hover img { filter: brightness(1.06); }
.sp-thumb:focus-visible, .sp-main:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.stay-body { display: flex; flex-direction: column; gap: 7px; min-width: 0; padding: 12px 14px 14px; }
.stay-name { margin: 0; font-size: 17px; line-height: 1.35; letter-spacing: -.01em; }
.stay-card .stay-credit { margin: 0; font-size: 11.5px; color: var(--muted); }
.mall-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; margin: 4px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); }
.mall-head span { font-size: 13px; font-weight: 800; }
.mall-head small { font-size: 12px; color: var(--muted); }
.stay-malls { display: grid; gap: 6px; }
.mall-item { --mall: #475569; display: grid; gap: 6px; }
.mall-row { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 12px; border-radius: 3px; font-size: 14px; text-decoration: none; min-width: 0; }
.mall-row b { flex: none; font-weight: 800; }
.mall-go { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; min-width: 0; font-size: 13px; font-weight: 700; text-align: right; }
.mall-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mall); flex: none; }
/* NOL 링크는 앱 딥링크라 이름 옆에 '앱'을 붙인다(2026-09-29) */
.mall-app { flex: none; padding: 1px 6px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1.5; color: var(--mall); background: color-mix(in srgb, var(--mall) 14%, var(--surface)); }
.mall-row.on { border: 2px solid color-mix(in srgb, var(--mall) 55%, transparent); background: color-mix(in srgb, var(--mall) 8%, var(--surface)); color: var(--text); transition: background .2s, border-color .2s; }
.mall-row.on b, .mall-row.on .mall-go { color: var(--mall); }
.mall-row.on:hover { background: color-mix(in srgb, var(--mall) 15%, var(--surface)); border-color: var(--mall); }
.mall-item.is-pick .mall-row.on { background: var(--mall); border-color: var(--mall); }
.mall-item.is-pick .mall-row.on b, .mall-item.is-pick .mall-row.on .mall-go, .mall-item.is-pick .mall-dot { color: #fff; }
.mall-item.is-pick .mall-dot { background: #fff; }
.stay-malls:has(.is-pick) .mall-item.is-pick { order: -1; }
.mall-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; }
.mall-chip { --mall: #475569; display: inline-flex; align-items: center; gap: 6px; }
.mall-chip small { font-size: 11.5px; font-weight: 700; opacity: .75; }
.mall-chip[aria-pressed="true"] { background: var(--mall); border-color: var(--mall); color: #fff; }
.mall-chip[aria-pressed="true"] .mall-dot { background: #fff; }
/* 지역 숙소 전체 둘러보기 칸 */
.stay-more .more-panel { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), color-mix(in srgb, #2563eb 12%, var(--surface))); color: var(--accent); align-content: center; gap: 6px; }
.stay-more .more-panel > i { font-size: 44px; }
.more-title { margin: 0; text-align: center; font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.3; color: var(--text); }
.more-note { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
/* 가안 카드(광고 가안 보기에서만) */
.stay-card.is-slot { padding: 0; }
.stay-card.is-slot .stay-photo { margin: 6px 6px 0; background: #fde9c8; color: #b45309; }
@container (max-width: 520px) { .stay-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .mall-row { min-height: 44px; } }

/* ---------- 주변 숙소·가서 즐길 거리 2026-09-28 (숙소 지도·번호, 사진 없는 숙소, 할인코드 접기, 3개씩 격자) ---------- */
/* 숙소 지도(#smap): 주차 지도와 같은 틀(.pmap)을 쓰되 따로 그린다. 숙소 표시는 분홍 둥근 사각 핀(주차장의 원형·색과 구분) */
.smap-wrap .pmap { height: 360px; }
.mk.smk { position: relative; width: 28px; height: 28px; border-radius: 3px; background: #be185d; }
.mk.smk::after { content: ""; position: absolute; left: 50%; bottom: -9px; margin-left: -6px; border: 6px solid transparent; border-top: 7px solid #be185d; border-bottom: 0; }
.lg.lg-stay { background: #be185d; border-radius: 0px; }
.lg.lg-star { display: grid; place-items: center; color: #fff; font-size: 11px; line-height: 1; }
.smap-go { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; margin-top: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface-2); color: var(--text); font: 600 13px/1.2 system-ui, sans-serif; cursor: pointer; }
.smap-go:hover, .smap-all:hover { border-color: var(--text); }
/* 첫 화면 밖 숙소 안내 + '모든 숙소 보기' */
.smap-more { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.smap-more[hidden] { display: none; }
.smap-all { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface-2); color: var(--text); font: 600 13px/1.2 system-ui, sans-serif; cursor: pointer; }
.smap-all i { font-size: 16px; color: var(--muted); }
.smap-go:focus-visible, .smap-all:focus-visible, .sp-shot:focus-visible, .stay-deals > summary:focus-visible, .stay-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* 카드 번호(= 지도 번호). 사진 위 배지 줄(.sp-top)의 맨 앞 */
.sp-num { display: inline-grid; place-items: center; min-width: 22px; padding: 0 6px; border-radius: 1px; background: #be185d; color: #fff; font-weight: 800; box-shadow: 0 0 0 2px #fff; }
/* 공공누리 사진이 없는 숙소: 아이콘 + 예약처 숙소 페이지에서 사진 보기 링크. 배지·걸어서 시간을 겹치지 않게 위아래로 쌓는다(칸이 좁으면 3:2보다 길어진다) */
.stay-photo.no-photo { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 8px; min-width: 0; padding: 8px; overflow: visible; font-size: 13px; }
.stay-photo.no-photo > .sp-top, .stay-photo.no-photo > .sp-walk { position: static; }
.stay-photo.no-photo > .sp-walk { max-width: 100%; }
.sp-none { display: grid; justify-items: center; gap: 8px; align-self: stretch; }
.sp-none > i { font-size: 46px; line-height: 1; }
.sp-shot { --mall: #475569; display: inline-flex; align-items: center; justify-content: center; gap: 4px; max-width: 100%; min-height: 40px; padding: 6px 12px; border: 2px solid color-mix(in srgb, var(--mall) 55%, transparent); border-radius: 3px; background: var(--surface); color: var(--mall); font-size: 13px; font-weight: 700; line-height: 1.3; text-align: center; text-decoration: none; }
.sp-shot:hover { border-color: var(--mall); }
/* 할인코드: 접어 두고 '○○ 할인코드 보기'를 누르면 코드·조건·기한이 보인다 */
.stay-deals { padding: 0; }
.stay-deals > summary { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border-radius: 1px; font-size: 13px; font-weight: 700; line-height: 1.35; cursor: pointer; list-style: none; }
.stay-deals > summary::-webkit-details-marker { display: none; }
.stay-deals > summary > span { flex: 1; min-width: 0; word-break: keep-all; }
.stay-deals > summary > i { flex: none; font-size: 15px; color: var(--accent); }
.stay-deals[open] > summary .sd-caret { transform: rotate(180deg); }
.stay-deals > ul { margin: 0; padding: 0 12px; }
.stay-deals > p { margin: 6px 0 0; padding: 0 12px 10px; }
/* 카드 안쪽은 카드 폭으로 맞춘다(3개씩이면 1280px에서 카드 약 180px) */
.stay-card { container: stay-card / inline-size; }
/* 한 줄의 카드 높이를 맞추고 예약처 묶음을 카드 아래쪽에 모은다(가서 즐길 거리와 같은 방식) */
.stay-grid:not(.thing-grid) { align-items: stretch; }
.stay-card:not(.is-slot) > .stay-body { flex: 1; }
.stay-card:not(.is-slot) .mall-head { margin-top: auto; }
.stay-card[hidden] { display: none; }
@container stay-card (width < 260px) {
  .stay-body { padding: 10px 10px 12px; gap: 6px; }
  .stay-name { font-size: 15px; }
  .sp-count { display: none; }
  .sp-walk { right: 8px; max-width: calc(100% - 16px); padding: 4px 8px; font-size: 11.5px; }
  .sp-walk b { font-size: 13px; }
  .sp-none > i { font-size: 32px; }
  .sp-shot { min-height: 36px; padding: 5px 8px; font-size: 12px; }
  .mall-row { flex-wrap: wrap; gap: 2px 7px; padding: 7px 10px; }
  .mall-go { flex-basis: 100%; justify-content: flex-start; padding-left: 16px; text-align: left; }
  .stay-deals > summary { padding: 8px 10px; font-size: 12.5px; }
  .stay-deals > summary > i:first-child { display: none; }
  .stay-deals > ul { padding: 0 10px; }
  .stay-deals > p { padding: 0 10px 10px; }
  .more-title { font-size: 17px; }
}
/* 3개씩 격자(2026-09-28 사용자 지시): 묶음 폭 560px 이상이면 6칸 격자에 카드마다 2칸. 격자 원칙대로 빈칸을 두지 않는다:
   마지막 줄이 2개면 3칸씩, 1개면 한 줄 전체(사진 왼쪽 가로형). 예약처 필터로 숨긴 카드([hidden])는 세지 않는다(:nth-child(… of …)).
   521~559px은 가로 2개(홀수 마지막 칸 한 줄 전체), 520px 이하는 1개
   '숙소 전체 둘러보기'(.stay-more)는 세지 않고 늘 격자 맨 끝 한 줄 전체의 가로형으로 둔다(2026-09-28 사용자 지시 '유휴 공간 없게': 버튼 1~2개뿐이라 숙소 카드 옆 칸이면 크게 비었다) */
@container (width >= 560px) {
  .stay-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .stay-grid > * { grid-column: span 2; }
  .stay-grid > :nth-child(3n+1 of :not([hidden], .stay-more)):nth-last-child(2 of :not([hidden], .stay-more)),
  .stay-grid > :nth-child(3n+2 of :not([hidden], .stay-more)):nth-last-child(1 of :not([hidden], .stay-more)) { grid-column: span 3; }
  .stay-grid > :nth-child(3n+1 of :not([hidden], .stay-more)):nth-last-child(1 of :not([hidden], .stay-more)) { grid-column: 1 / -1; }
  .stay-grid > :nth-child(3n+1 of :not([hidden], .stay-more)):nth-last-child(1 of :not([hidden], .stay-more)):has(> .stay-media) { flex-direction: row; }
  .stay-grid > :nth-child(3n+1 of :not([hidden], .stay-more)):nth-last-child(1 of :not([hidden], .stay-more)) > .stay-media { flex: 0 0 44%; padding: 6px 0 6px 6px; align-content: start; }
  .stay-grid > :nth-child(3n+1 of :not([hidden], .stay-more)):nth-last-child(1 of :not([hidden], .stay-more)) > .stay-body { flex: 1; }
}
@container (520px < width < 560px) {
  .stay-grid > :nth-child(odd of :not([hidden], .stay-more)):nth-last-child(1 of :not([hidden], .stay-more)) { grid-column: 1 / -1; }
  .stay-grid > :nth-child(odd of :not([hidden], .stay-more)):nth-last-child(1 of :not([hidden], .stay-more)):has(> .stay-media) { flex-direction: row; }
  .stay-grid > :nth-child(odd of :not([hidden], .stay-more)):nth-last-child(1 of :not([hidden], .stay-more)) > .stay-media { flex: 0 0 44%; padding: 6px 0 6px 6px; align-content: start; }
  .stay-grid > :nth-child(odd of :not([hidden], .stay-more)):nth-last-child(1 of :not([hidden], .stay-more)) > .stay-body { flex: 1; }
}

@container (width > 520px) {
  .stay-grid > .stay-more { grid-column: 1 / -1; flex-direction: row; }
  .stay-grid > .stay-more > .stay-media { flex: 0 0 34%; padding: 6px 0 6px 6px; }
  .stay-grid > .stay-more > .stay-media .more-panel { aspect-ratio: auto; height: 100%; min-height: 150px; }
  .stay-grid > .stay-more > .stay-body { flex: 1; }
}

/* 가서 즐길 거리 (2026-09-28): 숙소 카드와 같은 틀, 사진 대신 아이콘 한 줄. 격자 원칙대로 홀수 마지막 칸은 한 줄 전체 */
.thing-grid { align-items: stretch; }
.thing-card .stay-body { flex: 1; }
.thing-why { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text); }
.thing-card .mall-head { margin-top: auto; }
/* 마지막 줄 칸 나누기(한 줄 전체·사진 왼쪽 가로형)는 위 '3개씩 격자' 블록이 숙소와 함께 맡는다 */

/* 광고 카드 한 줄 후킹 문구 (2026-09-27): 제목 위, 강조색 굵은 한 줄(넘치면 두 줄까지) */
.camp-card-hook { margin: 0; font-size: 14px; font-weight: 800; line-height: 1.45; word-break: keep-all; color: var(--accent); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g4 .camp-card-hook, .aside .camp-card-hook { font-size: 13px; }
.camp-card .cta { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.camp-card .cta i { font-size: 15px; }

/* ---------- 캠페인 소개 페이지 개편 (2026-09-27): 본문 + 오른쪽 연계 칸, 이야기형 섹션, 아래 축제 한 줄 4개 ---------- */
.camp-page .detail-main { container-type: inline-size; min-width: 0; }
.camp-body::after { content: ""; display: table; clear: both; }
.camp-body.has-fig .camp-fig { float: right; width: min(42%, 260px); margin: 4px 0 12px 20px; }
.camp-prose p { margin: 0 0 12px; font-size: 16px; line-height: 1.8; }
.camp-prose p:last-child { margin-bottom: 0; }
.camp-fig { margin: 0; }
.camp-fig img { display: block; width: 100%; height: auto; border-radius: 7px; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface-2); }
.camp-fig figcaption { margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.camp-callout { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; padding: 14px 16px; border: 2px solid color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 6px; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); font-size: 15px; font-weight: 700; line-height: 1.6; }
.camp-callout i { flex: none; margin-top: 1px; font-size: 22px; color: var(--accent); }
.camp-flow { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: flow; }
.camp-flow li { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 14px 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.camp-flow strong { font-size: 15px; line-height: 1.4; }
.camp-flow p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.flow-n { position: absolute; top: 12px; right: 12px; font: 800 12px/1 var(--mono, ui-monospace, monospace); color: var(--muted); }
.flow-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 20px; }
.camp-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.camp-point { display: flex; gap: 12px; align-items: flex-start; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.camp-point h3 { margin: 0 0 4px; font-size: 15px; }
.camp-point p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.camp-point .aud-ico { flex: none; }
/* 그림 옆 기능 카드(2026-09-28): 격자 대신 한 장씩 흘려, 그림 옆에서는 좁게 붙고 그림이 끝나면 넓어진다(카드가 flex라 그림을 피한다) */
.camp-points.in-fig { display: block; margin-top: 14px; }
.camp-points.in-fig > .camp-point + .camp-point { margin-top: 10px; }
.camp-sec .tips, .camp-sec .camp-steps { margin-top: 16px; }
.camp-mid-q { margin: 0 0 12px !important; font-size: 16px !important; font-weight: 800; color: var(--text) !important; }
.camp-page .sources { margin-top: 40px; }
/* 오른쪽 칸: 신청 상자 · 문의 · 도움이 되는 정보 분류 */
.apply-box { border: 2px solid color-mix(in srgb, var(--accent) 24%, var(--line)); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.apply-box h3 { margin: 10px 0 12px; font-size: 18px; line-height: 1.35; }
.apply-facts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.apply-facts li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.apply-facts i { flex: none; margin-top: 1px; font-size: 18px; color: var(--accent); }
.camp-apply.is-aside { min-height: 48px; font-size: 15.5px; }
.apply-note, .aside-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.guide-box a { justify-content: flex-start; }
.guide-box a small { margin-left: auto; font-size: 12px; color: var(--muted); }
.guide-box a[aria-current="page"] { background: var(--accent-soft); font-weight: 700; }
/* 오른쪽 칸 폭 고정: 긴 링크 이름이 칸을 밀어내지 않게 */
.camp-aside { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1100px) { .camp-aside { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); } }
@media (max-width: 860px) { .camp-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* 아래 '함께 가 볼 만한 축제': 한 줄 4개(묶음 폭 560px 이하 2개) */
.camp-fests { margin-top: 56px; }
.camp-fests .lead { margin: -8px 0 14px; color: var(--muted); }
.grid.fest4 .card .thumb { aspect-ratio: 16 / 10; }
@container (max-width: 700px) { .camp-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 460px) { .camp-body.has-fig .camp-fig { float: none; width: min(100%, 320px); margin: 0 auto 14px; } }
@container (max-width: 460px) { .camp-points { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 상세 배치 (2026-09-27 사용자 지시): 히어로·한눈에 보기·목차도 본문 칸 안에, 오른쪽 칸은 맨 위부터 옆에 ---------- */
article.detail-grid { margin-top: 0; }
.detail-main > .hero, .detail-main > .camp-hero { margin-top: 0; }
.detail-main > .hero h1 { font-size: clamp(28px, 3vw, 44px); }
.detail-main > .hero { min-height: 380px; }
@media (min-width: 861px) { .detail-main > .toc { margin: 28px 0 0; padding: 10px 0; } }
.detail-main > .ad-slot { margin-top: 24px; }
.detail-main > .disclosure { margin: 0 0 16px; }
.detail-main > .camp-hero h1 { font-size: clamp(24px, 2.6vw, 34px); }
/* 주차 카드 줄 맞춤(2026-09-27 사용자 지시): 같은 줄 카드끼리 제목(번호·이름·면수·메모)·경로·주소·버튼 줄의 높이를 맞춰
   카카오맵·네이버 등 버튼이 같은 높이에서 시작하게 한다(subgrid). 카드 높이도 줄마다 같다 */
.pgroup ul { align-items: stretch; }
.pgroup li { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; align-content: start; }
.pgroup li .p-info { display: contents; }
.pgroup li .p-main { grid-row: 1; align-self: start; }
.pgroup li .route { grid-row: 2; justify-self: start; align-self: start; }
.pgroup li .addr { grid-row: 3; align-self: start; }
.pgroup li .p-acts { grid-row: 4; align-self: start; }

/* ---------- 캠페인 페이지 시각 요소 (2026-09-27): 사실 자료 차트, 스크롤로 보일 때 한 번 은은하게 그려진다 ---------- */
.chart-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
/* 히어로 숫자 칩(움직임 없음) */
.hero-points { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.hero-points li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line)); border-radius: 4px; background: color-mix(in srgb, var(--accent) 5%, var(--surface)); font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.hero-points i { flex: none; font-size: 20px; color: var(--accent); }
.hero-points b { display: block; font-size: 15px; color: var(--text); }
/* 비교(이해 ↔ 표현) */
.cmp { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 10px; margin-top: 18px; }
.cmp-col { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); opacity: 0; transform: translateX(calc((var(--k) * 2 - 1) * 18px)); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--k) * 220ms + 150ms); }
.cmp.in .cmp-col { opacity: 1; transform: none; }
.cmp-col.is-focus { border: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); box-shadow: var(--shadow); }
.cmp-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 4px; background: var(--surface-2); color: var(--muted); font-size: 20px; }
.cmp-col.is-focus .cmp-ico { background: var(--accent-soft); color: var(--accent); }
.cmp-col strong { margin-top: 6px; font-size: 17px; }
.cmp-col small { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
.cmp-col p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.cmp-badge { align-self: flex-start; margin-top: 8px; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; }
.cmp-arrow { display: grid; place-items: center; color: var(--muted); font-size: 22px; }
.cmp-before { grid-column: 1 / -1; display: flex; gap: 8px; align-items: flex-start; margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.cmp-before i { flex: none; margin-top: 2px; font-size: 16px; }
@container (max-width: 520px) { .cmp { grid-template-columns: minmax(0, 1fr); } .cmp-arrow { transform: rotate(90deg); } }
/* GV 4단계: 차례로 나타나고 단계 사이 화살표 */
.camp-flow li { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--k) * 160ms + 120ms); }
.camp-flow.in li { opacity: 1; transform: none; }
.camp-flow.reveal { opacity: 1; transform: none; }
.camp-flow .flow-n { font: 800 11px/1 system-ui, sans-serif; letter-spacing: .04em; color: var(--accent); }
/* 레벨 계단 */
.ladder { margin: 18px 0 0; padding: 16px 16px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.ladder figcaption { font-size: 14px; font-weight: 800; }
.ladder ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; align-items: end; height: 190px; }
.ladder li { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.lad-bar { display: flex; align-items: flex-start; justify-content: center; height: var(--h); padding-top: 8px; border-radius: 3px 3px 0px 0px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) calc(40% + var(--k) * 10%), var(--surface)), color-mix(in srgb, var(--accent) 12%, var(--surface))); transform: scaleY(0); transform-origin: bottom; transition: transform .9s var(--ease); transition-delay: calc(var(--k) * 120ms + 150ms); }
.ladder.in .lad-bar { transform: none; }
.lad-bar b { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 999px; background: rgb(255 255 255 / .92); color: var(--accent); font-size: 12.5px; box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.lad-lbl { font-size: 12px; font-weight: 700; line-height: 1.35; text-align: center; word-break: keep-all; }
/* 주간 시간표 */
.tt { margin: 18px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.tt figcaption { font-size: 14px; font-weight: 800; }
.tt-legend { list-style: none; margin: 10px 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; font-weight: 700; }
.tt-legend li { display: inline-flex; align-items: center; gap: 6px; }
.tt-legend span { width: 12px; height: 12px; border-radius: 0px; background: color-mix(in srgb, var(--lv) 30%, var(--surface)); border: 1px solid var(--lv); }
.tt-legend small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.tt-grid { display: grid; grid-template-columns: 34px repeat(5, minmax(0, 1fr)); grid-template-rows: 26px repeat(var(--rows), 13px); gap: 0 4px; background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 78px; background-position: 0 26px; }
.tt-corner { grid-row: 1; grid-column: 1; }
.tt-day { grid-row: 1; align-self: center; text-align: center; font-size: 13px; font-weight: 800; }
.tt-hour { grid-column: 1; font-size: 11px; color: var(--muted); padding-top: 2px; }
.tt-cls { display: flex; flex-direction: column; justify-content: center; min-width: 0; margin: 1px 0; padding: 2px 5px; border: 1px solid color-mix(in srgb, var(--lv) 60%, transparent); border-radius: 1px; background: color-mix(in srgb, var(--lv) 16%, var(--surface)); overflow: hidden; opacity: 0; transform: scale(.92); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--k) * 45ms + 100ms); }
.tt.in .tt-cls { opacity: 1; transform: none; }
.tt-cls b { font-size: 11.5px; line-height: 1.25; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-cls small { font-size: 11px; color: var(--muted); line-height: 1.2; }
@container (max-width: 420px) { .tt { padding: 12px 10px; } .tt-grid { grid-template-columns: 28px repeat(5, minmax(0, 1fr)); gap: 0 2px; } .tt-cls { padding: 2px 3px; } .tt-cls small { display: none; } }
/* 7일 체험 타임라인: 세로선이 위에서 아래로 그어진다 */
.tl { position: relative; list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.tl::before { content: ""; position: absolute; left: 107px; top: 20px; bottom: 20px; width: 2px; background: color-mix(in srgb, var(--accent) 35%, var(--line)); transform: scaleY(0); transform-origin: top; transition: transform 1.4s var(--ease) .1s; }
.tl.in::before { transform: none; }
.tl.reveal { opacity: 1; transform: none; }
.tl li { position: relative; display: grid; grid-template-columns: 88px 40px minmax(0, 1fr); gap: 0 12px; align-items: start; opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--k) * 220ms + 200ms); }
.tl.in li { opacity: 1; transform: none; }
.tl-when { justify-self: end; margin-top: 9px; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 800; text-align: right; line-height: 1.3; }
.tl-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 2px solid color-mix(in srgb, var(--accent) 40%, var(--line)); color: var(--accent); font-size: 19px; }
.tl-body { padding: 10px 14px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.tl-body strong { font-size: 15px; }
.tl-body p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
@container (max-width: 460px) {
  .tl::before { left: 19px; }
  .tl li { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 10px; }
  .tl-when { grid-column: 2; grid-row: 1; justify-self: start; margin-top: 0; }
  .tl-dot { grid-column: 1; grid-row: 1 / 3; }
  .tl-body { grid-column: 2; }
}
/* 보호자 알림 시각표 */
.alerts { display: grid; gap: 10px; margin-top: 16px; padding: 16px; border-radius: 8px; background: color-mix(in srgb, var(--surface-2) 60%, var(--bg)); border: 1px solid var(--line); }
.alerts.reveal { opacity: 1; transform: none; }
.alert-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: start; opacity: 0; transform: translateX(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--k) * 260ms + 150ms); }
.alerts.in .alert-row { opacity: 1; transform: none; }
.alert-time { margin-top: 10px; font-size: 12.5px; font-weight: 800; color: var(--muted); text-align: right; }
.alert-bubble { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 0px 8px 8px 8px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.alert-bubble i { flex: none; margin-top: 1px; font-size: 20px; color: #ca8a04; }
.alert-bubble strong { display: block; color: var(--text); font-size: 14px; }
@container (max-width: 420px) { .alert-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } .alert-time { margin: 0; text-align: left; } }
.camp-callout.is-note { font-weight: 500; font-size: 13.5px; border-width: 1px; border-color: var(--line); background: var(--surface); }
.camp-callout.is-note i { color: var(--muted); font-size: 18px; }
/* 오른쪽 칸: 숫자로 보기 · 곧 열리는 축제(맨 아래) */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.stat-grid div { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); }
.stat-grid dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat-grid dd { margin: 2px 0 0; display: flex; align-items: baseline; gap: 3px; flex-wrap: wrap; }
.stat-grid b { font-family: var(--serif); font-size: 22px; line-height: 1.2; color: var(--accent); }
.stat-grid small { font-size: 12px; font-weight: 700; color: var(--text); }
.fest-mini ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.fest-mini a { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 6px; border-radius: 2px; color: var(--text); text-decoration: none; }
.fest-mini a:hover { background: var(--surface-2); }
.fm-state { grid-row: 1 / 3; align-self: center; min-width: 52px; padding: 4px 8px; border-radius: 999px; text-align: center; font-size: 12px; font-weight: 800; background: color-mix(in srgb, var(--soon) 12%, var(--surface)); color: var(--soon); }
.fm-state.is-live { background: color-mix(in srgb, var(--live) 14%, var(--surface)); color: #15803d; }
.fm-name { font-size: 14px; font-weight: 700; line-height: 1.35; }
.fest-mini small { font-size: 12px; color: var(--muted); }
/* 출처 중 링크가 없는 항목(광고주 안내 문구) */
.src-item { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; color: var(--muted); }
.src-item > i:first-child { font-size: 17px; color: color-mix(in srgb, var(--tier) 80%, var(--text)); flex: none; }
.camp-aside { align-content: start; }
@media (prefers-reduced-motion: reduce) {
  .cmp-col, .camp-flow li, .lad-bar, .tt-cls, .tl li, .alert-row, .tl::before { opacity: 1 !important; transform: none !important; }
}

/* ---------- 축제 주차: 주차장 한눈에 보기(면수 막대 + 축제장까지 시간), 카드 번호·그룹 색과 같다 ---------- */
.pchart { container-type: inline-size; margin: 16px 0 22px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.pchart figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; font-size: 14px; font-weight: 800; }
.pchart figcaption small { font-size: 12px; font-weight: 500; color: var(--muted); }
.pchart ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.pchart li { display: grid; grid-template-columns: 24px minmax(0, 1.25fr) minmax(0, 2fr) minmax(0, auto); align-items: center; gap: 8px; font-size: 13px; }
.pc-num { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--tone); color: #fff; font-size: 11.5px; font-weight: 800; }
.pc-num.nopos { background: var(--surface); color: var(--muted); border: 1.5px dashed var(--muted); }
.pc-name { min-width: 0; font-weight: 700; line-height: 1.3; word-break: keep-all; }
.pc-bar { position: relative; height: 22px; border-radius: 1px; background: var(--surface-2); overflow: hidden; }
.pc-bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 1px; background: color-mix(in srgb, var(--tone) 55%, var(--surface)); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); transition-delay: calc(var(--k) * 70ms + 150ms); }
.pchart.in .pc-bar i { transform: none; }
.pc-bar b { position: relative; z-index: 1; display: flex; align-items: center; height: 100%; padding: 0 8px; font-size: 12px; font-weight: 800; }
.pc-route { justify-self: end; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.pc-route.walk { color: #15803d; }
@container (max-width: 520px) {
  .pchart li { grid-template-columns: 24px minmax(0, 1fr) auto; grid-template-rows: auto auto; row-gap: 4px; }
  .pc-bar { grid-column: 2 / -1; grid-row: 2; }
  .pc-route { grid-column: 3; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) { .pc-bar i { transform: none !important; } }

/* ---------- 추천 상품 상세 (2026-09-30 전면 개편, 같은 날 aside 복원) ----------
   구성: 광고 안내 → [구매 영역(사진 | 가격·핵심값·구매 버튼) → 소개 → 상품 분석 → 목차 줄 → 이야기 장 5개 → 어울리는 축제 → 사양·옵션 → 질문 → 구매 요약 → 출처 | 구매 영역 옆에서 시작하는 오른쪽 aside]
   본문은 왼쪽 메뉴 바로 옆에 붙고, 오른쪽 칸(.aside)은 다른 상세 페이지처럼 양방향 sticky(app.js stickyAside)로 따라온다.
   색은 상품의 색 묶음(.tone-a·b·c)을 따르고, 카드 모서리는 8px 이하, 한쪽 강조선은 쓰지 않는다. 구매 버튼에는 움직이는 효과를 주지 않는다 */
.pdp, .pdp-side-item, .shop-pick-item { --tn-fg: var(--tn-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pdp, :root:not([data-theme="light"]) .pdp-side-item, :root:not([data-theme="light"]) .shop-pick-item { --tn-fg: color-mix(in srgb, var(--tn-ink) 40%, #fff); } }
.pdp { min-width: 0; }
.pdp .reveal { transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.pdp .reveal.in { transform: none; }

.pdp-notice { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 22px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--ad) 26%, var(--line)); border-radius: 6px; background: color-mix(in srgb, var(--ad-bg) 70%, var(--surface)); }
.pdp-notice > i { flex: none; margin-top: 2px; font-size: 18px; color: var(--ad); }
.pdp-notice p { margin: 0; font-size: 13.5px; line-height: 1.6; }
.pdp-notice strong { margin-right: 8px; color: var(--ad); font-size: 13px; }
.pdp-notice .disc-law { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }

/* 구매 영역 */
.pdp-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: start; }
.pdp-stage { position: relative; display: block; align-self: stretch; width: 100%; min-height: 380px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: zoom-in; }
.pdp-stage img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.pdp-stage-cap { position: absolute; left: 12px; bottom: 12px; padding: 3px 10px; border: 1px solid #e7ddd0; border-radius: 999px; background: rgb(255 255 255 / .92); color: #5f5548; font-size: 12px; }
.pdp-stage-zoom { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; background: #1d1813; color: #fff; font-size: 12.5px; font-weight: 700; }
.pdp-stage:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.pdp-buy { container: pdpb / inline-size; display: flex; flex-direction: column; min-width: 0; }
.pdp-buy > .meta { margin-bottom: 12px; }
.pdp-buy h1 { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.38; letter-spacing: -.025em; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.pdp-tagline { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; word-break: keep-all; }
.pdp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.pdp-price strong { font-size: 34px; font-weight: 800; line-height: 1.2; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pdp-price-opt { padding: 2px 10px; border-radius: 999px; background: var(--tn-bg); color: var(--tn-ink); font-size: 13px; font-weight: 700; }
.pdp-price small { flex-basis: 100%; color: var(--muted); font-size: 12.5px; }
.pdp-glance { margin: 20px 0 0; padding: 14px 16px 12px; border-radius: 8px; background: color-mix(in srgb, var(--tn) 8%, var(--surface)); }
.pdp-glance.reveal { opacity: 1; transform: none; transition: none; }
.pdp-glance-top { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 12px; }
.pdp-glance h2 { margin: 0 0 2px; color: var(--tn-fg); font-family: inherit; font-size: 12px; font-weight: 800; letter-spacing: .06em; line-height: 1.3; }
.pdp-glance-line { margin: 0; font-size: 15.5px; font-weight: 800; line-height: 1.45; word-break: keep-all; }
.pdp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid color-mix(in srgb, var(--tn) 22%, var(--line)); }
.pdp-facts > div { min-width: 0; padding: 2px 12px; }
.pdp-facts > div:first-child { padding-left: 0; }
.pdp-facts > div + div { border-left: 1px solid color-mix(in srgb, var(--tn) 22%, var(--line)); }
.pdp-facts dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.pdp-facts dd { display: flex; align-items: center; gap: 5px; margin: 3px 0 0; color: var(--tn-fg); font-size: 14px; font-weight: 800; line-height: 1.35; }
.pdp-facts dd i { flex: none; font-size: 17px; }
.pdp-facts dd strong { min-width: 0; overflow-wrap: anywhere; }
.pdp-glance .shop-scene svg * { animation-play-state: paused; }
.pdp-glance.in .shop-scene svg * { animation-play-state: running; }

.pdp-cta { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 22px; border-radius: 8px; background: var(--tn-btn) linear-gradient(rgb(255 255 255 / .13), rgb(255 255 255 / 0) 55%); box-shadow: 0 1px 0 rgb(0 0 0 / .2), 0 10px 18px -10px color-mix(in srgb, var(--tn-btn) 75%, transparent); color: #fff; font-size: 17px; font-weight: 800; text-decoration: none; transition: filter .2s; }
.pdp-cta i { font-size: 20px; }
.pdp-cta:hover { filter: brightness(1.1); }
.pdp-cta:active { filter: brightness(.94); }
.pdp-cta:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.pdp-cta[aria-disabled="true"] { border: 1px dashed var(--line); background: var(--surface-2); box-shadow: none; color: var(--muted); cursor: not-allowed; filter: none; }
.pdp-cta.is-sm { min-height: 42px; padding: 0 16px; font-size: 14.5px; white-space: nowrap; }
.pdp-cta.is-md { min-height: 48px; padding: 0 20px; font-size: 15.5px; white-space: nowrap; }
.pdp-cta.is-lg { min-height: 60px; font-size: 18px; }
.pdp-buy > .pdp-cta { margin-top: 18px; }
.pdp-nudge { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--tn) 8%, var(--surface)); font-size: 13.5px; line-height: 1.55; word-break: keep-all; }
.pdp-nudge i { flex: none; margin-top: 2px; color: var(--tn-fg); font-size: 18px; }
.pdp-nudge strong { color: var(--tn-fg); }
.pdp-inline-cta { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 10px 16px; margin-top: 36px; padding: 14px 16px; border-radius: 8px; background: color-mix(in srgb, var(--tn) 8%, var(--surface)); }
.pdp-inline-cta img { display: block; width: 56px; height: 56px; object-fit: contain; padding: 4px; border-radius: 6px; background: #fff; }
.pdp-inline-info { min-width: 0; }
.pdp-inline-info strong { display: block; font-size: 15px; line-height: 1.45; word-break: keep-all; }
.pdp-inline-info span { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.pdp-inline-info b { color: var(--text); font-size: 15px; }
.pdp-inline-info small { font-size: 12px; }
.pdp-inline-cta .pdp-buy-fee { grid-column: 1 / -1; margin: 0; padding-top: 10px; border-top-color: color-mix(in srgb, var(--tn) 25%, var(--line)); }
.pdp-buy-note { display: flex; gap: 7px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.pdp-buy-note i { flex: none; margin-top: 2px; font-size: 15px; }
.pdp-buy-fee { margin: 10px 0 0; color: var(--text); font-size: 13px; line-height: 1.55; }

/* 본문 칸: 왼쪽 메뉴 바로 옆, 오른쪽 aside와 나란히. 반응형은 이 칸(.pdp-main)의 실제 폭을 기준으로 한다 */
.pdp .pdp-grid { column-gap: 40px; row-gap: 40px; }
.pdp-hero + .pdp-lede { margin-top: 56px; }
.pdp-main { container: pdpm / inline-size; min-width: 0; }
.pdp-lede, .pdp-chapter-cols { --headw: 220px; --headgap: 40px; }
.pdp-lede { display: grid; grid-template-columns: minmax(0, var(--headw)) minmax(0, 1fr); column-gap: var(--headgap); }
.pdp-hook { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 800; line-height: 1.5; letter-spacing: -.02em; word-break: keep-all; }
.pdp-lead { max-width: 68ch; margin: 0; font-size: 16.5px; line-height: 1.9; word-break: keep-all; overflow-wrap: anywhere; }

/* 상품 분석: 이런 때 어울려요 / 사기 전에 확인할 점 */
.pdp-analysis { margin-top: 44px; }
.pdp-analysis > h2 { margin: 4px 0 18px; font-family: var(--serif); font-size: 22px; line-height: 1.45; letter-spacing: -.02em; word-break: keep-all; }
.pdp-analysis-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pdp-an { min-width: 0; padding: 18px; border-radius: 8px; }
.pdp-an.is-fit { background: color-mix(in srgb, var(--tn) 8%, var(--surface)); }
.pdp-an.is-check { border: 1px solid var(--line); background: var(--surface); }
.pdp-an h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 15px; }
.pdp-an h3 i { font-size: 20px; color: var(--tn-fg); }
.pdp-an ul { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.pdp-an li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
.pdp-an .pdp-ico { width: 34px; height: 34px; font-size: 19px; }
.pdp-an.is-check .pdp-ico { background: color-mix(in srgb, var(--tn) 14%, var(--surface)); }
.pdp-an strong { display: block; font-size: 14.5px; line-height: 1.4; }
.pdp-an p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; word-break: keep-all; }

/* 목차 줄: 본문 칸 맨 위에 붙고, 구매 영역이 지나가면 가격과 구매 버튼이 오른쪽에 붙는다(860px 이하는 하단 바) */
.pdp-bar { position: sticky; top: 0; z-index: 12; display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin-top: 44px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(1.4) blur(14px); }
.pdp .pdp-toc { position: static; flex: 1; min-width: 0; gap: 0; margin: 0; padding: 0 28px 0 0; border: 0; background: none; backdrop-filter: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.pdp .pdp-toc a { position: relative; padding: 14px 12px; border-radius: 0; background: none; color: var(--muted); font-size: 14px; }
.pdp .pdp-toc a:hover { color: var(--text); }
.pdp .pdp-toc a.active { background: none; color: var(--text); font-weight: 800; }
.pdp .pdp-toc a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--tn-btn); transform: scaleX(0); transition: transform .25s var(--ease); }
.pdp .pdp-toc a.active::after { transform: scaleX(1); }
.pdp-bar-buy { display: none; flex: none; align-items: center; gap: 12px; padding: 5px 0; }
.pdp-bar.is-buy .pdp-bar-buy { display: flex; }
.pdp-bar-fee { display: none; flex: 0 0 100%; order: 3; margin: 0; padding: 0 0 6px; color: var(--muted); font-size: 12px; line-height: 1.4; text-align: right; }
.pdp-bar.is-buy .pdp-bar-fee { display: block; }
.pdp-bar-price { display: grid; text-align: right; line-height: 1.25; }
.pdp-bar-price small { color: var(--muted); font-size: 11.5px; }
.pdp-bar-price strong { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* 이야기 장: 넓으면 왼쪽에 번호·제목(붙어 다님), 오른쪽에 글. 좁으면 위에 번호·제목, 아래에 글.
   제목이 붙어 다니는 범위는 장 안의 글 칸(.pdp-chapter-cols)뿐이고, 사진 띠(.pdp-band)는 그 아래 따로 놓여 겹치지 않는다 */
html:has(.pdp) { scroll-padding-top: 104px; }
.pdp .pdp-main > section { scroll-margin-top: 96px; }
.pdp .pdp-chapter { display: block; margin: 0; padding: 60px 0; border-bottom: 1px solid var(--line); }
.pdp-chapter-cols { display: grid; grid-template-columns: minmax(0, var(--headw)) minmax(0, 1fr); column-gap: var(--headgap); row-gap: 24px; }
.pdp-chapter-head { position: sticky; top: 96px; align-self: start; min-width: 0; }
.pdp-num { display: block; color: color-mix(in srgb, var(--tn) 46%, var(--surface)); font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.pdp-num-ico { font-size: 44px; }
.pdp-kicker { display: block; margin-top: 10px; color: var(--tn-fg); font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.pdp-chapter-head h2 { margin: 8px 0 0; font-family: var(--serif); font-size: 24px; line-height: 1.45; letter-spacing: -.02em; word-break: keep-all; }
.pdp-chapter-head p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.pdp-chapter-body { min-width: 0; }
.pdp-chapter .prose { max-width: 68ch; }
.pdp-chapter .prose p { font-size: 16.5px; line-height: 1.9; word-break: keep-all; overflow-wrap: anywhere; }
.pdp-chapter .prose p:last-child { margin-bottom: 0; }
.pdp-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.pdp-points > li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px; border-radius: 8px; background: color-mix(in srgb, var(--tn) 7%, var(--surface)); }
.pdp-points > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pdp-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 8px; background: var(--surface); color: var(--tn-fg); font-size: 22px; }
.pdp-points h3 { margin: 0 0 4px; font-size: 15px; line-height: 1.45; }
.pdp-points p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; word-break: keep-all; }
/* 확인 순서: 번호와 글이 한 줄에 놓이는 작은 카드 */
.pdp-steps { display: grid; gap: 8px; max-width: 640px; margin: 24px 0 0; padding: 0; list-style: none; }
.pdp-steps > li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.pdp-step-n { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--tn-btn); color: #fff; font-size: 13px; font-weight: 800; }
.pdp-steps p { margin: 0; font-size: 14.5px; line-height: 1.5; word-break: keep-all; }
.pdp-note { display: flex; gap: 9px; margin: 20px 0 0; padding: 12px 14px; border-radius: 6px; background: var(--surface-2); font-size: 14px; line-height: 1.6; }
.pdp-note i { flex: none; margin-top: 2px; color: var(--tn-fg); font-size: 17px; }
.pdp-source { margin: 22px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.pdp-band { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: center; margin-top: 36px; padding: 22px; border-radius: 8px; background: color-mix(in srgb, var(--tn) 7%, var(--surface)); }
.pdp-band.is-flipped { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.pdp-band.is-flipped .pdp-band-photo { order: 2; }
.pdp-band-photo { min-width: 0; margin: 0; }
.pdp-band-photo img { display: block; width: 100%; height: 240px; object-fit: contain; padding: 10px; border-radius: 6px; background: #fff; }
.pdp-band-photo figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.pdp-band-copy { min-width: 0; }
.pdp-band-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--tn-fg); font-size: 12.5px; font-weight: 800; letter-spacing: .04em; }
.pdp-band-eyebrow i { flex: none; width: 1em; font-size: 20px; white-space: nowrap; }
.pdp-band-copy h3 { margin: 10px 0; font-family: var(--serif); font-size: clamp(20px, 2.4cqi, 26px); line-height: 1.4; letter-spacing: -.02em; word-break: keep-all; }
.pdp-band-copy p { margin: 0; font-size: 15px; line-height: 1.8; word-break: keep-all; }

/* 본문 밑줄 표시: 문구가 화면에 들어오면 왼쪽에서 오른쪽으로 그어진다 */
.pdp-em { padding: 0 1px; background: linear-gradient(color-mix(in srgb, var(--tn) 34%, transparent), color-mix(in srgb, var(--tn) 34%, transparent)) no-repeat 0 90% / 0% .42em; color: inherit; font-weight: 700; transition: background-size .9s var(--ease) .1s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pdp-em.is-on { background-size: 100% .42em; }

/* 어울리는 축제: 점수 순 카드 */
.pdp-fit-basis { max-width: 68ch; margin: 0 0 20px; color: var(--muted); font-size: 15px; line-height: 1.75; word-break: keep-all; }
.pdp-fit-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.pdp-fitcard { position: relative; display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.pdp-fitcard:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.pdp-fitcard-link { color: inherit; text-decoration: none; }
.pdp-fitcard-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pdp-fitcard-link:focus-visible { outline: none; }
.pdp-fitcard-img { position: relative; display: block; min-height: 180px; overflow: hidden; background: var(--surface-2); }
.pdp-fitcard-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdp-fitcard-img b { position: absolute; left: 10px; top: 10px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #1d1813; color: #fff; font-size: 13px; }
.pdp-fitcard-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 16px 18px; }
.pdp-fitcard-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.pdp-fitcard-top small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.pdp-fitcard-lv { display: inline-flex; align-items: baseline; gap: 6px; padding: 2px 10px; border-radius: 999px; background: var(--tn-bg); color: var(--tn-ink); font-size: 12.5px; font-weight: 800; }
.pdp-fitcard-lv em { font-style: normal; font-weight: 700; opacity: .85; }
.pdp-fitcard-lv.is-l1 { background: var(--surface-2); color: var(--muted); }
.pdp-fitcard strong { font-size: 17px; line-height: 1.4; }
.pdp-meter { display: block; height: 6px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.pdp-meter i { display: block; width: var(--p); height: 100%; border-radius: inherit; background: var(--tn-btn); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .2s; }
.pdp-meter.is-l1 i { opacity: .55; }
.reveal.in .pdp-meter i { transform: none; }
.pdp-fitcard-reason { margin: 0; font-size: 14px; line-height: 1.65; word-break: keep-all; }
.pdp-signals { display: grid; gap: 8px; margin: 2px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line); list-style: none; }
.pdp-signals li { display: grid; gap: 2px; }
.pdp-chip { display: inline-flex; align-items: center; gap: 5px; color: var(--tn-fg); font-size: 13px; font-weight: 800; }
.pdp-chip i { font-size: 16px; }
.pdp-why { color: var(--muted); font-size: 13px; line-height: 1.6; word-break: keep-all; }
.pdp-fit-wx { display: flex; align-items: flex-start; gap: 6px; margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.pdp-fit-wx i { flex: none; margin-top: 1px; font-size: 15px; }
.pdp-go { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 4px; color: var(--tn-fg); font-size: 13px; font-weight: 800; }
.pdp-how { margin: 18px 0 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); interpolate-size: allow-keywords; }
.pdp-how summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 0 16px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 700; }
.pdp-how summary::-webkit-details-marker { display: none; }
.pdp-how summary::after { content: "+"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 18px; font-weight: 500; line-height: 1; transition: transform .25s var(--ease); }
.pdp-how[open] summary::after { transform: rotate(45deg); }
.pdp-how summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.pdp-how ul { display: grid; margin: 0; padding: 0 16px; list-style: none; }
.pdp-how li { display: grid; grid-template-columns: 96px 56px minmax(0, 1fr); align-items: baseline; gap: 4px 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.pdp-w { color: var(--tn-fg); font-size: 11px; letter-spacing: 2px; }
.pdp-how p { margin: 0; padding: 10px 16px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; line-height: 1.6; }

/* 사양·옵션 */
.pdp-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; margin: 0; border-bottom: 1px solid var(--line); }
.pdp-specs > div { min-width: 0; padding: 14px 0; border-top: 1px solid var(--line); }
.pdp-specs > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pdp-specs dt { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.pdp-specs dd { margin: 3px 0 0; font-size: 15.5px; font-weight: 700; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.pdp-sub { margin: 36px 0 12px; font-size: 15px; font-weight: 800; }
.pdp-options { margin: 0; padding: 0; list-style: none; }
.pdp-options > li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.pdp-options > li:last-child { border-bottom: 1px solid var(--line); }
.pdp-options strong { display: block; font-size: 15px; line-height: 1.5; }
.pdp-options p { margin: 3px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.7; word-break: keep-all; }

/* 자주 묻는 질문 */
.pdp-qa details { border-top: 1px solid var(--line); interpolate-size: allow-keywords; }
.pdp-qa details:last-child { border-bottom: 1px solid var(--line); }
.pdp-qa summary { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 14px 4px; list-style: none; cursor: pointer; font-size: 16px; font-weight: 700; line-height: 1.5; }
.pdp-qa summary::-webkit-details-marker { display: none; }
.pdp-qa summary::before { content: "Q"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--tn-bg); color: var(--tn-ink); font-size: 13px; font-weight: 800; }
.pdp-qa summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-left: auto; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 20px; font-weight: 500; line-height: 1; transition: transform .25s var(--ease); }
.pdp-qa details[open] summary::after { transform: rotate(45deg); }
.pdp-qa summary:hover { background: color-mix(in srgb, var(--tn) 5%, transparent); }
.pdp-qa summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.pdp-qa details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.pdp-qa details[open]::details-content { block-size: auto; }
.pdp-qa details > p { margin: 0; padding: 2px 44px 22px 46px; font-size: 15.5px; line-height: 1.85; word-break: keep-all; overflow-wrap: anywhere; }

/* 구매 요약 */
.pdp-closing { display: grid; grid-template-columns: 88px minmax(0, 1fr) minmax(240px, 300px); align-items: center; gap: 20px 24px; margin-top: 64px; padding: 22px 24px; border-radius: 8px; background: color-mix(in srgb, var(--tn) 8%, var(--surface)); }
.pdp-closing img { display: block; width: 88px; height: 88px; object-fit: contain; padding: 6px; border-radius: 6px; background: #fff; }
.pdp-closing-info { min-width: 0; }
.pdp-closing-info strong { display: block; font-size: 16px; line-height: 1.45; word-break: keep-all; }
.pdp-closing-info b { display: block; margin-top: 4px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.pdp-closing-info small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.pdp-closing-buy { min-width: 0; }
.pdp-closing-buy .pdp-buy-note { margin-top: 8px; }

/* 출처 */
.pdp .pdp-sources { margin-top: 56px; }
.pdp-source-list { display: grid; margin: 16px 0 0; padding: 0; list-style: none; }
.pdp-source-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; overflow-wrap: anywhere; }
.pdp-source-list a { color: var(--text); }
.pdp-source-list small { color: var(--muted); font-size: 12px; }

/* 오른쪽 aside(구매 영역 옆에서 시작): 구매 전 확인할 점 · 함께 살펴볼 준비물 · 이런 축제에도 어울려요 */
.pdp-aside { min-width: 0; align-content: start; }
.pdp-aside .aside-box { min-width: 0; }
.pdp-side-checks ul { display: grid; margin: 0; padding: 0; list-style: none; }
.pdp-side-checks li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.pdp-side-checks li:first-child { padding-top: 0; border-top: 0; }
.pdp-side-checks strong { font-size: 14px; }
.pdp-side-checks span { color: var(--muted); font-size: 13px; line-height: 1.55; word-break: keep-all; }
.pdp-side-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 0; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.pdp-side-item + .pdp-side-item { border-top: 1px solid var(--line); }
.pdp-side-item img { display: block; width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.pdp-side-item strong { display: block; font-size: 14px; line-height: 1.4; }
.pdp-side-item b { display: block; margin-top: 2px; font-size: 15px; }
.pdp-side-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.pdp-side-item:hover strong { text-decoration: underline; }
.pdp-side-fest > a:not(.pdp-side-all) { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.pdp-side-fest > h3 + a { padding-top: 0; border-top: 0; }
.pdp-side-fest strong { display: block; font-size: 14px; line-height: 1.4; }
.pdp-side-fest small { color: var(--muted); font-size: 12.5px; }
.pdp-side-fest em { flex: none; padding: 2px 9px; border-radius: 999px; background: var(--tn-bg); color: var(--tn-ink); font-size: 12px; font-style: normal; font-weight: 800; }
.pdp-side-fest em.is-l1 { background: var(--surface-2); color: var(--muted); }
.pdp-side-fest > a:not(.pdp-side-all):hover strong { text-decoration: underline; }
.pdp-side-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--tn-fg); font-size: 13px; font-weight: 800; text-decoration: none; }
.pdp-side-fest p { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* 모바일 하단 구매 바 (목차 줄의 가격·버튼 대신) */
.pdp-mbar { display: none; }

/* 축제 페이지 '이 축제를 준비하며 살펴볼 상품'이 쓰는 카드 */
.shop-fest-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shop-fest-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.shop-fest-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 12px; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.shop-fest-item img { display: block; width: 72px; height: 72px; max-width: 100%; object-fit: contain; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.shop-fest-item > span { min-width: 0; }
.shop-fest-item strong { display: block; font-size: 15px; line-height: 1.4; }
.shop-fest-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.shop-fest-item:hover strong { text-decoration: underline; }
@media (min-width: 1101px) and (max-width: 1200px) { .shop-fest-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .shop-fest-grid { grid-template-columns: minmax(0, 1fr); } }

/* 상품 장식 그림(우산·야외 관람·차량 경로): 화면에 들어온 뒤에만 움직이고 5초 안에 멈춘다 */
.shop-scene { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: color-mix(in srgb, var(--tn) 12%, var(--surface)); color: var(--tn-fg); }
.shop-scene svg { display: block; width: 43px; height: 43px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shop-scene .scene-light { fill: var(--tn); stroke: none; animation: shop-lights 1.3s ease-in-out 3; }
.shop-scene .light-two { animation-delay: .25s; }
.shop-scene .light-three { animation-delay: .5s; }
.shop-scene .scene-umbrella { fill: color-mix(in srgb, var(--tn) 25%, var(--surface)); transform-origin: 32px 12px; animation: shop-umbrella 2.2s ease-in-out 2; }
.shop-scene .scene-drop { animation: shop-rain 1.2s ease-in 3; }
.shop-scene .drop-two { animation-delay: .35s; }
.shop-scene .scene-road { stroke: color-mix(in srgb, var(--tn) 28%, var(--line)); }
.shop-scene .scene-route { stroke: var(--tn); stroke-width: 2.6; stroke-dasharray: 110; animation: shop-route 3s ease-out 1 both; }
.shop-scene .scene-car-wheel { fill: var(--tn-fg); }
.shop-scene .scene-charge { stroke: var(--tn); animation: shop-charge 1.1s ease-in-out 3; }
@keyframes shop-lights { 50% { opacity: .3; transform: scale(.6); } }
@keyframes shop-umbrella { 50% { transform: rotate(-5deg); } }
@keyframes shop-rain { 0% { opacity: 0; transform: translateY(-5px); } 55% { opacity: 1; } 100% { opacity: 0; transform: translateY(4px); } }
@keyframes shop-route { from { stroke-dashoffset: 110; } to { stroke-dashoffset: 0; } }
@keyframes shop-charge { 50% { opacity: .3; transform: scale(.87); } }
.lightbox.is-single .lb-nav, .lightbox.is-single .lb-count { visibility: hidden; }

/* 반응형. 구매 영역·본문은 본문 칸(.pdp-main, container pdpm) 폭, 구매 칸의 facts는 .pdp-buy(container pdpb) 폭이 기준이다 */
@container pdpm (max-width: 899px) {
  .pdp-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pdp-stage { align-self: start; aspect-ratio: 1; min-height: 0; }
}
@container pdpm (max-width: 640px) {
  .pdp-hero { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .pdp-stage { align-self: start; aspect-ratio: 1; min-height: 0; max-width: 480px; margin-inline: auto; }
}
@container pdpb (max-width: 520px) { .pdp-buy h1 { font-size: 23px; } .pdp-price strong { font-size: 30px; } }
@container pdpb (max-width: 460px) {
  .pdp-facts { grid-template-columns: minmax(0, 1fr); }
  .pdp-facts > div { display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: center; padding: 8px 0; }
  .pdp-facts > div + div { border-top: 1px solid color-mix(in srgb, var(--tn) 22%, var(--line)); border-left: 0; }
  .pdp-facts dd { margin: 0; }
}
@container pdpb (max-width: 340px) { .pdp-buy h1 { font-size: 21px; } }
@container pdpm (min-width: 1000px) { .pdp-lede, .pdp-chapter-cols { --headw: 280px; --headgap: 64px; } }
@container pdpm (max-width: 859px) {
  .pdp-lede { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .pdp-chapter-cols { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .pdp .pdp-chapter { padding: 44px 0; }
  .pdp-chapter-head { position: static; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: start; }
  .pdp-num { grid-row: 1 / span 3; font-size: 44px; }
  .pdp-num-ico { font-size: 38px; }
  .pdp-kicker { margin-top: 4px; }
  .pdp-chapter-head h2 { margin-top: 2px; font-size: 22px; }
}
@container pdpm (max-width: 640px) {
  .pdp-inline-cta { grid-template-columns: 56px minmax(0, 1fr); }
  .pdp-inline-cta .pdp-cta { grid-column: 1 / -1; }
}
@container pdpm (max-width: 700px) {
  .pdp-closing { grid-template-columns: 88px minmax(0, 1fr); }
  .pdp-closing-buy { grid-column: 1 / -1; }
}
@container pdpm (max-width: 640px) {
  .pdp-analysis-cols { grid-template-columns: minmax(0, 1fr); }
  .pdp-band, .pdp-band.is-flipped { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px; }
  .pdp-band.is-flipped .pdp-band-photo { order: 0; }
  .pdp-band-photo img { height: 210px; }
  .pdp-fitcard { grid-template-columns: minmax(0, 1fr); }
  .pdp-fitcard-img { min-height: 0; aspect-ratio: 16 / 9; }
}
@container pdpm (max-width: 560px) {
  .pdp-points, .pdp-specs { grid-template-columns: minmax(0, 1fr); }
  .pdp-specs > div { padding: 11px 0; }
  .pdp-how li { grid-template-columns: minmax(0, 1fr) auto; }
  .pdp-how li > span:last-child { grid-column: 1 / -1; color: var(--muted); }
  .pdp-qa details > p { padding: 2px 8px 20px 4px; }
  .pdp .pdp-chapter { padding: 36px 0; }
}
/* 오른쪽 aside가 아래로 내려가는 폭(1100px 이하)에는 본문에 이미 있는 구매 카드·확인할 점·축제 목록을 겹쳐 두지 않는다 */
@media (max-width: 1339px) {
  .pdp-side-checks, .pdp-side-fest { display: none; }
  .detail-grid.list-layout > .pdp-aside { grid-template-columns: minmax(0, 1fr); }
  .pdp-aside .aside-box { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .pdp-bar { top: 61px; margin-top: 32px; }
  html:has(.pdp) { scroll-padding-top: 130px; }
  .pdp .pdp-main > section { scroll-margin-top: 124px; }
  .pdp .pdp-toc { padding-right: 20px; }
  .pdp-bar.is-buy .pdp-bar-buy, .pdp-bar.is-buy .pdp-bar-fee { display: none; }
  .mbar.pdp-mbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; padding: 8px 12px calc(6px + env(safe-area-inset-bottom)); visibility: hidden; }
  .mbar.pdp-mbar.is-on { visibility: visible; }
  .pdp-mbar img { flex: none; width: 46px; height: 46px; object-fit: contain; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
  .pdp-mbar-fee { flex: 0 0 100%; order: 3; margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
  body:has(.pdp-mbar) .foot { padding-bottom: 132px; }
  body:has(.pdp-mbar) .to-top { bottom: 118px; }
  body:has(.pdp-mbar) .toast { bottom: 124px; }
  .pdp-mbar-info { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
  .pdp-mbar-info small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .pdp-mbar-info strong { font-size: 17px; font-variant-numeric: tabular-nums; }
  .mbar.pdp-mbar .pdp-cta { flex: none; flex-direction: row; gap: 6px; min-height: 46px; padding: 0 18px; border-radius: 8px; font-size: 15px; font-weight: 800; }
  .mbar.pdp-mbar a.pdp-cta { background-color: var(--tn-btn); color: #fff; }
  .mbar.pdp-mbar .pdp-cta i { color: #fff; font-size: 18px; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pdp-fitcard:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tn) 40%, var(--line)); box-shadow: var(--shadow); }
  .pdp-fitcard:hover .pdp-fitcard-link { text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  .pdp .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .pdp .pdp-toc a::after, .pdp-qa summary::after, .pdp-how summary::after { transition: none; }
  .pdp-em { background-size: 100% .42em; transition: none; }
  .pdp-meter i { transform: none; transition: none; }
  .shop-scene * { animation: none !important; }
  .shop-scene .scene-route { stroke-dashoffset: 0; }
}

/* 추천 상품 목록 아래 「가는 축제에 맞춰 고르세요」: 축제 한 줄에 어울리는 상품을 점수 순으로 잇는다 */
.shop-picks { container-type: inline-size; margin-top: 48px; }
.shop-picks .shop-list-head h2 .ad-badge { font-family: inherit; font-size: 12px; vertical-align: middle; }
.shop-picks-note { max-width: 72ch; margin: -6px 0 16px; color: var(--muted); font-size: 12.5px; line-height: 1.65; word-break: keep-all; }
.shop-picks-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.shop-pick { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); align-items: center; gap: 14px 22px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.shop-pick-fest { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.shop-pick-fest img { display: block; width: 92px; height: 62px; object-fit: cover; border-radius: 4px; background: var(--surface-2); }
.shop-pick-fest small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; word-break: keep-all; }
.shop-pick-fest strong { display: block; margin-top: 2px; font-size: 15px; line-height: 1.4; word-break: keep-all; }
.shop-pick-fest:hover strong { text-decoration: underline; }
.shop-pick-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.shop-pick-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 6px 10px; min-height: 60px; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--tn) 26%, var(--line)); border-radius: 8px; background: color-mix(in srgb, var(--tn) 4%, var(--surface)); color: var(--text); text-decoration: none; transition: border-color .2s, box-shadow .25s var(--ease); }
.shop-pick-item:hover { border-color: color-mix(in srgb, var(--tn) 55%, var(--line)); box-shadow: var(--shadow); }
.shop-pick-item:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.shop-pick-item img { display: block; width: 44px; height: 44px; object-fit: contain; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.shop-pick-item strong { display: block; font-size: 13px; line-height: 1.35; word-break: keep-all; }
.shop-pick-item small { display: block; margin-top: 2px; color: var(--tn-fg); font-size: 12px; font-weight: 800; }
.shop-pick-item .pdp-meter { grid-column: 1 / -1; }
@container (max-width: 640px) {
  .shop-pick { grid-template-columns: minmax(0, 1fr); }
  .shop-pick-items { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .shop-pick-item { transition: none; } }

/* ---------- 박람회·페어 전면 개편 (2026-09-30) ----------
   목록: 탭(전체/이번 주) → 현황 4칸 → 지역 칩·분야·기간·정렬 → 달별 묶음의 가로 카드(날짜 칸 | 배너 | 혜택·정보).
   상세: 축제 상세와 같은 섹션 순서. 히어로는 왼쪽 글·혜택 / 오른쪽 배너(자르지 않음). 신청 혜택은 제목 크기로 읽히게 하고 마감 D-day를 붙인다. */
/* 연한 강조 배경 위 글자색(라이트 5.4:1). 다크는 기존 강조색 */
:root { --fx-accent-text: #a8340f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --fx-accent-text: var(--accent); } }
.fx-head { margin-bottom: 12px; }
.fx-tabs { display: inline-flex; gap: 4px; margin: 4px 0 16px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.fx-tabs a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 18px; border-radius: 999px; color: var(--muted); font-size: 14.5px; font-weight: 700; text-decoration: none; transition: background .2s, color .2s; }
.fx-tabs a:hover { color: var(--text); }
.fx-tabs a[aria-current="page"] { background: var(--text); color: var(--bg); }
.fx-tabs small { font-size: 12px; opacity: .75; }
.fx-stats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; padding: 0; }
.fx-stats li { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.fx-stats b { font-family: var(--serif); font-size: 26px; line-height: 1.1; letter-spacing: -.02em; }
.fx-stats span { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.fx-stats .is-urgent b { color: var(--accent); }
.chip[data-empty="true"] { color: var(--muted); }
.fx-filter-row { margin-bottom: 8px; }
.fx-lines { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.fx-lines li { display: flex; align-items: flex-start; gap: 7px; }
.fx-lines i { flex: none; margin-top: 2px; color: var(--accent); }
.fx-lines span { min-width: 0; overflow-wrap: anywhere; }
.fx-lines em { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 12px; font-style: normal; font-weight: 800; white-space: nowrap; }
.fx-lines em.is-urgent { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 720px) { .fx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 상세 히어로(2026-09-30 사용자 지시): 본문 칸이 560px 이상이면 이미지 왼쪽·정보 오른쪽. 같은 값이 바로 아래 한눈에 보기에 있으므로
   글자·여백을 줄여 높이를 낮춘다(1280px 기준 1008 → 약 500px). 좁은 칸에서는 정보 → 이미지 순서로 쌓는다(휴대폰 첫 화면에 행사명·혜택이 먼저 보이게) */
.fx-hero-wrap { container-type: inline-size; margin: 0 0 16px; }
.fx-hero { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "offer" "poster"; margin: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.fx-hero-main { grid-area: main; display: grid; gap: 10px; align-content: start; min-width: 0; padding: 18px 20px 12px; }
.fx-hero-offer { grid-area: offer; min-width: 0; padding: 0 20px 20px; }
.fx-hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(22px, 4cqi, 30px); line-height: 1.25; letter-spacing: -.03em; word-break: keep-all; }
.fx-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; }
.fx-facts li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.fx-facts i { flex: none; color: var(--accent); font-size: 17px; }
.fx-facts small { margin-left: 6px; color: var(--muted); font-size: 12.5px; }
.fx-summary { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.fx-poster { grid-area: poster; position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; min-width: 0; margin: 0; padding: 12px 12px 0; overflow: hidden; background: var(--surface-2); }
/* 가로 배너가 세로로 긴 왼쪽 칸 가운데 놓일 때 빈 바탕 대신 같은 그림을 흐리게 깐다(원본은 자르지 않고 그대로 보인다) */
.fx-poster::before { content: ""; position: absolute; inset: -30px; z-index: -1; background: var(--poster) center / cover no-repeat; filter: blur(26px) saturate(1.1); opacity: .32; }
.fx-poster img { position: relative; display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; border-radius: 4px; }
.fx-poster figcaption { position: relative; padding: 7px 2px 9px; color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.fx-hero .fx-offer.is-hero { gap: 5px; padding: 12px 14px; }
.fx-hero .fx-offer.is-hero .fx-offer-title { font-size: clamp(19px, 3.2cqi, 24px); }
.fx-hero .fx-offer.is-hero .fx-offer-cond { font-size: 13.5px; }
.fx-hero .fx-offer.is-hero .fx-offer-detail { padding-top: 6px; font-size: 12.5px; }
.fx-hero .fx-offer.is-hero .fx-offer-mobile { font-size: 12.5px; }
.fx-hero .fx-offer.is-hero .camp-apply { margin-top: 3px; padding: 11px 12px; font-size: 15px; word-break: keep-all; }
.fx-hero .fx-offer.is-hero .apply-note { font-size: 11.5px; line-height: 1.5; }
/* 560~959px: 윗줄 [이미지 | 행사 정보], 아랫줄 전체 폭 신청 혜택(버튼이 보이는 861px 이상 화면에서는 글과 버튼을 좌우로 나눈다)
   960px 이상: 왼쪽 이미지가 두 줄을 차지하고 오른쪽에 행사 정보 → 신청 혜택 */
@container (min-width: 560px) {
  .fx-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "poster main" "offer offer"; }
  .fx-poster { padding: 14px 14px 0; border-right: 1px solid var(--line); }
  .fx-hero-offer { padding-top: 14px; border-top: 1px solid var(--line); }
}
@media (min-width: 861px) {
  @container (min-width: 560px) and (max-width: 959px) {
    .fx-offer.is-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 18px; align-items: start; }
    .fx-offer.is-hero > :not(.camp-apply):not(.apply-note) { grid-column: 1; }
    .fx-offer.is-hero > .camp-apply { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin-top: 0; }
    .fx-offer.is-hero > .apply-note { grid-column: 2; grid-row: 3 / span 2; }
    .fx-offer.is-hero.is-closed > .fx-offer-detail { grid-column: 2; grid-row: 1 / span 2; align-self: end; padding-top: 0; border-top: 0; }
    .fx-offer.is-hero.is-closed > .fx-home { grid-column: 2; grid-row: 3; margin-top: 0; }
  }
}
@container (min-width: 960px) {
  .fx-hero { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-areas: "poster main" "poster offer"; }
  .fx-hero-offer { padding-top: 0; border-top: 0; }
}
/* 대표 이미지가 없는 박람회는 폭과 관계없이 한 열(왼쪽 빈 칸 방지) */
.fx-hero.no-poster { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "offer"; }
.fx-hero.no-poster .fx-hero-offer { padding-top: 0; border-top: 0; }

/* 신청 혜택(첫 화면·오른쪽 칸·신청 순서 옆) */
.fx-offer { display: grid; gap: 7px; min-width: 0; padding: 16px 18px; border: 2px solid color-mix(in srgb, var(--accent) 38%, var(--line)); border-radius: 8px; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), color-mix(in srgb, var(--accent) 4%, var(--surface))); }
.fx-offer-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.fx-offer-label { display: inline-flex; align-items: center; gap: 6px; color: var(--fx-accent-text); font-size: 13px; font-weight: 800; }
.fx-dday { padding: 3px 11px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 12.5px; font-weight: 800; }
.fx-dday.is-urgent { background: var(--accent); color: var(--accent-ink); }
.fx-offer-title { color: var(--text); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; letter-spacing: -.02em; word-break: keep-all; }
.fx-offer-cond { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.5; }
.fx-offer-cond i { color: var(--accent); }
.fx-offer-detail { margin: 0; padding-top: 8px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 13px; line-height: 1.55; }
.fx-offer-mobile { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 700; }
.fx-offer .camp-apply { width: 100%; max-width: none; margin-top: 6px; }
.fx-offer .apply-note { margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; text-align: left; }
.fx-offer.is-aside { padding: 14px 15px; }
.fx-offer.is-aside .fx-offer-title { font-size: 20px; }
.fx-offer.is-inline { margin-bottom: 0; }

/* 지난 박람회(2026-09-30 사용자 지시): 신청이 끝나면 혜택 상자 자리에 마감 안내와 공식 홈페이지 링크(광고 아님)를 둔다 */
.fx-offer.is-closed { border-color: var(--line); background: var(--surface-2); }
.fx-offer.is-closed .fx-offer-label { color: var(--text); }
.fx-offer.is-closed .fx-offer-title, .fx-hero .fx-offer.is-closed .fx-offer-title { font-size: 19px; }
.fx-offer.is-closed .fx-offer-cond { font-weight: 600; }
.fx-offer.is-closed .fx-offer-cond i { color: var(--muted); }
.fx-dday.is-closed { border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.fx-home { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-top: 4px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 14.5px; font-weight: 700; text-decoration: none; }
.fx-home:hover { border-color: var(--accent); color: var(--fx-accent-text); }
.fx-home i { flex: none; }
.tag.fx-closed { border: 1px solid var(--line); background: var(--surface); color: var(--text); }
/* 주력 내용 밑줄: 상품 상세의 .pdp-em을 그대로 쓰고 색만 사이트 강조색으로 */
.fx-detail .pdp-em { --tn: var(--accent); padding: 0; }   /* 줄바꿈된 끝 조각이 좌우 여백 1px만큼 칸 밖으로 나가지 않게 */

/* 신청·입장 순서 */
.fx-apply-wrap { container-type: inline-size; }
.fx-apply { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 22px; align-items: start; }
.fx-apply.no-steps { grid-template-columns: minmax(0, 1fr); }
.fx-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.fx-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.fx-step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.fx-steps strong { display: block; font-size: 15.5px; line-height: 1.45; }
.fx-steps p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.fx-apply-side { display: grid; gap: 10px; min-width: 0; }
.fx-apply-side .camp-apply { max-width: none; }
.fx-apply-side .apply-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
@container (max-width: 640px) { .fx-apply { grid-template-columns: minmax(0, 1fr); } }

/* 전시 구성 */
.fx-zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.fx-zone { display: flex; gap: 14px; min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.fx-zone > div { min-width: 0; }
.fx-zone h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.4; }
.fx-zone p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.fx-zone .kw-chips { margin-top: 10px; }
@media (max-width: 860px) {
  .fx-hero-main { padding: 18px 16px 12px; }
  .fx-hero-offer { padding-right: 16px; padding-left: 16px; }
  .fx-hero .camp-apply.is-hero, .fx-offer.is-hero .apply-note { display: none; }
}
.fx-apply-box { padding: 0; border: 0; background: transparent; box-shadow: none; }
.fx-apply-box .apply-facts { margin-top: 10px; }
.camp-apply .ad-badge { flex: none; white-space: nowrap; }
.fx-offer.is-aside .camp-apply { gap: 6px; padding: 11px 10px; font-size: 15px; }
.fx-offer.is-aside .camp-apply i { flex: none; }
.fx-filter-box { margin: 0 0 6px; }
.fx-filter-box > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.fx-filter-box > summary::-webkit-details-marker { display: none; }
.fx-filter-box > summary small { color: var(--muted); font-size: 12px; font-weight: 600; }
.fx-filter-box[open] > summary { margin-bottom: 12px; }
.fx-filter-box .fx-filter-row { margin-bottom: 4px; }
.fx-count { margin: 0 0 4px; text-align: right; }
@media (min-width: 861px) { .fx-filter-box > summary { display: none; } .fx-filter-box[open] > summary { margin: 0; } }
@media (max-width: 560px) {
  .fx-stats { display: none; }
  .fx-head .lead { display: none; }
  .fx-tabs { margin: 0 0 12px; }
}
@media (max-width: 860px) { .fx-count { display: none; } }
@media (max-width: 560px) {
  .fx-head h1 { font-size: 26px; }
  .fx-tabs a { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
}
@media (max-width: 560px) { .fx-head { margin-bottom: 6px; } }
.fx-apply-side { position: sticky; top: 84px; align-self: start; }
@media (max-width: 860px) { .fx-apply-side { position: static; } }
.fx-detail .sources { container-type: inline-size; }
@container (min-width: 700px) {
  .fx-detail .src-tier ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
}
.fx-progtabs { margin-bottom: 14px; }
.fx-programs [data-fxpanel][hidden] { display: none; }
.history-item .h-src { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
/* 박람회 상세: 오른쪽 칸의 '비슷한 박람회' 카드는 혜택 상자가 있는 세로 카드다. 1100px 이하의 '홀수 마지막 카드는 사진·글 가로 배치' 규칙(축제 작은 카드용)을 되돌리고,
   좁은 화면에서는 한 줄에 한 카드로 둔다. 긴 문의 문구·공식 채널 이름은 칸 안에서 줄바꿈한다 */
@media (max-width: 1100px) {
  .fx-detail .aside-cards > .card:last-child:nth-child(odd), .fx-detail .aside-cards > .card:last-child:nth-child(odd) > .card-link { flex-direction: column; }
  .fx-detail .aside-cards > .card:last-child:nth-child(odd) .thumb { flex: none; aspect-ratio: auto; min-height: 0; }
}
@media (max-width: 620px) { .fx-detail .aside-cards { grid-template-columns: minmax(0, 1fr); } }
.fx-detail .links-box a span, .fx-detail .check > div { min-width: 0; overflow-wrap: anywhere; }
.fx-detail .links-box ul { grid-template-columns: minmax(0, 1fr); }

/* 박람회 목록 카드 격자(2026-09-30 사용자 지시: 가로 100% 줄 카드는 유휴 공간이 많아 이전의 세로 카드 격자로 되돌리고 다듬음).
   카드 = 배너(개최일·마감 칩을 겹침) → 배지·제목 → 신청 혜택 → 장소·마감 → 버튼. 버튼은 카드 아래에 맞추고, 폭에 따라 3~5열로 채운다 */
.fx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 16px; }
.fx-card { display: flex; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.fx-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.fx-card-link { display: flex; flex-direction: column; width: 100%; min-width: 0; color: inherit; text-decoration: none; }
.fx-card-link:focus-visible { outline-offset: -3px; }
.fx-poster-box { position: relative; flex: none; aspect-ratio: 4 / 3; background: var(--surface-2); }
.fx-poster-box img { position: absolute; inset: 42px 10px 10px; width: calc(100% - 20px); height: calc(100% - 52px); object-fit: contain; }
.fx-badge-date, .fx-badge-dl { position: absolute; top: 10px; display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; line-height: 1; white-space: nowrap; }
.fx-badge-date { left: 10px; background: var(--text); color: var(--bg); }
.fx-badge-dl { right: 10px; background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.fx-badge-dl.is-urgent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fx-card-body { display: flex; flex: 1; flex-direction: column; gap: 9px; min-width: 0; padding: 14px 14px 16px; }
.fx-card-body h3 { margin: 0; font-size: 16.5px; line-height: 1.38; letter-spacing: -.02em; word-break: keep-all; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fx-card-body .fair-offer { margin: 0; padding: 9px 11px; }
.fx-card-body .fair-offer strong { font-size: 16.5px; }
.fx-card-body .fx-cta { margin-top: auto; justify-content: center; width: 100%; }
.fx-when { display: none; margin: 0; }
@media (max-width: 560px) {
  .fx-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fx-poster-box { aspect-ratio: 16 / 10; }
  .fx-poster-box img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
  .fx-badge-date, .fx-badge-dl:not(.is-urgent) { display: none; }
  .fx-badge-dl { top: 6px; right: 6px; min-height: 22px; padding: 0 8px; font-size: 11px; }
  .fx-card-body { gap: 7px; padding: 10px 10px 12px; }
  .fx-card-body .meta .tag { display: none; }
  .fx-card-body h3 { font-size: 15px; line-height: 1.35; }
  .fx-when { display: flex; align-items: center; gap: 5px; color: var(--text); font-size: 12px; font-weight: 700; line-height: 1.3; }
  .fx-when i { flex: none; color: var(--accent); }
  .fx-card-body .fair-offer { padding: 8px 9px; }
  .fx-card-body .fair-offer strong { font-size: 15px; }
  .fx-card-body .fair-offer-detail, .fx-card-body .fair-offer-condition { font-size: 12px; }
  .fx-card-body .fair-offer-detail { display: none; }
  .fx-lines { font-size: 12px; }
  .fx-lines li.fx-place { display: none; }
  .fx-card-body .fx-cta { display: none; }
}

/* 박람회 방문 팁(2026-09-30 사용자 지시: 나열식 목록 → 주제 아이콘 카드). 본문 칸 폭 기준 1 → 2열, 개수가 3의 배수면 넓을 때 3열.
   홀수 개수의 마지막 카드는 한 줄 전체(격자에 빈칸을 남기지 않는다). 시각·날짜·금액·거리는 굵게 */
.fx-tips-wrap { container-type: inline-size; }
.fx-tips { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.fx-tip { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: start; min-width: 0; padding: 14px 16px 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.fx-tip-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 21px; }
.fx-tip-body { min-width: 0; }
.fx-tip-topic { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 1px 0 5px; color: var(--fx-accent-text); font-size: 13px; font-weight: 800; line-height: 1.4; }
.fx-tip-topic small { color: var(--muted); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fx-tip p { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.68; word-break: keep-all; overflow-wrap: anywhere; }
.fx-tip p b { font-weight: 800; background: linear-gradient(transparent 60%, color-mix(in srgb, var(--accent) 16%, transparent) 60%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@container (min-width: 560px) {
  .fx-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-tips.is-odd > .fx-tip:last-child { grid-column: 1 / -1; }
}
@container (min-width: 960px) {
  .fx-tips.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fx-tips.is-3.is-odd > .fx-tip:last-child { grid-column: auto; }
}

/* 지난 박람회 목록(2026-09-30 사용자 지시): '지난 박람회도 표시'를 켜면 목록 아래 흐린 카드로 붙는다. 끄면 '지난 박람회 N개도 보기' 버튼 */
.fx-past { margin-top: 28px; padding-top: 18px; border-top: 1px dashed var(--line); }
.fx-past-head h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.fx-past-head h2 small { margin-left: 4px; color: var(--muted); font-size: 14px; }
.fx-past-head p { margin: 4px 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.fx-card.is-past .fx-poster-box img { filter: grayscale(.7); opacity: .8; }
.fx-badge-dl.is-past { border-color: var(--line); background: var(--surface); color: var(--text); }
.fx-past-note { display: flex; align-items: flex-start; gap: 6px; margin: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: 13.5px; font-weight: 700; line-height: 1.45; }
.fx-past-note i { flex: none; margin-top: 2px; color: var(--muted); }
.fx-past-note span { min-width: 0; }
.fx-past-more { margin: 20px 0 0; text-align: center; }
.fx-past-more .chip { display: inline-flex; align-items: center; gap: 6px; }
.toggle small { color: var(--muted); font-size: 12px; font-weight: 700; }
@media (max-width: 560px) { .fx-past-note { padding: 7px 9px; font-size: 12px; } }

