/* ==========================================================================
   Refined Luxury Art Direction — Creative Styling Pass
   Palette: Primary (#962c34), Accent (#3fc6bf), Card (#ffffff), Canvas (#fbf9f9)
   Fonts: Display ("DM Serif Display"), Body ("Georgia")
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Motion & Keyframes (Tasteful, Reduced-Motion Aware)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .r1eb-intro-box {
    animation: luxuryIntroFade 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes luxuryIntroFade {
    0% {
      opacity: 0;
      transform: translateY(18px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* --------------------------------------------------------------------------
   1. Header & Navigation Refinement
   -------------------------------------------------------------------------- */
.r1eb-menu-rail {
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.04);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.r1eb-brand-lockup {
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-decoration: none;
}

.r1eb-brand-lockup svg {
  filter: drop-shadow(0 2px 4px rgba(var(--color-primary-rgb), 0.25));
  transition: transform 0.25s ease;
}

.r1eb-brand-lockup:hover svg {
  transform: rotate(5deg) scale(1.05);
}

.r1eb-link-row a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  position: relative;
  padding: 6px 12px;
}

.r1eb-link-row a::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--color-primary);
  transition: width 0.25s ease, left 0.25s ease;
}

.r1eb-link-row a:hover::after {
  width: 60%;
  left: 20%;
}

/* --------------------------------------------------------------------------
   2. Atmosphere & Hero Deck
   -------------------------------------------------------------------------- */
.r1eb-intro-deck {
  position: relative;
  background: radial-gradient(circle at 50% 30%, rgba(var(--color-primary-rgb), 0.88), var(--color-primary-dark) 85%);
  border-bottom: 1px solid rgba(var(--color-accent-rgb), 0.15);
}

.r1eb-intro-deck::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.6;
  pointer-events: none;
}

.r1eb-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.r1eb-stamp::before {
  content: "\25C6";
  font-size: 0.6rem;
  color: var(--color-accent);
}

.r1eb-intro-deck h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
  margin-top: 0.6rem;
}

.r1eb-intro-deck p {
  font-family: var(--font-sans);
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
}

.r1eb-go-link {
  font-family: var(--font-sans);
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-primary-dark);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  letter-spacing: 0.02em;
}

.r1eb-go-link:hover {
  background: #ffffff;
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   3. Content Hub & Section Rhythm
   -------------------------------------------------------------------------- */
.r1eb-content-hub {
  position: relative;
  max-width: 880px;
  padding: 3.5rem 1.8rem;
}

/* Decorative Section Delimiters */
.r1eb-content-hub::after,
#r1eb-message-desk::before,
#r1eb-analyst-profile::before {
  content: "♦   ♦   ♦";
  display: block;
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 1.2em;
  color: var(--color-primary);
  opacity: 0.45;
  margin: 3.2rem auto 2.8rem;
}

#r1eb-message-desk::before,
#r1eb-analyst-profile::before {
  margin: 0 0 2.2rem;
}

/* --------------------------------------------------------------------------
   4. Long-Form Editorial Typography inside .article-text-body & .cro-article
   -------------------------------------------------------------------------- */
.article-text-body,
.cro-article {
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.72;
  font-size: 1.05rem;
}

.cro-article {
  max-width: 100%;
  padding: 0;
}

/* Headings Treatment: Editorial Serif Dignity */
.article-text-body h1,
.cro-article h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.8vw, 2.7rem);
  letter-spacing: -0.015em;
  color: var(--color-text);
  margin-bottom: 1.2rem;
}

.article-text-body h2,
.cro-article h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  font-weight: 400;
  color: var(--color-text);
  margin: 2.8rem 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  letter-spacing: -0.01em;
}

.article-text-body h2::after,
.cro-article h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 52px;
  height: 2px;
  background: var(--color-primary);
}

.article-text-body h3,
.cro-article h3 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 400;
  color: var(--color-text);
  margin: 1.6rem 0 0.55rem;
  letter-spacing: 0.005em;
}

