/* CARL's Commentary page styles — served by the [carl_commentary] shortcode (inc/commentary.php).
   Ported from the live page-styles.css blocks 14 (filters) + 16 (cards/grid) + 17 (about-cta),
   plus the rebuilt hero + CTA. Enqueued only on the Commentary page. */

/* hide GeneratePress's default page title (our hero is the page heading) — scoped: this CSS only
   loads on the Commentary page */
.entry-header { display: none; }
.entry-content { margin-top: 0 !important; }

/* one brand font: Poppins everywhere in the index (card titles/excerpts otherwise inherit GP's
   system-font body) */
#cbCommentary, #cbCommentary * { font-family: 'Poppins', sans-serif; }

/* layout tokens (were Avada globals; absent on GeneratePress) */
.cb-page { --carl-section-padding-x: 24px; --carl-content-max-width: 1200px; }

/* HERO (navy gradient — matched to the guide-page heroes: breadcrumb + title + description) */
.cb-hero { width: 100%; background: linear-gradient(120deg, #002D4C 0%, #001930 52%, #000b16 100%); color: #fff; padding: 50px 24px 58px; position: relative; overflow: hidden; }
.cb-hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.cb-hero-text { max-width: 660px; }
.cb-hero-breadcrumb { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.cb-hero-breadcrumb a { color: rgba(255,255,255,0.82); text-decoration: none; }
.cb-hero-breadcrumb a:hover { color: #fff; }
.cb-hero-breadcrumb span { margin: 0 4px; }
.cb-hero h1 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: clamp(30px, 4.6vw, 44px); margin: 0 0 16px; letter-spacing: -0.5px; line-height: 1.12; color: #fff; }
.cb-hero p { font-family: 'Poppins', sans-serif; font-size: 17px; line-height: 1.65; max-width: 560px; margin: 0; color: rgba(255,255,255,0.82); }
/* illustrated hero figure: CARL mascot in a glowing circle + sparkle/dot accents */
.cb-hero-eyebrow { display: inline-block; font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #3FE8DC; margin-bottom: 13px; }
.cb-hero-figure { flex-shrink: 0; line-height: 0; }
.cb-hero-img { width: 380px; max-width: 100%; height: auto; display: block; }
@media (max-width: 860px) {
  .cb-hero-inner { grid-template-columns: 1fr; }
  .cb-hero-figure { display: none; }
}

/* card rendered as a real <a> (crawlable + works with no JS) */
.cb-card { text-decoration: none; color: inherit; }
.cb-card:hover { text-decoration: none; }

/* ===== filters (block 14) ===== */
/* ===================== */
/* DESIGN TOKENS - matching Learn & Support */
/* ===================== */
.cb-page {
  --cb-brand-dark: #002D4C;
  --cb-brand-darker: #001930;
  --cb-brand-teal: #00E5D3;
  --cb-brand-blue: #59C9E1;
  --cb-brand-pink: #F671EA;
  --cb-brand-coral: #F88379;
  --cb-brand-lime: #A8E063;

  --cb-text-primary: #002D4C;
  --cb-text-secondary: #5A6C7D;
  --cb-text-muted: #5A6878;

  --cb-bg-light: #f8fafb;
  --cb-border-light: #e8eef2;

  --cb-hover-speed: 850ms;
  --cb-hover-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================== */
/* FILTERS - Updated to match Learn & Support */
/* ===================== */
.cb-filters-wrap {
  padding: 0 var(--carl-section-padding-x);
}

@media (max-width: 1000px) {
  .cb-filters-wrap {
    padding: 0 12px;
  }
}

.cb-filters {
  background: #fff;
  border: 1px solid #EBEBEB;
  border-radius: 16px;
  padding: 16px 24px;
  position: sticky;
  top: 16px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  max-width: var(--carl-content-max-width);
  margin: 0 auto;
  box-sizing: border-box;
}

.cb-filters-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cb-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cb-filter-label {
  font-size: 11px;
  font-weight: 700;
  color: #5A6878;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
  width: 70px;
  flex-shrink: 0;
}

/* Filter pills - Updated to navy active state like Learn & Support */
.cb-pill {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  color: #5A6C7D;
  background: #F2F2F2;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--cb-hover-speed, 850ms) var(--cb-hover-ease, cubic-bezier(0.16, 1, 0.3, 1));
  line-height: 1.4;
}

.cb-pill:hover:not(.cb-active) {
  background: #E8E8E8;
  color: #002D4C;
  border-color: #d0d5da;
}

/* Active state now uses navy instead of lime green */
.cb-pill.cb-active {
  background: #002D4C;
  color: #fff;
  border-color: #002D4C;
}

.cb-filter-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cb-count {
  font-size: 13px;
  color: #5A6878;
  font-weight: 500;
  white-space: nowrap;
}

.cb-clear {
  font-size: 13px;
  font-weight: 600;
  color: #00E5D3;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  padding: 0;
  display: none;
  transition: color 0.2s ease;
}

.cb-clear:hover {
  color: #00B8A9;
}

.cb-clear.visible {
  display: inline;
}

/* Mobile toggle */
.cb-filters-toggle-row {
  display: none;
  align-items: center;
  justify-content: space-between;
}

.cb-filters-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #002D4C;
  cursor: pointer;
  padding: 0;
}

.cb-toggle-caret {
  transition: transform 0.2s ease;
}

.cb-filters.open .cb-toggle-caret {
  transform: rotate(180deg);
}

.cb-count-mobile {
  font-size: 13px;
  color: #5A6878;
  font-weight: 500;
}

@media (max-width: 1000px) {
  .cb-filters-toggle-row {
    display: flex;
  }
  .cb-filters-inner {
    display: none !important;
    padding-top: 14px;
    border-top: 1px solid #F0F0F0;
    margin-top: 12px;
  }
  .cb-filters.open .cb-filters-inner {
    display: flex !important;
  }
  .cb-filter-meta {
    display: none;
  }
}

/* ===== cards + grid (block 16; the .cb-modal rules are unused — modal was dropped) ===== */
/* ===================== */
/* DESIGN TOKENS - matching Learn & Support */
/* ===================== */
.cb-page {
  --cb-brand-dark: #002D4C;
  --cb-brand-darker: #001930;
  --cb-brand-teal: #00E5D3;
  --cb-brand-blue: #59C9E1;
  --cb-brand-pink: #F671EA;
  --cb-brand-coral: #F88379;
  --cb-brand-lime: #A8E063;

  --cb-text-primary: #002D4C;
  --cb-text-secondary: #5A6C7D;
  --cb-text-muted: #5A6878;

  --cb-bg-light: #f8fafb;
  --cb-border-light: #e8eef2;

  --cb-hover-speed: 850ms;
  --cb-hover-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================== */
/* CARD GRID */
/* ===================== */
.cb-grid-wrap {
  padding: 30px var(--carl-section-padding-x) 80px;
}

.cb-grid {
  max-width: var(--carl-content-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  .cb-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cb-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== */
/* BLOG CARD - Updated to match Learn & Support */
/* ===================== */
.cb-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0,45,76,0.06), 0 8px 24px rgba(0,45,76,0.08);
  display: flex;
  flex-direction: column;
  transition: transform var(--cb-hover-speed, 850ms) var(--cb-hover-ease, cubic-bezier(0.16, 1, 0.3, 1)),
              box-shadow var(--cb-hover-speed, 850ms) var(--cb-hover-ease, cubic-bezier(0.16, 1, 0.3, 1));
  cursor: pointer;
  overflow: hidden;
  border: 1px solid rgba(0,45,76,0.06);
}

.cb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,45,76,0.08), 0 16px 32px rgba(0,45,76,0.12);
}

.cb-card.cb-hidden {
  display: none;
}

/* Card Art - Colored gradient with centered icon (fallback), or the post's preview image */
.cb-card-art {
  width: 100%;
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

/* Layered image system: when a post has a preview image it fills the art slot (the colored block + icon
   are the no-image fallback). Preview art is 1.90:1 navy scenes — object-fit cover keeps them edge-to-edge. */
.cb-card-art--img { background: #001930; }
.cb-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--cb-hover-speed, 850ms) var(--cb-hover-ease, cubic-bezier(0.16, 1, 0.3, 1)); }
.cb-card:hover .cb-card-img { transform: scale(1.035); }

.cb-card-art--pink {
  background: linear-gradient(135deg, rgba(246,113,234,0.13) 0%, rgba(248,131,121,0.10) 100%);
}

.cb-card-art--teal {
  background: linear-gradient(135deg, rgba(0,229,211,0.15) 0%, rgba(89,201,225,0.12) 100%);
}

.cb-card-art--lime {
  background: linear-gradient(135deg, rgba(168,224,99,0.16) 0%, rgba(122,184,46,0.12) 100%);
}

.cb-card-icon {
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,45,76,0.08);
}

.cb-card-icon svg {
  width: 28px;
  height: 28px;
}

.cb-card-icon--pink svg {
  stroke: #F671EA;
}

.cb-card-icon--teal svg {
  stroke: #00E5D3;
}

.cb-card-icon--lime svg {
  stroke: #7AB82E;
}

/* Card Body */
.cb-card-body {
  padding: 20px 22px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Dual badges */
.cb-card-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.cb-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cb-badge--category {
  border: 1px solid;
}

.cb-badge--building-carl {
  background: rgba(246,113,234,0.10);
  border-color: rgba(246,113,234,0.28);
  color: #A82B9D; /* was #D94FCB — WCAG AA on the pink tint (#85) */
}

.cb-badge--carl-updates,
.cb-badge--pedagogy {
  background: rgba(0,229,211,0.10);
  border-color: rgba(0,229,211,0.28);
  color: #00766C; /* was #00B8A9 — WCAG AA on the teal tint (#85) */
}

.cb-badge--deep-dives {
  background: rgba(168,224,99,0.13);
  border-color: rgba(168,224,99,0.28);
  color: #4A7A14; /* was #7AB82E — WCAG AA on the lime tint (#85) */
}

.cb-badge--type {
  background: #f0f2f4;
  color: #5A6C7D;
}

.cb-card-title {
  font-size: 17px;
  font-weight: 600;
  color: #001930;
  line-height: 1.35;
  margin-bottom: 10px;
}

.cb-card-excerpt {
  font-size: 14px;
  color: #5A6C7D;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Footer - Grid layout with pill button */
.cb-card-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 16px 22px;
  border-top: 1px solid #f0f2f4;
  margin-top: 16px;
  gap: 12px;
}

.cb-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: #5A6878;
  font-family: 'Poppins', sans-serif;
}

.cb-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* size the meta icon so it never pushes the date to wrap (#91) — the index bakes width/height into
   its inline SVG; the home band's SVG didn't, so it rendered at the unconstrained default. */
.cb-card-meta svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Pill button matching Learn & Support */
.cb-card-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #002D4C;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  transition: all var(--cb-hover-speed, 850ms) var(--cb-hover-ease, cubic-bezier(0.16, 1, 0.3, 1));
  border: none;
  cursor: pointer;
}

.cb-card:hover .cb-card-read {
  background: linear-gradient(135deg, #59C9E1, #00E5D3);
  color: #002D4C;
}

.cb-card-read svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.cb-card:hover .cb-card-read svg {
  transform: translateX(2px);
}

/* ===================== */
/* LOADING / EMPTY */
/* ===================== */
.cb-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  color: #5A6878;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
}

.cb-empty {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  font-family: 'Poppins', sans-serif;
}

.cb-empty.cb-visible {
  display: block;
}

.cb-empty-icon {
  font-size: 40px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.cb-empty p {
  color: #5A6878;
  font-size: 14px;
  margin-bottom: 20px;
}

.cb-empty-btn {
  background: #002D4C;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
}

/* ===================== */
/* MODAL - Updated styling */
/* ===================== */
.cb-modal {
  display: none;
  position: fixed !important;
  inset: 0;
  background: rgba(0,25,48,0.82);
  z-index: 999999 !important;
  padding: 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cb-modal.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 40px;
}

.cb-modal-content {
  background: #fff;
  border-radius: 18px;
  max-width: 780px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  position: relative;
}

/* Modal header with gradient art */
.cb-modal-header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  overflow: hidden;
  padding: 32px 32px 28px;
}

.cb-modal-header--pink {
  background: linear-gradient(135deg, rgba(246,113,234,0.15) 0%, rgba(248,131,121,0.12) 100%);
}

.cb-modal-header--teal {
  background: linear-gradient(135deg, rgba(0,229,211,0.18) 0%, rgba(89,201,225,0.14) 100%);
}

.cb-modal-header--lime {
  background: linear-gradient(135deg, rgba(168,224,99,0.18) 0%, rgba(122,184,46,0.14) 100%);
}

.cb-modal-header-text {
  display: flex;
  flex-direction: column;
}

.cb-modal-header-icon {
  width: 72px;
  height: 72px;
  background: #fff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,45,76,0.1);
  flex-shrink: 0;
}

.cb-modal-header-icon svg {
  width: 36px;
  height: 36px;
}

@media (max-width: 580px) {
  .cb-modal-header {
    grid-template-columns: 1fr;
  }
  .cb-modal-header-icon {
    display: none;
  }
}

.cb-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  background: rgba(0,45,76,0.08);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 2;
}

.cb-modal-close:hover {
  background: rgba(0,45,76,0.15);
}

.cb-modal-close svg {
  stroke: #002D4C;
}

.cb-modal-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.cb-modal-meta-text {
  font-size: 12px;
  color: #5A6C7D;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
}

.cb-modal-title {
  color: #002D4C;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  padding-right: 44px;
}

/* Modal body */
.cb-modal-body {
  padding: 36px 32px;
}

.cb-modal-article {
  font-size: 15px;
  color: #3A4D5C;
  line-height: 1.75;
  font-family: 'Poppins', sans-serif;
}

.cb-modal-article h2 {
  font-size: 20px;
  font-weight: 700;
  color: #001930;
  margin: 28px 0 12px;
}

.cb-modal-article h3 {
  font-size: 17px;
  font-weight: 600;
  color: #001930;
  margin: 22px 0 10px;
}

.cb-modal-article p {
  margin: 0 0 16px;
}

.cb-modal-article ul,
.cb-modal-article ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.cb-modal-article li {
  margin-bottom: 6px;
}

.cb-modal-article strong {
  color: #001930;
  font-weight: 600;
}

.cb-modal-article a {
  color: #00B8A9;
}

.cb-modal-article blockquote {
  border-left: 3px solid #00E5D3;
  margin: 20px 0;
  padding: 12px 18px;
  background: #F8F9FA;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #5A6C7D;
}

/* Modal footer */
.cb-modal-footer {
  border-top: 1px solid #F0F0F0;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cb-modal-footer-text {
  font-size: 13px;
  color: #5A6878;
  font-family: 'Poppins', sans-serif;
}

.cb-modal-share-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 16px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #5A6C7D !important;
  border: 1.5px solid #e0e4e8 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  text-decoration: none !important;
}

.cb-modal-share-btn:hover {
  border-color: #00E5D3 !important;
  color: #00B8A9 !important;
}

.cb-modal-share-btn.copied {
  border-color: #A8E063 !important;
  color: #7AB82E !important;
}

.cb-modal-btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #002D4C !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 11px 22px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: 'Poppins', sans-serif !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all var(--cb-hover-speed, 850ms) var(--cb-hover-ease, cubic-bezier(0.16, 1, 0.3, 1)) !important;
}

