﻿:root {
    --navy: #020817;
    --blue: #071a54;
    --electric: #176bff;
    --electric-text: #1255cc;
    --cyan: #3fdaf2;
    --violet: #5426dc;
    --paper: #f4f6fb;
    --white: #fff;
    --ink: #07112f;
    --muted: #64708d;
    --line: #dbe1ef
}

* {
    box-sizing: border-box;
    overflow-wrap: break-word
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Manrope",sans-serif
}

a {
    color: inherit;
    text-decoration: none
}

.site-header {
    height: 78px;
    padding: 0 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(2,8,23,.94);
    color: #fff;
    position: absolute;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: 1px solid rgba(255,255,255,.1)
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font: 600 17px "DM Sans"
}

.brand b {
    display: block;
    color: var(--cyan);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px
}

.brand-orbit {
    width: 42px;
    height: 42px;
    border: 1px solid var(--cyan);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--cyan);
    font-size: 12px;
    box-shadow: 0 0 20px rgba(63,218,242,.25)
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    font: 600 11px "DM Sans";
    text-transform: uppercase;
    letter-spacing: 1px
}

.main-nav a {
    opacity: .8
}

.main-nav a:hover {
    opacity: 1;
    color: var(--cyan)
}

.nav-cta {
    padding: 11px 17px;
    border: 1px solid var(--cyan);
    border-radius: 3px;
    color: var(--cyan)!important
}

.menu-button {
    display: none
}

.hero {
    height: 780px;
    min-height: 700px;
    background: radial-gradient(circle at 70% 65%,#0c2e73 0,transparent 34%),linear-gradient(135deg,#020611,#020a20 62%,#071d4d);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 150px 7vw 70px;
    display: flex;
    align-items: center
}

.stars,.stars:before,.stars:after {
    position: absolute;
    inset: 0;
    content: "";
    background-image: radial-gradient(#fff 1px,transparent 1px);
    background-size: 79px 83px;
    opacity: .25
}

.stars:before {
    background-size: 121px 107px;
    transform: translate(23px,17px)
}

.stars:after {
    background-size: 173px 149px;
    transform: translate(41px,29px)
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 52%;
    max-width: 780px
}

.kicker,.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2.2px;
    font: 700 10px "DM Sans"
}

.kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--cyan)
}

.kicker span {
    width: 38px;
    height: 1px;
    background: var(--cyan)
}

h1 {
    font: 600 clamp(76px,8vw,132px)/.84 "Newsreader";
    letter-spacing: -5px;
    margin: 38px 0 32px
}

h1 em,.section-heading h2 em,.topic-intro h2 em {
    color: var(--cyan);
    font-weight: 500
}

.hero-copy {
    max-width: 660px;
    font-size: 17px;
    line-height: 1.8;
    color: #bcc8e3
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 38px
}

.primary-button {
    background: var(--electric);
    padding: 16px 22px;
    font: 700 11px "DM Sans";
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 30px rgba(23,107,255,.32)
}

.primary-button span {
    margin-left: 25px
}

.hero-actions p {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0;
    color: #a9b6d0;
    font: 600 9px "DM Sans";
    text-transform: uppercase;
    letter-spacing: 1px
}

.hero-actions strong {
    font: 600 35px "Newsreader";
    color: #fff
}

.earth {
    position: absolute;
    width: 670px;
    height: 670px;
    right: -100px;
    bottom: -295px;
    border-radius: 50%;
    z-index: 2
}

.earth-glow {
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    background: var(--electric);
    filter: blur(26px);
    opacity: .7
}

.earth-surface {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 43% 37%,rgba(112,205,255,.85),transparent 6%),radial-gradient(circle at 55% 28%,#4d83a0 0 4%,transparent 5%),radial-gradient(circle at 38% 48%,#244f66 0 13%,transparent 14%),radial-gradient(circle at 62% 50%,#315a6a 0 18%,transparent 19%),radial-gradient(circle at 50% 38%,#0b2a4a 0 55%,#020611 73%);
    box-shadow: inset -90px -65px 120px #01030a,inset 40px 12px 65px rgba(83,197,255,.45);
    overflow: hidden
}

