/* ==========================================================================
   B2SaaS design system (2026) — components are prefixed .b2- and scoped so the
   legacy style.css keeps working on pages that haven't been redesigned yet.
   ========================================================================== */

:root {
    --b2-brand: #a0497c;
    --b2-brand-strong: #85365f;
    --b2-brand-soft: #f7edf3;
    --b2-ink: #1d2733;
    --b2-ink-2: #3f4b59;
    --b2-muted: #6b7684;
    --b2-line: #e3e7ec;
    --b2-line-strong: #cfd6de;
    --b2-surface: #ffffff;
    --b2-canvas: #f5f7fa;
    --b2-star: #f2a516;
    --b2-good: #1f8a5b;
    --b2-radius: 12px;
    --b2-radius-sm: 8px;
    --b2-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
    --b2-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.b2-product {
    font-family: var(--b2-font);
    color: var(--b2-ink);
    background: var(--b2-canvas);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.b2-product h1, .b2-product h2, .b2-product h3, .b2-product h4 {
    font-family: var(--b2-font);
    color: var(--b2-ink);
    letter-spacing: -0.01em;
}

.b2-product a { color: var(--b2-brand); }
.b2-product a:hover, .b2-product a:focus { color: var(--b2-brand-strong); }

/* ---------- Buttons ---------- */
.b2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--b2-radius-sm);
    font: 600 15px/1 var(--b2-font);
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}
.b2-btn--primary { background: var(--b2-brand); color: #fff !important; }
.b2-btn--primary:hover, .b2-btn--primary:focus { background: var(--b2-brand-strong); color: #fff !important; }
.b2-btn--ghost { background: #fff; color: var(--b2-ink) !important; border-color: var(--b2-line-strong); }
.b2-btn--ghost:hover, .b2-btn--ghost:focus { border-color: var(--b2-ink-2); color: var(--b2-ink) !important; }
.b2-btn--block { width: 100%; }
.b2-btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }

.b2-linkbtn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--b2-muted) !important;
    font: 500 14px var(--b2-font);
    text-decoration: none !important;
    cursor: pointer;
}
.b2-linkbtn:hover, .b2-linkbtn:focus { color: var(--b2-ink) !important; text-decoration: underline !important; }

/* ---------- Hero ---------- */
.b2-hero {
    background: var(--b2-surface);
    border-bottom: 1px solid var(--b2-line);
    padding: 20px 0 24px;
}

.b2-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--b2-muted);
}
.b2-crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--b2-line-strong); }
.b2-crumbs a { color: var(--b2-muted); }
.b2-crumbs a:hover { color: var(--b2-ink); }
.b2-crumbs [aria-current] { color: var(--b2-ink-2); }

.b2-hero__main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: start;
}

.b2-logo {
    width: 104px;
    height: 104px;
    border: 1px solid var(--b2-line);
    border-radius: var(--b2-radius);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    overflow: hidden;
}
.b2-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.b2-logo--empty { font: 700 36px var(--b2-font); color: var(--b2-brand); background: var(--b2-brand-soft); }

.b2-hero h1 {
    margin: 0 0 6px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}
.b2-hero h1 small { font-size: inherit; font-weight: 400; color: var(--b2-muted); }

.b2-hero__by { margin: 0 0 14px; color: var(--b2-muted); font-size: 15px; }
.b2-hero__by strong { color: var(--b2-ink-2); font-weight: 600; }

.b2-ratings { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

.b2-score {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}
.b2-score__value {
    display: inline-flex;
    align-items: baseline;
    padding: 6px 10px;
    border-radius: var(--b2-radius-sm);
    background: var(--b2-brand);
    color: #fff;
    font: 700 18px/1 var(--b2-font);
}
.b2-score__value small { font-size: 12px; font-weight: 500; opacity: .85; margin-left: 2px; }
.b2-score__text { display: flex; flex-direction: column; line-height: 1.25; }
.b2-score__label { font-weight: 600; color: var(--b2-ink); font-size: 14px; }
.b2-score__hint { font-size: 12px; color: var(--b2-muted); }

.b2-stars {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--b2-ink-2);
}
.b2-stars__icons {
    position: relative;
    display: inline-block;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 1px;
    color: var(--b2-line-strong);
}
.b2-stars__icons::before { content: "★★★★★"; }
.b2-stars__fill {
    position: absolute;
    inset: 0 auto 0 0;
    overflow: hidden;
    white-space: nowrap;
    color: var(--b2-star);
}
.b2-stars__fill::before { content: "★★★★★"; }
.b2-stars__src { color: var(--b2-muted); }

.b2-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    min-width: 220px;
}
.b2-hero__minor { display: flex; justify-content: center; gap: 16px; }

.b2-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--b2-line);
    font-size: 13px;
    color: var(--b2-muted);
}
.b2-byline strong { color: var(--b2-ink-2); font-weight: 600; }
.b2-byline .fa { margin-right: 4px; color: var(--b2-good); }

/* ---------- Section tabs ---------- */
.b2-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--b2-surface);
    border-bottom: 1px solid var(--b2-line);
}
.b2-tabs ul {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}
.b2-tabs ul::-webkit-scrollbar { display: none; }
.b2-tabs a {
    display: block;
    padding: 14px 12px;
    border-bottom: 2px solid transparent;
    color: var(--b2-ink-2) !important;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none !important;
}
.b2-tabs a:hover { color: var(--b2-ink) !important; border-bottom-color: var(--b2-line-strong); }
.b2-tabs a.is-active { color: var(--b2-brand) !important; border-bottom-color: var(--b2-brand); }

/* ---------- Body layout ---------- */
.b2-body { padding: 24px 0 48px; }

.b2-card {
    background: var(--b2-surface);
    border: 1px solid var(--b2-line);
    border-radius: var(--b2-radius);
    box-shadow: var(--b2-shadow);
    padding: 24px 28px;
    margin-bottom: 20px;
    scroll-margin-top: 180px;
}
.b2-card > h2:first-child, .b2-card__title {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}
.b2-card h2 .fa { display: none; }

/* Long-form review text from the CMS */
.b2-prose { color: var(--b2-ink-2); font-size: 16px; line-height: 1.7; }
.b2-prose h2 { font-size: 20px; margin: 28px 0 10px; font-weight: 700; }
.b2-prose h3 { font-size: 17px; margin: 22px 0 8px; font-weight: 600; }
.b2-prose p { margin: 0 0 14px; }
.b2-prose ul, .b2-prose ol { padding-left: 22px; margin: 0 0 14px; }
.b2-prose li { margin-bottom: 4px; }
.b2-prose img { max-width: 100%; height: auto; border-radius: var(--b2-radius-sm); }
.b2-prose blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    border-left: 3px solid var(--b2-brand);
    background: var(--b2-brand-soft);
    border-radius: 0 var(--b2-radius-sm) var(--b2-radius-sm) 0;
    font-size: 15px;
}
.b2-prose > :first-child { margin-top: 0; }

/* Overview custom-field rows */
.b2-card .field-row {
    display: flex;
    margin: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--b2-line);
}
.b2-card .field-row:last-child { border-bottom: 0; }
.b2-card .field-row > .col-lg-3 { flex: 0 0 200px; padding: 0 16px 0 0; color: var(--b2-muted); font-weight: 500; float: none; width: auto; }
.b2-card .field-row > .col-lg-9 { flex: 1; padding: 0; float: none; width: auto; }
.b2-card .badge, .b2-chip {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--b2-canvas);
    border: 1px solid var(--b2-line);
    color: var(--b2-ink-2);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}
.b2-card .badge a { color: var(--b2-brand); }

/* Features */
.b2-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.b2-features li { position: relative; padding-left: 26px; color: var(--b2-ink-2); }
.b2-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--b2-brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23a0497c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* Pricing */
.b2-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}
.b2-plan {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--b2-line);
    border-radius: var(--b2-radius);
    padding: 18px;
}
.b2-plan__name { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--b2-ink); }
.b2-plan__price { font-size: 24px; font-weight: 700; color: var(--b2-ink); line-height: 1.2; }
.b2-plan__period { margin: 2px 0 16px; font-size: 13px; color: var(--b2-muted); }
.b2-plan .b2-btn { margin-top: auto; }
.b2-note { margin: 12px 0 0; font-size: 13px; color: var(--b2-muted); }

/* App tiles (alternatives, same vendor) */
.b2-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.b2-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 12px;
    border: 1px solid var(--b2-line);
    border-radius: var(--b2-radius);
    color: var(--b2-ink) !important;
    text-align: center;
    text-decoration: none !important;
    transition: border-color .15s, box-shadow .15s;
}
.b2-tile:hover, .b2-tile:focus { border-color: var(--b2-brand); box-shadow: var(--b2-shadow); }
.b2-tile__logo { height: 56px; width: 100%; display: flex; align-items: center; justify-content: center; }
.b2-tile__logo img { max-height: 56px; max-width: 100%; object-fit: contain; }
.b2-tile__name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.b2-tiles .is-hidden { display: none; }

