/* Policy platform, priority cards, and shared policy-page presentation. Policy grid v2. */

/* Platform accordion */
.platform-container {
  max-inline-size: 1200px;
  margin-inline: auto;
}

.pillar-section {
  margin-block-end: 6rem;

  & h2 {
    margin-block-end: 2.5rem;
    color: var(--secondary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
  }

  @media (width <=768px) {
    margin-block-end: 4rem;
  }
}

.subpillar-group {
  margin-block-end: 3rem;

  & h3 {
    margin-block-end: 1.5rem;
    color: var(--primary);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
  }
}

/* Shared policy priorities */
.shared-policy-priorities {
  padding-block: 2.5rem;

  @media (width >=992px) {
    padding-block: 3rem;
  }

  & .shared-policy-priorities__headline {
    justify-content: center;
    margin-block-end: 3rem;
    color: var(--brand-purple);
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 0.82;
    letter-spacing: 0;

    & .italic {
      font-style: italic;
    }

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

    @media (width >=576px) {
      margin-block-end: 5rem;
    }
  }

  & .shared-policy-priorities__headline-main {
    display: flex;
    align-items: center;
    margin: 0 auto;
    color: var(--brand-teal);

    @media (width >=576px) {
      margin: 0;
      padding-inline-end: 0.8rem;
    }
  }

  & .shared-policy-priorities__headline-emphasis {
    display: block;
    width: fit-content;
    margin: 0.5rem auto 0;
    color: var(--brand-purple);

    @media (width >=576px) {
      margin: 0;
    }
  }

  & .shared-policy-priorities__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;

    @media (width >=768px) {
      grid-template-columns: repeat(2, 1fr);
    }

    @media (width >=992px) {
      grid-template-columns: repeat(3, 1fr);
    }
  }
}

.shared-policy-priorities--policy {
  padding-block: 64px;

  @media (width >=768px) {
    padding-block: 96px;
  }

  & .shared-policy-priorities__grid {
    @media (width >=992px) {
      grid-template-columns: repeat(6, minmax(0, 1fr));
    }
  }

  & .shared-policy-priorities__headline {
    justify-content: initial;
    margin-block-end: 42px;
    color: var(--brand-purple);
    font-family: "Reddit Sans Condensed", sans-serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 0.82;
    text-transform: uppercase;
  }

  & .policy-card {
    @media (width >=992px) {
      grid-column: span 2;
      width: 100%;
      height: 400px;
      aspect-ratio: auto;
    }
  }

  & .policy-card--span-two {
    @media (width >=992px) {
      grid-column: span 4;
    }
  }

  & .policy-card--half-row {
    @media (width >=992px) {
      grid-column: span 3;
    }
  }
}

/* Priority cards */
.policy-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  border-radius: 0;
  transition:
    transform 0.3s ease,
    box-shadow 0.25s ease;

  & .policy-card__media {
    position: absolute;
    inset: 0;

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.6s ease;
    }
  }

  &:hover .policy-card__media img {
    transform: scale(1.08);
  }

  & .policy-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom, transparent 50%, rgb(0 0 0 / 85%));
  }

  & .policy-card__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 1.75rem;
  }

  & .policy-card__title {
    max-width: 75%;
    font-size: clamp(1.5rem, 2rem, 3rem);
    line-height: 0.95;

    & span {
      display: block;
      color: #fff;
      font-family: "Reddit Sans Condensed", sans-serif;
      font-size: 42px;
      font-weight: 800;
      font-style: normal;
      line-height: 95%;
      letter-spacing: -1.47px;
      text-transform: uppercase;
    }
  }

  & .policy-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.3s ease;
  }

  &:hover .policy-card__icon {
    transform: translateX(4px);
  }

  &.policy-card--more {
    color: var(--brand-purple);
    background: #00b9bc59;

    & .policy-card__title span,
    & .policy-card__icon svg {
      color: var(--brand-purple);
    }

    & :is(.policy-card__media, .policy-card__overlay) {
      display: none;
    }
  }

}

:is(.text-yellow, .policy-other-policies__title span.text-yellow) {
  color: #edc308 !important;
}

:is(.text-purple, .policy-other-policies__title span.text-purple) {
  color: #b360ff !important;
}

:is(.text-green, .policy-other-policies__title span.text-green) {
  color: #9dc201 !important;
}

.policy-link {
  display: block;
  width: fit-content;
  margin: 3.75rem auto 0;
}

/* More policies */
.policy-other-policies {
  padding-block: 4.25rem 12rem;
  background: var(--surface-soft);

  & .policy-other-policies__heading {
    margin-block-end: 3rem;
    color: var(--brand-purple);
    text-align: center;

    & span {
      color: var(--brand-teal);
    }
  }

  & .policy-other-policies__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;

    @media (width >=768px) {
      grid-template-columns: repeat(2, 1fr);
    }

    @media (width >=992px) {
      grid-template-columns: repeat(3, 1fr);
    }

    @media (width >=1200px) {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  & .policy-other-policies__card {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    border-radius: 16px;
    transition: transform 0.25s ease;

    &:hover .policy-other-policies__media img {
      transform: scale(1.08);
    }
  }

  & .policy-other-policies__media {
    width: 100%;
    height: 100%;

    & img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.35s ease;
    }
  }

  & .policy-other-policies__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgb(0 0 0 / 80%), transparent);

    &.policy-other-policies__overlay--yellow {
      background:
        linear-gradient(rgb(255 255 0 / 25%), rgb(255 255 0 / 25%)),
        linear-gradient(to top, rgb(0 0 0 / 80%), transparent);
    }

    &.policy-other-policies__overlay--purple {
      background:
        linear-gradient(rgb(179 96 255 / 25%), rgb(179 96 255 / 25%)),
        linear-gradient(to top, rgb(0 0 0 / 80%), transparent);
    }

    &.policy-other-policies__overlay--green {
      background:
        linear-gradient(rgb(157 194 1 / 25%), rgb(157 194 1 / 25%)),
        linear-gradient(to top, rgb(0 0 0 / 80%), transparent);
    }
  }

  & .policy-other-policies__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-flow: row wrap;
    align-content: flex-end;
    align-items: flex-end;
    justify-content: space-between;
    padding: 1.5rem;
    color: #fff;
  }

  & .policy-other-policies__title {
    max-width: 75%;

    & span {
      display: block;
      margin-block-end: 0;
      font-size: 1.75rem;
      font-weight: 700;
      line-height: 1.2;

      &.italic {
        font-style: italic;
      }

      @media (992px <=width < 1065px) {
        font-size: 1.6rem;
      }

      @media (1200px <=width < 1230px) {
        font-size: 1.4rem;
      }

      @media (1230px <=width < 1315px) {
        font-size: 1.5rem;
      }

      @media (1315px <=width < 1500px) {
        font-size: 1.6rem;
      }
    }
  }

  & .policy-other-policies__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    & svg {
      width: 12px;
      height: 26px;
      stroke: #fff;
    }
  }
}

