:root {
  /* Color palette */
  --primary: #5f98fa;
  --secondary: #f0f2f5;
  --accent: #ff6600;
  --light: #ffffff;
  --dark: #111111;
  --muted: #777777;
  --border: #e0e0e0;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;

  /* Typography colors */
  --text: var(--dark);
  --logo-text: var(--light);
  --heading: #232323d8;
  --header-text: #ffffff;
  --header-hover-underline: #ffcc00;
  --account-bullet: var(--primary);
  
  /* Content link colors (shared with TOC) */
  --link-primary: #2563eb;
  --link-primary-hover: #1d4ed8;
  --link-bg-light: rgba(37, 99, 235, 0.08);
  --link-bg-hover: rgba(29, 78, 216, 0.12);
  
  /* Tag colors */
  --tag-bg: #4f4c4cb1;
  --tag-text: var(--light);
  --tag-border-radius: var(--radius);
  --tag-font-size: 0.8em;
  --tag-padding: 0.2em 0.5em;
  --tag-margin: 0.5em;
  
  /* Contract tags colors */
  --contract-tag-1-bg: var(--primary);
  --contract-tag-2-bg: var(--accent);
  --contract-tag-text: var(--light);
  --contract-tag-padding: 0.4em 0.8em;
  --contract-tag-margin: 0.5em;
  --contract-tag-spacing: 0.75em;
  --tag-font-size: 0.8em;
  --tag-padding: 0.2em 0.5em;
  --tag-margin: 0.5em;

  /* Typography settings */
  --font-base: 'Montserrat', sans-serif;
  --font-logo: 'Montserrat', sans-serif;
  --font-body: var(--font-base);
  --font-heading: var(--font-base);

  /* Font weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Font sizes */
  --font-size-base: 1.6rem;
  --font-size-base-mobile: 1.4rem;
  --font-size-hero: 2.7rem;
  --font-size-hero-mobile: 2.2rem;
  --font-size-disclaimer: 1.1rem;
  --font-size-more-info-dropdown-compare-tiles: 1.4rem;

  /* Backgrounds and overlays */
  --bg: var(--light);
  --section-bg: var(--secondary);
  --hero-bg: var(--secondary);
  --overlay: rgba(0, 0, 0, 0.8);

  /* Layout settings */
  --container-padding: 2rem;
  --radius: 0.5rem;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.1);

  /* Transition and easing variables */
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.6s;
  --easing-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --easing-bounce: cubic-bezier(.47,1.64,.41,.8);
  --easing-scale: cubic-bezier(.6,0,.41,1.13);
  --easing-spring: cubic-bezier(.4,2,.3,1);
  --easing-standard: cubic-bezier(0.4,0,0.2,1);

  /* Button variables */
  --btn-padding: 0.45rem 0.5rem;
  --btn-border: 1px solid var(--border);
  --btn-border-hover: #aaa;
  --btn-border-active: var(--dark);
  --btn-border-radius: 0.45rem;
  --btn-bg: var(--light);
  --btn-gap: 0.5rem;
  --btn-group-margin-bottom: 0.75rem;

  /* Article navigation variables */
  --article-nav-margin-bottom: 2.25rem;
  --article-nav-label-size: 1.65rem;
  --article-nav-title-size: 1.25rem;
  --article-nav-label-size-mobile: 1.45rem;
  --article-nav-title-size-mobile: 1.3rem;
  --article-nav-link-padding-mobile: 0.75rem 0;
  --article-nav-link-size-mobile: 1.3rem;
  --article-nav-label-spacing: 0.02em;
  --article-nav-label-margin-bottom: 0.35em;
  --article-nav-label-line-height: 1.1;
  --article-nav-title-line-height: 1.18;

  /* Contract tile variables */
  --tile-col-1: 20%;
  --tile-col-2: 55%;
  --tile-col-3: 25%;
  --tile-gap: clamp(1rem, 2vw, 3rem);
  --tile-min-h: 220px;
}

/* Base styles */
html, body {
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 1.3rem;
}