/* Reviews */
.b2-review { padding: 16px 0; border-top: 1px solid var(--b2-line); }
.b2-review:first-of-type { border-top: 0; padding-top: 0; }
.b2-review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.b2-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--b2-brand-soft);
    color: var(--b2-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex: none;
}
.b2-review__name { font-weight: 600; }
.b2-review__date { font-size: 13px; color: var(--b2-muted); }
.b2-review__title { margin: 0 0 4px; font-weight: 600; }
.b2-review__body { color: var(--b2-ink-2); }

.b2-form .form-control {
    height: auto;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--b2-line-strong);
    border-radius: var(--b2-radius-sm);
    box-shadow: none;
    font: 15px var(--b2-font);
}
.b2-form .form-control:focus { border-color: var(--b2-brand); box-shadow: 0 0 0 3px var(--b2-brand-soft); }

/* Footer utility row */
.b2-utility {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: var(--b2-muted);
}
.b2-utility__links { display: flex; flex-wrap: wrap; gap: 16px; }
.b2-share { display: flex; align-items: center; gap: 8px; }
.b2-share a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--b2-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--b2-ink-2) !important;
}
.b2-share a:hover { border-color: var(--b2-ink-2); }

/* ---------- Sidebar cards ---------- */
.b2-side-card {
    background: var(--b2-surface);
    border: 1px solid var(--b2-line);
    border-radius: var(--b2-radius);
    box-shadow: var(--b2-shadow);
    padding: 20px;
    margin-bottom: 20px;
    font-family: var(--b2-font);
}
.b2-side-card__title { margin: 0 0 14px; font-size: 16px; font-weight: 700; color: var(--b2-ink); }

.b2-scorebox { display: flex; align-items: center; gap: 16px; }
.b2-scorebox__ring {
    --pct: 0;
    width: 76px;
    height: 76px;
    flex: none;
    border-radius: 50%;
    background: conic-gradient(var(--b2-brand) calc(var(--pct) * 1%), var(--b2-line) 0);
    display: flex;
    align-items: center;
    justify-content: center;
}
.b2-scorebox__ring span {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 22px var(--b2-font);
    color: var(--b2-ink);
}
.b2-scorebox__label { font-weight: 700; font-size: 16px; color: var(--b2-ink); }
.b2-scorebox__hint { font-size: 13px; color: var(--b2-muted); line-height: 1.45; }

.b2-facts { margin: 0; }
.b2-facts > div { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--b2-line); font-size: 14px; }
.b2-facts > div:first-child { border-top: 0; padding-top: 0; }
.b2-facts dt { flex: 0 0 104px; color: var(--b2-muted); font-weight: 500; }
.b2-facts dd { flex: 1; margin: 0; color: var(--b2-ink); }

/* Legacy sidebar widgets next to the new cards */
.b2-product .right-sidebar .widget {
    background: var(--b2-surface);
    border: 1px solid var(--b2-line);
    border-radius: var(--b2-radius);
    padding: 20px;
    margin-bottom: 20px;
}
.b2-product .right-sidebar .widgetheading { font-family: var(--b2-font); font-weight: 700; color: var(--b2-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .b2-hero__main { grid-template-columns: auto 1fr; }
    .b2-hero__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; min-width: 0; }
    .b2-hero__actions .b2-btn { flex: 1 1 200px; }
    .b2-hero__minor { flex-basis: 100%; }
}

@media (max-width: 600px) {
    .b2-hero { padding: 16px 0 20px; }
    .b2-hero__main { gap: 16px; }
    .b2-logo { width: 64px; height: 64px; padding: 8px; border-radius: var(--b2-radius-sm); }
    .b2-hero h1 { font-size: 24px; }
    .b2-card { padding: 20px 16px; border-radius: var(--b2-radius-sm); }
    .b2-card .field-row { flex-direction: column; gap: 4px; }
    .b2-card .field-row > .col-lg-3 { flex-basis: auto; }
    .b2-tiles { grid-template-columns: repeat(2, 1fr); }
    .b2-prose { font-size: 15px; }
}

/* ---------- Fixes for legacy markup inside new components ---------- */
.b2-product a.btn, .b2-product a.btn:hover, .b2-product a.btn:focus { color: #fff; }
.b2-product .right-sidebar .widget .btn { color: #fff !important; }
.b2-list { margin: 0; padding: 0; list-style: none; }
.b2-list li + li { margin-top: 8px; }
.b2-plan__price--text { font-size: 17px; padding: 4px 0 2px; }
.b2-prose blockquote { font-family: var(--b2-font); font-style: normal; color: var(--b2-ink-2); }
.b2-prose blockquote::before, .b2-prose blockquote::after { content: none; display: none; }

.b2-form.bottom-article { background: none; border: 0; padding: 0; margin: 0; }
.b2-form .form-group { margin-bottom: 12px; }
.b2-form .btn-theme {
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: var(--b2-radius-sm);
    background: var(--b2-brand);
    color: #fff;
    font: 600 15px var(--b2-font);
    text-transform: none;
    letter-spacing: 0;
}
.b2-form .btn-theme:hover, .b2-form .btn-theme:focus { background: var(--b2-brand-strong); }

/* ==========================================================================
   Site chrome: header, category bar, footer (all pages)
   ========================================================================== */
body {
    font-family: var(--b2-font);
    color: var(--b2-ink);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: var(--b2-font); }
#wrapper { background: var(--b2-canvas); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.b2-notice { padding: 8px 16px; background: #fff4d6; color: #6b4b00; text-align: center; font-size: 14px; }

.b2-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--b2-surface);
    border-bottom: 1px solid var(--b2-line);
    font-family: var(--b2-font);
}
.b2-header__bar {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 68px;
}
.b2-header__bar::before, .b2-header__bar::after { content: none; }
.b2-header__logo { flex: none; display: flex; align-items: center; }
.b2-header__logo img { height: 36px; width: auto; }

.b2-search {
    position: relative;
    flex: 1 1 auto;
    max-width: 560px;
    margin: 0;
}
.b2-search > .fa {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--b2-muted);
    pointer-events: none;
}
.b2-search input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 42px;
    border: 1px solid var(--b2-line-strong);
    border-radius: 999px;
    background: var(--b2-canvas);
    color: var(--b2-ink);
    font: 15px var(--b2-font);
    outline: none;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.b2-search input::placeholder { color: var(--b2-muted); }
.b2-search input:focus { background: #fff; border-color: var(--b2-brand); box-shadow: 0 0 0 3px var(--b2-brand-soft); }

/* Typeahead dropdown (bootstrap3-typeahead) */
.b2-search .typeahead.dropdown-menu, .b2-hero-search .typeahead.dropdown-menu {
    width: 100%;
    margin-top: 6px;
    padding: 6px;
    border: 1px solid var(--b2-line);
    border-radius: var(--b2-radius);
    box-shadow: 0 12px 32px rgba(16, 24, 40, .12);
}
.typeahead.dropdown-menu > li > a { padding: 6px 8px; border-radius: var(--b2-radius-sm); white-space: normal; }
.typeahead.dropdown-menu > .active > a { background: var(--b2-brand-soft); color: var(--b2-ink); }
.typeahead.dropdown-menu .img-wrapper img { max-width: 40px; max-height: 32px; }

.b2-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    font-size: 15px;
    font-weight: 500;
}
.b2-nav > a:not(.b2-btn), .b2-nav .b2-linkbtn { color: var(--b2-ink-2) !important; text-decoration: none; font-size: 15px; }
.b2-nav > a:not(.b2-btn):hover { color: var(--b2-brand) !important; }
.b2-nav .dropdown-menu { border-radius: var(--b2-radius-sm); border-color: var(--b2-line); box-shadow: 0 12px 32px rgba(16, 24, 40, .12); }
.b2-header__toggle { display: none; }

.b2-catbar { border-top: 1px solid var(--b2-line); }
.b2-catbar ul {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}
.b2-catbar ul::-webkit-scrollbar { display: none; }
.b2-catbar a {
    display: block;
    padding: 10px 10px;
    color: var(--b2-muted) !important;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none !important;
}
.b2-catbar a:hover { color: var(--b2-ink) !important; }
.b2-catbar__all { color: var(--b2-brand) !important; }

/* The product tabs stick below the sticky header */
.b2-tabs { top: 117px; }

