﻿body.current-blast-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(242, 247, 235, 0.9), transparent 26%),
    radial-gradient(circle at top right, rgba(234, 240, 247, 0.92), transparent 28%),
    linear-gradient(160deg, #edf4f0 0%, #f8fbfd 58%, #e8eff6 100%);
  color: #1d2a36;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

.current-blast-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px 12px 24px;
}

.cb-loading-mask {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(95, 107, 119, 0.34);
  backdrop-filter: blur(2px);
  z-index: 1200;
}

.cb-loading-mask.show {
  display: flex;
}

.cb-loading-panel,
.cb-card,
.cb-summary-card {
  border: 1px solid rgba(210, 221, 232, 0.92);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 42px rgba(26, 47, 69, 0.08);
  backdrop-filter: blur(10px);
}

.cb-loading-panel {
  width: min(360px, calc(100vw - 36px));
  padding: 20px;
  border-radius: 16px;
}

.cb-loading-title {
  color: #183149;
  font-size: 18px;
  font-weight: 700;
}

.cb-loading-text {
  margin-top: 8px;
  color: #536879;
  line-height: 1.6;
}

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

.cb-summary-card,
.cb-card {
  border-radius: 18px;
}

.cb-summary-card {
  padding: 12px 14px;
}

.cb-summary-label {
  display: block;
  margin-bottom: 8px;
  color: #607283;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cb-summary-card strong {
  color: #17324d;
  font-size: 24px;
  font-weight: 700;
}

.cb-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.15fr) 330px;
    gap: 10px;
    align-items: stretch;
}

.cb-map-card {
    padding: 8px;
    display: flex;
    flex-direction: column;
}

.cb-filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cb-filter span,
.cb-note-title,
.cb-detail-list dt {
  color: #607283;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cb-filter select {
  min-width: 190px;
  height: 42px;
  padding: 8px 12px;
  border: 1px solid #cad7e2;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  color: #183149;
}

.cb-link-button {
    border: 0;
    padding: 0 0 6px;
    background: transparent;
    color: #0f5e8f;
    font-weight: 700;
}

.cb-selection-meta,
.cb-note-text,
.cb-note-copy {
    color: #546879;
    line-height: 1.6;
}

#currentBlastMap {
    flex: 1 1 auto;
    height: clamp(340px, calc(100dvh - 220px), 600px);
    min-height: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(210, 221, 232, 0.95);
}

.cb-side-card,
.cb-mobile-card,
.cb-notes-card {
  padding: 14px;
}

.cb-side-card {
    height: 100%;
    overflow: auto;
}

.cb-side-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(224, 232, 239, 0.95);
}

.cb-kicker {
    display: inline-flex;
    align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(22, 101, 52, 0.1);
  color: #166534;
  font-size: 12px;
  font-weight: 700;
}

.cb-side-head h2 {
    margin: 10px 0 6px;
    color: #183149;
    font-size: 24px;
}

.cb-mobile-toolbar {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
}

.cb-detail-list {
  margin: 14px 0 0;
}

.cb-detail-list div {
  padding: 10px 0;
  border-top: 1px solid rgba(224, 232, 239, 0.95);
}

.cb-detail-list div:first-child {
  border-top: 0;
}

.cb-detail-list dd {
  margin: 5px 0 0;
  color: #17324d;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.cb-note-block,
.cb-legend {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(224, 232, 239, 0.95);
}

.cb-legend-list,
.cb-mobile-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.cb-legend-list li,
.cb-mobile-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #28445f;
  font-size: 13px;
}

.cb-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.cb-dot.muted {
  background: #94a3b8;
}

.cb-dot.clear {
  background: #16a34a;
}

.cb-dot.low {
  background: #84cc16;
}

.cb-dot.medium {
  background: #f59e0b;
}

.cb-dot.elevated {
  background: #f97316;
}

.cb-dot.high {
  background: #dc2626;
}

.cb-mobile-card {
  display: none;
  margin-top: 12px;
}

.cb-mobile-card summary,
.cb-notes-card summary {
  cursor: pointer;
  color: #17324d;
  font-weight: 700;
}

.cb-mobile-body {
  margin-top: 12px;
}

.cb-mobile-body strong {
  color: #17324d;
  font-size: 16px;
}

.cb-mobile-list {
  margin-top: 12px;
}

.cb-mobile-list li {
  justify-content: space-between;
}

.cb-mobile-list span {
  color: #607283;
  font-size: 13px;
}

.cb-mobile-list strong {
  color: #17324d;
  font-size: 14px;
}

.cb-notes-card {
  margin-top: 12px;
}

.leaflet-popup-content {
  min-width: 220px;
  line-height: 1.6;
}

.leaflet-interactive {
  transition: stroke-width 0.18s ease, r 0.18s ease, fill-opacity 0.18s ease;
}

.leaflet-control-zoom,
.leaflet-control-attribution {
  border-radius: 12px;
}

@media (max-width: 1080px) {
  .cb-summary-row,
  .cb-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
    .current-blast-shell {
      padding: 8px 8px 20px;
    }

  .cb-summary-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cb-summary-card strong {
    font-size: 20px;
  }

    .cb-filter select {
      min-width: 0;
      width: 100%;
    }

    #currentBlastMap {
      height: clamp(300px, calc(100dvh - 210px), 500px);
      min-height: 0;
    }

  .cb-side-card {
    display: none;
  }

  .cb-mobile-card {
    display: block;
  }
}
