:root {
  --ink: #1d2b2b;
  --muted: #4d5a57;
  --paper: #fbfdfc;
  --surface: #ffffff;
  --line: #dbe8e6;
  --teal: #3fa9a5;
  /* 본문 링크용. 흰 배경 대비 5.59:1 로 WCAG AA 를 만족합니다. */
  --teal-dark: #227370;
  --teal-ink: #1f5f5d;
  --mint: #a8e3de;
  --mint-light: #e8f6f4;
  --coral: #ff7f8c;
  /* 예전 강조색. 흰 배경 3.21:1 로 본문 기준에 못 미쳐 지금은 쓰지 않습니다.
     글자에는 --coral-text, 버튼 배경에는 --coral-btn 을 쓰세요. */
  --coral-light: #ffe6e9;
  /* 버튼 배경 전용. 흰 글씨 대비가 밝은 쪽 4.60:1, 어두운 쪽 6.24:1 로
     WCAG AA 를 만족합니다. 장식용 --coral 과 분리해 둡니다. */
  --coral-btn: #cf4257;
  --coral-btn-dark: #b0304a;
  /* 글자 전용. 흰 배경 6.24:1, --coral-light 위 5.27:1 로 AA 를 만족합니다.
     --coral-dark 는 3.21:1 이라 글자색으로 쓰면 안 됩니다(배경·테두리 전용). */
  --coral-text: #b0304a;
  --peach: #ffd0b5;
  --peach-light: #fff3ea;
  --now-red: #c8102e;
  --shadow: 0 16px 40px rgba(31, 95, 93, 0.12);
  --radius: 12px;
  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;
  /* 앵커로 이동했을 때 sticky 헤더가 섹션 위를 덮지 않도록 여백을 둡니다.
     헤더 실측 높이가 폭마다 달라(1440px 72 / 980px 133 / 375px 102)
     중단점별로 값을 바꿉니다. 대상에 scroll-margin-top 을 또 주면
     두 값이 더해져 빈 공간이 생기므로 여기 한 곳에서만 관리합니다. */
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

/* 키보드 사용자를 위한 포커스 표시. 마우스 클릭에는 나타나지 않습니다. */
:focus-visible {
  outline: 3px solid var(--teal-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

.cta-link:focus-visible,
.header-cta:focus-visible,
.mobile-cta a:focus-visible,
.search-row button:focus-visible {
  /* 포커스 표시는 --coral-dark(3.21:1)로도 기준을 겨우 넘지만,
     전역 포커스링과 같은 수준(6.24:1)으로 올려 확실히 보이게 합니다. */
  outline-color: var(--coral-text);
  outline-offset: 3px;
}

.area-section :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--mint);
}

/* 움직임을 줄이도록 설정한 사용자에게는 전환 효과를 끕니다. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 10px clamp(18px, 4vw, 48px);
  background: rgba(251, 253, 252, 0.92);
  border-bottom: 1px solid rgba(219, 232, 230, 0.9);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-mark-svg,
.brand-mark-img {
  display: block;
  filter: drop-shadow(0 3px 8px rgba(63, 169, 165, 0.25));
}

.brand-mark-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

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

.brand-name {
  display: inline-flex;
  align-items: baseline;
  letter-spacing: -0.03em;
  font-weight: 900;
  font-size: 19px;
  line-height: 1;
}

.brand-main {
  color: var(--ink);
}

.brand-suffix {
  color: var(--teal);
  font-size: 1em;
  font-weight: 900;
}

/* 구분 막대: 로고 하트의 파스텔 색 순서를 그대로 사용.
   .brand-name 이 baseline 정렬이라 막대 아랫변이 글자 기준선에 붙어 위로 솟아 보인다.
   막대만 align-self: center 로 빼내 글자 중앙에 맞춘다. */
.brand-divider {
  display: inline-block;
  flex: 0 0 auto;
  align-self: center;
  width: 3px;
  height: 0.92em;
  margin: 0 9px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    #5fcfc9 0%,
    #a8e3de 28%,
    #ffe8dc 52%,
    #ffd2b9 72%,
    #ff8a95 100%
  );
}

.brand-now {
  color: var(--now-red);
  font-weight: 900;
}

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

.main-nav a {
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a[aria-current="page"],
.main-nav a:hover {
  border-bottom-color: var(--teal);
  color: var(--teal-ink);
}

.header-cta,
.cta-link,
.search-row button,
.mobile-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--coral-btn) 0%, var(--coral-btn-dark) 100%);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(176, 48, 74, 0.26);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.header-cta:hover,
.cta-link:hover,
.search-row button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(176, 48, 74, 0.32);
}

.header-cta {
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 12% 18%, rgba(255, 208, 181, 0.55) 0%, rgba(255, 208, 181, 0) 45%),
    radial-gradient(ellipse at 88% 10%, rgba(255, 127, 140, 0.35) 0%, rgba(255, 127, 140, 0) 42%),
    radial-gradient(ellipse at 70% 90%, rgba(168, 227, 222, 0.7) 0%, rgba(168, 227, 222, 0) 48%),
    linear-gradient(180deg, #f2faf9 0%, #fbfdfc 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(63, 169, 165, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 169, 165, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 85%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(48px, 8vw, 96px) 0 clamp(44px, 7vw, 80px);
}

.hero-content > *,
.two-column > *,
.detail-layout > *,
.event-detail-layout > *,
.event-detail-content > * {
  min-width: 0;
}

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

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--mint);
  color: var(--teal-ink);
  font-size: 12.5px;
}

/* 실시간 시계 옆 표시등. 껐다 켜는 깜빡임 대신 옅어졌다 진해지는 맥박과
   퍼지는 고리로 "살아 있음"을 표현합니다. 시선을 덜 뺏고 눈도 덜 피로합니다.
   0%/100% 가 평상시 모습이라, 움직임을 줄이도록 설정한 사용자에게
   (위쪽 prefers-reduced-motion 블록이 애니메이션을 멈춰도) 온전한 점으로 보입니다. */
.hero .eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  animation: hero-live-pulse 2s ease-in-out infinite;
}

@keyframes hero-live-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(255, 127, 140, 0.5);
  }

  50% {
    opacity: 0.5;
    box-shadow: 0 0 0 5px rgba(255, 127, 140, 0);
  }
}

