/* ==========================================================================
   Risingline Framework — rl-framework.css
   Bootstrap 5.3.8 | Bootstrap Icons 1.11.3
   ========================================================================== */


/* ==========================================================================
   1. Design Tokens (CSS Custom Properties)

   Swap these values per client. Class names stay the same.
   Focus color (#ffdd00) is constant — do not change.
   ========================================================================== */

:root {
  /* Brand Colors */
  --rl-color-primary:      #2b5ea7;   /* Main brand color — nav, headings, links */
  --rl-color-primary-dark:  #1e4278;  /* Darker variant for hover states */
  --rl-color-secondary:    #d4a853;   /* Accent / secondary brand color */
  --rl-color-dark:         #1a2332;   /* Dark backgrounds, footer */
  --rl-color-light:        #f5f7fa;   /* Light backgrounds, panels */

  /* Text */
  --rl-color-text:         #2a2a2a;   /* Body copy (dark gray, not pure black) */
  --rl-color-text-light:   #555555;   /* Muted / secondary text */
  --rl-color-white:        #ffffff;

  /* Interactive */
  --rl-color-cta:          #2b5ea7;   /* Primary button background */
  --rl-color-cta-hover:    #1e4278;   /* Primary button hover */

  /* Borders */
  --rl-color-border:       #e0e0e0;

  /* Focus — GOV.UK yellow — constant across ALL client sites */
  --rl-color-focus:        #ffdd00;

  /* Fluid Typography Scale — 375px → 1280px viewport */
  /* H1 is keyed to the homepage hero (96px desktop / 48px floor, face
     500 / lh 1 / -0.05em). Subheads h2-h6 stay on the text-scale ladder
     (~1.24 steps from a 36px h2 anchor, landing on 18px body): the
     uniform-1.4 ladder derived from 96 was tried 2026-07-27 and reverted
     same day (owner call, h2 at 69px too large). */
  /* 2026-07-28 owner call: interior h1-h3 shifted down the x1.24 grid
     (h1 96->59 = two notches, back to the pre-hero-keying curve; h2 takes
     the old h3 step; h3 interpolated between h2 and h4). The homepage hero
     alone keeps 96px via its own clamp in rl-blueprint.css. */
  --rl-h1: clamp(33px, 2.87vw + 22.2px, 59px);
  --rl-h2: clamp(26px, 1.18vw + 21.6px, 36.7px);
  --rl-h3: clamp(23px, 0.66vw + 20.5px, 29px);
  --rl-h4: clamp(20px, 0.31vw + 18.8px, 22.8px);
  --rl-h5: 20px;
  --rl-h6: 18px;
  --rl-body: 18px;
  /* Heading ladder (owner pick 2026-08-06, "double-step"): geometric
     ~1.27x steps with a deliberate DOUBLE step between h1 and h2, so
     the headline scale separates from the section scale (h2 = h1/1.27^2;
     reference sites run h2 at 50-65% of h1 — a uniform ladder crowds
     the h1, tried and rejected twice). No heading below body size. */
  --rl-btn: clamp(12px, 0.22vw + 11.2px, 14px);
  --rl-btn-sm: clamp(11px, 0.22vw + 10.2px, 13px);

  /* Font Families */
  --rl-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --rl-font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --rl-font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* Spacing */
  --rl-section-padding:    3.5rem;
  --rl-section-padding-sm: 2rem;
  --rl-container-padding:  27px;

  /* Radii */
  --rl-radius:    12px;
  --rl-radius-sm: 8px;
  --rl-radius-lg: 16px;

  /* Shadows */
  --rl-shadow:    0 2px 16px rgba(0, 0, 0, 0.08);
  --rl-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}


/* ==========================================================================
   2. Base Styles
   ========================================================================== */


/* Sticky footer (standard, 2026-08-20): on short pages (404, thank-you,
   receipts) the footer must still reach the bottom of the viewport. The
   body becomes a flex column and <main> absorbs the slack. */
body {
  font-family: var(--rl-font-body);
  font-size: var(--rl-body);
  color: var(--rl-color-text);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

a {
  color: var(--rl-color-primary);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--rl-color-cta-hover);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  padding-left: var(--rl-container-padding);
  padding-right: var(--rl-container-padding);
}

.row {
  --bs-gutter-x: 30px;
}

/* First/last child margin cleanup — prevents padding+margin stacking
   in every padded content container across the framework. */
.rl-card-body > *:first-child,
.rl-feature-card > *:first-child,
.rl-accordion-inner > *:first-child,
.rl-tab-accordion-panel > *:first-child,
.rl-bento-item > *:first-child,
.rl-hero-split-text > *:first-child,
.rl-hero-centered .container > *:first-child,
.rl-testimonial-card > *:first-child,
.rl-pricing-card > *:first-child,
.rl-contact-card > *:first-child,
.rl-team-card-bordered > *:first-child,
.rl-section .container > *:first-child,
.rl-section .container > .row > [class*="col-"] > *:first-child {
  margin-top: 0;
}

.rl-card-body > *:last-child,
.rl-feature-card > *:last-child,
.rl-accordion-inner > *:last-child,
.rl-tab-accordion-panel > *:last-child,
.rl-bento-item > *:last-child,
.rl-hero-split-text > *:last-child,
.rl-hero-centered .container > *:last-child,
.rl-testimonial-card > *:last-child,
.rl-pricing-card > *:last-child,
.rl-contact-card > *:last-child,
.rl-team-card-bordered > *:last-child,
.rl-section .container > *:last-child,
.rl-section .container > .row > [class*="col-"] > *:last-child {
  margin-bottom: 0;
}

/* Exception: a .row keeps its negative gutter compensation. The cleanup
   above otherwise flattens it while the columns keep their +gutter-y,
   so every g-* row opening a section leaks phantom top space. */
.rl-section .container > .row:first-child {
  margin-top: calc(-1 * var(--bs-gutter-y));
}


/* ==========================================================================
   3. Typography System

   Fluid type scale — one declaration handles all breakpoints.
   Heading styles use font tokens. Override --rl-font-heading per client.
   ========================================================================== */

h1 {
  font-family: var(--rl-font-heading);
  font-size: var(--rl-h1);
  font-weight: 500;
  /* 1.1 sitewide (owner 2026-09-02): interior h1s are often full-sentence
     titles that wrap to 2-3 lines, unreadable at 1.0. A front-page hero h1
     may re-tighten per site with its own scoped rule. */
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: var(--rl-color-text);
  margin-bottom: calc(0.5rem + 5px);
  text-wrap: pretty;
}

h2 {
  font-family: var(--rl-font-heading);
  font-size: var(--rl-h2);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
  color: var(--rl-color-dark);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-family: var(--rl-font-heading);
  font-size: var(--rl-h3);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.5px;
  color: var(--rl-color-dark);
  margin-top: 1.75rem;
  margin-bottom: 0.35rem;
}

