/* ═══════════════════════════════════════════════════════════
   IKES.NEWS — WORLD CHAMPIONSHIP DESIGN SYSTEM
   A Pacific Northwest Editorial Experience
   ═══════════════════════════════════════════════════════════ */

/* CSS Custom Properties — Design Tokens */
:root {
    /* Brand Colors — Pacific Northwest Palette */
    --color-forest-deep: #0D2818;
    --color-forest-rich: #1A4D2E;
    --color-fern: #2E7D4A;
    --color-sage: #5B8A72;
    --color-mist: #9DBFAF;
    --color-cloud: #E8F0EC;
    --color-cream: #FAFCFB;
    --color-gold: #C9A227;
    --color-gold-light: #E8D48A;
    --color-ember: #E85D04;
    --color-berry: #9D4EDD;

    /* Semantic Colors */
    --color-bg-primary: var(--color-cream);
    --color-bg-secondary: var(--color-cloud);
    --color-bg-tertiary: #FFFFFF;
    --color-text-primary: var(--color-forest-deep);
    --color-text-secondary: #3D5A4C;
    --color-text-muted: #6B8B7A;
    --color-accent: var(--color-fern);
    --color-accent-hover: var(--color-forest-rich);
    --color-highlight: var(--color-gold);

    /* Typography Scale — Perfect Fourth (1.333) */
    --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --text-xs: clamp(0.694rem, 0.65rem + 0.2vw, 0.75rem);
    --text-sm: clamp(0.833rem, 0.78rem + 0.24vw, 0.875rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
    --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
    --text-xl: clamp(1.333rem, 1.2rem + 0.6vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.7vw, 2.75rem);
    --text-4xl: clamp(2.25rem, 1.7rem + 2.5vw, 3.5rem);
    --text-5xl: clamp(2.75rem, 2rem + 3.5vw, 4.5rem);

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Layout */
    --max-width: 1400px;
    --content-width: 720px;
    --sidebar-width: 340px;
    --gutter: clamp(1rem, 3vw, 2rem);
    --header-height: 64px;

    /* Effects */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(13, 40, 24, 0.04);
    --shadow-md: 0 4px 12px rgba(13, 40, 24, 0.06);
    --shadow-lg: 0 12px 32px rgba(13, 40, 24, 0.08);
    --shadow-xl: 0 24px 48px rgba(13, 40, 24, 0.12);

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
}

/* Dark Theme */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg-primary: var(--color-forest-deep);
        --color-bg-secondary: #152B1E;
        --color-bg-tertiary: #1A3425;
        --color-text-primary: var(--color-cloud);
        --color-text-secondary: var(--color-mist);
        --color-text-muted: var(--color-sage);
        --color-accent: #4ADE80;
        --color-accent-hover: #86EFAC;
    }
}

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

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

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--color-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Custom Selection */
::selection {
    background: var(--color-fern);
    color: white;
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
    max-width: 70ch;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

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

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

/* ═══════════════════════════════════════════════════════════
   LAYOUT STRUCTURE
   ═══════════════════════════════════════════════════════════ */

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ═══════════════════════════════════════════════════════════
   HEADER — Masthead
   ═══════════════════════════════════════════════════════════ */

.masthead {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-bg-tertiary);
    border-bottom: 1px solid rgba(13, 40, 24, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

@supports (backdrop-filter: blur(20px)) {
    .masthead {
        background: rgba(255, 255, 255, 0.85);
    }

    @media (prefers-color-scheme: dark) {
        .masthead {
            background: rgba(13, 40, 24, 0.9);
        }
    }
}

.masthead__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: var(--space-4);
}

.masthead__brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.masthead__logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-forest-deep);
    letter-spacing: -0.03em;
}

@media (prefers-color-scheme: dark) {
    .masthead__logo {
        color: var(--color-cloud);
    }
}

.masthead__logo-icon {
    width: 90px;
    height: auto;
    object-fit: contain;
}

