/*
Theme Name: BerryQuartz
Theme URI: https://berryquartz.com
Author: BerryQuartz
Description: Financial platform comparison and research theme: broker directory, reviews, side-by-side comparison, rules-based Finder and guides. All data is edited in wp-admin.
Version: 2.0.0
Requires PHP: 7.4
Requires at least: 6.3
License: GPL-2.0-or-later
Text Domain: berryquartz
*/

/* ==========================================================================
   Design tokens — ported 1:1 from app/globals.css + tailwind.config.ts
   Colors are HSL triplets (no hsl() wrapper) so they can be composed with
   an alpha channel later, exactly like the Next.js version does.
   ========================================================================== */

:root {
  --background: 60 20% 98%;
  --foreground: 213 24% 9%;
  --card: 0 0% 100%;
  --card-foreground: 213 24% 9%;
  --primary: 168 82% 32%;
  --primary-foreground: 0 0% 100%;
  --secondary: 80 8% 95%;
  --secondary-foreground: 213 24% 9%;
  --muted: 80 8% 95%;
  --muted-foreground: 216 10% 40%;
  --accent: 168 60% 93%;
  --accent-foreground: 168 82% 26%;
  --destructive: 6 63% 45%;
  --destructive-foreground: 0 0% 100%;
  --border: 80 8% 90%;
  --input: 80 8% 90%;
  --ring: 168 82% 32%;
  --radius: 0.875rem;

  /* BerryQuartz brand tokens */
  --bq-navy: 209 55% 14%;
  --bq-navy-light: 209 50% 20%;
  --bq-teal: 168 82% 32%;
  --bq-teal-dark: 169 82% 26%;
  --bq-teal-tint: 168 60% 93%;
  --bq-gold: 40 58% 45%;
  --bq-yes: 150 60% 30%;
  --bq-no: 6 63% 42%;
  --bq-warn: 38 90% 94%;
  --bq-warn-fg: 30 80% 25%;

  --shadow-bq-sm: 0 1px 2px rgba(16, 20, 24, 0.04);
  --shadow-bq: 0 8px 28px -8px rgba(16, 20, 24, 0.10);
  --shadow-bq-lg: 0 24px 60px -16px rgba(16, 20, 24, 0.18);
}

.dark {
  --background: 216 26% 6%;
  --foreground: 210 30% 94%;
  --card: 213 22% 9%;
  --card-foreground: 210 30% 94%;
  --primary: 168 60% 47%;
  --primary-foreground: 213 24% 9%;
  --secondary: 213 18% 11%;
  --secondary-foreground: 210 30% 94%;
  --muted: 213 18% 11%;
  --muted-foreground: 216 12% 62%;
  --accent: 169 45% 12%;
  --accent-foreground: 168 60% 55%;
  --border: 213 16% 16%;
  --input: 213 16% 16%;
  --ring: 168 60% 47%;

  --bq-navy: 209 55% 14%;
  --bq-navy-light: 209 50% 20%;
  --bq-teal: 168 60% 47%;
  --bq-teal-dark: 169 60% 40%;
  --bq-teal-tint: 169 45% 12%;
  --bq-gold: 42 60% 55%;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: hsl(var(--background)); color: hsl(var(--foreground)); font-family: var(--font-inter), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--font-sora), var(--font-inter), sans-serif; letter-spacing: -0.02em; margin: 0; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid hsl(var(--bq-teal)); outline-offset: 2px; border-radius: 4px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .container { padding: 0 1.75rem; } }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; background: #fff; padding: .75rem 1rem; top: .5rem; left: .5rem; z-index: 100; }
.muted { color: hsl(var(--muted-foreground)); }

/* ==========================================================================
   Buttons, badges, small components
   ========================================================================== */