.earth-surface:after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#ffd67c 1px,transparent 2px);
    background-size: 19px 25px;
    opacity: .6;
    transform: rotate(-12deg)
}

.signal {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(63,218,242,.13),0 0 20px var(--cyan)
}

.signal-one {
    left: 110px;
    top: 110px
}

.signal-two {
    left: 235px;
    top: 55px
}

.signal-three {
    left: 370px;
    top: 145px
}

.hero-index {
    position: absolute;
    z-index: 3;
    bottom: 28px;
    left: 7vw;
    font: 600 9px "DM Sans";
    letter-spacing: 2.5px;
    color: #7180a1
}

.analyst-strip {
    display: grid;
    grid-template-columns: 250px 1fr .85fr;
    gap: 55px;
    align-items: center;
    background: #fff;
    padding: 60px 7vw;
    border-bottom: 1px solid var(--line)
}

.analyst-photo {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    overflow: hidden;
    background: #d9edf2;
    border: 7px solid #edf8fb;
    box-shadow: 0 14px 45px rgba(14,37,91,.12)
}

.analyst-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% 20%
}

.eyebrow {
    color: var(--electric-text);
    margin: 0 0 16px
}

.analyst-copy h2 {
    font: 600 50px/1 "Newsreader";
    margin: 0
}

.analyst-copy h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--muted);
    margin: 12px 0 18px
}

.analyst-copy>p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.7;
    max-width: 650px
}

.analyst-copy a {
    display: inline-block;
    border-bottom: 1px solid var(--electric-text);
    padding-bottom: 5px;
    color: var(--electric-text);
    font: 700 10px "DM Sans";
    text-transform: uppercase;
    letter-spacing: 1px
}

.principles {
    border-left: 1px solid var(--line);
    padding-left: 40px
}

.principles p {
    font: 600 19px "Newsreader";
    padding: 14px 0;
    margin: 0;
    border-bottom: 1px solid var(--line)
}

.principles span {
    font: 700 9px "DM Sans";
    color: var(--electric-text);
    margin-right: 16px
}

.section {
    padding: 105px 7vw
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 55px
}

.section-heading h2,.topic-intro h2 {
    font: 600 clamp(55px,6vw,88px)/.9 "Newsreader";
    letter-spacing: -3px;
    margin: 0
}

.section-heading>p,.topic-intro>p:last-child {
    max-width: 400px;
    color: var(--muted);
    line-height: 1.7
}

.stories {
    background: #eef2fb
}

.bento-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr .9fr;
    grid-template-rows: 260px 230px;
    gap: 18px
}

.bento {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 12px 30px rgba(16,30,73,.13);
    transition: .3s
}

.bento:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(16,30,73,.23)
}

.bento img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s
}

.bento:hover img {
    transform: scale(1.04)
}

.bento-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,transparent 10%,rgba(1,5,20,.9) 100%)
}

.bento>div {
    position: absolute;
    z-index: 2;
    left: 26px;
    right: 26px;
    bottom: 24px
}

.bento small {
    font: 700 9px "DM Sans";
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--cyan)
}

.bento h3 {
    font: 600 22px/1.2 "Newsreader";
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.bento p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #dbe4fb;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.bento b {
    display: inline-block;
    margin-top: 18px;
    font: 700 9px "DM Sans";
    text-transform: uppercase;
    letter-spacing: 1px
}

.bento-lead {
    grid-row: 1/3
}

.bento-lead h3 {
    font-size: 32px;
    -webkit-line-clamp: 3
}

.topics {
    background: var(--navy);
    color: #fff;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 9vw
}

.topic-intro {
    position: sticky;
    top: 50px;
    align-self: start
}

.topic-intro>p:last-child {
    color: #8f9bb7;
    margin-top: 30px
}

.topic-list a {
    display: grid;
    grid-template-columns: 42px 1fr 30px;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,.14);
    transition: .2s
}

