:root {
    --bg: #f5f8fe;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #ffffff;
    --line: rgba(32, 90, 197, 0.12);
    --line-strong: rgba(32, 90, 197, 0.2);
    --text: #13213f;
    --muted: #5c6882;
    --blue: #1f73ff;
    --blue-deep: #1557d6;
    --blue-soft: #eef5ff;
    --shadow: 0 18px 50px rgba(18, 51, 120, 0.1);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: 1220px;
}

[data-theme="dark"] {
    --bg: #0d1428;
    --surface: rgba(20, 30, 56, 0.88);
    --surface-strong: #121c35;
    --line: rgba(130, 168, 255, 0.12);
    --line-strong: rgba(130, 168, 255, 0.22);
    --text: #edf3ff;
    --muted: #a4b3d0;
    --blue: #4d93ff;
    --blue-deep: #76afff;
    --blue-soft: rgba(77, 147, 255, 0.12);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--gh-font-body, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    color: var(--text);
    background:
        linear-gradient(to right, rgba(31, 115, 255, 0.055) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(31, 115, 255, 0.055) 1px, transparent 1px),
        radial-gradient(circle at top, rgba(146, 191, 255, 0.34), transparent 28%),
        var(--bg);
    background-size: 48px 48px, 48px 48px, auto, auto;
    line-height: 1.6;
}

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

img {
    display: block;
    max-width: 100%;
}

.site-shell {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
    padding: 20px 0 60px;
}

.site-header {
    position: sticky;
    top: 14px;
    z-index: 30;
    margin-bottom: 26px;
}

.header-inner,
.journal-intro,
.news-layout__lead,
.news-layout__rail,
.lead-story,
.compact-card,
.post-card,
.archive-hero,
.footer-promo,
.site-footer,
.post-share {
    background: var(--surface);
    border: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 14px 18px;
    border-radius: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-logo,
.footer-logo {
    width: auto;
    height: 42px;
}

.footer-logo {
    height: 40px;
    opacity: 0.92;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-copy strong {
    font-size: 1rem;
}

.brand-copy span,
.meta-row,
.journal-intro__text,
.lead-story__content p,
.compact-card p,
.topic-grid p,
.post-card__content p,
.archive-hero p,
.footer-promo p,
.site-footer p,
.site-footer a,
.gh-content figcaption,
.kg-card figcaption {
    color: var(--muted);
}

.brand-copy span {
    font-size: 0.84rem;
}

.header-nav {
    display: flex;
    justify-content: flex-start;
    margin-left: auto;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
    color: var(--text);
    cursor: pointer;
    position: relative;
}

.theme-toggle__sun,
.theme-toggle__moon {
    position: absolute;
    transition: opacity 0.18s ease, transform 0.18s ease;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.theme-toggle__moon {
    opacity: 0;
    transform: scale(0.7);
}

[data-theme="dark"] .theme-toggle__sun {
    opacity: 0;
    transform: scale(0.7);
}

[data-theme="dark"] .theme-toggle__moon {
    opacity: 1;
    transform: scale(1);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
}

.nav-list {
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list a,
.button,
.text-link,
.share-button {
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.nav-list a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 999px;
    font-weight: 700;
    color: var(--muted);
}

.nav-list a:hover,
.text-link,
.gh-content a {
    color: var(--blue-deep);
}

.footer-promo__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-brand-link {
    display: inline-flex;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
    border: 1px solid var(--line);
    color: var(--muted);
}

.button,
.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-weight: 800;
}

.button:hover,
.share-button:hover,
.nav-list a:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #fff;
    background: linear-gradient(180deg, var(--blue), var(--blue-deep));
    box-shadow: 0 12px 24px rgba(31, 115, 255, 0.24);
}

.button-secondary,
.share-button {
    background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
    border-color: var(--line);
}

.site-main {
    display: grid;
    gap: 28px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--blue-deep);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.journal-intro,
.archive-hero,
.footer-promo {
    padding: 28px;
    border-radius: 28px;
}

.journal-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 18px;
    align-items: end;
}

.journal-intro h1,
.article-hero h1,
.archive-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.news-layout,
.post-grid,
.site-footer,
.article-layout {
    display: grid;
    gap: 18px;
}

.articles-stream__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 14px;
}

