/* JexMac — blog article detail (dark neon layout, no hero image) */

:root {
    --art-read-width: 760px;
    --art-layout-width: 1240px;
    --art-sidebar-width: 280px;
    --art-radius-sm: 8px;
    --art-radius-md: 14px;
    --art-radius-lg: 20px;
    --art-radius-pill: 9999px;
    --art-panel-border: rgba(0, 240, 255, 0.18);
    --art-panel-glow: rgba(0, 240, 255, 0.08);
    --art-purple-glow: rgba(138, 43, 226, 0.12);
}

main {
    display: block;
}

.post-wrap,
.post-layout,
.article-content,
.post-aside,
.panel-card,
.data-table-wrap,
.article-cta-section,
.article-cta-inner,
.floating-cta {
    box-sizing: border-box;
}

.post-wrap {
    max-width: var(--art-layout-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Scroll reveal — article.js toggles .revealed */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* Reading progress — sits under fixed header */
.read-progress-bar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    height: 3px;
    z-index: 1001;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.55);
    transition: width 0.08s linear;
}

/* Masthead — split hero: copy left, meta dock right */
.post-masthead {
    position: relative;
    z-index: 20;
    padding: calc(var(--header-height) + 32px) 0 0;
    text-align: left;
    border-bottom: 1px solid var(--art-panel-border);
    background: var(--bg-dark);
    overflow: hidden;
}

.post-masthead__glow {
    position: absolute;
    top: 18%;
    left: 22%;
    transform: translate(-50%, -50%);
    width: 680px;
    height: 420px;
    background: radial-gradient(ellipse, rgba(0, 240, 255, 0.09) 0%, rgba(138, 43, 226, 0.06) 45%, transparent 72%);
    filter: blur(64px);
    pointer-events: none;
}

.post-masthead__inner {
    position: relative;
    z-index: 1;
    padding-bottom: 40px;
}

.post-crumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.post-crumb a {
    color: rgba(0, 240, 255, 0.75);
    transition: color 0.22s ease;
}

.post-crumb a:hover {
    color: var(--neon-blue);
}

.post-crumb-current {
    color: rgba(255, 255, 255, 0.5);
}

.post-masthead__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

@media (min-width: 900px) {
    .post-masthead__grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(240px, 300px);
        gap: clamp(32px, 4vw, 56px);
    }
}

.post-masthead__main {
    min-width: 0;
}

.post-kicker {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid rgba(0, 240, 255, 0.28);
    background: rgba(0, 240, 255, 0.06);
    font-family: var(--font-tech);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--neon-blue);
}

.post-masthead h1 {
    font-family: var(--font-tech);
    font-size: clamp(1.75rem, 3.8vw, 2.85rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: 0.02em;
    color: #fff;
    max-width: 20em;
    margin: 0 0 20px;
}

.post-lead {
    max-width: 580px;
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin: 0;
    padding-left: 16px;
    border-left: 3px solid rgba(0, 240, 255, 0.45);
}

/* Meta dock — vertical panel, not inline bar */
.post-masthead__dock {
    padding: 20px 18px;
    border-radius: var(--art-radius-md);
    border: 1px solid rgba(0, 240, 255, 0.22);
    background: linear-gradient(165deg, rgba(13, 19, 36, 0.94), rgba(5, 9, 20, 0.9));
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.post-dock-label {
    display: block;
    margin-bottom: 14px;
    font-family: var(--font-tech);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(0, 240, 255, 0.65);
}

.post-dock-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.post-dock-list li {
    display: grid;
    grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
    gap: 10px 12px;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.post-dock-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.post-dock-key {
    font-family: var(--font-tech);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
}

.post-dock-val {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    min-width: 0;
    overflow-wrap: break-word;
}

.post-dock-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 240, 255, 0.12);
}

.cat-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 4px;
    font-family: var(--font-tech);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.28);
}

.tag-pill {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 4px;
    font-family: var(--font-mono, 'Roboto Mono', monospace);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(200, 220, 255, 0.88);
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.18);
    line-height: 1.35;
}

/* Body — content left, sidebar right on desktop */
.post-body-section {
    position: relative;
    z-index: 20;
    padding: 44px 0 80px;
}