.topic-list a:last-child {
    border-bottom: 1px solid rgba(255,255,255,.14)
}

.topic-list a:hover {
    padding-left: 10px;
    color: var(--cyan)
}

.topic-list span {
    font: 600 9px "DM Sans";
    color: #7788ac
}

.topic-list h3 {
    font: 600 clamp(25px,3vw,39px) "Newsreader";
    letter-spacing: -0.5px;
    color: #fff;
    margin: 0;
    -webkit-font-smoothing: antialiased
}

.topic-list p {
    font: 600 9px "DM Sans";
    text-transform: uppercase;
    letter-spacing: 1.3px;
    color: #7986a5;
    margin: 5px 0
}

.topic-list i {
    font-style: normal
}

.archive {
    background: #fff
}

.archive-tools {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line)
}

.search-box {
    flex: 1;
    max-width: 480px
}

.search-box span {
    display: block;
    font: 700 9px "DM Sans";
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--electric-text)
}

.search-box input {
    width: 100%;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    padding: 9px 0 2px;
    outline: 0;
    font: 500 20px "Newsreader";
    transition: border-color .15s
}

.search-box input:focus {
    border-bottom-color: var(--accent,var(--electric))
}

.filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end
}

.filters button {
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
    padding: 9px 12px;
    font: 700 9px "DM Sans";
    text-transform: uppercase;
    letter-spacing: .6px;
    cursor: pointer
}

.filters button.active,.filters button:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue)
}

.archive-list {
    margin: 15px 0
}

.archive-item {
    display: grid;
    grid-template-columns: 55px 1fr 180px 25px;
    gap: 20px;
    align-items: center;
    padding: 21px 0;
    border-bottom: 1px solid var(--line)
}

.archive-item>span {
    font: 600 9px "DM Sans";
    color: #97a0b5
}

.archive-item h3 {
    font: 500 clamp(19px,2vw,27px)/1.15 "Newsreader";
    margin: 0
}

.archive-item h3 a:hover {
    color: var(--electric)
}

.archive-item b {
    font: 700 8px "DM Sans";
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--electric-text)
}

.archive-item i {
    font-style: normal
}

.archive-status {
    font-size: 11px;
    color: var(--muted)
}

.outline-button {
    display: inline-block;
    margin-top: 20px;
    padding: 13px 17px;
    border: 1px solid var(--blue);
    font: 700 9px "DM Sans";
    text-transform: uppercase;
    letter-spacing: 1px
}

.empty-state {
    font: 500 24px "Newsreader";
    color: var(--muted);
    padding: 35px 0
}

.newsletter {
    background: linear-gradient(120deg,#092061,#07133e);
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
    align-items: end
}

.newsletter h2 {
    font: 600 clamp(48px,5vw,76px)/.9 "Newsreader";
    margin: 0
}

.signup-form label {
    display: block;
    font: 700 9px "DM Sans";
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--cyan);
    margin-bottom: 8px
}

.signup-form>div {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,.45);
    transition: border-color .15s
}

.signup-form>div:focus-within {
    border-bottom-color: var(--cyan)
}

.signup-form input {
    flex: 1;
    border: 0;
    background: transparent;
    color: #fff;
    outline: 0;
    padding: 14px 0;
    font: 500 17px "Manrope"
}

.signup-form input::placeholder {
    color: #8390b0
}

.signup-form button {
    border: 0;
    background: var(--electric);
    color: #fff;
    padding: 0 20px;
    font: 700 9px "DM Sans";
    text-transform: uppercase;
    letter-spacing: 1px
}

.signup-form>p {
    font-size: 10px;
    color: #8795b5
}

.form-message {
    color: var(--cyan)!important;
    font-weight: 700
}

footer {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr auto;
    gap: 30px;
    align-items: center;
    background: #01040d;
    color: #fff;
    padding: 45px 7vw;
    font-size: 11px
}

footer>p {
    color: #75809a
}

footer>div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px
}

footer small {
    color: #59647d
}

