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

  /* 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;

  /* Filter and sort colors */
  --filter-bg: #c0c0c0;

  /* Hero section colors */
  --hero-bg-light-blue: #d2edf9;

  /* Typography settings */
  --font-base: 'Montserrat', sans-serif;
  --font-body: 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);

  /* Layout settings */
  --container-padding: 2rem;
  --mobile-h-padding: 5px;
  --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);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  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;
}

/* Hero section: constrain image to reasonable height */
#brxe-zbprkh {
  background-color: var(--hero-bg-light-blue);
  height: 30vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Hero container */
#brxe-mcdwug {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Spacer div */
#brxe-yfaifi {
  height: 1rem;
}

/* Title positioned above image */
#brxe-grzfxo {
  position: relative;
  z-index: 3;
  margin-bottom: 0;
}

/* Image container - positioned at bottom of section */
#brxe-oiniag {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 80%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1;
}

/* Image itself - let it size naturally within container */
#brxe-oiniag img {
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  max-width: 100%;
}

/* Image utility classes */
/* Mobile image handling moved to main mobile media query below */

/* 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-base);
  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: max-content;
  width: auto;
  white-space: nowrap;
  z-index: 999;
}

.site-header .sub-menu a {
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 5px !important;
  font-size: 0.85em !important;
  font-weight: var(--weight-medium);
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 0.2s ease;
  width: 100%;
}

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

/* 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);
  font-size: 12px !important;
}

.site-header .brx-submenu-toggle button {
  margin-left: 5px;
  flex-shrink: 0;
}

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

/* Header menu items spacing - only for top level items */
/* Override Bricks default 30px margin - desktop header only */
.site-header :where(.brxe-nav-menu) .bricks-nav-menu > li {
  margin-left: 25px !important;
}

/* Slightly reduce header nav link font size */
.site-header .nav-item a {
  font-size: 0.95em;
}

/* 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);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;

}

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

.footer-nav .nav-item a:hover,
.footer-nav 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.1rem;
  color: rgba(255, 255, 255, 0.7);
}

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

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

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

.richtext h4, .richtext h5, .richtext h6 {
  font-weight: var(--weight-medium);
  margin: 1.2rem 0 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 ========== */
/* Style ToC */
.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: var(--link-primary); margin-bottom: 1.3em; padding-bottom: 0.5em; border-bottom: 1.5px solid #e0e8f6; letter-spacing: 0.03em; gap: 0.5em; text-transform: uppercase; 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; }
.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; overflow: hidden; }
.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; }
.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; }
.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; }
.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); }
.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; }
.toc-list li:last-child, .toc-sublist li:last-child { margin-bottom: 0; }

/* Guide sections */
/* Guide sections */
.guide-intro .image, .image { display: block; margin: 0 auto 2rem 0; max-width: 100%; height: auto; }
.guide-final { padding-bottom: 4rem; }
.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; }
.guide-divider { height: 1px; background: var(--section-bg); border: none; margin: 1.5rem 0; 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 sections */
.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;
  align-items: center;
  padding-left: 0;
  overflow: visible;
}

.container-results-header .bar-item {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem .6rem;
  min-height: 40px;
  position: relative;
}

.container-results-header .bar-item + .bar-item {
  border-left: 1px solid rgba(0,0,0,.15);
}

.container-results-header .bar-item * {
  margin: 0;
}

/* Desktop: Sort button as standalone element */
@media (min-width: 769px) {
  .container-results-header .bar-item.is-sort {
    position: relative;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    background: var(--section-bg);
    border-radius: var(--radius);
    box-shadow: none;
    gap: 0.35rem;
    flex-wrap: nowrap;
    cursor: pointer;
    width: auto;
    flex: 0 0 auto;
    margin-left: 5px;
    margin-right: 1rem;
  }

  .container-results-header .bar-item.is-sort:hover {
    border-color: var(--primary);
  }
}

.container-results-header .bar-item.is-sort::before {
  /* Removed - text now injected via JavaScript for TranslatePress */
  display: none;
}

.container-results-header .bar-item.is-sort::after {
  /* Removed - text now injected via JavaScript for TranslatePress */
  display: none;
}

.container-results-header .bar-item.is-sort .brxe-filter-select,
.container-results-header .bar-item.is-sort select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  color: var(--text);
  cursor: pointer;
  box-shadow: none;
  appearance: none;
  font: inherit;
  opacity: 0;
  z-index: 1;
}

