/*
 * Blog detail page common styles (zh-Hans).
 *
 * This stylesheet is the SINGLE source of truth for blog-detail-page UI:
 *   - Page two-column layout (.article-page-wrap / .article-main / .article-sidebar)
 *   - Breadcrumb (.breadcrumb) injected by article-recommend.js
 *   - Article header (.article-header) injected by article-recommend.js
 *   - Long-form body typography (.article-body h2/h3/p/ul/ol/blockquote/table/code)
 *   - Callout boxes (.callout / .callout-tip / .callout-warn / .callout-info)
 *   - In-article CTA card (.inline-cta)
 *   - Sidebar TOC (.toc-card / .toc-list)
 *   - Bottom product recommendation (.product-recommend) injected by article-recommend.js
 *   - Prev/next pager (.post-pager) injected by article-recommend.js
 *     (per § Blog Detail Page Spec §11)
 *   - Related-posts grid (.related-posts) injected by article-recommend.js,
 *     simultaneously fulfills the role of "Further Reading" + "Related Articles"
 *     (per § Blog Detail Page Spec §11; the legacy hand-authored .related-reads
 *     block has been removed — the auto-injected one is its replacement)
 *   - Floating download widget (.float-widget) injected by article-recommend.js
 *   - Responsive breakpoints
 *
 * Per history_old.md § Blog Detail Shared Component Extraction, blog article HTML files MUST
 * NOT re-declare any of these rules inline. The visual contract for every
 * blog detail page lives here and here only.
 */

/* ==========================================================================
 * Page-level layout (two-column on desktop, single-column on mobile)
 * ========================================================================== */

.article-page-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 56px;
    align-items: start;
}

.article-main {
    min-width: 0;
}

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

/* ==========================================================================
 * Breadcrumb (injected by article-recommend.js as <nav class="breadcrumb">)
 *
 * NOTE: <nav> is intentionally used (no global naked-tag rule for <nav> in
 * main.css). <header> MUST NOT be used here — see history_old.md § 9.
 * ========================================================================== */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

.breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color .2s;
}

.breadcrumb a:hover {
    color: #00897B;
}

.breadcrumb .sep {
    color: #cbd5e1;
}

.breadcrumb .current {
    color: #0f172a;
    font-weight: 600;
}

/* ==========================================================================
 * Article header (injected as <div class="article-header">, NOT <header>!)
 * ========================================================================== */

.article-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 32px;
    margin-bottom: 40px;
}

.article-header .tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.article-header .tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #475569;
}

.article-header .tag-pill.is-category {
    background: rgba(0, 210, 180, .1);
    color: #00897B;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11px;
    font-weight: 700;
}

.article-header .article-title {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 20px;
}

.article-header .article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.article-header .article-meta i {
    margin-right: 4px;
    color: #94a3b8;
}

.article-header .article-meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #cbd5e1;
}

.article-header .article-summary {
    font-size: 17px;
    line-height: 1.75;
    color: #475569;
    background: linear-gradient(135deg, rgba(0, 210, 180, .06), rgba(99, 102, 241, .04));
    border-left: 4px solid #00D2B4;
    padding: 18px 22px;
    border-radius: 0 12px 12px 0;
    margin: 0;
}

/* ==========================================================================
 * Article body — long-form typography
 * ========================================================================== */

.article-body {
    color: #1e293b;
    font-size: 16.5px;
    line-height: 1.9;
}

.article-body > * + * {
    margin-top: 1.1em;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-top: 56px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.article-body h2::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 64px;
    height: 2px;
    background: linear-gradient(90deg, #00D2B4, #06b6d4);
}

.article-body h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin-top: 36px;
    margin-bottom: 14px;
}

.article-body p {
    margin: 0;
}

.article-body strong {
    color: #0f172a;
    font-weight: 700;
}

.article-body em {
    font-style: italic;
    color: #475569;
}

.article-body a {
    color: #00897B;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .2s;
}

.article-body a:hover {
    color: #00D2B4;
}

.article-body ul,
.article-body ol {
    padding-left: 1.5em;
    margin: 0;
}

.article-body ul {
    list-style: disc;
}

.article-body ol {
    list-style: decimal;
}

.article-body li + li {
    margin-top: 8px;
}

.article-body li::marker {
    color: #00D2B4;
}