body.slug-policy {
  @media (width >=1500px) {
    & .page-shell {
      max-inline-size: 1440px;
      padding-inline: 20px;
    }
  }

  & .policy-page__hero {
    --editorial-image-hero-min-block-size: clamp(24rem, 36vw, 43.9375rem);
    --editorial-image-hero-image-position: center 40%;
  }

  & .policy-page__hero .editorial-image-hero__label {
    padding: 24px 28px;
    color: #fff;
    font-size: clamp(3.5rem, 6vw, 5rem);
    letter-spacing: 0.01em;
  }

  & .other-policies h2.heading-other-policies {
    color: var(--brand-purple);
    font-family: "Reddit Sans Condensed", sans-serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 0.82;
    text-transform: uppercase;
  }

  & .policy-page__agreement {
    padding-block: 32px;
    background: #fff;

    @media (width >=768px) {
      padding-block: 48px;
    }
  }

  & .policy-page__agreement-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 0;
    align-items: center;
    padding: 0;
    border: 4px solid var(--brand-teal);
  }

  & .policy-page__agreement-media {
    align-self: stretch;
    margin: 0;
    min-height: 30rem;
    overflow: hidden;
  }

  & .policy-page__agreement-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  & .policy-page__agreement-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    padding: clamp(2.5rem, 5vw, 6.5rem);
    color: var(--brand-purple);
  }

  & .policy-page__agreement-body h2 {
    margin: 0;
    max-inline-size: 30rem;
    font-family: "Reddit Sans Condensed", sans-serif;
    font-size: clamp(2.25rem, 3.4vw, 3.375rem);
    font-weight: 800;
    line-height: 0.97;
    text-transform: uppercase;
  }

  & .policy-page__agreement-body h2 mark {
    padding: 0;
    background: none;
    color: var(--brand-teal);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }

  & .policy-page__agreement-body>p {
    margin: 0;
    max-inline-size: 31rem;
    font-family: "Manrope", sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
  }

  & .policy-page__agreement-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  & .policy-page__agreement-actions a {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border: 2px solid var(--brand-purple);
    border-radius: var(--radius-pill);
    color: var(--brand-purple);
    font-weight: 700;
    text-decoration: none;
  }

  & .policy-page__agreement-actions .policy-page__agreement-primary {
    background: var(--brand-purple);
    color: #fff;
  }

  @media (width <=767px) {
    & .policy-page__agreement-grid {
      grid-template-columns: 1fr;
      gap: 0;
    }

    & .policy-page__agreement-media img {
      aspect-ratio: 3 / 2;
    }

    & .policy-page__agreement-media {
      min-height: 0;
    }
  }

  & footer {
    margin-block-start: unset !important;
  }

  & .homepage-policy-priorities {
    padding-block: 2rem 6rem;
  }
}

/* Shared policy-template presentation extracted from _breakthrough_economy.html. */
.breakthrough-economy .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Hero */
@media (width <=600px) {

  main.policy-pages .hero,
  main.policy-pages .hero__media,
  .breakthrough-economy .hero,
  .breakthrough-economy .hero__media,
  #tr-calc-wrapper .hero,
  #tr-calc-wrapper .hero__bg {
    background-color: #000;
  }

  main.policy-pages .hero__media img,
  .breakthrough-economy .hero__media img,
  #tr-calc-wrapper .hero__bg img {
    opacity: 0.72;
  }
}

/* Video */

.breakthrough-economy .breakthrough-video {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  align-items: stretch;
  justify-content: flex-start;
}

.breakthrough-economy .breakthrough-video .video-player__card {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  border: 3px solid var(--brand-teal);
  overflow: hidden;
  background: #000;
}

.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);

  &[hidden] {
    display: none;
  }

  & .video-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 82%);
    border: 0;
    cursor: pointer;
  }

  & .video-lightbox__panel {
    position: relative;
    z-index: 1;
    width: min(70rem, 100%);
    padding: 3.5rem 1rem 1rem;
    background: #000;
    border-radius: 1.5rem;
    box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 45%);
  }

  & .video-lightbox__close {
    position: absolute;
    inset-block-start: 0.75rem;
    inset-inline-end: 1rem;
    min-block-size: 2.75rem;
    padding-inline: 1rem;
    color: #fff;
    background: transparent;
    border: 2px solid #fff;
    border-radius: var(--radius-pill);
    font: inherit;
    font-weight: 700;
    cursor: pointer;

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

  & .video-lightbox__player {
    aspect-ratio: 16 / 9;

    & iframe {
      display: block;
      width: 100%;
      height: 100%;
      border: 0;
    }
  }
}

