:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --paper-deep: #efebe2;
  --ink: #35433b;
  --muted: #85877d;
  --accent: #ae8862;
  --line: #ded9ce;
  --serif: "Gowun Batang", "Batang", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

/* 스마트 플로팅 바로가기 네비게이션 */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 244, 238, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(222, 217, 206, 0.65);
  box-shadow: 0 4px 20px rgba(53, 67, 59, 0.04);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.top-nav.top-nav--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.top-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 460px;
  margin: 0 auto;
  padding: 0 6px;
  height: 46px;
}

.nav-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 4px;
  color: #797c73;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-item:hover,
.nav-item.active {
  color: var(--ink);
  font-weight: 600;
}

.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 22%;
  right: 22%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}

.accessibility-controls {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 6px;
}

.accessibility-controls--dismissed,
.accessibility-controls--share-visible {
  display: none;
}

.accessibility-toggle,
.accessibility-dismiss {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 3px 12px rgb(53 67 59 / 18%);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.accessibility-toggle {
  gap: 7px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
}

.accessibility-dismiss {
  width: 32px;
  min-height: 32px;
  padding: 0;
  border-width: 1px;
  font-size: 18px;
  line-height: 1;
}

.accessibility-toggle span:first-child {
  font-size: 16px;
  font-weight: 700;
}

.accessibility-toggle:focus-visible,
.accessibility-dismiss:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.accessibility-mode .accessibility-toggle {
  background: var(--ink);
  color: #ffffff;
}

.hero {
  position: relative;
  display: flex;
  min-height: min(900px, 100svh);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 54px 22px 86px;
  text-align: center;
}

.hero-photo {
  position: absolute;
  inset: 0 0 auto;
  height: 57%;
  overflow: hidden;
  background: url("images/main.jpg") center / cover no-repeat;
}

.hero-photo-note {
  position: absolute;
  z-index: 1;
  top: 22px;
  left: 50%;
  display: flex;
  gap: 7px;
  align-items: center;
  color: rgb(53 67 59 / 58%);
  font-size: 9px;
  letter-spacing: 0.16em;
  transform: translateX(-50%);
}

.hero-photo-note span + span {
  padding-left: 8px;
  border-left: 1px solid rgb(53 67 59 / 28%);
  letter-spacing: 0.04em;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  min-width: 0;
  margin-top: 220px;
  padding: 38px 20px 30px;
  border-radius: 6px;
  background: rgb(247 244 238 / 94%);
  box-shadow: 0 12px 40px rgb(42 48 42 / 14%);
  backdrop-filter: blur(10px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
}

h1,
h2,
.hero-names,
.footer > p:first-child {
  font-family: var(--serif);
  font-weight: 400;
}

.hero h1 {
  margin: 0;
  font-size: clamp(24px, 7.2vw, 49px);
  letter-spacing: 0.025em;
}

.title-period,
.hero-names span,
.footer > p:first-child span {
  color: var(--accent);
}

.hero-names {
  margin: 12px 0 0;
  font-size: 19px;
  letter-spacing: 0.18em;
}

.hero-names span {
  padding: 0 7px;
  font-size: 15px;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin: 21px 0 17px;
  color: var(--accent);
  font-size: 11px;
}

.ornament-mark {
  display: block;
  width: 1.5em;
  height: 1.5em;
  flex: none;
}

#leaf-sprig path {
  fill: #6e7b69;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.hero-divider span {
  width: 34px;
  height: 1px;
  background: var(--line);
}

.hero-date,
.hero-place {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.hero-place {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.scroll-cue {
  position: absolute;
  bottom: 27px;
  left: 50%;
  width: 24px;
  height: 34px;
  border: 1px solid rgb(53 67 59 / 33%);
  border-radius: 15px;
  transform: translateX(-50%);
}

.scroll-cue span {
  position: absolute;
  top: 7px;
  left: 10px;
  width: 2px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  animation: scroll 1.7s ease-in-out infinite;
}

@keyframes scroll {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(8px); opacity: 1; }
}

.section {
  padding: 92px 24px;
  text-align: center;
  scroll-margin-top: 52px;
}

.section h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0.06em;
}

.invitation {
  padding-top: 91px;
  background: #fcfaf6;
}

.flower-mark {
  margin: 28px 0;
  color: var(--accent);
  font-size: 20px;
  text-align: center;
}

.flower-mark .ornament-mark {
  margin-inline: auto;
}

.invitation-copy {
  color: #686d64;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 2.15;
  word-break: keep-all;
}

.invitation-copy p {
  margin: 0 0 15px;
}

.family-lines {
  display: flex;
  width: min(100%, 380px);
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 43px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: #77796f;
  font-size: 12px;
}

.family-lines p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
}

