/* ==========================================================================
   Pace — CordiAlban Design System
   Mobile-first (375px primary), dark theme only
   ========================================================================== */


/* ==========================================================================
   1. Reset & CSS Custom Properties
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Background layers */
    --color-bg:           #0C0B09;
    --color-elevated:     #161412;
    --color-card:         #1C1A16;
    --color-surface-hover:#252220;

    /* Text */
    --color-text:         #E8E2D8;
    --color-text-muted:   #9B9484;
    --color-text-dim:     #6B6459;

    /* Accent — Sober Green (aligned with CordiAlban Pace theme) */
    --color-accent:       #2D8B46;
    --color-accent-bright:#38A856;
    --color-accent-dim:   #1E6B33;

    /* Border */
    --color-border:       rgba(45, 139, 70, 0.08);
    --color-border-hover: rgba(45, 139, 70, 0.18);

    /* Info-Score grades */
    --grade-a:    #2D8B46;
    --grade-a-bg: rgba(45, 139, 70, 0.13);
    --grade-b:    #6BAD4B;
    --grade-b-bg: rgba(107, 173, 75, 0.13);
    --grade-c:    #D4A017;
    --grade-c-bg: rgba(212, 160, 23, 0.13);
    --grade-d:    #D4652A;
    --grade-d-bg: rgba(212, 101, 42, 0.13);
    --grade-e:    #C42B2B;
    --grade-e-bg: rgba(196, 43, 43, 0.13);
    --grade-n:    #6B6459;

    /* Radii */
    --radius:     12px;
    --radius-sm:  8px;
    --radius-xs:  4px;

    /* Layout */
    --max-width:  680px;
    --header-height: 56px;

    /* Fonts */
    --font-display: 'Newsreader', 'Georgia', serif;
    --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:    'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

    /* Spacing */
    --section-pad: 4rem;

    /* Shorthand aliases — used by inline template styles (conferences, vulgarisation, intervenants) */
    --border:       rgba(45, 139, 70, 0.08);
    --text-primary: #E8E2D8;
    --text-muted:   #9B9484;
    --text-secondary: #C0B8AC;
    --font-serif:   'Newsreader', 'Georgia', serif;
    --bg-primary:   #0C0B09;
    --bg-secondary: #161412;
    --bg-tertiary:  #1C1A16;
    --bg-hover:     #252220;
    --accent:       #2D8B46;
}


/* ==========================================================================
   2. Base / Typography / Links
   ========================================================================== */

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle grain overlay — matches cordiAlban texture */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: .02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
    background: rgba(45, 139, 70, 0.3);
    color: var(--color-text);
}

/* Heading hierarchy — cordiAlban scale adapted for app UI */
h1 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--color-text);
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-text);
}

h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    color: var(--color-accent-bright);
    text-decoration: underline;
}

code, .mono {
    font-family: var(--font-mono);
}

img {
    max-width: 100%;
    height: auto;
}


/* ==========================================================================
   3. Header (sticky)
   ========================================================================== */

.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12, 11, 9, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-text);
    letter-spacing: -0.5px;
}

.logo-tagline {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: none;
}

.nav-links {
    display: flex;
    gap: 2px;
}

.nav-link {
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.2px;
}

.nav-link:hover {
    background: var(--color-elevated);
    color: var(--color-text);
    text-decoration: none;
}

.nav-link.active {
    background: var(--color-accent);
    color: var(--color-bg);
    font-weight: 600;
}


/* ==========================================================================
   4. Main Content Container
   ========================================================================== */

.main-content {
    flex: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 16px 80px;
    width: 100%;
}

/* ==========================================================================
   Tab Bar — Bottom navigation style app
   ========================================================================== */

.tab-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 56px;
    background: rgba(12, 11, 9, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(45, 139, 70, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    padding: 6px 0;
    text-decoration: none;
    color: var(--color-text-dim);
    transition: color .15s;
    -webkit-tap-highlight-color: transparent;
}

.tab-item:hover {
    color: var(--color-text-muted);
    text-decoration: none;
}

.tab-item.active {
    color: var(--color-accent);
}

.tab-icon {
    width: 22px;
    height: 22px;
}

.tab-label {
    font-family: var(--font-body);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
}


/* ==========================================================================
   5. Footer
   ========================================================================== */

.app-footer {
    margin-top: auto;
    padding: 24px 16px;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    font-size: 0.75rem;
    color: var(--color-text-dim);
}

.footer-disclaimer {
    margin-top: 4px;
}


/* ==========================================================================
   6. Filters Bar
   ========================================================================== */

.filters-bar {
    margin-bottom: 20px;
}

.filters-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 0;
}

.filter-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-dim);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-group select {
    width: 100%;
    padding: 8px 12px;
    background: var(--color-card);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.15s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6459' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--color-accent);
}


/* ==========================================================================
   7. Article Feed Cards
   ========================================================================== */

