body {
  font-family: "Noto Sans TC", "Inter", sans-serif;
  color: #0f172a; /* slate-900 */
  background-color: #fafafa;
  /* Aurora UI Base Background */
  background-image:
    radial-gradient(
      at 0% 0%,
      hsla(28, 100%, 74%, 0.15) 0px,
      transparent 50%
    ),
    radial-gradient(
      at 50% 0%,
      hsla(340, 100%, 76%, 0.1) 0px,
      transparent 50%
    ),
    radial-gradient(
      at 100% 0%,
      hsla(22, 100%, 77%, 0.15) 0px,
      transparent 50%
    );
  background-attachment: fixed;
}
h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
  font-family: "Noto Sans TC", "Inter", sans-serif;
}
/* Motion & Animations */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition:
      opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .stagger-1 {
    transition-delay: 100ms;
  }
  .stagger-2 {
    transition-delay: 200ms;
  }
  .stagger-3 {
    transition-delay: 300ms;
  }
}
.interactive-card {
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}
.interactive-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,0,0,0.05);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}
/* Touch active feedback */
.interactive-card:active {
  transform: scale(0.98);
  border-color: #d4af37;
}
@media (hover: none) {
  .interactive-card:hover {
    transform: none;
    border-color: inherit;
  }
}
button:active,
a:active {
  opacity: 0.85;
}
.timeline-line::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 40px;
  bottom: -20px;
  width: 2px;
  background-color: #e5e7eb;
  z-index: 0;
}
.timeline-item:last-child .timeline-line::before {
  display: none;
}
/* Mobile Day Tabs */
.mobile-day-tab {
  padding: 0.4rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: "Noto Sans TC", "Inter", sans-serif;
  background-color: #f9fafb;
  color: #404040;
  border: 1.5px solid #e5e7eb;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
  cursor: pointer;
}
.mobile-day-tab:hover {
  background-color: #f3f4f6;
}
.mobile-day-tab.active {
  background-color: #171717;
  color: #fafafa;
  /* Aurora UI Base Background */
  background-image:
    radial-gradient(
      at 0% 0%,
      hsla(28, 100%, 74%, 0.15) 0px,
      transparent 50%
    ),
    radial-gradient(
      at 50% 0%,
      hsla(340, 100%, 76%, 0.1) 0px,
      transparent 50%
    ),
    radial-gradient(
      at 100% 0%,
      hsla(22, 100%, 77%, 0.15) 0px,
      transparent 50%
    );
  background-attachment: fixed;
  border-color: #171717;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
/* Scroll-to-top FAB */
#scroll-top-btn {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
#scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
/* Day Card Accordion */
.day-chevron {
  transition: transform 0.3s ease;
}
/* Tabular numbers for budget alignment */
.font-heading {
  font-variant-numeric: tabular-nums;
}
/* Desktop: always show day card content regardless of inline style */
@media (min-width: 768px) {
  .day-card-content {
    display: block !important;
  }
}
/* Sticky Nav active link */
.nav-link.active {
  background-color: #171717;
  color: #fafafa;
  /* Aurora UI Base Background */
  background-image:
    radial-gradient(
      at 0% 0%,
      hsla(28, 100%, 74%, 0.15) 0px,
      transparent 50%
    ),
    radial-gradient(
      at 50% 0%,
      hsla(340, 100%, 76%, 0.1) 0px,
      transparent 50%
    ),
    radial-gradient(
      at 100% 0%,
      hsla(22, 100%, 77%, 0.15) 0px,
      transparent 50%
    );
  background-attachment: fixed;
}
/* ─── Mobile Bottom Tab Bar ─── */
#bottom-tab-bar {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (max-width: 767px) {
  body {
    padding-bottom: calc(
      4.5rem + env(safe-area-inset-bottom, 0px)
    ) !important;
  }
  #scroll-top-btn {
    bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }
}
/* ─── Image Lightbox ─── */
#image-lightbox {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#image-lightbox.visible {
  opacity: 1;
  pointer-events: auto;
}
#image-lightbox img {
  transition: transform 0.3s ease;
}
/* ─── Timeline Event Nodes ─── */
.event-timeline-node {
  position: relative;
}
.event-timeline-node::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 18px;
  bottom: -12px;
  width: 2px;
  background: linear-gradient(to bottom, #d4af37 0%, #e5e7eb 100%);
  z-index: 0;
}
.event-timeline-node:last-child::before {
  display: none;
}
/* ─── Mobile Tab Page System ─── */
@media (min-width: 768px) {
  [data-tab-group] {
    display: block !important;
  }
}
@media (max-width: 767px) {
  #sticky-nav {
    display: none !important;
  }
}
/* ─── Custom Scrollbar ─── */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background-color: #d1d5db;
  border-radius: 4px;
}
