/* Shared native accordion. */
.opportunity-accordion__content {
  max-width: 100%;
  margin-inline: auto;
}
.opportunity-accordion__content > :first-child {
  margin-top: 0;
}

.opportunity-accordion__list {
  --opportunity-accordion-gap: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--opportunity-accordion-gap);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #fff;
  list-style: none;
  gap: 0px;
}

.opportunity-accordion__list--on-teal {
  background: transparent;
}
.opportunity-accordion__list--on-teal .opportunity-accordion__item,
.opportunity-accordion__list--on-teal .opportunity-accordion__item > summary,
.opportunity-accordion__list--on-teal .opportunity-accordion__answer {
  background: #fff;
}

.opportunity-accordion__item {
  flex: 0 0 100%;
  min-width: 0;
  overflow: hidden;
  border-bottom: 2px solid var(--brand-pale);
  list-style: none;
  border: none;
}
.opportunity-accordion__item > summary {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--brand-pale);
  color: var(--brand-purple);
  cursor: pointer;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.25rem, 2.222vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  list-style: none;
}
.opportunity-accordion__list--on-teal
  .opportunity-accordion__item
  > summary:hover {
  background: #fff;
}
.opportunity-accordion__item > summary::-webkit-details-marker {
  display: none;
}
.opportunity-accordion__item > summary::after {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  place-items: center;
  border-radius: 1rem;
  background: var(--primary);
  color: var(--brand-purple);
  content: "+";
  font-family: "Manrope", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}
.opportunity-accordion__item > summary:hover {
  background: #d3f1f3;
}
.opportunity-accordion__item > summary:focus-visible {
  outline: 3px solid var(--brand-purple);
  outline-offset: -3px;
}
.opportunity-accordion__item[open] > summary::after {
  content: "\2013";
}

.opportunity-accordion__answer {
  padding: 20px 40px 40px;
  border: none;
  color: var(--brand-purple);
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.05rem, 1.806vw, 1.625rem);
  font-weight: 400;
  line-height: 1.4;
}
.opportunity-accordion__answer > :first-child {
  margin-top: 0;
}
.opportunity-accordion__answer > :last-child {
  margin-bottom: 0;
}
.opportunity-accordion__answer p {
  margin: 0 0 18px;
}
.opportunity-accordion__answer ul {
  margin: 18px 0;
  padding-left: 1.25em;
}
.opportunity-accordion__answer li + li {
  margin-top: 12px;
}
.opportunity-accordion__answer a {
  color: inherit;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (width <= 767px) {
  .opportunity-accordion__list {
    --opportunity-accordion-gap: 12px;
    margin-bottom: 2rem;
  }
  .opportunity-accordion__item > summary {
    min-height: 4rem;
  }
}

@media (width >= 768px) {
  .opportunity-accordion__item > summary {
    min-height: 5rem;
  }
  .opportunity-accordion__list--two-columns,
  .opportunity-accordion__list--three-columns {
    max-width: 1200px;
  }
  .opportunity-accordion__list--two-columns > .opportunity-accordion__item,
  .opportunity-accordion__list--three-columns > .opportunity-accordion__item {
    flex-basis: calc((100% - var(--opportunity-accordion-gap)) / 2);
  }
}

@media (width >= 1200px) {
  .opportunity-accordion__list--three-columns {
    max-width: 1400px;
  }
  .opportunity-accordion__list--three-columns > .opportunity-accordion__item {
    flex-basis: calc((100% - 2 * var(--opportunity-accordion-gap)) / 3);
  }
}

/* Shared buttons and carousel controls. */
.btn {
  min-width: 189px;
  padding: 1.3125rem 1.5rem;
  background: var(--brand-purple);
  color: #fff;
  border: 2px solid var(--brand-purple);
  border-radius: var(--radius-pill);
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.72px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;

  &:hover {
    background: transparent;
    color: var(--brand-purple);
    text-decoration: underline;
    transform: translateY(-2px);
  }
}
.swiper-carousel-controls {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin-top: 40px;
}

.swiper-carousel-controls__button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-width: 158px;
  min-height: 60px;
  padding: 3px;
  background: var(--brand-purple);
  color: #fff;
  border: 2px solid var(--brand-purple);
  border-radius: var(--radius-pill);
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 0.8;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;

  &:hover,
  &:focus,
  &:focus-visible,
  &:focus-within {
    background: transparent;
    color: var(--brand-purple);
    border-color: var(--brand-purple);
    transform: translateY(-2px);

    & .swiper-carousel-controls__button-icon {
      background: var(--brand-purple);
      color: #fff;
    }
  }

  &:focus-visible {
    outline: 3px solid var(--brand-teal);
    outline-offset: 3px;
  }

  &:disabled,
  &.swiper-button-disabled {
    opacity: 0.4;
    cursor: default;
  }
}

