/* VPSRox — blog article detail (editorial layout, no hero image) */

:root {
    --art-nav-height: 72px;
    --art-read-width: 720px;
    --art-layout-width: 1200px;
    --art-sidebar-width: 240px;
    --art-radius-sm: 10px;
    --art-radius-md: 16px;
    --art-radius-lg: 24px;
    --art-radius-pill: 9999px;
}

main {
    display: block;
}

.post-wrap,
.post-layout,
.article-content,
.post-aside,
.panel-card,
.post-meta-bar,
.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 */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reading progress — thicker, under navbar feel */
.read-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    z-index: 1001;
    background: var(--accent-green);
    width: 0%;
    transition: width 0.08s linear;
    box-shadow: 0 0 12px rgba(42, 211, 135, 0.45);
}

/* Masthead — light editorial, centered (aligned with blog list) */
.post-masthead {
    padding: calc(var(--art-nav-height) + 32px) 0 48px;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-light);
    position: relative;
    z-index: 20;
    text-align: center;
}

.post-masthead .post-wrap {
    max-width: 820px;
}

.post-breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.post-breadcrumb a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.post-breadcrumb a:hover {
    color: var(--bg-card);
}

.post-breadcrumb .bc-current {
    color: var(--text-main);
    font-weight: 600;
}

.post-meta-top {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.cat-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--art-radius-pill);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--bg-white);
    color: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(15, 42, 29, 0.04);
}

.post-date-inline {
    font-size: 14px;
    color: var(--text-muted);
}

.post-masthead h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text-main);
    max-width: none;
    margin: 0 auto 20px;
}

.post-lead {
    font-size: 18px;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 28px;
}

.post-meta-bar {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 16px;
    font-size: 14px;
    color: var(--text-muted);
    padding: 12px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--art-radius-md);
    box-shadow: 0 2px 16px rgba(15, 42, 29, 0.05);
    max-width: 100%;
}

.post-meta-bar .meta-item,
.post-meta-bar .post-author,
.post-meta-bar .post-read-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    line-height: 1.35;
}

.post-meta-bar svg {
    flex-shrink: 0;
    color: var(--accent-green);
}

/* Tags row — grouped inside meta-item */
.post-meta-bar .meta-item:has(.tag-pill) {
    flex-basis: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
    margin-top: -2px;
    border-top: 1px solid var(--border-light);
}

/* Tags row — loose direct children */
.post-meta-bar:has(> .tag-pill)::after {
    content: '';
    flex-basis: 100%;
    width: 100%;
    order: 1;
    border-top: 1px solid var(--border-light);
    margin-top: 2px;
}

.post-meta-bar > .tag-pill {
    order: 2;
}

.post-meta-bar .post-author,
.post-meta-bar .post-read-time,
.post-meta-bar .meta-item:not(:has(.tag-pill)) {
    order: 0;
}

.tag-pill {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: var(--art-radius-pill);
    font-size: 12px;
    font-weight: 600;
    background: rgba(42, 211, 135, 0.1);
    border: none;
    color: var(--bg-card);
    line-height: 1.35;
}

/* Body — left TOC + centered reading column */
.post-body-section {
    padding: 40px 0 72px;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-main) 120px);
    position: relative;
    z-index: 20;
}

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

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

    .post-aside {
        order: -1;
    }
}

/* Article — card container, auto-numbered sections */
.article-content {
    counter-reset: art-section;
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-secondary);
    min-width: 0;
    overflow-wrap: break-word;
    max-width: var(--art-read-width);
    margin: 0 auto;
    padding: 40px 36px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--art-radius-lg);
    box-shadow: 0 8px 40px rgba(15, 42, 29, 0.06);
}


.article-content h2 {
    counter-increment: art-section;
    position: relative;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 48px 0 20px;
    padding: 0 0 0 52px;
    border: none;
    line-height: 1.45;
    letter-spacing: -0.02em;
}

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

.article-content h2::before {
    content: counter(art-section, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-green);
    background: rgba(42, 211, 135, 0.12);
    border-radius: 10px;
    letter-spacing: 0;
}

.article-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 28px 0 10px;
}

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