.hero h1 {
  margin: 14px 0 0;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* 두 칸 배치(981px 이상)에서는 제목 칸이 화면의 절반뿐이라
   "경기도 웨딩박람회 일정"이 한 줄에 안 들어가 세 줄이 됐습니다.
   1280px 에서는 2px 모자랐고 1024px 에서는 27px 모자랐습니다.
   이 구간에서만 글자를 조금 줄여 의도한 두 줄 구성을 지킵니다.
   980px 아래는 한 칸 배치라 원래 여유가 있어 건드리지 않습니다. */
@media (min-width: 981px) {
  .hero h1 {
    font-size: clamp(44px, 4.9vw, 60px);
  }
}

.hero-copy {
  max-width: 620px;
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: clamp(16.5px, 1.6vw, 19.5px);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-stats li {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  font-size: 13.5px;
  font-weight: 750;
  color: var(--teal-ink);
}

.hero-stats li strong {
  color: var(--coral-text);
}

/* Search panel */
.search-panel {
  width: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 750;
}

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

.search-row input {
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6fbfa;
  color: var(--ink);
}

.search-row input:focus {
  outline: 3px solid var(--teal-dark);
  outline-offset: 2px;
  border-color: var(--teal);
}

.search-row button {
  min-width: 96px;
}

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

.quick-filters button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-ink);
  background: #f6fbfa;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.quick-filters button:hover {
  border-color: var(--teal);
  background: var(--mint-light);
}

.quick-filters button.is-active {
  border-color: var(--coral-btn-dark);
  /* 흰 글씨 대비 4.60:1. --coral(2.42:1)은 배경으로 쓸 수 없습니다. */
  background: var(--coral-btn);
  color: #fff;
}

.date-filters {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

/* Trust band */
.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.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(--teal-ink);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.1;
}

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

/* Sections */
.section {
  padding: clamp(44px, 6vw, 76px) 0;
}

/* 배경색이 없는 구역끼리 이어지면 아래 여백과 위 여백이 두 번 겹칩니다.
   뒤 구역의 위 여백을 없애 한 번만 적용되게 합니다.
   배경이 있는 구역(어두운 지역별·추천 행사·체크리스트·관련 행사)은
   색 경계에 글이 붙지 않도록 자기 여백을 유지합니다. */
.section:not(.area-section, .detail-band, .checklist-section, .nearby-section)
  + .section:not(.area-section, .detail-band, .checklist-section, .nearby-section) {
  padding-top: 0;
}

/* 배경색이 있는 구역과 맞닿는 쪽은 색 경계선이 구분 역할을 하므로
   흰 바탕 쪽 여백을 줄입니다. (앞뒤 양쪽 모두) */
.section:has(+ .area-section, + .detail-band, + .checklist-section, + .nearby-section) {
  padding-bottom: clamp(28px, 3.5vw, 44px);
}

.area-section + .section:not(.area-section, .detail-band, .checklist-section, .nearby-section),
.detail-band + .section:not(.area-section, .detail-band, .checklist-section, .nearby-section),
.checklist-section + .section:not(.area-section, .detail-band, .checklist-section, .nearby-section),
.nearby-section + .section:not(.area-section, .detail-band, .checklist-section, .nearby-section) {
  padding-top: clamp(28px, 3.5vw, 44px);
}

.section.tight {
  padding-top: clamp(24px, 3vw, 36px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

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

.section-heading h2,
.two-column h2,
.detail-layout h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.nowrap {
  white-space: nowrap;
}

#events .section-heading {
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 1fr);
  align-items: center;
}

#events .section-heading h2 {
  font-size: clamp(26px, 2.8vw, 38px);
}

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

.events-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}

.events-meta-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

#apiEventCount {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--teal-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

#apiEventCount::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

/* Area nav chips */
.area-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff 0%, var(--mint-light) 100%);
}

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

.area-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--teal-ink);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.area-nav a span {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--coral-light);
  color: var(--coral-text);
  font-size: 12px;
}

.area-nav a:hover,
.area-nav a:focus-visible {
  transform: translateY(-1px);
  /* --teal 위 흰 글씨는 2.83:1 로 미달이라 배경을 --teal-dark(5.59:1)로 씁니다.
     outline 을 지우지 않아야 키보드 포커스가 보입니다. */
  border-color: var(--teal-dark);
  background: var(--teal-dark);
  color: #fff;
}

.area-nav a:hover span,
.area-nav a:focus-visible span {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.area-nav a:hover span {
  background: rgba(255, 255, 255, 0.9);
}

/* Event groups & cards */
.event-grid {
  display: grid;
  gap: 40px;
}

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

.event-loading {
  display: grid;
  place-items: center;
  min-height: 140px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
  font-weight: 750;
}

.event-region-group {
  /* 오프셋은 html 의 scroll-padding-top 이 담당합니다. */
  scroll-margin-top: 0;
}

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

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

.event-region-heading h3 {
  margin: 0;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.2;
}

.event-region-heading p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.event-region-heading .group-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.event-region-heading strong {
  color: var(--coral-text);
  font-size: 20px;
}

.event-region-heading a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-ink);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

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

.event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(31, 95, 93, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

/* 이미지 전체가 무료 초대권 신청 링크 */
.event-card-media {
  display: block;
  overflow: hidden;
  cursor: pointer;
}

.event-card-media img {
  transition: transform 0.25s ease;
}

.event-card-media:hover img {
  transform: scale(1.03);
}

.event-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  object-position: center top;
  background: #f2f8f7;
}

.event-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(31, 95, 93, 0.22);
}

.event-badge.urgent {
  background: var(--coral-btn-dark);
}

.event-badge.live {
  background: var(--teal-dark);
}

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

.event-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

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

.event-card h3,
.event-card h4 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.28;
}

.event-card p {
  margin: 0 0 14px;
  color: #3d4947;
  font-size: 15.5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-info {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6fbfa;
  font-size: 14.5px;
}

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

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

dd {
  margin: 0;
}

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

.event-trust span {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--mint-light);
  color: var(--teal-ink);
  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: var(--teal);
}

.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: 36px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal-ink);
  background: #fff;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.event-card-tools button[aria-pressed="true"] {
  border-color: var(--coral);
  color: var(--coral-text);
  background: var(--coral-light);
}

.card-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
  margin-top: auto;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--teal-ink);
  font-weight: 800;
}

.secondary-link:hover {
  border-color: var(--teal);
  background: var(--mint-light);
}

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

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

/* ── 소제목 공통 강조 ──────────────────────────────
   왼쪽 막대 + 옅은 그라데이션. 가이드 본문·행사 상세와 같은 규칙을
   사이트 전체 소제목에 적용합니다. 배경이 어둡거나 이미 색이 있는
   구역은 아래에서 막대·바탕색만 바꿉니다. */
