@import url("https://fonts.googleapis.com/css2?family=Encode+Sans:wght@100..900&family=Google+Sans+Flex:opsz,wght@6..144,1..1000&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap");

:root {
    color-scheme: light;
    --ink: #17192f;
    --muted: #62677f;
    --paper: #fbfbff;
    --panel: rgba(255, 255, 255, 0.82);
    --line: rgba(31, 35, 67, 0.13);
    --brand: #2037ff;
    --brand-2: #00a7d7;
    --warm: #ffb000;
    --pink: #ff4d86;
    --green: #37c871;
    --shadow: 0 24px 70px rgba(29, 35, 94, 0.13);
    --radius: 28px;
    --radius-sm: 18px;
    --max: 1180px;
    --font-sans:
        "Google Sans Flex", Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: "PT Serif", Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background:
        radial-gradient(
            circle at 8% 10%,
            rgba(255, 77, 134, 0.16),
            transparent 28rem
        ),
        radial-gradient(
            circle at 92% 8%,
            rgba(0, 167, 215, 0.18),
            transparent 30rem
        ),
        linear-gradient(180deg, #ffffff 0%, #f5f7ff 42%, #ffffff 100%);
    line-height: 1.62;
}

a {
    color: inherit;
    text-decoration-color: rgba(32, 55, 255, 0.38);
    text-underline-offset: 0.18em;
}
a:hover {
    color: var(--brand);
}
h1,
h2 {
    font-family: var(--font-serif);
}
img {
    max-width: 100%;
    display: block;
}
.container {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}
.narrow {
    width: min(880px, calc(100% - 40px));
}
.skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    background: var(--ink);
    color: white;
    padding: 10px 14px;
    border-radius: 999px;
    z-index: 20;
}
.skip-link:focus {
    left: 12px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.74);
    border-bottom: 1px solid var(--line);
}
.header {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 76px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: max-content;
}
.brand-logo {
    width: 44px;
    height: 44px;
}
.brand-text {
    display: grid;
    line-height: 1.12;
}
.brand-name {
    font-weight: 850;
    letter-spacing: -0.03em;
}
.brand-tagline,
.brand-fineprint {
    color: var(--muted);
    font-size: 0.82rem;
    max-width: 260px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: flex-end;
}
.nav > a {
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 650;
    font-size: 0.94rem;
}
.nav > a.active,
.nav > a:hover {
    background: rgba(32, 55, 255, 0.08);
    color: var(--brand);
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: white;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 14px 32px rgba(32, 55, 255, 0.2);
}
.btn.small {
    padding: 9px 14px;
    font-size: 0.9rem;
}
.hamburger {
    display: none;
    border: 1px solid var(--line);
    background: white;
    border-radius: 999px;
    padding: 9px 13px;
    font-weight: 800;
}
.mobile-drawer {
    display: none;
    border-top: 1px solid var(--line);
}
.mobile-drawer[data-open="true"] {
    display: block;
}
.mobile-drawer .inner {
    display: grid;
    gap: 8px;
    padding: 14px 0 18px;
}
.mobile-drawer a {
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.75);
}