.article-content ul {
    margin: 0 0 20px;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-content ul li {
    position: relative;
    padding-left: 20px;
    line-height: 1.75;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
}

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

.article-content a {
    color: var(--bg-card);
    text-decoration: underline;
    text-decoration-color: rgba(42, 211, 135, 0.5);
    text-underline-offset: 4px;
    transition: color 0.2s, text-decoration-color 0.2s;
}

.article-content a:hover {
    color: var(--accent-green);
    text-decoration-color: var(--accent-green);
}

.article-content code {
    font-family: "SF Mono", "Fira Code", Consolas, monospace;
    font-size: 0.88em;
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 2px 7px;
    color: var(--bg-card);
}

/* Callouts — full rounded cards */
.callout {
    border: 1px solid var(--border-light);
    border-left: none;
    background: var(--bg-main);
    padding: 20px 22px;
    margin: 28px 0;
    border-radius: var(--art-radius-md);
    box-shadow: inset 0 0 0 1px rgba(42, 211, 135, 0.08);
}

.callout.tip {
    background: rgba(42, 211, 135, 0.06);
    border-color: rgba(42, 211, 135, 0.25);
}

.callout.warning {
    background: rgba(239, 68, 68, 0.04);
    border-color: rgba(239, 68, 68, 0.2);
    box-shadow: none;
}

.callout-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bg-card);
    margin-bottom: 12px;
    padding: 4px 10px;
    background: var(--bg-white);
    border-radius: var(--art-radius-pill);
    border: 1px solid var(--border-light);
}

.callout p {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.7;
}

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

.callout p code {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.callout p:has(> code:only-child) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.callout p:has(> code:only-child) code {
    display: block;
    white-space: pre;
    word-break: normal;
    overflow-wrap: normal;
    padding: 10px 12px;
    line-height: 1.5;
}

/* Metrics — horizontal ribbon */
.metric-row {
    display: flex;
    flex-wrap: wrap;
    margin: 28px 0;
    background: var(--bg-card);
    border-radius: var(--art-radius-md);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 42, 29, 0.1);
}

.metric-card {
    flex: 1 1 120px;
    padding: 22px 16px;
    text-align: center;
    border-right: 1px solid var(--border-dark);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.metric-card:last-child {
    border-right: none;
}

.metric-val {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-green);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.metric-label {
    display: block;
    font-size: 11px;
    color: var(--text-light-secondary);
    margin-top: 8px;
    line-height: 1.35;
}

/* Steps — vertical timeline */
.step-list {
    list-style: none;
    padding: 0;
    margin: 28px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 8px;
}

.step-list::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-green), rgba(42, 211, 135, 0.15));
    border-radius: 1px;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 20px 0 20px 12px;
    background: transparent;
    border: none;
    border-radius: 0;
    position: relative;
}

.step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-white);
    color: var(--bg-card);
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-green);
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 4px var(--bg-white);
}

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

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

.step-body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Tables — zebra, no dark header */
.data-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin: 28px 0;
    border: 1px solid var(--border-light);
    border-radius: var(--art-radius-md);
    box-shadow: 0 2px 12px rgba(15, 42, 29, 0.04);
    -webkit-overflow-scrolling: touch;
}

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

.data-table thead tr {
    background: var(--bg-main);
}

.data-table thead th {
    padding: 14px 18px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    border-bottom: 2px solid var(--border-light);
}

.data-table tbody tr {
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-white);
}

.data-table tbody tr:nth-child(even) {
    background: rgba(247, 246, 242, 0.6);
}

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

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

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

/* Sidebar — left rail, minimal */
.post-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    max-width: 100%;
}

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

.panel-card {
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.88) 0%,
        rgba(255, 255, 255, 0.72) 52%,
        rgba(112, 225, 176, 0.10) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: var(--art-radius-md);
    padding: 20px 18px;
    box-shadow:
        0 10px 32px rgba(15, 42, 29, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.panel-card-title,
.toc-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--text-main);
    display: inline-block;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 2px solid var(--border-light);
}

.toc-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0 10px 16px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    border-radius: 0;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.45;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.toc-link:hover {
    color: var(--text-main);
    background: transparent;
    border-left-color: rgba(42, 211, 135, 0.4);
}

.toc-link.active {
    color: var(--text-main);
    font-weight: 700;
    background: transparent;
    border-left-color: var(--accent-green);
}

.toc-num {
    display: none;
}

.sidebar-cta {
    margin-top: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.sidebar-cta-inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid rgba(42, 211, 135, 0.25);
    border-radius: var(--art-radius-md);
    box-shadow: 0 4px 20px rgba(15, 42, 29, 0.12);
    overflow: hidden;
}

.sidebar-cta-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-green);
    margin-bottom: 8px;
}

.sidebar-cta h3 {
    font-size: 15px;
    color: var(--text-light);
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
}

.sidebar-cta p {
    font-size: 12px;
    color: var(--text-light-secondary);
    line-height: 1.55;
    margin-bottom: 12px;
    overflow-wrap: break-word;
}

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

.sidebar-cta .feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 12px;
    color: var(--text-light-secondary);
    line-height: 1.45;
    min-width: 0;
    overflow-wrap: break-word;
}

.feature-check {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: var(--accent-green);
    flex-shrink: 0;
    position: relative;
    margin-top: 2px;
}

.feature-check::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 7px;
    border: solid var(--bg-card);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

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

.sidebar-cta .price-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -0.03em;
}

.sidebar-cta .price-unit {
    font-size: 12px;
    color: var(--text-light-secondary);
}

