:root {
    --ge-paper: #e7e2d8;
    --ge-paper-text: #1b1d24;
    --ge-forest: #17312c;
    --ge-forest-soft: #b9d6c7;
    --ge-steel: #1a2734;
    --ge-alert: #dc705f;
}

.ge-brand__mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--ge-gold);
    color: var(--ge-gold-light);
    font-family: Georgia, serif;
    font-size: 1.18rem;
    font-weight: 700;
}

.geh-newsrail {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    min-height: 48px;
    margin: 22px 0 0;
    overflow: hidden;
    border-top: 1px solid var(--ge-line);
    border-bottom: 1px solid var(--ge-line);
}

.geh-newsrail__toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.geh-newsrail__control {
    grid-column: 3;
    grid-row: 1;
    padding: 5px 7px;
    border: 1px solid var(--ge-line);
    color: var(--ge-subtle);
    cursor: pointer;
    font-size: 0.64rem;
    font-weight: 750;
}

.geh-newsrail__control:hover,
.geh-newsrail__control:focus-visible {
    border-color: var(--ge-muted);
    color: var(--ge-text);
}

.geh-newsrail__resume {
    display: none;
}

.geh-newsrail__toggle:checked + .geh-newsrail__control .geh-newsrail__pause {
    display: none;
}

.geh-newsrail__toggle:checked + .geh-newsrail__control .geh-newsrail__resume {
    display: inline;
}

.geh-newsrail__toggle:checked ~ .geh-newsrail__window .geh-newsrail__track {
    animation-play-state: paused;
}

.geh-newsrail__label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ge-text);
    font-size: 0.68rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.geh-newsrail__label i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ge-alert);
}

.geh-newsrail__window {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

.geh-newsrail__track {
    display: flex;
    width: max-content;
    animation: ge-newsrail 44s linear infinite;
    will-change: transform;
}

.geh-newsrail__group {
    display: flex;
    flex: none;
    gap: 38px;
    align-items: center;
    padding-right: 38px;
}

.geh-newsrail__group a,
.geh-newsrail__group span {
    color: var(--ge-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.geh-newsrail__group a::after,
.geh-newsrail__group span::after {
    margin-left: 38px;
    color: var(--ge-gold);
    content: "/";
}

.geh-newsrail:hover .geh-newsrail__track,
.geh-newsrail:focus-within .geh-newsrail__track {
    animation-play-state: paused;
}

@keyframes ge-newsrail {
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

.geh-trust-prompt {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin: 18px 0 0;
    padding: 17px 20px;
    border-left: 3px solid var(--ge-green);
    background: var(--ge-steel);
}

.geh-trust-prompt div {
    display: grid;
    gap: 4px;
}

.geh-trust-prompt strong {
    color: var(--ge-text);
    font-size: 0.9rem;
}

.geh-trust-prompt a {
    color: var(--ge-forest-soft);
    font-size: 0.78rem;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.geh-research {
    border-left-color: #aa7a30;
    background: var(--ge-paper);
    color: var(--ge-paper-text);
}

.geh-research .geh-kicker,
.geh-research .geh-command {
    color: #765315;
}

.geh-research h2,
.geh-research p {
    color: var(--ge-paper-text);
}

.geh-research__article {
    border-color: #c8c0b1;
    background: #f7f5ef;
    color: var(--ge-paper-text);
}

.geh-research__article span {
    color: #a44638;
}

.geh-tools {
    border-left-color: var(--ge-green);
    background: var(--ge-forest);
}

.geh-tools .geh-kicker,
.geh-tools .geh-tool-links a {
    color: var(--ge-forest-soft);
}

.geh-tools h2 {
    color: #f1f5f2;
}

.geh-tools p {
    color: #ccd8d2;
}

.geh-tools .geh-tool-links a {
    border-bottom-color: rgba(185, 214, 199, 0.25);
}

.home .geh-section[aria-labelledby="ge-latest"] {
    margin-top: 16px;
    border-top: 1px solid var(--ge-line);
}

@media (max-width: 600px) {
    .ge-brand__mark {
        width: 36px;
        height: 36px;
    }

    .geh-intro h1,
    .geh-hub-intro h1 {
        font-size: 2rem;
    }

    .geh-topic-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .geh-topic-grid::-webkit-scrollbar {
        display: none;
    }

    .geh-topic {
        flex: 0 0 78%;
        min-height: 116px;
        border-right: 1px solid var(--ge-line);
        border-bottom: 0;
        scroll-snap-align: start;
    }

    .geh-newsrail {
        grid-template-columns: 1fr auto;
        gap: 4px;
        min-height: 62px;
        padding: 8px 0;
    }

    .geh-newsrail__control {
        grid-column: 2;
        grid-row: 1;
    }

    .geh-newsrail__window {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .geh-newsrail__window {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .geh-trust-prompt {
        align-items: start;
        padding: 15px 16px;
    }

    .geh-trust-prompt strong {
        font-size: 0.82rem;
    }

    .geh-trust-prompt a {
        max-width: 105px;
        white-space: normal;
    }

    .geh-lead-grid {
        margin-top: 26px;
    }

    .geh-lead {
        min-height: 365px;
    }

    .geh-lead__content p,
    .geh-pick p {
        display: none;
    }

    .geh-pick {
        grid-template-columns: 84px 1fr;
    }

    .geh-pick img {
        width: 84px;
        height: 70px;
    }

    .geh-research,
    .geh-tools {
        padding: 20px;
    }

    .geh-research h2,
    .geh-tools h2 {
        font-size: 1.25rem;
    }

    .home .geh-section {
        padding: 30px 0;
    }

    .home .geh-card-grid .geh-card:nth-child(n + 4),
    .home .geh-compact-list .geh-compact:nth-child(n + 5) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .geh-newsrail__track {
        animation: none;
        will-change: auto;
    }

    .geh-newsrail__group[aria-hidden="true"] {
        display: none;
    }

    .geh-newsrail__window {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
}
