/**
 * Threat Intelligence Research Node - Core Cyber Visual Styling
 * Modern, dark-mode cybersecurity research layout with Elementor support.
 */

:root {
    --ti-bg-deep: #080c14;
    --ti-bg-surface: #0f172a;
    --ti-bg-card: #141e33;
    --ti-bg-card-hover: #192642;
    --ti-border: #1e293b;
    --ti-border-bright: #334155;
    
    --ti-accent-cyan: #00ffcc;
    --ti-accent-blue: #38bdf8;
    --ti-accent-emerald: #10b981;
    --ti-accent-amber: #f59e0b;
    --ti-accent-rose: #f43f5e;
    
    --ti-text-primary: #f8fafc;
    --ti-text-secondary: #94a3b8;
    --ti-text-muted: #64748b;
    
    --ti-radius-sm: 6px;
    --ti-radius-md: 10px;
    --ti-radius-lg: 16px;
    
    --ti-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    --ti-glow-cyan: 0 0 20px rgba(0, 255, 204, 0.2);
}

/* Universal Box Sizing & Fluid Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Global Reset on Threat Intel Pages & Host Theme Isolation */
html, body, .threat-intel-active-page {
    background-color: #080c14 !important;
    color: #f8fafc !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    -webkit-text-size-adjust: 100%;
}

/* Suppress host theme's default header and footer elements so only our Cyber Header & Footer display */
#masthead,
#colophon,
.site-header,
.site-footer,
.ast-main-header-wrap,
.elementor-location-header,
.elementor-location-footer,
header.header,
footer.footer,
.entry-header,
.page-header {
    display: none !important;
}

#threat-intel-global-header,
#threat-intel-global-footer {
    display: block !important;
    position: relative;
    z-index: 9999;
}

