/*
Theme Name: BLUFify
Theme URI: https://blufify.com
Author: BLUFify LLC
Description: Intelligence-grade news aggregation. Bottom Line Up Front.
Version: 4.0
License: All Rights Reserved
Text Domain: blufify
*/

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    background-color: #111111;
    color: #d0d0d0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography - WaPo Inspired (Dark Mode)
   ============================================ */

/* Headlines - Franklin Gothic style */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Libre Franklin', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 0.5em;
}

h1 { 
    font-size: 2.5rem; 
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.02em;
}

h2 { 
    font-size: 1.75rem; 
    line-height: 1.15;
    font-weight: 700;
}

h3 { 
    font-size: 1.375rem; 
    line-height: 1.2;
    font-weight: 700;
}

h4 { 
    font-size: 1.125rem; 
    line-height: 1.25;
    font-weight: 600;
}

h5 { 
    font-size: 1rem; 
    font-weight: 600;
    line-height: 1.3;
}

h6 { 
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.1em;
    line-height: 1.4;
    color: #888;
}

/* Body text - Georgia (WaPo signature) */
p {
    margin-bottom: 1.25em;
    font-size: 1.0625rem;
    line-height: 1.7;
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    color: #c8c8c8;
}

/* Links - WaPo blue accent adapted for dark */
a {
    color: #5ba3d9;
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: #7dbde8;
    text-decoration: underline;
}

/* UI Text */
.ui-text, 
.entry-meta,
.category-label,
.widget-title,
.nav-menu,
.site-description,
.header-top,
.footer-widget-title,
.comment-meta,
.pagination {
    font-family: 'Libre Franklin', 'Arial', sans-serif;
}

/* ============================================
   Layout Container
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   Header
   ============================================ */
.site-header {
    border-bottom: 1px solid #2a2a2a;
    padding: 0.75rem 0;
    background: #0a0a0a;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #2a2a2a;
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
}

.header-date {
    color: #888;
}

.site-branding {
    text-align: center;
    padding: 1.5rem 0;
}

.site-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
}

.site-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(91, 163, 217, 0.3));
}

.site-title-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-title-text {
    font-family: 'Libre Franklin', 'Franklin Gothic Medium', Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #ffffff;
}

.site-tagline {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.95rem;
    font-style: italic;
    color: #8a8a9a;
    margin-top: 0.25rem;
    letter-spacing: 0.02em;
}

.site-logo-link:hover .site-title-text {
    color: #5ba3d9;
}

.site-logo-link:hover .site-tagline {
    color: #a0a0b0;
}

/* Masthead - WaPo Style Clean Sans-Serif */
.site-title {
    font-family: 'Libre Franklin', 'Franklin Gothic Medium', Arial, sans-serif;
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.01em;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
}

.site-title a:hover {
    color: #5ba3d9;
    text-decoration: none;
}

.site-description {
    display: none;
}

/* ============================================
   Navigation
   ============================================ */
.main-navigation {
    border-top: 3px solid #5ba3d9;
    border-bottom: 1px solid #2a2a2a;
    padding: 0.625rem 0;
    background: #0a0a0a;
}

.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #aaa;
    padding: 0.25rem 0;
    text-decoration: none;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    color: #5ba3d9;
    text-decoration: none;
}

/* ============================================
   Main Content
   ============================================ */
.site-main {
    padding: 2rem 0;
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
}

/* Article Cards */
.article-card {
    border-left: 1px solid #2a2a2a;
    padding-left: 1.5rem;
}

.article-card:first-child {
    border-left: none;
    padding-left: 0;
}

@media (max-width: 900px) {
    .article-card {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #2a2a2a;
        padding-top: 1.5rem;
    }
    .article-card:first-child {
        border-top: none;
        padding-top: 0;
    }
}

.article-card .entry-title {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 1.125rem;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.article-card .entry-title a {
    color: #ffffff;
}

.article-card .entry-title a:hover {
    color: #5ba3d9;
    text-decoration: none;
}

.article-card .entry-meta {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.6875rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.375rem;
}

.article-card .entry-summary {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.9375rem;
    color: #a0a0a0;
    line-height: 1.5;
}

/* ============================================
   Single Post / Page
   ============================================ */
.single-post .entry-header,
.page .entry-header {
    max-width: 720px;
    margin: 0 auto 2rem;
    padding-top: 2rem;
}

.single-post .entry-title,
.page .entry-title {
    font-family: 'Libre Franklin', 'Franklin Gothic Medium', Arial, sans-serif;
    font-size: 2.25rem;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    font-weight: 900;
    color: #ffffff;
}

.entry-subtitle {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #a0a0a0;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.single-post .entry-meta {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.8125rem;
    color: #888;
    padding-top: 1rem;
    border-top: 1px solid #2a2a2a;
}

.entry-meta .author {
    font-weight: 600;
    color: #5ba3d9;
}

.entry-meta .posted-on {
    color: #888;
}

.entry-content {
    max-width: 720px;
    margin: 0 auto;
}

.entry-content p {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    color: #c8c8c8;
}

.entry-content p:first-of-type::first-letter {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 3.5rem;
    float: left;
    line-height: 0.9;
    padding-right: 0.4rem;
    padding-top: 0.15rem;
    font-weight: 900;
    color: #5ba3d9;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
}

.entry-content blockquote {
    border-left: 3px solid #5ba3d9;
    padding-left: 1.25rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.6;
    color: #a0a0a0;
}

.entry-content ul, .entry-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    color: #c8c8c8;
}

/* External links indicator */
.entry-content a[target="_blank"]::after {
    content: " ↗";
    font-size: 0.75em;
    vertical-align: super;
}

