/*
 * Aochuang Main CSS
 * Content-area design system for Gutenberg pages and future page builds.
 * This file is intentionally not enqueued yet.
 * Site chrome styles are intentionally excluded.
 */

/* 1. Design tokens */
:root {
    --ac-bg: #050505;
    --ac-bg-soft: #0a0a0a;
    --ac-surface: #111111;
    --ac-surface-2: #151515;
    --ac-card: rgba(255, 255, 255, 0.03);
    --ac-card-strong: rgba(255, 255, 255, 0.06);
    --ac-border: rgba(255, 255, 255, 0.08);
    --ac-border-strong: rgba(255, 255, 255, 0.14);
    --ac-text: #ffffff;
    --ac-text-soft: #d8d8d8;
    --ac-muted: #a3a3a3;
    --ac-subtle: #666666;
    --ac-accent: #F23115;
    --ac-accent-hover: #ff4125;
    --ac-accent-soft: rgba(242, 49, 21, 0.12);
    --ac-accent-border: rgba(242, 49, 21, 0.38);
    --ac-accent-glow: rgba(242, 49, 21, 0.28);
    --ac-success: #24c46b;
    --ac-success-soft: rgba(36, 196, 107, 0.14);
    --ac-font: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ac-radius-sm: 6px;
    --ac-radius-md: 8px;
    --ac-radius-lg: 12px;
    --ac-radius-xl: 18px;
    --ac-radius-pill: 999px;
    --ac-shadow-card: 0 18px 44px rgba(0, 0, 0, 0.36);
    --ac-shadow-accent: 0 18px 42px rgba(242, 49, 21, 0.18);
    --ac-container: 1400px;
    --ac-container-narrow: 1040px;
    --ac-section-y: 96px;
    --ac-section-y-mobile: 64px;
}

/* 2. Page shell for Gutenberg content */
.ac-page {
    min-height: 100vh;
    background: var(--ac-bg);
    color: var(--ac-text);
    font-family: var(--ac-font);
    overflow-x: clip;
}

.ac-page *,
.ac-page *::before,
.ac-page *::after {
    box-sizing: border-box;
}

.ac-page a {
    color: inherit;
    text-decoration: none;
}

.ac-page img,
.ac-page video,
.ac-page svg {
    max-width: 100%;
}

.ac-page img,
.ac-page video {
    height: auto;
    display: block;
}

.ac-page p {
    margin: 0;
    color: var(--ac-muted);
    line-height: 1.7;
}

/* 3. Layout primitives */
.ac-section {
    position: relative;
    padding: var(--ac-section-y) 24px;
    background: var(--ac-bg);
}

.ac-section-soft {
    background: var(--ac-bg-soft);
}

.ac-section-surface {
    background: linear-gradient(180deg, var(--ac-bg) 0%, var(--ac-surface) 100%);
}

.ac-section-accent-glow {
    overflow: hidden;
}

.ac-section-accent-glow::before {
    content: '';
    position: absolute;
    inset: auto -10% 12% auto;
    width: min(520px, 52vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 49, 21, 0.16), transparent 66%);
    pointer-events: none;
}

.ac-container {
    position: relative;
    z-index: 1;
    width: min(100%, var(--ac-container));
    margin: 0 auto;
}

.ac-container-narrow {
    width: min(100%, var(--ac-container-narrow));
    margin: 0 auto;
}

.ac-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ac-stack-sm {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ac-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ac-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.ac-grid {
    display: grid;
    gap: 24px;
}

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

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

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

.ac-split {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: center;
}

.ac-split-reverse {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

/* 4. Typography */
.ac-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--ac-accent);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ac-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ac-accent);
    box-shadow: 0 0 18px var(--ac-accent-glow);
}

