/* News page — compact media-card layout */



.rjx-tabs {

  margin-bottom: 0;

}



.rjx-tabs__panel.is-active {

  margin-top: var(--rjx-space-md);

}



/* News feed list */

.rjx-news-list {

  display: flex;

  flex-direction: column;

  gap: var(--rjx-space-sm);

  margin-top: var(--rjx-space-md);

}



.rjx-news-list .rjx-news-item {

  margin-bottom: 0;

  padding: var(--rjx-space-md);

}



.rjx-news-list .rjx-news-item__body {

  margin-bottom: 0;

}



/* Clickable list cards */

.rjx-news-item--link {

  display: block;

  text-decoration: none;

  color: inherit;

  cursor: pointer;

}



.rjx-news-item--link:focus-visible {

  outline: 2px solid var(--rjx-brand);

  outline-offset: 3px;

}



/* Horizontal media card: thumbnail left, content right */

.rjx-news-item__inner {

  display: flex;

  align-items: flex-start;

  gap: var(--rjx-space-md);

}



.rjx-news-item__media {

  flex-shrink: 0;

  width: 200px;

  height: 120px;

  overflow: hidden;

  border-radius: calc(var(--rjx-radius) - 2px);

  background: rgba(0, 0, 0, 0.25);

}



/* Fixed 200×120 box; img fills width, center-crops overflow (Chromium 86 safe) */

body.rjx-marketing .rjx-news-item__media img {

  display: block;

  width: 100%;

  height: 100%;

  max-width: none;

  object-fit: cover;

  object-position: center center;

  transition: transform var(--rjx-transition);

}



.rjx-marketing .rjx-news-item:hover .rjx-news-item__media img {

  transform: scale(1.03);

}



.rjx-news-item__content {

  flex: 1;

  min-width: 0;

}



.rjx-marketing .rjx-news-item__title {

  line-height: 1.35;

}



.rjx-marketing .rjx-news-item__body {

  line-height: 1.65;

}



.rjx-news-item__excerpt {

  margin: 0;

  color: var(--rjx-text-muted);

  display: -webkit-box;

  -webkit-box-orient: vertical;

  -webkit-line-clamp: 3;

  line-clamp: 3;

  overflow: hidden;

}



.rjx-marketing .rjx-news-item__body p:last-child {

  margin-bottom: 0;

}



/* Items without cover image — content fills card */

.rjx-news-item__inner--no-media .rjx-news-item__content {

  width: 100%;

}



/* News detail page */

.rjx-news-detail__cover {

  margin: 0 0 var(--rjx-space-lg);

  border-radius: var(--rjx-radius);

  overflow: hidden;

  background: rgba(0, 0, 0, 0.25);

}



.rjx-news-detail__cover img {

  display: block;

  width: 100%;

  max-height: 420px;

  object-fit: cover;

  object-position: center;

}



.rjx-news-detail__date {

  margin: 0 0 var(--rjx-space-md);

  font-size: 0.8rem;

  font-weight: 600;

  letter-spacing: 0.06em;

  text-transform: uppercase;

  color: var(--rjx-brand);

}



.rjx-news-detail__date time {

  font-style: normal;

}



.rjx-news-detail__body {

  max-width: none;

}



/* Rich text body — mirrors TinyMCE 6.6.2 default content.css structure,
   rendered on the site's dark theme (no white surface). */

.rjx-richtext {

  color: var(--rjx-text);

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;

  font-size: 16px;

  line-height: 1.4;

}



.rjx-richtext :where(p) {

  margin: 0 0 1em;

  color: inherit;

}



.rjx-richtext :where(p:last-child) {

  margin-bottom: 0;

}



.rjx-richtext :where(h1, h2, h3, h4, h5, h6) {

  margin: 0 0 0.5em;

  font-weight: 700;

  line-height: 1.3;

  color: inherit;

}



.rjx-richtext :where(ul, ol) {

  margin: 0 0 1em;

  padding-left: 1.5rem;

  list-style: revert;

}



.rjx-richtext :where(li) {

  margin-bottom: 0.25em;

}



.rjx-richtext :where(table) {

  border-collapse: collapse;

  margin: 0 0 1em;

  width: 100% !important;

  max-width: 100% !important;

  table-layout: auto;

}



.rjx-richtext :where(colgroup),

.rjx-richtext :where(col) {

  width: auto !important;

}



.rjx-richtext :where(th, td) {

  width: auto !important;

  max-width: 100% !important;

  overflow-wrap: anywhere;

  word-break: break-word;

}



.rjx-richtext :where(table:not([cellpadding]) th, table:not([cellpadding]) td) {

  padding: 0.4rem;

}



.rjx-richtext :where(table[border]:not([border="0"]):not([style*="border-width"]) th, table[border]:not([border="0"]):not([style*="border-width"]) td) {

  border-width: 1px;

}



.rjx-richtext :where(table[border]:not([border="0"]):not([style*="border-style"]) th, table[border]:not([border="0"]):not([style*="border-style"]) td) {

  border-style: solid;

}



