/* ============================================================
   Azimute by CyberCompass - Stylesheet
   Dark Compass Cyber Theme — Mobile First
   ============================================================ */

/* --- Tokens de Design --- */
:root {
    /* Brand: #FF3662 | #101E2A | #0B2B48 | #F58634 */
    --bg-base:        #101E2A;
    --bg-surface:     #0d2035;
    --bg-card:        #0B2B48;
    --bg-card-hover:  #0f3255;
    --bg-sidebar:     #0a1c2e;
    --border:         #1a3a56;
    --border-light:   #244d6e;

    --text-primary:   #eef2f7;
    --text-secondary: #8da5bc;
    --text-muted:     #567090;
    --text-inverse:   #ffffff;

    --accent:         #FF3662;
    --accent-dim:     rgba(255, 54, 98, 0.12);
    --accent-glow:    rgba(255, 54, 98, 0.28);
    --accent-hover:   #ff5579;
    --accent-red:     #FF3662;
    --accent-orange:  #F58634;
    --accent-purple:  #7c3aed;

    --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  16px;
    --radius-xl:  24px;

    --shadow-sm:  0 1px 3px rgba(0,0,0,.4);
    --shadow-md:  0 4px 16px rgba(0,0,0,.5);
    --shadow-lg:  0 8px 32px rgba(0,0,0,.6);
    --shadow-accent: 0 0 20px rgba(255, 54, 98, 0.18);

    --transition: 200ms ease;
    --transition-slow: 400ms ease;

    --header-h:   64px;
    --sidebar-w:  280px;
    --container:  1280px;
}

/* Light theme */
[data-theme="light"] {
    --bg-base:        #f5f7fa;
    --bg-surface:     #ffffff;
    --bg-card:        #ffffff;
    --bg-card-hover:  #f0f4f8;
    --bg-sidebar:     #eef2f7;
    --border:         #d0dcea;
    --border-light:   #bccede;

    --text-primary:   #101E2A;
    --text-secondary: #34536e;
    --text-muted:     #7a9ab8;

    --accent:         #FF3662;
    --accent-dim:     rgba(255, 54, 98, 0.08);
    --accent-glow:    rgba(255, 54, 98, 0.2);
    --accent-hover:   #e02b55;
    --accent-orange:  #F58634;

    --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
    --shadow-md:  0 4px 16px rgba(0,0,0,.1);
    --shadow-lg:  0 8px 32px rgba(0,0,0,.12);
    --shadow-accent: 0 0 20px rgba(255, 54, 98, 0.12);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family:      var(--font-sans);
    background-color: var(--bg-base);
    color:            var(--text-primary);
    line-height:      1.6;
    min-height:       100vh;
    transition:       background-color var(--transition-slow), color var(--transition-slow);
}

a {
    color:           var(--accent);
    text-decoration: none;
    transition:      color var(--transition);
}
a:hover  { color: var(--accent-hover); }
a:focus-visible {
    outline:        2px solid var(--accent);
    outline-offset: 3px;
    border-radius:  3px;
}