.articles-stream__heading h1 {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.news-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr);
}

.news-layout__lead,
.news-layout__rail {
    border-radius: var(--radius-xl);
    padding: 22px;
}

.section-label {
    margin-bottom: 16px;
}

.section-block {
    display: grid;
    gap: 22px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.section-heading--compact {
    margin-bottom: 16px;
}

.section-heading h2,
.lead-story__content h3,
.compact-card h3,
.post-card__content h3,
.footer-promo h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2vw, 2.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.lead-story__content h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    font-size: clamp(1.35rem, 1.8vw, 1.85rem);
}

.section-heading p,
.article-hero__excerpt,
.gh-content {
    margin: 0;
    color: var(--muted);
}

.lead-story {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.lead-story__media,
.post-card__media,
.article-image {
    position: relative;
    overflow: hidden;
}

.lead-story__media {
    min-height: 420px;
}

.lead-story__media img,
.post-card__media img,
.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lead-story__media--empty,
.post-card__media--empty,
.post-card--placeholder .post-card__media {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top left, rgba(121, 182, 255, 0.85), transparent 28%),
        linear-gradient(135deg, #10204c, #1f73ff 62%, #99c7ff);
    color: rgba(255, 255, 255, 0.94);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.lead-story__content,
.post-card__content {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 28px;
}

.compact-list {
    display: grid;
    gap: 14px;
}

.compact-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    padding: 0;
    border-radius: 22px;
    overflow: hidden;
}

.compact-card__media {
    width: 118px;
    min-height: 104px;
    overflow: hidden;
    border-right: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-strong) 90%, transparent);
}

.compact-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compact-card__media--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-deep);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.compact-card__content {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 16px 16px 14px;
}

.compact-card h3,
.post-card__content h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compact-card h3 {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 1.02rem;
    line-height: 1.2;
    margin: 0;
}

.post-card__content h3 {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    min-height: 2.2em;
    font-size: clamp(1.35rem, 1.8vw, 1.85rem);
    line-height: 1.05;
}

.compact-card__meta,
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--muted);
}

.compact-card__meta {
    font-size: 0.84rem;
}

.post-grid,
.site-footer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card,
.archive-hero,
.post-share {
    border-radius: var(--radius-lg);
}

.post-share {
    padding: 24px;
    overflow: visible;
}

.post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
    display: grid;
    grid-template-rows: 180px 1fr;
    overflow: hidden;
}

.post-card__media {
    min-height: 180px;
    border-bottom: 1px solid var(--line);
}

.post-card__top,
.post-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.post-card__top {
    flex-wrap: wrap;
}

.post-card__date,
.post-card__footer {
    color: var(--muted);
    font-size: 0.92rem;
}

.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.pagination {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-strong) 84%, transparent);
    border: 1px solid var(--line);
}

.pagination__status,
.pagination__link {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 600;
}

.pagination__link {
    color: var(--blue-deep);
}

.article-shell {
    display: grid;
    gap: 24px;
}

.article-hero {
    display: grid;
    gap: 14px;
    padding: 10px 6px 0;
}

.article-hero__copy {
    display: grid;
    gap: 16px;
}

.article-hero__copy h1 {
    margin: 6px 0 4px;
}

.article-layout {
    grid-template-columns: minmax(0, 760px) minmax(220px, 280px);
    justify-content: center;
    align-items: start;
}

.article-layout--single {
    grid-template-columns: minmax(0, 1136px);
}

.article-body {
    display: grid;
    gap: 24px;
}

.article-body--card {
    gap: 18px;
}

.article-card {
    padding: 36px;
    border-radius: 28px;
    background: var(--surface-strong);
    border: 1px solid transparent;
    box-shadow: var(--shadow);
}

.article-sidebar {
    position: sticky;
    top: 110px;
}

