/* ================================================================
   Mesa DI Dashboard — style.css
   ================================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --clr-positive: #22c55e;
    --clr-negative: #ef4444;
    --clr-neutral: #64748b;
    --clr-warning: #f59e0b;
    --clr-critical: #dc2626;
    --clr-primary: #00205B;
    --clr-accent: #BA0C2F;
    --clr-teal: #40A4A0;
    --clr-gold: #C9A66B;
    --clr-front: #06b6d4;
    --clr-belly: #2563eb;
    --clr-long: #7c3aed;
    --clr-ultra: #db2777;
    --bg-page: #F3F5F8;
    --bg-card: #ffffff;
    --bg-nav: #00205B;
    --border: #e2e8f0;
    --grid-zero: #94a3b8;   /* zero e mais escuro que a grade comum */
    --text: #2B2E33;
    --text-muted: #94a3b8;
    --text-nav: #f1f5f9;
    --radius: 8px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --max-content: 1400px;
}

html { font-size: 14px; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg-page);
    line-height: 1.5;
    min-height: 100vh;
}

a { color: var(--clr-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Layout: Nav on top, content below --- */
.layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Nav Bar --- */
.nav {
    background: var(--bg-nav);
    color: var(--text-nav);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    height: 52px;
    z-index: 100;
    position: sticky;
    top: 0;
    flex-shrink: 0;
}
.nav-brand {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-right: 2rem;
}
.nav-brand a { color: var(--text-nav); display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.nav-brand img { display: block; border-radius: 5px; flex: none; }
.nav-brand a:hover { text-decoration: none; }
.nav-links {
    list-style: none;
    display: flex;
    gap: 0.25rem;
}
.nav-links a {
    color: rgba(255,255,255,0.6);
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.nav-links a:hover {
    color: var(--text-nav);
    background: rgba(255,255,255,0.08);
    text-decoration: none;
}
.nav-links a.active {
    color: #fff;
    background: rgba(255,255,255,0.15);
}
.nav-ref-date {
    margin-left: auto;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-ref-date strong { color: #fff; }
.nav-ref-date input[type="date"] {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* --- Sidebar (hidden by default, kept for structure) --- */
.sidebar { display: none; }

/* --- Main Content --- */
.main-content {
    max-width: var(--max-content);
    width: 100%;
    margin: 0 auto;
    padding: 1.25rem 2rem 3rem;
    flex: 1;
}

/* --- Page Header --- */
.page-header {
    margin-bottom: 1.25rem;
}
.page-header h1 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--clr-primary);
}

/* --- KPI Cards Row --- */
.kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    box-shadow: var(--shadow-sm);
}
.kpi-card-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    font-weight: 600;
}
.kpi-card-value {
    font-size: 1.35rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}
.kpi-card-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* --- Panel Grid --- */
.panel-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}
.panel-grid-1 { grid-template-columns: 1fr; }
.panel-grid-2 { grid-template-columns: 1fr 1fr; }
.panel-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

/* --- Card --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.card-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-header h2 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}
.card-header .card-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-weight: 600;
}
.card-body { padding: 1rem; }

/* --- Chart Containers --- */
.chart-container-lg { position: relative; height: 400px; }
.chart-container-md { position: relative; height: 280px; }
.chart-container-sm { position: relative; height: 200px; }

/* --- Data Tables --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}
.data-table thead th {
    background: var(--bg-page);
    text-align: left;
    padding: 0.5rem 0.6rem;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1;
    white-space: nowrap;
}
.data-table thead th.text-right { text-align: right; }
.data-table thead th.text-center { text-align: center; }
.data-table tbody td {
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.data-table tbody tr:hover { background: rgba(0,32,91,0.03); }
.data-table tbody td.text-right { text-align: right; }
.data-table tbody td.text-center { text-align: center; }

.table-scroll {
    max-height: 400px;
    overflow-y: auto;
}

/* --- Conditional Colors --- */
.text-positive { color: var(--clr-positive); }
.text-negative { color: var(--clr-negative); }
.text-neutral { color: var(--clr-neutral); }
.text-warning { color: var(--clr-warning); }
.text-critical { color: var(--clr-critical); }
.text-muted { color: var(--text-muted); }
.hidden { display: none; }
.text-accent { color: var(--clr-accent); }
.text-teal { color: var(--clr-teal); }

.bg-positive-subtle { background: rgba(34,197,94,0.08); }
.bg-negative-subtle { background: rgba(239,68,68,0.08); }
.bg-warning-subtle { background: rgba(245,158,11,0.08); }
.bg-critical-subtle { background: rgba(220,38,38,0.08); }

/* --- Signal Dots --- */
.signal-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.3rem;
    vertical-align: middle;
}
.signal-green { background: var(--clr-positive); }
.signal-yellow { background: var(--clr-warning); }
.signal-red { background: var(--clr-negative); }
.signal-gray { background: var(--clr-neutral); }
.signal-orange { background: #FF9800; }
.signal-blue { background: #2196F3; }

.vol-pctl-low { color: #2196F3; }
.vol-pctl-high { color: #F44336; }
.vol-ratio-low { color: #2196F3; }
.vol-ratio-high { color: #F44336; }
.vol-term-positive { color: var(--clr-positive); }
.vol-term-negative { color: #F44336; }

/* --- Progress Bars (for limits) --- */
.progress-bar-wrap {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}
.progress-bar-fill.ok { background: var(--clr-positive); }
.progress-bar-fill.warning { background: var(--clr-warning); }
.progress-bar-fill.critical { background: var(--clr-critical); }
.progress-bar-fill.breach { background: var(--clr-negative); }

/* --- Heatmap cell backgrounds --- */
.heat-cell {
    text-align: right;
    font-weight: 500;
}

/* --- Collapsible Section --- */
.collapsible-header {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}
.collapsible-header::after {
    content: '\25BC';
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: transform 0.2s;
}
.collapsible-header.collapsed::after {
    transform: rotate(-90deg);
}
.collapsible-body {
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.collapsible-body.collapsed {
    max-height: 0 !important;
    padding-top: 0;
    padding-bottom: 0;
}

/* --- Alert Badges --- */
.badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.badge-ok { background: rgba(34,197,94,0.12); color: var(--clr-positive); }
.badge-warning { background: rgba(245,158,11,0.12); color: #b45309; }
.badge-critical { background: rgba(220,38,38,0.12); color: var(--clr-critical); }
.badge-breach { background: rgba(239,68,68,0.15); color: var(--clr-negative); }
.badge-rich { background: rgba(59,130,246,0.12); color: #2563eb; }
.badge-cheap { background: rgba(239,68,68,0.12); color: #ef4444; }
.badge-fair { background: rgba(107,114,128,0.12); color: #6b7280; }

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}
.empty-state p {
    font-size: 0.9rem;
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
    .nav {
        padding: 0 0.75rem;
        flex-wrap: wrap;
        height: auto;
        min-height: 48px;
        gap: 0.25rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    .nav-brand {
        margin-right: 1rem;
        font-size: 1rem;
    }
    .nav-links {
        gap: 0;
        order: 3;
        width: 100%;
        justify-content: space-between;
    }
    .nav-links a {
        padding: 0.35rem 0.4rem;
        font-size: 0.75rem;
    }
    .nav-ref-date {
        font-size: 0.75rem;
    }
    .main-content {
        padding: 1rem 0.75rem 2rem;
    }
    .kpi-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .kpi-card {
        padding: 0.6rem 0.75rem;
    }
    .kpi-card-value {
        font-size: 1.1rem;
    }
    .panel-grid-2 {
        grid-template-columns: 1fr;
    }
    .panel-grid-3 {
        grid-template-columns: 1fr;
    }
    .chart-container-lg { height: 280px; }
    .chart-container-md { height: 220px; }
}

/* --- Form Controls --- */
.form-group { display: flex; flex-direction: column; gap: 0.2rem; }
.form-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    font-weight: 600;
}
.form-input {
    padding: 0.4rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.82rem;
    font-family: var(--font);
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}
.form-input:focus { border-color: var(--clr-primary); }

.btn {
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--bg-page);
    color: var(--text);
    font-family: var(--font);
    transition: background 0.15s;
}
.btn:hover { background: var(--border); }
.btn-sm { padding: 0.25rem 0.6rem; font-size: 0.72rem; }
.btn-primary {
    background: var(--clr-primary);
    color: #fff;
    border-color: var(--clr-primary);
}
.btn-primary:hover { background: #001845; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-muted);
    padding: 0.2rem 0.4rem;
    line-height: 1;
}
.btn-icon:hover { color: var(--clr-negative); }

.leg-row {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr 1.2fr auto;
    gap: 0.5rem;
    align-items: end;
    margin-bottom: 0.5rem;
}

/* --- Responsive: Large desktop --- */
@media (min-width: 1600px) {
    :root {
        --max-content: 1500px;
    }
}

/* ================================================================
   Acrescimos sobre a base
   Mesma paleta e mesmas medidas; so o que a estrutura por tema pede.
   ================================================================ */

/* --- Grade de temas (homepage) --- */
.tema-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.tema-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s, transform 0.15s;
    display: block;
    color: inherit;
}
.tema-card:hover { text-decoration: none; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.tema-card h3 { color: var(--clr-primary); font-size: 1.05rem; margin-bottom: 0.35rem; }
.tema-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.45; }
.tema-card .tema-meta {
    margin-top: 0.75rem; font-size: 0.75rem; color: var(--clr-teal);
    text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600;
}
.tema-card.vazio { opacity: 0.55; cursor: default; }
.tema-card.vazio:hover { box-shadow: var(--shadow-sm); transform: none; }
.tema-card.vazio .tema-meta { color: var(--text-muted); }

/* --- Faixa de subpaginas no alto do tema (_subpaginas.html) ---
   Nome + rotulo curto, botao compacto. Quebra linha em vez de rolar de lado:
   escondida a direita, a ultima subpagina deixaria de existir para quem le. */
.subpag { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: -0.5rem 0 1.5rem; }
.subpag-item {
    display: flex; flex-direction: column; gap: 0.05rem;
    padding: 0.45rem 0.8rem; border: 1px solid var(--border);
    border-radius: var(--radius); background: var(--bg-card);
    box-shadow: var(--shadow-sm); color: inherit; line-height: 1.2;
    transition: border-color 0.15s, box-shadow 0.15s;
}
a.subpag-item:hover { text-decoration: none; border-color: var(--clr-teal); box-shadow: var(--shadow-md); }
.subpag-item strong { color: var(--clr-primary); font-size: 0.9rem; }
.subpag-item span { color: var(--text-muted); font-size: 0.72rem; }
.subpag-item.vazio { opacity: 0.55; cursor: default; }
.subpag-item.sintetico {
    border-left: 3px solid var(--clr-teal);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.subpag-item.sintetico span { color: var(--clr-teal); }
@media (max-width: 600px) {
    .subpag { gap: 0.4rem; }
    .subpag-item { padding: 0.4rem 0.6rem; flex: 1 1 calc(50% - 0.4rem); }
}

/* --- Trilha (breadcrumb) --- */
.trilha { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.trilha a { color: var(--text-muted); }
.trilha a:hover { color: var(--clr-primary); }
.trilha span { margin: 0 0.4rem; }

/* --- Abas --- */
.abas {
    display: flex; gap: 0.25rem; border-bottom: 2px solid var(--border);
    margin-bottom: 1.25rem; overflow-x: auto; flex-wrap: nowrap;
}
.abas a {
    padding: 0.6rem 0.9rem; font-size: 0.88rem; font-weight: 500;
    color: var(--text-muted); border-bottom: 2px solid transparent;
    margin-bottom: -2px; white-space: nowrap;
}
.abas a:hover { color: var(--clr-primary); text-decoration: none; }
.abas a.ativa { color: var(--clr-primary); border-bottom-color: var(--clr-accent); font-weight: 600; }

/* --- Cabecalho de pagina --- */
.pagina-head { margin-bottom: 1.25rem; }
.pagina-head h1 { font-size: 1.5rem; color: var(--clr-primary); }
.pagina-head .sub { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.2rem; }

/* --- Numeros de destaque --- */
.numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; margin-bottom: 1.25rem; }
.numero {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 0.9rem 1rem; box-shadow: var(--shadow-sm);
}
.numero .rot { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.numero .val { font-size: 1.55rem; font-weight: 700; color: var(--clr-primary); line-height: 1.2; margin-top: 0.15rem; }
.numero .aux { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.1rem; }

/* --- Nota de rodape / ressalva --- */
.ressalva {
    background: #fffbeb; border-left: 3px solid var(--clr-warning);
    padding: 0.75rem 1rem; border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.85rem; color: #78350f; margin: 1rem 0;
}
.ressalva strong { color: #78350f; }

/* --- Notas de pe de pagina: numeradas, neutras --- */
.notas {
    margin: 1.5rem 0 1rem; padding-top: 0.75rem; border-top: 1px solid var(--border);
    font-size: 0.84rem; color: #475569; line-height: 1.55;
}
.notas h3 {
    font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--text-muted); margin: 0 0 0.5rem;
}
.notas ol { margin: 0; padding-left: 1.25rem; }
.notas li { margin-bottom: 0.45rem; }
.notas a { color: inherit; text-decoration: underline; }

/* --- Placeholder de conteudo futuro --- */
.em-branco {
    border: 1px dashed var(--border); border-radius: var(--radius);
    padding: 2rem; text-align: center; color: var(--text-muted);
    font-size: 0.9rem; background: rgba(255,255,255,0.5);
}

/* --- Caixa de grafico --- */
.gcaixa {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1rem 1.1rem 0.9rem;
    box-shadow: var(--shadow-sm); margin-bottom: 1rem;
}
.gcaixa h2 { font-size: 1rem; color: var(--clr-primary); margin-bottom: 0.15rem; }
.gcaixa .leg { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.gtela { position: relative; height: 300px; }
.gtela.alta { height: 380px; }
.gtela.media { height: 340px; }

/* Duas colunas lado a lado que viram uma no celular. O radar precisa ficar
   quase quadrado para nao distorcer o poligono — foi a distorcao horizontal do
   grafico original do BCB que impediu a leitura dos valores dele. */
.dois {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem;
    margin: 0.5rem 0 1rem;
}
/* min-width 0: sem isto a coluna do grid cresce com o canvas, o Chart.js
   responsivo mede a coluna maior e alarga o canvas de novo, em laco. No
   celular (emulado) o grafico chegava a 6000 px (10/11/2026). */
.dois > * { min-width: 0; }
.dois h3 {
    font-size: 0.88rem; color: var(--clr-primary); margin-bottom: 0.4rem;
}
@media (max-width: 780px) { .dois { grid-template-columns: minmax(0, 1fr); } }

/* --- Seletor de periodo (brush) --- */
.gbarra { position: relative; height: 56px; margin-top: 0.35rem; cursor: crosshair; user-select: none; }
.gbarra canvas { display: block; }
.gatalhos { display: flex; gap: 0.3rem; margin-top: 0.6rem; align-items: center; flex-wrap: wrap; }
.gatalhos button {
    font: inherit; font-size: 0.75rem; padding: 0.2rem 0.6rem;
    border: 1px solid var(--border); background: var(--bg-card);
    color: var(--text-muted); border-radius: 5px; cursor: pointer;
    transition: all 0.12s;
}
.gatalhos button:hover { border-color: var(--clr-teal); color: var(--clr-primary); }
.gatalhos button.ativo {
    background: var(--clr-primary); border-color: var(--clr-primary); color: #fff;
}
.gatalhos .faixa { font-size: 0.75rem; color: var(--text-muted); margin-left: auto; }

/* --- Subaba do grafico (12m vs 3m dessaz) --- */
.gsub { display: flex; gap: 0.2rem; margin-bottom: 0.6rem; }
.gsub button {
    font: inherit; font-size: 0.76rem; padding: 0.25rem 0.7rem;
    border: 1px solid var(--border); background: transparent;
    color: var(--text-muted); cursor: pointer; border-radius: 5px;
    transition: all 0.12s;
}
.gsub button:hover { color: var(--clr-primary); border-color: var(--clr-teal); }
.gsub button.ativo {
    background: var(--clr-teal); border-color: var(--clr-teal); color: #fff;
    font-weight: 600;
}

/* ================================================================
   TABELAS DE ANALISE (.tab)
   ----------------------------------------------------------------
   Estas tabelas sao releitura mensal: os numeros trocam, o numero de
   linhas troca, e o sinal troca. Entao o estilo nao pode depender de
   nada por celula.

   - tabular-nums: sem isto a coluna dança quando 4,44 vira 10,67,
     porque '1' e mais estreito que os outros digitos em fonte
     proporcional. Numa pagina que atualiza todo mes, isso apareceria
     como tremor a cada divulgacao.
   - a barra de magnitude sai de --f (0 a 100) escrito no proprio
     dado; nao ha largura fixada a mao para envelhecer.
   - negativo pelo .neg, nunca por cor digitada na celula.
   ================================================================ */
.tab-rolo { overflow-x: auto; margin: 0 -1.1rem; padding: 0 1.1rem; }
.tab-rolo.alto { max-height: 460px; overflow-y: auto; }

.tab {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    font-variant-numeric: tabular-nums;
}
.tab thead th {
    text-align: left;
    padding: 0.45rem 0.7rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1.5px solid var(--clr-primary);
    white-space: nowrap;
    background: var(--bg-card);
}
.tab-rolo.alto thead th { position: sticky; top: 0; z-index: 2; }
.tab thead th.num { text-align: right; }

.tab tbody td {
    padding: 0.42rem 0.7rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.tab tbody tr:last-child td { border-bottom: none; }
.tab tbody tr:hover { background: rgba(0,32,91,0.035); }
.tab tbody td.num { text-align: right; white-space: nowrap; }

/* Primeira coluna e o rotulo: escura e um pouco mais firme que o resto,
   para o olho descer pela lista sem se perder entre as colunas numericas. */
.tab tbody td:first-child { color: var(--text); font-weight: 500; }
.tab tbody td.num { color: var(--text); }

/* Coluna de leitura principal — a que se quer ler primeiro. */
.tab .forte { font-weight: 700; color: var(--clr-primary); }
.tab .neg { color: var(--clr-accent); }
.tab .fraco { color: var(--text-muted); font-weight: 400; }

/* Linha que o texto ao lado destaca. Marcada por barra lateral em vez de
   fundo colorido: sobrevive ao hover e nao briga com a barra de magnitude. */
.tab tbody tr.destaque td:first-child {
    box-shadow: inset 3px 0 0 var(--clr-teal);
    font-weight: 700;
    color: var(--clr-primary);
}

/* Barra de magnitude. Largura vem de --f (0-100), calculada do dado. */
.tab td.barra { width: 34%; min-width: 110px; padding-right: 0.9rem; }
.tab .barra-trilho {
    position: relative;
    height: 16px;
    background: rgba(0,32,91,0.05);
    border-radius: 3px;
    overflow: hidden;
}
.tab .barra-preenche {
    position: absolute; left: 0; top: 0; bottom: 0;
    width: calc(var(--f) * 1%);
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-teal));
    border-radius: 3px;
}
.tab .barra-preenche.morna {
    background: linear-gradient(90deg, var(--clr-accent), var(--clr-gold));
}
.tab .barra-rot {
    position: absolute; right: 0.4rem; top: 0; line-height: 16px;
    font-size: 0.72rem; font-weight: 600; color: var(--text);
}

/* Rodape da tabela: totais, n, ou a janela de estimacao. */
.tab tfoot td {
    padding: 0.4rem 0.7rem;
    border-top: 1.5px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Card de analise: o conteudo entra direto, sem .card-body --- */
.card { margin-bottom: 1rem; }
.card > h2 {
    font-size: 1rem; color: var(--clr-primary);
    padding: 0.9rem 1.1rem 0; margin-bottom: 0.15rem;
}
.card > p { padding: 0 1.1rem; font-size: 0.85rem; line-height: 1.5; }
.card > h2 + p { margin-bottom: 0.7rem; }
.card > p.muted { color: var(--text-muted); }
.card > .tab-rolo { margin: 0; padding: 0; }
.card > .tab-rolo + p { margin-top: 0.7rem; padding-bottom: 0.9rem; }
.card > .tab-rolo:last-child { padding-bottom: 0.2rem; }
.card > .gtela { margin: 0.75rem 1.1rem 1rem; }

/* A tabela encosta nas bordas do card de proposito: as linhas de grade
   atravessando toda a largura sao o que faz a coluna se ler como coluna. */
.card > .tab-rolo .tab thead th:first-child,
.card > .tab-rolo .tab tbody td:first-child,
.card > .tab-rolo .tab tfoot td:first-child { padding-left: 1.1rem; }
.card > .tab-rolo .tab thead th:last-child,
.card > .tab-rolo .tab tbody td:last-child,
.card > .tab-rolo .tab tfoot td:last-child { padding-right: 1.1rem; }

@media (max-width: 640px) {
    .tab { font-size: 0.8rem; }
    .tab thead th, .tab tbody td { padding-left: 0.45rem; padding-right: 0.45rem; }
    .tab td.barra { width: 26%; min-width: 80px; }
}

/* Slug de serie e caminho de arquivo: monoespacado para o olho reconhecer
   que aquilo e um identificador, nao prosa. */
.tab code, .card code, .ressalva code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
    background: rgba(0,32,91,0.05);
    padding: 0.08em 0.32em;
    border-radius: 3px;
}
.tab tfoot code { background: none; padding: 0; }

/* ================================================================
   TABELAO — tabela com toggle alimentando o grafico
   ----------------------------------------------------------------
   O quadradinho de cor ao lado do nome existe para a identidade nao
   depender SO da cor da linha: quem nao distingue dois tons le o nome
   na tabela, com o valor ao lado. E o mesmo motivo pelo qual o ouro da
   paleta pode ficar abaixo de 3:1 de contraste — o alivio exigido e
   exatamente esta tabela.
   ================================================================ */
.tab tr.grupo td {
    background: var(--bg-page);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0.4rem 1.1rem;
    border-bottom: 1px solid var(--border);
}
.tab-rolo.alto tr.grupo td { position: sticky; top: 30px; z-index: 1; }

.tab td.marca { width: 42px; padding-right: 0; }
.tab td.marca label {
    display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer;
}
.tab td.marca input { cursor: pointer; accent-color: var(--clr-primary); }
.tab td.marca input:disabled { cursor: not-allowed; opacity: 0.4; }
.tab .swatch {
    width: 11px; height: 11px; border-radius: 3px;
    border: 1.5px solid var(--border); background: transparent;
    transition: background 0.12s, border-color 0.12s;
}
.tab tbody tr.marcada td { background: rgba(0,32,91,0.035); }
.tab tbody tr.marcada td:nth-child(2) { font-weight: 600; color: var(--clr-primary); }

/* Selo SA/NSA: a leitura de 3 meses e dessazonalizada em umas series e crua
   em outras. Sem o selo, o leitor compararia numeros de naturezas diferentes
   achando que sao a mesma coisa. */
.tab .sa-tag {
    display: inline-block; margin-left: 0.35rem; font-size: 0.6rem;
    font-weight: 700; letter-spacing: 0.03em; padding: 0.05em 0.28em;
    border-radius: 3px; vertical-align: middle;
}
.tab .sa-tag.sa  { background: rgba(15,155,150,0.14); color: #0b6f6b; }
.tab .sa-tag.nsa { background: rgba(148,163,184,0.20); color: #64748b; }

.gaviso {
    font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem;
    text-align: right;
}

/* ================================================================
   LEGENDA COLAPSAVEL, e respiro no celular
   ----------------------------------------------------------------
   As legendas cresceram a cada achado — banda historica, suavizacao,
   Black Friday, extensao pelo Focus — ate somarem 344 palavras na
   visao geral. No desktop isso e um bloco que o olho pula. Num
   celular de 390px empurra o grafico para 1,4 tela abaixo, e quem
   abre a pagina conclui que grafico nao ha.
   A primeira frase fica sempre visivel (o que estou vendo); o resto
   vai para <details>, que e nativo e nao precisa de JS.
   ================================================================ */
.legmais { margin-top: 0.4rem; }
.legmais > summary {
    cursor: pointer;
    color: var(--clr-primary);
    font-weight: 600;
    font-size: 0.78rem;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0;
}
.legmais > summary::-webkit-details-marker { display: none; }
.legmais > summary::before {
    content: '▸';
    font-size: 0.7em;
    transition: transform 0.15s;
}
.legmais[open] > summary::before { transform: rotate(90deg); }
.legmais > summary:hover { text-decoration: underline; }
.legmais > div { margin-top: 0.35rem; }

@media (max-width: 768px) {
    /* 2rem de cada lado tirava 64px de um viewport de 390 — o grafico
       ficava com 336px de largura util. */
    .main-content { padding: 1rem 0.75rem 2rem; }

    /* AS ABAS QUEBRAM EM LINHA no celular, em vez de rolar. Com oito abas num
       viewport de 390px o rolamento horizontal escondia as tres ultimas — e
       sem nenhuma pista de que existiam, o que e pior que apertado: uma aba
       que ninguem acha e uma aba que nao existe. */
    .abas {
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 0.1rem 0.15rem;
        border-bottom-width: 1px;
    }
    .abas a {
        padding: 0.4rem 0.5rem;
        font-size: 0.78rem;
        border-bottom-width: 2px;
    }
    .gcaixa { padding: 0.85rem 0.8rem 0.75rem; }
    .gtela { height: 260px; }
    .gtela.alta { height: 300px; }
    .numeros { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 0.4rem; }
    .numero { padding: 0.6rem 0.7rem; }
    .numero .val { font-size: 1.1rem; }
    .numero .rot { font-size: 0.62rem; letter-spacing: 0.02em; }
    .numero .aux { font-size: 0.68rem; }
    .gatalhos button { padding: 0.25rem 0.5rem; }
    /* Mais alta no celular: a barra e alvo de ARRASTE, e 44 px e o minimo
       recomendado de alvo de toque. A tolerancia horizontal para pegar a
       borda esta no JS (`ALCA_TOQUE`), que e a metade que faltava. */
    .gbarra { height: 52px; }
    /* a barra de selecao e arrastavel: sem isto o gesto rola a pagina
       em vez de mover a janela */
    .gbarra { touch-action: none; }
    /* REDE DE SEGURANCA. Grafico deve morar em `.gcaixa`, que tem padding
       proprio; se algum for parar num `.card` — que no celular nao tem
       padding, porque ele o aplica aos filhos h2/p —, a barra encostaria na
       borda e a alca esquerda ficaria inalcancavel. Foi o que aconteceu na
       pagina Fiscal. */
    .card > .gtela, .card > .gbarra, .card > .gsub { padding-inline: 0.8rem; }
    /* e o caso ANINHADO: os radares do EE102 vivem num `.dois` dentro do
       `.card`, entao o seletor filho-direto acima nao os alcanca e eles
       encostariam na borda igual. */
    .card > .dois { padding-inline: 0.8rem; }
    .card > h2 { padding: 0.75rem 0.8rem 0; }
    .card > p { padding: 0 0.8rem; }
    .card > .tab-rolo .tab thead th:first-child,
    .card > .tab-rolo .tab tbody td:first-child,
    .card > .tab-rolo .tab tfoot td:first-child { padding-left: 0.8rem; }
    .card > .tab-rolo .tab thead th:last-child,
    .card > .tab-rolo .tab tbody td:last-child,
    .card > .tab-rolo .tab tfoot td:last-child { padding-right: 0.8rem; }
}

/* Falha de grafico visivel, nunca caixa em branco. */
.gerro {
    display: flex; flex-direction: column; justify-content: center;
    height: 100%; padding: 1rem; text-align: center;
    background: #fffbeb; border: 1px dashed var(--clr-warning);
    border-radius: var(--radius); color: #78350f; font-size: 0.85rem;
}
.gerro small { color: #92400e; margin-top: 0.4rem; }

/* ================================================================
   GRADE DE PAINEIS + MODAL
   ================================================================ */
.grade-cab h2 { font-size: 1.1rem; color: var(--clr-primary); }
.grade-cab p { font-size: 0.85rem; margin-top: 0.2rem; }

.grade-barra {
    display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
    font-size: 0.78rem; color: var(--text-muted);
    margin: 0.7rem 0 0.9rem;
}
.grade-barra.aviso {
    background: #fffbeb; border-left: 3px solid var(--clr-warning);
    color: #78350f; padding: 0.5rem 0.75rem; border-radius: 0 6px 6px 0;
}
.grade-barra button {
    font: inherit; font-size: 0.75rem; padding: 0.2rem 0.6rem; cursor: pointer;
    border: 1px solid var(--border); background: var(--bg-card);
    color: var(--clr-primary); border-radius: 5px; font-weight: 600;
}
.grade-barra button:hover { border-color: var(--clr-teal); }

.grade {
    display: grid; gap: 0.9rem;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
}
.painel {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    padding: 0.7rem 0.8rem 0.6rem;
}
.painel-topo {
    display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.painel-titulo {
    font-size: 0.88rem; font-weight: 600; color: var(--clr-primary);
    margin-right: auto;
}
.painel-nota {
    font-size: 0.68rem; color: var(--text-muted); line-height: 1.35;
    margin-top: 0.4rem; border-top: 1px solid var(--border); padding-top: 0.35rem;
}
.ppills { display: inline-flex; gap: 0.15rem; }
.ppill {
    font: inherit; font-size: 0.68rem; padding: 0.15rem 0.4rem; cursor: pointer;
    border: 1px solid var(--border); background: transparent;
    color: var(--text-muted); border-radius: 4px;
}
.ppill:hover { border-color: var(--clr-teal); color: var(--clr-primary); }
.ppill.ativo { background: var(--clr-primary); border-color: var(--clr-primary); color: #fff; }
.ppill.leitura {
    margin-left: 0.35rem; font-weight: 700;
    background: rgba(64,164,160,0.12); border-color: var(--clr-teal);
    color: #0b6f6b;
}
.painel-cfg {
    font: inherit; font-size: 0.9rem; line-height: 1; cursor: pointer;
    border: 1px solid var(--border); background: transparent;
    color: var(--text-muted); border-radius: 4px; padding: 0.15rem 0.35rem;
}
.painel-cfg:hover { border-color: var(--clr-primary); color: var(--clr-primary); }
.painel-tela { position: relative; height: 240px; }

.painel-novo {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 0.3rem; min-height: 200px;
    border-style: dashed; color: var(--text-muted); cursor: pointer;
    font-size: 0.85rem; box-shadow: none;
}
.painel-novo:hover { border-color: var(--clr-teal); color: var(--clr-primary); }
.painel-novo .mais { font-size: 1.6rem; line-height: 1; }

/* --- Modal --- */
.modal {
    display: none; position: fixed; inset: 0; z-index: 50;
    background: rgba(15,23,42,0.45); align-items: center; justify-content: center;
    padding: 1rem;
}
.modal.aberto { display: flex; }
.modal-caixa {
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow-md); width: 100%; max-width: 520px;
    max-height: 88vh; display: flex; flex-direction: column;
    padding: 1rem 1.1rem;
}
.modal-caixa h3 { font-size: 1rem; color: var(--clr-primary); margin-bottom: 0.6rem; }
.modal-campo {
    display: flex; flex-direction: column; gap: 0.25rem;
    font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.7rem;
}
.modal-campo input {
    font: inherit; font-size: 0.88rem; padding: 0.4rem 0.5rem;
    border: 1px solid var(--border); border-radius: 5px; color: var(--text);
}
.modal-lista {
    overflow-y: auto; flex: 1; min-height: 120px;
    border: 1px solid var(--border); border-radius: 6px; padding: 0.4rem;
}
.mgrupo {
    font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em;
    font-weight: 700; color: var(--text-muted);
    padding: 0.45rem 0.3rem 0.2rem;
}
.mitem {
    display: flex; align-items: center; gap: 0.45rem; cursor: pointer;
    padding: 0.22rem 0.3rem; border-radius: 4px; font-size: 0.83rem;
}
.mitem:hover { background: rgba(0,32,91,0.04); }
.mitem input { accent-color: var(--clr-primary); cursor: pointer; }
.modal-erro { color: var(--clr-accent); font-size: 0.78rem; min-height: 1.1rem; margin-top: 0.4rem; }
.modal-botoes { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem; }
.modal-botoes .espaco { margin-left: auto; }
.modal-botoes button {
    font: inherit; font-size: 0.8rem; padding: 0.35rem 0.75rem; cursor: pointer;
    border: 1px solid var(--border); background: var(--bg-card);
    color: var(--text); border-radius: 5px;
}
.modal-botoes .primario {
    background: var(--clr-primary); border-color: var(--clr-primary);
    color: #fff; font-weight: 600;
}
.modal-botoes .perigo { color: var(--clr-accent); border-color: rgba(186,12,47,0.35); }

@media (max-width: 768px) {
    .grade { grid-template-columns: 1fr; gap: 0.7rem; }
    .painel-tela { height: 210px; }
    .painel-titulo { width: 100%; margin-bottom: 0.25rem; }
}

/* PROCEDENCIA DIFERENTE, MESMA GRADE. O hiato nao e divulgacao — e estimado
   aqui — e a tela tem de dizer isso antes de o leitor clicar. Mas a distincao
   e de procedencia, nao de tema: parti-la em duas secoes com cabecalho
   separava demais e sugeria que era outro assunto.
   A marca e a faixa lateral teal, do mesmo vocabulario da `.ressalva` (que usa
   faixa lateral para marcar "leia isto de outro jeito"), mais um selo no
   rodape do cartao. Discreta e recessiva: quem so quer navegar nao tropeca,
   quem repara entende. */
.tema-card.sintetico {
    border-left: 3px solid var(--clr-teal);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.selo {
    margin-left: 0.5rem; padding: 0.05rem 0.4rem; border-radius: 3px;
    background: rgba(64,164,160,0.12); color: var(--clr-teal);
    letter-spacing: 0.02em; text-transform: none; font-weight: 600;
}
.nota-grade { font-size: 0.78rem; margin-top: 0.9rem; }

/* --- Caixa de releases recentes na home --- */
/* --- Cenario: as seis frases da home (core/cenario.py) ------------------ */
.cenario {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    padding: 1rem 1.1rem 0.85rem; margin-bottom: 1.4rem;
}
.cenario h2 { font-size: 1rem; color: var(--clr-primary); margin-bottom: 0.6rem; }
.cenario-lista {
    display: grid; grid-template-columns: 10rem 1fr; margin: 0;
}
.cenario-lista dt, .cenario-lista dd {
    padding: 0.5rem 0; border-top: 1px solid var(--border); margin: 0;
}
.cenario-lista dt:first-of-type, .cenario-lista dt:first-of-type + dd {
    border-top: none; padding-top: 0;
}
.cenario-lista dt { font-weight: 600; font-size: 0.9rem; }
.cenario-lista dt a { color: var(--text); }
.cenario-lista dt a:hover { color: var(--clr-primary); }
.cenario-lista dd { font-size: 0.88rem; line-height: 1.5; color: var(--text); }
.cenario-desde {
    font-size: 0.7rem; color: var(--text-muted); margin-left: 0.3rem;
    white-space: nowrap; cursor: help;
}
.cenario-alerta {
    font-size: 0.7rem; color: var(--clr-critical); margin-left: 0.3rem;
    white-space: nowrap; cursor: help;
}
.cenario-aviso {
    margin-top: 0.3rem; padding: 0.3rem 0.6rem; font-size: 0.8rem; line-height: 1.45;
    color: #55524B; background: var(--bg-page); border-left: 3px solid var(--clr-primary); border-radius: 0 4px 4px 0;
}
/* marcas de mudanca das ultimas 72 horas (core/cenario.py::mudancas) */
.cenario-mudou {
    background: color-mix(in srgb, var(--clr-primary) 13%, transparent);
    color: inherit; padding: 0 0.12rem; border-radius: 2px;
    border-bottom: 1px solid var(--clr-primary); cursor: help;
}
.cenario-corte::after {
    content: "‸"; color: var(--clr-primary); font-weight: 700;
    margin: 0 0.05rem; cursor: help;
}
.cenario-mudou-dd { box-shadow: inset 3px 0 0 var(--clr-primary); padding-left: 0.55rem !important; }
.cenario-marca {
    font-size: 0.68rem; font-weight: 600; margin-left: 0.35rem; white-space: nowrap;
    color: var(--clr-primary); border: 1px solid var(--clr-primary);
    border-radius: 999px; padding: 0 0.4rem; cursor: help;
}
.cenario-marca--revista, .cenario-marca--nova {
    background: var(--clr-primary); color: var(--bg-card);
}
.cenario-antes { margin-top: 0.25rem; font-size: 0.78rem; color: var(--text-muted); }
.cenario-antes summary { cursor: pointer; }
.cenario-proximo { margin-top: 0.25rem; font-size: 0.78rem; color: var(--text-muted); }
.cenario-proximo span { margin-right: 0.6rem; }
.cenario-pe {
    font-size: 0.72rem; color: var(--text-muted); line-height: 1.4;
    border-top: 1px solid var(--border); padding-top: 0.6rem;
    margin-top: 0.3rem;
}
@media (max-width: 640px) {
    .cenario { padding: 0.85rem 0.8rem 0.7rem; }
    .cenario-lista { grid-template-columns: 1fr; }
    .cenario-lista dd { border-top: none; padding-top: 0.1rem; }
}

.releases {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    padding: 1rem 1.1rem 0.85rem; margin-bottom: 1.4rem;
}
.releases-cab {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 0.6rem; margin-bottom: 0.7rem; flex-wrap: wrap;
}
.releases-cab h2 { font-size: 1rem; color: var(--clr-primary); }
.releases-cab .fraco { font-size: 0.78rem; }
.release {
    padding: 0.6rem 0; border-top: 1px solid var(--border);
}
.release:first-of-type { border-top: none; padding-top: 0; }
/* lista rolavel: mostra 3 divulgacoes (altura medida no home.html) e rola o
   resto. 18rem e a reserva sem JS: ~3 itens com comentario de 3 linhas. */
.releases-lista {
    position: relative; max-height: 18rem; overflow-y: auto;
    overscroll-behavior: contain; padding-right: 0.4rem;
    scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.releases-lista.rola { border-bottom: 1px solid var(--border); }
.release-top {
    display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap;
    margin-bottom: 0.25rem;
}
.release-top strong { font-size: 0.92rem; color: var(--text); }
.release-nome:hover { text-decoration: none; }
.release-nome:hover strong { color: var(--clr-primary); text-decoration: underline; }
.release-per { font-size: 0.85rem; color: var(--clr-teal); font-weight: 600; }
.release-meta {
    font-size: 0.72rem; color: var(--text-muted); margin-left: auto;
}
.release-txt {
    font-size: 0.83rem; line-height: 1.45; color: var(--text-muted);
    white-space: pre-line; margin: 0;
}
.releases-pe {
    font-size: 0.72rem; color: var(--text-muted); line-height: 1.4;
    border-top: 1px solid var(--border); padding-top: 0.6rem;
    margin-top: 0.5rem;
}
@media (max-width: 640px) {
    .releases { padding: 0.85rem 0.8rem 0.7rem; }
    .release-meta { margin-left: 0; width: 100%; }
}

/* --- Agenda: a caixa do calendario na home ---------------------------------
   Fica DEPOIS dos cards de tema porque e lembrete, nao conteudo: quem chega
   na home vem escolher um tema, e a agenda e o que se olha de passagem.
   Peso visual deliberadamente menor que o dos cards. */
.agenda {
    margin-top: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem 0.9rem;
    box-shadow: var(--shadow-sm);
}
.agenda-cab {
    display: flex; align-items: baseline; gap: 0.75rem;
    flex-wrap: wrap; margin-bottom: 0.85rem;
}
.agenda-cab h2 {
    font-size: 0.95rem; color: var(--clr-primary); margin: 0;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.agenda-cont { font-size: 0.8rem; color: var(--text-muted); }

.agenda-dias { list-style: none; margin: 0; padding: 0;
               display: grid; gap: 0.1rem; }
.agenda-dia { display: grid; grid-template-columns: 5.5rem 1fr;
              gap: 0.75rem; padding: 0.5rem 0;
              border-top: 1px solid var(--border); }
.agenda-dia:first-child { border-top: 0; }

/* Cabecalho do dia: a data aparece UMA vez, nao em toda linha. Era isso que
   fazia a caixa parecer despejo de tabela. */
.ag-cab { padding-top: 0.1rem; line-height: 1.3; }
.ag-sem { display: block; font-size: 0.7rem; color: var(--text-muted);
          text-transform: uppercase; letter-spacing: 0.06em; }
.ag-data { font-size: 0.9rem; font-weight: 600; color: var(--text);
           font-variant-numeric: tabular-nums; }
.ehoje .ag-data { color: var(--clr-accent); }
.ag-hoje { display: inline-block; margin-left: 0.3rem; font-size: 0.62rem;
           padding: 0.05rem 0.3rem; border-radius: 3px; font-weight: 700;
           background: var(--clr-accent); color: #fff;
           text-transform: uppercase; letter-spacing: 0.04em;
           vertical-align: 0.1rem; }

.ag-lista { list-style: none; margin: 0; padding: 0; }
.ag-lista li { display: grid; grid-template-columns: 3.1rem 1fr auto;
               gap: 0.6rem; align-items: baseline; padding: 0.14rem 0;
               font-size: 0.88rem; }
.ag-hora { color: var(--text-muted); font-variant-numeric: tabular-nums;
           font-size: 0.8rem; }
.ag-nome { color: var(--text); }
.ag-ant  { color: var(--text-muted); font-size: 0.8rem;
           font-variant-numeric: tabular-nums; white-space: nowrap; }

.agenda-pe { margin: 0.85rem 0 0; padding-top: 0.7rem;
             border-top: 1px solid var(--border);
             font-size: 0.76rem; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 560px) {
    .agenda-dia { grid-template-columns: 1fr; gap: 0.2rem; }
    .ag-cab { display: flex; align-items: baseline; gap: 0.4rem; }
    .ag-sem { display: inline; }
    .ag-ant { display: none; }
}

/* ================================================================
   COMUNICACOES DO COPOM (/mp?aba=comunicacoes)
   ----------------------------------------------------------------
   Cor do tom: hawkish no vermelho da casa, dovish no teal. Sao as
   duas pontas da escala do gauge, entao numero, rotulo e barra falam
   a mesma lingua. Neutro fica no texto comum, nao no cinza apagado:
   cinza apagado (.delta-ruido) e reservado para "o instrumento nao
   sustenta isto", e misturar os dois confundiria "neutro" com "ruido".
   ================================================================ */
.tom-h { color: var(--clr-accent); }
.tom-d { color: #0f766e; }
.tom-n { color: var(--text); }
.delta-ruido { color: var(--text-muted); }
.numero .val.val-menor { font-size: 1.05rem; padding-top: 0.35rem; }

.reuniao-cab { display: flex; align-items: baseline; justify-content: space-between;
               gap: 0.75rem; flex-wrap: wrap; }
.reuniao-nav { display: flex; gap: 0.9rem; font-size: 0.85rem; }

.pecas { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
@media (max-width: 900px) { .pecas { grid-template-columns: 1fr; } }
.peca { border: 1px solid var(--border); border-radius: var(--radius);
        padding: 0.9rem 1rem 0.8rem; background: #fbfcfd; min-width: 0; }
.peca h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
           color: var(--clr-primary); margin: 1rem 0 0.35rem; }
.peca h4 { font-size: 0.74rem; font-weight: 600; color: var(--text-muted);
           text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.2rem; }
.peca-cab { display: flex; align-items: baseline; justify-content: space-between;
            gap: 0.5rem; flex-wrap: wrap; }
.peca-tipo { font-weight: 700; font-size: 0.95rem; color: var(--clr-primary); }
.peca-meta { font-size: 0.76rem; color: var(--text-muted); }
.peca-titulo { font-size: 0.85rem; color: var(--text); margin: 0.15rem 0 0.7rem; }
.peca-texto { font-size: 0.86rem; line-height: 1.55; margin-bottom: 0.4rem; }
.peca-vazia { font-size: 0.86rem; color: var(--text-muted); padding: 1.2rem 0 0.6rem; }
.peca-proc { margin-top: 0.8rem; padding-top: 0.55rem; border-top: 1px solid var(--border);
             font-size: 0.72rem; color: var(--text-muted); }
.peca-dl { display: grid; grid-template-columns: auto 1fr; gap: 0.15rem 0.7rem;
           font-size: 0.84rem; margin: 0.2rem 0 0.4rem; }
.peca-dl dt { color: var(--text-muted); }
.peca-dl dd { margin: 0; }

/* gauge -1..+1: a posicao e o numero, a cor so reforca */
.hawk { margin-bottom: 0.7rem; }
.hawk-topo { display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap; }
.hawk-num { font-size: 1.9rem; font-weight: 700; line-height: 1.1;
            font-variant-numeric: tabular-nums; }
.hawk-delta { font-size: 0.82rem; color: var(--text-muted); }
.hawk-escala { position: relative; height: 8px; border-radius: 4px; margin-top: 0.45rem;
               background: linear-gradient(to right, #0f766e, #e2e8f0 50%, var(--clr-accent)); }
.hawk-marca { position: absolute; top: -4px; width: 4px; height: 16px; border-radius: 2px;
              background: var(--text); transform: translateX(-50%);
              box-shadow: 0 0 0 2px #fff; }
.hawk-rot { display: flex; justify-content: space-between; font-size: 0.68rem;
            color: var(--text-muted); margin-top: 0.2rem; }

.sinais { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin: 0.3rem 0 0.3rem; }
@media (max-width: 480px) { .sinais { grid-template-columns: 1fr; } }
.sinais h3 { margin-top: 0.5rem; }
.sinais ul, .mudancas { margin: 0; padding-left: 1.05rem; font-size: 0.82rem; line-height: 1.45; }
.sinais li, .mudancas li { margin-bottom: 0.2rem; }
.sinais li.vazio { list-style: none; margin-left: -1.05rem; color: var(--text-muted); }

/* sentenca-fonte: e citacao literal do documento, e tem de parecer uma */
.citacao { margin: 0.35rem 0 0.5rem; padding: 0.45rem 0.7rem; border-left: 3px solid var(--border);
           background: #f5f7fa; font-size: 0.82rem; font-style: italic; color: #475569;
           line-height: 1.5; }

.forca { display: inline-block; width: 70px; height: 6px; border-radius: 3px;
         background: var(--border); vertical-align: middle; margin-left: 0.3rem; overflow: hidden; }
.forca span { display: block; height: 100%; background: var(--clr-primary); }

.texto-integral { margin-top: 0.8rem; font-size: 0.84rem; }
.texto-integral summary { cursor: pointer; color: var(--clr-primary); font-weight: 600; }
.texto-corpo { white-space: pre-line; max-height: 420px; overflow-y: auto; margin-top: 0.5rem;
               padding: 0.6rem 0.75rem; background: #fff; border: 1px solid var(--border);
               border-radius: 6px; line-height: 1.55; color: #334155; }

.tab-copom tbody tr[data-href] { cursor: pointer; }
.tab-copom tbody tr[data-href]:hover td { background: #f5f7fa; }
.tab-copom td { white-space: nowrap; }

.metodo p, .metodo ul { font-size: 0.85rem; line-height: 1.55; margin-bottom: 0.55rem; }
.metodo ul { padding-left: 1.1rem; }
.metodo li { margin-bottom: 0.35rem; }
.metodo h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
             color: var(--clr-primary); margin: 0.9rem 0 0.35rem; }
.metodo .tab { margin-bottom: 0.6rem; }

/* ================================================================
   Modelo Macro (/modelo)
   ================================================================ */
.selo-modelo {
    font-size: 0.78rem; color: var(--text-muted); margin: -0.4rem 0 1rem;
    line-height: 1.6;
}
.selo-modelo code { font-size: 0.75rem; }
.selo-modelo.velho {
    background: #fffbeb; border-left: 3px solid var(--clr-warning); color: #78350f;
    padding: 0.5rem 0.8rem; border-radius: 0 var(--radius) var(--radius) 0; margin-top: 0;
}
p.nota-modelo { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 1rem; }
.card > p.nota-modelo { padding-bottom: 0.9rem; }
.texto-modelo > ul { padding: 0 1.1rem 0.6rem 2.4rem; font-size: 0.85rem; line-height: 1.55; }
.texto-modelo > ul li { margin-bottom: 0.35rem; }
.texto-modelo > p:last-child { padding-bottom: 1rem; }
.gcaixa .gsub { flex-wrap: wrap; }

/* simulador: controles a esquerda, saida a direita; uma coluna no celular */
.sim { display: grid; grid-template-columns: minmax(260px, 330px) 1fr; gap: 1rem; align-items: start; }
.sim-controles {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 0.8rem 0.9rem; box-shadow: var(--shadow-sm); position: sticky; top: 0.75rem;
    max-height: calc(100vh - 1.5rem); overflow-y: auto;
}
.sim-controles fieldset { border: none; border-top: 1px solid var(--border); padding: 0.6rem 0 0.3rem; }
.sim-controles fieldset:first-child { border-top: none; padding-top: 0; }
.sim-controles legend {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--clr-primary); font-weight: 700; padding: 0 0 0.2rem;
}
.sim-campo {
    display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 0.5rem; align-items: center;
    font-size: 0.8rem; color: var(--text); margin: 0.45rem 0;
}
.sim-campo[hidden] { display: none; }
.sim-campo select, .sim-campo input[type=range] { grid-column: 1 / -1; width: 100%; }
.sim-campo input[type=range] { grid-column: 1; accent-color: var(--clr-primary); }
.sim-campo output { grid-column: 2; font-weight: 700; color: var(--clr-primary); font-size: 0.78rem; min-width: 5.2rem; text-align: right; }
.sim-campo select {
    font: inherit; font-size: 0.8rem; padding: 0.25rem 0.35rem; margin-top: 0.15rem;
    border: 1px solid var(--border); border-radius: 5px; background: var(--bg-card); color: var(--text);
}
.sim-campo small { grid-column: 1 / -1; color: var(--text-muted); font-size: 0.72rem; }
.sim-params { border-top: 1px solid var(--border); padding-top: 0.5rem; font-size: 0.8rem; }
.sim-params > summary { cursor: pointer; color: var(--clr-primary); font-weight: 600; }
.sim-botoes { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.7rem; }
.sim-saida { min-width: 0; }
.sim-saida .dois { margin-top: 0; }
.sim-saida .gaviso:empty { display: none; }
@media (max-width: 900px) {
    .sim { grid-template-columns: 1fr; }
    .sim-controles { position: static; max-height: none; }
}

/* pagina didatica: texto longo, coluna de leitura */
.didatica {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); padding: 1.5rem 2rem 2rem; max-width: 900px;
    font-size: 0.95rem; line-height: 1.65;
}
.didatica section { margin-top: 2rem; }
.didatica h2 { font-size: 1.2rem; color: var(--clr-primary); margin-bottom: 0.6rem; }
.didatica p { margin: 0.6rem 0; }
.didatica ul, .didatica ol { margin: 0.5rem 0 0.8rem 1.5rem; }
.didatica li { margin: 0.3rem 0; }
.didatica code { font-size: 0.85rem; background: var(--bg-page); padding: 0 0.25rem; border-radius: 3px; }
.didatica .katex-display { overflow-x: auto; overflow-y: hidden; padding: 0.4rem 0; margin: 0.8rem 0; }
.toc {
    background: var(--bg-page); border-radius: var(--radius); padding: 0.8rem 1.1rem;
    font-size: 0.85rem;
}
.toc ol { columns: 2; column-gap: 2rem; margin: 0.4rem 0 0 1.3rem; }
.caixa-nota {
    background: #f1f5fb; border-left: 3px solid var(--clr-primary);
    padding: 0.7rem 1rem; border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.88rem; margin: 1rem 0;
}
.diagrama { margin: 1rem 0; }
.diagrama svg { width: 100%; height: auto; display: block; }
.diagrama figcaption { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.4rem; }
.refs li { font-size: 0.85rem; }
@media (max-width: 640px) {
    .didatica { padding: 1rem 0.9rem 1.5rem; font-size: 0.92rem; }
    .toc ol { columns: 1; }
}

/* diagrama de transmissao (SVG inline da pagina didatica) */
.diagrama .cx { fill: #fff; stroke: #00205B; stroke-width: 1.5; }
.diagrama .cxs { fill: #F3F5F8; stroke: #94a3b8; stroke-width: 1.2; stroke-dasharray: 4 3; }
.diagrama .t { font: 600 13px -apple-system, 'Segoe UI', Roboto, sans-serif; fill: #00205B; text-anchor: middle; }
.diagrama .ts { font: 11px -apple-system, 'Segoe UI', Roboto, sans-serif; fill: #64748b; text-anchor: middle; }
.diagrama .l { stroke: #475569; stroke-width: 1.4; fill: none; marker-end: url(#seta); }
.diagrama .la { stroke: #BA0C2F; stroke-width: 1.6; fill: none; marker-end: url(#setaA); }
.diagrama .r { font: italic 11px -apple-system, 'Segoe UI', Roboto, sans-serif; fill: #475569; }
.diagrama .ra { font: italic 11px -apple-system, 'Segoe UI', Roboto, sans-serif; fill: #BA0C2F; }

/* Modelo Macro: comparação mercado x Focus x modelo (aba Curva DI).
   Tudo é filho direto do .card, porque as regras de padding do card são por `>`. */
.card > h3.cmp-tit { font-size: 0.88rem; color: var(--clr-primary); margin: 0.9rem 0 0.4rem; padding: 0 1.1rem; }
/* seletor de prêmio: mesmo visual do .gsub, que é reservado aos botões de unidade dos gráficos */
.cmp-premio { display: flex; flex-wrap: wrap; gap: 0.2rem; margin: 0.2rem 0 0.6rem; padding: 0 1.1rem; }
.cmp-premio button {
    font: inherit; font-size: 0.76rem; padding: 0.25rem 0.7rem;
    border: 1px solid var(--border); background: transparent;
    color: var(--text-muted); cursor: pointer; border-radius: 5px;
}
.cmp-premio button:hover { color: var(--clr-primary); border-color: var(--clr-teal); }
.cmp-premio button.ativo { background: var(--clr-teal); border-color: var(--clr-teal); color: #fff; font-weight: 600; }
@media (max-width: 768px) {
    .card > h3.cmp-tit, .cmp-premio { padding-inline: 0.8rem; }
}

/* ================================================================
   Painel de abertura do tema (prototipo em /inflacao, 03/11/2026)
   ================================================================ */
/* Data de divulgacao ao lado do titulo: e o que impede o painel de esconder
   "qual metade mudou hoje". */
.painel-quando { font-size: 0.78rem; font-weight: 400; color: var(--text-muted); margin-left: 0.5rem; }
.painel-nota { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.6rem; line-height: 1.45; }
.painel-sub { font-size: 0.75rem; margin-left: 0.25rem; }
.painel-secao { font-size: 1.05rem; color: var(--clr-primary); margin: 1.5rem 0 0.75rem; }
.card h2 .badge { margin-left: 0.4rem; vertical-align: middle; }
.tab td .badge { margin-left: 0.35rem; }

/* Sparkline do acumulado em 12 meses. SVG do servidor, sem JS. */
.tab td.spark-cel { width: 120px; padding-top: 0.2rem; padding-bottom: 0.2rem; }
.spark { display: block; overflow: visible; }
.spark polyline { fill: none; stroke: var(--clr-primary); stroke-width: 1.4; stroke-linejoin: round; }
.spark circle { fill: var(--clr-accent); }
.spark .spark-zero { stroke: var(--grid-zero); stroke-width: 0.6; stroke-dasharray: 2 2; }

/* blogs (05/11/2026): lista ordenada e coluna de leitura. O molde e o de um
   post de texto longo: coluna de 680px centrada, serifa no corpo, titulo
   grande, subtitulo em italico, linha de autor em sans, regua, figura com
   legenda centrada e rodape pequeno. As pecas sao filhos DIRETOS do <main>
   (test_render exige >= 3), centradas uma a uma por `.blog-main > *`. */
.blog-main > * { max-width: 680px; margin-left: auto; margin-right: auto; }
.blog-main { font: 17px/1.65 Literata, Georgia, "Iowan Old Style", "Times New Roman", serif; color: #28251D; }
.blog-crumb { font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; margin: 0.4rem auto 0; }
.blog-crumb a { color: var(--clr-primary); }
.blog-titulo { font-size: 32px; line-height: 1.22; color: var(--clr-primary); margin: 14px auto 8px; font-weight: 700; }
.blog-dek { font-size: 19px; font-style: italic; color: #55524B; margin: 0 auto 14px; }
.blog-byline { font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--text-muted); margin: 0 auto 4px; }
.blog-byline strong { color: #28251D; }
.blog-nota { font: 12.5px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--text-muted); margin: 0 auto 6px; }
.blog-regua { border: 0; border-top: 2px solid var(--clr-primary); margin: 16px auto 26px; }
.blog-corpo h2 { font-size: 23px; color: var(--clr-primary); margin: 34px 0 10px; line-height: 1.3; }
.blog-corpo h3 { font-size: 19px; color: var(--clr-primary); margin: 26px 0 8px; }
.blog-corpo p { margin: 0 0 16px; }
.blog-corpo a { color: var(--clr-primary); }
.blog-corpo ul, .blog-corpo ol { margin: 0 0 16px; padding-left: 26px; }
.blog-corpo li { margin-bottom: 6px; }
.blog-corpo blockquote { margin: 0 0 16px; padding: 10px 18px; border-left: 3px solid var(--border); color: #55524B; font-style: italic; }
.blog-corpo table { border-collapse: collapse; margin: 0 auto 18px; font-size: 15px; }
.blog-corpo th, .blog-corpo td { border: 1px solid var(--border); padding: 7px 12px; text-align: center; }
.blog-corpo th { background: var(--bg-page); }
.blog-corpo figure { margin: 26px 0; text-align: center; }
.blog-corpo figure img { max-width: 100%; height: auto; border: 1px solid var(--bg-page); }
.blog-corpo figcaption { font: 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--text-muted); margin-top: 8px; text-align: center; }
.blog-corpo p, .blog-corpo li, .blog-corpo figcaption, .blog-corpo a { overflow-wrap: anywhere; }
.blog-caixa {
    margin: 26px 0; padding: 14px 18px; background: var(--bg-page); border: 1.5px solid var(--border);
    border-radius: 10px; font-size: 15px; line-height: 1.55;
}
.blog-caixa p { margin: 0 0 10px; }
.blog-caixa p:last-child { margin-bottom: 0; }
.blog-caixa strong { color: var(--clr-primary); }
.blog-foot { margin: 34px auto 0; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 14px; font: 12px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.blog-foot code { font-size: 11.5px; background: var(--bg-page); padding: 0 0.25rem; border-radius: 3px; }

/* a lista: ordenada, mais recente primeiro; titulo grande, sumario menor e mais claro */
.blog-lista { list-style: none; margin: 0.5rem 0 0; padding: 0; max-width: 680px; }
.blog-lista li { padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.blog-lista li:first-child { padding-top: 0.4rem; }
.blog-data { font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.blog-lista h2 { font: 700 24px/1.25 Literata, Georgia, "Iowan Old Style", "Times New Roman", serif; margin: 0.25rem 0 0.4rem; }
.blog-lista h2 a { color: var(--clr-primary); }
.blog-lista h2 a:hover { text-decoration: underline; }
.blog-sumario { font: 15px/1.55 Literata, Georgia, "Iowan Old Style", "Times New Roman", serif; color: #55524B; margin: 0; }
@media (max-width: 640px) {
    .blog-titulo { font-size: 26px; }
    .blog-dek { font-size: 17px; }
    .blog-main { font-size: 16px; }
    .blog-lista h2 { font-size: 21px; }
}

/* Segunda tabela de um cartao de manchete (o historico da serie principal),
   na Visao geral das divulgacoes. */
.tab-sub { font-size: 0.88rem; color: var(--clr-primary); margin: 1rem 0 0.4rem; }

/* Glossario (/glossario): termo em negrito, definicao embaixo. */
.glossario { padding: 0.4rem 1.1rem 1rem; margin: 0; }
.glossario dt { font-weight: 600; font-size: 0.88rem; margin-top: 0.7rem; color: var(--text); }
.glossario dd { margin: 0.15rem 0 0; font-size: 0.85rem; line-height: 1.5; color: var(--text); }

/* Rodape de todas as paginas. */
.rodape {
    margin-top: 2rem; padding: 1rem 0 0.5rem; border-top: 1px solid var(--border);
    font-size: 0.8rem; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem;
}
.rodape a { color: var(--clr-primary); }

/* Tabela 1 do comunicado do Copom, refeita na exibicao (`texto_peca`):
   dentro de um bloco `white-space: pre-line`, sem quebra entre celulas. */
.texto-corpo .tab-peca { white-space: normal; margin: 0.4rem 0 0.6rem; width: auto; }
.texto-corpo .tab-peca th, .texto-corpo .tab-peca td { padding: 0.2rem 0.7rem; }

/* Home: linha de apresentacao e grade dos temas. */
.home-intro { font-size: 0.9rem; line-height: 1.5; color: var(--text); margin: 0 0 1rem; }
.home-temas { margin-top: 1.5rem; }
.home-temas > h2 { font-size: 1rem; color: var(--clr-primary); margin-bottom: 0.6rem; }

/* Sobre: texto corrido em cartoes. */
.card.sobre > p { margin-bottom: 0.7rem; }
.card.sobre > p:last-child { padding-bottom: 0.4rem; }
.home-intro a, .card.sobre a { color: var(--clr-primary); text-decoration: underline; text-underline-offset: 2px; }

/* Fiscal: o perimetro da aba, logo abaixo das abas. */
.perimetro { font-size: 0.8rem; color: var(--text-muted); margin: -0.4rem 0 0.9rem; }
.numero .val .un { font-size: 0.75rem; font-weight: 400; color: var(--text-muted); }

/* /metodos: o selo vira link para a entrada; a entrada nao pode ficar
   escondida atras do cabecalho fixo ao seguir a ancora. */
a.selo { text-decoration: none; }
a.selo:hover { text-decoration: underline; }
.metodo { scroll-margin-top: 4.5rem; }
.metodos-indice { columns: 2; column-gap: 2rem; margin: 0.4rem 0 0; padding-left: 1.1rem; font-size: 0.85rem; }
@media (max-width: 640px) { .metodos-indice { columns: 1; } }
