/* Tunellər — Desktop 4921:43231, Mobile 5325:20745 */

.aayda-tunels-page {
  background-color: var(--aayda-colors-surface-disabled);
}

.aayda-tunels-page .aayda-top-block {
  position: relative;
  min-height: 333px;
  padding: var(--aayda-numbers-spacing-32);
}

.aayda-tunels-page .aayda-top-block__inner {
  gap: 96px;
  width: 100%;
}

.aayda-tunels-page .aayda-top-block__heading {
  gap: var(--aayda-numbers-spacing-12);
}

.aayda-tunels-page .aayda-top-block__lede {
  display: flex;
  gap: var(--aayda-numbers-spacing-12);
  height: 86px;
}

.aayda-tunels-page .aayda-top-block__description {
  width: min(100%, 292px);
  line-height: 18px;
}

.aayda-tunels {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 40px 0 64px;
}

.aayda-tunels__inner {
  width: 100%;
  min-width: 0;
}

.aayda-tunels__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.aayda-tunels__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: calc(100% - 32px);
  max-width: 370px;
  margin: 0 auto;
  padding: 0;
}

.aayda-tunels__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  width: 100%;
  max-width: 370px;
  height: 326px;
  overflow: clip;
  background: #f8f8fa;
  border: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 0 2px var(--aayda-colors-base-white);
  color: inherit;
}

.aayda-tunels__media {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.aayda-tunels__image {
  position: absolute;
  display: block;
  max-width: none;
}

.aayda-tunels__image--desktop {
  display: none;
}

.aayda-tunels__image--mobile {
  top: -21.74%;
  left: 0;
  width: 110.27%;
  height: 143.48%;
}

.aayda-tunels__body {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--aayda-numbers-spacing-12);
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  padding: 18px 20px 20px;
  overflow: clip;
}

.aayda-tunels__code {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--aayda-numbers-spacing-8);
  padding: 4px 14px 4px 12px;
  overflow: clip;
  background: var(--aayda-colors-neutral-surface-page);
  border-radius: 20px;
}

.aayda-tunels__code img {
  display: block;
  width: 6px;
  height: 6px;
}

.aayda-tunels__code-text {
  color: var(--aayda-colors-navy-700);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-12);
  font-weight: var(--aayda-typography-weight-semi-bold);
  line-height: 18px;
  letter-spacing: var(--aayda-typography-letter-spacing-12);
  white-space: nowrap;
}

.aayda-tunels__code-text--desktop,
.aayda-tunels__title--desktop,
.aayda-tunels__meta-value--desktop,
.aayda-tunels__meta-label--desktop {
  display: none;
}

.aayda-tunels__title {
  margin: 0;
  width: 100%;
  height: 56px;
  flex-shrink: 0;
  overflow: clip;
  color: var(--aayda-colors-teal-900);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-18);
  font-weight: var(--aayda-typography-weight-bold);
  line-height: var(--aayda-typography-line-height-18);
  letter-spacing: var(--aayda-typography-letter-spacing-18);
}

/*
 * ML-E D5: a name longer than the title box ends in an ellipsis on its last whole line instead of
 * being cut through a line. The box keeps the design's height (two 28px lines); the full name stays
 * in the link text and the heading's title attribute. Only the mobile title is given the clamp's
 * display here: the desktop one stays display: none until ≥1416px, where it is clamped.
 */