.family-lines p > span:first-child {
  color: #686d64;
  font-size: 16px;
  font-weight: 700;
}

.family-lines strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.relationship {
  color: #99958b;
  font-size: 10px;
}

.date-section {
  background: var(--paper);
}

.date-summary {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 13px;
  margin: 34px 0 28px;
  color: var(--accent);
}

.date-summary span:first-child {
  font-size: 23px;
}

.date-summary span:nth-child(2) {
  font-size: 13px;
}

/* 일체형 프리미엄 웨딩 캘린더 카드 */
.wedding-calendar-card {
  width: min(100%, 350px);
  margin: 0 auto;
  padding: 24px 20px 22px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(222, 217, 206, 0.75);
  box-shadow: 0 4px 24px rgba(53, 67, 59, 0.04);
}

.calendar-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
}

.calendar-month-info {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.month-en {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.year-en {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.calendar-dday-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--ink);
  color: #f7f4ee;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* 요일 및 날짜 그리드 */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  justify-items: center;
}

.calendar-weekdays {
  padding: 10px 0;
  border-top: 1px solid rgba(222, 217, 206, 0.7);
  border-bottom: 1px solid rgba(222, 217, 206, 0.7);
  color: #8c8d83;
  font-size: 10.5px;
  font-weight: 500;
}

.calendar-weekdays span:first-child,
.calendar-days span:nth-child(7n + 1) {
  color: #b86e60;
}

.calendar-weekdays span:last-child,
.calendar-days span:nth-child(7n) {
  color: #6a8294;
}

.calendar-days {
  row-gap: 3px;
  padding-top: 10px;
}

.calendar-day {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #4f564e;
  font-size: 11.5px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.calendar-day.wedding-day {
  background: var(--ink);
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(53, 67, 59, 0.2);
}

/* 하단 일체형 D-Day 카운트다운 영역 */
.calendar-countdown-wrap {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed rgba(222, 217, 206, 0.85);
  text-align: center;
}

.dday-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
}

.timer-num {
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.timer-label {
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.12em;
  margin-top: 3px;
  font-weight: 500;
}

.timer-sep {
  font-size: 15px;
  color: #cfcac0;
  line-height: 1;
  padding-bottom: 12px;
}

.dday-caption {
  margin: 14px 0 0;
  color: #5d635a;
  font-size: 13.5px;
  line-height: 1.5;
  word-break: keep-all;
}

.dday-heart {
  color: #cf796f;
  display: inline-block;
  margin: 0 2px;
  font-size: 11px;
}

.dday-caption strong {
  color: var(--accent);
  font-weight: 700;
}

.gallery-section {
  background: #fcfaf6;
}

.section-note {
  margin: 13px 0 30px;
  color: var(--muted);
  font-size: 12px;
}

.gallery-grid {
  display: grid;
  width: min(100%, 700px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0 auto;
}

.gallery-slot {
  position: relative;
  display: grid;
  min-height: 0;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 22%, rgb(255 255 255 / 54%), transparent 35%),
    linear-gradient(145deg, #e9e5db, #d9ded5);
}

.gallery-slot:nth-child(3n + 2) {
  background:
    radial-gradient(ellipse at 28% 73%, rgb(255 255 255 / 50%), transparent 38%),
    linear-gradient(145deg, #e9e1d5, #dedbd0);
}

.gallery-slot:nth-child(3n) {
  background:
    radial-gradient(ellipse at 78% 78%, rgb(255 255 255 / 45%), transparent 36%),
    linear-gradient(145deg, #e1e4dc, #d6d9d0);
}

.gallery-slot span {
  color: rgb(76 85 75 / 61%);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.gallery-slot::before {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1px solid rgb(76 85 75 / 19%);
  border-radius: 50%;
  content: "";
}

.location-section {
  padding-bottom: 100px;
  background: var(--paper);
}

.location-date {
  margin: 26px 0 7px;
  color: #74776e;
  font-size: 12px;
}

.location-section h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 400;
}

.address {
  margin: 10px 0 25px;
  color: var(--muted);
  font-size: 12px;
}

.map-frame {
  position: relative;
  width: min(100%, 700px);
  height: 290px;
  margin: 22px auto 0;
  overflow: hidden;
  background: #e5e4dc;
}

.naver-map {
  width: 100%;
  height: 100%;
}

.map-status {
  position: absolute;
  inset: 0;
  display: grid;
  margin: 0;
  padding: 20px;
  place-items: center;
  background: rgb(229 228 220 / 94%);
  color: #656c61;
  font-size: 12px;
  text-align: center;
}

.map-status[hidden] {
  display: none;
}

.map-guide-hint {
  margin: 20px 0 0;
  color: #8c8e84;
  font-size: 11.5px;
  letter-spacing: -0.01em;
}

/* 세련된 3대 지도 앱 필(Pill) 버튼 */
.map-app-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 390px);
  gap: 8px;
  margin: 18px auto 0;
}

.map-app-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(222, 217, 206, 0.85);
  box-shadow: 0 2px 8px rgba(53, 67, 59, 0.04);
  color: #3b423c;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: all 0.22s ease;
  cursor: pointer;
}

.map-app-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(53, 67, 59, 0.09);
}

.map-app-btn:active {
  transform: translateY(0);
}

/* 셔틀 및 대중교통 안내 카드 */
.transport-card {
  width: min(100%, 480px);
  margin: 36px auto 0;
  padding: 26px 20px 22px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(222, 217, 206, 0.75);
  box-shadow: 0 4px 20px rgba(53, 67, 59, 0.04);
  text-align: center;
}

.transport-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
}

