/* Journal masthead and homepage facts. */
.header-container > .header-top,
.page-container > footer.footer,
.page-container > footer.footer + .footer-bottom {
  background-image: linear-gradient(115deg, #153f67 0%, #2879aa 100%);
}

/* Keep the main navigation in view while the journal masthead scrolls away. */
.page-container > .header-container:has(> .header-top-highlighted #block-magazine-lite-main-menu) {
  display: contents;
}

.header-container > .header-top-highlighted:has(#block-magazine-lite-main-menu) {
  position: sticky;
  top: var(--ial-navigation-top, 0px);
  z-index: 100;
}

body.toolbar-fixed {
  --ial-navigation-top: var(--drupal-displace-offset-top, 39px);
}

body.toolbar-fixed.toolbar-horizontal.toolbar-tray-open {
  --ial-navigation-top: var(--drupal-displace-offset-top, 79px);
}

/* Show the translated page titles before the body of the main sections. */
.path-node .node--type-page.node--view-mode-full:is([data-history-node-id="1"], [data-history-node-id="3"], [data-history-node-id="4"], [data-history-node-id="20"], [data-history-node-id="362"]) .node__main-content > .node__header {
  display: flow-root;
  padding: 5px 0 0;
}

.path-node .node--type-page.node--view-mode-full:is([data-history-node-id="1"], [data-history-node-id="3"], [data-history-node-id="4"], [data-history-node-id="20"], [data-history-node-id="362"]) .node__main-content > .node__header > .node__title.sr-only {
  position: static;
  clip: auto;
  overflow: visible;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  text-align: left;
}

.path-node .node--type-page.node--view-mode-full:is([data-history-node-id="1"], [data-history-node-id="3"], [data-history-node-id="4"], [data-history-node-id="20"], [data-history-node-id="362"]) .node__main-content > .field--name-body > :first-child,
.path-node .node--type-page[data-history-node-id="20"] .field--name-body > h5:nth-child(-n+4) {
  margin-top: 0;
}

/* Hidden editor markers can leave an empty line above the first issue. */
.path-node .node--type-page[data-history-node-id="20"] .field--name-body > h5:nth-child(-n+3):has(> span[id^="cke_bm_"][style*="display: none"]:only-child) {
  display: none;
}

#ial-home-facts,
.path-node .node--type-page.node--view-mode-full:is([data-history-node-id="1"], [data-history-node-id="3"], [data-history-node-id="4"], [data-history-node-id="20"], [data-history-node-id="362"]) .node__main-content > .node__header > .node__title.sr-only {
  margin: 0 0 40px;
  color: #25292d;
  font-size: clamp(25px, 3.3vw, 34px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
}

/* Shared subheadings and dividers on Aims and Scope and Author Guidelines. */
.path-node .node--type-page:is([data-history-node-id="3"], [data-history-node-id="4"]) .field--name-body > h6 {
  font-size: 20px;
  font-weight: 700;
}

.path-node .node--type-page:is([data-history-node-id="3"], [data-history-node-id="4"]) .field--name-body > h6 ~ h6 {
  margin-top: 30px;
}

.path-node .node--type-page:is([data-history-node-id="3"], [data-history-node-id="4"]) .field--name-body > h6 + hr {
  margin: 16px 0 20px;
}

/* Match the homepage body text on the journal information pages. */
.path-node .node--type-page:is([data-history-node-id="1"], [data-history-node-id="3"], [data-history-node-id="4"], [data-history-node-id="362"]) .field--name-body > :is(p, ul) {
  font-size: 15px;
  text-align: left !important;
}

.path-node .node--type-page[data-history-node-id="4"] .field--name-body > ul[type="square"] {
  list-style: square outside;
}

/* Keep each editorial profile readable with a borderless details table. */
.path-node .node--type-page[data-history-node-id="362"] .field--name-body > h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
}

.path-node .node--type-page[data-history-node-id="362"] .field--name-body > h3 + p {
  margin: 0 0 14px;
  padding: 0;
}

.path-node .node--type-page[data-history-node-id="362"] .field--name-body > table {
  width: 100%;
  margin: 0 0 16px;
  border-collapse: collapse;
  table-layout: fixed;
}

.path-node .node--type-page[data-history-node-id="362"] .field--name-body > table,
.path-node .node--type-page[data-history-node-id="362"] .field--name-body > table :is(tbody, tr, th, td) {
  border: 0;
  background: transparent;
}

.path-node .node--type-page[data-history-node-id="362"] .field--name-body > table :is(th, td) {
  padding: 3px 0;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
  line-height: 1.5;
  color: inherit;
  overflow-wrap: anywhere;
}

.path-node .node--type-page[data-history-node-id="362"] .field--name-body > table th {
  width: 192px;
  padding-right: 10px;
  font-weight: 500;
  -webkit-text-stroke: 0.15px currentColor;
  letter-spacing: normal;
  text-transform: none;
}

.path-node .node--type-page[data-history-node-id="362"] .field--name-body > hr {
  margin: 29px 0;
}

@media (max-width: 680px) {
  .path-node .node--type-page[data-history-node-id="362"] .field--name-body > table th {
    width: 36%;
  }
}

#ial-home-facts + table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

#ial-home-facts + table,
#ial-home-facts + table tbody,
#ial-home-facts + table tr,
#ial-home-facts + table th,
#ial-home-facts + table td {
  border: 0;
  background: transparent;
  color: #25292d;
}