.rjx-richtext :where(table[border]:not([border="0"]):not([style*="border-color"]) th, table[border]:not([border="0"]):not([style*="border-color"]) td) {

  border-color: #ccc;

}



.rjx-richtext :where(figure) {

  display: table;

  margin: 1rem auto;

}



.rjx-richtext :where(figcaption) {

  display: block;

  margin-top: 0.25rem;

  color: #999;

  text-align: center;

}



.rjx-richtext :where(hr) {

  margin: 1em 0;

  border-color: #ccc;

  border-style: solid;

  border-width: 1px 0 0 0;

}



.rjx-richtext :where(code) {

  background-color: #e8e8e8;

  color: #222;

  border-radius: 3px;

  padding: 0.1rem 0.2rem;

}



.rjx-richtext :where(blockquote) {

  border-left: 2px solid #ccc;

  margin: 0 0 1em 1.5rem;

  padding-left: 1rem;

}



.rjx-richtext :where(img) {

  display: block;

  max-width: 100%;

  height: auto;

}



.rjx-richtext :where(a) {

  color: var(--rjx-brand);

  text-decoration: underline;

  text-underline-offset: 0.15em;

}



.rjx-richtext :where(a:hover) {

  color: #fff;

}



.rjx-richtext :where(a:focus-visible) {

  outline: 2px solid var(--rjx-brand);

  outline-offset: 2px;

}



/* Article prev / next navigation */

.rjx-news-detail__nav {

  margin-top: var(--rjx-space-xl);

  padding-top: var(--rjx-space-lg);

  border-top: 1px solid rgba(255, 255, 255, 0.08);

}



.rjx-news-detail__nav-inner {

  display: flex;

  justify-content: space-between;

  align-items: stretch;

  gap: var(--rjx-space-md);

}



.rjx-news-detail__nav-link {

  position: relative;

  display: flex;

  align-items: center;

  gap: var(--rjx-space-sm);

  flex: 1;

  max-width: calc(50% - var(--rjx-space-md) / 2);

  min-width: 0;

  padding: var(--rjx-space-md);

  border-radius: var(--rjx-radius);

  background: rgba(0, 0, 0, 0.22);

  text-decoration: none;

  color: inherit;

  cursor: pointer;

  overflow: hidden;

  transition:

    transform var(--rjx-transition),

    box-shadow var(--rjx-transition),

    background var(--rjx-transition),

    border-color var(--rjx-transition);

}



.rjx-news-detail__nav-link::before {

  content: "";

  position: absolute;

  left: 0;

  top: 12px;

  bottom: 12px;

  width: 2px;

  background: linear-gradient(180deg, var(--rjx-brand), var(--rjx-accent));

  border-radius: 2px;

  transform: scaleY(0);

  transform-origin: top;

  transition: transform 0.45s var(--rjx-fx-ease, ease);

}



.rjx-news-detail__nav-link--next::before {

  left: auto;

  right: 0;

  transform-origin: bottom;

}



.rjx-news-detail__nav-link:hover:not(.is-disabled),

.rjx-news-detail__nav-link:focus-visible:not(.is-disabled) {

  transform: translateY(-2px);

  box-shadow: var(--rjx-shadow-card);

  background: rgba(0, 0, 0, 0.32);

}



.rjx-news-detail__nav-link:hover:not(.is-disabled)::before,

.rjx-news-detail__nav-link:focus-visible:not(.is-disabled)::before {

  transform: scaleY(1);

}



.rjx-news-detail__nav-link:focus-visible:not(.is-disabled) {

  outline: 2px solid var(--rjx-brand);

  outline-offset: 3px;

}



.rjx-news-detail__nav-link.is-disabled {

  cursor: not-allowed;

  opacity: 0.55;

  background: rgba(0, 0, 0, 0.14);

}



.rjx-news-detail__nav-link.is-disabled .rjx-news-detail__nav-label {

  color: var(--rjx-text-dim);

}



.rjx-news-detail__nav-link.is-disabled .rjx-news-detail__nav-icon {

  background: rgba(255, 255, 255, 0.06);

  color: var(--rjx-text-dim);

}



.rjx-news-detail__nav-link--next {

  text-align: right;

}



.rjx-news-detail__nav-copy {

  display: flex;

  flex-direction: column;

  gap: 0.2rem;

  min-width: 0;

}



.rjx-news-detail__nav-label {

  font-size: 0.75rem;

  font-weight: 600;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  color: var(--rjx-brand);

}



.rjx-news-detail__nav-date {

  font-size: 0.75rem;

  font-weight: 600;

  letter-spacing: 0.04em;

  text-transform: uppercase;

  color: var(--rjx-text-dim);

}



.rjx-news-detail__nav-title {

  font-size: 0.95rem;

  font-weight: 600;

  line-height: 1.4;

  color: var(--rjx-text);

  display: -webkit-box;

  -webkit-box-orient: vertical;

  -webkit-line-clamp: 2;

  line-clamp: 2;

  overflow: hidden;

}



