/* ==========================================================================
   TECH NEWS — site/tech-news/styles.css

   Phase 7 / Step 4C — Chat 16 (2026-04-19).
   Companion to scripts.js (829 L) and index.html (322 L).

   Design system:
     - Inherits :root tokens from /navigation.css (loaded first in <head>).
     - Declares ONLY local --tn-* tokens (4 cat accents + --tn-active cascade).
     - Aesthetic C Hybrid: ember base + muted per-cat accents.
     - Q4: more visible accents — card tag dots, tab indicator, card hover
       border tints driven by [data-tech-news-active-cat] cascade on root.
     - Q5: simple grid texture (no particles).
     - NO mobile breakpoints (per Jonathan's standing rule).

   Scope rule: every selector MUST be prefixed with .tech-news-page so this
   stylesheet cannot leak into other pages.

   Keyframes are all prefixed `tech-news-` to avoid collisions.

   [hidden] hardening: every JS-toggleable element with display:flex/grid/etc.
   has a paired `.foo[hidden] { display: none }` override at higher
   specificity (Chat 7 lesson — UA [hidden] rule has spec 0,0,1,0 and loses
   the cascade against display:flex at spec 0,0,1,0 if loaded later).
   ========================================================================== */


/* ==========================================================================
   1. PAGE ROOT + LOCAL TOKENS
   ========================================================================== */

.tech-news-page {
    /* Per-category accent tokens (Chat 15 design lock) */
    --tn-ai:    #a78bfa;   /* purple */
    --tn-cyber: #34d399;   /* green */
    --tn-msft:  #38bdf8;   /* blue */
    --tn-it:    #fb923c;   /* orange */

    /* Cascade var — overridden by [data-tech-news-active-cat] selectors below.
       Defaults to ember so the page is never bare if JS hasn't booted yet. */
    --tn-active: var(--ember);

    /* LIVE pulse green (separate from cat accents) */
    --tn-live: #22c55e;

    background: var(--bg-deep);
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
    padding-top: var(--nav-height);
    position: relative;
    overflow-x: hidden;
}

/* Active-category cascade: JS sets data-tech-news-active-cat on body,
   each rule swaps --tn-active so cards/dots/borders re-tint instantly. */
.tech-news-page[data-tech-news-active-cat="ai"]            { --tn-active: var(--tn-ai); }
.tech-news-page[data-tech-news-active-cat="cybersecurity"] { --tn-active: var(--tn-cyber); }
.tech-news-page[data-tech-news-active-cat="microsoft"]     { --tn-active: var(--tn-msft); }
.tech-news-page[data-tech-news-active-cat="it"]            { --tn-active: var(--tn-it); }


/* ==========================================================================
   2. BACKGROUND GRID TEXTURE (Q5: no particles)
   ========================================================================== */

.tech-news-page::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: center center;
    mask-image: radial-gradient(ellipse at center top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse at center top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
}

.tech-news-page::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, var(--ember-soft) 0%, transparent 60%);
    opacity: 0.5;
}


/* ==========================================================================
   3. SCROLLBAR
   ========================================================================== */

.tech-news-page ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
.tech-news-page ::-webkit-scrollbar-track {
    background: var(--bg-base);
}
.tech-news-page ::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.25);
    border-radius: 4px;
    border: 2px solid var(--bg-base);
}
.tech-news-page ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.45);
}


/* ==========================================================================
   4. CONNECTION ERROR BANNER (fixed bottom)
   ========================================================================== */

.tech-news-page .tn-conn-error {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: linear-gradient(180deg, rgba(212, 74, 32, 0.95) 0%, rgba(180, 50, 12, 0.98) 100%);
    border-top: 1px solid var(--ember);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
    padding: 0.85rem 1.5rem;
    color: #fff;
    font-family: var(--font-body);
    animation: tech-news-conn-slide 320ms var(--ease);
}
.tech-news-page .tn-conn-error[hidden] {
    display: none;
}
.tech-news-page .tn-conn-error__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    max-width: 1100px;
    margin: 0 auto;
}
.tech-news-page .tn-conn-error__icon {
    font-size: 1.25rem;
    line-height: 1;
}
.tech-news-page .tn-conn-error__msg {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}


/* ==========================================================================
   5. MAIN
   ========================================================================== */

.tech-news-page .tn-main {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--nav-height));
}


/* ==========================================================================
   6. STICKY HEADER
   ========================================================================== */

.tech-news-page .tn-header {
    position: sticky;
    top: var(--nav-height);
    z-index: 50;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.85) 100%);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--border-ember);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45),
                0 1px 0 var(--ember-soft) inset;
    padding: 1.25rem 1.5rem 0;
}