h4 {
  font-family: var(--rl-font-heading);
  font-size: var(--rl-h4);
  font-weight: 700;
  line-height: 1.3;
  color: var(--rl-color-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.3rem;
}

h5 {
  font-family: var(--rl-font-heading);
  font-size: var(--rl-h5);
  font-weight: 700;
  line-height: 1.3;
  color: var(--rl-color-dark);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

h6 {
  font-family: var(--rl-font-heading);
  font-size: var(--rl-h6);
  font-weight: 700;
  line-height: 1.3;
  color: var(--rl-color-dark);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

h5, h6 {
  font-family: var(--rl-font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--rl-color-dark);
}

/* Lead text — intro paragraphs */
.rl-lead {
  font-size: clamp(17px, 0.55vw + 14.9px, 22px);
  color: var(--rl-color-text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Section label — uppercase category tag above headings */
.rl-section-label {
  font-family: var(--rl-font-body);
  font-size: var(--rl-btn);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--rl-color-primary);
  margin-bottom: 0.5rem;
  display: block;
}

/* Pull the heading tight to its label — heading top margins otherwise win
   the margin collapse and leave ~2rem of dead air under every eyebrow.
   (Found on risingline.com rebuild, 2026-07-24.) */
.rl-section-label + h1,
.rl-section-label + h2,
.rl-section-label + h3 {
  margin-top: 0;
}


/* ==========================================================================
   4. Skip Link
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--rl-color-focus);
  color: #000;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 0;
}


/* ==========================================================================
   5. Focus-Visible Baseline
   ========================================================================== */

/* Focus ring = KEYBOARD navigation only (owner rule, restated 2026-09-25).
   EVERY ring is gated behind html.kbd-nav, which the Tab-key detector in
   rl-scripts.js sets and any pointerdown or a Back/Forward pageshow clears.
   Plain :focus-visible is NOT enough on its own: Chromium matches it on
   mouse-clicked input/select/textarea, and on the link a browser re-focuses
   when the visitor comes Back from the page they clicked through to
   (madronavineyards blog, 2026-09-25). Without the class, no element shows
   a ring, whatever focused it. */
html:not(.kbd-nav) a:focus,
html:not(.kbd-nav) button:focus,
html:not(.kbd-nav) input:focus,
html:not(.kbd-nav) select:focus,
html:not(.kbd-nav) textarea:focus,
html:not(.kbd-nav) iframe:focus,  /* clicking a field inside an embedded form (MachForm) focuses the frame element itself */
html:not(.kbd-nav) summary:focus,
html:not(.kbd-nav) [tabindex]:focus {
  outline: none !important;
}
html:not(.kbd-nav) .form-control:focus {
  box-shadow: none !important;
}

html.kbd-nav a:focus-visible,
html.kbd-nav button:focus-visible,
html.kbd-nav input:focus-visible,
html.kbd-nav select:focus-visible,
html.kbd-nav textarea:focus-visible,
html.kbd-nav iframe:focus-visible,
html.kbd-nav summary:focus-visible,
html.kbd-nav [tabindex]:focus-visible {
  outline: 3px solid var(--rl-color-focus) !important;
  outline-offset: 2px !important;
}

/* Logo: focus on the img child, not the link wrapper */
html.kbd-nav .navbar-brand:focus-visible {
  outline: none !important;
}

html.kbd-nav .navbar-brand:focus-visible img {
  outline: 3px solid var(--rl-color-focus);
  outline-offset: 2px;
}

/* Image links: outline wraps the image */
html.kbd-nav a:has(img):not(.navbar-brand):focus-visible {
  outline: 3px solid var(--rl-color-focus) !important;
  outline-offset: 4px !important;
}

/* Text links and buttons: high-contrast focus state */
html.kbd-nav a:focus-visible:not(:has(img)):not(.navbar-brand),
html.kbd-nav button:focus-visible,
html.kbd-nav .btn:focus-visible,
html.kbd-nav .rl-btn:focus-visible,
html.kbd-nav input[type="submit"]:focus-visible {
  background: #fff !important;
  color: #000 !important;
  box-shadow: inset 0 0 0 1px #000 !important;
  text-shadow: none !important;
}


/* ==========================================================================
   6. Content Link Underlines (WCAG link-in-text-block)
   Target ALL content areas, not just <p> tags.
   ========================================================================== */

main a:not(.btn):not(.rl-btn):not(.rl-btn-light):not(.rl-btn-outline):not(.rl-btn-outline-light):not(.rl-title-link):not(.nav-link):not(.navbar-brand):not(.back-to-top) {
  text-decoration: underline;
}

main a:not(.btn):not(.rl-btn):not(.rl-btn-light):not(.rl-btn-outline):not(.rl-btn-outline-light):not(.rl-title-link):not(.nav-link):not(.navbar-brand):not(.back-to-top):hover {
  text-decoration: none;
}


/* ==========================================================================
   7. External Link + PDF Link Icons (Bootstrap Icons)
   Applied via JS auto-detection in rl-scripts.js
   ========================================================================== */

/* External link icon — box-arrow-up-right */
.external-link::after {
  content: "\f1c5";
  font-family: "bootstrap-icons";
  margin-left: 4px;
  font-size: 0.75em;
  text-decoration: none !important;
  display: inline-block;
}

/* PDF link icon — file-earmark-pdf */
.pdf-link::after {
  content: "\f63e"; /* bi-file-earmark-pdf (f32b = emoji-wink in icons 1.11) */
  font-family: "bootstrap-icons";
  margin-left: 4px;
  font-size: 0.85em;
  color: #ea4335;
  text-decoration: none !important;
  display: inline-block;
}


/* ==========================================================================
   8. Screen Reader Utilities
   ========================================================================== */

.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;
}


/* ==========================================================================
   9. Button System

   Four variants: primary, outline, light, outline-light.
   All use consistent sizing. Context-aware on dark backgrounds.
   ========================================================================== */

/* Shared structure — all four button variants */
.rl-btn,
.rl-btn-outline,
.rl-btn-light,
.rl-btn-outline-light {
  display: inline-block;
  padding: 0.75rem 2rem;
  min-height: 44px;
  font-family: var(--rl-font-body);
  font-size: var(--rl-btn);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--rl-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.5;
}

/* Primary — solid brand color */
.rl-btn { background-color: var(--rl-color-cta); border-color: var(--rl-color-cta); color: var(--rl-color-white); }
.rl-btn:hover { background-color: var(--rl-color-cta-hover); border-color: var(--rl-color-cta-hover); color: var(--rl-color-white); }

/* Outline — transparent with brand border */
.rl-btn-outline { background-color: transparent; border-color: var(--rl-color-cta); color: var(--rl-color-cta); }
.rl-btn-outline:hover { background-color: var(--rl-color-cta); border-color: var(--rl-color-cta); color: var(--rl-color-white); }

/* Light — white button for dark backgrounds */
.rl-btn-light { background-color: var(--rl-color-white); border-color: var(--rl-color-white); color: var(--rl-color-cta); }
.rl-btn-light:hover { background-color: var(--rl-color-light); border-color: var(--rl-color-light); color: var(--rl-color-cta-hover); }

/* Outline Light — white outline for dark backgrounds */
.rl-btn-outline-light { background-color: transparent; border-color: var(--rl-color-white); color: var(--rl-color-white); }
.rl-btn-outline-light:hover { background-color: var(--rl-color-white); color: var(--rl-color-cta); }

/* Utility: remove tracking. Buttons/labels carry 1.5px letter-spacing by
   default; add .rl-ls-none where that spacing reads too airy (first use:
   the compact starter-gallery buttons). Declared after the button rules
   so it wins at equal specificity. */
.rl-ls-none { letter-spacing: normal; }

/* Small button modifier — works on any .rl-btn variant */
.rl-btn-sm {
  font-size: var(--rl-btn-sm);
  padding: 0.4rem 1.25rem;
  min-height: auto;
}

/* Bootstrap overrides — use tokens instead of BS5 defaults */
.text-primary {
  color: var(--rl-color-primary) !important;
}

.btn-primary {
  background-color: var(--rl-color-cta);
  border-color: var(--rl-color-cta);
  color: var(--rl-color-white);
}

.btn-primary:hover {
  background-color: var(--rl-color-cta-hover);
  border-color: var(--rl-color-cta-hover);
  color: var(--rl-color-white);
}


/* ==========================================================================
   10. Section Containers + Backgrounds

   Usage: <section class="rl-section rl-bg-light">
   Padding variants stack: <section class="rl-section rl-section-lg rl-bg-dark">
   ========================================================================== */

/* --- Base section --- */
.rl-section {
  padding: var(--rl-section-padding) 0;
}


/* --- Padding variants --- */
.rl-section-sm  { padding: var(--rl-section-padding-sm) 0; }
.rl-section-lg  { padding: calc(var(--rl-section-padding) * 1.5) 0; }
.rl-section-flush-top    { padding-top: 0; }
.rl-section-flush-bottom { padding-bottom: 0; }

/* --- Light backgrounds (dark text — default) --- */
.rl-bg-white { background-color: var(--rl-color-white); }
.rl-bg-light { background-color: var(--rl-color-light); }

/* --- Dark backgrounds (white text) --- */
.rl-bg-dark {
  background-color: var(--rl-color-dark);
  color: var(--rl-color-white);
}

.rl-bg-primary {
  background-color: var(--rl-color-primary);
  color: var(--rl-color-white);
}

/* Dark background headings */
.rl-bg-dark h1, .rl-bg-dark h2, .rl-bg-dark h3, .rl-bg-dark h4,
.rl-bg-primary h1, .rl-bg-primary h2, .rl-bg-primary h3, .rl-bg-primary h4 {
  color: var(--rl-color-white);
}

/* Dark background muted text */
.rl-bg-dark .rl-lead,
.rl-bg-dark .text-muted-custom,
.rl-bg-primary .rl-lead,
.rl-bg-primary .text-muted-custom {
  color: rgba(255, 255, 255, 0.8);
}

/* Dark background section labels. 0.85 alpha: 0.7 white on the primary blue
   measured 4.06:1, under AA for 14px text; 0.85 measures 5.17:1. */
.rl-bg-dark .rl-section-label,
.rl-bg-primary .rl-section-label {
  color: rgba(255, 255, 255, 0.85);
}

/* Dark background links */
.rl-bg-dark a:not(.rl-btn):not(.rl-btn-light):not(.rl-btn-outline-light):not(.rl-btn-outline):not(.back-to-top),
.rl-bg-primary a:not(.rl-btn):not(.rl-btn-light):not(.rl-btn-outline-light):not(.rl-btn-outline):not(.back-to-top) {
  color: rgba(255, 255, 255, 0.8);
}

.rl-bg-dark a:not(.rl-btn):not(.rl-btn-light):not(.rl-btn-outline-light):not(.rl-btn-outline):not(.back-to-top):hover,
.rl-bg-primary a:not(.rl-btn):not(.rl-btn-light):not(.rl-btn-outline-light):not(.rl-btn-outline):not(.back-to-top):hover {
  color: var(--rl-color-white);
}

/* --- Auto-border between adjacent white sections --- */
main .rl-section.rl-bg-white + .rl-section.rl-bg-white {
  border-top: 1px solid var(--rl-color-border);
}

/* --- Section divider (explicit ruled separator) --- */
.rl-section-ruled {
  border-top: 1px solid var(--rl-color-border);
}


/* ==========================================================================
   11. Header + Global Nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--rl-color-white);
  box-shadow: var(--rl-shadow);
  border-bottom: 1px solid transparent;
}

.navbar {
  padding: 0.4rem 0;
}

.navbar-brand img {
  height: 52px;
  width: auto;
}

.navbar-nav {
  --bs-navbar-nav-link-padding-x: 1.25rem;
}

.navbar-nav .nav-link {
  color: var(--rl-color-text);
  font-weight: 500;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--rl-color-primary);
}

/* Dropdown: open on hover/focus-within on desktop — parent link navigates */
@media (min-width: 992px) {
  .navbar-nav .dropdown:hover > .dropdown-menu,
  .navbar-nav .dropdown:focus-within > .dropdown-menu {
    display: block;
    margin-top: 0;
  }

  .dropdown-toggle::after {
    margin-left: 0.35em;
  }
}

.dropdown-menu {
  border: none;
  box-shadow: var(--rl-shadow);
  border-radius: var(--rl-radius-sm);
}

.dropdown-item {
  padding: 0.5rem 1.25rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--rl-color-light);
  color: var(--rl-color-primary);
}

/* --- Utility Bar (above main nav) --- */
.rl-utility-bar {
  background: var(--rl-color-dark);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8125rem;
  padding: 0.4rem 0;
}

.rl-utility-bar a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.rl-utility-bar a:hover {
  color: #fff;
}

.rl-utility-bar .rl-utility-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: flex-end;
}

.rl-utility-bar .rl-utility-sep {
  width: 1px;
  height: 1rem;
  background: rgba(255, 255, 255, 0.2);
}

/* Hide utility bar items on mobile, show phone only */
@media (max-width: 767.98px) {
  .rl-utility-bar .rl-utility-hide-mobile {
    display: none;
  }
}

/* --- Search toggle (icon + slide-down bar) --- */
.rl-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--rl-color-text);
  font-size: 16px;
  padding: 0;
  margin-left: 0.5rem;
}

.rl-search-btn:hover {
  color: var(--rl-color-primary);
}

.rl-search-btn:focus-visible {
  outline: 3px solid var(--rl-color-focus);
  outline-offset: 2px;
}

.rl-search-bar {
  max-height: 0;
  overflow: hidden;
  background: var(--rl-color-light);
  border-top: 1px solid transparent;
  transition: max-height 0.3s ease, border-top-color 0.3s ease;
}

.rl-search-bar.open {
  max-height: 80px;
  border-top-color: var(--rl-color-border);
}

.rl-search-bar form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  padding: 14px 30px;
}

.rl-search-bar input[type="text"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--rl-color-border);
  border-right: none;
  font-size: 15px;
  font-family: var(--rl-font-body);
  border-radius: var(--rl-radius-sm) 0 0 var(--rl-radius-sm);
  outline: none;
  background: #fff;
}

.rl-search-bar input[type="text"]:focus,
.rl-search-bar input[type="text"]:focus-visible {
  border-color: var(--rl-color-primary);
  outline: none !important;
}

.rl-search-bar button[type="submit"] {
  background: var(--rl-color-primary);
  color: #fff;
  border: 1px solid var(--rl-color-primary);
  padding: 10px 20px;
  font-size: 15px;
  font-family: var(--rl-font-body);
  cursor: pointer;
  border-radius: 0 var(--rl-radius-sm) var(--rl-radius-sm) 0;
}