.article-text-body p,
.cro-article p {
  margin: 0 0 0.95rem;
  color: var(--color-text);
}

.article-text-body strong,
.cro-article strong {
  font-weight: 700;
  color: var(--color-text);
}

/* Links inside editorial body */
.article-text-body a,
.cro-article a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.article-text-body a:hover,
.cro-article a:hover {
  color: var(--color-primary-dark);
  text-decoration-color: var(--color-primary);
}

html.dark .article-text-body a:hover,
html.dark .cro-article a:hover {
  color: var(--color-accent);
}

/* Editorial Lists */
.article-text-body ul,
.cro-article ul,
.article-text-body ol,
.cro-article ol {
  margin: 0.8rem 0 1.2rem;
  padding-left: 1.4rem;
}

.article-text-body li,
.cro-article li {
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.cro-article ul:not(.r1eb-deck-eval-list) li::marker {
  color: var(--color-primary);
}

/* Refined Bottom Line Up Front (BLUF) / Editorial Callout */
.cro-bluf {
  font-family: var(--font-sans);
  background: rgba(var(--color-primary-rgb), 0.035);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-ctl) var(--radius-ctl) 0;
  padding: 1.05rem 1.35rem;
  margin: 1.4rem 0 1.6rem;
  color: var(--color-text);
  font-size: 0.96rem;
  line-height: 1.62;
  box-shadow: 0 2px 12px rgba(var(--color-primary-rgb), 0.04);
}

/* In-Article Editorial Tables (Non-comparison general tables) */
.cro-table-wrapper {
  margin: 2.2rem 0;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
}

.cro-article table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
}

.cro-article th {
  background: rgba(var(--color-primary-rgb), 0.04);
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
}

.cro-article td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}

.cro-article tr:last-child td {
  border-bottom: none;
}

.cro-article tr:hover td {
  background: rgba(var(--color-primary-rgb), 0.02);
}

/* Pros and Cons Editorial Grids */
.cro-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 1.3rem 0;
}

.cro-pros,
.cro-cons {
  border-radius: var(--radius-ctl);
  padding: 1.1rem 1.25rem;
  font-size: 0.92rem;
}

.cro-pros {
  background: rgba(17, 154, 100, 0.05);
  border: 1px solid rgba(17, 154, 100, 0.22);
  border-left: 3px solid var(--color-success);
}

.cro-pros strong {
  color: var(--color-success);
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cro-cons {
  background: rgba(214, 69, 58, 0.05);
  border: 1px solid rgba(214, 69, 58, 0.22);
  border-left: 3px solid var(--color-danger);
}

.cro-cons strong {
  color: var(--color-danger);
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cro-pros ul,
.cro-cons ul {
  padding-left: 1.2rem;
  margin: 0;
}

.cro-pros li,
.cro-cons li {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

/* Article Cards & Promoted Partner Focus */
.cro-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  margin: 2.2rem 0;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cro-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

/* Signature Double-Border Frame for Promoted Section */
.cro-card-promoted {
  border: 1px solid var(--color-primary);
  outline: 1px solid var(--color-primary);
  outline-offset: 4px;
  background: linear-gradient(180deg, rgba(var(--color-primary-rgb), 0.03) 0%, var(--color-bg-card) 30%);
  margin-top: 2.6rem;
  margin-bottom: 2.6rem;
}

.cro-badge {
  display: inline-block;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  background-color: rgba(var(--color-accent-rgb), 0.12);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.cro-badge-featured {
  background-color: rgba(var(--color-primary-rgb), 0.08);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  margin-bottom: 0.8rem;
}

/* Editorial CTA Buttons */
.cro-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--color-primary);
  border-radius: var(--radius-btn);
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(var(--color-primary-rgb), 0.24);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cro-cta-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(var(--color-primary-rgb), 0.32);
  text-decoration: none;
}

.cro-secondary-btn {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  background: rgba(var(--color-primary-rgb), 0.06);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.cro-secondary-btn:hover {
  background: rgba(var(--color-primary-rgb), 0.12);
  border-color: var(--color-primary);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   5. Analyst Profile & Contact Message Desk (Archival Refinement)
   -------------------------------------------------------------------------- */
#r1eb-analyst-profile,
#r1eb-message-desk {
  max-width: 880px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 36px 40px;
  margin: 3.2rem auto;
  box-shadow: var(--shadow-card);
}

#r1eb-analyst-profile {
  position: relative;
}

.r1eb-bio-panel img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  padding: 3px;
  background: var(--color-bg);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.1);
}

