.content-top-hero--learning { --content-top-hero-bg: #ccf3ef; }

.learning-page .progress-section--learning .learning-button,
.parents-guide .progress-section--parents-guide .learning-button { white-space: normal; overflow-wrap: anywhere; }
.learning-page .progress-section--learning .learning-button .css-arrow,
.parents-guide .progress-section--parents-guide .learning-button .css-arrow { flex-shrink: 0; }

.learning-hero__visual--one {
  --float-duration: 5.2s;
  --float-delay: -1.1s;
  --float-distance: -10px;
  top: 42px;
  left: max(40px, calc((100% - 1280px) / 2));
  width: clamp(120px, 10.5vw, 155px);
}

.learning-hero__visual--two {
  --float-duration: 6.1s;
  --float-delay: -3.4s;
  --float-distance: -14px;
  bottom: -100px;
  left: max(100px, calc((100% - 1280px) / 2 + 105px));
  width: clamp(250px, 21vw, 305px);
}

.learning-hero__visual--three {
  --float-duration: 5.7s;
  --float-delay: -2.2s;
  --float-distance: -12px;
  right: max(55px, calc((100% - 1280px) / 2 + 20px));
  bottom: -105px;
  width: clamp(290px, 25vw, 365px);
}

.learning-audience {
  position: relative;
  margin-top: -40px;
  padding: 75px 0 70px;
  background: #fff;
  border-radius: 0;
}

@media (min-width: 768px) {
  .learning-audience {
    margin-top: -80px;
  }
}

.progress-section--learning {
  padding-top: 60px;
  background-color: #effdfb;
  background-image: repeating-linear-gradient(45deg, rgb(0 184 173 / 8%) 0, rgb(0 184 173 / 8%) 15px, transparent 15px, transparent 35px);
}

.progress-section--learning .learning-button--primary {
  background: var(--color-navy);
  border-color: var(--color-navy);
}

.progress-section--learning .learning-button--quiz {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.progress-section--learning .learning-button--outline {
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.progress-section--learning .progress-card__account-actions,
.progress-section--parents-guide .progress-card__account-actions {
  display: grid;
  margin-top: auto;
  padding-top: 22px;
  justify-items: center;
  gap: 12px;
}

.progress-section--learning .learning-button--status,
.progress-section--parents-guide .learning-button--status {
  color: var(--color-navy);
  background: #fff;
  border-color: var(--color-navy);
}

.progress-section--learning .progress-card__login,
.progress-section--parents-guide .progress-card__login {
  padding: 0;
  color: var(--color-navy);
  background: transparent;
  border: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (min-width: 768px) {
  .progress-section--learning .progress-card--current,
  .progress-section--parents-guide .progress-card--current {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
    gap: 24px;
  }
}

.progress-section--learning .learning-panel--lesson,
.progress-section--parents-guide .learning-panel--lesson {
  min-height: 344px;
  color: inherit;
  background: #fff;
  border-width: 2px;
  border-radius: 18px;
  box-shadow: 0 0 0 5px rgb(20 170 145 / 18%);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.progress-section--learning .learning-panel--lesson:hover,
.progress-section--parents-guide .learning-panel--lesson:hover {
  box-shadow: 0 7px 18px rgb(20 85 145 / 18%), 0 0 0 5px rgb(20 170 145 / 24%);
  transform: translateY(-4px);
}

.progress-section--learning .learning-panel--lesson:hover .learning-button,
.progress-section--parents-guide .learning-panel--lesson:hover .learning-button {
  filter: brightness(0.94);
}

.progress-section--learning .learning-panel--lesson:focus-visible,
.progress-section--parents-guide .learning-panel--lesson:focus-visible {
  outline: 4px solid #ffd64f;
  outline-offset: 5px;
}

.progress-section--learning .learning-panel__lesson-content,
.progress-section--parents-guide .learning-panel__lesson-content {
  min-height: 288px;
  background: #fff;
  border-radius: 16px 16px 0 0;
}

.progress-section--learning .learning-panel__tag,
.progress-section--parents-guide .learning-panel__tag {
  top: -14px;
  left: 4px;
  width: 110px;
  height: 142px;
  padding: 10px 8px 0 30px;
  overflow: visible;
  background: url("../images/learning/tag.png") left top / auto 100% no-repeat;
  font-size: 0.6875rem;
  line-height: 1.15;
  text-align: center;
}

.progress-section--learning .learning-panel__tag strong,
.progress-section--parents-guide .learning-panel__tag strong {
  display: block;
  margin-top: 0;
  font-size: 1.125rem;
  line-height: 1;
}

.progress-section--learning .learning-panel__body,
.progress-section--parents-guide .learning-panel__body {
  width: calc(100% - 118px);
  padding: 18px 10px 0 0;
}

.progress-section--learning .learning-panel--lesson h3,
.progress-section--parents-guide .learning-panel--lesson h3 {
  font-size: 1rem;
  line-height: 1.55;
  white-space: normal;
}

.progress-section--learning .learning-panel--lesson .learning-panel__image,
.progress-section--parents-guide .learning-panel--lesson .learning-panel__image {
  width: 92%;
  max-height: 170px;
  transform: translate(5px, 4px);
}

.progress-section--learning .learning-panel--lesson .learning-button,
.progress-section--parents-guide .learning-panel--lesson .learning-button {
  border-top: 0;
  border-radius: 0 0 16px 16px;
}

.learning-flow {
  padding: 70px 0;
  background-color: #fff;
  background-image: linear-gradient(rgb(25 40 150 / 6%) 1px, transparent 1px), linear-gradient(90deg, rgb(25 40 150 / 6%) 1px, transparent 1px);
  background-size: 25px 25px;
}

.learning-flow__diagram {
  display: grid;
  grid-template-columns: 0.8fr 0.8fr 1.6fr;
  align-items: center;
  gap: 40px;
}

.flow-step,
.flow-result {
  position: relative;
  background: #fff;
  border: 3px solid var(--color-navy);
}

.flow-step {
  display: flex;
  min-height: 370px;
  padding: 45px 25px 30px;
  align-items: center;
  flex-direction: column;
  border-radius: 50% / 20%;
  text-align: center;
}

.flow-step::after {
  position: absolute;
  top: 50%;
  right: -35px;
  width: 25px;
  height: 15px;
  border-top: 3px solid var(--color-navy);
  border-right: 3px solid var(--color-navy);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.flow-step__number {
  position: absolute;
  top: -20px;
  left: 20px;
  padding: 5px 20px;
  color: #fff;
  background: var(--color-navy);
  border-radius: 15px 15px 0 0;
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
}

.flow-step h3,
.flow-result h3 {
  margin: 0;
  font-size: 1.375rem;
  line-height: 1.5;
}

.flow-step img {
  width: 135px;
  height: 135px;
  margin: 20px 0;
  object-fit: contain;
}

.flow-step p,
.flow-result p {
  margin: 0;
  color: var(--color-text-sub);
  font-size: 0.75rem;
  line-height: 1.8;
}

.learning-flow__branches {
  display: grid;
  gap: 30px;
}

.flow-result {
  display: grid;
  min-height: 180px;
  padding: 30px;
  grid-template-columns: 1fr 160px;
  align-items: center;
  gap: 20px;
  border-radius: 90px 25px 25px 90px;
}

.flow-result img {
  width: 100%;
  height: 145px;
  object-fit: contain;
}

.flow-result .flow-step__number {
  left: 40px;
}

.learning-flow--kana .section-heading p,
.learning-completion--kana .section-heading p,
.learning-flow--kana .flow-step p,
.learning-flow--kana .flow-result p {
  font-size: 0.875rem;
}

.learning-flow--kana .flow-step img {
  width: clamp(135px, 10.8vw, 155px);
  height: clamp(135px, 10.8vw, 155px);
  margin: 8px 0;
}

.learning-flow--kana .flow-result img {
  width: 100%;
  height: clamp(155px, 12vw, 185px);
}

.learning-flow--kana .flow-result .flow-step__number {
  top: -20px;
  left: 20px;
}

.learning-flow--kana .flow-step p {
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
  transform: translateY(-6px);
}

.learning-flow--kana .flow-step--one p {
  width: 9em;
}

.learning-flow--kana .flow-step--two p {
  width: 11em;
}

@media (min-width: 1101px) {
  .learning-flow__diagram {
    position: relative;
    grid-template-columns: minmax(255px, 310px) minmax(255px, 310px) minmax(360px, 430px);
    justify-content: center;
    gap: clamp(55px, 5vw, 75px);
  }

  .flow-step {
    width: 100%;
    min-height: 0;
    aspect-ratio: 1;
    padding: 32px 24px 24px;
    justify-content: center;
    border-radius: 50%;
  }

  .learning-flow--kana .flow-step {
    padding: 48px 28px 30px;
  }

  .learning-flow--kanji .flow-step h3 {
    font-size: 1.125rem;
  }

  .learning-flow--kanji .flow-step img {
    width: 115px;
    height: 115px;
    margin: 10px 0;
  }

  .learning-flow--kanji .flow-step p {
    font-size: 0.6875rem;
    line-height: 1.7;
  }

  .learning-flow--kanji .flow-step--one p {
    width: 21em;
    max-width: 100%;
    margin-inline: auto;
  }

  .flow-step__number {
    top: -18px;
    left: 50%;
    padding: 5px 20px;
    border-radius: 10px;
    font-size: 1.25rem;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .learning-flow--kana .flow-step h3,
  .learning-flow--kana .flow-result h3 {
    font-size: 1.5rem;
  }

  .flow-step--one::after {
    top: 50%;
    right: clamp(-75px, -5vw, -55px);
    width: clamp(58px, 5vw, 76px);
    height: 24px;
    border: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 76 24'%3E%3Cpath d='M1 12h70M60 2l11 10-11 10' fill='none' stroke='%23192897' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    transform: translateY(-50%);
  }

  .flow-step--two::after {
    top: 50%;
    right: clamp(-105px, -7vw, -78px);
    width: clamp(82px, 7vw, 106px);
    height: min(390px, 32vw);
    border: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 106 390'%3E%3Cpath d='M1 195 98 72M84 73h14v14M1 195l97 123M84 317h14v-14' fill='none' stroke='%23192897' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
    transform: translateY(-50%);
  }

  .learning-flow__branches {
    gap: 40px;
  }

  .flow-result {
    min-height: 235px;
    padding: 32px 24px 28px 52px;
    grid-template-columns: minmax(0, 1fr) 185px;
    gap: 12px;
    border-radius: 118px;
  }

  .flow-result .flow-step__number {
    top: 18px;
    left: -4px;
    transform: none;
  }

  .learning-flow--kana .flow-result .flow-step__number {
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
  }

  .learning-flow--kanji .flow-result .flow-step__number {
    top: -18px;
  }
}

.learning-completion {
  padding: 70px 0 90px;
  background: #fff;
}

.completion-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.completion-card {
  display: grid;
  min-height: 320px;
  overflow: visible;
  grid-template-columns: 1fr 220px;
  grid-template-rows: 1fr 55px;
  background: #fff;
  border: 2px solid #252525;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgb(25 40 150 / 8%);
}

.completion-card__copy {
  padding: 35px 10px 20px 35px;
}

.completion-card__copy h3 {
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  display: flex;
  width: 260px;
  max-width: 100%;
  min-width: 0;
  min-height: 84px;
  margin: 0 0 18px;
  padding: 18px 28px;
  left: -52px;
  justify-content: center;
  flex-direction: column;
  background: url("../images/learning/ribbon.png") center / 100% 100% no-repeat;
  color: var(--color-navy);
  font-size: 1rem;
  line-height: 1.35;
}

.completion-card__copy h3 > span {
  transform: translateY(-11px);
}

.completion-card__copy p {
  margin: 0;
  color: #333;
  font-size: 0.8125rem;
  line-height: 1.8;
}

.completion-card > img {
  width: 100%;
  height: 250px;
  padding: 20px;
  align-self: end;
  object-fit: contain;
}

.completion-card__link {
  display: flex;
  grid-column: 1 / -1;
  min-height: 55px;
  padding: 10px 25px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: #fff;
  background: var(--color-navy);
  border-radius: 0 0 18px 18px;
  font-weight: 700;
  text-decoration: none;
}

.learning-completion--kana .completion-card__copy p,
.learning-completion--kana .completion-card__link {
  font-size: 0.9375rem;
}

.related-content-list {
  padding: 55px 0 70px;
  background: #cef4f1;
}

.related-content-list__asset-note {
  margin: 0;
}

@media (max-width: 1024px) {

  .learning-hero__visual--one {
    left: 20px;
    width: clamp(105px, 13vw, 135px);
  }

  .learning-hero__visual--two {
    bottom: -85px;
    left: 65px;
    width: clamp(220px, 27vw, 285px);
  }

  .learning-hero__visual--three {
    bottom: -90px;
    right: 10px;
    width: clamp(250px, 31vw, 320px);
  }

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

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

  .learning-flow__branches {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-step::after {
    display: none;
  }

  .flow-result {
    grid-template-columns: 1fr 120px;
  }

  .completion-card {
    grid-template-columns: 1fr 170px;
  }
}

@media (max-width: 767px) {

  .learning-hero__visual--one {
    top: auto;
    bottom: 42px;
    left: 3%;
    width: min(24vw, 125px);
  }

  .learning-hero__visual--two {
    bottom: -18px;
    left: 19%;
    width: min(45vw, 260px);
  }

  .learning-hero__visual--three {
    right: -5%;
    bottom: -20px;
    width: min(47vw, 275px);
  }

  .learning-audience {
    width: min(calc(100% - 30px), var(--content-width));
    margin-top: -35px;
    padding: 60px 0 50px;
    border-radius: 0;
  }

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

  .learning-flow__diagram,
  .learning-flow__branches,
  .completion-cards {
    grid-template-columns: 1fr;
  }

  .learning-flow,
  .learning-completion {
    padding: 55px 0;
  }

  .flow-step {
    min-height: auto;
    border-radius: 30px;
  }

  .learning-flow__branches {
    grid-column: auto;
  }

  .flow-result {
    padding: 35px 25px 25px;
    grid-template-columns: 1fr 100px;
    border-radius: 30px;
  }

  .completion-cards {
    gap: 25px;
  }

  .completion-card {
    grid-template-columns: 1fr 120px;
  }

  .completion-card__copy {
    padding: 25px 5px 20px 20px;
  }

  .completion-card__copy h3 {
    min-width: 0;
    left: -36px;
    font-size: 1rem;
  }

  .completion-card > img {
    height: 220px;
    padding: 10px;
  }

  .related-content-list {
    padding: 45px 0 55px;
  }
}

@media (max-width: 480px) {
  .learning-audience .audience-grid {
    grid-template-columns: 1fr;
  }

  .flow-result,
  .completion-card {
    grid-template-columns: 1fr;
  }

  .flow-result img {
    height: 120px;
  }

  .completion-card__copy {
    padding: 25px 20px 10px;
  }

  .completion-card__copy h3 {
    min-width: 0;
  }

  .completion-card > img {
    height: 170px;
  }
}

/* Opt-in category invitation cards: existing learning/rule/exam cards stay unchanged.
   Link labels use large bold text (at least 19px/700) for the bright 3:1 backgrounds. */
.completion-cards--category { gap: 36px; margin-top: 55px; }
.completion-cards--category .completion-card { --completion-border: #7d46b4; --completion-accent: #7d46b4; --completion-link: #7d46b4; --completion-soft: #efe4ff; display: grid; min-width: 0; min-height: 300px; grid-template-columns: minmax(0, 1fr) minmax(0, 33%); grid-template-rows: 1fr auto; background: var(--completion-soft); border: 1px solid var(--completion-border); border-radius: 20px; box-shadow: none; }
.completion-cards--category .completion-card--learning,
.completion-cards--category .completion-card--exam { --completion-border: #1ca28f; --completion-accent: #128172; --completion-link: #1ca28f; --completion-soft: #effdfb; }
.completion-cards--category .completion-card--rule { --completion-border: #de7300; --completion-accent: #9b5100; --completion-link: #de7300; --completion-soft: #faefdd; }
.completion-cards--category .completion-card--diagnosis { --completion-border: #7d46b4; --completion-accent: #7d46b4; --completion-link: #7d46b4; --completion-soft: #efe4ff; }
.completion-cards--category .completion-card__copy { min-width: 0; padding: 24px 18px 28px 32px; }
.completion-cards--category .completion-card__ribbon { position: relative; width: calc(100% + 44px); margin-left: -44px; margin-bottom: 28px; }
.completion-cards--category .completion-card__ribbon::before { position: absolute; bottom: -16px; left: 0; width: 14px; height: 22px; background: #222; border-radius: 0 0 0 10px; content: ''; }
.completion-cards--category .completion-card__ribbon h3 { position: relative; z-index: 1; left: 0; display: block; width: 100%; max-width: none; min-height: 0; margin: 0; padding: 18px 32px 18px 20px; background: none; color: var(--completion-accent); font-size: 1.25rem; font-weight: 700; line-height: 2.2; overflow-wrap: anywhere; }
.completion-cards--category .completion-card__ribbon h3::before, .completion-cards--category .completion-card__ribbon h3::after { position: absolute; z-index: -1; inset: 0; background: var(--completion-border); clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 50%, 100% 100%, 0 100%); content: ''; }
.completion-cards--category .completion-card__ribbon h3::after { inset: 2px; background: #fff; }
.completion-cards--category .completion-card__ribbon h3 > span { display: block; transform: none; }
.completion-cards--category .completion-card__copy p { margin: 0; color: #333; font-size: 1rem; line-height: 2.2; overflow-wrap: anywhere; }
.completion-cards--category .completion-card > img { width: 100%; height: 250px; padding: 0 12px 12px 0; margin-top: -28px; align-self: start; object-fit: contain; }
.completion-cards--category .completion-card__link { display: block; position: relative; grid-column: 1 / -1; min-height: 56px; padding: 14px 44px 14px 20px; border-radius: 0 0 18px 18px; background: var(--completion-link); color: #fff; text-align: center; font-size: 1.25rem; font-weight: 700; line-height: 2.2; overflow-wrap: anywhere; }
.completion-cards--category .completion-card__link:hover { background-image: linear-gradient(rgb(0 0 0 / 8%), rgb(0 0 0 / 8%)); }
.completion-cards--category .completion-card__link:focus-visible { outline: 3px solid #192896; outline-offset: 4px; }
.completion-cards--category .completion-card__link .css-arrow { position: absolute; right: 22px; top: calc(50% - 4px); }
@media (min-width: 1025px) {
  /* Share the link row height when enlarged labels wrap to different line counts. */
  .completion-cards--category { grid-template-rows: 1fr auto; row-gap: 0; }
  .completion-cards--category .completion-card { grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; }
}
@media (max-width: 1024px) {
  .completion-cards--category { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .completion-cards--category .completion-card__ribbon h3,
  .completion-cards--category .completion-card__link { font-size: 1.1875rem; }
  .completion-cards--category .completion-card { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .completion-cards--category .completion-card__copy { padding: 24px 20px; }
  .completion-cards--category .completion-card__ribbon { width: calc(100% + 30px); margin-left: -30px; }
  .completion-cards--category .completion-card > img { width: min(100%, 220px); height: 200px; margin: 0 auto; padding: 0 16px 16px; }
}

/* Destination guide cards. Layout is shared; destination modifiers own color. */
.guide-card-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.guide-card-list--rule-tool { gap: 30px; margin-top: 40px; }
.guide-card-list--rule-flow { width: min(960px, 100%); gap: 22px; margin-inline: auto; }
.guide-card { display: grid; min-width: 0; min-height: 320px; grid-template-columns: minmax(0, 1fr) minmax(0, 38%); grid-template-rows: 1fr auto; overflow: visible; background: color-mix(in srgb, var(--guide-bg) 10%, #fff); border: 2px solid var(--guide-bg); border-radius: 20px; box-shadow: 0 5px 15px rgb(25 40 150 / 8%); color: inherit; text-decoration: none; }
.guide-card__copy { min-width: 0; padding: 32px 10px 20px 30px; }
.guide-card__copy h3 { margin: 0 0 15px; color: var(--guide-text); font-size: 1.25rem; line-height: 1.45; overflow-wrap: anywhere; }
.guide-card__copy p { margin: 0; color: #333; font-size: .8125rem; line-height: 1.8; }
.guide-card__image { width: 100%; height: 250px; padding: 20px; align-self: end; object-fit: contain; }
.guide-card__link { display: flex; grid-column: 1 / -1; min-height: 55px; padding: 10px 25px; align-items: center; justify-content: center; gap: 20px; color: #fff; background: var(--guide-text); border-radius: 0 0 17px 17px; font-weight: 700; text-decoration: none; }
.guide-card__link:hover, .guide-card:hover > .guide-card__link { background-image: linear-gradient(rgb(0 0 0 / 8%), rgb(0 0 0 / 8%)); }
.guide-card__link:focus-visible, .guide-card:focus-visible { outline: 3px solid var(--guide-text); outline-offset: 4px; }
.guide-card--ribbon .guide-card__copy { padding: 35px 10px 20px 35px; }
.guide-card--ribbon .guide-card__copy h3 { position: relative; z-index: 2; isolation: isolate; display: flex; width: 260px; max-width: 100%; min-height: 84px; margin-bottom: 18px; padding: 18px 28px; left: -52px; justify-content: center; flex-direction: column; color: var(--guide-text); font-size: 1rem; line-height: 1.35; }
.guide-card--ribbon .guide-card__copy h3::before,
.guide-card--ribbon .guide-card__copy h3::after { position: absolute; z-index: -1; inset: 0; clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 50%, 100% 100%, 0 100%); content: ''; }
.guide-card--ribbon .guide-card__copy h3::before { background: var(--guide-bg); }
.guide-card--ribbon .guide-card__copy h3::after { inset: 2px; background: #fff; }
.guide-card--ribbon .guide-card__copy h3 > span { transform: translateY(-11px); }
.learning-completion--kana .guide-card__copy p, .learning-completion--kana .guide-card__link { font-size: .9375rem; }
.guide-card--plain { min-height: 260px; overflow: hidden; }
.guide-card--plain .guide-card__image { height: 205px; padding: 0; object-position: center bottom; }
.guide-card--plain .guide-card__copy p { color: #555; font-size: .75rem; }
.guide-card--compact { min-height: 220px; grid-template-columns: minmax(0, 1fr); }
.guide-card--compact .guide-card__copy { padding: 25px; }
.guide-card--compact .guide-card__copy h3 { font-size: 1rem; }
@media (min-width: 768px) and (max-width: 1024px) {
  .guide-card-list { gap: 22px; }
  .guide-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
  .guide-card__copy, .guide-card--ribbon .guide-card__copy { padding: 22px 20px 8px; }
  .guide-card__image, .guide-card--plain .guide-card__image { width: min(60%, 170px); height: 130px; padding: 0 10px 8px; justify-self: end; }
  .guide-card--ribbon .guide-card__copy h3 { left: -37px; }
}
@media (max-width: 767px) {
  .guide-card-list { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .guide-card { grid-template-columns: minmax(0, 1fr) minmax(0, 120px); }
  .guide-card__copy, .guide-card--ribbon .guide-card__copy { padding: 25px 5px 20px 20px; }
  .guide-card--ribbon .guide-card__copy h3 { left: -36px; }
  .guide-card__image { height: 220px; padding: 10px; }
  .guide-card--compact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .guide-card { grid-template-columns: minmax(0, 1fr); }
  .guide-card__copy, .guide-card--ribbon .guide-card__copy { padding: 25px 20px 10px; }
  .guide-card__image, .guide-card--plain .guide-card__image { width: min(65%, 200px); height: 170px; padding: 0; justify-self: end; }
}

/* Shared four-card content list, including the front page. */
main .related-content-list.related-content-list--feature {
  padding: 58px 0 62px;
  background: #d4f5f2;
}
main[data-top-page] .related-content-list--top.related-content-list--feature { padding: 72px 0 82px; }
@media (max-width: 767px) {
  main[data-top-page] .related-content-list--top.related-content-list--feature { padding: 52px 0 58px; }
}
.related-content-list--feature .content-feature__header {
  margin-bottom: 34px;
  text-align: center;
}
.related-content-list--feature .content-feature__header h2 {
  margin: 0;
  color: #111;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.4;
}
.related-content-list--feature .content-feature__header h2 span { color: var(--color-navy); }
.related-content-list--feature .section-heading__wave {
  display: block;
  margin: 12px auto 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 55 10'%3E%3Cpath d='M1 5c4-7 8 7 12 0s8 7 12 0 8 7 12 0 8 7 12 0' fill='none' stroke='%23192896' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.related-content-list--feature .content-feature__header p {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 2px 8px;
  background: #fff;
  color: #111;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}
.related-content-list--feature .content-feature__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 36px;
}
.related-content-list--feature .content-feature__card {
  --content-feature-accent: var(--color-navy);
  --content-feature-button: var(--color-navy);
  --content-feature-button-hover: #0d1765;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  min-width: 0;
  overflow: visible;
  padding: 28px 34px 32px;
  border-radius: 20px;
  background: #fff;
  color: #303030;
  text-decoration: none;
}
.related-content-list--feature .content-feature__card--pink {
  --content-feature-accent: #d43b65;
  --content-feature-button: #d43b65;
  --content-feature-button-hover: #a02d55;
}
.related-content-list--feature .content-feature__card:last-child { --content-feature-button: #17268f; }
.related-content-list--feature .content-feature__card--large { min-height: 345px; }
.related-content-list--feature .content-feature__card--small { min-height: 205px; }
.related-content-list--feature .content-feature__card:hover .content-feature__action,
.related-content-list--feature .content-feature__card:focus-visible .content-feature__action { background: var(--content-feature-button-hover); }
.related-content-list--feature .content-feature__card:focus-visible { outline: 3px solid var(--content-feature-accent); outline-offset: 4px; }
.related-content-list--feature .content-feature__lead {
  position: relative;
  z-index: 1;
  display: block;
  box-sizing: border-box;
  min-width: min(280px, 100%);
  max-width: 100%;
  margin: 0 0 18px -34px;
  padding: 5px 30px 5px 34px;
  isolation: isolate;
  color: var(--content-feature-accent);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
}
.related-content-list--feature .content-feature__lead::before,
.related-content-list--feature .content-feature__lead::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--content-feature-accent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  content: '';
}
.related-content-list--feature .content-feature__lead::after { inset: 2px; background: #fff; }
.related-content-list--feature .content-feature__title,
.related-content-list--feature .content-feature__description { position: relative; z-index: 1; }
.related-content-list--feature .content-feature__title {
  display: block;
  max-width: 65%;
  font-size: clamp(1.26rem, 1.8vw, 1.8rem);
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.related-content-list--feature .content-feature__card--large:nth-child(2) .content-feature__title { max-width: 72%; }
.related-content-list--feature .content-feature__description {
  display: block;
  max-width: 63%;
  margin-top: 17px;
  font-size: .9rem;
  line-height: 1.8;
}
.related-content-list--feature .content-feature__card--large:nth-child(2) .content-feature__description { max-width: 58%; }
.related-content-list--feature .content-feature__image {
  position: absolute;
  z-index: 0;
  right: -16px;
  bottom: 20px;
  display: block;
  width: 37.4%;
  max-height: 98%;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}
.related-content-list--feature .content-feature__card--large:nth-child(2) .content-feature__image { right: -10px; width: 40.8%; bottom: 18px; }
.related-content-list--feature .content-feature__action {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 65%;
  min-height: 50px;
  margin-top: auto;
  border-radius: 99px;
  background: var(--content-feature-button);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}
.related-content-list--feature .content-feature__arrow {
  position: absolute;
  right: 22px;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.related-content-list--feature .content-feature__card--small .content-feature__lead { margin-bottom: 19px; }
.related-content-list--feature .content-feature__card--small .content-feature__title { max-width: calc(100% - 120px); font-size: clamp(1.35rem, 1.8vw, 1.75rem); }
.related-content-list--feature .content-feature__card--small .content-feature__description { max-width: calc(100% - 140px); margin-top: 12px; }
.related-content-list--feature .content-feature__card--small .content-feature__image { top: -26px; right: 18px; bottom: auto; width: 135px; height: 190px; max-height: none; object-position: right top; }
.related-content-list--feature .content-feature__card--small:nth-child(3) .content-feature__title,
.related-content-list--feature .content-feature__card--small:nth-child(3) .content-feature__description { max-width: calc(100% - 145px); }
.related-content-list--feature .content-feature__card--small:nth-child(3) .content-feature__image { width: 160px; }
.related-content-list--feature .content-feature__card--small .content-feature__action { position: absolute; right: 34px; bottom: 31px; width: 50px; height: 50px; min-height: 0; }
.related-content-list--feature .content-feature__card--small .content-feature__arrow { right: 21px; }
@media (max-width: 900px) {
  .related-content-list--feature .content-feature__grid { grid-template-columns: 1fr; gap: 20px; }
  .related-content-list--feature .content-feature__card--small .content-feature__image { top: -18px; }
}
@media (max-width: 600px) {
  main .related-content-list.related-content-list--feature { padding: 44px 0 50px; }
  .related-content-list--feature .content-feature__header { margin-bottom: 26px; }
  .related-content-list--feature .content-feature__header p { font-size: .875rem; }
  .related-content-list--feature .content-feature__card { padding: 20px; border-radius: 16px; }
  .related-content-list--feature .content-feature__card--large,
  .related-content-list--feature .content-feature__card--small { min-height: 0; }
  .related-content-list--feature .content-feature__lead { min-width: 0; width: min(270px, calc(100% - 16px)); margin-left: -20px; padding-left: 20px; font-size: .95rem; }
  .related-content-list--feature .content-feature__title,
  .related-content-list--feature .content-feature__card--small .content-feature__title { max-width: 100%; font-size: 1.45rem; }
  .related-content-list--feature .content-feature__card--large .content-feature__title { max-width: 100%; font-size: 1.3rem; }
  .related-content-list--feature .content-feature__card--large:nth-child(2) .content-feature__title { max-width: 100%; }
  .related-content-list--feature .content-feature__description,
  .related-content-list--feature .content-feature__card--small .content-feature__description { max-width: 100%; font-size: .875rem; }
  .related-content-list--feature .content-feature__card--large:nth-child(2) .content-feature__description { max-width: 100%; }
  .related-content-list--feature .content-feature__image,
  .related-content-list--feature .content-feature__card--large:nth-child(2) .content-feature__image {
    position: static;
    align-self: flex-end;
    width: min(63.75%, 196px);
    height: 128px;
    max-height: none;
    margin: 12px -28px 18px 0;
    object-position: right center;
  }
  .related-content-list--feature .content-feature__card--small .content-feature__image { top: -8px; right: 20px; width: 100px; height: 130px; object-position: center top; }
  .related-content-list--feature .content-feature__card--small:nth-child(3) .content-feature__image,
  .related-content-list--feature .content-feature__card--small:nth-child(4) .content-feature__image {
    position: static;
    align-self: flex-end;
    order: 3;
    margin: 4px -28px 0 0;
  }
  .related-content-list--feature .content-feature__card--small:nth-child(3) .content-feature__image { width: 110px; height: 116px; }
  .related-content-list--feature .content-feature__card--small:nth-child(4) .content-feature__image { width: 100px; height: 130px; }
  .related-content-list--feature .content-feature__card--small .content-feature__lead { width: min(270px, calc(100% - 90px)); }
  .related-content-list--feature .content-feature__card--small .content-feature__title { max-width: calc(100% - 80px); }
  .related-content-list--feature .content-feature__card--small:nth-child(3) .content-feature__lead,
  .related-content-list--feature .content-feature__card--small:nth-child(4) .content-feature__lead { width: calc(100% + 20px); max-width: none; }
  .related-content-list--feature .content-feature__card--small:nth-child(3) .content-feature__title,
  .related-content-list--feature .content-feature__card--small:nth-child(4) .content-feature__title { order: 1; width: 100%; min-height: 0; max-width: 100%; }
  .related-content-list--feature .content-feature__card--small:nth-child(3) .content-feature__description,
  .related-content-list--feature .content-feature__card--small:nth-child(4) .content-feature__description { order: 2; width: 100%; max-width: 100%; }
  .related-content-list--feature .content-feature__card--small:nth-child(3) .content-feature__action,
  .related-content-list--feature .content-feature__card--small:nth-child(4) .content-feature__action { order: 4; }
  .related-content-list--feature .content-feature__action { width: 100%; margin-top: 0; }
  .related-content-list--feature .content-feature__card--small .content-feature__action { position: relative; right: auto; bottom: auto; align-self: flex-end; margin-top: 0; }
}