@media(max-width: 1000px) {
    .hero-content {
        width:70%
    }

    .earth {
        right: -260px
    }

    .analyst-strip {
        grid-template-columns: 200px 1fr
    }

    .analyst-photo {
        width: 190px;
        height: 190px
    }

    .principles {
        grid-column: 1/-1;
        border: 0;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(3,1fr);
        gap: 20px
    }

    .bento-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 320px 230px 230px
    }

    .bento-lead {
        grid-column: 1/3;
        grid-row: auto
    }

    .topics {
        grid-template-columns: 1fr;
        gap: 60px
    }

    .topic-intro {
        position: static
    }

    .newsletter {
        grid-template-columns: 1fr;
        gap: 45px
    }

    footer {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width: 720px) {
    .site-header {
        height:68px;
        padding: 0 5vw
    }

    .menu-button {
        display: block;
        background: transparent;
        border: 0;
        color: #fff;
        padding: 10px
    }

    .menu-button span {
        display: block;
        width: 25px;
        height: 1px;
        background: #fff;
        margin: 6px
    }

    .menu-button i {
        position: absolute;
        clip: rect(0,0,0,0)
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        padding: 25px 5vw;
        background: #020817;
        flex-direction: column;
        align-items: flex-start
    }

    .main-nav.open {
        display: flex
    }

    .hero {
        height: 720px;
        padding: 125px 6vw 50px;
        align-items: flex-start
    }

    .hero-content {
        width: 100%
    }

    h1 {
        font-size: 69px;
        letter-spacing: -3px
    }

    .hero-copy {
        font-size: 15px
    }

    .earth {
        width: 440px;
        height: 440px;
        right: -180px;
        bottom: -205px
    }

    .hero-index {
        left: 6vw
    }

    .analyst-strip {
        grid-template-columns: 1fr;
        padding: 60px 6vw;
        gap: 30px
    }

    .analyst-photo {
        width: 170px;
        height: 170px
    }

    .principles {
        grid-template-columns: 1fr;
        gap: 0
    }

    .section {
        padding: 80px 6vw
    }

    .section-heading {
        display: block
    }

    .section-heading>p {
        margin-top: 22px
    }

    .bento-grid {
        display: block
    }

    .bento {
        display: block;
        height: 260px;
        margin-bottom: 15px
    }

    .bento-lead {
        height: 360px
    }

    .bento-lead h3 {
        font-size: 36px
    }

    .topics {
        padding-top: 80px
    }

    .archive-tools {
        display: block
    }

    .search-box {
        display: block;
        max-width: none;
        margin-bottom: 20px
    }

    .filters {
        justify-content: flex-start
    }

    .archive-item {
        grid-template-columns: 38px 1fr 20px;
        gap: 10px
    }

    .archive-item b {
        display: none
    }

    .newsletter h2 {
        font-size: 50px
    }

    .signup-form>div {
        display: block;
        border: 0
    }

    .signup-form input {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,.45)
    }

    .signup-form button {
        height: 46px;
        margin-top: 12px
    }

    footer {
        grid-template-columns: 1fr;
        gap: 18px
    }
}

.archive-item b small {
    display: block;
    margin-top: 5px;
    color: #98a1b5;
    font-size: 7px;
    letter-spacing: .8px
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .bento,.bento img {
        transition: none
    }
}

/* ===== Subpages: article / category / archive / search / 404 ===== */
.subpage {
    background: var(--paper)
}

.article-page,.collection-page {
    padding: 120px 7vw 90px;
    max-width: 1180px;
    margin: 0 auto
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    font: 700 10px "DM Sans";
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 34px
}

.breadcrumb a {
    color: var(--accent,var(--electric))
}

.breadcrumb a:hover {
    text-decoration: underline
}

.breadcrumb i {
    font-style: normal;
    color: #c2cbe0
}

/* article */
.article-page article {
    max-width: 860px;
    margin: 0 auto
}

.article-hero .kicker {
    color: var(--accent,var(--electric));
    margin-bottom: 22px
}