.swiper-carousel-controls__button-label {
  display: block;
  width: 100%;
  padding: 0;
  text-align: center;
}

.swiper-carousel-controls__button-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  background: #fff;
  color: var(--brand-purple);
  border-radius: 50%;
  transition:
    background-color 160ms ease,
    color 160ms ease;

  & svg {
    display: block;
  }
}

@media (width <= 520px) {
  .swiper-carousel-controls {
    gap: 12px;
    margin-top: 24px;
  }

  .swiper-carousel-controls__button {
    min-width: 140px;
    min-height: 52px;
    padding: 5px;
    font-size: 13px;
  }

  .swiper-carousel-controls__button-icon {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .swiper-carousel-controls__button,
  .swiper-carousel-controls__button-icon {
    transition-duration: 0.01ms !important;
  }

  .btn:hover,
  .swiper-carousel-controls__button:hover,
  .swiper-carousel-controls__button:focus,
  .swiper-carousel-controls__button:focus-visible,
  .swiper-carousel-controls__button:focus-within {
    transform: none;
  }
}

/* Shared editorial landing-page components. */
.editorial-section {
  padding-block: clamp(3.5rem, 7vw, 7rem);

  &.editorial-section--pale {
    background: var(--brand-pale);
  }

  &.editorial-section--statement {
    position: relative;
    overflow: hidden;

    & .editorial-statement {
      position: relative;
      z-index: 1;
    }

    & .editorial-statement__ring {
      position: absolute;
      z-index: 0;
      top: 17%;
      right: clamp(-19rem, -16vw, -11rem);
      width: clamp(20rem, 32vw, 34rem);
      height: clamp(20rem, 32vw, 34rem);
      transform: translateY(-50%);
      pointer-events: none;
    }
  }

  & .editorial-section__inner {
    width: min(
      var(--page-max-width),
      calc(100% - (2 * clamp(1rem, 5vw, 2rem)))
    );
    margin-inline: auto;
    padding-inline: clamp(0.5rem, 4vw, 3rem);
  }

  & .editorial-section__title {
    max-width: none;
    margin-bottom: 4.5rem;
    color: var(--brand-purple);
  }

  & .editorial-accent {
    color: var(--brand-teal);
  }

  & mark {
    padding-inline: 0.15em;
    background: var(--brand-teal);
    color: #fff;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  & .editorial-highlight {
    display: inline-block;
    margin-top: 0.16em;
    padding-inline: 0.15em;
    background: var(--brand-teal);
    color: #fff;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  & .editorial-statement {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
    gap: clamp(2rem, 6vw, 8rem);
    align-items: center;

    & .editorial-statement__copy {
      margin: 0;
      color: var(--brand-purple);
      font-family: "Manrope", sans-serif;
      font-size: clamp(1.25rem, 5vw, 1.875rem);
      font-weight: 800;
      line-height: 1.35;

      & p {
        margin: 0;
        line-height: inherit;

        & + p {
          margin-top: 0.75em;
        }

        &:last-child {
          margin-bottom: 0;
        }
      }
    }
  }

  & .editorial-figure {
    margin: 0;

    & img {
      display: block;
      width: 100%;
      height: auto;
    }
  }

  & .editorial-split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(2rem, 7vw, 7rem);
    align-items: start;

    & .editorial-split__heading {
      margin: 0 0 clamp(2rem, 4vw, 4rem);
      color: var(--brand-purple);
      font-size: clamp(3rem, 5.5vw, 5.5rem);
    }

    & .editorial-split__copy {
      max-width: 50rem;
      color: var(--brand-purple);
      font-size: clamp(1rem, 1.5vw, 1.35rem);
      line-height: 1.5;

      & p {
        margin: 0 0 1.35rem;

        &:last-child {
          margin-bottom: 0;
        }
      }
    }

    & .editorial-split__copy--emphasis {
      font-weight: 800;
    }
  }

  & .feature-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 1.5vw, 1.4rem);
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
  }

  & .feature-card {
    display: flex;
    min-height: 20rem;
    flex-direction: column;
    border: 4px solid color-mix(in srgb, var(--brand-teal) 60%, #fff);
    background: #fff;

    & .feature-card__heading {
      margin: 0;
      padding: clamp(1.5rem, 2.5vw, 2.4rem);
      background: var(--brand-teal);
      color: #fff;
      font-size: clamp(2rem, 3.4vw, 3.4rem);
      text-align: center;
    }

    & .feature-card__copy {
      margin: auto;
      padding: clamp(1.75rem, 3vw, 3rem);
      max-width: 34rem;
      color: var(--brand-purple);
      font-size: clamp(1.05rem, 1.4vw, 1.4rem);
      font-weight: 700;
      line-height: 1.4;
      letter-spacing: -0.02em;
      text-align: center;
    }
  }
}

