/* Broker alternatives — dark theme (Awards / calculators aligned) */
.bal-page {
    --bal-bg: #0b0d12;
    --bal-bg-elevated: #12151c;
    --bal-surface: rgba(255, 255, 255, 0.045);
    --bal-surface-strong: rgba(255, 255, 255, 0.07);
    --bal-border: rgba(255, 255, 255, 0.1);
    --bal-border-strong: rgba(255, 255, 255, 0.16);
    --bal-text: #f7f5f2;
    --bal-muted: rgba(240, 236, 230, 0.66);
    --bal-faint: rgba(240, 236, 230, 0.42);
    --bal-orange: #e8822a;
    --bal-orange-light: #f5a623;
    --bal-orange-soft: rgba(232, 130, 42, 0.14);
    --bal-gold: #fbc65c;
    --bal-gold-soft: rgba(251, 198, 92, 0.14);
    --bal-radius: 18px;
    --bal-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    --bal-font: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(ellipse 90% 55% at 12% -8%, rgba(232, 130, 42, 0.16), transparent 52%),
        radial-gradient(ellipse 70% 45% at 92% 8%, rgba(251, 198, 92, 0.1), transparent 48%),
        linear-gradient(180deg, #0e1118 0%, var(--bal-bg) 38%, #090b10 100%);
    color: var(--bal-text);
    font-family: var(--bal-font);
    min-height: 60vh;
    padding-bottom: 3rem;
}

.bal-page a {
    color: inherit;
    text-decoration: none;
}

/* Use the site-wide .container / --bc-container (1320px) — do not shrink it. */
.bal-page .container {
    width: 100%;
    max-width: var(--bc-container, 1320px);
    margin-left: auto;
    margin-right: auto;
}

/* —— Hero —— */
.bal-hero {
    position: relative;
    padding: calc(var(--bc-nav-height, 5.5rem) + 2rem) 0 2.5rem;
    border-bottom: 1px solid var(--bal-border);
}

.bal-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1rem;
    color: var(--bal-faint);
    font-size: 0.82rem;
}

.bal-crumbs a {
    color: var(--bal-muted);
}

.bal-crumbs a:hover {
    color: var(--bal-orange-light);
}

.bal-hero__eyebrow {
    margin: 0 0 0.5rem;
    color: var(--bal-gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bal-hero__title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: #fff;
}

.bal-hero__title span {
    color: var(--bal-orange);
}

.bal-hero__lead {
    margin: 0;
    max-width: 42rem;
    color: var(--bal-muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.bal-hero__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.15rem 0 0;
    padding: 0;
    list-style: none;
}

.bal-hero__pills li {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--bal-border);
    background: var(--bal-surface);
    color: var(--bal-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.bal-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.15rem;
}

/* Buttons on this page (override light site buttons) */
.bal-page .bc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.6rem 1.2rem;
    border-radius: 11px;
    font-weight: 700;
    font-size: 0.92rem;
    border: 1px solid transparent;
    transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.bal-page .bc-btn--primary {
    background: linear-gradient(135deg, var(--bal-orange-light), var(--bal-orange));
    color: #111 !important;
}

.bal-page .bc-btn--primary:hover {
    filter: brightness(1.05);
}

.bal-page .bc-btn--ghost {
    background: transparent;
    border-color: var(--bal-border-strong);
    color: var(--bal-text) !important;
}

.bal-page .bc-btn--ghost:hover {
    border-color: rgba(232, 130, 42, 0.45);
    background: var(--bal-orange-soft);
}

/* —— Sections —— */
.bal-body {
    padding: 2rem 0 0;
}

.bal-page > .bal-section {
    margin-top: 0;
    padding: 2rem 0 0;
}

.bal-section {
    margin: 2.25rem 0 0;
    padding: 0;
}

.bal-body > .bal-section:first-child {
    margin-top: 0;
}

.bal-section__head {
    margin-bottom: 1.15rem;
}

.bal-section__head h2,
.bal-section > h2 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.bal-section__head p,
.bal-prose {
    margin: 0;
    color: var(--bal-muted);
    max-width: 40rem;
    line-height: 1.55;
}

.bal-empty {
    margin: 1.25rem 0;
    padding: 2rem 1.25rem;
    text-align: center;
    border-radius: var(--bal-radius);
    border: 1px dashed var(--bal-border);
    background: var(--bal-surface);
    color: var(--bal-muted);
}

.bal-empty__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1rem;
}

/* —— Index source cards —— */
.bal-source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.bal-source-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.15rem 1.2rem 1.25rem;
    border-radius: var(--bal-radius);
    border: 1px solid var(--bal-border);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(18, 21, 28, 0.92));
    box-shadow: var(--bal-shadow);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.bal-source-card:hover {
    border-color: rgba(232, 130, 42, 0.4);
    transform: translateY(-2px);
}