h3 {
  font-size: clamp(1.5rem, 3.5vw, 1.75rem);
  font-weight: var(--weight-medium);
  line-height: 1.4;
  letter-spacing: -0.005em;
  margin-bottom: 1.1rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: var(--weight-medium);
  margin-bottom: 0.9rem;
}

h5 {
  font-size: 1.125rem;
  font-weight: var(--weight-medium);
  margin-bottom: 0.8rem;
}

h6 {
  font-size: 1rem;
  font-weight: var(--weight-regular);
  margin-bottom: 0.7rem;
}

/* Hero section styles */
.hero-title {
  color: var(--header-text);
  font-weight: var(--weight-semibold);
  font-size: var(--font-size-hero);
  text-align: center;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.home-hero-image {
  width: 100%;
  flex: 1 1 0;
  object-fit: cover;
  min-height: 0;  /* Important for flex children! */
  display: block;
}

/* Paragraphs */
p {
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  line-height: 1.6;
}

/* Lists */

/* ========== CONTENT LINK STYLING ========== */
/* Simple, tightly scoped approach - only target content paragraph and list links */
.richtext p a,
.richtext li a {
  color: var(--link-primary) !important;
  text-decoration: none;
  background-color: var(--link-bg-light);
  padding: 0.1em 0.2em -0.5em 0.0em;
  position: relative;
  transition: all var(--duration-normal) var(--easing-smooth);
  display: inline;
  border-bottom: 2px solid var(--link-primary);
}

/* Center-out animation overlay using scaleX - works for multi-line text */
.richtext p a::after,
.richtext li a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.1em; /* Same height as permanent underline - higher position */
  height: 2.5px;
  background: var(--link-primary-hover);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--duration-slow) var(--easing-smooth);
  opacity: 0;
}

/* Hover effect */
.richtext p a:hover,
.richtext li a:hover {
  color: var(--link-primary-hover) !important;
  background-color: var(--link-bg-hover);
  border-bottom-color: transparent; /* Hide permanent underline */
}

/* Show hover underline with center-out scale animation */
.richtext p a:hover::after,
.richtext li a:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Navigation styling */
.nav-item a {
  position: relative;
  text-decoration: none;
  /* color: var(--text); */
  padding: 0.5rem 0;
  font-weight: var(--weight-regular);
  transition: color var(--duration-normal) ease;
}

.nav-item a::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease, opacity var(--duration-normal) ease;
  opacity: 0;
}

.nav-item a:hover {
  color: var(--accent);
}

.nav-item a:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-item.current-menu-item a {
  color: var(--primary);
  font-weight: var(--weight-regular);
}

/* Header-specific nav overrides */
.site-header .nav-item a {
  color: var(--header-text);
  font-weight: var(--weight-regular);
}

.site-header .nav-item a:hover {
  text-decoration: none;
  color: var(--header-text);
}

.site-header .nav-item a::after {
  display: block;
  background-color: var(--header-hover-underline);
  bottom: 1px;
}

.site-header .nav-item a:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Site Logo */
.site-logo {
  font-family: var(--font-logo);
  font-weight: var(--weight-bold);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 2.2rem);
  color: var(--logo-text);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

/* Dropdown menu */
.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  background-color: var(--light);
  padding: 0.5rem;
  box-shadow: var(--shadow);
}

.dropdown:hover .dropdown-content {
  display: flex;
}

/* Sticky header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--primary);
  transition: all var(--duration-normal) ease, transform var(--duration-normal) ease;
  box-shadow: none;
  transform: translateY(0);
  width: 100%;
}
.site-header.is-sticky {
  box-shadow: var(--shadow);
}
.site-header.hide-on-scroll {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Dropdown styling */
.site-header .sub-menu {
  background-color: var(--primary);
  color: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem 0;
  min-width: 120px;
  max-width: 160px;
  width: auto;
  white-space: nowrap;
  z-index: 999;
}

.site-header .sub-menu a {
  color: var(--light);
  display: block;
  padding: 0.6rem 1.1rem;
  font-size: 1.2rem;
  font-weight: var(--weight-medium);
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.site-header .sub-menu a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  padding-left: 1.5rem;
}

