/* Press kit — Desktop 4966:11205 / 6488:24297 / 6488:24540, Mobile 5485:15862 / 5485:16637 */

.aayda-press-kit-page {
  background-color: var(--aayda-colors-surface-disabled);
}

.aayda-press-kit-page .aayda-top-block {
  position: relative;
  min-height: 328px;
  padding: var(--aayda-numbers-spacing-32) 0 var(--aayda-numbers-spacing-32) var(--aayda-numbers-spacing-32);
  border: 0;
  box-shadow: inset 0 0 0 var(--aayda-border-width-card) var(--aayda-colors-base-white);
}

.aayda-press-kit-page .aayda-top-block__inner {
  justify-content: flex-start;
  gap: 96px;
  width: 100%;
}

.aayda-press-kit-page .aayda-top-block__heading {
  gap: var(--aayda-numbers-spacing-12);
}

.aayda-press-kit-page .aayda-top-block__title {
  font-size: var(--aayda-typography-size-32);
  line-height: var(--aayda-typography-line-height-heading-32);
  letter-spacing: var(--aayda-typography-letter-spacing-32);
  white-space: normal;
}

.aayda-press-kit-page .aayda-top-block__lede {
  display: flex;
  gap: var(--aayda-numbers-spacing-12);
  width: 100%;
  height: 86px;
}

.aayda-press-kit-page .aayda-top-block__description {
  width: min(100%, 292px);
  line-height: var(--aayda-typography-line-height-10);
}

.aayda-press-kit {
  box-sizing: border-box;
  width: 100%;
  padding: 43px 0 80px;
}

.aayda-press-kit__inner {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 0 var(--aayda-numbers-spacing-16);
}

.aayda-press-kit__list {
  display: flex;
  flex-direction: column;
  gap: var(--aayda-numbers-spacing-24);
  margin: 0;
  padding: 0;
  list-style: none;
}

.aayda-press-kit__item {
  flex: 0 0 auto;
  width: 100%;
  max-width: 370px;
}

.aayda-press-kit__card {
  position: relative;
  box-sizing: border-box;
  isolation: isolate;
  width: 100%;
  /* A minimum, not a height: a long title, description or format list grows the card instead of
     being clipped. The bottom padding is the strip of accent bar below the white panel. */
  min-height: 275px;
  padding-bottom: 5px;
  overflow: hidden;
  border-radius: var(--aayda-radius-image);
}

.aayda-press-kit__card::before {
  position: absolute;
  /* The 86.91% and 1.82% of the fixed 275px card, as lengths, so the bar keeps its thickness when
     the card grows. */
  inset: auto 0 0;
  height: 36px;
  z-index: 0;
  background: var(--aayda-colors-accent);
  border-radius: var(--aayda-radius-image);
  content: "";
}

.aayda-press-kit__card::after {
  position: absolute;
  inset: 0 0 5px;
  z-index: 0;
  pointer-events: none;
  background: var(--aayda-colors-surface-subtle);
  border: var(--aayda-border-width-card) solid var(--aayda-colors-base-white);
  border-radius: var(--aayda-radius-image);
  content: "";
}

.aayda-press-kit__card-body {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--aayda-numbers-spacing-44);
  width: 100%;
  min-height: 270px;
  padding: 22px 32px;
}

.aayda-press-kit__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--aayda-numbers-spacing-12);
  width: 100%;
  min-height: 46px;
}

.aayda-press-kit__formats {
  margin: 0;
  color: var(--aayda-colors-navy-700);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-14);
  font-weight: var(--aayda-typography-weight-bold);
  line-height: var(--aayda-typography-line-height-14);
  letter-spacing: var(--aayda-typography-letter-spacing-14);
  /* Wraps rather than running under the actions when a card lists several formats. */
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* With more than one file each format is a link of its own (the formats line, otherwise plain). */
.aayda-press-kit__format-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.aayda-press-kit__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--aayda-numbers-spacing-12);
}

.aayda-press-kit__action {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: var(--aayda-numbers-spacing-12);
  overflow: hidden;
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
  background: #fdfdfe;
  border: 1.5px solid #e1e1e1;
  border-radius: 100px;
  text-decoration: none;
}