.sidebar-cta .btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--art-radius-sm);
    font-weight: 700;
    font-size: 13px;
    background: var(--accent-green);
    color: var(--bg-card);
    transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-cta .btn-cta:hover {
    background: var(--accent-mint);
    color: var(--bg-card);
    transform: translateY(-1px);
}

/* Article end CTA — stacked banner */
.article-cta-section {
    margin-top: 48px;
    margin-left: -36px;
    margin-right: -36px;
    margin-bottom: -40px;
    border-radius: 0 0 var(--art-radius-lg) var(--art-radius-lg);
    overflow: hidden;
    position: relative;
    background: var(--bg-card);
    border: none;
    box-shadow: none;
}

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


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

.article-cta-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

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

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

.article-cta-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.article-cta-copy p {
    font-size: 15px;
    line-height: 1.75;
    margin: 0;
    color: var(--text-light-secondary);
    text-align: center;
}

@media (min-width: 768px) {
    .article-cta-copy p {
        text-align: left;
    }
}

.article-cta-foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-dark);
}

@media (min-width: 640px) {
    .article-cta-foot {
        flex-direction: row;
        justify-content: center;
        gap: 24px;
    }
}

.article-cta-eyebrow {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-green);
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    line-height: 1.3;
}

.article-cta-eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    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-inner h2,
.article-cta-head h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    color: var(--text-light);
    font-weight: 800;
    line-height: 1.35;
    border: none;
    padding: 0;
    margin: 0;
    letter-spacing: -0.02em;
}

/* CTA h2 must not inherit section numbering */
.article-cta-section h2::before {
    display: none;
}

.article-cta-section h2 {
    padding-left: 0;
    counter-increment: none;
}

.cta-price-block {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    flex-shrink: 0;
}

.cta-price-val {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1;
    letter-spacing: -0.03em;
}

.cta-price-unit {
    font-size: 14px;
    color: var(--text-light-secondary);
}

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

.article-cta-section .btn-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 15px;
    color: var(--bg-card) !important;
    text-decoration: none !important;
    background: var(--accent-green);
    border: none;
    border-radius: var(--art-radius-sm);
    transition: background 0.2s ease, transform 0.2s ease;
}

.article-cta-section .btn-cta-primary:hover {
    background: var(--accent-mint);
    transform: translateY(-2px);
    color: var(--bg-card) !important;
}

.article-cta-section .btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 15px;
    background: transparent;
    border: 1px solid var(--border-dark);
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--art-radius-sm);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.article-cta-section .btn-cta-secondary:hover {
    border-color: var(--text-light-secondary);
    background: rgba(255, 255, 255, 0.06);
}

.cta-spec-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 16px;
    border-radius: var(--art-radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
    overflow: hidden;
}

.cta-spec-heading {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light-secondary);
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: none;
}

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

@media (max-width: 480px) {
    .post-masthead h1 {
        font-size: 1.45rem;
    }

    .metric-row {
        grid-template-columns: 1fr;
    }

    .metric-card,
    .metric-card:nth-child(odd) {
        border-right: none;
        border-bottom: 1px solid var(--border-dark);
    }

    .metric-card:last-child {
        border-bottom: none;
    }

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

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

.cta-spec-card .spec-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    padding: 0;
    border-bottom: none;
    font-size: 13px;
}

.cta-spec-card .spec-label {
    color: var(--text-light-secondary);
    font-size: 11px;
    line-height: 1.3;
}

.cta-spec-card .spec-val {
    color: var(--text-light);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

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

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    width: 260px;
    border-radius: var(--art-radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(42, 211, 135, 0.25);
    box-shadow: 0 8px 32px rgba(15, 42, 29, 0.2);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

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

.floating-cta-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    cursor: pointer;
    color: var(--text-light-secondary);
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cta-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

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

.floating-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-green);
    margin-bottom: 8px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: art-pulse-dot 2s ease-in-out infinite;
}

.floating-cta h4 {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

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

.fc-price-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-light);
}

.fc-price-unit {
    font-size: 13px;
    color: var(--text-light-secondary);
}

.fc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: var(--art-radius-pill);
    font-weight: 600;
    font-size: 14px;
    background: var(--accent-green);
    color: var(--bg-card) !important;
    text-decoration: none !important;
    margin-bottom: 8px;
    transition: background 0.2s ease;
}

.fc-btn:hover {
    background: var(--accent-mint);
    color: var(--bg-card) !important;
}

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

.fc-feature-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--art-radius-pill);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-dark);
    color: var(--text-light-secondary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Related articles — inset band */
.related-section {
    padding: 64px 0 80px;
    background: var(--bg-main);
    border-top: none;
    position: relative;
    z-index: 20;
}

.section-head {
    max-width: 32rem;
    margin: 0 auto 40px;
    text-align: left;
}

.section-head .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.section-head .eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
}