.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

@media (min-width: 1100px) {
    .post-layout {
        grid-template-columns: minmax(0, 1fr) var(--art-sidebar-width);
        gap: 48px;
    }
}

/* Article column */
.article-content {
    counter-reset: art-section;
    min-width: 0;
    max-width: var(--art-read-width);
    margin: 0;
    padding: 36px 34px;
    font-size: 1.05rem;
    line-height: 1.88;
    color: var(--text-muted);
    overflow-wrap: break-word;
    background: linear-gradient(165deg, rgba(13, 19, 36, 0.92), rgba(5, 9, 20, 0.88));
    border: 1px solid var(--art-panel-border);
    border-radius: var(--art-radius-lg);
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.article-content h2 {
    counter-increment: art-section;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 52px 0 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    font-family: var(--font-tech);
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.02em;
    color: #fff;
}

.article-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-content h2::before {
    content: counter(art-section, decimal-leading-zero);
    flex-shrink: 0;
    min-width: 38px;
    padding: 6px 0;
    font-family: var(--font-code);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
    color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.22);
    border-radius: 6px;
}

.article-content h3 {
    margin: 30px 0 12px;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-main);
}

.article-content p {
    margin-bottom: 18px;
}

.article-content ul,
.article-content ol:not(.step-list) {
    margin: 0 0 20px;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-content ul li::marker {
    color: var(--neon-blue);
}

.article-content strong {
    color: var(--text-main);
    font-weight: 600;
}

.article-content a {
    color: var(--neon-blue);
    text-decoration: underline;
    text-decoration-color: rgba(0, 240, 255, 0.45);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.article-content a:hover {
    color: #fff;
    text-decoration-color: var(--neon-blue);
}

.article-content code {
    font-family: var(--font-code);
    font-size: 0.88em;
    padding: 2px 7px;
    color: rgba(0, 240, 255, 0.95);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(0, 240, 255, 0.16);
    border-radius: 5px;
}

.article-content pre {
    margin: 22px 0;
    padding: 18px 20px;
    overflow-x: auto;
    font-family: var(--font-code);
    font-size: 0.84rem;
    line-height: 1.62;
    color: #dbeafe;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(0, 240, 255, 0.14);
    border-left: 3px solid var(--neon-purple);
    border-radius: var(--art-radius-sm);
    box-shadow: inset 0 0 24px rgba(138, 43, 226, 0.06);
    -webkit-overflow-scrolling: touch;
}

.article-content pre code {
    display: block;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    white-space: pre;
    word-break: normal;
    overflow-wrap: normal;
}

/* Callouts */
.callout {
    margin: 28px 0;
    padding: 18px 20px;
    border-radius: var(--art-radius-md);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(0, 240, 255, 0.16);
}

.callout.tip {
    background: rgba(0, 240, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.24);
}

.callout.warning {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.28);
}

.callout-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 4px 10px;
    font-family: var(--font-tech);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: var(--art-radius-pill);
}

.callout.warning .callout-title {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
}

.callout p {
    margin: 0 0 8px;
    font-size: 0.95rem;
    line-height: 1.72;
}

.callout p:last-child {
    margin-bottom: 0;
}

/* Metric ribbon */
.metric-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 28px 0;
    overflow: hidden;
    border-radius: var(--art-radius-md);
    border: 1px solid var(--art-panel-border);
    background: var(--art-panel-border);
}

.metric-card {
    padding: 20px 14px;
    text-align: center;
    background: rgba(5, 9, 20, 0.92);
}

.metric-val {
    display: block;
    font-family: var(--font-tech);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--neon-blue);
    letter-spacing: 0.02em;
}

.metric-label {
    display: block;
    margin-top: 8px;
    font-size: 0.72rem;
    line-height: 1.4;
    color: var(--text-muted);
}

/* Step timeline */
.step-list {
    list-style: none;
    position: relative;
    margin: 28px 0;
    padding: 0 0 0 10px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step-list::before {
    content: '';
    position: absolute;
    left: 26px;
    top: 18px;
    bottom: 18px;
    width: 2px;
    border-radius: 1px;
    background: linear-gradient(180deg, var(--neon-blue), rgba(138, 43, 226, 0.35));
}

.step-item {
    display: flex;
    gap: 18px;
    padding: 18px 0 18px 8px;
}

.step-num {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-code);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--neon-blue);
    background: var(--bg-dark);
    border: 2px solid rgba(0, 240, 255, 0.45);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(5, 9, 20, 0.95);
}

