
/* Hero Banner Background */
.hero-wrap{position:relative; overflow:hidden; background-color:#121212; padding:70px 0 60px;}
.hero-bg-img{position:absolute; inset:-24px; background-size:cover; background-position:center; background-repeat:no-repeat; filter:blur(6px); opacity:0.45; transform:scale(1.05); z-index:0; pointer-events:none;}
.hero-overlay{position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.88) 100%); z-index:1; pointer-events:none;}

/* Featured Article & Case Study Media */
.article-featured-media{margin:0 0 36px 0; border-radius:8px; overflow:hidden; border:1px solid rgba(154,52,18,.15); background:#1e1e1e; box-shadow:0 12px 32px rgba(0,0,0,.12);}
.article-featured-media img{width:100%; height:auto; max-height:440px; object-fit:cover; display:block;}
.article-featured-media .media-caption{padding:11px 18px; font-size:13px; font-family:'IBM Plex Mono',monospace; color:var(--text-dim, #7A5231); background:#FFFDF9; border-top:1px solid rgba(154,52,18,.1); display:flex; align-items:center; gap:8px;}
:root[data-theme="dark"] .article-featured-media .media-caption, .dark-theme .article-featured-media .media-caption{background:#181818; color:rgba(255,255,255,.7); border-top:1px solid rgba(255,255,255,.08);}

.hero-wrap .wrap, .hero-wrap .crumb, .hero-wrap .article-head{position:relative; z-index:2;}
.article-head{max-width:920px; margin:0 auto; text-align:center;}
.article-head h1{text-align:center;}
.article-head .sub{margin:0 auto 26px; text-align:center;}
.article-head .post-cat{display:inline-flex; justify-content:center;}
.article-meta{justify-content:center;}
.hero-wrap .crumb{justify-content:center; text-align:center; padding-left:0;}


.wrap{
  width:100%;
  padding-left:32px;
  padding-right:32px;
}

.article-layout{
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
  padding: 48px 0 64px;
  min-width: 0;
}

.article-body,
.contact-tile,
.toc-sidebar{
  min-width:0;
}

.article-body img,
.article-body video,
.article-body table{
  max-width:100%;
}

.article-body table{
  display:block;
  overflow-x:auto;
}

@media(max-width:1150px){
  .article-layout{
    grid-template-columns:200px minmax(0, 1fr) 280px;
    gap:28px;
  }

  .article-head{
    max-width:100%;
    padding-left:32px;
    padding-right:32px;
  }
}

@media(max-width:960px){
  .article-layout{
    grid-template-columns:1fr;
    gap:36px;
  }

  .toc-sidebar,
  .contact-tile{
    position:static;
    max-height:none;
  }

  .article-head h1{
    font-size:clamp(34px, 6vw, 48px);
  }

  .cta-banner{
    grid-template-columns:1fr;
    padding:44px 40px;
  }
}

@media(max-width:640px){
  .wrap{
    padding-left:20px;
    padding-right:20px;
  }

  .article-head{
    padding:36px 20px;
  }

  .article-head h1{
    font-size:34px;
    line-height:1.15;
  }

  .article-head .sub{
    font-size:15px;
  }

  .article-layout{
    padding-top:40px;
    padding-bottom:40px;
  }

  .article-body p,
  .article-body ul li{
    font-size:15.5px;
    text-align:left;
  }

  .article-body h2{
    font-size:24px;
  }

  .stat-row,
  .related-grid{
    grid-template-columns:1fr;
  }

  .callout-box,
  .checklist-box{
    padding-left:20px;
    padding-right:20px;
  }

  .cta-banner{
    padding:36px 28px;
  }
}

  /* Editorial Initial Cap on First Letter */
  .article-body > p:first-of-type::first-letter,
  .article-body > section:first-of-type > p:first-of-type::first-letter,
  .article-body > section:first-of-type > div > p:first-of-type::first-letter,
  section#challenge .section-head + div > p:first-of-type::first-letter,
  section#challenge p:first-of-type::first-letter,
  section.section-divider:first-of-type p:first-of-type::first-letter {
    font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
    font-size: 2.35em;
    font-weight: 700;
    line-height: 1;
    color: var(--orange-bright, #FB923C);
    margin-right: 1px;
    vertical-align: -0.04em;
  }

  /* ===== RICH CONTENT STYLING (Orange & Cream accents) ===== */
  .article-body h2{
    font-family:'Fraunces',serif;
    font-size:32px;
    line-height:1.25;
    color:#1E150F;
    margin:46px 0 20px;
    position:relative;
    padding-bottom:12px;
    border-bottom:1px solid rgba(154,52,18,.12);
  }
  .article-body h2::after{
    content:'';
    position:absolute;
    bottom:-1px;
    left:0;
    width:44px;
    height:3px;
    background:var(--orange-bright);
    border-radius:2px;
  }
  .article-body h3{
    font-family:'Space Grotesk',sans-serif;
    font-size:21px;
    font-weight:600;
    color:#2E1E14;
    margin:32px 0 14px;
  }
  .article-body p{
    font-size:16.5px;
    line-height:1.8;
    color:#4A3B32;
    margin-bottom:20px;
  }
  
  /* Cream Callout & Formula Boxes */
  .callout-box, .highlight-box{
    background:linear-gradient(135deg, #FFFDF9 0%, #FAF3EB 100%);
    border:1px solid rgba(234,88,12,.2);
    border-left:4px solid var(--orange-bright);
    border-radius:10px;
    padding:22px 26px;
    margin:30px 0;
    box-shadow:0 4px 18px rgba(154,52,18,.05);
  }
  .callout-box p, .highlight-box p{
    margin-bottom:0;
    color:#3D2616;
  }
  .callout-box strong, .highlight-box strong{
    color:#9A3412;
  }

  /* Alternating Step Blocks */
  .step-block{
    background:#FFFDF9;
    border:1px solid rgba(154,52,18,.12);
    border-radius:10px;
    padding:24px 26px;
    margin:24px 0;
    position:relative;
    transition:transform .2s ease, box-shadow .2s ease;
    box-shadow:0 2px 10px rgba(0,0,0,.02);
  }
  .step-block:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 24px rgba(154,52,18,.08);
    border-color:rgba(234,88,12,.25);
  }
  .step-block:nth-of-type(even){
    background:linear-gradient(135deg, #FFF6EE 0%, #FDEEE0 100%);
    border-left:4px solid var(--orange-bright);
  }
  .step-block h3{
    color:#9A3412;
    font-size:18.5px;
    margin-top:0;
    margin-bottom:10px;
  }
  .step-block p{
    margin-bottom:0;
    font-size:15.5px;
    line-height:1.7;
    color:#4A3B32;
  }

  /* Signature Orange Quote Cards */
  .pull-quote, .article-body blockquote{
    background:linear-gradient(135deg, #FFF4E8 0%, #FDEDE0 100%);
    border-left:4px solid var(--orange-bright);
    border-radius:0 12px 12px 0;
    padding:24px 30px;
    margin:36px 0;
    font-family:'Fraunces',serif;
    font-style:italic;
    font-size:20px;
    line-height:1.6;
    color:#4A2B14;
    box-shadow:0 4px 16px rgba(154,52,18,.06);
  }

  /* Stat Grids */
  .stat-row{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
    gap:18px;
    margin:36px 0;
  }
  .stat-box{
    background:linear-gradient(145deg, #FFFDF9 0%, #FAF2E8 100%);
    border:1px solid rgba(154,52,18,.15);
    border-radius:12px;
    padding:24px 20px;
    text-align:center;
    box-shadow:0 4px 14px rgba(154,52,18,.05);
    transition:transform .2s ease;
  }
  .stat-box:hover{
    transform:translateY(-3px);
    border-color:var(--orange-bright);
  }
  .stat-box .num{
    font-family:'Fraunces',serif;
    font-size:36px;
    font-weight:600;
    color:var(--orange-bright);
    line-height:1.1;
  }
  .stat-box .lbl{
    font-family:'IBM Plex Mono',monospace;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#7A5231;
    margin-top:8px;
  }

  /* Case study alternating sections */
  section.section-divider:nth-of-type(odd){
    background:#FAF5EE;
    border-top:1px solid rgba(154,52,18,.08);
    border-bottom:1px solid rgba(154,52,18,.08);
  }
  section.section-divider:nth-of-type(even){
    background:#FFFDFB;
  }

  /* ===== TOC SIDEBAR (LEFT COLUMN - FULLY VISIBLE & LEFT-ALIGNED) ===== */
  .toc-sidebar{
    position:-webkit-sticky;
    position:sticky;
    top:96px;
    align-self:start;
    z-index:10;
    margin-bottom:0;
    min-width:0;
    width:100%;
    overflow:visible !important;
    max-height:none !important;
    height:auto !important;
    text-align:left !important;
  }
  .toc-eyebrow{
    font-family:'IBM Plex Mono',monospace;
    font-size:11px;
    letter-spacing:.12em;
    text-transform:uppercase;
    color:#7A5231 !important;
    margin-bottom:14px;
    font-weight:600;
    line-height:1.3;
    text-align:left !important;
    display:block;
  }
  .toc-nav{
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    justify-content:flex-start !important;
    height:auto !important;
    max-height:none !important;
    width:100% !important;
    max-width:100% !important;
    padding:0 !important;
    margin:0 !important;
    border-left:2px solid rgba(154,52,18,.14) !important;
    text-align:left !important;
  }
  .toc-nav a{
    display:block !important;
    width:100% !important;
    text-align:left !important;
    font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
    font-size:13.5px;
    line-height:1.5;
    color:#3E2E20 !important;
    padding:7px 0 7px 16px !important;
    border-left:2px solid transparent !important;
    margin-left:-2px !important;
    margin-top:0 !important;
    margin-bottom:0 !important;
    margin-right:0 !important;
    transition:color .18s ease, border-color .18s ease, font-weight .18s ease;
    text-decoration:none;
    font-weight:500;
    word-break:break-word;
    box-sizing:border-box !important;
  }
  .toc-nav a:hover{
    color:#EA580C !important;
    border-left-color:rgba(234,88,12,0.45) !important;
    text-align:left !important;
  }
  .toc-nav a.active{
    color:#EA580C !important;
    border-left-color:#EA580C !important;
    font-weight:600 !important;
    text-align:left !important;
  }

  .contact-tile{
    position:-webkit-sticky;
    position:sticky;
    top:96px;
    align-self:start;
    margin-bottom:0;
  }

  /* Smooth Scroll Offset for Sticky Navbar */
  html{
    scroll-behavior:smooth;
    scroll-padding-top:105px;
  }
  [id]{
    scroll-margin-top:105px;
  }
  .article-body h2[id],
  .article-body h3[id],
  .article-body section[id],
  section[id]{
    scroll-margin-top:105px;
  }