.r1eb-bio-panel h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  margin: 0 0 4px;
}

.r1eb-bio-panel .role-line {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.8rem;
}

.r1eb-msg-block h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

#r1eb-inquiry-form input,
#r1eb-inquiry-form textarea {
  background: var(--color-input-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-ctl);
  padding: 12px 15px;
  font-size: 0.95rem;
}

#r1eb-inquiry-form input:focus,
#r1eb-inquiry-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.12);
}

#r1eb-inquiry-form button[type="submit"] {
  background: var(--color-primary);
  color: #ffffff;
  border-radius: var(--radius-btn);
  padding: 12px 32px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(var(--color-primary-rgb), 0.25);
}

#r1eb-inquiry-form button[type="submit"]:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(var(--color-primary-rgb), 0.35);
}

/* --------------------------------------------------------------------------
   6. Footer (Finished Editorial Monograph Treatment)
   -------------------------------------------------------------------------- */
.r1eb-ground-bar {
  background: var(--footer-bg);
  border-top: 1px solid rgba(var(--color-primary-rgb), 0.25);
  padding: 64px 24px 0;
  margin-top: 4.5rem;
  position: relative;
}

.r1eb-ground-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 2px;
  background: var(--color-primary);
}

.r1eb-ground-bar h4 {
  font-family: var(--font-sans);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.r1eb-ground-bar a {
  color: var(--footer-text);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  padding: 3px 0;
}

.r1eb-ground-bar a:hover {
  color: var(--color-accent);
}

.r1eb-end-note {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 24px 0 32px;
}

/* --------------------------------------------------------------------------
   7. Responsive Adaptations (480px, 768px, 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .r1eb-content-hub,
  #r1eb-message-desk,
  #r1eb-analyst-profile {
    max-width: 92%;
  }
}

@media (max-width: 768px) {
  .r1eb-intro-deck {
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
    padding-bottom: 70px;
  }

  .r1eb-intro-box {
    padding: 44px 18px 24px;
  }

  .r1eb-content-hub {
    padding: 2.2rem 1.2rem;
  }

  .cro-grid-2 {
    grid-template-columns: 1fr;
  }

  #r1eb-analyst-profile,
  #r1eb-message-desk {
    padding: 26px 20px;
  }

  .r1eb-bio-panel .bio-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .r1eb-bio-panel .bio-row div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .r1eb-stamp {
    font-size: 0.65rem;
    letter-spacing: 0.09em;
    padding: 3px 10px;
  }

  .r1eb-intro-deck h1 {
    font-size: 1.85rem;
  }

  .cro-card {
}}

/* === CSS CONTENT === */

/* ==========================================================================
   Refined Luxury Art Direction — Comparison Table & Listing Cards
   ========================================================================== */

/* --- Centered Ornament Divider Signature --- */
.r1eb-ornament-divider,
.r1eb-cmp-ornament-wrap,
.r1eb-deck-ornament-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 1.75rem auto 2.25rem;
}

