/* ================================================
   THE HONEY FILES - INVESTIGATIVE JOURNALISM DESIGN
   Less AI, more authentic reporting
   ================================================ */

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

:root {
    /* Authentic Journalism Colors - Less Saturated */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-tertiary: #6a6a6a;
    --accent-blue: #2c5282;
    --accent-red: #9b2c2c;
    --accent-yellow: #975a16;
    --bg-white: #ffffff;
    --bg-off-white: #fafafa;
    --bg-light-gray: #f5f5f5;
    --border-gray: #d4d4d4;
    --border-dark: #a0a0a0;

    /* Typography - Investigative Journalism Stack */
    --font-serif: 'Lora', 'Georgia', serif;
    --font-sans: 'Work Sans', 'Helvetica Neue', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

body {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings - Sans-serif for Impact */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: 3.5rem; font-weight: 900; }
h2 { font-size: 2.5rem; font-weight: 800; }
h3 { font-size: 1.8rem; font-weight: 700; }
h4 { font-size: 1.4rem; font-weight: 600; }

/* Links - Understated */
a {
    color: var(--accent-blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

a:hover {
    color: #1a365d;
}

/* Containers */
.content-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-wrapper-wide {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ================================================
   NAVIGATION - Clean, Minimal
   ================================================ */

.main-nav {
    position: sticky;
    top: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-gray);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-wrapper {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--text-primary);
}

/* ================================================
   HERO - Opening Statement
   ================================================ */

.investigation-hero {
    background: var(--bg-off-white);
    border-bottom: 3px solid var(--text-primary);
    padding: 5rem 0 4rem;
    margin-bottom: 3rem;
}

.hero-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-kicker {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-byline {
    display: flex;
    gap: 2rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-tertiary);
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-gray);
}

.byline-author {
    font-weight: 600;
    color: var(--text-secondary);
}

/* ================================================
   ARTICLE CONTENT - Readable Typography
   ================================================ */

.main-content {
    margin-bottom: 4rem;
}

.narrative-section,
.evidence-section,
.mechanism-section,
.revenue-section,
.sources-section {
    padding: 4rem 0;
}

.narrative-section {
    border-bottom: 1px solid var(--border-gray);
}

.evidence-section {
    background: var(--bg-light-gray);
    border-bottom: 1px solid var(--border-gray);
}

.mechanism-section {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-gray);
}

.revenue-section {
    background: var(--bg-off-white);
    border-bottom: 1px solid var(--border-gray);
}

.sources-section {
    background: var(--bg-white);
}

/* Section Headings */
.section-heading {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-align: center;
}

.section-intro {
    font-size: 1.3rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}

/* Paragraph Styles */
p {
    margin-bottom: 1.5rem;
}

.lead-paragraph {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

/* Lists */
.narrative-list {
    margin: 2rem 0 2rem 2rem;
}

.narrative-list li {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* ================================================
   KEY STATISTICS - Visual Impact
   ================================================ */

.key-stat-block {
    background: var(--bg-off-white);
    border-left: 4px solid var(--accent-red);
    padding: 2.5rem 2rem;
    margin: 3rem 0;
}

.stat-large {
    font-family: var(--font-sans);
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent-red);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-context {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.stats-grid-inline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 2.5rem;
    background: var(--bg-light-gray);
    border: 1px solid var(--border-gray);
}

.inline-stat {
    text-align: center;
}

.inline-stat-number {
    font-family: var(--font-sans);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.inline-stat-label {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================================
   PULLQUOTES - Editorial Style
   ================================================ */

.pullquote {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 3px solid var(--text-primary);
    border-bottom: 3px solid var(--text-primary);
}

.pullquote-mark {
    font-family: var(--font-serif);
    font-size: 6rem;
    line-height: 0.5;
    color: var(--border-dark);
    margin-bottom: 1rem;
}

.pullquote-text {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.5;
    font-style: italic;
    margin-bottom: 1rem;
}

.pullquote-attribution {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-tertiary);
}

/* ================================================
   EVIDENCE BLOCKS - Technical Documentation
   ================================================ */

.evidence-block {
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    padding: 3rem;
    margin-bottom: 3rem;
}

.evidence-block.highlight-block {
    background: #fffbeb;
    border: 2px solid var(--accent-yellow);
}

.evidence-block.smoking-gun {
    background: #fef2f2;
    border: 3px solid var(--accent-red);
}

.evidence-heading {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-dark);
}

/* Code Findings */
.code-finding {
    margin: 2.5rem 0;
    padding: 2rem;
    background: var(--bg-light-gray);
    border-left: 4px solid var(--accent-blue);
}

.code-finding h4 {
    font-family: var(--font-sans);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.code-snippet {
    margin: 1.5rem 0;
}

.code-snippet pre {
    background: #1a1a1a;
    color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
}

.code-snippet code {
    font-family: var(--font-mono);
}

.code-explanation {
    margin: 1rem 0;
    font-size: 1rem;
    line-height: 1.7;
}

.code-explanation strong {
    font-weight: 700;
    color: var(--text-primary);
}

.code-location {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-top: 0.75rem;
}

.code-location strong {
    font-weight: 600;
}

/* Detection Criteria */
.detection-criteria {
    background: var(--bg-white);
    border: 1px solid var(--border-dark);
    padding: 2rem;
    margin: 2rem 0;
}

.detection-criteria h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.criteria-list {
    list-style: none;
    margin-left: 0;
}

.criteria-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-gray);
}

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

.criteria-list strong {
    font-weight: 700;
    color: var(--text-primary);
}

/* Researcher Quote */
.researcher-quote {
    background: var(--bg-light-gray);
    border-left: 4px solid var(--accent-red);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.researcher-quote p {
    font-size: 1.1rem;
    font-style: italic;
    margin: 0;
}

.researcher-quote strong {
    font-weight: 700;
    font-style: normal;
}

/* Config Endpoints */
.config-endpoints {
    margin: 2rem 0;
}

.config-endpoints h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.evidence-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.evidence-table thead {
    background: var(--text-primary);
    color: var(--bg-white);
}

.evidence-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.evidence-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-gray);
}

.evidence-table code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: var(--bg-light-gray);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

.table-note {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Timeline Evidence */
.timeline-evidence {
    margin: 2rem 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-gray);
}

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

.timeline-item.highlight-item {
    background: #fffbeb;
    padding: 1.5rem;
    border: 2px solid var(--accent-yellow);
    border-radius: 4px;
}

.timeline-date {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--accent-blue);
}