.tech-news-page .tn-header__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1440px;
    margin: 0 auto;
    padding-bottom: 1.25rem;
}

.tech-news-page .tn-header__title-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1 1 auto;
}

.tech-news-page .tn-header__title-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.tech-news-page .tn-header__title {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.01em;
    color: var(--text);
    margin: 0;
    text-transform: none;
    background: linear-gradient(180deg, var(--text) 0%, #c9c9d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tech-news-page .tn-header__subtitle {
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-dim);
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.01em;
}


/* ==========================================================================
   7. LIVE PULSE
   ========================================================================== */

.tech-news-page .tn-pulse {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.55rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.32);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--tn-live);
    text-transform: uppercase;
    flex-shrink: 0;
}

.tech-news-page .tn-pulse__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tn-live);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
    animation: tech-news-pulse 2s ease-in-out infinite;
}

.tech-news-page .tn-pulse__label {
    line-height: 1;
}


/* ==========================================================================
   8. HEADER CONTROLS
   ========================================================================== */

.tech-news-page .tn-header__controls {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.tech-news-page .tn-header__updated {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.tech-news-page .tn-header__updated-label {
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
}

.tech-news-page .tn-header__updated-time {
    color: var(--text);
    font-variant-numeric: tabular-nums;
}


/* ==========================================================================
   9. BUTTONS — base + variants
   ========================================================================== */

.tech-news-page .tn-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.95rem;
    background: var(--ember);
    color: #0a0a0a;
    border: 1px solid var(--ember);
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--fast),
                color var(--fast),
                border-color var(--fast),
                box-shadow var(--fast),
                transform var(--fast);
    line-height: 1;
}

.tech-news-page .tn-btn:hover {
    background: var(--ember-bright);
    border-color: var(--ember-bright);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.35);
    transform: translateY(-1px);
}

.tech-news-page .tn-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 107, 53, 0.25);
}

.tech-news-page .tn-btn:focus-visible {
    outline: 2px solid var(--ember-bright);
    outline-offset: 2px;
}

.tech-news-page .tn-btn--ghost {
    background: transparent;
    color: var(--text-dim);
    border-color: var(--border);
}

.tech-news-page .tn-btn--ghost:hover {
    background: rgba(255, 107, 53, 0.08);
    color: var(--ember-bright);
    border-color: var(--ember);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.18);
}

.tech-news-page .tn-btn__label {
    line-height: 1;
}


/* ==========================================================================
   10. REFRESH BUTTON + ICON SPIN
   ========================================================================== */

.tech-news-page .tn-refresh__icon {
    width: 16px;
    height: 16px;
    display: block;
    transition: transform var(--med);
}

.tech-news-page .tn-refresh.is-spinning {
    pointer-events: none;
    opacity: 0.85;
}

.tech-news-page .tn-refresh.is-spinning .tn-refresh__icon {
    animation: tech-news-spin 600ms linear infinite;
}


/* ==========================================================================
   11. RESET BUTTON
   ========================================================================== */

.tech-news-page .tn-reset__icon {
    width: 14px;
    height: 14px;
    display: block;
}


/* ==========================================================================
   12. RESET STATUS TOAST
   ========================================================================== */

.tech-news-page .tn-reset-status {
    display: inline-flex;
    align-items: center;
    min-height: 1.2rem;
    padding: 0 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ember-bright);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity var(--med),
                transform var(--med);
    pointer-events: none;
    white-space: nowrap;
}

.tech-news-page .tn-reset-status.is-visible {
    opacity: 1;
    transform: translateY(0);
    animation: tech-news-toast-in 280ms var(--ease);
}


/* ==========================================================================
   13. TAB STRIP
   ========================================================================== */

.tech-news-page .tn-tabs-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding-top: 0;
}

.tech-news-page .tn-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: thin;
    -ms-overflow-style: none;
}

.tech-news-page .tn-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--fast),
                background var(--fast);
    line-height: 1;
}

.tech-news-page .tn-tab::after {
    content: '';
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: -1px;
    height: 2px;
    background: transparent;
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--med),
                background var(--med);
}

.tech-news-page .tn-tab:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.02);
}

.tech-news-page .tn-tab:hover::after {
    transform: scaleX(0.4);
    background: var(--tn-active);
    opacity: 0.5;
}

.tech-news-page .tn-tab.is-active {
    color: var(--text);
}

.tech-news-page .tn-tab.is-active::after {
    transform: scaleX(1);
    background: var(--ember);
    box-shadow: 0 0 12px var(--ember-glow);
    opacity: 1;
}

.tech-news-page .tn-tab:focus-visible {
    outline: 2px solid var(--ember-bright);
    outline-offset: -2px;
    border-radius: 2px;
}

