/* Deliberately mirrors KiwiSaverCalculator.module.css: same host tokens, same
   scale, same control chrome. The three stay in step by hand rather than sharing a
   file, so a change to one calculator can't regress the others on a live site. */
.yK98A86Ps9n_ZedrUUEU {
  --compound-ink: var(--_colour-scheme---section--text, var(--text-color--text-primary, #142c5c));
  --compound-card: var(--_colour-scheme---section--background, var(--background-color--background-primary, #fff));
  --compound-fg: var(--_colour-scheme---section--foreground, var(--background-color--background-primary, #fff));
  --compound-line: var(--_colour-scheme---section--border, var(--border-color--border-primary, #e7e9ee));
  --compound-accent: var(--_colour-scheme---section--accent, var(--base-color-brand--blue-zodiac-light, #17336b));
  --compound-muted: var(--base-color-brand--blue-zodiac-light, #17336b);
  --compound-button-bg: var(--_colour-scheme---button--background, var(--background-color--background-secondary, #142c5c));
  --compound-button-text: var(--_colour-scheme---button--text, var(--text-color--text-secondary, #fff));
  --compound-button-border: var(--_colour-scheme---button--border, var(--background-color--background-secondary, #142c5c));
  --compound-result: var(--background-color--background-secondary, var(--base-color-brand--blue-zodiac, #142c5c));
  --compound-result-ink: var(--text-color--text-secondary, var(--base-color-neutral--white, #fff));
  --compound-result-line: var(--background-color--background-alternate, var(--base-color-brand--blue-zodiac-light, #17336b));
  --compound-cta-bg: var(--background-color--background-primary, var(--base-color-neutral--white, #fff));
  --compound-cta-text: var(--link-color--link-primary, var(--text-color--text-primary, #142c5c));
  /* Site scale: 1rem cards, .5rem buttons/controls, .25rem small chrome */
  --compound-radius: 1rem;
  --compound-radius-control: 0.5rem;
  --compound-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --compound-font: Generalsans, Arial, sans-serif;
  --compound-font-heading: Gambetta, Georgia, sans-serif;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --control-height: 3rem;
  box-sizing: border-box;
  width: 100%;
  font-family: var(--compound-font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--compound-ink);
}

.yK98A86Ps9n_ZedrUUEU *,
.yK98A86Ps9n_ZedrUUEU *::before,
.yK98A86Ps9n_ZedrUUEU *::after {
  box-sizing: border-box;
}

/* No overflow:hidden — it would clip the dropdown menus. The results panel
   rounds its own corners instead. */
.nzjAewQa0MnlVVXAZT7s {
  background: var(--compound-card);
  border: 1px solid var(--compound-line);
  border-radius: var(--compound-radius);
}

.trV3mK471GMCvWX_Ybnl {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0;
  align-items: stretch;
}

.ykWY9oSzcljwl4WKgc4c,
.Yaa2tqDwoMzi2qvYkFIq {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-5);
  min-width: 0;
}

.rau4vOWIN1NbJe9eeDGa {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  min-width: 0;
}

/* Paired fields. Its children are .field, so the gap is the only difference
   from stacking them. */
.p35i4O3wa7Oo1ID8Rp8c {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: start;
}

/* Matches the site's .form_label */
.ne5J9jZ9FLK_V6gHXaMV {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--compound-ink);
}

.h6dDmTW3OPHvH16hH6z9 {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--control-height);
  border: 1px solid var(--compound-line);
  border-radius: var(--compound-radius-control);
  background: var(--compound-fg);
  overflow: hidden;
}

._0KuIK9D9vEFlAX92qf5,
.LXBbnSt591m_q49QPBR3 {
  flex-shrink: 0;
  padding: 0 var(--space-3);
  color: var(--compound-muted);
  font-weight: 600;
}

.C0PRV7gdtrpqg4ZDKry5 {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--compound-ink);
  padding: var(--space-3);
}

._0KuIK9D9vEFlAX92qf5 + .C0PRV7gdtrpqg4ZDKry5 {
  padding-left: 0;
}

.C0PRV7gdtrpqg4ZDKry5:has(+ .LXBbnSt591m_q49QPBR3) {
  padding-right: 0;
}

.C0PRV7gdtrpqg4ZDKry5:focus {
  outline: none;
}

.h6dDmTW3OPHvH16hH6z9:focus-within {
  border-color: var(--compound-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--compound-accent) 18%, transparent);
}

/* Custom listbox rather than a native select: the native option popup is drawn
   by the OS outside the shadow root and can't take any of these styles. */
.lNcC8DHfxqof3Ui9fkQQ {
  position: relative;
}

.kub0Zaif0GyYMYs3gZLw {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
  min-height: var(--control-height);
  padding: var(--space-3);
  border: 1px solid var(--compound-line);
  border-radius: var(--compound-radius-control);
  background: var(--compound-fg);
  color: var(--compound-ink);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.4s var(--compound-ease);
}

/* Two-class specificity (0,2,0) so a host site's `button { border: 0 }` normalize
   can't strip these, even if applyTagSelectors is turned back on. */
.lNcC8DHfxqof3Ui9fkQQ .kub0Zaif0GyYMYs3gZLw,
.GxwRI1Q2CEJImK9Tc9Pj .Y4TXjMdVSktSThn18Fsd,
.GxwRI1Q2CEJImK9Tc9Pj .q5WhX3mHg6kIDLNxL4Dy {
  border-width: 1px;
  border-style: solid;
}

.kub0Zaif0GyYMYs3gZLw:hover {
  border-color: var(--compound-accent);
}

.kub0Zaif0GyYMYs3gZLw:focus-visible {
  outline: 2px solid var(--compound-accent);
  outline-offset: 2px;
}

.kub0Zaif0GyYMYs3gZLw[aria-expanded='true'] {
  border-color: var(--compound-accent);
}

.T5rmeneuNKwzrEpLUleW {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  color: var(--compound-muted);
  pointer-events: none;
  transition: transform 0.2s var(--compound-ease);
}

.kub0Zaif0GyYMYs3gZLw[aria-expanded='true'] .T5rmeneuNKwzrEpLUleW {
  transform: rotate(180deg);
}

/* Same border, radius and fill as the control; shadow uses the site's card tokens. */
.cCdTNEKd1oUw0HLSjJj7 {
  position: absolute;
  top: calc(100% + var(--space-1));
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: var(--space-1);
  list-style: none;
  background: var(--compound-fg);
  border: 1px solid var(--compound-line);
  border-radius: var(--compound-radius-control);
  box-shadow: 0 var(--_card-shadow---shadow-y, 12px) var(--_card-shadow---shadow-blur, 16px)
    var(--_card-shadow---shadow-size, -4px) var(--_card-shadow---shadow-colour, #142c5c14);
}

.cCdTNEKd1oUw0HLSjJj7:focus {
  outline: none;
}

.e7GFji6NOJRgTl_TCBnr,
.xUIDG_S_DG_8HdMokJ_g {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--space-1);
  color: var(--compound-ink);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s var(--compound-ease);
}

.xUIDG_S_DG_8HdMokJ_g {
  background: color-mix(in srgb, var(--compound-accent) 10%, transparent);
}

.e7GFji6NOJRgTl_TCBnr[aria-selected='true'],
.xUIDG_S_DG_8HdMokJ_g[aria-selected='true'] {
  font-weight: 600;
}

.VLNCBvQQzSO9H8DzWeUw {
  display: flex;
  flex-shrink: 0;
  color: var(--compound-accent);
}

/* Four contribution frequencies read better as one row of buttons than a
   dropdown: they are the control people reach for most. */
.GxwRI1Q2CEJImK9Tc9Pj {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  align-items: stretch;
}

.Y4TXjMdVSktSThn18Fsd,
.q5WhX3mHg6kIDLNxL4Dy {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  border: 1px solid var(--compound-line);
  background: transparent;
  color: var(--compound-ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  min-height: var(--control-height);
  padding: var(--space-2);
  border-radius: var(--compound-radius-control);
  cursor: pointer;
  transition: background-color 0.4s var(--compound-ease),
    border-color 0.4s var(--compound-ease), color 0.4s var(--compound-ease);
}

.Y4TXjMdVSktSThn18Fsd:hover {
  border-color: var(--compound-accent);
}

.Y4TXjMdVSktSThn18Fsd:focus-visible,
.q5WhX3mHg6kIDLNxL4Dy:focus-visible {
  outline: 2px solid var(--compound-accent);
  outline-offset: 2px;
}

.q5WhX3mHg6kIDLNxL4Dy {
  background: var(--compound-button-bg);
  border-color: var(--compound-button-border);
  color: var(--compound-button-text);
}

.Yaa2tqDwoMzi2qvYkFIq {
  background: var(--compound-result);
  color: var(--compound-result-ink);
  justify-content: space-between;
  /* -1px so the inner radius nests inside the card's 1px border */
  border-radius: 0 calc(var(--compound-radius) - 1px) calc(var(--compound-radius) - 1px) 0;
}

.G1QmIaF7MBeB8wlcEGeI {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}

.CFXsF2PAQJgcZ4Y9njQQ {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.n4ruMiP8_e1OoRi2XbTB,
.bld7YnvIMRQxBBGBeffs,
.QYhq2lfN8ZdRu3uRW0_g {
  margin: 0;
}

.n4ruMiP8_e1OoRi2XbTB {
  font-size: 0.95rem;
  opacity: 0.85;
}

.bld7YnvIMRQxBBGBeffs {
  font-family: var(--compound-font-heading);
  font-size: clamp(2.1rem, 4.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.QYhq2lfN8ZdRu3uRW0_g {
  font-size: 0.95rem;
  opacity: 0.8;
}

.qeMMmDuvQRF9QrclR9zj {
  display: grid;
  gap: 0;
  margin: 0;
}

._57qadGerIuH_UtwuFKvs {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  align-items: baseline;
  padding-block: var(--space-3);
  border-top: 1px solid var(--compound-result-line);
}

._57qadGerIuH_UtwuFKvs dt {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.78;
}

._57qadGerIuH_UtwuFKvs dd {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}

/* Split of the final balance, in the two colours the schedule reuses. */
.unJ025J5Nk043s09uII2 {
  display: flex;
  height: 0.5rem;
  border-radius: var(--space-1);
  overflow: hidden;
  background: var(--compound-result-line);
}

.OSb40AufOBdYxnb4Ej4r,
.S0LwPqvAIO2uQvXVRW12 {
  height: 100%;
}

.OSb40AufOBdYxnb4Ej4r {
  background: color-mix(in srgb, var(--compound-result-ink) 45%, transparent);
}

.S0LwPqvAIO2uQvXVRW12 {
  background: var(--compound-result-ink);
}

.ksO2QrICPVtimFEDJKYg {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.85;
}

.xju1l7IaippZ1dpOBBbT {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.ecfP3fVp4xdSDlOXXXd8,
.gla72fYLQwgX62gvDWVq {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: var(--space-1);
  flex-shrink: 0;
}

.ecfP3fVp4xdSDlOXXXd8 {
  background: color-mix(in srgb, var(--compound-result-ink) 45%, transparent);
}

.gla72fYLQwgX62gvDWVq {
  background: var(--compound-result-ink);
}

/* Year-by-year table, collapsed by default: useful to a few people, noise for
   the rest. Sits in the form column, so it takes the light panel's colours. */
.M6Hv_GEWf5qYw3PajowM {
  margin: 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--compound-line);
  font-size: 0.85rem;
  color: var(--compound-ink);
}

.OpkaU5jowFCLL0rvCGhA {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--compound-ink);
  list-style: none;
}

.OpkaU5jowFCLL0rvCGhA::-webkit-details-marker {
  display: none;
}

.OpkaU5jowFCLL0rvCGhA::before {
  content: '';
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-right: var(--space-2);
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translateY(-0.1em);
  transition: transform 0.2s var(--compound-ease);
}

.M6Hv_GEWf5qYw3PajowM[open] .OpkaU5jowFCLL0rvCGhA::before {
  transform: rotate(45deg) translateY(-0.1em);
}

.OpkaU5jowFCLL0rvCGhA:focus-visible {
  outline: 2px solid var(--compound-accent);
  outline-offset: 2px;
  border-radius: var(--space-1);
}

/* Caps the drop-down at roughly eight rows so a 50-year run scrolls in place
   rather than stretching the form column past the results panel. */
.bzI8UOF8qCpOAOz9YmPs {
  margin-top: var(--space-3);
  max-height: 16rem;
  overflow: auto;
}

.qvz_cVjqGERMmJD_DWao {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.qvz_cVjqGERMmJD_DWao th,
.qvz_cVjqGERMmJD_DWao td {
  padding: var(--space-2) var(--space-2);
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--compound-line);
}

.qvz_cVjqGERMmJD_DWao th:first-child,
.qvz_cVjqGERMmJD_DWao td:first-child {
  text-align: left;
  padding-left: 0;
}

.qvz_cVjqGERMmJD_DWao th:last-child,
.qvz_cVjqGERMmJD_DWao td:last-child {
  padding-right: 0;
}

/* Sticky header needs an opaque fill of its own: rows scroll underneath it. */
.qvz_cVjqGERMmJD_DWao th {
  position: sticky;
  top: 0;
  background: var(--compound-card);
  color: var(--compound-muted);
  font-weight: 600;
  font-size: 0.8rem;
}

.qvz_cVjqGERMmJD_DWao tbody tr:last-child td {
  border-bottom: 0;
}

/* Mirrors the site's .button with the .is-dark colour variant, since the CTA
   sits on the dark results panel. Circle hover replaces the site's IX2 version,
   which can't run inside the component's shadow root. */
.u_ZksPhbbPNvj5k5gqcX {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  border: 1px solid var(--compound-cta-bg);
  border-radius: var(--compound-radius-control);
  background: var(--compound-cta-bg);
  color: var(--compound-cta-text);
  padding: var(--space-2) var(--space-4);
  min-height: var(--control-height);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.4s var(--compound-ease),
    border-color 0.4s var(--compound-ease), color 0.4s var(--compound-ease);
  position: relative;
  overflow: hidden;
  margin-top: var(--space-5);
}

.vZDWlQ3qEfScJWq76guQ {
  z-index: 1;
  pointer-events: none;
  position: relative;
}

/* Grows via clip-path, not a scaled transform. The span already fills the
   button exactly, so nothing can escape the rounded clip mid-transition.
   Origin comes from the cursor via --cta-x/--cta-y, centre for keyboard focus.
   150% so the circle still reaches the far corner from an edge origin. */
.de86OwIYl7bGglB_GJPs {
  position: absolute;
  inset: 0;
  background: var(--compound-result);
  pointer-events: none;
  clip-path: circle(0% at var(--cta-x, 50%) var(--cta-y, 50%));
  transition: clip-path 0.4s var(--compound-ease);
}

.u_ZksPhbbPNvj5k5gqcX:hover,
.u_ZksPhbbPNvj5k5gqcX:focus-visible {
  color: var(--compound-result-ink);
  outline: none;
}

.u_ZksPhbbPNvj5k5gqcX:hover .de86OwIYl7bGglB_GJPs,
.u_ZksPhbbPNvj5k5gqcX:focus-visible .de86OwIYl7bGglB_GJPs {
  clip-path: circle(150% at var(--cta-x, 50%) var(--cta-y, 50%));
}

.u_ZksPhbbPNvj5k5gqcX:focus-visible {
  outline: 2px solid var(--compound-result-ink);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .u_ZksPhbbPNvj5k5gqcX,
  .de86OwIYl7bGglB_GJPs,
  .T5rmeneuNKwzrEpLUleW,
  .e7GFji6NOJRgTl_TCBnr,
  .xUIDG_S_DG_8HdMokJ_g,
  .Y4TXjMdVSktSThn18Fsd,
  .q5WhX3mHg6kIDLNxL4Dy,
  .OpkaU5jowFCLL0rvCGhA::before {
    transition: none;
  }
}

@media (max-width: 800px) {
  .trV3mK471GMCvWX_Ybnl {
    grid-template-columns: 1fr;
  }

  .Yaa2tqDwoMzi2qvYkFIq {
    border-radius: 0 0 calc(var(--compound-radius) - 1px) calc(var(--compound-radius) - 1px);
    justify-content: flex-start;
  }
}

/* Site's mobile breakpoint. Paired fields stack rather than squeezing two
   controls into a phone width; the four frequencies go two-up. */
@media (max-width: 479px) {
  .p35i4O3wa7Oo1ID8Rp8c {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .GxwRI1Q2CEJImK9Tc9Pj {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

