/* B&B News & Insights — styles for article templates and shortcodes */
:root{--bb-forest:#002815;--bb-gold:#ddbd00;--bb-slate:#495b55;--bb-ink:#33443e;--bb-mist:#f6f7f7;--bb-sage:#e0e7e3;--bb-line:#dbe2df;--bb-stone:#c9d3cf}

/* Shared bits */
.bb-eyebrow{display:block;font-family:Roboto,sans-serif;font-size:12px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:var(--bb-slate)}
.bb-eyebrow--gold{color:var(--bb-gold);font-size:14px;font-weight:500;letter-spacing:.5px}
.bb-pill{display:inline-block;font-family:Roboto,sans-serif;font-size:12px;font-weight:600;line-height:1.4;letter-spacing:1.5px;text-transform:uppercase;color:var(--bb-forest)!important;border-radius:99px;padding:5px 14px;text-decoration:none!important}
.bb-pill--sage{background:var(--bb-sage)}
.bb-pill--gold{background:var(--bb-gold)}
a.bb-pill:hover{background:var(--bb-forest);color:#fff!important}
.bb-cats{display:flex;flex-wrap:wrap;gap:8px}
.bb-avatar{flex:none;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;overflow:hidden;background:var(--bb-forest);color:var(--bb-gold)}
.bb-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%;margin:0!important}

/* Solid green header bar on article pages that don't use the transparent header */
body.single-post:not(.ast-theme-transparent-header) .site-header .ast-primary-header-bar,body.single-post:not(.ast-theme-transparent-header) .site-header .main-header-bar,
body.archive:not(.ast-theme-transparent-header) .site-header .ast-primary-header-bar,body.archive:not(.ast-theme-transparent-header) .site-header .main-header-bar,
body.blog:not(.ast-theme-transparent-header) .site-header .ast-primary-header-bar,body.blog:not(.ast-theme-transparent-header) .site-header .main-header-bar{background-color:var(--bb-forest)!important;border-bottom-color:var(--bb-forest)!important}

/* Breadcrumbs */
.bb-crumbs{display:flex;flex-wrap:wrap;gap:8px;font-family:Roboto,sans-serif;font-size:14px;line-height:20px;color:var(--bb-slate)}
.bb-crumbs a{color:var(--bb-slate);text-decoration:none}
.bb-crumbs a:hover{text-decoration:underline;color:var(--bb-forest)}
.bb-crumbs--dark,.bb-crumbs--dark a{color:#c9d3cf}
.bb-crumbs--dark [aria-current]{color:#fff}

/* Feed: category buttons */
.bb-filters{display:flex;flex-wrap:wrap;gap:10px}
.bb-filters a{display:inline-flex;align-items:center;gap:4px;min-height:44px;padding:0 20px;box-sizing:border-box;border-radius:99px;border:1px solid var(--bb-stone);background:#fff;color:var(--bb-forest);font-family:Roboto,sans-serif;font-size:15px;font-weight:600;text-decoration:none;transition:background .15s,color .15s}
.bb-filters a span{font-weight:400;opacity:.75}
.bb-filters a:hover{border-color:var(--bb-forest)}
.bb-filters a.is-active{background:var(--bb-forest);border-color:var(--bb-forest);color:#fff}
@media (max-width:767px){.bb-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;margin-right:-20px}.bb-filters a{flex:none}}

/* Feed: article cards (Loop Item template uses .bb-card) */
.bb-card{height:100%}
.bb-card .elementor-widget-theme-post-featured-image img,.bb-card .bb-card-img img{width:100%!important;aspect-ratio:16/9;object-fit:cover;display:block;border-radius:20px;transition:transform .3s ease}
.bb-card .elementor-widget-theme-post-featured-image .elementor-widget-container,.bb-card .elementor-widget-theme-post-featured-image a{display:block;overflow:hidden;border-radius:20px}
.bb-card:hover .elementor-widget-theme-post-featured-image img{transform:scale(1.03)}
.bb-card .elementor-heading-title a{color:inherit}
.bb-card .elementor-heading-title a:hover{text-decoration:underline}
.bb-card-meta{display:flex;align-items:center;gap:10px;padding-top:14px;border-top:1px solid var(--bb-sage);font-family:Roboto,sans-serif;font-size:14px;line-height:20px;color:var(--bb-slate)}
.bb-card-meta strong{font-weight:600;color:var(--bb-forest)}
.bb-card .elementor-widget-shortcode:last-child{margin-top:auto}

/* Feed: newest article shown large on page 1 of the main feed */
@media (min-width:1025px){
body.blog:not(.paged) .bb-feed .elementor-loop-container>.e-loop-item:first-of-type{grid-column:1/-1}
body.blog:not(.paged) .bb-feed .elementor-loop-container>.e-loop-item:first-of-type .bb-card{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:min-content;column-gap:48px;row-gap:16px;align-content:center;background:var(--bb-mist);border-radius:24px;padding:24px 48px 24px 24px}
body.blog:not(.paged) .bb-feed .e-loop-item:first-of-type .bb-card>*:first-child{grid-column:1;grid-row:1/span 6;align-self:center}
body.blog:not(.paged) .bb-feed .e-loop-item:first-of-type .bb-card>*:not(:first-child){grid-column:2}
body.blog:not(.paged) .bb-feed .e-loop-item:first-of-type .bb-card>*:nth-child(2){align-self:end}
body.blog:not(.paged) .bb-feed .e-loop-item:first-of-type .bb-card .elementor-heading-title{font-size:40px!important;line-height:44px!important;letter-spacing:-1.5px!important}
body.blog:not(.paged) .bb-feed .e-loop-item:first-of-type .bb-card .elementor-widget-theme-post-excerpt{font-size:17px;line-height:28px}
body.blog:not(.paged) .bb-feed .e-loop-item:first-of-type .bb-cats::before{content:"Featured";display:inline-block;font-family:Roboto,sans-serif;font-size:12px;font-weight:700;line-height:1.4;letter-spacing:1.5px;text-transform:uppercase;color:var(--bb-forest);background:var(--bb-gold);border-radius:99px;padding:5px 14px}
body.blog:not(.paged) .bb-feed .e-loop-item:first-of-type .bb-card-meta{border-top:0;padding-top:6px}
}
.bb-feed .elementor-pagination{display:flex;justify-content:center;gap:8px;margin-top:56px}
.bb-feed .elementor-pagination .page-numbers{min-width:44px;height:44px;padding:0 16px;box-sizing:border-box;border-radius:99px;border:1px solid var(--bb-stone);display:inline-flex;align-items:center;justify-content:center;color:var(--bb-forest);font-weight:600;text-decoration:none;margin:0!important}
.bb-feed .elementor-pagination .page-numbers.current{background:var(--bb-forest);border-color:var(--bb-forest);color:#fff}
.bb-feed .elementor-pagination .page-numbers.dots{border:0}
.bb-feed .e-loop-nothing-found-message{text-align:center;font-size:17px;color:var(--bb-slate);padding:40px 0}

/* Single: byline */
.bb-byline{display:flex;align-items:center;justify-content:space-between;gap:24px;font-family:Roboto,sans-serif;font-size:14px;line-height:21px;color:var(--bb-slate)}
.bb-byline-who{display:flex;align-items:center;gap:16px}
.bb-byline-photo{display:inline-flex;border-radius:50%}
.bb-byline-text,.bb-byline-dates{display:flex;flex-direction:column;gap:3px}
.bb-byline-name{font-size:16px;color:var(--bb-forest)}
.bb-byline a{color:var(--bb-forest);font-weight:600}
.bb-byline-name a{font-weight:700}
.bb-byline-dates{text-align:right}
.bb-byline time{font-weight:600;color:var(--bb-forest)}
@media (max-width:767px){.bb-byline{flex-direction:column;align-items:flex-start}.bb-byline-dates{text-align:left}}

/* Single: article body (Post Content widget gets the .bb-prose class) */
.bb-prose{font-family:Roboto,sans-serif;color:var(--bb-ink)}
.bb-prose p,.bb-prose ul,.bb-prose ol{font-size:18px;line-height:31px;margin:0 0 22px}
.bb-prose ul,.bb-prose ol{padding-left:24px}
.bb-prose li{margin-bottom:8px}
.bb-prose h2{font-family:Inter,sans-serif;font-weight:700;font-size:32px;line-height:37px;letter-spacing:-1px;color:var(--bb-forest);margin:48px 0 18px;scroll-margin-top:120px}
.bb-prose h3{font-family:Inter,sans-serif;font-weight:700;font-size:22px;line-height:28px;color:var(--bb-forest);margin:32px 0 12px;scroll-margin-top:120px}
.bb-prose>.elementor-widget-container>*:first-child,.bb-prose>*:first-child{margin-top:0}
.bb-prose a{color:var(--bb-forest);text-decoration:underline;text-decoration-color:var(--bb-gold);text-decoration-thickness:2px;text-underline-offset:3px}
.bb-prose a:hover{text-decoration-color:var(--bb-forest)}
.bb-prose figure{margin:32px 0}
.bb-prose figure img{border-radius:18px;display:block;width:100%;height:auto}
.bb-prose figcaption{font-size:14px;line-height:21px;color:var(--bb-slate);margin-top:10px;text-align:left}
.bb-prose blockquote{margin:40px 0;padding:32px 36px;background:var(--bb-mist);border-radius:20px;border:0}
.bb-prose blockquote p{font-family:'Roboto Slab',Georgia,serif;font-weight:500;font-size:24px;line-height:34px;color:var(--bb-forest);margin:0 0 14px}
.bb-prose blockquote cite{font-style:normal;font-size:15px;color:var(--bb-slate)}
.bb-prose blockquote::before{content:"";display:block;width:32px;height:32px;margin-bottom:14px;background:var(--bb-gold);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 18h6v-6H6c0-2.2 1.8-4 4-4V6c-3.3 0-6 2.7-6 6v6zm10 0h6v-6h-4c0-2.2 1.8-4 4-4V6c-3.3 0-6 2.7-6 6v6z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 18h6v-6H6c0-2.2 1.8-4 4-4V6c-3.3 0-6 2.7-6 6v6zm10 0h6v-6h-4c0-2.2 1.8-4 4-4V6c-3.3 0-6 2.7-6 6v6z'/%3E%3C/svg%3E") center/contain no-repeat}
/* Block style: Key takeaways (List block › Styles) */
.bb-prose ul.is-style-bb-takeaways,.bb-prose ol.is-style-bb-takeaways{list-style:none;background:var(--bb-forest);color:#fff;border-radius:20px;padding:32px 36px;margin:0 0 44px;display:flex;flex-direction:column;gap:10px}
.bb-prose .is-style-bb-takeaways::before{content:"Key takeaways";display:block;font-size:12px;font-weight:600;line-height:20px;letter-spacing:1.5px;text-transform:uppercase;color:var(--bb-gold);margin-bottom:6px}
.bb-prose .is-style-bb-takeaways li{position:relative;padding-left:32px;margin:0;font-size:17px;line-height:27px;color:#fff}
.bb-prose .is-style-bb-takeaways li::before{content:"";position:absolute;left:0;top:3px;width:20px;height:20px;border-radius:50%;background:var(--bb-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002815' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/13px no-repeat}
.bb-prose .is-style-bb-takeaways a{color:var(--bb-gold)}
/* Block style: gray callout (Group block › Styles) */
.bb-prose .is-style-bb-callout{background:var(--bb-mist);border-radius:20px;padding:28px 32px;margin:32px 0}
.bb-prose .is-style-bb-callout>*:last-child{margin-bottom:0}
@media (max-width:767px){.bb-prose p,.bb-prose ul,.bb-prose ol{font-size:17px;line-height:29px}.bb-prose h2{font-size:26px;line-height:31px}.bb-prose blockquote{padding:24px}.bb-prose blockquote p{font-size:20px;line-height:29px}.bb-prose ul.is-style-bb-takeaways{padding:26px 24px}}

/* Single: table of contents (Elementor TOC widget gets .bb-toc) */
.bb-toc .elementor-toc{border:0!important;padding:0!important;background:none!important;--box-border-width:0;--box-padding:0}
.bb-toc .elementor-toc__header{padding:0 0 10px;border:0;background:none}
.bb-toc .elementor-toc__header-title{font-family:Roboto,sans-serif;font-size:12px!important;font-weight:600!important;letter-spacing:1.5px;text-transform:uppercase;color:var(--bb-slate)!important}
.bb-toc .elementor-toc__body{padding:0;max-height:none}
.bb-toc .elementor-toc__list-wrapper{padding:0!important;margin:0}
.bb-toc .elementor-toc__list-item{margin:0}
.bb-toc .elementor-toc__list-item-text-wrapper::before{display:none!important}
.bb-toc .elementor-toc__list-item-text{display:block;font-size:15px;line-height:22px;padding:9px 0 9px 16px;border-left:3px solid var(--bb-sage);color:var(--bb-slate)!important;text-decoration:none!important}
.bb-toc .elementor-toc__list-item-text:hover{color:var(--bb-forest)!important}
.bb-toc .elementor-toc__list-item-text.elementor-item-active{border-left-color:var(--bb-gold);color:var(--bb-forest)!important;font-weight:600}
.bb-toc .elementor-toc__toggle-button{display:none!important}
.bb-aside{position:sticky;top:120px}
.admin-bar .bb-aside{top:152px}

/* Single: tags + editorial note */
.bb-tags{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:28px 0;border-top:1px solid var(--bb-line);border-bottom:1px solid var(--bb-line);font-family:Roboto,sans-serif}
.bb-tags-label{font-size:14px;font-weight:600;color:var(--bb-forest)}
.bb-tags a{font-size:14px;color:var(--bb-forest);background:var(--bb-mist);border-radius:99px;padding:8px 16px;text-decoration:none}
.bb-tags a:hover{background:var(--bb-sage)}
.bb-note{display:flex;gap:16px;align-items:flex-start;font-family:Roboto,sans-serif}
.bb-note-icon{flex:none;width:40px;height:40px;border-radius:50%;background:var(--bb-sage);color:var(--bb-forest);display:inline-flex;align-items:center;justify-content:center}
.bb-note p{margin:0;font-size:15px;line-height:24px;color:var(--bb-slate)}
.bb-note strong{color:var(--bb-forest)}
.bb-note a{color:var(--bb-forest);font-weight:600}

/* Single: author box */
.bb-authorbox{display:grid;grid-template-columns:120px minmax(0,1fr);gap:28px;background:var(--bb-mist);border-radius:24px;padding:36px;font-family:Roboto,sans-serif;color:var(--bb-slate)}
.bb-authorbox-body{display:flex;flex-direction:column;gap:12px}
.bb-authorbox-name{font-family:Inter,sans-serif;font-weight:700;font-size:26px;line-height:31px;color:var(--bb-forest)!important;text-decoration:none!important}
.bb-authorbox-name:hover{text-decoration:underline!important}
.bb-authorbox-role{font-size:15px;font-weight:600;color:var(--bb-forest)}
.bb-authorbox p{margin:0;font-size:16px;line-height:26px}
.bb-chips{display:flex;flex-wrap:wrap;gap:8px}
.bb-chips span{font-size:13px;font-weight:500;color:var(--bb-forest);background:#fff;border:1px solid var(--bb-stone);border-radius:99px;padding:6px 14px}
.bb-authorbox-links{display:flex;flex-wrap:wrap;gap:20px;padding-top:4px}
.bb-authorbox-links a{font-size:15px;font-weight:600;color:var(--bb-forest)}
@media (max-width:767px){.bb-authorbox{grid-template-columns:minmax(0,1fr);padding:28px 22px}}

/* Author page: hero */
.bb-ahero{display:flex;flex-direction:column;gap:40px;font-family:Roboto,sans-serif}
.bb-ahero-grid{display:grid;grid-template-columns:240px minmax(0,1fr);gap:56px;align-items:center}
.bb-ahero-photo .bb-avatar{border:6px solid var(--bb-gold);box-sizing:border-box;background:#0f3b26}
.bb-ahero-text{display:flex;flex-direction:column;gap:16px}
.bb-ahero h1{margin:0;font-family:Inter,sans-serif;font-weight:700;font-size:60px;line-height:64px;letter-spacing:-2px;color:#fff}
.bb-ahero-line{font-size:19px;line-height:28px;color:#fff}
.bb-ahero-links{display:flex;flex-wrap:wrap;gap:20px;padding-top:4px}
.bb-ahero-links a{font-size:15px;font-weight:600;color:var(--bb-gold)}
@media (max-width:767px){.bb-ahero-grid{grid-template-columns:minmax(0,1fr);gap:28px}.bb-ahero-photo .bb-avatar{width:160px!important;height:160px!important}.bb-ahero h1{font-size:40px;line-height:44px}}

/* Author page: stats, quals, topics */
.bb-author-stats{display:flex;flex-wrap:wrap;gap:10px;padding-top:6px}
.bb-author-stats .bb-stat{display:inline-flex;flex-direction:column;gap:2px;border-radius:16px;padding:14px 20px;min-width:150px;box-sizing:border-box;background:var(--bb-mist)}
.bb-author-stats--dark .bb-stat{background:rgba(255,255,255,.08)}
.bb-stat-v{font-family:Inter,sans-serif;font-weight:700;font-size:24px;line-height:30px;color:var(--bb-forest)}
.bb-stat-l{font-size:14px;color:var(--bb-slate)}
.bb-author-stats--dark .bb-stat-v{color:var(--bb-gold)}
.bb-author-stats--dark .bb-stat-l{color:#fff}
.bb-quals{list-style:none;margin:0;padding:0;font-family:Roboto,sans-serif}
.bb-quals li{display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:14px;padding:16px 0;border-top:1px solid var(--bb-line);margin:0}
.bb-quals li::before{content:"";grid-row:1/span 2;width:40px;height:40px;border-radius:50%;background:var(--bb-forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ddbd00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='6'/%3E%3Cpath d='M8.5 14l-1.5 8 5-3 5 3-1.5-8'/%3E%3C/svg%3E") center/18px no-repeat}
.bb-q-title{font-size:16px;line-height:22px;font-weight:600;color:var(--bb-forest)}
.bb-q-detail{font-size:14px;line-height:21px;color:var(--bb-slate)}
.bb-quals-asof{font-size:13px;line-height:20px;color:var(--bb-slate);margin:10px 0 0}
.bb-topics-wrap{display:flex;flex-direction:column;gap:12px}
.bb-topics{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px;font-family:Roboto,sans-serif}
.bb-topics li{margin:0}
.bb-topics li>*{display:inline-block;font-size:14px;color:var(--bb-forest);background:var(--bb-mist);border-radius:99px;padding:8px 16px;text-decoration:none}
.bb-topics a:hover{background:var(--bb-sage)}
