/* Shared styles for the calculator hub and the per-calculator pages. */

.calc-hero { padding: clamp(36px, 6vw, 68px) 0 8px; }
.calc-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.crumbs a { color: var(--oak-deep); }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-current] { color: var(--ink-2); }

.region-toggle {
  display: inline-flex;
  gap: 4px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-top: 22px;
}
.region-toggle button {
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 800;
  color: var(--ink-3);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 140ms, color 140ms;
}
.region-toggle button[aria-pressed="true"] { background: var(--oak); color: oklch(99% 0.01 85); }

.calc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 26px; }
.calc-tab {
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 9px 16px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 140ms, background 140ms, color 140ms;
}
.calc-tab:hover { border-color: var(--oak); }
.calc-tab[aria-selected="true"] { background: var(--oak); border-color: var(--oak); color: oklch(99% 0.01 85); }

.calc-shell { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 26px; align-items: start; }
@media (max-width: 820px) { .calc-shell { grid-template-columns: 1fr; } }

.calc-panel {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}
.calc-panel h2 { font-size: 1.35rem; }
.calc-std { font-size: 0.8rem; color: var(--ink-3); margin-top: 6px; font-weight: 600; }

.field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.field label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input, .field select {
  font: inherit;
  font-weight: 600;
  min-height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 0 12px;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--oak);
  box-shadow: 0 0 0 3px var(--oak-tint);
}

.take-chips { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.take-chip {
  background: var(--oak-tint);
  color: var(--oak-deep);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.9rem;
  font-weight: 700;
}
.take-chip::before { content: "\25B8  "; }

table.take { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
table.take th, table.take td { padding: 8px 6px; text-align: right; }
table.take th:first-child, table.take td:first-child { text-align: left; }
table.take thead th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  border-bottom: 2px solid var(--ink);
  font-weight: 800;
}
table.take tbody td { border-bottom: 1px solid var(--line); }
table.take tbody tr:last-child td { border-bottom: none; }
table.take .qty { font-variant-numeric: tabular-nums; }

.take-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
}
.take-total .lbl { font-weight: 800; }
.take-total .amt { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.02em; }
.take-note { font-size: 0.76rem; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }

.calc-cta {
  background: var(--dark);
  color: oklch(95% 0.01 85);
  border-radius: 16px;
  padding: 22px 24px;
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.calc-cta p { font-weight: 700; max-width: 44ch; }
.calc-cta strong { color: oklch(80% 0.1 70); }

/* Inline links need to look like links: the global reset strips colour and
   underline, which would hide the deep links in the hub's intro. */
.lede a,
.prose p a,
.prose li a {
  color: var(--oak-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lede a:hover,
.prose p a:hover,
.prose li a:hover { color: var(--oak); }

/* ── Editorial copy on the per-calculator pages ── */

.prose { max-width: 68ch; }
.prose h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin-top: 40px;
  margin-bottom: 12px;
}
.prose p { color: var(--ink-2); margin-bottom: 14px; }
.prose ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.prose li { line-height: 1.6; }
.prose li strong { color: var(--ink); }

.faq {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.faq h3 { font-size: 1rem; margin-bottom: 6px; }
.faq p { color: var(--ink-2); margin: 0; font-size: 0.94rem; }

.disclaimer {
  margin-top: 28px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.6;
}
