:root {
  --ink: #17231f;
  --muted: #4a544f;
  --paper: #fffdf9;
  --surface: #ffffff;
  --line: #e1ded6;
  --pine: #23362f;
  --pine-2: #355849;
  --rose: #b7626f;
  /* 흰 글씨를 얹는 버튼 전용. --rose는 4.21:1로 AA 미달이라 5.11:1로 낮춘 값. */
  --rose-strong: #a04f5d;
  --rose-2: #f3d9df;
  --now-red: #d5232f;
  --gold: #c59a46;
  --sky: #dbeaf2;
  --shadow: 0 18px 44px rgba(23, 35, 31, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.is-restoring-scroll body {
  opacity: 0;
}

html.scroll-restored body {
  opacity: 1;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 48px);
  background: rgba(255, 253, 249, 0.92);
  border-bottom: 1px solid rgba(225, 222, 214, 0.85);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-name {
  letter-spacing: -0.03em;
  font-weight: 900;
}

.brand-now {
  color: var(--now-red);
  letter-spacing: -0.01em;
  display: inline-block;
  font-size: 1.42em;
  font-weight: 900;
  line-height: 0.8;
  vertical-align: -0.08em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--now-red);
  color: white;
  box-shadow: 0 5px 14px rgba(213, 35, 47, 0.24);
}

.brand-mark svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.site-freshness {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.main-nav a:hover {
  color: var(--ink);
}

.header-cta,
.cta-link,
.search-row button,
.mobile-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  /* 흰 글씨 기준 --rose(#b7626f)는 4.21:1로 WCAG AA(4.5:1) 미달.
     16px bold는 '큰 글씨'(18.66px) 기준을 못 받으므로 배경을 낮춰야 한다. */
  background: var(--rose-strong);
  color: white;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(160, 79, 93, 0.24);
}

.header-cta {
  padding: 0 16px;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--pine);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 30, 26, 0.88) 0%, rgba(18, 30, 26, 0.64) 42%, rgba(18, 30, 26, 0.14) 100%),
    url("weddingfair_PIC.webp") center/cover;
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 14vh, 150px) 0 52px;
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero .eyebrow {
  margin-bottom: 14px;
  color: #e0b458;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(42px, 5.7vw, 68px);
  line-height: 1.08;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-copy {
  max-width: 900px;
  margin: 22px 0 28px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(17px, 2vw, 22px);
}

.search-panel {
  width: min(900px, 100%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 700;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-row input {
  min-width: 0;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--ink);
  background: white;
}

.search-row button {
  min-width: 108px;
  padding: 0 18px;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.quick-filters button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  cursor: pointer;
}

.advanced-filters {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(222, 105, 139, 0.76);
  border-radius: 8px;
  color: #3d2730;
  background: linear-gradient(135deg, rgba(255, 250, 251, 0.98), rgba(255, 232, 238, 0.96));
  box-shadow: 0 14px 30px rgba(130, 39, 65, 0.2);
}

.advanced-filter-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  list-style: none;
  cursor: pointer;
}

.advanced-filter-heading::-webkit-details-marker {
  display: none;
}

.advanced-filter-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.advanced-filter-title strong {
  color: #a5284a;
  font-size: 17px;
}

.advanced-filter-title > span {
  color: #76505d;
  font-size: 13px;
}

.advanced-filter-heading::after {
  content: "상세 필터 열기  +";
  min-width: 126px;
  padding: 9px 12px;
  border: 1px solid #bd4766;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(135deg, #d86582, #b83c5b);
  box-shadow: 0 5px 12px rgba(161, 39, 73, 0.2);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.advanced-filters[open] .advanced-filter-heading {
  padding-bottom: 13px;
  border-bottom: 1px solid #efc1ce;
}

.advanced-filters[open] .advanced-filter-heading::after {
  content: "상세 필터 닫기  −";
}

.advanced-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 15px;
}

.advanced-filter-grid label {
  margin: 0;
  color: #6b3042;
  font-size: 13px;
  font-weight: 800;
}

.advanced-filter-grid label > span:first-child {
  display: block;
  margin-bottom: 6px;
}

.advanced-filter-grid select,
.advanced-filter-grid input[type="date"] {
  width: 100%;
  height: 42px;
  margin-top: 0;
  padding: 0 10px;
  border: 1px solid #edbdca;
  border-radius: 6px;
  color: #4a2633;
  background: rgba(255, 255, 255, 0.86);
  font: inherit;
  /* 16px 미만이면 iOS Safari가 포커스 시 페이지를 확대하고 되돌리지 않는다.
     라벨(13px)에서 상속되므로 컨트롤에만 다시 지정한다. */
  font-size: 16px;
}

.advanced-filter-grid .favorite-only {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-top: 0;
  padding: 10px 12px;
  border: 1px solid #edbdca;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.advanced-filter-grid .favorite-only > span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
}

.favorite-only small {
  color: #815566;
  font-size: 11.5px;
  font-weight: 500;
}

.favorite-only input {
  width: 18px;
  height: 18px;
  accent-color: #c44767;
}

.advanced-filters select:focus,
.advanced-filters input:focus {
  outline: 3px solid rgba(211, 88, 121, 0.2);
  outline-offset: 1px;
  border-color: #c44767;
}

.advanced-filters .filter-reset {
  border-color: #c44767;
  color: #a5284a;
  background: #fff8fa;
}

.filter-reset {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--pine-2);
  border-radius: 6px;
  color: var(--pine-2);
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

.filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #efc1ce;
}

.filter-actions > span {
  color: #815566;
  font-size: 12px;
}

