@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap');

html.cg-light {
    --cg-frost: #f5f9ff;
    --cg-ink: #101a3c;
    --cg-muted: #52617c;
    --cg-blue: #3d8dff;
    --cg-deep: #1f5fd6;
    --cg-apricot: #f5e1d5;
    --color-darkgrey: #101a3c;
    --color-midgrey: #52617c;
    --color-lightgrey: #e5edf8;
    --color-white: #fff;
    --color-wash: #f5f9ff;
    --color-darkmode: #f5f9ff;
    --ghost-accent-color: #1f5fd6;
    color-scheme: light;
    background: var(--cg-frost);
}
.cg-editorial {
    color: var(--cg-ink);
    background: var(--cg-frost) !important;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}
.cg-editorial h1, .cg-editorial h2, .cg-editorial h3,
.cg-editorial h4, .cg-editorial .post-card-title {
    color: var(--cg-ink) !important;
    font-family: 'DM Sans', sans-serif !important;
    letter-spacing: -.035em;
}
.cg-editorial .inner { max-width: 1180px; }
.cg-editorial a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.cg-editorial a:focus-visible, .cg-editorial button:focus-visible,
.cg-editorial input:focus-visible { outline: 3px solid var(--cg-deep); outline-offset: 4px; }
.cg-editorial #gh-head {
    min-height: 88px;
    color: var(--cg-ink);
    background: rgba(245,249,255,.98) !important;
    border-bottom: 1px solid #e2eaf5;
}
.cg-editorial .gh-head-inner { gap: 32px; }
.cg-editorial .cg-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--cg-ink); }
.cg-editorial.home-template #gh-head .cg-brand { display: inline-flex; }
.cg-editorial .cg-brand img { width: 40px; height: 38px; max-height: none; object-fit: contain; }
.cg-editorial .cg-brand > span { font-size: 26px; font-weight: 700; letter-spacing: -.035em; white-space: nowrap; }
.cg-editorial .cg-brand-section { color: var(--cg-muted); font-size: 21px; font-weight: 400; }
.cg-editorial .gh-head-menu { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.cg-editorial.is-head-left-logo #gh-head .gh-head-menu { margin-left: 0; margin-right: 0; }
.cg-editorial .gh-head-menu .nav { gap: 24px; }
.cg-editorial .gh-head-link, .cg-editorial .cg-product-link { color: var(--cg-muted); font-size: 14px; }
.cg-editorial .gh-head-button, .cg-editorial .subscribe-button,
.cg-editorial .footer-cta-button {
    background: var(--cg-deep) !important;
    color: #fff !important;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
}
.cg-editorial .gh-icon-btn svg { fill: currentColor; }
.cg-editorial .gh-burger::before, .cg-editorial .gh-burger::after { background: var(--cg-ink); }
.cg-editorial .cg-hero {
    position: relative;
    padding: 64px 4vw 56px;
    min-height: 0;
    color: var(--cg-ink);
    background: radial-gradient(ellipse at 95% 12%, #deebff 0, transparent 55%), radial-gradient(ellipse at 2% 95%, #f5e1d5 0, transparent 36%), var(--cg-frost);
}
.cg-editorial .cg-hero .site-header-cover { display: none; }
.cg-editorial .cg-hero .site-header-inner { padding: 0; text-align: left; }
.cg-editorial .cg-eyebrow {
    margin: 0 0 20px;
    color: var(--cg-deep);
    font: 500 11px/1.5 'JetBrains Mono', monospace;
    letter-spacing: .16em;
}
.cg-editorial .cg-hero .site-title { margin: 0; font-size: clamp(38px, 4.5vw, 62px); line-height: 1.05; }
.cg-editorial .cg-hero .site-title em { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; color: var(--cg-deep); }
.cg-editorial .cg-hero .site-description { margin: 22px 0 0; max-width: 660px; color: var(--cg-muted); font: 400 18px/1.6 'DM Sans', sans-serif; }
.cg-editorial .post-feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 36px 0 72px; }
.cg-editorial .post-card, .cg-editorial .post-card-large {
    display: flex;
    flex-direction: column;
    width: auto;
    grid-column: auto;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #e0e9f6;
    border-radius: 16px;
    overflow: hidden;
}
.cg-editorial .post-card-image-link { flex: none; grid-column: auto; width: 100%; margin: 0; border-radius: 0; }
.cg-editorial .post-card-image-link::after { padding-bottom: 0; }
.cg-editorial .post-card-image { position: static; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.cg-editorial .post-card-content { display: flex; flex-direction: column; flex-grow: 0; grid-column: auto; min-width: 0; padding: 26px; }
.cg-editorial .post-card-content-link { padding: 0; }
.cg-editorial .post-card-title { font-size: 23px; line-height: 1.25; }
.cg-editorial .post-card-excerpt { margin-top: 14px; font: 400 15px/1.65 'DM Sans', sans-serif; color: var(--cg-muted); }
.cg-editorial .post-card-tags { margin-bottom: 12px; color: var(--cg-deep); font: 500 10px/1.6 'JetBrains Mono', monospace; letter-spacing: .08em; }
.cg-editorial .post-card-meta { margin-top: 20px; padding: 0; font-size: 12px; color: var(--cg-muted); }
.cg-editorial .post-card-byline-content a, .cg-editorial .post-card-byline-content span { color: var(--cg-muted); }
.cg-editorial.home-template .post-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; background: #e9f2ff; }
.cg-editorial.home-template .post-card:first-child .post-card-image-link { height: 100%; }
.cg-editorial.home-template .post-card:first-child .post-card-image { height: 100%; min-height: 320px; }
.cg-editorial.home-template .post-card:first-child .post-card-content { justify-content: center; padding: 40px; }
.cg-editorial.home-template .post-card:first-child .post-card-title { font-size: clamp(26px, 2.5vw, 36px); }
.cg-editorial.home-template .post-card:first-child .post-card-excerpt { display: block; -webkit-line-clamp: unset; font-size: 16px; }
.cg-editorial .article { color: var(--cg-ink); background: var(--cg-frost); }
.cg-editorial .article-header { padding: 60px 0 36px; }
.cg-editorial .article-title { font-size: clamp(34px, 4.5vw, 58px); line-height: 1.08; max-width: 1000px; margin-inline: auto; }
.cg-editorial .article-excerpt { color: var(--cg-muted); font: 400 20px/1.55 'DM Sans', sans-serif; }
.cg-editorial .article-image { border-radius: 16px; overflow: hidden; }
.cg-editorial .article-tag a { color: var(--cg-deep); font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.cg-editorial .gh-content { font: 400 19px/1.75 'DM Sans', sans-serif; }
.cg-editorial .gh-content h2 { font-size: 32px; line-height: 1.25; }
.cg-editorial .gh-content h3 { font-size: 24px; line-height: 1.3; }
.cg-editorial .gh-content a { color: var(--cg-deep); }
.cg-editorial .gh-content blockquote { border-color: #d99b79; background: var(--cg-apricot); border-radius: 0 12px 12px 0; padding: 18px 24px; }
.cg-editorial .gh-content code, .cg-editorial .gh-content pre { font-family: 'JetBrains Mono', monospace; }
.cg-editorial .gh-content pre { color: #e9f2ff; background: #101a3c; border-radius: 12px; padding: 24px; font-size: 14px; line-height: 1.75; }
.cg-editorial .gh-content :not(pre) > code { color: var(--cg-ink); background: #e5effe; border-radius: 4px; }
.cg-editorial .gh-content table { display: block; max-width: 100%; overflow-x: auto; font-size: 15px; }
.cg-editorial .footer-cta { background: var(--cg-apricot); border-radius: 18px; padding: 48px 24px; }
.cg-editorial .footer-cta-title { color: var(--cg-ink); font-size: clamp(26px, 3vw, 38px); }
.cg-editorial .site-footer { background: #eef4fd; color: var(--cg-muted); border-top: 1px solid #e0e9f6; }
.cg-editorial .site-footer a { color: var(--cg-muted); }
.cg-editorial .read-more { background: var(--cg-frost); }
@media (max-width: 980px) {
    .cg-editorial .post-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cg-editorial.home-template .post-card:first-child .post-card-content { padding: 26px; }
    .cg-editorial .cg-brand > span { font-size: 22px; }
    .cg-editorial .cg-brand-section { font-size: 18px; }
    .cg-editorial .gh-head-menu { gap: 16px; }
}
@media (max-width: 767px) {
    .cg-editorial #gh-head { min-height: 76px; }
    .cg-editorial .cg-hero { padding-top: 40px; padding-bottom: 40px; }
    .cg-editorial .post-feed { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .cg-editorial.home-template .post-card:first-child { display: flex; }
    .cg-editorial.home-template .post-card:first-child .post-card-image-link { height: auto; }
    .cg-editorial.home-template .post-card:first-child .post-card-image { min-height: 0; height: auto; }
    .cg-editorial .post-card-content { padding: 24px; }
    .cg-editorial .cg-brand img { width: 32px; height: 31px; }
    .cg-editorial .cg-brand > span { font-size: 21px; }
    .cg-editorial .gh-head-menu { flex-direction: column; }
    .cg-editorial .article-header { padding-top: 36px; }
    .cg-editorial .article-excerpt { font-size: 18px; }
    .cg-editorial .gh-content { font-size: 17px; }
    .cg-editorial .gh-content pre { padding: 18px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .cg-editorial *, .cg-editorial *::before, .cg-editorial *::after { scroll-behavior: auto !important; transition: none !important; }
}
