/* The same editorial blocks appear in the sidebar and footer. */
:is(#block-recentnews, #block-novosti, #block-latestissue, #block-tekuschiyvypusk, #block-latestissue-2, #block-tekuschiyvypusk-2, #block-contactinformation) > .content,
:is(#block-recentnews, #block-novosti, #block-latestissue, #block-tekuschiyvypusk, #block-latestissue-2, #block-tekuschiyvypusk-2, #block-contactinformation) > .content :is(p, li, h3, h4, h5, h6) {
  text-align: left !important;
}

/* Bring the sidebar news and latest issue closer to their dividers. */
.region-sidebar-second > :is(#block-recentnews, #block-novosti, #block-latestissue, #block-tekuschiyvypusk) > h2.title {
  margin-bottom: 24px;
}

/* Keep the sidebar issue headings smaller than the footer heading. */
.region-sidebar-second > :is(#block-recentnews, #block-novosti, #block-latestissue, #block-tekuschiyvypusk) > .content > .field--name-body > h5:first-child {
  font-size: 20px;
}

/* Let the first heading follow the block title without a second top margin. */
:is(#block-recentnews, #block-novosti, #block-latestissue, #block-tekuschiyvypusk, #block-latestissue-2, #block-tekuschiyvypusk-2) > .content > .field--name-body > :is(h5, h6):first-child {
  margin-top: 0;
}

/* Match the original 40px gap between the language menu and the guidelines button. */
.region.region-sidebar-second > .block {
  padding-bottom: 0;
}

.region.region-sidebar-second > .block + .block {
  margin-top: 40px;
}

.region.region-sidebar-second > .block > h2.title {
  padding-top: 0;
}

.region.region-sidebar-second > .block:not(:last-child) > .content > .field--name-body > p:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

#block-languageswitcher .ial-language-menu {
  position: relative;
  border: 0;
  margin: 0;
  width: max-content;
  max-width: 100%;
  text-align: left;
  font: 14px/1.5 system-ui, sans-serif;
  color: #2d2d2d;
}

#block-languageswitcher .ial-language-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-width: 118px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #dce3ea;
  border-radius: 7px;
  background: #fff;
  list-style: none;
  cursor: pointer;
}

#block-languageswitcher .ial-language-menu summary::-webkit-details-marker {
  display: none;
}

#block-languageswitcher .ial-language-menu summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}

#block-languageswitcher .ial-language-menu[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

#block-languageswitcher .ial-language-menu summary:hover,
#block-languageswitcher .ial-language-menu[open] summary {
  border-color: #1c6f9f;
}

#block-languageswitcher .ial-language-menu .ial-language-options {
  position: absolute;
  z-index: 5;
  top: calc(100% + 5px);
  left: 0;
  width: 150px;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(22, 44, 73, .14);
}

#block-languageswitcher .ial-language-options li {
  display: block;
  margin: 0;
  padding: 0;
}

#block-languageswitcher .ial-language-options a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 4px;
  color: inherit;
  text-transform: none;
  text-decoration: none;
}

#block-languageswitcher .ial-language-options a:hover,
#block-languageswitcher .ial-language-options a:focus-visible {
  background: #eef5fa;
}

#block-languageswitcher .ial-language-options a[aria-current]::after {
  content: '';
  width: 6px;
  height: 10px;
  margin-right: 3px;
  border: solid #1c6f9f;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}

@media (pointer: coarse) {
  #block-languageswitcher .ial-language-menu summary,
  #block-languageswitcher .ial-language-options a {
    min-height: 44px;
  }
}