/* =====================================================================
   ZIPT JOURNAL — editorial reading system
   Dark navy, calm, typography-first. Connected to the Zipt product,
   calmer than the dashboard. Loaded last so it wins the cascade.
   ===================================================================== */

.jz-home,
.jz-post {
    --jz-bg: #0a1128;
    --jz-bg-deep: #070d1f;
    --jz-surface: #0e1a33;
    --jz-surface-2: #12203f;
    --jz-border: rgba(148, 163, 184, 0.14);
    --jz-border-strong: rgba(0, 209, 255, 0.25);
    --jz-text: #e8edf7;
    --jz-text-soft: #c3cede;
    --jz-muted: #8fa0b8;
    --jz-muted-2: #64748b;
    --jz-cyan: #00d1ff;
    --jz-cyan-soft: rgba(0, 209, 255, 0.12);
    --jz-green: #34d399;
    --jz-radius: 14px;
    --jz-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --jz-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --jz-display: 'Sora', 'Inter', sans-serif;
    --jz-max-read: 68ch;
}

.jz-home,
.jz-post {
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(0, 209, 255, 0.05), transparent 60%),
        radial-gradient(900px 400px at -10% 20%, rgba(52, 211, 153, 0.04), transparent 55%),
        var(--jz-bg);
    color: var(--jz-text);
    font-family: var(--jz-sans);
    line-height: 1.6;
    min-height: 100vh;
}

/* ── Masthead ──────────────────────────────────────────────────────── */
.jz-masthead {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(7, 13, 31, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--jz-border);
}
.jz-masthead-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.jz-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: var(--jz-text);
    margin-right: auto;
}
.jz-brand-mark { filter: drop-shadow(0 0 8px rgba(0, 209, 255, 0.35)); }
.jz-brand-name {
    font-family: var(--jz-display);
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: -0.01em;
}
.jz-brand-name em {
    font-style: normal;
    color: var(--jz-cyan);
    font-weight: 600;
}
.jz-nav { display: flex; align-items: center; gap: 4px; }
.jz-nav-link {
    color: var(--jz-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 999px;
    transition: color 0.18s ease, background 0.18s ease;
}
.jz-nav-link:hover { color: var(--jz-text); background: rgba(148, 163, 184, 0.08); }
.jz-nav-link.is-active { color: var(--jz-cyan); background: var(--jz-cyan-soft); }
.jz-masthead-actions { display: flex; align-items: center; gap: 10px; }

/* ── Buttons ───────────────────────────────────────────────────────── */
.jz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    font-family: var(--jz-sans);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    color: var(--jz-text);
    background: transparent;
    line-height: 1.2;
}
.jz-btn:hover { transform: translateY(-1px); }
.jz-btn:focus-visible { outline: 2px solid var(--jz-cyan); outline-offset: 2px; }
.jz-btn-primary {
    background: var(--jz-cyan);
    color: #062033;
    box-shadow: 0 4px 18px rgba(0, 209, 255, 0.28);
}
.jz-btn-primary:hover { background: #3adaff; box-shadow: 0 6px 24px rgba(0, 209, 255, 0.38); }
.jz-btn-ghost { border-color: var(--jz-border); color: var(--jz-text-soft); }
.jz-btn-ghost:hover { border-color: var(--jz-border-strong); color: var(--jz-text); background: rgba(148, 163, 184, 0.06); }
.jz-btn-block { width: 100%; }

/* ── Home: editorial header ────────────────────────────────────────── */
.jz-home-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 24px 96px;
}
.jz-hero { padding: 8px 0 40px; max-width: 820px; }
.jz-hero-small { padding: 32px 0 24px; }
.jz-eyebrow {
    color: var(--jz-cyan);
    font-family: var(--jz-display);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.jz-eyebrow::before {
    content: '';
    width: 26px;
    height: 2px;
    background: var(--jz-cyan);
    border-radius: 2px;
}
.jz-hero h1 {
    font-family: var(--jz-display);
    font-size: clamp(2rem, 4.6vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.12;
    margin: 0 0 18px;
}
.jz-sub {
    color: var(--jz-muted);
    font-size: 1.08rem;
    max-width: 60ch;
    margin: 0;
}

/* ── Featured story ────────────────────────────────────────────────── */
.jz-featured {
    margin: 8px 0 36px;
    border: 1px solid var(--jz-border);
    border-radius: var(--jz-radius);
    background: linear-gradient(135deg, rgba(14, 26, 51, 0.9), rgba(10, 22, 45, 0.9));
    position: relative;
    overflow: hidden;
}
.jz-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(500px 200px at 90% 0%, rgba(0, 209, 255, 0.08), transparent 70%);
    pointer-events: none;
}
.jz-featured-link {
    display: block;
    padding: 34px 36px;
    text-decoration: none;
    color: inherit;
}
.jz-featured-link:hover .jz-featured-title { color: var(--jz-cyan); }
.jz-featured-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.jz-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--jz-cyan);
    background: var(--jz-cyan-soft);
    border: 1px solid var(--jz-border-strong);
    text-decoration: none;
    text-transform: uppercase;
}
.jz-featured-date, .jz-featured-read { color: var(--jz-muted-2); font-size: 0.84rem; }
.jz-featured-link h2 {
    font-family: var(--jz-display);
    font-size: clamp(1.5rem, 3vw, 2.05rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin: 0 0 12px;
    color: var(--jz-text);
    transition: color 0.18s ease;
}
.jz-featured-excerpt {
    color: var(--jz-text-soft);
    font-size: 1.02rem;
    line-height: 1.7;
    max-width: 70ch;
    margin: 0 0 20px;
}
.jz-read-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--jz-cyan);
    font-weight: 600;
    font-size: 0.94rem;
}
.jz-read-cta i { transition: transform 0.18s ease; }
.jz-featured-link:hover .jz-read-cta i { transform: translateX(4px); }

