*, *::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 archive header — on white, no dark banner. Lives INSIDE
       the main column so the sidebar starts at the same y (page top).
       Breadcrumb back to /the-switch/, all-caps eyebrow naming the surface
       (Category / Tag), then the name as a serious editorial h1, a short
       description, the post count subtle, and a thin accent rule keyed
       to the category colour. */
    .archive-header { padding: 0 0 clamp(28px, 4vw, 44px); }
    .archive-header .crumb { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #287271; text-decoration: none; margin: 0 0 22px; letter-spacing: 0.02em; }
    .archive-header .crumb:hover { color: #1f5f5e; text-decoration: underline; text-underline-offset: 3px; }
    .archive-header .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 100px; background: rgba(40,114,113,0.1); color: #287271; border: 1.5px solid rgba(40,114,113,0.3); font-size: 10.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
    .archive-header h1 { font-weight: 800; font-size: clamp(36px, 6vw, 56px); margin: 0 0 16px; letter-spacing: -0.03em; line-height: 1.05; color: #264653; }
    .archive-header p { font-size: clamp(16px, 2.1vw, 19px); color: rgba(38,70,83,0.76); max-width: 60ch; margin: 0 0 18px; line-height: 1.55; font-weight: 500; }
    .archive-header .count { display: inline-block; font-size: 11px; font-weight: 700; color: rgba(38,70,83,0.55); letter-spacing: 0.14em; text-transform: uppercase; }
    .archive-header::after { content: ""; display: block; height: 3px; width: 64px; background: #287271; margin-top: 24px; border-radius: 2px; }

    .blog-layout { max-width: 1180px; margin: 0 auto; padding: clamp(36px, 5vw, 56px) clamp(20px, 4vw, 32px) clamp(64px, 8vw, 96px); 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; } }
    .archive-main { min-width: 0; }

    /* Card grid (matches /the-switch/ index). */
    .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); }

    /* Pagination controls — under the grid on archives with more than one
       page. Brand-teal pill links, current page solid, gap markers for
       skipped numbers. No JS. */
    .archive-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: clamp(32px, 5vw, 48px); padding-top: 24px; border-top: 1.5px solid rgba(38,70,83,0.10); }
    .page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; 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; transition: background 0.12s, border-color 0.12s; box-shadow: 3px 3px 0 rgba(38,70,83,0.10); }
    .page-link:hover { background: rgba(40,114,113,0.08); border-color: rgba(40,114,113,0.30); }
    .page-link.is-current { background: #287271; color: #F4F4F2; border-color: #287271; box-shadow: 3px 3px 0 rgba(40,114,113,0.35); cursor: default; pointer-events: none; }
    .page-gap { padding: 0 4px; color: rgba(38,70,83,0.45); font-weight: 700; }
    .page-prev, .page-next { font-size: 12px; padding: 0 16px; }

    /* ── SIDEBAR ─────────────────────────────────────────────────────────
       Same widget styles as per-post sidebar so the visual language stays
       consistent across blog homepage, archives, and individual posts. */
    /* 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. */
    .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-readnext .sw-rn { list-style: none; padding: 0; margin: 0; }
    .sidebar-widget-readnext .sw-rn li { padding: 10px 0; border-bottom: 1px solid rgba(38,70,83,0.06); }
    .sidebar-widget-readnext .sw-rn li:last-child { border-bottom: none; padding-bottom: 0; }
    .sidebar-widget-readnext .sw-rn a { display: block; color: #264653; text-decoration: none; }
    .sidebar-widget-readnext .sw-rn-cat { display: block; font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px; }
    .sidebar-widget-readnext .sw-rn-title { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: #264653; }
    .sidebar-widget-readnext .sw-rn a:hover .sw-rn-title { color: #287271; }

    .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); }