.editorial-display {
  margin-top: 0;
  color: var(--brand-purple);
  font-family: "Reddit Sans Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.editorial-image-hero {
  --editorial-image-hero-min-block-size: clamp(28rem, 37vw, 44rem);
  --editorial-image-hero-image-position: center 42%;
  --editorial-image-hero-label-surface: var(--brand-teal);
  --editorial-image-hero-label-color: var(--brand-purple);
  position: relative;
  display: flex;
  min-block-size: var(--editorial-image-hero-min-block-size);
  align-items: end;
  padding-block: clamp(2rem, 4vw, 4rem);
  overflow: hidden;
  isolation: isolate;

  &::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      linear-gradient(90deg, rgb(8 27 40 / 35%), transparent 65%),
      linear-gradient(0deg, rgb(0 0 0 / 20%), transparent 45%);
    content: "";
  }

  & .editorial-image-hero__image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--editorial-image-hero-image-position);
  }

  & > .editorial-section__inner {
    width: min(
      var(--page-max-width),
      calc(100% - (2 * clamp(1rem, 5vw, 2rem)))
    );
    margin-inline: auto;
  }

  & .editorial-image-hero__label {
    display: inline-block;
    margin: 0;
    padding: clamp(1.25rem, 2vw, 1.875rem);
    background: var(--editorial-image-hero-label-surface);
    color: var(--editorial-image-hero-label-color);
    font-size: clamp(3rem, 6vw, 5rem);
  }

  & .editorial-image-hero__label-emphasis {
    color: #fff;
  }
}

@media (width <= 1200px) {
  .editorial-section .editorial-statement {
    grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  }

  .editorial-section .editorial-statement__media {
    max-width: 20rem;
  }
}

@media (width <= 900px) {
  .editorial-section {
    & .editorial-statement,
    & .editorial-split,
    & .feature-card-grid {
      grid-template-columns: minmax(0, 1fr);
    }

    &.editorial-section--statement {
      & .editorial-statement__media {
        max-width: 20rem;
        justify-self: center;
      }

      & .editorial-statement__ring {
        top: 16%;
        right: -17rem;
        width: 25rem;
        height: 25rem;
      }
    }

    & .feature-card {
      min-height: 0;
    }
  }
}

main.policy-template-new .white-info-block.card-with-image {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
main.policy-template-new .white-info-block.card-with-image h5 {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  text-transform: initial;
  margin-top: 40px;
  color: #443a84;
  padding: 0 20px;

  @media (min-width: 768px) {
    font-size: 24px;
  }
}
main.policy-template-new .white-info-block.card-with-image p {
  font-size: 18px;
  font-weight: 400;
  color: #443a84;
  line-height: 1.3;
  padding: 0 20px;

  @media (min-width: 768px) {
    font-size: 20px;
  }
}

main.policy-template-new .card-wrapper {
  display: flex;
  row-gap: 40px;
  column-gap: 44px;
  flex-wrap: wrap;
}
main.policy-template-new .card-wrapper .white-info-block.card-with-image {
  flex: 1 1 100%;
  margin: 0;
  max-width: 100%;

  @media (min-width: 768px) {
    flex: 1 1 calc(50% - 22px);
    max-width: calc(50% - 22px);
  }
}

/* CALCULATOR COMPONENT STYLING -------------------------------------------*/

/* --- Design Tokens --- */
#tr-calc-wrapper {
  --tr-navy: #443a84;
  --tr-teal: #00ede1;
  --tr-teal-light: #dffcfb;
  --tr-teal-20: rgba(0, 237, 225, 0.2);
  --tr-teal-10: rgba(0, 237, 225, 0.1);
  --tr-white: #ffffff;
  --tr-grey-bg: #f5f5f5;
  --tr-text: #443a84;
  --tr-text-muted: #817c8d;
  --tr-text-muted-50: rgba(129, 124, 141, 0.5);
  --tr-success: #10b981;
  --tr-danger: #ef4444;
  --tr-radius-pill: 40px;
  --tr-radius-card: 20px;
  --tr-radius-btn: 30px;
  --tr-font: "Manrope", system-ui, -apple-system, sans-serif;
  --tr-font-display: "Georgia", serif;
  --tr-max-width: 1200px;
  --tr-calc-width: 860px;
  --tr-transition: 0.3s ease;

  /* Full-bleed: break out of NB's content container */
  font-family: var(--tr-font);
  color: var(--tr-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--tr-white);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: -25px;
}