.masthead__tagline {
    display: none;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

@media (min-width: 768px) {
    .masthead__tagline {
        display: block;
    }
}

.masthead__nav {
    display: none;
}

@media (min-width: 1024px) {
    .masthead__nav {
        display: flex;
        align-items: center;
        gap: var(--space-1);
    }
}

.masthead__nav-link {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
}

.masthead__nav-link:hover {
    color: var(--color-text-primary);
    background: var(--color-bg-secondary);
}

.masthead__nav-link--active {
    color: var(--color-accent);
}

.masthead__actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.masthead__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.masthead__btn--primary {
    background: var(--color-accent);
    color: white;
}

.masthead__btn--primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.masthead__btn--ghost {
    background: transparent;
    color: var(--color-text-secondary);
    padding: var(--space-2);
}

.masthead__btn--ghost:hover {
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
}

.masthead__menu-btn {
    display: flex;
    padding: var(--space-2);
}

@media (min-width: 1024px) {
    .masthead__menu-btn {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   HERO — Ticker Bar
   ═══════════════════════════════════════════════════════════ */

.ticker-bar {
    background: var(--color-forest-deep);
    color: var(--color-cloud);
    overflow: hidden;
    position: relative;
}

.ticker-bar__inner {
    display: flex;
    align-items: center;
    height: 40px;
}

.ticker-bar__label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-fern);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ticker-bar__pulse {
    width: 6px;
    height: 6px;
    background: #4ADE80;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.ticker-bar__track {
    flex: 1;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.ticker-bar__content {
    display: flex;
    gap: var(--space-8);
    animation: ticker 60s linear infinite;
    white-space: nowrap;
}

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

.ticker-bar__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-sm);
}

.ticker-bar__item::before {
    content: '◆';
    color: var(--color-sage);
    font-size: 0.5rem;
}

.ticker-bar__link {
    color: var(--color-cloud);
    transition: color var(--duration-fast);
}

.ticker-bar__link:hover {
    color: var(--color-gold-light);
}

/* ═══════════════════════════════════════════════════════════
   DATE BAR
   ═══════════════════════════════════════════════════════════ */

.date-bar {
    padding: var(--space-4) 0;
    border-bottom: 1px solid rgba(13, 40, 24, 0.08);
}

.date-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.date-bar__date {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--color-text-primary);
}

.date-bar__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.date-bar__ai-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(46, 125, 74, 0.1));
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-berry);
}

.date-bar__ai-badge svg {
    width: 14px;
    height: 14px;
}

/* ═══════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════ */

.main-content {
    flex: 1;
    padding: var(--space-8) 0 var(--space-16);
}

.main-grid {
    display: grid;
    gap: var(--space-8);
}

@media (min-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr var(--sidebar-width);
        gap: var(--space-12);
    }
}

/* ═══════════════════════════════════════════════════════════
   FEATURED STORY
   ═══════════════════════════════════════════════════════════ */

.featured-story {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-forest-deep);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.8s var(--ease-out) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.featured-story__image-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.featured-story__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: transform var(--duration-slow) var(--ease-out);
}

.featured-story:hover .featured-story__image {
    transform: scale(1.03);
}

.featured-story__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,
        rgba(13, 40, 24, 0.98) 0%,
        rgba(13, 40, 24, 0.85) 30%,
        rgba(13, 40, 24, 0.4) 60%,
        rgba(13, 40, 24, 0.2) 100%
    );
    z-index: 2;
}

.featured-story__content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
    padding: var(--space-8);
}

@media (min-width: 768px) {
    .featured-story__content {
        padding: var(--space-12);
    }
}

.featured-story__tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    width: fit-content;
    margin-bottom: var(--space-4);
    padding: var(--space-2) var(--space-4);
    background: var(--color-fern);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-story__title {
    font-size: var(--text-4xl);
    color: white;
    margin-bottom: var(--space-4);
    max-width: 800px;
}

.featured-story__title a {
    display: block;
}

.featured-story__title a:hover {
    color: var(--color-gold-light);
}

.featured-story__excerpt {
    font-size: var(--text-lg);
    color: var(--color-mist);
    margin-bottom: var(--space-6);
    max-width: 600px;
    line-height: 1.7;
}

.featured-story__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-sage);
}

.featured-story__author {
    font-weight: 500;
    color: var(--color-cloud);
}

.featured-story__time::before {
    content: '•';
    margin-right: var(--space-4);
}