/* Sort label injected by JavaScript - visible above invisible select */
.container-results-header .bar-item.is-sort .sort-label,
.container-results-header .bar-item.is-sort .sort-value {
  position: relative;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.container-results-header .bar-item.is-sort .brxe-filter-select:focus,
.container-results-header .bar-item.is-sort select:focus {
  outline: none;
}

/* Other bar items keep absolute positioning */
.container-results-header .bar-item:not(.is-sort) .brxe-filter-select,
.container-results-header .bar-item:not(.is-sort) select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  text-align: center;
  appearance: none;
  font: inherit;
  padding: 0;
}

.container-results-header .bar-item .bricks-filter-select__control,
.container-results-header .bar-item .bricks-filter-select__value-container {
  justify-content: center;
}

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

/* 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: 1rem 1rem;
  transition: 
    box-shadow var(--duration-normal) var(--easing-spring), 
    transform 0.22s var(--easing-spring),
    border-color 0.22s;
  cursor: pointer;
  min-width: 100px;
}

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

/* ========== CONTRACT TILE LAYOUT ========== */
/* 
 * IMPORTANT: Apply these classes in Bricks Builder:
 * - .contract-tile-content      → Main content wrapper
 * - .contract-tile-grid         → Three-column grid layout
 * - .contract-tile-highlights   → Middle column (highlights/features)
 * - .contract-tile-cta-wrapper  → CTA button wrapper
 * - .contract-tile-dropdown     → More info dropdown section
 */

/* 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;
}

/* Wrapper around logo / text */
.provider-badge {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;                 /* no grey pill behind logo */
    background: none;           /* remove background */
}

/* Logo version */
.provider-badge .cmp-provider-logo {
    display: block;
    height: 30px;               /* make logo bigger */
    width: auto;
    max-width: 170px;
}

/* Text badge fallback (when no logo) */
.provider-badge .cmp-provider-name {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;    /* bigger pill */
    border-radius: 999px;
    background-color: var(--secondary);
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;            /* bigger text */
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


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

/* Contract highlights */
.contract-highlights { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; font-size: 1.25rem; color: var(--dark); flex-wrap: nowrap; overflow-x: auto; width: max-content; min-width: 100%; }
.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; width: 100%; margin: 0; }
.contract-highlights li:last-child { margin-bottom: 0 !important; }
.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: 1.3rem; color: var(--text); font-family: var(--font-body); font-weight: var(--weight-medium); word-break: break-word; background: var(--secondary); border-radius: var(--radius); padding: 0.5em; margin: 0; }
.contract-highlights.account-list li { display: flex; align-items: flex-start; margin-bottom: 0.2em; font-size: 1.3rem; background: transparent; border-radius: 0; padding: 0.25em 0.4em; line-height: 1.3; white-space: nowrap; width: 100%; }
.contract-highlights.account-list li:last-child { margin-bottom: 0; }
.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); }

/* Tags */
.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);
}

/* CTA Section - additional styling */
.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,
.contract-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,
.contract-tile-dropdown ul,
.contract-tile-dropdown ol {
  padding-left: 1.5rem; /* less than default 5rem */
  margin-bottom: 0.8rem;
}

.compare-tile-dropdown li,
.contract-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;
}
.cmp-global-loader{
  display:none;
  position:fixed;
  inset:0;
  z-index:99999;
  background:rgba(255,255,255,.35);
  backdrop-filter:blur(2px);
  align-items:center;
  justify-content:center;
}

.cmp-global-loader[data-loading="1"]{
  display:flex;
}

.cmp-global-loader::after{
  content:"";
  width:28px;
  height:28px;
  border:3px solid rgba(0,0,0,.25);
  border-top-color: rgba(0,0,0,.8);
  border-radius:50%;
  animation: cmpSpin .8s linear infinite;
}

@keyframes cmpSpin { to { transform: rotate(360deg); } }

/* 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;
}



/* 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;
}

/* Language Switcher - Hide on Desktop */
.trp-language-switcher-container.trp-menu-ls-item.trp-menu-ls-mobile.current-language-menu-item {
  display: none;
}

/* ========== TOOLTIP STYLING ========== */
.tp-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tp-tooltip__text {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: normal;
  width: max-content;
  max-width: 260px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  padding: 8px 10px;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  z-index: 99999;
}

.tp-tooltip:hover .tp-tooltip__text {
  opacity: 1;
  visibility: visible;
}

.bricks-is-builder .tp-tooltip__text{
  display: none !important;
}




