:root {
  --background: #fff8f2;
  --surface: #fffdf9;
  --text: #211f1f;
  --muted: #685f5b;
  --subtle: #8c817a;
  --border: #eadbd1;
  --coral: #f2554b;
  --coral-dark: #d93f36;
  --coral-soft: #ffe4de;
  --green: #2f6f50;
  --blue: #276377;
  --shadow: 0 18px 42px rgba(70, 47, 35, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

a {
  color: var(--coral-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 248, 242, 0.9);
  border-bottom: 1px solid rgba(234, 219, 209, 0.8);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  font-size: 15px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--coral-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  gap: 42px;
  padding: 56px 0 42px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(54px, 8vw, 98px);
  font-weight: 760;
}

h2 {
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 720;
}

h3 {
  font-size: 23px;
  font-weight: 720;
}

p {
  margin: 0;
}

.lead {
  max-width: 680px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1.45;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--coral);
  border-radius: 8px;
  color: var(--coral-dark);
  font-weight: 720;
  text-decoration: none;
}

.button.primary {
  background: var(--coral);
  color: #fff;
}

.button:hover {
  border-color: var(--blue);
}

.hero-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 14px;
}

.photo-stack {
  display: grid;
  gap: 14px;
}

.hero-photo {
  width: 100%;
  min-height: 260px;
  max-height: 560px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-photo.tall {
  aspect-ratio: 0.75;
}

.hero-photo.short {
  aspect-ratio: 1.08;
}

.band {
  padding: 76px 0;
  border-top: 1px solid var(--border);
}

.band.surface {
  background: var(--surface);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section-intro {
  max-width: 760px;
}

.section-intro p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.feature {
  min-height: 210px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.feature p {
  margin-top: 12px;
  color: var(--muted);
}

.feature-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--coral-soft);
  color: var(--coral-dark);
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  align-items: center;
  gap: 42px;
}

.image-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
}

.image-row img {
  height: 430px;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.check-list,
.legal-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.legal-list li {
  padding-left: 28px;
  position: relative;
  color: var(--muted);
}

.check-list li::before,
.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
}

.page-hero {
  padding: 74px 0 56px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(44px, 6.3vw, 82px);
}

.page-hero .lead {
  max-width: 780px;
}

.legal {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0 80px;
}

.legal section + section {
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}