.b2-footer {
    background: var(--b2-ink);
    color: #b9c3cf;
    font-family: var(--b2-font);
    font-size: 14px;
    padding: 56px 0 24px;
}
.b2-footer a { color: #dfe5ec; text-decoration: none; }
.b2-footer a:hover, .b2-footer a:focus { color: #fff; text-decoration: underline; }
.b2-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
}
.b2-footer__name { font-size: 20px; font-weight: 700; color: #fff !important; }
.b2-footer__brand p { margin: 12px 0 0; line-height: 1.6; max-width: 340px; }
.b2-footer__title { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8d99a8; }
.b2-footer ul { margin: 0; padding: 0; list-style: none; }
.b2-footer li + li { margin-top: 8px; }
.b2-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 13px;
}
.b2-footer__social { display: flex; gap: 14px; font-size: 16px; }

@media (max-width: 991px) {
    .b2-header__bar { flex-wrap: wrap; gap: 12px 16px; padding-top: 10px; padding-bottom: 10px; }
    .b2-search { order: 3; flex-basis: 100%; max-width: none; }
    .b2-header__toggle {
        display: inline-flex;
        margin-left: auto;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--b2-line);
        border-radius: var(--b2-radius-sm);
        background: #fff;
        color: var(--b2-ink);
        font-size: 18px;
    }
    .b2-nav {
        display: none;
        order: 4;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        border-top: 1px solid var(--b2-line);
    }
    .b2-nav.is-open { display: flex; }
    .b2-nav > a:not(.b2-btn), .b2-nav .b2-linkbtn { padding: 12px 0; border-bottom: 1px solid var(--b2-line); }
    .b2-nav .b2-btn { margin: 12px 0 4px; }
    .b2-header { position: relative; }
    .b2-tabs { top: 0; }
    .b2-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .b2-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .b2-footer__grid { grid-template-columns: 1fr; }
}

/* Features: one marker only (legacy style.css adds its own bullets) */
.b2-features, .b2-features li { list-style: none !important; }
.b2-features li { display: block; float: none; width: auto; margin: 0; }

/* Full-width layout: Bootstrap's fixed containers become fluid with comfortable gutters */
.container {
    width: 100% !important;
    max-width: none;
    padding-left: 40px;
    padding-right: 40px;
}
@media (max-width: 1199px) { .container { padding-left: 24px; padding-right: 24px; } }
@media (max-width: 600px) { .container { padding-left: 16px; padding-right: 16px; } }
/* Keep long-form text readable on very wide screens */
.b2-prose { max-width: 860px; }
.b2-list, .b2-list li { list-style: none !important; }
.b2-list { padding-left: 0 !important; }

/* Category bar: never cut a label mid-word — scroll area fades out, "All categories" stays pinned */
.b2-catbar .container { display: flex; align-items: center; gap: 8px; }
.b2-catbar ul {
    flex: 1 1 auto;
    min-width: 0;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent);
}
.b2-catbar__all { flex: none; padding: 10px 0 10px 8px; }

/* ==========================================================================
   Home
   ========================================================================== */
.b2-home { font-family: var(--b2-font); color: var(--b2-ink); }
.b2-eyebrow { margin: 0 0 10px; color: var(--b2-brand); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.b2-home-hero {
    background: radial-gradient(1200px 400px at 85% -10%, var(--b2-brand-soft), transparent 70%), var(--b2-surface);
    border-bottom: 1px solid var(--b2-line);
    padding: 64px 0 40px;
}
.b2-home-hero__inner { max-width: 980px; }
.b2-home-hero h1 { margin: 0 0 14px; font-size: 48px; line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; }
.b2-home-hero__lead { margin: 0 0 28px; font-size: 18px; line-height: 1.55; color: var(--b2-ink-2); max-width: 640px; }
.b2-hero-search { max-width: 640px; }
.b2-hero-search input { height: 56px; font-size: 16px; padding-left: 48px; background: #fff; box-shadow: var(--b2-shadow); }
.b2-hero-search > .fa { left: 18px; font-size: 17px; }
.b2-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--b2-muted); }
.b2-popular a {
    padding: 5px 12px;
    border: 1px solid var(--b2-line);
    border-radius: 999px;
    background: #fff;
    color: var(--b2-ink-2) !important;
    text-decoration: none !important;
}
.b2-popular a:hover { border-color: var(--b2-brand); color: var(--b2-brand) !important; }
.b2-suggest { display: flex; align-items: center; gap: 10px; }
.b2-suggest img { width: 32px; height: 32px; object-fit: contain; }

.b2-stats { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 40px 0 0; }
.b2-stats > div { display: flex; flex-direction: column-reverse; }
.b2-stats dt { font-size: 14px; font-weight: 500; color: var(--b2-muted); }
.b2-stats dd { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }

.b2-section { padding: 56px 0; }
.b2-section--white { background: var(--b2-surface); border-top: 1px solid var(--b2-line); border-bottom: 1px solid var(--b2-line); }
.b2-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.b2-section__head h2 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.015em; }
.b2-section__head a { font-weight: 600; font-size: 15px; white-space: nowrap; }

.b2-catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.b2-catcard {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    border: 1px solid var(--b2-line);
    border-radius: var(--b2-radius);
    background: var(--b2-surface);
    text-decoration: none !important;
    transition: border-color .15s, box-shadow .15s;
}
.b2-catcard:hover, .b2-catcard:focus { border-color: var(--b2-brand); box-shadow: var(--b2-shadow); }
.b2-catcard__title { color: var(--b2-ink); font-weight: 600; font-size: 16px; }
.b2-catcard__count { color: var(--b2-muted); font-size: 14px; }

