/* =========================================================
   БАЗОВЫЕ ПЕРЕМЕННЫЕ
========================================================= */
:root {
  --accent-color: #ec430f;
  --text-muted: #666;
  --shadow-soft: 0 2px 6px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 12px rgba(0,0,0,0.2);

  --menu-text-color: #222;
  --menu-hover-color: #12948d;
  --menu-active-color: #ec430f;
  --menu-hover-bg: rgba(18,148,141,0.08);
  --menu-active-bg: rgba(236,67,15,0.09);
}

/* =========================================================
   СТАТЬИ И ИЗОБРАЖЕНИЯ
========================================================= */
.article-details .article-header h1,
.article-details .article-header h2 {
  font-size: 2.25rem;
  line-height: 1.18;
}

/* =========================================================
   MOBILE H1
========================================================= */
@media (max-width: 768px) {
  .article-details .article-header h1,
  .article-details .article-header h2 {
    font-size: 1.55rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
  }
}

@media (max-width: 480px) {
  .article-details .article-header h1,
  .article-details .article-header h2 {
    font-size: 1.35rem !important;
    line-height: 1.18 !important;
  }
}

.article-details .article-info,
.article-info {
  display:flex; justify-content:center; align-items:center;
  flex-wrap:wrap; gap:18px; width:100%; margin:18px 0;
  text-align:center; font-size:14px; color:var(--text-muted);
}

.article-details .article-info .published::before { content: "\f133"; }
.article-details .article-info .hits::before { content: "\f06e"; }
.article-details .article-info .published::before,
.article-details .article-info .hits::before {
  font-family: "Font Awesome 5 Free","Font Awesome 6 Free"; font-weight:900; font-size:14px;
  color:var(--accent-color);
}

.article-details figure,
.article-details figure img {
  background: transparent !important; border: 0 !important; display:block;
}

.article-details .article-full-image img {
  display:inline-block; border-radius:0;
  -webkit-filter: grayscale(100%) !important; filter: grayscale(100%) !important;
  transition: filter 0.3s ease, -webkit-filter 0.3s ease;
}

.article-details .article-full-image img:hover,
.article-list .article img:hover {
  -webkit-filter: grayscale(0) !important; filter: grayscale(0) !important;
}

img.no-gray { filter:none !important; -webkit-filter:none !important; }

.article-details figcaption.caption {
  display:block; margin:0; padding:6px 10px;
  font-size:14px; font-style:italic; line-height:1.4; text-align:center;
  color:#fff !important; background:rgba(0,0,0,0.7); opacity:1 !important;
}

/* =========================================================
   КНОПКА «ЗАГРУЗИТЬ ЕЩЁ»
========================================================= */
.nextinline-btn {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:200px; margin:2rem auto; padding:.85rem 1.75rem;
  font-size:1rem; font-weight:600; line-height:1.2; color:#fff !important;
  background:linear-gradient(135deg,#be2421,#f73b16);
  border:none; border-radius:999px; cursor:pointer; box-shadow:0 4px 12px rgba(0,0,0,0.15);
  text-decoration:none !important; transition: transform .25s ease, box-shadow .25s ease;
}

.nextinline-btn:hover { transform:translateY(-2px); box-shadow:0 6px 16px rgba(0,0,0,0.25); }
.nextinline-btn:active { transform:translateY(0); box-shadow:0 3px 8px rgba(0,0,0,0.2); }
.nextinline-btn::after { content:" →"; margin-left:.4rem; font-weight:700; }

/* =========================================================
   HANGA LEFT MODULE + FACT DAY — consolidated
========================================================= */
body.view-article aside#sp-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#sp-left .sp-module.hanga-left-sticky {
  width: 100%;
  max-width: 240px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hanga-left-module {
  display: flex;
  flex-direction: column;
  gap: inherit;
  width: 100%;
  max-width: 240px;
}

.hanga-left-module .hanga-explore-card {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.025), rgba(255,255,255,.005)),
    rgba(10,10,12,.88);
  color: #fff !important;
  text-decoration: none !important;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.hanga-left-module .hanga-explore-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,60,60,.45);
}