.article-body blockquote {
    margin: 0;
    padding: 16px 22px;
    border-left: 4px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

.article-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.92em;
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.article-body pre {
    background: #0B0F19;
    color: #e2e8f0;
    padding: 18px 20px;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.7;
}

.article-body pre code {
    background: transparent;
    color: inherit;
    border: 0;
    padding: 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.article-body table th,
.article-body table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.article-body table th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .02em;
}

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

.article-body table tr:hover td {
    background: #f8fafc;
}

/* ==========================================================================
 * Callout boxes (use within .article-body)
 *
 * Usage:
 *   <aside class="callout callout-tip">
 *     <strong>Tip</strong> ...
 *   </aside>
 * ========================================================================== */

.callout {
    border-radius: 14px;
    padding: 18px 22px;
    border: 1px solid;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    line-height: 1.75;
}

.callout > .callout-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-top: 2px;
}

.callout-tip {
    background: rgba(0, 210, 180, .06);
    border-color: rgba(0, 210, 180, .25);
    color: #115e59;
}

.callout-tip .callout-icon {
    background: rgba(0, 210, 180, .15);
    color: #00897B;
}

.callout-info {
    background: rgba(59, 130, 246, .06);
    border-color: rgba(59, 130, 246, .2);
    color: #1e40af;
}

.callout-info .callout-icon {
    background: rgba(59, 130, 246, .15);
    color: #2563eb;
}

.callout-warn {
    background: rgba(245, 158, 11, .06);
    border-color: rgba(245, 158, 11, .25);
    color: #92400e;
}

.callout-warn .callout-icon {
    background: rgba(245, 158, 11, .15);
    color: #d97706;
}

/* ==========================================================================
 * In-article CTA card (for the in-body "go to download page" prompt)
 * ========================================================================== */

.inline-cta {
    /* Symmetric vertical breathing room. The previous draft only set
     * margin-top: 36px and relied on `.article-body > * + *`
     * (margin-top: 1.1em ≈ 18px) for spacing toward the next paragraph,
     * which made the card sit much closer to the text below than to
     * the text above. The two margins collapse with the next p's
     * margin-top so the larger one (36px) wins, giving an even gap on
     * both sides. */
    margin-top: 36px;
    margin-bottom: 36px;
    padding: 28px 32px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 90% 20%, rgba(0, 210, 180, .25), transparent 55%),
        linear-gradient(135deg, #0B0F19 0%, #111827 100%);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    overflow: hidden;
    position: relative;
}

.inline-cta .inline-cta-text {
    flex: 1 1 320px;
    min-width: 0;
}

.inline-cta .inline-cta-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 6px;
    line-height: 1.4;
    color: #fff;
}

.inline-cta .inline-cta-desc {
    font-size: 14px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.7;
}

.inline-cta .inline-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 9999px;
    background: #00D2B4;
    color: #0B0F19;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
    white-space: nowrap;
}

.inline-cta .inline-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -10px rgba(0, 210, 180, .55);
}

/* ==========================================================================
 * Sidebar TOC card
 * ========================================================================== */

.toc-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 12px -8px rgba(15, 23, 42, .08);
}

.toc-card .toc-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.toc-card .toc-title i {
    color: #00897B;
    font-size: 16px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}

.toc-list::-webkit-scrollbar {
    width: 4px;
}

.toc-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.toc-list li + li {
    margin-top: 4px;
}

.toc-list a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #475569;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: background .2s, color .2s, border-color .2s;
    line-height: 1.5;
}

.toc-list a:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.toc-list a.active {
    background: rgba(0, 210, 180, .08);
    color: #00897B;
    border-left-color: #00D2B4;
    font-weight: 600;
}

/* ==========================================================================
 * Product recommend block (injected by article-recommend.js)
 * Visually distinct from body content; sits between article and footer.
 * ========================================================================== */

.product-recommend {
    margin-top: 64px;
    padding: 40px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 210, 180, .25), transparent 55%),
        radial-gradient(circle at 85% 80%, rgba(99, 102, 241, .18), transparent 60%),
        linear-gradient(135deg, #0B0F19 0%, #111827 70%, #0B0F19 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.product-recommend .pr-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 9999px;
    background: rgba(0, 210, 180, .15);
    color: #5eead4;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: 18px;
}

.product-recommend .pr-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 12px;
    color: #fff;
}

