:root {
    --page-bg: #09090b;
    --page-bg-soft: rgba(24, 24, 27, 0.76);
    --page-card: rgba(24, 24, 27, 0.64);
    --page-card-strong: rgba(24, 24, 27, 0.82);
    --page-border: rgba(255, 255, 255, 0.09);
    --page-copy: #d8e3ef;
    --page-copy-soft: #bfccdc;
    --page-title: #f8fafc;
    --page-accent: #3b82f6;
    --page-accent-soft: rgba(59, 130, 246, 0.18);
    --page-shadow: 0 24px 80px rgba(2, 6, 23, 0.38);
    --selection-bg: rgba(37, 99, 235, 0.4);
    --selection-color: #eff6ff;
}

::selection,
html::selection,
body::selection,
body *::selection {
    background-color: var(--selection-bg) !important;
    color: var(--selection-color) !important;
}

html,
body {
    min-height: 100%;
    background-color: #09090b;
}

body.page-public {
    background: #09090b;
    color: var(--page-copy);
}

.page-public-shell {
    position: relative;
    isolation: isolate;
}

body.public-generated-page main p:not(.page-kicker),
body.public-generated-page main li {
    color: var(--page-copy);
}

.page-public-shell::before {
    content: none;
}

.page-main {
    position: relative;
    z-index: 1;
    padding: 7.5rem 0 5rem;
}

.page-section {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.page-stack {
    display: grid;
    gap: 1.5rem;
}

.page-shell-card {
    border: 1px solid var(--page-border);
    background: var(--page-card);
    box-shadow: var(--page-shadow);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.page-hero {
    display: grid;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 2rem;
}

.page-hero-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.18);
    background: rgba(59, 130, 246, 0.08);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #bfdbfe;
}

.page-title {
    color: var(--page-title);
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.page-title-sm {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.page-lead {
    max-width: 46rem;
    color: var(--page-copy);
    font-size: 1.05rem;
    line-height: 1.75;
}

.page-mini-copy {
    color: var(--page-copy-soft);
    font-size: 0.92rem;
    line-height: 1.65;
}

.page-highlight {
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(15, 23, 42, 0.18));
    padding: 1.2rem;
}

.page-highlight strong,
.page-highlight h3 {
    color: var(--page-title);
}

.page-grid {
    display: grid;
    gap: 1rem;
}

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

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

.surface-card {
    border-radius: 1.5rem;
    border: 1px solid var(--page-border);
    background: var(--page-card-strong);
    padding: 1.35rem;
    box-shadow: 0 22px 40px rgba(2, 6, 23, 0.22);
}

.surface-card h3,
.surface-card h4,
.surface-card strong,
.surface-card .surface-title {
    color: var(--page-title);
}

.surface-card p,
.surface-card li {
    color: var(--page-copy);
}

.surface-card .muted,
.surface-card time,
.surface-card small {
    color: var(--page-copy-soft);
}

.section-heading {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.section-heading h2 {
    color: var(--page-title);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.section-heading p {
    color: var(--page-copy-soft);
    line-height: 1.7;
}

.bullet-list {
    display: grid;
    gap: 0.75rem;
}

.bullet-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    line-height: 1.7;
}

.bullet-list li::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    margin-top: 0.58rem;
    flex: 0 0 auto;
}

.metric-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.52rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.03);
    color: var(--page-copy-soft);
    font-size: 0.84rem;
}

.metric-pill strong {
    color: var(--page-title);
}

.page-cta {
    display: grid;
    gap: 0.85rem;
    align-items: center;
}

.page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.page-link-inline {
    color: #c7d2fe;
    text-decoration: none;
    transition: color 180ms ease, opacity 180ms ease;
}

.page-link-inline:hover {
    color: #ffffff;
}

.page-prose {
    display: grid;
    gap: 1rem;
}

.page-prose h2,
.page-prose h3 {
    color: var(--page-title);
    letter-spacing: -0.04em;
}

.page-prose h2 {
    font-size: 1.55rem;
    margin-top: 0.75rem;
}

.page-prose h3 {
    font-size: 1.16rem;
    margin-top: 0.5rem;
}

.page-prose p,
.page-prose li {
    color: var(--page-copy);
    line-height: 1.85;
}

.page-prose ul {
    display: grid;
    gap: 0.75rem;
    padding-left: 1.15rem;
    list-style: disc;
}

.status-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-indicator-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    width: fit-content;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: #a7f3d0;
    font-size: 0.82rem;
    font-weight: 600;
}