.bq-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: calc(var(--radius) - 2px); padding: .65rem 1.2rem; min-height: 44px; font: 600 14px/1.2 var(--font-inter), sans-serif; border: 1px solid transparent; cursor: pointer; text-align: center; transition: background-color .15s, color .15s, border-color .15s; }
.bq-btn-lg { padding: .85rem 1.6rem; font-size: 15px; }
.bq-btn-sm { padding: .45rem .9rem; min-height: 36px; font-size: 13px; }
.bq-btn-block { display: flex; width: 100%; }
.bq-btn-primary { background: hsl(var(--bq-teal-dark)); color: #fff; }
.bq-btn-primary:hover { background: hsl(var(--bq-navy)); }
.bq-btn-outline { background: hsl(var(--card)); border-color: hsl(var(--border)); color: hsl(var(--foreground)); }
.bq-btn-outline:hover { border-color: hsl(var(--bq-teal-dark)); color: hsl(var(--bq-teal-dark)); }
.bq-btn-ghost { background: transparent; border-color: hsl(var(--bq-navy) / .25); color: hsl(var(--bq-navy)); }
.bq-btn-ghost:hover { border-color: hsl(var(--bq-navy)); }
.bq-cta-note { display: block; font-size: 11.5px; color: hsl(var(--muted-foreground)); text-align: center; margin-top: .3rem; }
.bq-link { color: hsl(var(--bq-teal-dark)); font-weight: 600; border-bottom: 1px solid currentColor; }
.bq-link--light { color: #fff; }
.bq-card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); box-shadow: var(--shadow-bq-sm); }
.bq-badge { display: inline-flex; align-items: center; border-radius: 999px; background: hsl(var(--bq-teal-tint)); color: hsl(var(--bq-teal-dark)); font-size: 12px; font-weight: 700; padding: .2rem .65rem; }
.bq-score-pill { display: inline-flex; align-items: center; gap: .4rem; border-radius: 999px; background: hsl(var(--bq-navy)); color: #fff; font-size: 14px; font-weight: 700; padding: .25rem .8rem; white-space: nowrap; }
.bq-score-pill--none { background: hsl(var(--secondary)); color: hsl(var(--muted-foreground)); font-weight: 600; font-size: 12px; }
.bq-stars { color: hsl(var(--bq-gold)); letter-spacing: 1px; font-size: 14px; }
.bq-na { color: hsl(var(--muted-foreground)); font-style: italic; font-size: .92em; }
.bq-na-block { color: hsl(var(--muted-foreground)); font-style: italic; }
.bq-yes { color: hsl(var(--bq-yes)); font-weight: 600; }
.bq-no { color: hsl(var(--bq-no)); font-weight: 600; }
.bq-level { font-weight: 600; font-size: .92em; }
.bq-level--strong { color: hsl(var(--bq-yes)); }
.bq-level--partial { color: hsl(var(--bq-gold)); }
.bq-level--limited { color: hsl(var(--bq-no)); }
.bq-cell-num { font-weight: 700; margin-left: .25rem; }
.bq-note { margin-top: 1.25rem; font-size: 13px; line-height: 1.55; color: hsl(var(--muted-foreground)); max-width: 80ch; }
.bq-note--top { margin: 0 0 1rem; }
.bq-help { font-size: 12.5px; color: hsl(var(--muted-foreground)); margin-top: .4rem; }
.bq-alert { background: hsl(var(--accent)); border: 1px solid hsl(var(--bq-teal) / .35); border-radius: var(--radius); padding: .85rem 1rem; margin-bottom: 1.25rem; font-size: 14.5px; }
.bq-alert--warn { background: hsl(var(--bq-warn)); border-color: hsl(var(--bq-gold) / .5); color: hsl(var(--bq-warn-fg)); margin-top: 1rem; }
.bq-empty { border: 1px dashed hsl(var(--border)); border-radius: var(--radius); padding: 2rem 1.25rem; text-align: center; color: hsl(var(--muted-foreground)); display: grid; gap: .6rem; justify-items: center; }
.bq-empty strong { color: hsl(var(--foreground)); }
.bq-logo-img { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; background: #fff; border: 1px solid hsl(var(--border)); padding: 4px; flex-shrink: 0; }
.bq-logo-img--sm { width: 40px; height: 40px; border-radius: 9px; }
.bq-logo-img--lg { width: 72px; height: 72px; border-radius: 16px; }
.bq-logo-fallback { display: inline-flex; align-items: center; justify-content: center; background: hsl(var(--bq-navy)); color: #fff; font: 700 17px var(--font-sora), sans-serif; border: 0; }
.bq-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; font-size: 13px; color: hsl(var(--muted-foreground)); margin-bottom: .9rem; }
.bq-breadcrumbs li + li::before { content: "/"; margin-right: .25rem; opacity: .6; }
.bq-breadcrumbs a:hover { color: hsl(var(--bq-teal-dark)); text-decoration: underline; }
.bq-details { border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: .85rem 1rem; margin-top: 1.25rem; background: hsl(var(--card)); }
.bq-details summary { cursor: pointer; font-weight: 600; }
.bq-details ul { margin: .75rem 0 0 1.1rem; display: grid; gap: .45rem; font-size: 14px; color: hsl(var(--muted-foreground)); }
.bq-pills { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.bq-pills a { display: inline-block; padding: .4rem .9rem; border: 1px solid hsl(var(--border)); border-radius: 999px; font-size: 13.5px; font-weight: 600; background: hsl(var(--card)); }
.bq-pills a[aria-current="page"], .bq-pills a:hover { background: hsl(var(--bq-navy)); color: #fff; border-color: hsl(var(--bq-navy)); }
.bq-linklist { list-style: none; display: grid; gap: .5rem; }
.bq-linklist a { color: hsl(var(--bq-teal-dark)); font-weight: 600; }
.bq-linklist a:hover { text-decoration: underline; }
.bq-h3 { font-size: 20px; margin: 2rem 0 1rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.bq-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--background) / .92); backdrop-filter: blur(14px); }
.admin-bar .bq-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .bq-header { top: 46px; } }
.bq-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; }
.bq-logo { display: flex; align-items: center; gap: .6rem; font: 700 19px var(--font-sora), sans-serif; flex-shrink: 0; }
.bq-logo__mark { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, hsl(var(--bq-teal)), hsl(var(--bq-navy))); }
.bq-logo__accent { color: hsl(var(--bq-teal-dark)); }
.bq-logo .custom-logo { max-height: 40px; width: auto; }
.bq-nav-toggle { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1px solid hsl(var(--border)); border-radius: 10px; cursor: pointer; }
.bq-nav-toggle__bars, .bq-nav-toggle__bars::before, .bq-nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: hsl(var(--foreground)); border-radius: 2px; content: ""; position: relative; }
.bq-nav-toggle__bars::before { position: absolute; top: -6px; }
.bq-nav-toggle__bars::after { position: absolute; top: 6px; }
.bq-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: hsl(var(--background)); border-bottom: 1px solid hsl(var(--border)); padding: .75rem 1.25rem 1.25rem; flex-direction: column; gap: .25rem; font-size: 15px; font-weight: 600; box-shadow: var(--shadow-bq); }
.bq-nav.is-open { display: flex; }
.bq-nav a { padding: .65rem .25rem; }
.bq-nav a:hover { color: hsl(var(--bq-teal-dark)); }
.bq-nav .bq-nav__cta { margin-top: .5rem; color: #fff; }
.bq-nav .bq-nav__cta:hover { color: #fff; }
@media (min-width: 960px) {
  .bq-nav-toggle { display: none; }
  .bq-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 1.5rem; padding: 0; border: 0; box-shadow: none; background: transparent; font-size: 14px; }
  .bq-nav a { padding: 0; }
  .bq-nav .bq-nav__cta { margin: 0; padding: .55rem 1.1rem; min-height: 40px; }
}

/* ==========================================================================
   Page heads + sections
   ========================================================================== */
.bq-page-head { padding: 2rem 0 1.5rem; border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--card)); }
.bq-page-head h1 { font-size: 30px; }
@media (min-width: 768px) { .bq-page-head h1 { font-size: 40px; } }
.bq-page-head__lead { margin-top: .75rem; max-width: 70ch; color: hsl(var(--muted-foreground)); font-size: 17px; }
.bq-page-head__meta { margin-top: .6rem; font-size: 13.5px; color: hsl(var(--muted-foreground)); }
.bq-section { padding: 3.5rem 0; }
@media (min-width: 1024px) { .bq-section { padding: 5rem 0; } }
.bq-section--tight { padding: 2rem 0 3.5rem; }
.bq-section--tinted { background: hsl(var(--secondary)); }
.bq-section--navy { background: hsl(var(--bq-navy)); color: #fff; }
.bq-section--navy p { color: hsl(0 0% 100% / .8); margin-top: .85rem; max-width: 62ch; }
.bq-section--navy h2 { color: #fff; font-size: 26px; }
.bq-section__head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .bq-section__head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.bq-section__head--stack { display: block; }
.bq-section__head h2 { font-size: 26px; }
@media (min-width: 768px) { .bq-section__head h2 { font-size: 32px; } }
.bq-section__head p { margin-top: .5rem; color: hsl(var(--muted-foreground)); max-width: 62ch; }
.bq-split { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .bq-split { grid-template-columns: 1.2fr .8fr; gap: 4rem; } .bq-split--center { align-items: center; } }
.bq-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .bq-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bq-grid { grid-template-columns: repeat(3, 1fr); } }
.bq-feature-card { padding: 1.5rem; }
.bq-feature-card h3 { font-size: 17px; margin-bottom: .5rem; }
.bq-feature-card p { color: hsl(var(--muted-foreground)); font-size: 15px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.bq-hero { padding: 3rem 0; background: linear-gradient(180deg, hsl(var(--bq-teal-tint)) 0%, hsl(var(--background)) 100%); border-bottom: 1px solid hsl(var(--border)); }
@media (min-width: 1024px) { .bq-hero { padding: 5rem 0; } }
.bq-hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .bq-hero__grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; } }
.bq-hero h1 { font-size: 34px; line-height: 1.1; color: hsl(var(--bq-navy)); }
@media (min-width: 640px) { .bq-hero h1 { font-size: 44px; } }
@media (min-width: 1024px) { .bq-hero h1 { font-size: 52px; } }
.bq-hero__desc { margin-top: 1.1rem; max-width: 52ch; font-size: 17.5px; color: hsl(var(--muted-foreground)); }
.bq-hero__ctas { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.bq-hero__trust { margin: 2rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: 13.5px; color: hsl(var(--muted-foreground)); }
.bq-hero__trust li::before { content: "✓"; color: hsl(var(--bq-teal-dark)); font-weight: 700; margin-right: .4rem; }
.bq-quick { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) + 4px); padding: 1.5rem; box-shadow: var(--shadow-bq-lg); display: grid; gap: 1rem; }
.bq-quick__title { font-size: 18px; }
.bq-quick__note { font-size: 12.5px; color: hsl(var(--muted-foreground)); text-align: center; }