.rl-search-bar button[type="submit"]:hover {
  background: var(--rl-color-primary-dark);
  border-color: var(--rl-color-primary-dark);
}

/* Mobile search — visible at bottom of collapsed/offcanvas nav */
.rl-mobile-search {
  display: none;
}

@media (max-width: 991.98px) {
  .rl-search-btn { display: none; }
  .rl-search-bar { display: none; }

  .rl-mobile-search {
    display: block;
    padding: 12px 20px;
    background: var(--rl-color-light);
    border-top: 1px solid var(--rl-color-border);
  }

  .rl-mobile-search form {
    display: flex;
  }

  .rl-mobile-search input[type="text"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--rl-color-border);
    border-right: none;
    font-size: 15px;
    font-family: var(--rl-font-body);
    border-radius: var(--rl-radius-sm) 0 0 var(--rl-radius-sm);
    outline: none;
  }

  .rl-mobile-search input[type="text"]:focus,
  .rl-mobile-search input[type="text"]:focus-visible {
    border-color: var(--rl-color-primary);
    outline: none !important;
  }

  .rl-mobile-search button[type="submit"] {
    background: var(--rl-color-primary);
    color: #fff;
    border: 1px solid var(--rl-color-primary);
    padding: 10px 16px;
    font-size: 15px;
    font-family: var(--rl-font-body);
    cursor: pointer;
    border-radius: 0 var(--rl-radius-sm) var(--rl-radius-sm) 0;
  }
}


/* --- Offcanvas navbar variant --- */
.rl-offcanvas-nav .offcanvas {
  --bs-offcanvas-width: 300px;
}

.rl-offcanvas-nav .offcanvas-header {
  border-bottom: 1px solid var(--rl-color-border);
}

/* Offcanvas mobile styles only — desktop inherits normal navbar spacing */
@media (max-width: 991.98px) {
  .rl-offcanvas-nav .offcanvas-body .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--rl-color-border);
  }

  .rl-offcanvas-nav .offcanvas-body .dropdown-menu {
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }
}


/* --- Stacked header variant (centered logo + nav row below) --- */
.rl-header-brand {
  padding: 1rem 0;
  text-align: center;
  border-bottom: 1px solid var(--rl-color-border);
}

.rl-header-brand .container-fluid {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.rl-header-brand .navbar-brand {
  margin: 0;
}

.rl-header-brand .navbar-toggler {
  position: absolute;
  left: 1rem;
}

.rl-header-brand .rl-search-btn {
  position: absolute;
  right: 1rem;
}

.rl-nav-row {
  background: var(--rl-color-white);
}

.rl-nav-row .navbar-nav {
  justify-content: center;
  width: 100%;
}

.rl-nav-row .nav-link {
  padding: 0.4rem 1.25rem;
}

/* Mobile: stacked header collapses like standard navbar */
@media (max-width: 991.98px) {
  .rl-header-brand {
    border-bottom: none;
  }

  .rl-nav-row .navbar-collapse .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--rl-color-border);
  }

  .rl-nav-row .navbar-collapse .dropdown-menu {
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }
}


/* --- Mega Menu (modifier — works on any header variant) --- */
.rl-mega-menu {
  width: 100%;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  border: none;
  border-top: 2px solid var(--rl-color-primary);
  border-radius: 0;
  box-shadow: var(--rl-shadow-lg);
}

.rl-mega-heading {
  font-family: var(--rl-font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--rl-color-primary);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rl-color-border);
}

.rl-mega-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rl-mega-menu ul li {
  margin-bottom: 0.25rem;
}

.rl-mega-menu ul a {
  color: var(--rl-color-text);
  text-decoration: none;
  font-size: 0.9375rem;
  padding: 0.25rem 0;
  display: block;
  transition: color 0.2s;
}

.rl-mega-menu ul a:hover,
.rl-mega-menu ul a:focus {
  color: var(--rl-color-primary);
}

/* Desktop: position mega menu relative to header, not the li */
@media (min-width: 992px) {
  .rl-has-mega {
    position: static;
  }
}

/* Mobile: mega menu stacks to single column */
@media (max-width: 991.98px) {
  .rl-mega-menu {
    box-shadow: none;
    border: none;
    border-top: none;
    padding: 0.5rem 0 0.5rem 1rem;
  }

  .rl-mega-menu .row > [class*="col"] {
    margin-bottom: 1rem;
  }

  .rl-mega-heading {
    margin-top: 0.5rem;
  }
}


/* ==========================================================================
   12. Hero Sections

   Three variants:
   .rl-hero-split    — Text left + image right (homepage / landing)
   .rl-hero-centered — Centered text (interior pages)
   .rl-hero-image    — Full-width background image + overlay
   ========================================================================== */

/* --- Shared hero base --- */
.rl-hero-split,
.rl-hero-centered,
.rl-hero-image {
  position: relative;
}

.rl-hero-split h1,
.rl-hero-centered h1,
.rl-hero-image h1 {
  margin-bottom: 1rem;
}

.rl-hero-split .rl-lead,
.rl-hero-centered .rl-lead,
.rl-hero-image .rl-lead {
  margin-bottom: 2rem;
}

/* --- Split Hero: text + image side by side --- */
.rl-hero-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 300px;
}

.rl-hero-split-text {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--rl-color-light);
}

.rl-hero-split-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 280px;
}

@media (min-width: 992px) {
  .rl-hero-split {
    grid-template-columns: 1fr 1fr;
    min-height: 460px;
  }

  .rl-hero-split-text {
    padding: 3rem;
  }

  .rl-hero-split-img {
    min-height: 0;
  }
}

/* Split: image on left instead of right */
.rl-hero-split-reverse .rl-hero-split-img {
  order: -1;
}

/* Split: dark text panel.
   .rl-hero-split-text sets its own light background at single-class
   specificity and is declared AFTER .rl-bg-dark / .rl-bg-primary, so the
   background must be restated here or the panel stays light with white text. */
.rl-hero-split-text.rl-bg-dark,
.rl-hero-split-text.rl-bg-primary {
  color: var(--rl-color-white);
}

.rl-hero-split-text.rl-bg-dark    { background-color: var(--rl-color-dark); }
.rl-hero-split-text.rl-bg-primary { background-color: var(--rl-color-primary); }

.rl-hero-split-text.rl-bg-dark h1,
.rl-hero-split-text.rl-bg-primary h1 {
  color: var(--rl-color-white);
}

.rl-hero-split-text.rl-bg-dark .rl-lead,
.rl-hero-split-text.rl-bg-primary .rl-lead {
  color: rgba(255, 255, 255, 0.8);
}

.rl-hero-split-text.rl-bg-dark .rl-section-label,
.rl-hero-split-text.rl-bg-primary .rl-section-label {
  color: rgba(255, 255, 255, 0.85);
}

/* --- Centered Hero: interior / subpages --- */
.rl-hero-centered {
  padding: 3rem 0;
  background-color: var(--rl-color-light);
  text-align: center;
}

/* No measure cap on the lead: text fills its container (owner ruling,
   DESIGN-STANDARD section 4). The former 720px max-width is removed. */

@media (min-width: 768px) {
  .rl-hero-centered {
    padding: 4rem 0;
  }
}

/* --- Image Hero: full-width photo with overlay --- */
.rl-hero-image {
  padding: 5rem 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--rl-color-white);
}

.rl-hero-image h1 {
  color: var(--rl-color-white);
}

.rl-hero-image .rl-lead {
  color: rgba(255, 255, 255, 0.9);
}

.rl-hero-image .rl-section-label {
  color: rgba(255, 255, 255, 0.7);
}

/* Overlay — required child div */
.rl-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* Overlay color variants */
.rl-hero-overlay-dark {
  background: rgba(26, 35, 50, 0.7);
}

.rl-hero-overlay-primary {
  background: rgba(43, 94, 167, 0.75);
}

.rl-hero-overlay-gradient {
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.8), rgba(43, 94, 167, 0.7));
}

/* Content sits above overlay */
.rl-hero-image .container {
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .rl-hero-image {
    padding: 6rem 0;
  }
}

/* --- Legacy .hero class (reference site landing pages) --- */
.hero {
  padding: var(--rl-section-padding) 0;
  border-bottom: 1px solid var(--rl-color-border);
}

.hero h1 {
  border-top: 1px solid var(--rl-color-border);
  border-bottom: 1px solid var(--rl-color-border);
  padding: 1rem 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
  margin-bottom: 1rem;
}

.hero .rl-lead {
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero {
    padding: calc(var(--rl-section-padding) + 1.5rem) 0;
  }
}


/* ==========================================================================
   13. Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--rl-color-border);
  padding: 0;
  background: #fff;
}

/* Blueprint-style minimal footer */
.bp-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  font-size: 0.875rem;
  color: var(--rl-color-text-light);
}

.bp-footer > span,
.bp-footer > a {
  padding: 0.75rem 0;
  margin-right: 1.5rem;
}

.bp-footer a {
  color: var(--rl-color-text-light);
  text-decoration: none;
}

.bp-footer a:hover {
  color: var(--rl-color-text);
}

.bp-footer-version {
  font-family: var(--rl-font-mono);
  font-size: 0.75rem;
  opacity: 0.5;
}


/* --- Footer Variants --- */