.step-body {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}

.step-body strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
    color: var(--text-main);
}

.step-body p {
    margin: 0 0 8px;
    font-size: 0.95rem;
    line-height: 1.72;
}

.step-body p:last-child {
    margin-bottom: 0;
}

/* Data tables */
.data-table-wrap {
    width: 100%;
    max-width: 100%;
    margin: 28px 0;
    overflow-x: auto;
    border: 1px solid var(--art-panel-border);
    border-radius: var(--art-radius-md);
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead tr {
    background: rgba(0, 240, 255, 0.06);
}

.data-table thead th {
    padding: 14px 18px;
    text-align: left;
    font-family: var(--font-tech);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--neon-blue);
    white-space: nowrap;
    border-bottom: 1px solid rgba(0, 240, 255, 0.18);
}

.data-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.18);
}

.data-table tbody tr:nth-child(even) {
    background: rgba(138, 43, 226, 0.04);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody td {
    padding: 14px 18px;
    color: var(--text-muted);
    vertical-align: top;
    line-height: 1.62;
}

.data-table tbody td:first-child {
    font-weight: 600;
    color: var(--text-main);
}

/* Right sidebar rail */
.post-aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

@media (min-width: 1100px) {
    .post-aside {
        position: sticky;
        top: calc(var(--header-height) + 28px);
    }
}

.panel-card {
    padding: 20px 18px;
    border-radius: var(--art-radius-md);
    background: linear-gradient(160deg, rgba(13, 19, 36, 0.94), rgba(5, 9, 20, 0.9));
    border: 1px solid var(--art-panel-border);
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel-card-title {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.14);
    font-family: var(--font-tech);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toc-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid transparent;
    transition:
        color 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.toc-link:hover {
    color: var(--text-main);
    background: rgba(0, 240, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.14);
}

.toc-link.active {
    color: #fff;
    font-weight: 700;
    background: rgba(0, 240, 255, 0.08);
    border-color: rgba(0, 240, 255, 0.28);
}

.toc-num {
    flex-shrink: 0;
    min-width: 28px;
    font-family: var(--font-code);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--neon-purple);
}

.toc-link.active .toc-num {
    color: var(--neon-blue);
}

/* Sidebar CTA card */
.sidebar-cta {
    width: 100%;
    min-width: 0;
}

.sidebar-cta-inner {
    width: 100%;
    padding: 18px 16px;
    overflow: hidden;
    border-radius: var(--art-radius-md);
    background:
        linear-gradient(145deg, rgba(138, 43, 226, 0.14), rgba(0, 240, 255, 0.06)),
        rgba(5, 9, 20, 0.95);
    border: 1px solid rgba(138, 43, 226, 0.28);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.sidebar-cta-badge {
    margin-bottom: 8px;
    font-family: var(--font-tech);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--neon-purple);
}

.sidebar-cta h3 {
    margin-bottom: 8px;
    font-family: var(--font-tech);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.sidebar-cta p {
    margin-bottom: 12px;
    font-size: 0.82rem;
    line-height: 1.58;
    color: var(--text-muted);
}

.sidebar-cta .feature-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sidebar-cta .feature-list li {
    position: relative;
    padding-left: 16px;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.88);
}

.sidebar-cta .feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-blue);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.sidebar-cta .price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.sidebar-cta .price-val {
    font-family: var(--font-tech);
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
}

.sidebar-cta .price-unit {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.sidebar-cta .btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 14px;
    border-radius: 6px;
    font-family: var(--font-tech);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bg-dark);
    background: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
    transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.sidebar-cta .btn-cta:hover {
    color: var(--neon-blue);
    background: transparent;
    box-shadow: 0 0 22px rgba(0, 240, 255, 0.55);
}

