/* Approved homepage heading: two rows, with the original gold emphasis. */
.home-landing .home-hero .home-hero__title {
  width: min(100%, 720px);
  container-type: inline-size;
}
.home-landing .home-hero .home-hero__title .home-hero__title-line {
  display: block;
  color: inherit;
  white-space: nowrap;
  font-size: min(1em, 9cqi);
}
.home-landing .home-hero .home-hero__title .home-hero__title-line--exam {
  font-size: min(1em, 8.1cqi);
}
.home-landing .home-hero .home-hero__title .home-hero__title-accent {
  display: inline;
  color: #ffb107;
}

/* Keep the supplied scene intact: a cover crop would cut off the jet or tank. */
.home-landing .home-hero .home-hero__image--combined {
  object-fit: contain;
  object-position: right center !important;
  opacity: 1 !important;
}
.home-landing .home-hero__image--combined + .home-hero__shade {
  background: linear-gradient(90deg, #05101f 0%, #05101f 30%, rgba(5,16,31,.78) 43%, rgba(5,16,31,.16) 60%, transparent 76%) !important;
}

/* Match the original Cadet Club hero behavior on smaller screens. */
@media (max-width: 900px){
  .home-landing:not(.exam-overview-page) .home-hero__stage,
  .home-landing:not(.exam-overview-page) .home-hero__headline {
    min-height: 340px !important;
  }
  .home-landing:not(.exam-overview-page) .home-hero__headline {
    padding: 38px 34px !important;
  }
  .home-landing .home-hero .home-hero__image--combined {
    inset: 0;
    height: 100%;
    object-fit: cover;
    object-position: 58% center !important;
    opacity: 1 !important;
  }
  .home-landing .home-hero__image--combined + .home-hero__shade {
    background:
      linear-gradient(90deg, rgba(3, 10, 24, .92) 0%, rgba(5, 14, 30, .76) 34%, rgba(5, 14, 30, .24) 66%, rgba(3, 10, 24, .12) 100%),
      linear-gradient(180deg, rgba(2, 8, 23, .16), rgba(2, 8, 23, .2)) !important;
  }
}
@media (max-width: 640px){
  .home-landing:not(.exam-overview-page) .home-hero__stage,
  .home-landing:not(.exam-overview-page) .home-hero__headline {
    min-height: 360px !important;
  }
  .home-landing:not(.exam-overview-page) .home-hero__headline {
    padding: 24px 20px 26px !important;
    justify-content: center !important;
    gap: 16px !important;
  }
  .home-landing .home-hero .home-hero__image--combined {
    inset: 0;
    height: 100%;
    object-fit: cover;
    object-position: 78% 48% !important;
    opacity: .82 !important;
  }
  .home-landing .home-hero__image--combined + .home-hero__shade {
    background:
      radial-gradient(circle at 78% 18%, rgba(148, 163, 184, .24), transparent 34%),
      linear-gradient(90deg, rgba(3, 10, 24, .92) 0%, rgba(5, 14, 30, .7) 50%, rgba(5, 14, 30, .34) 100%),
      linear-gradient(180deg, rgba(2, 8, 23, .18), rgba(2, 8, 23, .42)) !important;
  }
}
/* Main homepage: reduce heading size only. */
@media (min-width: 641px) {
  .home-landing:not(.exam-overview-page) .home-hero .home-hero__title {
    font-size: clamp(36px, 3.55vw, 48px) !important;
  }
}
/* Centre the homepage text group and give its lines a clearer rhythm. */
.home-landing:not(.exam-overview-page) .home-hero .home-hero__headline {
  align-items: center;
  text-align: center;
  gap: 24px !important;
}
.home-landing:not(.exam-overview-page) .home-hero .home-hero__title {
  text-align: center;
  line-height: 1.12 !important;
}
.home-landing:not(.exam-overview-page) .home-hero .home-hero__support-row {
  justify-content: center;
}
.home-landing:not(.exam-overview-page) .home-hero .home-hero__copy {
  text-align: center;
}
@media (max-width: 640px) {
  .home-landing:not(.exam-overview-page) .home-hero .home-hero__headline {
    gap: 20px !important;
  }
}
/* Keep the text block on the left; centre only the text inside it. */
.home-landing:not(.exam-overview-page) .home-hero .home-hero__headline {
  margin-left: 0 !important;
  margin-right: auto !important;
  left: auto;
  transform: none;
}
.home-landing:not(.exam-overview-page) .home-hero .home-hero__title,
.home-landing:not(.exam-overview-page) .home-hero .home-hero__support-row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100%;
}
/* One left-hand text column: legacy min-width rules must not span the hero. */
@media (min-width: 901px) {
  .home-landing:not(.exam-overview-page) .home-hero .home-hero__headline {
    box-sizing: border-box;
    width: 60% !important;
    min-width: 0 !important;
    max-width: 800px !important;
    margin: 0 auto 0 0 !important;
  }
}
.home-landing:not(.exam-overview-page) .home-hero .home-hero__title,
.home-landing:not(.exam-overview-page) .home-hero .home-hero__support-row {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}
.home-landing:not(.exam-overview-page) .home-hero .home-hero__support-row {
  justify-content: center !important;
}
.home-landing:not(.exam-overview-page) .home-hero .home-hero__copy {
  flex: 0 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  text-align: center !important;
  margin: 0 !important;
}
/* Slightly tighter main landing proportions. */
@media (min-width: 901px) {
  .home-landing:not(.exam-overview-page) .home-hero__stage,
  .home-landing:not(.exam-overview-page) .home-hero .home-hero__headline {
    min-height: 330px !important;
  }
  .home-landing:not(.exam-overview-page) .home-hero .home-hero__headline {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }
}
.home-landing:not(.exam-overview-page) .home-exam-card__content {
  min-height: 145px;
  padding: 18px 22px 16px;
  row-gap: 8px;
}
.home-landing:not(.exam-overview-page) .home-exam-card .home-exam-card__title {
  font-size: min(44px, 14cqi);
  letter-spacing: -.8px;
}
.home-landing:not(.exam-overview-page) .home-exam-card .home-exam-card__name {
  font-size: 13px;
}
.home-landing:not(.exam-overview-page) .home-exam-card__icon {
  width: 88px;
}
.home-landing:not(.exam-overview-page) .home-exam-card__action {
  min-height: 48px;
  padding: 9px 22px;
  font-size: 17px;
}
.home-landing:not(.exam-overview-page) .home-exam-card__arrow {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}
/* A further small reduction to the main homepage exam cards. */
.home-landing:not(.exam-overview-page) .home-exam-card__content {
  min-height: 128px;
  padding: 15px 19px 14px;
}
.home-landing:not(.exam-overview-page) .home-exam-card .home-exam-card__title {
  font-size: min(40px, 13cqi);
}
.home-landing:not(.exam-overview-page) .home-exam-card__icon {
  width: 78px;
}
.home-landing:not(.exam-overview-page) .home-exam-card__action {
  min-height: 44px;
  padding: 7px 19px;
  font-size: 16px;
}
.home-landing:not(.exam-overview-page) .home-exam-card__arrow {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}

/* Minimal exam selection cards; the approved hero and original landing styles remain separate. */
.home-landing .home-exam-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.home-landing .home-exam-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  border: 1px solid #d6c49d;
  border-radius: 20px;
  color: #102137;
  text-decoration: none;
  background: #fffdf8;
  box-shadow: 0 15px 34px rgba(15, 32, 53, .1), inset 0 1px 0 #fff;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.home-landing .home-exam-card::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0 25px auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, #b79049 24%, #e7d4a9 76%, transparent);
}

.home-landing .home-exam-card__content {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto;
  align-items: flex-start;
  column-gap: 16px;
  min-height: 184px;
  padding: 24px 24px 22px;
}

.home-landing .home-exam-card .home-exam-card__title {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  min-width: 0;
  margin: 0;
  color: #0e2037;
  font: 700 clamp(42px, 4.5vw, 60px)/.9 'Cormorant Garamond', Georgia, serif;
  font-size: min(56px, 15.5cqi);
  letter-spacing: -1.3px;
  text-align: left;
}

.home-landing .home-exam-card .home-exam-card__name {
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: end;
  max-width: none;
  margin: 0;
  color: #405a70;
  font: 500 14px/1.5 Inter, 'Segoe UI', sans-serif;
  letter-spacing: .03px;
  text-align: left;
}

.home-landing .home-exam-card--afcat .home-exam-card__name {
  white-space: normal;
}

