*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Keep text at the author-defined size on mobile (no iOS landscape inflation). */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Remove the grey flash overlay iOS/Android draw on tap of links & buttons. */
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .rjx-reveal {
    opacity: 1;
    transform: none;
  }
}

/* Keyboard skip link — off-screen until focused, then pinned top-left. */
.rjx-skip-link {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    margin: 0.5rem;
    padding: 0.6rem 1rem;
    font-weight: 600;
    color: var(--rjx-on-brand, #0a0a0c);
    background: var(--rjx-brand, #caf826);
    border-radius: 8px;
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}

.rjx-skip-link:focus {
    transform: translateY(0);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

body.rjx-marketing {
    margin: 0;
    font-family: var(--rjx-font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--rjx-text);
    background: #1d1f23;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Guard against accidental horizontal scroll from any full-bleed/oversized
       child on mobile. `clip` (not `hidden`) does not create a scroll container,
       so it never breaks the sticky header's position. */
    overflow-x: clip;
}

body.rjx-marketing img {
  max-width: 100%;
  height: auto;
  display: block;
}

body.rjx-marketing .rjx-brand-cluster .rjx-logo-link img {
  max-width: none;
  height: var(--rjx-logo-h);
  width: auto;
}

body.rjx-marketing a:not(.rjx-btn) {
  color: inherit;
  text-decoration: none;
}

body.rjx-marketing a.rjx-btn {
  text-decoration: none;
}

body.rjx-marketing a:not(.rjx-btn):hover {
  color: var(--rjx-brand);
}

body.rjx-marketing ul,
body.rjx-marketing ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rjx-container {
  width: var(--rjx-container);
  margin-left: auto;
  margin-right: auto;
  margin-inline: auto;
}

/* Each page block: own panel; gaps between show shell / gap tone */

/* Shared panel look (home sections + client portal content share one source) */
.rjx-panel,
.rjx-main__surface > .rjx-page-title,
.rjx-main__surface > .rjx-section {
  background: var(--rjx-content-bg);
  border-radius: var(--rjx-module-radius);
  box-shadow: var(--rjx-shadow-module);
}

.rjx-main__surface > .rjx-section--alt {
  background: var(--rjx-content-bg-alt);
}

.rjx-page-title {
  padding: var(--rjx-pagehead-padding-y) 0;
  margin: 0;
}

.rjx-page-title .rjx-container {
  position: relative;
}

/* Page title bar: breadcrumb + title/subtitle */
.rjx-page-title__bar {
  display: flex;
  align-items: flex-start;
  gap: var(--rjx-space-md);
  flex-wrap: wrap;
}

.rjx-page-title__lead {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.rjx-page-title__crumbs-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
}

.rjx-page-title__crumb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--rjx-brand);
}

    .rjx-page-title__crumb-icon svg {
        width: 0.88rem;
        height: 0.88rem;
        display: block;
    }

.rjx-page-title__crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.8125rem;
  line-height: 1.2;
  color: var(--rjx-text-dim);
  min-width: 0;
}

.rjx-page-title__crumbs a {
  color: var(--rjx-text-dim);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--rjx-transition);
}

.rjx-page-title__crumbs a:hover,
.rjx-page-title__crumbs a:focus-visible {
  color: var(--rjx-brand);
}

.rjx-page-title__crumbs [aria-current="page"] {
  color: var(--rjx-text-muted);
}

.rjx-page-title__sep {
  color: var(--rjx-text-dim);
  opacity: 0.65;
}

.rjx-page-title__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  min-width: 0;
}

.rjx-page-title h1 {
  margin: 0;
  font-family: var(--rjx-font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.rjx-page-title__meta {
  margin: 0;
  color: var(--rjx-text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.rjx-section {
  padding: var(--rjx-module-padding-block) 0;
  margin: 0;
  position: relative;
}

.rjx-section--tight {
  padding: var(--rjx-module-padding-y-sm) 0;
}

.rjx-section__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--rjx-space-xs);
  margin-bottom: var(--rjx-section-intro-gap);
  max-width: 100%;
}

.rjx-section__intro .rjx-section__eyebrow {
  margin-bottom: 0;
}

.rjx-section__intro .rjx-section__title {
  margin-bottom: 0;
  display: block;
  width: 100%;
}

.rjx-section__eyebrow {
  display: block;
  width: var(--rjx-eyebrow-width);
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 var(--rjx-space-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  color: var(--rjx-brand);
  background: rgba(var(--rjx-brand-rgb), 0.14);
  border-radius: 999px;
  flex-shrink: 0;
}

.rjx-section__eyebrow.rjx-section__eyebrow--with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  width: auto;
  max-width: 100%;
  text-align: left;
}

.rjx-section__eyebrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rjx-section__eyebrow-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.rjx-section__eyebrow-text {
  display: inline-block;
}

.rjx-section__eyebrow + .rjx-section__title {
  display: block;
  width: 100%;
  clear: both;
}

.rjx-section__title {
  margin: 0 0 var(--rjx-space-md);
  font-family: var(--rjx-font-display);
  font-size: clamp(1.625rem, 2.8vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.rjx-section__lead {
  margin: 0 0 var(--rjx-space-lg);
  max-width: 48rem;
  color: var(--rjx-text-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.rjx-section__lead:last-child {
  margin-bottom: 0;
}

.rjx-prose p {
  margin: 0 0 1.1em;
  color: var(--rjx-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.rjx-prose p:last-child {
  margin-bottom: 0;
}

.rjx-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.rjx-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  :root {
    --rjx-module-gap: 14px;
    --rjx-module-padding-y: 2rem;
    --rjx-module-padding-y-sm: 1.5rem;
  }

  .rjx-panel,
  .rjx-main__surface > .rjx-page-title,
  .rjx-main__surface > .rjx-section {
    border-radius: 16px;
  }

  .rjx-page-title__bar {
    gap: var(--rjx-space-sm);
  }
}