.tech-news-page .tn-tab__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-faint);
    flex-shrink: 0;
    box-shadow: 0 0 0 0 currentColor;
    transition: box-shadow var(--med),
                transform var(--med);
}

.tech-news-page .tn-tab.is-active .tn-tab__dot {
    transform: scale(1.15);
}

.tech-news-page .tn-tab__label {
    line-height: 1;
}

/* Per-cat dot color (always visible, even on inactive tabs) */
.tech-news-page .tn-tab[data-tech-news-tab="ai"] .tn-tab__dot            { background: var(--tn-ai);    }
.tech-news-page .tn-tab[data-tech-news-tab="cybersecurity"] .tn-tab__dot { background: var(--tn-cyber); }
.tech-news-page .tn-tab[data-tech-news-tab="microsoft"] .tn-tab__dot     { background: var(--tn-msft);  }
.tech-news-page .tn-tab[data-tech-news-tab="it"] .tn-tab__dot            { background: var(--tn-it);    }

/* Active-tab dot glow keyed off cat */
.tech-news-page .tn-tab[data-tech-news-tab="ai"].is-active .tn-tab__dot            { box-shadow: 0 0 8px var(--tn-ai);    }
.tech-news-page .tn-tab[data-tech-news-tab="cybersecurity"].is-active .tn-tab__dot { box-shadow: 0 0 8px var(--tn-cyber); }
.tech-news-page .tn-tab[data-tech-news-tab="microsoft"].is-active .tn-tab__dot     { box-shadow: 0 0 8px var(--tn-msft);  }
.tech-news-page .tn-tab[data-tech-news-tab="it"].is-active .tn-tab__dot            { box-shadow: 0 0 8px var(--tn-it);    }


/* ==========================================================================
   14. PANELS
   ========================================================================== */

.tech-news-page .tn-panels {
    flex: 1 1 auto;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.75rem 1.5rem 3rem;
}

.tech-news-page .tn-panel {
    display: block;
    animation: tech-news-panel-in 320ms var(--ease);
}

.tech-news-page .tn-panel[hidden] {
    display: none;
}

.tech-news-page .tn-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.tech-news-page .tn-panel__count {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
}

.tech-news-page .tn-panel__count-num {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.tech-news-page .tn-panel__count-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


/* ==========================================================================
   15. LOADING STATE
   ========================================================================== */

.tech-news-page .tn-panel__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 5rem 2rem;
    color: var(--text-dim);
    text-align: center;
}

.tech-news-page .tn-panel__loading[hidden] {
    display: none;
}

.tech-news-page .tn-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--ember);
    border-right-color: var(--tn-active);
    border-radius: 50%;
    animation: tech-news-spinner 800ms linear infinite;
}

.tech-news-page .tn-panel__loading-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    margin: 0;
}


/* ==========================================================================
   16. ERROR STATE
   ========================================================================== */

.tech-news-page .tn-panel__error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3.5rem 2rem;
    border: 1px solid var(--ember);
    border-radius: 8px;
    background: rgba(255, 107, 53, 0.04);
    text-align: center;
}

.tech-news-page .tn-panel__error[hidden] {
    display: none;
}

.tech-news-page .tn-panel__error-text {
    color: var(--text);
    font-size: 0.95rem;
    margin: 0;
    max-width: 480px;
    line-height: 1.5;
}


/* ==========================================================================
   17. ARTICLE GRID
   ========================================================================== */

.tech-news-page .tn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.tech-news-page .tn-grid[hidden] {
    display: none;
}


/* ==========================================================================
   18. CARD — base
   ========================================================================== */

.tech-news-page .tn-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    transition: border-color var(--med),
                background var(--med),
                box-shadow var(--med),
                transform var(--med),
                opacity var(--med),
                filter var(--med);
    animation: tech-news-card-in 0.4s var(--ease) backwards;
    will-change: transform;
}

.tech-news-page .tn-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--tn-active), transparent);
    opacity: 0;
    transition: opacity var(--med);
}

.tech-news-page .tn-card:hover {
    border-color: var(--tn-active);
    background: linear-gradient(180deg, var(--bg-elevated) 0%, rgba(18, 18, 18, 0.7) 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    transform: translateY(-2px);
}

.tech-news-page .tn-card:hover::before {
    opacity: 0.85;
}

.tech-news-page .tn-card:focus-visible {
    outline: 2px solid var(--tn-active);
    outline-offset: 2px;
}

.tech-news-page .tn-card.is-read {
    opacity: 0.55;
    filter: saturate(0.4);
}

.tech-news-page .tn-card.is-read:hover {
    opacity: 0.85;
    filter: saturate(0.7);
}


/* ==========================================================================
   19. CARD — tag (source name + dot)
   ========================================================================== */

.tech-news-page .tn-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 3px;
    align-self: flex-start;
    transition: border-color var(--fast),
                background var(--fast);
}