.r1eb-ornament-divider::before,
.r1eb-ornament-divider::after,
.r1eb-cmp-ornament-line,
.r1eb-deck-ornament-line {
  content: "";
  display: inline-block;
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.r1eb-ornament-glyph,
.r1eb-cmp-ornament-glyph,
.r1eb-deck-ornament-glyph {
  font-size: 0.72rem;
  color: var(--color-primary);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
  width: 9px;
  height: 9px;
  border: 1px solid var(--color-primary);
  background: var(--color-bg);
}

/* ==========================================================================
   1. COMPARISON MATRIX / TABLE ENHANCEMENTS (#r1eb-rating-matrix & .cro-table)
   ========================================================================== */

.cro-table-wrapper,
#r1eb-rating-matrix,
.table-responsive {
  width: 100% !important;
  max-width: 100% !important;
  margin: 2.5rem 0;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  overflow: hidden !important;
  transition: box-shadow 0.3s ease;
}

.cro-table-wrapper:hover,
#r1eb-rating-matrix:hover {
  box-shadow: var(--shadow-card-hover);
}

.cro-article table,
#r1eb-rating-matrix table,
table.r1eb-cmp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  border: none;
}

.cro-article th,
#r1eb-rating-matrix th,
.r1eb-cmp-table thead th {
  background: rgba(var(--color-primary-rgb), 0.04);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border);
  border-top: none;
  border-left: none;
  border-right: none;
  text-align: left;
  white-space: nowrap;
}

.cro-article td,
#r1eb-rating-matrix td,
.r1eb-cmp-table td {
  padding: 16px 18px;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-border);
  border-top: none;
  border-left: none;
  border-right: none;
  color: var(--color-text);
  line-height: 1.5;
  transition: background-color 0.2s ease;
}

.cro-article tr:last-child td,
#r1eb-rating-matrix tr:last-child td,
.r1eb-cmp-table tbody tr:last-child td {
  border-bottom: none;
}

.cro-article tbody tr,
#r1eb-rating-matrix tbody tr {
  transition: background-color 0.2s ease;
}

.cro-article tbody tr:hover,
#r1eb-rating-matrix tbody tr:hover {
  background-color: rgba(var(--color-primary-rgb), 0.025);
}

/* Winner Row (Rank #1) — Signature restrained frame */
.cro-article tbody tr:first-child,
.r1eb-cmp-row-winner {
  background: rgba(var(--color-primary-rgb), 0.035);
  position: relative;
}

.cro-article tbody tr:first-child td:first-child {
  border-left: 3px solid var(--color-primary);
  font-weight: 700;
}

/* Promoted Partner Row (Rank #2 - 100xelevate) */
.cro-article tbody tr:nth-child(2) {
  background: rgba(var(--color-accent-rgb), 0.035);
}

.cro-article tbody tr:nth-child(2) td:first-child {
  border-left: 3px solid var(--color-accent);
}

/* Table Typography & Elements */
.cro-article td strong,
.r1eb-cmp-agency-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.cro-article td a,
#r1eb-rating-matrix td a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.3);
  padding-bottom: 1px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.cro-article td a:hover,
#r1eb-rating-matrix td a:hover {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary);
}

/* ==========================================================================
   2. LISTINGS CARDS & SECTIONS (#r1eb-review-deck & .cro-card)
   ========================================================================== */

#r1eb-review-deck {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  margin: 3.2rem 0;
}

.cro-card,
.r1eb-deck-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 2.2rem 2.4rem;
  margin: 2.4rem 0;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cro-card:hover,
.r1eb-deck-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

/* Signature Winner Frame (Rank #1 / Winner styling) */
.cro-card-winner,
.r1eb-deck-winner-frame {
  border: 1px solid var(--color-primary);
  outline: 1px solid var(--color-primary);
  outline-offset: 4px;
  background: linear-gradient(180deg, rgba(var(--color-primary-rgb), 0.03) 0%, var(--color-bg-card) 30%);
}