.bal-source-card__logo {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 0.85rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    overflow: hidden;
    flex-shrink: 0;
    box-sizing: border-box;
    border: 1px solid rgba(232, 130, 42, 0.18);
}

.bal-source-card__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.bal-source-card__logo span {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--bal-orange);
    line-height: 1;
}

.bal-source-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.bal-source-card__body strong {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.bal-source-card__body span {
    color: var(--bal-faint);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bal-source-card__cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    background: var(--bal-orange-soft);
    border: 1px solid rgba(232, 130, 42, 0.35);
    color: var(--bal-orange-light);
    font-weight: 700;
    font-size: 0.9rem;
}

.bal-source-card:hover .bal-source-card__cta {
    background: linear-gradient(135deg, var(--bal-orange-light), var(--bal-orange));
    color: #111;
    border-color: transparent;
}

/* —— Recommended alternatives grid —— */
.bal-card-list,
.bal-alt-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
}

@media (min-width: 900px) {
    .bal-card-list,
    .bal-alt-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 640px) and (max-width: 899px) {
    .bal-card-list,
    .bal-alt-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Premium alternative cards (award-style) */
.bal-alt-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.15rem 1.15rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(232, 130, 42, 0.22);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(14, 16, 22, 0.96)),
        #12151c;
    box-shadow:
        0 0 0 1px rgba(232, 130, 42, 0.06),
        0 20px 50px rgba(0, 0, 0, 0.4);
}

.bal-alt-card.is-top-pick {
    border-color: rgba(232, 130, 42, 0.42);
    box-shadow:
        0 0 0 1px rgba(232, 130, 42, 0.16),
        0 22px 55px rgba(0, 0, 0, 0.45);
}

.bal-alt-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 1.7rem;
}

.bal-alt-card__rank {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.65rem;
    border-radius: 8px;
    background: var(--bal-gold);
    color: #19140a;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bal-alt-card.is-top-pick .bal-alt-card__rank {
    background: linear-gradient(135deg, var(--bal-orange-light), var(--bal-orange));
    color: #111;
}

.bal-alt-card__rank strong {
    font-weight: 900;
}

.bal-alt-card__trust-label {
    color: var(--bal-faint);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: right;
}

.bal-alt-card__identity {
    display: grid;
    grid-template-columns: 3.6rem minmax(0, 1fr) 3.45rem;
    column-gap: 0.75rem;
    align-items: center;
    min-height: 3.6rem;
}

.bal-alt-card__logo {
    width: 3.6rem;
    height: 3.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(232, 130, 42, 0.18);
    border-radius: 0.85rem;
    flex-shrink: 0;
    box-sizing: border-box;
}

.bal-alt-card__logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.bal-alt-card__logo span {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--bal-orange);
    line-height: 1;
}

.bal-alt-card__name-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bal-alt-card__name {
    display: block;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 800;
    color: var(--bal-text);
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bal-alt-card__name:hover {
    color: var(--bal-gold);
}

.bal-alt-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #93c5fd;
    font-size: 0.68rem;
    font-weight: 700;
    width: fit-content;
}

.bal-alt-card__badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #60a5fa;
    flex-shrink: 0;
}

.bal-alt-card__badge--muted {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--bal-border);
    color: var(--bal-muted);
}

.bal-alt-card__badge--muted::before {
    background: var(--bal-faint);
}