.b2-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; border: 0; }
.b2-pills > li > a {
    display: block;
    padding: 8px 16px;
    border: 1px solid var(--b2-line);
    border-radius: 999px;
    color: var(--b2-ink-2) !important;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none !important;
}
.b2-pills > li.active > a { background: var(--b2-ink); border-color: var(--b2-ink); color: #fff !important; }
.b2-home .tab-content { border: 0; padding: 0; background: none; }

.b2-appgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.b2-appcard {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--b2-line);
    border-radius: var(--b2-radius);
    background: var(--b2-surface);
    text-decoration: none !important;
    transition: border-color .15s, box-shadow .15s;
}
.b2-appcard:hover, .b2-appcard:focus { border-color: var(--b2-brand); box-shadow: var(--b2-shadow); }
.b2-appcard__logo {
    flex: none;
    width: 52px;
    height: 52px;
    border: 1px solid var(--b2-line);
    border-radius: var(--b2-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: #fff;
}
.b2-appcard__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.b2-appcard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.b2-appcard__name { color: var(--b2-ink); font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b2-appcard__meta { color: var(--b2-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b2-appcard__score {
    flex: none;
    min-width: 42px;
    padding: 4px 8px;
    border-radius: var(--b2-radius-sm);
    background: var(--b2-brand-soft);
    color: var(--b2-brand-strong);
    font-weight: 700;
    font-size: 14px;
    text-align: center;
}

.b2-method {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 40px;
    border-radius: 16px;
    background: var(--b2-ink);
    color: #c9d2dc;
}
.b2-method h2 { margin: 0 0 12px; color: #fff; font-size: 28px; font-weight: 700; }
.b2-method p { font-size: 16px; line-height: 1.6; margin: 0 0 20px; }
.b2-method .b2-eyebrow { color: #e3a9c9; }
.b2-method .b2-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .35); }
.b2-method .b2-btn--ghost:hover { border-color: #fff; }
.b2-method__points { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.b2-method__points li { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: var(--b2-radius); background: rgba(255, 255, 255, .06); }
.b2-method__points strong { color: #fff; font-size: 15px; }
.b2-method__points span { font-size: 14px; line-height: 1.5; }

.b2-postgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.b2-post { display: flex; flex-direction: column; gap: 8px; text-decoration: none !important; }
.b2-post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--b2-radius); border: 1px solid var(--b2-line); }
.b2-post__date { color: var(--b2-muted); font-size: 13px; }
.b2-post__title { color: var(--b2-ink); font-weight: 600; font-size: 17px; line-height: 1.35; }
.b2-post:hover .b2-post__title { color: var(--b2-brand); }

.b2-section--cta { padding-top: 0; }
.b2-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 32px 40px;
    border: 1px solid var(--b2-line);
    border-radius: 16px;
    background: var(--b2-surface);
}
.b2-cta h2 { margin: 0 0 6px; font-size: 24px; font-weight: 700; }
.b2-cta p { margin: 0; color: var(--b2-ink-2); }

@media (max-width: 991px) {
    .b2-method { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
    .b2-postgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .b2-home-hero { padding: 36px 0 28px; }
    .b2-home-hero h1 { font-size: 32px; }
    .b2-home-hero__lead { font-size: 16px; }
    .b2-stats { gap: 12px 28px; margin-top: 28px; }
    .b2-stats dd { font-size: 22px; }
    .b2-section { padding: 40px 0; }
    .b2-section__head { flex-direction: column; gap: 6px; }
    .b2-section__head h2 { font-size: 22px; }
    .b2-postgrid { grid-template-columns: 1fr; }
    .b2-cta { padding: 24px; }
}

.b2-catbar__all { color: var(--b2-brand) !important; font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none !important; }
.b2-home .tab-content, .b2-home .tab-pane { border: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; }

.b2-home-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px 64px; align-items: start; }
.b2-home-hero__grid::before, .b2-home-hero__grid::after { content: none; }

.b2-hero-card {
    padding: 20px;
    border: 1px solid var(--b2-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 12px 32px rgba(16, 24, 40, .08);
}
.b2-hero-card__title { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--b2-ink); }
.b2-hero-card ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.b2-hero-card .b2-appcard { padding: 10px 12px; }
.b2-hero-card .b2-appcard__logo { width: 40px; height: 40px; }
@media (max-width: 1199px) {
    .b2-home-hero__grid { grid-template-columns: 1fr; }
    .b2-hero-card { max-width: 640px; }
}

/* Fixed column counts per screen size; home item counts (24 / 12 / 4) always fill whole rows */
.b2-catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.b2-appgrid { grid-template-columns: minmax(0, 1fr); }
.b2-postgrid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
    .b2-catgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .b2-appgrid, .b2-postgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
    .b2-catgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .b2-appgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1600px) {
    .b2-catgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .b2-appgrid, .b2-postgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .b2-home-hero__grid { grid-template-columns: minmax(0, 1fr) 480px; }
}
@media (max-width: 1199px) { .b2-home-hero__grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .b2-catgrid .b2-catcard:nth-child(n+13) { display: none; } }

/* ==========================================================================
   Category listing
   ========================================================================== */
.b2-listing .b2-hero h1 { font-size: 36px; }
.b2-listing .b2-hero h1 small { font-size: 20px; }
.b2-intro { position: relative; max-width: 980px; margin-top: 8px; }
.b2-intro .b2-prose { max-height: 5.2em; overflow: hidden; font-size: 15px; line-height: 1.7; color: var(--b2-ink-2);
    -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.b2-intro .b2-prose h1, .b2-intro .b2-prose h2, .b2-intro .b2-prose h3 { font-size: 16px; margin: 12px 0 4px; }
.b2-intro.is-open .b2-prose { max-height: none; -webkit-mask-image: none; mask-image: none; }
.b2-intro__toggle { margin-top: 4px; color: var(--b2-brand) !important; font-weight: 600; }

.b2-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.b2-chips a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--b2-line);
    border-radius: 999px;
    background: #fff;
    color: var(--b2-ink-2) !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
}
.b2-chips a span { color: var(--b2-muted); font-size: 12px; font-weight: 500; }
.b2-chips a:hover { border-color: var(--b2-brand); color: var(--b2-brand) !important; }

.b2-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; color: var(--b2-muted); font-size: 14px; }
.b2-sort { display: flex; align-items: center; gap: 8px; margin: 0; }
.b2-sort label { margin: 0; font-weight: 500; }
.b2-sort select {
    height: 38px;
    padding: 0 32px 0 12px;
    border: 1px solid var(--b2-line-strong);
    border-radius: var(--b2-radius-sm);
    background: #fff;
    font: 500 14px var(--b2-font);
    color: var(--b2-ink);
}

.b2-results { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.b2-result {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
    padding: 20px 24px;
    background: var(--b2-surface);
    border: 1px solid var(--b2-line);
    border-radius: var(--b2-radius);
    box-shadow: var(--b2-shadow);
}
.b2-result.is-sponsored { border-color: #e7c9da; }
.b2-result__logo {
    width: 88px;
    height: 88px;
    border: 1px solid var(--b2-line);
    border-radius: var(--b2-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #fff;
    text-decoration: none !important;
}
.b2-result__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.b2-result__logo span { font-size: 32px; font-weight: 700; color: var(--b2-brand); }
.b2-result__top { display: flex; align-items: center; gap: 10px; }
.b2-result__name { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; }
.b2-result__name a { color: var(--b2-ink) !important; text-decoration: none !important; }
.b2-result__name a:hover { color: var(--b2-brand) !important; }
.b2-tag { padding: 2px 8px; border-radius: 999px; background: var(--b2-brand-soft); color: var(--b2-brand-strong); font-size: 12px; font-weight: 600; }
.b2-result__vendor { margin: 2px 0 10px; color: var(--b2-muted); font-size: 14px; }
.b2-result .b2-ratings { margin-bottom: 10px; }
.b2-result__desc { margin: 0 0 12px; color: var(--b2-ink-2); font-size: 15px; line-height: 1.6; }
.b2-result__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.b2-result__chips .b2-chip { margin: 0; }
.b2-chip--strong { background: var(--b2-brand-soft); border-color: transparent; color: var(--b2-brand-strong); font-weight: 600; }
.b2-result__actions { display: flex; flex-direction: column; gap: 8px; min-width: 150px; }

.b2-pagination { margin-top: 24px; }
.b2-pagination nav > div:first-child, .b2-pagination .hidden-xs + div { display: none; }
.b2-pagination .pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.b2-pagination .pagination > li > a, .b2-pagination .pagination > li > span {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--b2-line);
    border-radius: var(--b2-radius-sm) !important;
    background: #fff;
    color: var(--b2-ink-2);
    font-weight: 500;
}
.b2-pagination .pagination > .active > span, .b2-pagination .pagination > .active > a { background: var(--b2-ink); border-color: var(--b2-ink); color: #fff; }
.b2-pagination .pagination > .disabled > span { color: var(--b2-line-strong); }

.b2-faq details { border-top: 1px solid var(--b2-line); padding: 14px 0; }
.b2-faq details:first-of-type { border-top: 0; padding-top: 0; }
.b2-faq summary { cursor: pointer; font-weight: 600; font-size: 16px; color: var(--b2-ink); list-style: none; }
.b2-faq summary::-webkit-details-marker { display: none; }
.b2-faq summary::after { content: "+"; float: right; color: var(--b2-muted); font-weight: 400; }
.b2-faq details[open] summary::after { content: "–"; }
.b2-faq details p { margin: 10px 0 0; color: var(--b2-ink-2); line-height: 1.65; }

.b2-listing__side { position: sticky; top: 132px; }
.b2-sidelinks { margin: 0; padding: 0; list-style: none; }
.b2-sidelinks li + li { margin-top: 8px; }
.b2-sidelinks a { color: var(--b2-ink-2) !important; font-size: 14px; }
.b2-sidelinks a:hover { color: var(--b2-brand) !important; }

@media (max-width: 991px) {
    .b2-result { grid-template-columns: 64px minmax(0, 1fr); padding: 16px; gap: 14px; }
    .b2-result__logo { width: 64px; height: 64px; padding: 6px; }
    .b2-result__actions { grid-column: 1 / -1; flex-direction: row; min-width: 0; }
    .b2-result__actions .b2-btn { flex: 1; }
    .b2-listing__side { position: static; margin-top: 8px; }
}
@media (max-width: 600px) {
    .b2-listing .b2-hero h1 { font-size: 26px; }
    .b2-result__name { font-size: 18px; }
}

.b2-listing__summary { max-width: 980px; margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--b2-ink-2); }
.b2-listing__summary a { font-weight: 600; white-space: nowrap; }
.b2-chips .is-extra, .b2-sidelinks .is-extra { display: none; }
.b2-chips.is-open .is-extra { display: inline-flex; }
.b2-sidelinks.is-open .is-extra { display: list-item; }
.b2-chips__more {
    padding: 6px 12px;
    border: 1px dashed var(--b2-line-strong);
    border-radius: 999px;
    background: none;
    color: var(--b2-brand);
    font: 600 14px var(--b2-font);
    cursor: pointer;
}
#about .b2-prose h1, #about .b2-prose h2, #about .b2-prose h3 { font-size: 18px; font-style: normal; text-decoration: none; }
#about .b2-prose a { text-decoration: none; }

/* Full HD: two result columns so wide screens are not half empty */
@media (min-width: 1600px) {
    .b2-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .b2-result { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
    .b2-result__logo { width: 72px; height: 72px; padding: 8px; }
    .b2-result__actions { grid-column: 1 / -1; flex-direction: row; min-width: 0; padding-top: 4px; border-top: 1px solid var(--b2-line); padding-top: 14px; }
    .b2-result__actions .b2-btn { flex: 1; }
}
@media (max-width: 600px) {
    .b2-chips:not(.is-open) a:nth-of-type(n+7) { display: none; }
}

/* Current page / section indicators */
.b2-tabs a.is-active { color: var(--b2-brand) !important; border-bottom-color: var(--b2-brand); font-weight: 600; }
.b2-catbar a.is-active { color: var(--b2-brand) !important; box-shadow: inset 0 -2px 0 var(--b2-brand); }
.b2-nav > a.is-active { color: var(--b2-brand) !important; }
.b2-prose ul { list-style: disc; }
.b2-prose ol { list-style: decimal; }
.b2-prose ul li, .b2-prose ol li { list-style: inherit; }

/* ==========================================================================
   All categories
   ========================================================================== */
.b2-cats__filter { max-width: 560px; margin-top: 20px; }
.b2-catgroups { columns: 1; column-gap: 20px; }
@media (min-width: 768px) { .b2-catgroups { columns: 2; } }
@media (min-width: 1200px) { .b2-catgroups { columns: 3; } }
@media (min-width: 1600px) { .b2-catgroups { columns: 4; } }
.b2-catgroup {
    break-inside: avoid;
    margin: 0 0 20px;
    padding: 20px 22px;
    background: var(--b2-surface);
    border: 1px solid var(--b2-line);
    border-radius: var(--b2-radius);
    box-shadow: var(--b2-shadow);
}
.b2-catgroup__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; font-size: 17px; font-weight: 700; }
.b2-catgroup__title a { color: var(--b2-ink) !important; }
.b2-catgroup__title a:hover { color: var(--b2-brand) !important; }
.b2-catgroup__title span, .b2-catgroup li span { color: var(--b2-muted); font-size: 13px; font-weight: 500; }
.b2-catgroup ul { margin: 0; padding: 0; list-style: none; }
.b2-catgroup li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; }
.b2-catgroup li a { color: var(--b2-ink-2) !important; }
.b2-catgroup li a:hover { color: var(--b2-brand) !important; }
.b2-catgroup li.is-extra { display: none; }
.b2-catgroup.is-open li.is-extra { display: flex; }
.b2-catgroup li[hidden] { display: none !important; }
.b2-catgroup__more { margin-top: 8px; color: var(--b2-brand) !important; font-weight: 600; }
.b2-catgroups__empty { color: var(--b2-muted); }
.b2-suggest { display: flex; align-items: center; gap: 10px; min-width: 0; }
.b2-suggest strong { font-weight: 600; color: var(--b2-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b2-suggest em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--b2-muted); }
.b2-suggest__icon { width: 32px; height: 32px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--b2-canvas); color: var(--b2-muted); }
.typeahead.dropdown-menu, .typeahead.dropdown-menu li, .typeahead.dropdown-menu li a { border: 0 !important; box-shadow: none; }
.typeahead.dropdown-menu { box-shadow: 0 12px 32px rgba(16, 24, 40, .12) !important; border: 1px solid var(--b2-line) !important; }

/* Pagination breathing room above following sections */
.b2-pagination { margin: 28px 0 32px; }

/* ==========================================================================
   Blog list and articles
   ========================================================================== */
.b2-chips a.is-active { background: var(--b2-ink); border-color: var(--b2-ink); color: #fff !important; }
.b2-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--b2-surface);
    border: 1px solid var(--b2-line);
    border-radius: 16px;
    box-shadow: var(--b2-shadow);
    text-decoration: none !important;
}
.b2-lead img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--b2-radius); }
.b2-lead__body { display: flex; flex-direction: column; gap: 12px; }
.b2-lead__title { color: var(--b2-ink); font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
.b2-lead:hover .b2-lead__title { color: var(--b2-brand); }
.b2-lead__excerpt { color: var(--b2-ink-2); font-size: 16px; line-height: 1.6; }
.b2-post__excerpt { color: var(--b2-ink-2); font-size: 14px; line-height: 1.55; }
.b2-post__noimg { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--b2-radius); background: linear-gradient(135deg, var(--b2-brand-soft), var(--b2-canvas)); }
.b2-blog .b2-postgrid { row-gap: 36px; }
@media (min-width: 1200px) { .b2-blog .b2-postgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1600px) { .b2-blog .b2-postgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.b2-article__head { max-width: 900px; }
.b2-article .b2-hero h1 { font-size: 40px; line-height: 1.15; margin-top: 6px; }
.b2-article .b2-eyebrow { display: inline-block; text-decoration: none; }
.b2-article__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; color: var(--b2-muted); font-size: 14px; }
.b2-article__meta strong { color: var(--b2-ink-2); }
.b2-article__body { padding: 32px 40px; }
.b2-article__body .b2-prose { max-width: 760px; font-size: 17px; line-height: 1.75; }
.b2-article__body .b2-prose h2 { font-size: 24px; margin-top: 36px; }
.b2-article__body .b2-prose h3 { font-size: 19px; }
.b2-article__cover { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--b2-radius); margin-bottom: 28px; }
.b2-article__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 24px; }
.b2-article__gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--b2-radius-sm); }
.b2-related-posts { margin-top: 32px; }
.b2-section__title { margin: 0 0 18px; font-size: 22px; font-weight: 700; }
.b2-postgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.b2-popular-posts { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 14px; line-height: 1.45; }
.b2-popular-posts a { color: var(--b2-ink-2) !important; }
.b2-popular-posts a:hover { color: var(--b2-brand) !important; }