.section-heading h2,
.two-column > div > h2,
.landing-copy h2 {
  padding: 6px 0 6px 14px;
  border-left: 5px solid var(--coral);
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, var(--peach-light) 0%, rgba(255, 243, 234, 0) 78%);
}

.landing-copy h2 {
  border-left-width: 4px;
  padding-left: 12px;
}

/* 어두운 청록 배경(지역별 구역) */
.area-section .section-heading h2 {
  border-left-color: var(--mint);
  background: linear-gradient(90deg, rgba(168, 227, 222, 0.2) 0%, rgba(168, 227, 222, 0) 78%);
}

/* 이미 피치·민트 바탕인 구역에서는 흰색 그라데이션을 씁니다. */
.detail-band .detail-layout h2,
.checklist-section .detail-layout h2,
.nearby-section .section-heading h2 {
  padding: 6px 0 6px 14px;
  border-left: 5px solid var(--coral);
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 78%);
}

/* Area / venue link grids */
.area-section {
  background: linear-gradient(180deg, var(--teal-ink) 0%, #17504e 100%);
  color: #fff;
}

.area-section .eyebrow {
  color: var(--mint);
}

.area-section .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

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

.link-grid a {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.15s ease, transform 0.15s ease;
}

.link-grid a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.link-grid strong {
  font-size: 17px;
}

.link-grid span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
}

.link-grid .count {
  display: inline-block;
  width: max-content;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--coral-btn);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.venue-section .link-grid a {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.venue-section .link-grid a:hover {
  border-color: var(--teal);
  background: var(--mint-light);
}

.venue-section .link-grid span {
  color: var(--muted);
}

.venue-section .link-grid .count {
  background: var(--coral-light);
  color: var(--coral-text);
}

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

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

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

.category-list a {
  display: grid;
  min-height: 84px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 850;
}

.category-list a:hover {
  border-color: var(--coral);
}

.category-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

/* Featured detail band */
.detail-band {
  background: var(--peach-light);
}

.detail-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: 22px;
}

.checklist li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-weight: 750;
}

/* 상담 항목 6종에 주제색 점을 붙여 훑어보기 쉽게 합니다.
   메인의 추천 행사와 행사 상세가 같은 순서(예식장·스드메·혼수·예물·허니문·계약)를 씁니다. */
.check-grid span {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 13px;
  font-size: 15px;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-weight: 750;
}

.check-grid span::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--item-accent, var(--teal));
}

.check-grid span:nth-child(1) { --item-accent: #2b8987; }
.check-grid span:nth-child(2) { --item-accent: #a96685; }
.check-grid span:nth-child(3) { --item-accent: #bd8526; }
.check-grid span:nth-child(4) { --item-accent: #57809f; }
.check-grid span:nth-child(5) { --item-accent: #3f9276; }
.check-grid span:nth-child(6) { --item-accent: #d94f62; }

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

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

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

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

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

.guide-teaser article {
  display: flex;
  flex-direction: column;
  min-height: 200px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.guide-teaser article span {
  color: var(--coral-text);
  font-weight: 900;
}

.guide-teaser h3 {
  margin: 18px 0 8px;
  font-size: 19px;
  line-height: 1.35;
}

.guide-teaser p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14.5px;
}

.guide-teaser a {
  margin-top: auto;
  color: var(--teal-dark);
  font-weight: 800;
}

.checklist-section {
  background: var(--mint-light);
}

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

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

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

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

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

/* Footer */
.site-footer {
  padding: 40px 0 44px;
  background: var(--ink);
  color: #fff;
}

/* 푸터 바로 위 구역은 아래 여백을 줄입니다. 어두운 푸터 띠가 이미 구분선
   역할을 하므로 본문 구역들 사이만큼 띄울 필요가 없습니다. */
#main > .section:last-child {
  padding-bottom: clamp(28px, 4vw, 44px);
}

/* 위쪽은 브랜드 소개 + 링크 묶음, 아래쪽은 고지·저작권 바로 나눕니다. */
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px 56px;
  align-items: start;
}

.footer-brand .brand-main {
  color: #fff;
}

.footer-brand .brand-suffix {
  color: var(--mint);
}

.footer-brand .brand-now {
  color: #ff5a6a;
}

.footer-brand p {
  max-width: 460px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.7;
}

.footer-brand p a,
.footer-bottom a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-brand .footer-contact {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* 광고 고지. 브랜드 단 맨 아래에서 문의 줄보다 한 단계 더 가라앉힙니다. */
.footer-brand .footer-disclosure {
  max-width: none;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  word-break: keep-all;
}

/* 자매 서비스 안내. 전국 사이트와 같은 문구·같은 브랜드 표기를 씁니다.
   21px 900 굵기라 WCAG 기준 큰 글씨(3:1)에 해당해, 원본 색(#1d6fd8 / #e0455a)에
   가깝게 진한 톤을 쓰되 어두운 배경에서도 여유를 두고 통과하도록 맞췄습니다. */
.footer-brand .footer-goodgift {
  margin-top: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

/* 브랜드명만 문장보다 1.5배 크게. em 이라 문장 크기가 바뀌어도 비율이 유지되고,
   줄높이를 따로 줄여 한 줄이 지나치게 벌어지지 않게 합니다. */
.footer-goodgift .goodgift-brand {
  color: #2f86f0;
  font-size: 1.5em;
  line-height: 1.35;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

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

.footer-goodgift .goodgift-brand:hover,
.footer-goodgift .goodgift-brand:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 링크 묶음: 제목은 작게, 링크는 세로로 쌓아 터치 영역을 넉넉히 둡니다. */
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, max-content));
  gap: 28px 48px;
}

.footer-col-title {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.footer-col ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  display: inline-block;
  /* 글자 크기는 그대로 두고 위아래 여백으로 손가락 영역만 넓힙니다. */
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 28px;
}

.footer-policy {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-policy a {
  display: inline-block;
  padding: 6px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  text-decoration: none;
}

.footer-policy a:hover,
.footer-policy a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-policy li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin: 0 12px;
  vertical-align: -0.1em;
  background: rgba(255, 255, 255, 0.25);
}

/* 저작권·상표 표기. 줄 나눔을 브라우저에 맡기지 않고 폭에 따라 단계로 바꿉니다.
   넓으면 한 줄, 좁아지면 두 줄, 휴대폰에서는 세 줄. 어느 단계에서도 줄 앞뒤에
   구분선만 남지 않습니다. */
.footer-copyright {
  display: flex;
  gap: 0;
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.01em;
}

.footer-copyright-row {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 0;
}

.footer-copyright-row + .footer-copyright-row::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.92em;
  margin: 0 9px;
  vertical-align: -0.14em;
  background: rgba(255, 255, 255, 0.3);
}

/* 한 줄이 안 들어가는 폭에서는 저작권+상표등록번호 / 권리표시 두 줄로 나눕니다. */
@media (max-width: 760px) {
  .footer-copyright {
    flex-direction: column;
    gap: 4px;
  }

  .footer-copyright-row + .footer-copyright-row::before {
    display: none;
  }
}

/* 등록번호가 가운데서 끊기지 않게 항목 단위로만 줄을 바꿉니다. */
.footer-copyright-row > span {
  white-space: nowrap;
}

.footer-copyright-row > span + span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.92em;
  margin: 0 9px;
  vertical-align: -0.14em;
  background: rgba(255, 255, 255, 0.3);
}

/* 좁은 화면에서는 두 항목도 세로로 쌓고 구분선을 지웁니다. */
@media (max-width: 560px) {
  .footer-copyright-row {
    flex-direction: column;
    gap: 3px;
  }

  .footer-copyright-row > span + span::before {
    display: none;
  }
}

/* 링크 3열이 브랜드단 폭을 누르기 시작하면 아래로 내려 전체 폭을 씁니다.
   광고 고지 문구(약 463px)가 한 줄로 유지되는 폭이기도 합니다. */
@media (max-width: 1060px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

/* 휴대폰: 링크는 2열, 하단 바는 세로로 쌓습니다. */
@media (max-width: 560px) {
  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Mobile CTA */
.mobile-cta {
  position: fixed;
  /* 가로 모드 노치 대응. viewport-fit=cover 와 함께 동작합니다. */
  left: max(14px, env(safe-area-inset-left, 0px));
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: 14px;
  z-index: 15;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(29, 43, 43, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  box-shadow: var(--shadow);
}

.mobile-cta span {
  display: flex;
  flex-direction: column;
  padding-left: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.mobile-cta span strong {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

/* 공통 버튼 규칙(46px)보다 조금 낮게 잡아 고정 바 높이를 줄입니다. */
.mobile-cta a {
  min-height: 44px;
  padding: 0 14px;
}

/* Compare tray & modal */
.compare-tray {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(960px, calc(100% - 32px));
  padding: 14px 16px;
  border-radius: 14px;
  color: #fff;
  background: rgba(31, 95, 93, 0.97);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.24);
  transform: translateX(-50%);
}

/* 비교 트레이는 폭과 무관하게 떠 있으므로 푸터 여백도 전 폭에서 확보합니다.
   (좁은 화면용 더 큰 값은 아래 680px 블록에서 다시 지정합니다.) */
body.has-compare-tray .site-footer {
  padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px));
}

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

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

#compareList {
  display: block;
  max-width: 600px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.75);
  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.3);
  border-radius: 8px;
  color: #fff;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

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

.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, 24, 23, 0.7);
}