.ac-kicker {
    display: inline-flex;
    width: fit-content;
    color: var(--ac-muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ac-title {
    margin: 0;
    color: var(--ac-text);
    font-size: clamp(34px, 4vw, 58px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}

.ac-title-xl {
    margin: 0;
    color: var(--ac-text);
    font-size: clamp(42px, 5.6vw, 84px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: 0;
}

.ac-title-sm {
    margin: 0;
    color: var(--ac-text);
    font-size: clamp(26px, 2.6vw, 40px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: 0;
}

.ac-card-title {
    margin: 0;
    color: var(--ac-text);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: 0;
}

.ac-lead {
    max-width: 760px;
    color: var(--ac-muted);
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.72;
}

.ac-text-muted {
    color: var(--ac-muted);
}

.ac-text-subtle {
    color: var(--ac-subtle);
}

.ac-text-accent {
    color: var(--ac-accent);
}

.ac-gradient-text {
    background: linear-gradient(180deg, #ffffff 0%, #a3a3a3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 5. Buttons and inline actions */
.ac-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.ac-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: var(--ac-radius-pill);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ac-btn:hover,
.ac-btn:focus-visible {
    transform: translateY(-1px);
}

.ac-btn-primary {
    background: var(--ac-accent);
    border-color: var(--ac-accent);
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(242, 49, 21, 0.24);
}

.ac-btn-primary:hover,
.ac-btn-primary:focus-visible {
    background: var(--ac-accent-hover);
    border-color: var(--ac-accent-hover);
    color: #ffffff;
    box-shadow: 0 22px 46px rgba(242, 49, 21, 0.34);
}

.ac-btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--ac-border-strong);
    color: var(--ac-text);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.ac-btn-outline:hover,
.ac-btn-outline:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.24);
    color: var(--ac-text);
}

.ac-btn-ghost {
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ac-text);
}

.ac-btn-ghost:hover,
.ac-btn-ghost:focus-visible {
    color: var(--ac-accent);
    transform: none;
}

/* 6. Cards and panels */
.ac-panel,
.ac-card {
    position: relative;
    border: 1px solid var(--ac-border);
    background: var(--ac-card);
    border-radius: var(--ac-radius-md);
    box-shadow: none;
}

.ac-panel {
    padding: clamp(28px, 4vw, 48px);
}

.ac-card {
    padding: 28px;
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ac-card:hover {
    border-color: var(--ac-accent-border);
    background: rgba(255, 255, 255, 0.045);
    transform: translateY(-3px);
    box-shadow: var(--ac-shadow-card);
}

.ac-glass {
    border: 1px solid var(--ac-border);
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.ac-card-media {
    position: relative;
    overflow: hidden;
    border-radius: var(--ac-radius-md);
    border: 1px solid var(--ac-border);
    background: var(--ac-surface);
    aspect-ratio: 4 / 3;
}

.ac-card-media img,
.ac-card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.25s ease;
}

.ac-card:hover .ac-card-media img,
.ac-card:hover .ac-card-media video {
    transform: scale(1.035);
}

.ac-card-meta {
    display: inline-flex;
    width: fit-content;
    color: var(--ac-accent);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ac-card-copy {
    color: var(--ac-muted);
    font-size: 14px;
    line-height: 1.68;
}

/* 7. Product and application grids */
.ac-product-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    gap: 18px;
}

.ac-product-card .ac-card-media {
    margin: -12px -12px 4px;
}

.ac-product-card-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--ac-border);
}

.ac-spec-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ac-spec-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--ac-muted);
    font-size: 14px;
    line-height: 1.55;
}

.ac-spec-list li::before {
    content: '';
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--ac-accent);
    box-shadow: 0 0 12px var(--ac-accent-glow);
}

.ac-category-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ac-border);
}

.ac-category-list a,
.ac-category-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 58px;
    border-bottom: 1px solid var(--ac-border);
    color: var(--ac-text);
    font-size: 16px;
    font-weight: 650;
    transition: color 0.18s ease, padding 0.18s ease, border-color 0.18s ease;
}

.ac-category-list a:hover {
    padding-left: 8px;
    border-color: var(--ac-accent-border);
    color: var(--ac-accent);
}

/* 8. Trust, stats, and proof */
.ac-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.ac-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-pill);
    background: rgba(255, 255, 255, 0.025);
    color: var(--ac-muted);
    font-size: 13px;
    font-weight: 650;
}

.ac-trust-pill::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ac-accent);
}

.ac-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ac-stat {
    padding: 24px;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-md);
    background: rgba(255, 255, 255, 0.025);
}

.ac-stat-value {
    display: block;
    color: var(--ac-text);
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 800;
    line-height: 1;
}