/* Caret arrow color and animation */
.site-header .brx-submenu-toggle svg.menu-item-icon path {
  stroke: var(--light);
  transition: transform 0.8s ease;
}

.site-header .brx-submenu-toggle svg.menu-item-icon {
  transition: transform 0.3s ease;
  transform: rotate(-90deg);
}

.site-header .brx-submenu-toggle button[aria-expanded="true"] svg.menu-item-icon {
  transform: rotate(0deg);
}

/* Ensure main content is not hidden under fixed header (desktop) */
.site-header {
  height: 35px;
}

.site-header + .content,
.site-header + section,
main {
  margin-top: 35px; /* desktop header height */
}





/* ============= Footer styling ============= */
footer,
#brx-footer {
  flex-shrink: 0;
}

.site-footer {
  background-color: var(--primary);
  color: var(--light);
  padding: var(--container-padding) 0 0 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
}

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

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5.5rem;
}

.footer-nav .nav-item a {
  color: var(--light);
  font-weight: var(--weight-medium);
}

.footer-nav .nav-item a:hover {
  color: var(--header-hover-underline);
  font-weight: var(--weight-semibold);
}

.footer-nav .nav-item a::after {
  background-color: var(--header-hover-underline);
  bottom: -6px;
}

.site-footer .footer-note {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Spacing utilities */
.mt-xs { margin-top: 0.5rem; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }
.mt-xl { margin-top: 4rem; }

.mb-xs { margin-bottom: 0.5rem; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 2rem; }
.mb-lg { margin-bottom: 3rem; }
.mb-xl { margin-bottom: 4rem; }

.pt-xs { padding-top: 0.5rem; }
.pt-sm { padding-top: 1rem; }
.pt-md { padding-top: 2rem; }
.pt-lg { padding-top: 3rem; }
.pt-xl { padding-top: 4rem; }

.pb-xs { padding-bottom: 0.5rem; }
.pb-sm { padding-bottom: 1rem; }
.pb-md { padding-bottom: 2rem; }
.pb-lg { padding-bottom: 3rem; }
.pb-xl { padding-bottom: 4rem; }

.space-xs { height: 0.5rem; }
.space-sm { height: 1rem; }
.space-md { height: 2rem; }
.space-lg { height: 3rem; }
.space-xl { height: 4rem; }

/* Rich text content */
.richtext h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.richtext h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
}

.richtext h3 {
  font-size: clamp(1.7rem, 2vw, 1.5rem);
  font-weight: var(--weight-bold);
  line-height: 1.35;
  margin-top: 3rem;
  margin-bottom: 0.6rem;
}

.richtext h4, .richtext h5, .richtext h6 {
  font-weight: var(--weight-medium);
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}

.richtext ul,
.richtext ol {
  margin-top: 0.5rem;
  margin-bottom: 1.1rem;
  padding-left: 2.2rem;
  line-height: 1.5;
  list-style-position: outside;
}

.richtext ul li,
.richtext ol li {
  margin-bottom: 0;
  padding-bottom: 0;
  line-height: 1.5;
}


/* Optional: Make sure paragraph after heading is not too close */
.richtext h3 + p {
  margin-top: 0.3rem;
}

/* ========== Style the ToC for the overview pages ========== */
.toc-block {
  background: #f7fafd;
  border: 1.5px solid #e0e8f6;
  border-radius: 8px;
  width: fit-content;
  min-width: 240px;
  max-width: 600px;
  padding: 1.3em 5em 1.1em 2em;
  margin-top: 2em;
  margin-bottom: 1em;
  box-shadow: 0 2px 12px rgba(38,99,235,0.05);
}