.section-head h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.section-head p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

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

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

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

.clean-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--art-radius-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.related-card:hover {
    border-color: var(--accent-green);
    box-shadow: 0 6px 24px rgba(15, 42, 29, 0.08);
    transform: none;
}

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

.related-card-body .cat-chip {
    background: rgba(42, 211, 135, 0.1);
    color: var(--bg-card);
    border: none;
    box-shadow: none;
}

.related-card-body h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.45;
    margin: 12px 0 8px;
    letter-spacing: -0.01em;
}

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

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

.related-card-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

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

    .panel-card {
        background: var(--bg-white);
        border: 1px solid var(--border-light);
        border-radius: var(--art-radius-md);
        padding: 16px 18px;
    }

    .sidebar-cta {
        display: none;
    }
}

/* Mobile — editorial layout adjustments */
@media (max-width: 767px) {
    :root {
        --art-nav-height: 64px;
    }

    main,
    .post-body-section {
        overflow-x: clip;
    }

    .post-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    .post-masthead {
        padding: calc(var(--art-nav-height) + 16px) 0 28px;
    }

    .post-breadcrumb {
        font-size: 13px;
        gap: 6px;
        margin-bottom: 16px;
    }

    .post-breadcrumb .bc-current {
        word-break: break-word;
    }

    .post-meta-top {
        gap: 8px;
        margin-bottom: 14px;
    }

    .post-masthead h1 {
        font-size: clamp(1.5rem, 6.5vw, 1.85rem);
        margin-bottom: 14px;
    }

    .post-lead {
        font-size: 16px;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    .post-meta-bar {
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px 12px;
        width: 100%;
        max-width: 100%;
        padding: 12px 14px;
    }

    .post-meta-bar .meta-item,
    .post-meta-bar .post-author,
    .post-meta-bar .post-read-time {
        justify-content: center;
        font-size: 13px;
    }

    .post-meta-bar .meta-item:has(.tag-pill) {
        padding-top: 8px;
        gap: 5px;
    }

    .post-meta-bar > .tag-pill {
        font-size: 11px;
        padding: 3px 8px;
    }

    .tag-pill {
        font-size: 11px;
        padding: 3px 8px;
    }

    .post-body-section {
        padding: 20px 0 48px;
    }

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

    .post-layout {
        gap: 16px;
        min-width: 0;
    }

    .article-content {
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 24px 16px;
        font-size: 16px;
        line-height: 1.85;
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
        overflow-x: clip;
    }

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

    .article-content h2::before {
        position: static;
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .callout {
        padding: 16px;
        margin: 20px 0;
    }

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

    .metric-card {
        flex: none;
        padding: 16px 10px;
        border-right: none;
        border-bottom: 1px solid var(--border-dark);
    }

    .metric-card:nth-child(odd) {
        border-right: 1px solid var(--border-dark);
    }

    .metric-card:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .metric-val {
        font-size: 1.2rem;
    }

    .metric-label {
        font-size: 10px;
    }

    .step-list {
        padding-left: 0;
    }

    .step-list::before {
        left: 15px;
    }

    .step-item {
        gap: 14px;
        padding-left: 4px;
    }

    .step-num {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .data-table-wrap {
        margin: 20px 0;
        border-radius: var(--art-radius-sm);
    }

    .data-table thead th,
    .data-table tbody td {
        padding: 12px 14px;
        font-size: 13px;
    }

    .post-aside {
        max-width: none;
        width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        min-width: 0;
    }

    .panel-card {
        padding: 14px 16px;
        max-width: 100%;
        overflow: hidden;
    }

    .toc-list {
        max-width: 100%;
    }

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

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

    .article-cta-main {
        gap: 12px;
    }

    .cta-spec-card {
        padding: 12px 14px;
    }

    .cta-spec-heading {
        margin-bottom: 8px;
    }

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

    .cta-spec-card .spec-row {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-height: 0;
        padding: 7px 4px;
        text-align: center;
        background: rgba(255, 255, 255, 0.04);
        border-radius: 8px;
    }

    .cta-spec-card .spec-label {
        font-size: 10px;
        line-height: 1.2;
    }

    .cta-spec-card .spec-val {
        font-size: 11px;
        line-height: 1.25;
        text-align: center;
        word-break: normal;
    }

    .article-cta-foot {
        padding-top: 16px;
        width: 100%;
    }

    .cta-price-val {
        font-size: 1.75rem;
    }

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

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

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

    .floating-cta-inner {
        padding: 14px 14px 12px;
    }

    .floating-cta h4 {
        font-size: 15px;
        margin-bottom: 8px;
    }

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

    .related-section {
        padding: 40px 0 56px;
    }

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

    .section-head h2 {
        font-size: 1.4rem;
    }

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

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


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

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