/* ============================================
   Category/Archive Labels
   ============================================ */
.category-label {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #5ba3d9;
    margin-bottom: 0.375rem;
    display: block;
}

.category-label a {
    color: #5ba3d9;
}

.category-label a:hover {
    color: #7dbde8;
}

/* ============================================
   Sidebar
   ============================================ */
.content-sidebar-wrap {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

@media (max-width: 900px) {
    .content-sidebar-wrap {
        grid-template-columns: 1fr;
    }
}

.sidebar {
    border-left: 1px solid #2a2a2a;
    padding-left: 2rem;
}

@media (max-width: 900px) {
    .sidebar {
        border-left: none;
        border-top: 1px solid #2a2a2a;
        padding-left: 0;
        padding-top: 2rem;
    }
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #5ba3d9;
    border-bottom: 2px solid #5ba3d9;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #2a2a2a;
    font-size: 0.9375rem;
}

.widget li:last-child {
    border-bottom: none;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: #0a0a0a;
    border-top: 3px solid #5ba3d9;
    padding: 2.5rem 0 2rem;
    margin-top: 3rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }
}

.footer-widget-title {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #5ba3d9;
    margin-bottom: 0.875rem;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 0.375rem;
}

.footer-menu a {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.8125rem;
    color: #888;
}

.footer-menu a:hover {
    color: #5ba3d9;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2a2a2a;
}

.footer-bottom p {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.6875rem;
    color: #888;
    margin: 0;
    letter-spacing: 0.02em;
}

/* ============================================
   Comments
   ============================================ */
.comments-area {
    max-width: 720px;
    margin: 3rem auto;
    padding-top: 2rem;
    border-top: 3px solid #5ba3d9;
}

.comments-title {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    color: #5ba3d9;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    border-bottom: 1px solid #2a2a2a;
    padding: 1.5rem 0;
}

.comment-author {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    color: #ffffff;
}

.comment-meta {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.6875rem;
    color: #888;
    margin-bottom: 0.625rem;
}

.comment-content p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #c8c8c8;
}

/* Comment Form */
.comment-respond {
    margin-top: 2rem;
}

.comment-form label {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #2a2a2a;
    background: #1a1a1a;
    color: #d0d0d0;
    font-family: 'Georgia', serif;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #5ba3d9;
}

