/* ============================================================
   Blog Single Post — New Design
   Scoped under body.single-post to avoid global side effects
   ============================================================ */

/* ── CSS Custom Properties ── */
.single-post {
    --bs-blue:    #5274ec;
    --bs-dark:    #0d1b2e;
    --bs-teal:    #05ad9e;
    --bs-red:     #ea5347;
    --bs-gray-50: #f5f6f8;
    --bs-gray-100:#f1f3f5;
    --bs-gray-200:#e5e7eb;
    --bs-gray-400:#9ca3af;
    --bs-gray-600:#6b7280;
    --bs-gray-700:#4a5568;
    --bs-gray-800:#374151;
}


/* ── Page + header backgrounds ── */
.single-post #main {
    background: #f3f3f7;
}
.post-template-default.single.single-post .post-entry-header {
    background: #ffffff !important;
}

/* ============================================================
   HERO WRAP (breadcrumb + hero section)
   ============================================================ */
.bs-hero-wrap {
    background: #fff;
    border-bottom: 1px solid var(--bs-gray-200);
}

/* ── Breadcrumb ── */
.bs-breadcrumb {
    border-bottom: 1px solid var(--bs-gray-200);
}
.bs-bc-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 11px 40px;
    font-size: 13px;
    color: var(--bs-gray-600);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.bs-bc-inner a {
    color: var(--bs-gray-600);
    text-decoration: none;
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif;
}
.bs-bc-inner a:hover { color: var(--bs-blue); }
.bs-bc-sep { color: var(--bs-gray-400); font-size: 11px; }
.bs-bc-current {
    color: var(--bs-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 460px;
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif;
}

/* ── Hero ── */
.bs-hero {
    padding: 0 40px;
}
.bs-hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: center;
    padding: 44px 0;
}

