/* =========================================================
   RBAI54 — PRIVACY POLICY
   Premium responsive design | CSS v2.0.0
   Scoped styles | Accessible | AdSense-conscious
   ========================================================= */

#rbai54 {
  --ink: #14264e;
  --ink-soft: #263e68;
  --muted: #536985;
  --blue: #2864e8;
  --violet: #7551e8;
  --teal: #0d9f96;
  --line: #dfe7f5;
  --soft: #f4f7ff;
  --card: #ffffff;

  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.75;
  isolation: isolate;
  width: 100%;
  min-width: 0;
}

#rbai54 *,
#rbai54 *::before,
#rbai54 *::after {
  box-sizing: border-box;
}

#rbai54 img {
  max-width: 100%;
}

#rbai54 a {
  color: #245bd8;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

#rbai54 p {
  overflow-wrap: break-word;
}

#rbai54 .p54-wrap {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

/* =========================
   HERO SECTION
   ========================= */

#rbai54 .p54-hero {
  position: relative;
  padding: clamp(32px, 4.5vw, 54px) 0 30px;
  background:
    radial-gradient(
      circle at 8% 8%,
      rgba(91, 130, 255, 0.10),
      transparent 34%
    ),
    linear-gradient(
      125deg,
      #edf5ff 0%,
      #f7f4ff 54%,
      #e9fbf7 100%
    );
  border: 1px solid #e1e9fa;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}

#rbai54 .p54-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

#rbai54 .p54-grid > * {
  min-width: 0;
}

#rbai54 .p54-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 7px 13px;
  border: 1px solid #d7e3ff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #315bd0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1.5;
  text-transform: uppercase;
}

#rbai54 .p54-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(13, 159, 150, 0.12);
}

#rbai54 h1,
#rbai54 h2,
#rbai54 h3 {
  color: var(--ink);
  line-height: 1.22;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}

#rbai54 h1 {
  max-width: 650px;
  margin: 18px 0 18px;
  font-size: clamp(38px, 4.3vw, 60px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

#rbai54 .p54-gradient {
  background: linear-gradient(
    95deg,
    var(--blue) 0%,
    var(--violet) 56%,
    var(--teal) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#rbai54 .p54-lead {
  max-width: 590px;
  margin: 0 0 20px;
  color: #536985;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.8;
}

#rbai54 .p54-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 21px;
}

#rbai54 .p54-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid #dfe7f5;
  border-radius: 12px;
  background: #fff;
  color: #455c7c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

#rbai54 .p54-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
}

#rbai54 .p54-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

#rbai54 .p54-primary {
  color: #fff;
  background: linear-gradient(110deg, #2864e8, #7551e8);
  box-shadow: 0 9px 22px rgba(66, 89, 221, 0.22);
}

#rbai54 .p54-primary:hover {
  color: #fff;
  box-shadow: 0 12px 27px rgba(66, 89, 221, 0.3);
}

#rbai54 .p54-secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

#rbai54 .p54-secondary:hover {
  background: #f5f8ff;
}

#rbai54 .p54-btn:hover {
  transform: translateY(-2px);
}

/* =========================
   HERO IMAGE
   ========================= */

#rbai54 .p54-art {
  position: relative;
  min-width: 0;
  width: 100%;
  padding: 0;
}

#rbai54 .p54-art img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1.55 / 1;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 20px 42px rgba(41, 76, 145, 0.17);
}

#rbai54 .p54-art-note {
  position: relative;
  z-index: 2;
  width: min(280px, 88%);
  max-width: 100%;
  margin: -48px 0 0 -12px;
  padding: 13px 15px;
  border: 1px solid #dce6f5;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 25px rgba(28, 57, 111, 0.12);
  color: #536985;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

#rbai54 .p54-art-note strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

/* =========================
   PRINCIPLE CARDS
   ========================= */

#rbai54 .p54-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

#rbai54 .p54-principle {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(24, 54, 105, 0.035);
}

#rbai54 .p54-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #eaf1ff;
  color: var(--blue);
  font-size: 19px;
}

#rbai54 .p54-principle:nth-child(2) .p54-icon {
  background: #f0eaff;
  color: var(--violet);
}

#rbai54 .p54-principle:nth-child(3) .p54-icon {
  background: #e1faf4;
  color: #087f76;
}

#rbai54 .p54-principle strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

#rbai54 .p54-principle p {
  margin: 5px 0 0;
  color: #536985;
  font-size: 13px;
  line-height: 1.65;
}

/* =========================
   MAIN CONTENT
   ========================= */

#rbai54 .p54-main {
  padding: 32px 0 48px;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
}

#rbai54 .p54-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

#rbai54 .p54-toc {
  position: sticky;
  top: 24px;
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 57, 111, 0.07);
}

