/* CLB Tech — Signal Editorial overrides */
:root {
    --clb-ink: #0b0f19;
    --clb-paper: #f8fafc;
    --clb-surface: #ffffff;
    --clb-line: #e5e7eb;
    --clb-muted: #64748b;
    --clb-blue: #245bff;
    --clb-cyan: #20d9ff;
    --clb-violet: #7c3aed;
    --clb-emerald: #10b981;
    --clb-orange: #f97316;
    --clb-red: #ef4444;
    --clb-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 8px 30px rgba(15, 23, 42, .05);
    --font-sans: "Geist", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html,
body {
    background: var(--clb-paper) !important;
}

body,
.is-body,
.gh-content {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--clb-ink);
}

.is-title,
.gh-navigation-logo,
.gh-container-title,
.gh-header-title,
.gh-card-title,
.gh-article-title,
.gh-archive-title {
    font-family: var(--font-sans) !important;
    letter-spacing: -.055em;
}

.gh-outer {
    padding-left: max(4vmin, 22px);
    padding-right: max(4vmin, 22px);
}

.gh-inner {
    max-width: 1180px;
}

/* Navigation */
.gh-navigation {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 250, 252, .88) !important;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    backdrop-filter: blur(16px);
}

.gh-navigation-inner {
    min-height: 76px;
}

.gh-navigation-logo {
    color: var(--clb-ink) !important;
    font-weight: 800;
    font-size: clamp(2.8rem, 4.8vw, 5.6rem) !important;
    line-height: .9;
    letter-spacing: -.08em !important;
}

.gh-navigation-menu a,
.gh-navigation-actions a {
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 650;
    color: #334155 !important;
}

.gh-navigation-menu a:hover,
.gh-navigation-actions a:hover {
    color: var(--clb-blue) !important;
}

.gh-button,
.gh-navigation .gh-button {
    border-radius: 999px;
    background: var(--clb-ink) !important;
    color: #fff !important;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .08), 0 10px 24px rgba(15, 23, 42, .12);
}

/* CLB topic rail */
.clb-signal-rail {
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.clb-signal-rail-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px max(4vmin, 22px);
    overflow-x: auto;
    scrollbar-width: none;
}

.clb-signal-rail-inner::-webkit-scrollbar {
    display: none;
}

.clb-signal-label,
.clb-topic-pill {
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: 1.05rem;
    line-height: 1;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.clb-signal-label {
    color: var(--clb-muted);
}

.clb-topic-pill {
    color: var(--clb-ink);
    text-decoration: none;
    padding: 9px 11px;
    border: 1px solid var(--clb-line);
    border-radius: 999px;
    background: #fff;
    transition: transform .16s ease, border-color .16s ease, color .16s ease;
}

.clb-topic-pill:hover {
    color: var(--clb-blue);
    border-color: rgba(36, 91, 255, .35);
    transform: translateY(-1px);
}

/* Header / magazine composition */
.gh-header {
    padding-top: 36px;
    padding-bottom: 36px;
}

.gh-header.is-magazine .gh-header-inner,
.gh-header.is-highlight .gh-header-inner {
    padding: clamp(18px, 3vw, 34px);
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 30px;
    background: linear-gradient(135deg, #fff 0%, #fff 58%, #eef6ff 100%);
    box-shadow: var(--clb-shadow);
}

.gh-header.is-magazine .gh-card:first-child .gh-card-title,
.gh-header.is-highlight .gh-header-left .gh-card-title {
    font-size: clamp(3rem, 5vw, 6.4rem);
    line-height: .96;
}

.gh-header.is-magazine .gh-card:first-child .gh-card-link,
.gh-header.is-highlight .gh-header-left .gh-card-link {
    min-height: 100%;
}

.gh-header.is-magazine .gh-card:first-child .gh-card-image,
.gh-header.is-highlight .gh-header-left .gh-card-image {
    border-radius: 22px;
    overflow: hidden;
}

.gh-card-tag,
.gh-article-tag,
.gh-featured-title,
.gh-container-title,
.gh-sidebar-title {
    font-family: var(--font-mono) !important;
    font-size: 1.05rem !important;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--clb-blue) !important;
}

.gh-container-title {
    color: var(--clb-ink) !important;
    font-size: 1.2rem !important;
}

/* Cards */
.gh-feed {
    gap: 22px !important;
}

.gh-card {
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 24px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .02), 0 2px 2px rgba(15, 23, 42, .03);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.gh-card:hover {
    transform: translateY(-3px);
    border-color: rgba(36, 91, 255, .22);
    box-shadow: 0 0 0 1px rgba(36, 91, 255, .08), 0 18px 40px rgba(15, 23, 42, .08);
}

.gh-card-link {
    padding: 18px;
}

.gh-card-image {
    border-radius: 18px;
    overflow: hidden;
    background: #e2e8f0;
}

.gh-card-image img {
    transition: transform .28s ease;
}

.gh-card:hover .gh-card-image img {
    transform: scale(1.025);
}

.gh-card-title {
    color: var(--clb-ink) !important;
    font-weight: 750;
    line-height: 1.02;
}

.gh-card-excerpt,
.gh-card-meta,
.gh-article-excerpt,
.gh-article-meta-content,
.gh-about-description {
    color: var(--clb-muted) !important;
}

.gh-card-meta {
    font-family: var(--font-mono);
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Sidebar */
.gh-sidebar-inner,
.gh-about,
.gh-recommendations,
.gh-cta-inner,
.gh-footer-signup {
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, .08);
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .02);
}

