/* Amethyst Vault - Dimensional iGaming & Cashback Review System */

:root {
  /* Art Direction Contract Prompts */
  --sf-art-materials: "beveled amethyst enamel, polished brass hardware, obsidian slate, luminous jewel facets";
  --sf-art-lighting: "chiseled rim lighting, rich violet ambient glow, focused specular highlights, warm gold bloom";
  --sf-art-shapes: "faceted slot-frame chamfers, hexagonal medallions, pill counters, sculpted mechanical bevels";
  --sf-art-world: "sophisticated adult slot realm, cascading cashback reels, opulent vault chambers, high-limit lounge";

  /* Color System - Deep Violet Canvas */
  --sf-bg-base: #1d1035;
  --sf-bg-surface-subtle: #241542;
  --sf-bg-surface: #2b1a4f;
  --sf-bg-surface-raised: #34205f;
  --sf-bg-surface-elevated: #3f2772;
  --sf-bg-surface-light: #ffffff;
  --sf-bg-surface-light-alt: #f8f6fc;

  /* Accent & CTA Token Contract */
  --sf-accent: #f59e0b;
  --sf-accent-text: #1d1035;

  /* Supplemental Brand & Editorial Accents */
  --sf-gold-rim: #fbbf24;
  --sf-amethyst-glow: #a855f7;
  --sf-amethyst-light: #c084fc;
  --sf-amethyst-dark: #150a27;
  --sf-emerald-trust: #10b981;
  --sf-emerald-bg: #064e3b;
  --sf-ruby-alert: #f43f5e;
  --sf-ruby-bg: #4c0519;
  --sf-sapphire-info: #38bdf8;
  --sf-sapphire-bg: #0c4a6e;

  /* Typography Colors */
  --sf-text-main: #f3effe;
  --sf-text-muted: #ddd2f6;
  --sf-text-dim: #dbcefa;
  --sf-text-inverse: #160c29;
  --sf-text-inverse-muted: #3a2b52;

  /* Borders & Dividers */
  --sf-border-subtle: #452c7a;
  --sf-border-glow: #6b44b8;
  --sf-border-gold: rgba(245, 158, 11, 0.45);
  --sf-border-light: #e4dcf7;

  /* Dimensional Shadows */
  --sf-shadow-sm: 0 2px 6px rgba(11, 4, 24, 0.45);
  --sf-shadow-md: 0 6px 18px rgba(11, 4, 24, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --sf-shadow-lg: 0 12px 32px rgba(9, 3, 20, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --sf-shadow-gold: 0 0 20px rgba(245, 158, 11, 0.35);

  /* Radii */
  --sf-radius-sm: 6px;
  --sf-radius-md: 10px;
  --sf-radius-lg: 16px;
  --sf-radius-pill: 9999px;

  /* Typography Scales */
  --sf-font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --sf-font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;

  --sf-header-bg: #150b28;
  --sf-header-text: #f3effe;
  --sf-header-accent: #f59e0b;
  --sf-header-accent-text: #1d1035;
  --sf-header-panel: #241542;
  --sf-header-panel-text: #f3effe;
  --sf-footer-bg: #120822;
  --sf-footer-text: #c4b5e3;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  background-color: var(--sf-bg-base);
  color: var(--sf-text-main);
  font-family: var(--sf-font-sans);
  scroll-behavior: smooth;
}

body {
  background-color: var(--sf-bg-base);
  color: var(--sf-text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

.table-responsive, .table-wrapper, .sf-table-wrap, .comparison-matrix, .games-grid-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}

table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  word-break: break-word;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

thead, tbody, tfoot, tr {
  width: 100%;
}

a {
  color: var(--sf-gold-rim);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: #fde68a;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--sf-accent);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); margin-bottom: 0.5rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.65;
  color: var(--sf-text-muted);
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  color: var(--sf-text-muted);
}

li { margin-bottom: 0.35rem; }

/* ==========================================================================
   Layout & Shell
   ========================================================================== */
.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container--narrow {
  max-width: 880px;
}

.section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--sf-border-subtle);
  position: relative;
}

.section--subtle {
  background-color: var(--sf-bg-surface-subtle);
}

.section--dark {
  background-color: var(--sf-amethyst-dark);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 760px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head .lead {
  font-size: 1.15rem;
  color: var(--sf-text-muted);
  margin-top: 0.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2col { grid-template-columns: 1fr; }
.grid--3col { grid-template-columns: 1fr; }
.grid--4col { grid-template-columns: 1fr; }

@media (min-width: 641px) {
  .grid--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .grid--3col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4col { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 960px) {
  .layout-with-sidebar {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background: var(--sf-header-bg);
  border-bottom: 2px solid var(--sf-border-subtle);
  position: relative;
  z-index: 100;
  box-shadow: var(--sf-shadow-md);
}

.site-header--sticky {
  position: sticky;
  top: 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  max-width: 1240px;
  margin: 0 auto;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-brand__badge {
  background: linear-gradient(135deg, var(--sf-amethyst-glow), var(--sf-bg-surface-raised));
  color: #fff;
  border: 1px solid var(--sf-gold-rim);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--sf-radius-sm);
  text-transform: uppercase;
}

@media (max-width: 859.98px) {
  .site-nav:not(.is-open) {
    display: none;
  }
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
  }
}

@media (min-width: 860px) {
  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav__link {
  color: var(--sf-text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 0.25rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.site-nav__link:hover, .site-nav__link.is-active {
  color: var(--sf-gold-rim);
  border-bottom-color: var(--sf-gold-rim);
}

.nav-toggle {
  background: var(--sf-bg-surface);
  border: 1px solid var(--sf-border-subtle);
  color: var(--sf-text-main);
  padding: 0.5rem 0.75rem;
  border-radius: var(--sf-radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  display: block;
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
}

/* ==========================================================================
   Hero Banners
   ========================================================================== */
.hero {
  position: relative;
  background: radial-gradient(circle at 75% 20%, rgba(168, 85, 247, 0.22) 0%, transparent 60%),
              linear-gradient(180deg, #241442 0%, #1d1035 100%);
  border-bottom: 2px solid var(--sf-border-subtle);
  padding: 3rem 0;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top, rgba(251, 191, 36, 0.08), transparent 70%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid var(--sf-amethyst-glow);
  color: #f3effe;
  padding: 0.25rem 0.75rem;
  border-radius: var(--sf-radius-pill);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero__title {
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero__description {
  font-size: 1.125rem;
  color: var(--sf-text-muted);
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-art-frame {
  position: relative;
  border-radius: var(--sf-radius-lg);
  padding: 6px;
  background: linear-gradient(135deg, var(--sf-gold-rim) 0%, var(--sf-border-subtle) 50%, var(--sf-amethyst-glow) 100%);
  box-shadow: var(--sf-shadow-lg);
}

.hero-art-frame__canvas {
  background: var(--sf-bg-surface-raised);
  border-radius: calc(var(--sf-radius-lg) - 4px);
  overflow: hidden;
  position: relative;
}

/* Review Specific Hero */
.review-hero {
  background: linear-gradient(180deg, #2b1752 0%, #1d1035 100%);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--sf-border-glow);
}

.review-hero__layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 641px) {
  .review-hero__layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.review-hero__casino {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.review-hero__logo {
  width: 80px;
  height: 80px;
  background: #ffffff;
  border-radius: var(--sf-radius-md);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sf-shadow-md);
  border: 2px solid var(--sf-gold-rim);
  flex-shrink: 0;
}

.review-hero__summary {
  min-width: 0;
}

.review-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
}

@media (min-width: 641px) {
  .review-hero__actions {
    min-width: 200px;
  }
}

/* Compact Info / Legal Hero */
.hero--compact {
  padding: 2rem 0;
  background: var(--sf-bg-surface-subtle);
}

.hero--compact .hero__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Buttons & Call to Action (Strict Contract Applied)
   ========================================================================== */
.btn,
.btn--primary,
.btn--secondary,
.btn--outline,
.btn--ghost,
.btn--gradient,
.btn--cta,
.cta-button {
  background: var(--sf-accent) !important;
  color: var(--sf-accent-text) !important;
  font-family: var(--sf-font-sans);
  font-weight: 700;
  font-size: 0.975rem;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem 1.4rem;
  border-radius: var(--sf-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  max-width: 100%;
  line-height: 1.3;
}

@media (max-width: 859px) {
  .btn,
  .btn--primary,
  .btn--secondary,
  .btn--outline,
  .btn--ghost,
  .btn--gradient,
  .btn--cta,
  .cta-button {
    white-space: normal;
  }
}

.btn:hover,
.btn--primary:hover,
.btn--secondary:hover,
.btn--outline:hover,
.btn--ghost:hover,
.btn--gradient:hover,
.btn--cta:hover,
.cta-button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn:focus,
.btn--primary:focus,
.btn--secondary:focus,
.btn--outline:focus,
.btn--ghost:focus,
.btn--gradient:focus,
.btn--cta:focus,
.cta-button:focus,
.btn:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.btn:active,
.btn--primary:active,
.btn--secondary:active,
.btn--outline:active,
.btn--ghost:active,
.btn--gradient:active,
.btn--cta:active,
.cta-button:active {
  transform: translateY(1px);
  filter: brightness(0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.btn--sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  border-radius: var(--sf-radius-sm);
}

.btn--lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.1rem;
}

.btn--full {
  width: 100%;
}

.btn:disabled, .btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.5);
}

/* ==========================================================================
   Casino Review Cards & Ranked Modules
   ========================================================================== */
.card {
  background: var(--sf-bg-surface);
  border: 1px solid var(--sf-border-subtle);
  border-radius: var(--sf-radius-md);
  padding: 1.25rem;
  box-shadow: var(--sf-shadow-md);
  position: relative;
  color: var(--sf-text-main);
}

/* Accessible White/Light Surface Cards */
.card--light {
  background: var(--sf-bg-surface-light);
  color: var(--sf-text-inverse);
  border: 1px solid var(--sf-border-light);
}

.card--light h1, .card--light h2, .card--light h3, .card--light h4, .card--light strong {
  color: var(--sf-text-inverse);
}

.card--light p, .card--light li, .card--light .card-text {
  color: var(--sf-text-inverse-muted);
}

.card--light .badge {
  border-color: #d1c4e9;
}

/* Main Casino Ranked Card */
.casino-card {
  background: linear-gradient(180deg, var(--sf-bg-surface-raised) 0%, var(--sf-bg-surface) 100%);
  border: 1px solid var(--sf-border-subtle);
  border-radius: var(--sf-radius-lg);
  padding: 1.25rem;
  position: relative;
  display: grid;
  gap: 1.25rem;
  align-items: center;
  box-shadow: var(--sf-shadow-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.casino-card:hover {
  border-color: var(--sf-border-glow);
  box-shadow: var(--sf-shadow-lg);
}

.casino-card--featured {
  border: 2px solid var(--sf-gold-rim);
  background: linear-gradient(180deg, #371b63 0%, var(--sf-bg-surface) 100%);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15), var(--sf-shadow-md);
}

.casino-card__rank {
  position: absolute;
  top: -12px;
  left: 14px;
  background: linear-gradient(135deg, #1d1035, #3b1968);
  color: var(--sf-gold-rim);
  border: 1px solid var(--sf-gold-rim);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: var(--sf-radius-pill);
  box-shadow: var(--sf-shadow-sm);
}

.casino-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.casino-card__logo {
  width: 72px;
  height: 72px;
  background: #ffffff;
  border-radius: var(--sf-radius-md);
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sf-border-subtle);
  flex-shrink: 0;
}

.casino-card__identity {
  min-width: 0;
}

.casino-card__title {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  white-space: normal;
}

.casino-card__bonus {
  background: rgba(168, 85, 247, 0.12);
  border: 1px dashed var(--sf-border-glow);
  padding: 0.85rem;
  border-radius: var(--sf-radius-md);
}

.casino-card__bonus-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
  line-height: 1.2;
}

.casino-card__bonus-cashback {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sf-gold-rim);
  margin-top: 0.25rem;
}

.casino-card__bonus-terms {
  font-size: 0.775rem;
  color: var(--sf-text-dim);
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.casino-card__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.casino-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.casino-card__link {
  font-size: 0.85rem;
  text-align: center;
  color: var(--sf-text-muted);
}

/* Responsive Desktop Transformation for Compact Comparison Row */
@media (min-width: 860px) {
  .casino-card {
    grid-template-columns: minmax(180px, 1.2fr) minmax(200px, 1.8fr) minmax(150px, 1fr) minmax(160px, 1.1fr);
  }
}

/* Compact Comparison Row (Stacked table-row replacement) */
.casino-row {
  background: var(--sf-bg-surface);
  border: 1px solid var(--sf-border-subtle);
  border-radius: var(--sf-radius-md);
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.85rem;
  transition: border-color 0.15s ease;
}

.casino-row:hover {
  border-color: var(--sf-amethyst-glow);
}

@media (min-width: 860px) {
  .casino-row {
    grid-template-columns: 50px 160px 1fr 140px 180px;
    padding: 0.75rem 1.25rem;
  }
}

/* ==========================================================================
   Bonus, Game & Provider Cards
   ========================================================================== */
.bonus-card {
  background: var(--sf-bg-surface-raised);
  border: 1px solid var(--sf-border-subtle);
  border-radius: var(--sf-radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--sf-shadow-sm);
  position: relative;
  overflow: hidden;
}

.bonus-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sf-gold-rim), var(--sf-amethyst-glow));
}

.bonus-card__badge {
  align-self: flex-start;
  margin-bottom: 0.75rem;
}

.bonus-card__code {
  background: var(--sf-bg-base);
  border: 1px dashed var(--sf-gold-rim);
  color: var(--sf-gold-rim);
  padding: 0.4rem 0.8rem;
  border-radius: var(--sf-radius-sm);
  font-family: var(--sf-font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-block;
  margin: 0.5rem 0;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 641px) {
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.game-card {
  background: var(--sf-bg-surface);
  border: 1px solid var(--sf-border-subtle);
  border-radius: var(--sf-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
  transform: translateY(-2px);
  border-color: var(--sf-gold-rim);
}

.game-card__thumb {
  aspect-ratio: 4 / 3;
  background: #150b28;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__fallback {
  color: var(--sf-text-dim);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem;
}

.game-card__body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
  white-space: normal;
}

.game-card__meta {
  font-size: 0.775rem;
  color: var(--sf-text-dim);
  margin-bottom: 0.5rem;
}

.provider-card {
  background: var(--sf-bg-surface);
  border: 1px solid var(--sf-border-subtle);
  border-radius: var(--sf-radius-md);
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.provider-card__logo {
  height: 48px;
  max-width: 120px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Badges, Ratings, Chips & Scores
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.775rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: var(--sf-radius-pill);
  background: var(--sf-bg-surface-elevated);
  color: var(--sf-text-main);
  border: 1px solid var(--sf-border-subtle);
  max-width: 100%;
  white-space: normal;
  word-break: normal;
}

.badge--cashback {
  background: rgba(245, 158, 11, 0.15);
  color: #fde68a;
  border-color: var(--sf-gold-rim);
}

.badge--trust {
  background: var(--sf-emerald-bg);
  color: #a7f3d0;
  border-color: var(--sf-emerald-trust);
}

.badge--hot {
  background: var(--sf-ruby-bg);
  color: #fecdd3;
  border-color: var(--sf-ruby-alert);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.chip {
  background: var(--sf-bg-surface-raised);
  border: 1px solid var(--sf-border-subtle);
  color: var(--sf-text-muted);
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--sf-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #150a27;
  border: 2px solid var(--sf-gold-rim);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--sf-radius-md);
  box-shadow: var(--sf-shadow-sm);
  flex-shrink: 0;
}

.score-pill__scale {
  font-size: 0.7rem;
  color: var(--sf-gold-rim);
  font-weight: 600;
  margin-left: 2px;
}

.rating-stars {
  display: inline-flex;
  align-items: center;
  color: var(--sf-gold-rim);
  font-size: 0.9rem;
  gap: 2px;
}

/* ==========================================================================
   Editorial Review Modules & Detail Blocks
   ========================================================================== */
.review-header {
  border-bottom: 1px solid var(--sf-border-subtle);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.review-summary {
  background: var(--sf-bg-surface-raised);
  border: 1px solid var(--sf-border-glow);
  border-left: 4px solid var(--sf-gold-rim);
  border-radius: var(--sf-radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.review-verdict {
  background: radial-gradient(circle at 10% 10%, rgba(168, 85, 247, 0.25) 0%, var(--sf-bg-surface-raised) 70%);
  border: 2px solid var(--sf-border-glow);
  border-radius: var(--sf-radius-lg);
  padding: 1.75rem;
  margin: 2.5rem 0;
  position: relative;
}

.review-verdict__badge {
  position: absolute;
  top: -14px;
  right: 20px;
  background: var(--sf-gold-rim);
  color: var(--sf-bg-base);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--sf-radius-pill);
  text-transform: uppercase;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

@media (min-width: 641px) {
  .pros-cons {
    grid-template-columns: 1fr 1fr;
  }
}

.pros, .cons {
  padding: 1.25rem;
  border-radius: var(--sf-radius-md);
  background: var(--sf-bg-surface);
}

.pros {
  border: 1px solid var(--sf-emerald-trust);
}

.cons {
  border: 1px solid var(--sf-ruby-alert);
}

.pros__title {
  color: #34d399;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cons__title {
  color: #fb7185;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.pros li::before {
  content: "";
  color: #34d399;
  margin-right: 0.5rem;
  font-weight: bold;
}

.cons li::before {
  content: "";
  color: #fb7185;
  margin-right: 0.5rem;
  font-weight: bold;
}

/* Fact Sheet Key-Value Grid */
.fact-sheet {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  background: var(--sf-bg-surface);
  border: 1px solid var(--sf-border-subtle);
  border-radius: var(--sf-radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 641px) {
  .fact-sheet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fact-item {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.fact-item__label {
  font-size: 0.8rem;
  color: var(--sf-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fact-item__value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 0.2rem;
  word-break: break-word;
}

/* Author Box */
.author-box {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--sf-bg-surface-raised);
  border: 1px solid var(--sf-border-subtle);
  border-radius: var(--sf-radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
}

@media (min-width: 641px) {
  .author-box {
    flex-direction: row;
    align-items: center;
  }
}

.author-box__avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--sf-radius-pill);
  border: 2px solid var(--sf-gold-rim);
  overflow: hidden;
  flex-shrink: 0;
}

.author-box__info h4 {
  margin-bottom: 0.25rem;
}

.author-box__role {
  font-size: 0.825rem;
  color: var(--sf-gold-rim);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.author-box__bio {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Table of Contents Module */
.toc-module {
  background: var(--sf-bg-surface);
  border: 1px solid var(--sf-border-subtle);
  border-radius: var(--sf-radius-md);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.toc-module__title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sf-gold-rim);
  margin-bottom: 0.75rem;
}

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

.toc-module__link {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--sf-text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 0.5rem;
}

.toc-module__link:hover, .toc-module__link.is-active {
  color: #ffffff;
  border-left-color: var(--sf-gold-rim);
}

/* ==========================================================================
   Comparison Tables
   ========================================================================== */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border: 1px solid var(--sf-border-subtle);
  border-radius: var(--sf-radius-md);
  box-shadow: var(--sf-shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
  min-width: 620px;
}

.comparison-table th {
  background: var(--sf-bg-surface-raised);
  color: #ffffff;
  font-weight: 700;
  padding: 1rem 0.85rem;
  border-bottom: 2px solid var(--sf-border-glow);
  white-space: nowrap;
}

.comparison-table td {
  padding: 1rem 0.85rem;
  border-bottom: 1px solid var(--sf-border-subtle);
  background: var(--sf-bg-surface);
  color: var(--sf-text-muted);
  vertical-align: middle;
  min-width: 7.5rem;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: var(--sf-bg-surface-elevated);
}

.comparison-table__casino-col {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: #ffffff;
}

.comparison-table__logo-mini {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: var(--sf-radius-sm);
  padding: 0.2rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Filters, Search & Controls
   ========================================================================== */
.filter-bar {
  background: var(--sf-bg-surface);
  border: 1px solid var(--sf-border-subtle);
  border-radius: var(--sf-radius-md);
  padding: 1rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .filter-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-input {
  background: var(--sf-bg-base);
  border: 1px solid var(--sf-border-subtle);
  color: #ffffff;
  padding: 0.55rem 0.85rem;
  border-radius: var(--sf-radius-sm);
  font-size: 0.9rem;
  width: 100%;
  max-width: 280px;
}

.filter-select {
  background: var(--sf-bg-base);
  border: 1px solid var(--sf-border-subtle);
  color: #ffffff;
  padding: 0.55rem 0.85rem;
  border-radius: var(--sf-radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
}

.tab-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  border-bottom: 2px solid var(--sf-border-subtle);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.tab-nav__item {
  background: transparent;
  border: none;
  color: var(--sf-text-muted);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--sf-radius-sm);
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.95rem;
}

.tab-nav__item:hover, .tab-nav__item.is-active {
  color: #ffffff;
  background: var(--sf-bg-surface-raised);
}

/* ==========================================================================
   Accordion & FAQ
   ========================================================================== */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.accordion-item {
  background: var(--sf-bg-surface);
  border: 1px solid var(--sf-border-subtle);
  border-radius: var(--sf-radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.accordion-item:hover, .accordion-item.is-open {
  border-color: var(--sf-amethyst-glow);
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.15rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.accordion-trigger::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--sf-gold-rim);
  line-height: 1;
  transition: transform 0.2s ease;
}

.accordion-item.is-open .accordion-trigger::after,
.accordion-trigger[aria-expanded="true"]::after {
  content: "−";
  transform: rotate(180deg);
}

.accordion-panel {
  padding: 0 1.15rem 1.15rem 1.15rem;
  color: var(--sf-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Semantic Media & Content Typography
   ========================================================================== */
figure {
  margin: 1.75rem 0;
  max-width: 100%;
}

figure img {
  border-radius: var(--sf-radius-md);
  border: 1px solid var(--sf-border-subtle);
  box-shadow: var(--sf-shadow-md);
  width: 100%;
}

figcaption {
  font-size: 0.85rem;
  color: var(--sf-text-dim);
  text-align: center;
  margin-top: 0.6rem;
  line-height: 1.4;
}

.content-block {
  max-width: 760px;
}

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

.content-block h3 {
  margin-top: 1.5rem;
}

/* ==========================================================================
   Trust, Legal, Disclosures & Responsible Gaming
   ========================================================================== */
.rg-banner {
  background: linear-gradient(90deg, #180d2c 0%, #29124a 100%);
  border: 1px solid var(--sf-border-subtle);
  border-left: 4px solid var(--sf-ruby-alert);
  border-radius: var(--sf-radius-md);
  padding: 1rem 1.25rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rg-banner__icon {
  font-size: 1.75rem;
  line-height: 1;
}

.rg-banner__text {
  font-size: 0.85rem;
  color: var(--sf-text-muted);
  margin-bottom: 0;
}

.disclosure-block {
  background: rgba(21, 10, 39, 0.7);
  border: 1px solid var(--sf-border-subtle);
  padding: 0.85rem 1.25rem;
  border-radius: var(--sf-radius-sm);
  font-size: 0.8rem;
  color: var(--sf-text-dim);
  margin: 1.5rem 0;
}

.disclosure-block p {
  margin-bottom: 0;
  font-size: inherit;
  color: inherit;
}

/* ==========================================================================
   Breadcrumbs & Pagination
   ========================================================================== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  margin-bottom: 1.25rem;
  padding: 0;
  list-style: none;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--sf-text-dim);
}

.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  color: var(--sf-border-glow);
}

.breadcrumbs__link {
  color: var(--sf-text-dim);
  text-decoration: none;
}

.breadcrumbs__link:hover {
  color: #ffffff;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
  list-style: none;
  padding: 0;
}

.pagination__item a, .pagination__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  background: var(--sf-bg-surface);
  border: 1px solid var(--sf-border-subtle);
  color: #ffffff;
  border-radius: var(--sf-radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.pagination__item.is-active span {
  background: var(--sf-amethyst-glow);
  border-color: var(--sf-amethyst-light);
}

/* ==========================================================================
   States: Skeleton, Empty & Notice
   ========================================================================== */
.skeleton {
  background: linear-gradient(90deg, var(--sf-bg-surface) 25%, var(--sf-bg-surface-raised) 50%, var(--sf-bg-surface) 75%);
  background-size: 200% 100%;
  animation: sf-shimmer 1.8s infinite;
  border-radius: var(--sf-radius-sm);
}

.skeleton--text { height: 1rem; margin-bottom: 0.5rem; width: 80%; }
.skeleton--title { height: 1.75rem; margin-bottom: 0.75rem; width: 60%; }
.skeleton--btn { height: 2.75rem; width: 140px; }

@keyframes sf-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--sf-bg-surface);
  border: 1px dashed var(--sf-border-subtle);
  border-radius: var(--sf-radius-md);
  margin: 2rem 0;
}

.empty-state__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--sf-text-dim);
}

/* ==========================================================================
   Prefers Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:root {
  --sf-readable-card-text: var(--text-main, var(--color-text, var(--text, #e2e8f0)));
  --sf-readable-card-muted: var(--text-muted, var(--color-text-muted, var(--color-muted, #94a3b8)));
  --sf-readable-card-link: var(--color-link, var(--link, #7cc4ff));
}

:where(.card, .casino-card, .bonus-card, .provider-card, .game-card, .review-card, .rating-card, .comparison-card, .feature-card, .info-card, .method-card, .payment-card, .software-card, .trust-card, .verdict-card, .faq-card) {
  color: var(--card-text, var(--color-card-text, var(--sf-readable-card-text)));
}

:is(.section--dark, .section-dark, .dark-section, .theme-dark, [data-theme="dark"]) :is(.card, .casino-card, .bonus-card, .provider-card, .game-card, .review-card, .rating-card, .comparison-card, .feature-card, .info-card, .method-card, .payment-card, .software-card, .trust-card, .verdict-card, .faq-card) {
  color: var(--card-text, var(--color-card-text, var(--sf-readable-card-text)));
}

:where(.card, .casino-card, .bonus-card, .provider-card, .game-card, .review-card, .rating-card, .comparison-card, .feature-card, .info-card, .method-card, .payment-card, .software-card, .trust-card, .verdict-card, .faq-card) :where(h1, h2, h3, h4, h5, h6, p, li, span, strong, em, small, td, th, figcaption, .chip, .badge, .tag, .provider-chip, .game-chip) {
  color: inherit;
}

:is(.section--dark, .section-dark, .dark-section, .theme-dark, [data-theme="dark"]) :is(.card, .casino-card, .bonus-card, .provider-card, .game-card, .review-card, .rating-card, .comparison-card, .feature-card, .info-card, .method-card, .payment-card, .software-card, .trust-card, .verdict-card, .faq-card) :is(h1, h2, h3, h4, h5, h6, p, li, span, strong, em, small, td, th, figcaption, .chip, .badge, .tag, .provider-chip, .game-chip) {
  color: inherit;
}

:where(.card, .casino-card, .bonus-card, .provider-card, .game-card, .review-card, .rating-card, .comparison-card, .feature-card, .info-card, .method-card, .payment-card, .software-card, .trust-card, .verdict-card, .faq-card) :where(.muted, .meta, .card-meta, .text-muted, .provider-meta, .game-meta) {
  color: var(--card-muted, var(--color-muted, var(--sf-readable-card-muted)));
}

:where(.card, .casino-card, .bonus-card, .provider-card, .game-card, .review-card, .rating-card, .comparison-card, .feature-card, .info-card, .method-card, .payment-card, .software-card, .trust-card, .verdict-card, .faq-card) :where(a:not(.btn):not(.button):not(.cta):not([class*="button"]):not([class*="btn"])) {
  color: var(--card-link, var(--color-link, var(--sf-readable-card-link)));
}

.content-columns > * {
  min-width: 0;
  max-width: 100%;
}

:where([data-bonus-offer-item]) { align-items: center; gap: 1rem; }
:where([data-bonus-offer-item]) :where([data-field]) { display: block; }
:where([data-bonus-offer-item]) :where([data-field="bonus_title"], [data-field="casino_name"]) { font-weight: 600; }
:where([data-bonus-offer-item]) :where([data-field="bonus_title"], [data-field="bonus_value"], [data-field="terms_short"]) { margin-top: .3rem; }
:where([data-bonus-offer-item]) :where(.btn--cta, .cta-button) { display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1.25rem; border-radius: 10px; background: var(--color-cta, var(--cta-bg, var(--accent, var(--color-accent, var(--primary, var(--color-primary, #e11d48)))))); color: #fff; font-weight: 700; text-decoration: none; }
:where(button, a) :where(svg:not([width]):not([height])) { width: 1.25em; height: 1.25em; flex: 0 0 auto; }

[data-casino-item] [data-field="logo"]:not(img), [data-bonus-offer-item] [data-field="logo"]:not(img) { display: flex; align-items: center; justify-content: center; overflow: hidden; }
[data-casino-item] [data-field="logo"]:not(img) img, [data-bonus-offer-item] [data-field="logo"]:not(img) img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
[role="tablist"] { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
[role="tablist"] > * { flex: 0 0 auto; white-space: nowrap; }
main table :where(th, td):first-child { min-width: 9rem; }

[data-detail-block="review-header"] :has(> img[data-field="logo"]:only-child) { display: flex; align-items: center; justify-content: center; overflow: hidden; }
[data-detail-block="review-header"] :has(> img[data-field="logo"]:only-child) > img { max-width: 100%; max-height: 100%; object-fit: contain; }
/* Hero on phones v1 */
@media (max-width: 640px) {
  :root body :is([data-sf-hero-host], [data-detail-block="review-header"]):has(h1),
  :root body :is([data-sf-hero-host], [data-detail-block="review-header"]) :where(div, section, article, aside, header):has(h1) {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: none !important;
  }
  :root body :is([data-sf-hero-host], [data-detail-block="review-header"]):has(h1) > *,
  :root body :is([data-sf-hero-host], [data-detail-block="review-header"]) :where(div, section, article, aside, header):has(h1) > * {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}
/* Hero on phones v1 end */

/* Standard site header and footer v1 */
.sf-header,
.sf-footer {
  --sf-h-bg: var(--sf-header-bg, #150b28);
  --sf-h-text: var(--sf-header-text, rgb(243, 239, 254));
  --sf-h-accent: var(--sf-header-accent, #f59e0b);
  --sf-h-accent-text: var(--sf-header-accent-text, rgb(29, 16, 53));
  --sf-h-panel: var(--sf-header-panel, rgb(21, 11, 40));
  --sf-h-panel-text: var(--sf-header-panel-text, rgb(243, 239, 254));
  --sf-h-note-bg: color-mix(in srgb, var(--sf-h-text) 8%, var(--sf-h-panel));
  --sf-h-line: color-mix(in srgb, var(--sf-h-text) 16%, transparent);
  --sf-h-hover: color-mix(in srgb, var(--sf-h-accent) 14%, transparent);
  --sf-h-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --sf-h-radius: 10px;
  --sf-h-font: inherit;
  --sf-h-brand-font: inherit;
  --sf-f-bg: var(--sf-footer-bg, #150a27);
  --sf-f-text: var(--sf-footer-text, rgb(243, 239, 254));
  --sf-f-line: color-mix(in srgb, var(--sf-f-text) 16%, transparent);
}

/* Layout of the standard header, menu, drawer and footer. No colours, fonts or shadows of its own: they come from
   the --sf-h-* and --sf-f-* variables, which take the site's own design values. */
.sf-header {
  position: sticky !important;
  top: 0;
  z-index: 1000;
  display: block !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--sf-h-bg);
  color: var(--sf-h-text);
  font-family: var(--sf-h-font, inherit);
  border-bottom: 1px solid var(--sf-h-line);
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow-x: clip !important;
}

.sf-header *,
.sf-header *::before,
.sf-header *::after,
.sf-footer *,
.sf-footer *::before,
.sf-footer *::after {
  box-sizing: border-box;
}

.sf-header__note {
  margin: 0;
  padding: 0.35rem 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
  background: var(--sf-h-note-bg);
}

.sf-header__note a {
  color: inherit;
  text-decoration: underline;
}

.sf-header .sf-header__bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.25rem;
  width: min(100%, 1280px);
  min-height: 64px;
  margin: 0 auto;
  padding: 0.5rem 1.25rem;
}

.sf-header .sf-header__brand {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  font-family: var(--sf-h-brand-font, inherit);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.sf-header .sf-header__brand [data-sf-brand-wordmark],
.sf-header .sf-header__brand .sf-header__wordmark {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sf-header .sf-header__nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.sf-header .sf-menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-header .sf-menu__item {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-header .sf-menu__link {
  display: block;
  margin: 0;
  padding: 0.5rem 0.75rem;
  color: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: none;
  border-radius: var(--sf-h-radius);
}

.sf-header .sf-menu__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.sf-header .sf-menu__label::after {
  width: 0.4rem;
  height: 0.4rem;
  content: '';
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.sf-header .sf-menu__item.is-open > .sf-menu__label::after {
  transform: translateY(2px) rotate(225deg);
}

.sf-header .sf-menu__link:hover,
.sf-header .sf-menu__link:focus-visible,
.sf-header .sf-menu__link[aria-current="page"] {
  color: var(--sf-h-accent);
}

.sf-header .sf-menu__more,
.sf-header .sf-drawer__more {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  border-radius: var(--sf-h-radius);
  cursor: pointer;
}

.sf-header .sf-menu__more {
  width: 1.75rem;
  height: 1.75rem;
  margin-left: -0.5rem;
}

.sf-header .sf-drawer__more {
  width: 44px;
  height: 44px;
}

.sf-header .sf-menu__more::before,
.sf-header .sf-drawer__more::before {
  width: 0.45rem;
  height: 0.45rem;
  content: '';
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.sf-header .is-open > .sf-menu__more::before,
.sf-header .is-open > .sf-drawer__row > .sf-drawer__more::before {
  transform: translateY(2px) rotate(225deg);
}

.sf-header .sf-menu__panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1010;
  display: none;
  min-width: 240px;
  max-width: min(420px, calc(100vw - 24px));
  margin: 0;
  padding: 0.5rem;
  color: var(--sf-h-panel-text);
  background: var(--sf-h-panel);
  border: 1px solid var(--sf-h-line);
  border-radius: var(--sf-h-radius);
  box-shadow: var(--sf-h-shadow);
}

.sf-header .sf-menu__panel::before {
  position: absolute;
  top: calc(-1 * var(--sf-panel-gap, 12px));
  right: 0;
  left: 0;
  height: var(--sf-panel-gap, 12px);
  content: '';
}

.sf-header .sf-menu__item.is-open > .sf-menu__panel {
  display: block;
}

.sf-header .sf-menu__panel--wide {
  width: min(600px, calc(100vw - 24px));
  max-width: none;
}

.sf-header .sf-menu__sub,
.sf-header .sf-drawer__list,
.sf-header .sf-drawer__sub {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-header .sf-menu__panel--wide .sf-menu__sub {
  columns: 2;
  column-gap: 0.5rem;
}

.sf-header .sf-menu__sub li,
.sf-header .sf-drawer__list li {
  margin: 0;
  padding: 0;
  list-style: none;
  break-inside: avoid;
}

.sf-header .sf-menu__sub a {
  display: block;
  overflow-wrap: anywhere;
  padding: 0.45rem 0.65rem;
  color: inherit;
  font-size: 0.9rem;
  line-height: 1.35;
  white-space: normal;
  text-decoration: none;
  border-radius: var(--sf-h-radius);
}

.sf-header .sf-menu__sub a:hover,
.sf-header .sf-menu__sub a:focus-visible,
.sf-header .sf-menu__sub a[aria-current="page"] {
  color: var(--sf-h-accent);
  background: var(--sf-h-hover);
}

.sf-header .sf-header__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.sf-header .sf-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.55rem 1rem;
  color: var(--sf-h-accent-text);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  background: var(--sf-h-accent);
  border: 1px solid transparent;
  border-radius: var(--sf-h-radius);
}

.sf-header .sf-header__cta--quiet {
  color: inherit;
  background: transparent;
  border-color: var(--sf-h-line);
}

.sf-header .sf-header__toggle {
  display: none;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  color: inherit;
  background: none;
  border: 1px solid var(--sf-h-line);
  border-radius: var(--sf-h-radius);
  cursor: pointer;
}

.sf-header .sf-header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.sf-header .sf-header__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.sf-header .sf-header__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.sf-header .sf-header__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* While the menu stands in the row, the site name keeps its full width: the menu gives way first. */
.sf-header[data-mode="full"] .sf-header__brand,
.sf-header[data-mode="compact"] .sf-header__brand {
  flex: none;
}

/* Compact: the same one row with less room around the links. */
.sf-header[data-mode="compact"] .sf-header__bar {
  gap: 0.75rem;
}

.sf-header[data-mode="compact"] .sf-menu__link {
  padding: 0.45rem 0.45rem;
  font-size: 0.875rem;
}

/* The menu button instead of the row: on phones, and wherever the runtime found that the row does not fit. */
.sf-header[data-mode="drawer"] .sf-header__nav {
  display: none;
}

.sf-header[data-mode="drawer"] .sf-header__toggle {
  display: inline-flex;
}

.sf-header[data-mode="drawer"] .sf-header__brand {
  flex: 1 1 auto;
}

@media (max-width: 859px) {
  .sf-header .sf-header__nav {
    display: none;
  }

  .sf-header .sf-header__toggle {
    display: inline-flex;
  }

  .sf-header .sf-header__brand {
    flex: 1 1 auto;
  }

  .sf-header .sf-header__bar {
    gap: 0.75rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 559px) {
  .sf-header .sf-header__actions .sf-header__cta {
    display: none;
  }
}

/* The runtime hides header buttons that would cut the site name; the drawer still holds them. */
.sf-header[data-sf-cta="quiet"] .sf-header__actions .sf-header__cta--quiet,
.sf-header[data-sf-cta="hidden"] .sf-header__actions .sf-header__cta {
  display: none;
}

.sf-header .sf-drawer {
  position: fixed;
  overflow-wrap: anywhere;
  top: var(--sf-h-top, 64px);
  right: 0;
  z-index: 1020;
  width: min(400px, 100vw);
  height: calc(100dvh - var(--sf-h-top, 64px));
  margin: 0;
  padding: 0.75rem 1.25rem 2rem;
  overflow-y: auto;
  color: var(--sf-h-panel-text);
  background: var(--sf-h-panel);
  box-shadow: var(--sf-h-shadow);
}

/* A closed drawer takes no room at all, also when a wrapper of the page is the box of its fixed position. */
.sf-header .sf-drawer:not(.is-open) {
  display: none;
}

.sf-header .sf-drawer.is-open {
  display: block;
  animation: sf-drawer-in 0.2s ease;
}

@keyframes sf-drawer-in {
  from {
    transform: translateX(100%);
  }

  to {
    transform: none;
  }
}

.sf-header .sf-drawer__item {
  border-bottom: 1px solid var(--sf-h-line);
}

.sf-header .sf-drawer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.sf-header .sf-drawer__link {
  display: block;
  flex: 1 1 auto;
  padding: 0.8rem 0;
  color: inherit;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.sf-header .sf-drawer__sub {
  display: none;
  padding: 0 0 0.5rem 0.75rem;
}

.sf-header .sf-drawer__item.is-open > .sf-drawer__sub {
  display: block;
}

.sf-header .sf-drawer__sub a {
  display: block;
  padding: 0.5rem 0;
  color: inherit;
  font-size: 0.95rem;
  line-height: 1.35;
  text-decoration: none;
}

.sf-header .sf-drawer__link[aria-current="page"],
.sf-header .sf-drawer__sub a[aria-current="page"] {
  color: var(--sf-h-accent);
}

.sf-header .sf-drawer__actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.sf-header .sf-drawer__actions .sf-header__cta {
  display: flex;
  width: 100%;
}

body.sf-menu-open {
  overflow: hidden !important;
}

@media (prefers-reduced-motion: reduce) {
  .sf-header .sf-drawer.is-open {
    animation: none;
  }

  .sf-header .sf-header__toggle span {
    transition: none;
  }
}

.sf-footer {
  display: block !important;
  overflow-wrap: anywhere;
  margin: 0 !important;
  padding: 2.5rem 0 1.5rem !important;
  color: var(--sf-f-text);
  font-family: var(--sf-h-font, inherit);
  background: var(--sf-f-bg);
  border-top: 1px solid var(--sf-f-line);
}

.sf-footer .sf-footer__inner {
  display: grid;
  gap: 2rem;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sf-footer .sf-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  color: inherit;
  font-family: var(--sf-h-brand-font, inherit);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}

.sf-footer .sf-footer__about {
  max-width: 760px;
}

.sf-footer .sf-footer__about p,
.sf-footer .sf-footer__notes p {
  margin: 0 0 0.6rem;
  font-size: 0.875rem;
  line-height: 1.55;
}

.sf-footer .sf-footer__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem 2rem;
  margin: 0;
  padding: 0;
}

.sf-footer .sf-footer__col--long {
  grid-column: 1 / -1;
}

.sf-footer .sf-footer__title {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.sf-footer .sf-footer__list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-footer .sf-footer__col--long .sf-footer__list {
  display: block;
  columns: 4 200px;
  column-gap: 2rem;
}

.sf-footer .sf-footer__list li {
  margin: 0 0 0.35rem;
  padding: 0;
  list-style: none;
  break-inside: avoid;
}

.sf-footer .sf-footer__list a,
.sf-footer .sf-footer__notes a,
.sf-footer .sf-footer__about a {
  color: inherit;
  font-size: 0.875rem;
  line-height: 1.45;
  text-decoration: none;
  opacity: 0.85;
}

.sf-footer .sf-footer__list a:hover,
.sf-footer .sf-footer__list a:focus-visible,
.sf-footer .sf-footer__notes a:hover,
.sf-footer .sf-footer__about a:hover {
  color: var(--sf-h-accent);
  text-decoration: underline;
  opacity: 1;
}

.sf-footer .sf-footer__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0 0;
}

.sf-footer .sf-footer__badges img {
  width: auto;
  max-width: 140px;
  height: 32px;
  object-fit: contain;
}

.sf-footer .sf-footer__copy {
  margin: 0;
  padding-top: 1rem;
  font-size: 0.8125rem;
  opacity: 0.75;
  border-top: 1px solid var(--sf-f-line);
}

@media (max-width: 559px) {
  .sf-footer .sf-footer__list,
  .sf-footer .sf-footer__col--long .sf-footer__list {
    display: block;
    columns: 2;
    column-gap: 1rem;
  }
}
/* Standard site header and footer v1 end */

/* Final navigation CSS guardrail */
.site-header {
    position: relative;
    z-index: 3000;
}

.site-header > .container {
    position: relative;
}

.site-nav {
    margin-inline-start: auto;
}

.bonus-card__icon:empty {
    display: none;
}

.pros-block h3::before,
.cons-block h3::before {
    content: '' !important;
}

.pros-block li::before,
.cons-block li::before {
    content: '' !important;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    margin-top: 0.45rem;
    flex: 0 0 0.55rem;
}

.pros-block li::before {
    background: var(--color-success, #15803d);
}

.cons-block li::before {
    background: var(--color-error, #b91c1c);
}

@media (min-width: 769px) {
    .site-nav__list {
        display: flex !important;
        align-items: center;
        gap: clamp(0.9rem, 1.8vw, 1.5rem);
        margin: 0;
        padding: 0;
    }

    .site-nav__item--has-submenu {
        position: static !important;
    }

    .site-nav__link,
    .site-nav__link--submenu-toggle {
        white-space: nowrap;
    }

    .site-nav__link--submenu-toggle::after {
        content: '' !important;
        width: 0.45rem;
        height: 0.45rem;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        margin-inline-start: 0.15rem;
        margin-top: -0.2rem;
    }

    .site-nav__item--has-submenu.is-open .site-nav__link--submenu-toggle::after {
        transform: rotate(225deg);
        margin-top: 0.2rem;
    }

    .site-nav__item--has-submenu > .mega-menu {
        display: block !important;
        position: absolute !important;
        top: calc(100% + 0.75rem) !important;
        inset-inline-end: 0 !important;
        inset-inline-start: auto !important;
        width: min(860px, calc(100vw - 2rem)) !important;
        max-width: none !important;
        padding: 1.25rem 1.5rem !important;
        border: 1px solid rgba(20, 30, 50, 0.12);
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(0.5rem) !important;
        transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease !important;
        z-index: 3100 !important;
    }

    .site-nav__item--has-submenu:hover > .mega-menu,
    .site-nav__item--has-submenu:focus-within > .mega-menu,
    .site-nav__item--has-submenu.is-open > .mega-menu {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    .mega-menu > .container {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
        gap: 1.5rem !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .mega-menu__column {
        min-width: 0;
    }

    .mega-menu__column a {
        color: var(--color-text-dark, #172033) !important;
        line-height: 1.35;
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .site-nav__list {
        display: none !important;
    }

    .site-nav--mobile-toggle {
        display: block !important;
    }

    .site-nav__item--has-submenu > .mega-menu {
        display: none !important;
    }
}

/* Content width on wide screens v1 */
@media (min-width: 1600px) {
  :root body main {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
/* Content width on wide screens v1 end */

/* SiteForge navigation delivery guard v2 */
.site-header,
.site-header > .container {
    overflow: visible !important;
}

.sf-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    width: min(100% - 2rem, var(--container-max, 1200px));
    margin: 1rem auto;
    color: var(--text-muted, #667085);
    font-size: 0.875rem;
    line-height: 1.5;
}

.sf-breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.sf-breadcrumbs a:hover,
.sf-breadcrumbs a:focus-visible {
    color: var(--color-primary, #0f766e);
    text-decoration: underline;
}

.sf-breadcrumbs__separator {
    opacity: 0.65;
}

@media (min-width: 860px) {
    .site-nav {
        display: block !important;
    }

    .site-nav__toggle,
    .mobile-menu {
        display: none !important;
    }

    .site-nav__item--has-dropdown,
    .site-nav__item--has-submenu {
        position: relative;
    }

    .nav-dropdown-menu::before,
    .mega-menu::before {
        position: absolute;
        top: -18px;
        right: 0;
        left: 0;
        height: 18px;
        content: '';
    }

    .site-nav__item--has-dropdown:hover > .nav-dropdown-menu,
    .site-nav__item--has-dropdown:focus-within > .nav-dropdown-menu,
    .site-nav__item--has-dropdown.is-open > .nav-dropdown-menu,
    .site-nav__item--has-submenu:hover > .mega-menu,
    .site-nav__item--has-submenu:focus-within > .mega-menu,
    .site-nav__item--has-submenu.is-open > .mega-menu,
    .nav-dropdown-menu.is-active,
    .mega-menu.is-active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
}

@media (max-width: 859px) {
    .site-nav {
        display: none !important;
    }

    /* Centring alone packed the burger bars into one thick dash; the gap keeps them apart. */
    .site-nav__toggle,
    .site-nav--mobile-toggle,
    [data-sf-menu-toggle] {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 4px;
        flex-shrink: 0;
    }

    /* The site name gives way on a narrow phone, so the menu button never leaves the screen. */
    header a:has(> [data-sf-brand-wordmark]) {
        min-width: 0;
        flex-shrink: 1;
        overflow: hidden;
    }

    [data-sf-brand-wordmark] {
        display: inline-block;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: middle;
    }

    .mobile-menu,
    [data-sf-mobile-menu] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        overflow-y: auto;
        max-height: calc(100dvh - var(--header-height, 72px));
        z-index: 3200 !important;
    }

    .mobile-menu.is-open,
    [data-sf-mobile-menu].is-open {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        /* A header with backdrop-filter or transform becomes the box of this fixed panel, so top+bottom
           squeezed it to its padding (34px, one link visible). An explicit height keeps it full-screen. */
        height: calc(100dvh - var(--header-height, 72px)) !important;
        bottom: auto !important;
    }

    .mobile-menu__accordion-panel {
        display: none !important;
    }

    .mobile-menu__accordion-panel.is-open {
        display: flex !important;
    }

    body.menu-open {
        overflow: hidden !important;
    }

    .sf-breadcrumbs {
        width: min(100% - 1.25rem, var(--container-max, 1200px));
        margin-block: 0.75rem;
        font-size: 0.8125rem;
    }
}

/* SiteForge footer link index v1 */
.sf-footer-link-index,
footer a[data-author-nav] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    width: min(100% - 2rem, var(--container-max, 1200px));
    margin: 1rem auto 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(128, 128, 128, 0.25);
    font-size: 0.8rem;
    line-height: 1.5;
}

footer a[data-author-nav] {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.sf-footer-link-index a,
footer a[data-author-nav] {
    color: inherit;
    opacity: 0.75;
    text-decoration: none;
}

.sf-footer-link-index a:hover,
footer a[data-author-nav]:hover {
    opacity: 1;
    text-decoration: underline;
}

/* SiteForge nav drawer v1 */
@media (max-width: 859px) {
    .site-nav[data-sf-mobile-menu] .site-nav__list {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* SiteForge header fit v1 */
/* Nothing in the header widens the page: a closed dropdown or drawer used to make every page scroll sideways. */
.site-header,
header:has([data-sf-menu-toggle]) {
    overflow-x: clip !important;
}

/* The open menu stands in place, also when the site slides it in with its own class on another element (project 584:
   the runtime opened the panel, the site's slide class stayed off and the menu stayed beside the screen). */
[data-sf-mobile-menu].is-open {
    transform: none !important;
    translate: none !important;
}

/* Measured without motion: a dropdown caught in its slide was moved by the wrong distance. */
html[data-sf-nav-measure] [data-sf-nav-desktop],
html[data-sf-nav-measure] [data-sf-nav-desktop] * {
    transition: none !important;
}

@media (min-width: 860px) {
    [data-sf-nav-row],
    [data-sf-nav-list] {
        flex-wrap: nowrap !important;
    }

    /* The label of an item stays on one line, also a bare label beside its submenu button (project 589). */
    [data-sf-nav-list] > a,
    [data-sf-nav-list] > * > a,
    [data-sf-nav-list] > * > :first-child {
        white-space: nowrap;
    }

    html[data-sf-nav="desktop"] [data-sf-menu-toggle],
    html[data-sf-nav="compact"] [data-sf-menu-toggle] {
        display: none !important;
    }

    /* A nav that holds its items itself stays a row: the delivery guard's display: block stacked them under the
       header (project 582). */
    html[data-sf-nav="desktop"] [data-sf-nav-desktop][data-sf-nav-list],
    html[data-sf-nav="compact"] [data-sf-nav-desktop][data-sf-nav-list] {
        display: flex !important;
        align-items: center;
    }

    html[data-sf-nav="compact"] [data-sf-nav-row] {
        column-gap: 1rem !important;
    }

    html[data-sf-nav="compact"] [data-sf-nav-list] {
        column-gap: 0.5rem !important;
    }

    html[data-sf-nav="compact"] [data-sf-nav-list] > a,
    html[data-sf-nav="compact"] [data-sf-nav-list] > * > a,
    html[data-sf-nav="compact"] [data-sf-nav-list] > * > :first-child > a {
        padding-inline: 0.375rem !important;
        font-size: 0.875rem !important;
        letter-spacing: normal !important;
    }

    html[data-sf-nav="compact"] [data-sf-nav-list] > * > :first-child {
        font-size: 0.875rem !important;
    }

    html[data-sf-nav="drawer"] [data-sf-menu-toggle] {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 4px;
        flex-shrink: 0;
        visibility: visible !important;
        opacity: 1 !important;
    }

    html[data-sf-nav="drawer"] [data-sf-nav-desktop]:not([data-sf-mobile-menu]),
    html[data-sf-nav="drawer"] [data-sf-mobile-menu]:not(.is-open) {
        display: none !important;
    }

    html[data-sf-nav="drawer"] [data-sf-mobile-menu].is-open {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        z-index: 3200 !important;
    }

    html[data-sf-nav="drawer"] body.menu-open {
        overflow: hidden !important;
    }

    /* The desktop menu that is also the drawer opens as a panel under the header, its submenus open. */
    html[data-sf-nav="drawer"] [data-sf-nav-desktop][data-sf-mobile-menu].is-open {
        position: fixed !important;
        top: var(--sf-nav-top, 72px) !important;
        right: 0 !important;
        bottom: auto !important;
        left: auto !important;
        width: min(400px, 100vw) !important;
        max-width: 100vw !important;
        height: calc(100dvh - var(--sf-nav-top, 72px)) !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 1rem 1.25rem 2rem !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        transform: none !important;
        translate: none !important;
        background: var(--sf-nav-bg, #ffffff) !important;
        box-shadow: -16px 0 40px rgba(0, 0, 0, 0.3) !important;
    }

    html[data-sf-nav="drawer"] [data-sf-nav-desktop].is-open [data-sf-nav-list] {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.25rem !important;
        width: 100% !important;
    }

    html[data-sf-nav="drawer"] [data-sf-nav-desktop].is-open [data-sf-nav-list] > * {
        width: 100%;
        margin: 0 !important;
    }

    html[data-sf-nav="drawer"] [data-sf-nav-desktop].is-open [data-sf-nav-panel] {
        position: static !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        translate: none !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0.25rem 0 0.5rem !important;
        box-shadow: none !important;
    }

    html[data-sf-nav="drawer"] [data-sf-nav-desktop].is-open [data-sf-nav-panel] * {
        position: static !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        grid-template-columns: minmax(0, 1fr) !important;
        transform: none !important;
    }
}