@media (max-width: 991px) {
    .b2-lead { grid-template-columns: 1fr; gap: 16px; }
    .b2-lead__title { font-size: 24px; }
    .b2-postgrid--3 { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
    .b2-article .b2-hero h1 { font-size: 28px; }
    .b2-article__body { padding: 20px 16px; }
    .b2-article__body .b2-prose { font-size: 16px; }
}
.b2-article__body > .b2-prose, .b2-article__body > h2, .b2-article__body > .b2-list, .b2-article__body > .b2-utility { max-width: 760px; margin-left: auto; margin-right: auto; }
.b2-article__cover { display: block; max-width: 1000px; margin-left: auto; margin-right: auto; }
.b2-popular-posts { list-style: decimal !important; }
.b2-popular-posts li { list-style: inherit; padding-left: 4px; }
.b2-popular-posts li::marker { color: var(--b2-muted); font-weight: 600; }
.b2-form #sendmessage, .b2-form #errormessage { display: none; margin-bottom: 14px; padding: 12px 14px; border-radius: var(--b2-radius-sm); }
.b2-form #sendmessage.show { display: block; background: #e8f6ef; color: var(--b2-good); }
.b2-form #errormessage.show { display: block; background: #fdecec; color: #b42318; }
.b2-form .validation { display: none; margin-top: 6px; color: #b42318; font-size: 13px; background: none; border: 0; padding: 0; }
.b2-facts dt .fa { width: 16px; color: var(--b2-muted); }

.b2-cats .b2-popular { margin-top: 16px; }
.b2-catgroup__title { align-items: center; justify-content: flex-start; }
.b2-catgroup__title > a { flex: 1; }
.b2-catgroup__count { margin-left: auto; }
.b2-catgroup__icon {
    width: 36px;
    height: 36px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--b2-brand-soft);
    color: var(--b2-brand);
    font-size: 16px;
}
.b2-catgroup--more { margin-top: 8px; }
.b2-catgroup--more .b2-catgroup__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 32px; }
.b2-catgroup--more li a .fa { width: 18px; color: var(--b2-muted); }

/* Home category cards get the same icons */
.b2-catcard { flex-direction: row; align-items: center; gap: 14px; }
.b2-catcard__icon { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--b2-brand-soft); color: var(--b2-brand); font-size: 17px; }
.b2-catcard__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.b2-catgroup__title .b2-catgroup__name { color: var(--b2-ink); font-size: 17px; font-weight: 700; }

/* ==========================================================================
   Categories v2: popular cards, sticky area nav, subcategory tiles
   ========================================================================== */