/* ── Topic filters ─────────────────────────────────────────────────── */
.jz-topics {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--jz-border);
}
.jz-topic {
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--jz-border);
    color: var(--jz-muted);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.18s ease;
    background: transparent;
}
.jz-topic:hover { color: var(--jz-text); border-color: var(--jz-border-strong); }
.jz-topic.is-active {
    color: #062033;
    background: var(--jz-cyan);
    border-color: var(--jz-cyan);
    font-weight: 600;
}

/* ── Home layout: latest + rail ────────────────────────────────────── */
.jz-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
    align-items: start;
}
.jz-section-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 22px;
}
.jz-section-head h2 {
    font-family: var(--jz-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}
.jz-count { color: var(--jz-muted-2); font-size: 0.85rem; }

/* Editorial list — NOT a card grid */
.jz-list { list-style: none; margin: 0; padding: 0; }
.jz-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 20px;
    padding: 26px 0;
    border-bottom: 1px solid var(--jz-border);
}
.jz-item:first-child { padding-top: 4px; }
.jz-item-index {
    font-family: var(--jz-display);
    color: var(--jz-muted-2);
    font-size: 0.95rem;
    font-weight: 600;
    padding-top: 3px;
}
.jz-item-body { min-width: 0; }
.jz-item-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
}
.jz-item-cat {
    color: var(--jz-cyan);
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
}
.jz-item-cat:hover { text-decoration: underline; }
.jz-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--jz-muted-2); }
.jz-item-read, .jz-item-date { color: var(--jz-muted-2); font-size: 0.82rem; }
.jz-item-title {
    font-family: var(--jz-display);
    font-size: 1.28rem;
    font-weight: 650;
    letter-spacing: -0.015em;
    line-height: 1.3;
    margin: 0 0 8px;
}
.jz-item-title a { color: var(--jz-text); text-decoration: none; }
.jz-item-title a:hover { color: var(--jz-cyan); }
.jz-item-excerpt {
    color: var(--jz-text-soft);
    font-size: 0.96rem;
    line-height: 1.65;
    margin: 0 0 14px;
    max-width: 70ch;
}
.jz-item-foot {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* ── Save button ───────────────────────────────────────────────────── */
.jz-save {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid var(--jz-border);
    background: transparent;
    color: var(--jz-muted);
    font-family: var(--jz-sans);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
}
.jz-save:hover { color: var(--jz-text); border-color: var(--jz-border-strong); }
.jz-save i { font-size: 0.8rem; }
.jz-save.is-saved, .jz-save[aria-pressed="true"] {
    color: var(--jz-cyan);
    border-color: var(--jz-border-strong);
    background: var(--jz-cyan-soft);
}
.jz-save-lg { padding: 8px 18px; font-size: 0.88rem; }
.jz-save:focus-visible { outline: 2px solid var(--jz-cyan); outline-offset: 2px; }

/* ── Rail: popular + request ───────────────────────────────────────── */
.jz-rail { display: flex; flex-direction: column; gap: 32px; position: sticky; top: 80px; }
.jz-popular h2 {
    font-family: var(--jz-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    color: var(--jz-text);
}
.jz-popular-list { list-style: none; margin: 0; padding: 0; counter-reset: jzpop; }
.jz-popular-list li { counter-increment: jzpop; }
.jz-popular-list a {
    display: block;
    padding: 13px 0 13px 30px;
    position: relative;
    text-decoration: none;
    border-bottom: 1px solid var(--jz-border);
}
.jz-popular-list a::before {
    content: counter(jzpop, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 13px;
    color: var(--jz-muted-2);
    font-family: var(--jz-display);
    font-size: 0.78rem;
    font-weight: 600;
}
.jz-popular-title { display: block; color: var(--jz-text-soft); font-size: 0.92rem; font-weight: 550; line-height: 1.4; transition: color 0.15s ease; }
.jz-popular-meta { display: block; color: var(--jz-muted-2); font-size: 0.78rem; margin-top: 3px; }
.jz-popular-list a:hover .jz-popular-title { color: var(--jz-cyan); }

/* ── Content request card ──────────────────────────────────────────── */
.jz-request-card {
    border: 1px solid var(--jz-border);
    border-radius: var(--jz-radius);
    background: linear-gradient(160deg, rgba(14, 26, 51, 0.85), rgba(9, 17, 36, 0.9));
    padding: 24px;
}
.jz-request-card h2 {
    font-family: var(--jz-display);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}
.jz-request-card p { color: var(--jz-muted); font-size: 0.9rem; margin: 0 0 16px; line-height: 1.6; }
.jz-request-form { display: flex; flex-direction: column; gap: 10px; }
.jz-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--jz-border);
    background: rgba(7, 13, 31, 0.7);
    color: var(--jz-text);
    font-family: var(--jz-sans);
    font-size: 0.92rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.jz-input::placeholder { color: var(--jz-muted-2); }
.jz-input:focus { outline: none; border-color: var(--jz-cyan); box-shadow: 0 0 0 3px rgba(0, 209, 255, 0.14); }
.jz-request-note { min-height: 1.2em; margin: 2px 0 0 !important; font-size: 0.84rem !important; }
.jz-request-note.ok { color: var(--jz-green); }
.jz-request-note.err { color: #f87171; }

/* ── Pagination ────────────────────────────────────────────────────── */
.jz-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--jz-border);
}
.jz-page {
    color: var(--jz-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.jz-page:hover { text-decoration: underline; }
.jz-page-info { color: var(--jz-muted-2); font-size: 0.85rem; }

/* ── Empty states ──────────────────────────────────────────────────── */
.jz-empty { padding: 48px 0; text-align: center; color: var(--jz-muted); }
.jz-empty h2 { font-family: var(--jz-display); color: var(--jz-text); font-size: 1.3rem; margin-bottom: 8px; }
.jz-empty-sub { font-size: 0.9rem; }
.jz-empty-lg { padding: 72px 24px; border: 1px dashed var(--jz-border); border-radius: var(--jz-radius); }
.jz-empty-icon {
    width: 56px; height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--jz-cyan-soft);
    color: var(--jz-cyan);
    font-size: 1.3rem;
}

/* ═══════════════════════════════════════════════════════════════════
   ARTICLE READING EXPERIENCE
   ═══════════════════════════════════════════════════════════════════ */
.jz-post-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 24px 110px;
}

/* Reading progress — quiet 2px line */
.jz-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    z-index: 1000;
    background: transparent;
    pointer-events: none;
}
.jz-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--jz-cyan), #3adaff);
    box-shadow: 0 0 10px rgba(0, 209, 255, 0.5);
    transition: width 0.08s linear;
}