#rbai54 .p54-toc-title {
  margin: 0 0 11px;
  color: #637895;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

#rbai54 .p54-toc a {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 8px;
  border-radius: 9px;
  color: #4b617e;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

#rbai54 .p54-toc a:hover,
#rbai54 .p54-toc a:focus-visible {
  background: #f0f5ff;
  color: #245bd8;
}

#rbai54 .p54-toc a span {
  flex: 0 0 24px;
  color: var(--violet);
  font-weight: 850;
}

#rbai54 .p54-content {
  min-width: 0;
}

#rbai54 .p54-intro {
  margin: 0 0 14px;
  padding: 20px 22px;
  border: 1px solid #dce7ff;
  border-radius: 18px;
  background: linear-gradient(115deg, #f1f6ff, #f9f6ff 70%, #effbf9);
}

#rbai54 .p54-intro p {
  margin: 0;
  color: #435979;
  line-height: 1.8;
}

#rbai54 .p54-card {
  min-width: 0;
  margin: 0 0 13px;
  padding: clamp(19px, 2.5vw, 27px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(24, 54, 105, 0.045);
  scroll-margin-top: 24px;
}

#rbai54 .p54-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 12px;
}

#rbai54 .p54-num {
  display: grid;
  place-items: center;
  flex: 0 0 39px;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: linear-gradient(140deg, #e8f0ff, #f1eaff);
  color: #315fd6;
  font-size: 13px;
  font-weight: 900;
}

#rbai54 .p54-card:nth-of-type(3n) .p54-num {
  background: linear-gradient(140deg, #e0faf3, #e7f2ff);
  color: #087f76;
}

#rbai54 .p54-card h2 {
  margin: 4px 0 0;
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 820;
  line-height: 1.3;
}

#rbai54 .p54-card h3 {
  margin: 19px 0 7px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

#rbai54 .p54-card p {
  margin: 8px 0;
  color: #4e627e;
  line-height: 1.8;
}

#rbai54 .p54-card ul {
  margin: 9px 0 14px;
  padding-left: 23px;
  color: #4e627e;
}

#rbai54 .p54-card li {
  padding: 3px 0;
  line-height: 1.75;
}

#rbai54 .p54-card li::marker {
  color: #4d6fe8;
}

#rbai54 .p54-note {
  margin: 14px 0;
  padding: 13px 15px;
  border-left: 4px solid var(--teal);
  border-radius: 0 11px 11px 0;
  background: #effbf8;
  color: #385e65;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

/* =========================
   CONTACT CARD
   ========================= */

#rbai54 .p54-contact {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-top: 15px;
  padding: 23px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: linear-gradient(120deg, #142c60, #315bd0 62%, #7150e7);
  color: #fff;
}

#rbai54 .p54-contact-icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 23px;
}

#rbai54 .p54-contact h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 22px;
  line-height: 1.35;
}

#rbai54 .p54-contact p {
  margin: 0 0 9px;
  color: #edf2ff;
  line-height: 1.75;
}

#rbai54 .p54-contact a {
  color: #fff;
  font-weight: 800;
  text-decoration-thickness: 1px;
}

#rbai54 .p54-footnote {
  margin: 15px 0 0;
  color: #657993;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

/* =========================
   BACK TO TOP
   ========================= */

#rbai54 .p54-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d8e2f5;
  border-radius: 13px;
  background: #fff;
  color: #234fc4;
  box-shadow: 0 8px 22px rgba(19, 43, 85, 0.14);
  font-size: 20px;
  cursor: pointer;
}

#rbai54 .p54-top.is-visible {
  display: grid;
}