/* ============================================
   CALCULATOR SECTION
   ============================================ */
#tr-calc-wrapper .tr-calculator {
  background-color: var(--tr-teal-light);
  padding: 60px 40px 80px;
}

#tr-calc-wrapper .tr-calculator__inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* --- Steps --- */
#tr-calc-wrapper .tr-step {
  animation: tr-fadeIn 0.4s ease;
}

#tr-calc-wrapper .tr-step--hidden {
  display: none !important;
}

@keyframes tr-fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#tr-calc-wrapper .tr-step__question {
  font-family: var(--tr-font);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--tr-navy);
  text-align: center;
  margin-bottom: 30px;
  text-transform: initial;
}

/* ============================================
   STEP 1: KIWI TYPE GRID
   ============================================ */
#tr-calc-wrapper .tr-kiwi-grid {
  display: grid;
  grid-template-columns: 145px repeat(3, 1fr);
  gap: 20px;
  max-width: 828px;
  margin: 0 auto;
}
#tr-calc-wrapper .tr-kiwi-grid .icon-home {
  @media (max-width: 960px) {
    margin-top: 40px;
  }
}

#tr-calc-wrapper .tr-kiwi-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background-color: var(--tr-teal-20);
  border-radius: var(--tr-radius-card);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--tr-transition);
  gap: 24px;
  text-align: center;
  font-family: var(--tr-font);
  outline: none;
  width: 100%;
}

#tr-calc-wrapper .tr-kiwi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 237, 225, 0.25);
  background-color: rgba(0, 237, 225, 0.35);
}

#tr-calc-wrapper .tr-kiwi-card:focus-visible {
  box-shadow: 0 0 0 3px var(--tr-teal);
}

#tr-calc-wrapper .tr-kiwi-card.is-selected {
  background-color: rgba(0, 237, 225, 0.45);
  border-color: var(--tr-teal);
  box-shadow: 0 0 0 3px rgba(0, 237, 225, 0.3);
}

#tr-calc-wrapper .tr-kiwi-card__icon {
  width: 24px;
  height: 24px;
  background-color: #fff;
  border-radius: 50px;
  position: relative;
}

#tr-calc-wrapper .tr-kiwi-card:hover .tr-kiwi-card__icon::after {
  opacity: 1;
}

#tr-calc-wrapper .tr-kiwi-card__icon::after {
  content: "";
  width: 14px;
  height: 14px;
  background-color: #443a84;
  border-radius: 50px;
  display: block;

  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.2s;
}

#tr-calc-wrapper .tr-kiwi-card__label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--tr-navy);
}

/* ============================================
   STEP 2 & 3: INPUT FIELDS
   ============================================ */
#tr-calc-wrapper .tr-income-row,
#tr-calc-wrapper .tr-land-row {
  max-width: 720px;
  margin: 0 auto 31px;
  display: flex;
  align-items: center;
  gap: 30px;
}

#tr-calc-wrapper .tr-input-label {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tr-navy);
  white-space: nowrap;
  text-align: right;
  flex-shrink: 0;
  max-width: 206px;
  white-space: normal;
}

#tr-calc-wrapper .tr-input-group {
  flex: 1;
}

#tr-calc-wrapper .tr-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

#tr-calc-wrapper .tr-input-prefix {
  position: absolute;
  left: 24px;
  font-size: 20px;
  font-weight: 700;
  color: var(--tr-text-muted);
  pointer-events: none;
  z-index: 1;
}