.status-indicator-pill::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    animation: public-status-pulse 2.4s infinite;
}

@keyframes public-status-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.blog-list,
.timeline-list {
    display: grid;
    gap: 1rem;
}

.blog-card {
    display: grid;
    gap: 1rem;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.78rem;
    color: var(--page-copy-soft);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.blog-card a.blog-card-link {
    color: inherit;
    text-decoration: none;
}

.blog-card-link:hover .surface-title {
    color: #bfdbfe;
}

.timeline-card {
    display: grid;
    gap: 0.9rem;
}

.timeline-points {
    display: grid;
    gap: 0.7rem;
}

.timeline-points li {
    display: flex;
    gap: 0.75rem;
    line-height: 1.7;
    color: var(--page-copy);
}

.timeline-points li::before {
    content: "";
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 999px;
    background: #60a5fa;
    margin-top: 0.6rem;
    flex: 0 0 auto;
}

.post-main {
    position: relative;
    z-index: 1;
    padding: 9rem 0 5.75rem;
}

.post-hero-section {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 2.5rem;
}

.post-hero-inner {
    display: grid;
    justify-items: center;
    gap: 1.45rem;
    text-align: center;
}

.post-back-link {
    color: var(--page-copy-soft);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: color 180ms ease;
}

.post-back-link:hover,
.post-back-link:focus-visible {
    color: #ffffff;
}

.post-title {
    width: min(100%, 72rem);
    margin: 0;
    color: var(--page-title);
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.12;
}

.post-lead {
    width: min(100%, 48rem);
    margin: 0;
    color: var(--page-copy);
    font-size: 1rem;
    line-height: 1.75;
}

.post-meta {
    justify-content: center;
    gap: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.post-meta span {
    color: var(--page-copy-soft);
    font-size: 0.76rem;
    line-height: 1.3;
}

.post-meta span:first-child {
    color: var(--page-accent);
    font-weight: 700;
}

.post-meta-dot {
    opacity: 0.55;
}

.post-error,
.post-toc-card,
.post-body-section {
    width: min(980px, calc(100% - 2rem));
    margin-right: auto;
    margin-left: auto;
}

.post-toc-card {
    display: grid;
    gap: 0.9rem;
    justify-items: center;
    margin-top: 0.5rem;
    margin-bottom: 3.5rem;
    text-align: center;
}

.post-toc-card[hidden] {
    display: none;
}

.post-toc-label {
    margin: 0;
    color: var(--page-copy-soft);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.3;
    text-transform: uppercase;
}

.toc-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
}

.toc-list a {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    border-radius: 8px;
    border: 1px solid var(--page-border);
    background: rgba(255, 255, 255, 0.025);
    color: var(--page-copy-soft);
    padding: 0.42rem 0.72rem;
    text-decoration: none;
    line-height: 1.35;
    transition:
        border-color 180ms ease,
        color 180ms ease,
        background-color 180ms ease;
}

.toc-list a[data-depth="3"] {
    opacity: 0.82;
}

.toc-list a:hover {
    border-color: rgba(96, 165, 250, 0.42);
    background: rgba(59, 130, 246, 0.08);
    color: #ffffff;
}

.post-content {
    width: min(100%, 900px);
    margin: 0 auto;
}

.post-content [data-blog-post-content] {
    display: grid;
    gap: 1.75rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: var(--page-title);
    font-weight: 400;
    letter-spacing: 0;
    scroll-margin-top: 7rem;
}

.post-content h2 {
    margin: 2.4rem 0 0;
    font-size: 2rem;
    line-height: 1.05;
}

.post-content h3 {
    margin: 1.75rem 0 0;
    font-size: 1.55rem;
    line-height: 1.22;
}

.post-content h4 {
    margin: 1.25rem 0 0;
    font-size: 1.18rem;
    line-height: 1.3;
}

.post-content p,
.post-content li {
    color: var(--page-copy);
    font-size: 0.98rem;
    font-weight: 400;
    line-height: 1.72;
}

.post-content ul,
.post-content ol {
    display: grid;
    gap: 0.9rem;
    padding-left: 1.35rem;
}

.post-content ul {
    list-style: disc;
}

.post-content ol {
    list-style: decimal;
}

.post-content pre {
    overflow-x: auto;
    padding: 1.1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #020617;
}

.post-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.92em;
}

.post-content p code,
.post-content li code {
    padding: 0.15rem 0.4rem;
    border-radius: 0.4rem;
    background: rgba(148, 163, 184, 0.14);
}