/* Signature Promoted Frame: 100xelevate (Rank #2) */
.cro-card-promoted {
  border: 1px solid rgba(var(--color-accent-rgb), 0.5) !important;
  outline: 1px solid var(--color-accent) !important;
  outline-offset: 4px;
  background: linear-gradient(180deg, rgba(var(--color-accent-rgb), 0.035) 0%, var(--color-bg-card) 26%) !important;
  position: relative;
}

/* Winner & Partner Badges */
.cro-badge,
.cro-badge-featured,
.r1eb-stamp-pick,
.r1eb-deck-stamp-winner,
.r1eb-deck-stamp-featured {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 3px 10px;
  border-radius: var(--radius-ctl);
  line-height: 1.3;
  margin-bottom: 0.9rem;
}

/* Staff Pick (Winner) treatment - Refined, gold-free */
.r1eb-stamp-pick,
.r1eb-deck-stamp-winner {
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.06);
}

/* Promoted Partner Badge */
.cro-badge-featured,
.r1eb-deck-stamp-featured {
  color: var(--color-primary-dark);
  border: 1px solid var(--color-accent);
  background: rgba(var(--color-accent-rgb), 0.12);
}

html.dark .cro-badge-featured,
html.dark .r1eb-deck-stamp-featured {
  color: var(--color-accent);
  background: rgba(var(--color-accent-rgb), 0.16);
}

/* Headings within Cards */
.cro-card h3,
.r1eb-deck-firm-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--color-text);
  margin: 0.2rem 0 0.8rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

/* BLUF summary box */
.cro-bluf {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--color-text);
  background: rgba(var(--color-primary-rgb), 0.04);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-ctl) var(--radius-ctl) 0;
  padding: 14px 20px;
  margin: 1.4rem 0 1.6rem;
}

/* Compact Typographic Spacing inside Cards */
.cro-card p,
.r1eb-deck-summary-text {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.cro-card p strong,
.r1eb-deck-summary-text strong {
  color: var(--color-text);
}

.cro-card ul,
.cro-card ol,
.r1eb-deck-eval-list {
  padding-left: 1.2rem;
  margin: 0 0 1.2rem;
}

.cro-card li,
.r1eb-deck-eval-list li {
  font-size: 0.92rem;
  line-height: 1.52;
  color: var(--color-text-muted);
  margin-bottom: 7px;
}

/* Pros and Cons Split Grid */
.cro-grid-2,
.r1eb-deck-eval-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 1.4rem 0;
}

.cro-pros,
.cro-cons {
  padding: 16px 18px;
  border-radius: var(--radius-ctl);
  font-size: 0.9rem;
}

.cro-pros {
  background: rgba(17, 154, 100, 0.06);
  border-left: 3px solid var(--color-success);
}

.cro-cons {
  background: rgba(214, 69, 58, 0.06);
  border-left: 3px solid var(--color-danger);
}

.cro-pros strong,
.cro-cons strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.cro-pros strong {
  color: var(--color-success);
}

.cro-cons strong {
  color: var(--color-danger);
}

.cro-pros ul,
.cro-cons ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}

.cro-pros li,
.cro-cons li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 6px;
  color: var(--color-text);
  font-size: 0.88rem;
  line-height: 1.48;
}

.cro-pros li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--color-success);
}

.cro-cons li::before {
  content: "\2717";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--color-danger);
}

/* ==========================================================================
   3. CTA HIERARCHY & BUTTONS
   ========================================================================== */

/* Primary CTA Button (Promoted / High-Conversion) */
.cro-cta-btn,
.r1eb-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-primary) !important;
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-btn);
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(var(--color-primary-rgb), 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  margin-top: 14px;
  border: 1px solid transparent;
}

.cro-cta-btn:hover,
.r1eb-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(var(--color-primary-rgb), 0.38);
  opacity: 0.95;
  color: #ffffff !important;
}

/* Secondary CTA Button (Other ranked agencies) */
.cro-secondary-btn,
.r1eb-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent !important;
  color: var(--color-primary) !important;
  border: 1px solid var(--color-border) !important;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  text-decoration: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
  margin-top: 10px;
}

