.article-detail-01 {
  --article-ink: #182b49;
  --article-muted: #64748b;
  --article-muted-strong: #40516d;
  --article-line: #dfe6ef;
  --article-line-strong: #cbd6e3;
  --article-surface: #fff;
  --article-soft: #f8fbfe;
  --article-soft-2: #f1f6fb;
  --article-primary: #1f4fb5;
  --article-primary-dark: #163b86;
  --article-accent: #14796d;.article-sidebar__card
  --article-highlight: #edf4ff;
  --article-shadow: 0 8px 24px rgba(24, 43, 73, .04);
  --article-radius: 18px;
  --article-gap: 28px;
  color: var(--article-ink);
  background: #fff;
}
.article-detail-01 .preloader { display: none !important; }
.article-detail-01 *,
.article-detail-01 *::before,
.article-detail-01 *::after { box-sizing: border-box; }
.article-detail-01 .wow,
.article-detail-01 .animated,
.article-detail-01 [style*="visibility: hidden"] {
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}
.article-detail-01 .main-header .navigation > li > a { font-weight: 800; }
.article-detail-01 .header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.article-detail-01 .header-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 50%;
  background: #fff;
  color: var(--article-primary);
  font-size: 16px;
}
.article-detail-01 .header-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--article-primary), #1754c6);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 18px 40px rgba(13, 61, 145, .22);
}
.article-detail-01 .header-submit-btn:hover { color: #fff; }
.article-shell { padding: 20px 0 88px; background: #f5f5f5; }
/* Scoped strictly to article pages — .article-detail-01 body class + .article-shell
   only render on article_detail.html, so this won't bleed into journal home / archive / pages. */
/* Match Bootstrap xxl container width used by .journal-subnav so the
   article frame aligns with the journal subnav above (JETS title bar). */
body.article-detail-01 .article-shell .container { width: min(1460px, calc(100% - 28px)); }
body.article-detail-01 .article-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 320px;
  justify-content: center;
  gap: 20px;
  align-items: stretch;
  padding-bottom: 140px;
}
/* Cegah grid blowout — tanpa min-width:0, konten intrinsic-wide
   (KaTeX matrix, tabel banyak kolom, URL panjang) membuat track
   tengah membengkak dan menabrak kolom widget kanan. */
body.article-detail-01 .article-main,
body.article-detail-01 .article-sidebar,
body.article-detail-01 .article-actions { min-width: 0; }
.article-card {
  border: 1px solid var(--article-line);
  border-radius: var(--article-radius);
  background: #fff;
  box-shadow: var(--article-shadow);
}
.article-sidebar,
.article-actions {
  position: static;
  top: auto;
}
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: stretch;
  min-height: 0;
}
.article-sidebar__sticky {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 112px);
  overflow: auto;
}
.article-sidebar__sticky::-webkit-scrollbar {
  width: 6px;
}
.article-sidebar__sticky::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(100, 116, 139, .22);
}
.article-actions {
  display: block;
  margin-top: 0;
  position: static;
  align-self: start;
}
.article-main {
  align-self: start;
}
.article-sidebar__card,
.article-sidebar__inner,
.article-actions__inner {
  display: flex;
  flex-direction: column;
  max-height: inherit;
}
.article-sidebar__card {
  border: 1px solid var(--article-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--article-shadow);
  overflow: hidden;
  width: 100%;
}
.article-sidebar__head,
.article-actions__head,
.article-main__head { padding: 22px 24px 0; }
.article-sidebar__feature {
  padding: 22px 24px 24px;
}
.article-sidebar__feature-title {
  margin: 0 0 18px;
  color: var(--article-ink);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.article-sidebar__feature-media {
  overflow: hidden;
  border-radius: 14px;
  background: var(--article-soft);
  aspect-ratio: 1.3 / 1;
  margin-bottom: 16px;
}
.article-sidebar__feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-sidebar__feature-name {
  margin: 0;
  color: var(--article-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.article-sidebar__feature-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.article-sidebar__feature-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: auto;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--article-muted);
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
}
.article-sidebar__feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: rgba(31, 79, 181, .06);
  color: var(--article-primary);
  font-size: 11px;
}
.article-sidebar__feature-meta-item strong {
  color: var(--article-ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.article-sidebar__feature-meta-item span {
  display: none;
}
.article-sidebar__title,
.article-actions__title {
  margin: 0;
  color: var(--article-ink);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.article-sidebar__body,
.article-actions__body {
  padding: 18px 18px 20px;
  overflow: visible;
}
.article-sidebar__body {
  padding-top: 14px;
}
.article-sidebar__authors {
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--article-line);
}
.article-sidebar__authors-label {
  display: block;
  margin-bottom: 10px;
  color: var(--article-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.article-sidebar__authors-list {
  display: grid;
  gap: 6px;
}
.article-sidebar__author-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 10px;
  color: var(--article-muted-strong);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.4;
  transition: background-color .2s ease, color .2s ease;
}
.article-sidebar__author-link::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: rgba(31, 79, 181, .24);
}
.article-sidebar__author-link:hover {
  background: var(--article-soft);
  color: var(--article-primary);
}
.article-sidebar__body::-webkit-scrollbar,
.article-sidebar__body::-webkit-scrollbar { width: 8px; }
.article-sidebar__body::-webkit-scrollbar-thumb,
.article-sidebar__body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(97, 116, 141, .25);
}
.article-mobile-toggle {
  display: none;
  width: calc(100% - 36px);
  margin: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--article-line);
  border-radius: 16px;
  background: var(--article-soft);
  color: var(--article-ink);
  font-size: 14px;
  font-weight: 800;
}
.article-mobile-toggle i { transition: transform .24s ease; }
.article-mobile-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.article-toc,
.article-toc__children {
  margin: 0;
  padding: 0;
  list-style: none;
}
.article-toc li + li { margin-top: 5px; }
.article-toc a {
  display: block;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--article-muted-strong);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.article-toc a:hover,