.region-page-hero {
  padding: clamp(56px, 9vw, 100px) 0 clamp(44px, 7vw, 72px);
  background: linear-gradient(180deg, #f4f1e9 0%, #fffdf9 100%);
  border-bottom: 1px solid var(--line);
}

.region-page-hero h1 {
  max-width: 980px;
  margin: 0 0 18px;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.08;
  letter-spacing: 0;
  white-space: nowrap;
}

.region-page-hero h1 + p,
.region-page-hero .hero-copy {
  margin-top: 0;
  color: var(--muted);
}

.region-page-hero .two-column {
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, 0.78fr);
}

.search-panel.light {
  background: white;
  border-color: var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.search-panel.light label {
  color: var(--muted);
}

.search-panel.light .search-row input {
  border-color: var(--line);
  background: #fbfaf6;
}

.search-panel.light .quick-filters button {
  color: var(--pine);
  border-color: var(--line);
  background: #fbfaf6;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: white;
}

.trust-band div {
  padding: 22px clamp(16px, 3vw, 32px);
  border-right: 1px solid var(--line);
}

.trust-band div:last-child {
  border-right: 0;
}

.trust-band strong {
  display: block;
  color: var(--pine);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.1;
}

.trust-band span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: clamp(64px, 9vw, 110px) 0;
}

body:not([data-region-matches]) #events {
  padding-top: clamp(22px, 2.5vw, 32px);
}

body:not([data-region-matches]) #events > .section-heading {
  row-gap: 8px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 32px;
}

.section-heading.compact {
  display: block;
}

.section-heading h2,
.two-column h2,
.detail-layout h2,
.checklist-layout h2 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
}

.region-page-event-grid + .empty-state,
body[data-region-matches] .section-heading {
  grid-template-columns: minmax(220px, 0.55fr) minmax(560px, 1.45fr);
}

body[data-region-matches] .section-heading h2 {
  max-width: 980px;
  font-size: clamp(30px, 3vw, 42px);
  white-space: nowrap;
}

body[data-region-matches] .section-heading p:not(.eyebrow) {
  grid-column: 1 / -1;
  margin-top: 14px;
  white-space: nowrap;
}

body:not([data-region-matches]) #events > .section-heading p:not(.eyebrow) {
  grid-column: 1 / -1;
  max-width: none;
  font-size: 14px;
  white-space: nowrap;
}

body:not([data-region-matches]) #events > .section-heading h2 {
  grid-column: 1 / -1;
  margin-top: 0;
  text-align: center;
}

.section-heading p:not(.eyebrow),
.two-column p,
.detail-layout p,
.checklist-layout p {
  margin: 0;
  color: var(--muted);
}

.event-grid {
  display: grid;
  gap: 42px;
}

.event-region-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: -4px 0 30px;
  padding: 16px;
  border: 1px solid rgba(183, 98, 111, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, #fffdf9 0%, #f8f4ec 100%);
  box-shadow: 0 16px 36px rgba(23, 35, 31, 0.07);
}

.event-region-nav[hidden] {
  display: none;
}

.event-region-nav a {
  --chip-bg: #ffffff;
  --chip-border: var(--line);
  --chip-text: var(--pine);
  --chip-hover: var(--rose);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  width: 100%;
  padding: 0 16px;
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  color: var(--chip-text);
  background: var(--chip-bg);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(23, 35, 31, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.event-region-nav a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--chip-hover);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.68);
}

.event-region-nav a[data-region-key="seoul"] {
  --chip-bg: #fff0f3;
  --chip-border: #e7a9b5;
  --chip-text: #8f3448;
  --chip-hover: #b7626f;
}

.event-region-nav a[data-region-key="gyeonggi-incheon"] {
  --chip-bg: #eef6ff;
  --chip-border: #9ac2e3;
  --chip-text: #245a7a;
  --chip-hover: #327aa4;
}

.event-region-nav a[data-region-key="metro"] {
  --chip-bg: #fff6de;
  --chip-border: #ddb76a;
  --chip-text: #7a5416;
  --chip-hover: #b9851f;
}

.event-region-nav a[data-region-key="chungcheong"] {
  --chip-bg: #eef8ed;
  --chip-border: #9bc995;
  --chip-text: #2f6837;
  --chip-hover: #4f9658;
}

.event-region-nav a[data-region-key="jeolla"] {
  --chip-bg: #f7f0ff;
  --chip-border: #c4a5de;
  --chip-text: #664086;
  --chip-hover: #8c65aa;
}

.event-region-nav a[data-region-key="gangwon"] {
  --chip-bg: #eaf8f6;
  --chip-border: #8fc7bd;
  --chip-text: #28675e;
  --chip-hover: #408f82;
}

.event-region-nav a[data-region-key="gyeongsang"] {
  --chip-bg: #fff3e7;
  --chip-border: #dfa86f;
  --chip-text: #794a20;
  --chip-hover: #b56d2d;
}

.event-region-nav a[data-region-key="jeju"] {
  --chip-bg: #ecf8ff;
  --chip-border: #91c8de;
  --chip-text: #236578;
  --chip-hover: #3b93aa;
}

.event-region-nav a[data-region-key="etc"] {
  --chip-bg: #f1f3ef;
  --chip-border: #aeb8ad;
  --chip-text: #314239;
  --chip-hover: #53675c;
}

.event-region-nav a:hover,
.event-region-nav a:focus-visible {
  transform: translateY(-1px);
  border-color: var(--chip-hover);
  color: white;
  background: var(--chip-hover);
  box-shadow: 0 12px 24px rgba(23, 35, 31, 0.13);
  outline: 0;
}

.event-grid.is-loading {
  gap: 0;
}

.event-grid.is-loading > .event-card {
  display: none;
}

.event-loading {
  display: grid;
  grid-column: 1 / -1;
  place-items: center;
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfaf6;
  font-weight: 800;
}

.event-grid.is-error {
  display: block;
}

.event-region-group {
  scroll-margin-top: 104px;
}

.event-region-group[hidden] {
  display: none;
}

