/* Böyük qayıdış — Desktop 10707:74594 / Mobile 5581:19182 */

.aayda-great-return-page {
  background-color: var(--aayda-colors-surface-disabled);
}

.aayda-great-return-page .aayda-main {
  display: flex;
  flex-direction: column;
  gap: var(--aayda-numbers-spacing-32);
  padding-top: var(--aayda-numbers-spacing-32);
  padding-bottom: var(--aayda-numbers-spacing-32);
}

.aayda-great-return-page .aayda-top-block {
  position: relative;
  min-height: 333px;
  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-great-return-page .aayda-top-block__inner {
  justify-content: flex-start;
  gap: 96px;
  width: 100%;
}

.aayda-great-return-page .aayda-top-block__heading {
  gap: var(--aayda-numbers-spacing-12);
}

.aayda-great-return__title-desktop {
  display: none;
}

.aayda-great-return__title-mobile {
  display: inline;
}

.aayda-great-return-page .aayda-top-block__lede {
  display: flex;
  gap: var(--aayda-numbers-spacing-12);
  width: 100%;
  height: 86px;
}

.aayda-great-return-page .aayda-top-block__description {
  width: min(100%, 292px);
}

.aayda-great-return {
  box-sizing: border-box;
  width: 100%;
  padding: 0;
}

.aayda-great-return__frame {
  display: flex;
  flex-direction: column;
  gap: var(--aayda-numbers-spacing-32);
  width: 100%;
}

.aayda-great-return__inner {
  display: flex;
  flex-direction: column;
  gap: var(--aayda-numbers-spacing-32);
  width: 370px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  min-width: 0;
}

.aayda-great-return__intro {
  display: flex;
  flex-direction: column;
  gap: var(--aayda-numbers-spacing-24);
  align-items: center;
  width: 370px;
  /* ML-E D7: never wider than the inner column, which is 100% - 32px on a 360px phone. */
  max-width: 100%;
}

.aayda-great-return__section-title {
  margin: 0;
  width: 100%;
  color: var(--aayda-colors-navy-900);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-24);
  font-weight: var(--aayda-typography-weight-semi-bold);
  line-height: var(--aayda-typography-line-height-heading-24);
  letter-spacing: var(--aayda-typography-letter-spacing-24);
}

.aayda-great-return__tabs-wrap {
  width: 366px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.aayda-great-return__tabs-wrap::-webkit-scrollbar {
  display: none;
}

.aayda-great-return__tabs {
  display: flex;
  align-items: center;
  gap: var(--aayda-numbers-spacing-8);
  width: max-content;
  margin: 0;
  padding: 0;
}

.aayda-great-return__tab {
  display: flex;
  flex-grow: 0;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  color: var(--aayda-colors-text);
  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);
  letter-spacing: var(--aayda-typography-letter-spacing-16);
  white-space: nowrap;
  cursor: pointer;
  background: var(--aayda-colors-base-white);
  border: 2px solid var(--aayda-colors-base-white);
  border-radius: 100px;
  box-shadow: none;
  transform: none;
}

/* Each tab is as wide as its label, never narrower than the design's width. Keyed by the tab's stable key
   (ProjectListingTabs), never its label, which an editor can change. Below 1416px the strip scrolls sideways. */
.aayda-great-return__tab[data-project-tab="all"],
.aayda-great-return__tab[data-project-tab="current"],
.aayda-great-return__tab[data-project-tab="completed"],
.aayda-great-return__tab[data-project-tab="planned"] {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  padding: 0 var(--aayda-numbers-spacing-24);
}

.aayda-great-return__tab[data-project-tab="all"] {
  min-width: 184px;
}

.aayda-great-return__tab[data-project-tab="current"],
.aayda-great-return__tab[data-project-tab="completed"],
.aayda-great-return__tab[data-project-tab="planned"] {
  min-width: 151px;
}

.aayda-great-return__tab[aria-selected="true"] {
  color: var(--aayda-colors-navy-700);
  background: var(--aayda-colors-news-tab-active-fill);
  border-color: var(--aayda-colors-blue-400);
  box-shadow: inset 0 0 0 1px var(--aayda-colors-news-tab-active-fill);
}

.aayda-great-return__panel {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--aayda-numbers-spacing-24);
  width: 370px;
  /* ML-E D7: like the intro, never wider than the inner column on a 360px phone. */
  max-width: 100%;
  padding: var(--aayda-numbers-spacing-20) var(--aayda-numbers-spacing-16) 28px;
  overflow: hidden;
  background: #eceef1;
  border-radius: 12px;
}