.breakthrough-economy .breakthrough-video .video-player__shell {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breakthrough-economy .breakthrough-video .video-player__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breakthrough-economy .breakthrough-video .video-player__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.breakthrough-economy .breakthrough-video .video-player__play svg {
  filter: drop-shadow(0 4px 12px rgb(0 0 0 / 30%));
  transition: transform 0.2s ease;
}

.breakthrough-economy .breakthrough-video .video-player__play:hover svg {
  transform: scale(1.1);
}

.breakthrough-economy .breakthrough-video .video-player__play:focus-visible {
  outline: 3px solid var(--brand-purple);
  outline-offset: -3px;
}

.breakthrough-economy .breakthrough-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@supports not (aspect-ratio: 16 / 9) {
  .breakthrough-economy .breakthrough-video .video-player__shell {
    height: 0;
    padding-top: 56.25%;
  }

  .breakthrough-economy .breakthrough-video .video-player__shell>* {
    position: absolute;
    inset: 0;
  }
}

.breakthrough-economy {
  --policy-purple: var(--brand-purple);
  --policy-purple-dark: var(--brand-purple);
  --policy-aqua-light: var(--surface-soft);
  --policy-white: #fff;
  --policy-ink: #15202b;
  --policy-side-padding: clamp(20px, 5vw, 72px);
  --policy-characters-width: 890px;
}

/* Characters (breakthrough-economy) */
.breakthrough-economy .breakthrough__characters-section {
  overflow: hidden;
  background-color: var(--policy-white);
  text-align: center;
}

.breakthrough-economy .breakthrough__characters-section__heading {
  max-width: 900px;
  margin: 0 auto;
  color: var(--brand-teal);
  font-family: "Manrope", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 40px;
  text-transform: none;
}

.breakthrough-economy .breakthrough__characters-section__subheading {
  margin: 12px auto 0;
  color: var(--brand-purple);
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
}

.breakthrough-economy .breakthrough__characters-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  width: 100%;
  max-width: var(--policy-characters-width);
  margin: clamp(42px, 5vw, 56px) auto 0;
}

.breakthrough-economy .breakthrough__character-btn {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  appearance: none;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.breakthrough-economy .breakthrough__character-btn__portrait {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background-color: var(--policy-aqua-light);
  border-radius: 10px;
  transition: box-shadow 220ms ease;
}

.breakthrough-economy .breakthrough__character-btn__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: none;
  transition:
    filter 240ms ease,
    opacity 240ms ease;
}

.breakthrough-economy .breakthrough__character-btn:focus-visible {
  outline: 3px solid var(--policy-purple);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .breakthrough-economy
    .breakthrough__characters-row:has(.breakthrough__character-btn:hover)
    .breakthrough__character-btn:not(:hover)
    .breakthrough__character-btn__img {
    opacity: 0.55;
    filter: grayscale(1) saturate(0.25);
  }

  .breakthrough-economy .breakthrough__character-btn:hover .breakthrough__character-btn__portrait {
    box-shadow: 0 0 0 3px var(--brand-teal);
  }
}

.breakthrough-economy
  .breakthrough__characters-row:has(.breakthrough__character-btn:focus-visible)
  .breakthrough__character-btn:not(:focus-visible)
  .breakthrough__character-btn__img {
  opacity: 0.55;
  filter: grayscale(1) saturate(0.25);
}

@media (width <=760px) {
  .breakthrough-economy .breakthrough__characters-row {
    grid-template-columns: repeat(2, minmax(0, 200px));
    justify-content: center;
    gap: 24px;
    max-width: 424px;
  }
}

@media (width <=420px) {
  .breakthrough-economy .breakthrough__characters-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .breakthrough-economy .breakthrough__character-btn__img {
    transition: none;
  }
}

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

  @media (min-width: 768px) {
    padding: 80px 20px 80px;
  }
}
.tax-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;
  }
}
.tax-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 */
.tax-characters-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
@media (max-width: 900px) {
  .tax-characters-row {
    max-width: 560px;
  }
}

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

/* Character button */
.tax-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);
  }
}

.tax-character-btn:focus-visible {
  outline: 3px solid var(--brand-teal);
  outline-offset: 4px;
  border-radius: 8px;
}

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

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

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

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

/* Backdrop */
.lightbox.tax-characters-lightbox .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.tax-characters-lightbox .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.tax-characters-lightbox .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.tax-characters-lightbox .lightbox__close:hover {
    color: #443a84;
    background: #dffcfb;
  }
}

/* Portrait */
.lightbox.tax-characters-lightbox .lightbox__portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lightbox.tax-characters-lightbox .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.tax-characters-lightbox .lightbox__content {
  padding: 68px 75px 68px 60px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 92vh;
}
.lightbox.tax-characters-lightbox .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.tax-characters-lightbox .lightbox__body {
  display: flex;
  flex-direction: column;
  gap: 13px;

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

.lightbox.tax-characters-lightbox .lightbox__body::-webkit-scrollbar {
  width: 5px;
}
.lightbox.tax-characters-lightbox
  .lightbox__body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
.lightbox.tax-characters-lightbox
  .lightbox__body::-webkit-scrollbar-thumb {
  background: #443a84;
  border-radius: 10px;
}

/* Handle on hover */
.lightbox.tax-characters-lightbox
  .lightbox__body::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.lightbox.tax-characters-lightbox .lightbox__body p {
  font-size: 18px;
  line-height: 1.2;
  color: #443a84;
  margin: 0;
}

.lightbox.tax-characters-lightbox .lightbox__nav {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.lightbox.tax-characters-lightbox .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.tax-characters-lightbox .lightbox__nav-btn:hover {
    background: var(--brand-teal);
    border-color: var(--brand-teal) !important;
  }
}

/* Tablet: stack portrait on top, content below */
@media (max-width: 900px) {
  .lightbox.tax-characters-lightbox .lightbox__panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    max-height: 80vh;
    overflow-y: auto;
  }
  .lightbox.tax-characters-lightbox .lightbox__portrait {
    min-height: clamp(220px, 42vw, 380px);
    max-height: 38vh;
  }
  .lightbox.tax-characters-lightbox .lightbox__portrait img {
    object-fit: contain;
    object-position: top center;
  }
  .lightbox.tax-characters-lightbox .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.tax-characters-lightbox .lightbox {
    padding: 0;
    align-items: center;
  }
  .lightbox.tax-characters-lightbox .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.tax-characters-lightbox .lightbox__portrait {
    min-height: clamp(180px, 50vw, 300px);
  }
  .lightbox.tax-characters-lightbox .lightbox__close {
    top: 10px;
    right: 10px;
  }
}

/* Character profile dialog */

#policy-character-lightbox {
  --dialog-purple: #443a84;
  --dialog-purple-dark: #443a84;
  --dialog-aqua-light: #dffdfb;
  --dialog-teal: var(--brand-teal);
  --dialog-ink: #15202b;
  --dialog-white: #fff;

  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 32px);
  color: var(--dialog-ink);
  font-family: Manrope, sans-serif;
}