.b2-cats__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.b2-cats__head .b2-cats__filter { flex: 0 1 520px; margin: 0; }
.b2-cats__label { margin: 32px 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--b2-muted); }
.b2-catgrid--popular { gap: 10px; }
.b2-catgrid--popular .b2-catcard { padding: 14px 16px; }
@media (min-width: 1600px) { .b2-catgrid--popular { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.b2-cats__layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.b2-cats__layout::before, .b2-cats__layout::after { content: none; }
.b2-areanav { position: sticky; top: 132px; max-height: calc(100vh - 150px); overflow-y: auto; scrollbar-width: thin; }
.b2-areanav .b2-cats__label { margin-top: 4px; }
.b2-areanav ul { margin: 0; padding: 0; list-style: none; }
.b2-areanav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: var(--b2-radius-sm);
    color: var(--b2-ink-2) !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
}
.b2-areanav a .fa { width: 18px; text-align: center; color: var(--b2-muted); }
.b2-areanav a:hover { background: var(--b2-surface); color: var(--b2-ink) !important; }
.b2-areanav a.is-active { background: var(--b2-brand-soft); color: var(--b2-brand-strong) !important; }
.b2-areanav a.is-active .fa { color: var(--b2-brand); }

.b2-areas { display: grid; gap: 20px; }
.b2-area {
    padding: 24px;
    background: var(--b2-surface);
    border: 1px solid var(--b2-line);
    border-radius: var(--b2-radius);
    box-shadow: var(--b2-shadow);
    scroll-margin-top: 140px;
}
.b2-area[hidden] { display: none; }
.b2-area__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.b2-area__head > div { flex: 1; min-width: 0; }
.b2-area__head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.b2-area__head h2 a { color: var(--b2-ink) !important; }
.b2-area__head h2 a:hover { color: var(--b2-brand) !important; }
.b2-area__meta { color: var(--b2-muted); font-size: 13px; }
.b2-area .b2-catgroup__icon { width: 44px; height: 44px; font-size: 19px; border-radius: 12px; }

.b2-subgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.b2-subgrid li[hidden], .b2-subgrid li.is-extra { display: none; }
.b2-area.is-open .b2-subgrid li.is-extra:not([hidden]) { display: block; }
.b2-subgrid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 100%;
    padding: 10px 14px;
    border: 1px solid var(--b2-line);
    border-radius: var(--b2-radius-sm);
    color: var(--b2-ink-2) !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: border-color .15s, background-color .15s;
}
.b2-subgrid a:hover { border-color: var(--b2-brand); background: var(--b2-brand-soft); color: var(--b2-brand-strong) !important; }
.b2-subgrid em { flex: none; font-style: normal; color: var(--b2-muted); font-size: 12px; }
.b2-area .b2-catgroup__more { margin-top: 14px; }

@media (max-width: 991px) {
    .b2-cats__layout { grid-template-columns: minmax(0, 1fr); }
    .b2-areanav { display: none; }
    .b2-area { padding: 18px 16px; }
    .b2-area__head .b2-btn { display: none; }
}

/* Product sidebar */
.b2-side .b2-chips--side { margin: 0; gap: 6px; }
.b2-side .b2-chips--side a { font-size: 13px; padding: 5px 10px; }
.b2-sidelist { display: grid; gap: 8px; }
.b2-sidelist .b2-appcard { padding: 10px 12px; box-shadow: none; }
.b2-sidelist .b2-appcard__logo { width: 40px; height: 40px; padding: 4px; }
.b2-claim .b2-tag { display: inline-block; }

/* Reserve gallery space up front so the page does not jump while the slider loads */
.b2-card .post-slider .flexslider { margin: 0 0 12px; border: 0; box-shadow: none; background: var(--b2-canvas); border-radius: var(--b2-radius-sm); overflow: hidden; }
.b2-card .post-slider .flexslider .slides > li { aspect-ratio: 16 / 10; }
.b2-card .post-slider .flexslider .slides img { width: 100%; height: 100%; object-fit: contain; }
.b2-card .post-slider .flexslider .slides > li:not(:first-child) { display: none; }
.b2-card .post-slider .flexslider .flex-viewport .slides > li { display: block; }

/* ==========================================================================
   Never wider than the screen
   ========================================================================== */
/* Grid items default to min-width:auto, so one long nowrap name could widen the whole column */
.b2-appcard, .b2-result, .b2-catcard, .b2-tile, .b2-plan, .b2-post { min-width: 0; max-width: 100%; }
.b2-sidelist, .b2-hero-card ol, .b2-results { grid-template-columns: minmax(0, 1fr); }
.b2-side, .b2-side-card, .b2-card, .b2-hero-card, .b2-area { min-width: 0; max-width: 100%; }

/* Embedded media and wide content inside CMS text */
.b2-prose iframe, .b2-prose video, .b2-prose embed, .b2-prose object { max-width: 100%; }
.b2-prose iframe[src*="youtube"], .b2-prose iframe[src*="vimeo"], .b2-prose iframe[src*="vidyard"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.b2-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; -webkit-overflow-scrolling: touch; }
.b2-prose th, .b2-prose td { padding: 8px 12px; border: 1px solid var(--b2-line); vertical-align: top; }
.b2-prose th { background: var(--b2-canvas); }
.b2-prose pre { max-width: 100%; overflow-x: auto; white-space: pre; }
.b2-prose a, .b2-prose p, .b2-prose li, .b2-review__body { overflow-wrap: anywhere; }
.b2-card .field-row > .col-lg-9 { min-width: 0; overflow-wrap: anywhere; }
.b2-tabs .container, .b2-catbar .container { overflow: hidden; }
.b2-tabs ul, .b2-catbar ul { max-width: 100%; }
/* Safety net: clip (unlike hidden) does not create a scroll container, so sticky header and tabs keep working */
html, body, #wrapper { overflow-x: clip; }

/* What users say: AI synthesis of collected reviews */
.b2-sentiment { margin-bottom: 28px; padding: 20px 22px; border-radius: var(--b2-radius); background: var(--b2-canvas); border: 1px solid var(--b2-line); }
.b2-sentiment h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.b2-sentiment__summary { margin: 0 0 16px; color: var(--b2-ink-2); line-height: 1.65; }
.b2-sentiment__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.b2-sentiment h4 { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--b2-ink); }
.b2-sentiment__cols > div:first-child h4 .fa { color: var(--b2-good); }
.b2-sentiment__cols > div:nth-child(2) h4 .fa { color: #b42318; }
.b2-sentiment ul { margin: 0; padding-left: 18px; list-style: disc; }
.b2-sentiment li { list-style: inherit; margin-bottom: 6px; color: var(--b2-ink-2); font-size: 14px; line-height: 1.5; }
.b2-sentiment__best { margin: 16px 0 0; color: var(--b2-ink-2); font-size: 14px; }
.b2-sentiment .b2-note { margin-top: 12px; }
.b2-sentiment__list-title { margin: 0 0 12px; font-size: 17px; font-weight: 700; }
@media (max-width: 600px) { .b2-sentiment__cols { grid-template-columns: minmax(0, 1fr); } .b2-sentiment { padding: 16px; } }

/* ==========================================================================
   Modals (all Bootstrap modals on the site)
   ========================================================================== */
.modal-backdrop.in { opacity: .45; background: #0f172a; }
.modal-dialog { width: auto; max-width: 520px; margin: 72px auto; padding: 0 16px; }
.modal-content {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, .25);
    font-family: var(--b2-font);
    color: var(--b2-ink);
    overflow: hidden;
}
.modal-header { position: relative; padding: 24px 56px 8px 28px; border: 0; }
.modal-header .modal-title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--b2-ink); }
.modal-header .close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    margin: 0;
    border-radius: 50%;
    opacity: 1;
    color: var(--b2-muted);
    font-size: 24px;
    font-weight: 400;
    line-height: 36px;
    text-shadow: none;
    transition: background-color .15s, color .15s;
}
.modal-header .close:hover, .modal-header .close:focus { background: var(--b2-canvas); color: var(--b2-ink); }
.b2-modal__lead { margin: 8px 0 0; color: var(--b2-ink-2); font-size: 15px; line-height: 1.55; }
.modal-body { padding: 16px 28px 8px; font-size: 15px; }
.modal-body label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--b2-ink); }
.b2-modal__optional { font-weight: 400; color: var(--b2-muted); }
.b2-modal__hint { margin: 6px 0 0; font-size: 13px; color: var(--b2-muted); }
.modal-body .form-group { margin-bottom: 16px; }
.modal-body .form-control {
    height: auto;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--b2-line-strong);
    border-radius: var(--b2-radius-sm);
    box-shadow: none;
    font: 15px var(--b2-font);
    color: var(--b2-ink);
}
.modal-body .form-control:focus { border-color: var(--b2-brand); box-shadow: 0 0 0 3px var(--b2-brand-soft); }
.modal-body select.form-control { appearance: auto; }
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 28px 24px;
    border: 0;
    background: none;
}
.modal-footer::before, .modal-footer::after { content: none; }
.modal-footer .btn + .btn { margin-left: 0; }
/* Legacy Bootstrap buttons inside modals that still use .btn */
.modal-footer .btn, .modal-body .btn {
    min-height: 40px;
    padding: 0 16px;
    border-radius: var(--b2-radius-sm);
    font: 600 14px var(--b2-font);
}
.modal-footer .btn-primary, .modal-body .btn-primary { background: var(--b2-brand); border-color: var(--b2-brand); color: #fff; }
.modal-footer .btn-default { background: #fff; border-color: var(--b2-line-strong); color: var(--b2-ink); }

/* select2 multi-select in the "Suggest an alternative" modal */
.b2-modal .select2-container { width: 100% !important; }
.b2-modal .select2-container--default .select2-selection--multiple {
    min-height: 44px;
    padding: 4px 8px;
    border: 1px solid var(--b2-line-strong);
    border-radius: var(--b2-radius-sm);
}
.b2-modal .select2-container--default.select2-container--focus .select2-selection--multiple { border-color: var(--b2-brand); box-shadow: 0 0 0 3px var(--b2-brand-soft); }
.b2-modal .select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin-top: 4px;
    padding: 2px 8px;
    border: 0;
    border-radius: 999px;
    background: var(--b2-brand-soft);
    color: var(--b2-brand-strong);
    font-size: 13px;
}
.select2-dropdown { border-color: var(--b2-line); border-radius: var(--b2-radius-sm); box-shadow: 0 12px 32px rgba(16, 24, 40, .12); font-family: var(--b2-font); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--b2-brand); }