.event-region-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--pine);
}

.event-region-heading > div {
  min-width: 0;
  flex: 1 1 auto;
}

.event-region-heading h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.16;
}

.event-region-heading p:not(.eyebrow) {
  max-width: none;
  margin: 8px 0 0;
  color: var(--muted);
  white-space: nowrap;
}

.event-region-heading strong {
  flex: 0 0 auto;
  color: var(--rose);
  font-size: 22px;
}

.event-region-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.event-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(23, 35, 31, 0.06);
  /* 카드가 149장이라 문서 높이가 14만px를 넘는다. 화면 밖 카드는
     레이아웃/페인트를 건너뛰되, 예상 높이를 알려줘 스크롤 길이는 유지한다. */
  content-visibility: auto;
  /* 카드 높이는 화면폭에 따라 853px(320) ~ 983px(375)로 변한다.
     중간값을 초깃값으로 두고, auto 키워드가 한 번 렌더된 뒤엔 실제 높이를 기억한다. */
  contain-intrinsic-size: auto 900px;
}

.event-card[hidden] {
  display: none;
}

.event-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f1f5f0;
}

.event-body {
  padding: 20px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 850;
}

.event-card h3,
.event-card h4 {
  margin: 12px 0 10px;
  font-size: 22px;
  line-height: 1.24;
}

.event-card p {
  margin: 0 0 16px;
  min-height: 76px;
  color: var(--muted);
}

.event-info {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
}

.event-info div,
.info-panel dl div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
}

.event-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 12px;
}

.event-trust span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef5ef;
  color: var(--pine-2);
  font-size: 12px;
  font-weight: 800;
}

.event-trust span:first-child::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #2f8b57;
}

.event-card-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}

.event-card-tools button,
.event-card-tools a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--pine);
  background: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.event-card-tools button[aria-pressed="true"] {
  border-color: var(--rose);
  color: var(--rose);
  background: #fff5f7;
}

dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

dd {
  margin: 0;
}

.card-actions {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 10px;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--pine);
  font-weight: 800;
}

.cta-link {
  padding: 0 14px;
  text-align: center;
}

.cta-link.full {
  width: 100%;
  margin-top: 18px;
}

.empty-state {
  margin: 20px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
}

.event-detail-hero {
  padding: clamp(54px, 8vw, 92px) 0 clamp(38px, 6vw, 68px);
  background: #f1f5f0;
  border-bottom: 1px solid var(--line);
}

/* 행사명은 API에서 오는 6~20자 텍스트라, 제목 칸을 넓게 잡아 대부분 한 줄에 들어가게 한다 */
.event-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
}

.event-detail-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(32px, 4.6vw, 46px);
  line-height: 1.15;
  letter-spacing: 0;
  /* 한글이 단어 중간에서 잘리지 않도록. 줄바꿈이 생겨도 띄어쓰기에서만 나뉜다 */
  word-break: keep-all;
  text-wrap: balance;
}

.event-detail-hero .hero-copy {
  color: var(--muted);
}

.event-verification {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.event-verification span {
  padding: 7px 11px;
  border: 1px solid #cfe2d4;
  border-radius: 999px;
  color: var(--pine-2);
  background: #f6fbf7;
  font-size: 13px;
  font-weight: 800;
}

.event-verification span:first-child::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #2f8b57;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.event-detail-media {
  margin: 0;
}

.event-detail-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #f1f5f0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.event-detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.event-detail-content article h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.18;
}

.event-utility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 34px;
}

.event-utility-grid a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.event-utility-grid a:hover,
.event-utility-grid a:focus-visible {
  border-color: var(--rose);
  transform: translateY(-2px);
  outline: none;
}

.event-utility-grid strong {
  color: var(--pine);
}

.event-utility-grid span {
  color: var(--muted);
  font-size: 13px;
}

.event-detail-content article h2:not(:first-of-type) {
  margin-top: 34px;
}

/* 행사 상세 정보 카드. 일정을 가장 크게 두고 나머지는 구분선으로 나눈다.
   .event-info는 행사 카드와 공유하므로 여기서만 다시 정의한다 */
.detail-info {
  gap: 0;
  margin-top: 26px;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(23, 35, 31, 0.06);
}

.detail-info > div {
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
}

.detail-info > div:first-child {
  border-top: 0;
}

.detail-info dt {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 800;
}

.detail-info dd {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

/* 줄마다 색을 달리해 구분한다. 일정이 가장 진하고 아래로 갈수록 옅어져
   중요도 순서가 그대로 보이게 한다 */
.detail-info .detail-info-lead {
  align-items: center;
  padding: 15px 20px;
  background: var(--rose-2);
  box-shadow: inset 4px 0 0 var(--rose);
}

.detail-info .detail-info-lead dt {
  color: #8d4a56;
}

.detail-info .detail-info-venue {
  background: #e6f0e9;
  box-shadow: inset 4px 0 0 #5f9280;
}

.detail-info .detail-info-venue dt {
  color: #3d6a58;
}

.detail-info .detail-info-address {
  background: #e8eef6;
  box-shadow: inset 4px 0 0 #6d90b4;
}

.detail-info .detail-info-address dt {
  color: #3f6182;
}

.detail-info .detail-info-address .map-link {
  color: #3f6182;
}

.detail-info .detail-info-region {
  background: #f6efdd;
  box-shadow: inset 4px 0 0 var(--gold);
}

.detail-info .detail-info-region dt {
  color: #866425;
}

.detail-info .detail-info-lead dd {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.detail-info .detail-info-venue dd {
  font-size: 17px;
  font-weight: 800;
}

.detail-info .map-link {
  display: inline-block;
  margin-left: 2px;
  color: var(--rose);
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .detail-info > div {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 14px;
  }

  .detail-info .detail-info-lead {
    padding: 14px 14px;
  }
}

.region-section {
  background: var(--pine);
  color: white;
}

.region-section .eyebrow {
  color: var(--rose-2);
}

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

.region-grid a,
.category-list a {
  display: grid;
  align-content: center;
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 850;
}

.region-grid span,
.category-list span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 500;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 44px;
  align-items: start;
}

.two-column p + p {
  margin-top: 14px;
}

#categories h2 {
  margin-bottom: 24px;
  font-size: clamp(30px, 3vw, 42px);
  white-space: nowrap;
}