.article-hero h1 {
    font: 600 clamp(34px,5vw,60px)/1.04 "Newsreader";
    letter-spacing: -1.5px;
    margin: 0 0 22px;
    color: var(--ink)
}

.byline {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 20px
}

.byline strong {
    color: var(--ink)
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.article-tags a {
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 40px;
    font: 700 9px "DM Sans";
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--muted)
}

.article-tags a:hover {
    border-color: var(--accent,var(--electric));
    color: var(--accent,var(--electric))
}

.article-media {
    margin: 38px 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(16,30,73,.16);
    aspect-ratio: 16/8;
    background: #dde6f6
}

.article-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.article-body {
    font-size: 17px;
    line-height: 1.8;
    color: #34406a
}

.article-body .lead {
    font: 500 21px/1.7 "Newsreader";
    color: var(--ink);
    margin-top: 0
}

.fact-card {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    margin: 34px 0
}

.fact-card>div {
    background: #fff;
    padding: 18px 22px
}

.fact-card dt {
    font: 700 9px "DM Sans";
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--muted);
    margin-bottom: 6px
}

.fact-card dd {
    margin: 0;
    font: 600 16px "Newsreader";
    color: var(--ink)
}

.source-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--accent,var(--electric));
    color: #fff;
    padding: 16px 24px;
    border-radius: 6px;
    font: 700 11px "DM Sans";
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 12px 30px rgba(16,30,73,.18)
}

.source-cta:hover {
    filter: brightness(1.08)
}

/* related */
.related {
    margin: 70px 0 10px;
    border-top: 1px solid var(--line);
    padding-top: 46px
}

.related h2 {
    font: 600 30px "Newsreader";
    margin: 0 0 26px
}

.related h2 em {
    color: var(--accent,var(--electric));
    font-weight: 500
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px
}

.related-grid a {
    display: block;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    transition: .2s
}

.related-grid a:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(16,30,73,.13);
    border-color: transparent
}

.related-grid span {
    font: 700 9px "DM Sans";
    color: var(--muted)
}

.related-grid h3 {
    font: 500 18px/1.25 "Newsreader";
    margin: 10px 0 14px;
    color: var(--ink)
}

.related-grid b {
    font: 700 8px "DM Sans";
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--accent,var(--electric))
}

/* prev/next */
.prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 50px;
    border-top: 1px solid var(--line);
    padding-top: 34px
}

.prev-next a {
    display: block;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: .2s
}

.prev-next a:hover {
    border-color: var(--accent,var(--electric))
}

.prev-next small {
    font: 700 9px "DM Sans";
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted)
}

.prev-next span {
    display: block;
    margin-top: 8px;
    font: 500 17px/1.3 "Newsreader";
    color: var(--ink)
}

.pn-next {
    text-align: right
}

/* collection: category / archive / search */
.collection-hero {
    max-width: 980px;
    margin: 0 auto 38px
}

.collection-hero h1 {
    font: 600 clamp(44px,6vw,76px)/.95 "Newsreader";
    letter-spacing: -2px;
    margin: 14px 0 18px;
    color: var(--ink)
}

.collection-hero h1 em {
    color: var(--accent,var(--electric));
    font-weight: 500
}

.collection-hero .eyebrow {
    color: var(--accent,var(--electric))
}

.collection-blurb {
    color: var(--muted);
    line-height: 1.7;
    max-width: 640px;
    font-size: 16px
}

.collection-count {
    font: 700 10px "DM Sans";
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent,var(--electric));
    margin-top: 14px
}

.collection-list,.collection-page .archive-tools,.collection-page .archive-list,.collection-page .archive-status {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto
}

.collection-page .archive-item h3 a:hover {
    color: var(--accent,var(--electric))
}

@media(max-width: 820px) {
    .article-page,.collection-page {
        padding:100px 6vw 70px
    }

    .related-grid {
        grid-template-columns: 1fr 1fr
    }

    .fact-card {
        grid-template-columns: 1fr
    }

    .prev-next {
        grid-template-columns: 1fr
    }

    .pn-next {
        text-align: left
    }
}