/* ═══════════════════════════════════════════════════════════
   SECTION HEADER
   ═══════════════════════════════════════════════════════════ */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-forest-deep);
}

@media (prefers-color-scheme: dark) {
    .section-header {
        border-color: var(--color-sage);
    }
}

.section-header__title {
    font-size: var(--text-lg);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-header__icon {
    margin-right: var(--space-2);
}

.section-header__link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.section-header__link:hover {
    color: var(--color-accent-hover);
}

/* ═══════════════════════════════════════════════════════════
   ARTICLE CARDS
   ═══════════════════════════════════════════════════════════ */

.article-grid {
    display: grid;
    gap: var(--space-6);
}

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

.article-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    animation: fadeInUp 0.6s var(--ease-out) both;
}

.article-card:nth-child(1) { animation-delay: 0.1s; }
.article-card:nth-child(2) { animation-delay: 0.15s; }
.article-card:nth-child(3) { animation-delay: 0.2s; }
.article-card:nth-child(4) { animation-delay: 0.25s; }

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.article-card__image-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.article-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

.article-card:hover .article-card__image {
    transform: scale(1.05);
}

.article-card__category {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    padding: var(--space-1) var(--space-3);
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-accent);
}

.article-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--space-5);
}

.article-card__title {
    font-size: var(--text-xl);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: var(--space-3);
}

.article-card__title a:hover {
    color: var(--color-accent);
}

.article-card__excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.article-card__time {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.article-card__read-time::before {
    content: '•';
    margin: 0 var(--space-2);
}

/* Horizontal Card Variant */
.article-card--horizontal {
    flex-direction: row;
}

.article-card--horizontal .article-card__image-wrap {
    width: 120px;
    flex-shrink: 0;
    aspect-ratio: 1;
}

@media (min-width: 640px) {
    .article-card--horizontal .article-card__image-wrap {
        width: 160px;
    }
}

.article-card--horizontal .article-card__body {
    padding: var(--space-4);
}

.article-card--horizontal .article-card__title {
    font-size: var(--text-base);
    margin-bottom: var(--space-2);
}

.article-card--horizontal .article-card__excerpt {
    display: none;
}

@media (min-width: 768px) {
    .article-card--horizontal .article-card__excerpt {
        display: -webkit-box;
        -webkit-line-clamp: 2;
    }
}

/* ═══════════════════════════════════════════════════════════
   NEWS SECTIONS
   ═══════════════════════════════════════════════════════════ */

.news-sections {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
    margin-top: var(--space-12);
}

.news-section {
    animation: fadeInUp 0.6s var(--ease-out) both;
}

.news-section:nth-child(1) { animation-delay: 0.2s; }
.news-section:nth-child(2) { animation-delay: 0.3s; }
.news-section:nth-child(3) { animation-delay: 0.4s; }

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════ */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.sidebar-widget {
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    animation: fadeInUp 0.6s var(--ease-out) both;
}

.sidebar-widget--transparent {
    background: transparent;
    padding: 0;
}

.sidebar-widget__title {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--color-forest-deep);
}

@media (prefers-color-scheme: dark) {
    .sidebar-widget__title {
        border-color: var(--color-sage);
    }
}

/* Trending Widget */
.trending-list {
    list-style: none;
}

.trending-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-bottom: 1px solid rgba(13, 40, 24, 0.08);
}

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

.trending-item:first-child {
    padding-top: 0;
}

.trending-item__number {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--color-mist);
    line-height: 1;
}

.trending-item__content {
    flex: 1;
}

.trending-item__title {
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: var(--space-1);
}

.trending-item__title a:hover {
    color: var(--color-accent);
}

.trending-item__meta {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, var(--color-forest-rich), var(--color-forest-deep));
    color: white;
}

.newsletter-widget .sidebar-widget__title {
    color: var(--color-gold-light);
    border-color: rgba(255, 255, 255, 0.2);
}

.newsletter-widget__text {
    font-size: var(--text-sm);
    color: var(--color-mist);
    margin-bottom: var(--space-5);
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.newsletter-form__input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: white;
    transition: all var(--duration-fast);
}