/* Article header */
.jz-article-header { max-width: 780px; margin: 0 auto 40px; }
.jz-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: var(--jz-muted-2);
    margin-bottom: 18px;
}
.jz-breadcrumb a { color: var(--jz-muted); text-decoration: none; }
.jz-breadcrumb a:hover { color: var(--jz-cyan); }
.jz-article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.jz-meta-item { color: var(--jz-muted-2); font-size: 0.84rem; }
.jz-meta-item.jz-ai { color: var(--jz-green); }
.jz-article-header h1 {
    font-family: var(--jz-display);
    font-size: clamp(1.9rem, 4.4vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.028em;
    line-height: 1.14;
    margin: 0 0 18px;
}
.jz-article-summary {
    font-family: var(--jz-serif);
    font-size: 1.24rem;
    color: var(--jz-text-soft);
    line-height: 1.55;
    margin: 0 0 26px;
}
.jz-article-byline {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--jz-border);
}
.jz-byline-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--jz-cyan), #0ea5e9);
    color: #062033;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.jz-byline-text { display: flex; flex-direction: column; line-height: 1.35; margin-right: auto; }
.jz-byline-name { color: var(--jz-text); font-weight: 600; font-size: 0.92rem; }
.jz-byline-date { color: var(--jz-muted-2); font-size: 0.82rem; }

