/**
 * Results page.
 * All section and content sizing is intrinsic: no fixed content heights.
 */

.elg-results-page {
  --results-navy: #071a2a;
  --results-panel: #0a2237;
  --results-panel-deep: #061522;
  --results-line: rgba(154, 178, 197, 0.24);
  --results-gold: #e4b75f;
  overflow: clip;
  background: var(--results-navy);
  color: #fff;
}

.elg-results-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 667px;
  padding-block: clamp(80px, 8vw, 120px);
  overflow: hidden;
  background: #09233a;
}

.elg-results-hero__media,
.elg-results-hero__shade,
.elg-results-hero__grid {
  position: absolute;
  inset: 0;
}

.elg-results-hero__media {
  z-index: -4;
}

.elg-results-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.elg-results-hero__shade {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(5, 24, 40, 0.97) 0%, rgba(8, 34, 55, 0.86) 42%, rgba(8, 34, 55, 0.58) 100%),
    linear-gradient(180deg, rgba(4, 18, 30, 0.16), rgba(5, 25, 42, 0.54));
}

.elg-results-hero__grid {
  z-index: -2;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(142, 172, 196, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 172, 196, 0.16) 1px, transparent 1px);
  background-size: 96px 96px;
}

.elg-results-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.85fr);
  gap: clamp(64px, 7vw, 120px);
  align-items: center;
}

.elg-results-hero__copy {
  max-width: 690px;
}

.elg-results-hero__eyebrow,
.elg-results-archive__eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 18px;
  color: var(--results-gold);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.elg-results-hero__eyebrow > span,
.elg-results-archive__eyebrow > span {
  flex: 0 0 50px;
  width: 50px;
  height: 1px;
  background: currentColor;
}