.toc-label {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.09em;
  color: #2563eb;
  margin-bottom: 1.3em;
  padding-bottom: 0.5em;
  border-bottom: 1.5px solid #e0e8f6;
  letter-spacing: 0.01em;
  gap: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.86;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list li {
  margin-bottom: 0.15em;
  position: relative;
  line-height: 1.3;
}

/* Modern link style */
.toc-list > li > a {
  color: var(--link-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.07em;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  transition: color 0.18s var(--easing-bounce), background 0.22s, box-shadow 0.18s;
  background: transparent;
  /* for fade effect */
  overflow: hidden;
}

/* Underline effect */
.toc-list > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  height: 2.3px;
  width: 100%;
  background: var(--link-primary);
  border-radius: 3px;
  transform: scaleX(0.2);
  opacity: 0;
  transition: transform 0.33s var(--easing-scale), opacity 0.33s;
  pointer-events: none;
}

/* Hover and focus state: fading background and underline */
.toc-list > li > a:hover,
.toc-list > li > a:focus {
  background: var(--link-bg-light);
  color: #1c48a6;
  transition: color var(--duration-fast), background 0.21s;
}

.toc-list > li > a:hover::after,
.toc-list > li > a:focus::after {
  transform: scaleX(1);
  opacity: 1;
}

/* --- Subheadings (Sublist) --- */
.toc-sublist {
  list-style: none;
  margin: 0.15em 0 1em 0.5em;
  padding: 0;
}

.toc-sublist li {
  margin-bottom: 0.1em;
}

.toc-sublist a {
  color: #4066a5;
  font-size: 0.99em;
  font-weight: 400;
  background: transparent;
  border-radius: 3px;
  padding: 0.13em 0.5em 0.13em 0.6em;
  display: inline-block;
  position: relative;
  opacity: 0.96;
  transition: color 0.18s, background 0.23s;
}

/* Subtle dash/bullet for subheadings */
.toc-sublist a::before {
  content: "–";
  color: #c7d3ee;
  margin-right: 0.49em;
  font-size: 1em;
  transition: color 0.16s;
}

.toc-sublist a:hover,
.toc-sublist a:focus {
  color: var(--link-primary);
  background: var(--link-bg-light);
}

.toc-sublist a:hover::before,
.toc-sublist a:focus::before {
  color: var(--link-primary);
}

/* Underline for subheadings, same as main links but thinner */
.toc-sublist a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  height: 1.6px;
  width: 100%;
  background: var(--link-primary);
  border-radius: 2px;
  transform: scaleX(0.15);
  opacity: 0;
  transition: transform 0.23s var(--easing-scale), opacity 0.22s;
  pointer-events: none;
}

.toc-sublist a:hover::after,
.toc-sublist a:focus::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Remove last margin */
.toc-list li:last-child,
.toc-sublist li:last-child {
  margin-bottom: 0;
}


/* ========== GUIDE SECTION CLASSES ========== */
.guide-intro .image,
.image {
  display: block;
  margin: 0 auto 2rem 0; /* auto on right ensures no extra shift */
  object-fit: contain;
}

.guide-final {
  padding-bottom: 4rem; /* Extra breathing space above footer */
}

/* META INFO (READING TIME) */
.meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.meta-item {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: var(--weight-regular);
  line-height: 1.2;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* VISUAL DIVIDER BETWEEN INTRO AND MAIN */
.guide-divider {
  height: 1px;
  background: var(--section-bg);
  border: none;
  margin: 1.5rem 0 1.5rem 0; /* Only margin-top! */
  width: 100%;
}

/* ========== ARTICLE NAVIGATION ========== */
.article-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0 0 var(--article-nav-margin-bottom) 0;
  width: 100%;
  gap: 0;
}

.article-nav-col {
  flex: 1 1 0;
}

.article-nav-left {
  text-align: left;
}

.article-nav-right {
  text-align: right;
}

.article-nav-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.article-nav-label {
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  font-size: var(--article-nav-label-size);
  letter-spacing: var(--article-nav-label-spacing);
  display: block;
  margin-bottom: var(--article-nav-label-margin-bottom);
  line-height: var(--article-nav-label-line-height);
  white-space: nowrap;
}

.article-nav-title {
  font-size: var(--article-nav-title-size);
  color: var(--heading);
  font-weight: var(--weight-regular);
  display: block;
  line-height: var(--article-nav-title-line-height);
  margin-top: 0;
}