.rjx-news-detail__nav-icon {

  flex-shrink: 0;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  width: 2.25rem;

  height: 2.25rem;

  border-radius: 999px;

  background: rgba(var(--rjx-brand-rgb), 0.12);

  color: var(--rjx-brand);

  transition:

    background var(--rjx-transition),

    color var(--rjx-transition),

    transform var(--rjx-transition);

}



.rjx-news-detail__nav-title--placeholder {

  font-weight: 500;

  color: var(--rjx-text-dim);

  -webkit-line-clamp: 1;

  line-clamp: 1;

}



.rjx-news-detail__nav-link:hover:not(.is-disabled) .rjx-news-detail__nav-icon,

.rjx-news-detail__nav-link:focus-visible:not(.is-disabled) .rjx-news-detail__nav-icon {

  background: rgba(var(--rjx-brand-rgb), 0.22);

  color: #fff;

}



.rjx-news-detail__nav-link--prev:hover:not(.is-disabled) .rjx-news-detail__nav-icon,

.rjx-news-detail__nav-link--prev:focus-visible:not(.is-disabled) .rjx-news-detail__nav-icon {

  transform: translateX(-2px);

}



.rjx-news-detail__nav-link--next:hover:not(.is-disabled) .rjx-news-detail__nav-icon,

.rjx-news-detail__nav-link--next:focus-visible:not(.is-disabled) .rjx-news-detail__nav-icon {

  transform: translateX(2px);

}



.rjx-news-detail__nav-icon-svg {

  display: block;

}



.rjx-news-detail__back {

  margin-top: var(--rjx-space-lg);

  text-align: center;

}



.rjx-news-detail__back a {

  display: inline-flex;

  align-items: center;

  gap: 0.35rem;

}



@media (max-width: 767px) {

  .rjx-news-item__inner {

    flex-direction: column;

    gap: var(--rjx-space-sm);

  }



  .rjx-news-item__media {

    width: 100%;

    height: auto;

  }



  /* Full-width thumbnail at its natural aspect ratio — no crop, no stretch */

  body.rjx-marketing .rjx-news-item__media img {

    height: auto;

    object-fit: contain;

  }



  .rjx-news-detail__nav-inner {

    flex-direction: column;

  }



  .rjx-news-detail__nav-link {

    max-width: none;

    width: 100%;

  }



  .rjx-news-detail__nav-link--next {

    text-align: left;

  }



  .rjx-news-detail__nav-link--next::before {

    right: auto;

    left: 0;

    transform-origin: top;

  }

}



@media (prefers-reduced-motion: reduce) {

  .rjx-marketing .rjx-news-item:hover .rjx-news-item__media img {

    transform: none;

  }



  .rjx-news-detail__nav-link:hover:not(.is-disabled),

  .rjx-news-detail__nav-link:focus-visible:not(.is-disabled) {

    transform: none;

  }



  .rjx-news-detail__nav-link:hover:not(.is-disabled) .rjx-news-detail__nav-icon,

  .rjx-news-detail__nav-link:focus-visible:not(.is-disabled) .rjx-news-detail__nav-icon {

    transform: none;

  }

}



/* Pagination */

.rjx-pager {

  display: flex;

  align-items: center;

  justify-content: center;

  flex-wrap: wrap;

  gap: 0.5rem;

  margin-top: var(--rjx-space-lg);

  padding-top: var(--rjx-space-md);

}



.rjx-pager__pages {

  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 0.35rem;

}



.rjx-pager__btn {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-width: 2.25rem;

  height: 2.25rem;

  padding: 0 0.65rem;

  border-radius: 999px;

  border: 1px solid rgba(255, 255, 255, 0.1);

  background: rgba(0, 0, 0, 0.22);

  color: var(--rjx-text-muted);

  font-size: 0.875rem;

  font-weight: 600;

  text-decoration: none;

  cursor: pointer;

  transition:

    background var(--rjx-transition),

    border-color var(--rjx-transition),

    color var(--rjx-transition);

}



.rjx-pager__btn--nav {

  min-width: 4.5rem;

  padding: 0 0.85rem;

}



.rjx-pager__btn:hover:not(.is-disabled):not(.is-active) {

  background: rgba(var(--rjx-brand-rgb), 0.12);

  border-color: rgba(var(--rjx-brand-rgb), 0.35);

  color: var(--rjx-text);

}



.rjx-pager__btn:focus-visible {

  outline: 2px solid var(--rjx-brand);

  outline-offset: 2px;

}



.rjx-pager__btn.is-active {

  background: rgba(var(--rjx-brand-rgb), 0.18);

  border-color: rgba(var(--rjx-brand-rgb), 0.45);

  color: var(--rjx-brand);

  cursor: default;

}



.rjx-pager__btn.is-disabled {

  opacity: 0.45;

  cursor: not-allowed;

  pointer-events: none;

}



.rjx-pager__ellipsis {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-width: 1.5rem;

  height: 2.25rem;

  color: var(--rjx-text-dim);

  font-size: 0.875rem;

  user-select: none;

}