.articles-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.article-link {
    display: block;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}

.article-link:hover {
    text-decoration: none;
}

.article-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.article-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.article-source {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.article-date {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-dim);
}

.article-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
    margin-bottom: 6px;
}

.article-excerpt {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-commentary {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 8px;
    padding: 8px 10px;
    border-left: 2px solid var(--color-accent-dim);
    background: var(--color-elevated);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-scores-mini {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.mini-score {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-dim);
    background: var(--color-bg);
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.mini-score-conf {
    color: var(--color-accent);
    font-weight: 600;
}

.mini-score-conf::before {
    content: "conf ";
    font-weight: 400;
    opacity: 0.7;
}

.mini-score-date {
    color: var(--color-text-dim);
    font-size: 0.6rem;
    opacity: 0.7;
}

.mini-score-n {
    color: var(--color-text-dim);
    font-style: italic;
    font-family: var(--font-body);
}


/* ==========================================================================
   8. Score Badges (sm / default / lg)
   ========================================================================== */

.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    line-height: 1;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.score-badge-sm {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    border-radius: 8px;
}

.score-badge-large {
    width: 72px;
    height: 72px;
    font-size: 2rem;
    border-radius: 16px;
}

/* Grade colours */
.grade-a {
    background: var(--grade-a);
    box-shadow: 0 2px 10px var(--grade-a-bg);
}

.grade-b {
    background: var(--grade-b);
    color: #1a1a1a;
    box-shadow: 0 2px 10px var(--grade-b-bg);
}

.grade-c {
    background: var(--grade-c);
    color: #1a1a1a;
    box-shadow: 0 2px 10px var(--grade-c-bg);
}

.grade-d {
    background: var(--grade-d);
    box-shadow: 0 2px 10px var(--grade-d-bg);
}

.grade-e {
    background: var(--grade-e);
    box-shadow: 0 2px 10px var(--grade-e-bg);
}

.grade-pending {
    background: rgba(61, 122, 79, 0.12);
    color: var(--color-text-dim);
}

.grade-n {
    background: rgba(107, 100, 89, 0.3);
    color: var(--color-text-dim);
    font-style: italic;
    font-size: 1rem;
}

.grade-n-text {
    color: var(--color-text-dim);
}

/* Background fills for stacked bars */
.grade-bg-a { background: var(--grade-a); }
.grade-bg-b { background: var(--grade-b); }
.grade-bg-c { background: var(--grade-c); }
.grade-bg-d { background: var(--grade-d); }
.grade-bg-e { background: var(--grade-e); }
.grade-bg-n { background: var(--grade-n); }

/* Grade distribution bar fills */
.grade-dist-fill-a { background: var(--grade-a); }
.grade-dist-fill-b { background: var(--grade-b); }
.grade-dist-fill-c { background: var(--grade-c); }
.grade-dist-fill-d { background: var(--grade-d); }
.grade-dist-fill-e { background: var(--grade-e); }
.grade-dist-fill-n { background: var(--grade-n); }


/* ==========================================================================
   9. Article Detail Page
   ========================================================================== */

.article-detail {
    padding-bottom: var(--section-pad);
}

.back-link {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 16px;
    transition: color 0.15s;
}

.back-link:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.detail-header {
    margin-bottom: 24px;
}

.detail-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 12px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.detail-source {
    font-family: var(--font-mono);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}

.detail-author {
    color: var(--color-text-dim);
}

.detail-date {
    color: var(--color-text-dim);
}

.original-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    margin-bottom: 24px;
    transition: border-color 0.15s;
}

.original-link:hover {
    border-color: var(--color-border-hover);
    text-decoration: none;
}

/* Score Overview */
.score-overview {
    text-align: center;
    padding: 24px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.score-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.score-label {
    text-align: left;
}

.score-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.score-name {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.score-interval {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-text-dim);
    margin-top: 2px;
}

.score-confidence {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-accent);
    font-weight: 600;
}

.score-date {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-dim);
    font-weight: 400;
    margin-top: 4px;
}

/* Disclaimer */
.score-disclaimer {
    margin-top: 14px;
    font-size: 0.72rem;
    color: var(--color-text-dim);
    font-style: italic;
    text-align: center;
    line-height: 1.5;
}

/* Partial/N warnings */
.partial-warning {
    margin-top: 16px;
    padding: 10px 14px;
    background: var(--grade-d-bg);
    border: 1px solid rgba(212, 101, 42, 0.25);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--grade-d);
    line-height: 1.5;
}

.n-warning {
    background: rgba(107, 100, 89, 0.1);
    border-color: rgba(107, 100, 89, 0.2);
    color: var(--color-text-muted);
}

.n-warning em {
    color: var(--color-text-dim);
}

.paywall-warning {
    background: rgba(107, 100, 89, 0.1);
    border: 1px solid rgba(107, 100, 89, 0.2);
    color: var(--color-text-muted);
}