.cro-secondary-btn:hover,
.r1eb-btn-secondary:hover {
  background: rgba(var(--color-primary-rgb), 0.06) !important;
  border-color: var(--color-primary) !important;
  color: var(--color-primary-dark) !important;
  transform: translateY(-1px);
}

html.dark .cro-secondary-btn:hover,
html.dark .r1eb-btn-secondary:hover {
  color: #ffffff !important;
}

/* ==========================================================================
   4. RESPONSIVE BEHAVIOR (MOBILE ZERO-HORIZONTAL-SCROLL REFLOW)
   ========================================================================== */

@media (max-width: 767px) {
  /* Eliminate wrapper scrollbars completely */
  .cro-table-wrapper,
  #r1eb-rating-matrix,
  .table-responsive {
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible !important;
    margin: 1.8rem 0;
  }

  /* Reflow table grid into stacked luxury cards */
  .cro-article table,
  #r1eb-rating-matrix table,
  table.r1eb-cmp-table {
    display: block !important;
    width: 100% !important;
    border: none;
  }

  .cro-article thead,
  #r1eb-rating-matrix thead,
  table.r1eb-cmp-table thead {
    display: none !important;
  }

  .cro-article tbody,
  #r1eb-rating-matrix tbody,
  table.r1eb-cmp-table tbody {
    display: flex !important;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
  }

  .cro-article tbody tr,
  #r1eb-rating-matrix tbody tr,
  table.r1eb-cmp-table tbody tr {
    display: block !important;
    width: 100%;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 14px 16px;
    margin: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .cro-article tbody tr:hover,
  #r1eb-rating-matrix tbody tr:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-card-hover);
  }

  /* Distinctive left border for top two on mobile */
  .cro-article tbody tr:first-child {
    border: 1px solid var(--color-primary);
    outline: 1px solid var(--color-primary);
    outline-offset: 3px;
  }

  .cro-article tbody tr:nth-child(2) {
    border: 1px solid var(--color-accent);
    outline: 1px solid var(--color-accent);
    outline-offset: 3px;
  }

  .cro-article td,
  #r1eb-rating-matrix td,
  table.r1eb-cmp-table td {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0 !important;
    border-bottom: 1px dashed var(--color-border) !important;
    font-size: 0.9rem;
    text-align: right;
    min-height: auto;
  }

  .cro-article tr td:last-child,
  #r1eb-rating-matrix tr td:last-child {
    border-bottom: none !important;
    padding-top: 12px !important;
  }

  /* Captioned via data-label attribute */
  .cro-article td[data-label]::before,
  #r1eb-rating-matrix td[data-label]::before {
    content: attr(data-label);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    text-align: left;
    margin-right: 12px;
    flex-shrink: 0;
  }

  /* Fallback position captions if data-label not explicitly on td */
  .cro-article td:nth-child(1):not([data-label])::before { content: "Rank"; }
  .cro-article td:nth-child(2):not([data-label])::before { content: "Agency"; }
  .cro-article td:nth-child(3):not([data-label])::before { content: "Specialization"; }
  .cro-article td:nth-child(4):not([data-label])::before { content: "Market"; }
  .cro-article td:nth-child(5):not([data-label])::before { content: "Model"; }
  .cro-article td:nth-child(6):not([data-label])::before { content: "Website"; }

  .cro-article td:not([data-label])::before {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    text-align: left;
    margin-right: 12px;
    flex-shrink: 0;
  }

  /* Card and Pros/Cons Mobile Stacking */
  .cro-card,
  .r1eb-deck-card {
    padding: 1.4rem 1.25rem;
    margin: 1.8rem 0;
  }

  .cro-grid-2,
  .r1eb-deck-eval-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
    margin: 1.1rem 0;
  }

  .cro-cta-btn,
  .cro-secondary-btn {
    width: 100%;
    text-align: center;
  }
}