/* =====================================================================
   OKINAWA TYPHOON RISK DASHBOARD — styles.css
   Page-specific styling only. Design tokens, .page-bg, .site-nav,
   .route-line, header.hero and .map-panel are all reused as-is from
   ../usa/styles.css, which must be linked before this file.
   ===================================================================== */

/* the usa hero has a decorative burger illustration behind the title —
   not relevant here, so drop it while keeping the rest of the hero style */
header.hero::before {
  background-image: none;
}

/* the shared hero h1 sizing (clamp 38–84px) is tuned for a short title;
   this page's title is longer, so scale it down while keeping the style */
.hero h1 {
  font-size: clamp(26px, 4.6vw, 48px);
  line-height: 1.2;
}

/* ---------- controls (date picker) ---------- */
.controls {
  width: min(1100px, 92%);
  margin: 34px auto 0;
  display: flex;
  justify-content: center;
}

.date-field {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 14px 20px;
  border: 2px solid var(--ink);
  background: var(--paper-lt);
  border-radius: 3px;
}

.date-field label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

input[type="date"] {
  padding: 10px 14px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  border-radius: 3px;
  outline-offset: 3px;
  color-scheme: dark;
}

/* ---------- main layout: map panel + result card ---------- */
main.layout {
  width: min(1200px, 94vw);
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 26px;
  align-items: start;
}

@media (max-width: 880px) {
  main.layout { grid-template-columns: 1fr; }
}

#map {
  height: 460px;
  width: 100%;
  border-radius: 4px;
  display: block;
}

/* ---------- result card (mirrors usa's .postcard treatment) ---------- */
.result-card {
  background: var(--paper-lt);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 26px;
  box-shadow: 6px 6px 0 var(--line);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--ink);
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Leaflet chrome, restyled to match the dark palette ---------- */
.leaflet-control-zoom a {
  background: var(--paper-lt) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}
.leaflet-control-zoom a:hover {
  background: var(--mustard) !important;
  color: var(--paper) !important;
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--paper-lt) !important;
  color: var(--ink) !important;
}
.leaflet-popup-content {
  font-family: var(--font-body);
  font-size: 13px;
}
.leaflet-control-attribution {
  background: rgba(20, 9, 26, 0.75) !important;
  color: var(--ink-soft) !important;
}
.leaflet-control-attribution a { color: var(--teal); }

/* ---------- footer ---------- */
footer {
  padding: 30px 5vw 60px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
}
footer p { max-width: 560px; margin: 14px auto 0; line-height: 1.8; }

@media (max-width: 640px) {
  #map { height: 340px; }
  .result-card { min-height: 120px; padding: 20px; }
  .date-field { width: 100%; justify-content: space-between; padding: 12px 16px; }
}