.hanga-left-module .hanga-glow-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.16), transparent 35%),
    linear-gradient(135deg,#d10012,#2a0003);
  box-shadow: 0 0 12px rgba(229,9,20,.34), inset 0 0 8px rgba(255,255,255,.08);
  color: #fff;
  font-size: 14px;
}

.hanga-left-module .hanga-explore-card strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.hanga-left-module .hanga-explore-card small {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(255,255,255,0.7);
}

.hanga-fact-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)), rgba(8,8,10,.92);
  box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hanga-fact-inner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.hanga-fact-orb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,80,80,.92) 18%, rgba(160,0,0,.95) 58%, rgba(20,0,0,1) 100%);
  box-shadow: 0 0 10px rgba(255,0,0,.45), 0 0 18px rgba(229,9,20,.24);
}

.hanga-fact-content h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.hanga-fact-content p {
  margin: 0;
  font-size: 11px;
  color: rgba(255,255,255,0.64);
}

.hanga-left-module .hanga-panel-kicker {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0,0,0,0.2);
  color: #ff3b3b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
/* =========================================================
   STICKY LEFT + RIGHT
========================================================= */
@media(min-width:1025px){
  body.view-article aside#sp-left { position:sticky !important; top:90px !important; align-self:flex-start !important; z-index:40; }
  body.view-article aside#sp-right { position:sticky !important; top:90px !important; align-self:flex-start !important; z-index:50; }
  body.view-article .body-wrapper,
  body.view-article .body-innerwrapper,
  body.view-article main#sp-main,
  body.view-article #sp-main-body,
  body.view-article #sp-main-body .container,
  body.view-article #sp-main-body .container-inner,
  body.view-article #sp-main-body .row { overflow:visible !important; transform:none !important; }
}

/* =========================================================
   MOBILE
========================================================= */
@media(max-width:991.98px){
  body.view-article #sp-left,
  body.view-article #sp-left .sp-module.hanga-left-sticky,
  .hanga-left-module { display:none !important; }
}

/* =========================================================
   Скрываем рейтинг и пагинацию
========================================================= */
.pagenavigation, .pagenavigation .btn, nav.pagenavigation, nav.pagenavigation a.btn.next, nav.pagenavigation a.btn.previous { display:none !important; visibility:hidden !important; }
.article-ratings-social-share, .article .item-rating { display:none !important; }

/* =========================================================
   REDUCED MOTION
========================================================= */
@media(prefers-reduced-motion:reduce){
  .hanga-explore-card, .hanga-glow-icon, .nextinline-btn { transition:none !important; }
}
/* =========================================================
   ТЕГИ В ПОЛНОЙ СТАТЬЕ — финальный premium вид
========================================================= */
.article-details .tags,
.article-details ul.tags {
  display: flex !important;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  margin: 1rem auto;
  padding: 0;
  list-style: none;
  text-align: center;
}

.article-details .tags li,
.article-details ul.tags li {
  display: inline-flex;
}

.article-details .tags a,
.article-details ul.tags a,
.article-details .tags span.label,
.article-details ul.tags span.label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem 0.4rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  color: #fff !important;
  text-decoration: none;
  border-radius: 25px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Градиенты для тегов */