.elg-results-hero__title {
  margin: 0;
  max-width: 640px;
  font-family: var(--elg-font-display);
  font-size: clamp(64px, 5.7vw, 90px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.elg-results-hero__body {
  max-width: 660px;
  margin: 24px 0 0;
  color: #aebdca;
  font-size: 18px;
  line-height: 1.58;
}

.elg-results-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.elg-results-hero__cta {
  min-width: 210px;
  justify-content: center;
}

.elg-results-hero__phone {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
  text-decoration: none;
}

.elg-results-hero__phone span {
  color: #aebdca;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.elg-results-hero__phone strong {
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
  font-size: 26px;
  line-height: 1.05;
  transition: color 180ms ease, border-color 180ms ease;
}

.elg-results-hero__phone:hover strong,
.elg-results-hero__phone:focus-visible strong {
  border-color: var(--results-gold);
  color: var(--results-gold);
}

.elg-results-hero__proof {
  position: relative;
  padding: clamp(38px, 4vw, 56px);
  border: 1px solid rgba(155, 182, 202, 0.35);
  background: rgba(4, 20, 33, 0.92);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.22);
}

.elg-results-hero__proof-eyebrow {
  margin: 0;
  color: var(--results-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.elg-results-hero__proof-total {
  margin: 10px 0 24px;
  font-family: var(--elg-font-display);
  font-size: clamp(62px, 5.1vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.elg-results-hero__proof-list {
  margin: 0;
}

.elg-results-hero__proof-list div {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding-block: 18px;
  border-top: 1px solid var(--results-line);
}

.elg-results-hero__proof-list dt {
  color: var(--results-gold);
  font-family: var(--elg-font-display);
  font-size: 28px;
  line-height: 1;
}

.elg-results-hero__proof-list dd {
  margin: 0;
  color: #9fadb9;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.elg-results-archive {
  position: relative;
  isolation: isolate;
  padding-block: clamp(96px, 9vw, 150px);
  overflow: hidden;
  background: var(--elg-navy);
}

.elg-results-archive__glow {
  position: absolute;
  z-index: -1;
  width: 1171px;
  height: 1112px;
  background: url("../assets/next-move/glow-left.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}

.elg-results-archive__glow--left {
  top: -180px;
  left: calc(50% - 1121px);
}

.elg-results-archive__glow--right {
  top: 58px;
  right: calc(50% - 1061px);
}

.elg-results-archive__header {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 48px;
}

.elg-results-archive__title {
  margin: 0;
  font-family: var(--elg-font-display);
  font-size: clamp(54px, 4.7vw, 74px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.elg-results-archive__intro {
  margin: 0 0 4px;
  color: #aebdca;
  font-size: 16px;
  line-height: 1.6;
}

.elg-results-archive__filter-viewport {
  overflow-x: auto;
  border: 1px solid var(--results-line);
  scrollbar-color: var(--results-gold) rgba(255, 255, 255, 0.05);
  scrollbar-width: thin;
}

.elg-results-archive__filters {
  display: flex;
  min-width: max-content;
}

.elg-results-archive__filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 16px 24px;
  border: 0;
  border-right: 1px solid var(--results-line);
  background: transparent;
  color: #9fadb9;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease;
}

.elg-results-archive__filter:last-child {
  border-right: 0;
}

.elg-results-archive__filter strong {
  display: inline-grid;
  min-width: 28px;
  min-height: 28px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  font-size: 10px;
}

.elg-results-archive__filter:hover,
.elg-results-archive__filter:focus-visible,
.elg-results-archive__filter.is-active {
  color: var(--results-gold);
  background: rgba(228, 183, 95, 0.05);
}

.elg-results-archive__meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
  color: var(--results-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.elg-results-archive__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--results-line);
  border-left: 1px solid var(--results-line);
}

.elg-results-card {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 245px;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  padding: 26px 24px 30px;
  overflow: hidden;
  border-right: 1px solid var(--results-line);
  border-bottom: 1px solid var(--results-line);
  background: transparent;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center;
  will-change: transform;
  transition:
    border-color 260ms ease,
    background-color 260ms ease,
    box-shadow 360ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.elg-results-card:focus-visible {
  z-index: 2;
  border-color: var(--results-gold);
  background-color: #0c1721;
  box-shadow: 0 -4px 40px rgba(11, 65, 115, 0.2);
  outline: 1px solid var(--results-gold);
  outline-offset: -1px;
  transform: translate3d(0, 0, 0) scale(1.07);
}

.elg-results-card.is-js-hidden {
  display: none;
}

.elg-results-card__media,
.elg-results-card__shade {
  position: absolute;
  inset: 0;
}

.elg-results-card__media {
  z-index: -3;
  opacity: 0;
  transition: opacity 320ms ease;
}

.elg-results-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 500ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.elg-results-card__shade {
  z-index: -2;
  opacity: 0;
  background: linear-gradient(180deg, rgba(7, 27, 44, 0.25), rgba(4, 19, 31, 0.94));
  transition: opacity 320ms ease;
}

.elg-results-card:focus-visible .elg-results-card__media,
.elg-results-card:focus-visible .elg-results-card__shade {
  opacity: 1;
}

.elg-results-card:focus-visible .elg-results-card__media img {
  filter: brightness(1.08) saturate(1.06);
  transform: scale(1.075);
}

@media (hover: hover) and (pointer: fine) {
  .elg-results-card:hover {
    z-index: 2;
    border-color: var(--results-gold);
    background-color: #0c1721;
    box-shadow: 0 -4px 40px rgba(11, 65, 115, 0.2);
    transform: translate3d(0, 0, 0) scale(1.07);
  }

  .elg-results-card:hover .elg-results-card__media,
  .elg-results-card:hover .elg-results-card__shade {
    opacity: 1;
  }

  .elg-results-card:hover .elg-results-card__media img {
    filter: brightness(1.08) saturate(1.06);
    transform: scale(1.075);
  }
}

.elg-results-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--results-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.elg-results-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-end;
}

.elg-results-card__amount {
  color: var(--results-gold);
  font-family: var(--elg-font-display);
  font-size: clamp(36px, 2.8vw, 50px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}

.elg-results-card h3 {
  margin: 18px 0 8px;
  font-family: var(--elg-font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.08;
}

.elg-results-card p {
  margin: 0;
  color: #aebdca;
  font-size: 13px;
  line-height: 1.5;
}

.elg-results-archive__load-more {
  display: block;
  margin: 40px auto 0;
  padding: 13px 18px;
  border: 1px solid var(--results-gold);
  background: transparent;
  color: var(--results-gold);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease;
}

.elg-results-archive__load-more[hidden] {
  display: none;
}

.elg-results-archive__load-more:hover,
.elg-results-archive__load-more:focus-visible {
  background: var(--results-gold);
  color: var(--results-panel-deep);
}

.elg-results-archive__empty {
  margin: 32px 0 0;
  color: #aebdca;
  font-size: 16px;
  text-align: center;
}

.elg-results-next-move {
  border-top: 1px solid rgba(154, 178, 197, 0.12);
}

@media (max-width: 1023px) {
  .elg-results-hero__layout,
  .elg-results-archive__header {
    grid-template-columns: 1fr;
  }

  .elg-results-hero__proof {
    max-width: 720px;
  }

  .elg-results-archive__header {
    gap: 28px;
  }

  .elg-results-archive__intro {
    max-width: 620px;
  }

  .elg-results-archive__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .elg-results-hero {
    display: block;
    min-height: 0;
    padding-block: 72px;
  }

  .elg-results-hero__media img {
    object-position: 62% center;
  }

  .elg-results-hero__shade {
    background: linear-gradient(180deg, rgba(5, 24, 40, 0.86), rgba(5, 24, 40, 0.72) 52%, rgba(5, 24, 40, 0.97));
  }

  .elg-results-hero__grid {
    background-size: 72px 72px;
  }

  .elg-results-hero__layout {
    gap: 42px;
  }

  .elg-results-hero__eyebrow,
  .elg-results-archive__eyebrow {
    gap: 14px;
    font-size: 11px;
  }

  .elg-results-hero__eyebrow > span,
  .elg-results-archive__eyebrow > span {
    flex-basis: 32px;
    width: 32px;
  }

  .elg-results-hero__title {
    font-size: clamp(50px, 14.6vw, 64px);
    line-height: 0.94;
  }

  .elg-results-hero__body {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.55;
  }

  .elg-results-hero__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 20px;
    margin-top: 28px;
  }

  .elg-results-hero__cta {
    width: 100%;
  }

  .elg-results-hero__proof {
    padding: 30px 24px;
  }

  .elg-results-hero__proof-total {
    font-size: 58px;
  }

  .elg-results-hero__proof-list div {
    grid-template-columns: minmax(64px, auto) minmax(0, 1fr);
    gap: 18px;
  }

  .elg-results-archive {
    padding-block: 78px 92px;
  }

  .elg-results-archive__header {
    margin-bottom: 34px;
  }

  .elg-results-archive__title {
    font-size: clamp(48px, 13.5vw, 60px);
  }

  .elg-results-archive__intro {
    font-size: 15px;
  }

  .elg-results-archive__filter {
    min-height: 62px;
    padding: 14px 18px;
  }

  .elg-results-archive__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .elg-results-archive__grid {
    grid-template-columns: 1fr;
  }

  .elg-results-card {
    gap: 44px;
    padding: 24px 22px 28px;
  }

  .elg-results-card__amount {
    font-size: 46px;
  }

  .elg-results-card h3 {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .elg-results-card,
  .elg-results-card__media,
  .elg-results-card__media img,
  .elg-results-card__shade,
  .elg-results-archive__filter,
  .elg-results-archive__load-more {
    transition: none;
  }
}



/* Match Results phone links to the Home next-move phone component. */
.elg-results-page .elg-results-hero__phone,
.elg-results-page .elg-next-move__phone {
  width: 208px;
  min-height: 54.614px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--elg-muted);
  color: var(--elg-white);
  font-family: var(--elg-font-ui);
  font-weight: 600;
  line-height: normal;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.elg-results-page .elg-results-hero__phone span,
.elg-results-page .elg-next-move__phone span {
  width: 100%;
  color: var(--elg-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 2px;
  text-wrap: balance;
  white-space: normal;
  transition: color 180ms ease;
}

.elg-results-page .elg-results-hero__phone strong,
.elg-results-page .elg-next-move__phone strong {
  border: 0;
  color: var(--elg-white);
  font-size: 30px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
  transition: color 180ms ease;
}

.elg-results-page .elg-results-hero__phone:hover,
.elg-results-page .elg-results-hero__phone:focus-visible,
.elg-results-page .elg-next-move__phone:hover,
.elg-results-page .elg-next-move__phone:focus-visible {
  border-color: var(--elg-gold-bright);
  color: var(--elg-gold-bright);
  transform: translateY(-2px);
}

.elg-results-page .elg-results-hero__phone:hover span,
.elg-results-page .elg-results-hero__phone:hover strong,
.elg-results-page .elg-results-hero__phone:focus-visible span,
.elg-results-page .elg-results-hero__phone:focus-visible strong,
.elg-results-page .elg-next-move__phone:hover span,
.elg-results-page .elg-next-move__phone:hover strong,
.elg-results-page .elg-next-move__phone:focus-visible span,
.elg-results-page .elg-next-move__phone:focus-visible strong {
  color: var(--elg-gold-bright);
}

@media (max-width: 767px) {
  .elg-results-page .elg-results-hero__phone,
  .elg-results-page .elg-next-move__phone {
    width: 180px;
    min-height: 37px;
  }

  .elg-results-page .elg-results-hero__phone span,
  .elg-results-page .elg-next-move__phone span {
    font-size: 11px;
  }

  .elg-results-page .elg-results-hero__phone strong,
  .elg-results-page .elg-next-move__phone strong {
    font-size: 25px;
  }
}


/* Keep the Results hero phone label on one line and its hover state static. */
.elg-results-page .elg-results-hero__phone {
  width: max-content;
  min-width: 208px;
  transition: none;
}

.elg-results-page .elg-results-hero__phone span {
  width: auto;
  text-wrap: nowrap;
  white-space: nowrap;
  transition: none;
}

.elg-results-page .elg-results-hero__phone strong {
  transition: none;
}

.elg-results-page .elg-results-hero__phone:hover,
.elg-results-page .elg-results-hero__phone:focus-visible {
  transform: none;
}


/* Keep the Results closing phone hover state static. */
.elg-results-page .elg-next-move__phone,
.elg-results-page .elg-next-move__phone span,
.elg-results-page .elg-next-move__phone strong {
  transition: none;
}

.elg-results-page .elg-next-move__phone:hover,
.elg-results-page .elg-next-move__phone:focus-visible {
  transform: none;
}
