/* Resources page only. Desktop structure and shared chrome remain unchanged. */
.page-resources-ui-20261006 .aiterich-gf-pagination a:focus-visible {
  outline: 3px solid var(--ait-color-action, #3b6fd8);
  outline-offset: 3px;
}

.page-resources-ui-20261006 .v21-resource-retry {
  margin-top: 16px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--ait-color-action, #3b6fd8);
  border-radius: 6px;
  background: var(--ait-color-action, #3b6fd8);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.page-resources-ui-20261006 .v21-resource-retry:hover {
  background: #2f5fc4;
  border-color: #2f5fc4;
}

.page-resources-ui-20261006 .v21-resource-retry:active {
  background: #284fa7;
  border-color: #284fa7;
}

.page-resources-ui-20261006 .v21-resource-retry:focus-visible {
  outline: 3px solid var(--ait-color-action, #3b6fd8);
  outline-offset: 3px;
}

@media (max-width: 1023px) {
  .page-resources-ui-20261006 .v21-resources-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 24px;
  }

  .page-resources-ui-20261006 .v21-resources-hero-copy {
    width: 100%;
    min-width: 0;
  }

  .page-resources-ui-20261006 .v21-resources-hero-copy h1 {
    line-height: 1.18;
    letter-spacing: 0;
  }

  .page-resources-ui-20261006 .v21-resource-type-entries {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    margin: 0;
    padding: 20px 24px;
    border: 1px solid var(--ait-color-line-strong, #bec9d8);
    border-left: 3px solid var(--ait-color-action, #3b6fd8);
    border-radius: 10px;
    background: var(--ait-color-surface, #fff);
  }

  .page-resources-ui-20261006 .v21-resource-type-entries > .eyebrow {
    margin: 0 0 8px;
  }

  .page-resources-ui-20261006 .v21-resource-type-entries a {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 12px 0;
    border-bottom: 1px solid var(--ait-color-line, #dce3ed);
    color: var(--ait-color-ink, #172033);
    text-decoration: none;
  }

  .page-resources-ui-20261006 .v21-resource-type-entries a:last-of-type {
    border-bottom: 0;
  }

  .page-resources-ui-20261006 .v21-resource-type-entries em {
    color: var(--ait-color-link, #315fae);
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
  }

  .page-resources-ui-20261006 .v21-resource-type-entries span {
    display: block;
    min-width: 0;
  }

  .page-resources-ui-20261006 .v21-resource-type-entries b {
    display: block;
    font-size: 16px;
    line-height: 1.45;
  }

  .page-resources-ui-20261006 .v21-resource-type-entries i {
    display: block;
    margin-top: 4px;
    color: var(--ait-color-ink-secondary, #465268);
    font-size: 14px;
    font-style: normal;
    line-height: 1.6;
  }

  .page-resources-ui-20261006 .v21-resource-type-entries a:hover b,
  .page-resources-ui-20261006 .v21-resource-type-entries a.is-active b {
    color: var(--ait-color-link, #315fae);
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .page-resources-ui-20261006 .v21-resource-type-entries a:focus-visible {
    outline: 3px solid var(--ait-color-action, #3b6fd8);
    outline-offset: 4px;
  }

  .page-resources-ui-20261006 .aiterich-gf-pagination:not([hidden]) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 24px 0 0;
  }

  .page-resources-ui-20261006 .aiterich-gf-pagination a,
  .page-resources-ui-20261006 .aiterich-gf-pagination span[aria-current="page"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 48px;
    min-height: 48px;
    padding: 12px;
    border: 1px solid var(--ait-color-line-strong, #bec9d8);
    border-radius: 6px;
    background: var(--ait-color-surface, #fff);
    color: var(--ait-color-link, #315fae);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
  }

  .page-resources-ui-20261006 .aiterich-gf-pagination span[aria-current="page"] {
    border-color: var(--ait-color-action, #3b6fd8);
    background: var(--ait-color-action, #3b6fd8);
    color: #fff;
    font-weight: 700;
  }

  .page-resources-ui-20261006 .aiterich-gf-pagination a:hover {
    background: var(--ait-color-action-soft, #eef4ff);
    border-color: var(--ait-color-action, #3b6fd8);
  }

  .page-resources-ui-20261006 .v21-resource-help > div > a {
    display: inline-block;
    margin-top: 12px;
    color: #fff;
    line-height: 1.7;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .page-resources-ui-20261006 .v21-resource-help > div > a:hover {
    text-decoration-thickness: 2px;
  }

  .page-resources-ui-20261006 .v21-resource-help > div > a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
  }
}

/* Reviewed directory rows: reserve the same summary slot; keep long content readable. */
@media (min-width: 1024px) {
  .page-resources-ui-20261006 .v21-resources-catalog .aiterich-gf-grid {
    grid-auto-rows: minmax(0, 1fr);
  }
  .page-resources-ui-20261006 .v21-resources-catalog .aiterich-gf-card .aiterich-gf-card-body {
    grid-template-areas: "title dl" "meta dl" "desc dl" !important;
    grid-template-rows: minmax(22.4px, auto) minmax(24px, auto) minmax(21.45px, auto) !important;
    align-content: start;
  }
  .page-resources-ui-20261006 .v21-resources-catalog .aiterich-gf-desc {
    grid-area: desc;
    margin: 0 !important;
  }
}