.article-toc a.is-active {
  background: var(--article-highlight);
  color: var(--article-primary);
  transform: none;
}
.article-toc__children {
  margin: 8px 0 6px 14px;
  padding-left: 14px;
  border-left: 1px solid var(--article-line);
}
.article-toc__children a {
  padding: 7px 10px;
  color: var(--article-muted);
  font-size: 12.5px;
}
.article-main { overflow: hidden; }
.article-main__head { padding: 30px 42px 0; }
.article-main__body { padding: 0 42px 44px; }
.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: var(--article-muted);
  font-size: 12.5px;
  font-weight: 700;
}
.article-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.article-breadcrumb li:not(:last-child)::after {
  content: "/";
  color: #9aa8ba;
}
.article-breadcrumb a { color: inherit; }
.article-label-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.article-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--article-line);
  border-radius: 999px;
  background: #fff;
  color: var(--article-primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.article-title {
  margin: 0;
  color: var(--article-ink);
  font-size: clamp(34px, 3.3vw, 58px);
  line-height: 1.08;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.article-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
  padding: 16px 18px;
  border: 1px solid var(--article-line);
  border-radius: 14px;
  background: var(--article-soft);
}
.article-meta-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--article-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.article-meta-item strong,
.article-meta-item a {
  color: var(--article-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  word-break: break-word;
}
.article-meta-item a { color: var(--article-primary); }
.article-authors {
  margin-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--article-line);
}
.article-authors__list {
  display: grid;
  gap: 0;
}
.article-author {
  padding: 18px 2px;
  border-bottom: 1px solid var(--article-line);
  border-radius: 0;
  background: transparent;
}
.article-author:last-child { border-bottom: 0; }
.article-author strong {
  display: block;
  color: var(--article-ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}
.article-author p {
  margin: 6px 0 0;
  color: var(--article-muted);
  font-size: 13.5px;
  line-height: 1.65;
}
.article-author__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.article-author__links a {
  color: var(--article-primary);
  font-size: 12.5px;
  font-weight: 800;
}
.article-section { padding: 34px 0 0; }
.article-section + .article-section {
  border-top: 1px solid var(--article-line);
  margin-top: 34px;
}
.article-section__title {
  margin: 0 0 18px;
  color: var(--article-ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.article-section__intro,
.article-prose,
.article-reference-list,
.article-license,
.article-citation-box,
.article-keywords {
  color: var(--article-muted-strong);
  font-size: 17px;
  line-height: 1.9;
}
.article-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}
.article-keywords span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--article-line);
  border-radius: 999px;
  background: var(--article-soft);
  color: var(--article-primary-dark);
  font-size: 13px;
  font-weight: 800;
}
.article-subsection { margin-top: 24px; }
.article-subsection__title {
  margin: 0 0 12px;
  color: var(--article-ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.article-figure,
.article-table {
  margin: 28px 0;
  padding: 18px;
  border: 1px solid var(--article-line);
  border-radius: 14px;
  background: #fff;
}
.article-figure img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}
.article-figure__placeholder,
.article-table__placeholder {
  display: grid;
  place-items: center;
  min-height: 240px;
  border: 1px dashed var(--article-line-strong);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(13, 61, 145, .05), rgba(20, 121, 109, .05)), #f8fbff;
  color: var(--article-muted);
  text-align: center;
  padding: 24px;
  font-size: 15px;
  font-weight: 700;
}
.article-figure figcaption,
.article-table figcaption {
  margin-top: 14px;
  color: var(--article-muted);
  font-size: 14px;
  line-height: 1.65;
}
.article-table table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
}
.article-table th,
.article-table td {
  padding: 14px 16px;
  border: 1px solid var(--article-line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.6;
}
.article-table th {
  background: var(--article-soft);
  color: var(--article-ink);
  font-weight: 800;
}
.article-reference-list {
  margin: 0;
  padding-left: 22px;
}
.article-reference-list li + li { margin-top: 14px; }
.article-license,
.article-citation-box {
  padding: 18px 20px;
  border: 1px solid var(--article-line);
  border-radius: 14px;
  background: var(--article-soft);
}
.article-citation-box strong,
.article-license strong { color: var(--article-ink); }
.article-actions__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-action-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.article-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 40px;
  padding: 2px 5px;
  border: 1px solid var(--article-line);
  border-radius: 9px;
  background: #fff;
  color: var(--article-ink);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.article-btn i {
  font-size: 12px;
  line-height: 1;
}
.article-btn:hover {
  transform: none;
  border-color: rgba(13, 61, 145, .22);
  box-shadow: none;
  color: var(--article-primary);
}
.article-btn--primary {
  border-color: transparent;
  background: var(--article-primary);
  color: #fff;
  box-shadow: none;
}
.article-btn--primary:hover { color: #fff; }
.article-widget {
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid var(--article-line);
  border-radius: 0;
  background: transparent;
}
.article-widget:first-of-type { border-top: 0; padding-top: 4px; }
.article-widget__title {
  margin: 0 0 8px;
  color: var(--article-ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.article-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.article-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 10px 8px;
  border: 1px solid rgba(223, 230, 239, .9);
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdff 0%, #f6f9fd 100%);
  text-align: center;
}
.article-metric strong {
  display: block;
  color: var(--article-ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.article-metric span {
  display: block;
  margin-top: 7px;
  color: var(--article-muted);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.35;
}
.article-search-form {
  display: flex;
  gap: 10px;
}
.article-search-form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--article-line);
  border-radius: 9px;
  background: #fff;
  color: var(--article-ink);
  font-size: 12.5px;
  font-weight: 700;
}
.article-search-form button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 9px;
  background: var(--article-primary);
  color: #fff;
}
.article-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.article-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--article-line);
  border-radius: 999px;
  background: var(--article-soft);
  color: var(--article-primary-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.article-certificate__media {
  display: grid;
  place-items: center;
  min-height: 130px;
  border: 1px dashed var(--article-line-strong);
  border-radius: 12px;
  background: var(--article-soft);
  color: var(--article-muted);
  text-align: center;
  padding: 18px;
  font-size: 14px;
  font-weight: 700;
}
.article-certificate__media img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}
.article-link-list {
  display: grid;
  gap: 8px;
}
.article-link-card {
  display: block;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--article-line);
  border-radius: 0;
  background: transparent;
  transition: none;
}
.article-link-card:last-child { border-bottom: 0; }
.article-link-card:hover {
  transform: none;
  border-color: var(--article-line);
  box-shadow: none;
}
.article-link-card strong {
  display: block;
  color: var(--article-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}
.article-link-card span {
  display: block;
  margin-top: 6px;
  color: var(--article-muted);
  font-size: 11.5px;
  line-height: 1.55;
}
.article-cite-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .56);
}
.article-cite-modal.is-open { display: flex; }
.article-cite-modal__dialog {
  width: min(720px, 100%);
  border: 1px solid rgba(190, 205, 221, .8);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 40px 90px rgba(15, 23, 42, .22);
  overflow: hidden;
}
.article-cite-modal__head,
.article-cite-modal__body { padding: 22px 24px; }
.article-cite-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--article-line);
}
.article-cite-modal__head h3 {
  margin: 0;
  color: var(--article-ink);
  font-size: 22px;
  font-weight: 900;
}
.article-cite-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--article-line);
  border-radius: 50%;
  background: #fff;
  color: var(--article-muted);
  font-size: 16px;
}
.article-cite-modal__body {
  display: grid;
  gap: 16px;
}
.article-cite-format {
  padding: 16px 18px;
  border: 1px solid var(--article-line);
  border-radius: 18px;
  background: var(--article-soft);
}
.article-cite-format h4 {
  margin: 0 0 10px;
  color: var(--article-ink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.article-cite-format p,
.article-cite-format pre {
  margin: 0;
  color: var(--article-muted-strong);
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}
.article-cite-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.article-cite-modal__actions .article-btn {
  width: auto;
  min-width: 160px;
}
@media (max-width: 1279px) {
  body.article-detail-01 .article-grid {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    padding-bottom: 80px;
  }
  body.article-detail-01 .article-sidebar {
    grid-column: 1;
    position: static;
    order: 1;
    max-height: none;
  }
  body.article-detail-01 .article-main {
    grid-column: 2;
    order: 2;
  }
  body.article-detail-01 .article-actions {
    grid-column: 1 / -1;
    order: 3;
    top: auto;
  }
  body.article-detail-01 .article-main__head,
  body.article-detail-01 .article-main__body {
    padding-left: 32px;
    padding-right: 32px;
  }
  body.article-detail-01 .article-title {
    font-size: clamp(28px, 3vw, 40px);
  }
}
@media (max-width: 991px) {
  body.article-detail-01 {
    zoom: 1 !important;
  }
  @supports not (zoom: 1) {
    body.article-detail-01 {
      width: auto !important;
      transform: none !important;
    }
  }
  body.article-detail-01 .article-shell { padding-top: 24px; }
  body.article-detail-01 .article-grid { grid-template-columns: minmax(0, 1fr); }
  body.article-detail-01 .article-sidebar,
  body.article-detail-01 .article-main,
  body.article-detail-01 .article-actions {
    grid-column: 1 / -1;
  }
  body.article-detail-01 .article-main    { order: 1; }
  body.article-detail-01 .article-sidebar { order: 2; }
  body.article-detail-01 .article-actions { order: 3; }
  body.article-detail-01 .article-actions,
  body.article-detail-01 .article-sidebar,
  body.article-detail-01 .article-sidebar__sticky {
    position: static;
    max-height: none;
  }
  body.article-detail-01 .article-sidebar__body {
    display: none;
    overflow: visible;
  }
  body.article-detail-01 .article-sidebar.is-open .article-sidebar__body { display: block; }
  body.article-detail-01 .article-mobile-toggle { display: inline-flex; }
  body.article-detail-01 .article-main__head,
  body.article-detail-01 .article-main__body {
    padding-left: 26px;
    padding-right: 26px;
  }
  body.article-detail-01 .article-title {
    font-size: clamp(26px, 4.4vw, 34px);
    line-height: 1.18;
  }
  body.article-detail-01 .article-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  /* Lock horizontal scroll di level paling tinggi — cegah ANY child
     yang lebar lebih dari viewport (tabel lebar, formula KaTeX, dll)
     bikin halaman bisa di-scroll horizontal & geser konten ke kiri. */
  html,
  body.article-detail-01 { overflow-x: hidden !important; max-width: 100vw; }
  body.article-detail-01 .page-wrapper { overflow-x: hidden; max-width: 100vw; min-width: 0; }

  .article-detail-01 .main-box { padding-right: 14px; padding-left: 14px; }
  .article-detail-01 .header-actions { display: none; }
  .article-shell { padding: 12px 0 56px; overflow-x: hidden; max-width: 100vw; }
  /* Specificity bump (body.article-detail-01) supaya menang lawan
     rule dasar `body.article-detail-01 .article-shell .container`. */
  body.article-detail-01 .article-shell .container {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
  body.article-detail-01 .article-grid {
    gap: 14px;
    padding-bottom: 24px;
    padding-left: 0;
    padding-right: 0;
  }

  /* Flat look di mobile — hilangkan border/shadow/radius card
     supaya konten artikel tidak terlihat "double frame" dan lebih
     menyerupai reader view native. Card sidebar/actions tetap pakai
     visual card karena memang fungsinya widget terpisah. */
  .article-main.article-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }
  .article-main__head,
  .article-main__body {
    padding-left: 0;
    padding-right: 0;
  }
  .article-sidebar__feature,
  .article-sidebar__head,
  .article-actions__head {
    padding-left: 16px;
    padding-right: 16px;
  }
  /* Pastikan main + sidebar tidak punya margin tersembunyi yang
     menggeser konten keluar viewport */
  body.article-detail-01 .article-main,
  body.article-detail-01 .article-sidebar,
  body.article-detail-01 .article-actions {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    min-width: 0;
  }

  /* Breadcrumb sering overflow di layar sempit — biar wrap & lebih compact */
  .article-breadcrumb { flex-wrap: wrap; gap: 4px 6px; font-size: 13px; }

  .article-title { font-size: 24px; line-height: 1.25; }
  .article-meta-inline { font-size: .85rem; }
  .article-meta-grid,
  .article-metrics { grid-template-columns: 1fr; }
  .article-cite-modal__head,
  .article-cite-modal__body { padding: 18px; }
  .article-section__title { font-size: 20px; }
  .article-subsection__title { font-size: 17px; }

  /* Cegah long-word overflow (DOI, URL, ORCID id) memperlebar grid */
  .article-author__affiliation,
  .article-author__email,
  .article-author__id-link,
  .reference-doi,
  .article-keywords-text { word-break: break-word; overflow-wrap: anywhere; }
}

/* ===================================================================
   Ported from edupress/article_detail.html inline <style> block.
   Originally from articles_marker.html (lines ~353-438 + 547-569).
   =================================================================== */

/* Compact title + inline meta (override default edupress h1) */
.article-title.article-title--compact {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.5rem;
}
@media (min-width: 992px) {
  .article-title.article-title--compact { font-size: 1.7rem; }
}
.article-meta-inline {
  font-size: 0.9rem;
  color: #4b5563;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
}
.article-meta-inline strong { color: #1f2937; font-weight: 600; }
.article-meta-inline a { color: #274aab; text-decoration: none; }
.article-meta-inline a:hover { text-decoration: underline; }
.article-meta-inline__sep { color: #9ca3af; }

/* Tighten article head + author block + sections */
.article-main__head { padding-bottom: 1rem; }
.article-authors { margin-top: 1rem; }
.article-authors__list { display: flex; flex-direction: column; gap: 0.85rem; }
.article-author { padding: 0; margin: 0; }
.article-author strong { font-size: 1rem; }
.article-author p { margin: 0.15rem 0 0.25rem; font-size: 0.88rem; color: #6b7280; }
.article-author__affiliation { line-height: 1.5; }
.article-author__email { color: #2d8fa3; text-decoration: none; }
.article-author__email:hover { text-decoration: underline; }
.article-author__links { font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 0.25rem; }
.article-author__links a { color: #274aab; text-decoration: none; }
.article-authors__heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 0.65rem;
}

.article-main__body { padding-top: 0.5rem; }
/* Vertical rhythm: every top-level section gets the same outer spacing
   so Abstract / Keywords / body content / References / License read as
   one consistent stack rather than visually random gaps. */
.article-section { margin: 2rem 0 1.5rem; }
.article-section:first-child { margin-top: 0; }
/* Section title unified with body H1 (Phase 2) — Abstract, Keywords,
   References, License share the same scale as Introduction/Methods/etc.
   coming from the Marker body, so hierarchy stays predictable. */
.article-section__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin: 0 0 0.85rem;
  letter-spacing: -0.005em;
}
.article-section__intro,
.article-section__intro p {
  margin: 0 0 0.95rem;
  line-height: 1.7;
  font-size: 1rem;
  color: #1f2937;
  /* Justify + auto-hyphens to match .article-body-jats p so Abstract
     and the body content (Introduction onwards) read as one coherent
     typographic system instead of two competing styles. */
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.article-section__intro p:last-child { margin-bottom: 0; }

/* TOC scroll + collapsible */
#articleTocPanel {
  max-height: calc(100vh - 140px);
  min-height: 700px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(100,116,139,.3) transparent;
}
#articleTocPanel::-webkit-scrollbar { width: 6px; }
#articleTocPanel::-webkit-scrollbar-thumb {
  background: rgba(100,116,139,.3); border-radius: 999px;
}
.article-toc li { position: relative; }
.article-toc__toggle {
  position: absolute;
  left: -6px;
  top: 9px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  font-size: 10px;
  padding: 0;
  border-radius: 4px;
  transition: transform .2s, background .15s;
}
.article-toc__toggle:hover { background: rgba(100,116,139,.12); color: #274aab; }
.article-toc__toggle::before {
  content: "▾";
  display: inline-block;
  transition: transform .2s;
}
.article-toc li.is-collapsed > .article-toc__toggle::before { transform: rotate(-90deg); }
.article-toc li.is-collapsed > .article-toc__children { display: none; }
.article-toc li.has-children > a { padding-left: 18px; }

/* Keywords as plain inline text — matches body typography so the
   section reads consistently with Abstract + Body content. */
.article-keywords-text {
  font-size: 1rem;
  line-height: 1.7;
  color: #1f2937;
  margin: 0;
}

/* Inline link — used for OpenAlex keyword / topic / author-id links.
   Plain text styling, just colored + underlined on hover. Stays clean
   (no pill, no background) per editor preference. */
.article-inline-link {
  color: var(--color-primary, #274aab);
  text-decoration: none;
  border-bottom: 1px solid rgba(39, 74, 171, 0.25);
}
.article-inline-link:hover {
  color: var(--color-primary-dark, #1e3a8a);
  border-bottom-color: currentColor;
  text-decoration: none;
}
.article-inline-link--muted {
  color: #4b5563;
  border-bottom-color: rgba(75, 85, 99, 0.3);
}
.article-inline-link--muted:hover {
  color: var(--color-primary, #274aab);
  border-bottom-color: currentColor;
}

/* Topics inline layout: primary topic on one line followed by a quiet
   taxon breadcrumb (subfield › field › domain), related topics on the
   next line. */
.article-topics-text { display: flex; flex-direction: column; gap: 0.45rem; }
.article-topics-text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #1f2937;
}
.article-topics-text__taxon {
  margin-left: 0.5rem;
  font-size: 0.85rem;
  color: #6b7280;
}
.article-topics-text__sep { color: #9ca3af; }
.article-topics-text__related {
  font-size: 0.9rem;
  color: #4b5563;
}
.article-topics-text__related-label {
  font-weight: 600;
  color: #6b7280;
  margin-right: 0.25rem;
}

/* Author ORCID / OpenAlex IDs — plain inline text links, separated by
   a middle dot. No background, no border. */
.article-author__id-link {
  color: var(--color-primary, #274aab);
  text-decoration: none;
  border-bottom: 1px solid rgba(39, 74, 171, 0.25);
}
.article-author__id-link:hover {
  color: var(--color-primary-dark, #1e3a8a);
  border-bottom-color: currentColor;
}
.article-author__id-sep {
  margin: 0 0.4rem;
  color: #9ca3af;
}

/* Research Intelligence section — OpenAlex enrichment panel above
   references. Subsection rhythm matches the article body but with a
   quieter visual style so it reads as supplementary info. */
.article-research-intel { padding-top: 1rem; }
.article-research-intel__source {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: #6b7280;
}
.article-research-intel__refresh {
  margin-left: 0.4rem;
  color: #10b981;
  font-size: 0.78rem;
  font-weight: 500;
  animation: ri-fade-in 0.3s ease-out;
}
@keyframes ri-fade-in {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}
.ri-subsection { margin-bottom: 1.5rem; }
.ri-subsection:last-child { margin-bottom: 0; }
.ri-subsection__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #e5e7eb;
}

/* Metrics grid — flagship KPI cards. */
.ri-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem;
}
.ri-metric {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.75rem 0.85rem;
}
.ri-metric__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.1;
}
.ri-metric__value--text {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  padding-top: 0.2rem;
}
.ri-metric__unit {
  font-size: 0.7em;
  font-weight: 500;
  color: #6b7280;
  margin-left: 0.1rem;
}
.ri-metric__label {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
}
.ri-metric__sub {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 0.1rem;
}

/* List style used across Topics / Related / Semantic / Institution. */
.ri-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ri-list li {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #1f2937;
}
.ri-list__meta {
  color: #6b7280;
  font-size: 0.82rem;
  margin-left: 0.5rem;
}
.ri-list__sub {
  color: #6b7280;
  font-size: 0.82rem;
  margin-top: 0.15rem;
}
.ri-list--related li { padding-bottom: 0.55rem; border-bottom: 1px dashed #eef2f7; }
.ri-list--related li:last-child { border-bottom: 0; padding-bottom: 0; }
.ri-list--institutions li { padding: 0.4rem 0; }

/* Citation chart — CSS bar chart, color preset aware. */
.ri-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 140px;
  padding: 0.5rem 0 2.2rem;
  border-bottom: 1px solid #e5e7eb;
  overflow-x: auto;
}
.ri-chart__col {
  flex: 1 0 auto;
  min-width: 32px;
  max-width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  position: relative;
}
.ri-chart__bar {
  width: 70%;
  min-height: 1px;
  background: var(--color-primary, #274aab);
  border-radius: 3px 3px 0 0;
  transition: background-color 0.15s;
}
.ri-chart__col:hover .ri-chart__bar {
  background: var(--color-primary-dark, #1e3a8a);
}
.ri-chart__count {
  font-size: 0.72rem;
  color: #4b5563;
  margin-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}
.ri-chart__year {
  position: absolute;
  bottom: -1.6rem;
  font-size: 0.72rem;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}

/* ── Semantic Profile (AI-classified research signals) ──
   Card holds two halves: Core Domains rendered as horizontal score
   bars (top 3 concepts) and Secondary Topics rendered as compact
   pills (rest). Aesthetic target: lightweight modern publisher
   dashboard — minimal borders, soft gradient fill, subtle motion. */
.ri-subsection--semantic .ri-subsection__title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ri-subsection__hint {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.7rem;
  font-weight: 500;
  color: #9ca3af;
}
.ri-semantic-card {
  background:
    linear-gradient(180deg, rgba(249, 250, 251, 0.65), rgba(255, 255, 255, 0.35));
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.ri-semantic-section__label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

/* Core Domains — horizontal bars */
.ri-semantic-bars {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.ri-semantic-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.ri-semantic-row__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.ri-semantic-row__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  letter-spacing: -0.005em;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.ri-semantic-row__name:hover {
  color: var(--color-primary, #274aab);
  border-bottom-color: rgba(39, 74, 171, 0.3);
}
.ri-semantic-row__score {
  font-size: 0.82rem;
  font-weight: 600;
  color: #4b5563;
  font-variant-numeric: tabular-nums;
}
.ri-semantic-row__meta {
  font-size: 0.7rem;
  color: #9ca3af;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}
.ri-semantic-bar {
  height: 5px;
  background: rgba(17, 24, 39, 0.05);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.ri-semantic-bar__fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--color-primary, #274aab),
    var(--color-secondary, #f99d1c)
  );
  box-shadow: 0 0 10px rgba(39, 74, 171, 0.18);
  animation: ri-bar-grow 0.95s cubic-bezier(.16, 1, .3, 1) forwards;
}
@keyframes ri-bar-grow {
  from { width: 0; }
  to   { width: var(--w, 0%); }
}
.ri-semantic-row:hover .ri-semantic-bar__fill {
  box-shadow: 0 0 14px rgba(39, 74, 171, 0.28);
}
/* Topics row variants — primary topic shows a quiet badge + taxon
   breadcrumb under the bar. */
.ri-semantic-row__name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.ri-semantic-row__badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary, #274aab);
  background: rgba(39, 74, 171, 0.1);
  border-radius: 999px;
  line-height: 1.2;
}
.ri-semantic-row--primary .ri-semantic-row__name {
  color: var(--color-primary-dark, #1e3a8a);
}
.ri-semantic-row__taxon {
  margin-top: 0.3rem;
  font-size: 0.74rem;
  color: #9ca3af;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
  align-items: center;
}
.ri-semantic-row__taxon-link {
  color: #6b7280;
  text-decoration: none;
  border-bottom: 1px dotted rgba(107, 114, 128, 0.4);
  transition: color 0.15s, border-color 0.15s;
}
.ri-semantic-row__taxon-link:hover {
  color: var(--color-primary, #274aab);
  border-bottom-color: currentColor;
}
.ri-semantic-row__taxon-sep { color: #d1d5db; font-weight: 700; }

/* Secondary Topics — compact pills */
.ri-semantic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.45rem;
}
.ri-semantic-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.82rem;
  line-height: 1.2;
  color: #374151;
  text-decoration: none;
  background: rgba(243, 244, 246, 0.65);
  border: 1px solid rgba(229, 231, 235, 0.85);
  border-radius: 999px;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s,
              box-shadow 0.18s, transform 0.18s;
}
.ri-semantic-tag:hover {
  background: rgba(39, 74, 171, 0.08);
  color: var(--color-primary, #274aab);
  border-color: rgba(39, 74, 171, 0.22);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(39, 74, 171, 0.1);
  transform: translateY(-1px);
  opacity: 1 !important;
}
.ri-semantic-tag__name { font-weight: 500; }
.ri-semantic-tag__score {
  font-size: 0.72rem;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
  padding-left: 0.3rem;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}
.ri-semantic-tag:hover .ri-semantic-tag__score {
  color: var(--color-primary, #274aab);
  border-left-color: rgba(39, 74, 171, 0.2);
}

@media (max-width: 640px) {
  .ri-semantic-card { padding: 0.9rem 1rem; }
  .ri-semantic-tag { font-size: 0.78rem; padding: 0.24rem 0.55rem; }
  .ri-semantic-row__name { font-size: 0.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ri-semantic-bar__fill { animation: none; width: var(--w, 0%); }
  .ri-semantic-tag:hover { transform: none; }
}

/* Sidebar widget slot — vertical gap above each widget so it sits
   comfortably below the Article Tools card. Empty slot collapses
   (no chrome). Per-widget styling comes from each widget's own
   lib/widgets/{name}/style.css, but we enforce containment here
   so a misbehaving widget can't push past the sidebar column or
   overflow horizontally. */
.article-widget-slot {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  min-width: 0;          /* allow flex item to shrink below content size */
  max-width: 100%;
  box-sizing: border-box;
  position: static !important;
  top: auto !important;
}
/* Force non-sticky on every widget card inside the right column — overrides
   any per-widget style.css that might set position:sticky/fixed. */
body.article-detail-01 .article-actions,
body.article-detail-01 .article-actions > *,
body.article-detail-01 .article-widget-slot > * {
  position: static !important;
  top: auto !important;
  margin-top: -0px;
}
.article-widget-slot:not(:empty) { margin-top: 1rem; }

/* Defensive containment for every direct widget child:
   - never wider than the sidebar column
   - break long URLs / titles so they don't blow out the layout
   - media auto-fit */
.article-widget-slot > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.article-widget-slot img,
.article-widget-slot svg,
.article-widget-slot iframe,
.article-widget-slot video,
.article-widget-slot canvas {
  max-width: 100%;
  height: auto;
}
.article-widget-slot a { word-break: break-word; }

/* Citation timeline table */
.ri-timeline {
  width: auto;
  min-width: 220px;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.ri-timeline th,
.ri-timeline td {
  padding: 0.35rem 1rem 0.35rem 0;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
}
.ri-timeline th {
  font-weight: 600;
  color: #6b7280;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom-color: #e5e7eb;
}
.ri-timeline td { color: #1f2937; font-variant-numeric: tabular-nums; }

/* Cited-by inline link in article meta header */
.article-meta-inline__cited {
  color: #b45309;
  text-decoration: none;
  font-weight: 500;
}
.article-meta-inline__cited:hover { color: #92400e; text-decoration: underline; }
.article-meta-inline__cited strong { color: inherit; }

/* References block — Phase 4 polish: tighter hanging indent, smaller
   but darker text, hover affordance per item. Hierarchy matches the
   unified .article-section__title scale for consistent rhythm. */
.article-references { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #e5e7eb; }
.article-references .references-heading {
  font-size: 1.35rem; font-weight: 700; margin: 0 0 1.1rem;
  color: #111827; line-height: 1.3; letter-spacing: -0.005em;
}
/* Bracketed numbering ([1], [2], ...) via CSS counter so the prefix
   is part of the layout instead of relying on list-style. Gives us
   hanging indent that visually separates the marker from the text. */
.article-references .references-list {
  list-style: none;
  counter-reset: ref-counter;
  padding: 0;
  margin: 0;
}
.article-references .reference-item {
  counter-increment: ref-counter;
  position: relative;
  padding: 0.15rem 0.4rem 0.55rem 2.4rem;
  margin-bottom: 0.15rem;
  line-height: 1.6;
  color: #1f2937;
  font-size: 0.92rem;
  border-radius: 3px;
  transition: background-color 0.15s;
}
.article-references .reference-item::before {
  content: "[" counter(ref-counter) "]";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 2.2rem;
  color: #6b7280;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: left;
}
.article-references .reference-item:hover {
  background: rgba(243, 244, 246, 0.6);
}
.article-references .reference-text { display: inline; }
.article-references .reference-doi {
  display: inline-flex; align-items: center; gap: 0.25rem;
  margin-left: 0.4rem; padding: 0.12rem 0.5rem;
  background: #eef2ff; color: #3730a3; border-radius: 4px;
  font-size: 0.76rem;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  text-decoration: none; vertical-align: baseline;
  white-space: nowrap;
}
.article-references .reference-doi:hover { background: #c7d2fe; text-decoration: none; }
.article-references .reference-doi__label { font-weight: 600; opacity: 0.7; }
.article-references .reference-doi__value { word-break: break-all; }
.article-references .reference-item--matched .reference-text { color: #111827; }

/* Body tables (JATS-rendered) */
.article-body-jats table,
.article-body-jats .table-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #1f2937;
  background: #fff;
}
.article-body-jats .table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
/* Tabel telanjang (tanpa wrapper .table-wrap) dari Marker output —
   block + overflow-x:auto agar tabel lebar bisa di-scroll, tidak
   mendorong kolom artikel melebar. */
.article-body-jats > table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* KaTeX display math: matrix / persamaan multibaris yang lebih lebar
   dari kolom artikel di-scroll horizontal, bukan menabrak kolom kanan. */
.article-body-jats .katex-display {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem 0;
}
.article-body-jats .katex-display > .katex { white-space: nowrap; }
.article-body-jats .katex { max-width: 100%; }

/* Defensif: string tanpa spasi (URL, DOI inline, persamaan teks panjang)
   harus boleh putus daripada memaksa lebar kolom. */
.article-body-jats { overflow-wrap: anywhere; }
.article-body-jats table th,
.article-body-jats table td {
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.75rem;
  vertical-align: top;
  text-align: left;
}
.article-body-jats table th {
  background: #f3f4f6;
  font-weight: 600;
  color: #111827;
  border-bottom: 2px solid #9ca3af;
}
.article-body-jats table tbody tr:nth-child(even) td { background: #fafafa; }
.article-body-jats table tbody tr:hover td { background: #eef2ff; }
.article-body-jats table caption {
  caption-side: bottom;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  font-style: italic;
  color: #4b5563;
  text-align: left;
}
.article-body-jats table td p,
.article-body-jats table th p { margin: 0 0 0.35rem; }
.article-body-jats table td p:last-child,
.article-body-jats table th p:last-child { margin-bottom: 0; }
.article-body-jats table td ul,
.article-body-jats table td ol { margin: 0; padding-left: 1.1rem; }
.article-body-jats table td li { margin: 0.1rem 0; }
.article-body-jats table td br + br { display: none; }
.article-body-jats table td:empty { background: transparent; border-color: #e5e7eb; }

/* Body typography — Phase 1 rebalance: tighter line-height for
   readability, higher-contrast color, modular heading scale that
   lines up with .article-section__title (so body H1 = section title). */
.article-body-jats {
  font-size: 1rem;
  line-height: 1.7;
  color: #1f2937;
}
/* Heading scale (modular):
     h1 = 1.35rem  → matches .article-section__title (Introduction = Abstract)
     h2 = 1.15rem  → subsection
     h3 = 1.02rem  → sub-subsection
     h4 = 0.92rem uppercase tracked — quiet label. */
.article-body-jats h1 {
  font-size: 1.35rem; font-weight: 700; color: #111827; line-height: 1.3;
  margin: 2.25rem 0 0.85rem; letter-spacing: -0.005em;
}
.article-body-jats h2 {
  font-size: 1.15rem; font-weight: 700; color: #1f2937; line-height: 1.35;
  margin: 1.85rem 0 0.7rem;
}
.article-body-jats h3 {
  font-size: 1.02rem; font-weight: 600; color: #1f2937; line-height: 1.4;
  margin: 1.5rem 0 0.55rem;
}
.article-body-jats h4 {
  font-size: 0.85rem; font-weight: 700; color: #374151; line-height: 1.4;
  margin: 1.25rem 0 0.5rem;
  text-transform: uppercase; letter-spacing: 0.04em;
}
/* First heading immediately after section wrapper: no extra top gap. */
.article-body-jats > :first-child { margin-top: 0; }
.article-body-jats sup { vertical-align: super; font-size: 0.7em; line-height: 0; }
.article-body-jats sub { vertical-align: sub;   font-size: 0.7em; line-height: 0; }
.article-body-jats p {
  margin: 0 0 0.95rem;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.article-body-jats p:last-child { margin-bottom: 0; }
.article-body-jats ul,
.article-body-jats ol { margin: 0.5rem 0 1rem 0; padding-left: 1.5rem; }
.article-body-jats li { margin: 0.25rem 0; line-height: 1.6; }
.article-body-jats a {
  color: var(--color-primary, #274aab);
  text-decoration: none;
  border-bottom: 1px solid rgba(39, 74, 171, 0.25);
}
.article-body-jats a:hover { border-bottom-color: currentColor; }
.article-body-jats blockquote {
  margin: 1.25rem 0; padding: 0.5rem 1rem;
  border-left: 3px solid var(--color-primary, #274aab);
  color: #374151; font-style: italic; background: #f9fafb;
}
.article-body-jats code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.88em;
  background: #f3f4f6; padding: 0.1em 0.35em; border-radius: 3px;
  color: #be185d;
}
.article-body-jats pre {
  margin: 1rem 0; padding: 0.85rem 1rem;
  background: #1f2937; color: #f3f4f6;
  border-radius: 6px; overflow-x: auto;
  font-size: 0.85rem; line-height: 1.5;
}
.article-body-jats pre code { background: transparent; color: inherit; padding: 0; }
.article-body-jats figure { margin: 1.75rem 0; text-align: center; }
.article-body-jats figure img { max-width: 100%; height: auto; }
.article-body-jats figcaption {
  font-size: 0.85rem; color: #4b5563; font-style: italic;
  margin-top: 0.5rem; text-align: center;
}

/* ===================================================================
   Article Tools — standalone card di left sidebar (di atas TOC),
   non-sticky. TOC card di bawahnya tetap sticky.
   =================================================================== */
.article-sidebar__tools-card {
  position: static;
}