/* In-article end CTA */
.article-cta-section {
    position: relative;
    margin: 48px -34px -36px;
    overflow: hidden;
    border-radius: 0 0 var(--art-radius-lg) var(--art-radius-lg);
    background:
        radial-gradient(circle at 12% 18%, rgba(0, 240, 255, 0.08), transparent 42%),
        radial-gradient(circle at 88% 72%, rgba(138, 43, 226, 0.12), transparent 48%),
        rgba(5, 9, 20, 0.98);
    border-top: 1px solid rgba(0, 240, 255, 0.18);
}

.article-cta-section h2::before {
    display: none;
}

.article-cta-section h2 {
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    counter-increment: none;
}

.article-cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 34px 34px 30px;
}

.article-cta-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 560px;
}

.article-cta-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-tech);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--neon-blue);
}

.article-cta-eyebrow .dot,
.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.75);
    animation: art-pulse-dot 2s ease-in-out infinite;
}

@keyframes art-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(1.25); }
}

.article-cta-head h2 {
    font-family: var(--font-tech);
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    font-weight: 800;
    line-height: 1.35;
    color: #fff;
}

.article-cta-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

@media (min-width: 768px) {
    .article-cta-main {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 24px;
    }
}

.article-cta-copy p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.76;
    color: var(--text-muted);
}

.cta-spec-card {
    width: 100%;
    min-width: 0;
    padding: 16px;
    border-radius: var(--art-radius-md);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(0, 240, 255, 0.14);
}

.cta-spec-heading {
    margin-bottom: 12px;
    font-family: var(--font-tech);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
}

.cta-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}

.cta-spec-card .spec-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cta-spec-card .spec-label {
    font-size: 0.72rem;
    line-height: 1.3;
    color: var(--text-muted);
}

.cta-spec-card .spec-val {
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-main);
    overflow-wrap: break-word;
}

.cta-spec-card .spec-val.highlight {
    color: var(--neon-blue);
    font-weight: 700;
}

.article-cta-foot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-top: 22px;
    border-top: 1px solid rgba(0, 240, 255, 0.12);
}

@media (min-width: 640px) {
    .article-cta-foot {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cta-price-block {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.cta-price-val {
    font-family: var(--font-tech);
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.cta-price-unit {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.cta-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-cta-section .btn-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-family: var(--font-tech);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bg-dark) !important;
    text-decoration: none !important;
    background: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.4);
    transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.article-cta-section .btn-cta-primary:hover {
    color: var(--neon-blue) !important;
    background: transparent;
    box-shadow: 0 0 24px rgba(0, 240, 255, 0.55);
}

.article-cta-section .btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 6px;
    font-family: var(--font-tech);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-main);
    text-decoration: none;
    background: transparent;
    border: 1px solid rgba(0, 240, 255, 0.35);
    transition: border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.article-cta-section .btn-cta-secondary:hover {
    color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.06);
    border-color: var(--neon-blue);
}

/* Floating CTA — hidden until .visible */
.floating-cta {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    width: 272px;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    overflow: hidden;
    border-radius: var(--art-radius-md);
    background: linear-gradient(160deg, rgba(13, 19, 36, 0.98), rgba(5, 9, 20, 0.98));
    border: 1px solid rgba(0, 240, 255, 0.24);
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.48),
        0 0 24px rgba(0, 240, 255, 0.12);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.floating-cta.visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.floating-cta-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.floating-cta-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.floating-cta-inner {
    padding: 18px 16px 16px;
}

.floating-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    font-family: var(--font-tech);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--neon-blue);
}

.floating-cta h4 {
    margin-bottom: 10px;
    font-family: var(--font-tech);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.fc-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.fc-price-val {
    font-family: var(--font-tech);
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}

.fc-price-unit {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.fc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: var(--art-radius-pill);
    font-family: var(--font-tech);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bg-dark) !important;
    text-decoration: none !important;
    background: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    transition: background 0.22s ease, color 0.22s ease;
}

.fc-btn:hover {
    color: var(--neon-blue) !important;
    background: transparent;
}