.article-details .tags li:nth-child(6n+1) a,
.article-details ul.tags li:nth-child(6n+1) a {
  background: linear-gradient(135deg, #ff9a9e, #fad0c4);
}

.article-details .tags li:nth-child(6n+2) a,
.article-details ul.tags li:nth-child(6n+2) a {
  background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
}

.article-details .tags li:nth-child(6n+3) a,
.article-details ul.tags li:nth-child(6n+3) a {
  background: linear-gradient(135deg, #fbc2eb, #a6c1ee);
}

.article-details .tags li:nth-child(6n+4) a,
.article-details ul.tags li:nth-child(6n+4) a {
  background: linear-gradient(135deg, #fddb92, #d1fdff);
}

.article-details .tags li:nth-child(6n+5) a,
.article-details ul.tags li:nth-child(6n+5) a {
  background: linear-gradient(135deg, #84fab0, #8fd3f4);
}

.article-details .tags li:nth-child(6n+6) a,
.article-details ul.tags li:nth-child(6n+6) a {
  background: linear-gradient(135deg, #fccb90, #d57eeb);
}

/* Иконка перед тегом */
.article-details .tags a::before,
.article-details ul.tags a::before {
  content: "\f02b";
  margin-right: 0.4rem;
  font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
}

/* Hover эффекты */
.article-details .tags a:hover,
.article-details ul.tags a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.article-details .tags a:active,
.article-details ul.tags a:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Скрытие стандартного inline списка тегов */
.article .tags.list-inline {
  display: none !important;
}

/* Мобильные стили */
@media (max-width: 768px) {
  .article-details .tags a,
  .article-details ul.tags a,
  .article-details .tags span.label,
  .article-details ul.tags span.label {
    padding: 0.3rem 0.7rem 0.3rem 0.5rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .article-details .tags,
  .article-details ul.tags {
    display: none !important;
  }
}
/* =========================================================
   РЕЗИНОВЫЙ ШАБЛОН ЧЕРЕЗ КЛАСС (только для десктопа)
========================================================= */
@media (min-width: 992px) {
  .template-fluid .container,
  .template-fluid .container-inner {
    width: 100%;          /* растягиваем на всю ширину экрана */
    max-width: 1600px;    /* ограничение на больших экранах */
    padding-left: 20px;   /* отступ слева */
    padding-right: 20px;  /* отступ справа */
    margin: 0 auto;       /* центрирование */
  }
}

/* =========================================================
   ВЕРХНЕЕ МЕНЮ HELIX
========================================================= */
#sp-header .sp-megamenu-wrapper {
  display: flex;
  align-items: center;
}

.sp-megamenu-parent {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sp-megamenu-parent > li {
  margin: 0;
}

.sp-megamenu-parent > li > a {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 15px !important;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.35px;
  color: var(--menu-text-color) !important;
  text-decoration: none !important;
  border-radius: 999px;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.sp-megamenu-parent > li > a::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 6px;
  left: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--menu-active-color), var(--menu-hover-color));
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.sp-megamenu-parent > li > a:hover,
.sp-megamenu-parent > li > a:focus {
  color: var(--menu-hover-color) !important;
  background: var(--menu-hover-bg);
  transform: translateY(-1px);
}

.sp-megamenu-parent > li > a:hover::after,
.sp-megamenu-parent > li > a:focus::after,
.sp-megamenu-parent > li.active > a::after,
.sp-megamenu-parent > li.current-item > a::after,
.sp-megamenu-parent > li.current-item.active > a::after {
  transform: scaleX(1);
}

.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li.current-item > a,
.sp-megamenu-parent > li.current-item.active > a {
  color: var(--menu-active-color) !important;
  background: var(--menu-active-bg);
  box-shadow:
    0 5px 14px rgba(236, 67, 15, 0.14),
    inset 0 0 0 1px rgba(236, 67, 15, 0.14);
}

.sp-megamenu-parent > li > a:active {
  transform: translateY(0);
}

#sp-menu .sp-column {
  gap: 14px;
  flex-wrap: nowrap;
}

#sp-menu .sp-megamenu-wrapper,
#sp-menu .gptranslate_wrapper,
#sp-menu .header-modules {
  flex-shrink: 0;
}

#sp-menu .header-modules .mod-finder input {
  max-width: 190px;
  border-radius: 999px;
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .sp-megamenu-parent > li > a {
    padding: 8px 10px !important;
    font-size: 13px;
    letter-spacing: 0.2px;
  }

  #sp-menu .sp-column {
    gap: 8px;
  }

  #sp-menu .header-modules .mod-finder input {
    max-width: 150px;
  }
}
/* =========================================
   NextInline — красные DOI / source blocks
========================================= */

