/* en/calculators/tsunami-speed-arrival/styles.css */

.es008-grid {
  display: grid;
  gap: 16px;
}

.es008-span-2 {
  grid-column: 1 / -1;
}

.es008-muted {
  color: #475569;
}

.es008-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.es008-field {
  display: grid;
  gap: 6px;
}

.es008-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  margin-bottom: 12px;
}

.es008-tab {
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: #334155;
  cursor: pointer;
  font-weight: 700;
}

.es008-tab.is-active {
  background: #0b57d0;
  color: #ffffff;
}

.es008-time-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.es008-time-group {
  margin-top: 10px;
}

.es008-error {
  color: #b91c1c;
  min-height: 1.2em;
}

.es008-form-error {
  margin-top: 2px;
}

.es008-warning {
  margin-bottom: 10px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
  color: #92400e;
  border-radius: 12px;
  padding: 10px 12px;
  white-space: pre-line;
}

.es008-result-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.es008-kpi {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(248, 250, 252, 0.75);
}

.es008-kpi-label {
  font-size: 12px;
  color: #475569;
  font-weight: 700;
}

.es008-kpi-value {
  margin-top: 4px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 900;
}

.es008-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.es008-table th,
.es008-table td {
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.es008-table th {
  width: 44%;
  text-align: left;
  color: #475569;
  background: #f8fafc;
  font-weight: 700;
}

.es008-table tr:nth-child(even) td {
  background: rgba(248, 250, 252, 0.7);
}

.es008-table tr:last-child th,
.es008-table tr:last-child td {
  border-bottom: none;
}

.es008-graphs {
  display: grid;
  gap: 12px;
}

.es008-chart-card {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 10px;
  background: rgba(248, 250, 252, 0.55);
}

.es008-chart {
  min-height: 160px;
}

.es008-chart-svg {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.es008-chart-bg {
  fill: rgba(255, 255, 255, 0.9);
  stroke: rgba(148, 163, 184, 0.25);
}

.es008-chart-grid {
  stroke: rgba(148, 163, 184, 0.25);
  stroke-width: 1;
}

.es008-axis {
  stroke: rgba(51, 65, 85, 0.75);
  stroke-width: 1.8;
}

.es008-axis-label {
  fill: rgba(51, 65, 85, 0.85);
  font-size: 11px;
}

.es008-axis-title {
  fill: rgba(15, 23, 42, 0.92);
  font-size: 12px;
  font-weight: 700;
}

.es008-line {
  stroke: rgba(30, 64, 175, 0.95);
  stroke-width: 2.5;
  fill: none;
}

.es008-ref-line {
  stroke: rgba(15, 23, 42, 0.35);
  stroke-width: 1.2;
  stroke-dasharray: 5 4;
}

.es008-ref-label {
  fill: rgba(15, 23, 42, 0.7);
  font-size: 10px;
  font-weight: 700;
}

.es008-marker {
  fill: rgba(220, 38, 38, 0.95);
  stroke: rgba(255, 255, 255, 0.98);
  stroke-width: 1.4;
}

.es008-status {
  min-height: 1.2em;
}

@media (min-width: 980px) {
  .es008-grid {
    grid-template-columns: minmax(340px, 460px) 1fr;
    align-items: start;
  }
}

@media (max-width: 640px) {
  .es008-time-row,
  .es008-result-main {
    grid-template-columns: 1fr;
  }
}