.post-content a {
    color: #bfdbfe;
    text-decoration-color: rgba(191, 219, 254, 0.42);
    text-underline-offset: 0.2em;
}

.post-image {
    display: grid;
    gap: 0.8rem;
    margin: 0;
}

.post-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--page-border);
    background: rgba(255, 255, 255, 0.04);
}

.post-image figcaption {
    color: var(--page-copy-soft);
    font-size: 0.88rem;
    line-height: 1.55;
    text-align: center;
}

.skeleton-card {
    min-height: 10rem;
    animation: public-skeleton 1.4s infinite ease-in-out;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        var(--page-card);
    background-size: 220% 100%;
}

@keyframes public-skeleton {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.page-error {
    display: grid;
    gap: 0.75rem;
    padding: 1.25rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(239, 68, 68, 0.24);
    background: rgba(127, 29, 29, 0.2);
    color: #fecaca;
}

.site-footer-shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0 0 3.5rem;
}

.footer-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    padding: 1.5rem;
    border-radius: 1.75rem;
    border: 1px solid var(--page-border);
    background: rgba(8, 12, 20, 0.68);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem 1.2rem;
}

.footer-links a {
    color: var(--page-copy-soft);
    text-decoration: none;
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.mob-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: rgba(228, 228, 231, 0.6);
    flex-shrink: 0;
    padding: 0;
    transition: color 180ms ease;
}

.mob-menu-btn:hover,
.mob-menu-btn:focus-visible {
    color: rgba(228, 228, 231, 0.9);
}

.mob-menu-btn:focus-visible,
.mob-menu-close:focus-visible,
.mob-menu-link:focus-visible,
.mob-menu-secondary:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.38);
    outline-offset: 2px;
}

