* {
  box-sizing: border-box;
}

:root {
  font-family: 'Noto Sans TC', 'PingFang TC', system-ui;
  color: #121421;
  background-color: #f6f7fb;
  --accent: #2446ff;
  --accent-2: #00c8a7;
  --border: rgba(18, 20, 33, 0.08);
}

body {
  margin: 0;
  padding-top: 70px; /* 為固定 header 預留空間 */
  background: radial-gradient(circle at top, rgba(36, 70, 255, 0.12), transparent 40%), #f4f5f9;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(248, 250, 255, 0.96) 50%,
    rgba(240, 245, 255, 0.95) 100%
  );
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(36, 70, 255, 0.08);
  z-index: 1000;
  transition: all 0.3s ease;
}

/* 滾動時的樣式增強 */
.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(36, 70, 255, 0.12);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.99) 0%,
    rgba(248, 250, 255, 0.98) 50%,
    rgba(240, 245, 255, 0.97) 100%
  );
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1002;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hamburger:active {
  transform: scale(0.95);
}

.hamburger span {
  width: 1rem;
  height: 0.25rem;
  background: #333;
  border-radius: 0.125rem;
  transition: all 0.3s linear;
  position: relative;
  transform-origin: 1px;
}

.hamburger.open span:first-child {
  transform: rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(20px);
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg);
}

.main-nav {
  display: flex;
}