@media(max-width: 560px) {
    .related-grid {
        grid-template-columns:1fr
    }
}

/* ===== Long-form article body: headings, lists, TOC, explore-more, author card =====
   Added to support fully self-hosted long-form articles (previously only teaser + source-cta). */

.article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin: 8px auto
}

.article-body .separator {
    text-align: center;
    margin: 30px 0
}

.article-body h2 {
    font: 600 32px/1.2 "Newsreader";
    letter-spacing: -.5px;
    color: var(--ink);
    margin: 52px 0 18px
}

.article-body h2:first-child {
    margin-top: 0
}

.article-body h3 {
    font: 600 21px/1.3 "Newsreader";
    color: var(--ink);
    margin: 34px 0 14px
}

.article-body h4 {
    font: 600 16px "Newsreader";
    color: var(--ink);
    margin: 26px 0 10px
}

.article-body p {
    margin: 0 0 22px
}

.article-body strong {
    color: var(--ink)
}

.article-body ul,
.article-body ol {
    margin: 0 0 26px;
    padding-left: 22px
}

.article-body li {
    margin: 0 0 10px
}

.article-body .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 8px 0 30px;
    border: 1px solid var(--line);
    border-radius: 12px
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font: 400 15px/1.6 "DM Sans", sans-serif
}

.article-body th {
    background: var(--electric);
    color: #fff;
    font: 700 12px/1.4 "DM Sans", sans-serif;
    text-transform: uppercase;
    letter-spacing: .4px;
    text-align: left;
    padding: 14px 16px;
    white-space: nowrap
}

.article-body td {
    padding: 14px 16px;
    border-top: 1px solid var(--line);
    vertical-align: top
}

.article-body tr:nth-child(even) td {
    background: var(--paper)
}

@media(max-width: 560px) {
    .article-body th,
    .article-body td {
        padding: 10px 12px;
        font-size: 14px
    }
}

.article-body figcaption {
    font: 500 12px "DM Sans";
    color: var(--muted);
    padding: 12px 2px 0;
    line-height: 1.5
}

.article-body .tags {
    font: 700 10px "DM Sans";
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent,var(--electric));
    line-height: 2;
    margin: 44px 0
}

.article-body .source-note {
    font-size: 13px;
    color: var(--muted);
    margin-top: 40px
}

.article-body .source-note a {
    color: var(--accent,var(--electric));
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px
}

.toc {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 28px 30px;
    margin: 40px 0
}

.toc h2 {
    font: 700 10px "DM Sans"!important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted)!important;
    margin: 0 0 16px!important
}

.toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.toc li {
    margin: 0
}

.toc a {
    display: inline-block;
    font: 600 13px "DM Sans";
    color: #fff;
    background: var(--accent,var(--electric));
    padding: 10px 16px;
    border-radius: 40px;
    transition: .2s
}

.toc a:hover {
    filter: brightness(1.1);
    transform: translateY(-1px)
}

.article-body .back-to-toc {
    margin: 6px 0 40px;
    text-align: right
}

.article-body .back-to-toc a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 700 10px "DM Sans";
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--accent,var(--electric));
    background: #fff;
    border: 1px solid var(--accent,var(--electric));
    padding: 9px 16px;
    border-radius: 40px;
    transition: .2s
}

.article-body .back-to-toc a:hover {
    background: var(--accent,var(--electric));
    color: #fff
}

@media(max-width: 820px) {
    .toc a {
        font-size: 12px;
        padding: 8px 13px
    }
}

.explore-more-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 40px;
    display: grid;
    gap: 12px
}

.explore-more-list a {
    display: block;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    font: 500 17px/1.35 "Newsreader";
    color: var(--ink);
    transition: .2s
}

.explore-more-list a:hover {
    border-color: var(--accent,var(--electric));
    color: var(--accent,var(--electric));
    transform: translateX(4px)
}

.about-author {
    margin: 50px 0 10px;
    padding: 28px 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px
}