#tr-calc-wrapper .tr-input {
  width: 100%;
  padding: 18px 24px 18px 48px;
  font-size: 20px;
  font-family: var(--tr-font);
  font-weight: 700;
  color: var(--tr-navy);
  background-color: var(--tr-white);
  border: 2px solid transparent;
  border-radius: var(--tr-radius-pill);
  outline: none;
  transition:
    border-color var(--tr-transition),
    box-shadow var(--tr-transition);
}

#tr-calc-wrapper .tr-input::placeholder {
  color: var(--tr-text-muted-50);
  font-weight: 700;
}

#tr-calc-wrapper .tr-input:focus {
  border-color: var(--tr-teal);
  box-shadow: 0 0 0 4px rgba(0, 237, 225, 0.3);
}

/* Land input row */
#tr-calc-wrapper .tr-land-row {
  max-width: 860px;
}

#tr-calc-wrapper .tr-land-input-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

#tr-calc-wrapper .tr-land-input-group .tr-input-group {
  flex: 1;
  min-width: 280px;
}

/* --- Farmland Toggle --- */
#tr-calc-wrapper .tr-farmland-toggle {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 18px;
  background-color: var(--tr-teal-20);
  border-radius: var(--tr-radius-pill);
  border: none;
  cursor: pointer;
  transition: background-color var(--tr-transition);
  white-space: nowrap;
  height: 62px;
  font-family: var(--tr-font);
}

#tr-calc-wrapper .tr-farmland-toggle:hover {
  background-color: rgba(0, 237, 225, 0.35);
}

#tr-calc-wrapper .tr-farmland-toggle__label {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tr-navy);
}

#tr-calc-wrapper .tr-farmland-toggle__indicator {
  width: 24px;
  height: 24px;
  background: var(--tr-white);
  border-radius: 9999px;
  position: relative;
  transition: all var(--tr-transition);
  flex-shrink: 0;
}

#tr-calc-wrapper .tr-farmland-toggle.is-active .tr-farmland-toggle__indicator {
  background: var(--tr-teal);
}

#tr-calc-wrapper
  .tr-farmland-toggle.is-active
  .tr-farmland-toggle__indicator::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 700;
  color: var(--tr-navy);
}

/* --- Footnotes --- */
#tr-calc-wrapper .tr-footnotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 32px 0 0 70px;
}

#tr-calc-wrapper .tr-footnote {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.01em;
  color: var(--tr-navy);

  position: relative;
}

#tr-calc-wrapper .tr-footnote:nth-child(1) {
  max-width: 380px;
}
#tr-calc-wrapper .tr-footnote:nth-child(2) {
  max-width: 343px;
}

#tr-calc-wrapper .tr-footnote__marker {
  font-weight: 400;

  position: absolute;
  left: -20px;
  top: 1px;
}

/* ============================================
   NAVIGATION BUTTONS
   ============================================ */
#tr-calc-wrapper .tr-nav-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 106px;
}

#tr-calc-wrapper .tr-nav-buttons--center {
  justify-content: center;
}

#tr-calc-wrapper .tr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  background-color: var(--tr-teal-20);
  border: none;
  border-radius: var(--tr-radius-btn);
  font-family: var(--tr-font);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--tr-navy);
  cursor: pointer;
  transition: all var(--tr-transition);
}

#tr-calc-wrapper .tr-btn:hover {
  background-color: rgba(0, 237, 225, 0.4);
  transform: translateY(-1px);
}

#tr-calc-wrapper .tr-btn:active {
  transform: translateY(0);
}

#tr-calc-wrapper .tr-btn svg {
  width: 21px;
  height: 21px;
  fill: none;
}

/* ============================================
   STEP 4: RESULTS
   ============================================ */
#tr-calc-wrapper .tr-results__intro {
  font-family: var(--tr-font);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  color: var(--tr-navy);
  text-align: center;
  margin-bottom: 32px;
}

#tr-calc-wrapper .tr-results__difference {
  text-align: center;
  margin-bottom: 30px;
}

#tr-calc-wrapper .tr-results__diff-amount {
  font-family: var(--tr-font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--tr-navy);
}

#tr-calc-wrapper .tr-results__diff-amount--savings {
  color: #11c2b6;
  font-size: 42px;
  font-weight: 700;
  font-family: "Manrope", sans-serif;
}

#tr-calc-wrapper .tr-results__diff-amount--cost {
  color: #f1598b;
  /*font-family: "Signo", sans-serif;*/
}