/* Simple footer — single row: copyright + inline links */
.rl-footer-simple {
  background: var(--rl-color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 1.5rem 0;
  font-size: 0.875rem;
}

.rl-footer-simple .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.rl-footer-simple a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.rl-footer-simple a:hover { color: #fff; }

.rl-footer-links {
  display: flex;
  gap: 1.5rem;
}

/* Column footer — 4-col grid with about, links, contact, social */
.rl-footer-columns {
  background: var(--rl-color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 1.5rem;
  font-size: 0.9375rem;
}

/* .h5 variant lets client sites keep a valid heading order (h2/h3 styled as
   h5) — same treatment as the raw h5 the reference demos use. */
.rl-footer-columns h5,
.rl-footer-columns .h5 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.rl-footer-columns a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.rl-footer-columns a:hover { color: #fff; }

.rl-footer-columns ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rl-footer-columns ul li { margin-bottom: 0.5rem; }

.rl-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.rl-footer-social {
  display: flex;
  gap: 1rem;
  font-size: 1.25rem;
}

.rl-footer-social a:hover { color: var(--rl-color-secondary); }

/* Newsletter footer — signup band + columns below.
   The columns block below the band reuses the column-footer text rules
   (headings, links, lists) so they read on the dark ground; without them
   the h5s rendered dark-on-dark. Vertical padding lives here rather than
   inline on .container so Bootstrap's horizontal container padding stays
   intact (zeroing it let the .row's negative margins overflow at phone
   widths). */
.rl-footer-newsletter {
  background: var(--rl-color-dark);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

.rl-footer-newsletter > .container {
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
}

.rl-footer-newsletter h5,
.rl-footer-newsletter .h5 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.rl-footer-newsletter a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.rl-footer-newsletter a:hover { color: #fff; }

.rl-footer-newsletter ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rl-footer-newsletter ul li { margin-bottom: 0.5rem; }

/* Below the lg breakpoint the footer columns stack; give each stacked
   column breathing room (measured: "Quick Links" sat flush under the
   about paragraph at 390px). */
@media (max-width: 991.98px) {
  .rl-footer-columns .row > [class*="col-"] + [class*="col-"],
  .rl-footer-newsletter .row > [class*="col-"] + [class*="col-"] {
    margin-top: 1.75rem;
  }
}

.rl-footer-newsletter-band {
  background: var(--rl-color-primary);
  color: #fff;
  padding: 2rem 0;
}

.rl-footer-newsletter-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.rl-footer-newsletter-band h5 {
  color: #fff;
  margin: 0;
  font-size: 1.125rem;
}

.rl-footer-newsletter-band form {
  display: flex;
  max-width: 400px;
  width: 100%;
}

.rl-footer-newsletter-band input[type="email"] {
  flex: 1;
  padding: 0.625rem 1rem;
  border: none;
  border-radius: var(--rl-radius-sm) 0 0 var(--rl-radius-sm);
  font-size: 0.9375rem;
  font-family: var(--rl-font-body);
}

.rl-footer-newsletter-band button[type="submit"] {
  padding: 0.625rem 1.25rem;
  background: var(--rl-color-dark);
  color: #fff;
  border: none;
  border-radius: 0 var(--rl-radius-sm) var(--rl-radius-sm) 0;
  font-size: 0.9375rem;
  font-family: var(--rl-font-body);
  cursor: pointer;
}

.rl-footer-newsletter-band button[type="submit"]:hover {
  background: #000;
}


/* ==========================================================================
   14. CTA Sections

   Full-width call-to-action bands. Centered text + buttons.
   .rl-cta           — Light background (default)
   .rl-cta-dark      — Dark background, white text
   .rl-cta-primary   — Brand color background, white text
   .rl-cta-gradient  — Brand gradient, white text
   .rl-cta-image     — Background image with overlay, white text
   ========================================================================== */

/* --- Shared CTA base --- */
.rl-cta,
.rl-cta-dark,
.rl-cta-primary,
.rl-cta-gradient,
.rl-cta-image {
  padding: calc(var(--rl-section-padding) * 1.25) 0;
  text-align: center;
}

.rl-cta h2,
.rl-cta-dark h2,
.rl-cta-primary h2,
.rl-cta-gradient h2,
.rl-cta-image h2 {
  margin-bottom: 1rem;
  margin-top: 0;
}

.rl-cta p,
.rl-cta-dark p,
.rl-cta-primary p,
.rl-cta-gradient p,
.rl-cta-image p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

/* --- Light CTA --- */
.rl-cta {
  background-color: var(--rl-color-light);
}

/* --- Dark CTA --- */
.rl-cta-dark {
  background-color: var(--rl-color-dark);
  color: var(--rl-color-white);
}

.rl-cta-dark h2 { color: var(--rl-color-white); }
.rl-cta-dark p { color: rgba(255, 255, 255, 0.85); }

/* --- Primary CTA --- */
.rl-cta-primary {
  background-color: var(--rl-color-primary);
  color: var(--rl-color-white);
}

.rl-cta-primary h2 { color: var(--rl-color-white); }
.rl-cta-primary p { color: rgba(255, 255, 255, 0.9); }

/* --- Gradient CTA --- */
.rl-cta-gradient {
  background: linear-gradient(135deg, var(--rl-color-primary) 0%, var(--rl-color-primary-dark) 100%);
  color: var(--rl-color-white);
}

.rl-cta-gradient h2 { color: var(--rl-color-white); }
.rl-cta-gradient p { color: rgba(255, 255, 255, 0.9); }

/* --- Image CTA (background image + overlay) --- */
.rl-cta-image {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--rl-color-white);
}

.rl-cta-image h2 { color: var(--rl-color-white); }
.rl-cta-image p { color: rgba(255, 255, 255, 0.9); }

.rl-cta-image .container {
  position: relative;
  z-index: 1;
}

/* Reuse hero overlay classes on CTA image sections */


/* ==========================================================================
   15. Content Blocks + Feature Grids

   .rl-content-block  — Two-column text + image, alternating sides
   .rl-feature-grid   — Icon + heading + text columns (3 or 4 across)
   .rl-feature-list   — Checklist with icons (inside content blocks)
   ========================================================================== */

/* --- Content Block: text + image two-column --- */
.rl-content-block {
  padding: var(--rl-section-padding) 0;
}

.rl-content-block h2 {
  margin-bottom: 1rem;
}

.rl-content-block p {
  color: var(--rl-color-text-light);
  line-height: 1.7;
}

.rl-content-block img {
  border-radius: var(--rl-radius);
  display: block;
  max-width: 90%;
  height: auto;
  margin: 0 auto;
}

.rl-content-block .rl-content-img {
  margin-top: 2rem;
}

@media (min-width: 992px) {
  .rl-content-block .rl-content-img {
    margin-top: 0;
  }
}

/* --- Feature List: checklist with icons --- */
.rl-feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.rl-feature-list li {
  padding: 0.4rem 0;
  color: var(--rl-color-text-light);
}

.rl-feature-list li i {
  color: var(--rl-color-primary);
  margin-right: 0.5rem;
}

/* --- Feature Grid: icon columns --- */
.rl-feature-grid {
  text-align: center;
}

.rl-feature-grid .rl-feature-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--rl-radius);
  background-color: var(--rl-color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
  color: var(--rl-color-white);
}

.rl-feature-grid h3 {
  font-size: var(--rl-h4);
  margin-bottom: 0.75rem;
  margin-top: 0;
}

.rl-feature-grid p {
  color: var(--rl-color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.rl-feature-grid .rl-feature-link {
  font-size: var(--rl-btn-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rl-feature-grid .rl-feature-link i {
  margin-left: 4px;
  font-size: 0.75em;
}

/* Feature grid card: optional hover effect */
.rl-feature-card {
  padding: 2rem 1.5rem;
  border-radius: var(--rl-radius);
  transition: box-shadow 0.2s ease;
  height: 100%;
}

.rl-feature-card:hover {
  box-shadow: var(--rl-shadow);
}

/* --- Feature Grid: hanging icon variant --- */
.rl-feature-hanging {
  text-align: left;
}

.rl-feature-hanging .rl-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--rl-radius-sm);
  font-size: 1.25rem;
  margin: 0;
  flex-shrink: 0;
}

.rl-feature-hanging h3 {
  font-size: var(--rl-h4);
  margin-bottom: 0.5rem;
  margin-top: 0;
}

/* --- Dark background overrides for features --- */
.rl-bg-dark .rl-feature-grid p,
.rl-bg-dark .rl-feature-list li,
.rl-bg-dark .rl-content-block p,
.rl-bg-primary .rl-feature-grid p,
.rl-bg-primary .rl-feature-list li,
.rl-bg-primary .rl-content-block p {
  color: rgba(255, 255, 255, 0.8);
}

.rl-bg-dark .rl-feature-list li i,
.rl-bg-primary .rl-feature-list li i {
  color: rgba(255, 255, 255, 0.7);
}

.rl-bg-dark .rl-feature-grid .rl-feature-icon,
.rl-bg-primary .rl-feature-grid .rl-feature-icon {
  background-color: rgba(255, 255, 255, 0.15);
}


/* ==========================================================================
   16. Cards

   .rl-card       — Image-top card (photo + body with title, text, CTA)
   .rl-card-link  — Clickable tile (icon + label, entire card is a link)
   ========================================================================== */

/* --- Standard card: image top + body --- */
.rl-card {
  background: var(--rl-color-white);
  border: 1px solid var(--rl-color-border);
  border-radius: var(--rl-radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.rl-card:hover {
  box-shadow: var(--rl-shadow-lg);
}

.rl-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.rl-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rl-card-body h3 {
  font-size: var(--rl-h4);
  margin-bottom: 0.75rem;
}

.rl-card-body p {
  color: var(--rl-color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.rl-card-body .rl-feature-link {
  margin-top: auto;
}

/* Card without image — just body */
.rl-card-flat {
  border: none;
  box-shadow: var(--rl-shadow);
}

.rl-card-flat:hover {
  box-shadow: var(--rl-shadow-lg);
}

/* --- Link card: clickable tile (icon + label) --- */
.rl-card-link {
  background: var(--rl-color-white);
  border-radius: var(--rl-radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--rl-shadow);
  transition: box-shadow 0.2s ease;
  text-decoration: none;
  color: var(--rl-color-text);
  display: block;
}

.rl-card-link:hover {
  box-shadow: var(--rl-shadow-lg);
  color: var(--rl-color-primary);
}

.rl-card-link i {
  font-size: 2rem;
  color: var(--rl-color-primary);
  margin-bottom: 0.75rem;
  display: block;
}

.rl-card-link span {
  font-weight: 700;
  font-size: 0.9375rem;
}


/* --- Masonry grid: natural card heights for packed layout --- */
.rl-masonry .rl-card {
  height: auto;
}

.rl-masonry .rl-card img {
  height: auto;
}


/* ==========================================================================
   17. FAQ / Text Accordion

   CSS-animated expand/collapse with grid-template-rows transition.
   JS toggles .active class on items. One item open at a time (optional).
   ========================================================================== */

.rl-accordion {
  margin-top: 0;
}

.rl-accordion-item {
  background: var(--rl-color-white);
  border: 1px solid var(--rl-color-border);
  border-top: none;
}

.rl-accordion-item:first-child {
  border-top: 1px solid var(--rl-color-border);
}

/* Trigger button */
.rl-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.5rem;
  font-family: var(--rl-font-heading);
  font-size: clamp(16px, 0.55vw + 13.9px, 20px);
  font-weight: 700;
  color: var(--rl-color-primary);
  text-align: left;
  background: var(--rl-color-light);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.rl-accordion-trigger:hover {
  background-color: var(--rl-color-border);
}

.rl-accordion-item.active > .rl-accordion-trigger {
  border-bottom: 1px solid var(--rl-color-border);
}

/* Plus/minus indicator */
.rl-accordion-trigger::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--rl-font-body);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  margin-left: 1rem;
  color: var(--rl-color-primary);
}

.rl-accordion-item.active > .rl-accordion-trigger::after {
  content: '\2013';
}

/* Animated content panel */
.rl-accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.rl-accordion-item.active > .rl-accordion-content {
  grid-template-rows: 1fr;
}

.rl-accordion-inner {
  overflow: hidden;
  padding: 0 1.5rem;
  transition: padding 0.3s ease;
}

.rl-accordion-item.active > .rl-accordion-content > .rl-accordion-inner {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.rl-accordion-inner p {
  line-height: 1.7;
}


/* ==========================================================================
   18. Stats

   Big-number callouts for impact sections, about pages, and CTAs.
   .rl-stats     — Grid wrapper (use BS row-cols for column control)
   .rl-stat      — Individual stat item
   ========================================================================== */

.rl-stat {
  text-align: center;
  padding: 1.5rem 1rem;
}

.rl-stat-number {
  font-family: var(--rl-font-heading);
  font-size: clamp(36px, 3vw + 24px, 60px);
  font-weight: 900;
  line-height: 1;
  color: var(--rl-color-primary);
  margin-bottom: 0.5rem;
}

.rl-stat-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rl-color-text-light);
  font-weight: 600;
}

/* Stats on dark backgrounds */
.rl-bg-dark .rl-stat-number,
.rl-bg-primary .rl-stat-number {
  color: var(--rl-color-secondary);
}

/* On the primary blue the gold accent measures 2.92:1, just under the 3:1
   large-text minimum. Lighten it 20% toward white (3.46:1); the plain
   token above stays as the fallback for browsers without color-mix. */
.rl-bg-primary .rl-stat-number {
  color: color-mix(in srgb, var(--rl-color-secondary) 80%, white);
}

.rl-bg-dark .rl-stat-label,
.rl-bg-primary .rl-stat-label {
  color: rgba(255, 255, 255, 0.8);
}

/* Stats with dividers between columns */
.rl-stats-divided .rl-stat {
  position: relative;
}

.rl-stats-divided .rl-stat + .rl-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  border-left: 1px solid var(--rl-color-border);
}

.rl-bg-dark .rl-stats-divided .rl-stat + .rl-stat::before,
.rl-bg-primary .rl-stats-divided .rl-stat + .rl-stat::before {
  border-left-color: rgba(255, 255, 255, 0.2);
}

/* Hide dividers on mobile when stacked */
@media (max-width: 767.98px) {
  .rl-stats-divided .rl-stat + .rl-stat::before {
    display: none;
  }
}


/* ==========================================================================
   19. Logo Cloud / Partner Bar

   Responsive row of partner/client logos.
   .rl-logo-cloud — Flex wrapper with centered, wrapping logos
   ========================================================================== */

.rl-logo-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 3rem;
}

.rl-logo-cloud img,
.rl-logo-cloud svg {
  height: 80px;
  width: auto;
  opacity: 0.45;
  filter: grayscale(100%);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.rl-logo-cloud img:hover,
.rl-logo-cloud svg:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Larger logo variant */
.rl-logo-cloud-lg img,
.rl-logo-cloud-lg svg {
  height: 56px;
}

/* Color logos (no grayscale) */
.rl-logo-cloud-color img,
.rl-logo-cloud-color svg {
  filter: none;
  opacity: 0.8;
}

.rl-logo-cloud-color img:hover,
.rl-logo-cloud-color svg:hover {
  opacity: 1;
}


/* ==========================================================================
   20. Team / About Section

   Staff photo + bio cards for team and about pages.
   .rl-team-card — Photo-top card with name, title, bio
   ========================================================================== */

.rl-team-card {
  text-align: center;
  height: 100%;
}

.rl-team-card img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  display: block;
}

.rl-team-card h3 {
  font-size: var(--rl-h4);
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.rl-team-card .rl-team-title {
  font-size: 0.875rem;
  color: var(--rl-color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  display: block;
}

.rl-team-card p {
  color: var(--rl-color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Team card with full card background */
.rl-team-card-bordered {
  background: var(--rl-color-white);
  border: 1px solid var(--rl-color-border);
  border-radius: var(--rl-radius);
  padding: 2rem 1.5rem;
  transition: box-shadow 0.2s ease;
}

.rl-team-card-bordered:hover {
  box-shadow: var(--rl-shadow);
}

/* Team social links */
.rl-team-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.rl-team-social a {
  color: var(--rl-color-text-light);
  font-size: 1.25rem;
  transition: color 0.2s ease;
}

.rl-team-social a:hover {
  color: var(--rl-color-primary);
}


/* ==========================================================================
   21. Back to Top Button
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--rl-color-primary);
  color: var(--rl-color-white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1034;
  font-size: 1.25rem;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--rl-color-cta-hover);
  color: var(--rl-color-white);
}


/* ==========================================================================
   22. Utility Classes
   ========================================================================== */

.text-muted-custom {
  color: var(--rl-color-text-light);
}

.bg-light-custom {
  background: var(--rl-color-light);
}

/* Code blocks on dark backgrounds */
.rl-bg-dark code,
.rl-bg-primary code,
.rl-cta-dark code,
.rl-cta-primary code,
.rl-cta-gradient code,
.rl-cta-image code,
.rl-hero-image code {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
}


/* ==========================================================================
   23. Testimonials
   ========================================================================== */

/* Single testimonial */
.rl-testimonial {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.rl-testimonial-quote {
  /* Body size - quote/blockquote text never renders larger than body copy
     (owner ruling, 2026-09-03). */
  font-size: var(--rl-body);
  font-style: italic;
  line-height: 1.7;
  color: var(--rl-color-text);
  margin-bottom: 1.5rem;
  position: relative;
}

.rl-testimonial-quote::before {
  content: '\201C';
  font-size: 4rem;
  line-height: 1;
  color: var(--rl-color-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.rl-testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  object-fit: cover;
}

.rl-testimonial-name {
  font-weight: 600;
  color: var(--rl-color-dark);
}

.rl-testimonial-title {
  font-size: 0.875rem;
  color: var(--rl-color-text-light);
}

/* Testimonial grid — 3-column card layout */
.rl-testimonial-card {
  background: var(--rl-color-white);
  border: 1px solid var(--rl-color-border);
  border-radius: var(--rl-radius);
  padding: 2rem;
}

.rl-testimonial-card .rl-testimonial-quote {
  font-size: 1rem;
  text-align: left;
}

.rl-testimonial-card .rl-testimonial-quote::before {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}

.rl-testimonial-card-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.rl-testimonial-card-footer .rl-testimonial-avatar {
  margin: 0;
  width: 48px;
  height: 48px;
}

.rl-testimonial-card-footer .rl-testimonial-name {
  font-size: 0.9375rem;
}

.rl-testimonial-card-footer .rl-testimonial-title {
  font-size: 0.8125rem;
}

/* Testimonial carousel */
.rl-testimonial-carousel .carousel-indicators button {
  background-color: var(--rl-color-primary);
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.rl-testimonial-carousel .carousel-control-prev-icon,
.rl-testimonial-carousel .carousel-control-next-icon {
  filter: invert(0.3);
}


/* ==========================================================================
   24. Pricing
   ========================================================================== */

/* Pricing cards — 3-column layout */
.rl-pricing-card {
  background: var(--rl-color-white);
  border: 1px solid var(--rl-color-border);
  border-radius: var(--rl-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.rl-pricing-card-featured {
  border-color: var(--rl-color-primary);
  border-width: 2px;
  position: relative;
}

.rl-pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rl-color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 1rem;
  border-radius: 999px;
}

.rl-pricing-plan {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--rl-color-dark);
  margin-bottom: 0.5rem;
}

.rl-pricing-price {
  font-family: var(--rl-font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--rl-color-dark);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.rl-pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--rl-color-text-light);
}

.rl-pricing-desc {
  font-size: 0.875rem;
  color: var(--rl-color-text-light);
  margin-bottom: 1.5rem;
}

.rl-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: left;
  flex: 1;
}

.rl-pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rl-color-border);
  font-size: 0.9375rem;
}

.rl-pricing-features li:last-child { border-bottom: none; }

.rl-pricing-features i {
  color: var(--rl-color-primary);
  margin-right: 0.5rem;
}

/* Pricing comparison table */
.rl-pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.rl-pricing-table thead th {
  text-align: center;
  padding: 1.5rem 1rem;
  border-bottom: 2px solid var(--rl-color-border);
}

.rl-pricing-table thead th:first-child {
  text-align: left;
}

.rl-pricing-table tbody td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--rl-color-border);
}

.rl-pricing-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
}

.rl-pricing-table .bi-check-lg { color: var(--rl-color-primary); font-size: 1.25rem; }
.rl-pricing-table .bi-x-lg { color: #ccc; font-size: 0.875rem; }

@media (max-width: 767.98px) {
  .rl-pricing-table { font-size: 0.8125rem; }
  .rl-pricing-table thead th,
  .rl-pricing-table tbody td { padding: 0.5rem; }
}


/* ==========================================================================
   25. Contact / Form Layouts
   ========================================================================== */

/* Side-by-side — info left, form right */
.rl-contact-info h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--rl-color-dark);
  margin-bottom: 0.25rem;
}

.rl-contact-info p {
  color: var(--rl-color-text-light);
  margin-bottom: 1.5rem;
}

.rl-contact-info i {
  color: var(--rl-color-primary);
  margin-right: 0.5rem;
}

/* Form styling */
.rl-form .form-label {
  font-weight: 500;
  font-size: 0.9375rem;
}

.rl-form .form-control {
  border-color: var(--rl-color-border);
  padding: 0.625rem 0.875rem;
}

.rl-form .form-control:focus {
  border-color: var(--rl-color-primary);
  box-shadow: 0 0 0 0.2rem rgba(43, 94, 167, 0.15);
}

/* Info cards — 3-column above form */
.rl-contact-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--rl-color-light);
  border-radius: var(--rl-radius);
}

.rl-contact-card i {
  font-size: 2rem;
  color: var(--rl-color-primary);
  margin-bottom: 1rem;
  display: block;
}

.rl-contact-card h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.rl-contact-card a {
  color: var(--rl-color-primary);
}


/* ==========================================================================
   26. Caption Grid

   Image cards with a text caption below. Equal-height grid via row-cols.
   ========================================================================== */

/* GLightbox — zoom cursor + magnifying glass hint on hover */
a.glightbox {
  cursor: zoom-in;
  position: relative;
}

a.glightbox::after {
  content: '\F52A';
  font-family: 'bootstrap-icons';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  font-size: 2rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

a.glightbox:hover::after,
a.glightbox:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* GLightbox caption overrides — tighten spacing */
.glightbox-clean .gslide-description {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.92);
}

.glightbox-clean .gdesc-inner {
  padding: 10px 16px;
}

.glightbox-clean .gslide-title {
  margin: 0;
  line-height: 1.4;
}

.rl-caption-card {
  overflow: hidden;
  border-radius: var(--rl-radius);
  background: var(--rl-color-white);
  border: 1px solid var(--rl-color-border);
}

.rl-caption-card img {
  width: 100%;
  display: block;
}

.rl-caption-card figcaption {
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--rl-color-text-light);
}

.rl-caption-card figcaption strong {
  display: block;
  color: var(--rl-color-text);
  margin-bottom: 0.25rem;
}


/* ==========================================================================
   27. Hover Caption Cards

   Image card with a solid caption that slides up on hover/focus.
   No text over images — caption is a separate opaque panel.
   ========================================================================== */

.rl-overlay-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--rl-radius);
  border: 1px solid var(--rl-color-border);
  display: block;
  text-decoration: none;
  color: var(--rl-color-text);
  background: var(--rl-color-white);
}