.newsletter-form__input::placeholder {
    color: var(--color-sage);
}

.newsletter-form__input:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form__btn {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--color-gold);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-forest-deep);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.newsletter-form__btn:hover {
    background: var(--color-gold-light);
    transform: translateY(-1px);
}

.newsletter-form__privacy {
    font-size: var(--text-xs);
    color: var(--color-sage);
    text-align: center;
}

.newsletter-form__privacy a {
    color: var(--color-mist);
    text-decoration: underline;
}

/* Ethics Widget */
.ethics-widget {
    background: var(--color-bg-secondary);
    border: 1px solid rgba(13, 40, 24, 0.08);
}

.ethics-widget__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.ethics-widget__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.ethics-widget__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-fern);
    border-radius: 50%;
    color: white;
    font-size: 0.65rem;
}

/* Weather Widget */
.weather-widget {
    background: linear-gradient(180deg, #E3F2FD 0%, #BBDEFB 100%);
}

@media (prefers-color-scheme: dark) {
    .weather-widget {
        background: linear-gradient(180deg, #1A3A4A 0%, #0D2830 100%);
    }
}

.weather-widget__current {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.weather-widget__icon {
    font-size: 3rem;
}

.weather-widget__temp {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 500;
    line-height: 1;
}

.weather-widget__condition {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.weather-widget__location {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* Market Widget */
.market-widget {
    background: var(--color-forest-deep);
    color: white;
}

.market-widget .sidebar-widget__title {
    color: var(--color-gold-light);
    border-color: rgba(255, 255, 255, 0.2);
}

.market-data {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.market-item:last-child {
    border-bottom: none;
}

.market-label {
    font-weight: 600;
    font-size: var(--text-sm);
}

.market-value {
    font-family: monospace;
    font-size: var(--text-sm);
}

.market-up {
    color: #4ADE80;
}

.market-down {
    color: #F87171;
}

/* ═══════════════════════════════════════════════════════════
   CATEGORY PILLS
   ═══════════════════════════════════════════════════════════ */

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid rgba(13, 40, 24, 0.08);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.category-pill {
    flex-shrink: 0;
    padding: var(--space-2) var(--space-4);
    background: var(--color-bg-secondary);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast);
    white-space: nowrap;
}

.category-pill:hover {
    background: var(--color-bg-tertiary);
    border-color: rgba(13, 40, 24, 0.12);
    color: var(--color-text-primary);
}

.category-pill--active {
    background: var(--color-forest-deep);
    color: white;
}

@media (prefers-color-scheme: dark) {
    .category-pill--active {
        background: var(--color-fern);
    }
}

.category-pill--active:hover {
    background: var(--color-forest-rich);
    border-color: transparent;
    color: white;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

.site-footer {
    background: var(--color-forest-deep);
    color: var(--color-cloud);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    gap: var(--space-10);
}

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

.footer-brand__logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-4);
}

.footer-brand__logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-fern);
    border-radius: var(--radius-md);
}

.footer-brand__desc {
    font-size: var(--text-sm);
    color: var(--color-sage);
    line-height: 1.7;
    max-width: 300px;
    margin-bottom: var(--space-5);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social__link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-mist);
    transition: all var(--duration-fast);
}

.footer-social__link:hover {
    background: var(--color-fern);
    color: white;
    transform: translateY(-2px);
}

.footer-nav__title {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    margin-bottom: var(--space-5);
}

.footer-nav__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-nav__link {
    font-size: var(--text-sm);
    color: var(--color-sage);
    transition: color var(--duration-fast);
}

.footer-nav__link:hover {
    color: white;
}

.footer-bottom {
    margin-top: var(--space-12);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.footer-bottom__copy {
    font-size: var(--text-xs);
    color: var(--color-sage);
}

.footer-bottom__parent {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-sage);
}

.footer-bottom__parent a {
    color: var(--color-mist);
    font-weight: 500;
}

.footer-bottom__parent a:hover {
    color: white;
}

/* ═══════════════════════════════════════════════════════════
   ACCESSIBILITY & REDUCED MOTION
   ═══════════════════════════════════════════════════════════ */

@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;
    }

    .ticker-bar__content {
        animation: none;
    }
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-3) var(--space-6);
    background: var(--color-forest-deep);
    color: white;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-weight: 600;
    z-index: 9999;
    transition: top var(--duration-fast);
}