#tr-calc-wrapper .tr-results__pw {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-top: 8px;
}

#tr-calc-wrapper .tr-results__bill-heading {
  font-family: var(--tr-font);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  color: var(--tr-navy);
  text-align: center;
  margin-bottom: 32px;
}

/* --- Result Cards --- */
#tr-calc-wrapper .tr-result-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-bottom: 40px;
}

#tr-calc-wrapper .tr-result-card {
  border-radius: var(--tr-radius-card);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  transition: transform var(--tr-transition);
}

#tr-calc-wrapper .tr-result-card:hover {
  transform: translateY(-2px);
}

#tr-calc-wrapper .tr-result-card--current {
  background-color: var(--tr-grey-bg);
}

#tr-calc-wrapper .tr-result-card--current .tr-result-card__title,
#tr-calc-wrapper .tr-result-card--current .tr-result-card__amount,
#tr-calc-wrapper .tr-result-card--current .tr-result-card__breakdown {
  color: var(--tr-text-muted);
}

#tr-calc-wrapper .tr-result-card--new {
  background-color: var(--tr-white);
}

#tr-calc-wrapper .tr-result-card__title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--tr-navy);
}

#tr-calc-wrapper .tr-result-card__amount {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--tr-navy);
}

#tr-calc-wrapper .tr-result-card__breakdown {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 16px;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--tr-navy);
}

#tr-calc-wrapper .tr-result-card__breakdown a {
  color: var(--tr-navy);
  text-decoration: underline;
  text-decoration-color: #443a84;
  transition: opacity var(--tr-transition);
}

#tr-calc-wrapper .tr-result-card__breakdown a:hover {
  opacity: 0.7;
}

#tr-calc-wrapper .tr-result-card__breakdown strong {
  font-weight: 400;
}

/* --- Superannuation Results Messages --- */
#tr-calc-wrapper .tr-super-message {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

#tr-calc-wrapper .tr-super-message__text {
  font-family: var(--tr-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--tr-navy);
  margin-bottom: 20px;
}

#tr-calc-wrapper .tr-super-message__text:last-child {
  margin-bottom: 0;
}

#tr-calc-wrapper .tr-super-message__text strong {
  font-weight: 700;
}

#tr-calc-wrapper .tr-super-message__lvt-highlight {
  font-family: var(--tr-font);
  font-size: 20px;
  font-weight: 700;
  color: var(--tr-navy);
  background-color: var(--tr-teal-20);
  padding: 16px 24px;
  border-radius: var(--tr-radius-card);
  display: inline-block;
  margin: 12px 0 20px;
}

#tr-calc-wrapper .tr-super-message__cta {
  font-family: var(--tr-font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--tr-navy);
  font-style: italic;
  margin-top: 24px;
}

/* ============================================
   NOTES / DISCLAIMER
   ============================================ */
#tr-calc-wrapper .tr-notes {
  background-color: var(--tr-teal-light);
  padding: 97px 40px;
  margin-bottom: -60px;
}

#tr-calc-wrapper .tr-notes__inner {
  max-width: var(--tr-max-width);
  margin: 0 auto;
}

#tr-calc-wrapper .tr-notes__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--tr-navy);
  margin-bottom: 23px;
}

#tr-calc-wrapper .tr-notes__text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--tr-navy);
  margin-bottom: 10px;
  position: relative;
  padding-left: 22px;
}

#tr-calc-wrapper .tr-notes__text::before {
  content: "";
  width: 4px;
  height: 4px;
  background-color: #443a84;
  border-radius: 10px;
  display: block;

  position: absolute;
  left: 5px;
  top: 8px;
}

#tr-calc-wrapper .tr-notes__text a {
  color: var(--tr-navy);
  text-decoration: none;
  transition: color var(--tr-transition);
}

