/* Release 20260911-6. Scoped calculator styles: keep legacy typography and form rules outside this card. */
body .pc-calc {
  --pc-calc-ink: #173657;
  --pc-calc-navy: #004080;
  --pc-calc-muted: #435971;
  --pc-calc-orange: #b94e0f;
  --pc-calc-line: #cbd8e6;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 44px 0;
  padding: clamp(22px, 3.4vw, 40px);
  border: 1px solid var(--pc-calc-line);
  border-top: 4px solid var(--pc-calc-orange);
  border-radius: 18px;
  background: #f1f5fa;
  color: var(--pc-calc-ink);
  font: 400 17px/1.7 'DM Sans', Arial, sans-serif;
  text-align: left;
  color-scheme: light;
  scroll-margin-top: 24px;
}

body .pc-calc *,
body .pc-calc *::before,
body .pc-calc *::after { box-sizing: border-box; }

body .pc-calc :is(div, header, details, label) { min-width: 0; }
body .pc-calc :is(p, h2, h3, ul, figure) { max-width: none; }
body .pc-calc :is(strong, b, output) { color: inherit; font-weight: 650; }
body .pc-calc p { margin: 0; color: var(--pc-calc-ink); font-size: 17px; line-height: 1.7; }
body .pc-calc p + p { margin-top: 12px; }
body .pc-calc .pc-calc-live { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body .pc-calc [data-negative='true'] { color: #81281f; }
body .pc-calc [hidden] { display: none !important; }

body .pc-calc .pc-calc-head { margin: 0 0 26px !important; padding: 0; }
body .pc-calc .pc-calc-head .pc-eyebrow {
  margin: 0 0 12px;
  color: var(--pc-calc-orange);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .065em;
  text-transform: uppercase;
}
body .pc-calc .pc-calc-head h2 {
  margin: 0 0 17px;
  color: var(--pc-calc-navy);
  font: 400 clamp(34px, 3.4vw, 44px)/1.17 'DM Serif Display', Georgia, serif;
  letter-spacing: -.02em;
  text-wrap: pretty;
}
body .pc-calc .pc-calc-head > p:not(.pc-eyebrow) { max-width: 70ch; font-size: 18px; }

body .pc-calc .pc-calc-funnel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 18px;
}
body .pc-calc .pc-calc-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 22px;
  border: 1px solid var(--pc-calc-line);
  border-radius: 12px;
  background: #fff;
  color: var(--pc-calc-ink);
}
body .pc-calc .pc-calc-step + .pc-calc-step::before {
  content: '';
  position: absolute;
  top: calc(50% - 5px);
  left: -19px;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--pc-calc-orange);
  border-right: 2px solid var(--pc-calc-orange);
  transform: rotate(45deg);
}
body .pc-calc .pc-calc-step > span { color: var(--pc-calc-navy); font-size: 17px; font-weight: 600; line-height: 1.5; }
body .pc-calc .pc-calc-step small { display: block; color: var(--pc-calc-muted); font-size: 15px; font-weight: 400; line-height: 1.5; }
body .pc-calc .pc-calc-step > :is(strong, output) {
  display: block;
  max-width: 100%;
  margin-top: 6px;
  color: var(--pc-calc-navy);
  font: 650 clamp(33px, 3.5vw, 44px)/1.15 'DM Sans', Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
body .pc-calc .pc-calc-step strong output { color: inherit; font: inherit; letter-spacing: inherit; }

body .pc-calc .pc-calc-economics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 22px;
}
body .pc-calc .pc-calc-economics > div { padding: 21px 23px; border: 1px solid #dfc4a8; border-radius: 12px; background: #fcf3e9; }
body .pc-calc .pc-calc-economics :is(p, span) { color: var(--pc-calc-ink); font-size: 17px; line-height: 1.55; }
body .pc-calc .pc-calc-economics small { display: block; margin-top: 8px; color: var(--pc-calc-muted); font-size: 15px; line-height: 1.6; }
body .pc-calc .pc-calc-economics :is(strong, output) { color: var(--pc-calc-navy); font-variant-numeric: tabular-nums; }
body .pc-calc .pc-calc-economics > div > :is(strong, output) { display: block; margin-top: 9px; font-size: clamp(27px, 2.7vw, 35px); line-height: 1.3; overflow-wrap: anywhere; }
body .pc-calc .pc-calc-economics strong output { font: inherit; }

body .pc-calc :is(.pc-calc-settings, .pc-calc-method) {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--pc-calc-line);
  background: transparent;
}
body .pc-calc details > summary {
  display: list-item;
  width: 100%;
  min-height: 50px;
  padding: 13px 0;
  color: var(--pc-calc-navy);
  font: 600 17px/1.6 'DM Sans', Arial, sans-serif;
  cursor: pointer;
  list-style-position: inside;
  overflow-wrap: anywhere;
}
body .pc-calc details > summary::marker { color: var(--pc-calc-orange); font-size: .8em; }
body .pc-calc details > summary::-webkit-details-marker { color: var(--pc-calc-orange); }
body .pc-calc details > summary:hover { color: #963d0b; }
body .pc-calc details[open] > summary { margin-bottom: 10px; }

body .pc-calc .pc-calc-inputs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 20px 15px;
  padding: 5px 0 24px;
}
body .pc-calc .pc-calc-inputs > label {
  display: grid;
  grid-template-rows: minmax(3em, auto) auto 1fr;
  align-content: start;
  gap: 8px;
  margin: 0;
  color: var(--pc-calc-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}
body .pc-calc .pc-calc-inputs label small { display: block; color: var(--pc-calc-muted); font-size: 15px; font-weight: 400; line-height: 1.55; }
body .pc-calc :is(input[type='number'], select) {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 52px;
  height: auto;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #70859b;
  border-radius: 7px;
  background: #fff;
  color: var(--pc-calc-ink);
  font: 500 18px/1.5 'DM Sans', Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-indent: 0;
  box-shadow: none;
  opacity: 1;
}
body .pc-calc input[type='number'] { appearance: auto; }
body .pc-calc select { appearance: auto; padding-right: 30px; background-image: none; }
body .pc-calc input::placeholder { color: #52667e; opacity: 1; }
body .pc-calc input[aria-invalid='true'] { border: 2px solid #9b3026; background: #fff8f6; }
body .pc-calc :is(input, select, summary, a, button):focus-visible { outline: 3px solid var(--pc-calc-orange); outline-offset: 4px; }
body .pc-calc .pc-calc-error { margin: 0 0 18px; padding: 14px 17px; border-left: 3px solid #9b3026; background: #fff4f0; color: #81281f; font-size: 17px; }
body .pc-calc .pc-calc-notice { margin: 0 0 19px; color: var(--pc-calc-muted); font-size: 16px; line-height: 1.65; }

body .pc-calc .pc-calc-method > :is(p, ul) { max-width: 75ch; margin: 0 0 16px; color: var(--pc-calc-muted); font-size: 16px; line-height: 1.75; }
body .pc-calc .pc-calc-method ul { list-style: disc; padding-left: 22px; }
body .pc-calc .pc-calc-method li { margin: 0 0 9px; color: var(--pc-calc-muted); }
body .pc-calc a:not(.pc-button) { color: var(--pc-calc-navy); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
body .pc-calc a:not(.pc-button):hover { color: #963d0b; text-decoration-thickness: 2px; }

body .pc-calc .pc-calc-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, auto);
  align-items: center;
  gap: 20px 28px;
  margin-top: 24px;
  padding-top: 26px;
  border-top: 1px solid var(--pc-calc-line);
}
body .pc-calc .pc-calc-action p { max-width: 55ch; font-size: 17px; }
body .pc-calc .pc-calc-action .pc-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  min-height: 52px;
  height: auto;
  padding: 13px 21px;
  border-radius: 8px;
  background: var(--pc-calc-orange);
  color: #fff;
  font: 650 17px/1.5 'DM Sans', Arial, sans-serif;
  white-space: normal;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
body .pc-calc .pc-calc-action .pc-button:hover { background: #963d0b; color: #fff; }

body .pc-calc .pc-calc-history { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--pc-calc-line); }
body .pc-calc .pc-calc-history > header { margin: 0 0 20px !important; padding: 0; }
body .pc-calc .pc-calc-history h3 { margin: 0 0 10px; color: var(--pc-calc-navy); font: 600 23px/1.35 'DM Sans', Arial, sans-serif; }
body .pc-calc .pc-calc-history > header p { max-width: 70ch; font-size: 17px; }
body .pc-calc .pc-calc-history-choice { display: block; max-width: 520px; margin: 0 0 21px; color: var(--pc-calc-ink); font-size: 17px; font-weight: 600; line-height: 1.55; }
body .pc-calc .pc-calc-history-choice select { margin-top: 8px; font-size: 17px; }
body .pc-calc .pc-calc-bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(5px, 1.2vw, 16px);
  height: 222px;
  margin: 0 0 19px;
  padding: 15px 8px 0;
  border-bottom: 1px solid #9eafc2;
  background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), #dbe3ed calc(25% - 1px), #dbe3ed 25%);
}
body .pc-calc .pc-calc-bar-wrap { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 9px; align-items: end; min-width: 0; }
body .pc-calc .pc-calc-bar {
  display: block;
  grid-row: 1;
  justify-self: center;
  width: min(76%, 48px);
  min-width: 0;
  height: clamp(0px, var(--bar, 0%), 100%);
  border-radius: 5px 5px 0 0;
  background: #1e568f;
}
body .pc-calc .pc-calc-bar-wrap > small { display: block; grid-row: 2; min-height: 25px; padding-bottom: 5px; color: var(--pc-calc-muted); font-size: 13px; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
body .pc-calc .pc-calc-history-result { margin: 16px 0 19px; padding: 17px 20px; border-left: 3px solid var(--pc-calc-navy); border-radius: 0 8px 8px 0; background: #fff; }
body .pc-calc .pc-calc-history-result p { font-size: 17px; }
body .pc-calc .pc-calc-history-result strong { color: var(--pc-calc-navy); font-weight: 650; }
body .pc-calc .pc-calc-history details { margin-top: 10px; }
body .pc-calc .pc-calc-history .tablewrapper,
body .pc-calc .pc-calc-history .table-wrapper { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
body .pc-calc .pc-calc-history table { display: table; width: 100%; margin: 0 0 16px; border-collapse: collapse; background: #fff; color: var(--pc-calc-ink); font-size: 15px; line-height: 1.6; }
body .pc-calc .pc-calc-history :is(th, td) { padding: 10px 12px; border-bottom: 1px solid var(--pc-calc-line); color: var(--pc-calc-ink); text-align: left; vertical-align: top; }
body .pc-calc .pc-calc-history th { background: #e8eff7; color: var(--pc-calc-navy); font-weight: 650; }
body .pc-calc .pc-calc-history table :is(strong, b) { color: inherit; }

@media (max-width: 1000px) {
  body .pc-calc .pc-calc-inputs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body .pc-calc .pc-calc-step { padding: 19px; }
  body .pc-calc .pc-calc-action { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  body .pc-calc .pc-calc-action .pc-button { justify-self: start; }
}

@media (max-width: 650px) {
  body .pc-calc { margin-block: 32px; padding: 23px; border-radius: 14px; }
  body .pc-calc .pc-calc-head { margin-bottom: 22px !important; }
  body .pc-calc .pc-calc-head > p:not(.pc-eyebrow) { font-size: 17px; }
  body .pc-calc .pc-calc-funnel { grid-template-columns: minmax(0, 1fr); gap: 19px; }
  body .pc-calc .pc-calc-step { padding: 18px 20px; }
  body .pc-calc .pc-calc-step + .pc-calc-step::before { top: -15px; left: calc(50% - 4px); transform: rotate(135deg); }
  body .pc-calc .pc-calc-step > :is(strong, output) { font-size: 36px; }
  body .pc-calc .pc-calc-economics { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  body .pc-calc .pc-calc-economics > div { padding: 18px 20px; }
  body .pc-calc .pc-calc-inputs { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  body .pc-calc .pc-calc-inputs > label { grid-template-rows: auto auto auto; }
  body .pc-calc .pc-calc-action .pc-button { width: 100%; }
  body .pc-calc .pc-calc-bars { height: 196px; padding-inline: 0; gap: 5px; }
  body .pc-calc .pc-calc-bar { width: 75%; }
  body .pc-calc .pc-calc-bar-wrap > small { font-size: 12px; }
  body .pc-calc .pc-calc-history-result { padding: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  body .pc-calc .pc-calc-action .pc-button { transition: background-color 160ms ease; }
}

@media (prefers-reduced-motion: reduce) {
  body .pc-calc *, body .pc-calc *::before, body .pc-calc *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

body.pc-ads .pc-calc { scroll-margin-top: 100px; }

/* One shared timeframe and one diagram for the planning scenario. */
body .pc-calc-chart .pc-calc-head { border: 0; margin-bottom: 22px !important; }
body .pc-calc-chart .pc-calc-head h2 { font-size: clamp(30px, 3.4vw, 42px); }
body .pc-calc-chart .pc-calc-choices { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 20px; margin-bottom: 22px; }
body .pc-calc-chart .pc-calc-choices label { color: #173657; font-size: 16px; font-weight: 600; line-height: 1.5; }
body .pc-calc-chart select { margin-top: 8px; }
body .pc-calc-chart .pc-calc-outcome { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 14px; margin: 10px 0 18px; }
body .pc-calc-chart .pc-calc-outcome strong { color: #004080; font-size: 24px; line-height: 1.3; }
body .pc-calc-chart .pc-calc-outcome span { color: #435971; font-size: 15px; }
body .pc-calc-chart .pc-calc-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; color: #173657; font-size: 15px; line-height: 1.5; }
body .pc-calc-chart .pc-calc-legend span { display: inline-flex; align-items: center; gap: 9px; }
body .pc-calc-chart .pc-calc-legend i { display: inline-block; width: 28px; border-top: 3px solid #004080; }
body .pc-calc-chart .pc-calc-legend .pc-calc-line-cost { border-color: #b94e0f; border-top-style: dashed; }
body .pc-calc-chart .pc-calc-plot { width: 100%; height: 310px; margin: 15px 0 7px; background: #fff; border-radius: 10px; overflow: hidden; }
body .pc-calc-chart .pc-calc-plot svg { display: block; width: 100%; height: 310px; font-family: 'DM Sans', Arial, sans-serif; }
body .pc-calc-chart .pc-calc-caption { margin: 9px 0 18px; color: #435971; font-size: 15px; line-height: 1.55; }
body .pc-calc-chart .pc-calc-totals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 24px 0 17px; }
body .pc-calc-chart .pc-calc-totals > div { padding: 18px; border: 1px solid #cbd8e6; border-radius: 10px; background: white; }
body .pc-calc-chart .pc-calc-totals strong { display: block; color: #004080; font-size: clamp(22px,2.5vw,32px); line-height: 1.25; margin-bottom: 5px; overflow-wrap: anywhere; }
body .pc-calc-chart .pc-calc-totals span { color: #435971; font-size: 15px; line-height: 1.5; display: block; }
body .pc-calc-chart .pc-calc-totals [data-negative='true'] { color: #81281f; }
body .pc-calc-chart .pc-calc-assumption { margin-bottom: 18px; }
body .pc-calc-chart .pc-calc-more { border: 0; border-top: 1px solid #cbd8e6; background: transparent; padding: 0; }
body .pc-calc-chart .pc-calc-more > p { font-size: 16px; margin: 12px 0; }
body .pc-calc-chart .pc-calc-inputs { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 22px; }
body .pc-calc-chart .pc-calc-more details { margin-top: 18px; border-top: 1px solid #cbd8e6; }
body .pc-calc-chart .pc-calc-more details p { font-size: 15px; color: #435971; margin: 10px 0; }
body .pc-calc-chart .pc-calc-table { overflow-x: auto; max-width: 100%; }
body .pc-calc-chart table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; line-height: 1.5; }
body .pc-calc-chart th, body .pc-calc-chart td { padding: 9px; color: #173657; border-bottom: 1px solid #cbd8e6; text-align: right; }
body .pc-calc-chart th { font-weight: 600; background: #e8eff7; }
body .pc-calc-chart caption { text-align: left; padding: 10px 0; color: #435971; }
/* Measured visits and the financial example are presented as separate evidence. */
body .pc-calc-measured .pc-calc-choices { grid-template-columns: minmax(0,1fr); max-width: 680px; }
body .pc-calc-measured .pc-calc-choice-note { display: block; margin-top: 8px; color: #435971; font-size: 14px; font-weight: 400; line-height: 1.5; }
body .pc-calc-measured .pc-calc-measured-source { margin: 24px 0 30px; }
body .pc-calc-measured .pc-calc-measured-source p { color: #435971; font-size: 15px; line-height: 1.55; }
body .pc-calc-measured .pc-calc-traffic-plot { width: 100%; height: 200px; margin: 12px 0; background: #fff; border-radius: 10px; overflow: hidden; }
body .pc-calc-measured .pc-calc-traffic-plot svg { display: block; width: 100%; height: 200px; font-family: 'DM Sans', Arial, sans-serif; }
body .pc-calc-measured .pc-calc-outcome { padding-top: 22px; border-top: 1px solid #cbd8e6; }
body .pc-calc-measured .pc-calc-totals { grid-template-columns: repeat(4,minmax(0,1fr)); }
body .pc-calc-measured .pc-calc-inputs { grid-template-columns: repeat(2,minmax(0,1fr)); }
body .pc-calc-measured .pc-calc-source,
body .pc-calc-measured .pc-calc-measured-source p { overflow-wrap: anywhere; }
@media (max-width:900px) and (min-width:651px) {
 body .pc-calc-measured .pc-calc-totals { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:650px) {
 body .pc-calc-chart { padding: 20px; }
 body .pc-calc-chart .pc-calc-choices { grid-template-columns: minmax(0,1fr); gap: 12px; }
 body .pc-calc-chart .pc-calc-outcome strong { font-size: 21px; }
 body .pc-calc-chart .pc-calc-legend { gap: 6px 18px; font-size: 14px; }
 body .pc-calc-chart .pc-calc-plot { width: calc(100% + 16px); margin-left: -8px; }
 body .pc-calc-chart .pc-calc-totals { grid-template-columns: minmax(0,1fr); gap: 8px; margin: 18px 0; }
 body .pc-calc-chart .pc-calc-totals > div { display: grid; grid-template-columns: minmax(95px,.7fr) minmax(0,1fr); align-items: center; gap: 12px; padding: 13px; }
 body .pc-calc-chart .pc-calc-totals strong { font-size: 24px; margin: 0; }
 body .pc-calc-chart .pc-calc-inputs { grid-template-columns: minmax(0,1fr); }
 body .pc-calc-measured .pc-calc-traffic-plot { width: calc(100% + 16px); margin-left: -8px; }
}