.home-landing .home-exam-card__icon {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  place-items: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: clamp(72px, 30cqi, 115px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-landing .home-exam-card__badge {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
  object-position: 50% 50%;
  user-select: none;
  transition: transform .22s ease;
}

.home-landing .home-exam-card__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding: 14px 24px 14px 27px;
  border-top: 1px solid #c7a967;
  color: #fff5df;
  background: linear-gradient(112deg, #09192c, #18304b);
  font: 600 19px/1.35 'Cormorant Garamond', Georgia, serif;
  letter-spacing: .08px;
}

.home-landing .home-exam-card__arrow {
  display: grid;
  place-items: center;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(255, 241, 206, .85);
  border-radius: 50%;
  color: #102137;
  background: linear-gradient(135deg, #fae9bf, #d2a652);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .22);
}

.home-landing .home-exam-card__arrow svg {
  width: 19px;
  height: 19px;
  transition: transform .22s ease;
}

.home-landing .home-exam-card:focus-visible {
  outline: 3px solid #a97b2e;
  outline-offset: 5px;
}

@media (hover: hover){
  .home-landing .home-exam-card:hover {
    transform: translateY(-5px);
    border-color: #b99551;
    box-shadow: 0 24px 42px rgba(15, 32, 53, .17), inset 0 1px 0 #fff;
  }

  .home-landing .home-exam-card:hover .home-exam-card__arrow svg {
    transform: translateX(2px);
  }

  .home-landing .home-exam-card:hover .home-exam-card__badge {
    transform: scale(1.025);
  }
}

@media (min-width: 761px) and (max-width: 1100px){
  .home-landing .home-exam-grid { gap: 15px; }
  .home-landing .home-exam-card__content { min-height: 165px; column-gap: 9px; padding: 25px 17px 23px; }
  .home-landing .home-exam-card .home-exam-card__name { font-size: 14px; }
  .home-landing .home-exam-card__action { min-height: 61px; padding-inline: 17px 14px; font-size: 19px; }
  .home-landing .home-exam-card__arrow { width: 32px; height: 32px; flex-basis: 32px; }
}

@media (max-width: 760px){
  .home-landing .home-exam-grid { grid-template-columns: 1fr; gap: 18px; }
  .home-landing .home-exam-card__content { min-height: 170px; padding: 27px 23px 25px; }
  .home-landing .home-exam-card .home-exam-card__name { font-size: 14px; }
  .home-landing .home-exam-card__action { padding-inline: 23px; }
}

@media (max-width: 360px){
  .home-landing .home-exam-card__content { min-height: 160px; padding-inline: 19px; }
  .home-landing .home-exam-card__action { padding-inline: 19px; }
}

@media (prefers-reduced-motion: reduce){
  .home-landing .home-exam-card,
  .home-landing .home-exam-card__arrow svg,
  .home-landing .home-exam-card__badge { transition: none; }
  .home-landing .home-exam-card:hover,
  .home-landing .home-exam-card:hover .home-exam-card__arrow svg,
  .home-landing .home-exam-card:hover .home-exam-card__badge { transform: none; }
}

/* Lower-page system for the unified Cadet Club landing page. */
.home-landing #exams,
.home-landing #resources,
.home-landing #how,
.home-landing #about,
.home-landing #feedback {
  scroll-margin-top: 98px;
}

.home-landing .home-resources,
.home-landing .home-statistics,
.home-landing .home-story,
.home-landing .feedback {
  position: relative;
  padding: clamp(42px, 5.5vw, 76px) 0 !important;
}

.home-landing .home-section-intro {
  margin-bottom: clamp(24px, 3vw, 38px) !important;
}

.home-landing .home-section-intro--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .65fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  text-align: left !important;
}

.home-landing .home-section-intro--split > div {
  min-width: 0;
}

.home-landing .home-section-intro__copy {
  margin: 0;
  color: #526075;
  font: 400 17px/1.65 'DM Sans', Inter, sans-serif;
}

.home-landing .section-title {
  max-width: 900px;
  font-size: clamp(34px, 3.8vw, 50px) !important;
  line-height: 1.04 !important;
}

/* One connected surface communicates the breadth of the platform without six floating cards. */
.home-landing .home-resources {
  background:
    radial-gradient(circle at 7% 2%, rgba(201, 148, 36, .09), transparent 27%),
    linear-gradient(180deg, #fff 0%, #f5f8fc 100%);
}
.home-landing .home-resources .section-title { max-width: 24ch; font-size: clamp(32px, 3.2vw, 44px) !important; line-height: 1.12 !important; text-align: left !important; }
.home-landing .home-resources .home-section-intro--split { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.home-landing .home-resources .home-section-intro--split .section-title { max-width: none; margin: 0; }
.home-landing .home-resources .home-section-intro__copy { max-width: 78ch; }

.home-landing .home-resource-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(182, 139, 61, .3);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 32, 53, .05);
}

.home-landing .home-resource-item {
  display: block;
  min-width: 0;
  padding: 0;
  border-right: 1px solid rgba(182, 139, 61, .25);
  border-bottom: 1px solid rgba(182, 139, 61, .25);
}
.home-landing .home-resource-item summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 14px;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 26px 24px;
  cursor: pointer;
  list-style: none;
  min-height: 132px;
  box-sizing: border-box;
}
.home-landing .home-resource-item summary::-webkit-details-marker { display: none; }
.home-landing .home-resource-item summary:hover,
.home-landing .home-resource-item[open] { background: #fffaf0; }
.home-landing .home-resource-item summary:focus-visible { outline: 2px solid #b68b3d; outline-offset: -3px; }
.home-landing .home-resource-item__chevron { color: #96712c; font-size: 13px; transition: transform .15s ease; }
.home-landing .home-resource-item[open] .home-resource-item__chevron { transform: rotate(180deg); }
.home-landing .home-resource-exams { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 24px; }
.home-landing .home-resource-exams > span { flex-basis: 100%; color: #526075; font: 500 13px/1.5 'DM Sans', Inter, sans-serif; }
.home-landing .home-resource-exams a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid #c9b484; border-radius: 8px; background: #fff; color: #10253c; text-decoration: none; font: 600 14px/1.5 'DM Sans', Inter, sans-serif; }
.home-landing .home-resource-exams a:hover { background: #10253c; border-color: #10253c; color: #fff8e9; }
.home-landing .home-resource-exams a:focus-visible { outline: 2px solid #b68b3d; outline-offset: 3px; }

.home-landing .home-resource-item:nth-child(3n) {
  border-right: 0;
}

.home-landing .home-resource-item:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.home-landing .home-resource-item__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(184, 135, 41, .32);
  border-radius: 12px;
  color: #a56f19;
  background: #fbf6eb;
  box-shadow: none;
  font-size: 22px;
}

.home-landing .home-resource-item__title {
  display: block;
  margin: 0;
  color: #0c1e35;
  font: 700 clamp(22px, 1.8vw, 25px)/1.12 'Cormorant Garamond', Georgia, serif;
}

.home-landing .home-resource-item__description {
  display: block;
  margin: 5px 0 0;
  color: #5a6779;
  font: 400 15px/1.55 'DM Sans', Inter, sans-serif;
}

/* One quiet panel presents platform totals without another collection of cards. */
.home-landing .home-statistics { background: #f5f8fc; }
.home-landing .home-statistics__panel {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(227, 192, 117, .25);
  border-radius: 26px;
  background: linear-gradient(110deg, rgba(4, 17, 34, .55), rgba(4, 17, 34, .35)), var(--statistics-image) center center / cover no-repeat, #0b1c31;
  box-shadow: 0 18px 40px rgba(11, 28, 49, .1);
}
.home-landing .home-statistics__intro { text-align: center; }
.home-landing .home-statistics__intro .section-title { margin: 0 auto 12px; color: #fff7e8 !important; }
.home-landing .home-statistics__intro p { margin: 0; color: #d5deea; font: 400 17px/1.65 'DM Sans', Inter, sans-serif; }
.home-landing .home-statistics__counts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 32px 0 0;
  padding-top: 30px;
  border-top: 1px solid rgba(230, 195, 121, .22);
}
.home-landing .home-statistics__item { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 6px 16px; text-align: center; }
.home-landing .home-statistics__item + .home-statistics__item { border-left: 1px solid rgba(230, 195, 121, .22); }
.home-landing .home-statistics__item dt { color: #e0e7ef; font: 500 15px/1.5 'DM Sans', Inter, sans-serif; }
.home-landing .home-statistics__item dd { order: -1; margin: 0; color: #fff7e8; font: 600 clamp(28px, 3vw, 42px)/1.1 'DM Sans', Inter, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.home-landing .home-statistics__value { white-space: nowrap; }
.home-landing .home-statistics__unit { display: inline-block; font-size: 14px; line-height: 1.5; letter-spacing: 0; white-space: nowrap; }
@media(max-width: 760px){
  .home-landing .home-statistics__unit { display: block; margin-top: 6px; }
  .home-landing .home-statistics__counts { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 8px; margin-top: 24px; }
  .home-landing .home-statistics__item { padding: 24px 10px; }
  .home-landing .home-statistics__item + .home-statistics__item { border-left: 0; }
  .home-landing .home-statistics__item:nth-child(even) { border-left: 1px solid rgba(230, 195, 121, .22); }
  .home-landing .home-statistics__item:nth-child(n+3) { border-top: 1px solid rgba(230, 195, 121, .22); }
  .home-landing .home-statistics__item:last-child { grid-column: 1 / -1; }
}

/* The personal story explains why the platform exists. */
.home-landing .home-story {
  background: #fff;
}

.home-landing .home-story__shell {
  box-sizing: border-box;
  width: min(1180px, calc(100% - 48px)) !important;
  max-width: 1180px !important;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(280px, .88fr) minmax(0, 1.12fr);
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: 32px;
  padding: clamp(30px, 4vw, 52px) !important;
  border: 1px solid rgba(182, 139, 61, .32) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 92% 8%, rgba(197, 148, 52, .08), transparent 40%),
    linear-gradient(145deg, #fffdf7 0%, #faf3e5 100%) !important;
  box-shadow: 0 14px 36px rgba(15, 32, 53, .04) !important;
}

.home-landing .home-story__heading .section-title { margin: 0; font-size: clamp(30px, 3vw, 40px) !important; line-height: 1.13 !important; text-align: left !important; }
.home-landing .home-story__heading .section-title > span { display: block; }
.home-landing .home-story__heading .section-title > span:last-child { color: #96712c; }
.home-landing .home-story__heading .home-section-intro__eyebrow { text-align: left !important; }

.home-landing .home-story__heading .home-section-intro__eyebrow,
.home-landing .home-story__heading .section-title {
  color: #0b2037 !important;
}

.home-landing .home-story__heading .home-section-intro__eyebrow::before {
  background: linear-gradient(90deg, #b68b3d, rgba(182, 139, 61, .12));
}

.home-landing .home-story__lead {
  align-self: center;
  max-width: 660px !important;
  margin: 0 !important;
  color: #44566b !important;
  font: 400 clamp(15px, 1.3vw, 17px)/1.75 'DM Sans', Inter, sans-serif !important;
}

.home-landing .home-principles {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  padding-top: 26px;
  border-top: 1px solid rgba(182, 139, 61, .4);
}

.home-landing .home-principle {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  min-height: 0 !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.home-landing .home-principle:first-child { padding-left: 0 !important; }
.home-landing .home-principle:last-child { padding-right: 0 !important; }
.home-landing .home-principle + .home-principle { border-left: 1px solid rgba(182, 139, 61, .4) !important; }

.home-landing .home-principle h3 {
  margin: 0 0 5px !important;
  color: #0b2037 !important;
  font: 700 clamp(20px, 1.8vw, 24px)/1.08 'Cormorant Garamond', Georgia, serif !important;
}

.home-landing .home-principle p {
  margin: 0;
  color: #526075 !important;
  font: 400 13px/1.6 'DM Sans', Inter, sans-serif !important;
}

/* Feedback remains functional while occupying less of the landing page. */
.home-landing .feedback {
  background: linear-gradient(180deg, #f4f7fb, #fff);
}

.home-landing .feedback > .container {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(320px, 1fr);
  gap: clamp(24px, 4vw, 48px) !important;
  align-items: center;
  padding: clamp(24px, 3vw, 36px) !important;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 27px !important;
  background: linear-gradient(145deg, #fff, #f8fafc);
  box-shadow: 0 22px 54px rgba(15, 32, 53, .08);
}

.home-landing .feedback .home-section-intro {
  margin: 0 !important;
  text-align: left !important;
}

.home-landing .feedback .section-title {
  max-width: 11ch;
}

.home-landing .feedback-auth-state {
  min-height: 108px !important;
  padding: 19px !important;
}

/* Structured footer directory. */
.home-landing .home-footer {
  padding-top: 52px !important;
}

.home-landing .home-footer__shell {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 28px !important;
}

.home-landing .home-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto;
  gap: 24px;
  align-items: stretch;
}

.home-landing .home-footer__brand,
.home-landing .home-footer__action {
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, .09);
  border-radius: 20px;
  background: rgba(255, 255, 255, .045);
}

.home-landing .home-footer__action {
  min-width: 255px;
}

.home-landing .home-footer__directories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .1);
  border-radius: 20px;
  background: rgba(226, 232, 240, .1);
}

.home-landing .home-footer__directory {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px !important;
  border: 0 !important;
  background: #0d1e34 !important;
}

.home-landing .home-footer__directory strong {
  margin-bottom: 5px;
  color: #f1c971;
  font: 800 11px/1.2 Inter, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-landing .home-footer__directory a {
  color: rgba(240, 244, 249, .78);
  font: 600 12px/1.55 Inter, sans-serif;
  text-decoration: none;
}

.home-landing .home-footer__directory a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px){
  .home-landing .home-resource-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-landing .home-resource-item:nth-child(3n) {
    border-right: 1px solid rgba(15, 32, 53, .1);
  }

  .home-landing .home-resource-item:nth-child(2n) {
    border-right: 0;
  }

  .home-landing .home-resource-item:nth-last-child(-n + 3) {
    border-bottom: 1px solid rgba(15, 32, 53, .1);
  }

  .home-landing .home-resource-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .home-landing .home-section-intro--split,
  .home-landing .home-story__shell {
    grid-template-columns: 1fr;
  }




  .home-landing .home-principles {
    grid-template-columns: 1fr !important;
    padding-top: 8px;
  }
  .home-landing .home-principle { padding: 18px 0 !important; }
  .home-landing .home-principle + .home-principle { border-left: 0 !important; border-top: 1px solid rgba(182, 139, 61, .4) !important; }

  .home-landing .feedback > .container {
    grid-template-columns: 1fr;
  }

  .home-landing .feedback .section-title {
    max-width: 760px;
  }

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

@media (max-width: 640px){
  .home-landing .home-story__shell { width: calc(100% - 24px) !important; row-gap: 22px; }
  .home-landing .home-resources,
  .home-landing .home-statistics,
  .home-landing .home-story,
  .home-landing .feedback {
    padding: 36px 0 !important;
  }

  .home-landing .home-section-intro--split {
    gap: 14px;
  }

  .home-landing .home-resource-map {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .home-landing .home-resource-item,
  .home-landing .home-resource-item:nth-child(2n),
  .home-landing .home-resource-item:nth-child(3n),
  .home-landing .home-resource-item:nth-last-child(-n + 3) {
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(15, 32, 53, .1);
  }

  .home-landing .home-resource-item:last-child {
    border-bottom: 0;
  }
  .home-landing .home-resource-item summary { padding: 20px 18px; min-height: 112px; }
  .home-landing .home-resource-exams { padding: 0 18px 20px; }

  .home-landing .home-resource-item__icon {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .home-landing .home-story__shell,
  .home-landing .feedback > .container {
    padding: 23px !important;
    border-radius: 24px !important;
  }

  .home-landing .home-footer__top,
  .home-landing .home-footer__directories {
    grid-template-columns: 1fr;
  }

  .home-landing .home-footer__action {
    min-width: 0;
  }
}

@media (max-width: 420px){
  .home-landing .section-title {
    font-size: clamp(29px, 9vw, 36px) !important;
  }



}
/* Main homepage typography and spacing hierarchy. */
.home-landing:not(.exam-overview-page) .home-resources .section-title,
.home-landing:not(.exam-overview-page) .home-statistics__intro .section-title,
.home-landing:not(.exam-overview-page) .home-story__heading .section-title {
  font-size: clamp(30px, 2.7vw, 36px) !important;
  line-height: 1.14 !important;
}
.home-landing:not(.exam-overview-page) .feedback .section-title {
  font-size: clamp(28px, 2.5vw, 34px) !important;
  line-height: 1.15 !important;
  max-width: 18ch;
}
.home-landing:not(.exam-overview-page) .home-exam-card .home-exam-card__name {
  font: 500 14px/1.5 'DM Sans', sans-serif;
}
.home-landing:not(.exam-overview-page) .home-hero__copy,
.home-landing:not(.exam-overview-page) .home-nav,
.home-landing:not(.exam-overview-page) .home-exam-card__name,
.home-landing:not(.exam-overview-page) .home-section-intro__eyebrow,
.home-landing:not(.exam-overview-page) .home-resource-item__description,
.home-landing:not(.exam-overview-page) .home-resource-exams,
.home-landing:not(.exam-overview-page) .home-story__lead,
.home-landing:not(.exam-overview-page) .feedback-auth-state,
.home-landing:not(.exam-overview-page) .feedback-form,
.home-landing:not(.exam-overview-page) .home-footer p,
.home-landing:not(.exam-overview-page) .home-footer a {
  font-family: 'DM Sans', sans-serif;
}
.home-landing:not(.exam-overview-page) .home-resources,
.home-landing:not(.exam-overview-page) .home-statistics,
.home-landing:not(.exam-overview-page) .home-story,
.home-landing:not(.exam-overview-page) .feedback {
  padding-block: clamp(32px, 3.5vw, 48px) !important;
}
.home-landing:not(.exam-overview-page) .home-statistics__panel {
  padding: clamp(26px, 3vw, 38px);
}
.home-landing:not(.exam-overview-page) .home-statistics__intro p {
  font-size: 15px;
}
.home-landing:not(.exam-overview-page) .home-statistics__counts {
  margin-top: 24px;
  padding-top: 24px;
}
.home-landing:not(.exam-overview-page) .home-story__lead {
  font-size: 16px !important;
  line-height: 1.65 !important;
}
@media(max-width:640px) {
  .home-landing:not(.exam-overview-page) .home-resources .section-title,
  .home-landing:not(.exam-overview-page) .home-statistics__intro .section-title,
  .home-landing:not(.exam-overview-page) .home-story__heading .section-title { font-size: 30px !important; }
  .home-landing:not(.exam-overview-page) .feedback .section-title { font-size: 28px !important; }
  .home-landing:not(.exam-overview-page) .home-story__lead { font-size: 15px !important; }
  .home-landing:not(.exam-overview-page) .home-statistics__counts { padding-top: 8px; }
}

/* Exam workspaces. Landing hero and discovery cards remain governed by their own files. */
.home-landing.exam-overview-page{background:#f5f7fa!important;color:#15253a}.exam-overview{padding:0 0 56px}.exam-workspace-hero{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(circle at 82% 25%,rgba(79,128,190,.22),transparent 25%),linear-gradient(126deg,#020a17 0%,#071a32 57%,#0c2948 100%);color:#fff}.exam-workspace-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 0 64%,rgba(229,183,82,.05)),repeating-linear-gradient(118deg,transparent 0 55px,rgba(255,255,255,.018) 56px,transparent 57px);z-index:-1}.exam-workspace-hero__inner{min-height:490px;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr);align-items:center;gap:70px;padding-block:56px}.exam-workspace-hero__copy{max-width:720px}.exam-workspace-hero__eyebrow{display:flex;align-items:center;gap:13px;margin:0 0 20px!important;color:#d9e0eb;font:700 11px/1.4 Poppins,sans-serif;letter-spacing:1.8px;text-transform:uppercase}.exam-workspace-hero__eyebrow span{border:1px solid rgba(234,192,100,.5);border-radius:999px;padding:7px 13px;color:#f0cc78;background:rgba(235,184,68,.06)}.exam-workspace-hero h1{max-width:720px;margin:0 0 22px;font:700 clamp(45px,5vw,72px)/.98 'Cormorant Garamond',Georgia,serif;letter-spacing:-2.2px;color:#fff}.exam-workspace-hero__description{max-width:650px;margin:0 0 31px!important;color:#d4dce7;font:500 15px/1.8 Inter,sans-serif}.exam-workspace-hero__actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px}.exam-action{display:inline-flex;align-items:center;justify-content:center;gap:35px;min-height:51px;padding:13px 21px;border:1px solid transparent;border-radius:10px;font:700 13px/1.2 Poppins,sans-serif;text-decoration:none!important;transition:transform .18s ease,background .18s ease,border-color .18s ease}.exam-action:hover{transform:translateY(-2px)}.exam-action--primary{background:linear-gradient(135deg,#f3d58a,#dca636);color:#0a1930!important;box-shadow:0 15px 34px rgba(205,151,39,.2)}.exam-action--secondary{border-color:rgba(226,232,240,.28);background:rgba(255,255,255,.045);color:#fff!important}.exam-action--secondary:hover{background:rgba(255,255,255,.09);border-color:rgba(239,200,114,.5)}.exam-workspace-hero__identity{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:350px;text-align:center}.exam-workspace-hero__identity:after{content:"";position:absolute;inset:43px 15px 38px;border:1px solid rgba(227,185,77,.25);border-radius:50%;box-shadow:0 0 80px rgba(31,102,164,.18)}.exam-workspace-hero__identity img{position:relative;z-index:2;width:min(270px,78%);height:auto;filter:drop-shadow(0 22px 34px rgba(0,0,0,.38))}.exam-workspace-hero__identity strong,.exam-workspace-hero__identity small{position:relative;z-index:2}.exam-workspace-hero__identity strong{margin-top:-3px;color:#f1cc76;font:700 22px/1 Poppins,sans-serif;letter-spacing:5px}.exam-workspace-hero__identity small{max-width:280px;margin-top:9px;color:#dce3ed;font:600 10px/1.5 Poppins,sans-serif;letter-spacing:1px;text-transform:uppercase}.exam-workspace-hero__orbit{position:absolute;width:330px;height:330px;border:1px solid rgba(126,163,205,.18);border-radius:50%}.exam-workspace-content{padding-top:62px}.exam-overview-notice{padding:17px 22px;border-left:3px solid #c99b46;background:#fcf5e6;border-radius:10px;font-size:13px;margin:-25px 0 35px}.exam-overview-notice p{margin:5px 0 0;color:#5f6269}.exam-section-heading{margin-bottom:27px}.exam-section-heading>p,.exam-guide__intro>p,.exam-resource-library__copy>p{margin:0 0 9px!important;color:#9b6b18;font:800 10px/1.4 Poppins,sans-serif;letter-spacing:2px;text-transform:uppercase}.exam-section-heading h2,.exam-guide h2,.exam-resource-library h2{margin:0;color:#12243b;font:700 clamp(30px,3.1vw,43px)/1.05 'Cormorant Garamond',Georgia,serif;letter-spacing:-.6px}.exam-section-heading--split{display:flex;align-items:end;justify-content:space-between;gap:30px}.exam-section-heading--split>a{padding-bottom:5px;color:#385474;font:700 12px Poppins,sans-serif;text-decoration:none;border-bottom:1px solid #cbd4de}.exam-tool-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.exam-tool-card{position:relative;min-height:272px;padding:25px 23px 22px;border:1px solid #dfe4ea;border-radius:17px;background:linear-gradient(150deg,#fff,#fafbfd);box-shadow:0 16px 38px rgba(10,25,48,.055);display:flex;flex-direction:column;text-decoration:none!important;overflow:hidden;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}.exam-tool-card:after{content:"";position:absolute;inset:auto -25px -55px auto;width:120px;height:120px;border:1px solid rgba(24,62,103,.07);border-radius:50%}.exam-tool-card:hover{transform:translateY(-5px);border-color:rgba(185,132,35,.45);box-shadow:0 22px 48px rgba(10,25,48,.1)}.exam-tool-card__number{position:absolute;right:20px;top:17px;color:#b9c3cf;font:700 11px Poppins,sans-serif;letter-spacing:1px}.exam-tool-card__icon{display:grid;place-items:center;width:53px;height:53px;margin-bottom:28px;border-radius:15px;background:#edf3fa;color:#123e72;font-size:24px}.exam-tool-card--papers .exam-tool-card__icon{background:#f9f0dc;color:#9a6a12}.exam-tool-card--mock .exam-tool-card__icon{background:#ecf5f2;color:#17644f}.exam-tool-card--dashboard .exam-tool-card__icon{background:#f1effa;color:#50418d}.exam-tool-card>strong{margin-bottom:10px;color:#172b45;font:700 18px/1.25 Poppins,sans-serif}.exam-tool-card__copy{color:#657286;font:500 12px/1.65 Inter,sans-serif}.exam-tool-card__action{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:20px;color:#233f61;font:700 12px Poppins,sans-serif}.exam-tool-card__action i{font-style:normal;font-size:19px;transition:transform .18s}.exam-tool-card:hover .exam-tool-card__action i{transform:translateX(4px)}.exam-guide{margin:72px 0;display:grid;grid-template-columns:1.08fr 1.25fr;gap:34px 55px;padding:40px;border:1px solid #ded7c9;border-radius:20px;background:linear-gradient(135deg,#fbf6eb,#fffdf8);box-shadow:0 18px 45px rgba(50,40,20,.05)}.exam-guide__intro>span{display:block;max-width:500px;margin-top:16px;color:#626d7b;font:500 13px/1.75 Inter,sans-serif}.exam-guide__facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.exam-guide__facts>div{min-height:96px;padding:18px;border:1px solid rgba(172,141,82,.19);border-radius:13px;background:rgba(255,255,255,.62);display:flex;flex-direction:column;justify-content:center}.exam-guide__facts strong{color:#142c49;font:700 18px/1.2 Poppins,sans-serif}.exam-guide__facts span{margin-top:6px;color:#766f64;font:600 10px/1.4 Poppins,sans-serif;text-transform:uppercase;letter-spacing:.8px}.exam-guide__note{grid-column:1/-1;display:flex;align-items:flex-start;gap:10px;margin:0!important;padding-top:18px;border-top:1px solid rgba(154,120,55,.19);color:#5c6570;font:500 12px/1.65 Inter,sans-serif}.exam-guide__note i{color:#a9761d;font-size:15px}.exam-overview-subjects{padding-bottom:72px}.exam-subject-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.exam-subject-card{min-height:92px;padding:18px 17px;border:1px solid #dce3ea;border-radius:14px;background:#fff;box-shadow:0 10px 28px rgba(12,31,54,.04);display:grid;grid-template-columns:42px minmax(0,1fr) 18px;align-items:center;gap:13px;text-decoration:none!important;transition:border-color .18s,transform .18s}.exam-subject-card:hover{transform:translateY(-3px);border-color:#b78a36}.exam-subject-card>span{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:#f1f5f9;font-size:20px}.exam-subject-card>strong{color:#253b57;font:700 13px/1.35 Poppins,sans-serif}.exam-subject-card>i{color:#a97822;font-style:normal;font-size:18px}.exam-resource-library{display:grid;grid-template-columns:.82fr 1.18fr;gap:55px;padding:48px;border-radius:22px;background:linear-gradient(135deg,#061326,#0c2949);color:#fff;box-shadow:0 24px 55px rgba(3,13,29,.16)}.exam-resource-library h2{color:#fff}.exam-resource-library__copy>p{color:#e7bd61}.exam-resource-library__copy>span{display:block;margin:17px 0 27px;color:#cbd5e2;font:500 13px/1.75 Inter,sans-serif}.exam-resource-library__copy>a{display:inline-flex;align-items:center;gap:27px;padding-bottom:6px;border-bottom:1px solid rgba(236,198,111,.52);color:#f0cf83!important;font:700 12px Poppins,sans-serif;text-decoration:none}.exam-resource-library__copy>a i{font-style:normal;font-size:18px}.exam-resource-library__list{display:grid;gap:10px}.exam-resource-library__list>a{display:grid;grid-template-columns:48px minmax(0,1fr) 22px;align-items:center;gap:15px;padding:15px;border:1px solid rgba(226,232,240,.12);border-radius:13px;background:rgba(255,255,255,.045);text-decoration:none!important;transition:background .18s,border-color .18s}.exam-resource-library__list>a:hover{background:rgba(255,255,255,.085);border-color:rgba(232,192,98,.35)}.exam-resource-library__icon{display:grid;place-items:center;width:45px;height:45px;border-radius:12px;background:rgba(231,188,91,.12);color:#f0c76d;font-size:20px}.exam-resource-library__list strong{display:block;color:#fff;font:700 13px Poppins,sans-serif}.exam-resource-library__list small{display:block;margin-top:4px;color:#b9c5d3;font:500 11px/1.45 Inter,sans-serif}.exam-resource-library__arrow{color:#efc96f;font-size:20px;font-style:normal}.exam-overview-support{display:flex;flex-wrap:wrap;gap:24px;padding-top:27px}.exam-overview-support a{color:#365270;font:600 12px Poppins,sans-serif;text-decoration:none}.exam-overview a:focus-visible{outline:3px solid #c28b22!important;outline-offset:4px!important}
@media(max-width:1120px){.exam-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.exam-tool-card{min-height:245px}.exam-subject-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){.exam-workspace-hero__inner{min-height:auto;grid-template-columns:minmax(0,1fr) 240px;gap:25px;padding-block:48px}.exam-workspace-hero__identity{min-height:280px}.exam-workspace-hero__identity img{width:210px}.exam-workspace-hero__identity:after{inset:36px 2px 27px}.exam-workspace-hero__orbit{width:250px;height:250px}.exam-workspace-hero h1{font-size:clamp(40px,7vw,57px)}.exam-guide{grid-template-columns:1fr;padding:32px}.exam-guide__note{grid-column:1}.exam-resource-library{grid-template-columns:1fr;gap:30px;padding:38px}.exam-subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.exam-workspace-hero__inner{display:flex;flex-direction:column-reverse;align-items:flex-start;gap:8px;padding-block:28px 42px}.exam-workspace-hero__identity{align-self:center;min-height:215px;width:230px}.exam-workspace-hero__identity img{width:165px}.exam-workspace-hero__identity:after{inset:17px 19px 21px}.exam-workspace-hero__orbit{width:205px;height:205px}.exam-workspace-hero__identity strong{font-size:17px}.exam-workspace-hero__identity small{max-width:210px;font-size:8px}.exam-workspace-hero__eyebrow{align-items:flex-start;flex-direction:column;gap:9px}.exam-workspace-hero h1{font-size:43px;letter-spacing:-1.3px}.exam-workspace-hero__description{font-size:13px}.exam-action{width:100%;justify-content:space-between}.exam-workspace-content{padding-top:43px}.exam-section-heading--split{align-items:flex-start;flex-direction:column;gap:13px}.exam-tool-grid{grid-template-columns:1fr}.exam-tool-card{min-height:218px}.exam-tool-card__icon{margin-bottom:20px}.exam-guide{margin:50px 0;padding:25px 20px}.exam-guide__facts{grid-template-columns:1fr 1fr}.exam-guide__facts>div{min-height:88px;padding:14px}.exam-guide__facts strong{font-size:15px}.exam-overview-subjects{padding-bottom:50px}.exam-subject-grid{grid-template-columns:1fr}.exam-resource-library{padding:29px 20px}.exam-resource-library__list>a{padding:13px}.exam-resource-library__list small{display:none}}
@media(prefers-reduced-motion:reduce){.exam-action,.exam-tool-card,.exam-tool-card__action i,.exam-subject-card{transition:none!important;transform:none!important}}

/* CDS overview: compact exam selector and exam-card-inspired subject entry. */
.cds-hub { padding-bottom: 64px; }
.cds-hub .container { width: min(1340px, calc(100% - 56px)); }
.exam-workspace-hero--cds .exam-workspace-hero__inner {
  min-height: 248px;
  grid-template-columns: minmax(460px, 1fr) minmax(240px, .52fr);
  gap: 70px;
  padding-block: 22px;
}
.cds-hero-copy { max-width: 700px; }
.cds-hero-title h1 { margin: 0; font-size: clamp(52px, 4.5vw, 68px); }
.cds-exam-picker { display: grid; grid-template-columns: max-content minmax(260px,330px); align-items: center; gap: 16px; margin-top: 22px; }
.cds-exam-picker > p { margin: 0; color: #fff; font: 600 15px/1.3 Inter, sans-serif; white-space: nowrap; }
.cds-exam-selector { display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; width: 100%; border: 1px solid rgba(194,211,232,.58); border-radius: 9px; }
.cds-exam-selector button { min-height: 40px; padding: 8px 14px; border: 0; background: rgba(255,255,255,.025); color: #f5f7fb; font: 600 13px/1.2 Inter, sans-serif; cursor: pointer; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.cds-exam-selector button + button { border-left: 1px solid rgba(194,211,232,.4); }
.cds-exam-selector button.is-active { background: linear-gradient(135deg,#f2cb6e,#dea62f); color: #0c1c32; box-shadow: 0 8px 24px rgba(221,167,48,.2); }
.cds-exam-selector button:focus-visible { position: relative; z-index: 1; outline: 3px solid #fff; outline-offset: -4px; }
.exam-workspace-hero--cds .exam-workspace-hero__identity { min-height: 204px; }
.exam-workspace-hero--cds .exam-workspace-hero__identity img { width: min(220px,86%); }
.exam-workspace-hero--cds .exam-workspace-hero__identity::after { inset: 8px 14px; }
.exam-workspace-hero--cds .exam-workspace-hero__orbit { width: 236px; height: 236px; }
.cds-hub .exam-workspace-content { padding-top: 28px; }
.cds-papers { scroll-margin-top: 100px; }
.cds-papers > h2 { margin: 0 0 15px; color: #102847; font: 700 clamp(34px,3vw,43px)/1 'Cormorant Garamond',Georgia,serif; }
.cds-paper-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.cds-paper-card {
  --paper-accent: #176b55; --paper-tint: #e5f2ed;
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: minmax(130px,auto) 48px;
  align-items: center; column-gap: 14px; overflow: hidden; min-height: 178px; padding: 0;
  border: 1px solid #d6c49d; border-radius: 18px; color: #102137;
  background: linear-gradient(145deg,#fffefa 0%,#fbf7ed 58%,#f4ead5 100%);
  box-shadow: 0 15px 34px rgba(15,32,53,.1),inset 0 1px 0 #fff; transition: transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.cds-paper-card::before { content: ""; position: absolute; z-index: 1; inset: 0 25px auto; height: 2px; background: linear-gradient(90deg,transparent,#b79049 24%,#e7d4a9 76%,transparent); }
.cds-paper-card--gk { --paper-accent: #1267ad; --paper-tint: #e1effc; }
.cds-paper-card--maths { --paper-accent: #a97715; --paper-tint: #fbefd5; }
.cds-paper-card:hover { transform: translateY(-5px); border-color: #b99551; box-shadow: 0 24px 42px rgba(15,32,53,.16),inset 0 1px 0 #fff; }
.cds-paper-card__icon { position: relative; display: grid; place-items: center; grid-column: 2; grid-row: 1; width: 84px; height: 84px; margin-right: 19px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.cds-paper-card__icon::before { content: none; }
.cds-paper-card__icon svg { position: relative; z-index: 1; display: block; width: 76px; height: 60px; overflow: visible; }
.cds-paper-card > strong { grid-column: 1; grid-row: 1; min-width: 0; margin-left: 19px; color: #102137; font: 700 clamp(25px,2vw,29px)/.94 'Cormorant Garamond',Georgia,serif; letter-spacing: -.7px; }
.cds-paper-card__action { grid-column: 1/-1; grid-row: 2; display: flex; align-items: center; justify-content: space-between; align-self: stretch; min-height: 48px; padding: 8px 15px 8px 19px; border-top: 1px solid #c7a967; background: linear-gradient(112deg,#09192c,#18304b); color: #fff5df; font: 700 12px/1.2 Inter,sans-serif; letter-spacing: .08px; }
.cds-paper-card__action-arrow { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border: 1px solid rgba(255,241,206,.85); border-radius: 50%; color: #102137; background: linear-gradient(135deg,#fae9bf,#d2a652); box-shadow: 0 3px 8px rgba(0,0,0,.22); }
.cds-paper-card__action-arrow svg { width: 16px; height: 16px; transition: transform .22s ease; }
.cds-paper-card:hover .cds-paper-card__action-arrow svg { transform: translateX(2px); }
.cds-paper-filter-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px!important; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cds-hub .exam-workspace-content .afcat-tools { margin-top: 34px; }
.cds-hub .afcat-tools .afcat-section-heading h2 { font-size: 34px; }
.cds-hub .afcat-tool-card { min-height: 156px; }
@media (max-width: 1100px){
  .exam-workspace-hero--cds .exam-workspace-hero__inner { grid-template-columns: minmax(420px,1fr) 220px; gap: 40px; }
  .cds-paper-card__icon { width: 78px; height: 78px; margin-right: 17px; }
  .cds-paper-card__icon svg { width: 68px; height: 54px; }
  .cds-paper-card > strong { margin-left: 17px; font-size: 29px; }
}
@media (max-width: 900px){
  .cds-hub .container { width: min(100% - 28px,1340px); }
  .exam-workspace-hero--cds .exam-workspace-hero__inner { min-height: 318px; grid-template-columns: minmax(0,1fr) 220px; gap: 28px; padding-block: 28px; }
  .exam-workspace-hero--cds .exam-workspace-hero__identity { grid-column: 2; grid-row: 1; }
  .cds-paper-grid { grid-template-columns: 1fr; }
  .cds-paper-card__icon { width: 82px; height: 82px; margin-right: 19px; }
  .cds-paper-card__icon svg { width: 72px; height: 56px; }
  .cds-paper-card > strong { margin-left: 19px; font-size: 29px; }
}
@media (max-width: 620px){
  .exam-workspace-hero--cds .exam-workspace-hero__inner { display: grid; grid-template-columns: 1fr; gap: 20px; padding-block: 28px; }
  .cds-hero-title h1 { font-size: 47px; }
  .exam-workspace-hero--cds .exam-workspace-hero__identity { grid-column: 1; grid-row: 2; min-height: 170px; }
  .exam-workspace-hero--cds .exam-workspace-hero__identity img { width: 165px; }
  .exam-workspace-hero--cds .exam-workspace-hero__identity::after { inset: 2px 72px; }
  .exam-workspace-hero--cds .exam-workspace-hero__orbit { width: 184px; height: 184px; }
  .cds-exam-picker { grid-template-columns: max-content minmax(0,1fr); gap: 10px; }
  .cds-exam-picker > p { font-size: 13px; }
  .cds-exam-selector button { min-height: 38px; padding-inline: 7px; font-size: 11px; }
  .cds-hub .exam-workspace-content { padding-top: 25px; }
  .cds-papers > h2 { font-size: 34px; }
  .cds-paper-card { grid-template-rows: minmax(106px,auto) 46px; min-height: 152px; }
  .cds-paper-card__icon { width: 66px; height: 66px; margin-right: 15px; padding: 0; }
  .cds-paper-card__icon svg { width: 58px; height: 46px; }
  .cds-paper-card > strong { margin-left: 15px; font-size: 27px; }
  .cds-paper-card__action { min-height: 46px; padding: 8px 14px 8px 17px; font-size: 12px; }
  .cds-paper-card__action-arrow { width: 27px; height: 27px; flex-basis: 27px; }
  .cds-hub .afcat-tools .afcat-section-heading h2 { font-size: 30px; }
}
@media (max-width: 380px){
  .cds-exam-picker { gap: 8px; }
  .cds-exam-picker > p { font-size: 12px; }
  .cds-exam-selector button { padding-inline: 4px; font-size: 10px; }
  .cds-paper-card > strong { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce){
  .cds-exam-selector button,.cds-paper-card,.cds-paper-card__action-arrow svg { transition: none; transform: none; }
}

/* Shared preparation styling for AFCAT, CDS and NDA. */
.exam-preparation-hub {
  --hub-ink: #142a43;
  --hub-muted: #637082;
  --hub-line: #e3e3df;
  --hub-gold: #b68a3b;
  padding: 0 0 64px;
  background: #f8f7f4;
  color: var(--hub-ink);
}
.exam-preparation-hub .afcat-workspace { padding-top: 40px; }
.exam-preparation-hub a { text-decoration: none; }
.exam-preparation-hub a:focus-visible,
.exam-preparation-hub summary:focus-visible { outline: 3px solid #b68a3b; outline-offset: 5px; }
.exam-preparation-hub .afcat-eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 9px;
  color: #174f91;
  font: 700 10px/1.5 Poppins, sans-serif;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
.exam-preparation-hub .afcat-page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--hub-line);
}
.exam-preparation-hub .afcat-page-intro h1 {
  margin: 0 0 10px;
  color: var(--hub-ink);
  font: 700 clamp(36px, 4vw, 49px)/1.08 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -.7px;
}
.exam-preparation-hub .afcat-page-intro > div > p:last-child,
.exam-preparation-hub .afcat-section-copy { margin: 0; color: var(--hub-muted); font: 400 13px/1.7 Inter, sans-serif; }
.exam-preparation-hub .afcat-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.exam-preparation-hub .afcat-section-heading h2 { margin: 0; color: var(--hub-ink); font: 700 clamp(27px, 2.6vw, 34px)/1.12 'Cormorant Garamond', Georgia, serif; letter-spacing: -.4px; }
.exam-preparation-hub .afcat-text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 36px; color: #35516d; font: 600 12px/1.5 Inter, sans-serif; flex-shrink: 0; }
.exam-preparation-hub .afcat-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.exam-preparation-hub .afcat-subject-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.exam-preparation-hub .afcat-subject-card:nth-child(1) { --subject-accent: #0b5dd7; }
.exam-preparation-hub .afcat-subject-card:nth-child(2) { --subject-accent: #c99424; }
.exam-preparation-hub .afcat-subject-card:nth-child(3) { --subject-accent: #128748; }
.exam-preparation-hub .afcat-subject-card:nth-child(4) { --subject-accent: #6734ba; }
.exam-preparation-hub .afcat-subject-card {
  --subject-accent: #0b5dd7; --subject-navy: #071225;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 16px;
  min-height: 178px; padding: 24px 58px 24px 24px;
  border: 1px solid color-mix(in srgb, var(--subject-accent) 16%, rgba(15,23,42,.1)); border-radius: 24px;
  background: radial-gradient(circle at 14% 18%, color-mix(in srgb, var(--subject-accent) 13%, transparent), transparent 34%), linear-gradient(145deg, rgba(255,255,255,.99), color-mix(in srgb, var(--subject-accent) 4%, #f8fafc));
  box-shadow: 0 18px 42px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.88);
  text-align: left; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.exam-preparation-hub .afcat-subject-card::before { content: ""; position: absolute; z-index: -1; width: 150px; height: 150px; right: -46px; bottom: -56px; opacity: .72; background: radial-gradient(circle, color-mix(in srgb, var(--subject-accent) 19%, transparent), transparent 68%); transition: opacity .22s ease, transform .22s ease; }
.exam-preparation-hub .afcat-subject-card::after { content: "\2192"; position: absolute; right: 24px; bottom: 22px; color: var(--subject-accent); font: 900 24px/1 Poppins, sans-serif; text-shadow: 0 10px 18px color-mix(in srgb, var(--subject-accent) 24%, transparent); transition: transform .18s ease, color .18s ease, text-shadow .18s ease; }
.exam-preparation-hub .afcat-subject-card:hover,
.exam-preparation-hub .afcat-subject-card:focus-visible { transform: translateY(-7px); border-color: rgba(7,18,37,.34); background: radial-gradient(circle at 12% 14%, rgba(216,173,88,.17), transparent 30%), linear-gradient(145deg, #fff 0%, #f9fbff 48%, rgba(241,245,249,.98) 100%); box-shadow: 0 30px 70px rgba(7,18,37,.18), 0 0 0 1px rgba(216,173,88,.16), inset 0 1px 0 rgba(255,255,255,.92); }
.exam-preparation-hub .afcat-subject-card:hover::before,
.exam-preparation-hub .afcat-subject-card:focus-visible::before { opacity: 1; transform: scale(1.18) translate(-8px, -8px); }
.exam-preparation-hub .afcat-subject-card:hover::after,
.exam-preparation-hub .afcat-subject-card:focus-visible::after { color: var(--subject-navy); transform: translateX(4px); text-shadow: 0 12px 20px rgba(7,18,37,.16); }
.exam-preparation-hub .afcat-subject-card__top { position: relative; z-index: 1; display: flex; justify-content: space-between; width: 100%; }
.exam-preparation-hub .afcat-subject-card__icon { display: grid; place-items: center; width: 62px; height: 62px; border: 1px solid color-mix(in srgb, var(--subject-accent) 16%, #e2e8f0); border-radius: 20px; background: linear-gradient(145deg, color-mix(in srgb, var(--subject-accent) 11%, #fff), #fff); color: var(--subject-accent); font-size: 32px; box-shadow: none; transition: transform .22s ease, background .22s ease, border-color .22s ease; }
.exam-preparation-hub .afcat-subject-card:hover .afcat-subject-card__icon,
.exam-preparation-hub .afcat-subject-card:focus-visible .afcat-subject-card__icon { transform: translateY(-3px) scale(1.04); background: radial-gradient(circle at 28% 22%, rgba(216,173,88,.34), transparent 34%), linear-gradient(145deg, #071225, #0f223d); border-color: rgba(216,173,88,.26); box-shadow: none; }
.exam-preparation-hub .afcat-subject-card h3 { position: relative; z-index: 1; max-width: 11ch; margin: 0; color: #071225; font: 700 clamp(28px, 3vw, 36px)/.96 'Cormorant Garamond', Georgia, serif; letter-spacing: -.03em; transition: color .22s ease, transform .22s ease; }
.exam-preparation-hub .afcat-subject-card:hover h3,
.exam-preparation-hub .afcat-subject-card:focus-visible h3 { color: #0f223d; transform: translateX(1px); }
.exam-preparation-hub .afcat-tools { margin-top: 42px; }
.exam-preparation-hub .afcat-tools .afcat-section-heading { margin-bottom: 12px; }
.exam-preparation-hub .afcat-tools .afcat-section-heading h2 { font-size: 28px; }
.exam-preparation-hub .afcat-tools-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.exam-preparation-hub .afcat-tool-card {
  display: flex; flex-direction: column; min-height: 148px; padding: 12px 18px 13px;
  border: 1px solid #dce2e8; border-radius: 9px; background: #fff; color: var(--hub-ink);
  box-shadow: 0 8px 20px rgba(23,37,54,.06); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.exam-preparation-hub .afcat-tool-card:first-child { border-color: #2373bd; }
.exam-preparation-hub .afcat-tool-card:hover { transform: translateY(-2px); border-color: #2373bd; box-shadow: 0 12px 25px rgba(23,37,54,.1); }
.exam-preparation-hub .afcat-tool-card__top { display: grid; grid-template-columns: 62px minmax(0, 1fr) 16px; align-items: center; gap: 13px; min-height: 84px; }
.exam-preparation-hub .afcat-tool-card__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #e5f1ff; color: #0a3568; font-size: 29px; }
.exam-preparation-hub .afcat-tool-card__copy { min-width: 0; }
.exam-preparation-hub .afcat-tool-card strong { display: block; margin: 0 0 5px; color: #0c2448; font: 700 21px/1.05 'Cormorant Garamond', Georgia, serif; }
.exam-preparation-hub .afcat-tool-card__copy small { display: block; color: #5d6879; font: 400 12px/1.4 Inter, sans-serif; }
.exam-preparation-hub .afcat-tool-card__arrow { color: #071b38; font-style: normal; font-size: 27px; line-height: 1; }
.exam-preparation-hub .afcat-tool-card__action { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 34px; margin-top: auto; border: 1px solid #183a61; border-radius: 6px; color: #102849; font: 700 11px/1 Poppins, sans-serif; }
.exam-preparation-hub .afcat-tool-card:first-child .afcat-tool-card__action { border-color: transparent; background: linear-gradient(100deg, #e1ae32, #dda51f); color: #172134; }
.exam-preparation-hub .afcat-tool-card i { font-style: normal; }
.exam-preparation-hub .afcat-support { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 22px; margin-top: 48px; padding: 20px 22px; border: 1px solid #213d59; border-radius: 15px; background: radial-gradient(circle at 90% 0, rgba(53, 99, 139, .5), transparent 37%), linear-gradient(135deg, #102941, #173b59); scroll-margin-top: 100px; box-shadow: 0 18px 38px rgba(16, 41, 65, .14); }
.exam-preparation-hub .afcat-support__intro { display: flex; align-items: center; gap: 13px; min-width: 190px; }
.exam-preparation-hub .afcat-support__mark { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; border-radius: 12px; background: rgba(231,190,95,.14); color: #efca76; font-size: 20px; }
.exam-preparation-hub .afcat-support h2 { margin: 0; color: #fff; font: 700 24px/1 'Cormorant Garamond', Georgia, serif; }
.exam-preparation-hub .afcat-support-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.exam-preparation-hub .afcat-support-link { --support-accent: #35b8f4; display: grid; grid-template-columns: 38px minmax(0, 1fr) 12px; align-items: center; gap: 10px; min-height: 62px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--support-accent) 58%, transparent); border-radius: 11px; background: linear-gradient(135deg, color-mix(in srgb, var(--support-accent) 27%, transparent), rgba(255,255,255,.07)); color: #fff; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.exam-preparation-hub .afcat-support-link--instagram { --support-accent: #f064ad; }
.exam-preparation-hub .afcat-support-link--email { --support-accent: #f2c14e; }
.exam-preparation-hub .afcat-support-link:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--support-accent) 82%, white); background: linear-gradient(135deg, color-mix(in srgb, var(--support-accent) 38%, transparent), rgba(255,255,255,.1)); }
.exam-preparation-hub .afcat-support-link__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--support-accent); color: #fff; font-size: 18px; box-shadow: none; }
.exam-preparation-hub .afcat-support-link > span:nth-child(2) { min-width: 0; }
.exam-preparation-hub .afcat-support-link strong { display: block; overflow: hidden; color: #fff; font: 700 18px/1 'Cormorant Garamond', Georgia, serif; text-overflow: ellipsis; white-space: nowrap; }
.exam-preparation-hub .afcat-support-link small { display: block; margin-top: 4px; overflow: hidden; color: rgba(255,255,255,.82); font: 600 9px/1.2 Inter, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.exam-preparation-hub .afcat-support-link__arrow { color: var(--support-accent); font-style: normal; font-size: 12px; }
.exam-preparation-hub .afcat-continue { display: flex; align-items: center; gap: 14px; margin: -8px 0 30px; padding: 18px 20px; border: 1px solid #dedfce; border-radius: 11px; background: #f2f3e9; }
.exam-preparation-hub .afcat-continue__icon { color: #59704a; font-size: 23px; }
.exam-preparation-hub .afcat-continue strong { color: var(--hub-ink); font: 700 20px/1.2 'Cormorant Garamond', Georgia, serif; }
.exam-preparation-hub .afcat-continue p { margin: 4px 0 0; color: var(--hub-muted); font: 400 12px/1.5 Inter, sans-serif; }
.exam-preparation-hub .afcat-continue a { margin-left: auto; padding: 10px 0; color: #365132; font: 600 12px/1.5 Inter, sans-serif; }
.exam-preparation-hub .afcat-continue a span { margin-left: 12px; }
@media (max-width: 1100px){
  .exam-preparation-hub .afcat-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px){
  .exam-preparation-hub .afcat-subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exam-preparation-hub .afcat-subject-card { min-height: 178px; }
  .exam-preparation-hub .afcat-support { grid-template-columns: 1fr; padding: 22px; }
}
@media (max-width: 820px){
  .exam-preparation-hub .afcat-tools-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .exam-preparation-hub { padding-bottom: 38px; }
  .exam-preparation-hub .afcat-workspace { padding-top: 26px; }
  .exam-preparation-hub .afcat-page-intro { flex-direction: column; align-items: flex-start; gap: 15px; margin-bottom: 25px; padding-bottom: 24px; }
  .exam-preparation-hub .afcat-page-intro > div > p:last-child { max-width: 320px; font-size: 12px; }
  .exam-preparation-hub .afcat-section-heading { flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
  .exam-preparation-hub .afcat-section-heading h2 { font-size: 28px; }
  .exam-preparation-hub .afcat-eyebrow { font-size: 9px; letter-spacing: 1.3px; }
  .exam-preparation-hub .afcat-subject-grid { grid-template-columns: 1fr; gap: 14px; }
  .exam-preparation-hub .afcat-subject-card { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 138px; padding: 18px 48px 18px 18px; border-radius: 20px; }
  .exam-preparation-hub .afcat-subject-card__top { width: auto; }
  .exam-preparation-hub .afcat-subject-card__icon { width: 58px; height: 58px; border-radius: 18px; font-size: 29px; }
  .exam-preparation-hub .afcat-subject-card h3 { max-width: none; font-size: 26px; }
  .exam-preparation-hub .afcat-subject-card::after { right: 18px; bottom: 50%; transform: translateY(50%); font-size: 21px; }
  .exam-preparation-hub .afcat-subject-card:hover::after,
  .exam-preparation-hub .afcat-subject-card:focus-visible::after { transform: translate(4px, 50%); }
  .exam-preparation-hub .afcat-tools { margin-top: 34px; }
  .exam-preparation-hub .afcat-tools-grid,
  .exam-preparation-hub .afcat-support-grid { grid-template-columns: 1fr; gap: 11px; }
  .exam-preparation-hub .afcat-tool-card { min-height: 144px; padding: 11px 14px 12px; }
  .exam-preparation-hub .afcat-tool-card__top { grid-template-columns: 54px minmax(0, 1fr) 14px; gap: 10px; }
  .exam-preparation-hub .afcat-tool-card__icon { width: 50px; height: 50px; font-size: 24px; }
  .exam-preparation-hub .afcat-tool-card strong { font-size: 20px; }
  .exam-preparation-hub .afcat-support { gap: 16px; margin-top: 30px; padding: 19px 16px; }
  .exam-preparation-hub .afcat-support-grid { grid-template-columns: 1fr; }
  .exam-preparation-hub .afcat-support-link { grid-template-columns: 38px minmax(0, 1fr) 12px; padding: 10px 11px; }
  .exam-preparation-hub .afcat-continue { flex-wrap: wrap; padding: 15px; gap: 10px; }
  .exam-preparation-hub .afcat-continue > div { flex: 1; }
  .exam-preparation-hub .afcat-continue a { width: 100%; margin-left: 33px; }
}

/* Resource cards use the same visual language as the landing exam cards. */
.exam-preparation-hub .afcat-tools-grid {
    gap: 16px;
}

.exam-preparation-hub .afcat-tool-card,
.exam-preparation-hub .afcat-tool-card:first-child {
    --resource-accent: #205f91;
    --resource-tint: #e5f1fc;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 178px;
    padding: 0;
    border: 1px solid #d6c49d;
    border-radius: 18px;
    background: linear-gradient(145deg, #fffefa 0%, #fbf7ed 58%, #f4ead5 100%);
    box-shadow: 0 18px 34px rgba(10, 35, 61, 0.11);
}

.exam-preparation-hub .afcat-tool-card:nth-child(2) {
    --resource-accent: #286d5a;
    --resource-tint: #e5f2ed;
}

.exam-preparation-hub .afcat-tool-card:nth-child(3) {
    --resource-accent: #57487f;
    --resource-tint: #efebf8;
}

.exam-preparation-hub .afcat-tool-card:nth-child(4) {
    --resource-accent: #9b7128;
    --resource-tint: #fbefd5;
}

.exam-preparation-hub .afcat-tool-card::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0 25px auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, #b79049 24%, #e7d4a9 76%, transparent);
}

.exam-preparation-hub .afcat-tool-card:hover {
    border-color: #bd8b2d;
    box-shadow: 0 22px 42px rgba(10, 35, 61, 0.16);
    transform: translateY(-4px);
}

.exam-preparation-hub .afcat-tool-card__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px;
    grid-template-rows: auto;
    gap: 14px;
    align-items: center;
    min-height: 130px;
    padding: 16px 19px;
}

.exam-preparation-hub .afcat-tool-card__icon {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    width: 84px;
    height: 84px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.exam-preparation-hub .afcat-tool-card__icon::before {
    content: none;
}

.exam-preparation-hub .afcat-tool-card__icon svg {
    position: relative;
    z-index: 1;
    display: block;
    width: 76px;
    height: 60px;
    overflow: visible;
}

.exam-preparation-hub .afcat-tool-card__copy {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    margin-left: 1px;
}

.exam-preparation-hub .afcat-tool-card__copy strong {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(25px, 2vw, 29px);
    font-weight: 700;
    line-height: .94;
    letter-spacing: -.7px;
    color: #102137;
}

.exam-preparation-hub .afcat-tool-card__arrow {
    display: none;
}

.exam-preparation-hub .afcat-tool-card__action,
.exam-preparation-hub .afcat-tool-card:first-child .afcat-tool-card__action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 8px 15px 8px 19px;
    border: 0;
    border-top: 1px solid #c7a967;
    border-radius: 0;
    background: linear-gradient(112deg, #09192c, #18304b);
    color: #fff5df;
    font: 700 12px/1.2 Inter, sans-serif;
    letter-spacing: .08px;
}

.exam-preparation-hub .afcat-tool-card:hover .afcat-tool-card__action,
.exam-preparation-hub .afcat-tool-card:first-child:hover .afcat-tool-card__action {
    background: linear-gradient(112deg, #09192c, #18304b);
}

.exam-preparation-hub .afcat-tool-card__action-arrow {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 1px solid rgba(255, 241, 206, .85);
    border-radius: 50%;
    background: linear-gradient(135deg, #fae9bf, #d2a652);
    color: #102d49;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .22);
}

.exam-preparation-hub .afcat-tool-card__action-arrow svg {
    width: 16px;
    height: 16px;
    transition: transform 180ms ease;
}

.exam-preparation-hub .afcat-tool-card:hover .afcat-tool-card__action-arrow svg {
    transform: translateX(2px);
}

@media (max-width: 1100px){
    .exam-preparation-hub .afcat-tool-card__top {
        grid-template-columns: minmax(0, 1fr) 78px;
    }

    .exam-preparation-hub .afcat-tool-card__icon {
        width: 78px;
        height: 78px;
    }

    .exam-preparation-hub .afcat-tool-card__icon svg {
        width: 68px;
        height: 54px;
    }

    .exam-preparation-hub .afcat-tool-card__copy strong {
        font-size: 29px;
    }
}

@media (max-width: 640px){
    .exam-preparation-hub .afcat-tool-card,
    .exam-preparation-hub .afcat-tool-card:first-child {
        min-height: 152px;
    }

    .exam-preparation-hub .afcat-tool-card__top {
        grid-template-columns: minmax(0, 1fr) 66px;
        gap: 12px;
        min-height: 106px;
        padding: 13px 15px;
    }

    .exam-preparation-hub .afcat-tool-card__icon {
        width: 66px;
        height: 66px;
        padding: 0;
        border-radius: 0;
    }

    .exam-preparation-hub .afcat-tool-card__icon svg {
        width: 58px;
        height: 46px;
    }

    .exam-preparation-hub .afcat-tool-card__copy strong {
        font-size: 27px;
    }

    .exam-preparation-hub .afcat-tool-card__action,
    .exam-preparation-hub .afcat-tool-card:first-child .afcat-tool-card__action {
        min-height: 46px;
        padding: 8px 14px 8px 17px;
    }
}
@media (prefers-reduced-motion: reduce){
  .exam-preparation-hub .afcat-subject-card,
  .exam-preparation-hub .afcat-tool-card,
  .exam-preparation-hub .afcat-support-link { transition: none; transform: none; }
}

/* Unified exam overview structure. CDS alone adds an academy selector. */
.exam-preparation-hub .container {
  width: min(1340px, calc(100% - 56px));
}

.exam-workspace-hero--preparation .exam-workspace-hero__inner {
  min-height: 248px;
  grid-template-columns: minmax(460px, 1fr) minmax(240px, .52fr);
  gap: 70px;
  padding-block: 22px;
}

.exam-preparation-hero__copy {
  max-width: 700px;
}

.exam-preparation-hero__title h1 {
  margin: 0;
  font-size: clamp(52px, 4.5vw, 68px);
}

.exam-workspace-hero--preparation .exam-workspace-hero__identity {
  min-height: 204px;
}

.exam-workspace-hero--preparation .exam-workspace-hero__identity img {
  width: min(220px, 86%);
}

.exam-workspace-hero--preparation .exam-workspace-hero__identity::after {
  inset: 8px 14px;
}

.exam-workspace-hero--preparation .exam-workspace-hero__orbit {
  width: 236px;
  height: 236px;
}

.exam-preparation-hub .exam-workspace-content {
  padding-top: 28px;
}

.exam-preparation-hub .exam-workspace-content .afcat-tools {
  margin-top: 34px;
}

.exam-preparation-hub .afcat-tools .afcat-section-heading h2 {
  font-size: 34px;
}

.cds-paper-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cds-paper-card--reasoning {
  --paper-accent: #66508f;
  --paper-tint: #efecf8;
}

.cds-paper-grid--4 .cds-paper-card__icon {
  width: 76px;
  height: 76px;
  margin-right: 17px;
}

.cds-paper-grid--4 .cds-paper-card__icon svg {
  width: 68px;
  height: 52px;
}

.cds-paper-grid--4 .cds-paper-card > strong {
  margin-left: 17px;
  font-size: clamp(23px, 1.8vw, 27px);
}

@media (max-width: 1100px){
  .exam-workspace-hero--preparation .exam-workspace-hero__inner {
    grid-template-columns: minmax(420px, 1fr) 220px;
    gap: 40px;
  }

  .cds-paper-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cds-paper-grid--4 .cds-paper-card__icon {
    width: 82px;
    height: 82px;
    margin-right: 19px;
  }

  .cds-paper-grid--4 .cds-paper-card__icon svg {
    width: 72px;
    height: 56px;
  }

  .cds-paper-grid--4 .cds-paper-card > strong {
    margin-left: 19px;
    font-size: 29px;
  }
}

@media (max-width: 900px){
  .exam-preparation-hub .container {
    width: min(100% - 28px, 1340px);
  }

  .exam-workspace-hero--preparation .exam-workspace-hero__inner {
    min-height: 318px;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 28px;
    padding-block: 28px;
  }

  .exam-workspace-hero--preparation .exam-workspace-hero__identity {
    grid-column: 2;
    grid-row: 1;
  }

  .cds-paper-grid,
  .cds-paper-grid--4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px){
  .exam-workspace-hero--preparation .exam-workspace-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(108px, 34%);
    align-items: center;
    gap: 8px;
    min-height: 212px;
    padding-block: 22px;
  }

  .exam-preparation-hero__copy {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .exam-preparation-hero__title h1 {
    font-size: clamp(37px, 11.5vw, 47px);
    line-height: .88;
    letter-spacing: -1.2px;
  }

  .exam-preparation-hero__lead,
  .exam-preparation-hero__exam {
    display: block;
  }

  .exam-preparation-hero__lead {
    white-space: nowrap;
  }

  .exam-preparation-hero__exam {
    margin-top: 6px;
  }

  .exam-workspace-hero--preparation .exam-workspace-hero__identity {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: 100%;
    min-height: 150px;
  }

  .exam-workspace-hero--preparation .exam-workspace-hero__identity img {
    width: min(142px, 100%);
  }

  .exam-workspace-hero--preparation .exam-workspace-hero__identity::after {
    inset: auto;
    width: 148px;
    height: 148px;
  }

  .exam-workspace-hero--preparation .exam-workspace-hero__orbit {
    width: 160px;
    height: 160px;
  }

  .exam-workspace-hero--preparation .cds-exam-picker {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 6px;
    margin-top: 17px;
  }

  .exam-workspace-hero--preparation .cds-exam-picker > p {
    font-size: 10px;
  }

  .exam-workspace-hero--preparation .cds-exam-selector button {
    min-height: 34px;
    padding-inline: 3px;
    font-size: 9px;
  }

  .exam-preparation-hub .exam-workspace-content {
    padding-top: 25px;
  }

  .exam-preparation-hub .exam-subject-entry > h2 {
    max-width: 340px;
    margin-inline: auto;
    text-align: center;
    font-size: clamp(30px, 9vw, 34px);
    line-height: 1.02;
  }

  .cds-paper-grid--4 .cds-paper-card__icon {
    width: 66px;
    height: 66px;
    margin-right: 15px;
  }

  .cds-paper-grid--4 .cds-paper-card__icon svg {
    width: 58px;
    height: 46px;
  }

  .cds-paper-grid--4 .cds-paper-card > strong {
    margin-left: 15px;
    font-size: 27px;
  }

  .exam-preparation-hub .afcat-tools .afcat-section-heading {
    justify-content: center;
    text-align: center;
  }

  .exam-preparation-hub .afcat-tools .afcat-section-heading h2 {
    font-size: 30px;
  }
}

@media (max-width: 380px){
  .exam-workspace-hero--preparation .exam-workspace-hero__inner {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 5px;
  }

  .exam-preparation-hero__title h1 {
    font-size: 36px;
  }

  .exam-workspace-hero--preparation .exam-workspace-hero__identity img {
    width: 110px;
  }

  .exam-workspace-hero--preparation .exam-workspace-hero__identity::after {
    width: 116px;
    height: 116px;
  }

  .exam-workspace-hero--preparation .exam-workspace-hero__orbit {
    width: 126px;
    height: 126px;
  }

  .exam-workspace-hero--preparation .cds-exam-picker > p {
    font-size: 9px;
  }

  .exam-workspace-hero--preparation .cds-exam-selector button {
    padding-inline: 2px;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce){
  .exam-workspace-hero--preparation .cds-paper-card,
  .exam-workspace-hero--preparation .cds-paper-card__action-arrow svg {
    transition: none;
    transform: none;
  }
}

/* Shared exam resource navigation: one panel, with the whole row as its link. */
.exam-preparation-hub .exam-resource-panel {
  overflow: hidden;
  border: 1px solid #d8c7a3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 32, 53, .045);
}
.exam-preparation-hub .exam-resource-row {
  display: grid;
  grid-template-columns: 48px minmax(210px, .9fr) minmax(0, 1.3fr) 170px;
  align-items: center;
  gap: 24px;
  min-height: 92px;
  padding: 16px 24px;
  border-bottom: 1px solid #e8dfcf;
  color: #10253c;
  text-decoration: none;
  transition: background .15s ease;
}
.exam-preparation-hub .exam-resource-row:last-child { border-bottom: 0; }
.exam-preparation-hub .exam-resource-row:hover { background: #fffaf0; }
.exam-preparation-hub .exam-resource-row:focus-visible { outline: 3px solid #b68b3d !important; outline-offset: -3px !important; background: #fffaf0; }
.exam-resource-row__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 10px; background: #fbf6eb; }
.exam-resource-row__icon svg { display: block; width: 38px; height: 38px; }
.exam-resource-row__title { min-width: 0; font: 700 26px/1.15 'Cormorant Garamond', Georgia, serif; }
.exam-resource-row__description { min-width: 0; color: #526075; font: 400 15px/1.55 'DM Sans', Inter, sans-serif; }
.exam-resource-row__action { display: flex; align-items: center; justify-content: flex-end; gap: 12px; font: 600 14px/1.4 'DM Sans', Inter, sans-serif; }
.exam-resource-row__action svg { width: 20px; height: 20px; flex: 0 0 20px; }
@media (max-width: 1000px){
  .exam-preparation-hub .exam-resource-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 5px 18px; padding: 18px 20px; }
  .exam-resource-row__icon { grid-row: 1 / 3; width: 44px; height: 44px; }
  .exam-resource-row__title { grid-column: 2; }
  .exam-resource-row__description { grid-column: 2; grid-row: 2; }
  .exam-resource-row__action { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 680px){
  .exam-preparation-hub .exam-resource-row { grid-template-columns: 40px minmax(0, 1fr) 20px; padding: 18px 15px; gap: 5px 12px; }
  .exam-resource-row__icon { width: 40px; height: 40px; }
  .exam-resource-row__icon svg { width: 32px; height: 32px; }
  .exam-resource-row__title { font-size: 24px; }
  .exam-resource-row__description { font-size: 14px; }
  .exam-resource-row__action { font-size: 0; gap: 0; }
}
@media (prefers-reduced-motion: reduce){ .exam-preparation-hub .exam-resource-row { transition: none; } }

/* Consistent breathing room around the shared exam preparation sections. */
.exam-preparation-hub .cp-exam-shortcuts { margin-top: 32px; gap: 16px; }
.exam-preparation-hub .exam-subject-entry > h2 { margin: 0 0 24px; }
.exam-preparation-hub .cds-paper-grid { gap: 20px; }
.exam-preparation-hub .exam-workspace-content .afcat-tools { margin-top: 40px; }
.exam-preparation-hub .afcat-tools .afcat-section-heading { margin-bottom: 20px; }
.exam-preparation-hub .platform-support { margin-top: 48px; }
@media (max-width: 680px){
  .exam-preparation-hub .cp-exam-shortcuts { margin-top: 24px; gap: 14px; }
  .exam-preparation-hub .exam-subject-entry > h2 { margin-bottom: 20px; }
  .exam-preparation-hub .cds-paper-grid { gap: 16px; }
  .exam-preparation-hub .exam-workspace-content .afcat-tools { margin-top: 36px; }
  .exam-preparation-hub .platform-support { margin-top: 36px; }
}
/* Mock tests are the gold action; other resources retain a quieter outline. */
.exam-preparation-hub .cp-exam-shortcuts { gap: 20px; }
.exam-preparation-hub .cp-exam-shortcuts a { min-width: 180px; min-height: 48px; justify-content: space-between; padding: 12px 24px; box-sizing: border-box; border-color: #cfb476; background: rgba(255,255,255,.035); }
.exam-preparation-hub .cp-exam-shortcuts a.cp-shortcut-primary { background: linear-gradient(130deg,#f6dfaa,#deb159); border-color: #efcb80; color: #102338 !important; }
.exam-preparation-hub .cp-exam-shortcuts a:hover { border-color: #f1ce83; background: rgba(255,255,255,.09); }
.exam-preparation-hub .cp-exam-shortcuts a.cp-shortcut-primary:hover { background: linear-gradient(130deg,#f9e7b9,#e7bd6a); }
.exam-preparation-hub .cp-exam-shortcuts a:focus-visible { outline: 3px solid #efca76 !important; outline-offset: 4px !important; }
.exam-preparation-hub .exam-resource-row--mock { background: #fff9ed; box-shadow: inset 4px 0 #d9ae55; }
.exam-preparation-hub .exam-resource-row--mock:hover { background: #fff3d9; }
.exam-preparation-hub .exam-resource-row__action { justify-content: center; min-height: 40px; gap: 10px; padding: 8px 12px; border: 1px solid #526a84; border-radius: 8px; background: #fff; color: #10253c; box-sizing: border-box; font-size: 14px; line-height: 1.4; }
.exam-preparation-hub .exam-resource-row--mock .exam-resource-row__action { border-color: #dfb75f; background: linear-gradient(130deg,#f6dfaa,#deb159); }
.exam-preparation-hub .exam-resource-row:hover .exam-resource-row__action { border-color: #b68b3d; }
@media (max-width: 680px){
  .exam-preparation-hub .cp-exam-shortcuts { gap: 16px; }
  .exam-preparation-hub .exam-resource-row { grid-template-columns: 40px minmax(0,1fr); gap: 6px 12px; }
  .exam-preparation-hub .exam-resource-row__icon { grid-row: 1 / 4; align-self: start; }
  .exam-preparation-hub .exam-resource-row__action { grid-column: 2; grid-row: 3; justify-self: start; margin-top: 6px; font-size: 13px; }
}
@media (max-width: 420px){
  .exam-preparation-hub .cp-exam-shortcuts a { flex: 1 1 100%; min-width: 0; }
}
/* Raster subject illustrations occupy the existing icon slot without changing the cards. */
.exam-preparation-hub .cds-paper-card__icon img { display: block; width: 100%; height: 100%; max-width: 76px; max-height: 76px; object-fit: contain; }

/* Subject illustrations lead each card; the title sits alongside on the right. */
.exam-preparation-hub .cds-paper-card {
  grid-template-columns: 116px minmax(0,1fr);
  grid-template-rows: minmax(130px,auto) 48px;
  column-gap: 12px;
  min-height: 178px;
}
.exam-preparation-hub .cds-paper-card .cds-paper-card__icon {
  grid-column: 1;
  grid-row: 1;
  width: 104px;
  height: 120px;
  margin: 0 0 0 12px;
}
.exam-preparation-hub .cds-paper-card .cds-paper-card__icon svg {
  width: 104px;
  height: 84px;
}
.exam-preparation-hub .cds-paper-card .cds-paper-card__icon img {
  width: 104px;
  height: 120px;
  max-width: none;
  max-height: none;
  object-fit: contain;
}
.exam-preparation-hub .cds-paper-card > strong {
  grid-column: 2;
  grid-row: 1;
  margin: 0 16px 0 0;
  font-size: 29px;
  line-height: 1.08;
  letter-spacing: -.4px;
}
.exam-preparation-hub .cds-paper-grid--4 .cds-paper-card > strong {
  font-size: clamp(24px,1.85vw,28px);
}
@media (max-width: 1100px){
  .exam-preparation-hub .cds-paper-grid--4 .cds-paper-card > strong { font-size: 29px; }
}
@media (max-width: 620px){
  .exam-preparation-hub .cds-paper-card { grid-template-rows: minmax(106px,auto) 46px; min-height: 152px; }
  .exam-preparation-hub .cds-paper-card > strong,
  .exam-preparation-hub .cds-paper-grid--4 .cds-paper-card > strong { font-size: 27px; }
}
@media (max-width: 380px){
  .exam-preparation-hub .cds-paper-card { grid-template-columns: 108px minmax(0,1fr); column-gap: 10px; }
  .exam-preparation-hub .cds-paper-card .cds-paper-card__icon { width: 96px; height: 96px; }
  .exam-preparation-hub .cds-paper-card .cds-paper-card__icon svg { width: 96px; height: 78px; }
  .exam-preparation-hub .cds-paper-card .cds-paper-card__icon img { width: 96px; height: 96px; }
  .exam-preparation-hub .cds-paper-card > strong,
  .exam-preparation-hub .cds-paper-grid--4 .cds-paper-card > strong { font-size: 25px; margin-right: 12px; }
}
@media (max-width: 620px){
  .exam-preparation-hub .cds-paper-card .cds-paper-card__icon,
  .exam-preparation-hub .cds-paper-card .cds-paper-card__icon img { height: 96px; }
}
/* Subject-entry typography follows the platform's serif heading style. */
.exam-preparation-hub .exam-workspace-content { padding-top: 44px; }
.exam-preparation-hub .exam-subject-entry > h2 {
  max-width: none;
  margin: 0 auto 24px;
  text-align: center;
}
.exam-preparation-hub .cds-paper-card__action {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}
@media (max-width: 680px){
  .exam-preparation-hub .exam-workspace-content { padding-top: 36px; }
  .exam-preparation-hub .exam-subject-entry > h2 { max-width: 340px; margin-bottom: 20px; }
  .exam-preparation-hub .cds-paper-card__action { font-size: 17px; }
}
/* Align the supporting-resource heading with the centered subject heading. */
.exam-preparation-hub .exam-workspace-content .afcat-tools { margin-top: 48px; }
.exam-preparation-hub .afcat-tools .afcat-section-heading {
  justify-content: center;
  text-align: center;
  margin-bottom: 24px;
}
@media (max-width: 680px){
  .exam-preparation-hub .exam-workspace-content .afcat-tools { margin-top: 40px; }
  .exam-preparation-hub .afcat-tools .afcat-section-heading { margin-bottom: 20px; }
}
/* A restrained gold divider marks the start of supporting resources. */
.exam-preparation-hub .afcat-tools .afcat-section-heading {
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.exam-preparation-hub .afcat-tools .afcat-section-heading::before {
  content: '';
  display: block;
  width: 56px;
  height: 2px;
  flex: 0 0 2px;
  border-radius: 2px;
  background: linear-gradient(90deg,#ead9b0,#b68b3d,#ead9b0);
}
.exam-preparation-hub .exam-resource-row__icon svg { width: 46px; height: 42px; }
@media (max-width: 1000px){
  .exam-preparation-hub .exam-resource-row__icon svg { width: 42px; height: 38px; }
}
@media (max-width: 680px){
  .exam-preparation-hub .afcat-tools .afcat-section-heading { gap: 14px; }
  .exam-preparation-hub .exam-resource-row__icon svg { width: 38px; height: 34px; }
}
/* Refined resource rows: related copy together, subtle colour and clear symbols. */
.exam-preparation-hub .exam-resource-panel { border-color: #dfe3e8; }
.exam-preparation-hub .exam-resource-row { display: grid; grid-template-columns: 60px minmax(0,1fr) 180px; gap: 24px; min-height: 104px; padding: 20px 24px; border-bottom-color: #e2e6eb; background: var(--resource-row-bg,#fff); box-shadow: none; }
.exam-preparation-hub .exam-resource-row--mock { --resource-row-bg: #faf8f3; --resource-row-hover: #f5efe2; --resource-icon-bg: #fbefd6; --resource-icon-color: #9b6816; }
.exam-preparation-hub .exam-resource-row--papers { --resource-row-bg: #f5f9f7; --resource-row-hover: #eaf4ef; --resource-icon-bg: #e4f3ec; --resource-icon-color: #13765d; }
.exam-preparation-hub .exam-resource-row--study { --resource-row-bg: #f8f6fb; --resource-row-hover: #efebf7; --resource-icon-bg: #eee8fa; --resource-icon-color: #6952a0; }
.exam-preparation-hub .exam-resource-row--performance { --resource-row-bg: #f5f8fc; --resource-row-hover: #eaf1f9; --resource-icon-bg: #e4effb; --resource-icon-color: #236ca8; }
.exam-preparation-hub .exam-resource-row--saved { --resource-row-bg:#fcfaf4; --resource-row-hover:#f7efdE; --resource-icon-bg:#f7eacb; --resource-icon-color:#926a20; }
.exam-preparation-hub .exam-resource-row:hover .exam-resource-row__action,
.exam-preparation-hub .exam-resource-row:focus-visible .exam-resource-row__action { background:#102d43; border-color:#102d43; color:#fffaf1; }
.exam-preparation-hub .exam-resource-row:hover,
.exam-preparation-hub .exam-resource-row:focus-visible { background: var(--resource-row-hover,#f5f7fa); }
.exam-preparation-hub .exam-resource-row__icon { grid-column: 1; grid-row: 1; align-self: center; width: 60px; height: 60px; border-radius: 14px; background: var(--resource-icon-bg,#fbf6eb); color: var(--resource-icon-color,#10253c); }
.exam-preparation-hub .exam-resource-row__icon svg { width: 36px; height: 36px; }
.exam-preparation-hub .exam-resource-row__copy { grid-column: 2; grid-row: 1; min-width: 0; }
.exam-preparation-hub .exam-resource-row__title { display: block; margin-bottom: 6px; font-size: 28px; }
.exam-preparation-hub .exam-resource-row__description { display: block; font-size: 15px; }
.exam-preparation-hub .exam-resource-row__action { grid-column: 3; grid-row: 1; min-height: 44px; }
@media (max-width: 680px){
  .exam-preparation-hub .exam-resource-row { grid-template-columns: 48px minmax(0,1fr); gap: 12px 14px; padding: 20px 16px; }
  .exam-preparation-hub .exam-resource-row__icon { grid-row: 1; align-self: start; width: 48px; height: 48px; border-radius: 12px; }
  .exam-preparation-hub .exam-resource-row__icon svg { width: 30px; height: 30px; }
  .exam-preparation-hub .exam-resource-row__title { font-size: 25px; }
  .exam-preparation-hub .exam-resource-row__description { font-size: 14px; }
  .exam-preparation-hub .exam-resource-row__action { grid-column: 2; grid-row: 2; margin-top: 0; }
}
/* Published resource availability sits between the copy and its action. */
.exam-preparation-hub .exam-resource-row { grid-template-columns: 60px minmax(0,1fr) 200px 180px; gap: 20px; }
.exam-preparation-hub .exam-resource-row__action { grid-column: 4; }
.exam-preparation-hub .exam-resource-pill {
  grid-column: 3;
  grid-row: 1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #e9d8ae;
  border-radius: 999px;
  background: #fbefd6;
  color: #835817;
  white-space: nowrap;
  font: 600 13px/1.4 'DM Sans', Inter, sans-serif;
}
.exam-preparation-hub .exam-resource-pill--papers { border-color: #cce5d9; background: #e4f3ec; color: #17694f; }
.exam-resource-pill i { font-size: 15px; }
@media (max-width: 1000px){
  .exam-preparation-hub .exam-resource-row { grid-template-columns: 60px minmax(0,1fr) 180px; gap: 10px 20px; }
  .exam-preparation-hub .exam-resource-row__icon { grid-row: 1 / 3; }
  .exam-preparation-hub .exam-resource-pill { grid-column: 2; grid-row: 2; justify-self: start; }
  .exam-preparation-hub .exam-resource-row__action { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 680px){
  .exam-preparation-hub .exam-resource-row { grid-template-columns: 48px minmax(0,1fr); gap: 12px 14px; }
  .exam-preparation-hub .exam-resource-row__icon { grid-row: 1; }
  .exam-preparation-hub .exam-resource-pill { grid-column: 2; grid-row: auto; font-size: 12px; padding: 7px 10px; }
  .exam-preparation-hub .exam-resource-row__action { grid-column: 2; grid-row: auto; }
}
/* Both exam section headings share one responsive typography rule. */
.exam-preparation-hub .exam-subject-entry > h2,
.exam-preparation-hub .afcat-tools .afcat-section-heading h2 {
  color: #102847;
  font: 700 clamp(34px,3vw,43px)/1.08 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -.4px;
}
@media (max-width: 680px){
  .exam-preparation-hub .exam-subject-entry > h2,
  .exam-preparation-hub .afcat-tools .afcat-section-heading h2 {
    font-size: clamp(30px,9vw,34px);
  }
}
/* Availability is centered in the row, independently of the left copy and right action. */
.exam-preparation-hub .exam-resource-row { grid-template-columns: minmax(0,1fr) 240px minmax(0,1fr); gap: 20px; }
.exam-preparation-hub .exam-resource-row__leading { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: 60px minmax(0,1fr); align-items: center; gap: 20px; min-width: 0; }
.exam-preparation-hub .exam-resource-row__icon { grid-column: 1; grid-row: 1; }
.exam-preparation-hub .exam-resource-row__copy { grid-column: 2; grid-row: 1; }
.exam-preparation-hub .exam-resource-pill { grid-column: 2; grid-row: 1; margin-left: 0; justify-self: center; }
.exam-preparation-hub .exam-resource-row__action { grid-column: 3; grid-row: 1; justify-self: end; width: 180px; }
@media (max-width: 1100px){
  .exam-preparation-hub .exam-resource-row { grid-template-columns: minmax(0,1fr) 180px; gap: 12px 20px; }
  .exam-preparation-hub .exam-resource-row__leading { grid-column: 1; grid-row: 1; }
  .exam-preparation-hub .exam-resource-pill { grid-column: 1; grid-row: 2; justify-self: start; margin-left: 80px; }
  .exam-preparation-hub .exam-resource-row__action { grid-column: 2; grid-row: 1 / 3; }
}
@media (max-width: 680px){
  .exam-preparation-hub .exam-resource-row { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .exam-preparation-hub .exam-resource-row__leading { grid-template-columns: 48px minmax(0,1fr); gap: 14px; }
  .exam-preparation-hub .exam-resource-pill { grid-column: 1; grid-row: auto; margin-left: 62px; max-width: calc(100% - 62px); white-space: normal; }
  .exam-preparation-hub .exam-resource-row__action { grid-column: 1; grid-row: auto; justify-self: start; margin-left: 62px; width: auto; }
}
/* Shared subject selection keeps practice and PYQ entry points together. */
.exam-preparation-hub .exam-subject-bank {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 24px;
}
.exam-preparation-hub .exam-subject-bank a {
  padding: 10px 18px;
  border: 1px solid #cbd3dd;
  border-radius: 999px;
  color: #102847;
  background: #fff;
  font: 600 14px/1.4 'DM Sans', sans-serif;
  text-decoration: none;
}
.exam-preparation-hub .exam-subject-bank a[aria-current="page"] {
  background: #102847;
  border-color: #102847;
  color: #fff;
}
.exam-preparation-hub .exam-subject-bank a:hover {
  border-color: #b88d3d;
}
.exam-preparation-hub .exam-subject-bank a:focus-visible {
  outline: 3px solid #d9ae5b;
  outline-offset: 3px;
}

/* Shared photographic exam hero: one responsive image, no badge duplicate. */
.exam-workspace-hero--preparation .exam-hero-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.exam-workspace-hero--preparation .exam-hero-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.exam-workspace-hero--preparation::before {
  z-index: -1;
  background: linear-gradient(90deg, rgba(2,10,23,.28), transparent 65%);
}
.exam-workspace-hero--preparation .exam-workspace-hero__inner {
  min-height: 280px;
  grid-template-columns: minmax(0, 1fr);
}
.exam-workspace-hero--preparation .exam-preparation-hero__copy {
  width: 55%;
  max-width: 700px;
}
.exam-workspace-hero--preparation .cp-exam-shortcuts a:not(.cp-shortcut-primary) {
  border-color: #9ebed3;
  background: rgba(5,20,36,.35);
}
@media (max-width: 900px){
  .exam-workspace-hero--preparation .exam-preparation-hero__copy { width: 68%; }
  .exam-workspace-hero--preparation::before {
    background: linear-gradient(90deg, rgba(2,10,23,.6), rgba(2,10,23,.15) 70%, transparent);
  }
}
@media (max-width: 620px){
  .exam-workspace-hero--preparation .exam-workspace-hero__inner {
    min-height: 212px;
    grid-template-columns: minmax(0, 1fr);
  }
  .exam-workspace-hero--preparation .exam-preparation-hero__copy { width: 100%; }
  .exam-workspace-hero--preparation .exam-hero-scene img { object-position: 70% center; }
  .exam-workspace-hero--preparation::before {
    background: linear-gradient(90deg, rgba(2,10,23,.88), rgba(2,10,23,.65) 55%, rgba(2,10,23,.2));
  }
  .exam-workspace-hero--preparation .cp-exam-shortcuts { max-width: 380px; }
  .exam-workspace-hero--preparation .cp-exam-shortcuts a {
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: 15px;
  }
}

/* Keep all three services visible in the shallow CDS hero. */
.exam-workspace-hero--cds .exam-hero-scene img {
  object-fit: contain;
  object-position: right center;
}
.exam-workspace-hero--cds { background: #041e3d; }
.exam-workspace-hero--cds::before {
  background: linear-gradient(90deg, #041e3d 20%, rgba(4,30,61,.7) 43%, transparent 65%);
}
.exam-workspace-hero--nda .exam-hero-scene img { object-position: center 35%; }
@media (max-width: 620px){
  .exam-workspace-hero--cds .exam-hero-scene img { object-fit: cover; object-position: 70% center; }
  .exam-workspace-hero--cds::before {
    background: linear-gradient(90deg, rgba(2,10,23,.88), rgba(2,10,23,.65) 55%, rgba(2,10,23,.2));
  }
  .exam-workspace-hero--nda .exam-hero-scene img { object-position: 70% center; }
  .exam-workspace-hero--afcat .exam-hero-scene img { object-position: 85% center; }
}

/* Three subjects stay compact and centred instead of stretching across the page. */
.exam-preparation-hub .cds-paper-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 300px));
  justify-content: center;
  max-width: 964px;
  margin-inline: auto;
  gap: 32px;
}
.exam-preparation-hub .cds-paper-grid--3 .cds-paper-card {
  grid-template-columns: 98px minmax(0, 1fr);
  column-gap: 10px;
}
.exam-preparation-hub .cds-paper-grid--3 .cds-paper-card .cds-paper-card__icon {
  width: 86px;
  height: 112px;
}
.exam-preparation-hub .cds-paper-grid--3 .cds-paper-card .cds-paper-card__icon img {
  width: 86px;
  height: 112px;
}
.exam-preparation-hub .cds-paper-grid--3 .cds-paper-card .cds-paper-card__icon svg {
  width: 86px;
  height: 72px;
}
.exam-preparation-hub .cds-paper-grid--3 .cds-paper-card > strong {
  font-size: 26px;
  margin-right: 14px;
}
.exam-preparation-hub .cds-paper-card__academy-pill {
  display: table;
  width: max-content;
  max-width: 100%;
  margin-top: 9px;
  padding: 5px 10px;
  border: 1px solid #d6e2ec;
  border-radius: 999px;
  background: #e9f0f6;
  color: #294d6b;
  font: 600 11px/1.2 'DM Sans', sans-serif;
  letter-spacing: .1px;
  white-space: nowrap;
}
@media (max-width: 1100px) and (min-width: 901px){
  .exam-preparation-hub .cds-paper-grid--3 .cds-paper-card > strong { font-size: 24px; }
}
@media (max-width: 900px){
  .exam-preparation-hub .cds-paper-grid--3 {
    grid-template-columns: minmax(0, 360px);
    max-width: 360px;
    gap: 24px;
  }
}
@media (max-width: 620px){
  .exam-preparation-hub .cds-paper-grid--3 .cds-paper-card .cds-paper-card__icon,
  .exam-preparation-hub .cds-paper-grid--3 .cds-paper-card .cds-paper-card__icon img { height: 96px; }
  .exam-preparation-hub .cds-paper-card__academy-pill { margin-top: 7px; }
}
/* Shared exam-home hierarchy: AFCAT, CDS and NDA. */
.home-landing.exam-overview-page .exam-preparation-hub .exam-subject-entry > h2,
.home-landing.exam-overview-page .exam-preparation-hub .afcat-section-heading h2 {
  font-size: clamp(30px,2.7vw,36px) !important;
  line-height: 1.15 !important;
}
.home-landing.exam-overview-page .feedback .section-title {
  font-size: clamp(28px,2.5vw,34px) !important;
  line-height: 1.15 !important;
  max-width: 18ch;
}
.home-landing.exam-overview-page .exam-preparation-hub .cds-paper-card > strong {
  font-size: 26px;
  line-height: 1.12;
}
.home-landing.exam-overview-page .exam-preparation-hub .exam-resource-row__title {
  font-size: 24px;
  line-height: 1.15;
}
.home-landing.exam-overview-page .exam-resource-row__description,
.home-landing.exam-overview-page .exam-resource-row__action,
.home-landing.exam-overview-page .exam-resource-pill,
.home-landing.exam-overview-page .exam-subject-bank,
.home-landing.exam-overview-page .cp-exam-shortcuts,
.home-landing.exam-overview-page .feedback-auth-state,
.home-landing.exam-overview-page .feedback-form {
  font-family: 'DM Sans',sans-serif;
}
.home-landing.exam-overview-page .exam-resource-row__description {
  font-size: 15px;
  line-height: 1.55;
}
.home-landing.exam-overview-page .exam-preparation-hub .exam-workspace-content {
  padding-top: 36px;
}
.home-landing.exam-overview-page .exam-preparation-hub .exam-workspace-content .afcat-tools {
  margin-top: 36px;
}
.home-landing.exam-overview-page .feedback {
  padding-block: clamp(32px,3.5vw,48px) !important;
}
@media(max-width:640px) {
 .home-landing.exam-overview-page .exam-preparation-hub .exam-subject-entry > h2,
 .home-landing.exam-overview-page .exam-preparation-hub .afcat-section-heading h2 { font-size: 30px !important; }
 .home-landing.exam-overview-page .feedback .section-title { font-size: 28px !important; }
 .home-landing.exam-overview-page .exam-preparation-hub .cds-paper-card > strong { font-size: 24px; }
 .home-landing.exam-overview-page .exam-preparation-hub .exam-resource-row__title { font-size: 22px; }
 .home-landing.exam-overview-page .exam-preparation-hub .exam-workspace-content { padding-top: 28px; }
}

.study-hub {
  background: #f7f8fa;
  color: #102847;
  /* Keep the shared footer below this short library. */
  min-height: calc(100vh - 83px);
  min-height: calc(100svh - 83px);
}
@media (max-width: 960px){
  .study-hub { min-height: calc(100vh - 75px); min-height: calc(100svh - 75px); }
}
.study-hub .study-hub-content { max-width: 1080px; padding-block: 24px 64px; }
.study-hub h1 {
  margin: 0;
  color: #102847;
  font: 700 clamp(34px, 3vw, 36px)/1.1 'Cormorant Garamond', Georgia, serif;
}
.study-hub .study-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.study-hub .study-library-card {
  --study-accent: #a57220;
  --study-tint: #fbefd5;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  grid-template-rows: minmax(148px, auto) 48px;
  align-items: center;
  min-width: 0;
  min-height: 196px;
  padding: 0;
  border: 1px solid #d6c49d;
  border-radius: 18px;
  background: linear-gradient(145deg, #fffefa 0%, #fbf7ed 58%, #f4ead5 100%);
  color: #102847;
  text-decoration: none!important;
  box-shadow: 0 15px 34px rgba(15, 32, 53, .1), inset 0 1px 0 #fff;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.study-hub .study-library-card::before {
  content: "";
  position: absolute;
  inset: 0 25px auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, #b79049 24%, #e7d4a9 76%, transparent);
}
.study-hub .study-library-card--must_know { --study-accent: #245d7b; --study-tint: #e7f4fa; }
.study-hub .study-library-card--revision_notes { --study-accent: #6250a2; --study-tint: #f0ecfc; }
.study-hub .study-library-card__icon {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-left: 20px;
  border-radius: 16px;
  color: var(--study-accent);
  background: var(--study-tint);
  font-size: 42px;
  line-height: 1;
}
.study-hub .study-library-card__body { grid-column: 2; grid-row: 1; min-width: 0; padding: 22px 20px 22px 0; }
.study-hub .study-library-card h2 {
  margin: 0 0 8px;
  color: #102847;
  font: 700 29px/1.08 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -.4px;
}
.study-hub .study-library-card p {
  margin: 0!important;
  color: #52647a;
  font: 400 15px/1.55 'DM Sans', Inter, sans-serif;
}
.study-hub .study-library-card__action,
.study-hub .study-library-card__status {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  min-height: 48px;
  padding: 8px 15px 8px 19px;
  border-top: 1px solid #c7a967;
  background: linear-gradient(112deg, #09192c, #18304b);
  color: #fff5df;
  font: 700 18px/1.2 'Cormorant Garamond', Georgia, serif;
}
.study-hub .study-library-card__action-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid rgba(255, 241, 206, .85);
  border-radius: 50%;
  color: #102137;
  background: linear-gradient(135deg, #fae9bf, #d2a652);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .22);
}
.study-hub .study-library-card__action-arrow svg { width: 16px; height: 16px; transition: transform .22s ease; }
.study-hub a.study-library-card:hover { transform: translateY(-4px); border-color: #b99551; box-shadow: 0 24px 42px rgba(15, 32, 53, .16), inset 0 1px 0 #fff; }
.study-hub a.study-library-card:hover .study-library-card__action-arrow svg { transform: translateX(2px); }
.study-hub a.study-library-card:focus-visible { outline: 3px solid #d4a64b; outline-offset: 4px; }
.study-hub .study-library-card__status { color: #cbd5e1; font: 500 14px/1.4 'DM Sans', Inter, sans-serif; }
@media (max-width: 1050px) and (min-width: 701px){
  .study-hub .study-library-card { grid-template-columns: 80px minmax(0, 1fr); }
  .study-hub .study-library-card__icon { width: 56px; height: 56px; margin-left: 14px; font-size: 34px; border-radius: 12px; }
  .study-hub .study-library-card__body { padding-right: 14px; }
  .study-hub .study-library-card h2 { font-size: 26px; }
}
@media (max-width: 700px){
  .study-hub .study-hub-content { padding-block: 24px 40px; }
  .study-hub .study-library-grid { grid-template-columns: 1fr; gap: 16px; }
  .study-hub .study-library-card { grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: minmax(132px, auto) 48px; min-height: 180px; }
  .study-hub .study-library-card__icon { width: 64px; height: 64px; margin-left: 16px; font-size: 38px; }
  .study-hub .study-library-card__body { padding: 20px 16px 20px 0; }
  .study-hub .study-library-card h2 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce){
  .study-hub .study-library-card,
  .study-hub .study-library-card__action-arrow svg { transition: none; }
  .study-hub a.study-library-card:hover,
  .study-hub a.study-library-card:hover .study-library-card__action-arrow svg { transform: none; }
}

/* Match the compact document-library title and return-link row. */
.study-hub .study-hub-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 24px;
  margin-bottom: 20px;
}
@media (max-width: 640px){
  .study-hub .study-hub-heading { grid-template-columns: 1fr; align-items: start; gap: 14px; }
  .study-hub .study-hub-heading__back { justify-self: start; }
}

/* Shared landing navigation refinements. Kept separate from the approved hero and exam cards. */
.home-landing .home-header {
  isolation: isolate;
  background: linear-gradient(180deg, rgba(3, 10, 24, .985), rgba(7, 18, 37, .975));
  transition: padding .2s ease, background .2s ease, box-shadow .2s ease;
}

.home-landing .home-nav {
  min-height: 82px;
  gap: clamp(30px, 4vw, 64px);
}

.home-landing .logo {
  flex: 0 0 auto;
  gap: 11px;
  font-size: 32px;
  letter-spacing: .025em;
}

.home-landing .logo__image {
  width: 56px;
  height: 56px;
}

.home-landing .home-nav,
.home-landing .logo,
.home-landing .logo__image,
.home-landing .logo__title {
  transition: min-height .2s ease, gap .2s ease, width .2s ease, height .2s ease, font-size .2s ease;
}

.home-landing #primaryNav {
  flex: 0 1 auto;
  width: auto;
  max-width: none;
  margin-left: auto;
  justify-content: flex-end;
  gap: clamp(22px, 2.1vw, 30px);
}

.home-landing #primaryNav > a:not(.home-nav__cta):not(.btn--ghost) {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .005em;
  white-space: nowrap;
}

.home-landing .home-header--exam #primaryNav {
  gap: clamp(22px, 2.1vw, 30px);
}

.home-landing .home-header--exam #primaryNav > a:not(.home-nav__cta):not(.btn--ghost) {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

.home-landing .home-nav__cta {
  min-height: 44px;
  padding: 0 8px 0 17px !important;
  gap: 10px;
  border-radius: 11px !important;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

.home-landing .home-nav__cta-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.home-landing .home-nav__cta-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px !important;
  font-size: 16px;
}

.home-landing .home-header--exam #primaryNav > a[aria-current="page"] {
  color: #fff8ea !important;
}

.home-landing .home-header--exam #primaryNav > a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.home-landing #primaryNav > a:not(.home-nav__cta):not(.btn--ghost)[aria-current="location"] {
  color: #fff8ea !important;
}

.home-landing #primaryNav > a:not(.home-nav__cta):not(.btn--ghost)[aria-current="location"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.home-landing .home-header--compact {
  padding-block: 0;
  background: linear-gradient(180deg, rgba(3, 10, 24, .998), rgba(7, 18, 37, .995));
  box-shadow: 0 14px 34px rgba(2, 8, 23, .28);
}

.home-landing .home-header--compact .home-nav {
  min-height: 78px;
}

.home-landing .home-header--compact .logo {
  gap: 9px;
  font-size: 30px;
}

.home-landing .home-header--compact .logo__image {
  width: 52px;
  height: 52px;
}

.home-landing .home-nav__account-icon,
.home-landing .home-nav__account-label {
  display: inline-flex;
  align-items: center;
}

.home-landing .home-nav__account-icon {
  color: #efc872;
  font-size: 20px;
  line-height: 1;
}

.home-landing #primaryNav a:focus-visible,
.home-landing .logo:focus-visible,
.home-landing .nav-toggle:focus-visible {
  outline: 3px solid rgba(239, 200, 114, .78) !important;
  outline-offset: 4px !important;
}

@media (max-width: 900px){
  .home-landing #primaryNav {
    width: auto;
    max-width: none;
    align-items: stretch;
    overflow: hidden;
    background: linear-gradient(145deg, #061326, #0a1d35) !important;
    box-shadow: 0 22px 46px rgba(2, 8, 23, .34) !important;
  }

  .home-landing #primaryNav.nav-open {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-landing #primaryNav > a:not(.home-nav__cta):not(.btn--ghost) {
    width: 100%;
    min-height: 50px;
    padding: 12px 10px !important;
    border: 1px solid rgba(226, 232, 240, .1);
    border-radius: 12px !important;
    background: rgba(255, 255, 255, .045);
    font-size: 15px;
  }

  .home-landing #primaryNav > a:not(.home-nav__cta):not(.btn--ghost):hover,
  .home-landing #primaryNav > a:not(.home-nav__cta):not(.btn--ghost)[aria-current] {
    border-color: rgba(227, 185, 77, .26);
    background: rgba(255, 255, 255, .075);
  }

  .home-landing #primaryNav > a:not(.home-nav__cta):not(.btn--ghost)::after {
    right: 14px;
    bottom: 7px;
    left: 14px;
    height: 2px;
  }

  .home-landing #primaryNav > .home-nav__cta,
  .home-landing #primaryNav > .home-nav__account {
    grid-column: 1 / -1;
  }

  .home-landing .home-header--compact .home-nav {
    min-height: 72px !important;
  }

  .home-landing .home-header--compact .logo {
    font-size: 27px;
  }

  .home-landing .home-header--compact .logo__image {
    width: 43px;
    height: 43px;
  }
}

@media (min-width: 901px) and (max-width: 1120px){
  .home-landing .home-header--exam .nav-toggle {
    display: inline-flex;
  }

  .home-landing .home-header--exam #primaryNav {
    position: absolute;
    top: calc(100% - 4px);
    right: max(18px, calc((100vw - 1180px) / 2));
    left: max(18px, calc((100vw - 1180px) / 2));
    display: none;
    width: auto;
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 9px;
    overflow: hidden;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, .13);
    border-radius: 16px;
    background: linear-gradient(145deg, #061326, #0a1d35) !important;
    box-shadow: 0 22px 46px rgba(2, 8, 23, .34) !important;
  }

  .home-landing .home-header--exam #primaryNav.nav-open {
    display: grid !important;
  }

  .home-landing .home-header--exam #primaryNav > a:not(.home-nav__cta):not(.btn--ghost) {
    width: 100%;
    min-height: 48px;
    padding: 11px 9px !important;
    border: 1px solid rgba(226, 232, 240, .1);
    border-radius: 11px !important;
    background: rgba(255, 255, 255, .045);
  }

  .home-landing .home-header--exam #primaryNav > .home-nav__cta,
  .home-landing .home-header--exam #primaryNav > .home-nav__account {
    grid-column: 1 / -1;
  }
}

@media (max-width: 380px){
  .home-landing #primaryNav {
    padding: 10px !important;
  }

  .home-landing #primaryNav > a:not(.home-nav__cta):not(.btn--ghost) {
    padding-inline: 7px !important;
    font-size: 14px;
  }

  .home-landing .logo {
    gap: 8px;
    font-size: 25px;
  }

  .home-landing .logo__image {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce){
  html {
    scroll-behavior: auto;
  }

  .home-landing .home-header,
  .home-landing .home-nav,
  .home-landing .logo,
  .home-landing .logo__image,
  .home-landing .logo__title {
    transition: none !important;
  }
}