.ac-stat-label {
    display: block;
    margin-top: 10px;
    color: var(--ac-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* 9. Process and timeline */
.ac-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.ac-process-step {
    position: relative;
    padding: 28px;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-md);
    background: var(--ac-card);
}

.ac-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 22px;
    border: 1px solid var(--ac-accent-border);
    border-radius: 50%;
    background: var(--ac-accent-soft);
    color: var(--ac-accent);
    font-size: 13px;
    font-weight: 800;
}

.ac-timeline {
    display: grid;
    gap: 0;
    border-left: 1px solid var(--ac-border);
    margin-left: 18px;
}

.ac-timeline-item {
    position: relative;
    padding: 0 0 34px 34px;
}

.ac-timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 2px;
    width: 13px;
    height: 13px;
    border: 2px solid var(--ac-accent);
    border-radius: 50%;
    background: var(--ac-bg);
}

/* 10. Media blocks */
.ac-media-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-md);
    background: var(--ac-surface);
    box-shadow: var(--ac-shadow-card);
}

.ac-media-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0), rgba(5, 5, 5, 0.32));
    pointer-events: none;
}

.ac-media-frame img,
.ac-media-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ac-ratio-video {
    aspect-ratio: 16 / 9;
}

.ac-ratio-square {
    aspect-ratio: 1;
}

.ac-ratio-machine {
    aspect-ratio: 4 / 3;
}

/* 11. Tables and comparison blocks */
.ac-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-md);
    background: rgba(255, 255, 255, 0.025);
}

.ac-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    color: var(--ac-muted);
    font-size: 14px;
}

.ac-table th,
.ac-table td {
    padding: 18px;
    border-bottom: 1px solid var(--ac-border);
    text-align: left;
    vertical-align: top;
}

.ac-table th {
    color: var(--ac-text);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.04);
}

.ac-table tr:last-child td {
    border-bottom: 0;
}

/* 12. FAQ and editorial content */
.ac-faq-list {
    display: grid;
    gap: 12px;
}

.ac-faq-item {
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-md);
    background: rgba(255, 255, 255, 0.025);
    overflow: hidden;
}

.ac-faq-question {
    margin: 0;
    padding: 20px 22px;
    color: var(--ac-text);
    font-size: 17px;
    font-weight: 750;
    line-height: 1.35;
}

.ac-faq-answer {
    padding: 0 22px 22px;
    color: var(--ac-muted);
    font-size: 15px;
    line-height: 1.72;
}

.ac-richtext {
    color: var(--ac-muted);
    font-size: 16px;
    line-height: 1.78;
}

.ac-richtext h2,
.ac-richtext h3,
.ac-richtext h4 {
    color: var(--ac-text);
    line-height: 1.2;
    letter-spacing: 0;
}

.ac-richtext h2 {
    margin: 0 0 20px;
    font-size: clamp(30px, 3vw, 44px);
}

.ac-richtext h3 {
    margin: 34px 0 14px;
    font-size: clamp(22px, 2vw, 30px);
}

.ac-richtext p,
.ac-richtext ul,
.ac-richtext ol {
    margin: 0 0 18px;
}

.ac-richtext a {
    color: var(--ac-accent);
    font-weight: 700;
}

/* 13. CTA bands */
.ac-cta-band {
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 5vw, 64px);
    border: 1px solid var(--ac-border);
    border-radius: var(--ac-radius-lg);
    background: linear-gradient(145deg, #111111, #080808);
}

.ac-cta-band::before {
    content: '';
    position: absolute;
    inset: -45% auto auto -20%;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 49, 21, 0.14), transparent 62%);
    pointer-events: none;
}

.ac-cta-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
}

.ac-cta-title {
    margin: 0;
    color: var(--ac-text);
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 800;
    line-height: 1.12;
}

.ac-cta-copy {
    max-width: 760px;
    margin-top: 14px;
    color: var(--ac-muted);
    font-size: 16px;
    line-height: 1.7;
}

/* 14. Forms embedded in content pages */
.ac-form {
    display: grid;
    gap: 16px;
}

.ac-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ac-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--ac-text-soft);
    font-size: 13px;
    font-weight: 750;
}