img    { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, button { font-family: inherit; }

/* --- Layout --- */
.container {
    width:      100%;
    max-width:  var(--container);
    margin:     0 auto;
    padding:    0 1rem;
}

@media (min-width: 768px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* --- Grid principal --- */
.layout-grid {
    display:   grid;
    gap:       1.5rem;
    padding:   1.5rem 0;
    align-items: start;
}

@media (min-width: 1024px) {
    .layout-grid {
        grid-template-columns: var(--sidebar-w) 1fr;
        gap: 2rem;
    }
}

/* ============================================================
   HEADER
============================================================ */
.site-header {
    position:         sticky;
    top:              0;
    z-index:          100;
    background:       rgba(10, 14, 26, 0.92);
    backdrop-filter:  blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom:    1px solid var(--border);
    transition:       background var(--transition-slow);
}

[data-theme="light"] .site-header {
    background: rgba(240, 244, 248, 0.92);
}

.header-inner {
    display:     flex;
    align-items: center;
    gap:         1rem;
    height:      var(--header-h);
}

/* Logo */
.logo {
    display:     flex;
    align-items: center;
    gap:         .75rem;
    color:       var(--text-primary);
    flex-shrink: 0;
}

/* Logo PNG — troca automática por tema */
.logo-img {
    width:         52px;
    height:        52px;
    object-fit:    contain;
    transition:    filter var(--transition), opacity var(--transition);
    flex-shrink:   0;
}
.logo a:hover .logo-img { filter: drop-shadow(0 0 8px rgba(255,54,98,.5)); }

/* Dark theme: mostra logo escuro, esconde claro */
.logo-img--dark  { display: block; }
.logo-img--light { display: none;  }

[data-theme="light"] .logo-img--dark  { display: none;  }
[data-theme="light"] .logo-img--light { display: block; }

@keyframes compassSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name {
    font-size:   1.15rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color:       var(--text-primary);
    text-decoration: none;
}
.logo-name:hover { color: var(--accent); }
.logo-by {
    font-size:   .65rem;
    font-family: var(--font-mono);
    color:       var(--text-muted);
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* Tagline central */
.header-tagline {
    display:   none;
    color:     var(--text-muted);
    font-size: .8rem;
    flex:      1;
    text-align: center;
}
@media (min-width: 900px) { .header-tagline { display: block; } }

/* Controles header */
.header-controls {
    display:     flex;
    align-items: center;
    gap:         .5rem;
    margin-left: auto;
}

.btn-icon {
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           36px;
    height:          36px;
    border-radius:   var(--radius-sm);
    color:           var(--text-secondary);
    transition:      background var(--transition), color var(--transition);
}
.btn-icon svg { width: 18px; height: 18px; }
.btn-icon:hover {
    background: var(--accent-dim);
    color:      var(--accent);
}

.btn-rss {
    display:      flex;
    align-items:  center;
    gap:          .3rem;
    padding:      .35rem .7rem;
    border-radius: var(--radius-sm);
    font-size:    .75rem;
    font-weight:  600;
    color:        #f97316;
    border:       1px solid rgba(249, 115, 22, 0.3);
    transition:   all var(--transition);
}
.btn-rss svg     { width: 16px; height: 16px; }
.btn-rss:hover   { background: rgba(249,115,22,.1); color: #f97316; }

/* Barra de busca */
.search-bar {
    overflow:   hidden;
    max-height: 0;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
    border-top: 1px solid transparent;
}
.search-bar.is-open {
    max-height: 80px;
    padding:    .75rem 0;
    border-top-color: var(--border);
}

.search-input-wrap {
    display:     flex;
    align-items: center;
    gap:         .5rem;
    background:  var(--bg-surface);
    border:      1px solid var(--border);
    border-radius: var(--radius-md);
    padding:     .5rem .75rem;
    transition:  border-color var(--transition), box-shadow var(--transition);
}
.search-input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow:   0 0 0 3px var(--accent-dim);
}
.search-input-wrap svg {
    width:     18px;
    height:    18px;
    color:     var(--text-muted);
    flex-shrink: 0;
}
.search-input-wrap input {
    flex:        1;
    border:      none;
    outline:     none;
    background:  transparent;
    color:       var(--text-primary);
    font-size:   .9rem;
}
.search-input-wrap input::placeholder { color: var(--text-muted); }

/* ============================================================
   NEWS TICKER
============================================================ */
.news-ticker {
    background:    var(--bg-surface);
    border-bottom: 1px solid var(--border);
    overflow:      hidden;
}

.news-ticker .container {
    display:     flex;
    align-items: center;
    gap:         1rem;
    height:      36px;
}

.ticker-label {
    display:     flex;
    align-items: center;
    gap:         .35rem;
    font-family: var(--font-mono);
    font-size:   .65rem;
    font-weight: 600;
    color:       var(--accent);
    text-transform: uppercase;
    letter-spacing: .1em;
    white-space:  nowrap;
    flex-shrink:  0;
}
.ticker-label svg { width: 14px; height: 14px; }

.ticker-wrap {
    flex:     1;
    overflow: hidden;
}
.ticker-track {
    display:      inline-flex;
    gap:          2rem;
    animation:    tickerScroll 40s linear infinite;
    white-space:  nowrap;
}
.ticker-track:hover { animation-play-state: paused; }

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.ticker-item {
    display:      inline-flex;
    align-items:  center;
    gap:          .5rem;
    color:        var(--text-secondary);
    font-size:    .8rem;
    white-space:  nowrap;
    transition:   color var(--transition);
    flex-shrink:  0;
}
.ticker-item:hover { color: var(--accent); }
.ticker-source {
    font-family: var(--font-mono);
    font-size:   .7rem;
    color:       var(--accent);
    opacity:     .7;
}

/* ============================================================
   SIDEBAR
============================================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 1023px) {
    .sidebar { display: none; }
    .sidebar.mobile-open { display: flex; }
}

.sidebar-widget {
    background:    var(--bg-card);
    border:        1px solid var(--border);
    border-radius: var(--radius-lg);
    padding:       1.25rem;
    transition:    border-color var(--transition);
}
.sidebar-widget:hover { border-color: var(--border-light); }

/* Azimute card */
.azimute-card {
    display:      flex;
    align-items:  center;
    gap:          1rem;
    background:   linear-gradient(135deg, var(--bg-card) 0%, rgba(64,207,224,.06) 100%);
    border-color: #40cfe0;
    box-shadow:   0 0 20px rgba(64, 207, 224, 0.12);
}
.azimute-compass { width: 60px; height: 60px; flex-shrink: 0; }
.azimute-compass svg { animation: compassSpin 30s linear infinite; }

.azimute-title {
    font-size:   1rem;
    font-weight: 700;
    color:       #40cfe0;
}
.azimute-date {
    font-size:   .8rem;
    color:       var(--text-secondary);
    margin-top:  .15rem;
}
.azimute-updated {
    display:     flex;
    align-items: center;
    gap:         .3rem;
    font-size:   .7rem;
    color:       var(--text-muted);
    margin-top:  .35rem;
    font-family: var(--font-mono);
}
.icon-xs { width: 12px; height: 12px; }

/* Widget title */
.widget-title {
    display:     flex;
    align-items: center;
    gap:         .5rem;
    font-size:   .8rem;
    font-weight: 600;
    color:       var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .75rem;
}
.widget-title svg { width: 15px; height: 15px; }

/* Filtros de idioma */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.filter-btn {
    padding:       .3rem .7rem;
    border-radius: var(--radius-sm);
    font-size:     .78rem;
    font-weight:   500;
    color:         var(--text-secondary);
    border:        1px solid var(--border);
    transition:    all var(--transition);
}
.filter-btn:hover {
    border-color: var(--accent);
    color:        var(--accent);
    background:   var(--accent-dim);
}
.filter-btn.active {
    background:   var(--accent);
    color:        var(--text-inverse);
    border-color: var(--accent);
    font-weight:  600;
}
[data-theme="light"] .filter-btn.active { color: #fff; }

/* Cat filter nav */
.cat-filter-item {
    display:       flex;
    align-items:   center;
    gap:           .6rem;
    padding:       .5rem .6rem;
    border-radius: var(--radius-sm);
    color:         var(--text-secondary);
    font-size:     .85rem;
    transition:    all var(--transition);
    border:        1px solid transparent;
}
.cat-filter-item:hover {
    background:   var(--accent-dim);
    color:        var(--accent);
    border-color: var(--border-light);
}
.cat-filter-item.active {
    background:   var(--accent-dim);
    color:        var(--cat-color, var(--accent));
    border-color: var(--cat-color, var(--accent));
    font-weight:  600;
}
.cat-icon { width: 16px; height: 16px; flex-shrink: 0; }

.cat-count {
    margin-left:    auto;
    font-family:    var(--font-mono);
    font-size:      .7rem;
    background:     var(--bg-base);
    padding:        .1rem .4rem;
    border-radius:  var(--radius-sm);
    color:          var(--text-muted);
}

/* Radar stats */
.radar-stats  { display: flex; flex-direction: column; gap: .6rem; }
.radar-item   {}
.radar-label  {
    display:       flex;
    justify-content: space-between;
    font-size:     .78rem;
    color:         var(--text-secondary);
    margin-bottom: .3rem;
}
.radar-count  { font-family: var(--font-mono); font-size: .72rem; }
.radar-bar    {
    height:        4px;
    background:    var(--border);
    border-radius: 2px;
    overflow:      hidden;
}
.radar-fill {
    height:       100%;
    border-radius: 2px;
    transition:   width 1s ease;
}

/* Newsletter widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(124,58,237,.08) 100%);
    border-color: rgba(124,58,237,.3);
}
.newsletter-icon {
    width:       40px;
    height:      40px;
    background:  rgba(124,58,237,.15);
    border-radius: 50%;
    display:     flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .75rem;
    color:       #8b5cf6;
}
.newsletter-icon svg { width: 20px; height: 20px; }

.newsletter-desc {
    font-size:     .8rem;
    color:         var(--text-secondary);
    margin-bottom: .9rem;
    line-height:   1.5;
}

.newsletter-form { display: flex; flex-direction: column; gap: .5rem; }
.form-group input {
    width:         100%;
    padding:       .55rem .75rem;
    background:    var(--bg-base);
    border:        1px solid var(--border);
    border-radius: var(--radius-sm);
    color:         var(--text-primary);
    font-size:     .85rem;
    outline:       none;
    transition:    border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus {
    border-color: var(--accent-purple);
    box-shadow:   0 0 0 3px rgba(124,58,237,.15);
}
.form-group input::placeholder { color: var(--text-muted); }

.newsletter-msg {
    font-size:   .78rem;
    min-height:  1.2em;
    transition:  color var(--transition);
}
.newsletter-msg.success { color: #10b981; }
.newsletter-msg.error   { color: #ef4444; }

.newsletter-privacy {
    display:     flex;
    align-items: center;
    gap:         .3rem;
    font-size:   .68rem;
    color:       var(--text-muted);
    margin-top:  .25rem;
}
.newsletter-privacy svg { width: 11px; height: 11px; flex-shrink: 0; }

/* Links de referência */
.ref-links { display: flex; flex-direction: column; gap: .35rem; }
.ref-links a {
    font-size:   .82rem;
    color:       var(--text-secondary);
    padding:     .25rem 0;
    border-bottom: 1px solid var(--border);
    display:     flex;
    align-items: center;
    gap:         .4rem;
    transition:  color var(--transition);
    position:    relative;
}
.ref-links a::before {
    content: '→';
    color:   var(--accent);
    font-size: .8rem;
    opacity:   .6;
    flex-shrink: 0;
}
.ref-links a:hover { color: var(--accent); }
.ref-links li:last-child a { border-bottom: none; }

/* Tooltip nos links de referência */
.ref-links a[data-tooltip]::after {
    content:    attr(data-tooltip);
    position:   absolute;
    left:       calc(100% + 10px);
    top:        50%;
    transform:  translateY(-50%);
    width:      220px;
    padding:    .55rem .75rem;
    background: #07182a;
    border:     1px solid var(--border-light);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    color:      #eef2f7;
    font-size:  .75rem;
    line-height: 1.45;
    font-weight: 400;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    opacity:    0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
    z-index:    100;
    white-space: normal;
}
[data-theme="light"] .ref-links a[data-tooltip]::after {
    background: #ffffff;
    color:      #101E2A;
    border-color: #bccede;
    box-shadow: 0 4px 20px rgba(0,0,0,.13);
}
.ref-links a[data-tooltip]:hover::after {
    opacity:    1;
    visibility: visible;
}
/* Ajuste para itens no final da lista (tooltip para cima) */
.ref-links li:nth-last-child(-n+3) a[data-tooltip]::after {
    top:    auto;
    bottom: 100%;
    transform: none;
    margin-bottom: 6px;
}
/* Em telas pequenas, tooltip abaixo do link */
@media (max-width: 1100px) {
    .ref-links a[data-tooltip]::after {
        left:   0;
        right:  auto;
        top:    calc(100% + 6px);
        bottom: auto;
        transform: none;
        width:  min(260px, 80vw);
    }
    .ref-links li:nth-last-child(-n+3) a[data-tooltip]::after {
        top:    auto;
        bottom: calc(100% + 6px);
        margin-bottom: 0;
    }
}

/* ============================================================
   FEED PRINCIPAL
============================================================ */
.feed-header {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    flex-wrap:       wrap;
    gap:             .75rem;
    margin-bottom:   1.25rem;
    padding-bottom:  1rem;
    border-bottom:   1px solid var(--border);
}

.feed-title-wrap {
    display:     flex;
    align-items: center;
    gap:         .75rem;
    flex-wrap:   wrap;
}

.feed-title {
    display:     flex;
    align-items: center;
    gap:         .5rem;
    font-size:   1.25rem;
    font-weight: 700;
}
.feed-title-icon { width: 22px; height: 22px; color: var(--accent); }

.feed-count {
    font-family:   var(--font-mono);
    font-size:     .75rem;
    color:         var(--text-muted);
    background:    var(--bg-surface);
    padding:       .2rem .6rem;
    border-radius: var(--radius-sm);
    border:        1px solid var(--border);
}

.feed-controls { display: flex; gap: .5rem; align-items: center; }

/* ============================================================
   NEWS GRID & CARDS
============================================================ */
.news-grid {
    display:   grid;
    gap:       1rem;
}

@media (min-width: 640px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-card--featured {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1280px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .news-card--featured {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 380px 1fr;
    }
}

/* Card base */
.news-card {
    background:    var(--bg-card);
    border:        1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow:      hidden;
    transition:    transform var(--transition), border-color var(--transition),
                   box-shadow var(--transition);
    display:       flex;
    flex-direction: column;
}

.news-card:hover {
    transform:    translateY(-2px);
    border-color: var(--border-light);
    box-shadow:   var(--shadow-md);
}

/* Card imagem (destaque) */
.card-image {
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--bg-surface);
}
.card-image img {
    width:      100%;
    height:     100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.news-card:hover .card-image img { transform: scale(1.03); }

/* Card body */
.card-body {
    padding:        1.1rem;
    display:        flex;
    flex-direction: column;
    flex:           1;
    gap:            .6rem;
}

/* Meta */
.card-meta {
    display:     flex;
    align-items: center;
    gap:         .5rem;
    flex-wrap:   wrap;
}

.card-category {
    display:       flex;
    align-items:   center;
    gap:           .3rem;
    font-size:     .7rem;
    font-weight:   600;
    color:         var(--cat-color);
    background:    color-mix(in srgb, var(--cat-color) 12%, transparent);
    padding:       .2rem .55rem;
    border-radius: var(--radius-sm);
    border:        1px solid color-mix(in srgb, var(--cat-color) 25%, transparent);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.card-category .cat-icon { width: 11px; height: 11px; }

.card-source {
    display:     flex;
    align-items: center;
    gap:         .25rem;
    font-size:   .72rem;
    color:       var(--text-muted);
    font-family: var(--font-mono);
    margin-left: auto;
    white-space: nowrap;
    overflow:    hidden;
    text-overflow: ellipsis;
    max-width:   140px;
}
.source-emoji { font-size: .82rem; flex-shrink: 0; }
.card-country { font-size: .82rem; }

/* Título */
.card-title {
    font-size:   .9rem;
    font-weight: 600;
    line-height: 1.4;
}
.card-title--lg {
    font-size:   1.2rem;
    font-weight: 700;
}
.card-title a {
    color: var(--text-primary);
    transition: color var(--transition);
}
.card-title a:hover { color: var(--accent); }

/* Summary */
.card-summary {
    font-size:   .82rem;
    color:       var(--text-secondary);
    line-height: 1.55;
    display:     -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow:    hidden;
}

/* Card footer */
.card-footer {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    margin-top:      auto;
    padding-top:     .75rem;
    border-top:      1px solid var(--border);
    gap:             .5rem;
}

.card-time {
    display:     flex;
    align-items: center;
    gap:         .3rem;
    font-size:   .72rem;
    color:       var(--text-muted);
    font-family: var(--font-mono);
    white-space: nowrap;
}
.card-time svg { width: 12px; height: 12px; }

.card-actions { display: flex; gap: .35rem; align-items: center; }

.btn-read {
    display:       flex;
    align-items:   center;
    gap:           .3rem;
    padding:       .3rem .65rem;
    border-radius: var(--radius-sm);
    font-size:     .75rem;
    font-weight:   600;
    color:         var(--accent);
    border:        1px solid rgba(255, 54, 98, 0.3);
    transition:    all var(--transition);
}
.btn-read svg { width: 12px; height: 12px; }
.btn-read:hover {
    background:  var(--accent);
    color:       var(--text-inverse);
    border-color: var(--accent);
}
[data-theme="light"] .btn-read:hover { color: #fff; }

.btn-share {
    display:         flex;
    align-items:     center;
    justify-content: center;
    width:           30px;
    height:          30px;
    border-radius:   var(--radius-sm);
    color:           var(--text-muted);
    border:          1px solid var(--border);
    transition:      all var(--transition);
}
.btn-share svg { width: 14px; height: 14px; }
.btn-share:hover {
    color:       var(--accent);
    border-color: var(--accent);
    background:  var(--accent-dim);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding:    4rem 2rem;
    color:      var(--text-muted);
}
.empty-compass {
    width:   80px;
    height:  80px;
    margin:  0 auto 1.5rem;
}
.empty-state h2 {
    font-size:    1.1rem;
    margin-bottom: .5rem;
    color:        var(--text-secondary);
}
.empty-state p { font-size: .9rem; }
.empty-state a { color: var(--accent); }

/* ============================================================
   PAGINAÇÃO
============================================================ */
.pagination {
    display:         flex;
    justify-content: center;
    gap:             .4rem;
    margin-top:      2rem;
    flex-wrap:       wrap;
}

.page-btn {
    display:         flex;
    align-items:     center;
    justify-content: center;
    min-width:       38px;
    height:          38px;
    padding:         0 .5rem;
    border-radius:   var(--radius-sm);
    font-size:       .85rem;
    font-weight:     500;
    color:           var(--text-secondary);
    border:          1px solid var(--border);
    transition:      all var(--transition);
}
.page-btn:hover {
    border-color: var(--accent);
    color:        var(--accent);
    background:   var(--accent-dim);
}
.page-btn.active {
    background:   var(--accent);
    color:        var(--text-inverse);
    border-color: var(--accent);
    font-weight:  700;
}
[data-theme="light"] .page-btn.active { color: #fff; }

/* ============================================================
   BOTÕES UTILITÁRIOS
============================================================ */
.btn-primary {
    display:         inline-flex;
    align-items:     center;
    justify-content: center;
    gap:             .4rem;
    padding:         .55rem 1.1rem;
    border-radius:   var(--radius-sm);
    font-size:       .85rem;
    font-weight:     600;
    background:      var(--accent);
    color:           var(--text-inverse);
    transition:      all var(--transition);
    cursor:          pointer;
    border:          none;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform:  translateY(-1px);
    box-shadow: var(--shadow-accent);
    color:      var(--text-inverse);
}
.btn-primary svg { width: 15px; height: 15px; }
.btn-primary.btn-sm { padding: .35rem .7rem; font-size: .78rem; }
.btn-primary.btn-full { width: 100%; }
[data-theme="light"] .btn-primary { color: #fff; }

.btn-ghost {
    display:     inline-flex;
    align-items: center;
    gap:         .35rem;
    padding:     .35rem .7rem;
    border-radius: var(--radius-sm);
    font-size:   .78rem;
    color:       var(--text-muted);
    border:      1px solid var(--border);
    transition:  all var(--transition);
}
.btn-ghost:hover {
    color:       var(--text-primary);
    border-color: var(--border-light);
    background:  var(--bg-surface);
}
.btn-ghost svg { width: 13px; height: 13px; }
.btn-sm { font-size: .78rem; }

/* ============================================================
   MAIN
============================================================ */
.site-main { min-height: calc(100vh - var(--header-h) - 200px); }

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
    background:    var(--bg-surface);
    border-top:    1px solid var(--border);
    margin-top:    3rem;
    padding:       3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    gap:     2rem;
    grid-template-columns: 1fr;
}

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

.footer-brand p {
    color:     var(--text-muted);
    font-size: .82rem;
    margin-top: .5rem;
    line-height: 1.6;
}
.footer-desc { margin-top: .35rem !important; }

.footer-logo {
    display:     inline-flex;
    align-items: center;
    gap:         .5rem;
    color:       var(--text-primary);
    font-size:   1rem;
    font-weight: 700;
    margin-bottom: .75rem;
}
.footer-logo a { color: var(--text-primary); text-decoration: none; }
.footer-logo a:hover { color: var(--accent); }
.footer-logo span { font-size: .7rem; font-weight: 400; color: var(--text-muted); }

/* Footer logo PNG — troca por tema */
.footer-logo-img {
    width:      40px;
    height:     40px;
    object-fit: contain;
    flex-shrink: 0;
}
.footer-logo-img--dark  { display: block; }
.footer-logo-img--light { display: none;  }

[data-theme="light"] .footer-logo-img--dark  { display: none;  }
[data-theme="light"] .footer-logo-img--light { display: block; }

.footer-links h4 {
    font-size:   .78rem;
    font-weight: 600;
    color:       var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .75rem;
}
.footer-links li { margin-bottom: .4rem; }
.footer-links a {
    font-size: .82rem;
    color:     var(--text-muted);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-newsletter h4 {
    font-size:   .78rem;
    font-weight: 600;
    color:       var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .5rem;
}
.footer-newsletter p {
    color:     var(--text-muted);
    font-size: .8rem;
    margin-bottom: .75rem;
}
.footer-newsletter form {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.footer-newsletter input {
    padding:     .5rem .75rem;
    background:  var(--bg-card);
    border:      1px solid var(--border);
    border-radius: var(--radius-sm);
    color:       var(--text-primary);
    font-size:   .82rem;
    outline:     none;
    transition:  border-color var(--transition);
}
.footer-newsletter input:focus { border-color: var(--accent); }
.footer-newsletter input::placeholder { color: var(--text-muted); }

.footer-bottom {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    flex-wrap:       wrap;
    gap:             .75rem;
    margin-top:      2rem;
    padding-top:     1.25rem;
    border-top:      1px solid var(--border);
}
.footer-bottom p {
    font-size: .75rem;
    color:     var(--text-muted);
}
.footer-bottom a { color: var(--accent); }

.footer-social { display: flex; gap: .75rem; }
.footer-social a {
    width:           32px;
    height:          32px;
    display:         flex;
    align-items:     center;
    justify-content: center;
    color:           var(--text-muted);
    border:          1px solid var(--border);
    border-radius:   50%;
    transition:      all var(--transition);
}
.footer-social a svg { width: 15px; height: 15px; }
.footer-social a:hover {
    color:       var(--accent);
    border-color: var(--accent);
    background:  var(--accent-dim);
}

/* ============================================================
   SHARE TOAST
============================================================ */
.share-toast {
    position:      fixed;
    bottom:        1.5rem;
    left:          50%;
    transform:     translateX(-50%) translateY(80px);
    background:    var(--bg-card);
    color:         var(--text-primary);
    border:        1px solid var(--accent);
    border-radius: var(--radius-md);
    padding:       .6rem 1.2rem;
    font-size:     .85rem;
    font-weight:   500;
    z-index:       1000;
    box-shadow:    var(--shadow-accent);
    opacity:       0;
    transition:    transform var(--transition-slow), opacity var(--transition-slow);
    pointer-events: none;
}
.share-toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity:   1;
}

/* ============================================================
   GRID RADAR / DECORATIVO
============================================================ */
.site-header::after {
    content:    '';
    position:   absolute;
    bottom:     0;
    left:       0;
    right:      0;
    height:     1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity:    .4;
}

/* ============================================================
   SCROLLBAR PERSONALIZADA
============================================================ */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
    background:    var(--border);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ============================================================
   ACESSIBILIDADE
============================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration:   .01ms !important;
        transition-duration:  .01ms !important;
    }
}

/* ============================================================
   LOADING SKELETON
============================================================ */
.skeleton {
    background: linear-gradient(90deg,
        var(--bg-card) 25%,
        var(--border) 50%,
        var(--bg-card) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-pulse {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   MOBILE MENU TOGGLE (sidebar em mobile)
============================================================ */
.mobile-sidebar-toggle {
    display:     flex;
    align-items: center;
    gap:         .4rem;
    padding:     .5rem .9rem;
    border-radius: var(--radius-sm);
    font-size:   .8rem;
    font-weight: 500;
    color:       var(--text-secondary);
    border:      1px solid var(--border);
    background:  var(--bg-card);
    transition:  all var(--transition);
    margin-bottom: .75rem;
}
.mobile-sidebar-toggle svg { width: 15px; height: 15px; }
.mobile-sidebar-toggle:hover {
    border-color: var(--accent);
    color:        var(--accent);
}

@media (min-width: 1024px) { .mobile-sidebar-toggle { display: none; } }

/* ============================================================
   EM FOCO — Spotlight Section (AI curated)
============================================================ */
.spotlight-section {
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(59,130,246,.08) 0%, rgba(255,54,98,.06) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.spotlight-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #FF3662, #8b5cf6);
}

.spotlight-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid var(--accent-glow);
    border-radius: var(--radius-sm);
    padding: .2rem .6rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.spotlight-badge svg { width: 12px; height: 12px; }

.spotlight-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* Wrapper do label "curado por IA" com tooltip */
.ai-label-wrap {
    margin-left: auto;
    position: relative;
    display: inline-flex;
}

.spotlight-ai-label {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .7rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: .15rem .55rem;
    cursor: default;
    transition: color var(--transition), border-color var(--transition);
}

.ai-label-icon {
    font-size: .65rem;
    opacity: .7;
}

.ai-label-wrap:hover .spotlight-ai-label {
    color: var(--accent);
    border-color: var(--accent);
}

/* Tooltip do "curado por IA" */
.ai-label-tooltip {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 280px;
    padding: .85rem 1rem;
    background: #07182a;
    border: 1px solid var(--border-light);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.ai-label-wrap:hover .ai-label-tooltip {
    opacity: 1;
    visibility: visible;
}

[data-theme="light"] .ai-label-tooltip {
    background: #ffffff;
    border-color: #bccede;
    border-top-color: var(--accent);
    box-shadow: 0 4px 20px rgba(0,0,0,.13);
}

.ai-tooltip-title {
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: .5rem;
    letter-spacing: .02em;
}
[data-theme="light"] .ai-tooltip-title { color: #101E2A; }

.ai-tooltip-text {
    font-size: .72rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: .6rem;
}
[data-theme="light"] .ai-tooltip-text { color: #34536e; }
[data-theme="light"] .ai-tooltip-text strong { color: #101E2A; }

.ai-tooltip-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: .6rem;
    font-size: .68rem;
}

.ai-tooltip-table tr { border-bottom: 1px solid var(--border); }
.ai-tooltip-table tr:last-child { border-bottom: none; }

.ai-tooltip-table td {
    padding: .25rem .1rem;
    color: var(--text-secondary);
    line-height: 1.35;
    vertical-align: top;
}
[data-theme="light"] .ai-tooltip-table td { color: #34536e; }

.ai-tt-score {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--accent) !important;
    white-space: nowrap;
    padding-right: .5rem !important;
    width: 2.5rem;
}

.ai-tooltip-note {
    font-size: .67rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: .45rem;
    font-style: italic;
}
[data-theme="light"] .ai-tooltip-note { color: #7a9ab8; border-color: #d0dcea; }

/* Responsivo: em mobile o tooltip vai para a esquerda */
@media (max-width: 640px) {
    .ai-label-tooltip {
        right: auto;
        left: 0;
        width: min(280px, 90vw);
    }
}

.spotlight-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

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

.spotlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    gap: .75rem;
    transition: border-color var(--transition), transform var(--transition);
}

.spotlight-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.spotlight-score {
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 2.75rem;
    padding-top: .15rem;
}

/* Score display: número + ⓘ */
.score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}

.score-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
}

.score-label {
    font-size: .65rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.score-info-icon {
    font-size: .7rem;
    color: var(--text-muted);
    margin-top: .2rem;
    transition: color var(--transition);
    user-select: none;
}

.spotlight-score:hover .score-info-icon {
    color: var(--accent);
}

/* Tooltip dimensional */
.score-tooltip {
    position: absolute;
    left: calc(100% + 10px);
    top: 0;
    width: 210px;
    padding: .75rem .85rem;
    background: #07182a;
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
}
[data-theme="light"] .score-tooltip {
    background: #ffffff;
    border-color: #bccede;
    box-shadow: 0 4px 20px rgba(0,0,0,.13);
}

.spotlight-score:hover .score-tooltip {
    opacity: 1;
    visibility: visible;
}

.score-tooltip-title {
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: .55rem;
    letter-spacing: .02em;
}
[data-theme="light"] .score-tooltip-title { color: #101E2A; }
[data-theme="light"] .score-dim-label     { color: #34536e; }
[data-theme="light"] .score-dim-val       { color: #7a9ab8; }
[data-theme="light"] .score-tooltip-footer { color: #7a9ab8; border-color: #d0dcea; }

.score-dim {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .35rem;
}

.score-dim-label {
    font-size: .68rem;
    color: var(--text-secondary);
    width: 5.5rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.score-dim-bar {
    flex: 1;
    height: 5px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}

.score-dim-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 99px;
    transition: width .4s ease;
}

.score-dim-fill--govai {
    background: #3b82f6;
}

.score-dim-val {
    font-size: .65rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    flex-shrink: 0;
    width: 2rem;
    text-align: right;
}

.score-tooltip-footer {
    margin-top: .55rem;
    font-size: .62rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: .4rem;
    text-align: center;
}

/* Em telas pequenas o tooltip vai abaixo */
@media (max-width: 640px) {
    .score-tooltip {
        left: 0;
        top: calc(100% + 8px);
        width: min(210px, 85vw);
    }
}

.spotlight-body { flex: 1; min-width: 0; }

.spotlight-card-title {
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.4;
    margin: .5rem 0 .4rem;
    color: var(--text-primary);
}

.spotlight-card-title a {
    color: inherit;
    text-decoration: none;
}

.spotlight-card-title a:hover { color: var(--accent); }

.spotlight-summary {
    font-size: .8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 .75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   BOTÃO DASHBOARD (HEADER)
============================================================ */
.btn-dashboard {
    display:        inline-flex;
    align-items:    center;
    gap:            .35rem;
    font-size:      .78rem;
    font-weight:    500;
    color:          var(--text-secondary);
    border:         1px solid var(--border);
    border-radius:  var(--radius-sm);
    padding:        .3rem .65rem;
    transition:     color var(--transition), border-color var(--transition), background var(--transition);
    white-space:    nowrap;
}
.btn-dashboard svg { width: 14px; height: 14px; }
.btn-dashboard:hover {
    color:          var(--accent);
    border-color:   var(--accent);
    background:     var(--accent-dim);
}

/* ============================================================
   DASHBOARD PAGE
============================================================ */
.dash-page-header {
    display:         flex;
    align-items:     flex-start;
    justify-content: space-between;
    flex-wrap:       wrap;
    gap:             1rem;
    padding:         1.75rem 0 1.25rem;
    border-bottom:   1px solid var(--border);
    margin-bottom:   1.5rem;
}

.dash-page-title {
    display:     flex;
    align-items: center;
    gap:         .5rem;
    font-size:   1.4rem;
    font-weight: 700;
    color:       var(--text-primary);
    margin-bottom: .25rem;
}
.dash-page-title svg { width: 22px; height: 22px; color: var(--accent); }

.dash-page-sub {
    font-size:  .85rem;
    color:      var(--text-muted);
    max-width:  500px;
}

.dash-range-filter {
    display:   flex;
    gap:       .4rem;
    flex-wrap: wrap;
}

/* KPI Grid */
.kpi-grid {
    display:               grid;
    grid-template-columns: repeat(2, 1fr);
    gap:                   1rem;
    margin-bottom:         1.5rem;
}
@media (min-width: 640px)  { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }

.kpi-card {
    background:    var(--bg-card);
    border:        1px solid var(--border);
    border-radius: var(--radius-lg);
    padding:       1.1rem 1.2rem;
    display:       flex;
    align-items:   flex-start;
    gap:           .85rem;
    transition:    border-color var(--transition);
}
.kpi-card:hover { border-color: var(--border-light); }
.kpi-card--focus { border-color: rgba(59, 130, 246, .35); }
.kpi-card--focus:hover { border-color: #3b82f6; }

.kpi-icon {
    flex-shrink:   0;
    width:         36px;
    height:        36px;
    border-radius: var(--radius-sm);
    display:       flex;
    align-items:   center;
    justify-content: center;
}
.kpi-icon svg { width: 18px; height: 18px; }
.kpi-icon--articles  { background: rgba(255, 54, 98,  .12); color: var(--accent); }
.kpi-icon--score     { background: rgba(245, 134, 52, .12); color: #F58634; }
.kpi-icon--gov       { background: rgba(59,  130, 246, .12); color: #3b82f6; }
.kpi-icon--up        { background: rgba(34,  197, 94,  .12); color: #22c55e; }
.kpi-icon--down      { background: rgba(239, 68,  68,  .12); color: #ef4444; }

.kpi-body { min-width: 0; }
.kpi-value {
    font-family: var(--font-mono);
    font-size:   1.55rem;
    font-weight: 700;
    color:       var(--text-primary);
    line-height: 1;
    margin-bottom: .2rem;
}
.kpi-unit   { font-size: .85rem; color: var(--text-muted); }
.kpi-label  { font-size: .8rem; font-weight: 500; color: var(--text-secondary); margin-bottom: .1rem; }
.kpi-sub    { font-size: .72rem; color: var(--text-muted); }

.kpi-trend        { font-family: var(--font-mono); }
.kpi-trend--up    { color: #22c55e; }
.kpi-trend--down  { color: #ef4444; }

/* Dashboard 2-column grid */
.dash-grid {
    display:               grid;
    grid-template-columns: 1fr;
    gap:                   1rem;
    margin-bottom:         1rem;
}
@media (min-width: 768px) {
    .dash-grid { grid-template-columns: 1fr 1fr; }
}

/* Widget */
.dash-widget {
    background:    var(--bg-card);
    border:        1px solid var(--border);
    border-radius: var(--radius-lg);
    padding:       1.25rem 1.4rem;
}

.widget-header {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             .5rem;
    flex-wrap:       wrap;
    margin-bottom:   1rem;
}
.widget-header .widget-title {
    font-size:   .95rem;
    font-weight: 600;
    color:       var(--text-primary);
}
.widget-badge {
    font-size:     .7rem;
    color:         var(--text-muted);
    background:    var(--bg-surface);
    border:        1px solid var(--border);
    border-radius: 99px;
    padding:       .15rem .55rem;
    white-space:   nowrap;
}

/* Donut chart */
.chart-donut-wrap {
    position: relative;
    height:   220px;
    margin-bottom: 1rem;
}

/* Line chart */
.chart-line-wrap {
    position: relative;
    height:   240px;
    margin-bottom: .5rem;
}
.chart-hint {
    font-size: .72rem;
    color:     var(--text-muted);
    text-align: center;
}

/* Donut legend */
.donut-legend { display: flex; flex-direction: column; gap: .4rem; }
.legend-item {
    display:     flex;
    align-items: center;
    gap:         .5rem;
    font-size:   .8rem;
}
.legend-dot {
    width:         10px;
    height:        10px;
    border-radius: 50%;
    flex-shrink:   0;
}
.legend-label  { flex: 1; color: var(--text-secondary); }
.legend-stats  { display: flex; gap: .35rem; }
.legend-stats strong { color: var(--text-primary); }
.legend-stats span   { color: var(--text-muted); }

/* Top sources bars */
.source-bars      { display: flex; flex-direction: column; gap: .65rem; }
.src-bar-row      { display: flex; flex-direction: column; gap: .25rem; }
.src-bar-info     { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.src-bar-name     { font-size: .82rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-bar-score    { font-family: var(--font-mono); font-size: .72rem; flex-shrink: 0; font-weight: 600; }
.src-bar-track    { position: relative; height: 7px; background: var(--border); border-radius: 99px; overflow: hidden; }
.src-bar-fill     { height: 100%; background: var(--accent); border-radius: 99px; transition: width .5s ease; opacity: .75; }
.src-bar-count    { position: absolute; right: 0; top: -1.25rem; font-size: .65rem; color: var(--text-muted); font-family: var(--font-mono); }

/* Score distribution bars */
.score-dist-bars { display: flex; flex-direction: column; gap: .8rem; }
.score-dist-row  { display: flex; flex-direction: column; gap: .3rem; }
.score-dist-meta { display: flex; align-items: center; gap: .5rem; font-size: .8rem; }
.score-dist-range{ font-family: var(--font-mono); font-weight: 700; flex-shrink: 0; width: 2.5rem; }
.score-dist-desc { flex: 1; color: var(--text-secondary); }
.score-dist-count{ font-family: var(--font-mono); color: var(--text-muted); flex-shrink: 0; }
.score-dist-track{ height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; }
.score-dist-fill { height: 100%; border-radius: 99px; transition: width .5s ease; }
.score-summary-note {
    margin-top:  .75rem;
    font-size:   .78rem;
    color:       var(--text-secondary);
    padding-top: .6rem;
    border-top:  1px solid var(--border);
}

/* Insights */
.dash-insights-widget { margin-bottom: 1.5rem; }
.insight-list { display: flex; flex-direction: column; gap: .55rem; list-style: none; }
.insight-item {
    display:     flex;
    align-items: flex-start;
    gap:         .6rem;
    font-size:   .85rem;
    color:       var(--text-secondary);
    padding:     .55rem .7rem;
    background:  var(--bg-surface);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
}
.insight-icon { flex-shrink: 0; font-size: .95rem; }
.insight-text { line-height: 1.5; }

/* Empty state */
.dash-empty {
    color:      var(--text-muted);
    font-size:  .85rem;
    text-align: center;
    padding:    2rem 0;
    line-height: 1.6;
}

/* ============================================================
   PRINT
============================================================ */
@media print {
    .site-header, .site-footer, .sidebar, .news-ticker,
    .card-actions, .newsletter-widget { display: none !important; }
    .layout-grid { display: block; }
    .news-card   { break-inside: avoid; border: 1px solid #ccc; margin-bottom: 1rem; }
}