/* Base Wrapper */
.threat-intel-wrapper {
    background-color: var(--ti-bg-deep);
    color: var(--ti-text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.65;
    padding: 3rem 1.5rem 5rem 1.5rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Hero Section */
.threat-hero {
    text-align: center;
    margin-bottom: 3.5rem;
    padding: 3rem 2rem;
    background: radial-gradient(circle at 50% 20%, rgba(0, 255, 204, 0.08) 0%, rgba(15, 23, 42, 0) 70%), var(--ti-bg-surface);
    border: 1px solid var(--ti-border);
    border-radius: var(--ti-radius-lg);
    box-shadow: var(--ti-shadow);
}

.threat-badge-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.threat-pill {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.threat-pill-live {
    background: rgba(16, 185, 129, 0.15);
    color: var(--ti-accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.threat-pill-tlp {
    background: rgba(56, 189, 248, 0.12);
    color: var(--ti-accent-blue);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.threat-pill-id {
    background: rgba(148, 163, 184, 0.1);
    color: var(--ti-text-secondary);
    border: 1px solid var(--ti-border);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: var(--ti-accent-emerald);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--ti-accent-emerald);
    animation: ti-pulse 2s infinite;
}

@keyframes ti-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.threat-hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0.5rem 0 0.85rem 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-kicker {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--ti-accent-cyan);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    background: rgba(0, 255, 204, 0.08);
    padding: 0.25rem 0.75rem;
    border-radius: var(--ti-radius-sm);
    border: 1px solid rgba(0, 255, 204, 0.25);
}

.threat-hero-dek {
    font-size: 1.18rem;
    font-weight: 400;
    color: #cbd5e1;
    max-width: 860px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.6;
}

.hero-quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    background: #030712;
    border: 1px solid var(--ti-border);
    border-radius: var(--ti-radius-md);
    padding: 1.25rem;
    margin: 1.75rem 0 1rem 0;
    text-align: left;
}

.fact-item {
    display: flex;
    flex-direction: column;
}

.fact-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ti-text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.fact-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.fact-value.text-rose {
    color: var(--ti-accent-rose);
}

.fact-value.text-cyan {
    color: var(--ti-accent-cyan);
}

.fact-value.text-amber {
    color: var(--ti-accent-amber);
}

.threat-hero-subtitle {
    font-size: 1.15rem;
    color: var(--ti-text-secondary);
    max-width: 780px;
    margin: 0 auto;
}

/* Notice & Disclaimer Banner */
.threat-notice-banner {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-left: 5px solid var(--ti-accent-amber);
    padding: 1.5rem;
    border-radius: var(--ti-radius-md);
    margin-bottom: 3.5rem;
}

.notice-icon {
    font-size: 1.75rem;
    color: var(--ti-accent-amber);
    line-height: 1;
}

.notice-content h4 {
    margin: 0 0 0.4rem 0;
    color: var(--ti-accent-amber);
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.notice-content p {
    margin: 0;
    color: var(--ti-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Telemetry Metrics Grid */
.threat-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.metric-card {
    background: var(--ti-bg-surface);
    border: 1px solid var(--ti-border);
    padding: 1.5rem;
    border-radius: var(--ti-radius-md);
    display: flex;
    flex-direction: column;
    box-shadow: var(--ti-shadow);
}

.metric-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ti-text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.metric-value.status-disabled {
    color: var(--ti-accent-cyan);
}

.metric-value.status-high {
    color: var(--ti-accent-rose);
}

.metric-value.status-restored {
    color: var(--ti-accent-emerald);
}

.metric-sub {
    font-size: 0.85rem;
    color: var(--ti-text-secondary);
}

/* Section Headings */
.threat-section-heading {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.75rem;
    letter-spacing: -0.02em;
    border-bottom: 1px solid var(--ti-border);
    padding-bottom: 0.75rem;
}

/* Dossier Cards Grid */
.threat-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
    margin-bottom: 4rem;
}

.threat-card {
    background: var(--ti-bg-card);
    border: 1px solid var(--ti-border);
    border-radius: var(--ti-radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--ti-shadow);
}

.threat-card:hover {
    transform: translateY(-4px);
    background: var(--ti-bg-card-hover);
    border-color: var(--ti-accent-cyan);
    box-shadow: var(--ti-glow-cyan);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ti-accent-cyan);
    letter-spacing: 0.08em;
}

.card-status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(56, 189, 248, 0.15);
    color: var(--ti-accent-blue);
    padding: 0.2rem 0.5rem;
    border-radius: var(--ti-radius-sm);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.card-desc {
    color: var(--ti-text-secondary);
    font-size: 0.95rem;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--ti-text-muted);
    border-top: 1px solid var(--ti-border);
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.threat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 255, 204, 0.1);
    color: var(--ti-accent-cyan);
    border: 1px solid var(--ti-accent-cyan);
    border-radius: var(--ti-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.threat-btn:hover {
    background: var(--ti-accent-cyan);
    color: #080c14;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.4);
}

/* Detail Dossier Content Panels */
.threat-content-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.analysis-panel {
    background: var(--ti-bg-surface);
    border: 1px solid var(--ti-border);
    border-radius: var(--ti-radius-md);
    padding: 2.25rem;
    box-shadow: var(--ti-shadow);
}

.analysis-panel h3 {
    color: #ffffff;
    font-size: 1.35rem;
    margin: 0 0 1.25rem 0;
    border-bottom: 1px solid var(--ti-border);
    padding-bottom: 0.6rem;
}

.analysis-panel p {
    color: var(--ti-text-secondary);
    margin-bottom: 1.25rem;
}

.threat-bullet-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.threat-bullet-points li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 1rem;
    color: var(--ti-text-secondary);
}

.threat-bullet-points li::before {
    content: "►";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--ti-accent-cyan);
    font-size: 0.85rem;
}

.threat-bullet-points li strong {
    color: #ffffff;
}

/* Step Cards */
.step-card {
    background: var(--ti-bg-card);
    border: 1px solid var(--ti-border);
    border-radius: var(--ti-radius-sm);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.step-badge {
    font-size: 0.7rem;
    font-weight: 800;
    background: var(--ti-accent-blue);
    color: #080c14;
    padding: 0.2rem 0.5rem;
    border-radius: var(--ti-radius-sm);
    display: inline-block;
    margin-bottom: 0.5rem;
}

.step-card h4 {
    margin: 0 0 0.5rem 0;
    color: #ffffff;
}

.step-card p {
    margin: 0;
    color: var(--ti-text-secondary);
    font-size: 0.95rem;
}

/* Tables - Responsive Horizontal Scroll & Column Integrity */
.threat-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.75rem 0;
    border: 1px solid var(--ti-border);
    border-radius: var(--ti-radius-md);
    background: #060a12;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
    scrollbar-width: thin;
    scrollbar-color: var(--ti-border-bright) #080c14;
}

.threat-table-wrap::-webkit-scrollbar {
    height: 6px;
}

.threat-table-wrap::-webkit-scrollbar-track {
    background: #080c14;
}

.threat-table-wrap::-webkit-scrollbar-thumb {
    background: var(--ti-border-bright);
    border-radius: 3px;
}

.threat-table-wrap::-webkit-scrollbar-thumb:hover {
    background: var(--ti-accent-cyan);
}

.threat-table-wrap::before {
    content: "↔ Swipe horizontally to view full matrix";
    display: none;
    font-size: 0.72rem;
    font-family: monospace;
    font-weight: 600;
    color: var(--ti-accent-cyan);
    background: rgba(0, 255, 204, 0.08);
    border-bottom: 1px solid var(--ti-border);
    padding: 0.35rem 0.85rem;
    text-align: right;
    letter-spacing: 0.04em;
    transition: opacity 0.3s ease;
}

.threat-table-wrap.is-scrolled::before {
    opacity: 0.25;
}

.threat-table {
    width: 100%;
    min-width: 680px; /* Guarantees table columns do not collapse into 40px unreadable ribbons */
    border-collapse: collapse;
    font-size: 0.92rem;
    text-align: left;
}

.threat-table th {
    background: #0f192d;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--ti-border);
    white-space: nowrap;
}

.threat-table td {
    padding: 0.85rem 1.15rem;
    border-bottom: 1px solid var(--ti-border);
    color: var(--ti-text-secondary);
    line-height: 1.55;
    vertical-align: top;
}

.threat-table tr:last-child td {
    border-bottom: none;
}

.threat-table tr:hover td {
    background: rgba(0, 255, 204, 0.02);
}

/* Code Preview */
.code-block-preview {
    background: #030712;
    border: 1px solid var(--ti-border);
    border-radius: var(--ti-radius-sm);
    padding: 1rem 1.25rem;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85rem;
    color: var(--ti-accent-cyan);
    margin: 1rem 0;
    overflow-x: auto;
}

/* Reporting & External Resources Box */
.threat-intel-box {
    background: var(--ti-bg-surface);
    border: 1px solid var(--ti-border);
    border-radius: var(--ti-radius-md);
    padding: 2rem;
    box-shadow: var(--ti-shadow);
}

.threat-intel-box h3 {
    color: #ffffff;
    margin-top: 0;
}

.threat-intel-box p {
    color: var(--ti-text-secondary);
}

.threat-list {
    margin: 1rem 0 0 0;
    padding-left: 1.5rem;
    color: var(--ti-text-secondary);
}

.threat-list li {
    margin-bottom: 0.6rem;
}

.threat-list a {
    color: var(--ti-accent-cyan);
    text-decoration: underline;
}

/* FAQ Accordion Component */
.threat-faq-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.threat-faq-item {
    background: var(--ti-bg-card);
    border: 1px solid var(--ti-border);
    border-radius: var(--ti-radius-md);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.threat-faq-item[open] {
    border-color: var(--ti-accent-cyan);
}

.threat-faq-item summary {
    padding: 1.25rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.threat-faq-item summary::-webkit-details-marker {
    display: none;
}

.threat-faq-item summary::after {
    content: "＋";
    font-size: 1.2rem;
    color: var(--ti-accent-cyan);
    font-weight: 800;
    transition: transform 0.2s ease;
}

.threat-faq-item[open] summary::after {
    content: "－";
    color: var(--ti-accent-rose);
}

.threat-faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--ti-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.threat-faq-answer p {
    margin: 1rem 0 0 0;
}

/* Case Study / Victim Scenario Callout Box */
.case-study-box {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-left: 4px solid var(--ti-accent-blue);
    border-radius: var(--ti-radius-md);
    padding: 1.75rem;
    margin: 1.5rem 0;
}

.case-study-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.case-study-badge {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(56, 189, 248, 0.2);
    color: var(--ti-accent-blue);
    padding: 0.25rem 0.6rem;
    border-radius: var(--ti-radius-sm);
    letter-spacing: 0.05em;
}

.case-study-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.case-study-box p {
    color: var(--ti-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0.5rem 0 0 0;
}

/* Keyword & Resource Tags */
.keyword-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0;
}

.keyword-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ti-text-muted);
    background: #0b1120;
    border: 1px solid var(--ti-border);
    padding: 0.25rem 0.65rem;
    border-radius: var(--ti-radius-sm);
}

/* Authority Links Grid */
.authority-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.authority-link-card {
    background: var(--ti-bg-surface);
    border: 1px solid var(--ti-border);
    border-radius: var(--ti-radius-sm);
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.2s ease;
}

.authority-link-card:hover {
    border-color: var(--ti-accent-cyan);
    transform: translateY(-2px);
}

.authority-link-card .auth-name {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.authority-link-card .auth-url {
    color: var(--ti-accent-cyan);
    font-size: 0.8rem;
    font-family: monospace;
}

/* ==========================================================================
   GLOBAL CYBER HEADER & NAVIGATION BAR
   ========================================================================== */

.ti-header-wrapper {
    width: 100%;
    background-color: var(--ti-bg-deep);
    border-bottom: 1px solid var(--ti-border);
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Top Telemetry & Classification Ribbon */
.ti-header-topbar {
    background: #040711;
    border-bottom: 1px solid rgba(30, 41, 59, 0.7);
    padding: 0.35rem 1.5rem;
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
    color: var(--ti-text-muted);
}

.ti-topbar-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.ti-topbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ti-top-indicator {
    color: var(--ti-accent-emerald);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    letter-spacing: 0.05em;
}

.ti-top-sep {
    color: #334155;
}

.ti-top-tlp {
    color: var(--ti-accent-blue);
    font-weight: 600;
}

.ti-top-node {
    color: var(--ti-text-secondary);
}

.ti-topbar-center {
    display: flex;
    align-items: center;
    color: #cbd5e1;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
}

.ti-pulse-icon {
    color: var(--ti-accent-amber);
    margin-right: 0.35rem;
}

.ti-topbar-right {
    display: flex;
    align-items: center;
}

.ti-top-status {
    color: var(--ti-accent-cyan);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Primary Navbar */
.ti-main-navbar {
    background: rgba(11, 17, 32, 0.95);
    padding: 0.85rem 1.5rem;
}

.ti-navbar-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Brand Identity */
.ti-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--ti-text-primary);
    flex-shrink: 0;
}

.ti-brand-shield {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 8px rgba(0, 255, 204, 0.35));
    transition: transform 0.25s ease;
}

.ti-brand:hover .ti-brand-shield {
    transform: scale(1.06);
}

.ti-shield-svg {
    width: 100%;
    height: 100%;
}

.ti-brand-meta {
    display: flex;
    flex-direction: column;
}

.ti-brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: #ffffff;
    line-height: 1.2;
}

.ti-brand-accent {
    color: var(--ti-accent-cyan);
    font-weight: 900;
}

.ti-brand-desc {
    font-size: 0.72rem;
    color: var(--ti-text-muted);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Desktop Nav Items */
.ti-nav-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ti-nav-item {
    text-decoration: none;
    color: var(--ti-text-secondary);
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.5rem 0.85rem;
    border-radius: var(--ti-radius-sm);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.ti-nav-num {
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--ti-accent-cyan);
    opacity: 0.8;
}

.ti-nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.ti-nav-item.active {
    color: var(--ti-accent-cyan);
    background: rgba(0, 255, 204, 0.08);
    border-color: rgba(0, 255, 204, 0.3);
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.15);
}

/* Nav Actions */
.ti-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.ti-btn-triage {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(244, 63, 94, 0.05));
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fda4af;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.45rem 0.85rem;
    border-radius: var(--ti-radius-sm);
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.ti-btn-triage:hover {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.3), rgba(244, 63, 94, 0.15));
    border-color: var(--ti-accent-rose);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.35);
    transform: translateY(-1px);
}