#ial-home-facts + table th,
#ial-home-facts + table td {
  padding: 10px 0;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

#ial-home-facts + table th {
  width: 1%;
  padding-right: 1.5rem;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

#ial-home-facts + table td {
  overflow-wrap: anywhere;
}

@font-face {
  font-family: "IAL Open Access Inter";
  src: url("https://rsms.me/inter/font-files/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

#ial-home-facts + table td > span:only-child {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 116px;
  padding: 4px 12px;
  border-radius: 9999px;
  color: #0b9e57;
  background: #e7f9f0;
  font: 400 12px/18px "IAL Open Access Inter", Arial, Helvetica, sans-serif;
  letter-spacing: -.12px;
  white-space: nowrap;
}

#ial-home-facts + table td > span:only-child > strong {
  font-weight: inherit;
}

#ial-home-facts + table td > span:only-child::before {
  content: "";
  display: block;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M17%209V7a5%205%200%2000-9.6-2%201%201%200%20001.9.6A3%203%200%200115%207v2H7a2%202%200%2000-2%202v7a2%202%200%20002%202h10a2%202%200%20002-2v-7a2%202%200%2000-2-2z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M17%209V7a5%205%200%2000-9.6-2%201%201%200%20001.9.6A3%203%200%200115%207v2H7a2%202%200%2000-2%202v7a2%202%200%20002%202h10a2%202%200%20002-2v-7a2%202%200%2000-2-2z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
}

#ial-home-facts + table td > p {
  margin: 0 0 6px;
  font-size: inherit;
  line-height: 1.5;
  text-align: left;
}

#ial-home-facts + table td > p:last-of-type {
  margin-bottom: 5px;
}

#ial-home-facts + table td ul[type="square"] {
  list-style: square outside;
  margin: 0;
  padding-left: 1.25em;
}

#ial-home-facts + table a.ial-home-license {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

#ial-home-facts + table a.ial-home-license img {
  display: block;
  width: 56px;
  height: auto;
  flex: none;
}

.path-node .node--type-page[data-history-node-id="362"] .field--name-body > table a,
#ial-home-facts + table a,
.path-node .node--type-page[data-history-node-id="1"] .field--name-body a,
article.node--type-article-for-journal-issue.node--view-mode-full .field--name-field-keywords .field__item a,
article.node--type-article-for-journal-issue.node--view-mode-full :is(.field--name-field-doi, .field--name-field-pdf-file) .field__item a,
article.node--type-article-for-journal-issue.node--view-mode-full .field--name-field-for-citation a.journal-citation-doi {
  color: #2378b1;
  text-decoration: none;
  text-underline-offset: .15em;
}

