/* blog-article.css
 * Extracted from src/templates/blog-article.html (Pacote C / PR-C)
 * Loaded by article pages as /css/blog-article.css
 */
/* PR-X4: scroll-driven (progressive; no HTML regen required) */
@import url('/css/blog-scroll-driven.css');

        /* Blog-specific rich styles - Pretext inspired */
        .blog-hero { background: #0f1d3a; color: white; padding: 2.5rem 0 2rem; transition: background 0.3s ease; }
        .blog-container { max-width: 1450px; margin: 0 auto; padding: 0 1.5rem; }

        /* Breadcrumb */
        .blog-breadcrumb { background: #f8fafc; border-bottom: 1px solid #e2e8f0; padding: 0.75rem 0; font-size: 0.875rem; color: #64748b; }
        .blog-breadcrumb a { color: #475569; text-decoration: none; transition: color 0.2s; }
        .blog-breadcrumb a:hover { color: #0052A3; text-decoration: underline; }
        .blog-breadcrumb .breadcrumb-sep { margin: 0 0.5rem; color: #cbd5e1; }
        .blog-breadcrumb .breadcrumb-current { color: #0f1d3a; font-weight: 600; }

        /* Article meta below H1 */
        .article-meta-bar { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin: 0.75rem 0 1.5rem; font-size: 0.9rem; color: #64748b; }
        .article-meta-bar .meta-dot { color: #cbd5e1; }
        .article-meta-bar .meta-badge { display: inline-flex; align-items: center; gap: 0.35rem; background: #eef6ff; color: #0052A3; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }

        /* Byline */
        .article-byline { display: flex; align-items: center; gap: 0.85rem; margin: 1.25rem 0 1.5rem; padding: 0.85rem 1rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; transition: background 0.3s ease, border-color 0.3s ease; }
        .article-byline-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: #e2e8f0; display: flex; align-items: center; justify-content: center; }
        .article-byline-avatar img { width: 100%; height: 100%; object-fit: cover; }
        .article-byline-avatar-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #64748b; font-size: 1.1rem; }
        .article-byline-body { display: flex; flex-direction: column; gap: 0.15rem; }
        .article-byline-author { font-weight: 700; font-size: 0.95rem; }
        .article-byline-author a { color: #0f1d3a; text-decoration: none; transition: color 0.2s ease; }
        .article-byline-author a:hover { color: #ff9d2f; }
        .article-byline-meta { font-size: 0.82rem; color: #64748b; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
        .article-byline-published { color: #64748b; }
        .article-byline-updated {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            background: #ecfdf5;
            color: #047857;
            border: 1px solid #a7f3d0;
            padding: 0.15rem 0.55rem;
            border-radius: 999px;
            font-style: normal;
            font-weight: 700;
            font-size: 0.78rem;
        }
        .article-byline-updated i { font-size: 0.72rem; }

        /* PR-P1 — editorial freshness + short changelog */
        .editorial-freshness {
            margin: 0 0 1.5rem;
            padding: 0.85rem 1rem;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
            background: #f8fafc;
        }
        .editorial-freshness--updated {
            border-color: #a7f3d0;
            background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 55%, #f8fafc 100%);
        }
        .editorial-freshness-main {
            display: flex;
            flex-wrap: wrap;
            align-items: baseline;
            gap: 0.45rem 0.75rem;
        }
        .editorial-freshness-label {
            font-size: 0.78rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            color: #047857;
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
        }
        .editorial-freshness-date {
            font-size: 0.95rem;
            font-weight: 700;
            color: #0f1d3a;
        }
        .editorial-changelog {
            margin-top: 0.75rem;
            border-top: 1px dashed #cbd5e1;
            padding-top: 0.65rem;
        }
        .editorial-changelog summary {
            cursor: pointer;
            list-style: none;
            font-size: 0.85rem;
            font-weight: 700;
            color: #334155;
            display: flex;
            align-items: center;
            gap: 0.4rem;
            user-select: none;
        }
        .editorial-changelog summary::-webkit-details-marker { display: none; }
        .editorial-changelog summary:hover { color: #0052A3; }
        .editorial-changelog-list {
            margin: 0.65rem 0 0;
            padding: 0 0 0 1.1rem;
            display: flex;
            flex-direction: column;
            gap: 0.45rem;
        }
        .editorial-changelog-list li {
            font-size: 0.86rem;
            color: #475569;
            line-height: 1.45;
        }
        .editorial-changelog-date {
            display: inline-block;
            min-width: 7.5rem;
            font-weight: 700;
            color: #0f1d3a;
            margin-right: 0.4rem;
        }
        .article-meta-bar .meta-updated {
            color: #047857;
            font-weight: 700;
        }

        body.theme-dark .editorial-freshness {
            background: #1e293b;
            border-color: #334155;
        }
        body.theme-dark .editorial-freshness--updated {
            background: linear-gradient(135deg, #064e3b 0%, #1e293b 70%);
            border-color: #059669;
        }
        body.theme-dark .editorial-freshness-label { color: #6ee7b7; }
        body.theme-dark .editorial-freshness-date { color: #f8fafc; }
        body.theme-dark .editorial-changelog { border-top-color: #334155; }
        body.theme-dark .editorial-changelog summary { color: #cbd5e1; }
        body.theme-dark .editorial-changelog-date { color: #f8fafc; }
        body.theme-dark .editorial-changelog-list li { color: #94a3b8; }
        body.theme-dark .article-byline-updated {
            background: #064e3b;
            border-color: #059669;
            color: #6ee7b7;
        }
        body.theme-sepia .editorial-freshness {
            background: #fdf6e3;
            border-color: #eee8d5;
        }
        body.theme-sepia .editorial-freshness--updated {
            background: #f5f0d8;
            border-color: #d6c690;
        }
        body.theme-sepia .editorial-freshness-label { color: #5c4d2e; }
        body.theme-sepia .article-byline-updated {
            background: #f5f0d8;
            border-color: #d6c690;
            color: #5c4d2e;
        }

        body.theme-dark .article-byline { background: #1e293b; border-color: #334155; }
        body.theme-dark .article-byline-author a { color: #f8fafc; }
        body.theme-dark .article-byline-author a:hover { color: #ff9d2f; }
        body.theme-dark .article-byline-avatar { background: #334155; }
        body.theme-dark .article-byline-avatar-fallback { color: #94a3b8; }
        body.theme-sepia .article-byline { background: #fdf6e3; border-color: #eee8d5; }
        body.theme-sepia .article-byline-author a { color: #073642; }
        body.theme-sepia .article-byline-avatar { background: #eee8d5; }

        /* Hero image inside article */
        .article-hero-image { margin: 0 0 2rem; border-radius: 12px; overflow: hidden; }
        .article-hero-image img { width: 100%; height: auto; max-height: 400px; object-fit: cover; display: block; }
        /* Artes com logotipo ou texto na borda não podem perder informação no limite padrão. */
        .article-hero-image--contain img { max-height: none; object-fit: contain; background: #0f1d3a; }
        .article-hero-image--contain.article-hero-image--light img { background: #f8fafc; }
        .article-inline-figure { margin: 1.25rem auto 1.5rem; text-align: center; }
        .article-inline-figure img { display: block; width: 100%; height: auto; margin: 0 auto; border-radius: 12px; }
        .article-inline-figure--medium { max-width: 42rem; }
        .article-inline-figure--compact { max-width: 32rem; }
        .article-inline-figure--small { max-width: 24rem; }
        .article-inline-figure--cover { max-width: 18rem; }

        /* CTA final do artigo: mantém contraste mesmo fora do CSS legado do template. */
        .blog-cta { margin: 2.5rem 0 1rem; padding: 1.5rem; border-radius: 14px; background: linear-gradient(135deg, #0f1d3a, #0052a3); color: #fff; }
        .blog-cta h3 { margin: 0 0 .75rem; color: #fff; font-size: 1.25rem; }
        .blog-cta .btn { display: inline-flex; align-items: center; padding: .65rem 1rem; border-radius: 999px; background: #fff; color: #0f1d3a; font-weight: 700; text-decoration: none; }
        .blog-cta .btn:hover { background: #ff9d2f; color: #0f1d3a; }
        .article-pros-cons-table { width: 100%; table-layout: fixed; }
        .article-pros-cons-table th, .article-pros-cons-table td { width: 50%; }
        .article-inline-figure figcaption { margin-top: 0.55rem; color: #64748b; font-size: 0.82rem; line-height: 1.4; }

        /* ── Terminal Summary Card ── */
        .terminal-summary {
            border-radius: 12px;
            overflow: hidden;
            margin-bottom: 2rem;
            font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
            transition: box-shadow 0.3s ease, transform 0.3s ease;
        }
        .terminal-summary:hover {
            transform: translateY(-1px);
        }
        .terminal-header {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.6rem 1rem;
            font-size: 0.8rem;
        }
        .terminal-dots {
            display: flex;
            gap: 0.4rem;
        }
        .term-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            display: inline-block;
        }
        .terminal-title {
            flex: 1;
            text-align: center;
            font-weight: 600;
            letter-spacing: 0.03em;
        }
        .terminal-close {
            background: none;
            border: none;
            font-size: 1.1rem;
            cursor: pointer;
            line-height: 1;
            padding: 0 0.2rem;
            transition: color 0.2s;
        }
        .terminal-body {
            padding: 1.25rem 1.25rem 1.25rem 1rem;
            font-size: 0.92rem;
            line-height: 1.7;
            min-height: 80px;
        }
        .terminal-body ul {
            margin: 0;
            padding: 0;
            list-style: none;
        }
        .terminal-body li {
            position: relative;
            padding-left: 1.4rem;
            margin-bottom: 0.6rem;
            opacity: 0;
            transform: translateY(4px);
            animation: termFadeIn 0.4s ease forwards;
        }
        .terminal-body li::before {
            content: '❯';
            position: absolute;
            left: 0;
            top: 0;
            font-weight: 700;
            font-size: 0.8rem;
        }
        .terminal-body li:nth-child(1) { animation-delay: 0.3s; }
        .terminal-body li:nth-child(2) { animation-delay: 0.7s; }
        .terminal-body li:nth-child(3) { animation-delay: 1.1s; }
        .terminal-body li:nth-child(4) { animation-delay: 1.5s; }
        .terminal-body li:nth-child(5) { animation-delay: 1.9s; }

        @keyframes termFadeIn {
            to { opacity: 1; transform: translateY(0); }
        }

        /* Cursor blink for typewriter effect */
        .term-cursor {
            display: inline-block;
            width: 8px;
            height: 1.1em;
            margin-left: 2px;
            vertical-align: text-bottom;
            animation: termBlink 1s step-end infinite;
        }
        @keyframes termBlink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0; }
        }

        /* ── DICAS Theme (Hermes-inspired) ── */
        .terminal-dicas {
            background: #f0f7ff;
            border: 2px double #0052A3;
            box-shadow: 0 4px 20px rgba(0,82,163,0.12), inset 0 0 0 1px rgba(0,82,163,0.08);
        }
        .terminal-dicas:hover {
            box-shadow: 0 8px 28px rgba(0,82,163,0.18), inset 0 0 0 1px rgba(0,82,163,0.12);
        }
        .terminal-dicas .terminal-header {
            background: #e1efff;
            border-bottom: 1px solid #b3d3ff;
            color: #4a6fa5;
        }
        .terminal-dicas .term-dot-red    { background: #0052A3; box-shadow: 0 0 4px rgba(0,82,163,0.35); }
        .terminal-dicas .term-dot-yellow { background: #3b82f6; box-shadow: 0 0 4px rgba(59,130,246,0.35); }
        .terminal-dicas .term-dot-green  { background: #60a5fa; box-shadow: 0 0 4px rgba(96,165,250,0.35); }
        .terminal-dicas .terminal-title { color: #0052A3; }
        .terminal-dicas .terminal-close { color: #6b8db5; }
        .terminal-dicas .terminal-close:hover { color: #0052A3; }
        .terminal-dicas .terminal-body { color: #1e3a5f; }
        .terminal-dicas .terminal-body li::before { color: #0052A3; }
        .terminal-dicas .term-cursor { background: #0052A3; }

        /* ── SONAR Theme (Dark neon) ── */
        .terminal-sonar {
            background: #0a0f1a;
            border: 1px solid #00ff8822;
            box-shadow: 0 4px 24px rgba(0,255,136,0.08), 0 0 0 1px rgba(0,255,136,0.06);
        }
        .terminal-sonar:hover {
            box-shadow: 0 8px 32px rgba(0,255,136,0.14), 0 0 0 1px rgba(0,255,136,0.1);
        }
        .terminal-sonar .terminal-header {
            background: #0f1525;
            border-bottom: 1px solid #1a2332;
            color: #5a7a8a;
        }
        .terminal-sonar .term-dot-red    { background: #ff3860; box-shadow: 0 0 4px rgba(255,56,96,0.4); }
        .terminal-sonar .term-dot-yellow { background: #ffdd57; box-shadow: 0 0 4px rgba(255,221,87,0.4); }
        .terminal-sonar .term-dot-green  { background: #00ff88; box-shadow: 0 0 4px rgba(0,255,136,0.4); }
        .terminal-sonar .terminal-title { color: #00ff88; font-family: 'Orbitron', 'Rajdhani', monospace; }
        .terminal-sonar .terminal-close { color: #5a7a8a; }
        .terminal-sonar .terminal-close:hover { color: #ff3860; }
        .terminal-sonar .terminal-body { color: #a8c5d9; }
        .terminal-sonar .terminal-body li::before { color: #00ff88; }
        .terminal-sonar .term-cursor { background: #00ff88; }

        /* ── Sidebar Product CTA Cards ── */
        .sidebar-products {
            padding: 0;
            background: transparent;
            border: none;
            border-radius: 0;
            box-shadow: none;
        }
        .sidebar-products h4 {
            margin: 0 0 0.75rem;
            font-size: 0.85rem;
            font-weight: 700;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            border-bottom: 1px solid #e2e8f0;
            padding-bottom: 0.4rem;
            transition: color 0.3s ease, border-color 0.3s ease;
        }
        .sidebar-product-card {
            display: flex;
            gap: 0.75rem;
            padding: 0.6rem;
            border-radius: 10px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            text-decoration: none;
            transition: all 0.2s ease;
            margin-bottom: 0.5rem;
        }
        .sidebar-product-card:last-child { margin-bottom: 0; }
        .sidebar-product-card:hover {
            background: #eef6ff;
            border-color: #93c5fd;
            transform: translateX(2px);
        }
        .sidebar-product-img {
            width: 56px;
            height: 56px;
            border-radius: 8px;
            overflow: hidden;
            flex-shrink: 0;
            background: #fff;
        }
        .sidebar-product-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .sidebar-product-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 0.15rem;
        }
        .sidebar-product-name {
            font-size: 0.82rem;
            font-weight: 600;
            color: #1e293b;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .sidebar-product-price {
            font-size: 0.85rem;
            font-weight: 700;
            color: #0052A3;
        }
        .sidebar-product-store {
            font-size: 0.7rem;
            color: #64748b;
        }
        .sidebar-product-store i { font-size: 0.65rem; margin-right: 0.2rem; }

        body.theme-dark .sidebar-products h4 { color: #94a3b8; border-color: #334155; }
        body.theme-dark .sidebar-product-card { background: #0f172a; border-color: #334155; }
        body.theme-dark .sidebar-product-card:hover { background: #1e3a5f; border-color: #3b82f6; }
        body.theme-dark .sidebar-product-name { color: #e2e8f0; }
        body.theme-dark .sidebar-product-price { color: #60a5fa; }
        body.theme-dark .sidebar-product-store { color: #94a3b8; }

        body.theme-sepia .sidebar-products h4 { color: #8a7a5a; border-color: #e8dcc8; }
        body.theme-sepia .sidebar-product-card { background: #f5ecd5; border-color: #e8dcc8; }
        body.theme-sepia .sidebar-product-card:hover { background: #eaddc5; border-color: #b8a070; }
        body.theme-sepia .sidebar-product-name { color: #4a4030; }
        body.theme-sepia .sidebar-product-price { color: #5c4d2e; }

        /* ── Compact product index (automatic, near article opening) ── */
        .article-products-strip {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            align-items: center;
            gap: 0.8rem 1rem;
            margin: 0.5rem 0 1.5rem;
            padding: 0.8rem 0;
            border-top: 1px solid #e2e8f0;
            border-bottom: 1px solid #e2e8f0;
        }
        .article-products-strip-label {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            color: #64748b;
            font-size: 0.74rem;
            font-weight: 800;
            letter-spacing: 0.045em;
            text-transform: uppercase;
            white-space: nowrap;
        }
        .article-products-strip-links {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-end;
            gap: 0.45rem;
            min-width: 0;
        }
        .article-product-link {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            flex: 0 1 220px;
            min-width: 0;
            max-width: min(100%, 220px);
            padding: 0.4rem 0.65rem;
            border: 1px solid #dbe4ee;
            border-radius: 999px;
            background: #fff;
            color: #334155;
            font-size: 0.8rem;
            font-weight: 700;
            line-height: 1.25;
            text-decoration: none;
            transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
        }
        .article-product-link span {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .article-product-link i {
            flex-shrink: 0;
            color: #94a3b8;
            font-size: 0.68rem;
        }
        .article-product-link:hover {
            border-color: #93b4d8;
            background: #f8fbff;
            color: #0052A3;
        }
        .article-product-link:hover i { color: #ff8a1f; }

        /* ── Inline Offer CTA: decision block ── */
        .offer-cta {
            border: 1px solid #dbe4ee;
            background: #f8fafc;
            border-radius: 16px;
            padding: 1.35rem;
            margin: 1.75rem 0;
            box-shadow: 0 10px 30px rgba(15, 29, 58, 0.07);
        }
        .offer-cta-headline {
            margin: 0 0 0.85rem;
            font-size: 1rem;
            font-weight: 800;
            color: #0f1d3a;
        }
        .offer-cta-grid {
            display: grid;
            gap: 0.85rem;
            grid-template-columns: minmax(190px, 220px);
            justify-content: start;
        }
        .offer-cta-compare .offer-cta-grid {
            grid-template-columns: repeat(auto-fit, minmax(190px, 220px));
            justify-content: start;
        }
        .offer-cta-card {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 0;
            height: 310px;
            max-height: 310px;
            overflow: hidden;
            padding: 0.55rem;
            background: #fff;
            border: 1px solid #dbe4ee;
            border-radius: 12px;
            color: inherit;
            text-decoration: none;
            transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
        }
        .offer-cta-card:hover {
            transform: translateY(-2px);
            border-color: #93b4d8;
            box-shadow: 0 10px 24px rgba(15, 29, 58, 0.11);
        }
        .offer-cta-badge {
            position: static;
            align-self: flex-start;
            display: inline-flex;
            align-items: center;
            max-width: 100%;
            padding: 0.18rem 0.55rem;
            border-radius: 999px;
            background: #eef2f7;
            color: #475569;
            font-size: 0.68rem;
            font-weight: 800;
            letter-spacing: 0.02em;
            white-space: normal;
        }
        .offer-cta-media {
            width: 100%;
            aspect-ratio: 4 / 3;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            margin-bottom: 0.75rem;
            border: 1px solid #edf2f7;
            border-radius: 9px;
            background: #fff;
            color: #cbd5e1;
            font-size: 2rem;
        }
        .offer-cta-image {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
        .offer-cta-info {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 0.28rem;
            flex: 1;
            min-width: 0;
            padding: 0 0.25rem 0.25rem;
        }
        .offer-cta-name {
            display: -webkit-box;
            min-height: 2.3em;
            max-height: 2.5em;
            overflow: hidden;
            color: #0f1d3a;
            font-size: 0.92rem;
            font-weight: 800;
            line-height: 1.25;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
        }
        .offer-cta-store {
            color: #64748b;
            font-size: 0.76rem;
            font-weight: 600;
        }
        .offer-cta-price {
            color: #0052A3;
            font-size: 0.95rem;
            font-weight: 900;
        }
        .offer-cta-old-price {
            margin-right: 0.35rem;
            color: #94a3b8;
            font-weight: 600;
        }
        .offer-cta-disclosure {
            margin: 0.8rem 0 0;
            color: #64748b;
            font-size: 0.73rem;
            line-height: 1.35;
        }
        /* PR-P5 — decision-point CTA (stronger cue, still non-intrusive) */
        .offer-cta-kicker {
            margin: 0 0 0.4rem;
            font-size: 0.72rem;
            font-weight: 800;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: #c25f00;
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }
        .offer-cta--decision {
            border-left: 4px solid #ff8a1f;
            background: linear-gradient(135deg, #fffaf5 0%, #ffffff 38%, #f8fafc 100%);
            box-shadow: 0 12px 32px rgba(15, 29, 58, 0.09);
        }
        .offer-cta--decision .offer-cta-headline {
            font-size: 1.05rem;
        }
        body.theme-dark .offer-cta-kicker { color: #fbbf24; }
        body.theme-dark .offer-cta--decision {
            border-color: #f59e0b;
            background: linear-gradient(135deg, #241b0b 0%, #111827 45%, #0f172a 100%);
        }
        body.theme-sepia .offer-cta--decision {
            border-color: #d6c690;
            background: linear-gradient(135deg, #f5f0d8 0%, #fdf6e3 100%);
        }
        body.theme-sepia .offer-cta-kicker { color: #5c4d2e; }
        @media (max-width: 720px) {
            .offer-cta-compare .offer-cta-grid {
                grid-template-columns: 1fr;
            }
        }
        body.theme-dark .offer-cta {
            background: #111827;
            border-color: #334155;
        }
        body.theme-dark .offer-cta-headline,
        body.theme-dark .offer-cta-name,
        body.theme-dark .offer-cta-price { color: #e2e8f0; }
        body.theme-dark .offer-cta-card {
            background: #0f172a;
            border-color: #334155;
        }
        body.theme-dark .offer-cta-media { background: #111827; border-color: #334155; }
        body.theme-dark .offer-cta-badge { background: #1e293b; color: #cbd5e1; }
        body.theme-dark .offer-cta-store,
        body.theme-dark .offer-cta-disclosure { color: #cbd5e1; }
        body.theme-sepia .offer-cta {
            background: #f7f0dc;
            border-color: #d6c690;
            box-shadow: none;
        }
        body.theme-sepia .offer-cta-card { border-color: #d6c690; }
        body.theme-sepia .offer-cta-headline,
        body.theme-sepia .offer-cta-name,
        body.theme-sepia .offer-cta-price { color: #4f3f16; }

        body.theme-dark .article-products-strip { border-color: #334155; }
        body.theme-dark .article-products-strip-label { color: #94a3b8; }
        body.theme-dark .article-product-link {
            background: #0f172a;
            border-color: #334155;
            color: #cbd5e1;
        }
        body.theme-dark .article-product-link:hover {
            background: #172033;
            border-color: #64748b;
            color: #f8fafc;
        }
        body.theme-sepia .article-products-strip { border-color: #e8dcc8; }
        body.theme-sepia .article-product-link {
            background: #fdf6e3;
            border-color: #d6c690;
            color: #5c4d2e;
        }

        @media (max-width: 720px) {
            .article-products-strip {
                grid-template-columns: 1fr;
                align-items: start;
                gap: 0.6rem;
            }
            .article-products-strip-links {
                flex-wrap: wrap;
                justify-content: flex-start;
                overflow: visible;
                padding-bottom: 0;
            }
            .article-product-link { flex: 1 1 140px; max-width: 220px; }
            .offer-cta { padding: 1rem; margin: 1.5rem 0; }
            .offer-cta-grid { grid-template-columns: minmax(128px, 180px); }
            .offer-cta-compare .offer-cta-grid {
                grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
            }
            .offer-cta-card { height: 280px; max-height: 280px; }
        }

        /* ── Mobile Bottom Drawer & FAB ── */
        .mobile-fab {
            display: none;
            position: fixed;
            bottom: 1.25rem;
            right: 1.25rem;
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background: #0052A3;
            color: #fff;
            border: none;
            box-shadow: 0 4px 16px rgba(0,82,163,0.35);
            cursor: pointer;
            font-size: 1.2rem;
            z-index: 1000;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .mobile-fab:hover { transform: scale(1.05); }
        .mobile-fab:active { transform: scale(0.95); }

        .mobile-drawer-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.4);
            z-index: 1001;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .mobile-drawer-overlay.open { display: block; opacity: 1; }

        .mobile-drawer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #fff;
            border-radius: 20px 20px 0 0;
            box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
            z-index: 1002;
            max-height: 80vh;
            transform: translateY(100%);
            transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            flex-direction: column;
        }
        .mobile-drawer.open { transform: translateY(0); }

        .mobile-drawer-handle {
            display: flex;
            justify-content: center;
            padding: 0.6rem 0;
            cursor: pointer;
        }
        .mobile-drawer-handle span {
            width: 36px;
            height: 4px;
            background: #cbd5e1;
            border-radius: 2px;
        }
        .mobile-drawer-content {
            overflow-y: auto;
            padding: 0 1.25rem 1.5rem;
            flex: 1;
        }
        .mobile-drawer-section {
            margin-bottom: 1.25rem;
        }
        .mobile-drawer-section h4 {
            margin: 0 0 0.6rem;
            font-size: 0.9rem;
            color: #0f1d3a;
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }
        .mobile-drawer-toc {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
        }
        .mobile-drawer-toc a {
            color: #475569;
            text-decoration: none;
            font-size: 0.88rem;
            padding: 0.35rem 0;
            border-bottom: 1px solid #f1f5f9;
            transition: color 0.2s;
        }
        .mobile-drawer-toc a:hover { color: #0052A3; }
        .mobile-drawer-toc a.active {
            color: #0052A3;
            font-weight: 700;
            border-left: 3px solid #0052A3;
            padding-left: 0.6rem;
        }

        body.theme-dark .mobile-drawer { background: #1e293b; }
        body.theme-dark .mobile-drawer-handle span { background: #475569; }
        body.theme-dark .mobile-drawer-section h4 { color: #f8fafc; }
        body.theme-dark .mobile-drawer-toc a { color: #cbd5e1; border-color: #334155; }
        body.theme-dark .mobile-drawer-toc a:hover { color: #60a5fa; }
        body.theme-dark .mobile-drawer-toc a.active { color: #60a5fa; border-left-color: #60a5fa; }

        body.theme-sepia .mobile-drawer { background: #fdf6e3; }
        body.theme-sepia .mobile-drawer-section h4 { color: #073642; }
        body.theme-sepia .mobile-drawer-toc a { color: #586e75; border-color: #eee8d5; }

        @media (max-width: 1023px) {
            /* Desktop sidebar stacks in 1-col grid — hide it; utilities live in the drawer */
            .blog-sidebar {
                display: none !important;
            }
            .mobile-fab {
                display: flex;
            }
            .mobile-drawer {
                /* Ensure drawer paints above header/FAB */
                z-index: 1002;
            }
        }

        /* Drawer comfort controls (replaces inline styles) */
        .mobile-drawer-themes {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
        }
        .mobile-drawer-theme-btn {
            flex: 1;
            height: 36px;
            border-radius: 8px;
            border: 1px solid #cbd5e1;
            cursor: pointer;
            font-size: 0.8rem;
            font-weight: 600;
        }
        .mobile-drawer-theme-btn[data-theme="light"] {
            background: #ffffff;
            color: #1e293b;
        }
        .mobile-drawer-theme-btn[data-theme="sepia"] {
            background: #fdf6e3;
            color: #586e75;
        }
        .mobile-drawer-theme-btn[data-theme="dark"] {
            background: #1a202c;
            color: #fff;
        }
        .mobile-drawer-focus-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
        }
        .mobile-drawer-focus-label {
            font-size: 0.85rem;
            font-weight: 600;
        }

        /* ── YouTube Video Section ── */
        .article-video-section {
            margin: 2.5rem 0;
            border-radius: 12px;
            overflow: hidden;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            box-shadow: 0 4px 12px rgba(0,0,0,0.06);
        }
        .article-video-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1rem;
            background: #f1f5f9;
            border-bottom: 1px solid #e2e8f0;
            font-size: 0.9rem;
            font-weight: 600;
            color: #dc2626;
        }
        .article-video-header i {
            font-size: 1.1rem;
        }
        .article-video-wrapper {
            position: relative;
            padding-bottom: 56.25%; /* 16:9 aspect ratio */
            height: 0;
            overflow: hidden;
        }
        .article-video-wrapper iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }

        /* Dark / Sepia theme overrides for video */
        body.theme-dark .article-video-section {
            background: #1e293b;
            border-color: #334155;
        }
        body.theme-dark .article-video-header {
            background: #0f172a;
            border-color: #334155;
            color: #f87171;
        }
        body.theme-sepia .article-video-section {
            background: #fdf6e3;
            border-color: #eee8d5;
        }
        body.theme-sepia .article-video-header {
            background: #f5ecd5;
            border-color: #eee8d5;
            color: #b45309;
        }

        /* Dark / Sepia theme overrides for Dicas terminal */
        body.theme-dark .terminal-dicas {
            background: #0d1b2a;
            border-color: #1a3a5c;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(26,58,92,0.3);
        }
        body.theme-dark .terminal-dicas .terminal-header {
            background: #13243a;
            border-color: #1a3a5c;
            color: #6b8db5;
        }
        body.theme-dark .terminal-dicas .terminal-body { color: #c9d8ec; }
        body.theme-dark .terminal-dicas .terminal-title { color: #60a5fa; }
        body.theme-dark .terminal-dicas .terminal-close { color: #6b8db5; }
        body.theme-dark .terminal-dicas .terminal-close:hover { color: #ff5f56; }
        body.theme-dark .terminal-dicas .term-cursor { background: #60a5fa; }

        body.theme-sepia .terminal-dicas {
            background: #e8dcc8;
            border-color: #b8a070;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1), inset 0 0 0 1px rgba(184,160,112,0.15);
        }
        body.theme-sepia .terminal-dicas .terminal-header {
            background: #dccfb8;
            border-color: #c4b28a;
            color: #7a6a4a;
        }
        body.theme-sepia .terminal-dicas .terminal-body { color: #4a4030; }
        body.theme-sepia .terminal-dicas .terminal-title { color: #5c4d2e; }
        body.theme-sepia .terminal-dicas .term-cursor { background: #5c4d2e; }

        /* Layout Grid */
        .blog-main { padding: 3rem 0; background: #fafafa; transition: background 0.3s ease; }
        .blog-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
        .blog-layout > * { min-width: 0; }
        .blog-content {
            min-width: 0;
            overflow-wrap: anywhere;
        }
        .terminal-summary { max-width: 100%; }
        @media (max-width: 1023px) {
            .blog-main,
            .blog-main .blog-container,
            .blog-layout,
            .blog-layout > div,
            .blog-content {
                width: 100%;
                max-width: 100%;
                min-width: 0;
                box-sizing: border-box;
            }
            .blog-main {
                overflow-x: clip; /* clip avoids sticky breakage that overflow:hidden causes */
            }
            .blog-content h1 {
                overflow-wrap: anywhere;
            }
        }
        @media (min-width: 1024px) {
            .blog-layout {
                grid-template-columns: minmax(0, 1fr) 300px;
                gap: 3.5rem;
                align-items: start;
            }
        }
        @media (min-width: 1400px) {
            .blog-layout {
                grid-template-columns: minmax(0, 1fr) 320px;
                gap: 5rem;
            }
        }

        /*
         * Sticky Sidebar (desktop ≥1024px)
         * - Sticky only on .blog-sidebar (NOT on .toc — nested sticky breaks / races header)
         * - top offsets sticky .main-header (75px in styles.css) + breathing room
         * - max-height keeps TOC+produtos+conforto roláveis dentro do viewport
         *
         * CRITICAL: global styles.css sets `html, body { overflow-x: hidden }`, which in
         * Chromium computes overflow-y to auto and breaks position:sticky. On blog pages we
         * use overflow-x: clip (no scroll containment) so sticky sticks to the viewport.
         */
        html:has(body.blog-article-page) {
            overflow-x: clip;
        }
        body.blog-article-page {
            overflow-x: clip;
        }
        /* Keep blog layout ancestors as non-scroll containers (sticky needs this). */
        body.blog-article-page .blog-main,
        body.blog-article-page .blog-main > .blog-container,
        body.blog-article-page .blog-layout {
            overflow: visible;
        }
        @media (max-width: 1023px) {
            /* Horizontal bleed control on small screens only — not on desktop sticky path */
            body.blog-article-page .blog-main {
                overflow-x: clip;
            }
        }

        .blog-sidebar {
            display: flex;
            flex-direction: column;
            gap: 1.75rem;
        }
        @media (min-width: 1024px) {
            .blog-sidebar {
                position: sticky;
                top: calc(75px + 1rem);
                align-self: start;
                max-height: calc(100vh - 75px - 2rem);
                overflow-y: auto;
                overscroll-behavior: contain;
                scrollbar-width: thin;
                z-index: 5;
            }
            .blog-sidebar::-webkit-scrollbar {
                width: 6px;
            }
            .blog-sidebar::-webkit-scrollbar-thumb {
                background: rgba(100, 116, 139, 0.35);
                border-radius: 999px;
            }
        }

        /* Premium Table of Contents (TOC) — static inside sticky sidebar */
        .toc {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            padding: 1.5rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
            transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
        }
        .toc h4 {
            font-size: 0.95rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #0f1d3a;
            margin-top: 0;
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid #edf2f7;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .toc h4::before {
            content: '\f0ca'; /* fa-list-ul */
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            color: #0052A3;
        }
        .toc-links {
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
        }
        .toc-links a {
            font-size: 0.92rem;
            color: #4a5568;
            text-decoration: none;
            transition: all 0.25s ease;
            line-height: 1.4;
            padding-left: 0.75rem;
            border-left: 2px solid transparent;
            font-weight: 500;
        }
        .toc-links a:hover {
            color: #0052A3;
            border-left-color: #3b82f6;
            padding-left: 0.95rem;
        }
        .toc-links a.active {
            color: #0052A3;
            border-left-color: #0052A3;
            font-weight: 700;
            padding-left: 0.95rem;
        }

        /* Theme support for TOC */
        body.theme-sepia .toc {
            background: #fdf6e3 !important;
            border-color: #eee8d5 !important;
        }
        body.theme-sepia .toc h4 {
            color: #073642 !important;
            border-bottom-color: #eee8d5 !important;
        }
        body.theme-sepia .toc h4::before {
            color: #b58900 !important;
        }
        body.theme-sepia .toc-links a {
            color: #586e75 !important;
        }
        body.theme-sepia .toc-links a:hover,
        body.theme-sepia .toc-links a.active {
            color: #b58900 !important;
            border-left-color: #b58900 !important;
        }

        body.theme-dark .toc {
            background: #1a202c !important;
            border-color: #2d3748 !important;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }
        body.theme-dark .toc h4 {
            color: #f7fafc !important;
            border-bottom-color: #2d3748 !important;
        }
        body.theme-dark .toc h4::before {
            color: #3182ce !important;
        }
        body.theme-dark .toc-links a {
            color: #a0aec0 !important;
        }
        body.theme-dark .toc-links a:hover,
        body.theme-dark .toc-links a.active {
            color: #3182ce !important;
            border-left-color: #3182ce !important;
        }

        /* Modern TTS Player Card */
        .blog-content {
            font-size: 1.15rem;
            line-height: 1.8;
            color: #2d3748;
            font-family: 'Source Sans Pro', system-ui, -apple-system, sans-serif;
            position: relative; /* Context for absolute positioned margin notes */
            transition: color 0.3s ease;
        }
        .blog-content h2 { font-size: 1.55rem; font-weight: 700; color: #0f1d3a; margin-top: 2.2rem; margin-bottom: 0.8rem; transition: color 0.3s ease; }
        .blog-content h3 { font-size: 1.25rem; font-weight: 700; color: #1e3a5f; margin-top: 1.8rem; margin-bottom: 0.6rem; transition: color 0.3s ease; }
        .blog-content p { margin-bottom: 1.5rem; transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease; }

        /* Reading Focus Mode (v1 + PR-R6 v2 line band) */
        .blog-content.reading-focus p:not(.focused-para),
        .blog-content.reading-focus h2:not(.focused-para),
        .blog-content.reading-focus h3:not(.focused-para),
        .blog-content.reading-focus figure:not(.focused-para),
        .blog-content.reading-focus .callout:not(.focused-para),
        .blog-content.reading-focus .blog-accordion:not(:has(.focused-para)),
        .blog-content.reading-focus .verdict-card:not(.focused-para),
        .blog-content.reading-focus .offer-cta:not(.focused-para),
        .blog-content.reading-focus .editorial-freshness:not(.focused-para),
        .blog-content.reading-focus .article-byline:not(.focused-para),
        .blog-content.reading-focus .article-meta-bar:not(.focused-para),
        .blog-content.reading-focus .article-hero-image:not(.focused-para) {
            opacity: 0.32;
            filter: blur(0.35px);
            transition: opacity 0.2s ease, filter 0.2s ease;
        }
        .blog-content.reading-focus p.focused-para,
        .blog-content.reading-focus h2.focused-para,
        .blog-content.reading-focus h3.focused-para,
        .blog-content.reading-focus figure.focused-para,
        .blog-content.reading-focus .callout.focused-para {
            opacity: 1;
            transform: scale(1.004);
            filter: none;
            position: relative;
            z-index: 2;
        }

        /* PR-R6: highlight band for the active visual line inside the focused paragraph */
        .focus-line-band {
            position: absolute;
            left: 0;
            right: 0;
            z-index: 1;
            pointer-events: none;
            border-radius: 6px;
            background: linear-gradient(
                90deg,
                rgba(0, 82, 163, 0.1) 0%,
                rgba(255, 157, 47, 0.12) 50%,
                rgba(0, 82, 163, 0.08) 100%
            );
            box-shadow: inset 3px 0 0 #0052A3, 0 0 0 1px rgba(0, 82, 163, 0.08);
            opacity: 0;
            transition: opacity 0.12s ease, top 0.08s ease;
        }
        .focus-line-band.is-visible {
            opacity: 1;
        }
        .blog-content.reading-focus--v2 {
            cursor: default;
        }
        body.theme-dark .focus-line-band {
            background: linear-gradient(
                90deg,
                rgba(96, 165, 250, 0.12) 0%,
                rgba(255, 157, 47, 0.1) 50%,
                rgba(96, 165, 250, 0.08) 100%
            );
            box-shadow: inset 3px 0 0 #60a5fa, 0 0 0 1px rgba(96, 165, 250, 0.12);
        }
        body.theme-sepia .focus-line-band {
            background: linear-gradient(
                90deg,
                rgba(181, 137, 0, 0.12) 0%,
                rgba(203, 75, 22, 0.08) 100%
            );
            box-shadow: inset 3px 0 0 #b58900;
        }
        body.theme-dark .blog-content.reading-focus p:not(.focused-para),
        body.theme-dark .blog-content.reading-focus h2:not(.focused-para),
        body.theme-dark .blog-content.reading-focus h3:not(.focused-para) {
            opacity: 0.28;
        }

        /* Hover Sync Highlight */
        .pretext-line-hover {
            background: rgba(0, 82, 163, 0.05);
            border-radius: 6px;
            box-shadow: -6px 0 0 #0052A3;
            padding-left: 0.5rem;
        }

        /* Chips with micro-interactions (PR-X1: atomic via prepareRichInline at build) */
        .chip {
            display: inline-flex;
            align-items: center;
            padding: 0.15em 0.65em;
            background: #eff6ff;
            color: #0052A3;
            border-radius: 9999px;
            font-size: 0.85em;
            font-weight: 700;
            line-height: 1.25;
            white-space: nowrap;
            border: 1px solid #bfdbfe;
            vertical-align: middle;
            margin: 0 0.15em;
            transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
            cursor: help;
            max-width: 100%;
            box-decoration-break: clone;
            -webkit-box-decoration-break: clone;
        }
        .chip:hover {
            transform: scale(1.06);
            background: #0052A3;
            color: #ffffff;
            border-color: #0052A3;
            box-shadow: 0 4px 10px rgba(0, 82, 163, 0.2);
        }
        .chip:focus-visible {
            outline: 2px solid #0052A3;
            outline-offset: 2px;
        }
        .chip.important { background: #fef3c7; color: #92400e; border-color: #fcd34d; }
        .chip.important:hover { background: #d97706; color: #fff; border-color: #d97706; }
        .chip.danger { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
        .chip.danger:hover { background: #dc2626; color: #fff; border-color: #dc2626; }
        /* Debug: show measured px when ?pretextDebug=1 (class set by JS) */
        body.pretext-debug .chip[data-pretext-chip]::after {
            content: ' ' attr(data-chip-occupied-width) 'px';
            font-size: 0.7em;
            font-weight: 600;
            opacity: 0.65;
            margin-left: 0.25em;
        }

        /* Premium Callouts */
        .callout {
            border-left: 5px solid; padding: 1.1rem 1.4rem; border-radius: 14px;
            margin: 1.75rem 0; font-size: 0.98rem;
            transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease, opacity 0.3s ease;
            position: relative; overflow: hidden;
            box-shadow: 0 4px 12px rgba(0,0,0,0.02);
            border: 1px solid #e2e8f0;
            border-left-width: 5px;
        }
        .callout:hover { transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.06); }
        .callout-success { background: #f0fdf4; border-color: #22c55e; color: #14532d; }
        .callout-tip { background: #eff6ff; border-color: #3b82f6; color: #1e3a8a; }
        .callout-alert { background: #fef2f2; border-color: #ef4444; color: #7f1d1d; }
        .callout-gold { background: #fffbeb; border-color: #d97706; color: #78350f; }

        /* Responsive Table Wrapper & Premium Table Styles (PR-P4) */
        .table-wrapper {
            position: relative;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            margin: 2rem 0;
            border-radius: 12px;
            border: 1px solid #edf2f7;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
            background: #ffffff;
            transition: all 0.3s ease;
            max-width: 100%;
            scrollbar-width: thin;
            scrollbar-color: #94a3b8 transparent;
        }
        .table-wrapper:focus-visible {
            outline: 2px solid #0052A3;
            outline-offset: 2px;
        }
        /* Scroll hint on the right edge (multi-column tables) */
        .table-wrapper--scroll::after {
            content: '';
            position: sticky;
            right: 0;
            top: 0;
            display: block;
            width: 0;
            height: 0;
            pointer-events: none;
        }
        .table-wrapper--scroll {
            background:
                linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) left center / 28px 100% no-repeat,
                linear-gradient(to left, #fff 30%, rgba(255,255,255,0)) right center / 28px 100% no-repeat,
                #fff;
            background-attachment: local, local, scroll;
        }

        .blog-content table,
        .blog-content table.blog-table {
            width: 100%;
            min-width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            text-align: left;
            font-size: 0.95rem;
            line-height: 1.5;
        }
        .table-wrapper--scroll .blog-content table,
        .table-wrapper--scroll table {
            min-width: 520px;
        }
        .table-wrapper--compare table {
            min-width: 640px;
        }

        .blog-content th {
            background-color: #0f1d3a;
            color: #ffffff;
            font-weight: 700;
            padding: 1rem 1.25rem;
            letter-spacing: 0.02em;
            white-space: nowrap;
        }

        .blog-content td {
            padding: 1rem 1.25rem;
            border-bottom: 1px solid #edf2f7;
            color: #4a5568;
            font-weight: 500;
            transition: background-color 0.2s ease;
            vertical-align: top;
        }

        /* Divisores verticais tornam a leitura cruzada de comparativos inequívoca. */
        .blog-content th:not(:last-child),
        .blog-content td:not(:last-child) {
            border-right: 1px solid #dbe4ee;
        }

        .blog-content tr:last-child td {
            border-bottom: none;
        }

        .blog-content tr:nth-child(even) td {
            background-color: #f7fafc;
        }

        .blog-content tr:hover td {
            background-color: rgba(0, 82, 163, 0.05);
            color: #0f1d3a;
        }

        /* Listas editoriais ficam visualmente subordinadas ao tópico que as introduz. */
        .blog-content > ul,
        .blog-content > ol {
            margin: 0.75rem 0 1.5rem;
            padding: 0;
            list-style: none;
            display: grid;
            gap: 0.55rem;
        }
        .blog-content > ul > li,
        .blog-content > ol > li {
            position: relative;
            margin: 0;
            padding: 0.7rem 0.85rem 0.7rem 1.15rem;
            border-left: 3px solid #93c5fd;
            border-radius: 0 9px 9px 0;
            background: #f8fafc;
            color: #334155;
        }
        .blog-content > ol { counter-reset: article-list; }
        .blog-content > ol > li { counter-increment: article-list; padding-left: 2.25rem; }
        .blog-content > ol > li::before {
            content: counter(article-list);
            position: absolute;
            left: 0.7rem;
            top: 0.7rem;
            font-weight: 800;
            color: #0052A3;
        }

        /* Sticky first column — keep "Recurso" visible while scrolling sideways */
        .table-wrapper--scroll th:first-child,
        .table-wrapper--scroll td:first-child {
            position: sticky;
            left: 0;
            z-index: 2;
            min-width: 7.5rem;
            max-width: 11rem;
            box-shadow: 4px 0 8px -4px rgba(15, 23, 42, 0.18);
        }
        .table-wrapper--scroll th:first-child {
            z-index: 3;
            background-color: #0f1d3a;
        }
        .table-wrapper--scroll td:first-child {
            background-color: #fff;
            font-weight: 700;
            color: #0f1d3a;
        }
        .table-wrapper--scroll tr:nth-child(even) td:first-child {
            background-color: #f7fafc;
        }
        .table-wrapper--scroll tr:hover td:first-child {
            background-color: #eef6ff;
        }

        @media (max-width: 640px) {
            .blog-content th,
            .blog-content td {
                padding: 0.75rem 0.85rem;
                font-size: 0.86rem;
            }
            .table-wrapper--scroll table {
                min-width: 480px;
            }
            .table-wrapper--compare table {
                min-width: 540px;
            }
            .table-wrapper--scroll th:first-child,
            .table-wrapper--scroll td:first-child {
                min-width: 6.25rem;
                max-width: 8.5rem;
            }
        }

        /* Sepia Theme for Tables */
        body.theme-sepia .table-wrapper {
            border-color: #eee8d5;
            background: #fdf6e3;
        }
        body.theme-sepia .table-wrapper--scroll {
            background:
                linear-gradient(to right, #fdf6e3 30%, rgba(253,246,227,0)) left center / 28px 100% no-repeat,
                linear-gradient(to left, #fdf6e3 30%, rgba(253,246,227,0)) right center / 28px 100% no-repeat,
                #fdf6e3;
            background-attachment: local, local, scroll;
        }
        body.theme-sepia .blog-content th {
            background-color: #5c3d24;
            color: #fdf6e3;
        }
        body.theme-sepia .blog-content td {
            border-bottom-color: #eee8d5;
            color: #586e75;
        }
        body.theme-sepia .blog-content tr:nth-child(even) td {
            background-color: #f5ecd5;
        }
        body.theme-sepia .blog-content tr:hover td {
            background-color: rgba(92, 61, 36, 0.04);
            color: #5c3d24;
        }
        body.theme-sepia .table-wrapper--scroll th:first-child {
            background-color: #5c3d24;
        }
        body.theme-sepia .table-wrapper--scroll td:first-child {
            background-color: #fdf6e3;
            color: #073642;
        }
        body.theme-sepia .table-wrapper--scroll tr:nth-child(even) td:first-child {
            background-color: #f5ecd5;
        }

        /* Dark Theme for Tables */
        body.theme-dark .table-wrapper {
            border-color: #2d3748;
            background: #1a202c;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        body.theme-dark .table-wrapper--scroll {
            background:
                linear-gradient(to right, #1a202c 30%, rgba(26,32,44,0)) left center / 28px 100% no-repeat,
                linear-gradient(to left, #1a202c 30%, rgba(26,32,44,0)) right center / 28px 100% no-repeat,
                #1a202c;
            background-attachment: local, local, scroll;
        }
        body.theme-dark .blog-content th {
            background-color: #2d3748;
            color: #e2e8f0;
        }
        body.theme-dark .blog-content td {
            border-bottom-color: #2d3748;
            color: #cbd5e0;
        }
        body.theme-dark .blog-content tr:nth-child(even) td {
            background-color: #232d3f;
        }
        body.theme-dark .blog-content tr:hover td {
            background-color: rgba(255, 255, 255, 0.04);
            color: #ffffff;
        }
        body.theme-dark .table-wrapper--scroll th:first-child {
            background-color: #2d3748;
        }
        body.theme-dark .table-wrapper--scroll td:first-child {
            background-color: #1a202c;
            color: #f8fafc;
        }
        body.theme-dark .table-wrapper--scroll tr:nth-child(even) td:first-child {
            background-color: #232d3f;
        }
        body.theme-dark .table-wrapper--scroll tr:hover td:first-child {
            background-color: #1e293b;
        }

        .reading-progress {
            position: fixed; top: 0; left: 0; height: 5px;
            background: linear-gradient(to right, #0052A3, #ff9d2f);
            z-index: 9999; transition: width 0.1s ease-out;
            box-shadow: 0 1px 3px rgba(0, 82, 163, 0.3);
        }
        /* PR-R7: line X of Y chip under the progress bar */
        .reading-progress-meta {
            position: fixed;
            top: 8px;
            right: 12px;
            z-index: 9999;
            pointer-events: none;
        }
        .reading-progress-meta[hidden] {
            display: none !important;
        }
        .reading-progress-meta-text {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.28rem 0.65rem;
            border-radius: 999px;
            font-size: 0.72rem;
            font-weight: 800;
            letter-spacing: 0.02em;
            color: #0f1d3a;
            background: rgba(255, 255, 255, 0.92);
            border: 1px solid rgba(226, 232, 240, 0.95);
            box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
            backdrop-filter: blur(6px);
            font-variant-numeric: tabular-nums;
        }
        .reading-progress-meta-text::before {
            content: '';
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: linear-gradient(135deg, #0052A3, #ff9d2f);
            flex-shrink: 0;
        }
        @media (max-width: 640px) {
            .reading-progress-meta {
                top: auto;
                bottom: 4.75rem; /* above mobile FAB */
                right: 0.75rem;
            }
            .reading-progress-meta-text {
                font-size: 0.68rem;
                padding: 0.25rem 0.55rem;
            }
        }
        body.theme-dark .reading-progress-meta-text {
            color: #f8fafc;
            background: rgba(30, 41, 59, 0.92);
            border-color: #334155;
        }
        body.theme-sepia .reading-progress-meta-text {
            color: #073642;
            background: rgba(253, 246, 227, 0.95);
            border-color: #eee8d5;
        }

        /* .toc styles live in the "Premium Table of Contents" block above.
           Do not reintroduce position:sticky here — only .blog-sidebar sticks. */

        /* === RichNote (Pretext Layer 2) === */
        .richnote {
            border-left: 4px solid #64748b;
            background: #f8fafc;
            padding: 0.95rem 1.15rem;
            border-radius: 12px;
            margin: 1.5rem 0;
            font-size: 0.92rem;
            line-height: 1.6;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            position: relative;
            border: 1px solid #e2e8f0;
            border-left-width: 4px;
            box-shadow: 0 3px 8px rgba(0,0,0,0.01);
        }
        .richnote:hover { transform: translateX(3px); box-shadow: 0 6px 15px rgba(0,0,0,0.04); }
        .richnote-interactive { cursor: pointer; }

        .richnote-inline { border-left-color: #0052A3; background: #f0f7ff; }
        .richnote-margin { border-left-color: #d97706; background: #fffbeb; }
        .richnote-callout { border-left-color: #16a34a; background: #f0fdf4; }

        .richnote-subtle { opacity: 0.94; }
        .richnote-important { border-left-color: #dc2626; background: #fef2f2; border-color: #fecaca; border-left-width: 4px; }
        .richnote-gold { border-left-color: #d97706; background: #fffbeb; border-color: #fde68a; border-left-width: 4px; }
        .richnote-tip { border-left-color: #0052A3; background: #eff6ff; border-color: #bfdbfe; border-left-width: 4px; }

        .richnote-header { display: flex; align-items: center; gap: 0.4rem; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.82rem; }
        .richnote-label { color: #475569; }
        .richnote-body { color: #334155; }
.richnote-line-ref { display: none; }

        /* Marginalia floating notes on desktop */
        @media (min-width: 1400px) {
            .richnote.richnote-margin {
                position: absolute;
                right: -255px;
                width: 230px;
                margin: 0;
                box-shadow: 0 10px 25px rgba(0,0,0,0.04);
                background: #ffffff;
                z-index: 100;
            }
            .richnote.richnote-margin:hover {
                transform: translateX(8px) scale(1.02);
                z-index: 101;
                box-shadow: 0 12px 30px rgba(0,0,0,0.06);
            }
            /* Connect lines affordance */
            .richnote.richnote-margin::before {
                content: '';
                position: absolute;
                left: -15px;
                top: 50%;
                width: 10px;
                height: 1px;
                background: #cbd5e1;
                opacity: 0;
                transition: opacity 0.2s;
            }
            .richnote.richnote-margin:hover::before {
                opacity: 0.8;
            }
        }

        .richnote.richnote-hover,
        .richnote.richnote-highlighted {
            transform: translateX(8px) scale(1.02);
            border-left-color: #0052A3 !important;
            box-shadow: 0 10px 25px rgba(0, 82, 163, 0.1) !important;
            background: #f0f7ff !important;
        }

        /*
         * G2 mobile notes:
         * - full margin asides hidden (desktop-only layout)
         * - compact pill chips in the article (label only)
         * - drawer list = TOC-style links (label only)
         * - full text in bottom sheet on tap
         */
        @media (max-width: 1399px) {
            .richnote.richnote-margin.richnote-mobile-drawer-only,
            .richnote.richnote-margin.richnote-mobile-flow {
                position: absolute !important;
                width: 1px !important;
                height: 1px !important;
                padding: 0 !important;
                margin: -1px !important;
                overflow: hidden !important;
                clip: rect(0, 0, 0, 0) !important;
                clip-path: inset(50%) !important;
                border: 0 !important;
                white-space: nowrap !important;
                pointer-events: none !important;
            }
        }

        .richnote-mobile-chip-wrap {
            display: none;
            margin: -0.35rem 0 1rem;
        }
        @media (max-width: 1399px) {
            .richnote-mobile-chip-wrap {
                display: block;
            }
        }
        .richnote-mobile-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            max-width: 100%;
            padding: 0.28rem 0.7rem;
            border-radius: 999px;
            border: 1px solid #fcd34d;
            background: #fffbeb;
            color: #92400e;
            font-size: 0.78rem;
            font-weight: 700;
            line-height: 1.2;
            cursor: pointer;
            font-family: inherit;
        }
        .richnote-mobile-chip:hover,
        .richnote-mobile-chip:focus-visible {
            background: #fef3c7;
            border-color: #f59e0b;
            outline: none;
        }
        .richnote-mobile-chip i {
            font-size: 0.72rem;
            opacity: 0.85;
        }

        /* Drawer notes: same look as TOC links, not yellow “cards” */
        .mobile-drawer-notes .mobile-drawer-toc a.mobile-drawer-note-link {
            display: block;
            padding: 0.55rem 0;
            border-bottom: 1px solid #e2e8f0;
            color: #92400e;
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 700;
        }
        .mobile-drawer-notes .mobile-drawer-toc a.mobile-drawer-note-link:last-child {
            border-bottom: none;
        }
        .mobile-drawer-notes .mobile-drawer-toc a.mobile-drawer-note-link:hover {
            color: #b45309;
        }
        body.theme-dark .mobile-drawer-notes .mobile-drawer-toc a.mobile-drawer-note-link {
            color: #fbbf24;
            border-color: #334155;
        }
        body.theme-dark .richnote-mobile-chip {
            background: #422006;
            border-color: #b45309;
            color: #fde68a;
        }

        /* Centered dialog with full note text */
        .mobile-note-sheet-backdrop {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 12000;
            background: rgba(15, 23, 42, 0.56);
            backdrop-filter: blur(2px);
        }
        .mobile-note-sheet-backdrop.is-open {
            display: block;
        }
        .mobile-note-sheet {
            display: none;
            position: fixed;
            left: 50%;
            top: 50%;
            z-index: 12010;
            width: min(calc(100% - 2rem), 520px);
            max-height: min(80vh, 620px);
            overflow: auto;
            background: #fff;
            border-radius: 16px;
            box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
            padding: 1rem 1.1rem 1.2rem;
            opacity: 0;
            transform: translate(-50%, -46%) scale(0.98);
            transition: transform 0.2s ease, opacity 0.2s ease;
        }
        .mobile-note-sheet.is-open {
            display: block;
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
        .mobile-note-sheet-handle {
            display: none;
        }
        .mobile-note-sheet-handle span {
            width: 36px;
            height: 4px;
            border-radius: 99px;
            background: #cbd5e1;
        }
        .mobile-note-sheet-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            margin-bottom: 0.65rem;
        }
        .mobile-note-sheet-title {
            margin: 0;
            font-size: 1rem;
            font-weight: 800;
            color: #92400e;
        }
        .mobile-note-sheet-close {
            border: none;
            background: #f1f5f9;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            font-size: 1.25rem;
            line-height: 1;
            cursor: pointer;
            color: #475569;
        }
        .mobile-note-sheet-body {
            font-size: 0.92rem;
            line-height: 1.55;
            color: #334155;
        }
        .mobile-note-sheet-body p:last-child {
            margin-bottom: 0;
        }
        body.mobile-note-dialog-open {
            overflow: hidden;
        }
        body.theme-dark .mobile-note-sheet {
            background: #1e293b;
        }
        body.theme-dark .mobile-note-sheet-title {
            color: #fbbf24;
        }
        body.theme-dark .mobile-note-sheet-body {
            color: #cbd5e1;
        }
        body.theme-dark .mobile-note-sheet-close {
            background: #334155;
            color: #e2e8f0;
        }

        @media (min-width: 1400px) {
            .richnote.richnote-margin {
                padding-right: 2.6rem;
            }
            .richnote-desktop-toggle {
                position: absolute;
                top: 0.55rem;
                right: 0.55rem;
                display: inline-grid;
                place-items: center;
                width: 28px;
                height: 28px;
                padding: 0;
                border: 1px solid #e2e8f0;
                border-radius: 50%;
                background: rgba(255, 255, 255, 0.92);
                color: #64748b;
                font-family: inherit;
                font-size: 1.1rem;
                font-weight: 700;
                line-height: 1;
                cursor: pointer;
            }
            .richnote-desktop-toggle:hover,
            .richnote-desktop-toggle:focus-visible {
                border-color: #d97706;
                color: #92400e;
                outline: none;
            }
            .richnote.richnote-margin.richnote-collapsed {
                right: -67px !important;
                width: 42px !important;
                min-height: 42px;
                padding: 0 !important;
                border-left-width: 1px;
                overflow: hidden;
            }
            .richnote.richnote-margin.richnote-collapsed .richnote-header,
            .richnote.richnote-margin.richnote-collapsed .richnote-body,
            .richnote.richnote-margin.richnote-collapsed .richnote-line-ref,
            .richnote.richnote-margin.richnote-collapsed::before {
                display: none !important;
            }
            .richnote.richnote-margin.richnote-collapsed .richnote-desktop-toggle {
                inset: 6px;
            }
            body.theme-dark .richnote-desktop-toggle {
                border-color: #475569;
                background: rgba(30, 41, 59, 0.95);
                color: #cbd5e1;
            }
            .richnote-mobile-chip-wrap,
            .mobile-note-sheet,
            .mobile-note-sheet-backdrop {
                display: none !important;
            }
        }

        @media (max-width: 1399px) {
            .richnote-desktop-toggle { display: none !important; }
        }

        /* G8 — decision TOC */
        .toc-decisions {
            margin-top: 1rem;
            padding-top: 0.85rem;
            border-top: 1px dashed #e2e8f0;
        }
        .toc-decisions h5 {
            margin: 0 0 0.5rem;
            font-size: 0.72rem;
            font-weight: 800;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: #64748b;
        }
        .toc-decisions .toc-links a {
            color: #0052A3;
            font-weight: 700;
        }
        .mobile-drawer-decisions .mobile-drawer-toc a {
            border-left-color: #ff9d2f;
        }

        /* G7 print button in comfort panel */
        .blog-print-actions {
            display: flex;
            gap: 0.4rem;
            margin-top: 0.65rem;
        }
        .blog-print-actions button {
            flex: 1;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 0.4rem 0.5rem;
            border-radius: 8px;
            border: 1px solid #cbd5e1;
            background: #f8fafc;
            color: #0f1d3a;
            cursor: pointer;
        }
        .blog-print-actions button:hover {
            border-color: #0052A3;
            color: #0052A3;
        }

        /* Flash animation */
        .pretext-line-flash {
            animation: pretextFlash 1.4s ease-out;
            background: rgba(255, 193, 7, 0.18) !important;
            border-radius: 4px;
        }
        @keyframes pretextFlash {
            0% { background: rgba(255, 193, 7, 0.35); }
            100% { background: transparent; }
        }

        /* Theme Buttons and Controls */
        .theme-btn.active {
            border-color: #0052A3 !important;
            background-color: #eef6ff !important;
            box-shadow: 0 0 0 2px rgba(0,82,163,0.15);
        }
        .switch-toggle input:checked + .slider {
            background-color: #0052A3 !important;
        }
        .switch-toggle .slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .3s;
            border-radius: 50%;
        }
        .switch-toggle input:checked + .slider:before {
            transform: translateX(22px);
        }

        /* --- Theme Styling --- */
        body.theme-sepia {
            background-color: #fdf6e3 !important;
            color: #586e75 !important;
        }
        body.theme-sepia .blog-main {
            background-color: #f6efe0 !important;
        }
        body.theme-sepia .blog-content {
            color: #586e75 !important;
        }
        body.theme-sepia .toc,
        body.theme-sepia .reading-controls-panel,
        body.theme-sepia .summary-audio-bar {
            background-color: #fdf6e3 !important;
            border-color: #eee8d5 !important;
            color: #586e75 !important;
        }
        body.theme-sepia .blog-content h2,
        body.theme-sepia .blog-content h3,
        body.theme-sepia .toc h4,
        body.theme-sepia .reading-controls-panel h4 {
            color: #073642 !important;
        }
        body.theme-sepia .richnote {
            background-color: #fcf8ee !important;
            border-color: #eee8d5 !important;
            color: #586e75 !important;
        }
        body.theme-sepia .richnote-body { color: #657b83 !important; }

        body.theme-dark {
            background-color: #1a202c !important;
            color: #cbd5e1 !important;
        }
        body.theme-dark .blog-main {
            background-color: #121720 !important;
        }
        body.theme-dark .blog-content {
            color: #cbd5e1 !important;
        }
        body.theme-dark .toc,
        body.theme-dark .reading-controls-panel,
        body.theme-dark .summary-audio-bar {
            background-color: #1a202c !important;
            border-color: #2d3748 !important;
            color: #cbd5e1 !important;
        }
        body.theme-dark .blog-content h2,
        body.theme-dark .blog-content h3,
        body.theme-dark .toc h4,
        body.theme-dark .reading-controls-panel h4 {
            color: #f7fafc !important;
        }
        body.theme-dark .summary-audio-bar {
            background: #232d3f !important;
            border-color: #3182ce !important;
        }
        body.theme-dark .richnote {
            background: #2d3748 !important;
            border-color: #4a5568 !important;
            color: #cbd5e1 !important;
        }
        body.theme-dark .richnote-body {
            color: #cbd5e1 !important;
        }
        body.theme-dark .richnote-label {
            color: #94a3b8 !important;
        }
        body.theme-dark .richnote-inline { border-left-color: #3182ce !important; }
        body.theme-dark .richnote-margin { border-left-color: #dd6b20 !important; }
        body.theme-dark .richnote-callout { border-left-color: #38a169 !important; }
        body.theme-dark .richnote-important { border-left-color: #e53e3e !important; }
        body.theme-dark .richnote-gold { border-left-color: #dd6b20 !important; }
        body.theme-dark .richnote-tip { border-left-color: #3182ce !important; }

        /* Premium Accordion details/summary styling */
        details.accordion-card {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            margin-bottom: 1.25rem;
            padding: 0;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
        }
        details.accordion-card[open] {
            border-color: #0052A3;
            box-shadow: 0 8px 20px rgba(0, 82, 163, 0.05);
        }
        details.accordion-card summary {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.25rem 1.5rem;
            font-weight: 700;
            font-size: 1.1rem;
            color: #0f1d3a;
            cursor: pointer;
            list-style: none;
            user-select: none;
            outline: none;
            transition: background-color 0.2s ease, color 0.2s ease;
        }
        details.accordion-card summary::-webkit-details-marker {
            display: none;
        }
        details.accordion-card summary:hover {
            background-color: #f7fafc;
            color: #0052A3;
        }
        details.accordion-card summary::after {
            content: '\f078'; /* FontAwesome angle-down */
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            font-size: 0.95rem;
            color: #64748b;
            transition: transform 0.3s ease, color 0.3s ease;
        }
        details.accordion-card[open] summary {
            border-bottom: 1px solid #edf2f7;
            background-color: #f8fafc;
            color: #0052A3;
        }
        details.accordion-card[open] summary::after {
            transform: rotate(180deg);
            color: #0052A3;
        }
        details.accordion-card .accordion-content {
            padding: 1.5rem;
            background-color: #ffffff;
            color: #2d3748;
            line-height: 1.75;
        }
        details.accordion-card .accordion-content p:last-child {
            margin-bottom: 0;
        }

        /* Theme support for accordions */
        body.theme-sepia details.accordion-card {
            background-color: #fdf6e3 !important;
            border-color: #eee8d5 !important;
        }
        body.theme-sepia details.accordion-card[open] {
            border-color: #b58900 !important;
        }
        body.theme-sepia details.accordion-card summary {
            color: #586e75 !important;
        }
        body.theme-sepia details.accordion-card summary:hover {
            background-color: #eee8d5 !important;
            color: #b58900 !important;
        }
        body.theme-sepia details.accordion-card[open] summary {
            border-bottom-color: #eee8d5 !important;
            background-color: #f5edd5 !important;
            color: #b58900 !important;
        }
        body.theme-sepia details.accordion-card[open] summary::after {
            color: #b58900 !important;
        }
        body.theme-sepia details.accordion-card .accordion-content {
            background-color: #fdf6e3 !important;
            color: #586e75 !important;
        }

        body.theme-dark details.accordion-card {
            background-color: #1a202c !important;
            border-color: #2d3748 !important;
        }
        body.theme-dark details.accordion-card[open] {
            border-color: #3182ce !important;
        }
        body.theme-dark details.accordion-card summary {
            color: #cbd5e1 !important;
        }
        body.theme-dark details.accordion-card summary:hover {
            background-color: #2d3748 !important;
            color: #3182ce !important;
        }
        body.theme-dark details.accordion-card[open] summary {
            border-bottom-color: #2d3748 !important;
            background-color: #232d3f !important;
            color: #3182ce !important;
        }
        body.theme-dark details.accordion-card[open] summary::after {
            color: #3182ce !important;
        }
        body.theme-dark details.accordion-card .accordion-content {
            background-color: #1a202c !important;
            color: #cbd5e1 !important;
        }

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

        /* Premium Checklist Card */
        .checklist-card {
            background: linear-gradient(135deg, #f8fafc, #eff6ff);
            border: 2px dashed #3b82f6;
            border-radius: 20px;
            padding: 2rem;
            margin: 2.5rem 0;
            box-shadow: 0 10px 30px rgba(59, 130, 246, 0.05);
            position: relative;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .checklist-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(59, 130, 246, 0.1);
            border-color: #0052A3;
        }
        .checklist-card h3 {
            margin-top: 0 !important;
            color: #0f1d3a !important;
            font-size: 1.35rem;
            display: flex;
            align-items: center;
            gap: 0.6rem;
            border-bottom: 2px solid #edf2f7;
            padding-bottom: 0.75rem;
            margin-bottom: 1rem;
        }
        .checklist-card h3::before {
            content: '\f0ae'; /* fa-tasks */
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            color: #ff9d2f;
        }
        .checklist-card ul {
            list-style: none !important;
            padding-left: 0 !important;
            margin: 0;
            display: grid;
            grid-template-columns: 1fr;
            gap: 0.85rem;
        }
        @media (min-width: 640px) {
            .checklist-card ul {
                grid-template-columns: 1fr 1fr;
                gap: 1rem;
            }
        }
        .checklist-card li {
            position: relative;
            padding-left: 1.75rem;
            font-size: 0.95rem;
            line-height: 1.4;
            color: #334155;
            transition: transform 0.2s ease;
        }
        .checklist-card li:hover {
            transform: translateX(4px);
            color: #0f1d3a;
        }
        .checklist-card li i {
            position: absolute;
            left: 0;
            top: 0.15rem;
            color: #10b981;
            font-size: 1.1rem;
            transition: transform 0.2s ease;
        }
        .checklist-card li:hover i {
            transform: scale(1.2);
        }
        .checklist-footer {
            margin-top: 1.5rem;
            padding-top: 1rem;
            border-top: 1px dashed #bfdbfe;
            font-size: 0.9rem;
            color: #475569;
            line-height: 1.5;
        }

        /* Sepia Theme for Checklist */
        body.theme-sepia .checklist-card {
            background: linear-gradient(135deg, #fdf6e3, #f5ecd5);
            border-color: #b58900;
            box-shadow: 0 10px 30px rgba(181, 137, 0, 0.05);
        }
        body.theme-sepia .checklist-card h3 {
            color: #5c3d24 !important;
            border-bottom-color: #eee8d5;
        }
        body.theme-sepia .checklist-card h3::before {
            color: #b58900;
        }
        body.theme-sepia .checklist-card li {
            color: #586e75;
        }
        body.theme-sepia .checklist-card li i {
            color: #859900;
        }
        body.theme-sepia .checklist-footer {
            border-top-color: #eee8d5;
            color: #657b83;
        }

        /* Dark Theme for Checklist */
        body.theme-dark .checklist-card {
            background: linear-gradient(135deg, #1e293b, #0f172a);
            border-color: #3b82f6;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }
        body.theme-dark .checklist-card h3 {
            color: #f8fafc !important;
            border-bottom-color: #334155;
        }
        body.theme-dark .checklist-card h3::before {
            color: #38bdf8;
        }
        body.theme-dark .checklist-card li {
            color: #94a3b8;
        }
        body.theme-dark .checklist-card li i {
            color: #34d399;
        }
        body.theme-dark .checklist-footer {
            border-top-color: #334155;
            color: #64748b;
        }

        /* expert tips */
        .expert-tips-section { max-width: 100%; margin: 3rem 0 2rem; padding: 2.5rem 0; border-top: 1px solid #edf2f7; }
        .article-group-block__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
        .article-group-block__title { margin: 0; font-size: 1.35rem; font-weight: 700; color: #0f1d3a; transition: color 0.3s ease; }
        .article-group-block__link { color: #0052A3; text-decoration: none; font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; }
        .article-group-block__link:hover { text-decoration: underline; color: #ff9d2f; }
        .article-group-block__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
        .article-tile { display: flex; flex-direction: column; text-decoration: none; color: #111; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; transition: all .25s ease; height: 100%; }
        .article-tile:hover { box-shadow: 0 8px 20px rgba(0,0,0,.06); transform: translateY(-3px); }
        .article-tile__image { width: 100%; aspect-ratio: 5/3; overflow: hidden; position: relative; background: #f3f4f6; }
        .article-tile__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
        .article-tile__body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
        .article-tile__heading { margin: 0 0 .5rem; font-size: 0.98rem; font-weight: 700; line-height: 1.35; color: #0f1d3a; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s ease; }
        .article-tile:hover .article-tile__heading { color: #ff9d2f; }
        .article-tile__lead { margin: 0; font-size: .82rem; color: #475569; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

        /* products we love */
        .products-love-section { padding: 2rem 0; max-width: 100%; margin: 2rem 0 3rem; }
        .products-love-section h3 { font-size: 1.35rem; font-weight: 700; margin: 0 0 1.25rem; color: #0f1d3a; transition: color 0.3s ease; }
        .products-love-scroll { display: flex; gap: 1.25rem; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; padding: 0.5rem 0.25rem 1rem; scrollbar-width: none; }
        .products-love-scroll::-webkit-scrollbar { display: none; }
        .products-love-scroll__wrapper { position: relative; margin: 0 -0.25rem; }
        .products-love-scroll__wrapper .scroll-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 2px 8px rgba(0,0,0,.1); cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; color: #374151; font-size: .9rem; transition: all .2s; }
        .products-love-scroll__wrapper .scroll-btn:hover { background: #f8f9fa; color: #0052A3; }
        .products-love-scroll__wrapper .scroll-btn:disabled { opacity: .3; cursor: not-allowed; }
        .products-love-scroll__wrapper .scroll-btn--prev { left: -18px; }
        .products-love-scroll__wrapper .scroll-btn--next { right: -18px; }
        .product-love-card { flex: 0 0 auto; width: 220px; scroll-snap-align: start; text-decoration: none; color: #111; cursor: pointer; padding: .5rem; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; transition: all .25s ease; display: flex; flex-direction: column; }
        .product-love-card:hover { background: #f8f9fa; border-color: #bfdbfe; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.04); }
        .product-love-card__img { width: 100%; aspect-ratio: 1/1; background: #fff; border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: .5rem; border: 1px solid #edf2f7; }
        .product-love-card__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
        .product-love-card__merchant { font-size: .7rem; color: #6b7280; margin: 0 0 .15rem; display: inline-flex; align-items: center; gap: .2rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
        .product-love-card__merchant .open-new-icon { width: 10px; height: 10px; opacity: .6; }
        .product-love-card__title { font-size: .82rem; font-weight: 600; color: #0f1d3a; margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.3s ease; }
        .product-love-card:hover .product-love-card__title { color: #0052A3; }
        .product-love-viewall { flex: 0 0 auto; width: 220px; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; padding: 1rem; border-radius: 8px; border: 1px dashed #d1d5db; background: #fafafa; text-decoration: none; color: #111; transition: all 0.2s ease; }
        .product-love-viewall:hover { background: #f3f4f6; border-style: solid; border-color: #0052A3; }
        .product-love-viewall__title { font-size: 0.95rem; font-weight: 700; color: #0f1d3a; margin: 0; line-height: 1.35; transition: color 0.3s ease; }
        .product-love-viewall__btn { display: inline-block; padding: .45rem 1rem; background: #0052A3; color: #fff; border-radius: 9999px; font-size: .75rem; font-weight: 700; text-decoration: none; margin-top: auto; align-self: flex-start; transition: background .2s; }
        .product-love-viewall__btn:hover { background: #ff9d2f; }

        @media (max-width: 768px) {
            .article-group-block__tiles { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
            .product-love-card, .product-love-viewall { width: 180px; }
        }
        @media (max-width: 480px) {
            .article-group-block__tiles { grid-template-columns: 1fr; }
        }

        /* Sepia Theme for recommended sections */
        body.theme-sepia .expert-tips-section { border-top-color: #eee8d5; }
        body.theme-sepia .article-group-block__title,
        body.theme-sepia .products-love-section h3,
        body.theme-sepia .product-love-viewall__title { color: #5c3d24 !important; }
        body.theme-sepia .article-group-block__link,
        body.theme-sepia .product-love-viewall__btn { background: #5c3d24; color: #fdf6e3; }
        body.theme-sepia .product-love-viewall__btn:hover { background: #b58900; }
        body.theme-sepia .article-group-block__link { background: transparent; color: #b58900; }
        body.theme-sepia .article-group-block__link:hover { color: #5c3d24; }
        body.theme-sepia .article-tile,
        body.theme-sepia .product-love-card { background: #fdf6e3; border-color: #eee8d5; color: #586e75; }
        body.theme-sepia .product-love-card__img { background: #fdf6e3; border-color: #eee8d5; }
        body.theme-sepia .article-tile:hover,
        body.theme-sepia .product-love-card:hover { background: #f5ecd5; border-color: #b58900; }
        body.theme-sepia .article-tile__heading,
        body.theme-sepia .product-love-card__title { color: #5c3d24; }
        body.theme-sepia .article-tile__lead,
        body.theme-sepia .product-love-card__merchant { color: #586e75; }
        body.theme-sepia .product-love-viewall { background: #fcf8ee; border-color: #eee8d5; }
        body.theme-sepia .product-love-viewall:hover { background: #f5ecd5; border-color: #b58900; }
        body.theme-sepia .products-love-scroll__wrapper .scroll-btn { background: #fdf6e3; border-color: #eee8d5; color: #586e75; }
        body.theme-sepia .products-love-scroll__wrapper .scroll-btn:hover { background: #f5ecd5; color: #b58900; }

        /* Dark Theme for recommended sections */
        body.theme-dark .expert-tips-section { border-top-color: #2d3748; }
        body.theme-dark .article-group-block__title,
        body.theme-dark .products-love-section h3,
        body.theme-dark .product-love-viewall__title { color: #f7fafc !important; }
        body.theme-dark .article-group-block__link,
        body.theme-dark .product-love-viewall__btn { background: #3182ce; color: #ffffff; }
        body.theme-dark .product-love-viewall__btn:hover { background: #ff9d2f; }
        body.theme-dark .article-group-block__link { background: transparent; color: #3182ce; }
        body.theme-dark .article-group-block__link:hover { color: #ff9d2f; }
        body.theme-dark .article-tile,
        body.theme-dark .product-love-card { background: #1a202c; border-color: #2d3748; color: #cbd5e0; }
        body.theme-dark .product-love-card__img { background: #1a202c; border-color: #2d3748; }
        body.theme-dark .article-tile:hover,
        body.theme-dark .product-love-card:hover { background: #232d3f; border-color: #3182ce; }
        body.theme-dark .article-tile__heading,
        body.theme-dark .product-love-card__title { color: #f7fafc; }
        body.theme-dark .article-tile:hover .article-tile__heading,
        body.theme-dark .product-love-card:hover .product-love-card__title { color: #ff9d2f; }
        body.theme-dark .article-tile__lead,
        body.theme-dark .product-love-card__merchant { color: #cbd5e0; }
        body.theme-dark .product-love-viewall { background: #1a202c; border-color: #2d3748; }
        body.theme-dark .product-love-viewall:hover { background: #232d3f; border-color: #3182ce; }
        body.theme-dark .products-love-scroll__wrapper .scroll-btn { background: #1a202c; border-color: #2d3748; color: #e2e8f0; }
        body.theme-dark .products-love-scroll__wrapper .scroll-btn:hover { background: #232d3f; color: #3182ce; }

        /* ===== MINI TTS (inside comfort panel) ===== */
        .mini-tts {
            display: flex;
            align-items: center;
            gap: 0.65rem;
            padding: 0.6rem 0.75rem;
            background: linear-gradient(135deg, #0f1d3a, #1e3a5f);
            border-radius: 10px;
            margin-bottom: 0.85rem;
            position: relative;
            overflow: hidden;
            transition: box-shadow 0.3s ease;
        }
        .mini-tts:hover { box-shadow: 0 3px 12px rgba(15,29,58,0.12); }
        .mini-tts.playing { box-shadow: 0 3px 16px rgba(255,157,47,0.25); }
        .mini-tts-btn {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #ffffff;
            color: #0f1d3a;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            flex-shrink: 0;
            transition: all 0.2s ease;
            z-index: 1;
        }
        .mini-tts-btn:hover {
            transform: scale(1.08);
            background: #ff9d2f;
            color: #ffffff;
        }
        .mini-tts-info {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            z-index: 1;
        }
        .mini-tts-info span {
            font-size: 0.78rem;
            font-weight: 600;
            color: #ffffff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .mini-tts-progress-track {
            width: 100%;
            height: 3px;
            background: rgba(255,255,255,0.2);
            border-radius: 2px;
            overflow: hidden;
        }
        .mini-tts-progress-bar {
            height: 100%;
            background: #ff9d2f;
            border-radius: 2px;
            transition: width 0.1s linear;
        }
        .mini-tts[data-tts-mode="chunk"] .mini-tts-progress-bar {
            background: linear-gradient(90deg, #ff9d2f, #fbbf24);
        }

        /* ── PR-X2: TTS karaoke highlights ── */
        body.tts-karaoke-playing .blog-content .tts-active-block {
            background: rgba(255, 157, 47, 0.06);
            border-radius: 8px;
            box-shadow: inset 3px 0 0 #ff9d2f;
            transition: background 0.2s ease, box-shadow 0.2s ease;
        }
        .blog-content span.tts-w {
            border-radius: 3px;
            transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
        }
        .blog-content span.tts-w.is-active {
            background: #ff9d2f;
            color: #0f1d3a;
            box-shadow: 0 0 0 2px rgba(255, 157, 47, 0.35);
            font-weight: 700;
        }
        body.theme-dark.tts-karaoke-playing .blog-content .tts-active-block {
            background: rgba(255, 157, 47, 0.12);
            box-shadow: inset 3px 0 0 #fbbf24;
        }
        body.theme-dark .blog-content span.tts-w.is-active {
            background: #fbbf24;
            color: #0f172a;
        }
        body.theme-sepia.tts-karaoke-playing .blog-content .tts-active-block {
            background: rgba(203, 75, 22, 0.08);
            box-shadow: inset 3px 0 0 #cb4b16;
        }
        body.theme-sepia .blog-content span.tts-w.is-active {
            background: #cb4b16;
            color: #fdf6e3;
        }
        @media (prefers-reduced-motion: reduce) {
            .blog-content span.tts-w,
            body.tts-karaoke-playing .blog-content .tts-active-block {
                transition: none;
            }
            .blog-content span.tts-w.is-active {
                box-shadow: none;
            }
        }

        /* ===== COLLAPSIBLE COMFORT PANEL ===== */
        .comfort-toggle {
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            user-select: none;
            margin-top: 0;
            margin-bottom: 0.75rem;
            font-size: 0.95rem;
            color: #0f1d3a;
            border-bottom: 1px solid #e2e8f0;
            padding-bottom: 0.5rem;
            transition: color 0.3s ease;
        }
        .comfort-toggle:hover { color: #0052A3; }
        .comfort-chevron {
            font-size: 0.75rem;
            color: #94a3b8;
            transition: transform 0.3s ease, color 0.3s ease;
        }
        .comfort-toggle:hover .comfort-chevron { color: #64748b; }
        .comfort-content {
            overflow: hidden;
            transition: max-height 0.35s ease, opacity 0.25s ease;
            max-height: 600px;
            opacity: 1;
        }
        .comfort-content.collapsed {
            max-height: 0;
            opacity: 0;
        }
        .comfort-content.collapsed * { pointer-events: none; }
        .comfort-chevron.rotated { transform: rotate(180deg); }

        body.theme-sepia .mini-tts {
            background: linear-gradient(135deg, #5c3d24, #3e2713);
        }
        body.theme-sepia .mini-tts-btn { color: #3e2713; }
        body.theme-dark .mini-tts {
            background: linear-gradient(135deg, #0f172a, #1e293b);
        }
        body.theme-dark .mini-tts-btn { color: #0f172a; }
        body.theme-dark .comfort-toggle { color: #f7fafc; border-bottom-color: #2d3748; }
        body.theme-sepia .comfort-toggle { color: #073642; border-bottom-color: #eee8d5; }

/* ── PR-P2 Verdict / score card ── */
.verdict-card {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 1rem 1.1rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.verdict-card-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}
.verdict-card-top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.55rem;
}
.verdict-card-score {
    flex-shrink: 0;
    min-width: 4.25rem;
    height: 4.25rem;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0f1d3a;
    color: #fff;
    line-height: 1;
}
.verdict-card-score-value {
    font-size: 1.55rem;
    font-weight: 900;
}
.verdict-card-score-max {
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.75;
    margin-top: 0.15rem;
}
.verdict-card-label {
    font-size: 1rem;
    font-weight: 800;
    color: #0f1d3a;
    line-height: 1.25;
}
.verdict-card-title {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 0.15rem;
    line-height: 1.35;
}
.verdict-card-summary {
    margin: 0.35rem 0 0.55rem;
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.5;
}
.verdict-card-meta {
    font-size: 0.78rem;
    color: #64748b;
    margin-bottom: 0.55rem;
}
.verdict-card-meta span {
    font-weight: 700;
    color: #475569;
    margin-right: 0.25rem;
}
.verdict-card-list {
    margin-top: 0.55rem;
}
.verdict-card-list-heading {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}
.verdict-card-list ul {
    margin: 0;
    padding-left: 1.05rem;
}
.verdict-card-list li {
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.4;
    margin-bottom: 0.2rem;
}
.verdict-card-pros .verdict-card-list-heading { color: #047857; }
.verdict-card-cons .verdict-card-list-heading { color: #b45309; }

/* Tone by score ratio */
.verdict-card--great .verdict-card-score { background: linear-gradient(145deg, #047857, #059669); }
.verdict-card--good .verdict-card-score { background: linear-gradient(145deg, #0052A3, #2563eb); }
.verdict-card--mixed .verdict-card-score { background: linear-gradient(145deg, #b45309, #d97706); }
.verdict-card--low .verdict-card-score { background: linear-gradient(145deg, #b91c1c, #dc2626); }
.verdict-card--neutral .verdict-card-score { background: #0f1d3a; }

.verdict-card--great { border-color: #a7f3d0; }
.verdict-card--good { border-color: #bfdbfe; }

/* Ficha técnica: dados curtos em grade, sem a leitura cansativa de listas longas. */
.article-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 1rem 0 1.35rem;
}
.article-spec-grid__item {
    min-width: 0;
    padding: 0.7rem 0.8rem;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #f8fafc;
}
.article-spec-grid dt {
    margin: 0 0 0.16rem;
    color: #52606d;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.article-spec-grid dd {
    margin: 0;
    color: #18263a;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.35;
}
@media (max-width: 640px) {
    .article-spec-grid { grid-template-columns: 1fr; }
}
body.theme-dark .article-spec-grid__item { background: #1e293b; border-color: #334155; }
body.theme-dark .article-spec-grid dt { color: #94a3b8; }
body.theme-dark .article-spec-grid dd { color: #e2e8f0; }
body.theme-sepia .article-spec-grid__item { background: #fdf6e3; border-color: #eee8d5; }
body.theme-sepia .article-spec-grid dt { color: #657b83; }
body.theme-sepia .article-spec-grid dd { color: #073642; }

/* Inline: only mobile (sidebar hidden ≤1023px) */
.verdict-card--inline {
    display: none;
    margin: 0 0 1.5rem;
}
@media (max-width: 1023px) {
    .verdict-card--inline {
        display: block;
    }
}

/* Sidebar variant sits in sticky column */
.verdict-card--sidebar {
    order: -1;
}

.verdict-card--drawer {
    padding: 0.85rem 0.9rem;
    box-shadow: none;
}
.verdict-card--drawer .verdict-card-score {
    min-width: 3.5rem;
    height: 3.5rem;
}
.verdict-card--drawer .verdict-card-score-value {
    font-size: 1.25rem;
}

body.theme-dark .verdict-card {
    background: #1e293b;
    border-color: #334155;
}
body.theme-dark .verdict-card-label { color: #f8fafc; }
body.theme-dark .verdict-card-title,
body.theme-dark .verdict-card-meta,
body.theme-dark .verdict-card-kicker { color: #94a3b8; }
body.theme-dark .verdict-card-summary,
body.theme-dark .verdict-card-list li { color: #cbd5e1; }

body.theme-sepia .verdict-card {
    background: #fdf6e3;
    border-color: #eee8d5;
}
body.theme-sepia .verdict-card-label { color: #073642; }

/* ── PR-P3 Blog accordion (details/summary, progressive) ── */
.blog-accordion {
    margin: 1.5rem 0 1.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.blog-accordion[open] {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
.blog-accordion-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1.15rem;
    font-weight: 800;
    font-size: 0.98rem;
    color: #0f1d3a;
    background: #f8fafc;
    user-select: none;
    transition: background 0.2s ease;
}
.blog-accordion-summary::-webkit-details-marker { display: none; }
.blog-accordion-summary:hover { background: #f1f5f9; }
.blog-accordion-summary:focus-visible {
    outline: 2px solid #0052A3;
    outline-offset: -2px;
}
.blog-accordion-title {
    flex: 1;
    line-height: 1.35;
}
.blog-accordion-icon {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}
.blog-accordion[open] .blog-accordion-icon {
    transform: rotate(180deg);
    background: #0052A3;
    color: #fff;
}
.blog-accordion-body {
    padding: 0.25rem 1.15rem 1.15rem;
    border-top: 1px solid #edf2f7;
}
.blog-accordion-body > :first-child { margin-top: 0.85rem; }
.blog-accordion-body > :last-child { margin-bottom: 0; }
/* Keep list markers inside the accordion's reading gutter instead of against its border. */
.blog-accordion-body > ul,
.blog-accordion-body > ol {
    margin-left: 0;
    padding-inline-start: 1.65rem;
}
/* Tables inside accordion use the same wrapper styles when enhanced by the generator */
.blog-accordion-body .table-wrapper {
    margin: 1rem 0 0.25rem;
}
.blog-accordion-body table {
    width: 100%;
}
.blog-accordion--faq .blog-accordion-summary {
    background: #eff6ff;
}
.blog-accordion--faq[open] .blog-accordion-icon {
    background: #2563eb;
}

body.theme-dark .blog-accordion {
    background: #1e293b;
    border-color: #334155;
}
body.theme-dark .blog-accordion-summary {
    background: #0f172a;
    color: #f8fafc;
}
body.theme-dark .blog-accordion-summary:hover { background: #1e293b; }
body.theme-dark .blog-accordion-body { border-top-color: #334155; }
body.theme-dark .blog-accordion-icon { background: #334155; color: #cbd5e1; }
body.theme-dark .blog-accordion[open] .blog-accordion-icon {
    background: #3b82f6;
    color: #fff;
}
body.theme-dark .blog-accordion--faq .blog-accordion-summary {
    background: #1e3a5f;
}

body.theme-sepia .blog-accordion {
    background: #fdf6e3;
    border-color: #eee8d5;
}
body.theme-sepia .blog-accordion-summary {
    background: #f5f0d8;
    color: #073642;
}
body.theme-sepia .blog-accordion-body { border-top-color: #eee8d5; }

/* PR-R2 re-anchor status (debug / pilot) */
.richnote.richnote-margin[data-reanchor-status="miss"] {
    opacity: 0.55;
    outline: 1px dashed #f59e0b;
}
.richnote.richnote-margin[data-reanchor-status="ok"] {
    /* subtle confirmation in pilot — no loud UI */
}

/* PR-R3 — share bubble + toast for line deep links */
.pretext-share-bubble {
    position: absolute;
    z-index: 10050;
    display: none;
    padding: 0;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    background: #0f1d3a;
    transform: translateY(-4px);
}
.pretext-share-bubble.is-visible {
    display: block;
    animation: pretextShareIn 0.16s ease-out;
}
@keyframes pretextShareIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(-4px); }
}
.pretext-share-bubble-btn {
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.55rem 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}
.pretext-share-bubble-btn:hover {
    color: #ff9d2f;
}
.pretext-share-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%) translateY(12px);
    z-index: 10060;
    background: #0f1d3a;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.pretext-share-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
body.theme-dark .pretext-share-bubble,
body.theme-dark .pretext-share-toast {
    background: #1e293b;
    border: 1px solid #334155;
}

/* PR-R5 — margin note collision affordances */
@media (min-width: 1400px) {
    .blog-content {
        /* room for absolute marginalia without clipping body width */
        overflow: visible;
    }
    .richnote.richnote-margin.richnote-collision {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    }
    .richnote.richnote-margin.richnote-collision-far {
        border-style: dashed;
    }
    .richnote.richnote-margin.richnote-collision-far .richnote-line-ref::after {
        content: ' · deslocada';
        color: #d97706;
    }
}