.about-author h2 {
    font: 700 10px "DM Sans"!important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted)!important;
    margin: 0 0 12px!important
}

.about-author p {
    margin: 0;
    color: #34406a
}

@media(max-width: 820px) {
    .article-body h2 {
        font-size: 26px;
        margin: 40px 0 14px
    }

    .toc,.about-author {
        padding: 22px 20px
    }
}

/* ===== Engagement bar: Like / Comment / Follow / Share ===== */
.engagement-bar {
    margin: 46px 0;
    padding: 30px 34px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px
}

.engagement-prompt h2 {
    font: 600 22px "Newsreader";
    color: var(--ink);
    margin: 0 0 6px
}

.engagement-prompt p {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 22px
}

.engagement-actions {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px
}

.engage-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 10px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    font: 600 13px "DM Sans";
    cursor: pointer;
    transition: .2s
}

.engage-btn svg {
    flex-shrink: 0
}

.engage-btn:hover {
    border-color: var(--accent,var(--electric));
    color: var(--accent,var(--electric));
    transform: translateY(-1px)
}

.engage-btn.is-active {
    background: var(--accent,var(--electric));
    border-color: var(--accent,var(--electric));
    color: #fff
}

.engage-btn .engage-count {
    font: 700 11px "DM Sans";
    opacity: .75
}

.social-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line)
}

.social-links span {
    font: 700 9px "DM Sans";
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-right: 4px
}

.social-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink);
    transition: transform .18s, background .18s, border-color .18s, color .18s
}

.social-links a:hover {
    background: var(--accent,var(--electric));
    border-color: var(--accent,var(--electric));
    color: #fff;
    transform: scale(1.1)
}

.social-links a::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--ink);
    color: #fff;
    font: 600 11px "DM Sans";
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s, transform .18s
}

.social-links a::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--ink);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s
}

.social-links a:hover::after,
.social-links a:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0)
}

@media(max-width: 640px) {
    .engagement-bar {
        padding: 24px 20px
    }

    .engagement-actions {
        grid-template-columns: repeat(2,1fr)
    }

    .engage-btn span:not(.engage-count) {
        display: inline
    }
}

/* ===== Comments (Giscus) ===== */
.comments-section {
    margin: 46px 0
}

.comments-section h2 {
    font: 600 26px "Newsreader";
    color: var(--ink);
    margin: 0 0 20px
}

.comments-placeholder {
    color: var(--muted);
    font-size: 14px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-align: center
}

/* ===== Accessibility: skip link + consistent keyboard focus ===== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    z-index: 100;
    background: var(--electric);
    color: #fff;
    font: 700 13px "DM Sans";
    padding: 12px 20px;
    border-radius: 0 0 8px 8px;
    transition: top .15s
}

.skip-link:focus {
    top: 0
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 2px
}

/* the underline-style form inputs above already provide their own visible
   focus treatment via border-color, so the generic ring would be redundant
   there - suppressed only for those two specific fields */
.search-box input:focus-visible,
.signup-form input:focus-visible {
    outline: none
}

/* ==========================================================================
   Interactive Knowledge Cards (Glossary)
   Inline term triggers (.gterm) rendered by lib/glossary.py at build time.
   Desktop: hover/focus shows a lightweight CSS-positioned preview card.
   Any device: click/tap/Enter opens the full accessible modal via app.js.
   Colors reuse the site's existing token set; a prefers-color-scheme dark
   variant is included so the widget stays correct if/when the rest of the
   site adopts a dark theme.
   ========================================================================== */

.gterm {
    font: inherit;
    color: var(--electric-text);
    background: linear-gradient(to bottom, transparent calc(100% - 2px), currentColor 2px);
    background-size: 100% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    border: none;
    padding: 0 1px;
    margin: 0 -1px;
    cursor: help;
    display: inline;
    text-decoration: none;
    border-radius: 3px;
    position: relative;
    transition: background-color .15s ease, color .15s ease
}

.gterm:hover,
.gterm:focus-visible {
    background-color: rgba(23,107,255,.1);
    color: var(--electric)
}

