*, *::before, *::after { box-sizing: border-box; }
    body { background: #FFFFFF; color: #264653; font-family: 'Outfit', sans-serif; margin: 0; line-height: 1.6; padding-top: 80px; }
    @media (min-width: 768px) { body { padding-top: 92px; } }

    /* Editorial hero: on-white, magazine-style. Lives INSIDE the main
       column of the layout grid so the sidebar starts at the same y as the
       hero (page top). Eyebrow pill keys to brand gold; h1 uses tight
       tracking + heavy weight per the brand reference. No search field —
       sidebar widget owns that surface. */
    .blog-hero { padding: 0 0 clamp(28px, 4vw, 44px); text-align: left; }
    .blog-hero-inner { max-width: 60ch; }
    .blog-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 100px; background: rgba(233,196,106,0.18); color: #92651c; border: 1.5px solid rgba(233,196,106,0.55); font-size: 10.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 22px; }
    .blog-hero h1 { font-weight: 800; font-size: clamp(40px, 7vw, 60px); margin: 0 0 18px; letter-spacing: -0.03em; line-height: 1.04; color: #264653; }
    .blog-hero h1 em { font-style: normal; color: #E76F51; }
    .blog-hero p { font-size: clamp(16px, 2.1vw, 19px); color: rgba(38,70,83,0.76); margin: 0 0 8px; line-height: 1.6; font-weight: 500; }

    /* Category chips bar — sits between hero and featured post as a quick
       browse-by-topic. Lives inside the main column. */
    .blog-topics { margin: 0 0 clamp(32px, 4vw, 44px); }
    .blog-topics-label { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(38,70,83,0.55); margin: 0 0 12px; }
    .blog-topics-chips { display: flex; flex-wrap: wrap; gap: 8px; }
    .blog-topics-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 100px; background: #FFFFFF; border: 1.5px solid rgba(38,70,83,0.14); color: #264653; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 13px; text-decoration: none; letter-spacing: 0.01em; transition: background 0.12s, border-color 0.12s, transform 0.12s; box-shadow: 3px 3px 0 rgba(38,70,83,0.10); }
    .blog-topics-chip:hover { background: rgba(40,114,113,0.06); border-color: rgba(40,114,113,0.30); transform: translateY(-1px); }
    .blog-topics-chip .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
    .blog-topics-chip .count { font-size: 11px; font-weight: 700; color: rgba(38,70,83,0.50); margin-left: 2px; }

    /* Featured-post slot. Sits above the standard grid on /the-switch/. First-time
       visitors land on a "start here" card rather than the strict newest-first
       view; lifts time-on-site for cold traffic. The post marked
       `featured: true` in its YAML wins; falls back to newest if none. */
    .featured-post { display: grid; grid-template-columns: 1fr; gap: 0; background: #FFFFFF; border-radius: 20px; overflow: hidden; border: 1.5px solid rgba(38,70,83,0.14); box-shadow: 6px 6px 0 rgba(38,70,83,0.18); margin-bottom: 48px; text-decoration: none; color: inherit; transition: transform 0.14s, box-shadow 0.14s; }
    .featured-post:hover { transform: translateY(-3px); box-shadow: 9px 9px 0 rgba(38,70,83,0.28); }
    @media (min-width: 720px) { .featured-post { grid-template-columns: 1.2fr 1fr; align-items: stretch; } }
    .featured-post .cover { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: rgba(38,70,83,0.06); display: block; }
    .featured-post .body { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
    .featured-post .start-here { display: inline-block; align-self: flex-start; padding: 6px 14px; border-radius: 100px; background: #E9C46A; color: #264653; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; box-shadow: 3px 3px 0 rgba(38,70,83,0.30); }
    .featured-post h2 { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: clamp(26px, 4vw, 36px); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 14px; color: #264653; }
    .featured-post .dek { font-size: 16px; color: rgba(38,70,83,0.78); line-height: 1.6; margin: 0 0 22px; }
    .featured-post .meta { display: flex; gap: 12px; font-size: 12px; color: rgba(38,70,83,0.55); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
    .featured-post .pill { padding: 4px 11px; border-radius: 100px; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

    /* Single layout container — hero, chips, featured, and grid all live
       inside the main column so the sidebar starts at the top of the page
       (no padding-induced gap above the sidebar). */
    .blog-layout { max-width: 1180px; margin: 0 auto; padding: clamp(36px, 5vw, 56px) clamp(20px, 4vw, 32px) clamp(72px, 9vw, 110px); display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
    @media (min-width: 980px) { .blog-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; } }
    .blog-index-main { min-width: 0; }
    /* Section label above the grid — gives the listing a beat instead of
       just dropping cards in. Sits between the featured slot and the grid. */
    .blog-section-label { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(38,70,83,0.55); margin: clamp(28px, 4vw, 40px) 0 18px; padding-bottom: 14px; border-bottom: 1.5px solid rgba(38,70,83,0.10); }
    .blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }

    .post-card { background: #FFFFFF; border-radius: 18px; border: 1.5px solid rgba(38,70,83,0.12); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform 0.14s, box-shadow 0.14s; box-shadow: 5px 5px 0 rgba(38,70,83,0.14); }
    .post-card:hover { transform: translateY(-3px); box-shadow: 7px 7px 0 rgba(38,70,83,0.22); }
    .post-card .cover { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; background: rgba(38,70,83,0.06); display: block; }
    .post-card .body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
    .post-card .pill { display: inline-block; align-self: flex-start; padding: 4px 11px; border-radius: 100px; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
    .post-card h2 { font-weight: 800; font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 10px; color: #264653; }
    .post-card .dek { font-size: 14.5px; color: rgba(38,70,83,0.74); line-height: 1.55; margin: 0 0 16px; flex: 1; }
    .post-card .meta { font-size: 11.5px; color: rgba(38,70,83,0.55); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

    .blog-empty { text-align: center; padding: 64px 20px; color: rgba(38,70,83,0.55); font-size: 15px; background: #FAF7F0; border-radius: 16px; border: 1.5px dashed rgba(38,70,83,0.18); }

    /* Sidebar — consistent across blog homepage, archives, and per-post pages.
       Widget cards carry the brand's hard shadow + crisp border so they have
       presence on the now-white page background. */
    /* Sidebar scrolls naturally with the page. */
    .post-sidebar { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
    /* Compact search widget — pagefind UI hosted inside the sidebar card.
       Tight padding, our font, brand teal selection — fits the sidebar
       width without overflowing. */
    .sidebar-widget-search .pagefind-ui {
      --pagefind-ui-primary: #287271;
      --pagefind-ui-text: #264653;
      --pagefind-ui-background: #FFFFFF;
      --pagefind-ui-border: rgba(38,70,83,0.20);
      --pagefind-ui-tag: rgba(40,114,113,0.10);
      --pagefind-ui-border-width: 1.5px;
      --pagefind-ui-border-radius: 100px;
      --pagefind-ui-font: 'Outfit', sans-serif;
    }
    .sidebar-widget-search .pagefind-ui__search-input { background: #FFFFFF; padding: 10px 14px; font-size: 13px; font-weight: 500; width: 100%; }
    .sidebar-widget-search .pagefind-ui__search-input::placeholder { color: rgba(38,70,83,0.50); }
    .sidebar-widget-search .pagefind-ui__drawer { margin-top: 12px; background: transparent; padding: 0; box-shadow: none; max-height: 50vh; overflow-y: auto; }
    .sidebar-widget-search .pagefind-ui__result { padding: 10px 0; border-bottom: 1px solid rgba(38,70,83,0.06); }
    .sidebar-widget-search .pagefind-ui__result:last-child { border-bottom: none; }
    .sidebar-widget-search .pagefind-ui__result-title { font-size: 13px; font-weight: 700; line-height: 1.3; margin: 0 0 4px; }
    .sidebar-widget-search .pagefind-ui__result-title a { color: #264653; }
    .sidebar-widget-search .pagefind-ui__result-title a:hover { color: #287271; }
    .sidebar-widget-search .pagefind-ui__result-excerpt { color: rgba(38,70,83,0.72); font-size: 12px; line-height: 1.5; }
    .sidebar-widget-search .pagefind-ui__result mark { background: rgba(233,196,106,0.40); color: #264653; padding: 0 2px; border-radius: 2px; }
    .sidebar-widget-search .pagefind-ui__message { font-size: 12px; color: rgba(38,70,83,0.55); padding: 6px 0 0; }
    .sidebar-widget { background: #FFFFFF; border: 1.5px solid rgba(38,70,83,0.12); border-radius: 14px; padding: 20px 22px; box-shadow: 4px 4px 0 rgba(38,70,83,0.12); }
    .sidebar-widget h3 { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 15px; margin: 0 0 12px; color: #264653; letter-spacing: -0.01em; }
    .sidebar-widget-newsletter { background: #FAF3DC; border-color: rgba(233,196,106,0.55); }
    .sw-cta { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 100px; background: #287271; color: #F4F4F2; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 12.5px; text-decoration: none; letter-spacing: 0.02em; border: none; cursor: pointer; }
    .sw-cta:hover { background: #246564; }
    .sidebar-widget-newsletter p { font-size: 13px; color: rgba(38,70,83,0.78); margin: 0 0 14px; line-height: 1.55; }
    .sidebar-widget-newsletter .sw-news-email { width: 100%; padding: 10px 14px; border-radius: 100px; border: 1.5px solid rgba(38,70,83,0.20); font-family: 'Outfit', sans-serif; font-size: 13px; background: #FFFFFF; color: #264653; margin: 0 0 10px; }
    .sidebar-widget-newsletter .sw-news-consent { display: flex; align-items: flex-start; gap: 7px; font-size: 11.5px; color: rgba(38,70,83,0.78); line-height: 1.5; margin-bottom: 6px; }
    .sidebar-widget-newsletter .sw-news-consent input { flex-shrink: 0; margin-top: 2px; accent-color: #287271; }
    .sidebar-widget-newsletter .sw-news-consent a { color: #287271; text-decoration: underline; }
    .sidebar-widget-newsletter button.sw-cta { width: 100%; justify-content: center; margin-top: 6px; }
    .sidebar-widget-categories .sw-cats { list-style: none; padding: 0; margin: 0; }
    .sidebar-widget-categories .sw-cats li { padding: 0; margin: 0 0 6px; }
    .sidebar-widget-categories .sw-cats a { display: flex; align-items: center; justify-content: space-between; padding: 9px 13px; border-radius: 8px; background: #F4F4F2; border-left: 3px solid; font-size: 13.5px; font-weight: 600; color: #264653; text-decoration: none; transition: background 0.12s; }
    .sidebar-widget-categories .sw-cats a:hover { background: rgba(40,114,113,0.10); }
    .sw-cat-count { font-size: 11px; font-weight: 700; color: rgba(38,70,83,0.45); }
    .sidebar-widget-tags .sw-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
    .sw-tag { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 100px; background: rgba(40,114,113,0.08); color: #287271; font-size: 11.5px; font-weight: 700; text-decoration: none; border: 1.5px solid rgba(40,114,113,0.20); transition: background 0.12s; }
    .sw-tag:hover { background: rgba(40,114,113,0.16); }
    .sw-tag-count { font-size: 10px; font-weight: 700; color: rgba(40,114,113,0.55); }