.aayda-tunels__title--mobile {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/*
 * The card's one link. It keeps the title's own look, and its ::after covers the whole card so the
 * picture, the title and the "Ətraflı" arrow all open the tunnel. The link stays position: static so
 * the card (position: relative) is the box the overlay fills; the title's and body's overflow: clip
 * do not clip it, because the card, not they, is its containing block.
 */
.aayda-tunels__link {
  color: inherit;
  text-decoration: none;
}

.aayda-tunels__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

/*
 * Keyboard focus — the site's ring, drawn round the whole card the link stands for. Inset by its own
 * width: the card clips its overflow, so a ring outside its edge would be cut off.
 */
.aayda-tunels__link:focus-visible {
  outline: none;
}

.aayda-tunels__link:focus-visible::after {
  border-radius: 16px;
  outline: var(--aayda-border-width-focus-ring) solid var(--aayda-colors-ring-focus);
  outline-offset: calc(var(--aayda-border-width-focus-ring) * -1);
}

.aayda-tunels__divider {
  display: block;
  flex-shrink: 0;
  height: 1px;
  max-width: 100%;
  object-fit: cover;
}

.aayda-tunels__divider--desktop {
  display: none;
}

.aayda-tunels__divider--mobile {
  width: 330px;
}

.aayda-tunels__row {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 18px;
  overflow: clip;
}

.aayda-tunels__meta {
  display: flex;
  align-items: center;
  gap: var(--aayda-numbers-spacing-4);
  overflow: clip;
  color: var(--aayda-colors-navy-700);
  font-size: var(--aayda-typography-size-16);
  letter-spacing: var(--aayda-typography-letter-spacing-16);
  line-height: var(--aayda-typography-line-height-16);
  white-space: nowrap;
}

.aayda-tunels__meta-value {
  font-family: var(--aayda-typography-font-primary);
  font-weight: var(--aayda-typography-weight-extra-bold);
}

.aayda-tunels__meta-combined {
  font-family: var(--aayda-typography-font-primary);
  font-weight: var(--aayda-typography-weight-medium);
}

.aayda-tunels__meta-label {
  font-family: var(--aayda-typography-font-primary);
  font-weight: var(--aayda-typography-weight-medium);
  white-space: pre;
}

.aayda-tunels__more {
  display: flex;
  flex-shrink: 0;
  align-items: flex-start;
  align-self: flex-start;
  box-sizing: border-box;
  gap: var(--aayda-numbers-spacing-8);
  /* ML-E D2: the design's 76px is the minimum; a longer label ("Read more") widens the link
     leftwards (the row is space-between) instead of running into the arrow. */
  width: auto;
  min-width: 76px;
  height: 28px;
  margin-top: -4px;
  overflow: visible;
  color: var(--aayda-colors-blue-400);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-12);
  font-weight: var(--aayda-typography-weight-semi-bold);
  line-height: 18px;
  letter-spacing: var(--aayda-typography-letter-spacing-12);
  text-decoration: none;
  white-space: nowrap;
}

.aayda-tunels__more-label {
  display: block;
  flex-shrink: 0;
  width: auto;
  min-width: 40px;
  height: 18px;
  margin-top: 5px;
  line-height: 18px;
}

.aayda-tunels__more img {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  max-width: none;
  position: relative;
  top: -2px;
}

.aayda-tunels__more-arrow--desktop {
  display: none;
}

.aayda-tunels__more-arrow--mobile {
  display: block;
}

.aayda-tunels__pagination--desktop {
  display: none;
}

.aayda-tunels__pagination--mobile {
  width: 100%;
  max-width: 354px;
  margin: 20px auto 0;
  padding: 0;
  box-sizing: border-box;
}

.aayda-tunels__docs {
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 370px;
  margin: 64px auto 0;
}

.aayda-tunels__docs-heading {
  display: flex;
  flex-direction: column;
  gap: var(--aayda-numbers-spacing-8);
  margin: 0 0 24px;
}

.aayda-tunels__docs-title {
  margin: 0;
  color: var(--aayda-colors-navy-900);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-20);
  font-weight: var(--aayda-typography-weight-semi-bold);
  line-height: var(--aayda-typography-line-height-20);
  letter-spacing: var(--aayda-typography-letter-spacing-20);
}

.aayda-tunels__docs-source {
  margin: 0;
  color: #666b73;
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-12);
  font-weight: var(--aayda-typography-weight-regular);
  line-height: var(--aayda-typography-line-height-12);
  letter-spacing: var(--aayda-typography-letter-spacing-12);
}

.aayda-tunels__report {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  padding: 12px 24px 12px 12px;
  background: var(--aayda-colors-neutral-surface-subtle);
  border: 0;
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px var(--aayda-colors-base-white);
}

.aayda-tunels__report-content {
  display: flex;
  align-items: flex-start;
  gap: var(--aayda-numbers-spacing-12);
  min-width: 0;
}