.article-image {
    max-height: 560px;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.share-grid {
    display: flex;
    gap: 10px;
}

.share-grid {
    flex-wrap: wrap;
}

.share-grid--icons {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
}

.share-button--copy {
    margin-left: auto;
    position: relative;
}

.share-button--icon {
    min-width: 46px;
    width: 46px;
    height: 46px;
    padding: 0;
    flex: 0 0 auto;
    border-radius: 14px;
}

.share-button--icon span {
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.share-button--max {
    color: var(--text);
}

.share-button--icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.share-button--copy::part(button) {
    width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
    color: var(--text);
}

.share-button--copy::part(button):hover {
    transform: translateY(-1px);
}

.share-button--copy::part(copy-icon),
.share-button--copy::part(success-icon),
.share-button--copy::part(error-icon) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}

.share-button--copy::part(tooltip__base),
.share-button--copy::part(tooltip__body) {
    border-radius: 10px;
    font-weight: 700;
    z-index: 20;
}

.share-button--copy::part(base) {
    display: inline-flex;
}

.share-button--copy wa-icon {
    font-size: 20px;
}

.gh-content {
    width: 100%;
    font-size: 1.18rem;
}

.gh-content > * {
    margin-top: 0;
    margin-bottom: 1.2em;
}

.gh-content h2,
.gh-content h3,
.gh-content h4 {
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.gh-content h2 {
    font-size: 2rem;
}

.gh-content h3 {
    font-size: 1.55rem;
}

.gh-content blockquote {
    margin: 1.5em 0;
    padding: 1.2em 1.4em;
    border-left: 4px solid var(--blue);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
}

.gh-content .kg-width-wide {
    width: min(100vw - 48px, 980px);
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.gh-content .kg-width-full {
    width: min(100vw, 1280px);
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.footer-promo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.footer-promo__content {
    display: grid;
    gap: 12px;
    width: 100%;
}

.footer-promo__actions .button {
    white-space: nowrap;
}

.footer-promo h2 {
    font-size: clamp(2.1rem, 3vw, 3rem);
}

.site-footer {
    margin-top: 18px;
    padding: 28px;
    border-radius: 28px;
    grid-template-columns: 1.7fr 1fr 1fr;
}

.footer-legal-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 4px 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-legal-note p,
.footer-legal-note a {
    margin: 0;
    color: var(--muted);
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 16px;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner__card {
    width: min(100%, 960px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    border-radius: 24px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(18, 51, 120, 0.16);
}

.cookie-banner__content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cookie-banner__icon {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue);
}

.cookie-banner__icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.cookie-banner__icon wa-icon {
    font-size: 20px;
}

.cookie-banner__content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-banner__content a {
    color: var(--blue-deep);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.cookie-banner__actions {
    flex: 0 0 auto;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 8px;
}

.footer-column--brand {
    gap: 14px;
}

.footer-title {
    margin: 0 0 6px;
    font-weight: 800;
}

.text-link {
    font-weight: 800;
}
.ur-sub{
    font-size: .8em;
}

@media (max-width: 1100px) {
    .header-inner,
    .journal-intro,
    .footer-promo,
    .section-heading,
    .lead-story,
    .article-layout,
    .site-footer {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .header-inner {
        display: grid;
    }

    .header-nav {
        justify-content: flex-start;
    }

    .footer-promo__actions {
        flex-wrap: wrap;
    }

    .news-layout,
    .post-grid,
    .site-footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-list {
        width: 100%;
        justify-content: space-between;
    }

    .article-sidebar {
        display: none;
    }

    .post-share--bottom {
        display: grid;
    }
}

@media (max-width: 720px) {
    .site-shell {
        width: min(calc(100% - 20px), var(--container));
        padding-top: 12px;
    }

    .header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 20px;
    }

    .brand {
        min-width: 0;
        width: 100%;
        gap: 10px;
        grid-column: 1;
        grid-row: 1;
    }

    .brand-copy {
        min-width: 0;
    }

    .brand-copy span {
        display: none;
    }

    .brand-copy strong {
        font-size: 0.9rem;
        line-height: 1.05;
        letter-spacing: -0.02em;
    }

    .brand-logo {
        height: 28px;
    }

    .menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .header-nav {
        display: none;
        width: 100%;
        margin-left: 0;
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .header-controls {
        margin-left: auto;
        flex: 0 0 auto;
        gap: 8px;
        align-self: start;
        grid-column: 2;
        grid-row: 1;
    }

    .theme-toggle,
    .menu-toggle {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .header-nav.is-open {
        display: block;
    }

    .nav-list {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        border-radius: 24px;
    }

    .nav-list li {
        min-width: 0;
    }

    .nav-list a {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .journal-intro,
    .news-layout__lead,
    .news-layout__rail,
    .lead-story__content,
    .post-card__content,
    .insights-strip article,
    .topic-grid article,
    .footer-promo,
    .site-footer,
    .post-share,
    .archive-hero {
        padding: 22px;
    }

    .footer-legal-note {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner__card {
        flex-direction: column;
        align-items: stretch;
    }

    .journal-intro h1,
    .article-hero h1,
    .archive-hero h1 {
        font-size: 2rem;
    }

    .news-layout,
    .post-grid,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .lead-story__media,
    .post-card__media,
    .article-image {
        min-height: 240px;
    }

    .share-grid {
        flex-direction: column;
    }

    .share-grid--icons {
        flex-direction: row;
    }

    .cookie-banner__card {
        padding: 18px;
    }

    .cookie-banner__content {
        gap: 14px;
    }
}

/* Reading, navigation, and progressive enhancement. */
[hidden] { display: none !important; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 100;
    padding: 12px 18px;
    border-radius: 12px;
    color: var(--text);
    background: var(--surface-strong);
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
#main-content:focus { outline: none; }
.search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    background: var(--surface-strong);
    font: inherit;
    cursor: pointer;
}
.search-toggle svg { width: 20px; height: 20px; }
.button-primary {
    background: linear-gradient(180deg, #1f69e7, #1552c0);
    color: #fff;
}
.lead-story__content h2 {
    margin: 0 0 18px;
    font-size: clamp(1.7rem, 2.5vw, 2.6rem);
    line-height: 1.14;
    letter-spacing: -0.035em;
}
.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.section-heading h2 { margin: 0; }
.topic-list { display: grid; gap: 10px; }
.topic-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    font-weight: 650;
}
.topic-link:hover { color: var(--blue-deep); border-color: var(--line-strong); }
.topic-link__count { color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.topics-empty, .rail-note { color: var(--muted); font-size: 0.95rem; }
.empty-state {
    grid-column: 1 / -1;
    padding: clamp(24px, 5vw, 60px);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.empty-state h2 { margin-top: 0; }
.empty-state p { max-width: 62ch; color: var(--muted); }
.post-card { grid-template-rows: auto 1fr; }
.post-card__media { min-height: 0; aspect-ratio: 16 / 10; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__content h3 { overflow-wrap: anywhere; }
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--muted);
}
.breadcrumbs a:hover { color: var(--blue-deep); }
.article-hero__copy { max-width: 1000px; }
.article-hero h1 { line-height: 1.08; overflow-wrap: anywhere; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.9rem; }
.article-image { max-height: none; margin: 0; overflow: hidden; }
.article-image > img { width: 100%; max-height: 520px; aspect-ratio: 21 / 9; object-fit: cover; }
.article-image__caption { padding: 14px 20px; font-size: 0.9rem; color: var(--muted); background: var(--surface-strong); }
.article-layout--reading { grid-template-columns: minmax(0, 800px); gap: 28px; }
.article-layout--reading.has-toc { grid-template-columns: minmax(0, 800px) 260px; }
.article-body { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.article-body > * { min-width: 0; }
.article-card { padding: clamp(22px, 3vw, 36px); min-width: 0; max-width: 100%; }
.article-content { font-size: 1.1rem; line-height: 1.8; overflow-wrap: break-word; }
.article-content > p, .article-content > ul, .article-content > ol, .article-content > h2,
.article-content > h3, .article-content > h4, .article-content > blockquote {
    max-width: 72ch;
    margin-left: auto;
    margin-right: auto;
}
.article-content h2 { font-size: 1.8rem; line-height: 1.25; margin-top: 1.8em; }
.article-content h3 { font-size: 1.4rem; line-height: 1.3; margin-top: 1.5em; }
.article-content :is(h2, h3, h4) { scroll-margin-top: 145px; }
.gh-content blockquote { background: var(--blue-soft); }
.article-content a { text-decoration: underline; text-underline-offset: 3px; }
.article-content pre { max-width: 100%; overflow-x: auto; padding: 20px; background: var(--blue-soft); border-radius: 14px; font-size: 0.9rem; }
.table-scroll { width: 100%; min-width: 0; overflow-x: auto; margin-bottom: 1.2em; border: 1px solid var(--line); border-radius: 12px; }
.article-content table { width: 100%; border-collapse: collapse; font-size: 0.95rem; text-align: left; }
.article-content th, .article-content td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-content th { background: var(--blue-soft); font-weight: 700; }
.article-content tr:last-child td { border-bottom: 0; }
.article-sidebar { display: block; position: sticky; top: 130px; }
.article-toc { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-strong); }
.article-toc h2 { margin: 0 0 16px; font-size: 1rem; }
.article-toc ol { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.article-toc a { display: block; color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.article-toc a:hover { color: var(--blue-deep); }
.article-toc__subitem { padding-left: 14px; }
.article-cta { display: grid; gap: 20px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--blue-soft); }
.article-cta h2 { margin: 0 0 12px; font-size: 1.6rem; line-height: 1.25; }
.article-cta p { margin-bottom: 0; color: var(--muted); }
.article-cta .button { justify-self: start; }
.share-title { margin: 0 0 18px; font-size: 1rem; }
.share-button { cursor: pointer; color: var(--text); }
.share-status { margin-bottom: 0; color: var(--muted); font-size: 0.9rem; }
.clipboard-fallback { position: fixed; top: 0; left: -9999px; }
.related-posts { margin-top: 16px; }
.article-body--page { max-width: 900px; margin: 0 auto; width: 100%; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
@media (max-width: 1100px) {
    .header-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .brand { grid-column: 1; grid-row: 1; }
    .header-controls { grid-column: 2; grid-row: 1; margin-left: 0; }
    .header-nav { grid-column: 1 / -1; grid-row: 2; margin-left: 0; }
    .article-layout--reading.has-toc { grid-template-columns: minmax(0, 800px); }
    .article-sidebar { position: static; grid-row: 1; }
    .article-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-content :is(h2, h3, h4) { scroll-margin-top: 205px; }
}
@media (max-width: 720px) {
    .brand-logo { max-width: 80px; height: 26px; }
    .brand-copy strong { font-size: 0.8rem; }
    .header-controls { gap: 5px; }
    .search-toggle, .theme-toggle, .menu-toggle { width: 40px; height: 42px; padding: 0; border-radius: 12px; }
    .search-toggle span { display: none; }
    .header-nav { display: block; }
    .has-menu-js .header-nav { display: none; }
    .has-menu-js .header-nav.is-open { display: block; }
    .menu-toggle { display: none; }
    .has-menu-js .menu-toggle { display: inline-flex; }
    .post-card__media { min-height: 0; }
    .lead-story__content h2 { font-size: 1.65rem; }
    .article-image { min-height: 0; }
    .article-image > img { aspect-ratio: 16 / 10; }
    .article-layout--reading, .article-layout--reading.has-toc { grid-template-columns: minmax(0, 1fr); }
    .article-toc ol { grid-template-columns: 1fr; }
    .article-content { font-size: 1.05rem; }
    .article-content :is(h2, h3, h4) { scroll-margin-top: 125px; }
    .section-heading { align-items: flex-start; }
    .article-cta { padding: 22px; }
    .article-cta .button { justify-self: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
h1, h2, h3, h4 { font-family: var(--gh-font-heading, inherit); }
.article-toc { max-height: calc(100vh - 170px); overflow-y: auto; }
@media (max-width: 1100px) { .article-toc { max-height: none; } }
