/* California wage estimator — complements site card styles */

.wh-calc-scope {
  /* Match site `.wrap` width (same column as nav); no nested max-width shrinking */
  width: 100%;
  max-width: 100%;
}

.wh-intro {
  color: var(--color-ink-muted);
  margin: 0 0 0.85rem;
  line-height: 1.65;
}

.wh-field-grid {
  display: grid;
  gap: 0.95rem;
}

@media (min-width: 640px) {
  .wh-days-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
  }
}

@media (min-width: 900px) {
  .wh-days-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.wh-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.35rem;
}

.wh-field .wh-hint {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--color-ink-muted);
  margin-top: 0.15rem;
}

.wh-input-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
}

.wh-input-row input[type="number"] {
  flex: 1 1 7rem;
  min-width: 0;
}

.wh-input-note {
  font-size: 0.8125rem;
  align-self: center;
  color: var(--color-ink-muted);
}

.wh-inp {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-ink);
  width: 100%;
  max-width: 100%;
}

.wh-inp:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.wh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.wh-panel {
  margin-top: 1.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.wh-results-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 1rem;
}

.wh-table-wrap {
  overflow-x: auto;
}

.wh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.wh-table th,
.wh-table td {
  text-align: right;
  padding: 0.5rem 0.55rem;
  border-bottom: 1px solid var(--color-border);
}

.wh-table th:first-child,
.wh-table td:first-child {
  text-align: left;
}

.wh-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent-strong);
  vertical-align: bottom;
}

.wh-table tfoot th,
.wh-table tfoot td {
  font-weight: 700;
  border-bottom: none;
}

.wh-tfoot-spacer td {
  border-bottom: none;
  height: 0.35rem;
}

.wh-metrics {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 520px) {
  .wh-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .wh-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.wh-metric {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  background: color-mix(in srgb, var(--color-bg) 55%, white);
}

@supports not (background: color-mix(in srgb, red 55%, white)) {
  .wh-metric {
    background: var(--color-bg);
  }
}

.wh-metric dt {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent-strong);
  margin-bottom: 0.25rem;
}

.wh-metric dd {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.wh-muted {
  color: var(--color-ink-muted);
  margin: 1rem 0 0;
  font-size: 0.895rem;
  line-height: 1.58;
}

.wh-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.wh-days-fieldset {
  border: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.wh-days-fieldset legend {
  font-size: inherit;
}