.ac-input,
.ac-textarea,
.ac-select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--ac-border-strong);
    border-radius: var(--ac-radius-sm);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ac-text);
    font: inherit;
    padding: 0 14px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ac-textarea {
    min-height: 132px;
    padding: 14px;
    resize: vertical;
}

.ac-input:focus,
.ac-textarea:focus,
.ac-select:focus {
    border-color: var(--ac-accent);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(242, 49, 21, 0.16);
}

.ac-input::placeholder,
.ac-textarea::placeholder {
    color: var(--ac-subtle);
}

/* 15. Small utilities */
.ac-hidden {
    display: none !important;
}

.ac-center {
    text-align: center;
}

.ac-max-lead {
    max-width: 760px;
}

.ac-mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.ac-mt-0 { margin-top: 0; }
.ac-mt-16 { margin-top: 16px; }
.ac-mt-24 { margin-top: 24px; }
.ac-mt-32 { margin-top: 32px; }
.ac-mt-48 { margin-top: 48px; }
.ac-mb-0 { margin-bottom: 0; }
.ac-mb-16 { margin-bottom: 16px; }
.ac-mb-24 { margin-bottom: 24px; }
.ac-mb-32 { margin-bottom: 32px; }
.ac-mb-48 { margin-bottom: 48px; }