.transport-badge {
  font-size: 8.5px;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--accent);
  background: rgba(174, 136, 98, 0.12);
  padding: 3px 10px;
  border-radius: 20px;
}

.transport-card-header h4 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
}

.public-transit-card {
  margin-top: 16px;
}

.shuttle-card {
  margin-top: 16px;
}

.public-transit-card .transport-card-header {
  margin-bottom: 18px;
}

.transit-mode {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid rgba(222, 217, 206, 0.7);
  text-align: left;
}

.transit-mode-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding-top: 2px;
}

.transit-mode-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #fbf9f5;
  color: var(--accent);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.subway-icon {
  color: #6e7b69;
}

.transit-mode-heading h5 {
  margin: 0;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
}

.transit-mode-content {
  min-width: 0;
  padding-top: 1px;
}

.bus-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.bus-routes span {
  min-width: 35px;
  padding: 4px 7px;
  border: 1px solid rgba(222, 217, 206, 0.85);
  border-radius: 999px;
  background: #fbf9f5;
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

.transit-mode-content p {
  margin: 0;
  color: #656960;
  font-size: 11.5px;
  line-height: 1.7;
  word-break: keep-all;
}

.transit-mode-content p strong,
.subway-directions li span {
  color: var(--ink);
  font-weight: 600;
}

.walk-distance {
  display: inline-block;
  margin-top: 5px;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 600;
}

.subway-mode {
  padding-bottom: 0;
}

.transit-mode-content .subway-lines {
  margin-bottom: 9px;
}

.subway-directions {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: subway-step;
}

.subway-directions li {
  position: relative;
  padding-left: 24px;
  color: #656960;
  font-size: 11px;
  line-height: 1.65;
  word-break: keep-all;
  counter-increment: subway-step;
}

.subway-directions li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: #fbf9f5;
  color: var(--accent);
  content: counter(subway-step);
  font-size: 9px;
  font-weight: 600;
}

.shuttle-timeline {
  display: grid;
  gap: 8px;
  padding: 16px 12px;
  background: #fbf9f5;
  border-radius: 12px;
  border: 1px solid rgba(222, 217, 206, 0.6);
  margin-bottom: 16px;
}

.timeline-path {
  position: relative;
  display: grid;
  grid-template-columns: 18% 64% 18%;
  align-items: center;
  height: 22px;
}

.station-node {
  position: absolute;
  z-index: 1;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px #b6b8ae;
  transform: translate(-50%, -50%);
}

.station-node.start {
  left: 18%;
  background: #8e9085;
}

.station-node.end {
  left: 82%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-stations {
  display: grid;
  grid-template-columns: 36% 28% 36%;
}

.station-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: max-content;
  text-align: center;
}