.gterm:focus-visible {
    outline: 2px solid var(--electric);
    outline-offset: 2px
}

.gterm:active {
    background-color: rgba(23,107,255,.18)
}

/* Desktop hover preview - pure CSS, shown only on pointer:fine devices so
   touch users go straight to the tap-to-open modal without a ghost hover
   state getting in the way. Populated by app.js from the compiled
   glossary JSON the first time each term is hovered/focused. */
.gterm-preview {
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    width: max-content;
    max-width: 300px;
    background: var(--navy);
    color: #fff;
    padding: 12px 14px;
    border-radius: 10px;
    font: 500 13.5px/1.55 "Manrope",sans-serif;
    box-shadow: 0 12px 30px rgba(2,8,23,.28);
    z-index: 60;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease
}

.gterm-preview b {
    display: block;
    color: var(--cyan);
    font: 700 11px/1 "DM Sans",sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px
}

.gterm-preview::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--navy)
}

@media (hover: hover) and (pointer: fine) {
    .gterm:hover .gterm-preview,
    .gterm:focus-visible .gterm-preview,
    .gterm.gterm-preview-visible .gterm-preview {
        display: block;
        opacity: 1;
        transform: translateX(-50%) translateY(0)
    }
}

/* Full modal - opened on click/tap/Enter on any device, and the only
   interaction path on touch screens where hover doesn't exist. */
.gterm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2,8,23,.55);
    backdrop-filter: blur(2px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    animation: gterm-fade-in .18s ease forwards
}

@keyframes gterm-fade-in {
    to { opacity: 1 }
}

.gterm-modal {
    background: var(--white);
    color: var(--ink);
    width: 100%;
    max-width: 440px;
    max-height: min(80vh, 520px);
    overflow-y: auto;
    border-radius: 18px;
    padding: 28px 26px 24px;
    box-shadow: 0 30px 70px rgba(2,8,23,.35);
    transform: translateY(10px) scale(.98);
    animation: gterm-pop-in .2s ease forwards
}

@keyframes gterm-pop-in {
    to { transform: translateY(0) scale(1) }
}

.gterm-modal-icon {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 10px;
    display: block
}

.gterm-modal h2 {
    font: 700 22px/1.3 "DM Sans",sans-serif;
    margin: 0 0 12px;
    color: var(--ink);
    padding-right: 30px
}

.gterm-modal p {
    font: 400 15.5px/1.7 "Manrope",sans-serif;
    color: var(--muted);
    margin: 0 0 20px
}

.gterm-modal-guide {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 600 14px "DM Sans",sans-serif;
    color: var(--electric-text);
    padding: 10px 16px;
    border: 1.5px solid var(--electric);
    border-radius: 999px;
    transition: background-color .15s ease, color .15s ease
}

.gterm-modal-guide:hover,
.gterm-modal-guide:focus-visible {
    background: var(--electric);
    color: #fff
}

.gterm-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--paper);
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background-color .15s ease, color .15s ease
}

.gterm-modal-close:hover,
.gterm-modal-close:focus-visible {
    background: var(--line);
    color: var(--ink)
}

.gterm-modal-inner {
    position: relative
}

@media (max-width: 560px) {
    .gterm-modal {
        padding: 24px 20px 20px;
        border-radius: 16px
    }
    .gterm-modal h2 {
        font-size: 19px
    }
}

@media (prefers-color-scheme: dark) {
    .gterm-modal {
        background: #0d1526;
        color: #eef2fb
    }
    .gterm-modal h2 {
        color: #fff
    }
    .gterm-modal p {
        color: #a9b3cc
    }
    .gterm-modal-close {
        background: rgba(255,255,255,.08);
        color: #cfd6e8
    }
    .gterm-modal-close:hover,
    .gterm-modal-close:focus-visible {
        background: rgba(255,255,255,.16);
        color: #fff
    }
}

@media (prefers-reduced-motion: reduce) {
    .gterm-backdrop,
    .gterm-modal {
        animation: none;
        opacity: 1;
        transform: none
    }
}