#tr-calc-wrapper .tr-notes__text a:hover {
  color: var(--tr-teal);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  #tr-calc-wrapper .tr-kiwi-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  #tr-calc-wrapper .tr-result-cards {
    grid-template-columns: 1fr;
  }

  #tr-calc-wrapper .tr-footnotes {
    grid-template-columns: 1fr;
  }

  #tr-calc-wrapper .tr-income-row,
  #tr-calc-wrapper .tr-land-row {
    flex-direction: column;
    align-items: stretch;
  }

  #tr-calc-wrapper .tr-input-label {
    text-align: center;
    min-width: unset;
    width: auto;
    max-width: initial !important;
    margin: 0 auto;
  }

  #tr-calc-wrapper .tr-land-input-group {
    flex-direction: column;
  }

  #tr-calc-wrapper .tr-footnotes {
    margin: 32px 0 !important;
  }
  #tr-calc-wrapper .tr-footnote {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  #tr-calc-wrapper .tr-hero {
    padding: 60px 24px 60px;
  }

  #tr-calc-wrapper .tr-hero__headline {
    font-size: 32px;
  }

  #tr-calc-wrapper .tr-hero__description {
    font-size: 16px;
  }

  #tr-calc-wrapper .tr-calculator {
    padding: 40px 20px 60px;
  }

  #tr-calc-wrapper .tr-kiwi-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  #tr-calc-wrapper .tr-kiwi-card {
    padding: 24px 16px;
  }

  #tr-calc-wrapper .tr-results__intro,
  #tr-calc-wrapper .tr-results__bill-heading {
    font-size: 22px;
  }

  #tr-calc-wrapper .tr-results__diff-amount {
    font-size: 28px;
  }

  #tr-calc-wrapper .tr-result-card {
    padding: 20px;
  }

  #tr-calc-wrapper .tr-notes {
    padding: 40px 24px;
  }
}
/*------------------------------------------- CALCULATOR COMPONENT STYLING */

/* ============================================================
   NEW CHARACTERS SECTION COMPONENT
   ============================================================ */
.characters-section {
  background: #fff;
  text-align: center;
  padding: 115px 0 80px !important;

  @media (min-width: 768px) {
    padding: 122px 20px 124px !important;
  }
}
.characters-section__heading {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: #443a84;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
  text-transform: initial;
  font-size: 24px;

  @media (max-width: 1200px) {
    font-size: 20px;
  }
}
.characters-section__subheading {
  font-size: 16px;
  font-weight: 400;
  font-family: 'Manrope', sans-serif;
  color: #443a84;

  @media (min-width: 768px) {
    font-size: 18px;
  }
}

/* Grid: fluid columns — 7 on desktop, adapts down */
.characters-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 60px;
  width: 100%;
}
@media (max-width: 900px) {
  .characters-row {
    max-width: 560px;
  }
}

@media (max-width: 360px) {
  .characters-row {
    grid-template-columns: repeat(2, 1fr);
    max-width: 240px;
  }
}

/* Character button */
.character-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  padding: 0;
  cursor: pointer;
  width: 100%;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  flex: 0 1 calc(50% - 10px);

  @media (min-width: 768px) {
    flex: 0 1 calc(33% - 10px);
  }
  @media (min-width: 991px) {
    flex: 0 1 calc(25% - 10px);
  }
  @media (min-width: 1200px) {
    flex: 0 1 calc(20% - 10px);
  }
  @media (min-width: 1400px) {
    flex: 0 1 calc(13.5% - 10px);
  }
}

.character-btn:focus-visible {
  outline: 3px solid #00ede1;
  outline-offset: 4px;
  border-radius: 8px;
}

/* Portrait: aspect-ratio locks the proportions at any width */
.character-btn__portrait {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 157 / 242;
  border-radius: 12px;
  overflow: hidden;
}
.character-btn__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.2s;

  filter: saturate(0.15) contrast(1) brightness(1.2);
  -webkit-filter: saturate(0.15) contrast(1) brightness(1.2);
}

/* Mouse hover crossfade */
@media (hover: hover) and (pointer: fine) {
  .character-btn:hover img {
    filter: none;
    -webkit-filter: none;
  }
}
.characters-section__artist-credit {
  color: #443a84;
  font-size: 16px;
  font-family: 'Manrope', sans-serif;
  margin-top: 57px;
}
.characters-section__artist-credit a {
  font-weight: 800;
  text-decoration: none;
  color: #443a84;
  font-family: 'Manrope', sans-serif;
}

/* ============================================================
   CHARACTERS LIGHTBOX
   ============================================================ */
.lightbox[aria-label="Character profile"] {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 32px);
}
.lightbox[aria-label="Character profile"][hidden] {
  display: none;
}

/* Backdrop */
.lightbox[aria-label="Character profile"] .lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
  animation: fadeIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Panel — desktop: portrait left + content right */
