/* Vetted Blog — Shared Article Stylesheet
   ========================================
   Canonical CSS for all blog articles under content/blog/.
   Deployed to /blog/article.css via deploy-blog.sh.
   Do NOT duplicate these styles inline — link to this file instead. */

@font-face {
    font-family: "Secular";
    src: url("/assets/secular.ttf") format("truetype");
    font-display: swap;
}

:root {
    --bg: #141415;
    --surface: #1f2937;
    --border: #374151;
    --text: #d1d5db;
    --text-bright: #f9fafb;
    --accent: #f9a61d;
    --link: #60a5fa;
    --font: "Secular", "Arial Hebrew", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: clamp(17px, 4vw, 20px);
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.8;
}

a {
    color: var(--link);
}

/* ── Layout ─────────────────────────────── */

.article-body {
    max-width: 42rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
}

/* ── Meta row ───────────────────────────── */

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

.article-category {
    background-color: var(--accent);
    color: #000;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 0.35rem;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}

/* ── Title row + logo ───────────────────── */

.article-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.article-title-row h1 {
    margin: 0;
    flex: 1;
}

.site-header-logo {
    height: 6rem;
    width: auto;
    flex-shrink: 0;
}

.article-author {
    color: #9ca3af;
    font-size: 1rem;
    margin-bottom: 1.75rem;
}

/* ── Typography ─────────────────────────── */

h1 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 900;
    color: var(--text-bright);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 0.75rem;
    color: var(--accent);
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
    color: var(--text-bright);
}

p {
    margin-bottom: 1rem;
}

strong {
    color: var(--text-bright);
}

ul,
ol {
    padding-right: 1.4rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.4rem;
}

/* ── Lead paragraph ─────────────────────── */

.article-lead {
    font-size: 1.05rem;
    color: var(--text-bright);
    line-height: 1.9;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

/* ── Hero image ─────────────────────────── */

.article-hero-image {
    width: 100%;
    height: 17rem;
    object-fit: cover;
    border-radius: 0.75rem;
    display: block;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

/* ── Table of Contents ──────────────────── */

.toc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.toc-title {
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.toc ol {
    margin: 0;
    padding-right: 1.25rem;
}

.toc li {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

/* ── Data table ─────────────────────────── */

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0 1.75rem;
    font-size: 0.9rem;
}

.data-table th {
    background: var(--surface);
    color: var(--text-bright);
    padding: 0.6rem 0.85rem;
    text-align: right;
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
}

.data-table td {
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

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

.data-table tr:nth-child(even) td {
    background: #191a1f;
}

/* ── Callout ────────────────────────────── */

.callout {
    background-color: #1a2535;
    border: 1px solid #2d4a6e;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin: 1.5rem 0;
}

.callout-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.callout p {
    margin: 0;
    font-size: 0.95rem;
}

.callout.warning {
    border-color: #ef4444;
    background-color: #1f0f0f;
}

/* ── CTA callout ────────────────────────── */

.callout-cta {
    background: linear-gradient(135deg, #1a2535 0%, #1f2937 100%);
    border: 1.5px solid var(--accent);
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 2.5rem;
}

.callout-cta .callout-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.callout-cta p {
    margin: 0 0 0.4rem;
}

.callout-cta p:last-child {
    margin-bottom: 0;
}

/* ── FAQ accordion ──────────────────────── */

.faq-item {
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 0.6rem;
    background: var(--surface);
    transition: border-color 0.2s;
}

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

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-bright);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    user-select: none;
}

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

.faq-item summary::after {
    content: "";
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-right: 0.25rem;
}

.faq-item[open] summary::after {
    transform: rotate(-135deg);
}

.faq-a {
    color: var(--text);
    margin: 0;
    padding: 0.75rem 1.25rem 1.1rem;
    border-top: 1px solid var(--border);
    line-height: 1.7;
}

/* ── Checklist ──────────────────────────── */

.checklist {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.checklist li {
    padding-right: 1.75rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--accent);
    font-weight: 700;
}

.negative-checklist {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.negative-checklist li {
    padding-right: 1.75rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.negative-checklist li::before {
    content: "✗";
    position: absolute;
    right: 0;
    color: #d9534f;
    font-weight: 700;
}

/* ── Timeline ───────────────────────────── */

.timeline {
    border-right: 3px solid var(--accent);
    padding-right: 1.25rem;
    margin: 1.5rem 0;
}

.timeline-item {
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    right: -1.55rem;
    top: 0.45rem;
    width: 0.65rem;
    height: 0.65rem;
    background: var(--accent);
    border-radius: 50%;
}

.timeline-label {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

/* ── Disclaimer ─────────────────────────── */

.disclaimer {
    margin-top: 3rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.6;
}

.disclaimer strong {
    color: #9ca3af;
}

/* ── Navigation buttons ─────────────────── */

.article-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.article-nav-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e5e7eb;
    padding: 0.2rem 0.65rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font);
    transition: all 0.2s ease;
    text-decoration: none;
    margin-inline-start: auto;
}

.article-nav-btn + .article-nav-btn {
    margin-inline-start: 0;
}

.article-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #e5e7eb;
}

/* ── Mobile ─────────────────────────────── */

@media (max-width: 600px) {
    html {
        font-size: 15px;
    }

    .article-body {
        padding: 1.5rem 1rem 4rem;
    }

    .article-title-row h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .site-header-logo {
        height: 4.5rem;
    }

    .article-hero-image {
        height: 12rem;
        border-radius: 0.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }

    .toc {
        font-size: 0.9rem;
    }

    .data-table {
        font-size: 0.82rem;
    }

    .callout-cta {
        flex-direction: column;
        gap: 0.5rem;
    }
}
