/*!
 * BlueRack — features.css
 * Styling for site features (cookie consent, promo banner, newsletter,
 * callback widget, free tools, status page, blog, domain checker).
 * Aligned to the site theme: brand blue #1d4ac4, navy #050d37,
 * .box surfaces (white + soft shadow), 16px radius, Onest font.
 */

:root {
    --br-blue:   #1d4ac4;
    --br-blue-d: #163a9c;
    --br-navy:   #050d37;
    --br-green:  #00b076;
    --br-surface:#ffffff;
    --br-line:   #e2e8f2;
    --br-muted:  #5b6b82;
}

/* Reusable soft-card surface, matching the site's .box */
.br-surface {
    background: var(--br-surface);
    box-shadow: 0 4px 8px #0000000f, 0 0 2px #00000014, 0 0 1px #0000000f;
    border-radius: 16px;
}

/* Honeypot — visually hidden but present for bots */
.br-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Cookie consent ---------- */
.br-consent {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 1080;
    max-width: 760px; margin: 0 auto;
    background: var(--br-navy); color: #eaf1ff;
    border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.35);
    padding: 1.1rem 1.35rem;
    display: none; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.br-consent.is-visible { display: flex; }
.br-consent p { margin: 0; font-size: .9rem; line-height: 1.55; flex: 1 1 320px; }
.br-consent a { color: #9dc0ff; text-decoration: underline; }
.br-consent .br-consent-actions { display: flex; gap: .5rem; flex: 0 0 auto; }
.br-consent button { border: 0; border-radius: 8px; padding: .6rem 1.2rem; font-size: .85rem; font-weight: 600; cursor: pointer; }
.br-consent .br-accept { background: var(--br-blue); color: #fff; }
.br-consent .br-accept:hover { background: var(--br-blue-d); }
.br-consent .br-reject { background: transparent; color: #cdd9f2; border: 1px solid rgba(255,255,255,.28); }
.br-consent .br-reject:hover { background: rgba(255,255,255,.08); }

/* ---------- Promo banner (top bar) ---------- */
.br-promo { position: relative; }
.br-promo .br-promo-close {
    background: transparent; border: 0; color: inherit; opacity: .7;
    font-size: 1rem; line-height: 1; cursor: pointer; padding: 0 .25rem; margin-left: .5rem;
}
.br-promo .br-promo-close:hover { opacity: 1; }

/* ---------- Newsletter (footer) ---------- */
.br-newsletter { margin-top: 1.25rem; }
.br-newsletter form { display: flex; gap: .5rem; max-width: 420px; }
.br-newsletter input[type=email] {
    flex: 1; border: 1px solid #d4dcea; border-radius: 8px; padding: .6rem .8rem; font-size: .9rem;
}
.br-newsletter button {
    border: 0; border-radius: 8px; background: var(--br-blue); color: #fff;
    padding: .6rem 1.1rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.br-newsletter button:hover { background: var(--br-blue-d); }
.br-newsletter .br-form-note { font-size: .8rem; margin-top: .4rem; min-height: 1.1em; }
.br-form-note.ok  { color: var(--br-green); }
.br-form-note.err { color: #d64545; }

/* ---------- Floating callback widget ---------- */
.br-callback-fab {
    position: fixed; right: 18px; bottom: 90px; z-index: 1040;
    width: 54px; height: 54px; border-radius: 50%; border: 0;
    background: var(--br-green); color: #fff; font-size: 1.3rem; cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    display: flex; align-items: center; justify-content: center; transition: transform .15s ease;
}
.br-callback-fab:hover { transform: scale(1.06); }

/* ---------- Free tool page (dark hero + white search card) ---------- */
.tool-hero {
    position: relative; text-align: center; color: #fff;
    background-color: #050d37;
    background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 1px, transparent 1px 44px);
    padding: 150px 0 120px;
}
.tool-hero .header-subheading { color: #fff; }
.tool-hero h1 { color: #fff; font-size: 48px; font-weight: 700; line-height: 1.15; margin: 0; }
.tool-hero p { color: #dfe6f5; font-size: 16px; margin: 12px auto 0; max-width: 640px; }

.tool-card {
    position: relative; z-index: 2;
    max-width: 830px; margin: -80px auto 0;
    background: #fff; border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    padding: 24px;
}
.tool-card--wide { max-width: 920px; }
.tool-card-label { display: block; font-size: 16px; font-weight: 700; color: #212529; margin-bottom: 10px; }
.tool-card-intro { color: #6b7688; font-size: 15px; margin: -4px 0 20px; }

/* Form fields inside a tool card (migration request) */
.tool-card label { display: block; font-size: 14px; font-weight: 600; color: #212529; margin-bottom: 6px; }
.tool-card .form-control,
.tool-card select.form-control,
.tool-card textarea.form-control {
    width: 100%; border: .8px solid #d0d7de; border-radius: 6px; background: #f9fbfd;
    padding: 11px 14px; font-size: 15px; color: #212529; line-height: 1.4;
}
.tool-card .form-control:focus {
    outline: none; border-color: var(--br-blue); background: #fff; box-shadow: 0 0 0 3px #1d4ac41f;
}
.tool-card .req { color: #c0392b; }
.tool-card .alert { border-radius: 6px; font-size: 15px; }
.tool-input-wrap { position: relative; }
.tool-input {
    width: 100%; height: 60px; border: .8px solid #d0d7de; border-radius: 6px;
    background: #f9fbfd; font-size: 18px; padding: 0 62px 0 16px; color: #212529;
}
.tool-input:focus { outline: none; border-color: var(--br-blue); background: #fff; box-shadow: 0 0 0 3px #1d4ac41f; }
.tool-search-btn {
    position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
    width: 46px; height: 46px; border: 0; border-radius: 6px; cursor: pointer;
    background: var(--br-blue); color: #fff; display: flex; align-items: center; justify-content: center;
}
.tool-search-btn:hover { background: var(--br-blue-d); }
.tool-search-btn[disabled] { opacity: .6; cursor: progress; }

.tool-result { margin-top: 24px; display: none; }
.tool-result.is-visible { display: block; }
/* Used when the result is the only content in the card (no search form above) */
.tool-result--flush { margin-top: 0; }

/* Tools hub — grid of tool tiles overlapping the hero */
.tool-grid {
    position: relative; z-index: 2;
    max-width: 830px; margin: -80px auto 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}
.tool-tile {
    display: flex; align-items: flex-start; gap: 16px;
    background: #fff; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.1);
    padding: 22px; text-decoration: none; color: inherit;
    transition: transform .16s ease, box-shadow .16s ease;
}
.tool-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(5,13,55,.14); }
.tool-tile-icon {
    flex: 0 0 auto; width: 46px; height: 46px; border-radius: 8px;
    background: #eaf0ff; color: var(--br-blue);
    display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.tool-tile h2 { font-size: 17px; font-weight: 700; color: #212529; margin: 0 0 4px; }
.tool-tile p { font-size: 14px; line-height: 1.6; color: #6b7688; margin: 0; }
.tool-tile .tool-tile-go { display: block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--br-blue); }

@media (max-width: 767px) {
    .tool-grid { grid-template-columns: minmax(0, 1fr); margin: -70px 12px 0; }
}

/* IP display box + copy button (What is my IP) */
.tool-ip-row { display: flex; gap: 10px; align-items: stretch; }
.tool-ip-box {
    flex: 1; min-width: 0; height: 74px; display: flex; align-items: center; justify-content: center;
    background: #f9fbfd; border: .8px solid #d0d7de; border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 26px; letter-spacing: 1px; color: #212529; padding: 0 12px;
    overflow-x: auto; white-space: nowrap;
}
.tool-copy-btn {
    flex: 0 0 auto; width: 74px; border: 0; border-radius: 6px; cursor: pointer;
    background: #2f7bf6; color: #fff; display: flex; align-items: center; justify-content: center;
    transition: background .15s ease;
}
.tool-copy-btn:hover { background: var(--br-blue); }
.tool-copy-btn.copied { background: var(--br-green); }

/* Striped info table (no outer border), matching the IP information panel.
   Selectors are doubled up (.tool-table.tool-table--striped) so they outrank
   the base .tool-table th/td rules that are defined later in this file. */
.tool-table.tool-table--striped { border: 0; }
.tool-table.tool-table--striped th,
.tool-table.tool-table--striped td { border: 0; padding: 11px 14px; font-size: 15px; background: transparent; }
.tool-table.tool-table--striped th { font-weight: 400; color: #212529; width: 34%; }
.tool-table.tool-table--striped tbody tr:nth-child(odd) { background: #f2f2f3; }

/* Status page banner + component table */
.status-banner {
    display: flex; align-items: center; gap: 12px;
    border-radius: 6px; padding: 16px 20px; margin-bottom: 22px;
    font-size: 18px; font-weight: 700;
}
.status-banner.ok   { background: #e2f6ee; color: #0c8a5e; }
.status-banner.warn { background: #fdf2dd; color: #9a6a11; }
.status-banner.bad  { background: #fde4e4; color: #c0392b; }
.status-banner small { display: block; font-size: 14px; font-weight: 400; opacity: .85; margin-top: 2px; }
.status-dot { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; }
.status-dot.ok { background: #23c552; } .status-dot.warn { background: #e6a700; } .status-dot.bad { background: #e5484d; }
.status-name { font-weight: 600; color: #212529; }
.status-name small { display: block; font-weight: 400; color: #6b7688; font-size: 13px; margin-top: 2px; }
.tool-table.tool-table--striped td.status-cell { text-align: right; white-space: nowrap; width: 32%; }

/* Record-type filter pills (DNS lookup) */
.tool-pills { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 16px; }
.tool-pill {
    border: .8px solid var(--br-blue); background: transparent; color: var(--br-blue);
    border-radius: 4px; font-size: 12px; font-weight: 600; padding: 4px 10px; cursor: pointer;
    line-height: 1.5; transition: background .12s ease, color .12s ease;
}
.tool-pill:hover { background: #eaf0ff; }
.tool-pill.active { background: var(--br-blue); color: #fff; }
.tool-result h2 { font-size: 18px; font-weight: 700; color: #212529; margin: 22px 0 10px; }
.tool-result h2:first-child { margin-top: 0; }
.tool-table { width: 100%; border-collapse: collapse; border: .8px solid #f2f2f3; margin-bottom: 4px; }
.tool-table th, .tool-table td {
    font-size: 14px; padding: 8px; text-align: left; vertical-align: top;
    border: .8px solid #f2f2f3; color: #000; word-break: break-word;
}
.tool-table th { background: #f2f2f3; font-weight: 500; white-space: nowrap; width: 30%; }
.tool-raw {
    background: #f9fbfd; border: .8px solid #d0d7de; border-radius: 6px;
    padding: 14px; max-height: 420px; overflow: auto; margin: 0;
}
.tool-raw pre { margin: 0; font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #2a3446; }
.tool-error { color: #c0392b; font-size: 15px; margin: 0; }
.tool-note { color: var(--br-muted); font-size: 14px; margin-top: 10px; }

@media (max-width: 767px) {
    .tool-hero { padding: 130px 0 100px; }
    .tool-hero h1 { font-size: 32px; }
    .tool-card { margin-left: 12px; margin-right: 12px; padding: 18px; }
}

/* ---------- Tool forms + results ---------- */
.br-tool-box { max-width: 780px; margin: 0 auto; }
.br-badge { display: inline-block; padding: .18rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.br-badge.ok   { background: #e2f6ee; color: #0c8a5e; }
.br-badge.warn { background: #fdf2dd; color: #9a6a11; }
.br-badge.bad  { background: #fde4e4; color: #c0392b; }


/* ---------- Domain checker ---------- */
.br-domain-results { margin-top: 1.25rem; max-width: 720px; margin-left: auto; margin-right: auto; }
.br-domain-row {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .9rem 1.2rem; margin-bottom: .7rem;
    background: var(--br-surface); border-radius: 14px;
    box-shadow: 0 4px 8px #0000000f, 0 0 2px #00000014, 0 0 1px #0000000f;
    text-align: left;
}
.br-domain-row .dn { font-weight: 600; color: var(--br-navy); word-break: break-all; }
.br-domain-row .dn small { display: block; font-weight: 400; color: var(--br-muted); }
.br-domain-row .dprice { font-weight: 700; color: var(--br-navy); white-space: nowrap; }
.br-domain-row .button { height: 40px; line-height: 40px; padding: 0 1.1rem; font-size: .85rem; }

/* ---------- Blog ---------- */
.blog-hero { padding-top: 150px; padding-bottom: 10px; text-align: center; }
.blog-hero h1 { font-size: 45px; font-weight: 700; color: #040e39; margin-bottom: 14px; }
.blog-hero p { font-size: 20px; color: #5b6b82; max-width: 640px; margin: 0 auto; }

.blog-list { padding-top: 40px; padding-bottom: 56px; }
.blog-card { margin-bottom: 40px; }
.blog-card-cover { display: block; text-decoration: none; }

/* Gradient cover used in place of a photo */
.blog-cover {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden;
    padding: 20px; color: #fff; text-decoration: none;
}
.blog-cover-lg { aspect-ratio: 21 / 9; margin: 22px 0 30px; padding: 28px; }
.blog-cover-1 { background: linear-gradient(135deg, #1d4ac4 0%, #040e39 100%); }
.blog-cover-2 { background: linear-gradient(135deg, #0f7ea8 0%, #04263b 100%); }
.blog-cover-3 { background: linear-gradient(135deg, #5b3fd6 0%, #14093f 100%); }
.blog-cover-4 { background: linear-gradient(135deg, #00a37a 0%, #043a2b 100%); }
.blog-cover-cat {
    position: absolute; top: 18px; left: 20px; font-size: 12px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85);
}
.blog-cover-title { font-size: 20px; font-weight: 700; line-height: 1.3; color: #fff; }
.blog-cover-lg .blog-cover-title { font-size: 28px; }

.blog-tag {
    display: inline-block; background: #f0e8ff; color: #040d38;
    border-radius: 8px; padding: 2px 10px; font-size: 15px; font-weight: 500;
}
.blog-card .blog-tag { margin: 16px 0 10px; }
.blog-card-title { font-size: 19px; font-weight: 600; line-height: 1.4; margin: 0 0 8px; }
.blog-card-title a { color: var(--br-blue); text-decoration: none; }
.blog-card-title a:hover { text-decoration: underline; }
.blog-card-excerpt { color: var(--br-muted); font-size: 15px; line-height: 1.65; margin-bottom: 10px; }
.blog-card-meta { color: #90a0b8; font-size: 14px; margin: 0; }
.blog-dot { opacity: .6; margin: 0 2px; }

/* Single article */
.blog-single { padding-top: 140px; padding-bottom: 60px; }
.blog-single-inner { max-width: 760px; margin: 0 auto; }
.blog-title { font-size: 34px; font-weight: 700; color: #040e39; line-height: 1.25; margin: 14px 0 10px; }
.blog-single-meta { color: #90a0b8; font-size: 15px; margin: 0; }
.blog-body p, .blog-body li { color: #3a4658; font-size: 17px; line-height: 1.8; }
.blog-body p { margin-bottom: 16px; }
.blog-body h2 { font-size: 28px; font-weight: 700; color: #040e39; margin: 38px 0 14px; }
.blog-body h3 { font-size: 20px; font-weight: 600; color: #040e39; margin: 28px 0 10px; }
.blog-body ul, .blog-body ol { padding-left: 26px; margin-bottom: 18px; }
.blog-body ul { list-style: disc outside; }
.blog-body ol { list-style: decimal outside; }
.blog-body li { display: list-item; margin-bottom: 8px; }
.blog-body li::marker { color: var(--br-blue); }
.blog-body a { color: var(--br-blue); }
.blog-body strong { color: #2a3446; }
.blog-body code {
    background: #f2f5fa; border: 1px solid #e2e8f2; border-radius: 5px;
    padding: 2px 6px; font-size: .92em; color: #23408f;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.blog-body pre {
    background: #0d1836; color: #e7edfb; border-radius: 10px;
    padding: 16px 18px; overflow-x: auto; margin: 0 0 18px;
}
.blog-body pre code { background: none; border: 0; padding: 0; color: inherit; font-size: 14px; }

.blog-toc { background: #E6F5FF; border-radius: 12px; padding: 20px 24px; margin: 0 0 26px; }
.blog-toc strong { display: block; margin-bottom: 8px; color: #040e39; }
.blog-toc a { display: block; padding: 3px 0; color: var(--br-blue); }
.blog-cta { background: #E6F5FF; border-radius: 12px; padding: 22px 26px; margin: 34px 0 0; }
.blog-cta strong { display: block; margin-bottom: 6px; color: #040e39; font-size: 18px; }

.blog-more { margin-top: 44px; padding-top: 28px; border-top: 1px solid #eef1f7; }
.blog-more h2 { font-size: 22px; font-weight: 700; color: #040e39; margin-bottom: 18px; }
.blog-more-item {
    display: block; height: 100%; padding: 18px 20px; margin-bottom: 16px;
    border: 1px solid #e2e8f2; border-radius: 12px; text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.blog-more-item:hover { border-color: var(--br-blue); box-shadow: 0 6px 16px rgba(5,13,55,.06); }
.blog-more-title { display: block; margin-top: 10px; color: #040e39; font-weight: 600; font-size: 16px; line-height: 1.45; }

@media (max-width: 767px) {
    .blog-hero { padding-top: 130px; }
    .blog-hero h1 { font-size: 32px; }
    .blog-hero p { font-size: 17px; }
    .blog-single { padding-top: 130px; }
    .blog-title { font-size: 26px; }
    .blog-body h2 { font-size: 23px; }
}

.br-article { max-width: 780px; margin: 0 auto; }
.br-article h2 { margin-top: 2rem; }
.br-article h3 { margin-top: 1.5rem; }
.br-article p, .br-article li { line-height: 1.8; color: var(--br-muted); }
.br-article ul, .br-article ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.br-article ul { list-style: disc outside; }
.br-article ol { list-style: decimal outside; }
.br-article li { display: list-item; margin-bottom: .4rem; }
.br-article li::marker { color: var(--br-blue); }
.br-article .br-meta { color: #90a0b8; font-size: .9rem; margin-bottom: 2rem; }
.br-toc {
    background: #E6F5FF; border-radius: 16px; padding: 1.4rem 1.6rem; margin: 2rem 0;
}
.br-toc strong { display: block; margin-bottom: .5rem; color: var(--br-navy); }
.br-toc > a { display: block; padding: .2rem 0; color: var(--br-blue); }

/* ---------- Knowledge Base (category-grid landing, kb.* style) ---------- */
.kb-hero {
    position: relative; text-align: center; color: #fff;
    padding: 150px 0 60px;
    background: radial-gradient(120% 140% at 50% 0%, #12245f 0%, #0a1747 45%, #050d37 100%);
}
.kb-hero h1 { color: #fff; font-size: 40px; line-height: 1.1; font-weight: 700; margin: 0 0 20px; }
.kb-hero p { color: #dfe6f5; max-width: 720px; margin: 0 auto 14px; font-size: 17px; line-height: 1.7; }
.kb-hero-login {
    position: absolute; top: 118px; right: 24px;
    display: inline-block; padding: 10px 20px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,.55); color: #fff !important;
    font-size: 15px; font-weight: 600; text-decoration: none; transition: background .15s ease;
}
.kb-hero-login:hover { background: rgba(255,255,255,.12); color: #fff; }
.kb-breadcrumb { background: #0e1f56; }
.kb-breadcrumb .container { padding-top: 16px; padding-bottom: 16px; }
.kb-breadcrumb a, .kb-breadcrumb span { color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
.kb-breadcrumb i { margin-right: 8px; }

.kb-cats { padding-top: 56px; padding-bottom: 40px; }
.kb-cat-title {
    text-transform: uppercase; color: #2a3a6e; font-size: 16px; font-weight: 600;
    letter-spacing: .02em; margin-bottom: 14px;
}
.kb-cat-list { list-style: none; margin: 0; padding: 0; }
.kb-cat-list li { margin-bottom: 10px; }
.kb-cat-list a { color: #333; font-size: 16px; text-decoration: none; transition: color .15s ease; }
.kb-cat-list a:hover { color: var(--br-blue); }
.kb-viewmore { display: inline-block; margin-top: 4px; color: #6b7bb1; font-weight: 600; font-size: 15px; text-decoration: none; }
.kb-viewmore:hover { color: var(--br-blue); }

/* ---------- KB article page (docs layout) ---------- */
/* Article pages have no hero, so offset the first section below the fixed
   header (otherwise the breadcrumb + H1 render behind it). kb.js measures the
   real header height into --kb-header-h; 117px is the fallback before JS runs. */
.kb-article-page .kb-breadcrumb { margin-top: var(--kb-header-h, 117px); }
.kb-content h1, .kb-content h2, .kb-content h3 { scroll-margin-top: calc(var(--kb-header-h, 117px) + 14px); }
.kb-sidebar, .kb-toc { top: calc(var(--kb-header-h, 117px) + 3px); }
.kb-breadcrumb .kb-crumbs a { color: #fff; }
.kb-breadcrumb .kb-sep { opacity: .5; margin: 0 8px; font-size: 12px; }
.kb-breadcrumb .kb-current { color: #c7d2ec; font-weight: 400; }

.kb-doc { padding-top: 32px; padding-bottom: 56px; }
.kb-doc-grid {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr) 220px;
    gap: 40px;
    align-items: start;
}
.kb-sidebar { position: sticky; top: 120px; align-self: start; max-height: calc(100vh - 140px); overflow-y: auto; }

/* Sidebar search */
.kb-search { position: relative; margin-bottom: 18px; }
.kb-search > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #90a0b8; font-size: 14px; }
.kb-search input {
    width: 100%; height: 42px; padding: 0 12px 0 34px;
    border: 1px solid #d4dcea; border-radius: 8px; font-size: 14px; background: #fff;
}
.kb-search input:focus { outline: none; border-color: var(--br-blue); box-shadow: 0 0 0 3px #1d4ac41f; }
.kb-search-results {
    position: absolute; left: 0; right: 0; top: 46px; z-index: 30;
    background: #fff; border: 1px solid #e2e8f2; border-radius: 10px;
    box-shadow: 0 12px 30px rgba(5,13,55,.12); overflow: hidden;
}
.kb-search-results a { display: block; padding: 9px 12px; color: #2a3446; text-decoration: none; border-bottom: 1px solid #f0f3f8; }
.kb-search-results a:last-child { border-bottom: 0; }
.kb-search-results a:hover { background: #f5f8fc; }
.kb-search-results a small { display: block; color: #90a0b8; font-size: 12px; }
.kb-search-empty { padding: 10px 12px; color: #90a0b8; font-size: 14px; }

/* Sidebar nav tree */
.kb-sidebar-nav { font-size: 15px; }
.kb-sb-home { display: block; font-weight: 700; color: var(--br-navy); text-decoration: none; margin-bottom: 14px; }
.kb-sb-home i { color: var(--br-blue); margin-right: 6px; }
.kb-sb-group { border-top: 1px solid #eef1f7; }
.kb-sb-group > summary {
    list-style: none; cursor: pointer; padding: 11px 0; font-weight: 600; color: var(--br-navy);
    display: flex; align-items: center; gap: 10px;
}
.kb-sb-group > summary::-webkit-details-marker { display: none; }
.kb-sb-group > summary > i:first-child { color: var(--br-blue); width: 18px; text-align: center; }
.kb-sb-caret { margin-left: auto; font-size: 12px; color: #90a0b8; transition: transform .15s ease; }
.kb-sb-group[open] > summary .kb-sb-caret { transform: rotate(180deg); }
.kb-sb-group ul { list-style: none; margin: 0 0 8px; padding: 0 0 0 28px; }
.kb-sb-group li { margin: 0; }
.kb-sb-link { display: block; padding: 6px 10px; color: #4a5568; text-decoration: none; font-size: 14px; border-radius: 6px; border-left: 2px solid transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-sb-link:hover { color: var(--br-blue); background: #f5f8fc; }
.kb-sb-link.active { color: var(--br-blue); font-weight: 600; background: #eef3ff; border-left-color: var(--br-blue); }

/* Article content */
.kb-content { min-width: 0; max-width: 760px; }
.kb-content h1 { font-size: 30px; font-weight: 700; color: var(--br-navy); margin-bottom: 20px; line-height: 1.25; }
.kb-content h2 { font-size: 23px; font-weight: 600; color: var(--br-navy); margin: 34px 0 12px; padding-top: 6px; }
.kb-content h3 { font-size: 18px; font-weight: 600; color: var(--br-navy); margin: 24px 0 10px; }
.kb-content p, .kb-content li { color: #3a4658; line-height: 1.75; font-size: 16px; }
.kb-content p { margin-bottom: 14px; }
/* Restore list markers (the global reset sets list-style:none) */
.kb-content ul, .kb-content ol { padding-left: 26px; margin-bottom: 16px; }
.kb-content ol { list-style: decimal outside; }
.kb-content ul { list-style: disc outside; }
.kb-content li { display: list-item; margin-bottom: 8px; padding-left: 4px; }
.kb-content li::marker { color: var(--br-blue); font-weight: 600; }
.kb-content a { color: var(--br-blue); }
.kb-content strong { color: #2a3446; }

.kb-prevnext { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #eef1f7; }
.kb-pn {
    flex: 1; max-width: 48%; text-decoration: none; padding: 14px 16px;
    border: 1px solid #e2e8f2; border-radius: 12px; transition: border-color .15s ease, box-shadow .15s ease;
}
.kb-pn:hover { border-color: var(--br-blue); box-shadow: 0 6px 16px rgba(5,13,55,.06); }
.kb-pn.next { text-align: right; margin-left: auto; }
.kb-pn-label { display: block; font-size: 13px; color: #90a0b8; font-weight: 600; margin-bottom: 4px; }
.kb-pn-title { display: block; color: var(--br-navy); font-weight: 600; font-size: 15px; }

.kb-help-box { margin-top: 32px; background: #E6F5FF; border-radius: 14px; padding: 18px 22px; }
.kb-help-box strong { color: var(--br-navy); display: block; margin-bottom: 4px; }

/* On this page (TOC) */
.kb-toc { position: sticky; top: 120px; align-self: start; }
.kb-toc-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #90a0b8; margin-bottom: 10px; }
.kb-toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid #eef1f7; }
.kb-toc li { margin: 0; }
.kb-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: #6b7688; text-decoration: none; font-size: 14px; }
.kb-toc a:hover { color: var(--br-blue); }
.kb-toc a.active { color: var(--br-blue); border-left-color: var(--br-blue); font-weight: 600; }

.kb-sb-toggle {
    display: none; align-items: center; gap: 8px; margin-bottom: 18px;
    background: #fff; border: 1px solid #d4dcea; border-radius: 8px; padding: 10px 16px;
    font-weight: 600; color: var(--br-navy); cursor: pointer;
}

@media (max-width: 991px) {
    .kb-doc-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .kb-toc { display: none; }
    .kb-sb-toggle { display: inline-flex; }
    .kb-sidebar { position: static; max-height: none; overflow: visible; display: none;
        border: 1px solid #e2e8f2; border-radius: 12px; padding: 16px; margin-bottom: 8px; }
    .kb-sidebar.is-open { display: block; }
}

@media (max-width: 767px) {
    .kb-hero { padding-top: 130px; }
    .kb-hero h1 { font-size: 32px; }
    .kb-hero-login { position: static; display: inline-block; margin-bottom: 22px; }
    .kb-content h1 { font-size: 26px; }
    .kb-prevnext { flex-direction: column; }
    .kb-pn, .kb-pn.next { max-width: 100%; text-align: left; }
}

@media (max-width: 575px) {
    .br-consent { flex-direction: column; align-items: stretch; }
    .br-consent .br-consent-actions button { flex: 1; }
    .br-newsletter form { flex-direction: column; }
}