/* Mobile Toggle Hamburger */
.ti-mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--ti-border);
    border-radius: var(--ti-radius-sm);
    padding: 0.45rem;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 36px;
    height: 36px;
    box-sizing: border-box;
}

.ti-toggle-bar {
    width: 100%;
    height: 2px;
    background-color: var(--ti-text-primary);
    border-radius: 2px;
    transition: all 0.25s ease;
}

.ti-mobile-toggle.active .ti-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.ti-mobile-toggle.active .ti-toggle-bar:nth-child(2) {
    opacity: 0;
}

.ti-mobile-toggle.active .ti-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.ti-mobile-drawer {
    display: none;
    max-height: 0;
    overflow: hidden;
    background: #080d1a;
    border-top: 1px solid var(--ti-border);
    transition: max-height 0.35s ease-in-out;
}

.ti-mobile-drawer.active {
    max-height: 520px;
}

.ti-mobile-drawer-inner {
    padding: 1.25rem 1.5rem 1.75rem 1.5rem;
}

.ti-mobile-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ti-text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ti-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ti-mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--ti-border);
    border-radius: var(--ti-radius-sm);
    color: var(--ti-text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ti-mobile-link:hover, .ti-mobile-link.active {
    background: rgba(0, 255, 204, 0.08);
    border-color: var(--ti-accent-cyan);
    color: #ffffff;
}

.ti-mobile-link .ti-tag, .ti-mobile-link .ti-tag-threat {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.ti-mobile-link .ti-tag {
    background: rgba(56, 189, 248, 0.15);
    color: var(--ti-accent-blue);
}

.ti-mobile-link .ti-tag-threat {
    background: rgba(244, 63, 94, 0.15);
    color: #fda4af;
}

.ti-btn-triage-mobile {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.2), rgba(244, 63, 94, 0.1));
    border: 1px solid var(--ti-accent-rose);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: var(--ti-radius-sm);
    text-decoration: none;
}