.mob-menu {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(9, 9, 11, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding-left: var(--v2-gutter, 24px);
    padding-right: var(--v2-gutter, 24px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 220ms ease,
        visibility 0ms linear 220ms;
}

.mob-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
        opacity 220ms ease,
        visibility 0ms linear 0ms;
}

body.mob-menu-open {
    overflow: hidden;
}

.mob-menu-header {
    height: var(--v2-nav-h, 72px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.mob-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    color: rgba(228, 228, 231, 0.45);
    flex-shrink: 0;
    padding: 0;
    transition: color 180ms ease;
}

.mob-menu-close:hover,
.mob-menu-close:focus-visible {
    color: rgba(228, 228, 231, 0.85);
}

.mob-menu-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.mob-menu-link,
.mob-menu-secondary {
    font-family: "Outfit", sans-serif;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.4;
    text-decoration: none;
    transition: color 180ms ease, border-color 180ms ease;
}

.mob-menu-link {
    display: block;
    padding: 11px 0;
    color: rgba(228, 228, 231, 0.4);
    font-size: 1.05rem;
    opacity: 0;
    transform: translateY(8px);
    transition:
        color 200ms ease,
        opacity 320ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mob-menu.is-open .mob-menu-link {
    opacity: 1;
    transform: translateY(0);
}

.mob-menu.is-open .mob-menu-link:nth-child(1) { transition-delay: 40ms; }
.mob-menu.is-open .mob-menu-link:nth-child(2) { transition-delay: 70ms; }
.mob-menu.is-open .mob-menu-link:nth-child(3) { transition-delay: 100ms; }
.mob-menu.is-open .mob-menu-link:nth-child(4) { transition-delay: 130ms; }

.mob-menu-secondary {
    display: block;
    text-align: center;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(228, 228, 231, 0.4);
    font-size: 0.875rem;
}

.mob-menu-link:hover,
.mob-menu-link:focus-visible {
    color: rgba(255, 255, 255, 0.85);
}

.mob-menu-secondary:hover,
.mob-menu-secondary:focus-visible {
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.15);
}

.mob-menu-footer {
    padding-bottom: 36px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(6px);
    transition:
        opacity 320ms cubic-bezier(0.16, 1, 0.3, 1) 160ms,
        transform 320ms cubic-bezier(0.16, 1, 0.3, 1) 160ms;
}

.mob-menu.is-open .mob-menu-footer {
    opacity: 1;
    transform: translateY(0);
}

html[data-theme="light"] {
    background-color: #f4f7fb;
    --selection-bg: rgba(59, 130, 246, 0.24);
    --selection-color: #0f172a;
}

html[data-theme="light"] body.page-public {
    background: #f4f7fb;
    color: #1e293b;
}

html[data-theme="light"] .page-public-shell::before {
    content: none;
}

html[data-theme="light"] .page-shell-card,
html[data-theme="light"] .surface-card,
html[data-theme="light"] .footer-grid {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 40px rgba(148, 163, 184, 0.18);
}

html[data-theme="light"] .page-title,
html[data-theme="light"] .surface-card h3,
html[data-theme="light"] .surface-card h4,
html[data-theme="light"] .surface-card strong,
html[data-theme="light"] .section-heading h2,
html[data-theme="light"] .page-prose h2,
html[data-theme="light"] .page-prose h3,
html[data-theme="light"] .post-content h2,
html[data-theme="light"] .post-content h3,
html[data-theme="light"] .post-content h4 {
    color: #0f172a;
}

html[data-theme="light"] .page-lead,
html[data-theme="light"] .surface-card p,
html[data-theme="light"] .page-prose p,
html[data-theme="light"] .page-prose li,
html[data-theme="light"] .post-content p,
html[data-theme="light"] .post-content li {
    color: #1e293b;
}

html[data-theme="light"] .page-mini-copy,
html[data-theme="light"] .section-heading p,
html[data-theme="light"] .metric-pill,
html[data-theme="light"] .footer-links a,
html[data-theme="light"] .toc-list a,
html[data-theme="light"] .blog-meta,
html[data-theme="light"] .muted {
    color: #475569;
}

html[data-theme="light"] .page-kicker {
    border-color: rgba(59, 130, 246, 0.18);
    background: rgba(59, 130, 246, 0.08);
    color: #1d4ed8;
}

html[data-theme="light"] .page-highlight,
html[data-theme="light"] .metric-pill {
    border-color: rgba(15, 23, 42, 0.07);
    background: rgba(241, 245, 249, 0.85);
}

html[data-theme="light"] .page-link-inline {
    color: #1d4ed8;
}

html[data-theme="light"] .post-content pre {
    border-color: rgba(15, 23, 42, 0.08);
    background: #eff6ff;
}

html[data-theme="light"] .post-title {
    color: #0f172a;
}

html[data-theme="light"] .post-lead,
html[data-theme="light"] .post-content p,
html[data-theme="light"] .post-content li {
    color: #1e293b;
}

html[data-theme="light"] .post-back-link,
html[data-theme="light"] .post-toc-label,
html[data-theme="light"] .post-image figcaption {
    color: #475569;
}

html[data-theme="light"] .toc-list a,
html[data-theme="light"] .post-image img {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.76);
}

html[data-theme="light"] .post-meta span,
html[data-theme="light"] .toc-list a {
    color: #475569;
}

html[data-theme="light"] .post-meta span:first-child {
    color: #1d4ed8;
}

html[data-theme="light"] .toc-list a:hover {
    border-color: rgba(37, 99, 235, 0.28);
    background: rgba(59, 130, 246, 0.08);
    color: #1d4ed8;
}

html[data-theme="light"] .post-content a {
    color: #1d4ed8;
    text-decoration-color: rgba(37, 99, 235, 0.34);
}

html[data-theme="light"] .mob-menu {
    background: rgba(248, 250, 252, 0.97);
}

html[data-theme="light"] .mob-menu-btn,
html[data-theme="light"] .mob-menu-close {
    color: rgba(15, 23, 42, 0.5);
}

html[data-theme="light"] .mob-menu-btn:hover,
html[data-theme="light"] .mob-menu-btn:focus-visible,
html[data-theme="light"] .mob-menu-close:hover,
html[data-theme="light"] .mob-menu-close:focus-visible {
    color: rgba(15, 23, 42, 0.85);
}

html[data-theme="light"] .mob-menu-link {
    color: rgba(15, 23, 42, 0.35);
}

html[data-theme="light"] .mob-menu-link:hover,
html[data-theme="light"] .mob-menu-link:focus-visible {
    color: rgba(15, 23, 42, 0.85);
}

html[data-theme="light"] .mob-menu-secondary {
    border-color: rgba(15, 23, 42, 0.12);
    color: rgba(15, 23, 42, 0.4);
}

html[data-theme="light"] .mob-menu-secondary:hover,
html[data-theme="light"] .mob-menu-secondary:focus-visible {
    color: rgba(15, 23, 42, 0.75);
    border-color: rgba(15, 23, 42, 0.22);
}

@media (max-width: 960px) {
    .page-hero-grid,
    .page-grid-3,
    .status-grid,
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-main {
        padding-top: 6.5rem;
    }
}

@media (min-width: 760px) {
    .post-title {
        font-size: 4rem;
    }

    .post-content h2 {
        font-size: 2.75rem;
    }

    .post-content h3 {
        font-size: 1.85rem;
    }

    .post-content p,
    .post-content li {
        font-size: 0.98rem;
    }
}

@media (min-width: 1180px) {
    .post-title {
        font-size: 4.55rem;
    }
}

@media (max-width: 720px) {
    .page-grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-hero,
    .surface-card,
    .footer-grid {
        padding: 1.25rem;
        border-radius: 1.35rem;
    }

    .page-title {
        font-size: clamp(2.2rem, 10vw, 3.4rem);
    }

    .post-main {
        padding-top: 7.2rem;
    }

    .post-hero-section {
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }

    .post-title {
        font-size: 2.25rem;
        line-height: 1.14;
    }

    .post-toc-card {
        margin-bottom: 2.4rem;
    }

    .toc-list {
        justify-content: flex-start;
    }

    .post-content [data-blog-post-content] {
        gap: 1.35rem;
    }

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

    .post-content h3 {
        font-size: 1.35rem;
    }

    .post-content p,
    .post-content li {
        font-size: 0.98rem;
        line-height: 1.72;
    }
}

@media (max-width: 1024px) {
    .public-generated-page #auth-guest,
    .public-generated-page #auth-user,
    .public-generated-page .locale-switcher-host {
        display: none !important;
    }

    .mob-menu-btn {
        display: inline-flex;
    }
}

@media (max-width: 639px) {
    .site-nav {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* Light mode: override hardcoded Tailwind color utilities on generated pages */
html[data-theme="light"] body.public-generated-page {
    color: #1e293b;
}

html[data-theme="light"] body.public-generated-page main h1,
html[data-theme="light"] body.public-generated-page main h2,
html[data-theme="light"] body.public-generated-page main h3 {
    color: #0f172a;
}

html[data-theme="light"] body.public-generated-page main p:not(.page-kicker) {
    color: #1e293b;
}

html[data-theme="light"] body.public-generated-page main li {
    color: #1e293b;
}

html[data-theme="light"] body.public-generated-page main .text-white\/10 {
    color: rgba(0, 0, 0, 0.07);
}

html[data-theme="light"] body.public-generated-page main a[class*="border-white"] {
    border-color: rgba(0, 0, 0, 0.12);
    color: #334155;
}

html[data-theme="light"] body.public-generated-page main a[class*="border-white"]:hover {
    border-color: rgba(0, 0, 0, 0.22);
    color: #0f172a;
}

html[data-theme="light"] body.public-generated-page .site-footer a {
    color: #334155;
}

html[data-theme="light"] body.public-generated-page .site-footer a:hover {
    color: #0f172a;
}

html[data-theme="light"] body.public-generated-page .site-footer span[class*="text-zinc"] {
    color: #64748b;
}

body.blog-index-page {
    --blog-card: rgba(17, 24, 39, 0.78);
    --blog-card-hover: rgba(20, 28, 42, 0.9);
    --blog-border: rgba(255, 255, 255, 0.09);
    --blog-border-strong: rgba(96, 165, 250, 0.36);
    --blog-line: rgba(255, 255, 255, 0.08);
    --blog-title: #f8fafc;
    --blog-copy: #cbd5e1;
    --blog-muted: #94a3b8;
    --blog-accent: #60a5fa;
    --blog-accent-strong: #3b82f6;
    --blog-shadow: 0 24px 56px rgba(2, 6, 23, 0.3);
}

body.blog-index-page.page-public {
    background: #09090b;
}

body.blog-index-page.page-public-shell::before {
    content: none;
}

.blog-dynamic-bg {
    display: none;
}

.blog-dynamic-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(9, 9, 11, 0.18) 0%, rgba(9, 9, 11, 0.72) 74%, #09090b 100%);
}

.blog-grid-overlay {
    position: absolute;
    inset: 0;
    height: auto;
    opacity: 0.42;
    mask-image: linear-gradient(to bottom, black 0%, black 32%, transparent 86%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 32%, transparent 86%);
}

.blog-orb {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    transform: translateZ(0);
    will-change: transform;
}

.blog-orb-one {
    top: -18%;
    right: -12%;
    width: min(58rem, 64vw);
    height: min(58rem, 64vw);
    background: radial-gradient(ellipse at 50% 50%, rgba(37, 99, 235, 0.18) 0%, rgba(59, 130, 246, 0.06) 48%, transparent 74%);
    animation: blogOrbOne 18s ease-in-out infinite alternate;
}

.blog-orb-two {
    bottom: 8%;
    left: -18%;
    width: min(48rem, 54vw);
    height: min(48rem, 54vw);
    background: radial-gradient(ellipse at 50% 50%, rgba(14, 165, 233, 0.13) 0%, rgba(59, 130, 246, 0.05) 44%, transparent 72%);
    animation: blogOrbTwo 16s ease-in-out infinite alternate;
}

.blog-orb-three {
    top: 34%;
    left: 52%;
    width: min(34rem, 40vw);
    height: min(34rem, 40vw);
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.07) 0%, rgba(96, 165, 250, 0.04) 42%, transparent 72%);
    animation: blogOrbThree 12s ease-in-out infinite alternate;
}

