/*
 * SBN Developer Notes.
 * Scope: insights/blog archives, single articles, share UI, author cards, related cards.
 * Used by: blog home, insights archive, single post, single insight, search cards.
 * Edit risk: high; many editorial templates share these card classes.
 * QA: archive grid, long titles, featured images, share rail, author bio, related posts.
 */

/* ==========================================================================
   INSIGHTS & BLOG (archive + single)
   ========================================================================== */

.sbn-magazine-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: var(--sbn-section-space-tight) var(--sbn-dynamic-edge) var(--sbn-section-space);
    align-items: start;
}

.sbn-filter-bar {
    background: #fff;
    border: 1px solid var(--sbn-mist);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    box-shadow: 0 2px 8px rgba(15,30,61,0.04);
}

.sbn-cats-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.sbn-cat-pill {
    padding: 7px 18px;
    border-radius: var(--sbn-radius-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    border: 1.5px solid var(--sbn-mist);
    color: var(--sbn-ink);
    background: var(--sbn-paper);
    transition: all 0.18s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.sbn-cat-pill:hover {
    border-color: var(--sbn-navy);
    color: var(--sbn-navy);
    background: #fff;
    transform: translateY(-1px);
}
.sbn-cat-pill.active,
.sbn-cat-pill[aria-current="true"] {
    background: var(--sbn-navy);
    color: var(--sbn-cream);
    border-color: var(--sbn-navy);
}

.sbn-search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--sbn-mist);
    border-radius: var(--sbn-radius-pill);
    min-height: 48px;
    padding: 0 10px 0 16px;
    background: var(--sbn-paper);
    width: 240px;
    transition: border-color 0.18s;
}
.sbn-search-wrapper:focus-within {
    border-color: var(--sbn-gold);
    background: #fff;
}
.sbn-search-wrapper input {
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--sbn-navy);
    outline: none;
    width: 100%;
    min-width: 0;
    padding: 0;
    line-height: 1.2;
    font-family: var(--sbn-sans);
}
.sbn-search-wrapper input::placeholder {
    color: var(--sbn-mist);
}

.sbn-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--sbn-mist);
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease;
}

.sbn-search-submit .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
}

.sbn-search-submit:hover,
.sbn-search-submit:focus-visible {
    color: var(--sbn-gold);
    background: rgba(201, 163, 90, 0.08);
    outline: none;
}

/* Editorial grid (cards) */
.sbn-editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.sbn-editorial-card {
    border: 1.5px solid var(--sbn-mist);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: all 0.22s ease;
}
.sbn-editorial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(15,30,61,0.1);
    border-color: rgba(201,163,90,0.4);
}

.sbn-card-img-frame {
    background: linear-gradient(135deg, var(--sbn-cream) 0%, #ede6d6 100%);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1.5px solid var(--sbn-mist);
}
.sbn-card-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sbn-card-content-frame {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 8px;
}

.sbn-card-title {
    font-family: var(--sbn-serif);
    font-size: 19px;
    color: var(--sbn-navy);
    line-height: 1.3;
    margin: 0 0 8px;
    font-weight: 400;
}
.sbn-card-title a {
    text-decoration: none;
    color: inherit;
}

.sbn-editorial-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 13px;
    border-radius: var(--sbn-radius-pill);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    width: fit-content;
    border: 1px solid transparent;
}
.sbn-tag-strategy  { background: #deedfb; color: #1a4a8a; }
.sbn-tag-growth    { background: #dff5ea; color: #1a5a2a; }
.sbn-tag-leadership{ background: #faeeda; color: #7a4a10; }
.sbn-tag-marketing { background: #fbe8e0; color: #8a3a1a; }

/* Featured insight */
.sbn-editorial-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1.5px solid var(--sbn-mist);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 40px;
    background: #fff;
}
.sbn-feat-img-frame {
    background: linear-gradient(160deg, var(--sbn-navy) 0%, #1a3560 100%);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1.5px solid var(--sbn-mist);
}
.sbn-feat-content-frame {
    padding: 44px 40px;
}
.sbn-editorial-title {
    font-family: var(--sbn-serif);
    font-size: 26px;
    color: var(--sbn-navy);
    margin-bottom: 12px;
    font-weight: 400;
}
.sbn-editorial-desc {
    font-size: 15px;
    color: var(--sbn-ink);
    opacity: 0.8;
    line-height: 1.6;
}

/* Sidebar */
.sbn-sidebar {
    position: sticky;
    top: var(--sbn-sticky-offset);
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.sbn-newsletter-widget {
    background: var(--sbn-navy);
    border-radius: 14px;
    padding: 30px;
    color: var(--sbn-cream);
}
.sbn-newsletter-widget h4 {
    font-family: var(--sbn-serif);
    font-size: 22px;
    margin: 0 0 8px;
    font-weight: 400;
}
.sbn-newsletter-widget input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: white;
}

/* ===== SINGLE INSIGHT ===== */
.insight-hero {
    background: var(--sbn-navy);
    padding: var(--sbn-section-space) var(--sbn-dynamic-edge);
}
.insight-hero-inner {
    max-width: 760px;
}
.tag-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}
.i-tag {
    display: inline-flex;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(201,147,90,0.15);
    color: var(--sbn-gold);
}
.insight-hero h1 {
    font-family: var(--sbn-serif);
    font-size: clamp(40px, 5vw, 50px);
    color: var(--sbn-cream);
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 18px;
}
.insight-standfirst {
    font-size: 18px;
    color: rgba(248,245,240,0.65);
    line-height: 1.65;
    margin-bottom: 28px;
}
.insight-author-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 0.5px solid rgba(248,245,240,0.1);
}
.av-lg {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--sbn-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--sbn-navy);
}
.author-name { font-size: 14px; font-weight: 500; color: var(--sbn-cream); }
.author-role { font-size: 12px; color: rgba(248,245,240,0.4); }

.insight-img {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    border-bottom: 0.5px solid var(--sbn-mist);
}
.insight-img img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.insight-layout {
    display: grid;
    grid-template-columns: 56px 1fr 280px;
    gap: 0;
    align-items: start;
    background: #fff;
    max-width: calc(var(--sbn-max-width) + 96px);
    margin: 0 auto;
    width: 100%;
}

/* Social rail */
.social-rail {
    padding: 40px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border-right: 0.5px solid var(--sbn-mist);
}

.social-rail p {
    display: contents;
    margin: 0;
}

.sbn-share-rail-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.social-rail-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sbn-mist);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}
.rail-btn {
    width: 36px;
    height: 36px;
    border: 0.5px solid var(--sbn-mist);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff;
    color: var(--sbn-navy);
    text-decoration: none;
}