/* ==========================================================================
   10. Victoria Commentary (Article Detail)
   ========================================================================== */

.victoria-commentary {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.commentary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.commentary-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 300;
}

.commentary-name {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--color-accent);
}

.commentary-text {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--color-text);
}


/* ==========================================================================
   11. Axes Detail & Score Bars (Article Detail)
   ========================================================================== */

.axes-detail {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.axis-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color 0.2s;
}

.axis-card:hover {
    border-color: var(--color-border-hover);
}

.axis-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.axis-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 300;
}

.axis-weight {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-dim);
    letter-spacing: 0.3px;
}

.axis-score {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-accent);
}

.axis-confidence {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-accent-dim);
    font-weight: 600;
    margin-left: 4px;
}

.axis-bar {
    height: 6px;
    background: var(--color-elevated);
    border-radius: 3px;
    margin-bottom: 16px;
    overflow: hidden;
}

.axis-bar-fill {
    height: 100%;
    background: var(--color-accent);
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* Criteria bars */
.criteria-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.criterion-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.criterion-name {
    font-size: 0.82rem;
    color: var(--color-text);
}

.criterion-score {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.criterion-bar-track {
    height: 5px;
    background: var(--color-elevated);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.criterion-bar-fill {
    height: 100%;
    background: var(--color-accent);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.axis-justification {
    margin-top: 14px;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    font-style: italic;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
    line-height: 1.6;
}

.methodology-link-box {
    text-align: center;
    padding: 16px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.no-evaluation {
    text-align: center;
    padding: 48px 16px;
    color: var(--color-text-muted);
}


/* ==========================================================================
   12. Sources Page
   ========================================================================== */

.sources-page h1 {
    margin-bottom: 8px;
}

.sources-intro {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.sources-ranking {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.source-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px;
    display: grid;
    grid-template-columns: 36px 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 8px 12px;
    align-items: center;
}

.source-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.source-card-link:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.source-rank {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-dim);
    grid-row: 1;
}

.source-info {
    grid-row: 1;
    min-width: 0;
}

.source-name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
}

.source-meta {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-dim);
    letter-spacing: 0.2px;
}

.source-score {
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.source-avg {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Source breakdown bars */
.source-breakdown {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    gap: 12px;
}

.source-bar-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bar-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-text-dim);
    width: 12px;
}

.bar-track {
    flex: 1;
    height: 4px;
    background: var(--color-elevated);
    border-radius: 2px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--color-accent);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.bar-value {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-dim);
    width: 30px;
    text-align: right;
}

/* Axis grade dots */
.axis-grade {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.grade-dot-a { background: var(--grade-a); color: #fff; }
.grade-dot-b { background: var(--grade-b); color: #1a1a1a; }
.grade-dot-c { background: var(--grade-c); color: #1a1a1a; }
.grade-dot-d { background: var(--grade-d); color: #fff; }
.grade-dot-e { background: var(--grade-e); color: #fff; }
.grade-dot-z { background: var(--grade-n); color: var(--color-text-dim); }

/* Grade distribution (source cards) */
.source-grade-dist {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
}

.grade-dist-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.grade-dist-badge {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.grade-dist-badge.grade-b,
.grade-dist-badge.grade-c { color: #1a1a1a; }

.grade-dist-count {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-text-dim);
    width: 20px;
    text-align: right;
    flex-shrink: 0;
}

.grade-dist-bar-track {
    flex: 1;
    height: 4px;
    background: var(--color-elevated);
    border-radius: 2px;
    overflow: hidden;
}

.grade-dist-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.grade-dist-pct {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--color-text-dim);
    width: 28px;
    text-align: right;
    flex-shrink: 0;
}


/* ==========================================================================
   13. Source Detail Page
   ========================================================================== */

.source-detail-page h1 {
    margin: 0;
}

.source-detail-header {
    margin-bottom: 28px;
}

.source-detail-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0 16px;
    flex-wrap: wrap;
}

.source-website-link {
    font-size: 0.75rem;
    color: var(--color-accent);
    text-decoration: none;
}

.source-website-link:hover { text-decoration: underline; }

.source-detail-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px 20px;
    flex-wrap: wrap;
}

.source-summary-score {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.source-avg-big {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.source-avg-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.source-summary-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.summary-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.summary-stat-value {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1;
}

.summary-stat-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.source-detail-page h2 {
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.source-articles-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.source-article-row {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, transform 0.15s;
}

.source-article-row:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-1px);
    text-decoration: none;
}

.sar-grade { display: flex; align-items: center; }

.sar-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sar-title {
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sar-date {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--color-text-dim);
}

.sar-scores {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.sar-score {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-dim);
    background: var(--color-bg);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
}

.sar-partial {
    font-size: 0.65rem;
    color: var(--color-text-dim);
    font-style: italic;
}

.sar-n-label {
    font-size: 0.65rem;
    color: var(--color-text-dim);
    font-style: italic;
}


/* ==========================================================================
   14. Victoria Page (KPIs, Chat Feed, Grade Distribution)
   ========================================================================== */

.victoria-page h1 {
    margin-bottom: 8px;
}

.victoria-intro {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-bottom: 28px;
}

/* KPI Cards */
.victoria-kpis {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 32px;
}

.kpi-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.2s, box-shadow 0.3s;
}

.kpi-card:hover {
    border-color: var(--color-border-hover);
}

.kpi-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.kpi-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--color-text-dim);
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Sources ranking */
.section-hint-text {
    font-size: .78rem;
    color: var(--color-text-dim);
    margin-bottom: 12px;
}

.sources-ranking {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.source-rank-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--color-card);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background .15s;
}

.source-rank-row:hover {
    background: var(--color-surface-hover);
    text-decoration: none;
}

.source-rank-pos {
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--color-text-dim);
    min-width: 20px;
    text-align: center;
}

.source-rank-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.source-rank-name {
    font-size: .88rem;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.source-rank-stats {
    font-family: var(--font-mono);
    font-size: .68rem;
    color: var(--color-text-dim);
}

.source-rank-score {
    font-family: var(--font-mono);
    font-size: .85rem;
    font-weight: 600;
    color: var(--color-accent);
    min-width: 36px;
    text-align: right;
}

/* Victoria sections */
.victoria-section {
    margin-bottom: 32px;
}

.victoria-section h2 {
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 14px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.section-hint {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--color-text-dim);
    font-family: var(--font-body);
}

/* Grade distribution (Victoria page) */
.victoria-grade-dist {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.victoria-grade-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.victoria-bar-track {
    flex: 1;
    height: 8px;
}

.victoria-grade-count {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-dim);
    width: 80px;
    text-align: right;
    flex-shrink: 0;
}

.victoria-grade-pct {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    width: 34px;
    text-align: right;
    flex-shrink: 0;
}

/* Stacked bar */
.victoria-stacked-bar {
    display: flex;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    gap: 2px;
    margin-top: 4px;
}

.stacked-segment {
    border-radius: 2px;
    transition: opacity 0.15s;
}

.stacked-segment:hover { opacity: 0.8; }

/* Score range */
.victoria-score-range {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.score-range-item {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 120px;
}

.range-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-dim);
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.range-value {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
}

/* Daily chart */
.victoria-daily-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 120px;
    padding-bottom: 22px;
    position: relative;
}

.daily-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-width: 0;
}

.daily-bar-wrap {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
}

.daily-bar-fill {
    width: 100%;
    background: var(--color-accent);
    border-radius: 2px 2px 0 0;
    min-height: 2px;
    transition: height 0.3s ease, opacity 0.15s;
}

.daily-bar-fill:hover { opacity: 0.7; }

.daily-bar-label {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: var(--color-text-dim);
    margin-top: 4px;
    white-space: nowrap;
}

.empty-hint {
    color: var(--color-text-dim);
    font-size: 0.82rem;
    font-style: italic;
}


/* ==========================================================================
   15. Victoria Chat Feed (victoria page, inline feed)
   ========================================================================== */

.victoria-chat-section {
    margin-bottom: 32px;
}

.chat-container {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    max-height: 480px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(61, 122, 79, 0.12); border-radius: 3px; }

.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 16px;
    color: var(--color-text-dim);
    text-align: center;
}

.chat-empty-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.2rem;
    opacity: 0.5;
    animation: chat-avatar-pulse 3s ease-in-out infinite;
}