.gh-about-title {
    letter-spacing: -.06em;
}

/* Article */
.gh-article-header {
    padding-top: clamp(36px, 7vw, 90px);
}

.gh-article-title {
    max-width: 980px;
    font-size: clamp(4rem, 7vw, 8.6rem) !important;
    line-height: .95 !important;
    color: var(--clb-ink);
}

.gh-article-excerpt {
    max-width: 780px;
    font-size: clamp(1.9rem, 2.2vw, 2.4rem) !important;
    line-height: 1.45;
}

.gh-meta-share {
    border-top: 1px solid var(--clb-line);
    border-bottom: 1px solid var(--clb-line);
    padding-top: 16px;
    padding-bottom: 16px;
}

.gh-content {
    font-size: clamp(1.78rem, 1.7vw, 1.95rem);
    line-height: 1.72;
}

.gh-content p,
.gh-content li {
    color: #1f2937;
}

.gh-content a {
    color: var(--clb-blue);
    text-decoration-thickness: 2px;
    text-underline-offset: .18em;
}

.gh-content blockquote {
    border-left: 4px solid var(--clb-blue);
    background: #eff6ff;
    border-radius: 0 18px 18px 0;
    padding: 18px 22px;
}

.gh-content pre,
.gh-content code {
    font-family: var(--font-mono);
}

/* Archive */
.gh-archive {
    padding-top: 46px;
    padding-bottom: 24px;
}