.aayda-great-return__group-title {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--aayda-colors-navy-900);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-18);
  font-weight: var(--aayda-typography-weight-semi-bold);
  line-height: var(--aayda-typography-line-height-18);
  letter-spacing: var(--aayda-typography-letter-spacing-18);
}

.aayda-great-return__blocks {
  display: flex;
  flex-direction: column;
  gap: var(--aayda-numbers-spacing-24);
  box-sizing: border-box;
  width: 100%;
  padding: 0;
}

.aayda-great-return__list {
  display: flex;
  flex-direction: column;
  gap: var(--aayda-numbers-spacing-16);
  width: 329px;
  /* ML-E D7: the list and its cards follow the panel down on a 360px phone. */
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.aayda-great-return__list--desktop {
  display: none;
}

.aayda-great-return__card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: var(--aayda-numbers-spacing-8);
  width: 329px;
  max-width: 100%;
  height: 146px;
  padding: var(--aayda-numbers-spacing-16);
  background: #e4e8ed;
  border: 2px solid var(--aayda-colors-base-white);
  border-radius: 16px;
}

/* A card whose project has a destination (Project.DetailUrl) is the link itself. Only these cards get the
   hover and focus states below; a plain card is the design's unfocusable <article>. Positioned so the
   visually hidden note stays inside the card. */
.aayda-great-return__card--link {
  position: relative;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.aayda-great-return__card--link:focus-visible {
  outline: var(--aayda-border-width-focus-ring) solid var(--aayda-colors-ring-focus);
  outline-offset: 2px;
}

/* "Opens in a new window", read out on an external card and never shown (the useful links' pattern). */
.aayda-great-return__card-external-note {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.aayda-great-return__card-body {
  display: contents;
}

.aayda-great-return__card-copy {
  display: contents;
}

.aayda-great-return__card-top {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--aayda-numbers-spacing-8);
  width: 100%;
}

.aayda-great-return__tag {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--aayda-numbers-spacing-6);
  box-sizing: border-box;
  height: 26px;
  margin: 0;
  padding: var(--aayda-numbers-spacing-4) var(--aayda-numbers-spacing-10);
  overflow: hidden;
  color: #6a7689;
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-10);
  font-weight: var(--aayda-typography-weight-medium);
  line-height: var(--aayda-typography-line-height-10);
  letter-spacing: var(--aayda-typography-letter-spacing-10);
  white-space: nowrap;
  background: #fafbfb;
  border: 1px solid var(--aayda-colors-base-white);
  border-radius: 99px;
}

.aayda-great-return__tag-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: #00bf8c;
  border-radius: 99px;
}

.aayda-great-return__card-arrow {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-left: auto;
}

.aayda-great-return__card-arrow img {
  display: block;
  width: 16px;
  height: 16px;
  max-width: none;
}

.aayda-great-return__card-arrow .aayda-great-return__card-arrow-desktop {
  display: none;
}

.aayda-great-return__card-title {
  margin: 0;
  color: var(--aayda-colors-navy-900);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-16);
  font-weight: var(--aayda-typography-weight-semi-bold);
  line-height: var(--aayda-typography-line-height-16);
  letter-spacing: var(--aayda-typography-letter-spacing-16);
}

/*
 * ML-E Phase E: below 1416px the card is a fixed 146px, which leaves 110px inside its padding and
 * border — the 26px tag, two 8px gaps, the title and the two-line description. A long title ends in
 * an ellipsis instead of running out of the card: one 26px line beside a description (26 + 8 + 26 +
 * 8 + 40 = 108px), two without one (26 + 8 + 52 = 86px). The full title stays in the heading's title
 * attribute.
 *
 * ML-E Phase F: the description holds to those two 20px lines too, so a long one ends in an ellipsis
 * instead of running out of the bottom of the card; the full text stays in its title attribute.
 */