/* 헤더에 backdrop-filter 가 있으면 모달 딤을 받지 않고 밝게 남습니다.
   모달이 열린 동안에는 헤더를 딤 아래로 내립니다. */
body.compare-modal-open .site-header {
  z-index: 5;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.compare-modal-panel {
  overscroll-behavior: contain;
  width: min(1120px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  max-height: min(820px, calc(100dvh - 48px));
  overflow: auto;
  padding: 28px;
  border-radius: 16px;
  background: var(--paper);
}

.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%;
  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(--teal-ink);
  background: var(--mint-light);
}

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

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

/* Landing (area / venue) pages */
.landing-hero {
  padding: clamp(48px, 8vw, 88px) 0 clamp(36px, 6vw, 64px);
  background:
    radial-gradient(ellipse at 90% 0%, rgba(255, 208, 181, 0.5) 0%, rgba(255, 208, 181, 0) 45%),
    linear-gradient(180deg, #f1faf8 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}

.landing-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.landing-hero .hero-copy {
  margin-top: 0;
}

.landing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.landing-meta li {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--teal-ink);
  font-size: 13.5px;
  font-weight: 750;
}

.breadcrumb,
.guide-article .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
}

.breadcrumb li,
.guide-article .breadcrumb li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.breadcrumb li + li::before {
  content: "›";
  margin: 0 8px;
  color: #a9c4c1;
  font-size: 14px;
  line-height: 1;
}

.breadcrumb a,
.guide-article .breadcrumb a {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb li:last-child,
.guide-article .breadcrumb li:last-child {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.notice-box {
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--peach);
  border-left: 4px solid var(--coral);
  border-radius: 10px;
  background: var(--peach-light);
  color: var(--ink);
}

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

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

.nearby-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.nearby-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
}

.nearby-card-title {
  margin-bottom: 12px;
  font-size: 17px;
  line-height: 1.4;
}

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

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

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

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

.landing-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.landing-copy article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.landing-copy h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.landing-copy p,
.landing-copy li {
  margin: 0;
  color: #384442;
  font-size: 16.5px;
  line-height: 1.75;
}

.landing-meta li strong {
  margin-left: 4px;
  color: var(--coral-text);
}

/* 지역·행사장 페이지 안내 문단도 한글 글줄 기준 적용 */
.two-column > div > p,
.section-heading p:not(.eyebrow) {
  max-width: 34em;
  line-height: 1.7;
}

.checklist li,
.check-grid span {
  line-height: 1.6;
}

.landing-copy ul {
  margin: 0;
  padding-left: 20px;
}

/* Event detail */
.event-detail-hero {
  padding: clamp(44px, 7vw, 80px) 0 clamp(36px, 6vw, 60px);
  background: linear-gradient(180deg, #f1faf8 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}

.event-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
}

.event-detail-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

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

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

.event-verification span {
  padding: 7px 11px;
  border: 1px solid var(--mint);
  border-radius: 999px;
  background: #fff;
  color: var(--teal-ink);
  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: var(--teal);
}

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

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

.event-detail-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  background: #f2f8f7;
  box-shadow: var(--shadow);
}

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

/* 가이드 본문 소제목과 같은 강조 막대를 써서 사이트 전체가 같은 언어를 씁니다. */
.event-detail-content article h2 {
  margin: 0 0 16px;
  padding: 8px 0 8px 16px;
  border-left: 5px solid var(--coral);
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, var(--peach-light) 0%, rgba(255, 243, 234, 0) 78%);
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

/* 상세 본문 타이포: 한글 25~35자 기준 글줄, 줄간격 1.75 */
.event-detail-content article > p {
  max-width: 34em;
  color: #384442;
  font-size: 17px;
  line-height: 1.75;
}

.event-detail-content article > p.lead {
  font-size: 18px;
}

/* 핵심 정보 카드: 큰 날짜 블록 + 라벨/값 행 */
.keyfacts {
  position: relative;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 20px;
  margin: 26px 0 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafcfb;
}

.keyfacts-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 16px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, var(--mint-light) 100%);
  border: 1px solid var(--mint);
  box-shadow: 0 4px 12px rgba(63, 169, 165, 0.12);
  text-align: center;
}