/* ==========================================================================
   Forms
   ========================================================================== */
.bq-field-group { display: grid; gap: .35rem; min-width: 0; }
.bq-field-group--grow { flex: 1 1 220px; }
.bq-field-group label { font-size: 12.5px; font-weight: 700; color: hsl(var(--muted-foreground)); }
select, input[type="search"], input[type="number"], input[type="text"], input[type="email"] { width: 100%; min-height: 44px; padding: .55rem .8rem; border: 1px solid hsl(var(--input)); border-radius: calc(var(--radius) - 4px); background: hsl(var(--card)); color: hsl(var(--foreground)); font: 15px var(--font-inter), sans-serif; }
select:focus, input:focus { border-color: hsl(var(--bq-teal-dark)); }
.bq-filters { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.5rem; }
.bq-filters:not([hidden]) { display: block; }
.bq-filters__row { display: grid; gap: .85rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bq-filters__row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bq-filters__row { grid-template-columns: 1.4fr repeat(5, 1fr); } }
.bq-filters__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .85rem; flex-wrap: wrap; }
.bq-filters__count { font-size: 13.5px; color: hsl(var(--muted-foreground)); }
.bq-compare-form { display: grid; gap: .85rem; grid-template-columns: 1fr; align-items: end; margin-bottom: 2rem; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 1rem; }
@media (min-width: 800px) { .bq-compare-form { grid-template-columns: repeat(3, 1fr) auto; } }

