/* ==========================================================================
   fetched/reality — Core Design System & Global Stylesheet
   ========================================================================== */

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

:root {
    /* True neutral greys (no blue tint) */
    --bg-body: #e5e5e5;
    --bg-card: #f4f4f4;
    --header-bg: #1c1c1c;
    --text-main: #171717;
    --text-muted: #525252;
    --accent-red: #991b1b;
    --accent-red-bright: #dc2626;
    --border-color: #d4d4d4;
    --sidebar-width: 280px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
}

/* --- HEADER & WATERMARK BACKGROUND --- */
body > header,
header.site-header {
    position: relative;
    background-color: var(--header-bg);
    color: #ffffff;
    width: 100%;
    min-height: 200px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    border-bottom: 8px solid var(--accent-red);
}

.header-watermark {
    position: absolute;
    top: -60%;
    left: -50%;
    width: 200%;
    height: 220%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.75rem;
    transform: rotate(-12deg);
    pointer-events: none;
    user-select: none;
    z-index: 1;
    overflow: hidden;
}

.watermark-row {
    display: flex;
    gap: 2.5rem;
    white-space: nowrap;
    align-items: center;
}

.watermark-row.reverse {
    margin-left: -6rem;
}

.header-watermark span {
    color: rgba(255, 255, 255, 0.15);
    font-size: 1.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    white-space: nowrap;
}