.keyfacts-month {
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
}

.keyfacts-day {
  color: var(--teal-ink);
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.keyfacts-weekday {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
}

.keyfacts-range {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
  width: 100%;
  color: var(--coral-text);
  font-size: 13px;
  font-weight: 800;
}

.keyfacts-list {
  display: grid;
  gap: 0;
  margin: 0;
  align-self: center;
}

.keyfacts-list div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  min-height: 44px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.keyfacts-list div:last-child {
  border-bottom: 0;
}

.keyfacts-list dt {
  color: #3d4947;
  font-size: 14.5px;
  font-weight: 700;
}

.keyfacts-list dd {
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.5;
}

.keyfacts-list dd a:not(.map-link) {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 좁은 패널(메인 추천 행사) 안에서는 항상 세로 배치 */
.keyfacts.stack {
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
}

.keyfacts.stack .keyfacts-date {
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
  padding: 12px 16px;
}

.keyfacts.stack .keyfacts-day {
  font-size: 34px;
}

.keyfacts.stack .keyfacts-range {
  width: auto;
  margin: 0 0 0 auto;
  padding: 0;
  border-top: 0;
}

.keyfacts-badge {
  position: absolute;
  top: -11px;
  right: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
}

.keyfacts-badge.urgent {
  background: var(--coral-btn-dark);
}

.keyfacts-badge.live {
  background: var(--teal-dark);
}

.keyfacts-badge.soon {
  background: #a85400;
}

/* 가는 길 박스에 흡수한 도구 링크 */
.tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tool-chips a,
.tool-chips button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--mint);
  border-radius: 999px;
  background: #fff;
  color: var(--teal-ink);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.tool-chips a:hover,
.tool-chips button:hover {
  border-color: var(--teal);
  background: var(--mint-light);
}

.panel-note {
  margin: 10px 0 0;
  color: var(--teal-ink);
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
}

.date-note {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--coral-light);
  color: var(--coral-text);
  font-size: 13px;
  font-weight: 800;
  vertical-align: 1px;
}

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

.transit-box {
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--mint);
  border-radius: 12px;
  background: var(--mint-light);
}

.transit-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--teal-ink);
}

.transit-box p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

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

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

/* 답례품 안내 줄. 위 안내문과 같은 크기·색을 쓰되 브랜드명만 1.5배로 키웁니다.
   줄높이를 따로 잡아 이 줄만 위아래로 벌어지지 않게 합니다. */
.gift-note.goodgift-line {
  margin-top: 10px;
}

/* 본문 안내 두 줄에 순서 번호를 붙입니다. 본문 텍스트가 아니라 장식이므로
   CSS 로만 넣고, 서브셋 폰트에 없는 글자라 이모지 폰트를 직접 지정합니다.
   .note-steps 로 감싼 묶음에만 붙습니다. 사이드바 안내문에는 붙지 않습니다. */
.note-steps > .gift-note::before,
.note-steps > .gift-note.goodgift-line::before {
  margin-right: 6px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 0.95em;
  line-height: 1;
  vertical-align: -0.08em;
}

/* 이모지 키캡은 숫자 + 이형자 선택자 + 키캡 부호 세 글자입니다.
   6자리 16진수로 적어야 뒤 글자와 붙어도 해석이 어긋나지 않습니다. */
.note-steps.single > .gift-note::before {
  content: none;
  margin-right: 0;
}

.note-steps > .gift-note::before {
  content: "\000031\00FE0F\0020E3";
}

.note-steps > .gift-note.goodgift-line::before {
  content: "\000032\00FE0F\0020E3";
}

.gift-note.goodgift-line .goodgift-brand {
  color: #1d6fd8;
  font-size: 1.5em;
  line-height: 1.3;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.gift-note.goodgift-line .goodgift-g {
  color: #d1354a;
  font-weight: 900;
}

/* 브랜드 표기 안의 굵은 글씨(굿)는 본문 형광펜 대상이 아닙니다.
   형광펜 규칙보다 클래스를 하나 더 써서 우선순위를 넘깁니다. */
.gift-note strong.goodgift-g,
.guide-article strong.goodgift-g,
.event-detail-content article strong.goodgift-g,
.landing-copy strong.goodgift-g,
.faq-list details strong.goodgift-g,
.goodgift-note strong.goodgift-g,
.footer-goodgift strong.goodgift-g {
  padding: 0;
  border-radius: 0;
  background: none;
}

.gift-note.goodgift-line .goodgift-brand:hover,
.gift-note.goodgift-line .goodgift-brand:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.event-ended-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 14px 20px;
  border: 1px solid var(--peach);
  border-left: 4px solid var(--coral);
  border-radius: 12px;
  background: var(--peach-light);
  font-size: 15px;
}

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

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

/* Guide articles */
/* 한글 글줄 기준(≈40자)에 맞춘 본문 폭 */
.guide-article {
  max-width: 720px;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(44px, 6vw, 76px);
}

/* 목차: 번호 배지 + 2단 배치 + 접기, 읽는 위치 표시 */
.guide-toc {
  margin: 28px 0 10px;
  border: 1px solid var(--mint);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--mint-light) 0%, #fbfdfc 62%);
}

.guide-toc details {
  border: 0;
  border-radius: inherit;
  background: transparent;
}

.guide-toc summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  list-style: none;
  cursor: pointer;
}

.guide-toc summary::-webkit-details-marker {
  display: none;
}