.timeline-content h4 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.timeline-content p {
    margin-bottom: 0.75rem;
}

.timeline-content strong {
    font-weight: 700;
}

/* Admission Box */
.admission-box {
    background: #fef2f2;
    border: 3px solid var(--accent-red);
    padding: 2.5rem;
    margin: 2rem 0;
}

.admission-header {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
}

.admission-quote {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    border-left: 4px solid var(--accent-red);
    padding-left: 2rem;
    margin: 2rem 0;
}

.admission-analysis {
    font-size: 1rem;
    line-height: 1.7;
}

.admission-analysis strong {
    font-weight: 700;
}

/* Internal Docs */
.internal-docs {
    margin: 2rem 0;
}

.internal-docs h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.dev-note {
    background: var(--bg-light-gray);
    border-left: 4px solid var(--accent-yellow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.dev-note-text {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.dev-note-analysis {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Test Results */
.test-result {
    background: var(--bg-white);
    border: 1px solid var(--border-dark);
    padding: 2rem;
    margin: 2rem 0;
}

.test-result h4 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.test-details {
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.test-details p {
    margin-bottom: 0.75rem;
}

.test-details ul {
    margin: 1rem 0 1rem 1.5rem;
}

.test-details li {
    margin-bottom: 0.5rem;
}

.test-details strong {
    font-weight: 700;
    min-width: 180px;
    display: inline-block;
}

/* Legal Status */
.legal-status {
    font-family: var(--font-sans);
}

.legal-status h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.legal-status h5 {
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
}

.legal-status p {
    margin-bottom: 1rem;
}

.legal-status strong {
    font-weight: 700;
}

.legal-claims ul,
.evidence-submitted ul {
    margin: 1rem 0 1rem 1.5rem;
}

.legal-claims li,
.evidence-submitted li {
    margin-bottom: 0.75rem;
}

.legal-timeline {
    background: var(--bg-light-gray);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--accent-blue);
}

.legal-timeline p {
    margin-bottom: 0.75rem;
}

.legal-timeline p:last-child {
    margin-bottom: 0;
}

/* ================================================
   MECHANISM FLOW - Step-by-Step
   ================================================ */

.mechanism-flow {
    margin: 3rem 0;
}

.flow-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-gray);
}

.flow-step:last-child {
    border-bottom: none;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--accent-blue);
    color: var(--bg-white);
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step-content p {
    margin-bottom: 1rem;
}

.technical-detail {
    background: var(--bg-light-gray);
    border-left: 3px solid var(--accent-blue);
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.technical-detail strong {
    font-weight: 700;
}

.technical-detail code {
    font-family: var(--font-mono);
    background: #1a1a1a;
    color: #4ade80;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.9rem;
}

.technical-list {
    margin: 1rem 0 1rem 1.5rem;
}

.technical-list li {
    margin-bottom: 0.5rem;
}

.mechanism-note {
    background: #fffbeb;
    border: 2px solid var(--accent-yellow);
    padding: 2rem;
    margin: 3rem 0;
}

.mechanism-note p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.7;
}

.mechanism-note strong {
    font-weight: 700;
}

/* Visual Comparison */
.visual-comparison {
    margin: 3rem 0;
    padding: 3rem;
    background: var(--bg-light-gray);
    border: 1px solid var(--border-gray);
}

.visual-comparison h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.comparison-col {
    background: var(--bg-white);
    border: 2px solid var(--border-gray);
    padding: 2rem;
}

.comparison-col h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--text-primary);
}