@media (max-width: 600px) {
    .modal-dialog { margin: 24px auto; }
    .modal-header { padding: 20px 52px 6px 20px; }
    .modal-body { padding: 14px 20px 6px; }
    .modal-footer { padding: 14px 20px 20px; }
    .modal-footer .b2-btn, .modal-footer .btn { flex: 1; }
}

/* ==========================================================================
   Header menus: desktop mega menu, mobile full-screen sheet
   ========================================================================== */
.b2-nav__head, .b2-nav__backdrop, .b2-nav__icon { display: none; }

.b2-mega { position: relative; }
.b2-mega__trigger { display: inline-flex; align-items: center; gap: 6px; color: var(--b2-ink-2) !important; font-size: 15px; font-weight: 500; text-decoration: none !important; }
.b2-mega__trigger .fa { font-size: 13px; transition: transform .15s; }
.b2-mega__trigger:hover, .b2-mega__trigger.is-active { color: var(--b2-brand) !important; }
.b2-mega__panel {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    width: 720px;
    padding: 20px;
    background: var(--b2-surface);
    border: 1px solid var(--b2-line);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, .16);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity .15s, transform .15s, visibility 0s .15s;
    z-index: 60;
}
/* Invisible bridge so the panel stays open while the pointer travels down to it */
.b2-mega__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.b2-mega:hover .b2-mega__panel, .b2-mega:focus-within .b2-mega__panel {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity .15s, transform .15s, visibility 0s;
}
.b2-mega:hover .b2-mega__trigger .fa, .b2-mega:focus-within .b2-mega__trigger .fa { transform: rotate(180deg); }
.b2-mega__label { margin: 0 0 10px 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--b2-muted); }
.b2-mega__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; margin: 0; padding: 0; list-style: none; }
.b2-mega__grid a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--b2-radius-sm); text-decoration: none !important; }
.b2-mega__grid a:hover, .b2-mega__grid a:focus { background: var(--b2-canvas); }
.b2-mega__icon { width: 36px; height: 36px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--b2-brand-soft); color: var(--b2-brand); font-size: 15px; }
.b2-mega__text { display: flex; flex-direction: column; min-width: 0; }
.b2-mega__text strong { color: var(--b2-ink); font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b2-mega__text em { color: var(--b2-muted); font-size: 12px; font-style: normal; }
.b2-mega__all { display: inline-flex; align-items: center; gap: 6px; margin: 12px 0 0 8px; color: var(--b2-brand) !important; font-weight: 600; font-size: 14px; }

/* User dropdown (signed-in) */
.b2-nav .dropdown-menu { min-width: 200px; padding: 6px; margin-top: 12px; border: 1px solid var(--b2-line); border-radius: 12px; box-shadow: 0 16px 40px rgba(15, 23, 42, .14); }
.b2-nav .dropdown-menu > li > a { padding: 8px 12px; border-radius: var(--b2-radius-sm); color: var(--b2-ink-2); font-size: 14px; }
.b2-nav .dropdown-menu > li > a:hover { background: var(--b2-canvas); color: var(--b2-ink); }

@media (max-width: 991px) {
    /* Full-screen sheet instead of an inline list that pushes the page down */
    .b2-nav, .b2-nav.is-open {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        width: min(88vw, 380px);
        margin: 0;
        padding: 0 20px 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow-y: auto;
        background: var(--b2-surface);
        border: 0;
        box-shadow: -24px 0 64px rgba(15, 23, 42, .2);
        transform: translateX(105%);
        transition: transform .22s ease;
        visibility: hidden;
    }
    .b2-nav.is-open { transform: translateX(0); visibility: visible; }
    .b2-nav__backdrop { display: block; position: fixed; inset: 0; z-index: 999; background: rgba(15, 23, 42, .45); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
    .b2-nav.is-open + .b2-nav__backdrop { opacity: 1; visibility: visible; transition: opacity .2s; }
    html.b2-menu-open, html.b2-menu-open body { overflow: hidden; }

    .b2-nav__head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1; padding: 16px 0 12px; margin-bottom: 4px; background: var(--b2-surface); border-bottom: 1px solid var(--b2-line); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--b2-muted); }
    .b2-nav__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--b2-canvas); color: var(--b2-ink); font-size: 18px; }
    .b2-nav__icon { display: inline-block; width: 22px; margin-right: 10px; color: var(--b2-muted); text-align: center; }

    .b2-nav > a:not(.b2-btn), .b2-nav .b2-linkbtn { display: flex; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--b2-line); font-size: 16px; }
    .b2-nav .b2-btn { margin: 20px 0 0; min-height: 48px; font-size: 16px; }

    /* Categories become an always-open section of the sheet */
    .b2-mega { border-bottom: 1px solid var(--b2-line); padding: 14px 4px; }
    .b2-mega__trigger { font-size: 16px; font-weight: 600; }
    .b2-mega__trigger .fa { display: none; }
    .b2-mega__panel, .b2-mega:hover .b2-mega__panel, .b2-mega:focus-within .b2-mega__panel {
        position: static; width: auto; padding: 8px 0 0; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; background: none;
    }
    .b2-mega__panel::before, .b2-mega__label { display: none; }
    .b2-mega__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .b2-mega__grid a { padding: 8px 4px; }
    .b2-mega__icon { width: 32px; height: 32px; font-size: 14px; }
    .b2-mega__all { margin: 8px 0 0 4px; }

    .b2-header__toggle { margin-left: auto; }
}
@media (max-width: 991px) {
    /* Main links and the CTA first, then a short category list */
    .b2-nav__head { order: 0; }
    .b2-nav > a:not(.b2-btn), .b2-nav .b2-nav__user { order: 1; }
    .b2-nav .b2-btn { order: 2; margin: 20px 0 8px; }
    .b2-mega { order: 3; border-bottom: 0; margin-top: 12px; }
    .b2-mega__grid li:nth-child(n+9) { display: none; }
}

/* ==========================================================================
   Account menu (signed in)
   ========================================================================== */
.b2-account { position: relative; }
.b2-account__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--b2-line);
    border-radius: 999px;
    background: #fff;
    color: var(--b2-ink) !important;
    font: 500 14px var(--b2-font);
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.b2-account__trigger:hover, .b2-account.open .b2-account__trigger { border-color: var(--b2-line-strong); box-shadow: var(--b2-shadow); }
.b2-account__trigger .fa { color: var(--b2-muted); font-size: 13px; transition: transform .15s; }
.b2-account.open .b2-account__trigger .fa { transform: rotate(180deg); }
.b2-account__avatar {
    width: 30px;
    height: 30px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--b2-brand);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}