.product-recommend .pr-desc {
    color: #cbd5e1;
    line-height: 1.8;
    margin: 0 0 28px;
    max-width: 640px;
    font-size: 15.5px;
}

.product-recommend .pr-points {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px 28px;
}

.product-recommend .pr-points li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #e2e8f0;
    font-size: 14.5px;
    line-height: 1.6;
}

.product-recommend .pr-points li i {
    color: #00D2B4;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.product-recommend .pr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-recommend .pr-btn-primary,
.product-recommend .pr-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.product-recommend .pr-btn-primary {
    background: #00D2B4;
    color: #0B0F19;
}

.product-recommend .pr-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -10px rgba(0, 210, 180, .6);
}

.product-recommend .pr-btn-ghost {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .15);
}

.product-recommend .pr-btn-ghost:hover {
    background: rgba(255, 255, 255, .14);
}

/* ==========================================================================
 * Prev/Next pager (.post-pager)
 *
 * Injected by article-recommend.js IMMEDIATELY AFTER .product-recommend.
 * Two cards side-by-side on desktop, stacked on mobile. Visually lighter
 * than .product-recommend (the dark product CTA) and aligned with the
 * .related-posts card family — light background, soft border, brand-
 * tinted hover. Per Blog Detail Page Spec §11.2 each card MUST carry direction
 * + the sibling article's real title + keyword pills, so crawlers and
 * readers both see substantial anchor context.
 * ========================================================================== */

.post-pager {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.post-pager .pp-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px 24px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px -10px rgba(15, 23, 42, .15);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    text-decoration-thickness: 0;
    text-underline-offset: 0;
}

.post-pager .pp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px -18px rgba(15, 23, 42, .35);
    border-color: rgba(0, 210, 180, .35);
}

.post-pager .pp-next {
    text-align: right;
    align-items: flex-end;
}

.post-pager .pp-direction {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #00897B;
    text-transform: uppercase;
    letter-spacing: .15em;
}

.post-pager .pp-direction i {
    font-size: 13px;
}

.post-pager .pp-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.45;
    /* Override .article-body h3 spacing so the card reads as a unit. */
    padding-bottom: 0;
    border-bottom: 0;
    margin-top: 0;
}

.post-pager .pp-card:hover .pp-title {
    color: #00897B;
}

.post-pager .pp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.post-pager .pp-next .pp-tags {
    justify-content: flex-end;
}

.post-pager .pp-tag {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #475569;
}

.post-pager .pp-empty {
    background: #f8fafc;
    border-style: dashed;
    border-color: #e2e8f0;
    box-shadow: none;
    cursor: default;
    opacity: .85;
}

.post-pager .pp-empty:hover {
    transform: none;
    box-shadow: none;
    border-color: #e2e8f0;
}

.post-pager .pp-empty .pp-direction {
    color: #94a3b8;
}

.post-pager .pp-empty-text {
    margin: 0;
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}

/* ==========================================================================
 * Related posts grid (.related-posts)
 *
 * Injected by article-recommend.js IMMEDIATELY AFTER .post-pager. Multi-
 * purpose panel: simultaneously fulfills the role of the legacy hand-
 * authored "Further Reading" block (now removed) AND the auto "Related Articles" grid —
 * one panel, one visual style, two responsibilities. Per § Blog Detail Page Spec
 * §11 cards MUST carry: category, full title, summary, action hint, and
 * the whole card MUST be a real <a href> so crawlers can follow.
 *
 * Visual style intentionally mirrors what used to be .related-reads:
 * light green-indigo gradient panel, brand-green eyebrow, soft card
 * grid — distinctly LIGHTER than .product-recommend (the dark product
 * CTA above it) so readers immediately see "this is more reading" vs
 * "this is the product CTA".
 * ========================================================================== */

.related-posts {
    margin-top: 32px;
    padding: 32px;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(0, 210, 180, .05), rgba(99, 102, 241, .04)),
        #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px -10px rgba(15, 23, 42, .15);
}

.related-posts .rp-header {
    margin-bottom: 24px;
}

.related-posts .rp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(0, 210, 180, .12);
    color: #00897B;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: 12px;
}

.related-posts .rp-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    line-height: 1.35;
    /* Override .article-body h2's decorative bottom-border treatment. */
    padding-bottom: 0;
    border-bottom: 0;
    margin-top: 0;
}

.related-posts .rp-title::before {
    content: none;
}