/* ── Category pills ── */
.bs-hero-cats {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.bs-cat-pill {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    background: #eef1fd;
    color: var(--bs-blue);
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif;
    text-decoration: none;
}
/* Category color variants by slug */
.bs-cat-pill--dkim,
.bs-cat-pill--spf      { background: #fef3e2; color: #b45309; }
.bs-cat-pill--dmarc    { background: #eef1fd; color: var(--bs-blue); }
.bs-cat-pill--cybersecurity,
.bs-cat-pill--email-security { background: #fef0ee; color: var(--bs-red); }
.bs-cat-pill--email-deliverability,
.bs-cat-pill--email-deliverability-blog { background: #e6faf9; color: var(--bs-teal); }

/* ── Hero title ── */
.bs-hero-title {
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif !important;
    font-size: 42px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    line-height: 1.18 !important;
    color: var(--bs-dark) !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    letter-spacing: -0.01em !important;
    border: none !important;
    background: none !important;
}

/* ── Hero description ── */
.bs-hero-desc {
    font-size: 16px;
    color: var(--bs-gray-600);
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 580px;
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif;
}

/* ── Hero meta row (author + date + reading time) ── */
.bs-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif;
}
.bs-author-ava {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.bs-author-ava--initial {
    background: linear-gradient(135deg, var(--bs-blue) 0%, #8b9ff5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.bs-meta-info {
    font-size: 14px;
    color: var(--bs-gray-600);
}
.bs-meta-info strong {
    color: var(--bs-dark);
    font-weight: 500;
}
.bs-meta-sep { color: var(--bs-gray-400); }
.bs-reading-pill {
    font-size: 12px;
    background: var(--bs-gray-100);
    color: var(--bs-gray-600);
    padding: 4px 12px;
    border-radius: 20px;
}
.bs-hero-meta .rt-reading-time {
    font-size: 12px;
    background: var(--bs-gray-100);
    color: var(--bs-gray-600);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.bs-hero-meta .rt-reading-time::before { content: '⏱ '; }
.bs-hero-meta .rt-label { display: none; }

/* ── Hero visual (featured image or gradient fallback) ── */
.bs-hero-visual {
    height: 260px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.bs-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bs-hero-visual-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1a3a6e 0%, #5274ec 60%, #4dabf7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.bs-hero-visual-fallback::before {
    content: '';
    position: absolute;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    top: -100px; right: -80px;
}
.bs-hero-brand {
    position: absolute;
    top: 16px; right: 18px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.7);
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif;
    z-index: 2;
}
.bs-hero-fallback-inner {
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 2;
}
.bs-hero-icon {
    width: 72px; height: 72px;
    margin: 0 auto 14px;
    display: block;
}
.bs-hero-fallback-label {
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 7px;
    display: inline-block;
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif;
}

/* ============================================================
   PAGE BODY — 2-column grid
   ============================================================ */
.bs-page-body {
    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 15px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}

/* ============================================================
   ARTICLE COLUMN
   ============================================================ */
.bs-article-col {
    min-width: 0;
}

/* ── Inline share bar (above article) ── */
.bs-share-bar {
    background: #fff;
    border-radius: 10px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.bs-share-label {
    font-size: 13px;
    color: var(--bs-gray-600);
    flex: 1;
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif;
}
.bs-share-btn {
    width: 36px; height: 36px;
    border-radius: 8px;
    border: 0.5px solid var(--bs-gray-200);
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--bs-gray-700);
    transition: background 0.14s;
    text-decoration: none;
    flex-shrink: 0;
}
.bs-share-btn svg { width: 16px; height: 16px; }
.bs-share-btn:hover { background: var(--bs-gray-100); }
.bs-share-btn--fb  { color: #1877f2; border-color: #bdd5fb; background: #f0f5ff; }
.bs-share-btn--fb:hover  { background: #ddeaff; }
.bs-share-btn--li  { color: #0a66c2; border-color: #c8dff5; background: #f0f7ff; }
.bs-share-btn--li:hover  { background: #daeeff; }
.bs-share-btn--x   { color: #111; border-color: #d1d5db; }
.bs-share-btn--x:hover   { background: #f3f4f6; }
.bs-copy-btn {
    font-size: 12.5px;
    color: var(--bs-blue);
    background: #eef1fd;
    border: 0.5px solid #c7d3f9;
    border-radius: 7px;
    padding: 7px 14px;
    cursor: pointer;
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif;
    font-weight: 500;
    display: flex; align-items: center; gap: 5px;
    transition: background 0.14s;
}
.bs-copy-btn:hover { background: #dce2fb; }
.bs-copy-btn--copied { color: var(--bs-teal); border-color: #a7e8e4; background: #e6faf9; }

/* ── Article content wrapper ── */
.bs-content-wrap {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

/* ── Pre-hide Key Takeaways in its original editor position ─────────────────
   Prevents FOUC: the div is invisible via CSS the instant the stylesheet
   loads. Once JS moves it out of .entry-content and adds .bs-key-takeaways,
   this selector no longer matches and the card styles below apply. ── */
.single-post .bs-content-wrap .entry-content div[style*="border: 1px solid #ddd"] {
    display: none !important;
}

/* ── Key Takeaways card ─────────────────────────────────────────────────────
   JS moves this div before .bs-content-wrap so it floats on the grey page
   background. Styled to match designer spec: white card, 4px blue left
   border, custom heading dot, blue bullet list items. ── */
.single-post .bs-key-takeaways {
    background: #fff !important;
    border: none !important;
    border-left: 4px solid var(--bs-blue) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    padding: 24px 28px !important;
    max-width: 100% !important;
    margin: 0 0 20px !important;
    width: auto !important;
    position: static !important;
    top: auto !important;
    z-index: auto !important;
}

/* Heading — override WP editor inline font-weight and Enfold h2 size */
.single-post .bs-key-takeaways h2 {
    font-size: 15px !important;
    font-weight: 600 !important;
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif !important;
    color: var(--bs-dark) !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: none !important;
    display: flex;
    align-items: center;
    scroll-margin-top: 0 !important;
}
.single-post .bs-key-takeaways h2 span {
    font-weight: 600 !important;
}

/* List — no browser bullets; custom blue dot via ::before */
.single-post .bs-key-takeaways ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.single-post .bs-key-takeaways ul li {
    list-style: none !important;
    font-size: 14.5px !important;
    font-weight: 400 !important;
    color: var(--bs-gray-800) !important;
    line-height: 1.65 !important;
    padding-left: 18px !important;
    margin: 0 !important;
    position: relative;
}
.single-post .bs-key-takeaways ul li::before {
    content: '' !important;
    position: absolute;
    left: 0; top: 9px;
    width: 5px; height: 5px;
    background: var(--bs-blue);
    border-radius: 50%;
    opacity: 0.55;
}
.single-post .bs-key-takeaways ul li a {
    color: var(--bs-blue) !important;
}
.single-post .bs-key-takeaways ul li a:hover {
    text-decoration: underline;
}

/* ── Hide empty Enfold comments wrapper on the redesigned single post ── */
.single-post .bs-article-col .comment-entry {
    display: none !important;
}

/* ── Hide elements duplicated in the new hero ── */
.single-post .bs-content-wrap .big-preview,
.single-post .bs-content-wrap .post-featured-img { display: none !important; }

.single-post .bs-content-wrap .post-meta-infos { display: none !important; }
.single-post .bs-content-wrap .av-social-sharing-box { display: none !important; }
.single-post .bs-content-wrap .abh_box { display: none !important; }
.single-post .bs-content-wrap .blog-meta { display: none !important; }
.single-post .bs-content-wrap .post_author_timeline { display: none !important; }
.single-post .bs-content-wrap .post_delimiter { display: none !important; }

/* ── Hide inline TOC (moved to sidebar) ── */
.single-post .bs-content-wrap .table-of-contents,
.single-post .bs-content-wrap #toc_container,
.single-post .bs-content-wrap .ez-toc-container { display: none !important; }

/* ── Heading scroll offset — keeps heading below sticky 84px header ── */
.single-post .bs-content-wrap .entry-content h2,
.single-post .bs-content-wrap .entry-content h3,
.single-post .bs-content-wrap .entry-content h4 {
    scroll-margin-top: 130px;
}

/* ── Entry content typography ── */
.single-post .bs-content-wrap .entry-content-wrapper {
    padding: 28px 32px;
}
.single-post .bs-content-wrap .entry-content {
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif;
}
.single-post .bs-content-wrap .entry-content p {
    font-size: 15.5px;
    color: var(--bs-gray-800);
    line-height: 1.8;
    margin-bottom: 16px;
}
.single-post .bs-content-wrap .entry-content h2 {
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: var(--bs-dark) !important;
    margin: 32px 0 18px !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid var(--bs-gray-100) !important;
    letter-spacing: -0.01em !important;
    line-height: 1.3 !important;
}
.single-post .bs-content-wrap .entry-content h2:first-child {
    margin-top: 0 !important;
}
.single-post .bs-content-wrap .entry-content h3 {
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    color: var(--bs-dark) !important;
    margin: 24px 0 10px !important;
}
.single-post .bs-content-wrap .entry-content h4 {
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--bs-dark) !important;
    margin: 20px 0 8px !important;
}
.single-post .bs-content-wrap .entry-content a {
    color: var(--bs-blue);
    text-decoration: none;
}
.single-post .bs-content-wrap .entry-content a:hover { text-decoration: underline; }
.single-post .bs-content-wrap .entry-content ul,
.single-post .bs-content-wrap .entry-content ol {
    padding-left: 22px;
    margin-bottom: 16px;
}
.single-post .bs-content-wrap .entry-content li {
    font-size: 15.5px;
    color: var(--bs-gray-800);
    line-height: 1.75;
    margin-bottom: 6px;
}
.single-post .bs-content-wrap .entry-content strong { color: var(--bs-dark); }
.single-post .bs-content-wrap .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.single-post .bs-content-wrap .entry-content .entry-footer {
    border-top: 1px solid var(--bs-gray-100);
    padding-top: 16px;
    margin-top: 24px;
}

/* ── Comments ── */
.single-post .bs-article-col .comment-entry {
    background: #fff;
    border-radius: 10px;
    padding: 24px 32px;
    margin-top: 20px;
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.bs-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 84px;
    /* Phase 1 (reading): pinned to the viewport with overflow hidden, so the
       TOC sits at the top and any lower cards that don't fit are cleanly
       clipped below the fold.
       Phase 2 (JS adds .bs-sidebar--phase2 once the reader reaches the
       FAQ / last section): the TOC is hidden, freeing the full column height
       so Share + Checker form + all (up to 4) Related items show in full. */
    height: calc(100vh - 84px);
    overflow: hidden;
}
/* Phase 2 — TOC is hidden by JS. The column grows to its content height and
   never clips, so Share + Checker + all (up to 4) Related items are shown in
   full. On a normal laptop viewport the compact stack fits without scrolling;
   on an unusually short window the panel simply extends below the fold (the
   page scrolls) rather than cutting any card. */
.bs-sidebar.bs-sidebar--phase2 {
    height: auto;
    overflow: visible;
}

/* ── Generic sidebar card ── */
.bs-s-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}
.bs-s-card-header {
    padding: 11px 18px 9px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--bs-gray-400);
    border-bottom: 1px solid var(--bs-gray-100);
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif;
}
.bs-s-card-header svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── TOC card — natural height, sits at the top of the column during
   Phase 1; JS hides it (display:none) the moment the reader reaches the
   FAQ / last section, handing the whole column to the cards below. ── */
.bs-toc-card { flex: 0 0 auto; }
.bs-toc-card .bs-toc-body { padding: 5px 0; }

/* Override TOC plugin default styles inside sidebar */
.bs-toc-card .table-of-contents,
.bs-toc-card #toc_container,
.bs-toc-card .ez-toc-container {
    display: block !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    float: none !important;
}
.bs-toc-card .toc-headline,
.bs-toc-card .toc_title,
.bs-toc-card .ez-toc-title,
.bs-toc-card .toggle-toc {
    display: none !important;
}
.bs-toc-card .table-of-contents > ul,
.bs-toc-card #toc_container > ul.toc_list,
.bs-toc-card .ez-toc-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.bs-toc-card .table-of-contents li,
.bs-toc-card .toc_list li,
.bs-toc-card .ez-toc-list li {
    position: relative;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.bs-toc-card .table-of-contents a,
.bs-toc-card .toc_list a,
.bs-toc-card .ez-toc-list a {
    display: block !important;
    padding: 6px 18px 6px 18px !important;
    font-size: 14px !important;
    color: var(--bs-gray-600) !important;
    border-left: 2px solid transparent !important;
    line-height: 1.45 !important;
    transition: all 0.14s !important;
    text-decoration: none !important;
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif !important;
    font-weight: 400 !important;
    background: transparent !important;
}
.bs-toc-card .table-of-contents a:hover,
.bs-toc-card .toc_list a:hover,
.bs-toc-card .ez-toc-list a:hover {
    color: var(--bs-blue) !important;
    background: #f8f9ff !important;
    border-left-color: var(--bs-blue) !important;
}
.bs-toc-card .table-of-contents a.active,
.bs-toc-card .table-of-contents a.current,
.bs-toc-card .toc_list a.active,
.bs-toc-card .ez-toc-list a.active {
    color: var(--bs-blue) !important;
    background: #eef1fd !important;
    border-left-color: var(--bs-blue) !important;
    font-weight: 500 !important;
}
/* Sub-items */
.bs-toc-card .table-of-contents ul a,
.bs-toc-card .toc_list ul a,
.bs-toc-card .ez-toc-list ul a {
    padding-left: 30px !important;
    font-size: 13px !important;
    color: var(--bs-gray-400) !important;
}

/* ── Sidebar share card ── */
.bs-share-card { }
.bs-share-btns-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 16px;
    flex-wrap: wrap;
}
.bs-s-share-btn {
    width: 36px; height: 36px;
    border-radius: 8px;
    border: 0.5px solid var(--bs-gray-200);
    background: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--bs-gray-600);
    transition: all 0.14s;
    text-decoration: none;
    flex-shrink: 0;
}
.bs-s-share-btn svg { width: 16px; height: 16px; }
.bs-s-share-btn:hover { background: var(--bs-gray-50); }
.bs-s-share-btn--li  { color: #0a66c2; border-color: #c8dff5; background: #f0f7ff; }
.bs-s-share-btn--li:hover  { background: #daeeff; }
.bs-s-share-btn--x   { color: #111; border-color: #d1d5db; }
.bs-s-share-btn--x:hover   { background: #f3f4f6; }
.bs-s-share-btn--fb  { color: #1877f2; border-color: #bdd5fb; background: #f0f5ff; }
.bs-s-share-btn--fb:hover  { background: #ddeaff; }
.bs-s-share-btn--copy {
    width: auto;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif;
    gap: 6px;
    color: var(--bs-blue);
    border-color: #c7d3f9;
    background: #eef1fd;
    margin-left: auto;
}
.bs-s-share-btn--copy:hover { background: #dce2fb; }
.bs-s-share-btn--copy.copied { color: var(--bs-teal); border-color: #a7e8e4; background: #e6faf9; }

/* ── Domain CTA widget ── */
.bs-domain-cta {
    background: linear-gradient(160deg, #0a1628 0%, #152d5c 100%);
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.bs-domain-cta-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f3f3f7;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif;
    position: relative;
}
.bs-domain-cta-eyebrow span {
    width: 5px; height: 5px;
    background: var(--bs-blue);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 3px rgba(82,116,236,0.3);
    flex-shrink: 0;
}
.bs-domain-cta-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 8px;
    position: relative;
}
.bs-domain-cta-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}
.bs-domain-cta h3 {
    font-size: 20px !important;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 !important;
    color: #fff;
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif;
    position: relative;
}
.bs-domain-cta > p {
    font-size: 12px;
    color: #f3f3f7;
    line-height: 1.4;
    margin: 0 0 8px;
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif;
    position: relative;
}
.bs-domain-input-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}
.bs-domain-input {
    width: 100%;
    /* !important throughout to beat Enfold's #top input[type=text] (1,1,1),
       which otherwise forces a white background, grey text and a 1px border —
       that made the white "yourdomain.com" placeholder invisible. */
    background: rgba(255,255,255,0.09) !important;
    border: none !important;
    border-radius: 8px !important;
    /* !important again: Enfold's #top input sets a `font:` shorthand and
       `padding: 8px 6px` (1,1,1) that otherwise override the family, size
       and the 14px left padding below. */
    padding: 9px 8px 9px 14px !important;
    font-size: 15px !important;
    font-family: 'muli', Helvetica, Arial, sans-serif !important;
    color: #fff !important;
    outline: none;
    margin-bottom: 10px !important;
    transition: border-color 0.15s, background 0.15s;
}
.bs-domain-input::placeholder { color: rgba(255,255,255,0.55) !important; }
.bs-domain-input:focus {
    background: rgba(255,255,255,0.13) !important;
}
.bs-domain-check-btn {
    width: 100%;
    background: var(--bs-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.bs-domain-check-btn svg { width: 14px; height: 14px; }
.bs-domain-check-btn:hover { background: #4060d4; }
.bs-domain-trust {
    font-size: 12.5px;
    color: rgba(255,255,255,0.32);
    text-align: center;
    margin-top: 10px;
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif;
}

/* ── Related articles card — fixed natural height: never shrinks, never
   scrolls, so all (up to 4) items are always fully visible and uncut. ── */
.bs-related-card { flex: 0 0 auto; height: auto; }
.bs-related-item {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 6px 16px;
    border-bottom: 1px solid var(--bs-gray-100);
    text-decoration: none;
    transition: background 0.12s;
}
.bs-related-item:last-child { border-bottom: none; }
.bs-related-item:hover { background: #f8f9ff; }
.bs-related-item:hover .bs-related-title { color: var(--bs-blue); }
.bs-related-thumb {
    width: 40px; height: 40px;
    border-radius: 7px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #eef1fd;
    color: var(--bs-gray-400);
}
.bs-related-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 7px;
}
/* Color variants for thumb background by category */
.bs-related-thumb--dkim,
.bs-related-thumb--spf  { background: #fef3e2; }
.bs-related-thumb--dmarc { background: #eef1fd; }
.bs-related-thumb--cybersecurity,
.bs-related-thumb--email-security { background: #fef0ee; }
.bs-related-thumb--email-deliverability,
.bs-related-thumb--email-deliverability-blog { background: #e6faf9; }
.bs-related-title {
    font-size: 14px;
    color: var(--bs-gray-800);
    line-height: 1.34;
    font-weight: 500;
    transition: color 0.12s;
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif;
    /* Clamp to 2 lines so a long headline can't blow up the item height and
       push related articles out of the Phase-2 viewport. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bs-related-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 1px 7px;
    border-radius: 4px;
    margin-top: 3px;
    background: #eef1fd;
    color: var(--bs-blue);
    font-family: 'Mulish', 'Muli', Helvetica, Arial, sans-serif;
}
.bs-related-tag--dkim,
.bs-related-tag--spf  { background: #fef3e2; color: #b45309; }
.bs-related-tag--dmarc { background: #eef1fd; color: var(--bs-blue); }
.bs-related-tag--cybersecurity,
.bs-related-tag--email-security { background: #fef0ee; color: var(--bs-red); }
.bs-related-tag--email-deliverability,
.bs-related-tag--email-deliverability-blog { background: #e6faf9; color: var(--bs-teal); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: hide hero visual, narrow hero */
@media (max-width: 1024px) {
    .bs-hero-inner {
        grid-template-columns: 1fr;
    }
    .bs-hero-visual { display: none; }
    .bs-page-body {
        grid-template-columns: 1fr 280px;
        padding: 24px 24px;
    }
    .bs-hero { padding: 0 24px; }
    .bs-bc-inner { padding: 11px 24px; }
    /* Tablet: un-pin the sidebar and disable the TOC→content phase swap
       (see blog-post.js, STATIC_BP) so every card — TOC, Scan Your Domain,
       Share and all Related items — is shown in full instead of being
       clipped below the fold by the pinned column's overflow:hidden. */
    .bs-sidebar {
        position: static;
        height: auto;
        overflow: visible;
    }
}

/* Mobile: full single column */
@media (max-width: 768px) {
    .bs-hero-title { font-size: 30px !important; }
    .bs-hero-desc  { font-size: 15px; }
    .bs-hero { padding: 0 16px; }
    .bs-bc-inner { padding: 11px 16px; }
    .bs-page-body {
        grid-template-columns: 1fr;
        padding: 16px 16px;
        gap: 20px;
    }
    /* Sidebar is already un-pinned from the ≤1024px breakpoint above; here it
       simply drops into the single-column flow. */
    .bs-share-bar { flex-wrap: wrap; }
    .single-post .bs-content-wrap .entry-content-wrapper {
        padding: 20px 18px;
    }
    .bs-domain-cta { border-radius: 10px; }
}