#detail-title,
#checklist-title {
  margin-bottom: 24px;
}

.category-list {
  display: grid;
  gap: 12px;
}

.category-list a {
  min-height: 88px;
  border-color: var(--line);
  background: white;
}

.category-list span {
  color: var(--muted);
}

/* 배경 밴드는 전체 폭 섹션에만.
   shell이 섹션에 직접 붙은 옛 구조(은퇴한 행사 페이지)에서는 배경이
   가운데 1180px에만 칠해져 어색하므로 제외한다. */
.detail-band,
.checklist-section,
.faq-section:not(.shell) {
  background: #eef5f0;
}

.detail-layout,
.checklist-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 34px;
  align-items: start;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.check-grid span,
.checklist li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: white;
  font-weight: 750;
}

.info-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: white;
  box-shadow: var(--shadow);
}

.info-panel h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.info-panel dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.guide-grid .section-heading {
  grid-column: 1 / -1;
  margin-bottom: 12px;
}

.guide-grid article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.guide-grid article span {
  color: var(--gold);
  font-weight: 900;
}

.guide-grid h3 {
  margin: 22px 0 10px;
  font-size: 22px;
}

.guide-grid p {
  margin: 0;
  color: var(--muted);
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 850;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.site-footer {
  padding: 32px 0 72px;
  background: var(--ink);
  color: white;
  /* 협력사 펼침 메뉴가 푸터 아래로 조금 넘치면 문서가 그만큼 길어져
     페이지 바탕(밝은색)이 띠처럼 드러난다. 그림자로 그 아래를 푸터 색으로 덮는다.
     그림자는 레이아웃과 스크롤 영역에 영향을 주지 않는다. */
  box-shadow: 0 160px 0 160px var(--ink);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-layout p {
  max-width: 560px;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.footer-layout nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.88);
}

/* 푸터 '협력사' 펼침 메뉴 (FAQ용 details 기본 스타일은 해제) */
.footer-more {
  position: relative;
  /* 푸터 링크는 세로로 늘어나므로, 메뉴가 글자 바로 아래 붙도록 높이를 내용에 맞춘다 */
  align-self: flex-start;
  border: 0;
  border-radius: 0;
  background: none;
}

.footer-more > summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  list-style: none;
  cursor: pointer;
  color: inherit;
  font-weight: inherit;
}

.footer-more > summary::-webkit-details-marker {
  display: none;
}

.footer-more > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  /* 화살표는 글자보다 가벼워서, 자리를 그대로 차지하면 '협력사' 칸만
     넓어 보인다. 폭의 약 절반을 음수 여백으로 당겨 옆 항목과 간격을 맞춘다. */
  margin-right: -5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.18s ease;
}

.footer-more[open] > summary::after {
  transform: translateY(1px) rotate(-135deg);
}

.footer-more-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 16;
  display: grid;
  gap: 0;
  width: max-content;
  max-width: min(260px, calc(100vw - 32px));
  padding: 8px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  text-align: left;
  /* 하단 고정 CTA 바에 가리지 않도록 스크롤 여백 확보 */
  scroll-margin-bottom: 88px;
}

.footer-more-panel::after {
  content: "";
  position: absolute;
  bottom: 100%;
  right: 20px;
  border: 7px solid transparent;
  border-bottom-color: var(--surface);
}