.site-search {
    position: relative;
    min-width: 230px;
}
.site-search input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.7);
    outline: none;
}
.site-search input:focus {
    border-color: rgba(32, 55, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(32, 55, 255, 0.08);
}
.site-search-status {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 7px);
    color: var(--muted);
    font-size: 0.78rem;
}
.site-search-results {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(420px, 86vw);
    list-style: none;
    margin: 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.site-search-results[data-open="true"] {
    display: grid;
    gap: 8px;
}
.site-search-results a {
    display: block;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 14px;
}
.site-search-results a:hover {
    background: rgba(32, 55, 255, 0.07);
}
.site-search-results small {
    color: var(--muted);
}

.hero-spectrum {
    padding: 48px 0 24px;
    position: relative;
    overflow: hidden;
}
.hero-spectrum:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(255, 65, 108, 0.16),
        rgba(255, 176, 0, 0.12),
        rgba(55, 200, 113, 0.12),
        rgba(0, 167, 215, 0.14),
        rgba(32, 55, 255, 0.12)
    );
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}
.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
    gap: 22px;
    align-items: stretch;
}
.card,
.panel,
.post,
.side-item,
.article {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.pad {
    padding: clamp(22px, 4vw, 40px);
}
.hero-card h1 {
    margin: 0;
    font-size: clamp(2.3rem, 5vw, 2.5rem);
    line-height: 0.95;
}
.hero-card h1 a {
    text-decoration: none;
}
.deck {
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    color: var(--muted);
    max-width: 62ch;
}
.kicker,
.eyebrow {
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.76rem;
    font-weight: 900;
}
.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.92rem;
    align-items: center;
}
.thumb {
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        rgba(32, 55, 255, 0.08),
        rgba(0, 167, 215, 0.08)
    );
    border: 1px solid var(--line);
}
.spectrum-thumb {
    margin: 22px 0 16px;
}
.spectrum-thumb img {
    width: 100%;
    min-height: 260px;
    object-fit: cover;
}
.spectrum-thumb-small img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
}
.intro {
    margin-top: 10px;
}
.more a {
    font-weight: 850;
    text-decoration: none;
    color: var(--brand);
}
.sidebar-stack {
    display: grid;
    gap: 14px;
}
.side-item {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    padding: 14px;
    text-decoration: none;
    align-items: center;
}
.side-item h3 {
    margin: 4px 0;
    line-height: 1.15;
}
.side-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}
.mini-thumb {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(32, 55, 255, 0.07);
    aspect-ratio: 1;
}
.mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section {
    padding: 54px 0;
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 22px;
}
.section-head.big {
    align-items: center;
    min-height: 160px;
}
.section-head h1,
.section-head h2 {
    margin: 4px 0 0;
    line-height: 1;
}
.section-head h1 {
    font-size: clamp(2.1rem, 5vw, 2.4rem);
}
.section-head h2 {
    font-size: clamp(1.8rem, 3vw, 2rem);
}
.section-head a {
    font-weight: 800;
    text-decoration: none;
    color: var(--brand);
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.post {
    padding: 22px;
    box-shadow: none;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}
.post:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.post h3 {
    margin: 6px 0 10px;
    line-height: 1.13;
    font-size: 1.35rem;
}
.post h3 a,
.post.compact {
    text-decoration: none;
}
.post p {
    color: var(--muted);
    margin: 0 0 14px;
}
.post.compact {
    display: block;
}
.pill-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.pill-card {
    display: grid;
    gap: 6px;
    text-decoration: none;
    padding: 20px;
    border-radius: 24px;
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    min-height: 140px;
    align-content: end;
    box-shadow: var(--shadow);
}
.pill-card:nth-child(2) {
    background: linear-gradient(135deg, #6a42ff, #ff4d86);
}
.pill-card:nth-child(3) {
    background: linear-gradient(135deg, #007f7a, #37c871);
}
.pill-card:nth-child(4) {
    background: linear-gradient(135deg, #192043, #ffb000);
}
.pill-card span {
    font-weight: 900;
    font-size: 1.1rem;
}
.pill-card small {
    opacity: 0.86;
}
.split {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: 22px;
    align-items: start;
}
.panel {
    padding: 24px;
}
.spectrum-panel {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.9),
        rgba(246, 248, 255, 0.82)
    );
}
.check-list {
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}
.check-list li:before {
    content: "✓";
    color: var(--green);
    font-weight: 900;
    margin-right: 8px;
}

.article-shell {
    padding: 34px 0 64px;
}
.breadcrumb {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 20px;
}
.breadcrumb a {
    text-decoration: none;
}
.article-grid {
    display: grid;
    grid-template-columns: minmax(0, 760px) minmax(260px, 1fr);
    gap: 28px;
    align-items: start;
}
.article {
    padding: clamp(24px, 4vw, 46px);
}
.article h1 {
    font-size: clamp(2.1rem, 4vw, 2.6rem);
    line-height: 0.98;
    margin: 8px 0 14px;
}
.figure {
    margin: 24px 0;
}
.figure figcaption {
    color: var(--muted);
    font-size: 0.86rem;
    margin-top: 8px;
}
.prose {
    font-size: 1.04rem;
}
.prose h2 {
    margin-top: 2.2em;
    font-size: 1.8rem;
    line-height: 1.12;
    letter-spacing: -0.035em;
}
.prose h3 {
    margin-top: 1.7em;
}
.prose p,
.prose li {
    color: #2d314b;
}
.prose blockquote {
    margin: 24px 0;
    padding: 18px 22px;
    border-left: 5px solid var(--brand);
    background: rgba(32, 55, 255, 0.06);
    border-radius: 0 18px 18px 0;
}
.article-tail {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.tail-label {
    color: var(--muted);
    font-size: 0.86rem;
    margin-bottom: 10px;
}
.tagline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.86rem;
}
.aside {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 16px;
}
.related {
    display: grid;
    gap: 12px;
}
.contact-panel {
    background: linear-gradient(
        135deg,
        rgba(32, 55, 255, 0.08),
        rgba(0, 167, 215, 0.08)
    );
}
.category-hero {
    padding-top: 32px;
    background: linear-gradient(
        90deg,
        rgba(32, 55, 255, 0.08),
        rgba(255, 77, 134, 0.08),
        rgba(255, 176, 0, 0.08)
    );
}
.simple-page {
    max-width: 880px;
    margin: 0 auto;
}

.md-table {
    margin: 28px 0;
}
.md-table figcaption {
    color: var(--muted);
    margin-bottom: 8px;
}
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 20px;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}
th,
td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
th {
    background: rgba(32, 55, 255, 0.06);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
td {
    font-size: 12px;
}
tr:last-child td {
    border-bottom: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

@media (max-width: 500px) {
    table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.82rem;
        border-radius: 14px;
    }

    th,
    td {
        white-space: nowrap;
        padding: 0.55rem 0.65rem;
    }
}

.article-card,
.article-shell,
main {
    overflow: hidden;
}

.footer {
    padding: 48px 0 28px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.66);
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.5fr) minmax(
            180px,
            0.6fr
        );
    gap: 32px;
}
.footer-header {
    font-weight: 900;
}
.footer-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: grid;
    gap: 8px;
}
.footer-list a {
    text-decoration: none;
    color: var(--muted);
}
.footer-bottom {
    margin-top: 28px;
}
.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin: 0 0.35rem;
    line-height: 1;
    text-decoration: none;
}