.timeline-stations .station-meta:first-child {
  grid-column: 1;
  justify-self: center;
}

.timeline-stations .station-meta:last-child {
  grid-column: 3;
  justify-self: center;
}

.station-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.station-sub {
  font-size: 10px;
  color: var(--muted);
}

.track-line {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 50%;
  height: 1px;
  background: repeating-linear-gradient(90deg, #c9c4b7, #c9c4b7 4px, transparent 4px, transparent 8px);
  transform: translateY(-50%);
}

.track-badge {
  grid-column: 2;
  justify-self: center;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(222, 217, 206, 0.85);
  color: var(--accent);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 6px rgba(53, 67, 59, 0.05);
}

.transport-card-footer p {
  margin: 0;
  color: #656960;
  font-size: 12px;
  line-height: 1.75;
  word-break: keep-all;
}

.transport-card-footer strong {
  color: var(--ink);
  font-weight: 600;
}

/* 정갈한 마음 전하실 곳 (Foldable Envelope UI) */
.account-section {
  background: #fbf9f5;
}

.account-intro {
  margin: 18px 0 28px;
  color: #6d7168;
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1.85;
  word-break: keep-all;
}

.account-container {
  width: min(100%, 440px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-foldable {
  border: 1px solid rgba(222, 217, 206, 0.85);
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(53, 67, 59, 0.03);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.account-foldable:hover {
  border-color: #cdbeaa;
  box-shadow: 0 4px 16px rgba(53, 67, 59, 0.06);
}

.foldable-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  background: #ffffff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s ease;
}

.foldable-trigger:hover {
  background-color: #faf7f2;
}

.trigger-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.role-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.role-badge.groom-badge {
  background: #eef3ee;
  color: #3b5f49;
}

.role-badge.bride-badge {
  background: #fbeeec;
  color: #92534a;
}

.trigger-name {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.trigger-chevron {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #8c8d83;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.trigger-chevron svg {
  width: 15px;
  height: 15px;
}

.foldable-trigger[aria-expanded="true"] .trigger-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.foldable-content {
  padding: 6px 16px 16px;
  border-top: 1px solid #f2ece2;
  background: #fdfbf7;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.foldable-content[hidden] {
  display: none;
}

.account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(222, 217, 206, 0.65);
}

.account-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.account-holder {
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-holder .relation {
  font-size: 11px;
  color: var(--muted);
}

.account-holder .name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.account-details {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #646860;
}

.bank-tag {
  color: #7d8076;
  font-weight: 500;
}

.acc-num {
  font-family: var(--serif);
  letter-spacing: 0.02em;
  font-weight: 500;
  color: #444741;
}

.btn-copy {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #ded7cb;
  background: #f9f7f2;
  color: #555d54;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  flex-shrink: 0;
}

.btn-copy:hover {
  border-color: var(--accent);
  background: #ffffff;
  color: var(--accent);
}

.btn-copy.copied {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

/* 호텔 웨딩 스타일 안내사항 섹션 */
.info-section {
  background: var(--paper);
}

.info-container {
  width: min(100%, 460px);
  margin: 28px auto 0;
  padding: 30px 24px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(222, 217, 206, 0.75);
  box-shadow: 0 4px 20px rgba(53, 67, 59, 0.03);
  text-align: center;
}

.info-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.info-category {
  display: inline-block;
  font-size: 8.5px;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 5px;
}

.info-block h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.info-desc p {
  margin: 0;
  color: #5d635a;
  font-size: 13px;
  line-height: 1.75;
  word-break: keep-all;
}

.info-desc .info-sub {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.info-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0;
}

.info-sep span {
  width: 100%;
  height: 1px;
  background: var(--line);
}

/* 프리미엄 플로팅 토스트 */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  z-index: 1000;
  padding: 12px 24px;
  border-radius: 999px;
  background: rgba(35, 43, 38, 0.94);
  color: #f7f4ee;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.footer {
  padding: 37px 20px 32px;
  background: #35433b;
  color: #f7f4ee;
  text-align: center;
}

.footer > p:first-child {
  margin: 0 0 10px;
  font-size: 17px;
  letter-spacing: 0.12em;
}

.footer > p:nth-child(2) {
  margin: 0;
  color: #d0d0c6;
  font-size: 11px;
}

.footer .kakao-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 23px;
  min-width: 160px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: #e8e3d8;
  color: #35433b;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer .kakao-share-btn:hover {
  transform: translateY(-1px);
  background: #f0ece4;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.footer .kakao-share-btn:active {
  transform: translateY(0);
}

@media (min-width: 700px) {
  .hero {
    min-height: 800px;
  }

  .hero-photo {
    height: 68%;
  }

  .hero-copy {
    margin-top: 280px;
  }

  .section {
    padding-top: 108px;
    padding-bottom: 108px;
  }

  .gallery-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }

  .map-frame {
    height: 360px;
  }
}

@media (max-width: 390px) {
  .top-nav-inner {
    padding: 0 4px;
    height: 44px;
  }

  .nav-item {
    font-size: 11px;
    padding: 0 2px;
  }

  .section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .family-lines p {
    gap: 5px;
    font-size: 11px;
  }

  .wedding-calendar-card {
    padding: 20px 14px 18px;
  }

  .timer-unit {
    min-width: 36px;
  }

  .timer-num {
    font-size: 19px;
  }

  .map-app-nav {
    gap: 6px;
  }

  .map-app-btn {
    padding: 10px 4px;
    font-size: 11.5px;
  }

  .transport-card {
    padding: 22px 14px 18px;
  }

  .transit-mode {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 8px;
  }

  .shuttle-timeline {
    padding: 14px 8px;
  }

  .station-name {
    font-size: 11px;
  }

  .station-sub {
    font-size: 9px;
  }

  .foldable-trigger {
    padding: 15px 14px;
  }

  .trigger-name {
    font-size: 12.5px;
  }

  .account-item {
    padding: 11px 12px;
  }

  .account-details {
    font-size: 11px;
  }

  .btn-copy {
    padding: 4px 10px;
    font-size: 10.5px;
  }

  .info-container {
    padding: 24px 16px;
  }

  .info-desc p {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* 네이버지도 확대/축소 컨트롤이 지도 앱 바로가기 메뉴와 겹치지 않도록 여백 확보 */
.map-frame .ncp_map_control,
.map-frame .naver-map-control,
.map-frame .nmap-control,
.map-frame .nmap-control-zoom,
.map-frame .nmap_control_zoom,
.map-frame [class*="zoom-control"],
.map-frame [class*="zoom_control"] {
  transform: translateY(-4.5rem) !important;
}

/* 지도 내부의 inline z-index가 상단 고정 네비게이션을 덮지 않도록 레이어를 분리 */
.top-nav {
  position: fixed;
  z-index: 1000;
}

.map-frame {
  position: relative;
  z-index: 0;
  isolation: isolate;
}

/* 가족관계 표기: 부모 이름, 배우자 이름, 관계, 자녀 이름을 같은 열에 정렬 */
.family-lines p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.5rem 2.5rem;
  align-items: baseline;
  column-gap: 0.35rem;
}

.family-lines .family-parents {
  display: grid !important;
  grid-template-columns: 3.2em 1em minmax(0, 1fr);
  align-items: baseline;
  min-width: 0;
}

.family-lines .family-father {
  text-align: left;
}

.family-lines .family-dot {
  text-align: center;
}

.family-lines .family-mother {
  text-align: right;
}

.family-lines .relationship {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.15rem;
  width: 3.5rem;
  white-space: nowrap;
}

.family-lines strong {
  text-align: right;
}

.family-lines .relationship-role {
  text-align: right;
}

/* 테두리 없는 표로 가족관계의 각 기준선을 고정 */
.family-lines {
  width: auto;
  margin: 23px auto 0;
  padding: 30px 0 22px;
  border-collapse: collapse;
  table-layout: auto;
  font: inherit;
}

.section.invitation {
  padding-bottom: 56px;
}

.family-lines td {
  padding: 0;
  vertical-align: baseline;
  white-space: nowrap;
  font: inherit;
}

.family-lines tr + tr td {
  padding-top: 10px;
}

.family-lines .family-father {
  color: #686d64;
  font-size: 16px;
  font-weight: 700;
  width: 3.2em;
  text-align: left;
}

.family-lines .family-dot {
  color: #686d64;
  font-size: 16px;
  font-weight: 700;
  width: 1em;
  text-align: center;
}

.family-lines .family-mother {
  color: #686d64;
  font-size: 16px;
  font-weight: 700;
  width: 4em;
  text-align: center;
}

.family-lines .relationship-particle {
  color: #99958b;
  font-size: 10px;
  width: 1.1em;
  padding-left: 0.35rem;
  text-align: left;
}

.family-lines .relationship-role {
  color: #99958b;
  font-size: 10px;
  width: 2.5em;
  text-align: right;
}

.family-lines .family-child {
  width: 2.5em;
  padding-left: 0.35rem;
  text-align: right;
}

.family-lines .family-child strong {
  color: #686d64;
}

body.accessibility-mode {
  --paper: #fffefa;
  --paper-deep: #eeeae1;
  --ink: #1d2921;
  --muted: #4d554e;
  --accent: #76542e;
  --line: #aaa394;
  color: #202820;
}

.accessibility-mode .nav-item {
  font-size: 14px;
}

.accessibility-mode .eyebrow {
  font-size: 12px;
}

.accessibility-mode .hero h1 {
  font-size: clamp(29px, 8.5vw, 58px);
}

.accessibility-mode .hero-names {
  font-size: 23px;
}

.accessibility-mode .hero-date,
.accessibility-mode .hero-place {
  font-size: 16px;
}

.accessibility-mode .section h2 {
  font-size: 34px;
}

.accessibility-mode .invitation-copy {
  font-size: 18px;
}

.accessibility-mode .family-lines .family-father,
.accessibility-mode .family-lines .family-dot,
.accessibility-mode .family-lines .family-mother,
.accessibility-mode .family-lines .family-child strong {
  font-size: 18px;
}

.accessibility-mode .family-lines .relationship-particle,
.accessibility-mode .family-lines .relationship-role {
  color: #4d554e;
  font-size: 12px;
}

.accessibility-mode .date-summary span:first-child {
  font-size: 28px;
}

.accessibility-mode .date-summary span:nth-child(2),
.accessibility-mode .month-en {
  font-size: 18px;
}

.accessibility-mode .year-en,
.accessibility-mode .calendar-dday-badge,
.accessibility-mode .calendar-weekdays {
  font-size: 13px;
}

.accessibility-mode .calendar-day {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.accessibility-mode .timer-num {
  font-size: 26px;
}

.accessibility-mode .timer-label {
  font-size: 10px;
}

.accessibility-mode .dday-caption {
  font-size: 16px;
}

.accessibility-mode .section-note,
.accessibility-mode .location-date,
.accessibility-mode .address,
.accessibility-mode .station-sub {
  font-size: 14px;
}

.accessibility-mode .location-section h3 {
  font-size: 23px;
}

.accessibility-mode .map-app-btn,
.accessibility-mode .transport-card-footer p,
.accessibility-mode .transit-mode-content p,
.accessibility-mode .subway-directions li {
  font-size: 15px;
}

.accessibility-mode .transport-card-header h4 {
  font-size: 20px;
}

.accessibility-mode .transit-mode-heading h5,
.accessibility-mode .station-name,
.accessibility-mode .account-intro,
.accessibility-mode .info-desc p {
  font-size: 17px;
}

.accessibility-mode .bus-routes span,
.accessibility-mode .walk-distance,
.accessibility-mode .transit-mode-icon,
.accessibility-mode .info-desc .info-sub {
  font-size: 13px;
}

.accessibility-mode .foldable-trigger,
.accessibility-mode .trigger-name,
.accessibility-mode .account-holder .name,
.accessibility-mode .account-details,
.accessibility-mode .btn-copy {
  font-size: 15px;
}

.accessibility-mode .role-badge,
.accessibility-mode .account-holder .relation,
.accessibility-mode .info-category {
  font-size: 12px;
}

.accessibility-mode .info-block h3 {
  font-size: 20px;
}

.accessibility-mode .footer > p:first-child {
  font-size: 20px;
}

.accessibility-mode .footer > p:nth-child(2),
.accessibility-mode .footer .kakao-share-btn {
  font-size: 14px;
}

.accessibility-mode .calendar-weekdays,
.accessibility-mode .timer-label,
.accessibility-mode .station-sub,
.accessibility-mode .address,
.accessibility-mode .location-date,
.accessibility-mode .account-holder .relation,
.accessibility-mode .account-details,
.accessibility-mode .info-desc .info-sub {
  color: #454e46;
}

@media (max-width: 390px) {
  .accessibility-mode .nav-item {
    font-size: 12px;
  }
}