/* ========== MEDIA QUERIES ========== */
/* ========== Mobile ========== */
/* Consolidated mobile styles for screens 1100px and below */
@media (max-width: 1100px) {
  /* Image utility: Prevent images from overflowing container */
  .css-filter {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
  }

  /* Hero section: increase height on mobile for better image visibility */
  #brxe-zbprkh {
    height: 40vh;
  }

  #brxe-oiniag {
    height: 80%;
    width: 80%;
  }

  .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(1.8rem, 3.8vw, 2.5rem);
    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.1rem;
  }

  .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: 180px;
    flex: 0 0 auto;
  }

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

  .container-comparison {
    grid-template-columns: 1fr;
  }

  .container-results-header {
    position: sticky;
    top: 0;
    z-index: 99;
    background-color: var(--filter-bg);
    border-bottom: 1px solid rgba(0,0,0,.15);
    transform: translateY(0);
    transition: transform var(--duration-normal) ease;
  }

  /* Divider between filter and sort buttons */
  .container-results-header::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(0,0,0,.15);
    z-index: 999999;
    pointer-events: none;
  }

  .container-results-header.header-visible {
    transform: translateY(35px);
  }

  .container-results-header .bar-item {
    justify-content: center;
  }

  .container-results-header .bar-item select {
    text-align: center;
    text-align-last: center;
  }

  /* Mobile: Reset sort button desktop styles */
  .container-results-header .bar-item.is-sort {
    position: relative;
    border: none !important;
    padding: .9rem .6rem !important;
    background: transparent !important;
    border-radius: 0 !important;
    flex: 1 1 0 !important;
    margin: 0 !important;
  }

  .container-results-header .bar-item.is-sort::before {
    display: none !important;
  }

  /* Mobile: Select element covers button area */
  .container-results-header .bar-item.is-sort select {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    color: transparent !important;
    opacity: 0 !important;
    z-index: 1 !important;
  }

  /* Mobile: Sort label visible above invisible select */
  .container-results-header .bar-item.is-sort .sort-label,
  .container-results-header .bar-item.is-sort .sort-value {
    position: relative !important;
    z-index: 0 !important;
    pointer-events: none !important;
    user-select: none !important;
  }

  /* Mobile: Hide selected value, only show label */
  .container-results-header .bar-item.is-sort .sort-value {
    display: none !important;
  }

  /* Mobile: Display text overlay */
  .container-results-header .bar-item.is-sort::after {
    /* Removed - text now injected via JavaScript for TranslatePress */
    display: none;
  }

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

  /* ===== Mobile: stack the three columns ===== */
  .contract-tile > .brxe-cmfxhr > .brxe-ujiwth {
    display: grid !important;
    grid-template-columns: 1fr;
    row-gap: var(--tile-gap);
    align-items: start;
  }

  .contract-tile .contract-header,
  .contract-tile .brxe-rojpyz {
    grid-column: 1;
  }

  .contract-tile .contract-cta {
    grid-column: 1;
    justify-self: center;
    align-self: center;
    text-align: center;
  }

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

  .contract-tile > .brxe-cswooh {
    margin-top: auto;
    align-self: flex-start;
  }

  /* General Layout */
  /* Apply horizontal padding to all containers except those with no-h-padding class */
  .brxe-container:not(.no-h-padding) {
    padding-left: var(--mobile-h-padding);
    padding-right: var(--mobile-h-padding);
  }
  
  /* Remove padding from containers that have results header - allows full width bar */
  .brxe-container:has(.container-results-header) {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body {
    font-size: var(--font-size-base-mobile);
  }



  /* Base state: off screen */
  .container-filter {
    position: fixed;
    top: 0;
    left: 0;
    width: 60vw;
    max-width: 350px;
    height: 100vh;
    background: var(--light);
    z-index: 9999;
    box-shadow: 2px 0 16px rgba(0,0,0,0.15);
    transform: translateX(-110%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    pointer-events: none;
  }

  /* Open state */
  .container-filter.brx-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .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;
  }
  /* Style the filter toggle button */
  .filter-toggle-sticky {
    position: sticky;
    top: 0;
    left: 0;
    height: 50px;
    margin-left: 10px;
    z-index: 99;
    background: var(--border);
    width: 50px; 
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    align-self: flex-start;
    transform: translateY(0);
    transition: transform var(--duration-normal) ease;
  }
  .filter-toggle-sticky button {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .filter-toggle-sticky.header-visible {
    transform: translateY(35px);
  }


  /* 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 */
  }

  /* Language Switcher - Show on Mobile */
  .trp-language-switcher-container.trp-menu-ls-item.trp-menu-ls-mobile.current-language-menu-item {
    display: block;
  }
}