.aayda-press-kit__action img {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  max-width: none;
}

/* A card with no file yet: the design's two actions, inert and out of the accessibility tree. */
.aayda-press-kit__action--unavailable {
  cursor: default;
  pointer-events: none;
}

/* Focus is visible at every width, not only where the desktop hover swap applies. */
.aayda-press-kit__action:focus-visible,
.aayda-press-kit__format-link:focus-visible,
.aayda-press-kit__retry:focus-visible {
  outline: var(--aayda-border-width-focus-ring) solid var(--aayda-colors-ring-focus);
  outline-offset: 2px;
}

.aayda-press-kit__action--view img,
.aayda-press-kit__action--download img {
  position: relative;
  z-index: 1;
}

.aayda-press-kit__card-copy {
  display: flex;
  flex-direction: column;
  gap: var(--aayda-numbers-spacing-16);
  width: 100%;
  min-width: 0;
}

.aayda-press-kit__card-title {
  margin: 0;
  color: var(--aayda-colors-gray-800);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-40);
  font-weight: var(--aayda-typography-weight-medium);
  line-height: var(--aayda-typography-line-height-40);
  letter-spacing: var(--aayda-typography-letter-spacing-40);
  overflow-wrap: anywhere;
}

.aayda-press-kit__rule {
  display: block;
  width: 100%;
  height: 1px;
  background: url("../../assets/icons/press-kit-card-rule.svg") center / 100% 1px no-repeat;
}

/* The mobile card's rule is a 0-height line in Figma (5485:15862: title 0–52, line at 68, text at
   84, so the copy block is 136px). Drawn 1px tall here, it would add a pixel to the copy block and
   make the card 276px; the negative margin keeps it out of the layout, so the card is the design's
   275px and still grows with longer content. */
@media (max-width: 1415px) {
  .aayda-press-kit__rule {
    margin-bottom: -1px;
  }
}

.aayda-press-kit__card-text {
  margin: 0;
  color: var(--aayda-colors-gray-800);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-16);
  font-weight: var(--aayda-typography-weight-regular);
  line-height: var(--aayda-typography-line-height-16);
  letter-spacing: var(--aayda-typography-letter-spacing-16);
  overflow-wrap: anywhere;
}

/* In place of the grid: the empty message, or the error with a reload of the page — the report
   pages' status block and retry (css/pages/financial-reports.css). */
.aayda-press-kit__status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--aayda-numbers-spacing-16);
  box-sizing: border-box;
  width: 100%;
  max-width: 408px;
  color: var(--aayda-colors-gray-800);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-16);
  font-weight: var(--aayda-typography-weight-medium);
  line-height: var(--aayda-typography-line-height-16);
  letter-spacing: var(--aayda-typography-letter-spacing-16);
}

.aayda-press-kit__status-text {
  margin: 0;
}

.aayda-press-kit__retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 151px;
  height: 44px;
  padding: 0 var(--aayda-numbers-spacing-20);
  font-family: inherit;
  font-size: var(--aayda-typography-size-16);
  font-weight: var(--aayda-typography-weight-semi-bold);
  line-height: var(--aayda-typography-line-height-16);
  color: var(--aayda-colors-blue-400);
  text-decoration: none;
  background: var(--aayda-colors-base-white);
  border: 2px solid var(--aayda-colors-blue-400);
  border-radius: 100px;
}

.aayda-press-kit__card-text--desktop {
  display: none;
}

@media (min-width: 768px) and (max-width: 1415px) {
  .aayda-press-kit__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--aayda-numbers-spacing-24);
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .aayda-press-kit__item,
  .aayda-press-kit__card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