.footer-logo img {
    display: block;
    height: 26px;
    width: auto;
    transform: translateY(-2px);
}

.fineprint {
    color: var(--muted);
}
.advert {
    background: rgba(255, 176, 0, 0.18);
    color: #755300;
    border-radius: 999px;
    padding: 3px 8px;
}

.spectrum-hero {
    position: relative;
    overflow: hidden;
    min-height: 440px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.96) 30%,
            rgba(244, 249, 255, 0.72) 48%,
            rgba(244, 249, 255, 0.18) 66%,
            rgba(244, 249, 255, 0) 100%
        ),
        url("/assets/hero-spectrum-banner.png") center right / cover no-repeat;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.14);
}

.spectrum-hero__content {
    position: relative;
    z-index: 2;
    padding: clamp(2.5rem, 3vw, 5.5rem);
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

.spectrum-hero__eyebrow {
    margin: 0 0 0.9rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #174ea6;
}

.spectrum-hero h2 {
    font-family: "Nunito";
    margin: 0;
    max-width: 11ch;
    font-size: clamp(2.7rem, 6vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
    color: #071529;
}

.spectrum-hero h3 {
    margin: 1.35rem 0 0;
    max-width: 720px;
    font-size: clamp(1.28rem, 2.4vw, 2rem);
    line-height: 1.25;
    font-weight: 550;
    color: #334155;
}

.spectrum-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2.1rem;
    min-height: 52px;
    padding: 0 1.55rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #1646a3, #0b2f75);
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(22, 70, 163, 0.28);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.spectrum-hero__button::after {
    content: "→";
    margin-left: 0.75rem;
    font-size: 1.25em;
    line-height: 1;
}

.spectrum-hero__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(22, 70, 163, 0.34);
    background: linear-gradient(135deg, #1d5bd6, #123b8f);
}

.spectrum-hero__button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 4px;
}

@media (max-width: 760px) {
    .spectrum-hero {
        min-height: 300px;
        align-items: flex-start;
        background:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.98) 0%,
                rgba(255, 255, 255, 0.94) 43%,
                rgba(255, 255, 255, 0.32) 70%,
                rgba(255, 255, 255, 0) 100%
            ),
            url("/assets/hero-spectrum-banner.png") center bottom / cover
                no-repeat;
    }

    .spectrum-hero__content {
        padding: 1rem;
    }

    .spectrum-hero h2 {
        max-width: 12ch;
    }

    .spectrum-hero__button {
        display: none;
    }
}