.fc-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.fc-feature-tag {
    padding: 4px 8px;
    border-radius: var(--art-radius-pill);
    font-size: 0.68rem;
    font-weight: 600;
    text-align: center;
    color: rgba(226, 232, 240, 0.88);
    background: rgba(138, 43, 226, 0.12);
    border: 1px solid rgba(138, 43, 226, 0.22);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.has-floating-cta {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

/* Related reading band */
.related-section {
    position: relative;
    z-index: 20;
    padding: 68px 0 88px;
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    background:
        radial-gradient(circle at 18% 0%, rgba(0, 240, 255, 0.05), transparent 38%),
        var(--bg-dark);
}

.section-head {
    max-width: 34rem;
    margin-bottom: 36px;
    text-align: left;
}

.section-head .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-family: var(--font-tech);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--neon-purple);
}

.section-head .eyebrow .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--neon-purple);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.6);
}

.section-head h2 {
    margin-bottom: 8px;
    font-family: var(--font-tech);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #fff;
}

.section-head p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.68;
    color: var(--text-muted);
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 640px) {
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.clean-card {
    border-radius: var(--art-radius-md);
    background: linear-gradient(165deg, rgba(13, 19, 36, 0.92), rgba(5, 9, 20, 0.88));
    border: 1px solid var(--art-panel-border);
    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;
}

.related-card {
    height: 100%;
    cursor: pointer;
}

.related-card:hover {
    border-color: rgba(0, 240, 255, 0.38);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
    transform: translateY(-2px);
}

.related-card-body {
    padding: 22px;
}

.related-card-body .cat-chip {
    font-size: 0.62rem;
}

.related-card-body h3 {
    margin: 12px 0 8px;
    font-family: var(--font-tech);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.42;
    color: #fff;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.related-card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.related-card-body h3 a:hover {
    color: var(--neon-blue);
}

.related-card-body p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.62;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

/* Tablet — TOC above content, hide sidebar CTA */
@media (max-width: 1099px) {
    .post-aside {
        order: -1;
        width: 100%;
        max-width: var(--art-read-width);
        margin: 0 auto;
    }

    .sidebar-cta {
        display: none;
    }

    .article-content {
        margin: 0 auto;
    }
}

/* Mobile — single column stack */
@media (max-width: 767px) {
    .post-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .post-masthead {
        padding-top: calc(var(--header-height) + 20px);
    }

    .post-masthead__inner {
        padding-bottom: 28px;
    }

    .post-crumb {
        margin-bottom: 20px;
    }

    .post-masthead h1 {
        font-size: clamp(1.5rem, 6.5vw, 1.9rem);
    }

    .post-lead {
        font-size: 0.95rem;
        padding-left: 12px;
    }

    .post-masthead__dock {
        padding: 16px 14px;
    }

    .post-dock-list li {
        grid-template-columns: 1fr;
        gap: 3px;
        align-items: start;
    }

    .post-dock-key {
        letter-spacing: 0.06em;
    }

    .post-body-section {
        padding: 24px 0 56px;
    }

    .post-body-section > .post-wrap {
        padding-left: 0;
        padding-right: 0;
    }

    .post-layout {
        gap: 18px;
    }

    .article-content {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 24px 16px;
        font-size: 1rem;
        line-height: 1.84;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .article-content h2 {
        flex-direction: column;
        gap: 10px;
        margin: 36px 0 16px;
        font-size: 1.1rem;
    }

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

    .article-cta-section {
        margin-left: -16px;
        margin-right: -16px;
        margin-bottom: -24px;
        border-radius: 0;
    }

    .article-cta-inner {
        padding: 24px 16px 20px;
        gap: 18px;
    }

    .cta-spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .cta-btn-group {
        flex-direction: column;
        width: 100%;
    }

    .article-cta-section .btn-cta-primary,
    .article-cta-section .btn-cta-secondary {
        width: 100%;
    }

    .floating-cta {
        left: 16px;
        right: 16px;
        bottom: max(16px, env(safe-area-inset-bottom, 0px));
        width: auto;
    }

    .related-section {
        padding: 44px 0 64px;
    }

    .section-head {
        margin-bottom: 24px;
    }

    body.has-floating-cta {
        padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 480px) {
    .metric-row {
        grid-template-columns: 1fr;
    }

    .fc-features {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .pulse-dot,
    .article-cta-eyebrow .dot {
        animation: none;
    }
}