#rbai54 .p54-top:focus-visible,
#rbai54 .p54-btn:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 900px) {
  #rbai54 .p54-wrap {
    width: min(100% - 32px, 760px);
  }

  #rbai54 .p54-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 24px;
  }

  #rbai54 h1 {
    font-size: clamp(36px, 5vw, 48px);
  }

  #rbai54 .p54-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #rbai54 .p54-toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
  }

  #rbai54 .p54-toc-title {
    grid-column: 1 / -1;
  }
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 650px) {
  #rbai54 .p54-wrap {
    width: calc(100% - 28px);
  }

  #rbai54 .p54-hero {
    padding: 27px 0 23px;
    border-radius: 0 0 22px 22px;
  }

  #rbai54 .p54-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  #rbai54 h1 {
    max-width: 100%;
    margin: 16px 0;
    font-size: clamp(35px, 9.2vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.035em;
  }

  #rbai54 .p54-lead {
    font-size: 16px;
    line-height: 1.75;
  }

  #rbai54 .p54-actions {
    gap: 9px;
  }

  #rbai54 .p54-btn {
    min-height: 46px;
    padding: 11px 14px;
    font-size: 14px;
  }

  #rbai54 .p54-art img {
    aspect-ratio: 1.5 / 1;
    border-radius: 19px;
  }

  #rbai54 .p54-art-note {
    width: min(270px, 92%);
    margin: -35px 0 0 8px;
    padding: 11px 13px;
    font-size: 12px;
  }

  #rbai54 .p54-principles {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 19px;
  }

  #rbai54 .p54-principle {
    display: grid;
    grid-template-columns: 39px minmax(0, 1fr);
    column-gap: 11px;
    padding: 13px;
  }

  #rbai54 .p54-icon {
    grid-row: span 2;
    margin: 0;
  }

  #rbai54 .p54-principle p {
    margin-top: 3px;
  }

  #rbai54 .p54-main {
    padding: 23px 0 34px;
  }

  #rbai54 .p54-toc {
    padding: 12px;
  }

  #rbai54 .p54-toc a {
    gap: 6px;
    padding: 7px 5px;
    font-size: 12px;
  }

  #rbai54 .p54-toc a span {
    flex-basis: 22px;
  }

  #rbai54 .p54-intro {
    margin-bottom: 10px;
    padding: 16px;
  }

  #rbai54 .p54-card {
    margin-bottom: 10px;
    padding: 17px;
    border-radius: 16px;
  }

  #rbai54 .p54-head {
    gap: 10px;
  }

  #rbai54 .p54-num {
    flex-basis: 35px;
    width: 35px;
    height: 35px;
  }

  #rbai54 .p54-card h2 {
    font-size: 20px;
  }

  #rbai54 .p54-card h3 {
    font-size: 16px;
  }

  #rbai54 .p54-contact {
    gap: 11px;
    padding: 17px;
    border-radius: 17px;
  }

  #rbai54 .p54-contact-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  #rbai54 .p54-contact h2 {
    font-size: 19px;
  }

  #rbai54 .p54-top {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
  }
}

/* =========================
   SMALL MOBILE
   ========================= */

@media (max-width: 380px) {
  #rbai54 .p54-wrap {
    width: calc(100% - 22px);
  }

  #rbai54 h1 {
    font-size: 34px;
  }

  #rbai54 .p54-meta span {
    font-size: 12px;
  }

  #rbai54 .p54-actions {
    align-items: stretch;
    flex-direction: column;
  }

  #rbai54 .p54-btn {
    width: 100%;
  }

  #rbai54 .p54-toc {
    grid-template-columns: 1fr;
  }

  #rbai54 .p54-contact {
    flex-direction: column;
  }
}

/* =========================
   ACCESSIBILITY
   ========================= */

@media (prefers-reduced-motion: reduce) {
  #rbai54 *,
  #rbai54 *::before,
  #rbai54 *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* RBAI54 — SHIFT PRIVACY POLICY TEXT RIGHT ONLY */
#rbai54 .p54-art img {
  /* Keep the complete image unchanged */
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}

/* =========================================================
   RBAI54 — PRIVACY POLICY
   FULL-PAGE SIDEBAR AND CONTENT ALIGNMENT FIX
   ========================================================= */

/* Keep the page layout aligned at the top */
#rbai54 .p54-layout {
  display: grid !important;
  grid-template-columns: 250px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 26px !important;
}

/* Prevent the sidebar from stretching to an unnecessary height */
#rbai54 .p54-toc {
  position: sticky !important;
  top: 24px !important;
  height: fit-content !important;
  max-height: calc(100vh - 48px) !important;
  overflow-y: auto !important;
  align-self: start !important;
  margin: 0 !important;
}

/* Ensure the content column uses its available width */
#rbai54 .p54-content {
  min-width: 0 !important;
  width: 100% !important;
  align-self: start !important;
}

/* Remove excess vertical spacing between policy sections */
#rbai54 .p54-card {
  margin-bottom: 14px !important;
}

/* Keep the main section compact */
#rbai54 .p54-main {
  padding-top: 28px !important;
  padding-bottom: 38px !important;
}

/* Tablet and mobile */
@media (max-width: 900px) {
  #rbai54 .p54-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }

  #rbai54 .p54-toc {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    height: auto !important;
  }
}

@media (max-width: 650px) {
  #rbai54 .p54-main {
    padding-top: 20px !important;
    padding-bottom: 28px !important;
  }

  #rbai54 .p54-layout {
    gap: 15px !important;
  }

  #rbai54 .p54-card {
    margin-bottom: 11px !important;
  }
}


/* =========================================================
   RBAI54 — HORIZONTAL TABLE OF CONTENTS + CLEAN PAGE ALIGNMENT
   Appended override: preserves all existing CSS and components.
   ========================================================= */