.footer-more-panel a {
  display: block;
  padding: 11px 12px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

/* 항목 사이 구분선으로 칸을 나눈다 */
.footer-more-panel a + a {
  border-top: 1px solid var(--line);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.footer-more-panel a:has(+ a) {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* 칸마다 색을 달리해 구분한다. 4색이 순환하므로 항목이 늘어도 색이 이어진다 */
.footer-more-panel a:nth-child(4n + 1) {
  background: #f7e4e8;
}

.footer-more-panel a:nth-child(4n + 2) {
  background: #e7f1ea;
}

.footer-more-panel a:nth-child(4n + 3) {
  background: #e9eff7;
}

.footer-more-panel a:nth-child(4n + 4) {
  background: #f8f1e0;
}

/* 마우스를 올리면 같은 색을 한 단계 진하게 */
.footer-more-panel a:nth-child(4n + 1):hover,
.footer-more-panel a:nth-child(4n + 1):focus-visible {
  background: #f0d2d8;
}

.footer-more-panel a:nth-child(4n + 2):hover,
.footer-more-panel a:nth-child(4n + 2):focus-visible {
  background: #d8e9de;
}

.footer-more-panel a:nth-child(4n + 3):hover,
.footer-more-panel a:nth-child(4n + 3):focus-visible {
  background: #dae4f0;
}

.footer-more-panel a:nth-child(4n + 4):hover,
.footer-more-panel a:nth-child(4n + 4):focus-visible {
  background: #f1e6cc;
}

.mobile-cta {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 12;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(23, 35, 31, 0.94);
  color: white;
  box-shadow: var(--shadow);
}

.mobile-cta span {
  padding-left: 8px;
  font-weight: 800;
}

.mobile-cta a {
  min-height: 42px;
  padding: 0 14px;
}

.compare-tray {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(960px, calc(100% - 32px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #fff;
  background: rgba(23, 35, 31, 0.97);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.24);
  transform: translateX(-50%);
}

.compare-tray[hidden],
.compare-modal[hidden] {
  display: none;
}

.compare-tray > div:first-child {
  min-width: 0;
}

.compare-tray strong {
  display: block;
  margin-bottom: 3px;
}

#compareList {
  display: block;
  overflow: hidden;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-tray-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.compare-tray button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  color: #fff;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.compare-tray #compareOpen {
  border-color: var(--rose);
  background: var(--rose);
}

.compare-tray button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.compare-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 20, 17, 0.7);
}

.compare-modal-panel {
  width: min(1120px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  padding: 28px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.compare-modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.compare-modal-heading h2 {
  margin: 4px 0 0;
}

#compareClose {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  font-size: 26px;
  cursor: pointer;
}

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #fff;
}

.compare-table th,
.compare-table td {
  min-width: 180px;
  padding: 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th,
.compare-table tbody th {
  color: var(--pine);
  background: #f4f1e9;
}

.compare-table a {
  color: var(--rose);
  font-weight: 800;
  text-decoration: underline;
}

body.compare-modal-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .trust-band,
  .event-region-grid,
  .region-grid,
  .guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-region-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .two-column,
  .region-page-hero .two-column,
  .detail-layout,
  .event-detail-layout,
  .event-detail-content,
  .checklist-layout {
    grid-template-columns: 1fr;
  }

  .region-page-hero h1,
  .hero h1,
  #categories h2,
  body[data-region-matches] .section-heading h2 {
    white-space: normal;
  }

  .hero {
    max-width: 100%;
    overflow: hidden;
  }

  .hero-content {
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
    min-width: 0;
    overflow: hidden;
  }

  .hero-content > * {
    max-width: 100%;
    min-width: 0;
  }

  .hero h1 {
    font-size: clamp(34px, 8.8vw, 56px);
    overflow-wrap: break-word;
    word-break: keep-all;
  }

  .hero-copy {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: keep-all;
  }

  .search-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .search-row,
  .search-row input,
  .search-row button {
    min-width: 0;
  }

  .quick-filters {
    max-width: 100%;
  }

  body[data-region-matches] .section-heading,
  body[data-region-matches] .guide-grid {
    grid-template-columns: 1fr;
  }

  body[data-region-matches] .section-heading p:not(.eyebrow) {
    white-space: normal;
  }

  body:not([data-region-matches]) #events > .section-heading {
    row-gap: 6px;
  }

  body:not([data-region-matches]) #events > .section-heading p:not(.eyebrow) {
    white-space: normal;
  }

  .event-region-heading p:not(.eyebrow) {
    white-space: normal;
  }
}