@keyframes blogOrbOne {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-4%, 7%, 0) scale(1.08); }
}

@keyframes blogOrbTwo {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(8%, -5%, 0) scale(1.06); }
}

@keyframes blogOrbThree {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-6%, 4%, 0) scale(1.12); }
}

.blog-index-main,
body.blog-index-page .site-footer {
    position: relative;
    z-index: 1;
}

.blog-index-main {
    padding: 8.5rem 0 5.75rem;
}

.blog-index-section {
    width: min(1080px, calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    gap: 2.75rem;
}

.blog-hero {
    width: min(100%, 64rem);
    margin: 0 auto;
    text-align: center;
    display: grid;
    gap: 1.15rem;
}

.blog-hero-title {
    margin: 0;
    color: var(--blog-title);
    font-size: 2.15rem;
    line-height: 1.12;
    letter-spacing: 0;
    font-weight: 400;
}

.blog-hero-title > span {
    display: block;
}

.blog-title-line {
    display: block;
}

.blog-hero-title em {
    font-style: italic;
    font-weight: 400;
    white-space: nowrap;
}

body.blog-index-page.public-generated-page main p.blog-hero-lead {
    width: min(100%, 40rem);
    margin: 0 auto;
    color: var(--blog-copy);
    font-size: 1rem;
    line-height: 1.7;
}

.blog-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

.blog-entry-card {
    display: block;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
    border-radius: 8px;
}

.blog-entry-card:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.78);
    outline-offset: 4px;
}