.bal-alt-card__rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 3.45rem;
    height: 3.45rem;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #17191f 0 62%, transparent 63%),
        conic-gradient(var(--bal-orange) var(--bal-rating, 0%), rgba(255, 255, 255, 0.1) 0);
    box-shadow: 0 0 0 4px rgba(232, 130, 42, 0.07);
    justify-self: end;
    align-self: center;
    flex-shrink: 0;
    text-align: center;
    line-height: 1;
}

.bal-alt-card__rating--empty {
    visibility: hidden;
    background: none;
    box-shadow: none;
}

.bal-alt-card__rating strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    color: var(--bal-text);
}

.bal-alt-card__rating span {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.55rem;
    color: var(--bal-faint);
    font-weight: 600;
    line-height: 1;
}

.bal-alt-card__summary {
    margin: 0;
    color: var(--bal-muted);
    font-size: 0.88rem;
    line-height: 1.45;
    min-height: 3.9em;
}

.bal-alt-card__facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
    margin: 0;
}

.bal-alt-card__facts > div {
    padding: 0.55rem 0.45rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.bal-alt-card__facts dt {
    margin: 0 0 0.2rem;
    color: var(--bal-faint);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bal-alt-card__facts dd {
    margin: 0;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bal-alt-card__regulation {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0;
    color: var(--bal-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.bal-alt-card__regulation svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--bal-orange);
    margin-top: 0.1rem;
}

.bal-alt-card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin-top: auto;
}

.bal-alt-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 42px;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

.bal-alt-card__btn--review {
    border: 1px solid var(--bal-border-strong);
    background: rgba(0, 0, 0, 0.25);
    color: var(--bal-text);
}

.bal-alt-card__btn--review:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
}

.bal-alt-card__btn--visit {
    background: linear-gradient(135deg, var(--bal-orange-light), var(--bal-orange));
    color: #111;
}

.bal-alt-card__btn--visit:hover {
    filter: brightness(1.06);
}

.bal-alt-card__btn--visit svg {
    width: 14px;
    height: 14px;
}

.bal-alt-card__risk {
    margin: 0.15rem 0 0;
    text-align: center;
    color: var(--bal-faint);
    font-size: 0.65rem;
}

/* —— Comparison table —— */
.bal-table-scroll {
    overflow-x: auto;
    border-radius: var(--bal-radius);
    border: 1px solid var(--bal-border);
    background: rgba(0, 0, 0, 0.28);
}

.bal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.bal-table th,
.bal-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--bal-border);
    text-align: left;
    font-size: 0.9rem;
    vertical-align: top;
}

.bal-table thead th {
    color: var(--bal-faint);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.03);
}

.bal-table tbody th {
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.bal-table td {
    color: var(--bal-muted);
}

.bal-table tr:last-child th,
.bal-table tr:last-child td {
    border-bottom: 0;
}

.bal-cta-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.bal-cta-chip {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--bal-border);
    background: var(--bal-surface);
}

.bal-cta-chip strong {
    color: #fff;
    font-size: 0.95rem;
}

.bal-cta-chip a {
    color: var(--bal-orange-light);
    font-size: 0.85rem;
    font-weight: 600;
}

.bal-cta-chip a:hover {
    text-decoration: underline;
}

/* —— FAQ —— */
.bal-faq {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.bal-faq__item {
    border-radius: 12px;
    border: 1px solid var(--bal-border);
    background: var(--bal-surface);
    padding: 0 1rem;
}

.bal-faq__item summary {
    cursor: pointer;
    padding: 0.95rem 0;
    font-weight: 700;
    color: #fff;
    list-style: none;
}

.bal-faq__item summary::-webkit-details-marker {
    display: none;
}

.bal-faq__item summary::after {
    content: "+";
    float: right;
    color: var(--bal-orange);
    font-weight: 800;
}

.bal-faq__item[open] summary::after {
    content: "−";
}

.bal-faq__item p {
    margin: 0 0 1rem;
    color: var(--bal-muted);
    line-height: 1.55;
    padding-right: 1.5rem;
}

@media (max-width: 520px) {
    .bal-alt-card__actions {
        grid-template-columns: 1fr;
    }

    .bal-alt-card__facts {
        grid-template-columns: 1fr;
    }
}