@keyframes chat-avatar-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(1.05); }
}

.chat-bubble {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    max-width: 100%;
    transition: border-color 0.2s;
}

.chat-bubble:hover {
    border-color: var(--color-border-hover);
}

.chat-bubble-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.chat-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.chat-name {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--color-text);
}

.chat-time {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--color-text-dim);
    margin-left: auto;
}

.chat-bubble-article {
    margin-bottom: 8px;
}

.chat-article-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--color-elevated);
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid var(--color-border);
    transition: background 0.2s, border-color 0.2s;
}

.chat-article-link:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-border-hover);
    text-decoration: none;
}

.chat-article-title {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-text);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-article-source {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.chat-conf {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--color-accent);
    font-weight: 600;
    flex-shrink: 0;
}

.chat-bubble-text {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--color-text);
    font-style: italic;
}

.chat-bubble-new {
    animation: chat-slide-in 0.4s ease-out;
}

@keyframes chat-slide-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   16. Methodology Page
   ========================================================================== */

.methodology-page h1 {
    margin-bottom: 16px;
}

.methodology-page h2 {
    font-size: 1.25rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

.methodology-page h3 {
    font-size: 1rem;
    margin-top: 24px;
    margin-bottom: 8px;
    color: var(--color-accent);
    font-weight: 600;
}

.methodology-intro {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}

.methodology-intro strong {
    color: var(--color-text);
}

.scale-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scale-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.scale-item strong {
    display: block;
    margin-bottom: 2px;
}

.scale-item p {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.scale-threshold {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-dim);
}

.axis-detail-section {
    margin-bottom: 24px;
}

.axis-detail-section p {
    font-style: italic;
    color: var(--color-text-muted);
    font-size: 0.88rem;
    margin-bottom: 12px;
}

/* Criteria table — mobile card layout */
.criteria-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
    margin-bottom: 16px;
    overflow-x: auto;
    display: block;
}