.rail-btn:hover,
.rail-btn:focus-visible {
    border-color: var(--sbn-gold);
    background: var(--sbn-navy);
    color: var(--sbn-cream);
    outline: none;
}
.like-count { font-size: 11px; color: var(--sbn-mist); }

/* Main content */
.insight-body {
    padding: 48px 48px 64px 40px;
    border-right: 0.5px solid var(--sbn-mist);
}
.insight-body p {
    font-size: 16px;
    line-height: 1.85;
    margin-bottom: 22px;
}
.insight-body h2 {
    font-family: var(--sbn-serif);
    font-size: 30px;
    margin: 40px 0 16px;
    font-weight: 400;
}
.callout {
    background: var(--sbn-paper);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 28px 0;
}
.key-takeaways {
    background: var(--sbn-navy);
    border-radius: 12px;
    padding: 28px;
    margin: 32px 0;
}
.share-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px 0;
    margin: 32px 0 0;
    border-top: 0.5px solid var(--sbn-mist);
}
.author-card {
    background: var(--sbn-paper);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 16px;
    margin-top: 32px;
}
.author-card-av {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--sbn-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sbn-gold);
}

/* Sidebar inside single */
.sidebar {
    padding: 40px 28px;
}
.sb-title {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sbn-gold);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sb-cta {
    background: var(--sbn-navy);
    border-radius: 12px;
    padding: 20px;
}
.sb-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 12px 24px;
    text-align: center;
    background: var(--sbn-gold);
    color: var(--sbn-navy);
    border-radius: var(--sbn-radius-btn);
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.sb-cta-btn:hover,
.sb-cta-btn:focus-visible {
    background: #b8963f;
    color: var(--sbn-navy);
    text-decoration: none !important;
}

.sb-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 163, 90, 0.25);
}

/* More insights */
.more-insights {
    padding: var(--sbn-section-space-tight) var(--sbn-dynamic-edge);
    background: var(--sbn-paper);
    border-top: 0.5px solid var(--sbn-mist);
}
.more-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}
.rel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.rel-card {
    background: #fff;
    border: 0.5px solid var(--sbn-mist);
    border-radius: 10px;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 1000px) {
    .sbn-magazine-layout {
        grid-template-columns: 1fr;
    }
    .sbn-sidebar {
        position: static;
    }
    .insight-layout {
        grid-template-columns: 1fr;
    }
    .social-rail {
        flex-direction: row;
        justify-content: center;
        padding: 20px;
        border-right: none;
        border-bottom: 0.5px solid var(--sbn-mist);
    }
    .insight-body {
        padding: 32px var(--sbn-dynamic-edge);
        border-right: none;
    }
    .sidebar {
        padding: 32px var(--sbn-dynamic-edge);
    }
    .rel-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 767px) {
    .sbn-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .sbn-search-wrapper {
        width: 100%;
    }
}

