/* ==========================================================================
   Team Today calculator pages: shared styles  (/css/calc-pages.css)
   Used by the NHS, holiday entitlement, pro rata, 12.07% and days-a-week
   pages. Builds on /css/styles.css (.home-hero*, .split*, .card-trio,
   .promo-card, .cta-row, .btn). Colour values match the feature-page
   redesign used on /features/holiday-management-for-teams.
   ========================================================================== */

.cp-page {
  --ink: #0A1633;
  --copy: #4A5468;
  --muted: #647478;
  --tint: #F4F8FF;
  --line: #E6ECF7;
  --line-2: #E4E8F0;
  --field: #D7DEEB;
  --amber: #F5B83D;
  --amber-ink: #8A5A00;
  --amber-bg: #FFF4DC;
  --mono: 'Source Code Pro', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* ---------- Section scaffolding (mirrors the feature-page inline styles) */
.cp-band { padding: 72px var(--pad); }
.cp-band--tint { background: var(--tint); }
.cp-band--short { padding-block: 64px; }
.cp-inner { max-width: 1200px; margin: 0 auto; }
.cp-inner--1020 { max-width: 1020px; margin: 0 auto; }

.cp-page .cp-eyebrow {
  margin: 0;
  font-size: 13px;
  line-height: normal;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}
.cp-h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(27px, 5vw, 32px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.cp-page .cp-eyebrow + .cp-h2 { margin-top: 12px; }
.cp-h2--xl { font-size: clamp(30px, 5.5vw, 38px); line-height: 1.15; }

.cp-center { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.cp-center p { margin: 12px 0 0; font-size: 16.5px; line-height: 1.7; color: var(--copy); }

.cp-copy { min-width: 0; }
.cp-copy p { margin: 14px 0 0; font-size: 16.5px; line-height: 1.7; color: var(--copy); }
.cp-copy strong, .cp-lede strong { color: var(--ink); }
.cp-lede { margin: 0; font-size: 17.5px; line-height: 1.7; color: var(--copy); }

.cp-callout {
  margin: 18px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--blue);
  background: #fff;
  border-radius: 0 10px 10px 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--copy);
}
.cp-band--tint .cp-callout { background: #fff; }
.cp-band:not(.cp-band--tint) .cp-callout { background: var(--tint); }

.cp-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: var(--blue);
  padding: 15px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s ease, box-shadow .15s ease;
}
.cp-pill:hover { background: var(--blue-hover); }
.cp-pill--outline { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--field); }
.cp-pill--outline:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--blue); }

.cp-split-top { align-items: start; }
.cp-page .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.cp-trio-card p a { color: var(--blue); }

/* ---------- Hero: calculator as the hero visual */
.cp-hero .home-hero-inner { align-items: center; }
.cp-hero .home-hero-visual { padding-bottom: clamp(40px, 4vw, 64px); }
.cp-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 18px;
  color: rgba(255, 255, 255, .92);
}
.cp-hero-meta li { display: flex; align-items: center; gap: 7px; }
.cp-hero-meta svg { flex: none; }