.criteria-table thead {
    display: none;
}

.criteria-table tr {
    display: block;
    padding: 12px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.criteria-table td {
    display: block;
    padding: 2px 0;
    color: var(--color-text-muted);
}

.criteria-table td:first-child {
    color: var(--color-text);
    margin-bottom: 4px;
}

.criteria-table td::before {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-text-dim);
}

.criteria-table td:nth-child(3)::before { content: "0 \2014 "; }
.criteria-table td:nth-child(4)::before { content: "1 \2014 "; }
.criteria-table td:nth-child(5)::before { content: "2 \2014 "; }
.criteria-table td:nth-child(6)::before { content: "3 \2014 "; }

.formula-box {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    padding: 16px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin-bottom: 16px;
}

.formula-box p {
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.formula-box code {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--color-accent);
    white-space: nowrap;
    padding: 3px 0;
}

.thresholds-table {
    width: auto;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.thresholds-table th,
.thresholds-table td {
    padding: 8px 16px;
    border-bottom: 1px solid var(--color-border);
}

.thresholds-table th {
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.limits-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.limits-section li {
    padding: 14px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    line-height: 1.55;
}

.limits-section li strong {
    color: var(--color-accent);
}

.limits-quote {
    margin-top: 16px;
    font-style: italic;
    color: var(--color-text-muted);
    text-align: center;
}

.criteria-section {
    margin-bottom: 24px;
}

.formula-section {
    margin-bottom: 24px;
}

.score-scale {
    margin-bottom: 24px;
}


/* ==========================================================================
   17. Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 16px 0;
}

.page-link {
    padding: 8px 16px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    transition: border-color 0.15s;
}

.page-link:hover {
    border-color: var(--color-border-hover);
    text-decoration: none;
}

.page-info {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
}


/* ==========================================================================
   18. Empty States
   ========================================================================== */

.empty-state {
    text-align: center;
    padding: 56px 16px;
    color: var(--color-text-muted);
}

.empty-state p {
    margin-bottom: 6px;
}

.empty-state p:last-child {
    font-size: 0.85rem;
    color: var(--color-text-dim);
}


/* ==========================================================================
   19. Live Indicators & Animations
   ========================================================================== */

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--grade-e);
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(196, 43, 43, 0.4); }
    50%      { opacity: 0.6; box-shadow: 0 0 0 6px rgba(196, 43, 43, 0); }
}

.live-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-dim);
}

.live-count {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-accent);
    transition: transform 0.2s;
}

.live-count-flash {
    transform: scale(1.3);
}

.live-indicator-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-dim);
    vertical-align: middle;
}

/* KPI flash */
.kpi-flash {
    animation: kpi-pulse 0.8s ease-out;
}

@keyframes kpi-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(61, 122, 79, 0.35); }
    50%  { box-shadow: 0 0 0 8px rgba(61, 122, 79, 0); }
    100% { box-shadow: none; }
}

/* Slide-in for new article cards */
.article-card-new {
    animation: slide-in 0.4s ease-out;
}

@keyframes slide-in {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.article-card-updated {
    animation: score-flash 0.5s ease-out;
}

@keyframes score-flash {
    0%   { border-color: var(--color-accent); box-shadow: 0 0 12px rgba(61, 122, 79, 0.3); }
    100% { border-color: var(--color-border); box-shadow: none; }
}

/* fadeUp on scroll — apply via JS with .fade-up and .fade-up-visible */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Score bar fill animation */
@keyframes bar-fill-in {
    from { width: 0; }
}

.criterion-bar-fill,
.axis-bar-fill,
.bar-fill {
    animation: bar-fill-in 0.6s ease-out;
}

/* Typing dots */
.typing-dots span {
    animation: typing-bounce 1.4s infinite;
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
    30%           { transform: translateY(-4px); opacity: 1; }
}


/* ==========================================================================
   20. Conversation UI (inline, convo-*)
   ========================================================================== */

.victoria-convo-section {
    margin-bottom: 32px;
}

.convo-container {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.convo-messages {
    max-height: 500px;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.convo-messages::-webkit-scrollbar { width: 5px; }
.convo-messages::-webkit-scrollbar-thumb { background: rgba(61, 122, 79, 0.12); border-radius: 3px; }

.convo-user {
    align-self: flex-end;
    background: var(--color-accent);
    border-color: var(--color-accent);
    max-width: 80%;
}

.convo-user-text {
    color: #fff !important;
    font-style: normal !important;
}

.convo-assistant {
    align-self: flex-start;
    max-width: 85%;
}

.convo-input-form {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--color-border);
    background: var(--color-card);
}

.convo-input {
    flex: 1;
    padding: 10px 14px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
}

.convo-input:focus {
    border-color: var(--color-accent);
}

.convo-input::placeholder {
    color: var(--color-text-dim);
}

.convo-send {
    padding: 10px 20px;
    background: var(--color-accent);
    color: var(--color-bg);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.convo-send:hover { opacity: 0.85; }
.convo-send:disabled { opacity: 0.5; cursor: not-allowed; }


/* ==========================================================================
   21. Victoria Chat Popup (FAB + Popup window)
   ========================================================================== */

.vchat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-bg);
    border: none;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 300;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(61, 122, 79, 0.35);
    z-index: 1000;
    transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
}

.vchat-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(61, 122, 79, 0.55);
}