/* Reading layout: TOC rail + body */
.jz-reading {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 48px;
    max-width: 980px;
    margin: 0 auto;
    align-items: start;
}

/* Desktop sticky TOC */
.jz-toc {
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    border-left: 1px solid var(--jz-border);
    padding-left: 20px;
}
.jz-toc-title {
    font-family: var(--jz-display);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--jz-muted-2);
    margin-bottom: 14px;
}
.jz-toc-list { list-style: none; margin: 0; padding: 0; }
.jz-toc-list li { margin-bottom: 2px; }
.jz-toc-list a {
    display: block;
    padding: 6px 0 6px 12px;
    color: var(--jz-muted);
    font-size: 0.86rem;
    text-decoration: none;
    line-height: 1.4;
    border-left: 2px solid transparent;
    margin-left: -21px;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.jz-toc-list a:hover { color: var(--jz-text); }
.jz-toc-list a.is-active {
    color: var(--jz-cyan);
    border-left-color: var(--jz-cyan);
}
.jz-toc-l3 a { padding-left: 26px; font-size: 0.82rem; }

/* Mobile TOC — compact expandable */
.jz-toc-mobile {
    display: none;
    border: 1px solid var(--jz-border);
    border-radius: 12px;
    background: rgba(14, 26, 51, 0.7);
    margin: 0 auto 28px;
    max-width: 780px;
}
.jz-toc-mobile summary {
    cursor: pointer;
    padding: 14px 18px;
    font-family: var(--jz-display);
    font-size: 0.9rem;
    font-weight: 650;
    color: var(--jz-text-soft);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.jz-toc-mobile summary::-webkit-details-marker { display: none; }
.jz-toc-mobile summary::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    color: var(--jz-muted-2);
    transition: transform 0.2s ease;
}
.jz-toc-mobile[open] summary::after { transform: rotate(180deg); }
.jz-toc-count {
    font-size: 0.72rem;
    color: var(--jz-cyan);
    background: var(--jz-cyan-soft);
    padding: 1px 8px;
    border-radius: 999px;
}
.jz-toc-mobile .jz-toc-list { padding: 0 18px 14px; }
.jz-toc-mobile .jz-toc-list a { border-left: none; margin-left: 0; padding: 7px 0; }

/* ── Article body typography ───────────────────────────────────────── */
.jz-body {
    font-family: var(--jz-serif);
    font-size: 1.14rem;
    line-height: 1.78;
    color: var(--jz-text-soft);
    max-width: var(--jz-max-read);
    overflow-wrap: break-word;
}
.jz-body > *:first-child { margin-top: 0; }
.jz-body h2, .jz-body h3, .jz-body h4 {
    font-family: var(--jz-display);
    color: var(--jz-text);
    letter-spacing: -0.018em;
    line-height: 1.3;
    scroll-margin-top: 90px;
}
.jz-body h2 { font-size: 1.55rem; font-weight: 700; margin: 2.2em 0 0.7em; }
.jz-body h3 { font-size: 1.28rem; font-weight: 650; margin: 1.9em 0 0.6em; }
.jz-body h4 { font-size: 1.1rem; font-weight: 650; margin: 1.6em 0 0.5em; }
.jz-body p { margin: 0 0 1.35em; }
.jz-body strong { color: var(--jz-text); font-weight: 600; }
.jz-body em { color: var(--jz-text); }
.jz-body a {
    color: var(--jz-cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(0, 209, 255, 0.4);
    transition: text-decoration-color 0.15s ease;
}
.jz-body a:hover { text-decoration-color: var(--jz-cyan); }
.jz-body ul, .jz-body ol { margin: 0 0 1.35em; padding-left: 1.4em; }
.jz-body li { margin-bottom: 0.5em; }
.jz-body li::marker { color: var(--jz-cyan); }
.jz-body code {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    font-size: 0.86em;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid var(--jz-border);
    border-radius: 5px;
    padding: 0.12em 0.38em;
    color: #7dd3fc;
}
.jz-body pre {
    background: #060c1d;
    border: 1px solid var(--jz-border);
    border-radius: 10px;
    padding: 18px 20px;
    overflow-x: auto;
    margin: 0 0 1.4em;
    font-size: 0.9em;
    line-height: 1.6;
}
.jz-body pre code { background: none; border: none; padding: 0; color: #c3cede; }
.jz-body blockquote {
    margin: 0 0 1.4em;
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--jz-cyan);
    color: var(--jz-text-soft);
    font-style: italic;
    font-size: 1.08em;
}
.jz-body blockquote p { margin-bottom: 0.4em; }
.jz-body img { max-width: 100%; border-radius: 10px; }

/* Contextual product CTA module */
.jz-cta {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    margin: 2.4em 0;
    padding: 22px 24px;
    border: 1px solid var(--jz-border-strong);
    border-radius: var(--jz-radius);
    background: linear-gradient(135deg, rgba(0, 209, 255, 0.08), rgba(14, 26, 51, 0.7));
}
.jz-cta-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--jz-cyan-soft);
    color: var(--jz-cyan);
    font-size: 1.05rem;
}
.jz-cta-content { min-width: 0; }
.jz-cta-eyebrow {
    font-family: var(--jz-sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--jz-cyan);
    margin: 0 0 4px;
}
.jz-cta-title {
    font-family: var(--jz-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--jz-text);
    margin: 0 0 4px;
    line-height: 1.3;
}
.jz-cta-body { font-family: var(--jz-sans); font-size: 0.88rem; color: var(--jz-muted); margin: 0; line-height: 1.55; }
.jz-cta-btn {
    flex-shrink: 0;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--jz-cyan);
    color: #062033;
    font-family: var(--jz-sans);
    font-weight: 600;
    font-size: 0.86rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.18s ease, box-shadow 0.18s ease;
}
.jz-cta-btn:hover { background: #3adaff; box-shadow: 0 4px 18px rgba(0, 209, 255, 0.3); }

/* Tags */
.jz-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 2.4em 0 0.4em; }
.jz-tag {
    font-family: var(--jz-sans);
    font-size: 0.76rem;
    color: var(--jz-muted);
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid var(--jz-border);
    padding: 4px 12px;
    border-radius: 999px;
}

