/* Hour Calculator US v5 calculator styles. Preview palette:
   navy #0f2040, blue #2563eb, blue2 #1d4ed8, ink #0f172a,
   muted #475569, line #e2e8f0. No images, no webfonts, no
   external requests. Tabs, buttons and results match the preview
   pill buttons and navy result panel. Calculator ids and JS are
   unchanged from v4, so all math and copy/export behaviour stays. */
.hcu-calculator {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #0f172a;
  background: transparent;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  line-height: 1.55;
}
.hcu-calculator * { box-sizing: border-box; max-width: 100%; }
.hcu-calculator .hcu-title { font-size: clamp(1.5rem, 4vw, 2.25rem); margin: 0 0 0.5rem; color: #0f2040; }
.hcu-calculator .hcu-intro { margin: 0 0 1rem; color: #475569; }
.hcu-calculator .hcu-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.hcu-calculator .hcu-tab {
  font: inherit; color: #0f172a; background: #f1f5f9;
  border: 1px solid #e2e8f0; border-radius: 999px;
  padding: 9px 15px; cursor: pointer; font-weight: 700; font-size: 14px;
}
.hcu-calculator .hcu-tab.is-active { background: #0f2040; border-color: #0f2040; color: #fff; }
.hcu-calculator .hcu-panel { display: none; }
.hcu-calculator .hcu-panel.is-active { display: block; }
.hcu-calculator .hcu-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin: 0.75rem 0; }
.hcu-calculator label { display: block; font-weight: 700; font-size: 13px; color: #475569; margin-bottom: 6px; }
.hcu-calculator input, .hcu-calculator select {
  font: inherit; color: #0f172a; background: #fff; width: 100%;
  border: 1px solid #cbd5e1; border-radius: 10px; padding: 12px; margin-top: 6px; font-size: 16px;
}
.hcu-calculator .hcu-btn, .hcu-calculator .hcu-btn-secondary {
  font: inherit; padding: 12px 20px; border-radius: 999px; cursor: pointer; margin: 0.25rem 0.25rem 0.25rem 0; font-weight: 800; font-size: 15px;
}
.hcu-calculator .hcu-btn { background: #2563eb; border: 0; color: #fff; }
.hcu-calculator .hcu-btn:hover { background: #1d4ed8; }
.hcu-calculator .hcu-btn-secondary { background: #fff; border: 1px solid #e2e8f0; color: #0f2040; }
.hcu-calculator .hcu-result {
  background: #0f2040; color: #fff; border: 0; border-radius: 14px;
  padding: 18px 20px; margin: 18px 0; white-space: pre-wrap; font-weight: 700;
}
.hcu-calculator .hcu-help { margin: 0.5rem 0; color: #475569; }
.hcu-calculator .hcu-note { margin-top: 1.5rem; }
.hcu-calculator .hcu-note h3 { color: #0f2040; }
.hcu-calculator .hcu-note p { color: #475569; }
.hcu-calculator .hcu-index-list { columns: 2; column-gap: 2rem; }
.hcu-calculator table.hcu-week { width: 100%; border-collapse: collapse; }
.hcu-calculator table.hcu-week th, .hcu-calculator table.hcu-week td { border: 1px solid #ccc; padding: 0.4rem; text-align: left; }
.hcu-calculator table.hcu-week input { width: 100%; }
@media (max-width: 700px) {
  .hcu-calculator .hcu-grid { grid-template-columns: 1fr; }
  .hcu-calculator .hcu-index-list { columns: 1; }
  .hcu-calculator table.hcu-week { display: block; overflow-x: auto; }
}
