/* Price calculator page (/fosociety/price-calculator). Everything is scoped under .pc so it doesn't touch the Bootstrap layout around it. */
.pc {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --sunken: #eef1ee;
  --fg: #16201c;
  --muted: #5b6862;
  --line: #d9dfdb;
  --accent: #0f6b4f;
  --accent-soft: #e2f1ea;
  --accent-fg: #ffffff;
  --gold: #b97a0c;
  --gold-soft: #fbf0d9;
  --plot-a: #0f6b4f;
  --plot-b: #c0821a;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 10px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  padding: 28px 16px 56px;
}
.pc * { box-sizing: border-box; }
.pc .pc-wrap { max-width: 1120px; margin: 0 auto; display: grid; gap: 28px; }
.pc h1, .pc h2, .pc h3 { font-family: var(--display); margin: 0; letter-spacing: -0.01em; color: var(--fg); }
.pc h1 { font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 700; }
.pc h2 { font-size: 1.3rem; font-weight: 700; }
.pc h3 { font-size: 1rem; font-weight: 700; }
.pc p { margin: 0; }
.pc .big, .pc td, .pc input { font-variant-numeric: tabular-nums; }
.pc header { display: grid; gap: 10px; }
.pc .eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 600; color: var(--accent); }
.pc .lead { color: var(--muted); max-width: 62ch; font-size: 1.05rem; font-weight: 400; }

.pc .switch { display: inline-flex; justify-self: start; background: var(--sunken); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; flex-wrap: wrap; }
.pc .switch button {
  font: inherit; font-weight: 600; border: 0; background: transparent; color: var(--muted);
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
}
.pc .switch button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.pc .switch button:focus-visible, .pc input:focus-visible, .pc .chip:focus-within, .pc .cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.pc .calc { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .pc .calc { grid-template-columns: minmax(0, 1fr); } }

.pc .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 20px; min-width: 0; }
.pc .inputs { position: sticky; top: 16px; }
@media (max-width: 860px) { .pc .inputs { position: static; } }
.pc .field { display: grid; gap: 8px; }
.pc .field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pc .field label { font-weight: 600; margin: 0; }
.pc .hint { color: var(--muted); font-size: 13px; }
.pc .numbox { display: flex; align-items: center; gap: 6px; }
.pc .numbox input[type="number"] {
  width: 110px; font: inherit; font-weight: 600; text-align: right; padding: 6px 8px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--fg);
}
.pc input[type="range"] { width: 100%; accent-color: var(--accent); }
.pc .group-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; border-top: 1px solid var(--line); padding-top: 16px; }
.pc .chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; margin: 0; font-weight: 600; }
.pc .chip input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.pc .chip span { display: grid; }
.pc .chip small { color: var(--muted); font-size: 13px; font-weight: 400; }

.pc .results { display: grid; gap: 20px; min-width: 0; }
.pc .summary { display: grid; gap: 6px; }
.pc .tag { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pc .pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; }
.pc .pill.plan { background: var(--accent-soft); color: var(--accent); }
.pc .pill.best { background: var(--gold-soft); color: var(--gold); }
.pc .big { font-family: var(--display); font-size: clamp(2rem, 4.5vw, 2.6rem); font-weight: 700; line-height: 1.1; }
.pc .big small { font-family: var(--body); font-size: 1rem; font-weight: 500; color: var(--muted); }

.pc .options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .pc .options { grid-template-columns: minmax(0, 1fr); } }
.pc .option { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; align-content: start; background: var(--surface); }
.pc .option.is-best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.pc .option-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc .option .total { font-family: var(--display); font-size: 1.6rem; font-weight: 700; }
.pc .lines { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.pc .lines li { display: flex; justify-content: space-between; gap: 12px; }
.pc .lines li span:first-child { color: var(--muted); }
.pc .lines li.sum { border-top: 1px solid var(--line); padding-top: 6px; font-weight: 700; }
.pc .lines li.sum span:first-child { color: var(--fg); }
.pc .note { font-size: 13px; color: var(--muted); }

.pc .chart-box { display: grid; gap: 8px; }
.pc .chart-box svg { width: 100%; height: auto; display: block; }
.pc .legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.pc .legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.pc .legend .a { background: var(--plot-a); }
.pc .legend .b { background: var(--plot-b); }

.pc .bands { display: grid; gap: 8px; }
.pc .band-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 90px; gap: 10px; align-items: center; font-size: 14px; }
.pc .band-track { height: 10px; background: var(--sunken); border-radius: 999px; overflow: hidden; }
.pc .band-fill { height: 100%; background: var(--accent); border-radius: 999px; }
.pc .band-row .amt { text-align: right; font-weight: 600; }
@media (max-width: 480px) { .pc .band-row { grid-template-columns: 90px minmax(0, 1fr) 76px; } }

.pc .ref { display: grid; gap: 14px; }
.pc .table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.pc table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 14px; margin: 0; }
.pc th, .pc td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.pc th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; background: var(--sunken); }
.pc tr:last-child td { border-bottom: 0; }
.pc tr.current td { background: var(--accent-soft); font-weight: 600; }
.pc .ref-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .pc .ref-grid { grid-template-columns: minmax(0, 1fr); } }
.pc .fine { color: var(--muted); font-size: 13px; display: grid; gap: 4px; max-width: 80ch; }
.pc .cta { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; background: var(--accent); color: var(--accent-fg); border: 0; border-radius: 8px; padding: 12px 20px; text-decoration: none; justify-self: start; }
.pc .cta:hover { color: var(--accent-fg); text-decoration: none; filter: brightness(1.08); }
@media (prefers-reduced-motion: no-preference) { .pc .band-fill { transition: width 0.25s ease; } }