.path-node .node--type-page[data-history-node-id="362"] .field--name-body > table a:hover,
.path-node .node--type-page[data-history-node-id="362"] .field--name-body > table a:focus-visible,
#ial-home-facts + table a:hover,
.path-node .node--type-page[data-history-node-id="1"] .field--name-body a:hover,
.path-node .node--type-page[data-history-node-id="1"] .field--name-body a:focus-visible,
article.node--type-article-for-journal-issue.node--view-mode-full .field--name-field-keywords .field__item a:hover,
article.node--type-article-for-journal-issue.node--view-mode-full .field--name-field-keywords .field__item a:focus-visible,
article.node--type-article-for-journal-issue.node--view-mode-full :is(.field--name-field-doi, .field--name-field-pdf-file) .field__item a:hover,
article.node--type-article-for-journal-issue.node--view-mode-full :is(.field--name-field-doi, .field--name-field-pdf-file) .field__item a:focus-visible,
article.node--type-article-for-journal-issue.node--view-mode-full .field--name-field-for-citation a.journal-citation-doi:hover,
article.node--type-article-for-journal-issue.node--view-mode-full .field--name-field-for-citation a.journal-citation-doi:focus-visible {
  color: #2378b1;
  text-decoration: underline;
}

@media (max-width: 680px) {
  #ial-home-facts + table,
  #ial-home-facts + table tbody {
    display: block;
  }

  #ial-home-facts + table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .14rem;
    padding: 10px 0;
  }

  #ial-home-facts + table th,
  #ial-home-facts + table td {
    width: auto;
    padding: 0;
  }
}

/* Match archive text to the other journal pages while preserving issue headings and dates. */
.path-node .node--type-page[data-history-node-id="20"] .field--name-body > p:not(h5 + p) {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}
.path-node .node--type-page[data-history-node-id="20"] .field--name-body > p:not(h5 + p) :is(a, [style]) {
  font-family: inherit !important;
  font-size: inherit !important;
}
.path-node .node--type-page[data-history-node-id="20"] .field--name-body > p:not(h5 + p):has(a[href*="/node/"], a[href*="/article/"]) {
  text-align: left !important;
  color: #0f1115;
}
.path-node .node--type-page[data-history-node-id="20"] .field--name-body > p:not(h5 + p):has(a[href*="/node/"], a[href*="/article/"]) * {
  color: inherit !important;
}

/* Archive year navigation. */
article[data-history-node-id="20"] .field--name-body > [hidden] {
  display: none !important;
}
article[data-history-node-id="20"] .field--name-body > .archive-load-more {
  display: inline-block;
  margin: 16px 0 24px;
  padding: 8px 16px;
  border: 0;
  border-radius: 4px;
  background: #217cb7;
  color: #fff;
  font: 400 15px / 24px Georgia, "Times New Roman", serif;
  cursor: pointer;
}
article[data-history-node-id="20"] .field--name-body > .archive-load-more:hover {
  background: #1b6391;
}
article[data-history-node-id="20"] .field--name-body > .archive-load-more:focus-visible {
  outline: 2px solid #1b6391;
  outline-offset: 3px;
}