@media (max-width: 960px) {
    .nav,
    .header > .btn {
        display: none;
    }
    .hamburger {
        display: inline-flex;
        margin-left: auto;
    }
    .hero-grid,
    .article-grid,
    .split,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .grid-3,
    .pill-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .aside {
        position: static;
    }
}
@media (max-width: 620px) {
    .container,
    .narrow {
        width: min(100% - 24px, var(--max));
    }
    .grid-3,
    .pill-grid {
        grid-template-columns: 1fr;
    }
    .side-item {
        grid-template-columns: 74px 1fr;
    }
    .brand-tagline {
        display: none;
    }
    .hero-card h1 {
        font-size: 2rem;
    }
    .section {
        padding: 38px 0;
    }
}

/* -------------------------------------------------------------------------
   Mobile table overflow fix, v2
   Purpose:
   - Keep the article itself within the viewport.
   - Let wide Markdown tables scroll horizontally inside their own box.
   - Works both for generated <figure class="md-table"><div class="table-wrap">...</div></figure>
     and for plain Markdown tables emitted directly as <table>.
------------------------------------------------------------------------- */

/* Grid/flex children must be allowed to shrink. Without this, a wide table
   can force the whole article/grid wider than the viewport. */
main,
.article-shell,
.article-grid,
.article,
.prose,
.simple-page,
.container,
.narrow,
.panel,
.card,
.post {
    min-width: 0;
}

/* Do not let outer layout containers create horizontal page overflow.
   The table itself will get its own internal scroll area below. */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

/* Generated table wrapper from the Markdown/YAML table renderer. */
.md-table {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 28px 0;
}

.table-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
}

/* The table may be wider than its wrapper, but only inside the scrollbox. */
.table-wrap > table {
    width: max-content;
    min-width: 100%;
    max-width: none;
    border-collapse: collapse;
    table-layout: auto;
}

/* Plain Markdown tables, in case they are not wrapped by .table-wrap. */
.prose > table,
.article > table,
.simple-page > table,
.page-content > table,
.article-content > table,
.content > table {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
}

/* Wide multi-column tables should not try to squeeze text into unreadable dust.
   They should stay readable and become swipeable. */
.table-wrap th,
.table-wrap td,
.prose > table th,
.prose > table td,
.article > table th,
.article > table td,
.simple-page > table th,
.simple-page > table td,
.page-content > table th,
.page-content > table td,
.article-content > table th,
.article-content > table td,
.content > table th,
.content > table td {
    white-space: nowrap;
}

/* Mobile-specific tightening without relying on font-size alone. */
@media (max-width: 500px) {
    .article {
        padding-left: 16px;
        padding-right: 16px;
    }

    .prose {
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .md-table,
    .table-wrap,
    .prose > table,
    .article > table,
    .simple-page > table,
    .page-content > table,
    .article-content > table,
    .content > table {
        max-width: 100%;
        font-size: 8px;
    }

    .table-wrap th,
    .table-wrap td,
    .prose > table th,
    .prose > table td,
    .article > table th,
    .article > table td,
    .simple-page > table th,
    .simple-page > table td,
    .page-content > table th,
    .page-content > table td,
    .article-content > table th,
    .article-content > table td,
    .content > table th,
    .content > table td {
        padding: 0.55rem 0.65rem;
    }
}

.video-embed {
    margin: 28px 0;
    padding: 0;
}

.video-embed.video-embed,
.thumb.video-embed {
    overflow: visible;
    background: transparent;
    border: 0;
}

.video-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        rgba(32, 55, 255, 0.08),
        rgba(0, 167, 215, 0.08)
    );
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-embed figcaption {
    color: var(--muted);
    font-size: 0.86rem;
    margin-top: 8px;
    padding: 0 4px;
}
