/* Rəhbərlik detail — Desktop 9239:36936, Mobile 9253:37628 */

.aayda-leadership-detail-page {
  background-color: var(--aayda-colors-surface-disabled);
}

/* -------------------------------------------------------------------------- */
/* Breadcrumbs — 4-level, no Top Block                                        */
/* -------------------------------------------------------------------------- */

.aayda-leadership-detail {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  min-width: 0;
  padding: 28px 16px 76px;
}

/* -------------------------------------------------------------------------- */
/* Profile card — mobile first                                                */
/* -------------------------------------------------------------------------- */

.aayda-leadership-detail__card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  width: 100%;
  min-width: 0;
  padding: var(--aayda-numbers-spacing-16);
  background: var(--aayda-colors-base-white);
  box-shadow: inset 0 0 0 var(--aayda-border-width-card) var(--aayda-colors-base-white);
  border-radius: var(--aayda-radius-image);
}

.aayda-leadership-detail__photo {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 100%;
  height: 313px;
  overflow: hidden;
  border-radius: var(--aayda-radius-button);
}

.aayda-leadership-detail__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.aayda-leadership-detail__content {
  display: flex;
  flex-direction: column;
  gap: var(--aayda-numbers-spacing-20);
  width: 100%;
  min-width: 0;
}

.aayda-leadership-detail__header {
  display: contents;
}

.aayda-leadership-detail__identity {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  min-width: 0;
  order: 1;
}

.aayda-leadership-detail__name {
  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-extra-bold);
  line-height: var(--aayda-typography-line-height-heading-24);
  letter-spacing: var(--aayda-typography-letter-spacing-24);
}

.aayda-leadership-detail__role {
  margin: 0;
  color: var(--aayda-colors-navy-700);
  font-family: var(--aayda-typography-font-primary);
  font-size: var(--aayda-typography-size-16);
  font-weight: var(--aayda-typography-weight-bold);
  line-height: var(--aayda-typography-line-height-16);
  letter-spacing: var(--aayda-typography-letter-spacing-16);
}

.aayda-leadership-detail__bio {
  margin: 0;
  width: 100%;
  min-width: 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-regular);
  line-height: var(--aayda-typography-line-height-16);
  letter-spacing: var(--aayda-typography-letter-spacing-16);
  order: 2;
}

.aayda-leadership-detail__bio p {
  margin: 0;
  white-space: pre-wrap;
}

/* Figma (9239:36936 › 9282:40427, 12055:37478, 13259:40265, 13261:44956; mobile 9253:37628) writes the
   bio as one paragraph per line with no paragraph spacing (mb-0) at the 26px line height, and parts its
   groups with one empty 26px line — an empty paragraph. The admin's rich text editor stores exactly that:
   one <p> per line, an empty <p> (<p><br></p>) for an empty line. So the <p>s sit flush, and an empty one
   keeps its one line (2026-11-28: a 26px margin between every pair of <p>s spread every line of an
   editor-written bio 26px apart, and an empty line to 78px). */
.aayda-leadership-detail__bio p:empty {
  min-height: var(--aayda-typography-line-height-16);
}

/* A plain-text bio (no markup): its paragraphs are its blank-line blocks (StoredHtmlParagraphs), and
   the blank line between two of them is the one empty 26px line Figma draws ("\n\n"). */
.aayda-leadership-detail__bio[data-bio-format="text"] p + p {
  margin-top: var(--aayda-typography-line-height-16);
}

.aayda-leadership-detail__social {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  order: 3;
}

.aayda-leadership-detail__social-link {
  box-sizing: border-box;
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 43px;
  height: 43px;
  background: #e8ecf2;
  border-radius: var(--aayda-radius-button);
  text-decoration: none;
}

.aayda-leadership-detail__social-link:focus-visible {
  outline: var(--aayda-border-width-focus-ring) solid var(--aayda-colors-ring-focus);
  outline-offset: 2px;
}

.aayda-leadership-detail__social-icon {
  position: absolute;
  display: block;
}

.aayda-leadership-detail__social-icon--wikipedia,
.aayda-leadership-detail__social-icon--linkedin {
  top: 11px;
  left: 12px;
  width: 20px;
  height: 20px;
}

.aayda-leadership-detail__social-icon--instagram {
  top: 7px;
  left: 6px;
  width: 30px;
  height: 30px;
}

.aayda-leadership-detail__social-icon--facebook {
  top: 6px;
  left: 5px;
  width: 32px;
  height: 32px;
}

.aayda-leadership-detail__social-icon--hover {
  display: none;
}

/* -------------------------------------------------------------------------- */
/* Useful links                                                               */
/* -------------------------------------------------------------------------- */

.aayda-leadership-detail-page .aayda-useful-links {
  max-width: none;
  width: 100%;
  height: 188px;
  margin-top: 0;
  background: #eceff0;
}