/* ===== UNIFIED SINGLE ARTICLE LAYOUT ===== */
.sbn-single-hero {
    background: var(--sbn-navy);
    padding: var(--sbn-section-space) var(--sbn-dynamic-edge);
    color: var(--sbn-cream);
}

.sbn-single-hero-inner {
    max-width: var(--sbn-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
}

.sbn-single-hero-copy {
    min-width: 0;
}

.sbn-single-hero .sbn-section-label {
    margin-bottom: 22px;
}

.sbn-single-hero .sbn-section-label a {
    color: var(--sbn-gold);
    text-decoration: none;
}

.sbn-single-taxonomy-wrap {
    margin-bottom: 22px;
}

.sbn-taxonomy-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sbn-taxonomy-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid rgba(195, 204, 210, 0.64);
    border-radius: var(--sbn-radius-pill);
    background: rgba(250, 246, 236, 0.9);
    color: var(--sbn-ink);
    font-family: var(--sbn-sans);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.sbn-taxonomy-pill strong {
    font-weight: 700;
}

.sbn-taxonomy-pill--category,
.sbn-taxonomy-pill--insight-category {
    border-color: rgba(201, 163, 90, 0.34);
    background: rgba(201, 163, 90, 0.1);
}

.sbn-taxonomy-pill--member-chapter {
    border-color: rgba(111, 138, 106, 0.34);
    background: rgba(111, 138, 106, 0.1);
}

.sbn-taxonomy-pill--member-industry {
    border-color: rgba(47, 110, 134, 0.3);
    background: rgba(47, 110, 134, 0.1);
}

.sbn-taxonomy-pills--hero .sbn-taxonomy-pill {
    border-color: rgba(245, 239, 227, 0.2);
    background: rgba(245, 239, 227, 0.08);
    color: var(--sbn-cream);
}

.sbn-taxonomy-pills--sidebar {
    gap: 8px;
    margin-bottom: 14px;
}

.sbn-taxonomy-pills--sidebar .sbn-taxonomy-pill {
    background: var(--sbn-paper);
}

.sbn-taxonomy-pill:hover,
.sbn-taxonomy-pill:focus-visible {
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}

.sbn-single-hero h1,
.sbn-single-hero .wp-block-post-title {
    font-family: var(--sbn-serif);
    font-size: clamp(42px, 5vw, 64px);
    color: var(--sbn-cream);
    font-weight: 400;
    line-height: 1.05;
    margin: 0 0 22px;
    max-width: 820px;
}

.sbn-single-standfirst {
    font-size: 18px;
    color: rgba(245, 239, 227, 0.72);
    line-height: 1.65;
    max-width: 660px;
    margin: 0 0 28px;
}

.sbn-single-standfirst.wp-block-post-excerpt {
    color: rgba(245, 239, 227, 0.72);
}

.sbn-single-standfirst p,
.sbn-single-standfirst .wp-block-post-excerpt__excerpt {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.sbn-single-standfirst:empty {
    display: none;
}

.sbn-single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(245, 239, 227, 0.12);
    color: rgba(245, 239, 227, 0.68);
}

.sbn-single-meta .sbn-author-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sbn-single-meta .sbn-author-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sbn-single-meta .sbn-author-text strong,
.sbn-single-meta .author-name {
    color: var(--sbn-cream);
    font-family: var(--sbn-sans);
    font-size: 14px;
    font-weight: 600;
}

.sbn-single-meta .sbn-author-text span,
.sbn-single-meta .author-role,
.sbn-single-meta .meta-item {
    color: rgba(245, 239, 227, 0.56);
    font-family: var(--sbn-sans);
    font-size: 13px;
}

.meta-sep {
    width: 1px;
    height: 28px;
    background: rgba(245, 239, 227, 0.16);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.sbn-single-hero-media {
    margin: 0;
    width: min(100%, 420px);
    max-width: 420px;
    justify-self: end;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(245, 239, 227, 0.08);
    border: 1px solid rgba(245, 239, 227, 0.12);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

.sbn-single-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sbn-single-hero-media figcaption,
.sbn-single-hero-media figcaption:empty,
.insight-img,
.sbn-featured-image {
    display: none;
}

.sbn-single-layout {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 320px;
    gap: 0;
    align-items: start;
    background: #fff;
    max-width: calc(var(--sbn-max-width) + 96px);
    margin: 0 auto;
    width: 100%;
}

.sbn-single-body {
    padding: 48px 48px 64px 40px;
    border-right: 0.5px solid var(--sbn-mist);
    min-width: 0;
    overflow-wrap: anywhere;
}

.sbn-single-body > * + * {
    margin-top: 22px;
}

.sbn-single-body p {
    font-size: 16px;
    line-height: 1.85;
    margin: 0;
}

.sbn-single-body h2 {
    font-family: var(--sbn-serif);
    font-size: 30px;
    line-height: 1.18;
    margin: 44px 0 0;
    font-weight: 400;
    color: var(--sbn-navy);
}

.sbn-single-body h3,
.sbn-single-body h4 {
    font-family: var(--sbn-sans);
    font-weight: 700;
    color: var(--sbn-navy);
    line-height: 1.3;
    margin: 34px 0 0;
}

.sbn-single-body h3 {
    font-size: 22px;
}

.sbn-single-body h4 {
    font-size: 17px;
}

.sbn-single-body ul,
.sbn-single-body ol {
    margin: 22px 0 0;
    padding-left: 24px;
}

.sbn-single-body li {
    font-size: 16px;
    line-height: 1.75;
    padding-left: 4px;
}

.sbn-single-body li + li {
    margin-top: 8px;
}

.sbn-single-body a {
    color: var(--sbn-navy);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(201, 163, 90, 0.6);
    text-underline-offset: 3px;
}

.sbn-single-body pre,
.sbn-single-body table,
.insight-body pre,
.insight-body table {
    max-width: 100%;
    overflow-x: auto;
}

.sbn-single-body blockquote,
.sbn-single-body .wp-block-quote {
    margin: 34px 0 0;
    padding: 24px 28px;
    border-left: 4px solid var(--sbn-gold);
    background: var(--sbn-paper);
    border-radius: 0 12px 12px 0;
}

.sbn-single-body blockquote p,
.sbn-single-body .wp-block-quote p {
    font-family: var(--sbn-serif);
    font-size: 26px;
    line-height: 1.35;
    color: var(--sbn-navy);
}

.sbn-single-body cite {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
    color: rgba(20, 33, 61, 0.62);
}

.sbn-single-body figure,
.sbn-single-body .wp-block-image {
    margin: 34px 0 0;
}

.sbn-single-body figure img,
.sbn-single-body .wp-block-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--sbn-shadow-sm);
}

.sbn-single-body figcaption,
.sbn-single-body .wp-element-caption {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(20, 33, 61, 0.58);
    text-align: left;
}

.sbn-single-body .wp-block-separator {
    border: 0;
    border-top: 1px solid var(--sbn-mist-light);
    margin: 40px 0 0;
}

.sbn-single-body .wp-block-table {
    overflow-x: auto;
    margin: 34px 0 0;
}

.sbn-single-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
}