/* ==========================================================================
   GLOBAL CYBER FOOTER & REPOSITORY COMPLIANCE
   ========================================================================== */

.ti-footer-wrapper {
    width: 100%;
    background-color: #050811;
    color: var(--ti-text-secondary);
    border-top: 1px solid var(--ti-border);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    margin-top: 4rem;
}

/* Telemetry Status Ticker */
.ti-footer-ticker {
    background: #02050b;
    border-bottom: 1px solid rgba(30, 41, 59, 0.6);
    padding: 0.65rem 1.5rem;
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--ti-text-muted);
}

.ti-ticker-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    white-space: nowrap;
}

.ti-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ti-ticker-item strong {
    color: var(--ti-accent-cyan);
}

.ti-ticker-sep {
    color: #334155;
    font-size: 0.6rem;
}

/* Main 4-Column Footer */
.ti-footer-main {
    padding: 4rem 1.5rem 3rem 1.5rem;
    border-bottom: 1px solid var(--ti-border);
}

.ti-footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
}

.ti-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ti-brand-shield-sm {
    width: 30px;
    height: 30px;
}

.ti-shield-svg-sm {
    width: 100%;
    height: 100%;
}

.ti-footer-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.04em;
}

.ti-footer-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--ti-text-muted);
    margin-bottom: 1.25rem;
}