.tech-news-page .tn-card:hover .tn-card-tag {
    border-color: var(--tn-active);
    background: rgba(255, 255, 255, 0.04);
}

.tech-news-page .tn-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tn-active);
    flex-shrink: 0;
    box-shadow: 0 0 4px var(--tn-active);
}

.tech-news-page .tn-tag-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1;
}

.tech-news-page .tn-card:hover .tn-tag-label {
    color: var(--text);
}


/* ==========================================================================
   20. CARD — title
   ========================================================================== */

.tech-news-page .tn-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    margin: 0;
    letter-spacing: 0.005em;
    /* 3-line clamp for long titles */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--fast);
}

.tech-news-page .tn-card:hover .tn-card-title {
    color: var(--ember-bright);
}


/* ==========================================================================
   21. CARD — description
   ========================================================================== */

.tech-news-page .tn-card-desc {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-dim);
    line-height: 1.55;
    margin: 0;
    /* 3-line clamp */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ==========================================================================
   22. CARD — footer (date + domain + link icon)
   ========================================================================== */

.tech-news-page .tn-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.tech-news-page .tn-card-date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-faint);
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.tech-news-page .tn-card-domain {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-faint);
    text-transform: lowercase;
    letter-spacing: 0.01em;
    flex: 1 1 auto;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.tech-news-page .tn-card-link-icon {
    width: 14px;
    height: 14px;
    color: var(--text-faint);
    flex-shrink: 0;
    transition: color var(--fast),
                transform var(--fast);
}

.tech-news-page .tn-card:hover .tn-card-link-icon {
    color: var(--tn-active);
    transform: translate(2px, -2px);
}


/* ==========================================================================
   23. FOOTER
   ========================================================================== */

.tech-news-page .tn-footer {
    width: 100%;
    background: var(--bg-base);
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    margin-top: 2rem;
}

.tech-news-page .tn-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tech-news-page .tn-footer__line {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    margin: 0;
    letter-spacing: 0.03em;
}

.tech-news-page .tn-footer__line span {
    color: var(--ember-bright);
    font-weight: 600;
}

.tech-news-page .tn-footer__attr {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--text-faint);
    margin: 0;
    line-height: 1.55;
    max-width: 900px;
    margin: 0 auto;
}

.tech-news-page .tn-footer__copy {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-faint);
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}


/* ==========================================================================
   24. NOSCRIPT
   ========================================================================== */

.tech-news-page .tn-noscript {
    margin: 4rem auto;
    max-width: 600px;
    padding: 2rem;
    background: rgba(255, 107, 53, 0.06);
    border: 1px solid var(--ember);
    border-radius: 8px;
    text-align: center;
    color: var(--text);
}

.tech-news-page .tn-noscript p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}


/* ==========================================================================
   25. ANIMATIONS — keyframes (all prefixed `tech-news-`)
   ========================================================================== */

@keyframes tech-news-pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
    }
    50% {
        opacity: 0.4;
        box-shadow: 0 0 14px rgba(34, 197, 94, 0.95);
    }
}

@keyframes tech-news-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes tech-news-spinner {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

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

@keyframes tech-news-panel-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tech-news-toast-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tech-news-conn-slide {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* ==========================================================================
   26. PRINT (basic — strip background animations + fixed elements)
   ========================================================================== */

@media print {
    .tech-news-page {
        background: #fff;
        color: #000;
        padding-top: 0;
    }
    .tech-news-page::before,
    .tech-news-page::after { display: none; }
    .tech-news-page .tn-conn-error,
    .tech-news-page .tn-header__controls,
    .tech-news-page .tn-tabs,
    .tech-news-page .tn-pulse {
        display: none !important;
    }
    .tech-news-page .tn-header {
        position: static;
        background: none;
        box-shadow: none;
        border-bottom: 1px solid #000;
    }
    .tech-news-page .tn-card {
        background: #fff;
        color: #000;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}


/* ==========================================================================
   27. REDUCED MOTION — respect user preference
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .tech-news-page *,
    .tech-news-page *::before,
    .tech-news-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .tech-news-page .tn-pulse__dot {
        opacity: 1;
        animation: none !important;
    }
    .tech-news-page .tn-spinner {
        border-top-color: var(--ember);
        border-right-color: var(--tn-active);
        animation: none !important;
    }
    .tech-news-page .tn-card:hover {
        transform: none;
    }
    .tech-news-page .tn-btn:hover {
        transform: none;
    }
    .tech-news-page .tn-card-link-icon,
    .tech-news-page .tn-card:hover .tn-card-link-icon {
        transform: none;
    }
}

/* ============================ END styles.css ============================ */