.blog-entry {
    position: relative;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    min-height: 19.5rem;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--blog-border);
    background: var(--blog-card);
    padding: 1.45rem;
    box-shadow: var(--blog-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition:
        border-color 220ms var(--ease-out-expo),
        background-color 220ms var(--ease-out-expo),
        box-shadow 220ms var(--ease-out-expo);
}

.blog-entry-card:hover .blog-entry {
    border-color: var(--blog-border-strong);
    background: var(--blog-card-hover);
}

.blog-entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem;
    color: var(--blog-muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    line-height: 1.25;
    text-transform: uppercase;
}

.blog-entry-eyebrow {
    max-width: min(100%, 12rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--blog-accent);
    font-weight: 700;
}

.blog-entry-date,
.blog-entry-readtime {
    flex: 0 0 auto;
    white-space: nowrap;
}

.blog-entry-meta-dot {
    opacity: 0.55;
}

body.blog-index-page.public-generated-page main h2.blog-entry-title {
    margin: 1.1rem 0 0;
    color: var(--blog-title);
    font-weight: 400;
    font-size: 1.32rem;
    letter-spacing: 0;
    line-height: 1.28;
}

body.blog-index-page.public-generated-page main p.blog-entry-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 0.85rem 0 0;
    color: var(--blog-copy);
    font-size: 0.9rem;
    line-height: 1.62;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.blog-entry-cta {
    align-self: end;
    margin-top: 1.45rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--blog-line);
    color: var(--blog-accent);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.blog-entry-arrow {
    display: inline-block;
    margin-left: 0.18rem;
    transition: transform 180ms ease;
}

.blog-entry-card:hover .blog-entry-arrow {
    transform: translateX(2px);
}

.blog-entry-skeleton {
    min-height: 19.5rem;
    animation: public-skeleton 1.4s infinite ease-in-out;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        var(--blog-card);
    background-size: 220% 100%;
}

.blog-empty-state {
    grid-column: 1 / -1;
    border-radius: 8px;
    border: 1px solid var(--blog-border);
    background: var(--blog-card);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--blog-shadow);
}

.blog-empty-title {
    margin: 0;
    color: var(--blog-title);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.35;
}