.cp-calc {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(20px, 2.4vw, 30px);
  background: #fff;
  color: var(--ink);
  text-align: left;
  border-radius: 20px;
  box-shadow: 0 28px 60px rgba(14, 20, 86, .38);
}
.cp-calc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.cp-calc-head h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cp-calc-tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--blue);
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.cp-calc fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cp-field + .cp-field { margin-top: 16px; }
.cp-label {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.cp-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.cp-label-row .cp-label { margin: 0; }
.cp-hint { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.cp-hint--error { color: #B42318; }

/* Segmented radio control */
.cp-seg {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.cp-seg--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cp-seg input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.cp-seg label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  color: var(--copy);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.cp-seg label:hover { color: var(--ink); }
.cp-seg input:checked + label {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 2px rgba(10, 22, 51, .08), 0 0 0 1px var(--line);
}
.cp-seg input:focus-visible + label { outline: 3px solid rgba(0, 87, 255, .55); outline-offset: 1px; }

/* Number inputs */
.cp-inputs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.cp-input {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--field);
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cp-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 87, 255, .15); }
.cp-input.is-invalid { border-color: #D92D20; }
.cp-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.cp-input input::-webkit-outer-spin-button,
.cp-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cp-input input::placeholder { color: #A3ADBD; font-weight: 400; }
.cp-unit { font-size: 13px; color: var(--muted); white-space: nowrap; }
button.cp-chip {
  appearance: none;
  border: 0;
  padding: 2px 0;
  background: none;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  white-space: nowrap;
}
button.cp-chip:hover { text-decoration: underline; }

/* Result */
.cp-result {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #F4F8FF 0%, #EEF3FD 100%);
}
.cp-result-label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.cp-total {
  margin: 8px 0 0;
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cp-total small { margin-left: 6px; font-size: 18px; font-weight: 700; letter-spacing: 0; color: var(--copy); }
.cp-equiv { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--copy); }
.cp-equiv strong { color: var(--ink); }

.cp-bar {
  display: flex;
  gap: 2px;
  height: 10px;
  margin-top: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: #DCE3F2;
}
.cp-bar span { display: block; height: 100%; transition: width .25s ease; }
.cp-bar .al { background: var(--blue); }
.cp-bar .ph { background: #8F97D6; }
.cp-legend { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.cp-legend li { display: grid; grid-template-columns: 10px 1fr; column-gap: 8px; align-items: baseline; font-size: 13.5px; line-height: 1.4; color: var(--copy); }
.cp-legend i { width: 10px; height: 10px; border-radius: 3px; transform: translateY(1px); }
.cp-legend li:first-child i { background: var(--blue); }
.cp-legend li:last-child i { background: #8F97D6; }
.cp-legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.cp-legend span { grid-column: 2; font-size: 12.5px; color: var(--muted); }

.cp-working { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.cp-working summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  list-style: none;
}
.cp-working summary::-webkit-details-marker { display: none; }
.cp-working summary::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s ease;
}
.cp-working[open] summary::before { transform: rotate(45deg); }
.cp-working ol { margin: 10px 0 0; padding-left: 20px; font-size: 13.5px; line-height: 1.6; color: var(--copy); }
.cp-working li + li { margin-top: 4px; }
.cp-working-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.cp-copybtn {
  appearance: none;
  border: 1px solid var(--field);
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.cp-copybtn:hover { border-color: var(--blue); color: var(--blue); }
.cp-calc-note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* ---------- Bands */
.cp-bands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1020px;
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
}
.cp-bandcard {
  display: flex;
  flex-direction: column;
  padding: 24px 24px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.cp-bandcard-when { margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.cp-bandcard-days { margin: 14px 0 0; font-family: var(--font-head); font-size: 22px; font-weight: 700; line-height: 1; color: var(--ink); }
.cp-bandcard-days span { margin-right: 4px; font-size: 56px; letter-spacing: -0.03em; }
.cp-bandcard-plus { margin: 10px 0 0; font-size: 15px; color: var(--copy); }
.cp-bandcard-hrs {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  font-size: 14px;
  color: var(--copy);
}
.cp-bandcard-hrs code { font-family: var(--mono); font-size: 13px; color: var(--copy); }
.cp-bandcard-hrs strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.cp-footnote { max-width: 1020px; margin: 16px auto 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* ---------- Card-trio visuals (lavender panels, as on the feature pages) */
.cp-trio-card h3 { margin: 18px 0 8px; font-family: var(--font-head); font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.cp-trio-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--copy); }
.cp-vis {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  aspect-ratio: 716 / 538;
  max-width: 100%;
  padding: clamp(14px, 2vw, 22px);
  border-radius: 16px;
  background: linear-gradient(165deg, #C3C7EB 0%, #D7DAF2 55%, #E8E9F8 100%);
}
.cp-vpill {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 5px 14px 5px 5px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(28, 38, 132, .12);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.cp-vpill .dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
}
.cp-vpill .tag { margin-left: 4px; font-size: 12px; font-weight: 700; color: var(--blue); white-space: nowrap; }
.cp-vpill--gap { background: rgba(255, 255, 255, .5); box-shadow: none; border: 1.5px dashed rgba(81, 91, 176, .5); color: var(--copy); }
.cp-vpill--gap .dot, .cp-vpill--off .dot { background: #9AA1CF; }
.cp-vpill--gap .tag, .cp-vpill--off .tag { color: var(--muted); }
.cp-vpill--off { color: var(--copy); }
.cp-vpill--result { background: var(--blue-dark); color: #fff; }
.cp-vpill--result .dot { background: #fff; color: var(--blue-dark); }

.cp-vcard { width: 100%; padding: 12px 16px; background: #fff; border-radius: 14px; box-shadow: 0 14px 30px rgba(28, 38, 132, .14); }
.cp-vcard-title { margin: 0 0 6px; font-family: var(--font-head); font-size: 14px; font-weight: 700; text-align: center; color: var(--blue-dark); }
.cp-vrow { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.cp-vrow b { font-weight: 700; color: var(--ink); }
.cp-vrow span { font-family: var(--mono); font-size: 12px; color: var(--blue); white-space: nowrap; }

/* ---------- Indigo product-style panels for split sections */
.cp-panel { padding: clamp(18px, 3.4vw, 44px); background: var(--indigo); border-radius: 16px; }
.cp-panel-card { padding: clamp(16px, 2vw, 24px); background: #fff; border-radius: 14px; box-shadow: 0 24px 50px rgba(8, 20, 40, .35); color: var(--ink); }
.cp-panel-title { margin: 0; font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--ink); }
.cp-panel-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.cp-cmp { display: grid; gap: 16px; margin: 18px 0 0; padding: 0; list-style: none; }
.cp-cmp li { display: grid; gap: 7px; }
.cp-cmp-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 13.5px; color: var(--copy); }
.cp-cmp-head b { font-weight: 700; color: var(--ink); }
.cp-cmp-val { font-family: var(--mono); font-size: 12.5px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-cmp-track { height: 12px; border-radius: 999px; background: #EDF0F6; overflow: hidden; }
.cp-cmp-fill { height: 100%; border-radius: inherit; background: var(--blue); }
.cp-cmp-fill--over { background: var(--amber); }
.cp-flag { display: inline-block; margin-top: 2px; padding: 3px 9px; border-radius: 999px; background: var(--amber-bg); color: var(--amber-ink); font-size: 12px; font-weight: 700; justify-self: start; }

.cp-pot { margin: 14px 0 0; }
.cp-pot-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--copy); }
.cp-pot-row code { margin-left: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.cp-pot-row strong { font-family: var(--font-head); font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-pot-row--total strong { font-size: 20px; color: var(--blue); }
.cp-week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.cp-day {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
  padding: 8px 4px;
  border: 1px solid #DCE5F8;
  border-radius: 10px;
  background: #EEF3FD;
  color: var(--blue-dark);
  font-size: 11.5px;
  line-height: 1.25;
  text-align: center;
}
.cp-day b { font-family: var(--font-head); font-size: 13px; }
.cp-day em { font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 500; }
.cp-day--bh { background: var(--blue); border-color: var(--blue); color: #fff; }
.cp-day--offbh { background: #fff; border: 1.5px dashed #9AA1CF; color: var(--copy); }
.cp-week-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- Nations */
.cp-nations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 1200px; margin: 0 auto; }
.cp-nation { display: flex; flex-direction: column; padding: 26px; background: #fff; border: 1px solid var(--line-2); border-radius: 18px; }
.cp-glyph { font-family: var(--mono); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; color: var(--blue); }
.cp-nation h3 { margin: 14px 0 0; font-family: var(--font-head); font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.cp-nation p { flex: 1; margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--copy); text-wrap: pretty; }
.cp-nation p strong { color: var(--ink); }
.cp-nation-foot { display: grid; gap: 4px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.cp-nation-foot > span { font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.cp-nation-foot > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.cp-nation-foot strong { font-family: var(--font-head); font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cp-use {
  appearance: none;
  border: 0;
  background: none;
  padding: 4px 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  white-space: nowrap;
}
.cp-use:hover { text-decoration: underline; }

/* ---------- Wrinkles */
.cp-sticky { position: sticky; top: 96px; }
.cp-dl { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; min-width: 0; }
.cp-dl > div { min-width: 0; padding: 18px 0; border-top: 1px solid var(--line); }
.cp-dl > div:first-child { padding-top: 0; border-top: 0; }
.cp-dl dt { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--ink); }
.cp-dl dd { margin: 6px 0 0; font-size: 15.5px; line-height: 1.7; color: var(--copy); }
.cp-example {
  margin: 12px 0 0;
  padding: 14px 16px;
  overflow-x: auto;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink);
  white-space: pre;
}
.cp-example .k { color: var(--muted); }
.cp-example b { color: var(--blue); font-weight: 600; }

/* ---------- Ready reckoner */
.cp-rr-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 32px; max-width: 1020px; margin: 0 auto 24px; }
.cp-rr-head p { margin: 10px 0 0; max-width: 520px; font-size: 16.5px; line-height: 1.7; color: var(--copy); }
.cp-seg--tabs { flex: 0 1 auto; width: min(100%, 420px); background: #fff; }
.cp-seg--tabs label { min-height: 36px; font-size: 13.5px; }
.cp-seg--tabs input:checked + label { background: var(--blue); color: #fff; box-shadow: none; }
.cp-table-wrap { max-width: 1020px; margin: 0 auto; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.cp-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.cp-table th, .cp-table td { padding: 14px 22px; border-top: 1px solid var(--line); text-align: right; }
.cp-table thead th { border-top: 0; background: #FAFBFE; font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--copy); }
.cp-table thead th:first-child, .cp-table th[scope="row"] { text-align: left; }
.cp-table th[scope="row"] { font-weight: 600; color: var(--ink); white-space: nowrap; }
.cp-table th[scope="row"] span { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--muted); }
.cp-table td { font-family: var(--font-head); font-weight: 600; color: var(--ink); }
.cp-table tbody tr:hover { background: #FAFBFE; }
.cp-table-note { max-width: 1020px; margin: 14px auto 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* ---------- Product promo (uses .promo-card from styles.css) */
.cp-promo { padding: 24px var(--pad) 72px; background: #fff; }
.cp-promo .promo-card { max-width: 1200px; }
.cp-promo .promo-text p { margin-bottom: 26px; }
.cp-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cp-btn-ghost { color: #fff; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .75); }
.cp-btn-ghost:hover { background: rgba(255, 255, 255, .12); }

.cp-planner { overflow: hidden; background: #fff; border-radius: 12px; box-shadow: 0 24px 50px rgba(8, 20, 40, .35); color: var(--ink); font-size: 12px; }
.cp-planner-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cp-planner-bar b { font-family: var(--font-head); font-size: 14px; }
.cp-planner-bar span { font-size: 12px; color: var(--muted); }
.cp-pgrid { display: grid; grid-template-columns: 112px repeat(10, minmax(0, 1fr)) 52px; align-items: stretch; }
.cp-pgrid > div { display: flex; align-items: center; justify-content: center; min-height: 34px; padding: 4px 2px; border-top: 1px solid #F0F3F9; }
.cp-pgrid .h { flex-direction: column; gap: 1px; min-height: 40px; border-top: 0; font-size: 10.5px; line-height: 1.1; color: var(--muted); }
.cp-pgrid .h b { font-family: var(--font-head); font-size: 12px; color: var(--ink); }
.cp-pgrid .nm { justify-content: flex-start; gap: 7px; padding-left: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.cp-pgrid .nm i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-dark); color: #fff; font-style: normal; font-family: var(--font-head); font-size: 9px; font-weight: 700; }
.cp-pgrid .bh { background: repeating-linear-gradient(135deg, #F1F2FA 0 5px, #E4E6F5 5px 10px); }
.cp-pgrid .lv::after, .cp-pgrid .pd::after { content: ""; display: block; width: 100%; height: 18px; border-radius: 4px; background: var(--blue); }
.cp-pgrid .pd::after { background: #fff; border: 1.5px dashed var(--blue); }
.cp-pgrid .left { justify-content: flex-end; padding-right: 12px; font-family: var(--font-head); font-weight: 600; font-variant-numeric: tabular-nums; }
.cp-pgrid .h.left { font-family: var(--font-body); font-weight: 400; }
.cp-planner-key { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 14px 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.cp-planner-key span { display: inline-flex; align-items: center; gap: 6px; }
.cp-planner-key i { width: 14px; height: 10px; border-radius: 3px; background: var(--blue); }
.cp-planner-key i.pd { background: #fff; border: 1.5px dashed var(--blue); }
.cp-planner-key i.bh { background: repeating-linear-gradient(135deg, #F1F2FA 0 3px, #D9DCF0 3px 6px); }

/* ---------- FAQ + sources (same treatment as the feature-page FAQ) */
.cp-faq-h2 { margin: 0 0 22px; text-align: center; }
.cp-faq { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin: 0 auto; }
.cp-faq details { padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.cp-faq summary { font-weight: 700; color: var(--ink); cursor: pointer; }
.cp-faq details p { margin: 10px 0 0; font-size: 15px; line-height: 1.65; color: var(--copy); }
.cp-sources { max-width: 760px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.7; color: var(--copy); }
.cp-sources h3 { margin: 0 0 6px; font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--ink); }
.cp-sources p { margin: 0; }
.cp-sources p + p { margin-top: 8px; }
.cp-sources a { color: var(--blue); }

/* ---------- Free calculators block (same as the feature pages) */
.calc-section { padding: 64px 56px; background: #F4F8FF; }
.calc-wrap { max-width: 1200px; margin: 0 auto; background: #fff; border-radius: 24px; padding: 64px; box-shadow: 0 1px 3px rgba(15, 23, 41, 0.06); display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }
.calc-intro { position: sticky; top: 24px; }
.calc-eyebrow { margin: 0 0 14px; font-family: 'Source Code Pro', ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--blue); }
.calc-intro h2 { margin: 0 0 16px; font-size: 40px; line-height: 1.06; letter-spacing: -0.025em; font-weight: 700; color: #0f1729; text-wrap: balance; }
.calc-lede { margin: 0; font-size: 16px; line-height: 1.65; color: #4a5568; }
.calc-points { margin: 24px 0 0; padding: 24px 0 0; border-top: 1px solid #e4e8f0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.calc-points li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #4a5568; }
.calc-points li::before { content: ""; flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 236px; padding: 28px; border-radius: 18px; background: #f6f8fc; border: 1px solid #e4e8f0; text-decoration: none; transition: background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.calc-card:hover { background: #fff; border-color: var(--blue); box-shadow: 0 6px 20px rgba(0, 87, 255, 0.10); }
.calc-glyph { font-family: 'Source Code Pro', ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 30px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; color: var(--blue); }
.calc-card h3 { margin: 14px 0 0; font-size: 19px; font-weight: 700; line-height: 1.25; color: #0f1729; }
.calc-card > div > p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: #4a5568; text-wrap: pretty; }
.calc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid #e4e8f0; }
.calc-foot .calc-cta { font-size: 13px; font-weight: 600; color: #3b4557; }
.calc-foot .calc-arrow { font-size: 16px; line-height: 1; color: var(--blue); }
.calc-card--product { background: #fff; border-color: rgba(0, 87, 255, .35); }

/* ---------- Closing CTA row */
.cp-cta { max-width: calc(1200px + 2 * var(--pad)); margin: 0 auto; padding: 56px var(--pad); }
.cp-cta h2 { max-width: 560px; }
.cp-cta p { margin: 10px 0 0; max-width: 560px; font-size: 16.5px; line-height: 1.7; color: var(--copy); }
.cp-cta .cp-pill { margin-top: 0; }

/* ---------- Shared pieces for the other calculator pages */
.cp-page [hidden] { display: none !important; }
/* styles.css sets a { color: inherit }, so give plain links in copy the brand blue */
.cp-page :where(p, dd) a:not([class]) { color: var(--blue); }
.cp-page .promo-text a:not([class]),
.cp-page .home-hero-micro p a,
.cp-page .home-hero-sub a:not([class]) { color: #fff; }
.cp-seg--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Vertical radio options, for choices with long labels */
.cp-options { position: relative; display: grid; gap: 6px; }
.cp-options input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cp-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--copy);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.cp-options label::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border: 1.5px solid var(--field);
  border-radius: 50%;
  background: #fff;
}
.cp-options label:hover { color: var(--ink); }
.cp-options input:checked + label { background: #fff; border-color: var(--blue); color: var(--ink); box-shadow: 0 0 0 1px var(--blue); }
.cp-options input:checked + label::before { border: 5px solid var(--blue); }
.cp-options input:focus-visible + label { outline: 3px solid rgba(0, 87, 255, .55); outline-offset: 1px; }

.cp-input--date input { font-size: 16px; }
.cp-group { margin-top: 16px; }
.cp-panel-sub + .cp-panel-block, .cp-panel-sub + .cp-bar { margin-top: 16px; }
.cp-inputs--1 { grid-template-columns: minmax(0, 1fr); }

/* Warning panel inside a calculator (wrong tool for this situation) */
.cp-warn {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--amber-bg);
  border: 1px solid #F3D9A4;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: #5C4300;
}
.cp-warn strong { display: block; margin-bottom: 4px; color: #3D2C00; }
.cp-warn .cp-pill { margin-top: 12px; padding: 11px 20px; font-size: 14px; }

/* Prompt shown in a result before all inputs are filled */
.cp-prompt { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--copy); }

/* Comparison message under a result */
.cp-status { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.5; }
.cp-status::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: currentColor; }
.cp-status--ok { background: #E8F7EE; color: #146C3A; }
.cp-status--warn { background: var(--amber-bg); color: var(--amber-ink); }
.cp-status--bad { background: #FDECEC; color: #A61B1B; }

/* Two results side by side */
.cp-results { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 10px; }
.cp-results > div { min-width: 0; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.cp-results .cp-total { font-size: clamp(30px, 3.6vw, 38px); }
.cp-results .cp-total small { font-size: 15px; }
.cp-results .cp-equiv { font-size: 13px; }
.cp-results--one { grid-template-columns: minmax(0, 1fr); }
.cp-results .cp-result-label { font-size: 11px; }
.cp-unit--pre { order: -1; font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--muted); }
.cp-pot-row--hl { margin: 0 -10px; padding-inline: 10px; border-top-color: transparent; border-radius: 8px; background: var(--amber-bg); }
.cp-pot-row--hl + .cp-pot-row { border-top-color: transparent; }
.cp-payslip-head { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0 4px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* Example cards: four across */
.cp-footnote.cp-inner { max-width: 1200px; }
.cp-bands--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1200px; }
.cp-bandcard-days small { margin-left: 2px; font-size: 18px; color: var(--copy); }

/* Side-topic cards, two across */
.cp-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1200px; margin: 0 auto; }
.cp-note { display: flex; flex-direction: column; min-width: 0; padding: 28px; background: #fff; border: 1px solid var(--line-2); border-radius: 18px; }
.cp-band:not(.cp-band--tint) .cp-note { background: var(--tint); border-color: var(--line); }
.cp-note .cp-eyebrow { margin: 0 0 10px; font-size: 13px; line-height: normal; color: var(--blue); }
.cp-note h2, .cp-note h3 { margin: 0; font-family: var(--font-head); font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--ink); text-wrap: balance; }
.cp-note p { margin: 10px 0 0; font-size: 15px; line-height: 1.65; color: var(--copy); }
.cp-note p strong { color: var(--ink); }
.cp-note a { color: var(--blue); }
.cp-note .cp-note-link { margin-top: auto; padding-top: 18px; font-size: 14px; font-weight: 600; text-decoration: none; }
.cp-note .cp-note-link:hover { text-decoration: underline; }
.cp-note .cp-example { margin-top: 14px; }
.cp-notes--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cp-chips-wrap { max-width: 1020px; margin: 20px auto 0; }
.cp-chips-wrap > p { margin: 0; font-size: 14px; color: var(--muted); }
.cp-chips-wrap .cp-chips { margin-top: 10px; }

/* Numbered steps or dated milestones (only where order matters) */
.cp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1200px; margin: 0 auto; padding: 0; list-style: none; }
.cp-step { min-width: 0; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.cp-band:not(.cp-band--tint) .cp-step { background: var(--tint); }
.cp-step-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.cp-step h3 { margin: 14px 0 0; font-family: var(--font-head); font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.cp-step p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--copy); }
.cp-step p strong { color: var(--ink); }

/* Link chips */
.cp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.cp-chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--field);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.cp-chips a:hover { border-color: var(--blue); color: var(--blue); }
.cp-chips b { font-family: var(--mono); font-weight: 500; color: var(--blue); }

/* Tick list */
.cp-checklist { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.cp-checklist li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 15.5px; line-height: 1.6; color: var(--copy); }
.cp-checklist li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4 5.6 10.3 11.5 3.9' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.cp-checklist strong { color: var(--ink); }

/* Panel visuals */
.cp-panel-block + .cp-panel-block { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.cp-panel-label { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.cp-months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.cp-months span { display: grid; place-items: center; height: 34px; min-width: 0; border-radius: 6px; background: #EDF0F6; font-size: 11px; font-weight: 600; color: var(--muted); }
.cp-months span.on { background: var(--blue); color: #fff; }
.cp-months span.part { background: repeating-linear-gradient(135deg, var(--blue) 0 4px, #4D88FF 4px 8px); color: #fff; }
.cp-bar--lg { height: 26px; border-radius: 8px; }
.cp-bar--lg span { display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: #fff; white-space: nowrap; overflow: hidden; }
.cp-bar .amber { background: var(--amber); color: #3D2C00; }
.cp-wk { display: grid; grid-template-columns: minmax(72px, auto) repeat(5, minmax(0, 1fr)) minmax(56px, auto); gap: 5px; align-items: center; margin-top: 12px; font-size: 12.5px; }
.cp-wk > span { min-width: 0; }
.cp-wk .d { display: grid; place-items: center; height: 30px; border-radius: 7px; background: #EDF0F6; font-weight: 600; color: var(--muted); }
.cp-wk .d.w { background: var(--blue); color: #fff; }
.cp-wk .hd { text-align: center; font-weight: 700; color: var(--ink); }
.cp-wk .ct { text-align: center; font-family: var(--mono); font-size: 12px; color: var(--blue); }
.cp-wk .who { font-weight: 600; color: var(--ink); }
.cp-wk .res { text-align: right; font-family: var(--mono); font-size: 12px; color: var(--ink); white-space: nowrap; }


/* ---------- Trust and compare pages */
.cp-stars { display: flex; gap: 3px; align-items: center; flex-shrink: 0; }
.cp-stars svg { display: block; width: 18px; height: 18px; }

/* Hero fact card */
.cp-facts { display: grid; margin: 0; }
.cp-facts > div { display: grid; grid-template-columns: minmax(92px, .8fr) minmax(0, 1.7fr) 84px; gap: 2px 14px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.cp-facts > div:first-child { padding-top: 0; border-top: 0; }
.cp-facts dt { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cp-facts dd { margin: 0; min-width: 0; font-size: 14px; line-height: 1.45; color: var(--ink); }
.cp-facts dd small { display: block; font-size: 12.5px; color: var(--muted); }
span.cp-chip { justify-self: end; display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.cp-chip--ok { background: #E8F7EE; color: #146C3A; }
.cp-chip--soon { background: var(--amber-bg); color: var(--amber-ink); }
.cp-chip--no { background: #F1F3F7; color: var(--muted); }

/* Hero scorecard: Team Today vs a competitor */
.cp-score { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.4; }
.cp-score th, .cp-score td { padding: 10px 10px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.cp-score thead th { padding-top: 0; border-top: 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cp-score thead th.us { color: var(--blue); }
.cp-score tbody th { width: 36%; padding-left: 0; font-weight: 600; color: var(--ink); }
.cp-score td { color: var(--copy); }
.cp-score .us { background: var(--tint); }
.cp-score tbody tr:last-child .us { border-radius: 0 0 8px 8px; }
.cp-score thead .us { border-radius: 8px 8px 0 0; padding-top: 8px; }
.cp-yes, .cp-no { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.cp-yes { color: #146C3A; }
.cp-no { color: var(--muted); }
.cp-yes::before, .cp-no::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; }
.cp-yes::before { background: #1F9D57 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4 5.6 10.3 11.5 3.9' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.cp-no::before { background: #BCC4D3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 4l6 6M10 4l-6 6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 9px no-repeat; }

/* Full comparison table */
.cp-table--compare { font-size: 14.5px; }
.cp-table--compare th, .cp-table--compare td, .cp-table--compare thead th, .cp-table--compare thead th:first-child { text-align: left; vertical-align: top; }
.cp-table--compare td { font-family: var(--font-body); font-weight: 400; line-height: 1.5; color: var(--copy); }
.cp-table--compare th[scope="row"] { width: 30%; white-space: normal; }
.cp-table--compare .us { background: #F7FAFF; }
.cp-table--compare thead .us { background: #EEF4FF; color: var(--blue); }
.cp-table--compare td .cp-yes, .cp-table--compare td .cp-no { display: flex; align-items: flex-start; }
.cp-table--compare td .cp-yes::before, .cp-table--compare td .cp-no::before { margin-top: 1px; }

/* Cards: highlighted choice, ticks and crosses */
.cp-note--brand, .cp-band:not(.cp-band--tint) .cp-note--brand { background: #fff; border: 1.5px solid var(--blue); box-shadow: 0 6px 20px rgba(0, 87, 255, .10); }
.cp-note .cp-checklist { margin-top: 14px; }
.cp-note .cp-checklist li { font-size: 15px; }
.cp-checklist--no li::before { background-color: #BCC4D3; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 4l6 6M10 4l-6 6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-size: 10px; }

/* Customer quote, as on the feature pages' review cards */
.cp-quote { max-width: 860px; margin: 0 auto; padding: clamp(24px, 3vw, 36px); background: #fff; border-radius: 18px; box-shadow: var(--card-shadow); }
.cp-quote .cp-stars svg { width: 20px; height: 20px; }
.cp-quote blockquote { margin: 16px 0 0; font-family: var(--font-head); font-size: clamp(17px, 2vw, 21px); font-weight: 600; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.cp-quote figcaption { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 14px; line-height: 1.4; color: var(--copy); }
.cp-quote figcaption b { display: block; color: var(--ink); }
.cp-avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue-dark); color: #fff; font-family: var(--font-head); font-size: 12px; font-weight: 700; }

/* Big numbers */
.cp-note .cp-note-stat { margin: 8px 0 0; font-family: var(--font-head); font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.cp-note .cp-note-stat small { margin-left: 6px; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--copy); }
.cp-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 860px; margin: 16px auto 0; }
.cp-stat { min-width: 0; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.cp-stat b { display: block; font-family: var(--font-head); font-size: clamp(30px, 4vw, 40px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.cp-stat span { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--copy); }

/* Hosting regions diagram */
.cp-regions { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); align-items: center; margin-top: 16px; }
.cp-region { min-width: 0; padding: 14px; background: var(--tint); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.cp-region--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.cp-region b { display: block; font-family: var(--font-head); font-size: 15px; }
.cp-region span { display: block; margin-top: 2px; font-family: var(--mono); font-size: 12px; opacity: .85; }
.cp-region small { display: block; margin-top: 8px; font-size: 12px; line-height: 1.4; }
.cp-regions i { height: 2px; background: repeating-linear-gradient(90deg, var(--indigo) 0 6px, transparent 6px 10px); }

/* Contact band */
.cp-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; max-width: 1200px; margin: 0 auto; padding: clamp(24px, 3vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.cp-contact > div { min-width: 0; max-width: 680px; }
.cp-contact h2 { font-size: clamp(22px, 3vw, 26px); }
.cp-contact p { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: var(--copy); }
.cp-contact .cp-pill { margin-top: 0; }

/* A week of whereabouts and leave */
.cp-weekview { display: grid; grid-template-columns: minmax(68px, 1.1fr) repeat(5, minmax(0, 1fr)); gap: 5px; margin-top: 14px; font-size: 11.5px; }
.cp-weekview .hd { text-align: center; font-weight: 700; color: var(--ink); }
.cp-weekview .nm { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; }
.cp-weekview .nm i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-dark); color: #fff; font-style: normal; font-family: var(--font-head); font-size: 9px; font-weight: 700; }
.cp-weekview .s { display: grid; place-items: center; min-width: 0; min-height: 32px; padding: 2px; border-radius: 7px; font-weight: 600; line-height: 1.15; text-align: center; overflow: hidden; }
.cp-weekview .office { background: var(--blue); color: #fff; }
.cp-weekview .home { background: #EDF0F6; color: var(--copy); }
.cp-weekview .leave { background: var(--amber-bg); color: var(--amber-ink); box-shadow: inset 0 0 0 1px #F3D9A4; }
.cp-weekview .away { background: #E9E7F8; color: #3F3A8C; }
.cp-weekview-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.cp-weekview-key span { display: inline-flex; align-items: center; gap: 6px; }
.cp-weekview-key i { width: 12px; height: 12px; border-radius: 3px; }

/* ---------- Responsive */
@media (max-width: 1100px) {
  .cp-nations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .cp-notes--3 { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .cp-bands--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; }
  .cp-steps { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
}
@media (max-width: 767px) {
  .cp-notes { grid-template-columns: minmax(0, 1fr); }
  .cp-bands--4 { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
}
@media (max-width: 480px) {
  .cp-results { grid-template-columns: minmax(0, 1fr); }
  .cp-facts > div { grid-template-columns: minmax(0, 1fr) auto; }
  .cp-facts dt { grid-column: 1 / -1; }
  .cp-stats { grid-template-columns: minmax(0, 1fr); }
  .cp-score { font-size: 12.5px; }
  .cp-score th, .cp-score td { padding: 9px 6px; }
  .cp-regions { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cp-regions i { width: 2px; height: 18px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--indigo) 0 4px, transparent 4px 7px); }
  .cp-seg--3.cp-seg--wrap { grid-template-columns: minmax(0, 1fr); }
  .cp-wk { grid-template-columns: 58px repeat(5, minmax(0, 1fr)) 44px; font-size: 11.5px; }
}
@media (max-width: 1023px) {
  .cp-hero-meta { justify-content: center; }
  .cp-hero .home-hero-visual { padding-bottom: clamp(32px, 5vw, 56px); }
  .calc-wrap { grid-template-columns: 1fr; gap: 40px; }
  .calc-intro { position: static; }
  .calc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .cp-sticky { position: static; }
}
@media (max-width: 767px) {
  .cp-band { padding-block: 56px; }
  .cp-bands { grid-template-columns: minmax(0, 1fr); max-width: 480px; }
  .cp-trio-card { max-width: 480px; }
  .cp-cta .cta-row-actions { flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .calc-section { padding: 48px 20px; }
  .calc-wrap { padding: 32px; }
  .calc-intro h2 { font-size: 32px; }
}
@media (max-width: 640px) {
  .cp-nations { grid-template-columns: minmax(0, 1fr); }
  .cp-promo .promo-card { padding: 28px 22px; gap: 28px; }
  .cp-promo .promo-text h3 { font-size: 28px; }
  .cp-table th, .cp-table td { padding: 12px 12px; }
  .cp-table th[scope="row"] span { display: block; margin: 2px 0 0; }
}
@media (max-width: 480px) {
  .cp-seg--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-inputs { grid-template-columns: minmax(0, 1fr); }
  .cp-legend { grid-template-columns: minmax(0, 1fr); }
  .cp-pgrid { grid-template-columns: 46px repeat(10, minmax(0, 1fr)) 0; }
  .cp-pgrid .nm { padding-left: 10px; }
  .cp-pgrid .left { visibility: hidden; padding: 0; }
  .cp-pgrid .nm span { display: none; }
  .cp-calc-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-bar span, .cp-seg label, .cp-pill, .calc-card { transition: none; }
}