.b2-account__avatar--lg { width: 40px; height: 40px; font-size: 16px; }
.b2-account__name { max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.b2-nav .b2-account__menu {
    min-width: 260px;
    margin-top: 10px;
    padding: 8px;
    border: 1px solid var(--b2-line);
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, .16);
}
/* Invisible bridge over the gap, so moving the mouse from the trigger to the menu keeps it open */
.b2-nav .b2-account__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.b2-account__head { display: flex; align-items: center; gap: 12px; padding: 8px 10px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--b2-line); }
.b2-account__head span:last-child { display: flex; flex-direction: column; min-width: 0; }
.b2-account__head strong { color: var(--b2-ink); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b2-account__head em { color: var(--b2-muted); font-size: 13px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b2-account__menu > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border: 0 !important;
    border-radius: var(--b2-radius-sm);
    color: var(--b2-ink-2) !important;
    font-size: 14px;
    text-decoration: none !important;
}
.b2-account__menu > a .fa { width: 16px; text-align: center; color: var(--b2-muted); }
.b2-account__menu > a:hover { background: var(--b2-canvas); color: var(--b2-ink) !important; }
.b2-account__menu > a.b2-account__logout { margin-top: 6px; border-top: 1px solid var(--b2-line) !important; border-radius: 0 0 var(--b2-radius-sm) var(--b2-radius-sm); padding-top: 12px; }
.b2-account__menu > a.b2-account__logout:hover { background: #fdecec; color: #b42318 !important; }
.b2-account__menu > a.b2-account__logout:hover .fa { color: #b42318; }

@media (max-width: 991px) {
    /* In the mobile sheet the account menu is a plain, always-open section */
    .b2-account { order: 1; padding: 12px 0 4px; border-bottom: 1px solid var(--b2-line); }
    .b2-account__trigger { display: none; }
    .b2-nav .b2-account__menu, .b2-nav .b2-account.open .b2-account__menu {
        display: block; position: static; float: none; min-width: 0; margin: 0; padding: 0; border: 0; box-shadow: none; background: none;
    }
    .b2-account__head { padding: 4px 4px 12px; }
    .b2-account__menu > a { padding: 12px 4px; font-size: 16px; }
}

/* Search suggestions: beat the admin color palette's generic dropdown hover (loads after this file) */
.typeahead.dropdown-menu > li > a:hover,
.typeahead.dropdown-menu > li > a:focus,
.typeahead.dropdown-menu > .active > a,
.typeahead.dropdown-menu > .active > a:hover,
.typeahead.dropdown-menu > .active > a:focus,
.dropdown-menu > li.typeahead-item:hover > a {
    background: var(--b2-brand-soft) !important;
    color: var(--b2-ink) !important;
}

/* Sort dropdown: themed select2 instead of the OS-native blue list */
.b2-sort .select2-container .select2-selection--single {
    height: 38px;
    border: 1px solid var(--b2-line-strong);
    border-radius: var(--b2-radius-sm);
    font: 500 14px var(--b2-font);
    color: var(--b2-ink);
}
.b2-sort .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 36px; padding: 0 12px; color: var(--b2-ink); }
.b2-sort .select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: var(--b2-muted) transparent transparent; }
.b2-sort .select2-container--default.select2-container--open .select2-selection--single,
.b2-sort .select2-container--default.select2-container--focus .select2-selection--single { border-color: var(--b2-brand); box-shadow: 0 0 0 3px var(--b2-brand-soft); }

.select2-dropdown { border: 1px solid var(--b2-line) !important; border-radius: var(--b2-radius-sm) !important; overflow: hidden; box-shadow: 0 12px 32px rgba(16, 24, 40, .14); }
.select2-dropdown .select2-results__option { padding: 9px 14px; font-size: 14px; color: var(--b2-ink-2); }
.select2-dropdown .select2-results__option[aria-selected] { background: none; }
.select2-dropdown .select2-results__option--hover, .select2-dropdown .select2-results__option:hover { background: var(--b2-canvas); color: var(--b2-ink); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--b2-brand); color: #fff; }
.select2-container--default .select2-results__option[aria-selected=true]:not(.select2-results__option--highlighted) { background: var(--b2-brand-soft); color: var(--b2-brand-strong); font-weight: 600; }
.b2-sort ~ .select2-dropdown .select2-search--dropdown,
.select2-dropdown:has(#select2-o-results) .select2-search--dropdown { display: none; }
.b2-byline__tm { font-size: 12px; color: var(--b2-muted); }

/* Score formula strip on /how-we-score */
.b2-formula { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 20px 0; }
.b2-formula__box {
    flex: 1 1 150px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--b2-line);
    border-radius: var(--b2-radius);
    background: var(--b2-canvas);
}
.b2-formula__box .fa { color: var(--b2-brand); font-size: 18px; }
.b2-formula__box strong { font-size: 15px; color: var(--b2-ink); }
.b2-formula__box span { font-size: 13px; color: var(--b2-muted); line-height: 1.4; }
.b2-formula__box--result { background: var(--b2-brand); border-color: var(--b2-brand); }
.b2-formula__box--result strong, .b2-formula__box--result span { color: #fff; }
.b2-formula__box--result .fa { color: #fff; }
.b2-formula__op { align-self: center; font-size: 22px; font-weight: 700; color: var(--b2-muted); }
.b2-example { margin-top: 18px; padding: 14px 18px; border-left: 3px solid var(--b2-brand); border-radius: 0 var(--b2-radius-sm) var(--b2-radius-sm) 0; background: var(--b2-brand-soft); }
.b2-example p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--b2-ink-2); }
.b2-example__title { font-weight: 700; color: var(--b2-ink); margin-bottom: 4px !important; }
@media (max-width: 600px) { .b2-formula__op { width: 100%; text-align: center; } }

/* Manual AdSense units */
/* Collapsed until AdSense reports a filled unit, so blocked or unfilled ads leave
   no label or gap. Don't use display:none here: the unit needs a measurable width to load. */
.b2-ad { margin: 0; text-align: center; }
.b2-ad__label { display: none; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--b2-muted, #8a8f98); margin-bottom: 6px; }
.b2-ad:has(ins.adsbygoogle[data-ad-status="filled"]) { margin-bottom: 20px; }
.b2-ad:has(ins.adsbygoogle[data-ad-status="filled"]) .b2-ad__label { display: block; }
/* Inside the results grid, cancel the extra row gap while the item is empty. */
.b2-results > .b2-ad { list-style: none; margin-top: -12px; }
.b2-results > .b2-ad:has(ins.adsbygoogle[data-ad-status="filled"]) { margin: 0; }
.b2-ad ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

/* Write for us */
.b2-wfu-hero { padding-bottom: 36px; }
.b2-wfu-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: center; }
.b2-wfu-hero h1 { margin-top: 0; }
.b2-wfu-hero .b2-listing__summary { font-size: 18px; max-width: 620px; }
.b2-wfu-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.b2-wfu-offer { padding: 22px 24px; border: 1px solid #e8cfdd; border-radius: var(--b2-radius); background: var(--b2-brand-soft); }
.b2-wfu-offer p { margin: 0; }
.b2-wfu-offer__label { font-size: 13px; font-weight: 600; color: var(--b2-brand-strong); }
.b2-wfu-offer__value { margin-top: 4px !important; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--b2-ink); }
.b2-wfu-offer__code { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px !important; padding-top: 14px; border-top: 1px solid #e8cfdd; font-size: 13px; color: var(--b2-ink-2); }
.b2-wfu-offer__code code { padding: 6px 10px; border: 1px dashed var(--b2-brand); border-radius: 6px; background: #fff; color: var(--b2-brand-strong); font-size: 14px; font-weight: 700; letter-spacing: .04em; user-select: all; }
.b2-wfu-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: b2-step; }
.b2-wfu-steps li { counter-increment: b2-step; }
.b2-wfu-steps li::before { content: counter(b2-step); display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-bottom: 12px; border-radius: 50%; background: var(--b2-brand-soft); color: var(--b2-brand-strong); font-weight: 700; }
.b2-wfu-steps strong { display: block; margin-bottom: 4px; color: var(--b2-ink); font-size: 16px; }
.b2-wfu-steps span { display: block; color: var(--b2-ink-2); font-size: 14px; line-height: 1.55; }
.b2-wfu-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; scroll-margin-top: 180px; }
.b2-wfu-columns .b2-prose li { margin-bottom: 8px; }
.b2-wfu-warning { border-left: 3px solid #c2410c; }
.b2-wfu-warning .b2-prose p { margin: 0; }
.b2-wfu-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.b2-wfu-tags li { padding: 7px 12px; border: 1px solid var(--b2-line-strong); border-radius: 999px; color: var(--b2-ink-2); font-size: 14px; line-height: 1.35; }
.b2-wfu-topics { columns: 2; column-gap: 40px; margin: 0; padding: 0; list-style: none; }
.b2-wfu-topics li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--b2-line); color: var(--b2-ink-2); font-size: 15px; }
.b2-wfu-pitch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 0; }
.b2-wfu-pitch h2 { margin: 0 0 16px; font-size: 22px; font-weight: 700; line-height: 1.3; }
.b2-wfu-pitch p { color: var(--b2-ink-2); }
.b2-wfu-pitch ul { margin: 0; padding: 0; list-style: none; color: var(--b2-ink-2); }
.b2-wfu-pitch li { margin-bottom: 4px; }
.b2-wfu-pitch__actions p { margin: 14px 0 0; font-size: 14px; }
@media (max-width: 991px) {
    .b2-wfu-hero__grid, .b2-wfu-columns, .b2-wfu-pitch { grid-template-columns: minmax(0, 1fr); }
    .b2-wfu-hero__grid { gap: 24px; }
    .b2-wfu-columns { gap: 0; }
    .b2-wfu-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .b2-wfu-steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .b2-wfu-topics { columns: 1; }
    .b2-wfu-hero__actions .b2-btn { width: 100%; }
}

/* Legal pages */
.b2-legal h2 { scroll-margin-top: 180px; }
.b2-legal .b2-prose h2:first-child { margin-top: 0; }
.b2-legal-toc { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.b2-legal-toc li + li { margin-top: 8px; }
.b2-todo { padding: 1px 5px; border-radius: 4px; background: #fff3c4; color: #7a4f00; font-weight: 600; }