/* 16. Responsive rules */
@media (max-width: 1180px) {
    .ac-grid-4,
    .ac-process-grid,
    .ac-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ac-split,
    .ac-split-reverse {
        grid-template-columns: 1fr;
    }

    .ac-cta-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .ac-section {
        padding: var(--ac-section-y-mobile) 18px;
    }

    .ac-row-between,
    .ac-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .ac-grid-2,
    .ac-grid-3,
    .ac-grid-4,
    .ac-process-grid,
    .ac-stat-grid,
    .ac-field-grid {
        grid-template-columns: 1fr;
    }

    .ac-panel,
    .ac-card,
    .ac-process-step,
    .ac-stat {
        padding: 22px;
    }

    .ac-actions {
        width: 100%;
    }

    .ac-btn {
        width: 100%;
    }

    .ac-trust-row {
        align-items: stretch;
        flex-direction: column;
    }

    .ac-trust-pill {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .ac-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ac-title-xl {
        font-size: clamp(38px, 13vw, 54px);
    }

    .ac-title {
        font-size: clamp(30px, 10vw, 42px);
    }

    .ac-cta-band {
        padding: 28px 20px;
    }

    .ac-table th,
    .ac-table td {
        padding: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ac-page *,
    .ac-page *::before,
    .ac-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* 17. Legacy page typography normalization
 * Applies main.css typography scale to existing content pages only.
 * Scoped to entry content so site chrome remains untouched.
 */
body.page-id-8 .entry-content,
body.page-id-1279 .entry-content {
    font-family: var(--ac-font) !important;
    font-size: 16px !important;
    line-height: 1.7 !important;
}

body.page-id-8 .entry-content h1,
body.page-id-1279 .entry-content h1,
body.page-id-8 .entry-content .legacy-hero-h1,
body.page-id-1279 .entry-content .hero h1 {
    font-size: clamp(42px, 5.2vw, 72px) !important;
    line-height: 1.06 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

body.page-id-8 .entry-content h2,
body.page-id-1279 .entry-content h2,
body.page-id-8 .entry-content .section-heading h2,
body.page-id-1279 .entry-content .section-heading h2 {
    font-size: clamp(32px, 3.6vw, 52px) !important;
    line-height: 1.12 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

body.page-id-8 .entry-content h3,
body.page-id-1279 .entry-content h3,
body.page-id-8 .entry-content .ac-card-title,
body.page-id-1279 .entry-content .ac-card-title,
body.page-id-1279 .entry-content .category-card h3,
body.page-id-1279 .entry-content .family-card h3,
body.page-id-1279 .entry-content .application-card h3,
body.page-id-1279 .entry-content .panel h3 {
    font-size: clamp(20px, 1.65vw, 26px) !important;
    line-height: 1.28 !important;
    font-weight: 750 !important;
    letter-spacing: 0 !important;
}

body.page-id-8 .entry-content h4,
body.page-id-1279 .entry-content h4,
body.page-id-8 .entry-content h5,
body.page-id-1279 .entry-content h5,
body.page-id-8 .entry-content h6,
body.page-id-1279 .entry-content h6 {
    font-size: 17px !important;
    line-height: 1.35 !important;
    font-weight: 750 !important;
    letter-spacing: 0 !important;
}

body.page-id-8 .entry-content p,
body.page-id-1279 .entry-content p,
body.page-id-8 .entry-content li,
body.page-id-1279 .entry-content li,
body.page-id-8 .entry-content .legacy-hero-sub,
body.page-id-1279 .entry-content .hero-copy,
body.page-id-1279 .entry-content .muted {
    font-size: clamp(15px, 1.1vw, 17px) !important;
    line-height: 1.72 !important;
    letter-spacing: 0 !important;
}

body.page-id-8 .entry-content .text-xs,
body.page-id-1279 .entry-content .text-xs,
body.page-id-8 .entry-content .eyebrow,
body.page-id-1279 .entry-content .eyebrow,
body.page-id-8 .entry-content .tag,
body.page-id-1279 .entry-content .tag,
body.page-id-8 .entry-content .chip,
body.page-id-1279 .entry-content .chip,
body.page-id-1279 .entry-content .category-meta,
body.page-id-1279 .entry-content .category-badge {
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em !important;
}

body.page-id-8 .entry-content .text-sm,
body.page-id-1279 .entry-content .text-sm,
body.page-id-8 .entry-content small,
body.page-id-1279 .entry-content small,
body.page-id-8 .entry-content .hero-note,
body.page-id-1279 .entry-content .hero-note {
    font-size: 14px !important;
    line-height: 1.55 !important;
}

body.page-id-8 .entry-content .text-lg,
body.page-id-1279 .entry-content .text-lg,
body.page-id-8 .entry-content .text-xl,
body.page-id-1279 .entry-content .text-xl,
body.page-id-8 .entry-content .lead,
body.page-id-1279 .entry-content .lead {
    font-size: clamp(16px, 1.35vw, 19px) !important;
    line-height: 1.68 !important;
}

body.page-id-8 .entry-content .text-2xl,
body.page-id-1279 .entry-content .text-2xl,
body.page-id-8 .entry-content .text-3xl,
body.page-id-1279 .entry-content .text-3xl,
body.page-id-8 .entry-content .text-4xl,
body.page-id-1279 .entry-content .text-4xl,
body.page-id-8 .entry-content .text-5xl,
body.page-id-1279 .entry-content .text-5xl,
body.page-id-8 .entry-content .text-6xl,
body.page-id-1279 .entry-content .text-6xl {
    font-size: clamp(28px, 3vw, 44px) !important;
    line-height: 1.14 !important;
}

body.page-id-8 .entry-content a[class*="btn"],
body.page-id-1279 .entry-content a[class*="btn"],
body.page-id-8 .entry-content button,
body.page-id-1279 .entry-content button,
body.page-id-1279 .entry-content .selector-button,
body.page-id-8 .entry-content .legacy-hero-btn-primary,
body.page-id-8 .entry-content .legacy-hero-btn-outline {
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

@media (max-width: 860px) {
    body.page-id-8 .entry-content h1,
    body.page-id-1279 .entry-content h1,
    body.page-id-8 .entry-content .legacy-hero-h1,
    body.page-id-1279 .entry-content .hero h1 {
        font-size: clamp(36px, 10vw, 52px) !important;
    }

    body.page-id-8 .entry-content h2,
    body.page-id-1279 .entry-content h2 {
        font-size: clamp(28px, 8vw, 40px) !important;
    }

    body.page-id-8 .entry-content h3,
    body.page-id-1279 .entry-content h3 {
        font-size: clamp(20px, 5.6vw, 24px) !important;
    }
}

/* Codex 2026-07-14: force blog post hero/TOC to match local article template, including cached legacy ao-post markup. */
body.single-post .article-template,
body.single-post .ao-post-template {
  --article-red: #f23115;
  --article-bg: #050505;
  --article-line: rgba(255,255,255,.12);
  --article-header-overlap: 132px;
  width: 100vw !important;
  min-height: 100vh !important;
  margin-top: calc(var(--article-header-overlap) * -1) !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  background: #050505 !important;
  color: #f7f7f7 !important;
  overflow-x: clip !important;
}

body.single-post .article-container,
body.single-post .ao-post-container {
  width: min(100% - 48px, 1420px) !important;
  margin: 0 auto !important;
}

body.single-post .article-hero,
body.single-post .ao-post-hero {
  position: relative !important;
  min-height: calc(720px + var(--article-header-overlap)) !important;
  display: flex !important;
  align-items: flex-end !important;
  overflow: hidden !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
  background: #090909 !important;
}

body.single-post .article-hero::before,
body.single-post .ao-post-hero::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  background: linear-gradient(90deg, rgba(5,5,5,.94) 0%, rgba(5,5,5,.72) 43%, rgba(5,5,5,.22) 100%), linear-gradient(180deg, rgba(5,5,5,.18) 0%, rgba(5,5,5,.1) 40%, rgba(5,5,5,.9) 100%) !important;
  pointer-events: none !important;
}

body.single-post .article-hero > img,
body.single-post .ao-post-hero > img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: scale(1.02) !important;
}

body.single-post .article-hero-inner,
body.single-post .ao-post-hero-inner {
  position: relative !important;
  z-index: 2 !important;
  padding: 230px 0 86px !important;
}

body.single-post .article-breadcrumb,
body.single-post .ao-post-breadcrumb {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: max-content !important;
  margin: 0 0 22px !important;
  padding: 0 !important;
  background: transparent !important;
  color: #d0d0d0 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
  border: 0 !important;
}

body.single-post .article-breadcrumb strong,
body.single-post .ao-post-breadcrumb strong {
  color: #fff !important;
  padding-bottom: 7px !important;
  border-bottom: 1px solid rgba(255,255,255,.44) !important;
}

body.single-post .article-kicker,
body.single-post .ao-post-kicker {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: #f23115 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
}

body.single-post .article-kicker::before,
body.single-post .ao-post-kicker::before {
  content: "" !important;
  width: 24px !important;
  height: 1px !important;
  background: #f23115 !important;
}

body.single-post .article-hero h1,
body.single-post .ao-post-hero h1 {
  max-width: 920px !important;
  margin: 16px 0 0 !important;
  color: #fff !important;
  font-size: clamp(44px, 5vw, 74px) !important;
  font-weight: 850 !important;
  line-height: 1.04 !important;
  letter-spacing: 0 !important;
}

body.single-post .article-hero-lede,
body.single-post .ao-post-lede {
  max-width: 760px !important;
  margin: 24px 0 0 !important;
  color: #d5d5d5 !important;
  font-size: 17px !important;
  line-height: 1.75 !important;
}

body.single-post .article-meta-row,
body.single-post .ao-post-meta-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-top: 34px !important;
}

body.single-post .article-meta-pill,
body.single-post .ao-post-meta-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.045) !important;
  color: #cfcfcf !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  backdrop-filter: blur(12px) !important;
}

body.single-post .article-layout,
body.single-post .ao-post-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 900px) 260px !important;
  gap: 38px !important;
  align-items: start !important;
  justify-content: center !important;
}

body.single-post .article-toc,
body.single-post .ao-post-toc {
  position: sticky !important;
  top: 126px !important;
  padding: 22px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 10px !important;
  background: rgba(13,13,13,.78) !important;
  box-shadow: 0 20px 52px rgba(0,0,0,.28) !important;
  backdrop-filter: blur(14px) !important;
}

body.single-post .article-toc-title,
body.single-post .ao-post-toc-title {
  margin: 0 0 16px !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
}

body.single-post .article-toc nav,
body.single-post .ao-post-toc nav {
  display: grid !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-post .article-toc a,
body.single-post .article-toc a:visited,
body.single-post .ao-post-toc a,
body.single-post .ao-post-toc a:visited {
  display: block !important;
  padding: 8px 0 8px 14px !important;
  border: 0 !important;
  border-left: 2px solid rgba(255,255,255,.11) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #989898 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
}

body.single-post .article-toc a:hover,
body.single-post .article-toc a.is-active,
body.single-post .ao-post-toc a:hover,
body.single-post .ao-post-toc a.is-active {
  color: #fff !important;
  border-left-color: #f23115 !important;
  transform: translateX(3px) !important;
}