.vchat-fab-hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

/* Popup window */
.vchat-popup {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    height: 540px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s;
    transform-origin: bottom right;
}

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

/* Header */
.vchat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.vchat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vchat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 0.9rem;
}

.vchat-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1rem;
}

.vchat-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vchat-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s;
}

.vchat-close:hover {
    color: var(--color-text);
}

.vchat-reset {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.15s;
}

.vchat-reset:hover {
    color: var(--color-text);
}

/* Messages container */
.vchat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

.vchat-messages::-webkit-scrollbar { width: 5px; }
.vchat-messages::-webkit-scrollbar-thumb { background: rgba(61, 122, 79, 0.12); border-radius: 3px; }

/* Bubbles */
.vchat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
    position: relative;
}

.vchat-assistant {
    align-self: flex-start;
    background: var(--color-elevated);
    border: 1px solid var(--color-border);
    border-bottom-left-radius: 4px;
}

.vchat-user {
    align-self: flex-end;
    background: var(--color-accent);
    color: var(--color-bg);
    border-bottom-right-radius: 4px;
}

.vchat-bubble-content {
    word-break: break-word;
}

/* Markdown in assistant bubbles */
.vchat-assistant .vchat-bubble-content strong {
    color: var(--color-text);
    font-weight: 600;
}

.vchat-assistant .vchat-bubble-content em {
    color: var(--color-text-muted);
    font-style: italic;
}

.vchat-assistant .vchat-bubble-content code {
    background: var(--color-card);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.82em;
    font-family: var(--font-mono);
}

.vchat-mode-label {
    display: block;
    text-align: right;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--color-text-dim);
    margin-top: 4px;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vchat-bubble-new {
    animation: vchat-slide-in 0.3s ease-out;
}

@keyframes vchat-slide-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Input form */
.vchat-input-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
    flex-shrink: 0;
}

.vchat-input {
    flex: 1;
    padding: 10px 12px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
    resize: none;
    line-height: 1.4;
    max-height: 120px;
}

.vchat-input:focus {
    border-color: var(--color-accent);
}

.vchat-input::placeholder {
    color: var(--color-text-dim);
}

.vchat-input-large {
    min-height: 60px;
}

.vchat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-bg);
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.vchat-send:hover { opacity: 0.85; }
.vchat-send:disabled { opacity: 0.4; cursor: not-allowed; }

/* Action buttons */
.vchat-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.vchat-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.vchat-action-btn:hover:not(:disabled) {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: var(--color-bg);
}

.vchat-action-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.vchat-action-selected {
    border-color: var(--color-accent) !important;
    background: var(--color-accent) !important;
    color: var(--color-bg) !important;
    opacity: 1 !important;
}

.vchat-action-icon {
    font-size: 1rem;
}

.vchat-action-label {
    font-weight: 500;
}

.vchat-action-sub {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--color-text-dim);
    margin-left: 2px;
}

.vchat-action-selected .vchat-action-sub {
    color: rgba(12, 11, 9, 0.6);
}

.vchat-action-used {
    /* already used — dimmed */
}

/* Inline mode selector */
.vchat-inline-modes {
    display: flex;
    gap: 4px;
    padding: 4px 0;
    justify-content: center;
}

.vchat-inline-mode {
    padding: 3px 12px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 500;
    background: transparent;
    color: var(--color-text-dim);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vchat-inline-mode.active {
    background: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
}

.vchat-inline-mode:hover:not(.active) {
    color: var(--color-text);
    border-color: var(--color-text-muted);
}

/* Eval card inside chat */
.vchat-eval-card {
    background: var(--color-elevated) !important;
    border: 1px solid var(--color-border) !important;
    padding: 14px !important;
    max-width: 95% !important;
}

.vchat-eval-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.vchat-eval-header .score-badge {
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vchat-eval-score-block {
    display: flex;
    flex-direction: column;
}

.vchat-eval-score {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
}

.vchat-eval-interval {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-dim);
}

.vchat-eval-conf {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-muted);
    background: var(--color-card);
    padding: 2px 8px;
    border-radius: 10px;
}