body.blog-index-page.public-generated-page main p.blog-empty-copy {
    width: min(100%, 34rem);
    margin: 0.7rem auto 0;
    color: var(--blog-copy);
    line-height: 1.65;
}

@media (min-width: 720px) {
    .blog-index-section {
        width: min(1080px, calc(100% - 3rem));
        gap: 3rem;
    }

    .blog-hero-title {
        font-size: 3rem;
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (min-width: 1040px) {
    .blog-index-main {
        padding-top: 9.25rem;
    }

    .blog-hero-title {
        font-size: 3.5rem;
    }

    .blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.45rem;
    }

    .blog-entry,
    .blog-entry-skeleton {
        min-height: 21rem;
    }
}

@media (max-width: 520px) {
    .blog-index-main {
        padding-top: 7.35rem;
        padding-bottom: 4.25rem;
    }

    .blog-index-section {
        width: min(1080px, calc(100% - 1.25rem));
        gap: 2rem;
    }

    .blog-hero {
        gap: 0.95rem;
    }

    .blog-hero-title {
        font-size: 2rem;
        line-height: 1.12;
    }

    body.blog-index-page.public-generated-page main p.blog-hero-lead {
        font-size: 0.96rem;
        line-height: 1.65;
    }

    .blog-entry {
        min-height: 0;
        padding: 1.25rem;
    }

    .blog-entry-meta {
        gap: 0.35rem;
    }

    .blog-entry-eyebrow {
        max-width: 11.5rem;
    }
}

@media (max-width: 360px) {
    .blog-hero-title {
        font-size: 1.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-orb,
    .blog-entry-skeleton {
        animation: none;
    }

    .blog-entry,
    .blog-entry-arrow {
        transition: none;
    }
}

html[data-theme="light"] body.blog-index-page {
    --blog-card: rgba(255, 255, 255, 0.9);
    --blog-card-hover: #ffffff;
    --blog-border: rgba(15, 23, 42, 0.08);
    --blog-border-strong: rgba(59, 130, 246, 0.42);
    --blog-line: rgba(15, 23, 42, 0.08);
    --blog-title: #111827;
    --blog-copy: #4b5563;
    --blog-muted: #64748b;
    --blog-accent: #1d4ed8;
    --blog-accent-strong: #2563eb;
    --blog-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] body.blog-index-page.page-public {
    background: #f4f7fb;
}

html[data-theme="light"] body.blog-index-page.page-public-shell::before {
    content: none;
}

html[data-theme="light"] .blog-dynamic-bg::after {
    background:
        linear-gradient(180deg, rgba(248, 251, 255, 0.1) 0%, rgba(244, 247, 251, 0.62) 74%, #f4f7fb 100%);
}

/* ─── Changelog ──────────────────────────────────────── */

.cl-section {
    width: min(980px, calc(100% - 4rem));
    margin: 0 auto;
    padding-top: 4rem;
    padding-bottom: 5rem;
}

.cl-page-title {
    margin-bottom: 2.5rem;
}

.cl-entry {
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 3.5rem;
    padding: 3rem 0;
    border-top: 1px solid var(--page-border);
}

.cl-entry-side {
    min-width: 0;
}

.cl-entry-sticky {
    position: sticky;
    top: calc(var(--v2-nav-h, 72px) + 2rem);
    display: grid;
    gap: 0.6rem;
    justify-items: start;
}

.cl-entry-title {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.22;
    color: var(--page-title);
}

.cl-entry-time {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--page-copy-soft);
}

.cl-entry-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.2rem;
}

.cl-entry-ver {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--page-copy-soft);
    opacity: 0.75;
}

.cl-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--page-border);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--page-copy-soft);
}

.cl-chip-current {
    border-color: rgba(96, 165, 250, 0.45);
    color: #60a5fa;
}

.cl-entry-body {
    display: grid;
    gap: 1.35rem;
    align-content: start;
    min-width: 0;
}

.cl-entry-summary {
    font-size: 0.98rem;
    line-height: 1.78;
    color: var(--page-copy);
}

.cl-highlights {
    display: grid;
    gap: 0.6rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cl-highlights li {
    display: flex;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--page-copy);
}

.cl-highlights li::before {
    content: "";
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.5);
    margin-top: 0.6rem;
    flex-shrink: 0;
}

.cl-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--page-border);
}

