/* Yolların təsnifatı — Desktop 4921:40176, Mobile 5578:16967 */

.aayda-road-class-page {
  background-color: var(--aayda-colors-surface-disabled);
}

.aayda-road-class-page .aayda-top-block {
  position: relative;
  min-height: 333px;
  padding: var(--aayda-numbers-spacing-32);
}

.aayda-road-class-page .aayda-top-block__inner {
  gap: 96px;
  width: 100%;
}

.aayda-road-class-page .aayda-top-block__heading {
  gap: var(--aayda-numbers-spacing-12);
}

.aayda-road-class-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-road-class-page .aayda-top-block__lede {
  display: flex;
  gap: var(--aayda-numbers-spacing-12);
  height: auto;
}

.aayda-road-class-page .aayda-top-block__description {
  width: min(100%, 292px);
  line-height: 18px;
}

.aayda-road-class {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  /* Mobile Body 5578:16981: 16px above the first table, 28px below the last one before the footer
     (Body 910px tall, last block ending at 882px). The desktop query sets its own padding. */
  padding: 16px 16px 28px;
}

.aayda-road-class__card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  min-width: 0;
}

.aayda-road-class__block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.aayda-road-class__heading {
  margin: 0;
  color: var(--aayda-colors-navy-900);
  font-family: var(--aayda-typography-font-primary);
  font-weight: var(--aayda-typography-weight-semi-bold);
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.36px;
}

.aayda-road-class__heading--type {
  color: var(--aayda-colors-navy-900);
}

.aayda-road-class__scroll {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.aayda-road-class__scroll:focus-visible {
  outline: var(--aayda-border-width-focus-ring) solid var(--aayda-colors-ring-focus);
  outline-offset: 2px;
}

.aayda-road-class__table {
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--aayda-colors-base-white);
}

.aayda-road-class__table--desktop {
  display: none;
}

.aayda-road-class__table--mobile {
  width: calc(208px + var(--aayda-road-class-columns, 12) * 64px);
}