#policy-character-lightbox,
#policy-character-lightbox *,
#policy-character-lightbox *::before,
#policy-character-lightbox *::after {
  box-sizing: border-box;
}

#policy-character-lightbox[hidden] {
  display: none;
}

#policy-character-lightbox .lightbox__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgb(0 0 0 / 72%);
  cursor: pointer;
  animation: policy-dialog-fade-in 250ms ease-out;
}

#policy-character-lightbox .lightbox__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 52%) minmax(0, 1fr);
  width: min(1288px, 100%);
  max-height: min(875px, calc(100vh - 64px));
  overflow: hidden;
  background-color: var(--dialog-white);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgb(0 0 0 / 28%);
  animation: policy-dialog-panel-in 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

#policy-character-lightbox .lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--dialog-purple-dark);
  background-color: var(--dialog-white);
  border: 1px solid rgb(25 0 81 / 20%);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}

#policy-character-lightbox .lightbox__close span[aria-hidden="true"] {
  font-size: 22px;
  font-weight: 400;
  line-height: 0.8;
}

#policy-character-lightbox .lightbox__portrait {
  display: grid;
  min-height: 540px;
  place-items: center;
  overflow: hidden;
  background-color: var(--dialog-aqua-light);
}

#policy-character-lightbox .lightbox__portrait img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  animation: policy-dialog-portrait-in 420ms ease-out;
}

#policy-character-lightbox .lightbox__content {
  display: flex;
  min-width: 0;
  max-height: min(875px, calc(100vh - 64px));
  flex-direction: column;
  gap: 18px;
  padding: 72px clamp(32px, 5vw, 72px) 48px clamp(32px, 4vw, 60px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

#policy-character-lightbox .lightbox__name {
  margin: 0;
  color: var(--dialog-purple-dark);
  font-size: clamp(26px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.2;
}

#policy-character-lightbox .lightbox__career {
  margin: -8px 0 0;
  color: var(--dialog-purple);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

#policy-character-lightbox .lightbox__body {
  display: grid;
  gap: 13px;
}

#policy-character-lightbox .lightbox__body p {
  margin: 0;
  color: var(--dialog-purple-dark);
  font-size: 18px;
  line-height: 1.35;
}

#policy-character-lightbox .lightbox__body ul {
  margin: 5px 0 0;
  padding-left: 1.25em;
  color: var(--dialog-purple-dark);
  font-size: 17px;
  line-height: 1.35;
}

#policy-character-lightbox .lightbox__body li+li {
  margin-top: 7px;
}

#policy-character-lightbox .lightbox__nav {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

#policy-character-lightbox .lightbox__nav-btn {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  color: var(--dialog-purple-dark);
  background-color: transparent;
  border: 1px solid var(--dialog-purple-dark);
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}

#policy-character-lightbox .lightbox__close:hover,
#policy-character-lightbox .lightbox__nav-btn:hover {
  background-color: var(--dialog-teal);
  border-color: var(--dialog-teal);
}

#policy-character-lightbox button:focus-visible {
  outline: 3px solid var(--dialog-purple);
  outline-offset: 3px;
}

@media (width <=900px) {
  #policy-character-lightbox .lightbox__panel {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, 38vh) minmax(0, 1fr);
    max-height: calc(100vh - 32px);
  }

  #policy-character-lightbox .lightbox__portrait {
    min-height: 0;
  }

  #policy-character-lightbox .lightbox__content {
    max-height: none;
    padding: 32px clamp(20px, 5vw, 36px) 28px;
  }
}

@media (width <=540px) {
  #policy-character-lightbox {
    align-items: end;
    padding: 0;
  }

  #policy-character-lightbox .lightbox__panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    animation-name: policy-dialog-slide-up;
  }

  #policy-character-lightbox .lightbox__close {
    top: 10px;
    right: 10px;
  }

  #policy-character-lightbox .lightbox__content {
    padding-top: 28px;
  }

  #policy-character-lightbox .lightbox__body p {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {

  #policy-character-lightbox .lightbox__backdrop,
  #policy-character-lightbox .lightbox__panel,
  #policy-character-lightbox .lightbox__portrait img {
    animation: none;
  }
}