.nextinline-loaded-article .js-note {
    position: relative;

    visibility: visible !important;
    opacity: 1 !important;

    transform: none !important;
    -webkit-transform: none !important;

    margin: 28px 0;
    padding: 18px 22px;

    border-radius: 14px;
    overflow: hidden;

    background: linear-gradient(
        180deg,
        #fff7f7 0%,
        #fff1f1 100%
    );

    border-left: 5px solid #d63b3b;

    box-shadow:
        0 2px 10px rgba(0,0,0,.04),
        0 8px 28px rgba(120,20,20,.08);

    font-size: 16px;
    line-height: 1.7;
    color: #4a1f1f;

    overflow-wrap: anywhere;
    word-break: normal;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

/* Hover */

.nextinline-loaded-article .js-note:hover {
    transform: translateY(-2px) !important;

    box-shadow:
        0 4px 18px rgba(0,0,0,.06),
        0 12px 36px rgba(120,20,20,.10);
}

/* Заголовок */

.nextinline-loaded-article .js-note strong {
    color: #8f1f1f;
    font-weight: 700;
}

/* DOI ссылки */

.nextinline-loaded-article .js-note a {
    color: #b32020 !important;

    font-weight: 700;

    text-decoration: underline !important;
    text-underline-offset: 3px;

    overflow-wrap: anywhere;
    word-break: break-word;

    transition: color .2s ease;
}

.nextinline-loaded-article .js-note a:hover {
    color: #7f1010 !important;
}

/* Иконка */

.nextinline-loaded-article .js-note i.fa {
    margin-right: 8px;
    color: #d63b3b;
    opacity: .95;
}

/* Divider */

.nextinline-divider-line {
    background: linear-gradient(
        to right,
        transparent,
        rgba(214,59,59,.45),
        transparent
    );
}

.nextinline-divider-text {
    color: #9a4d4d;
}

/* Mobile */

@media (max-width: 768px) {

    .nextinline-loaded-article .js-note {
        margin: 22px 0;
        padding: 15px 16px;

        border-radius: 12px;

        font-size: 15px;
        line-height: 1.65;
    }

    .nextinline-loaded-article .js-note i.fa {
        margin-right: 6px;
    }

    .nextinline-loaded-article .js-note a {
        display: inline;
    }
}
/* =========================================================
   MOBILE ARTICLE TYPOGRAPHY — improved readability
========================================================= */

@media (max-width: 768px) {

  body.view-article .article-details {
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  }

  body.view-article .article-details .article-can-edit,
  body.view-article .article-details .article-content,
  body.view-article .article-details .sppb-article-content,
  body.view-article .article-details .com-content-article__body {
    font-size: 18px;
    line-height: 1.72;
    font-weight: 400;
    color: #222;
    letter-spacing: -0.01em;
  }

  body.view-article .article-details p {
    margin-bottom: 24px;
  }

  body.view-article .article-details a {
    color: #d94f2b;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
  }

  body.view-article .article-details a:hover {
    color: #12948d;
  }

  body.view-article .article-details strong,
  body.view-article .article-details b {
    font-weight: 650;
  }

  body.view-article .article-info,
  body.view-article .article-details .article-info {
    font-size: 13px;
    gap: 14px;
    margin: 14px 0 18px;
  }
}

@media (max-width: 480px) {

  body.view-article .article-details .article-can-edit,
  body.view-article .article-details .article-content,
  body.view-article .article-details .sppb-article-content,
  body.view-article .article-details .com-content-article__body {
    font-size: 17px;
    line-height: 1.68;
  }

  body.view-article .article-details p {
    margin-bottom: 22px;
  }
}

/* =========================================================
   FINAL PREMIUM MOBILE READING
========================================================= */

@media (max-width: 768px) {

  body.view-article .article-details {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  body.view-article .article-details .article-header h1,
  body.view-article .article-details .article-header h2 {
    font-weight: 750 !important;
    letter-spacing: -0.035em;
    line-height: 1.08 !important;
    color: #181818;
  }

  body.view-article .article-details p {
    max-width: 36em;
  }

  body.view-article .article-details img {
    border-radius: 12px;
  }

  body.view-article .article-details .article-full-image {
    margin-bottom: 22px;
  }

  body.view-article .article-details .article-info {
    opacity: 0.82;
  }

  body.view-article .article-details {
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}
/* =========================================================
   HIDE ARTICLE IMAGE CAPTION ON MOBILE ONLY
========================================================= */
@media (max-width: 767.98px) {
  .article-details figcaption.caption {
    display: none !important;
  }
}
/* =========================================================
   OFFCANVAS MENU ACTIVE — HANGA
========================================================= */

.offcanvas-menu .mod-menu.nav-pills li.active > a,
.offcanvas-menu .mod-menu.nav-pills li.current > a,
.offcanvas-menu .mod-menu.nav-pills li.active > a:hover,
.offcanvas-menu .mod-menu.nav-pills li.current > a:hover {
    display: block !important;

    padding: 14px 18px !important;

    color: #fff !important;

    background: linear-gradient(135deg, #ff4b4b 0%, #c40000 100%) !important;

    border-radius: 14px !important;

    font-weight: 700 !important;

    box-shadow:
        0 4px 14px rgba(196, 0, 0, 0.22);

    transition: all .25s ease;
}

/* hover обычных пунктов */

.offcanvas-menu .mod-menu.nav-pills li:not(.active):not(.current) > a:hover {
    background: rgba(220,0,0,.07);
    border-radius: 14px;
}

/* пункты меню */

.offcanvas-menu .mod-menu.nav-pills li > a {
    display: block;
    padding: 14px 18px;
    color: #555 !important;
    font-size: 18px;
    font-weight: 600;
    transition: all .25s ease;
}

/* отступы */

.offcanvas-menu .mod-menu.nav-pills li {
    margin-bottom: 10px;
}
/* PDF button */

.pdf-export-button-wrap {
  text-align: center !important;
  margin: 18px 0 22px !important;
}

a.btn-pdf {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  padding: 7px 14px !important;

  font-size: 14px !important;
  font-weight: 700 !important;

  border-radius: 999px !important;

  box-shadow: 0 4px 10px rgba(196,0,0,.15) !important;
}

/* Hide ONLY on phones */

@media (max-width: 575px) {
  a.btn-pdf {
    display: none !important;
  }
}


/* =========================================================
   SEMANTIC LINK GRAPH — HANGAPRO
   Inline related articles
========================================================= */

ul.fields-container > li.field-entry.semlink-related-field {
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 0 !important;

    width: 100% !important;
    margin: 18px 0 24px !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Связанные материалы: */
ul.fields-container
> li.field-entry.semlink-related-field
> .field-label {
    display: inline !important;
    margin: 0 5px 0 0 !important;
    padding: 0 !important;

    color: #292929 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
    white-space: nowrap;
}

/* Значение поля */
ul.fields-container
> li.field-entry.semlink-related-field
> .field-value {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;

    flex: 1 1 auto;
    min-width: 0;
}

/* Semlink */
.semlink-related-field .semlink-field {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Список превращаем в обычную строку */
.semlink-related-field .semlink-field__list {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Каждый материал — inline */
.semlink-related-field .semlink-field__item {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Разделитель */
.semlink-related-field
.semlink-field__item:not(:last-child)::after {
    content: " | ";
    color: #999;
    margin: 0 4px;
    font-weight: 400;
}

/* Ссылки */
.semlink-related-field .semlink-field__link {
    display: inline !important;

    color: var(--accent-color, #ec430f) !important;

    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.55 !important;

    text-decoration: none !important;
}

/* Hover */
.semlink-related-field .semlink-field__link:hover {
    color: #12948d !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

/* Keyboard */
.semlink-related-field .semlink-field__link:focus-visible {
    outline: 2px solid var(--accent-color, #ec430f);
    outline-offset: 2px;
}
/* =========================================================
   SEMLINK — label + links в одной строке
========================================================= */

ul.fields-container
> li.field-entry.semantic-graph.semlink-related-field {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
}

/* Заголовок не занимает всю строку */
ul.fields-container
> li.field-entry.semantic-graph.semlink-related-field
> span.field-label {
    display: inline !important;

    width: auto !important;
    max-width: none !important;

    flex: 0 0 auto !important;

    margin: 0 6px 0 0 !important;
    padding: 0 !important;

    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
}

/* =========================================================
   SEMLINK — INLINE КАК СТАРЫЙ ARTICLES FIELD
========================================================= */

ul.fields-container > li.field-entry.semantic-graph.semlink-related-field {
    display: block !important;
    width: 100% !important;

    margin: 18px 0 24px !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    font-size: 16px !important;
    line-height: 1.55 !important;
}

/* Связанные материалы: */
ul.fields-container
> li.field-entry.semantic-graph.semlink-related-field
> span.field-label {
    display: inline !important;

    width: auto !important;
    max-width: none !important;

    margin: 0 4px 0 0 !important;
    padding: 0 !important;

    color: #292929 !important;

    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: inherit !important;
}

/* Значение продолжает ту же текстовую строку */
ul.fields-container
> li.field-entry.semantic-graph.semlink-related-field
> span.field-value {
    display: inline !important;

    width: auto !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}

/* Все внутренние элементы Semlink превращаем в inline */
.semlink-related-field .semlink-field,
.semlink-related-field .semlink-field__list,
.semlink-related-field .semlink-field__item {
    display: inline !important;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Разделитель между статьями */
.semlink-related-field
.semlink-field__item:not(:last-child)::after {
    content: " | ";
    margin: 0 5px;

    color: #999;
    font-weight: 400;
}

/* Ссылки */
.semlink-related-field .semlink-field__link {
    display: inline !important;

    color: var(--accent-color, #ec430f) !important;

    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: inherit !important;

    text-decoration: none !important;
}

/* Hover */
.semlink-related-field .semlink-field__link:hover {
    color: #12948d !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}
/* SEMLINK — убрать подчёркивание ссылок полностью */
.semlink-related-field .semlink-field__link,
.semlink-related-field .semlink-field__link:visited,
.semlink-related-field .semlink-field__link:hover,
.semlink-related-field .semlink-field__link:focus,
.semlink-related-field .semlink-field__link:active {
    text-decoration: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}
/* =========================================================
   PUBLICATION SOURCE — HANGAPRO
========================================================= */

.publication-source {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;

    margin: 28px 0;
    padding: 18px 22px;

    background:
        linear-gradient(
            180deg,
            #fff8f6 0%,
            #fff3ef 100%
        );

    border: 1px solid rgba(236, 67, 15, 0.10);
    border-left: 5px solid var(--accent-color, #ec430f);
    border-bottom: 0;
    border-radius: 14px;

    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.04),
        0 8px 28px rgba(120, 20, 20, 0.07);

    color: #4a2a24;

    font-size: 16px;
    line-height: 1.7;

    overflow-wrap: anywhere;
}

/* Красный круг с крестиком */
.publication-source__icon {
    flex: 0 0 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    margin-top: 1px;

    color: #fff;
    background: #cf3f27;

    border-radius: 50%;

    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

/* Текстовый блок */
.publication-source__content {
    flex: 1 1 auto;
    min-width: 0;
}

/* "Дополнительная публикация:" */
.publication-source__content strong {
    color: #b93422;

    font-weight: 700;
}

/* DOI */
.publication-source__doi,
.publication-source__doi:visited {
    color: #7e2c22 !important;

    font-weight: 700;

    text-decoration: none !important;
}

/* Hover */
.publication-source__doi:hover {
    color: var(--accent-color, #ec430f) !important;

    text-decoration: underline !important;
    text-underline-offset: 3px;
}

/* Focus */
.publication-source__doi:focus-visible {
    outline: 2px solid var(--accent-color, #ec430f);
    outline-offset: 3px;

    border-radius: 2px;
}

/* Лёгкий hover всей карточки */
.publication-source {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.publication-source:hover {
    transform: translateY(-1px);

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.05),
        0 10px 32px rgba(120, 20, 20, 0.09);
}