.legal h2 {
  font-size: 30px;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal p {
  margin-top: 14px;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.support-item {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.support-item p {
  margin-top: 10px;
  color: var(--muted);
}

.notice {
  margin-top: 26px;
  padding: 20px;
  background: #eef7f3;
  border: 1px solid #cfe6dc;
  border-radius: 8px;
  color: #27543f;
}

.reader-mode {
  background: var(--background);
}

.reader-mode .site-header,
.reader-app[hidden],
#marketing-page[hidden],
#site-footer[hidden] {
  display: none;
}

.reader-shell {
  width: min(760px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 14px 36px;
  overflow-x: clip;
}

.compact-trip-header,
.detail-topbar {
  display: flex;
  align-items: center;
}

.reader-menu-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.menu-button {
  width: 38px;
  height: 38px;
  font-size: 24px;
  box-shadow: none;
}

.reader-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: grid;
  min-width: 184px;
  padding: 7px;
  background: rgba(255, 253, 249, 0.98);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(70, 47, 35, 0.16);
}

.reader-menu-user {
  padding: 8px 10px 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.reader-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 10px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  text-align: left;
  cursor: pointer;
}

.reader-menu button:hover {
  background: var(--coral-soft);
}

.circle-button,
.back-button {
  border: 0;
  color: var(--text);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.ph-icon {
  display: block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
}

.event-cover-empty {
  display: grid;
  place-items: center;
  background: var(--coral-soft);
  color: var(--coral-dark);
  font-weight: 760;
}

.reader-alert {
  margin: 10px 0;
  padding: 12px 14px;
  background: #fff2cf;
  border: 1px solid #ecd68f;
  border-radius: 8px;
  color: #675019;
  font-size: 14px;
  font-weight: 650;
}

.itinerary-sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 -14px 12px;
  padding: 10px 14px 8px;
  background: rgba(255, 248, 242, 0.96);
  border-bottom: 1px solid rgba(234, 219, 209, 0.7);
  backdrop-filter: blur(16px);
}

.compact-trip-header {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.compact-trip-header .reader-menu-wrap,
.detail-topbar .reader-menu-wrap,
.section-heading .reader-menu-wrap {
  flex: 0 0 auto;
}

.compact-trip-header h2 {
  min-width: 0;
}

.compact-trip-header h2,
.section-heading h2,
.detail-page h2,
.gallery-page h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 760;
  line-height: 1.12;
}

.gallery-count {
  margin: -8px 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.day-rail {
  display: flex;
  gap: 8px;
  margin: 0 -14px;
  padding: 2px 14px 4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}

.day-rail::-webkit-scrollbar {
  display: none;
}

.day-rail.is-pointer-active {
  scroll-behavior: auto;
}

.day-rail.is-dragging {
  cursor: grabbing;
}

.day-rail.is-dragging .day-chip {
  pointer-events: none;
}

.day-chip {
  display: flex;
  flex: 0 0 78px;
  height: 92px;
  box-sizing: border-box;
  padding: 10px 11px;
  appearance: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.day-chip > * {
  pointer-events: none;
}

.day-chip.selected {
  background: var(--coral);
  border-color: var(--coral-dark);
  color: #fff;
}

.day-chip-main {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
}

.day-chip-date {
  display: flex !important;
  min-width: 0;
  flex-direction: column;
}

.day-chip-weekday,
.day-chip-count {
  display: block;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.day-chip strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
  line-height: 1;
}

.day-chip-count {
  margin-top: auto;
  white-space: nowrap;
}

.day-chip.selected .day-chip-weekday,
.day-chip.selected .day-chip-count {
  color: rgba(255, 255, 255, 0.84);
}

.day-chip-weather {
  display: flex !important;
  width: 20px;
  flex: 0 0 20px;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-left: 2px;
  white-space: nowrap;
}

.day-chip-weather .ph-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.day-chip-weather b {
  display: grid;
  gap: 0;
  margin-top: 1px;
  font-size: 10px;
  line-height: 1;
}

.day-chip-weather b span {
  color: inherit;
  font-size: inherit;
  line-height: 1.15;
}

.weather-sunny { color: #ed9700; }
.weather-mixed { color: #3f9ad1; }
.weather-rain { color: #168fe5; }
.weather-cloudy { color: #668eae; }
.weather-wintry { color: #2aa7c6; }
.weather-storm { color: #7562b8; }
.weather-fog { color: #728c9b; }
.weather-wind { color: #3b8f86; }

.day-chip.selected .weather-sunny,
.day-chip.selected .weather-mixed { color: #ffe08a; }
.day-chip.selected .weather-rain,
.day-chip.selected .weather-wintry { color: #a9ddff; }
.day-chip.selected .weather-cloudy,
.day-chip.selected .weather-fog { color: #d5e7f3; }
.day-chip.selected .weather-storm { color: #ddd3ff; }
.day-chip.selected .weather-wind { color: #c6f1eb; }

.day-chip.selected .day-chip-weather b {
  color: #fff;
}

.weather-attribution {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.weather-attribution img {
  width: auto;
  height: 18px;
  max-width: 96px;
  object-fit: contain;
}

.next-up {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  width: 100%;
  gap: 4px;
  margin-top: 8px;
  padding: 12px;
  background: rgba(255, 228, 222, 0.68);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
}

.next-up-main {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  min-width: 0;
  gap: 12px;
  padding: 0;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.next-up-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--subtle);
  cursor: pointer;
}

.next-up-close:active {
  background: rgba(112, 101, 97, 0.1);
}

.next-up small,
.next-up em {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-up small {
  color: var(--coral-dark);
  text-transform: uppercase;
}

.next-up strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chevron {
  color: var(--subtle);
  font-size: 18px;
}

.agenda-days {
  display: grid;
  gap: 12px;
  padding-bottom: max(280px, 45vh);
}

.agenda-day {
  scroll-margin-top: 176px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.agenda-day header {
  padding: 12px 14px 6px;
}

.agenda-day h3 {
  font-size: 15px;
  font-weight: 800;
}

.empty-day {
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.timeline-row {
  display: grid;
  grid-template-columns: 62px 28px minmax(0, 1fr);
  gap: 10px;
  padding: 0 12px 12px 0;
}

.timeline-time {
  padding-top: 4px;
  text-align: right;
}

.timeline-time strong,
.timeline-time span,
.timeline-time small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
}

.timeline-time span,
.timeline-time small {
  color: var(--subtle);
  font-size: 11px;
}

.timeline-rail {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 92px;
}

.timeline-rail::before {
  position: absolute;
  top: -12px;
  bottom: -12px;
  width: 2px;
  background: rgba(242, 85, 75, 0.34);
  content: "";
}

.timeline-rail.first::before {
  top: 18px;
}

.timeline-rail.last::before {
  bottom: calc(100% - 18px);
}

.event-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--surface);
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--coral);
  font-size: 15px;
  font-weight: 900;
}

.event-icon.blue { color: #276377; }
.event-icon.orange { color: #b95c21; }
.event-icon.purple { color: #7462a8; }
.event-icon.green { color: var(--green); }
.event-icon.neutral { color: var(--muted); }

.timeline-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 16px;
  align-items: start;
  gap: 8px;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.timeline-summary > span:first-child {
  min-width: 0;
}

.timeline-chevron {
  display: grid;
  place-items: center;
  width: 16px;
  min-height: 28px;
  color: var(--subtle);
  font-size: 15px;
}

.timeline-summary strong,
.timeline-summary em,
.timeline-summary small {
  display: block;
}

.timeline-summary strong {
  font-size: 15px;
  line-height: 1.25;
}

.timeline-summary em,
.timeline-summary small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.timeline-summary .timeline-location {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 4px;
}

.timeline-location .ph-icon {
  color: var(--subtle);
  font-size: 12px;
}

.photo-stack-preview {
  position: relative;
  display: block;
  width: 54px;
  height: 44px;
}

.photo-stack-preview::before,
.photo-stack-preview::after {
  position: absolute;
  right: 8px;
  bottom: 0;
  width: 42px;
  height: 32px;
  background: var(--coral-soft);
  border-radius: 7px;
  content: "";
}

.photo-stack-preview::after {
  right: 4px;
  bottom: 4px;
  background: var(--border);
}

.photo-stack-preview.single::before,
.photo-stack-preview.single::after {
  display: none;
}

.photo-stack-preview img {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
  width: 46px;
  height: 36px;
  object-fit: cover;
  border-radius: 7px;
}

.photo-stack-preview b {
  position: absolute;
  right: 3px;
  bottom: 5px;
  z-index: 2;
  padding: 1px 5px;
  background: rgba(33, 31, 31, 0.68);
  border-radius: 999px;
  color: #fff;
  font-size: 10px;
}

.detail-page,
.gallery-page {
  padding-bottom: 36px;
}

.detail-topbar {
  justify-content: space-between;
  min-height: 58px;
  padding-bottom: 16px;
}

.circle-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(70, 47, 35, 0.08);
  font-size: 22px;
  font-weight: 650;
}

.event-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 98px;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  background: rgba(255, 228, 222, 0.58);
  border: 1px solid rgba(242, 85, 75, 0.26);
  border-radius: 18px;
}

.event-hero-copy {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.event-hero-copy .event-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  background: var(--surface);
  font-size: 18px;
}

.event-hero-card h2 {
  font-size: 19px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.event-hero-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.event-hero-card img,
.event-cover-empty {
  width: 98px;
  height: 88px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 14px;
}

.detail-grid {
  display: grid;
  gap: 14px;
}

.detail-card {
  padding: 16px;
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.detail-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 16px;
}

.detail-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--coral-soft);
  border-radius: 999px;
  color: var(--coral-dark);
  font-size: 18px;
}

.detail-card p,
.event-notes {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.event-notes {
  white-space: pre-wrap;
}

.event-notes a {
  color: #276377;
  font-weight: 650;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.date-line {
  margin-bottom: 12px;
  color: var(--text) !important;
  font-weight: 760;
}

.time-stop {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.time-stop > span {
  width: 52px;
  height: 52px;
  background: rgba(39, 99, 119, 0.11);
  border: 1px solid rgba(39, 99, 119, 0.18);
  border-radius: 999px;
}

.time-stop small,
.time-stop em {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.time-stop strong {
  display: block;
  margin: 2px 0;
  font-size: 19px;
  overflow-wrap: anywhere;
}

.inline-action {
  display: inline-flex;
  gap: 6px;
  margin-top: 10px;
  min-height: 36px;
  align-items: center;
  color: #276377;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}

.map-preview {
  width: 100%;
  height: 240px;
  margin-top: 14px;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.map-preview iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 12px;
}

.photo-tile {
  display: grid;
  gap: 7px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.media-tile-wrap {
  min-width: 0;
}

.media-preview {
  position: relative;
  display: block;
}

.media-preview i,
.media-preview b {
  position: absolute;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
}

.media-preview i {
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-style: normal;
  transform: translate(-50%, -50%);
}

.media-preview b {
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.media-download {
  display: inline-block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 700;
}

.media-processing {
  min-height: 116px;
  place-items: center;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: 8px;
}

.photo-tile img {
  width: 100%;
  height: 116px;
  object-fit: cover;
  border-radius: 8px;
}

.photo-tile span {
  overflow: hidden;
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 16px;
}

.reader-empty,
.reader-loading {
  display: grid;
  place-items: center;
  min-height: 230px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.reader-empty.compact {
  min-height: 116px;
  padding: 18px;
  background: rgba(255, 248, 242, 0.66);
  border-radius: 16px;
}

.reader-loading {
  margin-top: 18px;
  gap: 10px;
  color: var(--text);
  font-weight: 760;
}

.reader-loading img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
}

.modal-backdrop,
.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(33, 31, 31, 0.38);
}

.auth-dialog {
  position: relative;
  display: grid;
  width: min(430px, 100%);
  gap: 12px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-dialog .close,
.photo-viewer .close {
  position: absolute;
  right: 14px;
  top: 14px;
}

.auth-dialog h2 {
  font-size: 28px;
}

.auth-dialog p {
  color: var(--muted);
  font-size: 14px;
}

.auth-mode-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.auth-mode-control button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
}

.auth-mode-control button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 6px rgba(70, 47, 35, 0.12);
}

.auth-dialog label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
}

.auth-dialog input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkbox-row {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
}

.checkbox-row input {
  min-height: 20px;
}

.photo-viewer {
  background: #000;
}

.photo-viewer img,
.photo-viewer video {
  max-width: min(980px, 100%);
  max-height: 82vh;
  object-fit: contain;
}

.photo-viewer p {
  position: absolute;
  bottom: 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 760;
}

.site-footer {
  background: #211f1f;
  color: #fff;
  padding: 44px 0;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  gap: 24px;
}

.footer-inner p {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 14px 0;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 42px;
  }

  .hero-media,
  .split,
  .feature-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    min-height: 220px;
  }

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

  .image-row img {
    height: 320px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .nav-links {
    font-size: 14px;
  }

  .hero-actions,
  .section-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .image-row img {
    height: 260px;
  }

  .timeline-row {
    grid-template-columns: 54px 24px minmax(0, 1fr);
    gap: 8px;
  }

  .timeline-time {
    font-size: 11px;
  }

  .event-hero-card {
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
  }

  .event-hero-copy {
    align-items: flex-start;
    gap: 10px;
  }

  .event-hero-copy .event-icon {
    width: 44px;
    height: 44px;
  }

  .event-hero-card img,
  .event-cover-empty {
    width: 82px;
    height: 76px;
    border-radius: 8px;
  }

  .detail-topbar {
    gap: 10px;
  }

  .detail-card {
    padding: 14px;
    border-radius: 8px;
  }

  .detail-card h3 {
    gap: 10px;
  }

  .map-preview {
    height: 200px;
    border-radius: 8px;
  }

  .time-stop {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
  }

  .time-stop > span {
    width: 42px;
    height: 42px;
  }

  .time-stop strong {
    font-size: 17px;
  }

  .auth-grid {
    grid-template-columns: 1fr;
  }
}
