/* Shared by Joomla pages and the two standalone INFOMED directories. */
:root {
  --im-link-wash: #d9f0fb;
  --im-link-ink: #12465f;
  --im-link-edge: #acd8eb;
}

/* Give adjacent actions their own space before a pointer reaches them. */
.im-std > nav:first-child,
.im-std .actionbar,
.im-std .sectionlinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .85rem;
}
.im-std > nav:first-child > a,
.im-std .actionbar > a,
.im-std .sectionlinks > a {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 40px;
  padding: .36em .72em;
  border-radius: 8px;
  line-height: 1.4;
}
.im-std .actionbar > a {
  min-height: 44px;
  background: #f1f8fb;
  box-shadow: inset 0 0 0 1px #d6e9f1;
}
body :where(nav[aria-label="Путь страницы"] li a, .crumbs a, footer nav a) {
  padding: .22em .42em;
  border-radius: 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
body :where(p, li, td, dd, figcaption) > a[href]:not([class]) {
  padding-inline: .14em;
  border-radius: .25em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
body :where(nav, .actionbar, .sectionlinks) > a[href]:not([class]) {
  border-radius: .4em;
}
:where(nav:not(.main-nav):not(.edge-links), p, .actionbar, .sectionlinks) > a[href] + a[href] {
  margin-inline-start: .3em;
}
body :where(main nav:not([aria-label]), .sectionlinks) > a[href]:not([class]) {
  padding: .3em .55em;
}
@media (hover: hover) {
  body a[href]:hover {
    background-color: var(--im-link-wash) !important;
    background-image: none !important;
    color: var(--im-link-ink) !important;
    text-decoration: none !important;
    box-shadow: inset 0 0 0 1px var(--im-link-edge);
  }
  body a[href]:hover :where(span, strong, b, h2, h3, p) {
    text-decoration: none !important;
  }
}
body a[href]:focus-visible {
  background-color: var(--im-link-wash) !important;
  background-image: none !important;
  color: var(--im-link-ink) !important;
  text-decoration: none !important;
  outline: 2px solid #0876a1 !important;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  body :where(.im-std nav, .im-std .actionbar, p, td, .crumbs) > a[href] {
    transition: background-color .14s ease-out, color .14s ease-out, box-shadow .14s ease-out;
  }
}
@media (max-width: 600px) {
  .im-std > nav:first-child,
  .im-std .actionbar,
  .im-std .sectionlinks { gap: .4rem .55rem; }
}