.sbn-single-body th,
.sbn-single-body td {
    padding: 12px 14px;
    border: 1px solid var(--sbn-mist-light);
    text-align: left;
    vertical-align: top;
}

.sbn-single-body th {
    background: var(--sbn-paper);
    color: var(--sbn-navy);
    font-weight: 700;
}

.sbn-single-body .wp-block-pullquote {
    margin: 40px 0 0;
    padding: 32px;
    border-top: 1px solid var(--sbn-gold);
    border-bottom: 1px solid var(--sbn-gold);
}

.sbn-single-body .wp-block-pullquote blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
}

.sbn-article-callout,
.sbn-single-body .callout {
    background: var(--sbn-paper);
    border: 1px solid rgba(201, 163, 90, 0.32);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 34px 0 0;
}

.sbn-article-keypoints,
.sbn-single-body .key-takeaways {
    background: var(--sbn-navy);
    border-radius: 12px;
    padding: 28px;
    margin: 34px 0 0;
    color: var(--sbn-cream);
}

.sbn-article-keypoints h2,
.sbn-article-keypoints h3,
.sbn-article-keypoints p,
.sbn-article-keypoints li,
.sbn-single-body .key-takeaways h2,
.sbn-single-body .key-takeaways h3,
.sbn-single-body .key-takeaways p,
.sbn-single-body .key-takeaways li {
    color: var(--sbn-cream);
}

.sbn-article-keypoints h2,
.sbn-article-keypoints h3,
.sbn-single-body .key-takeaways h2,
.sbn-single-body .key-takeaways h3 {
    margin-top: 0;
}

.sbn-single-body .wp-block-buttons {
    margin-top: 30px;
}

.sbn-single-sidebar {
    position: sticky;
    top: var(--sbn-sticky-offset);
    padding-left: 24px;
    padding-right: 24px;
}

.sbn-single-sidebar .sb-cta {
    background: var(--sbn-navy);
    border: 1px solid rgba(201, 163, 90, 0.22);
    border-radius: var(--sbn-radius-card);
    box-shadow: var(--sbn-shadow-md);
}

.share-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.share-btn,
.sbn-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid var(--sbn-navy);
    border-radius: var(--sbn-radius-btn);
    background: var(--sbn-navy);
    color: var(--sbn-cream) !important;
    text-decoration: none !important;
    font-family: var(--sbn-sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    transition: background var(--sbn-transition-fast), border-color var(--sbn-transition-fast), color var(--sbn-transition-fast), transform var(--sbn-transition-fast), box-shadow var(--sbn-transition-fast);
}