.related-posts .rp-desc {
    font-size: 14.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.7;
}

.related-posts .rp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.related-posts .rp-card {
    display: flex;
    flex-direction: column;
    padding: 20px 22px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    text-decoration-thickness: 0;
    text-underline-offset: 0;
}

.related-posts .rp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px -18px rgba(15, 23, 42, .35);
    border-color: rgba(0, 210, 180, .35);
}

.related-posts .rp-card-cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #00897B;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 10px;
}

.related-posts .rp-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.45;
    /* Override .article-body h3 spacing so the card reads as a unit. */
    padding-bottom: 0;
    border-bottom: 0;
    margin-top: 0;
}

.related-posts .rp-card-desc {
    font-size: 13.5px;
    color: #64748b;
    margin: 0 0 14px;
    line-height: 1.65;
    /* Soft visual clamp; the full text remains in the DOM so crawlers
     * still read it (per §11.3 / §11.4 — never physically truncate). */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-posts .rp-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.related-posts .rp-tag {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #475569;
}

.related-posts .rp-card-go {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #00897B;
    font-weight: 700;
    font-size: 13px;
    margin-top: auto;
}

.related-posts .rp-card:hover .rp-card-go {
    color: #00D2B4;
}

/* ==========================================================================
 * Floating download widget (injected by article-recommend.js)
 *
 * Visibility lifecycle (per Blog Detail Page Spec § 5):
 *   - Hidden by default.
 *   - Becomes visible when user scrolls past ~35% of article body height.
 *   - Closing only removes .visible (NO sessionStorage / localStorage), so
 *     re-entering the page always re-triggers it.
 * ========================================================================== */

.float-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 320px;
    padding: 20px 22px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 80% 0%, rgba(0, 210, 180, .25), transparent 60%),
        linear-gradient(135deg, #0B0F19 0%, #111827 100%);
    color: #fff;
    box-shadow: 0 18px 50px -12px rgba(15, 23, 42, .55);
    border: 1px solid rgba(255, 255, 255, .08);
    transform: translateY(20px) scale(.98);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s ease, opacity .35s ease;
    z-index: 70;
}

.float-widget.visible {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.float-widget .fw-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: 0;
    color: #cbd5e1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background .2s, color .2s;
}

.float-widget .fw-close:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

.float-widget .fw-eyebrow {
    font-size: 11px;
    font-weight: 700;
    color: #5eead4;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.float-widget .fw-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 6px;
    line-height: 1.4;
    color: #fff;
}

.float-widget .fw-desc {
    font-size: 13px;
    color: #cbd5e1;
    margin: 0 0 14px;
    line-height: 1.65;
}

.float-widget .fw-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 9999px;
    background: #00D2B4;
    color: #0B0F19;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}

.float-widget .fw-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -8px rgba(0, 210, 180, .55);
}

/* ==========================================================================
 * Responsive
 * ========================================================================== */

@media (max-width: 1024px) {
    .article-page-wrap {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }
    .article-sidebar {
        display: none;
    }
}

@media (max-width: 640px) {
    .article-page-wrap {
        padding: 32px 16px 56px;
    }
    .article-header {
        padding-bottom: 24px;
        margin-bottom: 28px;
    }
    .article-body {
        font-size: 16px;
    }
    .article-body h2 {
        font-size: 22px;
        margin-top: 40px;
    }
    .article-body h3 {
        font-size: 18px;
        margin-top: 28px;
    }
    .article-body table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .product-recommend {
        padding: 28px 22px;
    }
    .product-recommend .pr-title {
        font-size: 22px;
    }
    .inline-cta {
        padding: 22px;
    }
    /* Stack the prev/next pager vertically; "next" no longer right-aligns
     * because it sits below "prev" rather than next to it. */
    .post-pager {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    .post-pager .pp-next {
        text-align: left;
        align-items: flex-start;
    }
    .post-pager .pp-next .pp-tags {
        justify-content: flex-start;
    }
    .post-pager .pp-card {
        padding: 18px 20px;
    }

    .related-posts {
        padding: 24px 20px;
        margin-top: 24px;
    }
    .related-posts .rp-title {
        font-size: 19px;
    }

    /* On small screens the floating widget becomes a bottom banner so it
     * doesn't cover key reading area. */
    .float-widget {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        padding: 16px 18px;
    }
}
