/* SWC Archive — homepage ([swc_homepage], formerly Code Snippet #87). Extracted verbatim from the in-body <style>; printed at wp_head 102. */
            .swc-homepage-v1,
            .swc-homepage-v1 * {
                box-sizing: border-box;
            }

            .swc-homepage-v1 {
                --swc-home-blue: var(--swc-blue);
                --swc-home-blue-dark: #0d3f8f;
                --swc-home-gold: #f6c84c;
                --swc-home-ink: #0f172a;
                --swc-home-muted: #64748b;
                --swc-home-line: #e5e7eb;

                position: relative;
                isolation: isolate;
                margin: 0 calc(50% - 50vw);
                padding: 30px max(22px, calc((100vw - 1200px) / 2)) 54px;
                color: #f8fafc;
                background:
                    radial-gradient(circle at 4% 18%, rgba(37, 99, 235, 0.13), transparent 14rem),
                    linear-gradient(135deg, #020617 0%, #061021 48%, #020617 100%);
                overflow: hidden;
            }

            .swc-homepage-v1:before {
                content: "";
                position: absolute;
                inset: 0;
                z-index: -2;
                pointer-events: none;
                background-image:
                    radial-gradient(circle, rgba(255,255,255,0.42) 1px, transparent 1.6px),
                    radial-gradient(circle, rgba(255,255,255,0.18) 1px, transparent 1.8px);
                background-size: 46px 46px, 86px 86px;
                background-position: 0 0, 22px 28px;
                opacity: 0.34;
            }

            .swc-homepage-v1:after {
                content: "";
                position: absolute;
                inset: 0;
                z-index: -1;
                pointer-events: none;
                background:
                    radial-gradient(ellipse 26rem 18rem at 8% 40%, rgba(37,99,235,0.17) 0%, rgba(37,99,235,0.08) 32%, transparent 72%),
                    radial-gradient(ellipse 22rem 15rem at 89% 14%, rgba(246,200,76,0.055) 0%, rgba(246,200,76,0.026) 36%, transparent 76%);
            }

            .swc-home-hero {
                display: grid;
                grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
                gap: 34px;
                align-items: center;
                min-height: 560px;
                padding: clamp(32px, 5vw, 62px);
                border: 1px solid rgba(255,255,255,0.10);
                border-radius: 30px;
                background:
                    linear-gradient(90deg, rgba(2,6,23,0.88) 0%, rgba(2,6,23,0.62) 52%, rgba(2,6,23,0.88) 100%),
                    var(--swc-home-hero-bg, none),
                    linear-gradient(135deg, #06101f 0%, #0a1e38 54%, #071629 100%);
                background-size: cover;
                background-position: center;
                box-shadow: 0 24px 70px rgba(4,12,24,0.28);
                overflow: hidden;
                position: relative;
            }

            .swc-home-hero:before {
                content: "";
                position: absolute;
                inset: 0;
                pointer-events: none;
                background-image:
                    radial-gradient(circle, rgba(255,255,255,0.40) 1px, transparent 1.6px),
                    radial-gradient(circle, rgba(255,255,255,0.14) 1px, transparent 1.8px);
                background-size: 48px 48px, 78px 78px;
                background-position: 0 0, 18px 30px;
                opacity: 0.14;
            }

            .swc-home-hero > * {
                position: relative;
                z-index: 1;
            }

            .swc-home-kicker,
            .swc-home-stats-kicker,
            .swc-home-gateway-kicker,
            .swc-home-section-kicker {
                margin: 0 0 12px;
                color: var(--swc-home-gold);
                font-size: 0.74rem;
                font-weight: 950;
                letter-spacing: 0.13em;
                line-height: 1.2;
                text-transform: uppercase;
            }

            .swc-home-hero h1 {
                max-width: 820px;
                margin: 0;
                color: #fff;
                font-size: clamp(2.35rem, 5.4vw, 5rem);
                line-height: 0.94;
                letter-spacing: -0.055em;
                text-transform: uppercase;
                text-shadow: 0 3px 18px rgba(0,0,0,0.34);
            }

            .swc-home-intro {
                max-width: 760px;
                margin: 20px 0 0;
                color: #dbeafe;
                font-size: 1.05rem;
                line-height: 1.72;
            }

            .swc-home-stats {
                width: 100%;
                padding: 24px;
                border-radius: 26px;
                background:
                    radial-gradient(circle at 18% 8%, rgba(246,200,76,0.10), transparent 34%),
                    linear-gradient(135deg, rgba(15,23,42,0.86), rgba(15,23,42,0.74));
                color: #fff;
                border: 1px solid rgba(255,255,255,0.16);
                box-shadow: 0 18px 48px rgba(0,0,0,0.22);
                backdrop-filter: blur(8px) saturate(96%);
                -webkit-backdrop-filter: blur(8px) saturate(96%);
            }

            .swc-home-feature-stat {
                padding: 18px 0 20px;
                border-top: 1px solid rgba(255,255,255,0.13);
                border-bottom: 1px solid rgba(255,255,255,0.13);
            }

            .swc-home-feature-stat strong {
                display: block;
                color: #fff;
                font-size: clamp(3.2rem, 7vw, 5.2rem);
                line-height: 0.88;
                letter-spacing: -0.06em;
                font-weight: 950;
            }

            .swc-home-feature-stat span {
                display: block;
                margin-top: 9px;
                color: rgba(255,255,255,0.78);
                font-size: 0.88rem;
                line-height: 1.25;
                font-weight: 900;
                letter-spacing: 0.08em;
                text-transform: uppercase;
            }

            .swc-home-stat-grid {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 12px;
                margin-top: 14px;
            }

            .swc-home-stat-tile {
                min-height: 112px;
                padding: 16px;
                border-radius: 18px;
                background: rgba(255,255,255,0.08);
                border: 1px solid rgba(255,255,255,0.11);
            }

            .swc-home-stat-tile strong {
                display: block;
                color: #fff;
                font-size: 1.85rem;
                line-height: 1;
                font-weight: 950;
                letter-spacing: -0.04em;
            }

            .swc-home-stat-tile span {
                display: block;
                margin-top: 8px;
                color: rgba(255,255,255,0.68);
                font-size: 0.72rem;
                line-height: 1.25;
                font-weight: 900;
                letter-spacing: 0.075em;
                text-transform: uppercase;
            }

            .swc-home-gateways {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 22px;
                margin-top: 24px;
            }

            /* Gateways: the footer logo strip's navy starfield (theme badge.css), and a coloured glow
               in one corner (blue for the archive, gold for guides) so the two still read apart. */
            .swc-home-gateway {
                position: relative;
                overflow: hidden;
                min-height: 280px;
                border-radius: 26px;
                border: 1px solid rgba(255,255,255,0.12);
                box-shadow: 0 20px 54px rgba(0,0,0,0.28);
                transition: border-color 0.16s ease;
            }

            .swc-home-gateway:hover { border-color: rgba(246,200,76,0.45); }

            .swc-home-gateway-archive {
                background:
                    radial-gradient(circle at 100% 0%, rgba(40,120,235,0.32), transparent 45%),
                    url("/wp-content/themes/swc-archive/assets/img/starfield.svg") 211px 97px / 800px 600px repeat,
                    linear-gradient(135deg, #0b1830 0%, #10284a 54%, #0c1f3a 100%);
            }

            .swc-home-gateway-guides {
                background:
                    radial-gradient(circle at 100% 0%, rgba(246,200,76,0.22), transparent 45%),
                    url("/wp-content/themes/swc-archive/assets/img/starfield.svg") 37px 11px / 800px 600px repeat,
                    linear-gradient(135deg, #0b1830 0%, #10284a 54%, #0c1f3a 100%);
            }

            .swc-home-gateway-content {
                position: relative;
                z-index: 1;
                display: flex;
                flex-direction: column;
                justify-content: center;
                min-height: 280px;
                padding: 30px;
            }

            .swc-home-gateway h2 {
                margin: 0;
                color: #fff;
                font-size: clamp(1.65rem, 3.2vw, 2.45rem);
                line-height: 0.98;
                letter-spacing: -0.04em;
                text-transform: uppercase;
            }

            .swc-home-gateway p:not(.swc-home-gateway-kicker) {
                max-width: 620px;
                margin: 15px 0 0;
                color: rgba(255,255,255,0.82);
                font-size: 0.98rem;
                line-height: 1.62;
            }

            .swc-home-gateway-button {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: fit-content;
                min-height: 42px;
                margin-top: 22px;
                padding: 12px 16px;
                border-radius: 999px;
                color: #fff;
                text-decoration: none;
                font-size: 0.76rem;
                line-height: 1;
                font-weight: 900;
                letter-spacing: 0.07em;
                text-transform: uppercase;
                transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
            }

            .swc-home-gateway-button:hover {
                transform: translateY(-2px);
                color: #fff;
                text-decoration: none;
            }

            .swc-home-gateway-button-blue,
            .swc-home-gateway-button-gold {
                gap: 8px;
                color: #f6c84c;
                background: rgba(246,200,76,0.1);
                border: 1px solid rgba(246,200,76,0.55);
            }

            .swc-home-gateway-button-blue:hover,
            .swc-home-gateway-button-gold:hover {
                color: #0b1830;
                background: #f6c84c;
                border-color: #f6c84c;
            }

            .swc-home-latest {
                margin-top: 24px;
                padding: 26px;
                border-radius: 26px;
                background: rgba(255,255,255,0.98);
                color: var(--swc-home-ink);
                border: 1px solid rgba(255,255,255,0.34);
                box-shadow: 0 26px 70px rgba(0,0,0,0.28);
            }

            .swc-home-section-heading {
                display: flex;
                align-items: end;
                justify-content: space-between;
                gap: 18px;
            }

            .swc-home-section-heading h2,
            .swc-home-planning-copy h2 {
                margin: 0;
                color: var(--swc-home-blue-dark);
                font-size: clamp(1.65rem, 3.2vw, 2.55rem);
                line-height: 0.96;
                letter-spacing: -0.04em;
                text-transform: uppercase;
            }

            .swc-home-section-link {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                min-height: 36px;
                padding: 10px 13px;
                border-radius: 999px;
                background: var(--swc-home-blue);
                color: #fff;
                text-decoration: none;
                font-size: 0.72rem;
                line-height: 1;
                font-weight: 900;
                letter-spacing: 0.055em;
                text-transform: uppercase;
                white-space: nowrap;
            }

            .swc-home-section-link:hover {
                background: var(--swc-home-blue-dark);
                color: #fff;
                text-decoration: none;
            }

            .swc-home-section-intro {
                max-width: 760px;
                margin: 12px 0 20px;
                color: #475569;
                font-size: 0.98rem;
                line-height: 1.62;
            }

            .swc-home-latest-layout {
                display: grid;
                grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
                gap: 22px;
                align-items: stretch;
            }

            .swc-home-latest-layout > .swc-home-featured-post:only-child {
                max-width: 620px;
            }

            .swc-home-featured-post,
            .swc-home-recent-post,
            .swc-home-planning-card {
                overflow: hidden;
                border-radius: 20px;
                background: #fff;
                border: 1px solid var(--swc-home-line);
                box-shadow: 0 12px 30px rgba(15,23,42,0.055);
                transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
            }

            .swc-home-featured-post:hover,
            .swc-home-recent-post:hover,
            .swc-home-planning-card:hover {
                transform: translateY(-3px);
                border-color: #bfdbfe;
                box-shadow: 0 18px 42px rgba(15,23,42,0.12);
            }

            .swc-home-featured-post-link,
            .swc-home-recent-post a {
                display: block;
                height: 100%;
                color: inherit;
                text-decoration: none;
            }

            .swc-home-featured-post-link:hover,
            .swc-home-recent-post a:hover {
                color: inherit;
                text-decoration: none;
            }

            .swc-home-featured-post-image {
                width: 100%;
                aspect-ratio: 1 / 0.48;
                background:
                    radial-gradient(circle at 50% 10%, rgba(37,99,235,0.12), transparent 58%),
                    linear-gradient(135deg, #f8fafc, #eef2ff);
                border-bottom: 1px solid var(--swc-home-line);
                overflow: hidden;
            }

            .swc-home-featured-post-image img {
                display: block;
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

            .swc-home-post-placeholder {
                width: 100%;
                height: 100%;
                display: flex;
                align-items: center;
                justify-content: center;
                color: #64748b;
                font-size: 0.78rem;
                font-weight: 900;
                letter-spacing: 0.08em;
                text-transform: uppercase;
            }

            .swc-home-featured-post-body {
                padding: 19px;
            }

            .swc-home-post-meta {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 12px;
                margin-bottom: 10px;
                color: #64748b;
                font-size: 0.68rem;
                line-height: 1.2;
                font-weight: 900;
                letter-spacing: 0.075em;
                text-transform: uppercase;
            }

            .swc-home-post-meta span {
                color: var(--swc-home-blue-dark);
            }

            .swc-home-featured-post-body h3 {
                margin: 0;
                color: var(--swc-home-ink);
                font-size: clamp(1.25rem, 2.3vw, 1.65rem);
                line-height: 1.08;
                letter-spacing: -0.025em;
            }

            .swc-home-featured-post-body p {
                margin: 11px 0 0;
                color: #475569;
                font-size: 0.95rem;
                line-height: 1.52;
            }

            .swc-home-post-read {
                display: inline-flex;
                margin-top: 15px;
                color: var(--swc-home-blue);
                font-size: 0.74rem;
                line-height: 1;
                font-weight: 900;
                letter-spacing: 0.06em;
                text-transform: uppercase;
            }

            .swc-home-recent-stack {
                display: flex;
                flex-direction: column;
                gap: 12px;
            }

            .swc-home-recent-stack > h3 {
                margin: 0 0 2px;
                color: var(--swc-home-ink);
                font-size: 1.02rem;
                line-height: 1.1;
                letter-spacing: -0.015em;
            }

            .swc-home-recent-post a {
                display: grid;
                grid-template-columns: 96px minmax(0, 1fr);
                gap: 13px;
                align-items: center;
                padding: 12px;
            }

            .swc-home-recent-thumb {
                width: 96px;
                aspect-ratio: 1 / 0.72;
                border-radius: 14px;
                overflow: hidden;
                background:
                    radial-gradient(circle at 50% 10%, rgba(37,99,235,0.12), transparent 58%),
                    linear-gradient(135deg, #f8fafc, #eef2ff);
            }

            .swc-home-recent-thumb img {
                width: 100%;
                height: 100%;
                display: block;
                object-fit: cover;
            }

            .swc-home-recent-placeholder {
                width: 100%;
                height: 100%;
                background: linear-gradient(135deg, #f8fafc, #eef2ff);
            }

            .swc-home-recent-body strong {
                display: block;
                color: var(--swc-home-ink);
                font-size: 0.95rem;
                line-height: 1.2;
                letter-spacing: -0.01em;
            }

            .swc-home-planning {
                display: grid;
                grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
                gap: 24px;
                align-items: start;
                margin-top: 24px;
                padding: 26px;
                border-radius: 26px;
                background:
                    radial-gradient(circle at 8% 12%, rgba(246,200,76,0.13), transparent 18rem),
                    rgba(255,255,255,0.98);
                color: var(--swc-home-ink);
                border: 1px solid rgba(255,255,255,0.34);
                box-shadow: 0 26px 70px rgba(0,0,0,0.26);
            }

            .swc-home-planning-copy {
                position: sticky;
                top: 24px;
            }

            .swc-home-planning-copy p:not(.swc-home-section-kicker) {
                margin: 14px 0 0;
                color: #475569;
                font-size: 0.98rem;
                line-height: 1.65;
            }

            .swc-home-planning-grid {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 16px;
            }

            .swc-home-planning-card {
                display: block;
                padding: 18px;
                color: inherit;
                text-decoration: none;
            }

            .swc-home-planning-card:hover {
                color: inherit;
                text-decoration: none;
            }

            .swc-home-planning-icon {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 38px;
                height: 38px;
                margin-bottom: 13px;
                border-radius: 14px;
                background: #eff6ff;
                color: var(--swc-home-blue);
                border: 1px solid #dbeafe;
            }

            .swc-home-planning-icon svg {
                width: 20px;
                height: 20px;
                fill: currentColor;
            }

            .swc-home-planning-card strong {
                display: block;
                color: var(--swc-home-ink);
                font-size: 1rem;
                line-height: 1.18;
                letter-spacing: -0.015em;
            }

            .swc-home-planning-card span:last-child {
                display: block;
                margin-top: 8px;
                color: #64748b;
                font-size: 0.88rem;
                line-height: 1.48;
            }

            /* Guide not written yet: no link, so no hover lift. */
            .swc-home-planning-card--soon:hover {
                transform: none;
                border-color: var(--swc-home-line);
                box-shadow: 0 12px 30px rgba(15,23,42,0.055);
            }

            .swc-home-planning-soon {
                display: block;
                margin-top: 7px;
                color: var(--swc-home-blue-dark);
                font-size: 0.68rem;
                font-style: normal;
                font-weight: 900;
                line-height: 1.2;
                letter-spacing: 0.075em;
                text-transform: uppercase;
            }

            @media (max-width: 980px) {
                .swc-home-hero {
                    grid-template-columns: 1fr;
                    min-height: auto;
                }

                .swc-home-stats {
                    max-width: 560px;
                }

                .swc-home-gateways {
                    grid-template-columns: 1fr;
                }

                .swc-home-latest-layout {
                    grid-template-columns: 1fr;
                }

                .swc-home-planning {
                    grid-template-columns: 1fr;
                }

                .swc-home-planning-copy {
                    position: static;
                }
            }

            @media (max-width: 640px) {
                .swc-homepage-v1 {
                    padding: 22px 16px 42px;
                }

                .swc-home-hero {
                    padding: 28px 20px;
                    border-radius: 24px;
                    text-align: center;
                    justify-items: center;
                }

                .swc-home-hero-copy {
                    width: 100%;
                    text-align: center;
                }

                .swc-home-hero h1 {
                    font-size: clamp(2.15rem, 14vw, 3.45rem);
                    margin-left: auto;
                    margin-right: auto;
                }

                .swc-home-intro {
                    font-size: 0.98rem;
                    margin-left: auto;
                    margin-right: auto;
                    text-align: center;
                }

                .swc-home-stats {
                    max-width: 100%;
                    text-align: center;
                    padding: 22px;
                }

                .swc-home-feature-stat strong {
                    font-size: 4rem;
                }

                .swc-home-stat-grid {
                    grid-template-columns: 1fr;
                }

                .swc-home-stat-tile {
                    min-height: auto;
                }

                .swc-home-gateway {
                    min-height: auto;
                    border-radius: 22px;
                }

                .swc-home-gateway-content {
                    min-height: auto;
                    padding: 24px 20px;
                    text-align: center;
                    align-items: center;
                }

                .swc-home-gateway h2 {
                    font-size: clamp(1.55rem, 9vw, 2.25rem);
                }

                .swc-home-gateway p:not(.swc-home-gateway-kicker) {
                    font-size: 0.95rem;
                }

                .swc-home-gateway-button {
                    margin-left: auto;
                    margin-right: auto;
                }

                .swc-home-latest,
                .swc-home-planning {
                    padding: 22px 18px;
                    border-radius: 22px;
                }

                .swc-home-section-heading {
                    display: block;
                    text-align: center;
                }

                .swc-home-section-link {
                    margin-top: 14px;
                }

                .swc-home-section-intro {
                    text-align: center;
                    margin-left: auto;
                    margin-right: auto;
                }

                .swc-home-latest-layout {
                    grid-template-columns: 1fr;
                }

                .swc-home-recent-post a {
                    grid-template-columns: 82px minmax(0, 1fr);
                }

                .swc-home-recent-thumb {
                    width: 82px;
                }

                .swc-home-planning-grid {
                    grid-template-columns: 1fr;
                }

                .swc-home-planning-copy {
                    text-align: center;
                }

                .swc-home-planning-card {
                    text-align: center;
                }
            }