.skip-link:focus {
    top: 0;
}

/* ═══════════════════════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════════════════════ */

@media print {
    .masthead,
    .ticker-bar,
    .sidebar,
    .newsletter-widget,
    .site-footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .featured-story {
        background: white;
        color: black;
        border: 1px solid #ccc;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }
}

/* ═══════════════════════════════════════════════════════════
   ARTICLE DETAIL PAGE
   ═══════════════════════════════════════════════════════════ */

.article-detail-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 1024px) {
    .article-detail-container {
        grid-template-columns: 1fr var(--sidebar-width);
        gap: var(--space-12);
    }
}

.article-detail {
    background: var(--color-bg-tertiary);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
}

.article-detail-headline {
    font-size: var(--text-4xl);
    font-weight: 500;
    color: var(--color-text-primary);
    line-height: 1.2;
    margin-bottom: var(--space-6);
}

.article-deck {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-top: 1px solid rgba(13, 40, 24, 0.08);
    border-bottom: 1px solid rgba(13, 40, 24, 0.08);
    margin-bottom: var(--space-8);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.article-featured-image {
    margin-bottom: var(--space-8);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
}

.article-content {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--color-text-primary);
}

.article-content p {
    margin-bottom: var(--space-6);
}

.article-content h2 {
    font-size: var(--text-2xl);
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
    color: var(--color-forest-deep);
}

.article-content h3 {
    font-size: var(--text-xl);
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
    color: var(--color-forest-deep);
}

/* ═══════════════════════════════════════════════════════════
   SECTION PAGES
   ═══════════════════════════════════════════════════════════ */

.section-page-header {
    text-align: center;
    padding: var(--space-12) 0;
    margin-bottom: var(--space-8);
    border-bottom: 2px solid var(--color-forest-deep);
}

.section-page-title {
    font-size: var(--text-4xl);
    font-weight: 600;
    color: var(--color-forest-deep);
    margin-bottom: var(--space-3);
}

.section-page-description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    padding: var(--space-4);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-8);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.section-stats strong {
    color: var(--color-text-primary);
}

/* ═══════════════════════════════════════════════════════════
   SEARCH PAGE
   ═══════════════════════════════════════════════════════════ */

.search-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-8) 0;
}

.search-form {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.search-input {
    flex: 1;
    padding: var(--space-4);
    border: 2px solid var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    transition: border-color var(--duration-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.search-btn {
    padding: var(--space-4) var(--space-6);
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.search-btn:hover {
    background: var(--color-accent-hover);
}

/* ═══════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-breaking {
    background: #DC2626;
    color: white;
}

.badge-lead {
    background: var(--color-gold);
    color: var(--color-forest-deep);
}

.badge-brief {
    background: var(--color-sage);
    color: white;
}

.badge-ai {
    background: var(--color-berry);
    color: white;
}

/* ═══════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid rgba(13, 40, 24, 0.08);
}

.pagination-btn {
    padding: var(--space-3) var(--space-5);
    background: var(--color-accent);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--duration-fast);
}

.pagination-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

.pagination-info {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ═══════════════════════════════════════════════════════════
   MOBILE MENU
   ═══════════════════════════════════════════════════════════ */

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-forest-deep);
    z-index: 9998;
    padding: var(--space-8);
    padding-top: 80px;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.mobile-menu__link {
    padding: var(--space-4);
    color: var(--color-cloud);
    font-size: var(--text-lg);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: background var(--duration-fast);
}

.mobile-menu__link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu__close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--color-cloud);
    font-size: 24px;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════
   ARTICLE IMAGE PLACEHOLDER
   ═══════════════════════════════════════════════════════════ */

.article-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-forest-rich) 0%, var(--color-forest-deep) 100%);
    color: var(--color-mist);
    font-size: 3rem;
}

/* ═══════════════════════════════════════════════════════════
   ADMIN STYLES (Keep existing admin.css reference)
   ═══════════════════════════════════════════════════════════ */