/* ── Feedback ──────────────────────────────────────────────────────── */
.jz-feedback {
    margin-top: 3.2em;
    padding-top: 2.2em;
    border-top: 1px solid var(--jz-border);
}
.jz-feedback h2 {
    font-family: var(--jz-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 14px;
}
.jz-feedback-options { display: flex; gap: 10px; flex-wrap: wrap; }
.jz-fb {
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid var(--jz-border);
    background: transparent;
    color: var(--jz-text-soft);
    font-family: var(--jz-sans);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.16s ease;
}
.jz-fb:hover { color: var(--jz-text); border-color: var(--jz-border-strong); }
.jz-fb.is-active, .jz-fb[aria-pressed="true"] {
    color: var(--jz-cyan);
    border-color: var(--jz-border-strong);
    background: var(--jz-cyan-soft);
}
.jz-fb:focus-visible { outline: 2px solid var(--jz-cyan); outline-offset: 2px; }
.jz-feedback-note { color: var(--jz-muted-2); font-family: var(--jz-sans); font-size: 0.85rem; margin: 12px 0 0; min-height: 1.2em; }

/* ── Related ───────────────────────────────────────────────────────── */
.jz-related { margin-top: 3.4em; }
.jz-related h2 {
    font-family: var(--jz-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 18px;
}
.jz-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}
.jz-related-card {
    display: block;
    padding: 18px 20px;
    border: 1px solid var(--jz-border);
    border-radius: 12px;
    background: rgba(14, 26, 51, 0.6);
    text-decoration: none;
    transition: border-color 0.18s ease, transform 0.18s ease;
}
.jz-related-card:hover { border-color: var(--jz-border-strong); transform: translateY(-2px); }
.jz-related-cat {
    display: inline-block;
    font-family: var(--jz-sans);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--jz-cyan);
    margin-bottom: 8px;
}
.jz-related-card h3 {
    font-family: var(--jz-display);
    font-size: 0.98rem;
    font-weight: 650;
    line-height: 1.35;
    color: var(--jz-text);
    margin: 0 0 10px;
}
.jz-related-card:hover h3 { color: var(--jz-cyan); }
.jz-related-meta { font-family: var(--jz-sans); font-size: 0.78rem; color: var(--jz-muted-2); }

