/* household-costs.css — Monthly Household Costs calculator. */

[data-household-costs-summary] {
  --hc-border: #e5e7eb;
  --hc-muted: #6b7280;
  --hc-green: #0b7a3c;
  --hc-amber: #b45309;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: #111827;
  padding: 14px 16px 16px;
}

.hc-summary-title {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.hc-dev-label {
  color: #b45309;
  font-size: 13px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.01em;
}

.hc-sub {
  color: var(--hc-muted);
  font-size: 0.85rem;
  margin: 0 0 12px;
}

.hc-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.hc-size {
  width: 64px;
  padding: 6px 8px;
  font-size: 0.95rem;
  border: 1px solid var(--hc-border);
  border-radius: 6px;
}
.hc-size-hint {
  color: var(--hc-muted);
  font-size: 0.85rem;
}

.hc-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hc-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 10px;
  border: 1px solid var(--hc-border);
  border-radius: 8px;
  background: #fafafa;
}
.hc-line--overridden {
  border-color: var(--hc-green);
  background: #f0faf4;
}

.hc-line-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}
.hc-badge {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
}
.hc-badge--reference { background: #eef2ff; color: #4338ca; }
.hc-badge--estimate { background: #fffbeb; color: var(--hc-amber); }
.hc-badge--optional { background: #f3f4f6; color: #6b7280; }
.hc-badge--verified { background: #ecfdf5; color: #047857; }

.hc-line-basis,
.hc-line-note {
  font-size: 0.76rem;
  color: var(--hc-muted);
  grid-column: 1 / -1;
}
.hc-line-note { color: var(--hc-green); }

.hc-line-input-wrap {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.9rem;
}
.hc-line-input {
  width: 72px;
  padding: 4px 6px;
  text-align: right;
  font-size: 0.9rem;
  border: 1px solid var(--hc-border);
  border-radius: 6px;
  background: #fff;
}
.hc-line-input:disabled { background: #f3f4f6; color: #9ca3af; }
.hc-line-currency { color: var(--hc-muted); }
.hc-line-per { color: var(--hc-muted); font-size: 0.8rem; }
.hc-line-source {
  font-size: 0.72rem;
  color: #9ca3af;
  grid-column: 1 / -1;
}

.hc-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px solid var(--hc-border);
}
.hc-total-label { font-size: 0.9rem; color: var(--hc-muted); }
.hc-total-value { font-size: 1.3rem; color: var(--hc-green); }
.hc-total-annual { font-size: 0.8rem; color: var(--hc-muted); }
.hc-total-partial { font-size: 0.78rem; color: var(--hc-amber); margin-left: auto; }

.hc-foot {
  font-size: 0.74rem;
  color: #9ca3af;
  line-height: 1.4;
  margin: 10px 0 0;
}

@media (max-width: 420px) {
  .hc-line { grid-template-columns: 1fr; }
  .hc-line-input-wrap { grid-column: 1; grid-row: auto; margin-top: 6px; }
}
