/* Texniki şərtlər — Desktop 4921:39301 / 4921:39313, Mobile 5458:15621 / 5459:16074 */

.aayda-technical-conditions-page .aayda-top-block__lede {
  height: auto;
  min-height: 86px;
}

/* Top: the shared 40px (financial-reports.css, bug-fix-5 BUG 4). */
.aayda-technical-conditions-page .aayda-financial-reports {
  padding-bottom: 102px;
}

.aayda-technical-conditions {
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin-top: 16px;
  padding: 0 16px;
}

.aayda-spec-block {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.aayda-spec-block__title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-sizing: border-box;
  margin: 0;
  padding: 20px 16px 8px;
  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-spec-block__num {
  flex-shrink: 0;
  color: var(--aayda-colors-blue-400);
}

.aayda-spec-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--aayda-colors-base-white);
  border: var(--aayda-border-width-card) solid var(--aayda-colors-base-white);
  border-radius: 10px;
}

.aayda-spec-table th,
.aayda-spec-table td {
  box-sizing: border-box;
  padding: 12px;
  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);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e8ecf2;
  border-right: 1px solid #e8ecf2;
  /* Cells are sized by the fixed table layout; a long unbroken value (a URL, an address) wraps
     inside its cell instead of being clipped by the table's rounded overflow. */
  overflow-wrap: anywhere;
}

.aayda-spec-table thead th {
  height: 48px;
  padding: 14px 12px;
  color: var(--aayda-colors-base-white);
  font-weight: var(--aayda-typography-weight-bold);
  background: #112757;
  border-bottom: 0;
  border-right-color: var(--aayda-colors-base-white);
  vertical-align: middle;
}

.aayda-spec-table thead th:last-child,
.aayda-spec-table th:last-child,
.aayda-spec-table td:last-child {
  border-right: 0;
}

.aayda-spec-table tbody th {
  width: 139px;
  color: var(--aayda-colors-navy-900);
  font-weight: var(--aayda-typography-weight-regular);
}

.aayda-spec-table tbody td {
  color: #364153;
}

.aayda-spec-table tbody tr:nth-child(odd) th,
.aayda-spec-table tbody tr:nth-child(odd) td {
  background: var(--aayda-colors-base-white);
}

.aayda-spec-table tbody tr:nth-child(even) th,
.aayda-spec-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.aayda-spec-table tbody tr:last-child th,
.aayda-spec-table tbody tr:last-child td {
  border-bottom: 0;
}

.aayda-spec-table--steps tbody th {
  width: 72px;
  text-align: center;
  vertical-align: middle;
}

.aayda-spec-table--steps tbody td {
  color: var(--aayda-colors-navy-900);
}

/*
 * bug-fix-5 BUG 5: with table-layout: fixed the columns take their widths from the first row — the
 * header — so the widths set on the body's row-name cells above never applied and both columns split the
 * table evenly. Each of these two tables now sizes its first column on its own header cell, and the second
 * column takes the rest; header and body share one set of column boundaries. Figma: steps "Mərhələ"
 * 72px at every width (4921:39475); contact "Parametr" 139px on mobile (5459:16074), 280px from 1416px
 * (4921:39301). Kept as two selectors so neither table's rule can reach the other.
 */
/* Figma's 52px "Mərhələ" runs into the 72px cell's right padding (4921:39476 ends at x 68 of 72); kept on
   one line rather than broken mid-word by the cells' wrap rule, which made the header two lines tall. */
