/* ja/calculators/solar-position/styles.css */

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

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

.es002-muted {
  color: #475569;
}

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

.es002-subhead-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.es002-subhead-title {
  margin: 0;
}

.es002-subhead-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.es002-mini-button {
  font-size: 0.85rem;
  padding: 6px 10px;
}

.es002-map-link.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.es002-coord-hint {
  margin: 8px 0 0;
}

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

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

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

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

.es002-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;
}

.es002-kpis {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

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

.es002-kpi .es002-kpi-title {
  color: #475569;
  font-weight: 600;
}

.es002-kpi .es002-kpi-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

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

.es002-chart-host {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  position: relative;
}

.es002-chart {
  width: 100%;
  height: auto;
  display: block;
}

.es002-curve {
  fill: none;
  stroke: #0b57d0;
  stroke-width: 2.5;
}

.es002-horizon {
  stroke: rgba(2, 6, 23, 0.35);
  stroke-dasharray: 6 6;
  stroke-width: 1.2;
}

.es002-now {
  stroke: rgba(11, 87, 208, 0.55);
  stroke-width: 1.2;
}

.es002-sunrise-line,
.es002-sunset-line {
  stroke: rgba(148, 163, 184, 0.9);
  stroke-width: 1.1;
  stroke-dasharray: 4 6;
}

.es002-marker {
  fill: #0b57d0;
  stroke: #ffffff;
  stroke-width: 2;
}

.es002-hover-line {
  stroke: rgba(2, 6, 23, 0.32);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.es002-hover-marker {
  fill: rgba(245, 158, 11, 0.95);
  stroke: #ffffff;
  stroke-width: 2;
}

.es002-grid-line {
  stroke: rgba(148, 163, 184, 0.35);
  stroke-width: 1;
}

.es002-axis-label {
  font-size: 11px;
  fill: #475569;
}

.es002-axis-border {
  stroke: rgba(148, 163, 184, 0.75);
  stroke-width: 1;
}

.es002-tooltip {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #334155;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
}

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

.es002-compass-box {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.es002-compass {
  width: 78px;
  height: 78px;
  display: block;
}

.es002-compass-ring {
  fill: rgba(255, 255, 255, 0.9);
  stroke: rgba(15, 23, 42, 0.18);
  stroke-width: 2;
}

.es002-compass-needle {
  stroke: #0b57d0;
  stroke-width: 3.5;
  stroke-linecap: round;
}

.es002-compass-head {
  fill: #0b57d0;
}

.es002-compass-center {
  fill: #0b57d0;
}

.es002-compass-text {
  font-size: 12px;
  font-weight: 800;
  fill: #475569;
}

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

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

  .es002-kpi {
    border-color: rgba(226, 232, 240, 0.14);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(2, 6, 23, 0.18));
  }

  .es002-kpi .es002-kpi-title,
  .es002-kpi .es002-kpi-sub {
    color: rgba(226, 232, 240, 0.82);
  }

  .es002-warning {
    border-color: rgba(251, 146, 60, 0.35);
    background: rgba(251, 146, 60, 0.12);
    color: rgba(253, 230, 138, 0.92);
  }

  .es002-chart-host {
    border-color: rgba(226, 232, 240, 0.14);
    background: rgba(2, 6, 23, 0.25);
  }

  .es002-grid-line {
    stroke: rgba(148, 163, 184, 0.28);
  }

  .es002-axis-label {
    fill: rgba(226, 232, 240, 0.78);
  }

  .es002-axis-border {
    stroke: rgba(226, 232, 240, 0.18);
  }

  .es002-horizon {
    stroke: rgba(226, 232, 240, 0.32);
  }

  .es002-tooltip {
    background: rgba(2, 6, 23, 0.92);
    border-color: rgba(226, 232, 240, 0.14);
    color: rgba(226, 232, 240, 0.95);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.28);
  }

  .es002-hover-line {
    stroke: rgba(226, 232, 240, 0.2);
  }

  .es002-hover-marker {
    stroke: rgba(2, 6, 23, 0.7);
  }

  .es002-compass-ring {
    fill: rgba(15, 23, 42, 0.5);
    stroke: rgba(226, 232, 240, 0.18);
  }

  .es002-compass-needle {
    stroke: #93c5fd;
  }

  .es002-compass-head,
  .es002-compass-center {
    fill: #93c5fd;
  }

  .es002-compass-text {
    fill: rgba(226, 232, 240, 0.82);
  }
}