/* ========== COMPARISON SECTION CLASSES ========== */
.comparison-intro {
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.comparison-main {
  padding-bottom: 10rem;
}

.comparison-final {
  padding-bottom: 5rem;
}

.brxe-filter-checkbox {
  padding-left: 2rem;
}

/* ========== COMPARISON CONTAINER ========== */
.container-comparison {
  display: grid;
  gap: 10rem;
  grid-template-columns: 0.8fr 4fr;
}

.container-results-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 30px;
}

.container-results-filter {
  width: 30%;
}

.container-contract-grid {
  display: flex;
  flex-direction: column;
  row-gap: 3rem;
}


/* Desktop: filter is a regular column */
.container-filter {
  display: block;
  position: static;
  width: auto;
  max-width: none;
  height: auto;
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  transition: none;
  z-index: auto;
  pointer-events: auto;
  visibility: visible;
}

/* ========== BREADCRUMBS IMPROVEMENTS ========== */
.breadcrumbs-wrapper {
  background: var(--section-bg);
  padding: 0.75rem var(--container-padding);
  margin-bottom: 2rem;
}

.breadcrumbs {
  font-size: 0.875rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span {
  margin: 0 0.25rem;
}

/* ========== HOME PAGE TILES ========== */
.home-tile {
  box-shadow: 0 2px 8px rgba(17, 17, 17, 0.08);
  padding: 2rem 1.5rem;
  transition: 
    box-shadow var(--duration-normal) var(--easing-spring), 
    transform 0.22s var(--easing-spring),
    border-color 0.22s;
  cursor: pointer;
}

.home-tile:hover {
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.18), 0 2px 8px rgba(0,0,0,0.10);
  transform: translateY(-6px) scale(1.025);
  border-color: var(--primary);
}

/* ========== COMPARISON Contract Tiles ========== */

/* Container layout */
.container-contract-grid {
  display: flex;
  flex-direction: column;
  row-gap: 3rem;
}

/* Tile base styles */
.contract-tile {
  width: 100%;
  background: var(--light);
  border: 1.5px solid #e1e6ef;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  transition: box-shadow var(--duration-normal) var(--easing-spring), 
              transform 0.25s var(--easing-spring), 
              background 0.25s;

  /* Flexbox layout for proper structure */
  display: flex;
  flex-direction: column;
  min-height: var(--tile-min-h);
}

/* Tile hover effects */
.contract-tile:hover {
  box-shadow: 0 6px 18px rgba(95, 152, 250, 0.10), 
              0 2px 8px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px) scale(1.02);
  background: linear-gradient(120deg, #f7faff 70%, #eaf2ff 100%);
}

/* Main content area */
.contract-tile > .brxe-cmfxhr {
  flex: 1 1 auto;
  display: grid;
  align-content: center;
  min-height: 0;
}

/* Three-column grid layout */
.contract-tile > .brxe-cmfxhr > .brxe-ujiwth {
  display: grid !important;
  grid-template-columns: 
    minmax(0, var(--tile-col-1))
    minmax(0, var(--tile-col-2))
    minmax(0, var(--tile-col-3));
  column-gap: var(--tile-gap);
  width: 100%;
  min-width: 0;
  align-items: center;
  box-sizing: border-box;
}

/* Prevent content overflow */
.contract-tile > .brxe-cmfxhr > .brxe-ujiwth > * {
  min-width: 0;
  max-width: 100%;
}

/* Column assignments */
.contract-tile .contract-header { 
  grid-column: 1; 
}

.contract-tile .brxe-rojpyz { 
  grid-column: 2; 
}

.contract-tile .contract-cta {
  grid-column: 3;
  justify-self: center;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  text-align: center;
}