.comment-form .submit {
    background: #5ba3d9;
    color: #0a0a0a;
    border: none;
    padding: 0.75rem 2rem;
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.comment-form .submit:hover {
    background: #7dbde8;
}

/* ============================================
   Pagination
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.375rem;
    padding: 2rem 0;
    font-family: 'Libre Franklin', Arial, sans-serif;
}

.pagination a, .pagination span {
    padding: 0.5rem 0.875rem;
    border: 1px solid #2a2a2a;
    font-size: 0.8125rem;
    color: #888;
    background: #111;
}

.pagination a:hover {
    background: #1a1a1a;
    border-color: #5ba3d9;
    color: #5ba3d9;
    text-decoration: none;
}

.pagination .current {
    background: #5ba3d9;
    color: #0a0a0a;
    border-color: #5ba3d9;
}

/* ============================================
   Intelligence Briefing Specific Styles
   ============================================ */
.intelligence-briefing {
    font-family: 'Georgia', 'Times New Roman', serif;
}

.intelligence-briefing h2 {
    font-family: 'Libre Franklin', Arial, sans-serif;
    color: #5ba3d9;
    font-size: 1.25rem;
    margin-top: 2rem;
    border-bottom: 2px solid #5ba3d9;
    padding-bottom: 0.5rem;
}

.intelligence-briefing h3 {
    font-family: 'Libre Franklin', Arial, sans-serif;
    color: #ffffff;
    font-size: 1.1rem;
}

.intelligence-briefing h4 {
    font-family: 'Libre Franklin', Arial, sans-serif;
    color: #e0e0e0;
    font-size: 1rem;
}

.intelligence-briefing p {
    color: #b8b8b8;
}

.intelligence-briefing a {
    color: #5ba3d9;
}

.intelligence-briefing strong {
    color: #ffffff;
}

/* Executive Summary Box */
.exec-summary {
    background: #1a1a1a;
    border-left: 4px solid #5ba3d9;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.exec-summary h3 {
    color: #5ba3d9;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

/* Breaking/Alert boxes */
.alert-box {
    background: #2d1f1f;
    border-left: 4px solid #d9534f;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #e8a0a0;
}

/* Source attribution */
.source-tag {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5ba3d9;
}

.timestamp {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.6875rem;
    color: #888;
}

/* ============================================
   Utility Classes
   ============================================ */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .site-header, .site-footer, .sidebar, .comments-area {
        display: none;
    }
    
    body {
        font-size: 12pt;
        background: white;
        color: black;
    }
    
    .entry-content {
        max-width: 100%;
    }
}

/* ============================================
   MOBILE RESPONSIVE ENHANCEMENTS
   ============================================ */

/* Mobile Menu Toggle Button */
.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid #5ba3d9;
    color: #5ba3d9;
    padding: 0.5rem 1rem;
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    margin: 0 auto 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus {
    background: #5ba3d9;
    color: #111;
    outline: none;
}

.menu-toggle-icon {
    display: inline-block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
}

.menu-toggle-icon::before {
    top: -6px;
}

.menu-toggle-icon::after {
    top: 6px;
}

/* Tablet Styles (768px - 900px) */
@media (max-width: 900px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .site-title {
        font-size: 1.75rem;
    }
    
    .single-post .entry-title,
    .page .entry-title {
        font-size: 1.75rem;
    }
    
    .nav-menu {
        gap: 0.25rem 1.25rem;
    }
    
    .nav-menu li a {
        font-size: 0.6875rem;
    }
}

/* Mobile Styles (below 768px) */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 0.875rem;
    }
    
    /* Header */
    .header-top {
        font-size: 0.625rem;
        padding: 0.375rem 0;
    }
    
    .site-branding {
        padding: 1rem 0;
    }
    
    .site-title {
        font-size: 1.5rem;
        letter-spacing: 0;
    }
    
    /* Mobile Menu */
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        border-top: none;
        padding: 0;
    }
    
    .main-navigation.is-active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
    }
    
    .nav-menu li {
        border-bottom: 1px solid #2a2a2a;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu li a {
        display: block;
        padding: 0.875rem 0;
        font-size: 0.875rem;
        text-align: center;
    }
    
    /* Typography */
    h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.375rem;
    }
    
    h3 {
        font-size: 1.125rem;
    }
    
    h4 {
        font-size: 1rem;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.65;
    }
    
    /* Single Post */
    .single-post .entry-header,
    .page .entry-header {
        padding-top: 1.5rem;
    }
    
    .single-post .entry-title,
    .page .entry-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .entry-subtitle {
        font-size: 1.0625rem;
    }
    
    .entry-content p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .entry-content p:first-of-type::first-letter {
        font-size: 2.75rem;
    }
    
    /* Footer */
    .site-footer {
        padding: 1.5rem 0;
    }
    
    .footer-widgets {
        gap: 1.5rem;
    }
    
    /* Touch-friendly tap targets */
    a, button {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    .nav-menu li a {
        min-height: 48px;
        justify-content: center;
    }
    
    /* Executive Summary Mobile */
    .exec-summary {
        padding: 1rem;
    }
    
    .intelligence-briefing h3 {
        font-size: 0.85rem;
    }
    
    .intelligence-briefing ul {
        padding-left: 0;
    }
    
    .intelligence-briefing li {
        padding: 0.75rem 0;
        border-bottom: 1px solid #2a2a2a;
        line-height: 1.4;
    }
    
    .intelligence-briefing li:last-child {
        border-bottom: none;
    }
    
    .source-tag {
        display: block;
        margin-top: 0.25rem;
        font-size: 0.625rem;
    }
    
    /* Article cards */
    .article-card .entry-title {
        font-size: 1rem;
    }
    
    .article-card .entry-summary {
        font-size: 0.875rem;
    }
    
    /* Pagination */
    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination a, .pagination span {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Small Mobile (below 480px) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .site-title {
        font-size: 1.25rem;
    }
    
    .header-date {
        font-size: 0.5625rem;
    }
    
    h1, .single-post .entry-title, .page .entry-title {
        font-size: 1.375rem;
    }
    
    .entry-content p:first-of-type::first-letter {
        font-size: 2.25rem;
    }
    
    .intelligence-briefing li a {
        font-size: 0.9375rem;
    }
    
    /* Stack weather grid on very small screens */
    .intelligence-briefing div[style*="grid-template-columns"] {
        display: block !important;
    }
    
    .intelligence-briefing div[style*="grid-template-columns"] > div {
        margin-bottom: 0.5rem;
    }
}

/* Landscape Phone */
@media (max-width: 768px) and (orientation: landscape) {
    .site-branding {
        padding: 0.75rem 0;
    }
    
    .site-title {
        font-size: 1.375rem;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark mode is already default, but ensure system preference works */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #111111;
        color: #d0d0d0;
    }
}

/* ============================================
   NEWS TICKER
   ============================================ */
.news-ticker-wrapper {
    background: linear-gradient(90deg, #1a1a1a 0%, #0d0d0d 100%);
    border-bottom: 1px solid #2a2a2a;
    position: relative;
    z-index: 100;
}

.news-ticker {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 36px;
    overflow: hidden;
}

.ticker-label {
    background: #d9534f;
    color: #fff;
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'Libre Franklin', sans-serif;
}

.ticker-label:has(+ .ticker-content .breaking) {
    background: #d9534f;
    animation: pulse-bg 2s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { background: #d9534f; }
    50% { background: #c9302c; }
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    margin-left: 1rem;
}

.ticker-scroll {
    display: flex;
    animation: ticker-scroll 20s linear infinite;
    white-space: nowrap;
}

.ticker-scroll:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 2rem;
    font-size: 0.85rem;
    color: #c0c0c0;
    font-family: 'Libre Franklin', sans-serif;
}

.ticker-item::after {
    content: '•';
    margin-left: 2rem;
    color: #444;
}

.ticker-item:last-child::after {
    content: '';
}

.ticker-item a {
    color: #c0c0c0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ticker-item a:hover {
    color: #5ba3d9;
}

.ticker-item.breaking a {
    color: #f0a0a0;
    font-weight: 600;
}

.ticker-item.breaking a:hover {
    color: #ff6b6b;
}

/* Mobile ticker adjustments */
@media (max-width: 768px) {
    .news-ticker {
        height: 32px;
    }
    
    .ticker-label {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }
    
    .ticker-item {
        font-size: 0.75rem;
        padding: 0 1.5rem;
    }
    
    .ticker-item::after {
        margin-left: 1.5rem;
    }
}

/* Compact navigation menu */
.main-navigation .nav-menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.25rem;
}

.main-navigation .nav-menu li a {
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .main-navigation .nav-menu li a {
        padding: 0.5rem 0.4rem;
        font-size: 0.7rem;
    }
}

/* Wire ticker label styling */
.ticker-label {
    background: #2a4a5a !important;
}

/* Header Search */
.header-search {
    display: flex;
    align-items: center;
    gap: 0;
}
.header-search input[type="search"] {
    background: #222;
    border: 1px solid #444;
    border-right: none;
    border-radius: 3px 0 0 3px;
    color: #fff;
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
    width: 140px;
}
.header-search input[type="search"]:focus {
    outline: none;
    border-color: #666;
}
.header-search button {
    background: #333;
    border: 1px solid #444;
    border-radius: 0 3px 3px 0;
    color: #999;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.header-search button:hover {
    background: #444;
    color: #fff;
}
.header-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Homepage Briefing Section */
.homepage-briefing {
    background: #0d0d14;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.briefing-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #222;
}
.briefing-title {
    font-size: 1.25rem;
    margin: 0 0 0.25rem 0;
}
.briefing-title a {
    color: #fff;
    text-decoration: none;
}
.briefing-title a:hover {
    color: #5ba3d9;
}
.briefing-meta {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
}
.briefing-link {
    margin: 1rem 0 0 0;
    text-align: right;
}
.briefing-link a {
    color: #5ba3d9;
    font-size: 0.85rem;
    text-decoration: none;
}
.briefing-link a:hover {
    text-decoration: underline;
}
.homepage-briefing .ai-analysis {
    margin: 0 !important;
}

/* ============================================
   Intelligence Article Styles (Single Posts)
   ============================================ */

.single-post .entry-content {
    max-width: 720px;
    margin: 0 auto;
}

.intelligence-article {
    padding: 1rem 0;
}

.intelligence-article .article-header img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.intelligence-article .article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.intelligence-article .article-content p {
    margin-bottom: 1.25rem;
    color: #e0e0e0;
}

.intelligence-article .read-original a {
    display: inline-block;
    background: #5ba3d9;
    color: #fff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, transform 0.1s;
}

.intelligence-article .read-original a:hover {
    background: #4a8fc4;
    transform: translateY(-1px);
}

.single-post .entry-header {
    max-width: 720px;
    margin: 0 auto 2rem auto;
    text-align: center;
}

.single-post .entry-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.single-post .category-label a {
    background: #5ba3d9;
    color: #fff !important;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.post-navigation {
    max-width: 720px;
    margin: 3rem auto 0 auto;
}

@media (max-width: 768px) {
    .single-post .entry-title {
        font-size: 1.5rem;
    }
}

/* Fix badge and article-meta overflow issues */
.intelligence-article .article-meta {
    overflow: visible;
}

.intelligence-article .article-meta > div {
    overflow: visible;
}

.entry-content {
    overflow: visible;
}

/* Ensure grid doesn't cut off content */
.intelligence-article [style*="display:grid"] {
    overflow: visible;
}

/* Fix any container clipping */
.single-post .entry-content,
.single-post article {
    overflow: visible;
}

.container {
    overflow: visible;
}

/* Fix old badge format that WordPress wraps in p tags */
.credibility-scores {
    display: flex !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

.credibility-scores p {
    display: contents;
    margin: 0;
}

.credibility-scores br {
    display: none;
}

.score-badge {
    display: inline-block !important;
    white-space: nowrap;
}

/* Ensure intelligence-article content doesn't get p-wrapped badly */
.intelligence-article p {
    margin-bottom: 1rem;
}

.intelligence-article .source-meta,
.intelligence-article .article-meta {
    display: block;
}

.intelligence-article .article-meta p {
    margin: 0;
}

/* ============================================
   AI Analysis / Briefing Styles
   ============================================ */

/* Analysis section container */
.ai-analysis {
    background: #1a1a2e;
    border-left: 4px solid #5ba3d9;
    border-radius: 0 4px 4px 0;
    padding: 1rem 1.25rem;
    margin: 1rem 0 1.5rem 0;
}

/* Analysis section header */
.analysis-header {
    color: #5ba3d9;
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.75rem 0;
    padding: 0;
}

/* Section subheaders (Key Findings, Coverage Balance, By Sector) */
.analysis-subheader {
    color: #58a6ff;
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 0.5rem 0;
    padding: 0;
}

/* Key findings list */
.key-findings-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.key-findings-list li {
    margin-bottom: 0.3rem;
    line-height: 1.5;
    color: #c8c8c8;
}

/* Source count indicator */
.source-count {
    color: #888;
    font-size: 0.85rem;
}

/* Read more link */
.read-more-link {
    color: #5ba3d9;
    font-size: 0.8rem;
    text-decoration: none;
}

.read-more-link:hover {
    text-decoration: underline;
}

/* Coverage balance bar */
.coverage-balance {
    display: flex;
    justify-content: space-between;
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 1rem;
}

.coverage-left {
    color: #3b82f6;
}

.coverage-center {
    color: #8b5cf6;
}

.coverage-right {
    color: #ef4444;
}

/* By sector content */
.sector-summary {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #b8b8b8;
    margin-bottom: 1rem;
}

.sector-label {
    color: #58a6ff;
    font-weight: 600;
}

/* Priority legend */
.priority-legend {
    font-size: 0.65rem;
    color: #888;
    margin: 1rem 0 0.5rem 0;
    padding-top: 0.5rem;
    border-top: 1px solid #333;
}

.priority-breaking {
    color: #dc2626;
    font-weight: 700;
}

.priority-high {
    color: #f59e0b;
    font-weight: 700;
}

/* Methodology footer */
.methodology-note {
    font-size: 0.7rem;
    font-style: italic;
    color: #888;
    margin: 0.5rem 0 0 0;
}

/* ============================================
   Scoring Legend (Footer)
   ============================================ */

.scoring-legend {
    border-top: 1px solid #2a2a2a;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.scoring-legend-title {
    color: #5ba3d9;
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.5rem 0;
}

.scoring-legend-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.65rem;
    color: #888;
}

.scoring-legend-label {
    color: #aaa;
    font-weight: 600;
}

/* Bias colors */
.bias-left { color: #d97b5a; }
.bias-lean-left { color: #e6a855; }
.bias-center { color: #7cb88c; }
.bias-lean-right { color: #e6a855; }
.bias-right { color: #d97b5a; }

/* Reliability colors */
.reliability-very-high { color: #7cb88c; }
.reliability-high { color: #98c379; }
.reliability-mixed { color: #e6a855; }
.reliability-low { color: #d97b5a; }
.reliability-very-low { color: #c94040; }

/* Coverage indicator */
.coverage-indicator { color: #7cb88c; }

.scoring-legend-sources {
    font-size: 0.6rem;
    font-style: italic;
    color: #888;
    margin: 0.5rem 0 0 0;
}

.scoring-legend-methodology {
    font-size: 0.6rem;
    color: #888;
    margin: 0.3rem 0 0 0;
}

.scoring-legend-methodology strong {
    color: #999;
}

/* ============================================
   Score Badges (Enhanced)
   ============================================ */

.score-badge {
    display: inline-block;
    background: #1a1a2e;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid currentColor;
}

.score-badge.clickable-badge {
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.score-badge.clickable-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Badge color variants */
.score-badge--center {
    border-color: #7cb88c;
    color: #7cb88c;
}

.score-badge--lean-left {
    border-color: #e6a855;
    color: #e6a855;
}

.score-badge--lean-right {
    border-color: #e6a855;
    color: #e6a855;
}

.score-badge--left {
    border-color: #3b82f6;
    color: #3b82f6;
}

.score-badge--right {
    border-color: #ef4444;
    color: #ef4444;
}

.score-badge--very-high {
    border-color: #7cb88c;
    color: #7cb88c;
}

.score-badge--high {
    border-color: #98c379;
    color: #98c379;
}

.score-badge--mixed {
    border-color: #e6a855;
    color: #e6a855;
}

.score-badge--low {
    border-color: #d97b5a;
    color: #d97b5a;
}

/* Article cards hover enhancement */
.article-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.article-card:hover {
    transform: translateY(-2px);
}

/* Homepage briefing card shadow */
.homepage-briefing {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Popup note styling */
.popup-note {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.5rem;
}

/* ============================================
   Account & Authentication Pages
   ============================================ */

.auth-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.auth-box {
    background: #1a1a2e;
    border: 1px solid #2a2a3a;
    border-radius: 12px;
    padding: 2.5rem;
}

.auth-box h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #888;
    margin-bottom: 2rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #c0c0c0;
    margin-bottom: 0.5rem;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #111;
    border: 1px solid #3a3a4a;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: #5ba3d9;
    box-shadow: 0 0 0 3px rgba(91, 163, 217, 0.15);
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.35rem;
}

.form-group-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-password {
    font-size: 0.875rem;
    color: #5ba3d9;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: #5ba3d9;
    color: #fff;
}

.btn-primary:hover {
    background: #4a92c8;
}

.btn-secondary {
    background: #2a2a3a;
    color: #c0c0c0;
    border: 1px solid #3a3a4a;
}

.btn-secondary:hover {
    background: #3a3a4a;
    color: #fff;
}

.btn-full {
    width: 100%;
}

.auth-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #2a2a3a;
    text-align: center;
}

.auth-footer p {
    font-size: 0.9375rem;
    color: #888;
    margin: 0;
}

.auth-features {
    padding: 2rem 0;
}

.auth-features h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #5ba3d9;
}

.auth-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #1a1a2e;
}

.auth-features li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text {
    font-size: 0.9375rem;
    color: #c0c0c0;
    line-height: 1.5;
}

.beta-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(91, 163, 217, 0.1);
    border: 1px solid rgba(91, 163, 217, 0.3);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: #c0c0c0;
}

.beta-badge {
    display: inline-block;
    background: #5ba3d9;
    color: #fff;
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.pricing-preview {
    background: #111;
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pricing-label {
    font-weight: 600;
    color: #c0c0c0;
}

.pricing-value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-strike {
    text-decoration: line-through;
    color: #666;
    font-size: 0.9375rem;
}

.price-free {
    font-weight: 700;
    color: #7cb88c;
    font-size: 1.125rem;
}

.pricing-note {
    font-size: 0.8125rem;
    color: #666;
    margin-top: 0.5rem;
}

.terms-notice {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    margin: 1rem 0 0;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: #5ba3d9;
    width: 1rem;
    height: 1rem;
}

.checkbox-label {
    font-size: 0.9375rem;
    color: #c0c0c0;
}

.checkbox-description {
    display: block;
    font-size: 0.8125rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Notice/Alert Styles */
.notice {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.notice p {
    margin: 0;
    font-size: 0.9375rem;
}

.notice-success {
    background: rgba(124, 184, 140, 0.1);
    border: 1px solid rgba(124, 184, 140, 0.3);
    color: #7cb88c;
}

.notice-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ============================================
   Settings Page
   ============================================ */

.account-page {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.account-header {
    margin-bottom: 2rem;
}

.account-header h1 {
    margin-bottom: 0.25rem;
}

.account-header p {
    color: #888;
    font-size: 1rem;
    margin: 0;
}

.subscription-status {
    background: #1a1a2e;
    border: 1px solid #2a2a3a;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.subscription-status h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 1rem;
}

.subscription-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge-icon {
    font-size: 1.5rem;
}

.badge-text {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
}

.badge-detail {
    font-size: 0.875rem;
    color: #888;
    margin-left: auto;
}

.subscription-beta .badge-icon,
.subscription-beta .badge-text {
    color: #5ba3d9;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.settings-section {
    background: #1a1a2e;
    border: 1px solid #2a2a3a;
    border-radius: 12px;
    padding: 2rem;
}

.settings-section h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.section-description {
    color: #888;
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

/* Theme Options */
.theme-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem;
    background: #111;
    border: 2px solid #2a2a3a;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-option:hover {
    border-color: #3a3a4a;
}

.theme-option.selected {
    border-color: #5ba3d9;
    background: rgba(91, 163, 217, 0.05);
}

.theme-option input {
    position: absolute;
    opacity: 0;
}

.theme-preview {
    width: 60px;
    height: 40px;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    border: 1px solid #3a3a4a;
}

.theme-preview-dark {
    background: linear-gradient(135deg, #111 50%, #1a1a2e 50%);
}

.theme-preview-light {
    background: linear-gradient(135deg, #f5f5f5 50%, #fff 50%);
}

.theme-preview-accessibility {
    background: linear-gradient(135deg, #000 50%, #fff 50%);
}

.theme-label {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.theme-description {
    font-size: 0.75rem;
    color: #666;
}

/* Sector Grid */
.sector-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.sector-option {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    background: #111;
    border: 2px solid #2a2a3a;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.sector-option:hover {
    border-color: #3a3a4a;
}

.sector-option.selected {
    border-color: #5ba3d9;
    background: rgba(91, 163, 217, 0.05);
}

.sector-option input {
    position: absolute;
    opacity: 0;
}

.sector-name {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.sector-description {
    font-size: 0.8125rem;
    color: #888;
    line-height: 1.4;
}

/* Locale Manager */
.locale-manager {
    margin-bottom: 1.5rem;
}

.current-locales {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    min-height: 2.5rem;
}

.locale-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(91, 163, 217, 0.15);
    border: 1px solid rgba(91, 163, 217, 0.3);
    border-radius: 20px;
    padding: 0.5rem 0.75rem 0.5rem 1rem;
    font-size: 0.875rem;
    color: #5ba3d9;
}

.locale-remove {
    background: none;
    border: none;
    color: #888;
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.locale-remove:hover {
    color: #ef4444;
}

.locale-add {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.locale-type-select,
.locale-value-select,
.locale-custom-input {
    padding: 0.75rem 1rem;
    background: #111;
    border: 1px solid #3a3a4a;
    border-radius: 6px;
    color: #fff;
    font-size: 0.9375rem;
    min-width: 200px;
}

.locale-custom-input {
    flex: 1;
    min-width: 250px;
}

.locale-extras {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Email Options */
.email-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Settings Actions */
.settings-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
}

/* ============================================
   Secure Tips Page
   ============================================ */

.tips-page {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.tips-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tips-header h1 {
    margin-bottom: 0.5rem;
}

.tips-subtitle {
    color: #888;
    font-size: 1.125rem;
    margin: 0;
}

.tips-intro {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
}

.tips-intro p {
    color: #a0a0a0;
    font-size: 1rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tip-method {
    background: #1a1a2e;
    border: 1px solid #2a2a3a;
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.2s;
}

.tip-method:hover {
    border-color: #3a3a4a;
}

.tip-method-primary {
    border-color: rgba(91, 163, 217, 0.4);
}

.tip-method-primary:hover {
    border-color: #5ba3d9;
}

.method-icon {
    color: #5ba3d9;
    margin-bottom: 1.25rem;
}

.tip-method h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.method-description {
    color: #888;
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.signal-contact,
.email-contact {
    background: #111;
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 0.5rem;
}

.contact-number {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #5ba3d9;
    letter-spacing: 0.03em;
}

.contact-email {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #5ba3d9;
}

.method-steps {
    margin-bottom: 1.5rem;
}

.method-steps h4 {
    font-size: 0.875rem;
    color: #c0c0c0;
    margin-bottom: 0.75rem;
}

.method-steps ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: steps;
}

.method-steps li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #888;
    counter-increment: steps;
}

.method-steps li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    width: 1.25rem;
    height: 1.25rem;
    background: #2a2a3a;
    border-radius: 50%;
    text-align: center;
    line-height: 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
}

.security-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(124, 184, 140, 0.1);
    border: 1px solid rgba(124, 184, 140, 0.25);
    border-radius: 20px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    color: #7cb88c;
}

/* Tip Form */
.tip-form {
    margin-top: 1rem;
}

.tip-form textarea {
    width: 100%;
    padding: 1rem;
    background: #111;
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tip-form textarea:focus {
    outline: none;
    border-color: #5ba3d9;
    box-shadow: 0 0 0 3px rgba(91, 163, 217, 0.15);
}

.form-note {
    font-size: 0.8125rem;
    color: #666;
    background: #111;
    border-radius: 6px;
    padding: 0.875rem;
    margin-bottom: 1rem;
}

/* File Upload Styling */
.tip-form input[type="file"] {
    width: 100%;
    padding: 1rem;
    background: #111;
    border: 2px dashed #3a3a4a;
    border-radius: 8px;
    color: #888;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.tip-form input[type="file"]:hover {
    border-color: #5ba3d9;
    background: #0a0a15;
}

.tip-form input[type="file"]:focus {
    outline: none;
    border-color: #5ba3d9;
}

.form-help {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.5rem;
    line-height: 1.4;
}

/* FAQ Section */
.tips-faq {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.tips-faq h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-item {
    background: #1a1a2e;
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.faq-item h4 {
    color: #fff;
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: #888;
    font-size: 0.9375rem;
    margin: 0;
    line-height: 1.6;
}

.tips-disclaimer {
    max-width: 700px;
    margin: 0 auto;
    padding: 1.5rem;
    background: rgba(230, 168, 85, 0.1);
    border: 1px solid rgba(230, 168, 85, 0.25);
    border-radius: 8px;
    text-align: center;
}

.tips-disclaimer p {
    color: #e6a855;
    font-size: 0.875rem;
    margin: 0;
}

/* ============================================
   Subscription Wall (Paywall CTA)
   ============================================ */

.subscription-wall {
    background: linear-gradient(180deg, transparent 0%, #1a1a2e 20%);
    padding: 3rem 0 0;
    margin-top: -2rem;
    position: relative;
}

.subscription-wall::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background: linear-gradient(180deg, transparent, #1a1a2e);
}

.subscription-wall-inner {
    background: #1a1a2e;
    border: 1px solid #2a2a3a;
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.subscription-wall h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.subscription-wall > .subscription-wall-inner > p {
    color: #888;
    margin-bottom: 1.5rem;
}

.subscription-pricing {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.price-original {
    text-decoration: line-through;
    color: #666;
    font-size: 1.125rem;
}

.price-beta {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #7cb88c;
}

.btn-subscribe {
    display: inline-block;
    background: #5ba3d9;
    color: #fff;
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-subscribe:hover {
    background: #4a92c8;
    color: #fff;
}

.login-prompt {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #666;
}

/* ============================================
   Theme Variants (Light & Accessibility)
   ============================================ */

/* Light Theme */
body.theme-light {
    background-color: #f5f5f5;
    color: #333;
}

body.theme-light h1,
body.theme-light h2,
body.theme-light h3,
body.theme-light h4,
body.theme-light h5 {
    color: #111;
}

body.theme-light p {
    color: #444;
}

body.theme-light a {
    color: #1a73e8;
}

body.theme-light .site-header,
body.theme-light .site-footer,
body.theme-light .auth-box,
body.theme-light .settings-section,
body.theme-light .tip-method,
body.theme-light .subscription-status {
    background: #fff;
    border-color: #e0e0e0;
}

body.theme-light .auth-form input,
body.theme-light .locale-type-select,
body.theme-light .locale-value-select,
body.theme-light .locale-custom-input,
body.theme-light .tip-form textarea {
    background: #fff;
    border-color: #d0d0d0;
    color: #333;
}

body.theme-light .theme-option,
body.theme-light .sector-option {
    background: #f9f9f9;
    border-color: #e0e0e0;
}

body.theme-light .badge-popup {
    background: #fff;
    border-color: #e0e0e0;
}

/* Accessibility Theme (High Contrast) */
body.theme-accessibility {
    background-color: #000;
    color: #fff;
}

body.theme-accessibility h1,
body.theme-accessibility h2,
body.theme-accessibility h3,
body.theme-accessibility h4,
body.theme-accessibility h5,
body.theme-accessibility h6,
body.theme-accessibility p {
    color: #fff;
}

body.theme-accessibility a {
    color: #ffff00;
    text-decoration: underline;
}

body.theme-accessibility .site-header,
body.theme-accessibility .site-footer,
body.theme-accessibility .auth-box,
body.theme-accessibility .settings-section,
body.theme-accessibility .tip-method,
body.theme-accessibility .subscription-status {
    background: #000;
    border-color: #fff;
    border-width: 2px;
}

body.theme-accessibility .btn-primary {
    background: #ffff00;
    color: #000;
}

body.theme-accessibility .btn-primary:hover {
    background: #fff;
}

/* ============================================
   Responsive Adjustments for Account Pages
   ============================================ */

@media (max-width: 768px) {
    .auth-page {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .auth-features {
        order: -1;
    }

    .theme-options {
        grid-template-columns: 1fr;
    }

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

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

    .locale-add {
        flex-direction: column;
    }

    .locale-type-select,
    .locale-value-select,
    .locale-custom-input {
        min-width: 100%;
    }

    .settings-actions {
        flex-direction: column;
    }

    .settings-actions .btn {
        width: 100%;
    }
}

/* ============================================
   Static Pages (About, Contact, Legal)
   ============================================ */

.static-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.page-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid #5ba3d9;
}

.page-header h1 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #888;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.page-updated {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

.page-content {
    font-size: 1rem;
    line-height: 1.7;
}

.page-content h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #2a2a3a;
}

.page-content h3 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #5ba3d9;
}

.page-content h4 {
    font-size: 1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.page-content p {
    margin-bottom: 1rem;
    color: #c0c0c0;
}

.page-content ul,
.page-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
    color: #b0b0b0;
}

.page-content a {
    color: #5ba3d9;
}

.page-content a:hover {
    text-decoration: underline;
}

/* About Page Specific */
.about-section {
    margin-bottom: 2rem;
}

.methodology-grid,
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.methodology-item,
.sector-item {
    background: #1a1a2e;
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    padding: 1.25rem;
}

.methodology-item h4,
.sector-item h4 {
    color: #5ba3d9;
    margin: 0 0 0.5rem 0;
}

.methodology-item p,
.sector-item p {
    font-size: 0.875rem;
    margin: 0;
    color: #888;
}

/* Contact Page Specific */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.contact-info {
    padding-right: 2rem;
}

.contact-section {
    margin-bottom: 2rem;
}

.contact-section h2 {
    margin-top: 0;
}

.contact-section h3 {
    font-size: 1rem;
    margin-top: 0;
}

.contact-form-wrapper {
    background: #1a1a2e;
    border: 1px solid #2a2a3a;
    border-radius: 12px;
    padding: 2rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #c0c0c0;
    margin-bottom: 0.5rem;
}

.contact-form .required {
    color: #ef4444;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #111;
    border: 1px solid #3a3a4a;
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #5ba3d9;
    box-shadow: 0 0 0 3px rgba(91, 163, 217, 0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Legal Pages Specific */
.legal-content {
    max-width: 800px;
}

.legal-section {
    margin-bottom: 2rem;
}

.contact-block {
    background: #1a1a2e;
    border: 1px solid #2a2a3a;
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1rem 0;
}

/* Responsive Static Pages */
@media (max-width: 768px) {
    .methodology-grid,
    .sectors-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-info {
        padding-right: 0;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }
}

/* ============================================
   Enhanced Footer
   ============================================ */

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid #2a2a3a;
    margin-bottom: 1.5rem;
}

.footer-column h4 {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #a0a0a0;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #5ba3d9;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #2a2a3a;
    border-radius: 6px;
    color: #888;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: #5ba3d9;
    color: #fff;
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}

.footer-disclaimer {
    background: rgba(230, 168, 85, 0.08);
    border: 1px solid rgba(230, 168, 85, 0.2);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-disclaimer p {
    font-size: 0.8125rem;
    color: #a0a0a0;
    margin: 0;
    line-height: 1.6;
}

.footer-disclaimer a {
    color: #5ba3d9;
}

/* ============================================
   BLUF Dictionary Definition Box
   ============================================ */
.bluf-definition-box {
    background: linear-gradient(135deg, #1a1a2e 0%, #16162a 100%);
    border: 1px solid #2a2a3a;
    border-left: 4px solid #5ba3d9;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    max-width: 400px;
}

.bluf-definition-box .dict-word {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
}

.bluf-definition-box .dict-pronunciation {
    font-family: 'Georgia', serif;
    font-size: 0.875rem;
    color: #8a8a9a;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.bluf-definition-box .dict-type {
    display: inline-block;
    font-family: 'Georgia', serif;
    font-size: 0.75rem;
    font-style: italic;
    color: #5ba3d9;
    background: rgba(91, 163, 217, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.bluf-definition-box .dict-origin {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #2a2a3a;
}

.bluf-definition-box .dict-definitions {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bluf-definition-box .dict-definitions li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #c8c8c8;
}

.bluf-definition-box .dict-definitions li::before {
    content: attr(data-num);
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #5ba3d9;
}

.bluf-definition-box .dict-example {
    font-style: italic;
    color: #888;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.bluf-definition-box .dict-value {
    background: rgba(91, 163, 217, 0.08);
    border-radius: 6px;
    padding: 0.875rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #a8c8e8;
    line-height: 1.5;
}

.bluf-definition-box .dict-value strong {
    color: #5ba3d9;
}

/* Prominent logo hero section for homepage */
.hero-logo-section {
    text-align: center;
    padding: 3rem 0 2rem;
    background: linear-gradient(180deg, #111 0%, #0a0a15 100%);
    border-bottom: 1px solid #1a1a2a;
}

.hero-logo {
    width: 150px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 20px rgba(91, 163, 217, 0.4));
}

.hero-title {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
}

.hero-tagline {
    font-family: 'Georgia', serif;
    font-size: 1.125rem;
    font-style: italic;
    color: #8a8a9a;
    margin-top: 0.5rem;
}

/* ============================================
   Homepage Two-Column Layout with Sidebar
   ============================================ */
.homepage-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
}

.main-content {
    min-width: 0;
}

.homepage-sidebar {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Sidebar Widgets - Compact Style */
.sidebar-widget {
    background: linear-gradient(135deg, #141420 0%, #12121c 100%);
    border: 1px solid #1e1e2e;
    border-radius: 6px;
    padding: 1rem;
}

/* BLUF Definition Widget - Compact */
.bluf-definition-widget .dict-word {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.15rem 0;
}

.bluf-definition-widget .dict-pronunciation {
    font-family: 'Georgia', serif;
    font-size: 0.75rem;
    color: #6a6a7a;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.bluf-definition-widget .dict-type {
    display: inline-block;
    font-family: 'Georgia', serif;
    font-size: 0.65rem;
    font-style: italic;
    color: #5ba3d9;
    background: rgba(91, 163, 217, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.bluf-definition-widget .dict-origin {
    font-size: 0.65rem;
    color: #555;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #1e1e2e;
}

.bluf-definition-widget .dict-definitions {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bluf-definition-widget .dict-definitions li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #a0a0b0;
}

.bluf-definition-widget .dict-definitions li::before {
    content: attr(data-num);
    position: absolute;
    left: 0;
    font-weight: 700;
    color: #5ba3d9;
    font-size: 0.75rem;
}

/* Metrics Widget */
.metrics-widget .widget-title,
.methodology-widget .widget-title,
.trust-widget .widget-title {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5ba3d9;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #1e1e2e;
}

.metric-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-family: 'Libre Franklin', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.metric-label {
    font-size: 0.75rem;
    color: #7a7a8a;
}

/* Methodology Widget */
.methodology-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.methodology-list li {
    font-size: 0.75rem;
    color: #909098;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.methodology-list li strong {
    color: #c0c0c8;
}

/* Trust Widget */
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.trust-icon {
    color: #5ba3d9;
    font-size: 0.85rem;
    font-weight: bold;
}

.trust-text {
    font-size: 0.75rem;
    color: #909098;
}

/* Responsive - Stack sidebar below on smaller screens */
@media (max-width: 900px) {
    .homepage-layout {
        grid-template-columns: 1fr;
    }

    .homepage-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 1px solid #1e1e2e;
    }

    .bluf-definition-widget {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .homepage-sidebar {
        grid-template-columns: 1fr;
    }
}