.guide-toc-title {
  color: var(--teal-ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.guide-toc-count {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 700;
}

/* 펼침 표시 화살표 */
.guide-toc summary::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 2px solid var(--teal-dark);
  border-bottom: 2px solid var(--teal-dark);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.guide-toc details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.guide-toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0 12px 14px;
  list-style: none;
  counter-reset: toc;
}

@media (min-width: 720px) {
  .guide-toc ol {
    grid-template-columns: 1fr 1fr;
    column-gap: 6px;
  }
}

.guide-toc li {
  counter-increment: toc;
  margin: 0;
}

.guide-article .guide-toc a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  color: #34423f;
  font-size: 15.5px;
  line-height: 1.45;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.guide-article .guide-toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex: 0 0 auto;
  min-width: 22px;
  color: var(--teal-dark);
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.guide-article .guide-toc a:hover {
  background: #fff;
  color: var(--teal-ink);
  text-decoration: none;
}

/* 현재 읽고 있는 단락 */
.guide-article .guide-toc a.is-active {
  background: #fff;
  color: var(--teal-ink);
  font-weight: 800;
  box-shadow: inset 3px 0 0 var(--teal);
}

.guide-article .guide-toc a.is-active::before {
  color: var(--coral-text);
}

.guide-article h2[id] {
  /* 오프셋은 html 의 scroll-padding-top 이 담당합니다. */
  scroll-margin-top: 0;
}

.guide-article h1 {
  margin: 0 0 24px;
  padding-bottom: 18px;
  border-bottom: 4px solid var(--mint);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.guide-updated {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: -8px 0 24px;
  color: var(--muted);
  font-size: 13.5px;
}

.guide-updated span {
  display: inline-flex;
  align-items: center;
}

.guide-updated span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  margin: 0 10px;
  border-radius: 50%;
  background: var(--mint);
}

.guide-updated span:first-child {
  color: var(--teal-ink);
  font-weight: 700;
}

.guide-article h2 {
  margin: 40px 0 12px;
  padding: 6px 0 6px 14px;
  border-left: 4px solid var(--coral);
  background: linear-gradient(90deg, var(--peach-light) 0%, rgba(255, 243, 234, 0) 80%);
  font-size: clamp(20px, 2.4vw, 25px);
}

.guide-article h3 {
  margin: 26px 0 8px;
  font-size: 18px;
}

.guide-article p,
.guide-article li {
  color: #2e3c39;
  font-size: 17px;
  line-height: 1.8;
}

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

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

.guide-article table {
  width: 100%;
  /* 이 폭 아래로는 눌리지 않고 .table-wrap 안에서 가로 스크롤됩니다. */
  min-width: 440px;
  margin: 12px 0 18px;
  border-collapse: collapse;
  font-size: 14.5px;
}

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

.guide-article th {
  background: var(--mint-light);
  color: var(--teal-ink);
}

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

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

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

.source-note a,
.guide-article p a,
.guide-article li a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 본문 링크 규칙이 버튼까지 덮지 않도록 되돌립니다.
   버튼은 배경이 있으므로 글씨는 항상 흰색이어야 합니다. */
.guide-article p a.cta-link,
.guide-article li a.cta-link,
.landing-copy p a.cta-link,
.event-detail-content p a.cta-link {
  color: #fff;
  text-decoration: 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: 14px;
  background: var(--mint-light);
}

.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;
}

/* 본문(밝은 배경)에 쓰는 굿기프트 표기. 어두운 푸터와 달리 원본 브랜드 색을
   그대로 쓸 수 있습니다. 빨강만 흰 배경 4.5:1 을 넘도록 한 단계 진하게 잡았습니다. */
.guide-article .goodgift-brand,
.goodgift-note .goodgift-brand {
  color: #1d6fd8;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.guide-article .goodgift-g,
.goodgift-note .goodgift-g {
  color: #d1354a;
  font-weight: 900;
}

.guide-article .goodgift-brand:hover,
.guide-article .goodgift-brand:focus-visible,
.goodgift-note .goodgift-brand:hover,
.goodgift-note .goodgift-brand:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 답례품 안내 상자. 광고 배너가 아니라 본문 흐름에 붙는 참고 상자로 보이게
   기존 안내 상자와 같은 테두리·모서리를 쓰되 왼쪽 색선으로만 구분합니다. */
.goodgift-note {
  margin: 28px 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 4px solid #1d6fd8;
  border-radius: 12px;
  background: var(--surface);
}

.goodgift-note p {
  margin: 8px 0 0;
}

.goodgift-note .goodgift-note-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

/* 안내 상자 제목의 브랜드명만 1.5배. em 이라 제목 크기가 바뀌어도 비율이
   유지되고, 줄높이를 따로 줄여 제목 줄이 과하게 벌어지지 않게 합니다. */
.goodgift-note .goodgift-note-title .goodgift-brand {
  font-size: 1.5em;
  line-height: 1.3;
}

.goodgift-note .goodgift-note-link {
  margin-top: 16px;
}

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

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

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

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

.guide-index-title {
  margin: 0 0 14px;
  font-size: clamp(32px, 4.6vw, 50px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

/* 로고 색을 형광펜처럼 글자 뒤에 깝니다. 글자색은 그대로라 대비가 유지됩니다. */
.title-mark {
  padding: 0.06em 0.22em;
  border-radius: 6px;
  background-image: linear-gradient(
    90deg,
    rgba(95, 207, 201, 0.55) 0%,
    rgba(215, 244, 241, 0.8) 32%,
    rgba(255, 232, 220, 0.85) 58%,
    rgba(255, 138, 149, 0.5) 100%
  );
  /* 줄이 넘어가도 각 줄마다 여백과 모서리가 따로 적용되게 합니다. */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.guide-index-copy {
  max-width: 34em;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.guide-index-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.guide-index-stats li {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--teal-ink);
  font-size: 13.5px;
  font-weight: 750;
}

.guide-index-stats li strong {
  color: var(--coral-text);
}

/* 주제별 묶음 */
.guide-group + .guide-group {
  margin-top: clamp(40px, 5vw, 60px);
}

.guide-group-heading {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* 주제 색은 제목 앞 점과 카드 윗선에만 씁니다. 면은 흰색으로 유지합니다. */
.guide-group-heading h2 {
  margin: 0;
  padding: 6px 0 6px 14px;
  border-left: 5px solid var(--group-accent, var(--teal));
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, #f4f8f7 0%, rgba(244, 248, 247, 0) 78%);
  font-size: clamp(21px, 2.2vw, 26px);
  letter-spacing: -0.02em;
}



.guide-group-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.guide-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--group-accent, var(--teal));
  opacity: 0.85;
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: var(--group-accent, var(--teal));
  box-shadow: 0 12px 26px rgba(31, 95, 93, 0.1);
}

.guide-card h3 {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

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

.guide-card-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
}

.guide-card-more span {
  color: var(--group-accent, var(--teal-dark));
  font-size: 15px;
  font-weight: 800;
}

/* Static pages */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 8px;
}

.summary-cards div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--mint);
  border-radius: 12px;
  background: linear-gradient(160deg, var(--mint-light) 0%, #fff 70%);
}

.summary-cards strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--teal-ink);
  font-size: 15.5px;
}