.gh-archive-inner {
    padding: clamp(22px, 4vw, 42px);
    border-radius: 28px;
    background: linear-gradient(135deg, #fff, #eef6ff);
    border: 1px solid rgba(15, 23, 42, .08);
}

/* Footer */
.gh-footer {
    margin-top: 48px;
    background: var(--clb-ink) !important;
    color: #fff;
}

.gh-footer-logo,
.gh-footer a,
.gh-footer-copyright {
    color: #fff !important;
}

.gh-footer-copyright {
    color: #94a3b8 !important;
}

/* Topic color hints */
.tag-artificial-intelligence .gh-card-tag,
.tag-ai .gh-card-tag { color: var(--clb-violet) !important; }
.tag-gadget .gh-card-tag,
.tag-smartphone .gh-card-tag { color: #0ea5e9 !important; }
.tag-cybersecurity .gh-card-tag,
.tag-privacy .gh-card-tag { color: var(--clb-emerald) !important; }
.tag-startup .gh-card-tag { color: var(--clb-orange) !important; }
.tag-indonesia .gh-card-tag { color: var(--clb-red) !important; }

@media (max-width: 767px) {
    .gh-navigation-inner {
        min-height: 64px;
    }

    .gh-navigation-logo {
        font-size: 3.1rem !important;
    }

    .gh-header {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .gh-header.is-magazine .gh-header-inner,
    .gh-header.is-highlight .gh-header-inner,
    .gh-archive-inner {
        border-radius: 22px;
    }

    .gh-card-link {
        padding: 14px;
    }

    .gh-article-title {
        letter-spacing: -.06em !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}


/* MIT Technology Review-inspired editorial refinement
   Keep CLB identity, shift typography/color toward black-white-red serious magazine style. */
:root {
    --clb-ink: #08090c;
    --clb-paper: #fffdf8;
    --clb-surface: #ffffff;
    --clb-line: #111111;
    --clb-muted: #5f5f5f;
    --clb-blue: #e30613;
    --clb-cyan: #b00012;
    --clb-red: #e30613;
    --clb-shadow: none;
    --font-serif: Georgia, "Times New Roman", Times, serif;
    --font-sans: "Inter", "Neue Haas Grotesk Text", Arial, Helvetica, sans-serif;
    --font-mono: "Geist Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html,
body {
    background: var(--clb-paper) !important;
}

body,
.is-body,
.gh-content {
    color: #08090c !important;
}

.gh-navigation {
    background: rgba(255, 253, 248, .96) !important;
    border-bottom: 2px solid #08090c;
    backdrop-filter: none;
}

.gh-navigation-logo {
    font-family: var(--font-serif) !important;
    color: #08090c !important;
    font-weight: 700;
    letter-spacing: -.065em !important;
}

.gh-navigation-menu a,
.gh-navigation-actions a,
.clb-topic-pill,
.clb-signal-label,
.gh-card-meta,
.gh-card-tag,
.gh-article-tag,
.gh-featured-title,
.gh-container-title,
.gh-sidebar-title {
    font-family: var(--font-mono) !important;
}

.gh-navigation-menu a,
.gh-navigation-actions a {
    color: #08090c !important;
    font-weight: 700;
    letter-spacing: .015em;
}

.gh-navigation-menu a:hover,
.gh-navigation-actions a:hover,
.gh-content a,
.gh-card-tag,
.gh-article-tag,
.gh-featured-title {
    color: #e30613 !important;
}

.gh-button,
.gh-navigation .gh-button {
    border-radius: 0;
    background: #e30613 !important;
    color: #fff !important;
    box-shadow: none;
    border: 1px solid #e30613;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.clb-signal-rail {
    background: #fffdf8;
    border-bottom: 1px solid #08090c;
}

.clb-topic-pill {
    border-radius: 0;
    border: 1px solid #08090c;
    background: transparent;
    color: #08090c;
    font-weight: 700;
}

.clb-topic-pill:hover {
    color: #fff;
    border-color: #e30613;
    background: #e30613;
    transform: none;
}

.is-title,
.gh-container-title,
.gh-header-title,
.gh-card-title,
.gh-article-title,
.gh-archive-title,
.gh-about-title {
    font-family: var(--font-serif) !important;
    color: #08090c !important;
    letter-spacing: -.035em !important;
}

.gh-header.is-magazine .gh-header-inner,
.gh-header.is-highlight .gh-header-inner,
.gh-archive-inner {
    border: 2px solid #08090c;
    border-radius: 0;
    background: #fffdf8;
    box-shadow: none;
}

.gh-header.is-magazine .gh-card:first-child .gh-card-title,
.gh-header.is-highlight .gh-header-left .gh-card-title {
    font-size: clamp(3.4rem, 6vw, 7.2rem);
    line-height: .92;
}

.gh-card {
    border: 0;
    border-top: 2px solid #08090c;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.gh-card:hover {
    transform: none;
    border-color: #e30613;
    box-shadow: none;
}

.gh-card-link {
    padding: 20px 0;
}

.gh-card-image,
.gh-header.is-magazine .gh-card:first-child .gh-card-image,
.gh-header.is-highlight .gh-header-left .gh-card-image {
    border-radius: 0;
    background: #e9e2d6;
}

.gh-card-title {
    font-weight: 700;
    line-height: .98;
}

.gh-card-excerpt,
.gh-card-meta,
.gh-article-excerpt,
.gh-article-meta-content,
.gh-about-description {
    color: #555 !important;
}

.gh-sidebar-inner,
.gh-about,
.gh-recommendations,
.gh-cta-inner,
.gh-footer-signup {
    border-radius: 0;
    border: 1px solid #08090c;
    background: #fffdf8;
    box-shadow: none;
}

.gh-article-title {
    font-size: clamp(4.4rem, 7.5vw, 9.4rem) !important;
    line-height: .9 !important;
}

.gh-article-excerpt {
    color: #302c2c !important;
    font-family: var(--font-serif) !important;
}

.gh-content {
    font-family: Georgia, "Times New Roman", Times, serif;
    color: #08090c !important;
}

.gh-content p,
.gh-content li {
    color: #08090c;
}

.gh-content blockquote {
    border-left: 6px solid #e30613;
    background: #f7eee7;
    border-radius: 0;
}

.gh-footer {
    background: #08090c !important;
    border-top: 6px solid #e30613;
}

.tag-artificial-intelligence .gh-card-tag,
.tag-ai .gh-card-tag,
.tag-gadget .gh-card-tag,
.tag-smartphone .gh-card-tag,
.tag-cybersecurity .gh-card-tag,
.tag-privacy .gh-card-tag,
.tag-startup .gh-card-tag,
.tag-indonesia .gh-card-tag {
    color: #e30613 !important;
}

/* CLB homepage editorial briefing cards */
.clb-editorial-brief {
    margin-top: clamp(10px, 2vw, 24px);
    margin-bottom: clamp(28px, 4vw, 54px);
}

.clb-editorial-brief-inner {
    border-top: 2px solid #08090c;
    border-bottom: 2px solid #08090c;
    padding: 18px 0 22px;
}

.clb-brief-kicker {
    font-family: var(--font-mono);
    color: #e30613;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.clb-brief-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #08090c;
}

.clb-brief-card {
    color: #08090c;
    display: grid;
    gap: 10px;
    padding: 18px 20px 20px 0;
    text-decoration: none;
}

.clb-brief-card + .clb-brief-card {
    border-left: 1px solid #08090c;
    padding-left: 20px;
}

.clb-brief-card span {
    color: #e30613;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.clb-brief-card h2 {
    font-family: var(--font-serif) !important;
    font-size: clamp(2.6rem, 3vw, 4rem);
    line-height: .95;
    letter-spacing: -.035em;
    margin: 0;
}

.clb-brief-card p {
    color: #555;
    font-family: var(--font-sans);
    font-size: 1.38rem;
    line-height: 1.45;
    margin: 0;
}

.clb-brief-card:hover h2 {
    color: #e30613;
}

.gh-featured {
    display: none !important;
}

.gh-container-title {
    border-top: 2px solid #08090c;
    padding-top: 14px;
}

/* Desktop homepage readability fix: keep magazine hierarchy without huge broken titles. */
@media (min-width: 768px) {
    .gh-header .gh-card-title,
    .gh-header.is-magazine .gh-header-left .gh-card .gh-card-title,
    .gh-header.is-magazine .gh-header-right .gh-card .gh-card-title,
    .gh-header.is-highlight .gh-header-right .gh-card .gh-card-title,
    .gh-header.is-magazine .gh-header-inner .gh-card:not(:first-child) .gh-card-title,
    .gh-header.is-highlight .gh-header-inner .gh-card:not(:first-child) .gh-card-title {
        font-size: clamp(2.2rem, 1.55vw, 2.9rem) !important;
        line-height: 1.05 !important;
        letter-spacing: -.025em !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        hyphens: none !important;
    }

    .gh-header.is-magazine .gh-header-inner > .gh-card:first-child .gh-card-title,
    .gh-header.is-highlight .gh-header-left .gh-card-title {
        font-size: clamp(3.2rem, 3vw, 4.8rem) !important;
        line-height: .98 !important;
    }

    .gh-header .gh-card-excerpt {
        font-size: 1.55rem;
        line-height: 1.45;
    }
}

@media (max-width: 767px) {
    .clb-brief-grid {
        grid-template-columns: 1fr;
    }

    .clb-brief-card + .clb-brief-card {
        border-left: 0;
        border-top: 1px solid #08090c;
        padding-left: 0;
    }
}

/* Footer newsletter should integrate with the dark editorial footer */
.gh-footer .gh-footer-signup {
    background: #08090c !important;
    border: 1px solid rgba(255, 255, 255, .32) !important;
    border-top: 3px solid #e30613 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #fff !important;
}

.gh-footer .gh-footer-signup-header,
.gh-footer .gh-footer-signup-subhead,
.gh-footer .gh-footer-signup .is-body {
    color: #fff !important;
}

.gh-footer .gh-footer-signup-subhead {
    color: #d7d7d7 !important;
}

/* Footer newsletter contrast fix: visible cream panel inside dark footer */
.gh-footer .gh-footer-signup {
    background: #fffdf8 !important;
    border: 2px solid #fffdf8 !important;
    border-top: 6px solid #e30613 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #08090c !important;
}

.gh-footer .gh-footer-signup-header,
.gh-footer .gh-footer-signup-subhead,
.gh-footer .gh-footer-signup .is-body {
    color: #08090c !important;
}

.gh-footer .gh-footer-signup-subhead {
    color: #302c2c !important;
}

.gh-footer .gh-footer-signup input,
.gh-footer .gh-footer-signup .gh-form-input {
    background: #ffffff !important;
    border: 1px solid #08090c !important;
    color: #08090c !important;
}

.gh-footer .gh-footer-signup .gh-button {
    background: #e30613 !important;
    border-color: #e30613 !important;
    color: #ffffff !important;
}

/* Footer newsletter form alignment */
.gh-footer {
    padding-bottom: clamp(28px, 4vw, 56px) !important;
}

.gh-footer .gh-footer-signup {
    margin-top: 28px !important;
    padding: clamp(24px, 4vw, 44px) !important;
}

.gh-footer .gh-footer-signup .gh-form {
    display: flex !important;
    align-items: stretch !important;
    gap: 0 !important;
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.gh-footer .gh-footer-signup .gh-form-input {
    min-height: 52px !important;
    border-radius: 0 !important;
    border-right: 0 !important;
    padding: 0 16px !important;
}

.gh-footer .gh-footer-signup .gh-button {
    min-height: 52px !important;
    border-radius: 0 !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
}

@media (max-width: 560px) {
    .gh-footer .gh-footer-signup .gh-form {
        display: grid !important;
        gap: 10px !important;
    }

    .gh-footer .gh-footer-signup .gh-form-input {
        border-right: 1px solid #08090c !important;
    }
}