/* ==========================================================================
   Broker cards
   ========================================================================== */
.bq-card-list { display: grid; gap: 1rem; }
.bq-card-list [hidden] { display: none !important; }
.bq-broker-card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: 1rem; box-shadow: var(--shadow-bq-sm); }
.bq-broker-card__head { display: grid; grid-template-columns: auto 1fr; gap: .85rem 1rem; align-items: center; }
.bq-broker-card__title h2, .bq-broker-card__title h3, .bq-broker-card__title h4 { font-size: 19px; }
.bq-broker-card__title a:hover { color: hsl(var(--bq-teal-dark)); }
.bq-broker-card__tagline { font-size: 14px; color: hsl(var(--muted-foreground)); margin-top: .15rem; }
.bq-broker-card__score { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.bq-broker-card__score-label { font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.bq-match { background: hsl(var(--bq-teal-tint)); color: hsl(var(--bq-teal-dark)); border-radius: 999px; padding: .2rem .75rem; font-size: 13px; }
@media (min-width: 760px) {
  .bq-broker-card { grid-template-columns: 1fr; padding: 1.5rem; }
  .bq-broker-card__head { grid-template-columns: auto 1fr auto; }
  .bq-broker-card__score { grid-column: auto; flex-direction: column; align-items: flex-end; gap: .25rem; }
}
.bq-facts { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem 1rem; }
@media (min-width: 760px) { .bq-facts { grid-template-columns: repeat(4, 1fr); } }
.bq-facts dt { font-size: 12px; font-weight: 700; color: hsl(var(--muted-foreground)); }
.bq-facts dd { margin: .1rem 0 0; font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.bq-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.bq-chips li { background: hsl(var(--secondary)); border-radius: 999px; padding: .15rem .65rem; font-size: 12.5px; font-weight: 600; }
.bq-broker-card__suits { font-size: 14px; color: hsl(var(--muted-foreground)); }
.bq-broker-card__suits strong { color: hsl(var(--foreground)); }
.bq-broker-card__actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-start; }
.bq-broker-card__actions > * { flex: 1 1 140px; }
@media (min-width: 760px) { .bq-broker-card__actions > * { flex: 0 0 auto; } }
.bq-broker-card__actions .bq-cta-note { flex-basis: 100%; }
.bq-compare-check { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.bq-compare-check span { border: 1px dashed hsl(var(--bq-teal-dark) / .6); border-radius: calc(var(--radius) - 4px); padding: .55rem .9rem; color: hsl(var(--bq-teal-dark)); }
.bq-compare-check input:checked + span { background: hsl(var(--bq-teal-dark)); border-style: solid; color: #fff; }
.bq-compare-check:focus-within span { outline: 3px solid hsl(var(--bq-teal)); outline-offset: 2px; }
.bq-compare-check input[hidden] { display: none; }
html:not(.bq-js) .bq-compare-check { display: none; }
.bq-why { background: hsl(var(--secondary)); border-radius: calc(var(--radius) - 4px); padding: .85rem 1rem; display: grid; gap: .5rem; font-size: 13.5px; }
.bq-why__title { font-weight: 700; font-size: 12.5px; color: hsl(var(--bq-teal-dark)); }
.bq-why__title--flag { color: hsl(var(--bq-warn-fg)); }
.bq-why__list { margin: 0 0 0 1.1rem; display: grid; gap: .2rem; }
.bq-compare-tray { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; background: hsl(var(--bq-navy)); color: #fff; padding: .85rem 0; box-shadow: 0 -8px 24px rgba(0,0,0,.18); }
.bq-compare-tray[hidden] { display: none; }
.bq-compare-tray__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.bq-compare-tray p { font-size: 14px; }
.bq-compare-tray .bq-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ==========================================================================
   Comparison table
   ========================================================================== */
.bq-compare-wrap { overflow-x: auto; border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--card)); -webkit-overflow-scrolling: touch; }
.bq-compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 14.5px; }
.bq-compare th, .bq-compare td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid hsl(var(--border)); vertical-align: top; }
.bq-compare tbody th[scope="row"] { font-weight: 600; width: 200px; color: hsl(var(--muted-foreground)); background: hsl(var(--card)); position: sticky; left: 0; z-index: 1; }
.bq-compare__broker { min-width: 190px; font-family: var(--font-sora), sans-serif; display: table-cell; }
.bq-compare__broker .bq-logo-img { margin-bottom: .5rem; }
.bq-compare__name { display: block; font-size: 17px; font-weight: 700; margin-bottom: .4rem; }
.bq-compare__name:hover { color: hsl(var(--bq-teal-dark)); }
.bq-compare__group th { background: hsl(var(--secondary)); font-size: 13px; font-weight: 700; color: hsl(var(--bq-navy)); position: static; }
.bq-compare__cta { display: table-cell; }
.bq-compare__cta .bq-btn { margin: 0 .35rem .35rem 0; }

/* ==========================================================================
   Finder
   ========================================================================== */
.bq-finder-layout { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .bq-finder-layout { grid-template-columns: 380px 1fr; align-items: start; } .bq-finder { position: sticky; top: 90px; } .bq-finder-layout > .bq-empty:first-child, .bq-finder-layout > .bq-note, .bq-finder-layout > .bq-rules { grid-column: 1 / -1; } }
.bq-finder { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: 1.25rem; }
.bq-q { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: .5rem; }
.bq-q legend { font: 700 15px var(--font-sora), sans-serif; padding: 0; margin-bottom: .5rem; }
.bq-choice { display: flex; align-items: center; gap: .6rem; min-height: 40px; padding: .35rem .7rem; border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 4px); cursor: pointer; font-size: 14.5px; }
.bq-choice:hover { border-color: hsl(var(--bq-teal-dark)); }
.bq-choice input { accent-color: hsl(var(--bq-teal-dark)); width: 18px; height: 18px; flex-shrink: 0; }
.bq-choice:has(input:checked) { background: hsl(var(--bq-teal-tint)); border-color: hsl(var(--bq-teal-dark)); }
.bq-choice-grid { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.bq-amount { display: flex; align-items: center; gap: .5rem; }
.bq-amount__cur { font-weight: 700; }
.bq-finder__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.bq-finder__actions .bq-btn { flex: 1 1 auto; }
.bq-finder-results h2 { font-size: 24px; margin-bottom: 1rem; }
.bq-rules { margin-top: 0; }

/* ==========================================================================
   Home extras
   ========================================================================== */
.bq-steps { list-style: none; display: grid; gap: 1.25rem; counter-reset: s; margin-bottom: 1.5rem; }
.bq-steps li { counter-increment: s; padding-left: 3rem; position: relative; }
.bq-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: hsl(var(--bq-teal-dark)); color: #fff; font: 700 14px var(--font-sora), sans-serif; display: grid; place-items: center; }
.bq-steps h3 { font-size: 17px; }
.bq-steps p { color: hsl(var(--muted-foreground)); font-size: 15px; margin-top: .2rem; }
.bq-weights-card { padding: 1.5rem; align-self: start; }
.bq-weights-card h3 { margin-bottom: 1rem; font-size: 18px; }
.bq-pairs { list-style: none; display: grid; gap: .85rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .bq-pairs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bq-pairs { grid-template-columns: repeat(3, 1fr); } }
.bq-pair { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.15rem; min-height: 64px; }
.bq-pair:hover { border-color: hsl(var(--bq-teal-dark)); }
.bq-pair__logos { display: flex; }
.bq-pair__logos .bq-logo-img + .bq-logo-img { margin-left: -10px; }
.bq-pair__label { font-weight: 700; font-size: 15px; }
.bq-pair__vs { color: hsl(var(--muted-foreground)); font-weight: 500; margin: 0 .15rem; }
.bq-cta-box { background: hsl(0 0% 100% / .08); border: 1px solid hsl(0 0% 100% / .18); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .75rem; justify-items: start; }
.bq-cta-box h3 { color: #fff; font-size: 20px; }
.bq-cta-box p { margin: 0; }
.bq-guide-card { overflow: hidden; display: flex; flex-direction: column; }
.bq-guide-card__img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.bq-guide-card__body { padding: 1.25rem; display: grid; gap: .6rem; align-content: start; }
.bq-guide-card h3 { font-size: 18px; }
.bq-guide-card h3 a:hover { color: hsl(var(--bq-teal-dark)); }
.bq-guide-card p { font-size: 14.5px; color: hsl(var(--muted-foreground)); }
.bq-guide-card__meta { font-size: 12.5px !important; }
.bq-pagination { margin-top: 2rem; }
.bq-pagination .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.bq-pagination .page-numbers { padding: .45rem .85rem; border: 1px solid hsl(var(--border)); border-radius: 8px; font-weight: 600; background: hsl(var(--card)); }
.bq-pagination .current { background: hsl(var(--bq-navy)); color: #fff; border-color: hsl(var(--bq-navy)); }

/* ==========================================================================
   Tables
   ========================================================================== */
.bq-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.bq-table th, .bq-table td { padding: .65rem .5rem; text-align: left; border-bottom: 1px solid hsl(var(--border)); vertical-align: top; }
.bq-table thead th { font-size: 12.5px; color: hsl(var(--muted-foreground)); }
.bq-table--plain tbody th { font-weight: 600; }

/* ==========================================================================
   Review page
   ========================================================================== */
.bq-review-hero { background: linear-gradient(180deg, hsl(var(--bq-teal-tint)), hsl(var(--background))); border-bottom: 1px solid hsl(var(--border)); padding: 1.75rem 0 2.25rem; }
.bq-review-hero__grid { display: grid; gap: 1.75rem; }
@media (min-width: 900px) { .bq-review-hero__grid { grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; } }
.bq-review-hero__top { display: flex; align-items: center; gap: 1rem; }
.bq-review-hero h1 { font-size: 28px; }
@media (min-width: 768px) { .bq-review-hero h1 { font-size: 38px; } }
.bq-review-hero__tagline { margin-top: .3rem; color: hsl(var(--muted-foreground)); font-size: 17px; }
.bq-review-hero__summary { margin-top: 1.1rem; max-width: 62ch; font-size: 16.5px; }
.bq-review-hero__meta { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: 13.5px; color: hsl(var(--muted-foreground)); }
.bq-review-hero__panel { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-bq); display: grid; gap: .5rem; }
.bq-review-hero__score { font: 700 16px var(--font-sora), sans-serif; color: hsl(var(--muted-foreground)); }
.bq-review-hero__score-num { font-size: 48px; color: hsl(var(--bq-navy)); line-height: 1; }
.bq-review-hero__score-none { font: 700 17px var(--font-sora), sans-serif; }
.bq-review-hero__score-label { font-size: 13px; color: hsl(var(--muted-foreground)); }
.bq-review-hero__score-label a { text-decoration: underline; }
.bq-review-hero__cta { margin-top: .5rem; display: grid; }
.bq-review-layout { display: grid; gap: 2rem; padding-top: 2rem; padding-bottom: 4rem; }
@media (min-width: 1000px) { .bq-review-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 3rem; } .bq-toc { position: sticky; top: 90px; align-self: start; } }
.bq-toc__title { font-size: 12.5px; font-weight: 700; color: hsl(var(--muted-foreground)); margin-bottom: .5rem; }
.bq-toc ul { list-style: none; display: grid; gap: .1rem; border-left: 2px solid hsl(var(--border)); }
.bq-toc a { display: block; padding: .3rem .85rem; font-size: 14px; color: hsl(var(--muted-foreground)); }
.bq-toc a:hover { color: hsl(var(--bq-teal-dark)); }
@media (max-width: 999px) { .bq-toc ul { display: flex; flex-wrap: wrap; gap: .4rem; border: 0; } .bq-toc a { border: 1px solid hsl(var(--border)); border-radius: 999px; padding: .3rem .8rem; background: hsl(var(--card)); } }
.bq-review-section { padding: 1.75rem 0; border-bottom: 1px solid hsl(var(--border)); scroll-margin-top: 90px; }
.bq-review-section:first-child { padding-top: 0; }
.bq-review-section:last-child { border-bottom: 0; }
.bq-review-section > h2 { font-size: 24px; margin-bottom: 1rem; }
.bq-review-section p + p, .bq-review-section p + ul { margin-top: .85rem; }
.entry-content h2 { font-size: 22px; margin: 2rem 0 .75rem; }
.entry-content h3 { font-size: 18px; margin: 1.5rem 0 .5rem; }
.entry-content p { margin-bottom: 1rem; line-height: 1.75; }
.entry-content ul, .entry-content ol { margin: 0 0 1rem 1.25rem; line-height: 1.75; }
.entry-content a { color: hsl(var(--bq-teal-dark)); text-decoration: underline; }
.entry-content img { border-radius: var(--radius); }
.entry-content table { width: 100%; display: block; overflow-x: auto; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .5rem; border: 1px solid hsl(var(--border)); }
.entry-content blockquote { margin: 1.25rem 0; padding-left: 1rem; border-left: 3px solid hsl(var(--bq-teal)); color: hsl(var(--muted-foreground)); }
.bq-keyfacts { margin: 0; display: grid; gap: .85rem 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bq-keyfacts { grid-template-columns: repeat(2, 1fr); } }
.bq-keyfacts dt { font-size: 12.5px; font-weight: 700; color: hsl(var(--muted-foreground)); }
.bq-keyfacts dd { margin: .1rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.bq-keyfacts a { color: hsl(var(--bq-teal-dark)); text-decoration: underline; }
.bq-feature-list { list-style: none; display: grid; gap: 0 2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bq-feature-list { grid-template-columns: repeat(2, 1fr); } }
.bq-feature-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid hsl(var(--border)); font-size: 15px; }
.bq-fees-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bq-fees-table th, .bq-fees-table td { padding: .7rem 0; border-bottom: 1px solid hsl(var(--border)); text-align: left; vertical-align: top; }
.bq-fees-table th { font-weight: 500; padding-right: 1rem; }
.bq-fees-table td { font-weight: 600; text-align: right; }
.bq-criteria-list { display: grid; gap: .6rem; }
.bq-criteria-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid hsl(var(--border)); font-size: 15px; flex-wrap: wrap; }
.bq-weight { color: hsl(var(--muted-foreground)); font-size: 12.5px; }
.bq-pros-cons { display: grid; gap: 1rem; }
@media (min-width: 640px) { .bq-pros-cons { grid-template-columns: 1fr 1fr; } }
.bq-pros-cons > div { border-radius: var(--radius); padding: 1.25rem; }
.bq-pros-cons .pros { background: hsl(var(--bq-teal-tint)); }
.bq-pros-cons .cons { background: hsl(var(--secondary)); }
.bq-pros-cons h3, .bq-limits h3 { font-size: 15px; margin-bottom: .6rem; }
.bq-pros-cons ul, .bq-limits ul { margin: 0 0 0 1.1rem; display: grid; gap: .4rem; font-size: 15px; }
.bq-limits { margin-top: 1rem; padding: 1.25rem; border: 1px solid hsl(var(--bq-gold) / .5); border-radius: var(--radius); background: hsl(var(--bq-warn)); }
.bq-verdict { border-left: 4px solid hsl(var(--bq-teal)); background: hsl(var(--card)); padding: 1rem 1.25rem; border-radius: 0 var(--radius) var(--radius) 0; }
.bq-verdict p + p { margin-top: .75rem; }
.bq-faq-item { padding: .9rem 0; border-bottom: 1px solid hsl(var(--border)); }
.bq-faq-item summary { font-weight: 600; cursor: pointer; }
.bq-faq-item p { margin-top: .6rem; color: hsl(var(--muted-foreground)); }
.bq-sources { margin: .5rem 0 0 1.1rem; display: grid; gap: .3rem; font-size: 14px; overflow-wrap: anywhere; }
.bq-sources a { color: hsl(var(--bq-teal-dark)); text-decoration: underline; }
.bq-review-cta { margin-top: 1.25rem; max-width: 280px; display: grid; }

