/* ja/calculators/pressure-altitude/styles.css */

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

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

.es003-muted {
  color: #475569;
}

.es003-row {
  display: grid;
  gap: 12px;
}

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

.es003-inline-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.es003-inline-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

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

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

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

.es003-summary {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.es003-kpi {
  display: grid;
  gap: 6px;
}

.es003-kpi .es003-kpi-main {
  font-size: 20px;
  font-weight: 700;
}

.es003-kpi .es003-kpi-sub {
  color: #475569;
}

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

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

.es003-table th {
  width: 42%;
  text-align: left;
  color: #475569;
  font-weight: 600;
  background: #f8fafc;
}

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

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

.es003-chart-host {
  position: relative;
  width: 100%;
  max-width: 820px;
}

.es003-chart-host svg {
  color: rgba(100, 116, 139, 0.85);
}

.es003-chart-host svg text {
  fill: currentColor;
}

.es003-chart-host svg {
  width: 100%;
  height: auto;
  display: block;
}

.es003-chart-host svg {
  cursor: crosshair;
}

.es003-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 6px 10px;
  color: #334155;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
}

.es003-tooltip-line {
  display: block;
}

.es003-chart-note {
  margin-top: 8px;
}

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

@media (prefers-color-scheme: dark) {
  .es003-muted {
    color: rgba(226, 232, 240, 0.8);
  }

  .es003-warning {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.1);
    color: #fde68a;
  }

  .es003-error {
    color: #fecaca;
  }

  .es003-summary {
    border-color: rgba(148, 163, 184, 0.25);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.85));
  }

  .es003-table {
    border-color: rgba(148, 163, 184, 0.25);
  }

  .es003-table th,
  .es003-table td {
    border-bottom-color: rgba(148, 163, 184, 0.25);
  }

  .es003-table th {
    color: rgba(226, 232, 240, 0.85);
    background: rgba(15, 23, 42, 0.6);
  }

  .es003-table tr:nth-child(even) td {
    background: rgba(15, 23, 42, 0.25);
  }

  .es003-chart-host svg {
    color: rgba(226, 232, 240, 0.85);
  }

  .es003-tooltip {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(148, 163, 184, 0.25);
    color: rgba(226, 232, 240, 0.95);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  }
}