.ti-cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ti-cert-badge {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--ti-border);
    font-size: 0.68rem;
    font-family: monospace;
    font-weight: 600;
    color: var(--ti-accent-blue);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

.ti-footer-heading {
    font-size: 0.82rem;
    font-family: monospace;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ti-heading-prefix {
    color: var(--ti-accent-cyan);
}

.ti-footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ti-footer-nav li a {
    text-decoration: none;
    color: var(--ti-text-secondary);
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.ti-footer-nav li a:hover {
    color: var(--ti-accent-cyan);
    transform: translateX(3px);
}

.ti-vector-code {
    font-family: monospace;
    font-size: 0.72rem;
    background: rgba(244, 63, 94, 0.12);
    color: #fda4af;
    border: 1px solid rgba(244, 63, 94, 0.3);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    margin-right: 0.4rem;
}

.ti-footer-subtext {
    font-size: 0.8rem;
    color: var(--ti-text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.ti-footer-authorities {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ti-auth-link {
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--ti-border);
    padding: 0.65rem 0.85rem;
    border-radius: var(--ti-radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.ti-auth-link:hover {
    border-color: var(--ti-accent-rose);
    background: rgba(244, 63, 94, 0.06);
    transform: translateY(-1px);
}

.ti-auth-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #ffffff;
}

.ti-auth-desc {
    font-size: 0.72rem;
    color: var(--ti-text-muted);
}

/* Bottom Legal & Disclaimer Bar */
.ti-footer-bottom {
    background: #020409;
    padding: 2rem 1.5rem;
}

.ti-bottom-container {
    max-width: 1300px;
    margin: 0 auto;
}

.ti-disclaimer-box {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(30, 41, 59, 0.6);
    border-left: 3px solid var(--ti-accent-amber);
    padding: 1rem 1.25rem;
    border-radius: var(--ti-radius-sm);
    margin-bottom: 1.5rem;
}

.ti-disclaimer-text {
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.6;
    color: #94a3b8;
}

.ti-disclaimer-text strong {
    color: var(--ti-accent-amber);
}

.ti-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--ti-text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}

.ti-back-btn {
    text-decoration: none;
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ti-accent-cyan);
    background: rgba(0, 255, 204, 0.08);
    border: 1px solid rgba(0, 255, 204, 0.25);
    padding: 0.4rem 0.85rem;
    border-radius: var(--ti-radius-sm);
    transition: all 0.2s ease;
}

.ti-back-btn:hover {
    background: rgba(0, 255, 204, 0.18);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.25);
    color: #ffffff;
}

/* ==========================================================================
   EXHAUSTIVE MOBILE & TABLET RESPONSIVE DESIGN SYSTEM
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LAPTOPS & SMALL DESKTOPS (<= 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .ti-nav-item {
        padding: 0.45rem 0.65rem;
        font-size: 0.82rem;
    }
    .ti-nav-item span.ti-nav-num {
        display: none;
    }
    .ti-footer-container {
        grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
        gap: 2rem;
    }
}

/* --------------------------------------------------------------------------
   2. TABLETS IN LANDSCAPE & PORTRAIT (<= 992px)
      (iPad 10th Gen 820px, iPad Air, iPad Mini 768px, iPad Pro 834px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    /* Primary Navigation switches seamlessly to Mobile Drawer on Tablet */
    .ti-nav-links {
        display: none !important;
    }
    .ti-mobile-toggle {
        display: flex !important;
    }
    .ti-mobile-drawer {
        display: block;
    }

    /* Top Telemetry ribbon adjustments */
    .ti-topbar-center {
        display: none !important;
    }
    .ti-header-topbar {
        padding: 0.35rem 1.25rem;
    }

    /* Container Spacing */
    .threat-intel-wrapper {
        padding: 2.25rem 1.25rem 3.5rem 1.25rem;
    }

    /* Hero Section */
    .threat-hero {
        padding: 2.5rem 1.5rem;
        margin-bottom: 2.5rem;
    }
    .threat-hero-title {
        font-size: clamp(2rem, 3.8vw + 0.5rem, 2.5rem);
    }
    .threat-hero-dek {
        font-size: 1.05rem;
    }

    /* 2x2 Balanced Hero Quick Facts Grid */
    .hero-quick-facts {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.15rem;
        padding: 1.25rem;
    }

    /* 2x2 Symmetrical Telemetry Metrics Grid */
    .threat-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.15rem;
        margin-bottom: 2.5rem;
    }

    /* 2-Column Dossier Cards Grid */
    .threat-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
        margin-bottom: 3rem;
    }

    /* Display horizontal scroll hint on tables */
    .threat-table-wrap::before {
        display: block;
    }

    /* Content Panels */
    .analysis-panel {
        padding: 1.85rem 1.5rem;
    }
    .analysis-panel h3 {
        font-size: 1.28rem;
    }

    /* 2-Column Authority Links */
    .authority-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }

    /* Footer: 2x2 Grid */
    .ti-footer-main {
        padding: 3rem 1.25rem 2.25rem 1.25rem;
    }
    .ti-footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.25rem;
    }
}