.cb-modal-btn-primary:hover {
  background: #00E5D3 !important;
  color: #002D4C !important;
}

/* AI In Practice badge (lime; the live page lacked this category in its hardcoded map) */
.cb-badge--ai-in-practice { background: rgba(168,224,99,0.13); border-color: rgba(168,224,99,0.28); color: #4A7A14; /* was #7AB82E (#85) */ }

/* ===== about-cta layout (block 17) ===== */
.about-cta-layout {
          display: grid;
          grid-template-columns: 1fr 1fr;
          gap: 60px;
          align-items: center;
          position: relative;
          z-index: 2;
        }

        /* STACK EARLIER */
        @media (max-width: 1100px) {
          .about-cta-layout {
            grid-template-columns: 1fr;
            gap: 40px;
            text-align: center;
          }
          .about-cta-content { text-align: center !important; }
          .about-cta-btns { justify-content: center !important; }
          .about-cta-img { max-width: 320px !important; }
        }

        @media (max-width: 768px) {
          .about-cta-btns { flex-direction: column; }
          .about-cta-btns a { width: 100%; }
        }

/* closing CTA */
.cb-cta-section { padding: 80px 0; font-family: 'Poppins', sans-serif; }
.cb-cta-shell { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.cb-cta-card { background: linear-gradient(135deg, #59C9E1, #00E5D3); border-radius: 28px; padding: 60px 80px; box-shadow: 0 20px 60px rgba(0,45,76,0.15); position: relative; overflow: hidden; }
.cb-cta-glow { position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.25), transparent 60%); pointer-events: none; }
.cb-cta-imgwrap { display: flex; align-items: center; justify-content: center; }
.about-cta-img { max-width: 500px; width: 100%; height: auto; }
.about-cta-content { text-align: left; }
.about-cta-content h2 { font-family: 'Poppins', sans-serif; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin: 0 0 14px; color: #001930; letter-spacing: -0.5px; line-height: 1.15; }
.about-cta-content p { font-size: 17px; line-height: 1.6; margin: 0 0 26px; color: rgba(0,25,48,0.82); max-width: 440px; }
.about-cta-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.cb-cta-btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.cb-cta-btn--light { background: #fff; color: #002D4C; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.cb-cta-btn--light:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.cb-cta-btn--dark { background: #001930; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.cb-cta-btn--dark:hover { transform: translateY(-2px); background: #002D4C; box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
@media (max-width: 768px) { .cb-cta-card { padding: 40px 28px; } .cb-cta-shell { padding: 0 16px; } }

/* ============================================================
   FEATURED SPOTLIGHT + crafted blob background + compact CTA
   ============================================================ */

/* subtle blob/accent wash so the index reads as a crafted space, not a flat list */
#cbCommentary { position: relative; background-color: #fafdfe;
  background-image:
    radial-gradient(38% 30% at 88% 7%, rgba(89,201,225,.07), transparent 72%),
    radial-gradient(32% 26% at 3% 32%, rgba(168,224,99,.06), transparent 72%),
    radial-gradient(40% 32% at 97% 70%, rgba(0,229,211,.06), transparent 72%),
    radial-gradient(28% 24% at 10% 92%, rgba(89,201,225,.05), transparent 72%); }

/* featured (latest) spotlight — large horizontal card above the filter bar (aligned to the grid/filters
   by putting the 1200px cap on the CARD, not the wrap, so its edges line up exactly) */
.cb-featured-wrap { padding: 42px var(--carl-section-padding-x, 24px) 30px; }
.cb-featured { max-width: var(--carl-content-max-width, 1200px); margin: 0 auto; display: grid; grid-template-columns: 1.08fr 1fr; background: #fff; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(0,45,76,0.07); box-shadow: 0 3px 12px rgba(0,45,76,0.06), 0 20px 46px -16px rgba(0,45,76,0.20);
  text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.cb-featured:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,45,76,0.08), 0 28px 60px -18px rgba(0,45,76,0.26); }
.cb-featured-art { position: relative; min-height: 310px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cb-featured-art.cb-card-art--img { background: #001930; }
.cb-featured-art .cb-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.cb-featured:hover .cb-card-img { transform: scale(1.04); }
.cb-featured-body { padding: 34px 40px; display: flex; flex-direction: column; }
.cb-featured-latest { background: #002D4C; color: #fff; border-color: #002D4C; letter-spacing: .05em; }
.cb-featured-title { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.2; letter-spacing: -.01em; color: #001930; margin: 14px 0 12px; }
.cb-featured-excerpt { font-size: 15.5px; line-height: 1.62; color: #5A6C7D; margin: 0 0 22px; }
.cb-featured-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; }
.cb-featured-read { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; background: #002D4C; color: #fff; border-radius: 999px; font-weight: 700; font-size: 13px; white-space: nowrap; transition: background .15s ease, color .15s ease; }
.cb-featured:hover .cb-featured-read { background: linear-gradient(135deg, #59C9E1, #00E5D3); color: #002D4C; }
.cb-featured-read svg { width: 12px; height: 12px; }

/* compact closing CTA (was an oversized gradient block) */
.cb-cta-section { padding: 22px 0 64px; }
.cb-cta-shell { max-width: 720px; }
.cb-cta-card { border-radius: 22px; padding: 28px 34px; box-shadow: 0 14px 40px rgba(0,45,76,0.14); }
.cb-cta-card .about-cta-layout { display: grid; grid-template-columns: 92px 1fr; gap: 24px; align-items: center; position: relative; z-index: 2; }
.about-cta-img { max-width: 92px; }
.about-cta-content h2 { font-size: clamp(20px, 2.2vw, 24px); margin: 0 0 6px; }
.about-cta-content p { font-size: 14.5px; margin: 0 0 16px; max-width: none; }
.about-cta-btns { gap: 11px; }
.cb-cta-btn { padding: 9px 18px; font-size: 13.5px; }

@media (max-width: 800px) {
  .cb-featured { grid-template-columns: 1fr; }
  .cb-featured-art { min-height: 190px; }
  .cb-featured-body { padding: 24px 22px; }
  .cb-featured-foot { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .cb-cta-card .about-cta-layout { grid-template-columns: 56px 1fr; gap: 14px; }
  .about-cta-img { max-width: 56px; }
  .cb-cta-card { padding: 22px 20px; }
}


/* ===== Home "Fresh from CARL's Commentary" band (#90) — [carl_recent_posts] ===== */
.cb-band { width: 100vw; margin-left: calc(50% - 50vw); background: #FAFBFA; padding: 84px 24px;
  box-sizing: border-box; font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.cb-band-inner { max-width: 1200px; margin: 0 auto; }
.cb-band-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
  margin-bottom: 30px; flex-wrap: wrap; }
.cb-band-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: #2BA7C4; }
.cb-band-dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #59C9E1, #00E5D3); }
.cb-band-title { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; color: #002D4C; margin: 8px 0 0; }
.cb-band-all { font-size: 15px; font-weight: 700; color: #00766C; text-decoration: none; white-space: nowrap; padding-bottom: 4px; }
.cb-band-all:hover { text-decoration: underline; }
.cb-band-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 980px) {
  .cb-band-grid { grid-template-columns: 1fr; }
  .cb-band-title { font-size: 26px; }
  .cb-band { padding: 64px 20px; }
}