@media (min-width: 1416px) {
  .aayda-press-kit-page .aayda-top-block {
    height: 259px;
    min-height: 259px;
    padding: var(--aayda-numbers-spacing-32) 0 var(--aayda-numbers-spacing-32) var(--aayda-numbers-spacing-84);
  }

  .aayda-press-kit-page .aayda-top-block__inner {
    gap: var(--aayda-numbers-spacing-8);
    max-width: 1356px;
  }

  .aayda-press-kit-page .aayda-top-block__heading {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--aayda-numbers-spacing-24);
    width: 100%;
    max-width: 1354px;
  }

  .aayda-press-kit-page .aayda-top-block__title {
    flex: 0 0 auto;
    font-size: var(--aayda-typography-size-44);
    line-height: var(--aayda-typography-line-height-44);
    letter-spacing: var(--aayda-typography-letter-spacing-44);
    white-space: nowrap;
  }

  .aayda-press-kit-page .aayda-top-block__lede {
    flex: 0 0 490px;
    width: 490px;
    height: 159px;
    gap: var(--aayda-numbers-spacing-12);
  }

  .aayda-press-kit-page .aayda-top-block__description {
    width: 403px;
    font-size: var(--aayda-typography-size-14);
    line-height: var(--aayda-typography-line-height-14);
    letter-spacing: var(--aayda-typography-letter-spacing-14);
  }

  .aayda-press-kit {
    padding: 100px 0 120px;
  }

  .aayda-press-kit__inner {
    max-width: 1272px;
    margin: 0 auto;
    padding: 0;
  }

  .aayda-press-kit__list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .aayda-press-kit__item {
    width: 408px;
    max-width: 408px;
  }

  .aayda-press-kit__card {
    width: 408px;
    min-height: 273px;
    padding: var(--aayda-numbers-spacing-20);
  }

  .aayda-press-kit__card::before {
    /* The 79.49% and 1.1% of the fixed 273px card, as lengths. */
    height: 56px;
  }

  .aayda-press-kit__card::after {
    inset: 0 0 3px;
  }

  .aayda-press-kit__card-body {
    gap: var(--aayda-numbers-spacing-44);
    width: 100%;
    min-height: 233px;
    padding: 0;
  }

  .aayda-press-kit__card-text--mobile {
    display: none;
  }

  .aayda-press-kit__card-text--desktop {
    display: block;
  }

  .aayda-press-kit__card::after,
  .aayda-press-kit__formats,
  .aayda-press-kit__card-title,
  .aayda-press-kit__card-text,
  .aayda-press-kit__rule {
    transition: background-color 200ms ease-out, background-image 200ms ease-out, border-color 200ms ease-out, color 200ms ease-out;
  }

  .aayda-press-kit__action {
    transition: border-color 200ms ease-out, background-color 200ms ease-out;
  }

  .aayda-press-kit__action img {
    transition: opacity 200ms ease-out;
  }

  .aayda-press-kit__card:hover::after {
    background: #133888;
    border-color: #133888;
  }

  .aayda-press-kit__card:hover .aayda-press-kit__formats,
  .aayda-press-kit__card:hover .aayda-press-kit__card-text {
    color: var(--aayda-colors-text-on-brand);
  }

  .aayda-press-kit__card:hover .aayda-press-kit__card-title {
    color: var(--aayda-colors-accent);
  }

  .aayda-press-kit__card:hover .aayda-press-kit__rule {
    background-image: url("../../assets/icons/press-kit-card-rule-hover.svg");
  }

  .aayda-press-kit__action--view:hover,
  .aayda-press-kit__action--view:focus-visible,
  .aayda-press-kit__action--download:hover,
  .aayda-press-kit__action--download:focus-visible {
    border-color: transparent;
    background-color: #fdfdfe;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
  }

  .aayda-press-kit__action--view:hover,
  .aayda-press-kit__action--view:focus-visible {
    background-image: url("../../assets/icons/press-kit-view-hover.svg");
  }

  .aayda-press-kit__action--download:hover,
  .aayda-press-kit__action--download:focus-visible {
    background-image: url("../../assets/icons/press-kit-download-hover.svg");
  }

  .aayda-press-kit__action--view:hover img,
  .aayda-press-kit__action--view:focus-visible img,
  .aayda-press-kit__action--download:hover img,
  .aayda-press-kit__action--download:focus-visible img {
    opacity: 0;
  }
}