@media (max-width: 1415px) {
  .aayda-great-return__card-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .aayda-great-return__card:has(.aayda-great-return__card-text) .aayda-great-return__card-title {
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }

  .aayda-great-return__card-text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

.aayda-great-return__card-rule {
  display: none;
}

.aayda-great-return__card-text {
  margin: 0;
  color: var(--aayda-colors-neutral-text-secondary);
  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-great-return__pagination {
  width: 100%;
}

.aayda-great-return__pagination[hidden] {
  display: none;
}

.aayda-great-return__pagination .aayda-pagination__list {
  justify-content: center;
  gap: var(--aayda-numbers-spacing-12);
  width: 100%;
  max-width: none;
}

@media (min-width: 768px) and (max-width: 1415px) {
  .aayda-great-return__inner,
  .aayda-great-return__intro,
  .aayda-great-return__tabs-wrap,
  .aayda-great-return__panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .aayda-great-return__inner {
    width: calc(100% - 32px);
  }

  .aayda-great-return__list {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
  }

  .aayda-great-return__list--mobile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--aayda-numbers-spacing-16);
  }

  .aayda-great-return__card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

@media (min-width: 1416px) {
  .aayda-great-return-page .aayda-main {
    display: block;
    padding-top: 0;
    padding-bottom: 0;
  }

  .aayda-great-return-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-great-return-page .aayda-top-block__inner {
    gap: var(--aayda-numbers-spacing-8);
    max-width: 1356px;
  }

  .aayda-great-return-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-great-return__title-desktop {
    display: inline;
  }

  .aayda-great-return__title-mobile {
    display: none;
  }

  .aayda-great-return-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-great-return-page .aayda-top-block__lede {
    flex: 0 0 490px;
    width: 490px;
    height: 159px;
    gap: var(--aayda-numbers-spacing-12);
  }

  .aayda-great-return-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-great-return {
    padding: 80px 0 100px;
  }

  .aayda-great-return__frame {
    box-sizing: border-box;
    width: 1440px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 52px 0 84px;
    gap: var(--aayda-numbers-spacing-40);
    align-items: stretch;
  }

  .aayda-great-return__inner {
    width: 1304px;
    max-width: none;
    margin: 0;
    padding: 0;
    gap: 38px;
  }

  .aayda-great-return__intro {
    align-items: flex-start;
    width: 1304px;
    gap: 0;
  }

  .aayda-great-return__section-title {
    display: none;
  }

  /* The design's 727px when the tabs have their default words: the strip is as wide as its tabs, never wider than its
     column, and a longer label wraps the last tabs onto a second row instead of running past the frame. */
  .aayda-great-return__tabs-wrap {
    width: max-content;
    max-width: 100%;
    overflow: visible;
  }

  .aayda-great-return__tabs {
    flex-wrap: wrap;
    width: auto;
    max-width: 100%;
  }

  .aayda-great-return__tab {
    background: rgb(255 255 255 / 56%);
    transition:
      background-color 300ms ease-out,
      border-color 300ms ease-out,
      box-shadow 300ms ease-out,
      color 300ms ease-out;
  }

  /* The design's desktop widths, as minimums; a longer label widens its tab, and the strip wraps (below). */
  .aayda-great-return__tab[data-project-tab="all"],
  .aayda-great-return__tab[data-project-tab="current"],
  .aayda-great-return__tab[data-project-tab="completed"],
  .aayda-great-return__tab[data-project-tab="planned"] {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding: 0 var(--aayda-numbers-spacing-24);
  }

  .aayda-great-return__tab[data-project-tab="all"] {
    min-width: 184px;
  }

  .aayda-great-return__tab[data-project-tab="current"],
  .aayda-great-return__tab[data-project-tab="completed"],
  .aayda-great-return__tab[data-project-tab="planned"] {
    min-width: 173px;
  }

  .aayda-great-return__tab[aria-selected="true"] {
    background: var(--aayda-colors-news-tab-active-fill);
    border-color: var(--aayda-colors-news-tab-active-border);
    box-shadow: inset 0 0 0 1px var(--aayda-colors-news-tab-active-fill);
  }

  .aayda-great-return__tab[aria-selected="false"]:hover,
  .aayda-great-return__tab[aria-selected="false"]:focus-visible {
    color: var(--aayda-colors-news-tab-hover-text);
    background: var(--aayda-colors-base-white);
    border-color: rgb(51 99 255 / 66%);
    box-shadow: inset 0 0 0 1px var(--aayda-colors-base-white);
  }

  .aayda-great-return__panel {
    width: 1304px;
    padding: var(--aayda-numbers-spacing-40) var(--aayda-numbers-spacing-32);
    overflow: visible;
    background: #eceef1;
    border-radius: 16px;
  }

  .aayda-great-return__group-title {
    display: none;
  }

  .aayda-great-return__blocks {
    gap: var(--aayda-numbers-spacing-24);
    width: 1240px;
    padding: 0;
  }

  .aayda-great-return__list--mobile {
    display: none;
  }

  .aayda-great-return__list--desktop {
    display: grid;
    grid-template-columns: repeat(3, 397.33px);
    /* Bug-fix 4, correction 33: one 230px row per three cards, not always three rows. The fixed
       repeat(3, 230px) and 738px kept a block full-height whatever it held, so the panel's background
       ran on below one or two rows of cards; it now hugs them. A full block is still 738px. */
    grid-auto-rows: 230px;
    gap: var(--aayda-numbers-spacing-24);
    width: 1240px;
    margin: 0;
  }

  .aayda-great-return__card {
    gap: var(--aayda-numbers-spacing-12);
    width: 397.33px;
    height: 230px;
    padding: var(--aayda-numbers-spacing-24) var(--aayda-numbers-spacing-28) var(--aayda-numbers-spacing-28);
    background: #e4e8ed;
    border: 2px solid rgb(255 255 255 / 61%);
    border-radius: 24px;
    transition:
      background-color 300ms linear,
      border-color 300ms linear;
  }

  .aayda-great-return__card-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
  }

  .aayda-great-return__card-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }

  .aayda-great-return__card-top {
    justify-content: space-between;
    height: 32px;
  }

  .aayda-great-return__tag {
    gap: var(--aayda-numbers-spacing-8);
    height: 32px;
    padding: 0 var(--aayda-numbers-spacing-20) 0 var(--aayda-numbers-spacing-16);
    color: #6a7689;
    font-size: var(--aayda-typography-size-14);
    font-weight: var(--aayda-typography-weight-semi-bold);
    line-height: var(--aayda-typography-line-height-14);
    letter-spacing: var(--aayda-typography-letter-spacing-14);
    background: #f4f5f7;
    border-width: 2px;
    border-radius: 20px;
  }

  .aayda-great-return__tag-dot {
    width: 7px;
    height: 7px;
    background: var(--aayda-colors-accent);
  }

  .aayda-great-return__card-arrow {
    width: 24px;
    height: 24px;
    margin-left: 0;
  }

  .aayda-great-return__card-arrow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
  }

  .aayda-great-return__card-arrow .aayda-great-return__card-arrow-mobile {
    display: none;
  }

  .aayda-great-return__card-arrow .aayda-great-return__card-arrow-desktop {
    display: block;
    transform: rotate(0deg);
    transform-origin: 12px 12px;
    transition: transform 300ms linear;
  }

  /*
   * ML-E Phase F: the 230px card leaves 174px inside its border and padding; the tag, gaps and rule
   * take 78px, and the design's two-line title and two-line description (26px lines) bring the stack
   * to 182px — the 8px the design already lets into the bottom padding. A longer title or description
   * ends in an ellipsis at those two lines instead of running out of the card. With no description the
   * title may take its place: four lines, the same 182px. The full texts stay in title attributes.
   */
  .aayda-great-return__card-title {
    display: -webkit-box;
    width: 100%;
    min-height: 52px;
    overflow: hidden;
    color: #0a1c42;
    font-size: var(--aayda-typography-size-20);
    line-height: var(--aayda-typography-line-height-20);
    letter-spacing: var(--aayda-typography-letter-spacing-20);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .aayda-great-return__card:not(:has(.aayda-great-return__card-text)) .aayda-great-return__card-title {
    -webkit-line-clamp: 4;
    line-clamp: 4;
  }

  .aayda-great-return__card-rule {
    display: block;
    flex-shrink: 0;
    position: relative;
    width: 100%;
    height: 0;
  }

  .aayda-great-return__card-rule::before {
    position: absolute;
    top: -1px;
    right: 0;
    left: 0;
    height: 1px;
    background: url("../../assets/icons/republic-projects-card-rule.svg") center / 100% 1px no-repeat;
    content: "";
  }

  .aayda-great-return__card-text {
    display: -webkit-box;
    width: 100%;
    min-height: 52px;
    overflow: hidden;
    color: var(--aayda-colors-navy-700);
    font-size: var(--aayda-typography-size-16);
    font-weight: var(--aayda-typography-weight-semi-bold);
    line-height: var(--aayda-typography-line-height-16);
    letter-spacing: var(--aayda-typography-letter-spacing-16);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .aayda-great-return__card--link:hover,
  .aayda-great-return__card--link:focus-visible {
    background: var(--aayda-colors-neutral-surface-subtle);
    border-color: var(--aayda-colors-base-white);
  }

  .aayda-great-return__card--link:hover .aayda-great-return__card-arrow-desktop,
  .aayda-great-return__card--link:focus-visible .aayda-great-return__card-arrow-desktop {
    transform: rotate(45deg);
  }

  .aayda-great-return__pagination {
    justify-content: center;
    width: 376px;
    max-width: none;
    margin: 0 auto;
  }

  .aayda-great-return__pagination .aayda-pagination__list {
    gap: var(--aayda-numbers-spacing-16);
  }
}