/* --------------------------------------------------------------------------
   3. SMALL TABLETS & LARGE MOBILE PHONES (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .threat-intel-wrapper {
        padding: 1.75rem 1rem 3rem 1rem;
    }

    .threat-hero {
        padding: 2rem 1.25rem;
        margin-bottom: 2.25rem;
        border-radius: var(--ti-radius-md);
    }

    .threat-hero-title {
        font-size: clamp(1.75rem, 4.2vw + 0.4rem, 2.15rem);
        line-height: 1.22;
    }

    .threat-hero-dek {
        font-size: 1rem;
        line-height: 1.6;
    }

    .threat-section-heading {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.5rem;
    }

    .threat-notice-banner {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.25rem 1rem;
        margin-bottom: 2.25rem;
    }

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

    /* Cards become single column with comfortable margins */
    .threat-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .threat-card {
        padding: 1.5rem 1.25rem;
    }

    .analysis-panel {
        padding: 1.5rem 1.2rem;
    }

    .step-card {
        padding: 1.15rem 1rem;
    }

    .case-study-box {
        padding: 1.35rem 1.15rem;
    }

    .threat-intel-box {
        padding: 1.5rem 1.25rem;
    }

    .authority-links-grid {
        grid-template-columns: 1fr;
    }

    /* Footer collapses to single column */
    .ti-footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ti-bottom-row {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        align-items: center;
    }
}

