/* Article reading and the return to a related service. The feed service has its own layout. */
body.yas-article-unified:not([data-expanded-page]) .ua-content :is(.table-wrap, .yas-table-scroll):focus-visible,
body.yas-article-unified:not([data-expanded-page]) .related-service-routes a:focus-visible {
  outline: 2px solid #7bd7fa;
  outline-offset: 3px;
}

body.yas-article-unified:not([data-expanded-page]) .related-service-routes ul {
  display: grid;
  gap: 0;
}

body.yas-article-unified:not([data-expanded-page]) .related-service-routes li + li {
  border-top: 1px solid #416382;
}

body.yas-article-unified:not([data-expanded-page]) .related-service-routes a {
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 48px;
  padding: .55em .35em .55em 0;
}

body.yas-article-unified:not([data-expanded-page]) .related-service-routes a::after {
  content: "";
  flex: 0 0 .48em;
  width: .48em;
  height: .48em;
  margin-inline-end: .25em;
  border-block-start: 1.5px solid currentColor;
  border-inline-end: 1.5px solid currentColor;
  transform: rotate(45deg);
}

@media (max-width: 480px) {
  /* Two-column comparisons fit the reading column at phone widths. */
  body.yas-article-unified:not([data-expanded-page]) .ua-content table:not(:has(tr > :nth-child(3))) {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
  }

  body.yas-article-unified:not([data-expanded-page]) .ua-content table:not(:has(tr > :nth-child(3))) :is(td, th) {
    box-sizing: border-box;
    padding: 11px 10px !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body.yas-article-unified:not([data-expanded-page]) .ua-content table:not(:has(tr > :nth-child(3))) tr:first-child > :first-child {
    width: 42%;
  }

  /* Wider comparisons keep their columns. The local hint stays in view while swiping. */
  body.yas-article-unified:not([data-expanded-page]) .ua-content :is(.table-wrap, .yas-table-scroll):has(> table tr > :nth-child(3))::before {
    content: "Прокрутите таблицу вбок" / "";
    display: block;
    position: sticky;
    inset-inline-start: 0;
    box-sizing: border-box;
    padding: 7px 12px;
    border-bottom: 1px solid #42627e;
    background-color: #173b5b;
    color: #c4e8fa;
    font-size: 12px;
    font-weight: 550;
    line-height: 1.45;
  }
}