/* Filter card on the two journal archive pages. */
@font-face {
  font-family: "Journal Archive Inter";
  src: url("https://rsms.me/inter/font-files/InterVariable.woff2?v=4.1") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
.journal-archive-filters,
.journal-article-metadata {
  box-sizing: border-box;
  padding: 20px clamp(16px, 2.5vw, 32px);
  border: 1px solid #e2e3e4;
  border-radius: 16px;
  background: #fff;
}
.journal-article-metadata {
  padding-inline-start: clamp(14px, 2vw, 24px);
}
.journal-archive-filters {
  margin: 0 0 32px;
  color: #050b14;
  font: 400 16px / 24px "Journal Archive Inter", Arial, Helvetica, sans-serif;
  text-align: left;
}
.journal-archive-filters .journal-archive-filters-title {
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: 600;
}
.journal-archive-filters form {
  margin: 0;
}
.journal-archive-filter-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10.4px;
  margin: 12.8px 0 0;
}
.journal-archive-filter-fields label {
  display: grid;
  align-content: start;
  gap: 4.8px;
  min-width: 0;
  margin: 0;
  color: #61666d;
  font: 400 12px / 18px "Journal Archive Inter", Arial, Helvetica, sans-serif;
}
.journal-archive-filter-fields select {
  box-sizing: border-box;
  appearance: auto;
  width: 100%;
  min-width: 0;
  height: 38.4px;
  margin: 0;
  padding: 5.6px 8.8px;
  border: 1px solid #e2e3e4;
  border-radius: 7.2px;
  background: #fff;
  color: #050b14;
  font: 400 13px "Journal Archive Inter", Arial, Helvetica, sans-serif;
}
.journal-archive-filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 10.4px 0 0;
}
.journal-archive-filter-footer .journal-archive-filter-count {
  margin: 0;
  padding: 0;
  color: #61666d;
  font: 400 12px / 18px "Journal Archive Inter", Arial, Helvetica, sans-serif;
  text-align: left;
}
.journal-archive-filter-footer .journal-archive-filter-reset {
  margin: 0;
  padding: 5.6px 0;
  border: 0;
  background: none;
  color: #1361c9;
  font: 400 12px / 18px "Journal Archive Inter", Arial, Helvetica, sans-serif;
  text-transform: none;
  cursor: pointer;
}
.journal-archive-filter-footer .journal-archive-filter-reset:hover {
  color: #0d47a1;
}
.journal-archive-filter-fields select:focus-visible,
.journal-archive-filter-footer .journal-archive-filter-reset:focus-visible {
  outline: 2px solid #1361c9;
  outline-offset: 2px;
}
@media (max-width: 992px) {
  .journal-archive-filter-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .journal-archive-filter-fields label:last-child {
    grid-column: 1 / -1;
  }
}

/* Use the full main column on article pages and keep related articles below the text. */
.node--type-article-for-journal-issue.node--view-mode-full .node__main-content > .layout--twocol-section--67-33 {
  grid-template-columns: minmax(0, 1fr);
  row-gap: 28px;
}
.node--type-article-for-journal-issue.node--view-mode-full .node__main-content > .layout--twocol-section--67-33 > .layout__region--second:not(:has(> *)) {
  display: none;
}

/* Align article headings with the sidebar and keep editor tabs above both columns. */
.node--type-article-for-journal-issue.node--view-mode-full .node__header {
  padding-block-end: 0;
}
.node--type-article-for-journal-issue.node--view-mode-full .field--name-field-title > :is(h1, h2, h3, h4, h5, h6):first-child {
  margin-block-start: 0;
}
.node--type-article-for-journal-issue.node--view-mode-full .field--name-field-title > p[hidden] {
  display: none !important;
}
@media (min-width: 992px) {
  .page-node-type-article-for-journal-issue .region-content:has(> #block-magazine-lite-content article.node--view-mode-full) {
    position: relative;
  }
  .page-node-type-article-for-journal-issue .region-content:has(> #block-magazine-lite-content article.node--view-mode-full) > #block-magazine-lite-local-tasks {
    position: absolute;
    inset: auto 0 100%;
    z-index: 1;
    padding: 0 0 8px;
  }
  .page-node-type-article-for-journal-issue .region-content:has(> #block-magazine-lite-content article.node--view-mode-full) > #block-magazine-lite-local-tasks ul.tabs.primary {
    margin: 0;
  }
}

/* Match the latest issue article links to the surrounding sidebar text. */
.region-sidebar-second :is(#block-latestissue, #block-tekuschiyvypusk) .field--name-body p a:is([href*="/node/"], [href*="/article/"]):not(:hover, :focus-visible) {
  color: inherit;
}