.vchat-eval-axes {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
}

.vchat-eval-axis {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vchat-eval-axis-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-muted);
    width: 14px;
    text-align: center;
}

.vchat-eval-axis-bar {
    flex: 1;
    height: 5px;
    background: var(--color-card);
    border-radius: 3px;
    overflow: hidden;
}

.vchat-eval-axis-fill {
    height: 100%;
    background: var(--color-accent);
    border-radius: 3px;
    transition: width 0.4s ease-out;
}

.vchat-eval-axis-val {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-muted);
    width: 32px;
    text-align: right;
}

.vchat-eval-just {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    line-height: 1.45;
    margin-bottom: 4px;
    padding-left: 8px;
    border-left: 2px solid var(--color-border);
}

.vchat-eval-just strong {
    color: var(--color-text);
}

.vchat-eval-commentary {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--color-text);
}

.vchat-eval-analysis {
    margin-top: 8px;
    border-top: 1px solid var(--color-border);
    padding-top: 6px;
}

.vchat-eval-analysis summary {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--color-accent);
    cursor: pointer;
    padding: 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vchat-eval-analysis summary:hover {
    text-decoration: underline;
}

.vchat-eval-analysis-body {
    margin-top: 6px;
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--color-text-muted);
    max-height: 300px;
    overflow-y: auto;
}

.vchat-eval-analysis-body strong {
    color: var(--color-text);
}

.vchat-typing {
    /* typing bubble */
}

.vchat-typing-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--color-text-dim);
    margin-left: 8px;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* ==========================================================================
   22. Responsive Breakpoints
   ========================================================================== */

/* 480px — small phones → regular phones */
@media (min-width: 480px) {
    .logo-tagline { display: inline; }

    .vchat-fab {
        bottom: 20px;
        right: 20px;
    }
}