.aayda-tunels__file-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  /* The Document/Report card's red, as financial-reports.css prints it. The token the port used,
     --aayda-colors-red-500, is defined nowhere, so the label fell back to the inherited text colour. */
  color: #ea4335;
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-10);
  font-weight: var(--aayda-typography-weight-bold);
  line-height: var(--aayda-typography-line-height-10);
  letter-spacing: 0;
  background: rgba(234, 67, 53, 0.19);
  border: 1.5px solid #ea4335;
  border-radius: 6px;
}

.aayda-tunels__report-name {
  width: 176px;
  color: var(--aayda-colors-gray-800);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-12);
  font-weight: var(--aayda-typography-weight-semi-bold);
  line-height: 18px;
  letter-spacing: var(--aayda-typography-letter-spacing-12);
}

.aayda-tunels__report-name--desktop {
  display: none;
}

.aayda-tunels__report-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  width: 79px;
}

.aayda-tunels__report-action {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  text-decoration: none;
}

.aayda-tunels__report-action img {
  position: absolute;
  inset: 0;
  display: block;
  width: 24px;
  height: 24px;
}

.aayda-tunels__report-action-hover {
  opacity: 0;
}

/* The design defines no focus state for the document actions; the site's ring, at every width. */
.aayda-tunels__report-action:focus-visible {
  outline: var(--aayda-border-width-focus-ring) solid var(--aayda-colors-ring-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (min-width: 768px) and (max-width: 1415px) {
  .aayda-tunels__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: calc(100% - 32px);
    max-width: 100%;
    min-width: 0;
  }

  .aayda-tunels__card,
  .aayda-tunels__media,
  .aayda-tunels__body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .aayda-tunels__divider--mobile {
    width: 100%;
    max-width: 100%;
  }

  .aayda-tunels__docs {
    width: calc(100% - 32px);
    max-width: 100%;
  }

  .aayda-tunels__image--desktop,
  .aayda-tunels__code-text--desktop,
  .aayda-tunels__title--desktop,
  .aayda-tunels__meta-value--desktop,
  .aayda-tunels__meta-label--desktop,
  .aayda-tunels__divider--desktop,
  .aayda-tunels__more-arrow--desktop,
  .aayda-tunels__pagination--desktop,
  .aayda-tunels__report-name--desktop {
    display: none;
  }
}

@media (min-width: 1416px) {
  .aayda-tunels-page .aayda-top-block {
    min-height: 259px;
    padding: var(--aayda-numbers-spacing-32) 0 var(--aayda-numbers-spacing-32) var(--aayda-numbers-spacing-84);
  }

  .aayda-tunels-page .aayda-top-block__inner {
    gap: var(--aayda-numbers-spacing-8);
    width: 1356px;
    max-width: 1356px;
  }

  .aayda-tunels-page .aayda-top-block__heading {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--aayda-numbers-spacing-24);
    width: 1354px;
    max-width: 1354px;
  }

  .aayda-tunels-page .aayda-top-block__title {
    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-tunels-page .aayda-top-block__lede {
    flex: 0 0 490px;
    width: 490px;
    height: 159px;
    gap: 12px;
  }

  .aayda-tunels-page .aayda-top-block__description {
    width: 403px;
    font-size: var(--aayda-typography-size-14);
    line-height: 20px;
    letter-spacing: var(--aayda-typography-letter-spacing-14);
  }

  .aayda-tunels {
    padding: 92px 0 80px;
  }

  .aayda-tunels__inner {
    width: 1440px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .aayda-tunels__content {
    align-items: flex-start;
    width: 1272px;
    max-width: none;
    margin-left: 84px;
  }

  .aayda-tunels__grid {
    display: grid;
    grid-template-columns: 408px 408px 408px;
    column-gap: 24px;
    row-gap: 24px;
    width: 1272px;
    max-width: none;
    margin: 0;
  }

  .aayda-tunels__card {
    width: 408px;
    max-width: none;
    height: 340px;
    background: #fcfcfc;
    transition: background-color 300ms ease-out;
  }

  .aayda-tunels__card:hover {
    background: var(--aayda-colors-base-white);
  }

  .aayda-tunels__media {
    width: 100%;
  }

  .aayda-tunels__image--mobile {
    display: none;
  }

  .aayda-tunels__image--desktop {
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
      top 300ms ease-out,
      left 300ms ease-out,
      width 300ms ease-out,
      height 300ms ease-out;
  }

  .aayda-tunels__card:hover .aayda-tunels__image--desktop {
    top: -33.75%;
    left: -4.69%;
    width: 109.39%;
    height: 167.5%;
  }

  .aayda-tunels__body {
    flex: 0 0 auto;
    width: 408px;
  }

  .aayda-tunels__code {
    gap: 7px;
    padding: 5px 14px 5px 12px;
    background: #f0f2f5;
  }

  .aayda-tunels__code-text {
    line-height: var(--aayda-typography-line-height-12);
  }

  .aayda-tunels__code-text--mobile,
  .aayda-tunels__title--mobile,
  .aayda-tunels__meta-value--mobile,
  .aayda-tunels__meta-combined {
    display: none;
  }

  .aayda-tunels__code-text--desktop,
  .aayda-tunels__title--desktop,
  .aayda-tunels__meta-value--desktop {
    display: inline;
  }

  .aayda-tunels__meta-label--desktop {
    display: inline;
  }

  /* ML-E D5: clamped to the 56px box's two lines, like the mobile title. */
  .aayda-tunels__title--desktop {
    display: -webkit-box;
    width: 368px;
    overflow: hidden;
    font-weight: var(--aayda-typography-weight-semi-bold);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .aayda-tunels__divider--mobile {
    display: none;
  }

  .aayda-tunels__divider--desktop {
    display: block;
    width: 368px;
  }

  .aayda-tunels__row {
    width: 368px;
    height: 20px;
  }

  .aayda-tunels__meta {
    font-size: var(--aayda-typography-size-12);
    line-height: var(--aayda-typography-line-height-12);
    letter-spacing: var(--aayda-typography-letter-spacing-12);
  }

  .aayda-tunels__meta-value {
    font-weight: var(--aayda-typography-weight-bold);
  }

  /* ML-E D2: anchored by its right edge — the design's left: 297px plus its 76px in the 368px row —
     so the 76px link sits exactly where it did and a longer label grows leftwards. */
  .aayda-tunels__more {
    position: absolute;
    right: -5px;
    top: -4px;
    margin-top: 0;
  }

  .aayda-tunels__more-arrow--mobile {
    display: none;
  }

  .aayda-tunels__more-arrow--desktop {
    display: block;
  }

  .aayda-tunels__pagination--mobile {
    display: none;
  }

  .aayda-tunels__pagination--desktop {
    display: flex;
    align-self: center;
    width: 376px;
    margin: 40px auto 0;
  }

  .aayda-tunels__docs {
    width: 1272px;
    max-width: none;
    margin: 66px 0 0;
  }

  .aayda-tunels__report {
    height: 84px;
    padding: 24px;
    background: rgba(250, 250, 251, 0.96);
    transition: background-color 300ms ease-out;
  }

  .aayda-tunels__report:hover {
    background: #f9fafe;
  }

  .aayda-tunels__report-content {
    align-items: center;
    gap: var(--aayda-numbers-spacing-24);
  }

  .aayda-tunels__report-name--mobile {
    display: none;
  }

  .aayda-tunels__report-name--desktop {
    display: block;
    width: auto;
    font-size: var(--aayda-typography-size-16);
    line-height: var(--aayda-typography-line-height-16);
    letter-spacing: var(--aayda-typography-letter-spacing-16);
    white-space: nowrap;
  }

  .aayda-tunels__report-action-default,
  .aayda-tunels__report-action-hover {
    transition: opacity 300ms ease-out;
  }

  .aayda-tunels__report-action:hover .aayda-tunels__report-action-default,
  .aayda-tunels__report-action:focus-visible .aayda-tunels__report-action-default {
    opacity: 0;
  }

  .aayda-tunels__report-action:hover .aayda-tunels__report-action-hover,
  .aayda-tunels__report-action:focus-visible .aayda-tunels__report-action-hover {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aayda-tunels__card,
  .aayda-tunels__image--desktop,
  .aayda-tunels__report,
  .aayda-tunels__report-action-default,
  .aayda-tunels__report-action-hover {
    transition: none;
  }
}