/* --------------------------------------------------------------------------
   4. STANDARD SMARTPHONES (<= 540px)
      (iPhone 12/13/14/15/16 Pro, Galaxy S21/S22/S23/S24, Pixel 7/8)
   -------------------------------------------------------------------------- */
@media (max-width: 540px) {
    /* Topbar Streamlining */
    .ti-header-topbar {
        padding: 0.3rem 0.85rem;
        font-size: 0.68rem;
    }
    .ti-topbar-right {
        display: none !important;
    }
    .ti-top-node {
        display: none !important;
    }
    .ti-top-sep:last-of-type {
        display: none !important;
    }

    /* Main Navbar */
    .ti-main-navbar {
        padding: 0.65rem 0.85rem;
    }
    .ti-navbar-inner {
        gap: 0.75rem;
    }
    .ti-brand {
        gap: 0.6rem;
    }
    .ti-brand-shield {
        width: 32px;
        height: 32px;
    }
    .ti-brand-title {
        font-size: 0.96rem;
        letter-spacing: 0.02em;
    }
    .ti-brand-desc {
        display: none !important;
    }
    .ti-btn-triage {
        padding: 0.4rem 0.65rem;
        font-size: 0.72rem;
    }
    .ti-btn-triage .ti-triage-text {
        display: none !important;
    }

    /* Mobile Drawer */
    .ti-mobile-drawer.active {
        max-height: calc(100dvh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .ti-mobile-drawer-inner {
        padding: 1rem 0.85rem 1.5rem 0.85rem;
    }
    .ti-mobile-link {
        padding: 0.65rem 0.85rem;
        font-size: 0.85rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    .ti-mobile-link .ti-link-text {
        flex: 1 1 auto;
    }
    .ti-btn-triage-mobile {
        font-size: 0.8rem;
        padding: 0.65rem 0.85rem;
    }

    /* Container */
    .threat-intel-wrapper {
        padding: 1.25rem 0.75rem 2.5rem 0.75rem;
    }

    /* Hero */
    .threat-hero {
        padding: 1.5rem 0.85rem;
        margin-bottom: 1.75rem;
    }
    .threat-hero-title {
        font-size: 1.62rem;
        line-height: 1.25;
        letter-spacing: -0.01em;
    }
    .hero-kicker {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    .threat-hero-dek {
        font-size: 0.94rem;
        margin-bottom: 1.25rem;
    }
    .threat-badge-row {
        gap: 0.35rem;
        margin-bottom: 1rem;
    }
    .threat-pill {
        font-size: 0.68rem;
        padding: 0.25rem 0.6rem;
    }

    /* Hero Quick Facts single-column stack */
    .hero-quick-facts {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        padding: 0.95rem;
        margin: 1.25rem 0 0.75rem 0;
    }
    .fact-label {
        font-size: 0.66rem;
    }
    .fact-value {
        font-size: 0.9rem;
    }

    /* Metrics Grid single column */
    .threat-metrics-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        margin-bottom: 2rem;
    }
    .metric-card {
        padding: 1.15rem 1rem;
    }
    .metric-value {
        font-size: 1.35rem;
    }
    .metric-sub {
        font-size: 0.8rem;
    }

    /* Section Headings */
    .threat-section-heading {
        font-size: 1.35rem;
        margin-bottom: 1.15rem;
    }

    /* Cards */
    .threat-card {
        padding: 1.25rem 1rem;
    }
    .card-title {
        font-size: 1.2rem;
    }
    .card-desc {
        font-size: 0.9rem;
        margin-bottom: 1.15rem;
    }
    .card-meta {
        flex-direction: column;
        gap: 0.35rem;
        margin-bottom: 1.15rem;
        padding-top: 0.75rem;
    }

    /* Analysis Panels */
    .analysis-panel {
        padding: 1.2rem 0.85rem;
        border-radius: var(--ti-radius-sm);
    }
    .analysis-panel h3 {
        font-size: 1.15rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        line-height: 1.35;
    }
    .analysis-panel p {
        font-size: 0.92rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    .threat-bullet-points li {
        padding-left: 1.35rem;
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        line-height: 1.55;
    }
    .threat-bullet-points li::before {
        font-size: 0.75rem;
    }

    /* Step Cards */
    .step-card {
        padding: 1rem 0.85rem;
    }
    .step-card h4 {
        font-size: 0.96rem;
    }
    .step-card p {
        font-size: 0.88rem;
    }

    /* Case Study Boxes */
    .case-study-box {
        padding: 1.15rem 0.85rem;
        margin: 1.25rem 0;
    }
    .case-study-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    .case-study-title {
        font-size: 1.05rem;
    }
    .case-study-box p {
        font-size: 0.88rem;
    }

    /* Reporting Box */
    .threat-intel-box {
        padding: 1.25rem 0.95rem;
    }
    .threat-list {
        padding-left: 1.2rem;
        font-size: 0.9rem;
    }

    /* FAQ Accordion */
    .threat-faq-group {
        gap: 0.75rem;
    }
    .threat-faq-item summary {
        padding: 0.95rem 1rem;
        font-size: 0.92rem;
        line-height: 1.4;
    }
    .threat-faq-item summary::after {
        font-size: 1.1rem;
        flex-shrink: 0;
        margin-left: 0.5rem;
    }
    .threat-faq-answer {
        padding: 0 1rem 1rem 1rem;
        font-size: 0.88rem;
        line-height: 1.6;
    }

    /* Code Blocks */
    .code-block-preview {
        padding: 0.75rem 0.85rem;
        font-size: 0.76rem;
        margin: 0.75rem 0;
    }

    /* Authority Links */
    .authority-link-card {
        padding: 0.85rem 1rem;
    }
    .authority-link-card .auth-name {
        font-size: 0.88rem;
    }
    .authority-link-card .auth-url {
        font-size: 0.74rem;
        word-break: break-all;
    }

    /* Footer */
    .ti-footer-main {
        padding: 2.25rem 0.85rem 1.5rem 0.85rem;
    }
    .ti-footer-title {
        font-size: 1rem;
    }
    .ti-footer-desc {
        font-size: 0.8rem;
    }
    .ti-footer-heading {
        font-size: 0.78rem;
        margin-bottom: 0.85rem;
    }
    .ti-footer-nav li a {
        font-size: 0.82rem;
    }
    .ti-auth-name {
        font-size: 0.8rem;
    }
    .ti-auth-desc {
        font-size: 0.68rem;
    }
    .ti-footer-bottom {
        padding: 1.5rem 0.85rem;
    }
    .ti-disclaimer-box {
        padding: 0.85rem 1rem;
    }
    .ti-disclaimer-text {
        font-size: 0.7rem;
    }
    .ti-back-btn {
        width: 100%;
        text-align: center;
        padding: 0.55rem 1rem;
    }
}

/* --------------------------------------------------------------------------
   5. COMPACT SMARTPHONES (<= 380px)
      (iPhone SE 1st/2nd/3rd Gen, Galaxy Z Fold Cover screen, small devices)
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
    .ti-topbar-left {
        font-size: 0.63rem;
    }
    .ti-brand-title {
        font-size: 0.88rem;
    }
    .threat-hero-title {
        font-size: 1.45rem;
    }
    .threat-pill {
        font-size: 0.62rem;
        padding: 0.2rem 0.45rem;
    }
    .threat-table {
        min-width: 600px;
    }
    .threat-card {
        padding: 1.15rem 0.85rem;
    }
    .analysis-panel {
        padding: 1rem 0.75rem;
    }
}