/* 600px — large phones / small tablets */
@media (min-width: 600px) {
    :root {
        --section-pad: 5rem;
    }

    .main-content {
        padding: 24px 20px;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .victoria-kpis {
        grid-template-columns: repeat(3, 1fr);
    }

    .filters-container {
        flex-wrap: nowrap;
    }

    .criteria-table {
        display: table;
    }
    .criteria-table thead {
        display: table-header-group;
    }
    .criteria-table tr {
        display: table-row;
        background: none;
        border: none;
        margin-bottom: 0;
    }
    .criteria-table th, .criteria-table td {
        display: table-cell;
        padding: 10px 8px;
        border-bottom: 1px solid var(--color-border);
        text-align: left;
    }
    .criteria-table th {
        font-family: var(--font-mono);
        font-weight: 600;
        color: var(--color-text-dim);
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    .criteria-table td::before {
        display: none;
    }
}

/* 900px — tablets / small desktops */
@media (min-width: 900px) {
    :root {
        --section-pad: 7rem;
    }

    .main-content {
        padding: 32px 24px;
    }

    .articles-feed {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .detail-title {
        font-size: 2rem;
    }

    .score-badge-large {
        width: 88px;
        height: 88px;
        font-size: 2.5rem;
        border-radius: 20px;
    }

    .chat-container {
        max-height: 600px;
    }

    .victoria-kpis {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .kpi-value {
        font-size: 1.6rem;
    }
}

/* 1200px — desktops */
@media (min-width: 1200px) {
    .main-content {
        padding: 40px 24px;
    }

    .victoria-kpis {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Mobile popup — override for small screens */
@media (max-width: 480px) {
    .vchat-popup {
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .vchat-fab {
        bottom: 16px;
        right: 16px;
    }

    .filters-container {
        flex-direction: column;
        gap: 8px;
    }

    .source-detail-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .sar-scores {
        display: none;
    }
}


/* ==========================================================================
   Type badges (article / video)
   ========================================================================== */

.article-type-badge {
    display: inline-block;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    vertical-align: middle;
}

.type-article {
    background: rgba(61, 122, 79, 0.15);
    color: var(--color-accent, #3D7A4F);
}

.type-video {
    background: rgba(255, 0, 0, 0.12);
    color: #FF4444;
}


/* ==========================================================================
   Video thumbnails in feed cards
   ========================================================================== */

.article-thumbnail {
    position: relative;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.article-thumbnail img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.article-thumbnail .article-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.65rem;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #FF4444;
    backdrop-filter: blur(4px);
}

.article-card-video {
    /* Subtle visual distinction for video cards */
}

.detail-video-embed {
    margin-bottom: 16px;
}

.detail-video-embed iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px;
    display: block;
}

/* Short video — vertical fullscreen style */
.detail-video-short {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.detail-video-short iframe {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 9/16;
    border-radius: 12px;
    height: auto;
}

/* Mobile: shorts take full width, taller */
@media (max-width: 480px) {
    .detail-video-short iframe {
        max-width: 100%;
        border-radius: 0;
        min-height: 80vh;
        min-height: 80dvh;
    }

    .detail-video-short {
        margin-left: -1.25rem;
        margin-right: -1.25rem;
    }
}


/* ==========================================================================
   Brev — Feed vidéo vertical fullscreen (TikTok / YT Shorts / Reels)
   ========================================================================== */

.brev-page {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Brev immersive: transparent tab bar, full screen */
body:has(.brev-page) .tab-bar {
    background: rgba(12, 11, 9, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top-color: rgba(255, 255, 255, 0.08);
}
body:has(.brev-page) .main-content { padding: 0; margin: 0; max-width: none; }

.brev-feed {
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

.brev-slide {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #000;
    overflow: hidden;
}

/* Poster = thumbnail background */
.brev-poster {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #111;
    z-index: 2;
    transition: opacity .5s;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.brev-play-btn {
    opacity: .8;
    transition: opacity .2s, transform .2s;
}

.brev-poster:hover .brev-play-btn {
    opacity: 1;
    transform: scale(1.1);
}

.brev-active .brev-poster {
    pointer-events: none;
}

/* Player (iframe container) */
.brev-player {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.brev-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Info overlay at bottom */
.brev-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 3;
    padding: 3rem 1rem 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,.85));
    display: flex;
    align-items: flex-end;
    gap: .75rem;
    pointer-events: none;
}

.brev-overlay > * {
    pointer-events: auto;
}

.brev-grade {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.4);
    margin-bottom: 2px;
}

.brev-text {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}

.brev-title-link {
    font-size: .9rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brev-title-link:hover {
    text-decoration: underline;
    color: #fff;
}

.brev-source {
    font-size: .72rem;
    color: rgba(255,255,255,.6);
}

/* Sound overlay */
.brev-sound-overlay {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100;
    transition: opacity .3s, transform .3s;
}

.brev-sound-overlay.brev-sound-hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.brev-sound-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: background .15s;
    -webkit-tap-highlight-color: transparent;
}


/* ==========================================================================
   23. Filter pill active state — accent green (overrides template inline styles)
   ========================================================================== */

/* Vulgarisation & Conférences filter pills — active = green accent */
body .vulga-pill.active,
body .conf-pill:hover,
body .conf-pill.active {
    background: var(--color-accent) !important;
    color: var(--color-bg) !important;
    border-color: var(--color-accent) !important;
    font-weight: 600;
}

body .vulga-pill:hover:not(.active) {
    color: var(--color-text);
    border-color: var(--color-text-muted);
    background: transparent;
}

/* Intervenant list back links and conference back links */
body .conf-back,
body .int-list-back {
    color: var(--color-text-muted);
}

body .conf-back:hover,
body .int-list-back:hover {
    color: var(--color-accent);
    text-decoration: none;
}

/* Vulga / Conf hero titles — use Newsreader display font */
body .vulga-title,
body .conf-title,
body .int-list-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

/* Vulga / Conf cards — align with Pace card style */
body .vulga-card,
body .conf-card,
body .int-list-card {
    background: var(--color-card);
    border-color: var(--color-border);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

body .vulga-card:hover,
body .int-list-card:hover {
    border-color: var(--color-border-hover);
    background: var(--color-surface-hover);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

body .conf-card:hover {
    background: var(--color-elevated);
}

/* Conferences intervenant accent color */
body .conf-intervenant-label,
body .int-list-count {
    color: var(--color-accent);
}

/* Conf tag, vulga tag — subtle green tint */
body .conf-tag,
body .vulga-tag,
body .int-list-tag {
    background: rgba(45, 139, 70, 0.07);
    color: var(--color-text-dim);
}

/* Filter bar borders */
body .conf-hero,
body .conf-filter-bar,
body .conf-intervenant-link,
body .vulga-hero,
body .vulga-filter-bar,
body .vulga-conf-banner,
body .int-list-hero {
    border-color: var(--color-border);
}

/* Vulga conf banner hover */
body .vulga-conf-banner:hover,
body .conf-intervenant-link:hover {
    background: var(--color-elevated);
}

/* Vulga conf banner accent label */
body .vulga-conf-banner-label {
    color: var(--color-accent);
}

/* Filter bar sticky background */
body .vulga-filter-bar {
    background: var(--color-bg);
}

.brev-sound-btn:hover {
    background: rgba(0,0,0,0.85);
}

/* Player host — fills the slot */
#brev-player-host {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

#brev-player-host iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.brev-player-slot {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.brev-empty {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-dim);
}

/* Desktop: constrain width, center */
@media (min-width: 600px) {
    .brev-feed {
        max-width: 420px;
        margin: 0 auto;
    }
}
