/* IBeGI leitura de noticias (extraido do <style> inline de feed.xhtml) */
            /* Reading Experience Styles */
            body { 
                transition: background-color 0.3s, color 0.3s; 
                margin: 0; 
                padding: 0; 
            }
            .theme-light { background-color: #ffffff; color: #333333; }
            .theme-dark { background-color: #121212; color: #e0e0e0; }
            .theme-sepia { background-color: #f4ecd8; color: #5b4636; }
            
            .font-sans .article-title, .font-sans .article-text, .font-sans .article-text * { font-family: 'Inter', sans-serif !important; }
            .font-serif .article-title, .font-serif .article-text, .font-serif .article-text * { font-family: 'Merriweather', serif !important; }
            .font-roboto .article-title, .font-roboto .article-text, .font-roboto .article-text * { font-family: 'Roboto', sans-serif !important; }
            .font-lora .article-title, .font-lora .article-text, .font-lora .article-text * { font-family: 'Lora', serif !important; }
            .font-mono .article-title, .font-mono .article-text, .font-mono .article-text * { font-family: 'Courier New', monospace !important; }

            /* Ensure inheritance in the article body */
            .font-sans .article-text, .font-sans .article-title, .font-sans .semana-closing-wrapper { font-family: 'Inter', sans-serif; }
            .font-serif .article-title, .font-serif .article-text, .font-serif .semana-closing-wrapper { font-family: 'Merriweather', serif; }
            .font-roboto .article-title, .font-roboto .article-text, .font-roboto .semana-closing-wrapper { font-family: 'Roboto', sans-serif; }
            .font-lora .article-title, .font-lora .article-text, .font-lora .semana-closing-wrapper { font-family: 'Lora', serif; }
            .font-mono .article-title, .font-mono .article-text, .font-mono .semana-closing-wrapper { font-family: 'Courier New', monospace; }

            /* Reading theme tokens for weekly editorial closing blocks */
            .theme-light {
                --semana-divider: rgba(15, 23, 42, 0.12);
                --semana-surface: #f8fafc;
                --semana-card-bg: #ffffff;
                --semana-row-hover: rgba(13, 137, 236, 0.06);
                --semana-border: #e2e8f0;
                --semana-border-hover: #0d89ec;
                --semana-heading: #0f172a;
                --semana-text: #1e293b;
                --semana-muted: #64748b;
                --semana-accent: #0d89ec;
                --semana-badge-bg: rgba(13, 137, 236, 0.10);
                --semana-badge-fg: #0b6ec0;
                --semana-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
            }
            .theme-sepia {
                --semana-divider: rgba(91, 70, 54, 0.20);
                --semana-surface: #ece0c4;
                --semana-card-bg: #faf3e3;
                --semana-row-hover: rgba(139, 69, 19, 0.08);
                --semana-border: #d6c4a0;
                --semana-border-hover: #8b4513;
                --semana-heading: #3b2a1c;
                --semana-text: #5b4636;
                --semana-muted: #785f4a;
                --semana-accent: #8b4513;
                --semana-badge-bg: rgba(139, 69, 19, 0.11);
                --semana-badge-fg: #6f350d;
                --semana-shadow: 0 6px 18px rgba(91, 70, 54, 0.09);
            }
            .theme-dark {
                --semana-divider: rgba(255, 255, 255, 0.14);
                --semana-surface: #181b22;
                --semana-card-bg: #1d212a;
                --semana-row-hover: rgba(97, 202, 230, 0.10);
                --semana-border: rgba(255, 255, 255, 0.14);
                --semana-border-hover: #61cae6;
                --semana-heading: #f8fafc;
                --semana-text: #e2e8f0;
                --semana-muted: #94a3b8;
                --semana-accent: #61cae6;
                --semana-badge-bg: rgba(97, 202, 230, 0.16);
                --semana-badge-fg: #7dd3fc;
                --semana-shadow: 0 8px 22px rgba(0, 0, 0, 0.40);
            }

            .semana-closing-wrapper {
                margin-top: 3rem;
                padding-top: 2.25rem;
                border-top: 1px solid var(--semana-divider);
            }
            .semana-closing-section + .semana-closing-section {
                margin-top: 2.75rem;
            }
            .semana-closing-heading {
                margin: 0 0 0.45rem;
                font-size: 1.45rem;
                font-weight: 700;
                line-height: 1.25;
                color: var(--semana-heading);
                border-left: 4px solid var(--semana-accent);
                padding-left: 0.75rem;
            }
            .semana-closing-subtitle {
                margin: 0 0 1.2rem;
                font-size: 0.96rem;
                line-height: 1.55;
                color: var(--semana-muted);
            }
            .semana-obs-list {
                display: flex;
                flex-direction: column;
                border: 1px solid var(--semana-border);
                border-radius: 8px;
                background: var(--semana-card-bg);
                overflow: hidden;
            }
            .semana-obs-row {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 1rem;
                padding: 0.78rem 1rem;
                min-height: 46px;
                text-decoration: none;
                color: var(--semana-text);
                border-bottom: 1px solid var(--semana-border);
                transition: background-color 0.18s ease, color 0.18s ease;
            }
            .semana-obs-row:last-child {
                border-bottom: none;
            }
            .semana-obs-row:hover,
            .semana-obs-row:focus-visible {
                background-color: var(--semana-row-hover);
                outline: none;
            }
            .semana-obs-row:focus-visible {
                box-shadow: inset 3px 0 0 var(--semana-accent);
            }
            .semana-obs-row:hover .semana-obs-cta,
            .semana-obs-row:focus-visible .semana-obs-cta {
                transform: translateX(2px);
            }
            .semana-obs-left {
                display: flex;
                align-items: baseline;
                flex-wrap: wrap;
                gap: 0.25rem 1rem;
                min-width: 0;
            }
            .semana-obs-day {
                font-weight: 700;
                font-size: 0.96rem;
                min-width: 132px;
                color: var(--semana-heading);
            }
            .semana-obs-date {
                font-size: 0.9rem;
                color: var(--semana-muted);
                font-variant-numeric: tabular-nums;
            }
            .semana-obs-right {
                display: flex;
                align-items: baseline;
                gap: 1.5rem;
                flex-shrink: 0;
            }
            .semana-obs-count {
                font-size: 0.88rem;
                font-weight: 500;
                color: var(--semana-muted);
                font-variant-numeric: tabular-nums;
                text-align: right;
                min-width: 96px;
                white-space: nowrap;
            }
            .semana-obs-cta {
                display: inline-flex;
                align-items: center;
                gap: 0.35rem;
                font-size: 0.86rem;
                font-weight: 700;
                color: var(--semana-accent);
                white-space: nowrap;
                flex-shrink: 0;
                transition: transform 0.18s ease;
            }
            .semana-obs-cta i {
                font-size: 0.78rem;
            }

            .semana-continue-grid {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 1.25rem;
            }
            .semana-continue-card {
                display: flex;
                flex-direction: column;
                text-decoration: none;
                background: var(--semana-card-bg);
                border: 1px solid var(--semana-border);
                border-radius: 8px;
                overflow: hidden;
                color: var(--semana-text);
                transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
            }
            .semana-continue-card:hover,
            .semana-continue-card:focus-visible {
                border-color: var(--semana-border-hover);
                box-shadow: var(--semana-shadow);
                transform: translateY(-2px);
                outline: none;
            }
            .semana-continue-media {
                position: relative;
                width: 100%;
                aspect-ratio: 16 / 9;
                background: var(--semana-surface);
                overflow: hidden;
            }
            .semana-continue-media img {
                display: block;
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: transform 0.25s ease;
            }
            .semana-continue-card:hover .semana-continue-media img {
                transform: scale(1.025);
            }
            .semana-continue-body {
                display: flex;
                flex-direction: column;
                flex: 1 1 auto;
                padding: 1rem 1.05rem 1.05rem;
            }
            .semana-continue-meta {
                display: flex;
                align-items: center;
                flex-wrap: wrap;
                gap: 0.45rem 0.6rem;
                margin-bottom: 0.55rem;
            }
            .semana-continue-badge {
                display: inline-block;
                padding: 0.18rem 0.55rem;
                border-radius: 999px;
                background: var(--semana-badge-bg);
                color: var(--semana-badge-fg);
                font-size: 0.73rem;
                font-weight: 700;
                letter-spacing: 0.02em;
            }
            .semana-continue-period {
                font-size: 0.8rem;
                font-weight: 600;
                color: var(--semana-muted);
            }
            .semana-continue-title {
                margin: 0 0 0.85rem;
                font-size: 1.04rem;
                font-weight: 700;
                line-height: 1.38;
                color: var(--semana-heading);
            }
            .semana-continue-read {
                margin-top: auto;
                display: inline-flex;
                align-items: center;
                gap: 0.35rem;
                font-size: 0.86rem;
                font-weight: 700;
                color: var(--semana-accent);
            }
            .semana-continue-read i {
                font-size: 0.76rem;
            }
            .semana-ver-todas-wrap {
                margin-top: 1.75rem;
                display: flex;
                justify-content: flex-start;
            }
            .semana-ver-todas-link {
                display: inline-flex;
                align-items: center;
                gap: 0.45rem;
                padding: 0.55rem 1rem;
                border: 1px solid var(--semana-accent);
                border-radius: 6px;
                color: var(--semana-accent);
                font-size: 0.9rem;
                font-weight: 700;
                text-decoration: none;
                transition: background-color 0.2s ease, color 0.2s ease;
            }
            .semana-ver-todas-link:hover,
            .semana-ver-todas-link:focus-visible {
                background: var(--semana-accent);
                color: #ffffff;
                outline: none;
            }
            .theme-dark .semana-ver-todas-link:hover,
            .theme-dark .semana-ver-todas-link:focus-visible {
                color: #0f172a;
            }
            @media screen and (max-width: 640px) {
                .semana-continue-grid {
                    grid-template-columns: 1fr;
                    gap: 1rem;
                }
                .semana-obs-row {
                    padding: 0.72rem 0.85rem;
                    gap: 0.75rem;
                }
                .semana-obs-left {
                    flex-direction: column;
                    align-items: flex-start;
                    gap: 0.12rem;
                }
                .semana-obs-day {
                    min-width: 0;
                    font-size: 0.92rem;
                }
                .semana-obs-date {
                    font-size: 0.82rem;
                }
                .semana-obs-right {
                    flex-direction: column;
                    align-items: flex-end;
                    gap: 0.14rem;
                }
                .semana-obs-count {
                    min-width: 0;
                    font-size: 0.82rem;
                }
                .semana-obs-cta {
                    font-size: 0.82rem;
                }
                .semana-ver-todas-link {
                    width: 100%;
                    justify-content: center;
                }
            }

            .reading-container {
                max-width: 800px;
                margin: 0 auto;
                padding: 2rem 1.5rem;
                padding-bottom: 5rem;
            }

            .landing-topbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); box-shadow: 0 2px 8px rgba(0,0,0,0.06); padding: 0.5rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; transition: all 0.3s ease; }
            .theme-dark .landing-topbar { background: rgba(18,18,18,0.85); border-bottom: 1px solid rgba(255,255,255,0.1); }
            .topbar-brand { display: flex; align-items: center; text-decoration: none; }
            .topbar-brand img { height: 36px; width: auto; max-width: min(280px, 38vw); object-fit: contain; flex-shrink: 0; }
            .topbar-nav { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
            .topbar-link { color: #657380; text-decoration: none; font-weight: 600; font-size: 0.88rem; letter-spacing: 0.01em; transition: color 0.2s ease; }
            .topbar-link:hover { color: #1B74C5; }
            .menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--surface-d); border-radius: var(--border-radius); background: var(--surface-card); color: var(--text-color); cursor: pointer; flex-shrink: 0; }
            .menu-toggle i { font-size: 1.1rem; }
            @media screen and (max-width: 768px) {
                .landing-topbar { padding: 0.85rem 1rem; flex-wrap: wrap; }
                .topbar-brand img { height: 30px; max-width: 200px; }
                .menu-toggle { display: inline-flex; }
                .topbar-nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--surface-d); }
                .topbar-nav.is-open { display: flex; }
                .topbar-link { width: 100%; padding: 0.8rem 0.25rem; }
            }

            .article-title {
                font-size: 2.5rem;
                font-weight: 700;
                line-height: 1.2;
                margin-bottom: 1rem;
            }

            .article-text {
                font-size: var(--article-font-size, 1.25rem);
                line-height: 1.8;
                margin-top: 2rem;
            }

            .article-text img {
                max-width: 100%;
                height: auto;
                border-radius: var(--border-radius);
            }

            .noticia-cover {
                display: block;
                width: 100%;
                height: auto;
                aspect-ratio: 16 / 9;
                object-fit: cover;
                border-radius: var(--border-radius);
                box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            }

            .ai-warning {
                margin-top: 3rem;
                padding: 1.5rem;
                background-color: rgba(255, 193, 7, 0.1);
                border-left: 4px solid #ffc107;
                border-radius: var(--border-radius);
                font-size: 0.95rem;
                line-height: 1.6;
            }

            /* Editorial Relations Card Styles matching Observatório list view */
            .rel-card-item .atu-card {
                display: flex;
                flex-direction: row;
                align-items: center;
                border: 1px solid var(--surface-d, #e2e8f0);
                border-radius: var(--border-radius, 8px);
                background: var(--surface-card, #fff);
                padding: 0.5rem;
                transition: box-shadow 0.2s ease, border-color 0.2s ease;
            }
            .rel-card-item:hover .atu-card {
                box-shadow: 0 4px 12px rgba(0,0,0,0.06);
                border-color: var(--primary-color, #1B74C5);
            }
            .rel-card-item .atu-list-image {
                width: 180px;
                flex-shrink: 0;
                align-self: center;
                display: flex;
                align-items: center;
                justify-content: center;
                background-color: var(--surface-d, #f8fafc);
                border-radius: 6px;
                overflow: hidden;
                margin-right: 1rem;
            }
            .rel-card-item .atu-list-image img {
                width: 100%;
                height: auto;
                aspect-ratio: 16 / 9;
                object-fit: contain;
                border-radius: 6px;
                display: block;
            }
            .title-clamp {
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }
            @media screen and (max-width: 768px) {
                .rel-card-item .atu-list-image {
                    width: 110px !important;
                    margin-right: 0.65rem;
                }
                .rel-card-item .atu-card {
                    padding: 0.35rem;
                }
            }

            /* Toolbar Buttons Container */
            .reading-actions {
                display: flex;
                gap: 0.5rem;
            }

            /* TTS Player UI */
            .tts-player-container {
                position: fixed;
                bottom: 0;
                left: 0;
                width: 100%;
                background: rgba(255, 255, 255, 0.95);
                backdrop-filter: blur(10px);
                border-top: 1px solid rgba(0,0,0,0.1);
                padding: 1rem 1.5rem;
                display: none; /* Hidden by default */
                flex-direction: column;
                z-index: 2000;
                box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
            }

            .theme-dark .tts-player-container { background: rgba(18, 18, 18, 0.95); border-color: rgba(255,255,255,0.1); }
            .theme-sepia .tts-player-container { background: rgba(244, 236, 216, 0.95); border-color: rgba(91, 70, 54, 0.1); }

            .tts-visualizer {
                height: 30px;
                display: flex;
                align-items: center;
                gap: 3px;
                margin-bottom: 0.5rem;
            }

            .v-bar {
                width: 3px;
                height: 5px;
                background: var(--primary-color);
                border-radius: var(--border-radius);
                animation: v-bounce 0.5s ease-in-out infinite alternate;
                animation-play-state: paused;
            }

            @keyframes v-bounce {
                from { height: 5px; }
                to { height: 25px; }
            }

            .tts-seekbar {
                width: 100%;
                margin: 0.5rem 0;
                cursor: pointer;
            }

            .tts-controls {
                display: flex;
                justify-content: space-between;
                align-items: center;
                font-size: 0.8rem;
                font-weight: bold;
                opacity: 0.8;
            }
        