@media (max-width: 760px) {
  .filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .advanced-filter-heading {
    gap: 10px;
  }

  .advanced-filter-heading::after {
    min-width: 108px;
    padding-inline: 9px;
  }

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

  .advanced-filter-grid .favorite-only {
    margin-top: 0;
  }

  .compare-tray {
    bottom: 76px;
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    padding: 12px;
  }

  .compare-tray-actions button {
    flex: 1;
  }

  .compare-modal {
    padding: 10px;
  }

  .compare-modal-panel {
    max-height: calc(100vh - 20px);
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .advanced-filter-heading {
    grid-template-columns: 1fr;
  }

  .advanced-filter-heading::after {
    width: 100%;
  }

  .advanced-filter-grid {
    grid-template-columns: 1fr;
  }

  .event-card-tools {
    grid-template-columns: 1fr 1fr;
  }

  .event-card-tools a {
    grid-column: 1 / -1;
  }

  .event-utility-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
  }

  body {
    padding-bottom: 78px;
  }

  .shell,
  .hero-content {
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
    min-width: 0;
  }

  .site-header {
    min-height: 64px;
    padding: 10px 10px;
    /* sticky + backdrop-filter는 스크롤 프레임마다 헤더 뒤를 다시 읽어 블러를
       재계산한다. 문서가 14만px라 저사양 기기에서 스크롤이 끊긴다.
       배경 불투명도를 조금 올려 시각 차이 없이 블러를 뺀다. */
    background: rgba(255, 253, 249, 0.97);
    backdrop-filter: none;
  }

  .brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    font-size: 12.5px;
    font-weight: 700;
    max-width: 100%;
    overflow: visible;
    justify-content: stretch;
    padding: 0;
  }

  .main-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 7px 2px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    border: 1px solid rgba(23, 35, 31, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.66);
  }

  .main-nav a + a {
    border-left: 1px solid rgba(23, 35, 31, 0.1);
  }

  .main-nav::-webkit-scrollbar,
  .quick-filters::-webkit-scrollbar {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 64px);
    align-items: center;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-content {
    padding: 44px 0 34px;
    overflow: hidden;
  }

  .hero .eyebrow {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(34px, 9.4vw, 44px);
    line-height: 1.08;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: keep-all;
  }

  .hero-copy {
    max-width: 100%;
    margin: 16px 0 18px;
    font-size: 16px;
    line-height: 1.62;
    overflow-wrap: break-word;
    word-break: keep-all;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(18, 30, 26, 0.9) 0%, rgba(18, 30, 26, 0.55) 56%, rgba(18, 30, 26, 0.2) 100%),
      url("weddingfair_PIC.webp") center/cover;
  }

  .search-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 14px;
    overflow: hidden;
  }

  .search-panel label {
    font-size: 13px;
  }

  .search-row input,
  .search-row button {
    width: 100%;
    min-width: 0;
    height: 46px;
  }

  .search-row button {
    width: 100%;
  }

  .quick-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    margin: 10px -2px 0;
    padding: 0 2px 2px;
  }

  .event-region-nav {
    grid-template-columns: 1fr;
    overflow: visible;
    margin-bottom: 22px;
    padding: 12px;
  }

  .event-region-nav::-webkit-scrollbar {
    display: none;
  }

  .quick-filters button {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 10px;
    font-size: 13px;
  }

  .event-region-nav a {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .search-row,
  .event-region-grid,
  .region-grid,
  .guide-grid,
  .event-detail-layout,
  .event-detail-content,
  .check-grid,
  .card-actions {
    grid-template-columns: 1fr;
  }

  .trust-band {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-band div {
    padding: 16px 14px;
  }

  .trust-band strong {
    font-size: 24px;
  }

  .trust-band span {
    font-size: 12px;
  }

  .event-region-heading {
    display: grid;
    align-items: start;
  }

  .trust-band div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 58px 0;
  }

  body:not([data-region-matches]) #events {
    padding-top: 18px;
  }

  body:not([data-region-matches]) #events > .section-heading {
    row-gap: 4px;
  }

  .section-heading h2,
  .two-column h2,
  .detail-layout h2,
  .checklist-layout h2,
  body[data-region-matches] .section-heading h2 {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.16;
    white-space: normal;
  }

  .region-page-hero {
    padding: 46px 0 48px;
  }

  .region-page-hero h1,
  .event-detail-hero h1 {
    max-width: 100%;
    font-size: clamp(34px, 9.8vw, 46px);
    line-height: 1.1;
    white-space: normal;
  }

  .region-page-hero .two-column {
    gap: 24px;
  }

  .event-body {
    padding: 16px;
  }

  .event-card h3,
  .event-card h4 {
    font-size: 20px;
  }

  .event-card p {
    min-height: 0;
  }

  .event-info {
    padding: 12px;
  }

  .event-info div,
  .info-panel dl div {
    grid-template-columns: 58px 1fr;
  }

  .footer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .footer-layout nav {
    order: 1;
    display: flex;
    /* min-width:min-content + nowrap이면 칸이 줄어들 수 없다.
       좁은 화면에서 잘리는 대신 다음 줄로 넘어가도록 wrap을 허용한다. */
    flex-wrap: wrap;
    gap: 8px 0;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    font-size: clamp(9px, 3vw, 12px);
    white-space: nowrap;
  }

  .footer-layout nav > a,
  .footer-layout nav > .footer-more {
    /* 칸 너비를 균등 분배한다. 글자가 긴 항목만 제 너비를 지키고 나머지가
       남은 폭을 똑같이 나눠 가져, 구분선 사이 간격이 고르게 보인다. */
    flex: 1 1 0;
    min-width: min-content;
    padding: 0 clamp(4px, 1.6vw, 7px);
    text-align: center;
    font-size: inherit;
  }

  .footer-layout nav > * + * {
    border-left: 1px solid rgba(255, 255, 255, 0.22);
  }

  .footer-more > summary {
    gap: 2px;
    justify-content: center;
  }

  /* 화살표는 '협력사' 칸만 넓어 보이게 만든다.
     음수 여백으로 안쪽 여백을 파고들게 해서 글자 간격 리듬을 다른 칸과 맞춘다. */
  .footer-more > summary::after {
    width: 5px;
    height: 5px;
    margin-right: -3px;
  }

  .footer-more-panel a {
    white-space: normal;
  }

  .footer-layout > div {
    order: 2;
  }

  .site-footer {
    padding: 18px 0 28px;
  }

  .mobile-cta {
    display: flex;
    bottom: max(10px, env(safe-area-inset-bottom));
    padding: 8px;
  }

  .mobile-cta span {
    min-width: 0;
    font-size: 14px;
  }

  .mobile-cta a {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }
}

.event-ended-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 18px auto 0;
  padding: 14px 20px;
  max-width: 1120px;
  width: calc(100% - 40px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--rose);
  border-radius: 12px;
  background: var(--rose-2);
  color: var(--ink);
  font-size: 15px;
}

.event-ended-notice a {
  font-weight: 700;
  color: var(--rose);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.event-ended .event-detail-media {
  filter: grayscale(0.55);
  opacity: 0.82;
}

.footer-layout p.footer-disclosure {
  max-width: none;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.event-card {
  position: relative;
}

.event-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-align: center;
  white-space: pre-line;
  color: #fff;
  box-shadow: 0 4px 12px rgba(23, 35, 31, 0.22);
}

.event-badge.urgent {
  background: #e0455a;
}

.event-badge.stacked {
  padding: 3px 7px;
  border-radius: 10px;
}

.event-badge.live {
  background: #2f9e77;
}

.event-badge.soon {
  background: #e8801c;
}

.date-filters {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.28);
}

.search-panel.light .date-filters {
  border-top-color: var(--line);
}

.quick-filters button.is-active,
.search-panel.light .quick-filters button.is-active {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}

.map-link {
  margin-left: 6px;
  color: var(--rose);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.share-button {
  padding: 0 16px;
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.goodgift-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.goodgift-card h2 {
  margin: 6px 0 8px;
  font-size: 21px;
}

.goodgift-card p:last-child {
  margin: 0;
  color: var(--muted);
}

.goodgift-link {
  flex: 0 0 auto;
  padding: 0 18px;
}

.gift-note {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--muted);
}

.gift-note a {
  color: var(--rose);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 680px) {
  .goodgift-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 20px;
  }

  .goodgift-link {
    justify-content: center;
  }
}

.goodgift-g {
  color: #e0455a;
  font-weight: 900;
}

.goodgift-brand {
  color: #1d6fd8;
  font-weight: 900;
}

.site-footer .goodgift-brand {
  color: #6ab0ff;
}

.guide-article {
  max-width: 860px;
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: clamp(56px, 8vw, 96px);
}

.guide-article h1 {
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 4px solid var(--gold);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
}

.guide-updated {
  margin-top: -10px;
  color: var(--muted);
  font-size: 14px;
}

.source-note {
  margin-top: 34px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--now-red);
  border-radius: 8px;
  background: #fff;
}