/* CTA button container */
.contract-tile .contract-cta .brxe-usijme {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* CTA button styling */
.contract-tile .contract-cta .brxe-button {
  max-width: 100%;
  white-space: normal;
}

/* More info section */
.contract-tile > .brxe-cswooh {
  margin-top: auto;
  align-self: flex-start;
}
































.contract-header {
  align-items: center;
}

.contract-logo {
  width: 48px;
  height: auto;
  object-fit: contain;
}

.provider-badge {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background-color: var(--secondary);
  color: var(--primary);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.contract-title {
  font-size: 1.25rem;
  font-weight: var(--weight-semibold);
  margin: 5px;
}

.contract-highlights {
  list-style: none;
  padding: 0;
  /* margin: 0.5rem 0 1rem 0; */
  display: flex;
  /* gap: 1.2rem; */
  flex-direction: column;
  font-size: 1.25rem;
  color: var(--dark);
  flex-wrap: nowrap;
  overflow-x: auto;
}

.contract-highlights li {
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 0.35em 0.9em;
  font-weight: var(--weight-medium);
  white-space: nowrap;
  position: relative;
}

.contract-highlights .icon {
  display: inline-flex;
  align-items: center;
  margin-right: 0.6em;
}

.contract-highlights .icon i {
  font-size: 2em;
  color: var(--success);
  vertical-align: middle;
}

.contract-highlights.account-list {
    font-size: var(--font-size-base);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: var(--weight-medium);
    /* Remove width/max-width, let parent/grid control it */
    /* box-sizing: border-box; */
    word-break: break-word;
    /* overflow-wrap: anywhere; */
    padding: 0;
    margin: 0;
}

.contract-highlights.account-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5em;
    font-size: var(--font-size-base);
    background: transparent;
    border-radius: 0;
    padding: 0;
    line-height: 1.4;
    /* Remove width/max-width, let parent control it */
    /* box-sizing: border-box; */
}

.account-bullet {
    display: inline-block;
    width: 0.5em;
    height: 0.5em;
    background: var(--account-bullet);
    border-radius: 50%;
    margin-right: 0.2em;
    margin-top: 0.4em;
    flex-shrink: 0;
}

.contract-highlights.account-list .feature-value {
    font-weight: var(--weight-semibold);
    color: var(--primary);
}

/* Speed tag styling for Data Volume */
.speed-tag {
    display: inline-block;
    padding: var(--tag-padding);
    margin-left: var(--tag-margin);
    background-color: var(--tag-bg);
    color: var(--tag-text);
    font-size: var(--tag-font-size);
    font-weight: var(--weight-semibold);
    border-radius: var(--tag-border-radius);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

/* Contract tags styling (tag_1 and tag_2) */
.contract-tags {
    display: flex;
    gap: var(--contract-tag-spacing);
    margin-bottom: var(--contract-tag-margin);
    flex-wrap: wrap;
}

.contract-tag {
    display: inline-block;
    padding: var(--contract-tag-padding);
    color: var(--contract-tag-text);
    font-size: var(--tag-font-size);
    font-weight: var(--weight-semibold);
    border-radius: var(--tag-border-radius);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.contract-tag-1 {
    background-color: var(--contract-tag-1-bg);
}

.contract-tag-2 {
    background-color: var(--contract-tag-2-bg);
}

.contract-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* Vertically centers content */
  align-items: center;       /* Horizontally centers content */
  text-align: center;
  padding: 1rem;
}

/* Slight gap between button and price */
.contract-price {
  margin-bottom: 0.75rem;
  font-size: 2rem;
  font-weight: var(--weight-semibold);
  color: var(--primary);
}

.contract-setup-fee {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  font-weight: var(--weight-semibold);
  color: var(--primary);
}

.btn-contract {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background-color: var(--primary);
  color: var(--light);
  text-align: center;
  border-radius: var(--radius);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition: background-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(95, 152, 250, 0.1);
}

.btn-contract:hover {
  background-color: #3c7cf0;
  box-shadow: 0 6px 18px rgba(95,152,250,0.18), 0 2px 8px rgba(0,0,0,0.10);
}

/* ========== COMPARISON TILE DROPDOWN ========== */
.compare-tile-dropdown { /* More Info Dropdown */
  font-size: var(--font-size-more-info-dropdown-compare-tiles);
  color: var(--text);
}

.compare-tile-dropdown ul,
.compare-tile-dropdown ol {
  padding-left: 1.5rem; /* less than default 5rem */
  margin-bottom: 0.8rem;
}

.compare-tile-dropdown li {
  margin-bottom: 0.3rem; /* tighter spacing */
}

/* Disallow removing the active selection */
/* Prevent deselection of the active radio filter */
.cy-radio-filter .brx-option-active {
  pointer-events: none;
}




/* ========== MISC. ========== */
/* Reading progress bar positioning */
.brxe-post-reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 101;
}


/* For post navigation at bottom of guides (hide previous button) */
.guide-final .post-navigation .bricks-post-nav-prev {
  display: none;
}

/* Hide the manage consent button in Complianz */
.cmplz-marketing .cmplz-manage-consent {
  display: none; 
}

.hide-on-mobile {
  display: block;
}

.show-only-mobile {
  display: none;
}



/* Always hide the close button by default */
.filter-close {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10001;
  background: none;
  border: none;
  font-size: 2rem; /* or adjust as needed */
  cursor: pointer;
}


.home-tiles {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  gap: 2rem; /* or whatever gap you like */
}
.home-tiles::-webkit-scrollbar {
  display: none; /* optional: hide scrollbar on mobile */
}
.tile {
  min-width: 220px;
  flex: 0 0 auto;
}





/* Hide actual slider & min/max boxes  */
.hidden-range-filter {
  display: none !important;
}

/* Preset button groups */
.cy-presets {
  display: flex;
  gap: var(--btn-gap);
  flex-wrap: wrap;
  margin-bottom: var(--btn-group-margin-bottom);
}
.cy-presets .cy-btn {
  padding: var(--btn-padding);
  border: var(--btn-border);
  border-radius: var(--btn-border-radius);
  background: var(--btn-bg);
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.cy-presets .cy-btn:hover { border-color: var(--btn-border-hover); }
.cy-presets .cy-btn.is-active { border-color: var(--btn-border-active); }





/* Minimal styling for the visible input */
.cy-od-input.cy-compact {
  max-width: 12rem;
  padding: .4rem .5rem;
  border: 1px solid #ccc;
  border-radius: .5rem;
}














/* ========== Mobile ========== */
/* Responsive adjustment for guides (for smaller screens) */
@media (max-width: 768px) {
  .site-header,
  .site-header > .brxe-container,
  .site-header > .brxe-container > .brxe-container {
    height: 35px;
    display: flex;
    align-items: center;
  }

  .site-logo {
    display: flex;
    font-size: clamp(2rem, 4vw, 3rem);
    align-items: center;
    height: 100%;
  }

  .site-header .nav-item a {
    color: var(--text) !important;
  }

  .nav-item a {
    line-height: 1.2;
  }

  .site-header .brx-submenu-toggle svg.menu-item-icon path {
    stroke: var(--dark);
  }

  .site-header .sub-menu {
    box-shadow: none;
    max-width: none;
  }

  /* Indent second-level submenu */
  .site-header .sub-menu .sub-menu {
    margin-left: 18px;
  }

  /* Indent third-level submenu even more */
  .site-header .sub-menu .sub-menu .sub-menu {
    margin-left: 30px;
  }

  /* Indent fourth-level submenu */
  .site-header .sub-menu .sub-menu .sub-menu .sub-menu {
    margin-left: 40px;
  }

  /* Increas submenu padding for cleaner layout*/ 
  .bricks-mobile-menu-wrapper {
    padding-top: 15px;
    padding-left: 15px;
    padding-right: 5px;
  }

  .main-nav {
    display: none;
  }

  /* Adjust size footer nav links */
  .footer-nav a {
    font-size: 1.3rem;
  }

  .footer-nav ul {
    gap: 0;
  }

  .footer-nav .bricks-menu-item {
    flex: 1 1 0;
    display: flex;
    align-items: stretch;
  }

  .footer-nav .bricks-menu-item a {
    width: 100%;              /* Fill the box */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Adjust article navigation for mobile */
  .article-nav-row {
    flex-direction: column-reverse;
    gap: 1rem;
  }
  .article-nav-left,
  .article-nav-right {
    text-align: left;
  }
  .article-nav-link {
    width: 100%;
    padding: var(--article-nav-link-padding-mobile);
    font-size: var(--article-nav-link-size-mobile);
  }
  .article-nav-label {
    font-size: var(--article-nav-label-size-mobile);
  }
  .article-nav-title {
    font-size: var(--article-nav-title-size-mobile);
  }


  .hero-title {
    font-weight: var(--weight-semibold);
    font-size: var(--font-size-hero-mobile);
  }





  .home-tiles-container {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 2rem; /* or your preferred gap */
    position: relative; /* for the fade */
    padding: 0 5px 0 5px;
  }


  .home-tile {
    width: 150px;
    flex: 0 0 auto;
  }




  .comparison-intro {
    padding-top: 2rem;
    padding-bottom: 1rem;
  }

  /* Adjust the comparison containers for mobile */
  .container-comparison {
    grid-template-columns: 1fr;
  }

  .container-results-header {
    align-self: center;
    width: 95%;
  }

  .contract-tile {
    width: 95%;
    align-self: center;
  }







  /* ===== Mobile: stack the three columns ===== */
  /* turn the 3-col row into one column */
  .contract-tile > .brxe-cmfxhr > .brxe-ujiwth{
    display: grid !important;
    grid-template-columns: 1fr;
    row-gap: var(--tile-gap);
    column-gap: 0;
    /* keep the whole block vertically centered inside the tile, like desktop */
    align-items: start;
  }

  /* keep order: 1) provider, 2) details, 3) CTA */
  .contract-tile .contract-header{ grid-column: 1; }
  .contract-tile .brxe-rojpyz{    grid-column: 1; }
  .contract-tile .contract-cta{
    grid-column: 1;
    justify-self: center;     /* center the price/button horizontally */
    align-self: center;        /* keep the stack centered vertically within the row block */
    text-align: center;
  }

  /* make sure inner bits can wrap on narrow screens */
  .contract-tile > .brxe-cmfxhr > .brxe-ujiwth > *{
    min-width: 0;
    max-width: 100%;
  }

  /* "More Info" stays pinned to bottom-left of the tile (unchanged) */
  .contract-tile > .brxe-cswooh{
    margin-top: auto;
    align-self: flex-start;
  }





















  /* General Layout */
  .brxe-container {
    padding-left: 5px;
    padding-right: 5px;
  }
  body {
    font-size: var(--font-size-base-mobile);
  }



  .container-filter {
    display: none !important;
  }
  /* Off-canvas filter on mobile */
  .container-filter.brx-open {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    padding: 0 10px 0 10px;
    width: 60vw;
    max-width: 350px;
    height: 80vh;
    background: #fff;
    z-index: 9999;
    box-shadow: 2px 0 16px rgba(0,0,0,0.15);
    transform: translateX(-110%)  !important;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1)  !important;
    border-radius: 0 12px 12px 0;
    overflow-y: auto !important;
    pointer-events: all !important;
    visibility: visible !important;
  }
  /* Slide in when open */
  .container-filter.brx-open {
    transform: translateX(0) !important;
  }
  .close-row {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 16px 0 0; /* top, right, bottom, left */
    box-sizing: border-box;
    min-height: 48px; /* makes sure it's easy to tap */
  }

  /* Position the close icon absolutely */
  .filter-close {
    display: block;
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10001;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
  }
  /* Only show filter toggle button on mobile */
  .show-only-mobile {
    display: block !important;
  }

  /* Style the filter toggle button */
  .filter-toggle-sticky {
    position: sticky;
    top: 10px;
    left: 0;
    height: 50px;
    margin-left: 10px;
    z-index: 9998;
    background: var(--border);
    width: 50px; 
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    align-self: flex-start;
  }
  .filter-toggle-sticky button {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .filter-toggle-sticky.header-visible {
    top: 45px;
  }


  /* negate the container's padding-left */
  .breadcrumbs-wrapper {
    margin-left: -5px !important;
  }

  .brxe-post-reading-progress-bar.header-visible {
    top: 35px;
  }

  /* Contract highlights font size adjustments */
  .contract-highlights {
    font-size: 1.35rem; /* Increase from 1.25rem for mobile/internet contracts */
  }
  
  .contract-highlights.account-list {
    font-size: 1.45rem; /* Keep current account size perfect */
  }
  
  .contract-highlights.account-list li {
    font-size: 1.45rem; /* Keep current account size perfect */
  }
}