.aayda-spec-table--steps thead th:first-child {
  width: 72px;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.aayda-spec-table--contact thead th:first-child {
  width: 139px;
}

.aayda-spec-link {
  color: var(--aayda-colors-blue-400);
  font-weight: inherit;
  text-decoration: none;
}

.aayda-spec-link--email {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* The site's focus ring (as on the documents shell's links), not the browser's default. */
a.aayda-spec-link:focus-visible {
  outline: var(--aayda-border-width-focus-ring) solid var(--aayda-colors-ring-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

/* The page's description is the editor's LeadHtml: markup inside the description block keeps the
   block's own type and spacing. */
.aayda-top-block__description--html p {
  margin: 0;
}

/*
  The retry's loading state (js/pages/technical-conditions.js): two blocks of placeholders in the
  real blocks' own box — the block's heading padding, then a table card with the 48px header and
  45px rows — so the reloaded page lands where the placeholder stood. A slow pulse marks it as
  loading, as the news listing's skeleton does, and stands down under reduced motion.
*/
.aayda-spec-skeleton__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.aayda-spec-skeleton {
  display: block;
  height: 12px;
  background: #e8ecf2;
  border-radius: 6px;
  animation: aayda-spec-skeleton-pulse 1.4s ease-in-out infinite;
}

/* 18px bar in the heading's own height: 56px below 1416px, 50px from 1416px up. */
.aayda-spec-skeleton--title {
  width: min(320px, 70%);
  height: 18px;
  margin: 24px 16px 14px;
  border-radius: 9px;
}

@media (min-width: 1416px) {
  .aayda-spec-skeleton--title {
    margin: 20px 16px 12px;
  }
}

.aayda-spec-skeleton__table {
  display: block;
  overflow: hidden;
  background: var(--aayda-colors-base-white);
  border-radius: 10px;
}

.aayda-spec-skeleton__head {
  display: block;
  height: 48px;
  background: #112757;
}

.aayda-spec-skeleton__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  box-sizing: border-box;
  height: 45px;
  padding: 0 12px;
  border-bottom: 1px solid #e8ecf2;
}

.aayda-spec-skeleton__row:nth-child(odd) {
  background: #f8fafc;
}

.aayda-spec-skeleton__row:last-child {
  border-bottom: 0;
}

.aayda-spec-skeleton__row .aayda-spec-skeleton:first-child {
  width: 60%;
}

@keyframes aayda-spec-skeleton-pulse {
  50% {
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aayda-spec-skeleton {
    animation: none;
  }
}

.aayda-spec-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 4px 0;
}

.aayda-spec-notes__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  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-regular);
  line-height: var(--aayda-typography-line-height-12);
  letter-spacing: var(--aayda-typography-letter-spacing-12);
}

.aayda-spec-notes__dash {
  flex-shrink: 0;
  width: 7px;
  color: #6b7a99;
}

@media (max-width: 1415px) {
  .aayda-technical-conditions-page .aayda-financial-reports__download-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 370px;
    max-width: calc(100% - 32px);
    height: 92px;
    margin: 24px auto 0;
    padding: 18px 16px;
    background: #fdfdfd;
    border-radius: var(--aayda-radius-input);
    box-shadow: inset 0 0 0 var(--aayda-border-width-card) var(--aayda-colors-base-white);
  }

  .aayda-technical-conditions-page .aayda-financial-reports__download-all--mobile {
    width: 325px;
    height: 56px;
    margin: 0;
    padding: 8px 12px;
    color: var(--aayda-colors-accordion-title-active);
    background: transparent;
    border: 1px solid #abb5c6;
    border-radius: 6px;
  }
}

@media (min-width: 768px) and (max-width: 1415px) {
  .aayda-technical-conditions-page .aayda-financial-reports__download-mobile,
  .aayda-technical-conditions-page .aayda-financial-reports__download-all--mobile {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

@media (min-width: 1416px) {
  .aayda-technical-conditions-page .aayda-top-block__lede {
    height: 159px;
    min-height: 159px;
  }

  .aayda-technical-conditions-page .aayda-financial-reports {
    padding-bottom: 136px;
  }

  .aayda-technical-conditions {
    gap: 40px;
    width: 948px;
    margin-top: 0;
    padding: 0;
  }

  .aayda-spec-block__title {
    align-items: center;
    margin-bottom: 22px;
    padding: 0;
    font-size: var(--aayda-typography-size-20);
    line-height: var(--aayda-typography-line-height-20);
    letter-spacing: var(--aayda-typography-letter-spacing-20);
  }

  .aayda-spec-block:first-child .aayda-spec-block__title {
    margin-bottom: 24px;
  }

  .aayda-spec-block:nth-child(3) .aayda-spec-block__title {
    margin-bottom: 20px;
  }

  .aayda-spec-table th,
  .aayda-spec-table td {
    padding: 12px 16px;
    font-weight: var(--aayda-typography-weight-medium);
    vertical-align: middle;
  }

  .aayda-spec-table thead th {
    padding: 14px 16px;
  }

  .aayda-spec-table tbody th {
    width: 280px;
    font-weight: var(--aayda-typography-weight-medium);
  }

  .aayda-spec-table--steps tbody th {
    width: 72px;
  }

  .aayda-spec-table tbody td {
    color: #364153;
  }

  .aayda-spec-table--steps tbody td {
    color: var(--aayda-colors-navy-900);
  }

  /* bug-fix-5 BUG 5: the steps table keeps its 72px (base rule); the contact table's is 280px here. */
  .aayda-spec-table--contact thead th:first-child {
    width: 280px;
  }

  .aayda-spec-notes {
    gap: 6px;
    margin: 24px 0 0;
  }

  .aayda-spec-notes__item {
    gap: 9px;
    font-weight: var(--aayda-typography-weight-medium);
  }
}