.source-note p {
  margin: 6px 0 0;
  font-size: 14px;
}

.source-note a {
  color: var(--pine-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-article h2 {
  margin: 36px 0 12px;
  font-size: clamp(21px, 2.4vw, 26px);
}

.guide-article > h2 {
  margin-top: 44px;
  padding: 6px 0 6px 14px;
  border-left: 4px solid var(--rose);
  background: linear-gradient(90deg, #faf6ef 0%, rgba(250, 246, 239, 0) 78%);
}

.guide-article p,
.guide-article li {
  color: #333c39;
  line-height: 1.8;
}

.guide-article ul {
  padding-left: 22px;
}

.guide-article li + li {
  margin-top: 6px;
}

/* 단계 흐름 도식. 글자를 실제 텍스트로 두어 화면 폭과 무관하게 또렷하게 읽힌다
   (SVG로 그리면 글자가 화면 크기에 비례해 커지거나 작아져 읽기 어려워진다) */
.guide-flow {
  position: relative;
  margin: 22px 0 28px;
  padding: 4px 0 4px 52px;
  list-style: none;
  counter-reset: guide-flow;
}

.guide-flow::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--rose-2);
}

.guide-article .guide-flow > li {
  position: relative;
  margin: 0 0 14px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  counter-increment: guide-flow;
}

.guide-article .guide-flow > li:last-child {
  margin-bottom: 0;
}

.guide-flow > li::before {
  content: counter(guide-flow);
  position: absolute;
  left: -52px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.guide-flow-when {
  display: block;
  color: var(--rose);
  font-size: 14.5px;
  font-weight: 850;
}

.guide-flow-what {
  display: block;
  margin-top: 3px;
  color: #333c39;
  line-height: 1.7;
}

@media (max-width: 680px) {
  .guide-flow {
    padding-left: 42px;
  }

  .guide-flow::before {
    left: 13px;
  }

  .guide-article .guide-flow > li {
    padding: 12px 14px;
  }

  .guide-flow > li::before {
    left: -42px;
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
}

/* 가이드 본문 표. 좁은 화면에서는 표만 가로로 스크롤된다 */
.guide-table {
  margin: 18px 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.guide-article table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 15px;
}

.guide-article th,
.guide-article td {
  padding: 11px 13px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.guide-article th {
  background: #f4f1e9;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.guide-article td {
  color: #333c39;
}

.guide-article tbody tr:nth-child(even) td {
  background: #fdfcf8;
}

@media (max-width: 680px) {
  .guide-article table {
    min-width: 420px;
    font-size: 14px;
  }

  .guide-article th,
  .guide-article td {
    padding: 9px 10px;
  }
}

/* 설명 문단 굵기를 한 단계 올려 또렷하게 만든다.
   중간 굵기가 없는 환경에서는 기본 굵기로 자연스럽게 내려간다 */
.guide-index-copy,
.guide-card p,
.guide-article p,
.guide-article li,
.section-heading p:not(.eyebrow),
.two-column p,
.detail-layout p,
.checklist-layout p,
.hero-copy,
.event-card p,
.faq-list details p,
.guide-flow-what,
.nearby-card-meta,
.footer-layout p {
  font-weight: 500;
}

/* 본문 형광펜 강조: 문단 강조는 기본 강조색, caution은 계약·주의, place는 장소 */
.guide-article > p strong,
.event-detail-content article > p strong,
.faq-list details p strong,
.source-note p strong,
.hero-copy strong,
.two-column p strong,
.checklist-layout p strong {
  padding: 0.06em 0.24em;
  border-radius: 4px;
  background-color: rgba(233, 196, 106, 0.45);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  font-weight: 800;
}

.guide-article > p strong.caution,
.event-detail-content article > p strong.caution,
.faq-list details p strong.caution,
.source-note p strong.caution,
.hero-copy strong.caution,
.two-column p strong.caution,
.checklist-layout p strong.caution {
  background-color: rgba(246, 168, 180, 0.6);
}

.guide-article > p strong.place,
.event-detail-content article > p strong.place,
.faq-list details p strong.place,
.source-note p strong.place,
.hero-copy strong.place,
.two-column p strong.place,
.checklist-layout p strong.place {
  background-color: rgba(150, 200, 236, 0.55);
}

.guide-article > p strong.timing,
.event-detail-content article > p strong.timing,
.faq-list details p strong.timing,
.source-note p strong.timing,
.hero-copy strong.timing,
.two-column p strong.timing,
.checklist-layout p strong.timing {
  background-color: rgba(150, 224, 217, 0.55);
}

/* 히어로는 사진 위 흰 글씨라 반투명 형광펜이면 대비가 무너진다.
   배경을 불투명하게 깔고 글자를 어둡게 해 사진 밝기와 무관하게 읽히도록 한다. */
.hero-copy strong {
  background-color: rgb(236, 201, 116);
  color: var(--ink);
}

.hero-copy strong.caution {
  background-color: rgb(247, 179, 190);
}

.hero-copy strong.place {
  background-color: rgb(165, 206, 238);
}

.hero-copy strong.timing {
  background-color: rgb(165, 226, 220);
}

/* 목록·표에서는 앞머리 라벨과 구분되도록 표시한 강조만 형광펜 처리 */
.guide-article li strong.caution,
.guide-article li strong.place,
.guide-article li strong.timing,
.guide-article td strong.caution,
.guide-article td strong.place,
.guide-article td strong.timing,
.event-detail-content article li strong.caution,
.event-detail-content article li strong.place,
.event-detail-content article li strong.timing {
  padding: 0.06em 0.24em;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  font-weight: 800;
}

.guide-article li strong.caution,
.guide-article td strong.caution,
.event-detail-content article li strong.caution {
  background-color: rgba(246, 168, 180, 0.6);
}

.guide-article li strong.place,
.guide-article td strong.place,
.event-detail-content article li strong.place {
  background-color: rgba(150, 200, 236, 0.55);
}

.guide-article li strong.timing,
.guide-article td strong.timing,
.event-detail-content article li strong.timing {
  background-color: rgba(150, 224, 217, 0.55);
}

/* 굿기프트 브랜드 표기는 형광펜 대상이 아님 */
.guide-article strong.goodgift-g,
.event-detail-content article strong.goodgift-g,
.faq-list details strong.goodgift-g,
.gift-note strong.goodgift-g,
.source-note strong.goodgift-g {
  padding: 0;
  border-radius: 0;
  background: none;
}

.guide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 44px 0 0;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f4f1e9;
}

.guide-cta strong {
  display: block;
  font-size: 19px;
}

.guide-cta p {
  margin: 6px 0 0;
  color: var(--muted);
}

.guide-cta .cta-link {
  flex: 0 0 auto;
  padding: 0 20px;
}

.guide-related {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.guide-related h2 {
  margin: 0 0 14px;
  font-size: 19px;
}

.guide-related nav {
  display: grid;
  gap: 8px;
}

.guide-related nav a {
  color: var(--rose);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-index-title {
  margin: 0 0 12px;
  font-size: clamp(34px, 4.6vw, 52px);
}

.guide-index-copy {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 17px;
}

/* 한글은 음절 단위로 끊겨 '경기 웨딩박람회 일 / 정'처럼 한 글자만 남는다.
   단어 단위로 묶되, 긴 영문·URL은 예외적으로 끊어 넘침을 막는다. */
h1,
h2,
h3,
h4,
summary,
.event-card h3,
.event-card h4,
.guide-card h2,
.nearby-card-title,
.section-heading h2,
.region-page-hero h1 {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.guide-grid {
  display: grid;
  /* 이 규칙이 980/680px 미디어쿼리보다 파일 뒤에 있어 그쪽을 덮어쓴다.
     min()으로 감싸 좁은 화면에서 트랙이 컨테이너보다 커지지 않게 한다. */
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 18px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(23, 35, 31, 0.05);
}

.guide-card h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.guide-card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: var(--rose);
  box-shadow: 0 16px 32px rgba(23, 35, 31, 0.1);
}

.guide-card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--rose);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* 가이드 카드 주제별 색 구분. 색만으로는 뜻을 알 수 없으므로 이름표를 함께 둔다 */
.guide-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.guide-card-group {
  font-size: 13px;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.guide-card-fair { border-top: 3px solid #a8505e; background: #fdf4f5; }
.guide-card-fair .guide-card-num { background: #a8505e; }
.guide-card-fair .guide-card-group,
.guide-card-fair .guide-card-more { color: #a8505e; }
.guide-card-fair:hover { border-color: #a8505e; }

.guide-card-hall { border-top: 3px solid #46735f; background: #f1f7f3; }
.guide-card-hall .guide-card-num { background: #46735f; }
.guide-card-hall .guide-card-group,
.guide-card-hall .guide-card-more { color: #46735f; }
.guide-card-hall:hover { border-color: #46735f; }

.guide-card-sdm { border-top: 3px solid #4d7096; background: #f2f6fa; }
.guide-card-sdm .guide-card-num { background: #4d7096; }
.guide-card-sdm .guide-card-group,
.guide-card-sdm .guide-card-more { color: #4d7096; }
.guide-card-sdm:hover { border-color: #4d7096; }

.guide-card-home { border-top: 3px solid #8f6b1f; background: #faf5e9; }
.guide-card-home .guide-card-num { background: #8f6b1f; }
.guide-card-home .guide-card-group,
.guide-card-home .guide-card-more { color: #8f6b1f; }
.guide-card-home:hover { border-color: #8f6b1f; }

.guide-card-ceremony { border-top: 3px solid #84537a; background: #f9f3f8; }
.guide-card-ceremony .guide-card-num { background: #84537a; }
.guide-card-ceremony .guide-card-group,
.guide-card-ceremony .guide-card-more { color: #84537a; }
.guide-card-ceremony:hover { border-color: #84537a; }

.guide-card-money { border-top: 3px solid #356a6b; background: #f0f6f6; }
.guide-card-money .guide-card-num { background: #356a6b; }
.guide-card-money .guide-card-group,
.guide-card-money .guide-card-more { color: #356a6b; }
.guide-card-money:hover { border-color: #356a6b; }

.guide-card-more {
  margin-top: auto;
  color: var(--rose);
  font-weight: 800;
  font-size: 14px;
}

.nearby-section {
  background: #faf7f1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.nearby-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.nearby-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(23, 35, 31, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.nearby-card:hover,
.nearby-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--rose);
  box-shadow: 0 14px 30px rgba(23, 35, 31, 0.11);
  outline: none;
}

.nearby-card-title {
  margin-bottom: 14px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
}

.nearby-card-meta {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.nearby-card-meta + .nearby-card-meta {
  margin-top: 7px;
}

.nearby-card-label {
  color: var(--pine-2);
  font-weight: 800;
}

.nearby-card-more {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--rose);
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 680px) {
  .nearby-links {
    grid-template-columns: 1fr;
  }

  .nearby-card {
    padding: 18px;
  }

  .guide-cta {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

@media (max-width: 680px) {
  /* nowrap이면 292px 칸에 320px 문자열이 들어가 이메일 끝글자가 잘린다.
     body가 overflow-x:hidden이라 스크롤로 볼 수도 없어 반드시 줄바꿈을 허용한다. */
  .footer-contact {
    font-size: 13px;
    white-space: normal;
    word-break: keep-all;
  }

  .footer-contact a[href^="mailto:"] {
    overflow-wrap: anywhere;
  }

  .footer-copyright {
    font-size: 12.5px;
    white-space: normal;
    word-break: keep-all;
  }
}