.aayda-leadership-detail-page .aayda-useful-links__viewport {
  padding: var(--aayda-numbers-spacing-36) var(--aayda-numbers-spacing-16);
}

/* -------------------------------------------------------------------------- */
/* Desktop 1440                                                               */
/* -------------------------------------------------------------------------- */

@media (min-width: 1416px) {
  .aayda-leadership-detail {
    gap: 44px;
    width: var(--aayda-container-content);
    max-width: none;
    margin: 0;
    margin-left: max(84px, calc((100% - 1440px) / 2 + 84px));
    padding: 40px 0 74px;
  }

  .aayda-leadership-detail__card {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--aayda-numbers-spacing-32);
    width: var(--aayda-container-content);
    /* No fixed 969px floor: in every Figma frame the visible card (the inner "Leadership" frame, fill
       #f9f9fa, 2px white stroke) hugs its content: 969 for 9239:36936's longest bio, 787, 917 and 813
       for 12055:37478, 13259:40265 and 13261:44956. */
    /* Figma's auto-layout pads the right by 40, but its 702px text column overruns that and ends 28px
       from the edge (542 + 702 = 1244 of 1272): the visible padding is 28 on the top and the right. */
    padding: 28px 28px 28px 28px;
    background: #f9f9fa;
  }

  .aayda-leadership-detail__photo {
    width: 482px;
    height: 475px;
  }

  /* Figma's Photo (9278:40302 → 9278:40299): on hover the picture comes forward — its crop narrows to
     0.964 × 0.941 of the image, centred, a 1.037× zoom about the frame's centre — SMART_ANIMATE 0.3s
     EASE_OUT. The frame keeps its size and clips it, so nothing around the photo moves. */
  .aayda-leadership-detail__photo img {
    transition: transform 300ms ease-out;
  }

  .aayda-leadership-detail__photo:hover img {
    transform: scale(1.037);
  }

  .aayda-leadership-detail__content {
    flex: 1;
    gap: 32px;
    width: 702px;
    min-width: 0;
  }

  .aayda-leadership-detail__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
  }

  .aayda-leadership-detail__identity {
    gap: 12px;
    width: auto;
    white-space: nowrap;
    order: 0;
  }

  .aayda-leadership-detail__name {
    width: auto;
    font-size: var(--aayda-typography-size-36);
    line-height: 36.4px;
    letter-spacing: var(--aayda-typography-letter-spacing-28);
  }

  .aayda-leadership-detail__role {
    font-size: var(--aayda-typography-size-24);
    line-height: var(--aayda-typography-line-height-20);
    letter-spacing: var(--aayda-typography-letter-spacing-20);
  }

  .aayda-leadership-detail__bio {
    width: 703px;
  }

  .aayda-leadership-detail__social {
    flex-shrink: 0;
    order: 0;
  }

  /* Figma .Source Legacy: ON_HOVER CHANGE_TO SMART_ANIMATE 300ms EASE_OUT.
     All four icons share the same hover: bg #133888, glyph #fafafb.
     Size and position are unchanged. Mobile frames do not define this hover. */
  .aayda-leadership-detail__social-link {
    transition: background-color 300ms ease-out;
  }

  .aayda-leadership-detail__social-icon {
    transition: opacity 300ms ease-out;
  }

  .aayda-leadership-detail__social-icon--hover {
    display: block;
    opacity: 0;
  }

  .aayda-leadership-detail__social-link:hover,
  .aayda-leadership-detail__social-link:focus-visible {
    background-color: #133888;
  }

  .aayda-leadership-detail__social-link:hover .aayda-leadership-detail__social-icon--default,
  .aayda-leadership-detail__social-link:focus-visible .aayda-leadership-detail__social-icon--default {
    opacity: 0;
  }

  .aayda-leadership-detail__social-link:hover .aayda-leadership-detail__social-icon--hover,
  .aayda-leadership-detail__social-link:focus-visible .aayda-leadership-detail__social-icon--hover {
    opacity: 1;
  }

  .aayda-leadership-detail-page .aayda-useful-links {
    height: 251px;
    border-radius: var(--aayda-radius-footer) var(--aayda-radius-footer) 0 0;
    background: #eceff0;
  }

  .aayda-leadership-detail-page .aayda-useful-links__viewport {
    box-sizing: border-box;
    width: 1440px;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding: 58px var(--aayda-numbers-spacing-84);
  }

  .aayda-leadership-detail-page .aayda-useful-links__item,
  .aayda-leadership-detail-page .aayda-useful-links__card {
    flex-basis: 299px;
    width: 299px;
  }
}

/* The photo's hover zoom applies at once for a reader who has asked for less motion. */
@media (prefers-reduced-motion: reduce) {
  .aayda-leadership-detail__photo img {
    transition: none;
  }
}