.summary-cards strong::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
}

.summary-cards span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .summary-cards {
    grid-template-columns: 1fr;
  }
}

.not-found {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 20px 120px;
  text-align: center;
}

.not-found h1 {
  margin: 18px 0 12px;
  font-size: 34px;
}

.not-found p {
  color: var(--muted);
  line-height: 1.7;
}

.not-found .code {
  color: var(--coral-text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.not-found .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

/* Responsive */
@media (max-width: 980px) {
  /* 이 폭부터 내비가 2줄로 접혀 헤더가 가장 높아집니다(실측 133px). */
  html {
    scroll-padding-top: 145px;
  }

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

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

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

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

@media (max-width: 760px) {
  /* 이 폭에서 트레이는 세로 배치라 높이가 약 122px 이므로 여백을 더 확보합니다. */
  body.has-compare-tray .site-footer {
    padding-bottom: calc(160px + env(safe-area-inset-bottom, 0px));
  }

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

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

  .compare-modal {
    padding: 10px;
  }

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

  .landing-copy {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 114px;
  }

  /* 하단 고정 바가 있는 페이지에서만 자리를 비웁니다. 예전에는 body 와
     푸터가 각각 78px 씩 잡아 가이드·소개 페이지에 156px 이 남았습니다.
     푸터 안쪽에 확보해야 어두운 띠가 화면 끝까지 이어집니다.
     :has() 대신 body 속성으로 판별해 구형 브라우저에서도 동작합니다. */
  body[data-page-type="home"] .site-footer,
  body[data-page-type="area"] .site-footer,
  body[data-page-type="venue"] .site-footer,
  body[data-page-type="event"] .site-footer {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  /* 비교 트레이가 떠 있으면 푸터 링크를 덮으므로 그만큼 더 확보합니다.
     클래스는 app.js 의 updateCompareUi 에서 붙입니다. */
  body.has-compare-tray .site-footer {
    padding-bottom: calc(215px + env(safe-area-inset-bottom, 0px));
  }

  /* 트레이는 고정 바 위에 얹힙니다. */
  .compare-tray {
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  .shell {
    width: calc(100% - 28px);
  }

  .site-header {
    min-height: 64px;
    padding: 10px 12px;
    gap: 10px;
  }

  .brand-name {
    font-size: 16px;
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    font-size: 12.5px;
    overflow: visible;
    padding: 0;
  }

  .main-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 2px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    text-align: center;
    white-space: nowrap;
  }

  .main-nav a[aria-current="page"] {
    background: var(--mint-light);
  }

  .header-cta {
    display: none;
  }

  .hero-content {
    padding: 36px 0 30px;
    gap: 22px;
  }

  .hero h1 {
    font-size: clamp(30px, 8.6vw, 40px);
  }

  .hero-copy {
    margin: 14px 0 16px;
    font-size: 15.5px;
  }

  .search-panel {
    padding: 14px;
  }

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

  .search-row {
    grid-template-columns: 1fr;
  }

  .quick-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    /* 버튼 ::after 로 넓힌 터치 영역(상하 6px)이 스크롤 상자에 잘리지 않도록
       안여백을 두고, 같은 만큼 바깥여백을 빼서 보이는 배치는 그대로 둡니다. */
    margin: 4px -2px -8px;
    padding: 6px 2px 8px;
    scrollbar-width: none;
  }

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

  .quick-filters button {
    flex: 0 0 auto;
  }

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

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

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

  .section {
    padding: 48px 0;
  }

  .area-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px;
    scrollbar-width: none;
  }

  .area-nav::-webkit-scrollbar {
    display: none;
  }

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

  .event-region-heading .group-tools {
    justify-content: space-between;
  }

  .event-region-grid,
  .link-grid,
  .guide-teaser,
  .nearby-links,
  .check-grid,
  .card-actions {
    grid-template-columns: 1fr;
  }

  /* 1열이라 폭이 넉넉하므로 줄바꿈을 다시 허용합니다. */
  .check-grid span {
    white-space: normal;
  }

  .keyfacts {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .keyfacts-date {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 16px;
  }

  .keyfacts-day {
    font-size: 34px;
  }

  .keyfacts-range {
    width: auto;
    margin: 0 0 0 auto;
    padding: 0;
    border-top: 0;
  }

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

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

  .event-card p {
    -webkit-line-clamp: 4;
  }

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

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

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

/* 핵심 정보의 "무료" 는 눈에 띄게 칩으로 표시합니다. */
.keyfacts-free {
  display: inline-block;
  margin-right: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--teal-ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
}

/* 검색어와 일치하는 글자 강조 */
mark.search-hit {
  padding: 1px 2px;
  border-radius: 3px;
  background: #ffe6a3;
  color: var(--ink);
  font-weight: 800;
}

.event-card h3 mark.search-hit,
.event-card h4 mark.search-hit {
  background: #ffdf8a;
}

/* ── 본문 중요 문구 하이라이트 ──────────────────────────────
   문단 안의 굵은 글씨에만 형광펜을 깝니다. 글자 뒤에 옅은 민트를
   깔기 때문에 글자색은 그대로 유지되고 대비도 떨어지지 않습니다.
   목록의 굵은 글씨는 항목 이름이라 제외합니다(형광펜이 너무 잦아짐). */
.guide-article > p strong,
.event-detail-content article > p strong,
.landing-copy p strong,
.faq-list details p strong,
.source-note p strong {
  padding: 0.06em 0.24em;
  border-radius: 4px;
  background-color: rgba(150, 224, 217, 0.55);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  font-weight: 800;
}

/* 계약·위약금처럼 손해로 이어질 수 있는 경고는 코랄로 구분합니다. */
.guide-article > p strong.caution,
.event-detail-content article > p strong.caution,
.landing-copy p strong.caution,
.faq-list details p strong.caution,
.source-note p strong.caution {
  background-color: rgba(255, 173, 182, 0.65);
}

/* 장소·교통·행사장 안내는 하늘색으로 구분합니다. */
.guide-article > p strong.place,
.event-detail-content article > p strong.place,
.landing-copy p strong.place,
.faq-list details p strong.place,
.source-note p strong.place {
  background-color: rgba(150, 200, 236, 0.6);
}

/* 목록·표 안에서는 의미가 붙은 두 색만 형광펜을 씁니다.
   항목 이름용 굵은 글씨는 그대로 두어 형광펜이 과해지지 않게 합니다. */
.guide-article li strong.caution,
.guide-article td strong.caution,
.event-detail-content article li strong.caution,
.landing-copy li strong.caution,
.guide-article li strong.place,
.guide-article td strong.place,
.event-detail-content article li strong.place,
.landing-copy li strong.place {
  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,
.landing-copy li strong.caution {
  background-color: rgba(255, 173, 182, 0.65);
}

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

/* 터치 기기는 탭한 뒤에도 :hover 가 남습니다. 장식성 변형과, 현재 페이지
   표시와 헷갈리는 내비 밑줄만 되돌립니다. 색 변화는 그대로 둡니다. */
@media (hover: none) {
  .event-card:hover,
  .header-cta:hover,
  .cta-link:hover,
  .search-row button:hover {
    transform: none;
  }

  .event-card-media:hover img {
    transform: none;
  }

  .main-nav a:hover:not([aria-current="page"]) {
    border-bottom-color: transparent;
  }
}

/* 가로 모드는 세로 공간이 부족합니다. 헤더가 화면의 35% 를 차지하지 않도록
   sticky 를 풀어 스크롤과 함께 올려 보냅니다. */
@media (max-height: 480px) and (orientation: landscape) {
  .site-header {
    position: static;
  }

  html {
    scroll-padding-top: 12px;
  }
}

/* 터치 영역 확대. 글자·버튼 크기는 그대로 두고 눌리는 범위만 넓힙니다.
   실측 높이가 34~36px 이라 위아래로만 늘려 44px 이상을 확보합니다.
   가로로는 늘리지 않아 옆 버튼과 겹치지 않습니다. */
@media (max-width: 980px), (hover: none) {
  .quick-filters button,
  .main-nav a,
  .event-card-tools a,
  .event-card-tools button,
  .tool-chips a,
  .tool-chips button,
  .area-nav a,
  .not-found-areas a,
  .group-tools a,
  .footer-col ul a,
  .footer-policy a {
    position: relative;
  }

  .quick-filters button::after,
  .main-nav a::after,
  .event-card-tools a::after,
  .event-card-tools button::after,
  .tool-chips a::after,
  .tool-chips button::after,
  .area-nav a::after,
  .not-found-areas a::after,
  .group-tools a::after,
  .footer-col ul a::after,
  .footer-policy a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -6px;
    bottom: -6px;
  }

  /* 행사 카드 도구는 세로 간격이 7px 뿐이라 위아래 확장 영역이 겹칩니다.
     겹치면 DOM 뒤쪽 요소(일정 저장)가 이겨서 찜하기를 누르려다 파일이 받아집니다. */
  .event-card-tools {
    gap: 14px;
  }

  /* 비교창 닫기 버튼과 트레이 버튼은 확장 대신 크기 자체를 키웁니다. */
  .compare-tray button {
    min-height: 44px;
  }

  #compareClose {
    width: 44px;
    height: 44px;
  }

  /* 표 안에서 권역 페이지로 가는 링크가 가장 작습니다. */
  .guide-article td a {
    display: inline-block;
    padding: 6px 2px;
  }
}

/* 히어로의 한국 시각 시계. 초가 바뀔 때 글자 폭이 흔들리지 않도록
   고정폭 숫자를 쓰고, 구분 기호는 CSS 로 붙여 JS 는 시각만 다룹니다. */
.hero-clock {
  /* NanumSquare Neo 에는 tnum 피처가 없어 tabular-nums 만으로는 폭이 흔들립니다
     (숫자 글리프 폭 편차 실측 2.96px). 숫자는 고정폭 글꼴에서 가져오고
     한글 요일은 뒤의 본문 글꼴로 자연히 넘어갑니다. */
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace, "NanumSquare Neo", sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.hero-clock::before {
  /* 가운뎃점. 6자리 16진수로 적어야 뒤 글자와 붙어도 해석이 어긋나지 않습니다. */
  content: "\0000A0\0000B7\0000A0";
}

/* 시계는 절대 줄 사이에서 쪼개지지 않게 합니다. */
.hero-clock {
  white-space: nowrap;
}

/* 좁은 화면에서는 영문 라벨과 시계가 한 줄에 못 들어가 알약이 2줄로 깨집니다.
   브랜드는 헤더에 이미 있으므로 라벨을 접고 시각만 남깁니다. */
@media (max-width: 560px) {
  .hero-eyebrow-label {
    display: none;
  }

  .hero-clock::before {
    content: none;
  }
}

/* 404 권역 바로가기 — 없는 주소로 들어온 방문자가 가까운 권역으로 바로 갈 수 있게 합니다. */
.not-found-areas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  max-width: 560px;
  margin-inline: auto;
}
.not-found-areas a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--line, #dfe7e6);
  border-radius: 999px;
  background: #fff;
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--ink, #1d2b2b);
}
.not-found-areas a:hover,
.not-found-areas a:focus-visible {
  border-color: var(--teal, #3fa9a5);
  color: #227370;
}

/* ── 모바일 레이아웃 보정 ──────────────────────────────
   요원 점검에서 나온 좁은 화면 문제들을 한곳에 모았습니다. */
@media (max-width: 640px) {
  /* 표가 min-width 440px 때문에 화면 밖으로 잘렸습니다.
     2열 표는 좁은 화면에 충분히 들어가므로 제한을 풉니다. */
  .guide-article table {
    min-width: 0;
  }

  /* 그래도 넘치는 표(3열 이상)는 옆으로 밀 수 있다는 표시를 줍니다.
     모바일은 스크롤바가 보이지 않아 밀 수 있다는 걸 알 방법이 없었습니다. */
  .table-wrap {
    -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
  }

  .table-wrap:not(:hover) {
    scrollbar-width: thin;
  }

  /* 비교표: 항목 이름 열을 고정해 옆으로 밀어도 무슨 줄인지 보이게 합니다. */
  .compare-table {
    min-width: 0;
  }

  .compare-table th,
  .compare-table td {
    min-width: 132px;
  }

  .compare-table tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--mint-light);
  }

  /* 빠른 검색어와 권역 바로가기가 가로 스크롤 안에 숨어 절반이 안 보였습니다.
     줄바꿈을 허용해 전부 보이게 합니다. */
  .quick-filters,
  .area-nav {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  /* 상담 항목 목록만 브라우저 기본 들여쓰기(40px)를 써서 유독 안쪽에서 시작했습니다. */
  .event-category-points {
    padding-left: 20px;
  }

  /* 하단 고정 바의 설명이 108px 폭으로 눌려 두 줄이 됐습니다. */
  .mobile-cta span {
    flex: 1;
    font-size: 13px;
  }
}