.rl-overlay-card img {
  width: 100%;
  display: block;
  transition: filter 0.3s ease;
}

.rl-overlay-card::after {
  content: '\F430';
  font-family: 'bootstrap-icons';
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.875rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.rl-overlay-card:hover::after,
.rl-overlay-card:focus-within::after {
  opacity: 0;
}

.rl-overlay-card:hover img,
.rl-overlay-card:focus-within img {
  filter: brightness(0.7);
}

.rl-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--rl-color-border);
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--rl-color-text-light);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.rl-overlay-card:hover .rl-overlay-content,
.rl-overlay-card:focus-visible .rl-overlay-content {
  transform: translateY(0);
}

.rl-overlay-content h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--rl-color-text);
  margin: 0 0 0.25rem;
}

.rl-overlay-content p {
  margin: 0;
}

@media (max-width: 767px) {
  .rl-overlay-content {
    transform: translateY(0);
  }

  .rl-overlay-card::after {
    display: none;
  }
}


/* ==========================================================================
   28. Filterable Grid

   Category buttons that show/hide cards. JS toggles .rl-filter-hidden.
   ========================================================================== */

.rl-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.rl-filter-btn {
  display: inline-block;
  padding: 0.4rem 1.25rem;
  font-size: var(--rl-btn-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid var(--rl-color-border);
  border-radius: var(--rl-radius-sm);
  background: transparent;
  color: var(--rl-color-text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.rl-filter-btn:hover {
  border-color: var(--rl-color-primary);
  color: var(--rl-color-primary);
}

.rl-filter-btn.active {
  background: var(--rl-color-primary);
  border-color: var(--rl-color-primary);
  color: #fff;
}

.rl-filter-item {
  transition: opacity 0.3s ease;
}

.rl-filter-hidden {
  display: none;
}


/* ==========================================================================
   29. Carousel / Slider

   Manual-advance slider with prev/next buttons and pagination dots.
   No auto-rotation (WCAG 2.2.2). Keyboard accessible.
   ========================================================================== */

.rl-slider {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.rl-slider-inner {
  display: flex;
  align-items: center;
  position: relative;
}

.rl-slides {
  flex: 1;
  display: grid;
  overflow: hidden;
}

.rl-slide {
  grid-area: 1 / 1;
  width: 100%;
  visibility: hidden;
  opacity: 0;
  /* True crossfade (dissolve): delay the visibility flip to the end of the
     fade so the outgoing slide stays visible while it fades out and the
     incoming slide fades in over it. Without the delayed visibility, an
     inactive slide would flip to hidden instantly and only the incoming
     slide's fade-in would be seen (fade-in-only, not a crossfade). */
  transition: opacity 0.6s ease-in-out, visibility 0s linear 0.6s;
}

.rl-slide.active {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.6s ease-in-out, visibility 0s;
}

.rl-slider-nav {
  background: rgba(0, 0, 0, 0.08);
  border: none;
  color: var(--rl-color-text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.rl-slider-nav:hover {
  background: var(--rl-color-primary);
  color: #fff;
}

.rl-slider-prev { margin-right: 15px; }
.rl-slider-next { margin-left: 15px; }

.rl-slider-pagination {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 0;
}

.rl-slider-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: background-color 0.2s ease;
}

.rl-slider-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--rl-color-text);
  background: transparent;
  transition: background-color 0.2s ease;
}

.rl-slider-dot:hover::after {
  background: rgba(0, 0, 0, 0.2);
}

.rl-slider-dot.active::after {
  background: var(--rl-color-text);
}

@media (max-width: 767px) {
  .rl-slides { display: block; }
  .rl-slide { display: none; visibility: visible; opacity: 1; }
  .rl-slide.active { display: block; }
  .rl-slider-nav { width: 36px; height: 36px; }
  .rl-slider-prev { margin-right: 10px; }
  .rl-slider-next { margin-left: 10px; }
}

@media (max-width: 500px) {
  .rl-slider-inner { flex-wrap: wrap; }
  .rl-slides { order: 1; width: 100%; }
  .rl-slider-nav { width: 40px; height: 40px; }
  .rl-slider-prev { order: 2; margin: 15px 10px 0 0; }
  .rl-slider-next { order: 3; margin: 15px 0 0 10px; }
  .rl-slider-pagination { order: 4; width: 100%; }
}


/* ==========================================================================
   30. Team Expand — Expandable bio grid

   Click a team card to reveal a full-width bio panel below the card's row.
   JS injects .rl-team-expand-panel into the grid as a row-spanning item.
   Composes with .rl-filter-bar for category filtering.
   ========================================================================== */

.rl-team-expand {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 991px) {
  .rl-team-expand { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
  .rl-team-expand { grid-template-columns: 1fr; }
}

.rl-team-expand-trigger {
  display: block;
  width: 100%;
  background: var(--rl-color-white);
  border: 1px solid var(--rl-color-border);
  border-radius: var(--rl-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.rl-team-expand-trigger:hover {
  box-shadow: var(--rl-shadow);
}

.rl-team-expand-trigger[aria-expanded="true"] {
  border-color: var(--rl-color-primary);
  box-shadow: var(--rl-shadow);
}

.rl-team-expand-trigger .rl-team-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.5rem;
}

.rl-team-expand-trigger .rl-team-name {
  display: block;
  font-size: var(--rl-h4);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.rl-team-expand-trigger .rl-team-title {
  display: block;
  font-size: 0.875rem;
  color: var(--rl-color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Panel — JS injects this as a full-width grid item after the active row */
.rl-team-expand-panel {
  grid-column: 1 / -1;
  background: var(--rl-color-white);
  border: 1px solid var(--rl-color-primary);
  border-radius: var(--rl-radius);
  padding: 2rem 2.5rem;
  position: relative;
  margin-top: 0.5rem;
  transform-origin: top center;
  animation: rl-team-expand-in 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.rl-team-expand-panel.is-closing {
  animation: rl-team-expand-out 0.5s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes rl-team-expand-in {
  from {
    opacity: 0;
    transform: translateY(-24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes rl-team-expand-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-24px) scale(0.96);
  }
}

/* Arrow pointing up to the active card */
.rl-team-expand-panel::before {
  content: '';
  position: absolute;
  top: -10px;
  left: var(--rl-arrow-x, 50%);
  width: 18px;
  height: 18px;
  background: var(--rl-color-white);
  border-left: 1px solid var(--rl-color-primary);
  border-top: 1px solid var(--rl-color-primary);
  transform: translateX(-50%) rotate(45deg);
}

.rl-team-expand-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--rl-color-text-light);
  padding: 0.5rem 0.75rem;
  border-radius: var(--rl-radius-sm);
}

.rl-team-expand-close:hover {
  color: var(--rl-color-text);
  background: rgba(0, 0, 0, 0.05);
}

.rl-team-expand-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 575px) {
  .rl-team-expand-body {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.rl-team-expand-body .rl-team-photo-lg {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 4rem;
}

@media (max-width: 575px) {
  .rl-team-expand-body .rl-team-photo-lg { margin: 0 auto; }
}

.rl-team-expand-body h3 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.rl-team-expand-body .rl-team-title {
  display: block;
  font-size: 0.875rem;
  color: var(--rl-color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.rl-team-expand-body p {
  color: var(--rl-color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.rl-team-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

@media (max-width: 575px) {
  .rl-team-contact { justify-content: center; }
}

.rl-team-contact a {
  color: var(--rl-color-text);
  text-decoration: none;
}

.rl-team-contact a:hover {
  color: var(--rl-color-primary);
  text-decoration: underline;
}

.rl-team-contact i {
  color: var(--rl-color-primary);
  margin-right: 0.4rem;
}


/* ==========================================================================
   31. Timeline

   Vertical timeline with center line and alternating left/right cards.
   .rl-timeline-simple — single-column stacked variant.
   Mobile: always stacks to single column.
   ========================================================================== */

.rl-timeline {
  position: relative;
  padding: 2rem 0;
}

.rl-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--rl-color-border);
  transform: translateX(-50%);
}

.rl-timeline-item {
  position: relative;
  width: 50%;
  padding: 0 2.5rem 2rem;
}

.rl-timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-right: 2.5rem;
  padding-left: 0;
}

.rl-timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
  padding-left: 2.5rem;
  padding-right: 0;
}

.rl-timeline-dot {
  position: absolute;
  top: 0.25rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--rl-color-primary);
  border: 3px solid var(--rl-color-white);
  box-shadow: 0 0 0 2px var(--rl-color-primary);
}

.rl-timeline-item:nth-child(odd) .rl-timeline-dot {
  right: -7px;
}

.rl-timeline-item:nth-child(even) .rl-timeline-dot {
  left: -7px;
}

.rl-timeline-date {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rl-color-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.rl-timeline-content h3 {
  font-size: var(--rl-h4);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.rl-timeline-content p {
  color: var(--rl-color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Simple single-column variant */
.rl-timeline-simple::before {
  left: 6px;
  transform: none;
}

.rl-timeline-simple .rl-timeline-item,
.rl-timeline-simple .rl-timeline-item:nth-child(odd) {
  width: 100%;
  left: 0;
  text-align: left;
  padding-left: 2.5rem;
  padding-right: 0;
}

.rl-timeline-simple .rl-timeline-dot,
.rl-timeline-simple .rl-timeline-item:nth-child(odd) .rl-timeline-dot {
  left: 0;
  right: auto;
}

@media (max-width: 767px) {
  .rl-timeline:not(.rl-timeline-simple)::before {
    left: 6px;
    transform: none;
  }

  .rl-timeline:not(.rl-timeline-simple) .rl-timeline-item,
  .rl-timeline:not(.rl-timeline-simple) .rl-timeline-item:nth-child(odd) {
    width: 100%;
    left: 0;
    text-align: left;
    padding-left: 2.5rem;
    padding-right: 0;
  }

  .rl-timeline:not(.rl-timeline-simple) .rl-timeline-dot,
  .rl-timeline:not(.rl-timeline-simple) .rl-timeline-item:nth-child(odd) .rl-timeline-dot {
    left: 0;
    right: auto;
  }
}


/* ==========================================================================
   32. Tabs

   Horizontal tab navigation with panel switching.
   .rl-tab-list-pills — rounded pill variant.
   JS handles switching + keyboard navigation (ArrowLeft/Right, Home, End).
   ========================================================================== */

.rl-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 2px solid var(--rl-color-border);
  margin-bottom: 1.5rem;
  list-style: none;
  padding: 0;
  margin-top: 0;
}

.rl-tab {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--rl-color-text-light);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
}

.rl-tab:hover {
  color: var(--rl-color-text);
}

.rl-tab[aria-selected="true"] {
  color: var(--rl-color-primary);
  border-bottom-color: var(--rl-color-primary);
}

/* Pill variant */
.rl-tab-list-pills {
  border-bottom: none;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.rl-tab-list-pills .rl-tab {
  border-bottom: none;
  border-radius: var(--rl-radius-sm);
  margin-bottom: 0;
  padding: 0.5rem 1.25rem;
}

.rl-tab-list-pills .rl-tab[aria-selected="true"] {
  background: var(--rl-color-primary);
  color: var(--rl-color-white);
}

.rl-tab-panel {
  display: none;
}

.rl-tab-panel.active {
  display: block;
}


/* ==========================================================================
   33. Blog / News Cards

   Card patterns for news, updates, and blog listing pages.
   .rl-blog-card — image-top card
   .rl-blog-card-horizontal — image-left card
   .rl-blog-card-minimal — text-only, no image
   ========================================================================== */

.rl-blog-card {
  background: var(--rl-color-white);
  border: 1px solid var(--rl-color-border);
  border-radius: var(--rl-radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.rl-blog-card:hover {
  box-shadow: var(--rl-shadow);
}

.rl-blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.rl-blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rl-blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--rl-color-text-light);
  margin-bottom: 0.75rem;
}

.rl-blog-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--rl-color-primary);
  color: var(--rl-color-white);
  border-radius: var(--rl-radius-sm);
}

.rl-blog-card h3 {
  font-size: var(--rl-h4);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.rl-blog-card h3 a {
  color: var(--rl-color-text);
  text-decoration: none;
}

.rl-blog-card h3 a:hover {
  color: var(--rl-color-primary);
}

.rl-blog-card p {
  color: var(--rl-color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.rl-blog-read-more {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--rl-color-primary);
  text-decoration: none;
  margin-top: auto;
}

.rl-blog-read-more:hover {
  text-decoration: underline;
}

/* Horizontal variant */
.rl-blog-card-horizontal {
  flex-direction: row;
}

.rl-blog-card-horizontal img {
  width: 280px;
  height: auto;
  min-height: 200px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .rl-blog-card-horizontal {
    flex-direction: column;
  }
  .rl-blog-card-horizontal img {
    width: 100%;
    height: 200px;
  }
}

/* Minimal text-only variant */
.rl-blog-card-minimal {
  border: none;
  border-bottom: 1px solid var(--rl-color-border);
  border-radius: 0;
  overflow: visible;
  /* Minimal cards stack inside ONE column — the base card's height:100%
     (equal-height grids) resolves against the column's fixed height when
     stacked, inflating every card to full column height and overflowing
     the section (Chromium % -vs- stretched-flex-item resolution). */
  height: auto;
}

.rl-blog-card-minimal:hover {
  box-shadow: none;
}

.rl-blog-card-minimal .rl-blog-card-body {
  padding: 1rem 0;
}


/* ==========================================================================
   34. Process Steps

   Numbered step-by-step "How it works" pattern.
   Horizontal with connecting line; stacks vertically on mobile.
   .rl-process-vertical — always vertical.
   ========================================================================== */

.rl-process {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.rl-process::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: var(--rl-color-border);
}

.rl-process-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 1rem;
}

.rl-process-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--rl-color-primary);
  color: var(--rl-color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
}

.rl-process-number i {
  font-size: 1.25rem;
}

.rl-process-step h3 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.rl-process-step p {
  color: var(--rl-color-text-light);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Vertical variant */
.rl-process-vertical {
  flex-direction: column;
  align-items: flex-start;
}

.rl-process-vertical::before {
  top: 28px;
  bottom: 28px;
  left: 27px;
  right: auto;
  width: 2px;
  height: auto;
}

.rl-process-vertical .rl-process-step {
  display: flex;
  align-items: flex-start;
  text-align: left;
  padding: 0 0 2rem 0;
  gap: 1.5rem;
}

.rl-process-vertical .rl-process-step:last-child {
  padding-bottom: 0;
}

.rl-process-vertical .rl-process-number {
  flex-shrink: 0;
  margin: 0;
}

@media (max-width: 767px) {
  .rl-process:not(.rl-process-vertical) {
    flex-direction: column;
    align-items: flex-start;
  }

  .rl-process:not(.rl-process-vertical)::before {
    top: 28px;
    bottom: 28px;
    left: 27px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .rl-process:not(.rl-process-vertical) .rl-process-step {
    display: flex;
    align-items: flex-start;
    text-align: left;
    padding: 0 0 2rem 0;
    gap: 1.5rem;
  }

  .rl-process:not(.rl-process-vertical) .rl-process-step:last-child {
    padding-bottom: 0;
  }

  .rl-process:not(.rl-process-vertical) .rl-process-number {
    flex-shrink: 0;
    margin: 0;
  }
}


/* ==========================================================================
   35. Gallery

   Simple uniform grid for image galleries. Pairs with GLightbox.
   .rl-gallery-2col / .rl-gallery-4col for column variants.
   ========================================================================== */

.rl-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.rl-gallery-4col { grid-template-columns: repeat(4, 1fr); }
.rl-gallery-2col { grid-template-columns: repeat(2, 1fr); }

.rl-gallery a {
  display: block;
  overflow: hidden;
  border-radius: var(--rl-radius-sm);
  position: relative;
}

.rl-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  aspect-ratio: 4 / 3;
}

.rl-gallery a:hover img {
  transform: scale(1.05);
}

.rl-gallery a::after {
  content: '\F52A';
  font-family: 'bootstrap-icons';
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 50%;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rl-gallery a:hover::after {
  opacity: 1;
}

@media (max-width: 767px) {
  .rl-gallery,
  .rl-gallery-4col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .rl-gallery,
  .rl-gallery-4col,
  .rl-gallery-2col {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   36. Tab Accordion

   Hybrid pattern: horizontal tabs on desktop (≥992px) with the active panel
   beside them, stacked accordion-style buttons on mobile. On desktop the
   active tab grows a right-pointing arrow that visually bridges into the
   panel. Click + ArrowUp/Down/Left/Right + Home/End. Smooth height transition
   between panels. Full ARIA tabpanel semantics.
   ========================================================================== */

.rl-tab-accordion {
  padding: 0 0 2.5rem;
}

.rl-tab-accordion-heading {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.rl-tab-accordion-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  border-top: 2px solid var(--rl-color-dark);
}

.rl-tab-accordion-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 1.5rem;
}

.rl-tab-accordion-tab {
  position: relative;
  overflow: visible;
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1.25rem;
  font-family: var(--rl-font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: none;
  border-bottom: 1px solid var(--rl-color-border);
  background-color: transparent;
  color: var(--rl-color-dark);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.rl-tab-accordion-tab:hover {
  background-color: var(--rl-color-light);
}

.rl-tab-accordion-tab.active {
  background-color: var(--rl-color-primary);
  color: var(--rl-color-white);
  border-bottom-color: var(--rl-color-primary);
  border-right: 3px solid var(--rl-color-primary);
}

.rl-tab-accordion-panels {
  position: relative;
  display: grid;
}

.rl-tab-accordion-panel {
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  display: none;
}

.rl-tab-accordion-panel.active {
  display: block;
}

@media (min-width: 992px) {
  .rl-tab-accordion-body {
    grid-template-columns: 1fr 2fr;
    gap: 0;
    align-items: start;
  }

  .rl-tab-accordion-nav {
    position: relative;
    z-index: 1;
    padding-top: 0;
  }

  .rl-tab-accordion-tab {
    font-size: 13px;
    padding: 0.75rem 1.1rem;
  }

  .rl-tab-accordion-tab.active {
    border-right: none;
  }

  .rl-tab-accordion-tab.active::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -24px;
    width: 24px;
    height: calc(100% + 2px);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 204' preserveAspectRatio='none'%3E%3Cpath fill='%232b5ea7' d='M0,0 L0,204 L105,110.9 C110.2,106.2,110.2,98,105,93.2 L0,0Z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    z-index: 2;
  }

  .rl-tab-accordion-panel {
    padding: 1.5rem 2rem 1.5rem 3rem;
  }
}


/* ==========================================================================
   37. Bento Grid

   Asymmetric card layout modeled on Tailwind Plus marketing bento sections.
   White cards on a light section background, thin hairline ring, large
   corner radius, visual area at the top of each card with a text block
   underneath. No hover lift, no CTAs inside cards.

   .rl-bento             — Grid wrapper (1 col mobile → 2 col tablet → 3 col desktop)
   .rl-bento-item        — Card. Default: 1 col × 1 row on desktop.
   .rl-bento-wide        — cols span 2 on desktop
   .rl-bento-tall        — rows span 2 on desktop
   .rl-bento-visual      — Visual padding wrapper inside the card
   .rl-bento-placeholder — Inner rounded visual block (gradient + centered icon)
   .rl-bento-content     — Text block (eyebrow + heading + description)
   .rl-bento-eyebrow     — Small mono-uppercase label above the heading
   ========================================================================== */

.rl-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.rl-bento-item {
  background: var(--rl-color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
}

.rl-bento-visual {
  padding: 2rem 2rem 0;
}

.rl-bento-placeholder {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(43, 94, 167, 0.12) 0%, rgba(212, 168, 83, 0.10) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rl-color-primary);
  font-size: 2.5rem;
}

.rl-bento-content {
  padding: 1.5rem 2rem 2rem;
  flex: 1;
}

.rl-bento-eyebrow {
  display: block;
  font-family: var(--rl-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rl-color-primary);
  margin-bottom: 0.5rem;
}

.rl-bento-item h3 {
  font-size: var(--rl-h4);
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.rl-bento-item p {
  color: var(--rl-color-text-light);
  line-height: 1.6;
  margin: 0;
}

/* Tall card: fill the taller visual area with a square-ish block */
.rl-bento-tall .rl-bento-placeholder {
  aspect-ratio: auto;
  min-height: 260px;
}

@media (min-width: 768px) {
  .rl-bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .rl-bento {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .rl-bento-wide {
    grid-column: span 2;
  }

  .rl-bento-tall {
    grid-row: span 2;
  }
}


/* ==========================================================================
   38. Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .rl-card,
  .rl-card-link,
  .rl-feature-card,
  .rl-team-card-bordered,
  .rl-team-expand-trigger,
  .rl-blog-card,
  .rl-gallery img,
  .rl-overlay-content,
  .rl-filter-item,
  .rl-slide,
  .rl-slider-nav,
  .rl-slider-dot,
  .rl-tab,
  .rl-tab-accordion-tab,
  .back-to-top,
  .rl-accordion-content,
  .rl-accordion-inner,
  a,
  button {
    transition: none !important;
  }

  .rl-team-expand-panel {
    animation: none !important;
  }

  .rl-gallery a:hover img {
    transform: none !important;
  }

  .rl-overlay-card:hover .rl-overlay-content,
  .rl-overlay-card:focus-visible .rl-overlay-content {
    transform: translateY(0) !important;
  }
}


/* ==========================================================================
   Dev Mode (reference site)

   Client view is the DEFAULT: class-name annotations and implementation
   notes are hidden so pages read clean during client walkthroughs.
   Ctrl+Shift+D (or ?dev=1) sets .dev-mode on <html> to reveal them —
   see the inline toggle script in includes/head.php.

   Three layers, no per-element tagging needed for the first two:
   1. <code> inside headings (".rl-blog-card" style annotations)
   2. any <main> paragraph containing <code> (implementation prose)
   3. .rl-dev-only — whole sections tagged by hand (Quick Reference
      tables, accessibility notes)
   ========================================================================== */

html:not(.dev-mode) :is(h1, h2, h3, h4) > code {
  display: none;
}

html:not(.dev-mode) main p:has(code) {
  display: none;
}

html:not(.dev-mode) .rl-dev-only {
  display: none !important;
}

.rl-dev-badge {
  display: none;
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 9999;
  padding: 6px 10px;
  background: #d63384;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  border-radius: 4px;
  pointer-events: none;
}

html.dev-mode .rl-dev-badge {
  display: block;
}


/* ==========================================================================
   39. Share Row
   Per-article/per-item social share strip: label + round icon buttons
   (Facebook, X, email, copy link, device share sheet on touch). Markup +
   wiring: includes/share-row.php (rl_share_row / rl_share_row_js).
   Client-specific platforms (e.g. ICL's Truth Social) get added per project.
   ========================================================================== */

.rl-share-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rl-color-border);
}

.rl-share-label {
  font-family: var(--rl-font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rl-color-text-light);
  margin-right: 2px;
}

.rl-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--rl-color-primary);
  border: none;
  padding: 0;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
}

.rl-share-btn:hover,
.rl-share-btn:focus { opacity: 0.85; color: #fff; }

a.rl-share-btn,
a.rl-share-btn:visited,
a.rl-share-btn:hover,
a.rl-share-btn:focus { color: #fff; }

.rl-share-btn svg { width: 13px; height: 13px; fill: currentColor; display: block; }
.rl-share--fb { background: #1877f2; }
.rl-share--x { background: #000; }
.rl-share--li { background: #0A66C2; }

/* The device share sheet is a touch idiom — hide it where a mouse rules */
@media (hover: hover) and (pointer: fine) {
  .rl-share-native { display: none !important; }
}
.rl-share-row [hidden] { display: none !important; }

.rl-share-status {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--rl-color-text-light);
}


/* ==========================================================================
   40. Enzuzo Consent UI Overrides
   Applies automatically once Enzuzo is installed (targets .ez-consent and
   #ez-cookie-manager-button, which only exist when the banner loads), so the
   Enzuzo dashboard can stay at neutral DEFAULTS on every site - no per-site
   Color-field changes. See procedures/enzuzo-setup.md section 5. Fixed
   colors on purpose: this styles Enzuzo's UI, not the site brand.
   ========================================================================== */

/* AA link contrast. Enzuzo's default link color #1082EC fails WCAG AA
   (3.87:1); #0375DF is ~4.6:1. Override Enzuzo's own theme variables (defined
   on .ez-consent WITHOUT !important), which covers both the banner and the
   preference-center links without chasing per-link selectors. */
.ez-consent {
  --ez-banner-link-color: #0375df !important;
  --ez-preferences-link-color: #0375df !important;
}

/* Light drop shadow on the floating "revisit" cookie-manager button. Use
   drop-shadow (not box-shadow) so it follows the icon's shape - the button
   background is transparent. */
#ez-cookie-manager-button {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35)) !important;
}

/* Legal-page embeds (privacy/ToS) - DEFENSIVE ONLY: the standard display is
   Single-Form with Border Style "None" (enzuzo-setup.md section 4), where
   neither rule matches. If a site runs Accordion display instead, these fix
   its two defects: summary headings default to unreadable #eee, and the
   cards keep a baked-in 1px border regardless of the Border Style setting. */
main.ez-container details > summary {
  color: #333 !important;
}
main.ez-container details {
  border: none !important;
}

/* RL Consent presentation rules (moved from starter/includes/consent.php: a <style> block in the body is invalid HTML; 2026-10-03) */
/* Enzuzo-style presentation (owner 2026-08-28): full-width white bar
pinned to the bottom, subtle rise-in, cookie-icon fab for reopening.
Style only - text, markup, and code are our own. */
.rl-consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1090; background: #fff; color: var(--rl-color-text, #2b3644); border-top: 1px solid var(--rl-color-border, #e3e7ed); box-shadow: 0 -6px 24px rgba(15, 23, 42, .10); padding: .8rem clamp(1rem, 3vw, 2.5rem); display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; align-items: center; }
@media (prefers-reduced-motion: no-preference) {
.rl-consent-banner { animation: rl-consent-rise .45s cubic-bezier(.22,.7,.3,1); }
@keyframes rl-consent-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
}
.rl-consent-banner[hidden] { display: none; }
.rl-consent-cookie { width: 1.5rem; height: 1.5rem; color: var(--rl-color-primary, #2b5ea7); flex: none; }
.rl-consent-fab .rl-consent-cookie { width: 1.4rem; height: 1.4rem; }
.rl-consent-banner p { margin: 0; font-size: .85rem; line-height: 1.5; flex: 1 1 22rem; }
.rl-consent-banner p a { color: var(--rl-color-primary, #2b5ea7); text-decoration: underline; }
.rl-consent-banner p a .bi { font-size: .7rem; margin-left: .3rem; display: inline-block; text-decoration: none; }
.rl-consent-banner .rl-btn-sm { font-size: .72rem; padding: .35rem .9rem; }
.rl-consent-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-left: auto; }
.rl-consent-link { background: none; border: 0; color: var(--rl-color-primary, #2b5ea7); text-decoration: underline; font-size: .82rem; padding: .45rem .25rem; cursor: pointer; }
.rl-consent-fab { position: fixed; bottom: 1rem; left: 1rem; z-index: 1080; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--rl-color-primary, #2b5ea7); border: 1px solid var(--rl-color-border, #e3e7ed); border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,.16); cursor: pointer; }
.rl-consent-fab[hidden] { display: none; }
.rl-consent-dialog { border: 0; border-radius: 12px; padding: 0; max-width: 62rem; width: calc(100% - 2rem); max-height: min(86vh, 60rem); }
.rl-consent-dialog::backdrop { background: rgba(15, 23, 42, .55); }
.rl-consent-dialog-inner { padding: 1.75rem 2rem 1.5rem; overflow-y: auto; max-height: min(86vh, 60rem); box-sizing: border-box; }
.rl-consent-dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.rl-consent-dlg-head img { height: 52px; width: auto; }
.rl-consent-close { background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--rl-color-text, #2b3644); cursor: pointer; padding: .25rem .5rem; }
.rl-consent-intro { font-size: .92rem; line-height: 1.6; margin: 0 0 .5rem; }
.rl-consent-intro a, .rl-consent-google a { color: var(--rl-color-primary, #2b5ea7); text-decoration: underline; }
.rl-consent-google { font-size: .92rem; line-height: 1.6; margin: 0 0 1.5rem; }
.rl-consent-cat { margin-top: 1.4rem; }
.rl-consent-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
.rl-consent-cat h3 { font-size: 1rem; margin: 0; }
.rl-consent-cat-desc { font-size: .88rem; line-height: 1.55; color: var(--rl-color-text-light, #5c6672); margin: 0 0 .8rem; }
.rl-consent-always { font-size: .88rem; font-weight: 600; white-space: nowrap; }
/* Switch-style toggle (native checkbox underneath) */
.rl-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.rl-switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.rl-switch .rl-switch-track { position: absolute; inset: 0; background: #cbd5e0; border-radius: 999px; transition: background .15s ease; pointer-events: none; }
.rl-switch .rl-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s ease; }
.rl-switch input:checked + .rl-switch-track { background: var(--rl-color-primary, #2b5ea7); }
.rl-switch input:checked + .rl-switch-track::after { transform: translateX(20px); }
.rl-switch input:focus-visible + .rl-switch-track { outline: 3px solid var(--rl-color-primary, #2b5ea7); outline-offset: 2px; }
/* Plain-English cookie tables */
.rl-consent-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.rl-consent-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rl-consent-table th { text-align: left; font-weight: 600; background: var(--rl-color-light, #eef1f4); padding: .5rem .75rem; }
.rl-consent-table td { padding: .55rem .75rem; border-bottom: 1px solid var(--rl-color-border, #e3e7ed); vertical-align: top; }
.rl-consent-table code { font-size: .72rem; background: none; color: var(--rl-color-text-light, #5c6672); }
.rl-consent-table td strong { font-weight: 600; display: block; }
.rl-consent-dialog-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: 1.6rem; }
.rl-consent-credit { margin: 1.1rem 0 0; text-align: center; font-size: .72rem; color: #5a6572; }
.rl-consent-credit a { color: inherit; text-decoration: underline; }
.rl-consent-dialog-actions .rl-btn { margin-left: auto; }
@media (max-width: 575.98px) { .rl-consent-dialog-inner { padding: 1.25rem 1rem; } .rl-consent-dialog-actions .rl-btn { margin-left: 0; } }

/* ==========================================================================
   Headings never split a word (2026-10-18). Mirrored in rl-framework.css
   (framework sites) and rl-rhythm.css (legacy sites load that one last).
   A browser only breaks inside a word when a rule permits it (overflow-wrap:
   anywhere|break-word, word-break: break-all); such band-aids produced
   COMMENTAR|Y on an iPhone SE (treangroup.com). These rules forbid in-word
   breaks on every heading, present or future. A word wider than its box then
   overflows instead of splitting; js/rl-fit-headings.js lowers THAT heading's
   size just enough to fit (never below 60%). Size display headings fluidly
   (clamp on vw, measured so the longest word fits at 320/375/390) so the
   script rarely has to act. text-wrap is a progressive enhancement: balance
   evens multi-line headings; pretty keeps a lone word off a paragraph's last
   line. Gate: scripts/check-word-splits.js <url>.
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
}
p, li, dd, figcaption { text-wrap: pretty; }