@keyframes policy-dialog-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes policy-dialog-panel-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes policy-dialog-slide-up {
  from {
    opacity: 0;
    transform: translateY(60px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes policy-dialog-portrait-in {
  from {
    opacity: 0.5;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* NEW POLICY PAGES FROM HERE ------------------------------------------------------------------------------------*/

:root {
  --policy-unity-colour: #dbcb57;
  --policy-nature-colour: #93b92c;
  --policy-innovation-colour: #b455ff;
}

main.policy-template-new.policy-category-unity {
  --policy-category-colour: var(--policy-unity-colour);
}

main.policy-template-new.policy-category-nature {
  --policy-category-colour: var(--policy-nature-colour);
}

main.policy-template-new.policy-category-innovation {
  --policy-category-colour: var(--policy-innovation-colour);
}

main.policy-template-new p,
main.policy-template-new li,
main.policy-template-new strong {
  color: var(--brand-purple);
  font-size: 18px;

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

main.policy-template-new .quote {
  display: flex;
  flex-direction: column;
  gap: 15px;
  border: none;
  padding: 0;
  text-align: left;
  margin: 36px 0;
}

main.policy-template-new .quote p.saying {
  font-size: 18px;
  color: var(--brand-teal);
  font-weight: 500;
  margin: 0;
  font-family: "Manrope", sans-serif;

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

main.policy-template-new .quote small.source {
  font-size: 16px;
  color: var(--brand-purple);
  font-family: "Manrope", sans-serif;
}

main.policy-template-new .page-shell {
  z-index: 1;
  padding-inline: 20px !important;
  margin-left: auto;
  margin-right: auto;

  padding-left: 20px;
  padding-right: 20px;
  max-width: 1460px !important;

  @media (min-width: 768px) {
    padding-inline: 40px !important;
  }

  @media (min-width: 1200px) {
    padding-inline: 80px !important;
  }
}

main.policy-template-new h2 {
  color: var(--brand-purple);
  font-size: 32px;
  font-weight: 700;
}

main.policy-template-new h2.heading-first-section {
  color: var(--brand-purple);
  font-family: "Manrope", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 30px;
  text-transform: none;

  @media (min-width: 768px) {
    margin-bottom: 70px;
  }
}

.policy-template-new .characters-section__heading {
  margin: 0 auto;
  color: var(--brand-purple);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  font-family: Manrope, sans-serif;

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

main.policy-template-new .hero {
  background-size: cover;
  background-position: center;
  position: relative;
  height: 340px;
  display: flex !important;

  @media (min-width: 768px) {
    height: min(56.25vw, 680px);
  }
}

main.policy-template-new .hero-info {
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 20px;
  height: 100%;
}

main.policy-template-new .hero-info h4 {
  font-size: 18px;
  background-color: #fff;
  color: var(--policy-category-colour, var(--policy-unity-colour));
  width: fit-content;
  padding: 5px 6px;
  text-transform: uppercase;
  margin: 0 !important;


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

main.policy-template-new .hero-info h1 {
  background-color: var(--brand-teal);
  color: #fff;
  font-family: "Reddit Sans Condensed", sans-serif;
  font-size: 80px;

  @media (width <= 875px) {
    font-size: clamp(30px, calc(6.5vw + 4px), 80px);
  }

  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 13px 14px;
  line-height: 1;
  width: fit-content;
  text-transform: uppercase;
  text-align: left;
}

main.policy-template-new .hero-info h1:has(+ h1) {
  margin-block-end: 0;
}

main.policy-template-new .hero-info h1 + h1 {
  margin-block-start: 0;
}

main.policy-template-new .download-section .download-pdf:last-child {
  margin-bottom: 40px;
}

main.policy-template-new .download-section .download-pdf + .download-pdf {
  margin-top: 40px;
}

main.policy-template-new .white-section.first-section .row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-wrap: nowrap;
  margin-inline: 0;

  @media (min-width: 1025px) {
    flex-direction: row;
    gap: 69px;
  }
}

main.policy-template-new .white-section.first-section .row .texts {
  @media (min-width: 1040px) {
    width: 60vw;
  }
}

main.policy-template-new .white-section.first-section .row .texts:only-child {
  @media (min-width: 1040px) {
    width: auto;
  }
}

main.policy-template-new .white-section.first-section .row .image {
  display: flex;
  flex-direction: column;

  @media (min-width: 1040px) {
    width: 40vw;
  }
}

main.policy-template-new .white-section.first-section .image h5 {
  margin: 0;
  font-family: "Reddit Sans", sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--brand-teal);
  text-align: center;
  padding: 40px 0;
  text-transform: initial !important;

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

main.policy-template-new .policy-artist-credit {
  margin: 40px 0 0;
  color: var(--brand-purple);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.3;

  & a {
    color: inherit;
    font-weight: 800;
  }
}

main.policy-template-new .white-section.first-section .image>img {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  min-height: 20rem;
  border: 3px solid var(--brand-teal);
  object-fit: cover;

  @media (min-width: 1040px) {
    min-height: 0;
  }
}

main.policy-template-new .white-info-block {
  background-color: #fff;
  padding: 25px 30px;
  margin-bottom: 30px;
  border: 3px solid var(--brand-teal);
  color: var(--brand-purple);

  display: flex;
  gap: 40px;
}

main.policy-template-new .white-info-block.policy-intro {
  font-size: 20px;
  font-weight: 700;
}

main.policy-template-new .white-info-block h5 {
  color: var(--brand-teal);
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
  text-transform: uppercase;

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

main.policy-template-new .white-info-block h4 {
  text-transform: uppercase;
  color: var(--brand-purple);
  font-size: 28px;
  font-weight: 800;
  white-space: nowrap;

  white-space: break-spaces;
  line-height: 1.1;
  transform: translateY(-3px);

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

    width: 100%;
    max-width: 340px;
  }
}

main.intergenerational-infrastructure .white-info-block.pillars h5 {
  color: var(--brand-teal);
  font-size: 28px;
  font-weight: 800;

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

main.policy-template-new .white-info-block .info-block-content {
  transform: translateY(-3px);
  margin-block: auto;
}

main.policy-template-new .white-info-block .info-block-content strong {
  margin-bottom: 15px;
  display: block;
}

main.policy-template-new .white-info-block strong {
  font-weight: 800;
}

main.policy-template-new .white-info-block ul {
  padding: 0 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

main.policy-template-new .white-info-block li::marker {
  color: var(--brand-teal);
}

main.policy-template-new .white-info-block.pillars {
  padding: 30px 30px 20px;
  gap: 20px;
  flex-direction: column;

  @media (min-width: 768px) {
    padding: 40px;
    gap: 40px;
    flex-direction: row;
  }
}

main.policy-template-new .white-info-block.pillars:has(.pillars__image) .pillars__heading {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  align-content: flex-start;
  column-gap: 15px;
  row-gap: 0;
  flex: 0 0 auto;
  width: 340px;
  max-width: 340px;
  min-width: 0;
}

main.policy-template-new .pillars__heading h5,
main.policy-template-new .pillars__heading h4 {
  margin: 0;
  white-space: normal;
  width: auto;
  max-width: none;
}

main.policy-template-new .pillars__heading .pillars__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 20px;
  object-fit: cover;
}

main.policy-template-new .faq-section .faq-section__title {
  margin: 40px 0 10px;
  color: var(--brand-purple);
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-transform: none;

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

main.policy-template-new .faq-section .faq-section__intro {
  margin: 0 0 30px;
  max-width: 60rem;
}

main.policy-template-new .policy-cost-table-wrap {
  max-width: 100%;
  margin-top: 0;
  margin-bottom: 20px;
  overflow-x: auto;
}

main.policy-template-new .policy-cost-table-wrap:focus-visible {
  outline: 3px solid var(--brand-purple);
  outline-offset: 4px;
}

main.policy-template-new .policy-cost-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  color: var(--brand-purple);
  background-color: #fff;
  font-size: 16px;
  line-height: 1.35;
}

main.policy-template-new .policy-cost-table th,
main.policy-template-new .policy-cost-table td {
  padding: 15px 18px;
  border: 1px solid var(--brand-teal);
  text-align: left;
  vertical-align: top;
}

main.policy-template-new .policy-cost-table thead th {
  background-color: var(--brand-teal);
  color: #fff;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: normal;
  text-align: center;
}

main.policy-template-new .policy-cost-table tbody tr:nth-child(even)>* {
  background-color: var(--brand-pale);
}

main.policy-template-new .policy-cost-table tbody tr:nth-child(odd)>* {
  background-color: #fff;
}

main.policy-template-new .policy-cost-table tbody th {
  font-weight: 400;
  text-align: left;
}

main.policy-template-new .policy-cost-table th:last-child,
main.policy-template-new .policy-cost-table td:last-child {
  width: 170px;
  white-space: nowrap;
}

main.policy-template-new .policy-cost-table__note {
  margin: 16px 0 0;
  color: var(--brand-purple);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.blue-section {
  background-color: var(--brand-pale);
  padding: 48px 20px;

  @media (width >=768px) {
    padding-block: 100px;
  }

  & .white-info-block:last-child {
    margin-block-end: 0;
  }

  &.second-section {
    & h2 {
      margin-block-end: 60px;
      color: var(--brand-purple);
      font-size: 32px;
      font-weight: 800;
      line-height: 1;
      text-align: center;
      text-transform: uppercase;

      & span {
        color: var(--brand-teal);
      }

      @media (width >=768px) {
        margin-block-end: 80px;
        font-size: 48px;
      }
    }
  }
}

.white-section {
  padding: 48px 20px;

  @media (width >=768px) {
    padding-block: 100px;
  }

  & + .white-section {
    padding-block-start: 0;
  }

  &.policy-section--feature {
    padding-block: 64px;

    @media (width >=768px) {
      padding-block: 96px;
    }
  }
}

main.policy-template-new {
  & .disclaimer {
    padding-block: 20px;
    color: var(--brand-purple);
    text-align: center;
    border-block: 3px solid var(--primary);

    & p {
      margin: 0;
      font-size: 24px;
    }

    @media (width >=768px) {
      padding-block: 48px;

      & p {
        font-size: 32px;
      }
    }
  }
}

main.policy-template-new h3 {
  line-height: 1.1;
  text-transform: uppercase;
  font-family: "Reddit Sans Condensed", sans-serif;
  font-size: 28px;
  font-weight: 800;
  padding-bottom: 20px;

  &:not(:first-child) {
    padding-top: 2rem;
  }

  @media (min-width: 768px) {
    font-size: 36px;
    padding-bottom: 30px;
  }
}

main.policy-template-new h3.tax-reset {
  padding-top: 0 !important;
}

main.policy-template-new .download-pdf {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;

  text-decoration: none;
  color: var(--brand-purple);
  font-size: 18px;
  background-color: var(--brand-pale);
  padding: 20px;
  border: 3px solid var(--brand-teal);

  cursor: pointer;

  @media (width > 768px) {
    font-size: 22px;

    flex-direction: row;
    align-items: center;
  }
}

main.policy-template-new .download-pdf .download-icon {
  @media (width <=768px) {
    display: none;
  }
}

main.policy-template-new .download-pdf:hover span {
  background-color: var(--primary);
  color: var(--brand-purple);
}

main.policy-template-new .download-pdf * {
  pointer-events: none;
}

main.policy-template-new .download-pdf span {
  background-color: #fff;
  border-radius: 100px;
  padding: 10px 10px 10px 20px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;

  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline: auto;
  width: fit-content;

  @media (width > 768px) {
    font-size: 22px;
    margin-inline-end: 0;
    margin-inline-start: auto;
  }
}

main.policy-template-new .policy-stay-updated {
  padding-block: 64px;

  @media (width >=768px) {
    padding-block: 96px;
  }
}

main.policy-template-new .policy-newsletter-cta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  color: var(--brand-purple);
  background-color: var(--brand-pale);
  border: 3px solid var(--brand-teal);
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;

  @media (width >=768px) {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-size: 22px;
  }
}

main.policy-template-new .policy-newsletter-cta__prompt,
main.policy-template-new .policy-newsletter-cta__action {
  display: flex;
  align-items: center;
  gap: 16px;
}

main.policy-template-new .policy-newsletter-cta__at {
  font-size: 32px;
  line-height: 1;
}

main.policy-template-new .policy-newsletter-cta__action {
  align-self: center;
  padding: 10px 10px 10px 20px;
  background-color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 600;
  white-space: nowrap;
}

main.policy-template-new .policy-newsletter-cta__arrow {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--brand-purple);
  background-color: var(--primary);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}

main.policy-template-new .policy-newsletter-cta:hover .policy-newsletter-cta__action {
  background-color: var(--primary);
}

main.policy-template-new details table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0 0;
}

main.policy-template-new details table td,
main.policy-template-new details table th {
  border: 1px solid var(--brand-purple);
  padding: 0.6rem 0.9rem;
  text-align: left;
  color: var(--brand-purple);
}

main.policy-template-new details {
  margin-bottom: 4px;
  appearance: none;
  position: relative;
}

main.policy-template-new details div {
  padding: 20px;

  @media (min-width: 768px) {
    padding: 20px 40px 40px 40px;
  }
}

main.policy-template-new details summary {
  background-color: var(--brand-pale);
  padding: 28px 40px;
  font-size: 20px;
  font-weight: 800;
  color: var(--brand-purple);
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1.2;

  position: relative;

  @media (max-width: 768px) {
    padding: 20px;
    padding-right: 60px;
  }
}

main.policy-template-new details summary:hover {
  background-color: #e5f8f970;
}

main.policy-template-new details summary::marker {
  display: none;
  content: "";
}

main.policy-template-new details>summary {
  list-style: none;
}

main.policy-template-new details>summary::-webkit-details-marker {
  display: none;
}

main.policy-template-new details>summary::marker {
  display: none;
  content: "";
}

main.policy-template-new details summary::after {
  content: "+";
  background-color: var(--primary);
  color: var(--brand-purple);
  width: 32px;
  height: 32px;
  line-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  font-size: 32px;

  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);

  @media (max-width: 768px) {
    right: 20px;
  }
}

main.policy-template-new details[open] summary::after {
  content: "-";
}

.other-policies {
  padding-block: 64px;

  @media (width >=768px) {
    padding-block: 96px;
  }
}

.other-policies label {
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 5px;
  font-family: "Reddit Sans Condensed", sans-serif;

  @media (min-width: 768px) {
    margin-bottom: 10px;
  }
}

.other-policies h2.heading-other-policies {
  font-size: 28px;
  font-weight: 800;
  text-align: left;
  margin-bottom: 42px;

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

.row-policies {
  display: flex;
  flex-direction: column;
  gap: 60px;

  @media (min-width: 768px) {
    flex-direction: row;
    gap: 13px;
  }
}

.block-policies {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.block-policies--unity label {
  color: var(--policy-unity-colour);
}

.block-policies--innovation label {
  color: var(--policy-innovation-colour);
}

.block-policies--nature label {
  color: var(--policy-nature-colour);
}

.other-policies a.link,
.other-policies a.first-link {
  background-color: #fff;
  padding: 17px 32px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  font-family: "Reddit Sans Condensed", sans-serif;
  color: var(--brand-purple);
  line-height: 1.1;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.other-policies a.link {
  padding: 22px 20px;

  @media (min-width: 768px) {
    padding: 17px 32px;
  }
}

.other-policies a.link svg {
  -webkit-transform: translateX(-4px);
  transform: translateX(-4px);
}

.other-policies a:hover {
  background-color: #ffffff90 !important;
}

.other-policies a.first-link {
  background-color: #fff;
  padding: 41px 20px;
  font-size: 28px;
  height: 103px;

  @media (min-width: 768px) {
    padding: 32px 30px;
    height: 122px;
  }
}

.other-policies a.first-link svg {
  @media (max-width: 768px) {
    transform: scale(0.7) translateX(10px);
    -webkit-transform: scale(0.7) translateX(10px);
  }
}

.expect-better {
  width: 100%;
  background-color: var(--brand-teal);
}

.expect-better img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.expect-better img.mob {
  display: block;

  @media (min-width: 768px) {
    display: none;
  }
}

.expect-better img.desk {
  display: none;

  @media (min-width: 768px) {
    display: block;
  }
}

main.policy-template-new .row-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-block: 52px 45px;

  & a {
    display: flex;
    align-items: center;
    justify-content: center;
    inline-size: 100%;
    block-size: 76px;
    color: #fff;
    background-color: var(--brand-purple);
    border-radius: var(--radius-pill);
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    transition:
      color 0.3s ease,
      background-color 0.3s ease;

    &:hover {
      color: var(--brand-purple);
      background-color: var(--primary);
    }

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

  @media (width >=768px) {
    flex-direction: row;
    gap: 40px;
    padding-block: 80px 151px;
  }
}

main.policy-template-new .list-of-cards-wrapper {
  display: flex;
  flex-wrap: wrap;
  row-gap: 20px;
  column-gap: 44px;

  @media (min-width: 768px) {
    row-gap: 40px;
  }
}

main.policy-template-new .list-of-cards .white-card-block {
  padding: 10px 10px 36px 10px;
  border: 3px solid var(--brand-teal);
  flex: 1 1 calc(100% - 0px);

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

main.policy-template-new .list-of-cards .white-card-block img {
  width: 100%;
}

main.policy-template-new .list-of-cards .white-card-block h4 {
  color: var(--brand-purple);
  font-size: 20px;
  font-weight: 700;
  font-family: "Manrope", sans-serif;
  padding: 40px 10px 10px;

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

main.policy-template-new .list-of-cards .white-card-block p {
  color: var(--brand-purple);
  font-size: 18px;
  padding: 0 10px;
  margin: 0;

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

main.policy-template-new .video-wrapper {
  position: relative;
  overflow: hidden;
}

main.policy-template-new .video-wrapper iframe {
  width: 100%;
  height: 520px;

  @media (min-width: 768px) {
    height: 700px;
  }
}

main.policy-template-new .video-wrapper.is-playing iframe {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* CALCULATOR PAGE STYLing -----------------------------*/
main.calculator-page {
  --tr-navy: #443a84;
  --tr-teal: var(--brand-teal);
  --tr-teal-light: #dffcfb;
  --tr-teal-20: rgb(var(--primary-rgb) / 20%);
  --tr-teal-10: rgb(var(--primary-rgb) / 10%);
  --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;
}

main.calculator-page button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  outline: none;
}

main.calculator-page .hero-new {
  background-color: #dffcfb !important;
  height: initial;
  padding: 122px 0 57px;
  display: flex;
}

main.calculator-page .hero-info {
  padding: 0;
}

main.calculator-page .hero-new h1 {
  text-align: center;
  background-color: transparent;
  color: var(--brand-purple);
  font-size: 30px;
  line-height: 1;

  max-width: 645px;
  margin: 0 auto 14px;

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

main.calculator-page .hero-new .label-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7.5px;
  margin-bottom: 28px;
}

main.calculator-page .hero-new .label-row h4 {
  padding: 1px 6px;
  font-size: 18px;
  background-color: #fff;

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

main.calculator-page .hero-new p {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  max-width: 622px;
  margin: 0 auto;
  color: var(--brand-purple);
  text-align: center;

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

main.calculator-page h3 {
  padding: 0;
}

main.calculator-page .pillars {
  background: var(--brand-purple);
  padding: 115px 0 124px;
  justify-content: center;
  display: flex;
  flex-direction: column;

  @media (max-width: 1400px) {
    padding-left: 20px;
    padding-right: 20px;
  }
}

main.calculator-page .pillars a {
  background-color: var(--brand-purple);
  border: 1px solid var(--primary);
  color: var(--primary);
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;

  padding: 14px 20px 12px;
  border-radius: 50px;
  letter-spacing: 20%;
  font-weight: 700;
  font-size: 12px;
  margin: 88px auto 0;
  transition: all 0.2s;
}

main.calculator-page .pillars a:hover {
  background-color: var(--primary);
  color: var(--brand-purple);
}

main.calculator-page .pillars__subheading {
  color: #fff;
  text-align: center;
  max-width: 935px;
  margin: 0 auto 20px;
  font-size: 20px;
  line-height: 24px;
  font-family: "Manrope", sans-serif;
}

main.calculator-page .pillars__heading {
  font-family: "Manrope", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  letter-spacing: 0.01em;
  margin-bottom: 40px;
}

main.calculator-page .pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

main.calculator-page .pillar-card {
  background: #00b9bc1a;
  border-radius: 20px;
  padding: clamp(20px, 3vw, 36px) clamp(16px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

main.calculator-page .pillar-card__icon {
  width: clamp(40px, 5vw, 60px);
  height: clamp(40px, 5vw, 60px);
  object-fit: contain;
  margin: 0 auto 4px;
}

main.calculator-page .pillar-card h3 {
  margin: 7px 0;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  font-family: "Manrope", sans-serif;
}

main.calculator-page .pillar-card p {
  font-size: 14px;
  line-height: 1.2;
  color: #ffffff;
  opacity: 0.88;
  margin: 0;
}

/* Tablet: stack to 1 column */
@media (max-width: 900px) {
  main.calculator-page .pillars__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

main.calculator-page .tr-notes {
  padding: 115px 0 0;
}

/* ----------------------------- CALCULATOR PAGE STYLE */

/* NEW  TAX RESET PAGE --------------------------------------------------------------------------- */
body.slug-tax-reset {
  position: relative;
}

main.policy-template-new.tax-reset .first-section {
  padding-bottom: 0;
}

main.policy-template-new.tax-reset button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  outline: none;
}

main.policy-template-new.tax-reset .white-section.first-section .row .image {
  @media (min-width: 1040px) {
    width: 40vw;
    min-width: 526px;
  }
}

main.policy-template-new.tax-reset .white-section.first-section .image h5 {
  @media (min-width: 768px) {
    font-size: 31px;
    padding: 40px 0;
  }
}

main.policy-template-new.tax-reset h3 {
  @media (min-width: 768px) {
    font-size: 36px;
  }
}

main.policy-template-new.tax-reset .tax-reset-will-section h3 {
  margin-bottom: 40px;
}

main.policy-template-new.tax-reset .second-section {
  padding-block: 64px;

  @media (width >=768px) {
    padding-block: 96px;
  }
}

main.policy-template-new.tax-reset .row-calculator {
  display: flex;
  flex-direction: column;

  @media (min-width: 980px) {
    flex-direction: row;
    justify-content: space-between;
  }
}

main.policy-template-new.tax-reset .row-calculator .calculator-info {
  display: flex;
  flex-direction: column;
  gap: 20px;

  @media (min-width: 980px) {
    width: 242px;
  }
}

main.policy-template-new.tax-reset .row-calculator .calculator-info h3 {
  color: var(--brand-teal);
  font-size: 28px;
  text-align: center;
  margin: 0;
  padding: 0;

  @media (min-width: 980px) {
    width: 242px;
    font-size: 36px;
    text-align: left;
  }
}

main.policy-template-new.tax-reset .row-calculator .calculator-info h5 {
  color: var(--brand-purple);
  font-size: 18px;
  font-weight: 700;
  font-family: "Manrope", sans-serif;
  text-transform: initial;
  line-height: 1.3;
  margin: 0;
  text-align: center;

  @media (min-width: 980px) {
    font-size: 20px;
    text-align: left;
  }
}

main.policy-template-new.tax-reset .row-calculator .calculator-info .calculator-important-info-trigger {
  color: var(--brand-purple);
  font-size: 16px;
  font-family: "Manrope", sans-serif;
  margin: 0 0 16px 0;
  background-color: transparent;
  border: none;
  text-align: center;
  cursor: pointer;
  display: none;

  @media (min-width: 980px) {
    text-align: left;
    display: block;
  }
}

main.policy-template-new.tax-reset .row-calculator .calculator-info .try-calculator {
  color: var(--brand-purple);
  font-size: 22px;
  font-weight: 600;
  font-family: "Manrope", sans-serif;
  margin: 0 auto;
  background-color: #fff;
  padding: 6.5px 20px;
  border-radius: 50px;
  width: fit-content;

  @media (min-width: 980px) {
    display: none;
  }
}

main.policy-template-new.tax-reset .row-calculator #tr-calc-wrapper {
  left: initial;
  right: initial;
  margin-left: initial;
  margin-right: initial;

  @media (max-width: 980px) {
    display: none;
  }
}

main.policy-template-new.tax-reset .row-calculator #tr-calc-wrapper .tr-calculator {
  background-color: var(--brand-pale);
  padding: 25px 0;
}

main.policy-template-new.tax-reset .calculator-important-info-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 90999;
  width: 90vw;
  height: fit-content;

  display: none;
  background-color: var(--brand-pale);
  box-shadow: 0 0 20px #00000010;
  border-radius: 20px;
  padding: 30px;

  @media (min-width: 768px) {
    padding: 80px;
  }
}

main.policy-template-new.tax-reset input#calculator-important-info {
  display: none;
}

main.policy-template-new.tax-reset input#calculator-important-info:checked+.calculator-important-info-popup {
  display: block;
}

main.policy-template-new.tax-reset .calculator-important-info-popup strong {
  display: block;
  margin-bottom: 23px;
}

main.policy-template-new.tax-reset .calculator-important-info-popup p,
main.policy-template-new.tax-reset .calculator-important-info-popup li {
  font-size: 18px;

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

main.policy-template-new.tax-reset .calculator-important-info-popup .calculator-important-info-dispose-btn {
  position: absolute;
  top: 20px;
  right: 20px;

  font-size: 14px;
  font-weight: 700;
  color: var(--brand-purple);
  letter-spacing: 0.04em;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}

main.policy-template-new.tax-reset .calculator-important-info-popup .calculator-important-info-dispose-btn:hover,
main.policy-template-new.tax-reset .calculator-important-info-popup .calculator-important-info-dispose-btn:active,
main.policy-template-new.tax-reset .calculator-important-info-popup .calculator-important-info-dispose-btn:focus {
  background-color: #00b9bc10;
}