/* Use the full content width so the TOC does not leave a tall empty column. */
#rbai54 .p54-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 20px !important;
}

/* Make the TOC a full-width, horizontal navigation panel. */
#rbai54 .p54-toc {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  align-self: stretch !important;
  margin: 0 !important;
  padding: 18px !important;
  border: 1px solid #d9e4fa !important;
  border-radius: 20px !important;
  background: linear-gradient(125deg, #f1f6ff 0%, #f8f4ff 52%, #effbf8 100%) !important;
  box-shadow: 0 10px 28px rgba(28, 57, 111, 0.07) !important;
}

#rbai54 .p54-toc-title {
  margin: 0 0 12px !important;
  color: #3155a5 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .12em !important;
}

/* Three neat columns on desktop; each link is a clear, colorful pill-card. */
#rbai54 .p54-toc a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid #e0e8fb !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .94) !important;
  color: #344d72 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
  overflow-wrap: anywhere !important;
  box-shadow: 0 3px 10px rgba(32, 62, 112, .035) !important;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

#rbai54 .p54-toc a span {
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 28px !important;
  width: 28px !important;
  min-height: 28px !important;
  padding: 2px !important;
  border-radius: 9px !important;
  background: #e9efff !important;
  color: #315fd6 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

#rbai54 .p54-toc a:nth-of-type(3n + 2) span {
  background: #f0eaff !important;
  color: #7049d9 !important;
}

#rbai54 .p54-toc a:nth-of-type(3n) span {
  background: #def8f1 !important;
  color: #087f76 !important;
}

#rbai54 .p54-toc a:hover,
#rbai54 .p54-toc a:focus-visible {
  border-color: #b9cbff !important;
  background: #fff !important;
  color: #214fc4 !important;
  box-shadow: 0 7px 16px rgba(42, 83, 173, .10) !important;
  transform: translateY(-1px) !important;
  outline: none !important;
}

#rbai54 .p54-content {
  width: 100% !important;
  min-width: 0 !important;
  align-self: start !important;
}

#rbai54 .p54-intro {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  padding: clamp(18px, 2.4vw, 25px) !important;
  border-color: #dbe5fb !important;
  background: linear-gradient(115deg, #f0f6ff 0%, #f8f4ff 58%, #effbf8 100%) !important;
  box-shadow: 0 6px 18px rgba(28, 57, 111, .035) !important;
}

#rbai54 .p54-intro p {
  color: #3f5678 !important;
  font-size: clamp(15px, 1.25vw, 17px) !important;
  line-height: 1.8 !important;
}

/* Keep the policy cards aligned and readable below the horizontal TOC. */
#rbai54 .p54-card {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 15px !important;
  border-color: #dfe7f5 !important;
  box-shadow: 0 7px 22px rgba(24, 54, 105, .045) !important;
}

@media (min-width: 901px) {
  #rbai54 .p54-toc {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    column-gap: 10px !important;
    row-gap: 9px !important;
  }

  #rbai54 .p54-toc-title {
    grid-column: 1 / -1 !important;
  }
}

@media (min-width: 651px) and (max-width: 900px) {
  #rbai54 .p54-toc {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  #rbai54 .p54-toc-title {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 650px) {
  #rbai54 .p54-layout {
    gap: 14px !important;
  }

  #rbai54 .p54-toc {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 7px !important;
    padding: 13px !important;
    border-radius: 16px !important;
  }

  #rbai54 .p54-toc-title {
    grid-column: 1 / -1 !important;
    margin-bottom: 5px !important;
  }

  #rbai54 .p54-toc a {
    width: 100% !important;
    min-height: 42px !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
  }

  #rbai54 .p54-intro {
    margin-bottom: 12px !important;
    padding: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #rbai54 .p54-toc a {
    transition: none !important;
  }
}


/* RBAI54 — Copy Email Button Hover Fix v1.0.3 */
#rbai54 .p54-copy-email,
#rbai54 .p54-copy-email:visited {
  background: #2563eb !important;
  background-color: #2563eb !important;
  color: #ffffff !important;
  border: 1px solid #2563eb !important;
  opacity: 1 !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease,
              transform 0.2s ease !important;
}

#rbai54 .p54-copy-email:hover {
  background: #1d4ed8 !important;
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
  opacity: 1 !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22) !important;
}

#rbai54 .p54-copy-email:focus,
#rbai54 .p54-copy-email:focus-visible {
  background: #1d4ed8 !important;
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
  outline: 3px solid rgba(37, 99, 235, 0.35) !important;
  outline-offset: 3px !important;
}

#rbai54 .p54-copy-email:active {
  background: #1e40af !important;
  background-color: #1e40af !important;
  color: #ffffff !important;
  transform: translateY(1px) !important;
}