/* ==========================================================================
   Prose / guides
   ========================================================================== */
.bq-prose { max-width: 760px; }
.bq-prose h1 { font-size: 32px; margin-bottom: 1rem; }
.bq-prose > h2 { font-size: 22px; margin: 2rem 0 .75rem; }
.bq-prose__hero { margin: 0 0 1.5rem; }
.bq-prose__hero img { width: 100%; border-radius: var(--radius); }
.bq-related { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid hsl(var(--border)); }
.bq-related h2 { font-size: 18px; margin-bottom: .75rem; }
.bq-widget__title { font-size: 16px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.bq-footer { background: hsl(var(--bq-navy)); color: hsl(0 0% 100% / .78); padding: 3rem 0 2rem; font-size: 14.5px; }
.bq-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .bq-footer__grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.bq-footer__brand-col { grid-column: 1 / -1; }
@media (min-width: 900px) { .bq-footer__brand-col { grid-column: auto; } }
.bq-footer__brand { font: 700 22px var(--font-sora), sans-serif; color: #fff; }
.bq-footer__brand-accent { color: hsl(var(--bq-teal)); }
.bq-footer__brand-desc { margin-top: .75rem; max-width: 36ch; }
.bq-footer__title { font: 700 13px var(--font-sora), sans-serif; color: #fff; margin-bottom: .75rem; }
.bq-footer ul { list-style: none; display: grid; gap: .5rem; }
.bq-footer a:hover { color: #fff; text-decoration: underline; }
.bq-footer__disclosure { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid hsl(0 0% 100% / .15); font-size: 13px; display: grid; gap: .6rem; max-width: 90ch; }
.bq-footer__bottom { margin-top: 1.5rem; font-size: 13px; opacity: .7; }
@media print { .bq-header, .bq-footer, .bq-compare-tray, .bq-filters { display: none; } }