.logo {
  font-size: 1.3rem;
  letter-spacing: 0.3rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.main-nav a,
.main-nav button {
  background: none;
  border: none;
  font-size: 0.95rem;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.main-nav a.active {
  color: var(--accent);
  font-weight: 600;
}

.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 140%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 12px 30px rgba(18, 20, 33, 0.1);
  display: none;
  flex-direction: column;
  padding: 0.5rem 0;
  z-index: 1000;
  pointer-events: auto;
}

.has-dropdown:hover .dropdown,
.has-dropdown button:focus-visible + .dropdown,
.dropdown.show {
  display: flex;
}

.dropdown a {
  padding: 0.55rem 1.2rem;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.dropdown a:hover {
  background-color: rgba(36, 70, 255, 0.08);
  color: var(--accent);
}

main {
  padding: 2rem 2.5vw 5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 2.5rem;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 16px 50px rgba(18, 20, 33, 0.08);
}

.hero-content {
  order: 1;
}

.hero-card {
  order: 2;
}

.hero-image {
  order: 3;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  background: #fdfdff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 300px;
  border-radius: 0.5rem;
  object-fit: contain;
  object-position: center;
}

.building-render-placeholder {
  width: 100%;
  height: 200px;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(36, 70, 255, 0.15), rgba(0, 200, 167, 0.12));
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.building-render-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.placeholder-content {
  text-align: center;
  color: #5c5f74;
  z-index: 1;
}

.placeholder-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.placeholder-content p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.image-caption {
  text-align: center;
  color: #5c5f74;
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

.hero-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  background: #fdfdff;
}

.hero-card ul {
  padding-left: 1rem;
  line-height: 1.6;
}

.section {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(18, 20, 33, 0.08);
}

.section-header h2 {
  margin: 0;
}

.section-header p {
  margin-top: 0.25rem;
  color: #5c5f74;
}

.progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  background: #fdfdff;
}

/* 卡片內的時間軸高度限制（用於首頁） */
.card .progress-timeline {
  max-height: 400px;
}

.card ul {
  padding-left: 1.2rem;
  line-height: 1.5;
}

.small {
  color: #5c5f74;
  font-size: 0.85rem;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.doc-card {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.doc-card button.doc-link {
  margin-top: auto;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.monitoring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.monitor-frame {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.2rem;
  background: #fdfdfd;
}

.video-container {
  margin-top: 1rem;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  position: relative;
}

.video-js,
.monitor-video {
  width: 100% !important;
  height: 100% !important;
}

.monitor-video {
  display: block;
  object-fit: contain;
  background: #000;
}

.vjs-big-play-centered .vjs-big-play-button {
  border-radius: 50%;
}

.stream-status {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.6;
  pointer-events: none;
}

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

.stream-status.is-error {
  color: #fff;
}

.rtsp-placeholder {
  min-height: 100%;
  padding: 1.5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.7rem;
}

.rtsp-placeholder h4 {
  margin: 0;
  font-size: 1.1rem;
}

.rtsp-placeholder p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.rtsp-link {
  margin-top: 0.2rem;
  padding: 0.55rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  text-align: center;
  padding: 2rem;
  color: #5c5f74;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  body {
    padding-top: 60px; /* 移動裝置上的 header 高度較小 */
  }

  .site-header {
    padding: 1rem 1.5rem;
  }

  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1001;
    padding-top: 120px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }

  .main-nav a,
  .main-nav button {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
  }

  .dropdown {
    position: static;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(36, 70, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    padding: 0.5rem 0;
    margin-top: 1rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
  }

  .dropdown.show {
    display: flex;
  }

  .dropdown a {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    color: #666;
    border-bottom: 1px solid rgba(36, 70, 255, 0.1);
  }

  .dropdown a:last-child {
    border-bottom: none;
  }

  .dropdown a:hover {
    background-color: rgba(36, 70, 255, 0.1);
    color: var(--accent);
  }

  .has-dropdown button {
    position: relative;
  }

  .has-dropdown button::after {
    content: '▼';
    font-size: 0.8rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
  }

  .has-dropdown button[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }

  main {
    padding: 1rem 0.75rem;
  }

  .card {
    padding: 1.5rem 0.75rem;
  }

  .main-nav ul {
    flex-wrap: nowrap;
  }
}

/* 拆除工程動態顯示樣式 */
.progress-summary {
  margin: 1rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(36, 70, 255, 0.08), rgba(0, 200, 167, 0.08));
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

.progress-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat-item {
  text-align: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0.5rem;
  border: 1px solid rgba(36, 70, 255, 0.1);
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
}

.overall-progress {
  margin-top: 1rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(36, 70, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 4px;
  transition: width 0.8s ease-in-out;
}

.progress-text {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  margin: 0;
}

.progress-timeline {
  margin: 1.5rem 0;
  max-height: 600px;
  overflow-y: auto;
  padding-right: 0.5rem;
  scroll-behavior: smooth;
  position: relative;
}

/* 滾動陰影提示 - 當有更多內容時顯示漸變 */
.progress-timeline::after {
  content: '';
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 自訂滾動條樣式 */
.progress-timeline::-webkit-scrollbar {
  width: 8px;
}

.progress-timeline::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.progress-timeline::-webkit-scrollbar-thumb {
  background: rgba(36, 70, 255, 0.3);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.progress-timeline::-webkit-scrollbar-thumb:hover {
  background: rgba(36, 70, 255, 0.5);
}

/* Firefox 滾動條樣式 */
.progress-timeline {
  scrollbar-width: thin;
  scrollbar-color: rgba(36, 70, 255, 0.3) rgba(0, 0, 0, 0.05);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.3s ease;
}

.timeline-item:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.timeline-date {
  min-width: 100px;
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
  margin-right: 1rem;
  padding-top: 0.25rem;
}

.timeline-content {
  flex: 1;
}

.timeline-phase {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.timeline-description {
  margin: 0.5rem 0;
  line-height: 1.5;
}

.timeline-notes {
  font-size: 0.85rem;
  color: #777;
  font-style: italic;
  margin-top: 0.5rem;
  line-height: 1.6;
  word-break: break-word;
}

/* 備註中的連結樣式 */
.note-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(36, 70, 255, 0.3);
  transition: all 0.3s ease;
  font-style: normal;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.note-link:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(36, 70, 255, 0.05);
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
}

.timeline-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.status-completed {
  background: rgba(34, 197, 94, 0.1);
  color: #059669;
}

.status-in-progress {
  background: rgba(249, 115, 22, 0.1);
  color: #ea580c;
}

.status-pending {
  background: rgba(107, 114, 128, 0.1);
  color: #4b5563;
}

.timeline-progress {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
}

.loading {
  text-align: center;
  padding: 2rem;
  color: #666;
}

.loading p {
  margin: 0;
  font-size: 1rem;
}

.error-message {
  text-align: center;
  padding: 1.5rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 0.75rem;
  color: #dc2626;
  margin: 1rem 0;
}

.error-message p {
  margin: 0 0 1rem 0;
}

.retry-btn {
  padding: 0.5rem 1rem;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.3s ease;
}

.retry-btn:hover {
  background: #b91c1c;
}

.data-source-info {
  font-size: 0.75rem;
  color: #888;
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .progress-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .timeline-date {
    min-width: auto;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
  
  .timeline-progress {
    position: static;
    margin-top: 0.5rem;
  }
}

/* 拆除工程專用頁面樣式 */
.page-header {
  background: linear-gradient(135deg, rgba(36, 70, 255, 0.1), rgba(0, 200, 167, 0.1));
  padding: 3rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.page-header p {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
}

.demolition-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.overview-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.overview-card h2 {
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 1.5rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.overview-item {
  padding: 1rem;
  background: linear-gradient(135deg, rgba(36, 70, 255, 0.05), rgba(0, 200, 167, 0.05));
  border-radius: 0.75rem;
  border: 1px solid rgba(36, 70, 255, 0.1);
  text-align: center;
}

.overview-item h4 {
  margin-bottom: 0.5rem;
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
}

.overview-item p {
  margin: 0;
  font-weight: 600;
  color: var(--accent);
  font-size: 1.1rem;
}

.progress-section {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.progress-section h2 {
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 1.5rem;
}

.safety-section {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.safety-section h2 {
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 1.5rem;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.safety-item {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(16, 185, 129, 0.05));
  border-radius: 0.75rem;
  border: 1px solid rgba(34, 197, 94, 0.1);
}

.safety-item h4 {
  margin-bottom: 0.75rem;
  color: #059669;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.safety-item p {
  margin: 0;
  color: #666;
  line-height: 1.5;
  font-size: 0.95rem;
}

.documents-section {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.documents-section h2 {
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 1.5rem;
}

.doc-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.doc-links .doc-link {
  flex: 1;
  min-width: 200px;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.doc-links .doc-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(36, 70, 255, 0.3);
}

.doc-links .doc-link:active {
  transform: translateY(0);
}

.calendar-container {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

.calendar-container iframe {
  display: block;
  max-width: 100%;
}

.progress-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.progress-col {
  min-width: 0;
}

.events-header h3 {
  margin: 0 0 1rem 0;
  color: var(--accent);
  font-size: 1.1rem;
}

.events-list {
  max-height: 600px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.events-list::-webkit-scrollbar {
  width: 6px;
}

.events-list::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.03);
  border-radius: 3px;
}

.events-list::-webkit-scrollbar-thumb {
  background: rgba(36,70,255,0.2);
  border-radius: 3px;
}

.ce-event {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.ce-event:hover {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.ce-event-date {
  min-width: 60px;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  text-align: center;
  padding-top: 0.15rem;
}

.ce-event-body {
  flex: 1;
  min-width: 0;
}

.ce-event-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.ce-event-time {
  font-size: 0.75rem;
  color: #888;
  white-space: nowrap;
}

.ce-event-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.ce-event-desc {
  margin: 0.25rem 0 0 0;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.4;
}

.ce-event-images {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.ce-event-img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
}

.calendar-empty {
  text-align: center;
  color: #888;
  padding: 2rem;
  margin: 0;
}

@media (max-width: 768px) {
  .calendar-container iframe {
    height: 400px;
  }

  .progress-two-col {
    grid-template-columns: 1fr;
  }

  .events-list {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 1rem 0.7rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .demolition-container {
    padding: 0.7rem;
  }
  
  .overview-card,
  .progress-section,
  .safety-section,
  .documents-section {
    padding: 1rem 0.5rem;
  }
  
  .overview-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .safety-grid {
    grid-template-columns: 1fr;
  }
  
  .doc-links {
    flex-direction: column;
  }
  
  .doc-links .doc-link {
    min-width: auto;
  }
}