.comparison-col ol {
    margin-left: 1.5rem;
}

.comparison-col li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* ================================================
   REVENUE ANALYSIS - Chart & Stats
   ================================================ */

.methodology-notice {
    background: #fffbeb;
    border: 2px solid var(--accent-yellow);
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.methodology-notice h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.methodology-notice p {
    margin: 0;
}

.chart-container {
    background: var(--bg-white);
    border: 2px solid var(--border-gray);
    padding: 3rem 2rem;
    margin: 3rem 0;
    height: 500px;
}

.revenue-totals {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.total-box {
    background: var(--bg-white);
    border: 2px solid var(--border-dark);
    padding: 2.5rem 2rem;
    text-align: center;
}

.total-box.conservative {
    border-color: #dc2626;
}

.total-box.moderate {
    border-color: var(--accent-blue);
}

.total-box.high {
    border-color: #d97706;
}

.total-label {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.total-value {
    font-family: var(--font-sans);
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.total-years {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.context-stats {
    background: var(--bg-light-gray);
    border: 1px solid var(--border-gray);
    padding: 3rem;
    margin: 3rem 0;
}

.context-stats h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.perspective-list {
    margin-left: 1.5rem;
}

.perspective-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.perspective-list strong {
    font-weight: 700;
}

.assumptions-box {
    background: var(--bg-white);
    border: 1px solid var(--border-dark);
    padding: 3rem;
    margin: 3rem 0;
}

.assumptions-box h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.assumptions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.assumption-item {
    background: var(--bg-light-gray);
    padding: 1.5rem;
    border-left: 3px solid var(--accent-blue);
}

.assumption-item h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.assumption-item ul {
    margin-left: 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.assumption-item li {
    margin-bottom: 0.5rem;
}

.assumption-item code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: #1a1a1a;
    color: #4ade80;
    padding: 0.75rem;
    display: block;
    border-radius: 3px;
    margin-top: 0.5rem;
}

/* ================================================
   SOURCES - Research Archive
   ================================================ */

.disclaimer-box {
    background: #fffbeb;
    border: 3px solid var(--accent-yellow);
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.disclaimer-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.sources-grid {
    display: grid;
    gap: 3rem;
    margin: 3rem 0;
}

.source-category {
    border-bottom: 2px solid var(--border-gray);
    padding-bottom: 2rem;
}

.source-category:last-child {
    border-bottom: none;
}

.source-category h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
}

.source-list {
    display: grid;
    gap: 2rem;
}

.source-item {
    background: var(--bg-off-white);
    border: 1px solid var(--border-gray);
    padding: 2rem;
}

.source-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.source-item p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.source-link {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 0.5rem;
}

.contribute-note {
    background: #e0f2fe;
    border: 2px solid var(--accent-blue);
    padding: 3rem;
    margin-top: 4rem;
    text-align: center;
}

.contribute-note h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* ================================================
   FOOTER
   ================================================ */

.site-footer {
    background: var(--text-primary);
    color: var(--bg-white);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
}

.footer-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--bg-white);
}

.footer-col p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

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

    .revenue-totals {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .content-wrapper,
    .content-wrapper-wide {
        padding: 0 1.5rem;
    }

    .nav-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-byline {
        flex-direction: column;
        gap: 0.5rem;
    }

    .section-heading {
        font-size: 2rem;
    }

    .lead-paragraph {
        font-size: 1.2rem;
    }

    .stat-large {
        font-size: 3rem;
    }

    .stats-grid-inline {
        grid-template-columns: 1fr;
    }

    .flow-step {
        grid-template-columns: 60px 1fr;
        gap: 1rem;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .chart-container {
        height: 350px;
        padding: 1.5rem 1rem;
    }

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

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .evidence-block,
    .code-finding,
    .test-result {
        padding: 1.5rem;
    }

    .pullquote-text {
        font-size: 1.3rem;
    }
}

/* ================================================
   ACCESSIBILITY
   ================================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states */
a:focus,
button:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --bg-white: #ffffff;
        --border-gray: #000000;
    }
}

/* ================================================
   TECHNICAL LEVEL MODAL
   ================================================ */

.tech-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.tech-modal-content {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 8px;
    max-width: 800px;
    text-align: center;
}

.tech-modal-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tech-modal-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.tech-level-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tech-btn {
    background: var(--bg-light-gray);
    border: 3px solid var(--border-gray);
    padding: 2rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

.tech-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.tech-btn.novice:hover {
    border-color: #10b981;
    background: #d1fae5;
}

.tech-btn.intermediate:hover {
    border-color: var(--accent-blue);
    background: #dbeafe;
}

.tech-btn.advanced:hover {
    border-color: #8b5cf6;
    background: #ede9fe;
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tech-btn h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.tech-btn p {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    margin: 0;
}

/* ================================================
   TIP SUBMISSION MODAL
   ================================================ */

.tip-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 2rem;
}

.tip-modal-content {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 8px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-tertiary);
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
}

.modal-close:hover {
    color: var(--text-primary);
}

.tip-modal-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.tip-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.security-notice {
    background: #fffbeb;
    border: 2px solid var(--accent-yellow);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.security-notice strong {
    color: var(--text-primary);
}

.tip-form {
    font-family: var(--font-sans);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-gray);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.drop-zone {
    border: 3px dashed var(--border-gray);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--bg-light-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.drop-zone:hover {
    border-color: var(--accent-blue);
    background: #dbeafe;
}

.drop-zone.drag-over {
    border-color: var(--accent-blue);
    background: #dbeafe;
    transform: scale(1.02);
}

.drop-zone-text {
    pointer-events: none;
}

.drop-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.drop-zone p {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.drop-zone small {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.file-list {
    margin-top: 1.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

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

.file-name {
    flex: 1;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.file-remove {
    background: var(--accent-red);
    color: var(--bg-white);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.file-remove:hover {
    background: #7f1d1d;
}

.legal-notice {
    background: #fef2f2;
    border: 2px solid var(--accent-red);
    padding: 1.25rem;
    margin: 1.5rem 0;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.legal-notice strong {
    color: var(--accent-red);
    font-weight: 700;
}

.mailto-notice {
    background: #fffbeb;
    border: 2px solid var(--accent-yellow);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
    font-size: 0.9rem;
}

.mailto-notice strong {
    color: var(--text-primary);
}

.form-group .required {
    color: var(--accent-red);
    font-weight: 700;
}

.submit-tip-btn {
    width: 100%;
    background: var(--accent-blue);
    color: var(--bg-white);
    border: none;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-tip-btn:hover {
    background: #1a365d;
}

.success-message {
    text-align: center;
    padding: 2rem;
}

.success-message h3 {
    color: #10b981;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success-message p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ================================================
   NAVIGATION BUTTONS
   ================================================ */

.nav-btn,
.nav-btn-small {
    background: var(--accent-blue);
    color: var(--bg-white);
    border: none;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-btn:hover,
.nav-btn-small:hover {
    background: #1a365d;
    transform: translateY(-1px);
}

.nav-btn-small {
    background: var(--bg-light-gray);
    color: var(--text-primary);
    border: 1px solid var(--border-gray);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.nav-btn-small:hover {
    background: var(--border-gray);
    transform: translateY(-1px);
}

/* ================================================
   CONTENT LEVEL VISIBILITY
   ================================================ */

.content-level {
    display: none;
}

.content-level[data-level] {
    /* Will be shown by JavaScript */
}

/* Level-specific styling */
body.level-novice .content-level[data-level="novice"] {
    background: #d1fae5;
    padding: 2rem;
    border-left: 5px solid #10b981;
    border-radius: 4px;
}

body.level-intermediate .content-level[data-level="intermediate"] {
    background: #dbeafe;
    padding: 2rem;
    border-left: 5px solid var(--accent-blue);
    border-radius: 4px;
}

body.level-advanced .content-level[data-level="advanced"] {
    background: #ede9fe;
    padding: 2rem;
    border-left: 5px solid #8b5cf6;
    border-radius: 4px;
}

/* Novice mode: bigger text, simpler layout */
body.level-novice {
    font-size: 20px;
}

body.level-novice .lead-paragraph {
    font-size: 1.6rem;
}

body.level-novice h3 {
    font-size: 2rem;
}

/* ================================================
   RESPONSIVE UPDATES
   ================================================ */

@media (max-width: 768px) {
    .tech-level-buttons {
        grid-template-columns: 1fr;
    }

    .tech-modal-content {
        padding: 2rem 1.5rem;
    }

    .tip-modal-content {
        padding: 2rem 1.5rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-btn,
    .nav-btn-small {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}