.aayda-road-class__table th,
.aayda-road-class__table td {
  box-sizing: border-box;
  border: 1px solid #e2e7ec;
  color: #112757;
  font-family: var(--aayda-typography-font-primary);
  font-size: 10px;
  font-weight: var(--aayda-typography-weight-semi-bold);
  line-height: 18px;
  letter-spacing: -0.2px;
  text-align: center;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.aayda-road-class__table--mobile thead th,
.aayda-road-class__table--mobile thead td {
  background: #f2f6f9;
  height: 56px;
  padding: 6px;
}

.aayda-road-class__table--mobile thead .aayda-road-class__subhead th,
.aayda-road-class__table--mobile thead .aayda-road-class__subhead td {
  height: 38px;
  padding: 6px;
}

/* Row labels are row headers; they read as body text, as the design draws them. */
.aayda-road-class__table--mobile tbody td,
.aayda-road-class__table--mobile tbody th {
  height: 38px;
  padding: 6px;
  background: var(--aayda-colors-base-white);
  font-weight: var(--aayda-typography-weight-regular);
  line-height: 18px;
}

.aayda-road-class__table--mobile .aayda-road-class__name,
.aayda-road-class__table--mobile .aayda-road-class__span {
  text-align: left;
}

.aayda-road-class__table--mobile .aayda-road-class__span {
  padding-left: 12px;
}

.aayda-road-class__table--mobile col.aayda-road-class__col-ss {
  width: 34px;
}

.aayda-road-class__table--mobile col.aayda-road-class__col-name {
  width: 128px;
}

.aayda-road-class__table--mobile col.aayda-road-class__col-unit {
  width: 46px;
}

.aayda-road-class__table--mobile col.aayda-road-class__col-val {
  width: 64px;
}

@media (min-width: 1416px) {
  .aayda-road-class-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-road-class-page .aayda-top-block__inner {
    gap: var(--aayda-numbers-spacing-8);
    width: 1356px;
    max-width: 1356px;
  }

  .aayda-road-class-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-road-class-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-road-class-page .aayda-top-block__lede {
    flex: 0 0 490px;
    width: 490px;
    height: 159px;
    gap: 13px;
  }

  .aayda-road-class-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-road-class {
    display: flex;
    justify-content: center;
    padding: 118px 0 64px;
  }

  .aayda-road-class__card {
    box-sizing: border-box;
    width: 1272px;
    max-width: 1272px;
    min-height: 823px;
    padding: 10px 36px 31px;
    gap: 20px;
    background: var(--aayda-colors-base-white);
    border: var(--aayda-border-width-card) solid var(--aayda-colors-base-white);
    border-radius: var(--aayda-radius-image);
  }

  .aayda-road-class__block {
    gap: 0;
    width: 1200px;
  }

  .aayda-road-class__heading {
    box-sizing: border-box;
    height: 40px;
    padding-top: 20px;
    color: #364153;
    font-size: 12px;
    font-weight: var(--aayda-typography-weight-bold);
    line-height: 20px;
    letter-spacing: -0.24px;
  }

  .aayda-road-class__heading--grade {
    height: 48px;
    padding-top: 28px;
    color: var(--aayda-colors-navy-900);
  }

  .aayda-road-class__scroll {
    overflow: visible;
    padding-top: 8px;
  }

  .aayda-road-class__table--mobile {
    display: none;
  }

  .aayda-road-class__table--desktop {
    display: table;
    width: 1198px;
  }

  .aayda-road-class__table--desktop th,
  .aayda-road-class__table--desktop td {
    color: #1a1a1a;
    font-size: 10px;
    font-weight: var(--aayda-typography-weight-semi-bold);
    line-height: 18px;
    letter-spacing: -0.2px;
    padding: 5px 8px;
  }

  .aayda-road-class__table--desktop thead .aayda-road-class__group th {
    height: 28px;
    background: #f9f9fb;
    padding: 5px 8px;
    line-height: 18px;
  }

  .aayda-road-class__table--desktop thead th.aayda-road-class__corner {
    height: 85px;
    background: var(--aayda-colors-base-white);
    padding: 5px 8px;
    line-height: 18px;
  }

  .aayda-road-class__table--desktop thead .aayda-road-class__leaf th {
    height: 29px;
    background: var(--aayda-colors-base-white);
    padding: 6px 4px 5px;
    line-height: 18px;
  }

  .aayda-road-class__table--desktop thead .aayda-road-class__index td {
    height: 28px;
    background: #f8f8f9;
    font-weight: var(--aayda-typography-weight-regular);
    line-height: 16px;
    padding: 6px 4px;
  }

  .aayda-road-class__table--desktop tbody td,
  .aayda-road-class__table--desktop tbody th {
    height: 27px;
    background: var(--aayda-colors-base-white);
    font-weight: var(--aayda-typography-weight-regular);
    line-height: 16px;
    padding: 5px 4px;
  }

  /* Figma's two tables (4921:40192, 4921:40530): the body rows alternate, white first — "Cəmi" white,
     "O cümlədən" #f9f9fb, then white, #f9f9fb… to the last row. This page's tables only. */
  .aayda-road-class__table--desktop tbody tr:nth-child(even) > td,
  .aayda-road-class__table--desktop tbody tr:nth-child(even) > th {
    background: #f9f9fb;
  }

  .aayda-road-class__table--desktop .aayda-road-class__name {
    text-align: left;
    padding-left: 8px;
  }

  .aayda-road-class__table--desktop thead .aayda-road-class__name {
    text-align: center;
    padding-left: 8px;
  }

  .aayda-road-class__table--desktop col.aayda-road-class__col-ss {
    width: 34px;
  }

  .aayda-road-class__table--desktop col.aayda-road-class__col-name {
    width: 123px;
  }

  .aayda-road-class__table--desktop col.aayda-road-class__col-unit {
    width: 50px;
  }

  .aayda-road-class__table--desktop col.aayda-road-class__col-v1 {
    width: 66px;
  }

  .aayda-road-class__table--desktop col.aayda-road-class__col-v2 {
    width: 68px;
  }

  .aayda-road-class__table--desktop col.aayda-road-class__col-v3 {
    width: 69px;
  }

  .aayda-road-class__table--desktop col.aayda-road-class__col-v4 {
    width: 67px;
  }

  .aayda-road-class__table--desktop col.aayda-road-class__col-v5 {
    width: 65px;
  }

  .aayda-road-class__table--desktop col.aayda-road-class__col-v6 {
    width: 68px;
  }

  .aayda-road-class__table--desktop col.aayda-road-class__col-v7 {
    width: 62px;
  }

  .aayda-road-class__table--desktop col.aayda-road-class__col-v8 {
    width: 62px;
  }

  .aayda-road-class__table--desktop col.aayda-road-class__col-v9 {
    width: 60px;
  }

  .aayda-road-class__table--desktop col.aayda-road-class__col-v10 {
    width: 139px;
  }

  .aayda-road-class__table--desktop col.aayda-road-class__col-v11 {
    width: 135px;
  }

  .aayda-road-class__table--desktop col.aayda-road-class__col-v12 {
    width: 129px;
  }
}

/* ------------------------------------------------------------------ source, empty and error */

/* Drawn as the roads and crossings listings draw their document source line. */
.aayda-road-class__source {
  margin: 0;
  padding-top: 8px;
  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);
  overflow-wrap: anywhere;
}

.aayda-road-class__source-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.aayda-road-class__source-link:hover,
.aayda-road-class__source-link:focus-visible {
  color: var(--aayda-colors-blue-400);
}

.aayda-road-class__source-link:focus-visible {
  outline: var(--aayda-border-width-focus-ring) solid var(--aayda-colors-ring-focus);
  outline-offset: 2px;
}

/* The empty and error states replace the card; the page chrome around them stays. */
.aayda-road-class--state {
  padding-bottom: 64px;
}

.aayda-road-class__status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--aayda-numbers-spacing-16);
  box-sizing: border-box;
  width: 100%;
  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);
}

.aayda-road-class__status-text {
  margin: 0;
}

/* The error state's retry: a link back to the same page, since it is rendered on the server. */
.aayda-road-class__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-road-class__retry:focus-visible {
  outline: var(--aayda-border-width-focus-ring) solid var(--aayda-colors-ring-focus);
  outline-offset: 2px;
}

@media (min-width: 1416px) {
  .aayda-road-class--state .aayda-road-class__status {
    width: 1272px;
    max-width: 1272px;
  }
}