/* Keep article metadata together and separate the remaining populated fields. */
article.node--type-article-for-journal-issue.node--view-mode-full .layout__region--first > .block-layout-builder:has(> .content > :is(.field--name-field-context, .field--name-field-abstract-rus, .field--name-field-keywords, .field--name-field-pdf-file, .field--name-field-for-citation)) {
  margin-block-start: 20px;
}
article.node--type-article-for-journal-issue.node--view-mode-full :is(.field--name-field-context, .field--name-field-abstract-rus),
article.node--type-article-for-journal-issue.node--view-mode-full :is(.field--name-field-context, .field--name-field-abstract-rus) * {
  font-style: normal !important;
}
article.node--type-article-for-journal-issue.node--view-mode-full :is(.field--name-field-context, .field--name-field-abstract-rus) > :first-child,
article.node--type-article-for-journal-issue.node--view-mode-full .field--name-field-for-citation > :first-child {
  margin-block-start: 0;
}
article.node--type-article-for-journal-issue.node--view-mode-full :is(.field--name-field-context, .field--name-field-abstract-rus) > :last-child {
  margin-block-end: 0;
  padding-block-end: 0;
}
article.node--type-article-for-journal-issue.node--view-mode-full .field--name-field-keywords.field__items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 25px;
}
article.node--type-article-for-journal-issue.node--view-mode-full .field--name-field-keywords.field__items::before,
article.node--type-article-for-journal-issue.node--view-mode-full .field--name-field-keywords.field__items::after {
  display: none;
}
article.node--type-article-for-journal-issue.node--view-mode-full .field--name-field-keywords.field__items > .field__item {
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

/* Keep the same baseline for an article's title, metadata and running text. */
article.node--type-article-for-journal-issue.node--view-mode-full .layout__region--first:has(> .journal-article-metadata) .field--name-field-title > hr {
  margin-block-end: 19px;
}
article.node--type-article-for-journal-issue.node--view-mode-full .node__main-content,
article.node--type-article-for-journal-issue.node--view-mode-full .node__main-content :is(.field, p, li, dt, dd, h1, h2, h3, h4, h5, h6, [style*="text-align" i]) {
  text-align: left !important;
}

/* Hide the article title divider while retaining its space. */
article.node--type-article-for-journal-issue.node--view-mode-full .field--name-field-title > hr:first-of-type {
  visibility: hidden;
}
/* Match the regular weight used by the English article titles. */
html:lang(ru) article.node--type-article-for-journal-issue.node--view-mode-full .field--name-field-title > :is(h1, h2, h3, h4, h5, h6),
html:lang(ru) article.node--type-article-for-journal-issue.node--view-mode-full .field--name-field-title > :is(h1, h2, h3, h4, h5, h6) * {
  font-weight: 400 !important;
}

/* Keep article links in the current issue list at the same weight. */
.region-sidebar-second :is(#block-latestissue, #block-tekuschiyvypusk) .field--name-body p a:is([href*="/node/"], [href*="/article/"]) :is(strong, b) {
  font-weight: inherit;
}

/* Preserve the DOI link style across pasted citation markup. */
article.node--type-article-for-journal-issue.node--view-mode-full .field--name-field-for-citation a.journal-citation-doi * {
  color: inherit !important;
  text-decoration: none !important;
}

/* Match the article's standard paragraph rhythm for editorial dates. */
article.node--type-article-for-journal-issue.node--view-mode-full .field--name-field-for-citation p[hidden] {
  display: none !important;
}
article.node--type-article-for-journal-issue.node--view-mode-full .field--name-field-for-citation p.journal-editorial-date {
  margin: 0 !important;
  padding: 0 0 15px !important;
}
article.node--type-article-for-journal-issue.node--view-mode-full .field--name-field-for-citation p.journal-editorial-date,
article.node--type-article-for-journal-issue.node--view-mode-full .field--name-field-for-citation p.journal-editorial-date * {
  font-style: normal !important;
  font-weight: 400 !important;
}
article.node--type-article-for-journal-issue.node--view-mode-full .field--name-field-for-citation p.journal-editorial-date * {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

/* Match the main text size on the journal's other information pages. */
article.node--type-article-for-journal-issue.node--view-mode-full :is(.field--name-field-context, .field--name-field-abstract-rus, .field--name-field-for-citation) {
  font-size: 15px;
}
article.node--type-article-for-journal-issue.node--view-mode-full :is(.field--name-field-context, .field--name-field-abstract-rus, .field--name-field-for-citation) :not(h1, h2, h3, h4, h5, h6) {
  font-size: inherit !important;
}