.header-top {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    user-select: none;
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.email-icon {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease;
}

.email-icon:hover {
    background: rgba(255, 255, 255, 0.25);
}

.brand-container {
    position: relative;
    z-index: 2;
    margin: 1.5rem 0 0.75rem;
    text-align: center;
}

.brand-name {
    font-size: 3.25rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-transform: lowercase;
    color: #ffffff;
}

.brand-name a {
    color: inherit;
    text-decoration: none;
}

.brand-tagline {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #a3a3a3;
    margin-top: -0.25rem;
}

/* Desk Navigation Bar (Under Header) */
.desk-nav-bar {
    background-color: #111111;
    border-bottom: 1px solid #333333;
    padding: 0 2rem;
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.desk-nav-bar a {
    color: #a3a3a3;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.8rem 1rem;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.desk-nav-bar a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.desk-nav-bar a.active {
    color: #ffffff;
    border-bottom-color: var(--accent-red);
    background-color: rgba(255, 255, 255, 0.08);
}

/* --- SIDEBAR NAVIGATION --- */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(23, 23, 23, 0.7);
    backdrop-filter: blur(2px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar {
    position: fixed;
    top: 0;
    left: calc(-1 * var(--sidebar-width));
    width: var(--sidebar-width);
    height: 100vh;
    background-color: #171717;
    color: #ffffff;
    z-index: 100;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: left 0.3s ease;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

#nav-toggle:checked ~ .sidebar {
    left: 0;
}

#nav-toggle:checked ~ .sidebar-overlay {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #404040;
    padding-bottom: 1rem;
}

.close-btn {
    background: none;
    border: none;
    color: #a3a3a3;
    font-size: 1.5rem;
    cursor: pointer;
    user-select: none;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-nav a {
    color: #d4d4d4;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    color: #ffffff;
    background-color: #262626;
    transform: translateX(4px);
}

.sidebar-nav a.active {
    border-left: 4px solid var(--accent-red);
}

.sidebar-badge {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.4rem;
    border-radius: 2px;
    background: #333333;
    color: #a3a3a3;
}

.sidebar-badge.red {
    background: var(--accent-red);
    color: #ffffff;
}

.social-links {
    border-top: 1px solid #404040;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.social-links-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #737373;
    margin-bottom: 0.75rem;
}

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

.social-grid a {
    color: #a3a3a3;
    text-decoration: none;
    font-size: 0.875rem;
}

.social-grid a:hover {
    color: #ffffff;
}

/* --- TICKER / BREAKING BAR --- */
.ticker-bar {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 0.6rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.ticker-label {
    background-color: var(--accent-red);
    color: white;
    padding: 0.15rem 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    border-radius: 2px;
    white-space: nowrap;
}

.ticker-label.red-alert {
    background-color: #dc2626;
    animation: pulse-alert 2s infinite;
}

@keyframes pulse-alert {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.ticker-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ticker-text a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
}

.ticker-text a:hover {
    text-decoration: underline;
}

/* --- MAIN NEWS LAYOUT --- */
.layout-container {
    max-width: 1440px;
    margin: 1rem auto;
    padding: 0 0.5rem;
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 1.25rem;
}

.layout-container.sidebar-left {
    grid-template-columns: 280px 1fr;
    gap: 1.25rem;
    padding: 0 0.5rem;
}

.layout-single {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Section Headings */
.section-headline-bar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid var(--text-main);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.section-headline {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Lead Story Card */
.lead-story {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.media-placeholder {
    width: 100%;
    height: 360px;
    background-color: #d4d4d4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #404040;
    font-weight: 600;
}

.story-content {
    padding: 1.75rem;
}

.category-tag {
    color: var(--accent-red);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.35rem;
}

.category-tag:hover {
    text-decoration: underline;
}

.category-tag.red-alert-tag {
    color: #dc2626;
    background: #fee2e2;
    padding: 0.15rem 0.5rem;
    border-radius: 2px;
    border: 1px solid #fca5a5;
}

.story-title {
    font-size: 2rem;
    margin: 0.5rem 0;
    line-height: 1.25;
    color: var(--text-main);
}

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

.story-title a:hover {
    text-decoration: underline;
}

.story-excerpt {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.story-meta {
    font-size: 0.75rem;
    color: #737373;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Sub Features Grid */
.sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-media {
    height: 160px;
    background-color: #d4d4d4;
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #525252;
    font-size: 0.875rem;
    border-radius: 4px;
    overflow: hidden;
}

.card h3 {
    font-size: 1.125rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

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

.card h3 a:hover {
    text-decoration: underline;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* Sidebar Column */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.widget {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--text-main);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.feed-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feed-item {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 0.75rem;
}

.feed-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.feed-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.feed-item h4 a {
    color: inherit;
    text-decoration: none;
}

.feed-item h4 a:hover {
    text-decoration: underline;
}

.verification-widget {
    background-color: #ffffff !important;
    border: 1px solid #d4d4d4 !important;
    border-left: 4px solid #0284c7 !important;
}

.verification-widget p {
    font-size: 0.875rem;
    color: #171717;
    line-height: 1.6;
}

/* --- TECHSCAPADE DROPDOWN CARD (GUARANTEED HIGH CONTRAST) --- */
.techscapade-dropdown-card,
details.techscapade-dropdown-card {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border: 1px solid var(--border-color);
    border-top: 4px solid #0284c7;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    overflow: hidden;
}

.techscapade-dropdown-card[open],
details.techscapade-dropdown-card[open] {
    background-color: #ffffff !important;
    background: #ffffff !important;
    border-color: #cbd5e1;
    border-top: 4px solid #0284c7;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.techscapade-summary-header,
details.techscapade-dropdown-card summary,
details.techscapade-dropdown-card[open] summary,
.techscapade-dropdown-card summary {
    padding: 1.5rem;
    cursor: pointer;
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #0f172a !important;
    list-style: none;
    display: block;
    user-select: none;
    transition: background 0.15s ease;
    outline: none !important;
}

.techscapade-summary-header::-webkit-details-marker,
details.techscapade-dropdown-card summary::-webkit-details-marker {
    display: none;
}

.techscapade-summary-header:hover,
details.techscapade-dropdown-card summary:hover {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
}

.techscapade-summary-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.techscapade-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.techscapade-dropdown-card[open] .techscapade-dropdown-toggle {
    background: #0284c7;
    color: #ffffff;
    border-color: #0369a1;
}

.techscapade-dropdown-toggle .chevron {
    transition: transform 0.25s ease;
    display: inline-block;
    font-size: 0.75rem;
}

.techscapade-dropdown-card[open] .techscapade-dropdown-toggle .chevron {
    transform: rotate(180deg);
}

.techscapade-dropdown-body,
.techscapade-dropdown-card .article-body-content {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #1e293b !important;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.tech-title {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    line-height: 1.35;
    color: #0f172a !important;
    font-weight: 800;
}

.tech-lead {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: #334155 !important;
}

/* --- FULL ARTICLE / DEEP DIVE STYLES --- */
.article-full-container {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.article-header,
header.article-header {
    background-color: transparent !important;
    background: transparent !important;
    min-height: auto !important;
    overflow: visible !important;
    display: block !important;
    border-bottom: 2px solid var(--border-color) !important;
    padding: 0 0 1.5rem 0 !important;
    margin-bottom: 2rem !important;
    color: var(--text-main) !important;
}

.desk-badge-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.desk-badge {
    display: inline-flex;
    align-items: center;
    background-color: var(--accent-red);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.65rem;
    border-radius: 3px;
}

.desk-badge.red-alert-badge {
    background-color: #dc2626;
}

.spec-badge {
    display: inline-flex;
    align-items: center;
    background-color: #f1f5f9;
    color: #0284c7;
    font-family: var(--font-mono);
    font-size: 0.725rem;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
    border-radius: 3px;
    border: 1px solid #cbd5e1;
}

.spec-badge.warning {
    color: #b45309;
    background: #fef3c7;
    border-color: #fde68a;
}

.spec-badge.danger {
    color: #dc2626;
    border-color: #fca5a5;
    background: #fee2e2;
}

.article-title-main {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
}

.article-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.dateline {
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.04em;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.8rem;
    color: #737373;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-body-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #262626;
}

.article-body-content h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 2.25rem 0 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-body-content h4 {
    font-size: 1.1rem;
    font-weight: 750;
    color: var(--text-main);
    margin: 1.5rem 0 0.6rem;
}

.article-body-content p {
    margin-bottom: 1.15rem;
}

.article-body-content ul, .article-body-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-body-content li {
    margin-bottom: 0.5rem;
}

/* Stat & Crisis Banners */
.stat-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 1.75rem 0;
}

.stat-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 4px solid #525252;
    padding: 1.15rem 1.25rem;
    border-radius: 4px;
}

.stat-box.highlight-red {
    border-left-color: #dc2626;
    background: #fffafa;
}

.stat-box.highlight-blue {
    border-left-color: #2563eb;
    background: #f8faff;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.stat-value.danger {
    color: #b91c1c;
}

.stat-desc {
    font-size: 0.825rem;
    color: #555555;
    margin-top: 0.35rem;
    line-height: 1.4;
}

/* Quote & Red Alert Boxes */
.red-alert-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 6px solid #dc2626;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    border-radius: 4px;
}

.red-alert-title {
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #991b1b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quote-highlight {
    font-size: 1.15rem;
    font-style: italic;
    color: #1f2937;
    line-height: 1.6;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--accent-red);
    background: #ffffff;
}

.quote-author {
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 700;
    color: var(--text-muted);
    margin-top: 0.5rem;
    display: block;
}

/* Infrastructure Checklist */
.infra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.infra-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.infra-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: #fee2e2;
    color: #dc2626;
    font-weight: 900;
    flex-shrink: 0;
}

.infra-content h5 {
    font-size: 0.9rem;
    font-weight: 750;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.infra-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Code & Hardware Tags */
.code-term {
    font-family: var(--font-mono);
    background-color: #e5e5e5;
    color: #111827;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    font-size: 0.88em;
    font-weight: 600;
    border: 1px solid #d4d4d4;
}

.code-term.danger {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.code-term.signal {
    background-color: #1e293b;
    color: #38bdf8;
    border-color: #475569;
}

/* Schematic & Diagrams */
.diagram-container {
    background-color: #141414;
    border: 1px solid #2e2e2e;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 2rem 0;
    color: #e5e5e5;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.diagram-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2d2d2d;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.diagram-title {
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.diagram-badge {
    background: #27272a;
    color: #a1a1aa;
    font-size: 0.725rem;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    font-family: var(--font-mono);
}

.schematic-svg-wrapper {
    width: 100%;
    overflow-x: auto;
    background: #0f1115;
    border: 1px solid #232730;
    border-radius: 4px;
    padding: 0.75rem;
}

.schematic-svg-wrapper svg {
    display: block;
    width: 100%;
    min-width: 680px;
    height: auto;
}

/* Matrix Table */
.matrix-wrapper {
    margin: 2rem 0 1rem;
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.matrix-table th {
    background-color: #171717;
    color: #ffffff;
    padding: 0.9rem 1rem;
    font-weight: 750;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 3px solid var(--accent-red);
    white-space: nowrap;
}

.matrix-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e5e5e5;
    vertical-align: middle;
    color: #2b2b2b;
    line-height: 1.45;
}

.matrix-table tr:nth-child(even) td {
    background-color: #fafafa;
}

.matrix-table tr:hover td {
    background-color: #f2f2f2;
}

.dim-cell {
    font-weight: 750;
    color: var(--text-main);
    white-space: nowrap;
    background-color: #f7f7f7 !important;
    border-right: 1px solid var(--border-color);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.pill.broken {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.pill.high {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.pill.secure {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.breadcrumbs a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* --- FOOTER --- */
footer {
    background-color: #171717;
    color: #a3a3a3;
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
    border-top: 1px solid #404040;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-brand a {
    color: inherit;
    text-decoration: none;
}

.footer-links-col h4 {
    color: #ffffff;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.footer-links-col a {
    color: #a3a3a3;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #262626;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .layout-container {
        grid-template-columns: 1fr;
    }

    .sub-grid {
        grid-template-columns: 1fr;
    }

    .infra-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .brand-name {
        font-size: 2.25rem;
    }

    .article-title-main {
        font-size: 1.75rem;
    }

    .story-title {
        font-size: 1.6rem;
    }

    .desk-nav-bar {
        padding: 0 1rem;
    }
}

/* --- INTERACTIVE VERIFICATION VOTING SYSTEM WIDGET (MODERN / DISCRETE) --- */
.vote-widget {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(226, 232, 240, 0.12);
    border-radius: 6px;
    padding: 0.6rem 0.85rem;
    margin-top: 0.75rem;
    font-family: var(--font-sans);
    backdrop-filter: blur(4px);
    transition: border-color 0.2s ease;
}

.vote-widget:hover {
    border-color: rgba(226, 232, 240, 0.25);
}

.vote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.vote-title {
    font-size: 0.675rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    font-family: var(--font-mono);
}

.vote-consensus-badge {
    font-size: 0.675rem;
    font-weight: 800;
    font-family: var(--font-mono);
    padding: 1px 6px;
    border-radius: 3px;
    letter-spacing: 0.04em;
}

.vote-consensus-badge.verified {
    background: rgba(22, 163, 74, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.vote-consensus-badge.contested {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.vote-consensus-badge.neutral {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.vote-bar-container {
    height: 4px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 2px;
    overflow: hidden;
    display: flex;
    margin-bottom: 0.5rem;
}

.vote-bar-fill {
    height: 100%;
    transition: width 0.35s ease;
}

.happen-fill {
    background: #16a34a;
}

.fake-fill {
    background: #dc2626;
}

.vote-actions {
    display: flex;
    gap: 0.4rem;
}

.vote-btn {
    flex: 1;
    background: rgba(30, 41, 59, 0.5);
    color: #94a3b8;
    border: 1px solid rgba(51, 65, 85, 0.6);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.725rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    transition: all 0.18s ease;
    user-select: none;
}

.vote-btn:hover {
    background: rgba(51, 65, 85, 0.8);
    color: #f8fafc;
    border-color: #475569;
}

.vote-btn.btn-happen.active {
    background: rgba(22, 163, 74, 0.85);
    color: #ffffff;
    border-color: #22c55e;
}

.vote-btn.btn-fake.active {
    background: rgba(220, 38, 38, 0.85);
    color: #ffffff;
    border-color: #ef4444;
}

.vote-icon {
    font-size: 0.775rem;
    font-weight: 900;
}