.cl-page-btn {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.7rem;
    border-radius: 0.6rem;
    border: 1px solid transparent;
    background: transparent;
    color: var(--page-copy-soft);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.cl-page-btn:hover:not(:disabled):not(.cl-page-active) {
    background: rgba(255, 255, 255, 0.045);
    color: var(--page-title);
}

.cl-page-btn:focus-visible {
    border-color: rgba(96, 165, 250, 0.6);
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.18);
}

.cl-page-active {
    border-color: var(--page-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--page-title);
    cursor: default;
}

.cl-page-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.cl-entry-skeleton {
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 3.5rem;
    padding: 3rem 0;
    border-top: 1px solid var(--page-border);
}

.cl-entry-skeleton span {
    display: block;
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.04);
    animation: public-skeleton 1.4s infinite ease-in-out;
}

.cl-entry-skeleton span:first-child {
    height: 3.4rem;
}

.cl-entry-skeleton span:last-child {
    height: 7rem;
}

.cl-empty {
    padding: 2.5rem 0;
    color: var(--page-copy-soft);
}

.cl-empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--page-title);
    margin-bottom: 0.5rem;
}

/* Changelog light theme */
html[data-theme="light"] .cl-entry,
html[data-theme="light"] .cl-entry-skeleton,
html[data-theme="light"] .cl-pagination {
    border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .cl-entry-title,
html[data-theme="light"] .cl-empty-title {
    color: #0f172a;
}

html[data-theme="light"] .cl-entry-time,
html[data-theme="light"] .cl-entry-ver,
html[data-theme="light"] .cl-empty {
    color: #64748b;
}

html[data-theme="light"] .cl-entry-summary,
html[data-theme="light"] .cl-highlights li {
    color: #1e293b;
}

html[data-theme="light"] .cl-highlights li::before {
    background: rgba(37, 99, 235, 0.45);
}

html[data-theme="light"] .cl-chip {
    border-color: rgba(15, 23, 42, 0.14);
    color: #64748b;
}

html[data-theme="light"] .cl-chip-current {
    border-color: rgba(37, 99, 235, 0.4);
    color: #2563eb;
}

html[data-theme="light"] .cl-page-btn {
    color: #64748b;
}

html[data-theme="light"] .cl-page-btn:hover:not(:disabled):not(.cl-page-active) {
    background: rgba(15, 23, 42, 0.04);
    color: #0f172a;
}

html[data-theme="light"] .cl-page-btn:focus-visible {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

html[data-theme="light"] .cl-page-active {
    border-color: rgba(15, 23, 42, 0.14);
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
}

html[data-theme="light"] .cl-entry-skeleton span {
    background: rgba(15, 23, 42, 0.06);
}

@media (max-width: 720px) {
    .cl-section {
        width: min(740px, calc(100% - 3rem));
        padding-top: 3rem;
        padding-bottom: 4rem;
    }

    .cl-page-title {
        margin-bottom: 2rem;
    }

    .cl-entry,
    .cl-entry-skeleton {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 2.25rem 0;
    }

    .cl-entry-sticky {
        position: static;
        gap: 0.45rem;
    }

    .cl-entry-title {
        font-size: 1.3rem;
    }

    .cl-entry-skeleton span:first-child {
        height: 2.6rem;
    }

    .cl-entry-skeleton span:last-child {
        height: 5.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cl-page-btn {
        transition: none;
    }

    .cl-entry-skeleton span {
        animation: none;
    }
}

html[data-theme="light"] .blog-orb-one {
    background: radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.18) 0%, rgba(147, 197, 253, 0.12) 48%, transparent 74%);
}

html[data-theme="light"] .blog-orb-two {
    background: radial-gradient(ellipse at 50% 50%, rgba(14, 165, 233, 0.14) 0%, rgba(96, 165, 250, 0.08) 44%, transparent 72%);
}

html[data-theme="light"] .blog-orb-three {
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.82) 0%, rgba(96, 165, 250, 0.08) 42%, transparent 72%);
}

html[data-theme="light"] body.blog-index-page.public-generated-page main h1.blog-hero-title,
html[data-theme="light"] body.blog-index-page.public-generated-page main h2.blog-entry-title,
html[data-theme="light"] body.blog-index-page.public-generated-page main .blog-empty-title {
    color: var(--blog-title);
}

html[data-theme="light"] body.blog-index-page.public-generated-page main p.blog-hero-lead,
html[data-theme="light"] body.blog-index-page.public-generated-page main p.blog-entry-excerpt,
html[data-theme="light"] body.blog-index-page.public-generated-page main p.blog-empty-copy {
    color: var(--blog-copy);
}