/* ── Request at end of article ─────────────────────────────────────── */
.jz-request-end { margin-top: 3.2em; max-width: var(--jz-max-read); }

/* ── Library ───────────────────────────────────────────────────────── */
.jz-library-main { padding-top: 24px; }
.jz-lib-list { max-width: 820px; }
.jz-lib-list .jz-item-index { color: var(--jz-cyan); }

/* ── Accessibility helpers ─────────────────────────────────────────── */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .jz-layout { grid-template-columns: 1fr; gap: 40px; }
    .jz-rail { position: static; }
}

@media (max-width: 860px) {
    .jz-reading { grid-template-columns: 1fr; gap: 0; }
    .jz-toc { display: none; }
    .jz-toc-mobile { display: block; }
    .jz-body { font-size: 1.1rem; }
    .jz-home-main, .jz-post-main { padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 640px) {
    .jz-masthead-inner { padding: 0 14px; gap: 12px; }
    .jz-nav { display: none; }
    .jz-btn-label { display: none; }
    .jz-featured-link { padding: 24px 22px; }
    .jz-item { grid-template-columns: 30px minmax(0, 1fr); gap: 14px; }
    .jz-item-title { font-size: 1.14rem; }
    .jz-cta { grid-template-columns: 1fr; gap: 14px; text-align: left; }
    .jz-cta-btn { justify-self: start; }
    .jz-hero h1 { font-size: 2rem; }
    .jz-article-header h1 { font-size: 1.9rem; }
    .jz-article-summary { font-size: 1.1rem; }
}

/* ── Reduced motion ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .jz-progress span { transition: none; }
    .jz-btn, .jz-save, .jz-fb, .jz-topic, .jz-related-card { transition: none; }
    .jz-featured-link:hover .jz-read-cta i { transform: none; }
    .jz-btn:hover, .jz-related-card:hover { transform: none; }
}
