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

/* 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: #00bcc1;
    }

    @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);
    }
  }
}

/* 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: #443a84;
    background: #00ede159;

    & .policy-card__title span,
    & .policy-card__icon svg {
      color: #443a84;
    }

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

  &.policy-card--wide {
    @media (width >=768px) {
      grid-column: span 2;
      aspect-ratio: 5.8 / 4;
    }

    @media (width >=992px) {
      aspect-ratio: auto;
    }
  }
}

: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;
}

/* Other policies */
.policy-other-policies {
  padding-block: 4.25rem 12rem;
  background: #e5fdfc;

  & .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;
    }
  }
}

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

  & .policy-page__agreement {
    padding-block: clamp(3rem, 6vw, 5rem);
    background: #fff;
  }

  & .policy-page__agreement-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 4vw, 4rem);
    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(2rem, 5vw, 4.5rem);
    color: var(--brand-purple);
  }

  & .policy-page__agreement-body h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    line-height: 1.1;
  }

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

  & .policy-page__agreement-body>p {
    margin: 0;
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 600;
    line-height: 1.5;
  }

  & .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;
  }
}

main.policy-pages {
  & :is(h2, h3, h4) {
    color: var(--secondary, #443a84);
    text-align: center;
  }

  & h3 {
    text-align: left !important;
  }

  & :is(strong, b) {
    font-weight: 700 !important;
  }

  & p {
    max-width: none;
    margin: 0 0 1rem;
    color: var(--secondary, #443a84);
    font-family: "Manrope", sans-serif;
    font-size: 1.4375rem;
    font-weight: 300;
    font-style: normal;
    line-height: 120%;
    letter-spacing: -0.46px;
  }

  & .page-content {
    & .page-content__content {
      max-width: 648px !important;
    }

    & .page-content__heading {
      text-align: left;
    }
  }

  & .policy-list {
    margin: 0 0 1rem;
    padding-inline-start: 1.5rem;
    color: var(--secondary, #443a84);
    font-family: "Manrope", sans-serif;
    font-size: 1.4375rem;
    font-weight: 300;
    line-height: 120%;
    letter-spacing: -0.46px;

    & li {
      margin-block-end: 0.75rem;
    }
  }

  & .inset-panel__footer {
    margin-block-start: 2rem;

    & .inset-panel__link-list {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
      margin-block: 1rem 2rem;
    }

    & .inset-panel__link-item {
      display: flex;
      min-width: 0;
      flex: 1;
      align-items: center;
      justify-content: flex-start;
      padding: 1.25rem 1.5rem;
      color: var(--secondary, #443a84);
      background-color: var(--brand-pale, #e5f8f9);
      border-radius: 10px;

      & a {
        display: flex;
        align-items: center;
        gap: 1rem;
        color: var(--secondary, #443a84);
        font-size: 1.125rem;
        font-weight: 600;
        line-height: 1.2;
      }

      & svg {
        width: 2.5rem;
        min-width: 2.5rem;
        height: 2.5rem;
        color: var(--secondary, #443a84);
        fill: var(--secondary, #443a84);
      }
    }
  }
}

/* Shared policy-template presentation extracted from _breakthrough_economy.html. */
.policy-template {
  --policy-purple: #443a84;
  --policy-purple-dark: #443a84;
  --policy-aqua: #00b9bc;
  --policy-teal: #00ede1;
  --policy-aqua-light: #dffdfb;
  --policy-faq-background: #dffcfb;
  --policy-aqua-mid: #97f7f2;
  --policy-table-border: #d9dee5;
  --policy-table-stripe: #f5f7fa;
  --policy-ink: #15202b;
  --policy-white: #fff;
  --policy-content-width: 900px;
  --policy-wide-width: 1200px;
  --policy-characters-width: 890px;
  --policy-pillars-width: 1320px;
  --policy-side-padding: clamp(20px, 5vw, 72px);
  --policy-radius: 20px;

  color: var(--policy-ink);
  font-family: Manrope, sans-serif;
}

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

.policy-template .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 */

.policy-template .page-hero__content {
  padding-inline: 1.5rem;
}

.policy-template .hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% top;
  transform: scale(1.3);
  transform-origin: 48% top;
}

.policy-template .policy-hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(-48%);
}

.policy-template .policy-hero__title,
.policy-template .policy-hero__subtitle {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 7px 12px 10px;
  color: var(--policy-white);
  background-color: var(--policy-purple);
  font-family: Manrope, sans-serif;
}

.policy-template .policy-hero__title {
  font-size: clamp(36px, 5vw, 50px);
  font-weight: 800;
  line-height: 1;
}

.policy-template .policy-hero__subtitle {
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

.policy-template .hero__bottom {
  transform: translateY(3px);
}

.policy-template .hero-bottom-border {
  display: block;
  width: 100%;
  height: auto;
}

.policy-template .hero-bottom-border path {
  fill: var(--policy-aqua);
}

/* Keep policy hero text legible when a narrow mobile crop exposes a
     lighter portion of its image. */
@media (width <=600px) {

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

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

@media (width >=1200px) {
  .policy-template .hero__media img {
    object-position: 48% top;
    transform: scale(1.3);
    transform-origin: 48% top;
  }
}

@media (width >=1600px) {
  .policy-template .hero__media img {
    object-position: 47% top;
    transform: scale(1.33);
    transform-origin: 47% top;
  }
}

@media (width >=2100px) {
  .policy-template .hero__media img {
    object-position: 50%;
    transform: none;
  }
}

@media (width <=1000px) {
  .policy-template .hero__media img {
    object-position: 62% top;
    transform: scale(1.5);
    transform-origin: 50% top;
  }
}

/* Introduction */

.policy-template .policy-intro {
  display: grid;
  place-items: center;
  min-height: 251px;
  padding: 48px var(--policy-side-padding);
  background-color: var(--policy-aqua);
}

.policy-template .policy-intro__text {
  max-width: 840px;
  margin: 0;
  color: var(--policy-white);
  text-align: center;
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  line-height: 1.2;
}

.policy-template .breakthrough-video {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.policy-template .breakthrough-video .video-player__card {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #000;
}

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

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

.policy-template .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;
}

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

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

.policy-template .breakthrough-video .video-player__play:focus-visible {
  outline: 3px solid #443a84;
  outline-offset: -3px;
}

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

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

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

/* Body copy */

.policy-template .policy-body {
  padding: 100px var(--policy-side-padding);
  background-color: var(--policy-aqua-light);
}

.policy-template .policy-body__inner {
  max-width: var(--policy-content-width);
  margin: 0 auto;
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.25;
  letter-spacing: 0.4px;
}

.policy-template .policy-body__inner p {
  margin: 0;
}

.policy-template .policy-body__inner p+p {
  margin-top: 20px;
}

.policy-template .policy-body__lead {
  font-weight: 700;
}

/* Interactive character profiles */

.policy-template .characters-section {
  padding: clamp(72px, 8vw, 150px) var(--policy-side-padding);
  overflow: hidden;
  background-color: var(--policy-white);
  text-align: center;
}

.policy-template .characters-section__heading {
  max-width: 900px;
  margin: 0 auto;
  color: var(--policy-aqua);
  font-size: clamp(26px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  font-family: Manrope, sans-serif;
}

.policy-template .characters-section__subheading {
  margin: 12px auto 0;
  color: var(--policy-ink);
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.2;
}

.policy-template .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;
}

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

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

.policy-template .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;
}

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

/*
   * Keep every card in full colour by default. When one card is hovered,
   * desaturate its siblings so the active card becomes the focal point.
   */
@media (hover: hover) and (pointer: fine) {
  .policy-template .characters-row:has(.character-btn:hover) .character-btn:not(:hover) .character-btn__img {
    opacity: 0.55;
    filter: grayscale(1) saturate(0.25);
  }

  .policy-template .character-btn:hover .character-btn__portrait {
    box-shadow: 0 0 0 3px var(--policy-aqua);
  }
}

/* Give keyboard users the same visual relationship as pointer users. */
.policy-template .characters-row:has(.character-btn:focus-visible) .character-btn:not(:focus-visible) .character-btn__img {
  opacity: 0.55;
  filter: grayscale(1) saturate(0.25);
}

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

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

/* Policy quotes */

.policy-template .policy-quote {
  background-color: var(--policy-white);
}

.policy-template .policy-quote__inner {
  max-width: var(--policy-content-width);
  margin: 0 auto;
}

.policy-template .policy-quote__inner--narrow {
  max-width: 874px;
}

.policy-template .policy-quote__text {
  margin: 0;
  color: var(--policy-purple);
  text-align: center;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.policy-template .policy-quote__text p {
  margin: 0;
  font-family: Manrope, sans-serif;
}

/* Three pillars */

.policy-template .three-pillars {
  padding: clamp(72px, 8vw, 150px) var(--policy-side-padding);
  background-color: var(--policy-white);
}

.policy-template .three-pillars__inner {
  max-width: var(--policy-pillars-width);
  margin: 0 auto;
}

.policy-template .three-pillars__heading {
  margin: 0 0 clamp(40px, 5vw, 56px);
  color: var(--policy-aqua);
  text-align: center;
  font-size: clamp(26px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  font-family: Manrope, sans-serif;
}

.policy-template .three-pillars__list {
  display: grid;
  gap: 30px;
}

.policy-template .three-pillars__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "media content";
}

.policy-template .three-pillars__row--reverse {
  grid-template-areas: "content media";
}

.policy-template .three-pillars__media,
.policy-template .three-pillars__content {
  min-height: clamp(400px, 35.23vw, 465px);
}

.policy-template .three-pillars__media {
  grid-area: media;
  overflow: hidden;
  border-radius: 10px 0 0 10px;
}

.policy-template .three-pillars__row--reverse .three-pillars__media {
  border-radius: 0 10px 10px 0;
}

.policy-template .three-pillars__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.policy-template .three-pillars__content {
  display: flex;
  grid-area: content;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: clamp(36px, 4.55vw, 60px);
  background-color: var(--policy-aqua-light);
  border-radius: 0 10px 10px 0;
}

.policy-template .three-pillars__row--reverse .three-pillars__content {
  border-radius: 10px 0 0 10px;
}

.policy-template .three-pillars__title {
  margin: 0;
  color: var(--policy-purple);
  font-size: clamp(26px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  font-family: Manrope, sans-serif;
}

.policy-template .three-pillars__copy {
  color: var(--policy-ink);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.policy-template .three-pillars__copy p,
.policy-template .three-pillars__copy ul {
  margin: 0;
}

.policy-template .three-pillars__copy p+p,
.policy-template .three-pillars__copy p+ul,
.policy-template .three-pillars__copy ul+p {
  margin-top: 16px;
}

.policy-template .three-pillars__copy ul {
  padding-left: 1.35em;
}

.policy-template .three-pillars__copy li+li {
  margin-top: 12px;
}

/* Downloads */

.policy-template .policy-downloads {
  padding: clamp(44px, 7vw, 88px) var(--policy-side-padding);
  background-color: var(--policy-white);
}

.policy-template .policy-downloads__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: var(--policy-wide-width);
  margin: 0 auto;
}

.policy-template .download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: clamp(20px, 3vw, 36px) clamp(16px, 2.5vw, 28px);
  text-align: center;
  border-radius: var(--policy-radius);
}

.policy-template .download-card__icon {
  display: block;
  width: auto;
  height: 70px;
  color: var(--policy-aqua);
}

.policy-template .download-card__title {
  margin: 0;
  color: var(--policy-purple);
  font-family: Manrope, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
}

.policy-template .download-card__status {
  margin: 0;
  color: var(--policy-ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.policy-template .download-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 53px;
  padding-inline: 24px;
  color: var(--policy-purple-dark);
  background-color: var(--policy-teal);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.4px;
  text-decoration: none;
}

.policy-template .download-card__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-template .download-card__link:focus-visible,
.policy-template .character-btn:focus-visible,
.policy-template .policy-cost-table-wrap:focus-visible {
  outline: 3px solid var(--policy-purple);
  outline-offset: 4px;
}

.policy-template .download-card__link-icon {
  flex: 0 0 auto;
}

/* FAQ and costing */

.policy-template .faq-section {
  padding: clamp(72px, 9vw, 115px) var(--policy-side-padding);
  background-color: var(--policy-faq-background);
}

.policy-template .faq-section__inner {
  max-width: var(--policy-content-width);
  margin: 0 auto;
}

.policy-template .faq-section__heading {
  margin: 0 0 32px;
  color: var(--policy-aqua);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  font-family: Manrope, sans-serif;
}

.policy-template .faq-section__title {
  margin: 0;
  color: var(--policy-purple);
  font-size: clamp(26px, 4vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  font-family: Manrope, sans-serif;
}

.policy-template .faq-section__intro {
  margin: 20px 0 0;
  color: var(--policy-ink);
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 500;
  line-height: 1.2;
}

.policy-template .policy-cost-table-wrap {
  max-width: 100%;
  margin-top: 60px;
  overflow-x: auto;
  border-radius: 12px;
}

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

.policy-template .policy-accordion-section {
  padding: clamp(44px, 7vw, 88px) var(--policy-side-padding);
  background-color: var(--policy-white);
}

.policy-template .policy-accordion-section__inner {
  max-width: var(--policy-content-width);
  margin: 0 auto;
}

.policy-template .policy-cost-table {
  width: 100%;
  min-width: 620px;
  border: 1px solid var(--policy-table-border);
  border-collapse: collapse;
  color: var(--policy-ink);
  background-color: var(--policy-white);
  font-size: 16px;
  line-height: 1.35;
}

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

.policy-template .policy-cost-table thead th {
  color: var(--policy-white);
  background-color: var(--policy-aqua);
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: normal;
  text-align: center;
}

.policy-template .policy-cost-table tbody tr:nth-child(odd)>* {
  background-color: var(--policy-white);
}

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

.policy-template .policy-cost-table tbody th {
  color: var(--policy-ink);
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  text-align: center;
}

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

/* Responsive */

@media (width <=900px) {

  .policy-template .three-pillars__row,
  .policy-template .three-pillars__row--reverse {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "content";
  }

  .policy-template .three-pillars__media,
  .policy-template .three-pillars__content {
    min-height: 0;
  }

  .policy-template .three-pillars__media,
  .policy-template .three-pillars__row--reverse .three-pillars__media {
    aspect-ratio: 660 / 465;
    border-radius: 10px 10px 0 0;
  }

  .policy-template .three-pillars__content,
  .policy-template .three-pillars__row--reverse .three-pillars__content {
    padding: clamp(28px, 6vw, 44px);
    border-radius: 0 0 10px 10px;
  }
}

@media (width <=768px) {
  .policy-template .hero {
    block-size: min(82vh, 760px);
  }

  .policy-template .page-hero__content {
    justify-content: flex-start;
    padding-top: clamp(28px, 8vh, 76px);
  }

  .policy-template .hero__media img {
    object-position: 65% top;
    transform: scale(1.4);
    transform-origin: 50% top;
  }

  .policy-template .policy-hero__text {
    align-items: center;
    max-width: min(92vw, 520px);
    margin-inline: auto;
    text-align: center;
    transform: none;
  }

  .policy-template .policy-hero__title {
    font-size: clamp(34px, 9vw, 58px);
  }

  .policy-template .policy-hero__subtitle {
    font-size: clamp(18px, 5vw, 28px);
  }

  .policy-template .policy-intro {
    min-height: auto;
    padding-block: 56px;
  }

  .policy-template .policy-body {
    padding-block: 40px;
  }

  .policy-template .policy-downloads__inner {
    grid-template-columns: 1fr;
  }

  .policy-template .download-card {
    padding-inline: 0;
  }

}

@media (width <=480px) {
  .policy-template .page-hero__content {
    padding-inline: 1rem;
    padding-top: 30px;
  }

  .policy-template .policy-hero__title,
  .policy-template .policy-hero__subtitle {
    width: 100%;
    max-width: 92vw;
    overflow-wrap: anywhere;
  }

  .policy-template .three-pillars__copy {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .policy-template .character-btn__img {
    transition: none;
  }
}

/* Character profile dialog */

#policy-character-lightbox {
  --dialog-purple: #443a84;
  --dialog-purple-dark: #443a84;
  --dialog-aqua-light: #dffdfb;
  --dialog-teal: #00ede1;
  --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);
  }
}