.lightbox[aria-label="Character profile"] .lightbox__panel {
  position: relative;
  background: #ffffff;
  border-radius: 20px !important;
  width: 100%;
  max-width: 1288px;
  height: 100%;
  max-height: 875px;
  display: grid;
  grid-template-columns: 52% 1fr;
  overflow-x: hidden;
  overflow-y: hidden;
  animation: panelIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

  @media (max-width: 768px) {
    padding: 50px 0 0;
    max-width: 90vw;
  }
}

/* Close button — oversized for touch */
.lightbox[aria-label="Character profile"] .lightbox__close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 14px;
  font-weight: 700;
  color: #8e8e8e;
  letter-spacing: 0.04em;
  z-index: 10;
  padding: 10px 14px;
  min-height: 44px;
  min-width: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.2s,
    background 0.2s;
}
@media (hover: hover) and (pointer: fine) {
  .lightbox[aria-label="Character profile"] .lightbox__close:hover {
    color: #443a84;
    background: #dffcfb;
  }
}

/* Portrait */
.lightbox[aria-label="Character profile"] .lightbox__portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lightbox[aria-label="Character profile"] .lightbox__portrait img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: contain;
  object-position: center;
  animation: portraitIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);

  @media (min-width: 1400px) {
    max-height: 600px;
  }
}

/* Content */
.lightbox[aria-label="Character profile"] .lightbox__content {
  padding: 68px 75px 68px 60px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 92vh;
}
.lightbox[aria-label="Character profile"] .lightbox__name {
  font-family: "Manrope", sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #443a84;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 30px;

  @media (max-width: 768px) {
    margin-bottom: 10px;
  }
}
.lightbox[aria-label="Character profile"] .lightbox__body {
  display: flex;
  flex-direction: column;
  gap: 13px;

  @media (max-width: 768px) {
    max-height: 30vh !important;
    overflow-y: auto;
    padding-right: 30px;
  }
}

.lightbox[aria-label="Character profile"] .lightbox__body::-webkit-scrollbar {
  width: 5px;
}
.lightbox[aria-label="Character profile"]
  .lightbox__body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
.lightbox[aria-label="Character profile"]
  .lightbox__body::-webkit-scrollbar-thumb {
  background: #443a84;
  border-radius: 10px;
}

/* Handle on hover */
.lightbox[aria-label="Character profile"]
  .lightbox__body::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.lightbox[aria-label="Character profile"] .lightbox__body p {
  font-size: 18px;
  line-height: 1.2;
  color: #443a84;
  margin: 0;
}

.lightbox[aria-label="Character profile"] .lightbox__nav {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.lightbox[aria-label="Character profile"] .lightbox__nav-btn {
  flex: 1;
  border-radius: 40px;
  color: #443a84;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
  border: 1px solid #443a84 !important;

  text-transform: uppercase;
  font-family: "Manrope", sans-serif !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.4px;

  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

@media (hover: hover) and (pointer: fine) {
  .lightbox[aria-label="Character profile"] .lightbox__nav-btn:hover {
    background: #00ede1;
    border-color: #00ede1 !important;
  }
}

/* Tablet: stack portrait on top, content below */
@media (max-width: 900px) {
  .lightbox[aria-label="Character profile"] .lightbox__panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .lightbox[aria-label="Character profile"] .lightbox__portrait {
    min-height: clamp(220px, 42vw, 380px);
    max-height: 38vh;
  }
  .lightbox[aria-label="Character profile"] .lightbox__portrait img {
    object-fit: contain;
    object-position: top center;
  }
  .lightbox[aria-label="Character profile"] .lightbox__content {
    max-height: none;
    overflow-y: visible;
    padding: clamp(16px, 3vw, 32px) clamp(20px, 4vw, 36px)
      clamp(24px, 3vw, 40px);
  }
}

/* Mobile: sheet that slides up from bottom */
@media (max-width: 540px) {
  .lightbox[aria-label="Character profile"] .lightbox {
    padding: 0;
    align-items: center;
  }
  .lightbox[aria-label="Character profile"] .lightbox__panel {
    border-radius: 20px 20px 0 0;
    max-height: 80vh;
    animation: panelSlideUp 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding-bottom: 10px;
  }
  .lightbox[aria-label="Character profile"] .lightbox__portrait {
    min-height: clamp(180px, 50vw, 300px);
  }
  .lightbox[aria-label="Character profile"] .lightbox__close {
    top: 10px;
    right: 10px;
  }
}