.share-btn:is(button),
.rail-btn:is(button) {
    appearance: none;
    cursor: pointer;
}

.share-btn .dashicons,
.sbn-share-btn .dashicons,
.rail-btn .dashicons,
.sbn-share-text-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: currentColor;
    font-size: 18px;
    line-height: 1;
}

.sbn-share-text-icon {
    font-family: var(--sbn-sans);
    font-weight: 800;
    letter-spacing: 0;
}

.share-btn:hover,
.share-btn:focus-visible,
.sbn-share-btn:hover,
.sbn-share-btn:focus-visible {
    color: var(--sbn-cream) !important;
    border-color: var(--sbn-navy-hover);
    background: var(--sbn-navy-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 30, 61, 0.14);
}

@media print {
    @page {
        size: A4;
        margin: 18mm 18mm 20mm;
    }

    html {
        background: #fff !important;
    }

    body {
        background: #fff !important;
        color: #111 !important;
        font-family: Georgia, "Times New Roman", serif !important;
        font-size: 11pt !important;
        line-height: 1.55 !important;
    }

    header,
    footer,
    nav,
    iframe,
    form,
    .sbn-breadcrumb,
    .social-rail,
    .share-row,
    .sbn-single-sidebar,
    .sbn-related,
    .more-insights,
    .author-card,
    .sbn-featured-image-caption,
    .wp-block-template-part,
    .sbn-header-shell,
    .sbn-footer,
    .sbn-nav,
    .sbn-skip-link,
    .wp-site-blocks > header,
    .wp-site-blocks > footer,
    .wp-block-template-part[area="header"],
    .wp-block-template-part[area="footer"],
    .sbn-member-bar,
    .sbn-single-hero-media {
        display: none !important;
    }

    #site-content::before {
        content: "Superior Business Networks";
        display: block;
        margin: 0 0 18px;
        padding: 0 0 10px;
        border-bottom: 2px solid #c9a35a;
        color: #0f1e3d;
        font-family: Arial, sans-serif;
        font-size: 10pt;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .sbn-single-hero,
    .sbn-single-hero-inner,
    .sbn-single-hero-copy {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 0 16px !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .sbn-single-hero h1,
    .sbn-single-hero .wp-block-post-title,
    h1.wp-block-post-title {
        margin: 0 0 10px !important;
        color: #0f1e3d !important;
        font-family: Georgia, "Times New Roman", serif !important;
        font-size: 25pt !important;
        font-weight: 400 !important;
        line-height: 1.12 !important;
    }

    .sbn-single-taxonomy-wrap,
    .sbn-single-standfirst,
    .sbn-single-meta {
        color: #4d5564 !important;
        font-family: Arial, sans-serif !important;
    }

    .sbn-single-taxonomy-wrap {
        margin: 0 0 8px !important;
        font-size: 8pt !important;
        font-weight: 700 !important;
        letter-spacing: 0.08em !important;
        text-transform: uppercase !important;
    }

    .sbn-single-standfirst {
        margin: 0 0 12px !important;
        font-size: 12pt !important;
        line-height: 1.45 !important;
    }

    .sbn-single-meta {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px 14px !important;
        margin: 0 0 18px !important;
        padding: 0 0 14px !important;
        border-bottom: 1px solid #d8d8d8 !important;
        font-size: 8.5pt !important;
    }

    .sbn-single-layout,
    .sbn-single-body,
    .insight-body {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .sbn-single-body,
    .insight-body {
        max-width: 720px !important;
        margin: 0 auto !important;
    }

    .sbn-single-body p,
    .insight-body p,
    .wp-block-post-content p {
        margin: 0 0 10pt !important;
        color: #111 !important;
        font-size: 11pt !important;
        line-height: 1.6 !important;
    }

    .sbn-single-body h2,
    .sbn-single-body h3,
    .insight-body h2,
    .insight-body h3,
    .wp-block-post-content h2,
    .wp-block-post-content h3 {
        break-after: avoid;
        margin: 18pt 0 8pt !important;
        color: #0f1e3d !important;
        font-family: Georgia, "Times New Roman", serif !important;
        line-height: 1.2 !important;
    }

    .sbn-single-body img,
    .insight-body img,
    .wp-block-post-content img {
        max-width: 100% !important;
        height: auto !important;
        break-inside: avoid;
    }

    .sbn-single-body blockquote,
    .insight-body blockquote,
    .wp-block-post-content blockquote {
        margin: 14pt 0 !important;
        padding: 8pt 12pt !important;
        border-left: 3px solid #c9a35a !important;
        color: #24324a !important;
        background: #f8f5ee !important;
    }

    .sbn-single-body a,
    .insight-body a {
        color: #111 !important;
        text-decoration: underline !important;
    }

    .sbn-single-body a[href^="http"]::after,
    .insight-body a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 8pt;
        color: #555;
        word-break: break-all;
    }
}

.sb-cta {
    color: var(--sbn-cream);
}

.sb-cta h4 {
    color: var(--sbn-cream);
    font-size: 22px;
    margin: 0 0 10px;
}

.sb-cta p {
    color: rgba(245, 239, 227, 0.68);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 16px;
}

.sb-cta .sbn-btn-primary {
    width: 100%;
    margin-top: 4px;
}

.more-header {
    align-items: center;
    gap: 24px;
    max-width: var(--sbn-max-width);
    margin-left: auto;
    margin-right: auto;
}

.more-link {
    color: var(--sbn-navy);
    font-family: var(--sbn-sans);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
}

.rel-grid {
    gap: 24px;
    max-width: var(--sbn-max-width);
    margin: 0 auto;
}

.rel-card-img {
    height: 170px;
    background: var(--sbn-navy);
    overflow: hidden;
}

.rel-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rel-card-body {
    padding: 18px;
}

.rel-card-title,
.rel-card-title a {
    font-family: var(--sbn-serif);
    font-size: 24px;
    line-height: 1.12;
    color: var(--sbn-navy);
    text-decoration: none !important;
}

.rel-card-desc {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(20, 33, 61, 0.75);
}

@media (max-width: 1000px) {
    .sbn-single-hero-inner {
        grid-template-columns: 1fr;
    }

    .sbn-single-hero-media {
        max-width: 420px;
        margin: 0 auto;
        justify-self: center;
    }

    .sbn-single-layout {
        grid-template-columns: 1fr;
    }

    .social-rail {
        padding: 18px var(--sbn-dynamic-edge);
        border-right: 0;
        border-bottom: 0.5px solid var(--sbn-mist);
    }

    .sbn-share-rail-inner {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .social-rail-label {
        writing-mode: initial;
        transform: none;
    }

    .sbn-single-body {
        padding: 32px var(--sbn-dynamic-edge);
        border-right: none;
    }

    .sbn-single-sidebar {
        position: static;
    }
}

@media (max-width: 767px) {
    .sbn-single-hero {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .sbn-single-hero h1,
    .sbn-single-hero .wp-block-post-title {
        font-size: clamp(34px, 11vw, 46px);
    }

    .sbn-single-meta {
        align-items: flex-start;
        gap: 12px;
    }

    .meta-sep {
        display: none;
    }

    .social-rail-label {
        writing-mode: initial;
        transform: none;
    }

    .rail-btn {
        width: 42px;
        height: 42px;
    }
}

/* ===== BLOG / INSIGHTS ARCHIVE REFINEMENT ===== */
.sbn-magazine-layout {
    grid-template-columns: minmax(0, 840px) 280px;
    justify-content: center;
    gap: clamp(28px, 4vw, 48px);
    padding-top: var(--sbn-section-space);
}

.sbn-filter-bar {
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 0 24px;
    margin-bottom: 32px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(195, 204, 210, 0.56);
    border-radius: 0;
    box-shadow: none;
}

.sbn-tax-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.sbn-filter-select-label {
    color: var(--sbn-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.sbn-filter-select {
    min-width: 220px;
    min-height: 48px;
    padding: 0 42px 0 16px;
    border: 1px solid rgba(195, 204, 210, 0.9);
    border-radius: var(--sbn-radius-btn);
    background-color: var(--sbn-surface);
    color: var(--sbn-navy);
    font-family: var(--sbn-sans);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.sbn-filter-select:focus-visible {
    outline: 3px solid rgba(201, 163, 90, 0.2);
    border-color: var(--sbn-gold);
}

.sbn-filter-button {
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--sbn-radius-btn);
    background: var(--sbn-navy);
    color: var(--sbn-cream);
    cursor: pointer;
    font-family: var(--sbn-sans);
    font-size: 13px;
    font-weight: 800;
}

.sbn-filter-button:hover,
.sbn-filter-button:focus-visible {
    background: var(--sbn-gold);
    color: var(--sbn-navy);
}

.sbn-filter-reset {
    color: var(--sbn-gold);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.sbn-cats-row {
    gap: 8px;
}

.sbn-cat-pill {
    min-height: 36px;
    padding: 7px 14px;
    background: #fff;
    border: 1px solid rgba(195, 204, 210, 0.9);
    box-shadow: none;
}

.sbn-filter-bar .sbn-search-wrapper {
    max-width: 260px;
    min-height: 48px;
    background: #fff;
    border-color: rgba(195, 204, 210, 0.9);
}

.sbn-editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.sbn-editorial-card {
    border: 1px solid rgba(195, 204, 210, 0.74);
    border-radius: var(--sbn-radius-card);
    box-shadow: var(--sbn-shadow-sm);
}

.sbn-editorial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(15, 30, 61, 0.1);
}

.sbn-card-img-frame {
    height: 190px;
    border-bottom: 1px solid rgba(195, 204, 210, 0.58);
}

.sbn-card-content-frame {
    min-height: 290px;
    padding: 24px 24px 22px;
    gap: 12px;
}

.sbn-editorial-tag {
    min-height: 24px;
    padding: 4px 10px;
    background: rgba(201, 163, 90, 0.12);
    color: var(--sbn-gold);
    border: 0;
    border-radius: var(--sbn-radius-pill);
    font-size: 10px;
    letter-spacing: 0.12em;
}

.sbn-card-title {
    font-size: clamp(23px, 2vw, 28px);
    line-height: 1.08;
    margin: 0;
}

.sbn-editorial-desc {
    display: -webkit-box;
    overflow: hidden;
    margin: 6px 0 0;
    color: rgba(20, 33, 61, 0.72);
    font-size: 15px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.sbn-editorial-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 18px;
    color: rgba(20, 33, 61, 0.58);
    font-size: 13px;
    font-weight: 700;
}

.sbn-editorial-card > .btn-text-link,
.sbn-card-content-frame > .btn-text-link {
    margin-top: auto;
    padding-top: 18px;
}

.sbn-card-content-frame > .sbn-editorial-tag + .sbn-card-title {
    margin-top: 0;
}

.sbn-card-content-frame > .sbn-editorial-desc + .btn-text-link {
    align-self: flex-start;
}

.sbn-single-body > p + p,
.insight-body > p + p {
    margin-top: 28px;
}

.sbn-single-body .wp-block-post-content > p + p,
.insight-body .wp-block-post-content > p + p {
    margin-top: 28px;
}

.sbn-newsletter-widget {
    background: var(--sbn-navy);
    border: 1px solid rgba(201, 163, 90, 0.22);
    border-radius: var(--sbn-radius-card);
    box-shadow: var(--sbn-shadow-md);
    color: var(--sbn-cream);
}

.sbn-newsletter-widget .sbn-button-full,
.sbn-newsletter-widget button {
    width: 100%;
    margin-top: 14px;
}

.sbn-newsletter-widget h4 {
    color: var(--sbn-cream);
}

.sbn-newsletter-widget p {
    color: rgba(245, 239, 227, 0.72);
    line-height: 1.6;
}

.sbn-newsletter-widget input {
    border-color: rgba(245, 239, 227, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: var(--sbn-cream);
}

.sbn-newsletter-widget input::placeholder {
    color: rgba(245, 239, 227, 0.58);
}

.sbn-pagination {
    margin-top: 56px;
}

.sbn-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 12px;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .sbn-magazine-layout {
        grid-template-columns: 1fr;
        max-width: 900px;
        margin: 0 auto;
    }

    .sbn-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .sbn-filter-bar,
    .sbn-tax-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .sbn-filter-select,
    .sbn-filter-button,
    .sbn-filter-reset,
    .sbn-filter-bar .sbn-search-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .sbn-editorial-grid {
        grid-template-columns: 1fr;
    }

    .sbn-card-content-frame {
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .sbn-magazine-layout {
        grid-template-columns: 1fr;
        padding-top: var(--sbn-space-md);
    }

    .sbn-filter-bar,
    .sbn-tax-filter {
        width: 100%;
    }

    .sbn-filter-select,
    .sbn-filter-button,
    .sbn-filter-reset,
    .sbn-filter-bar .sbn-search-wrapper,
    .sbn-newsletter-widget input,
    .sbn-newsletter-widget button {
        width: 100%;
        max-width: none;
        min-height: 44px;
        font-size: 16px;
    }

    .sbn-pagination .page-numbers {
        min-width: 44px;
        min-height: 44px;
        font-size: 16px;
    }

    .sbn-single-hero {
        padding: var(--sbn-space-md) var(--sbn-dynamic-edge);
    }

    .sbn-single-hero-inner {
        grid-template-columns: 1fr;
        gap: var(--sbn-space-sm);
        text-align: center;
    }

    .sbn-single-hero-copy {
        align-items: center;
    }

    .sbn-single-taxonomy-wrap,
    .sbn-single-meta,
    .sbn-author-lockup,
    .sbn-taxonomy-pills {
        justify-content: center;
    }

    .sbn-single-standfirst {
        max-width: 38rem;
        margin-left: auto;
        margin-right: auto;
        font-size: 16px;
    }

    .sbn-single-hero-media {
        width: 100%;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .sbn-single-hero-media img,
    .sbn-single-hero-media .wp-block-post-featured-image img {
        width: 100%;
        max-height: 360px;
        object-fit: cover;
    }

    .sbn-single-body,
    .insight-body {
        padding: var(--sbn-space-md) var(--sbn-dynamic-edge);
    }

    .sbn-single-body p,
    .insight-body p,
    .sbn-single-body li,
    .insight-body li {
        font-size: 16px;
        line-height: 1.75;
    }

    .sbn-single-body h2,
    .insight-body h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .sbn-single-body h3,
    .insight-body h3 {
        font-size: clamp(1.25rem, 4vw, 1.6rem);
    }

    .callout,
    .key-takeaways,
    .owner-note,
    .do-this-week {
        padding: var(--sbn-space-sm);
        border-radius: var(--sbn-radius-card);
    }

    .callout,
    .owner-note {
        border-left: 4px solid var(--sbn-gold);
    }

    .key-takeaways,
    .do-this-week {
        border: 1px solid rgba(201, 163, 90, 0.24);
    }

    .share-row {
        display: grid;
        gap: 12px;
    }

    .share-btns {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .share-btn {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }

    .author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .sbn-single-sidebar {
        padding: var(--sbn-space-md) var(--sbn-dynamic-edge);
    }

    .more-insights {
        padding: var(--sbn-space-md) var(--sbn-dynamic-edge);
    }

    .more-header {
        display: grid;
        justify-items: center;
        gap: 12px;
        text-align: center;
    }

    .rel-grid .wp-block-post-template,
    .rel-grid > .wp-block-post-template {
        grid-template-columns: 1fr;
    }

    .rel-card {
        max-width: none;
    }

    .rel-card-img,
    .rel-card-img img,
    .rel-card-img .wp-block-post-featured-image img {
        width: 100%;
    }

    .rel-card-body {
        min-height: 0;
    }

    .rel-i-tag a {
        min-height: 32px;
    }
}

/* ===== SINGLE ARTICLE RELATED POSTS FIX ===== */
.more-insights {
    padding: var(--sbn-section-space) var(--sbn-dynamic-edge);
}

.more-header {
    max-width: 980px;
}

.more-header h3 {
    margin: 0;
    color: var(--sbn-navy);
    font-family: var(--sbn-serif);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 400;
    line-height: 1.12;
}

.rel-grid {
    display: block;
    max-width: 980px;
}

.rel-grid .wp-block-query {
    width: 100%;
}

.rel-grid .wp-block-post-template,
.rel-grid > .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rel-grid .wp-block-post {
    margin: 0;
    min-width: 0;
}

.rel-card {
    height: 100%;
    border: 1px solid rgba(195, 204, 210, 0.72);
    border-radius: var(--sbn-radius-card);
    box-shadow: var(--sbn-shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.rel-card-img {
    height: 150px;
    flex: 0 0 150px;
}

.rel-card-body {
    display: flex;
    min-height: 250px;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.rel-i-tag {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    width: fit-content;
    margin-bottom: 12px;
}

.rel-i-tag .wp-block-post-terms {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.rel-i-tag .wp-block-post-terms__separator {
    display: none;
}

.rel-i-tag a {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border-radius: var(--sbn-radius-pill);
    background: rgba(47, 110, 134, 0.12);
    border: 1px solid rgba(47, 110, 134, 0.2);
    color: var(--sbn-estuary);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-decoration: none !important;
}

.rel-i-tag a:hover,
.rel-i-tag a:focus-visible {
    border-color: var(--sbn-gold);
    color: var(--sbn-navy);
    background: rgba(201, 163, 90, 0.12);
}

.rel-i-tag--blog a {
    border-color: rgba(180, 96, 61, 0.24);
    background: rgba(180, 96, 61, 0.1);
    color: var(--sbn-peel-clay);
}

.rel-i-tag--insight a {
    border-color: rgba(47, 110, 134, 0.24);
    background: rgba(47, 110, 134, 0.1);
    color: var(--sbn-estuary);
}

.rel-card-title,
.rel-card-title a {
    font-size: 21px;
    line-height: 1.12;
}

.rel-card-desc {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.rel-card-desc .wp-block-post-excerpt__more-text {
    display: none;
}

.rel-card-foot {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: auto;
    padding-top: 14px;
}

.rel-card-link {
    min-height: 0;
    padding: 0 !important;
    border: 0;
    border-radius: 0;
}

.rel-card-link:hover,
.rel-card-link:focus-visible {
    background: transparent;
}

@media (max-width: 900px) {
    .rel-grid .wp-block-post-template,
    .rel-grid > .wp-block-post-template {
        grid-template-columns: 1fr;
    }

    .rel-card {
        max-width: 520px;
    }

    .rel-card-body {
        min-height: 0;
    }
}
