@charset "UTF-8";

/* Tokyo Walker - Hourly Rain Forecast Card Styles */

#today > .section-line:has(#weather-rain-card),
.section-line:has(#weather-rain-card) {
  flex-wrap: wrap;
}

.weather-rain-card {
  flex-basis: 100%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 24px;
  margin: 14px 0 22px;
}

:root[data-traveler="B"] .weather-rain-card {
  border-radius: 17px;
}

.weather-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.weather-card-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  margin: 2px 0 0;
  color: var(--ink);
}

.weather-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.weather-meta-place {
  font-weight: 600;
  color: var(--ink);
}

.weather-meta-tz {
  font-size: 10px;
  color: var(--muted);
}

.weather-status-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
}

.weather-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--line);
}

.weather-notice {
  background: #f0e7d3;
  border-left: 3px solid var(--red);
  padding: 12px 16px;
  font-size: 13px;
  border-radius: 2px;
  margin: 16px 0;
  color: var(--ink);
}

.weather-headline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 18px;
  background: var(--cream);
  border-radius: 6px;
  margin-bottom: 12px;
}

.weather-headline-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.weather-headline-val {
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
}

.weather-summary-text {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.6;
}

.weather-chart-wrap {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  padding: 14px 10px 8px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.weather-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  color: var(--ink);
  overflow: visible;
}

.weather-chart-line {
  stroke: var(--ink);
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.weather-chart-area {
  fill: url(#weather-rain-gradient);
}

.weather-chart-dot {
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 2;
  transition: r 0.15s ease;
}

.weather-chart-dot:hover {
  r: 4;
}

.weather-chart-dot.is-zero {
  fill: var(--cream);
  stroke: var(--muted);
  stroke-width: 1.5;
}

.weather-chart-grid {
  stroke: var(--line);
  stroke-dasharray: 3 3;
  stroke-width: 1;
}

.weather-chart-vgrid {
  stroke: var(--line);
  stroke-dasharray: 2 3;
  stroke-width: 0.8;
  opacity: 0.5;
}

.weather-chart-baseline {
  stroke: var(--line);
  stroke-width: 1.2;
}

.weather-chart-axis-text {
  fill: var(--muted);
  font-size: 14px;
  font-family: system-ui, sans-serif;
  user-select: none;
}

.weather-axis-y {
  font-family: Georgia, serif;
  font-size: 14px;
}

.weather-axis-x {
  font-size: 14px;
}

.weather-grad-stop-top {
  stop-color: var(--ink);
  stop-opacity: 0.35;
}

.weather-grad-stop-bottom {
  stop-color: var(--ink);
  stop-opacity: 0.02;
}

.weather-table-details {
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  background: var(--white);
}

.weather-table-summary {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.weather-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.weather-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 640px;
  font-size: 11px;
  text-align: center;
}

.weather-table th,
.weather-table td {
  padding: 7px 5px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

.weather-table th[scope="row"] {
  background: var(--cream);
  font-weight: 600;
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 44px;
}

.weather-card-footer,
.weather-dialog-footer {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 14px;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.weather-card-footer a,
.weather-dialog-footer a {
  color: inherit;
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .weather-rain-card {
    padding: 18px 16px;
    margin: 10px 0 18px;
  }
  .weather-headline-val {
    font-size: 22px;
  }
  .weather-chart-wrap {
    padding: 10px 6px 6px;
  }
}

@media (max-width: 360px) {
  .weather-rain-card {
    padding: 14px 12px;
  }
  .weather-card-title {
    font-size: 18px;
  }
}

/* Compact daily forecast: keep the itinerary close to the weather. */
.weather-rain-card{padding:8px 14px;margin:4px 0 10px}
.weather-card-header{margin-bottom:4px;gap:4px}
.weather-meta{font-size:10px;gap:4px;margin:0}
.weather-headline{padding:0;background:transparent;margin:4px 0 6px;gap:8px}
.weather-headline-label{font-size:12px}
.weather-headline-val{font-size:20px}
.weather-chart-wrap{padding:4px 0;margin:0;border:0;background:transparent}
.weather-chart-svg{width:min(100%,340px);max-width:340px;margin:0 auto}
.weather-table-details{border:0;padding:4px 0;margin:4px 0;background:transparent}
.weather-table-summary{font-size:10px}
.weather-card-footer{padding-top:5px;margin-top:3px;font-size:9px;gap:4px}
.weather-status-line{font-size:9px;margin:0;gap:4px}
@media(max-width:600px){.weather-rain-card{padding:10px 12px;margin:4px 0 10px}.weather-chart-wrap{padding:4px 0}.weather-headline-val{font-size:20px}}
