/* TechnicallyZeros Ghost Theme — screen.css
   Design tokens from design_handoff_technicallyzeros/README.md
   ============================================================ */

/* 1. Design Tokens — Dark mode default
/* ---------------------------------------------------------- */
:root {
    --tz-bg:         #080c14;
    --tz-surface:    #0f1623;
    --tz-border:     #1e2d42;
    --tz-text:       #e2e8f0;
    --tz-muted:      #64748b;
    --tz-faint:      #1a2535;
    --tz-code:       #0f2235;
    --tz-tag:        #1e3a5f;

    --tz-accent:     oklch(65% 0.22 243);
    --tz-accent-bg:  oklch(20% 0.05 243);
    --tz-accent-mid: oklch(55% 0.18 243);

    --font-sans:  'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono:  'IBM Plex Mono', Menlo, Consolas, 'Liberation Mono', monospace;

    --max-w:      1200px;
    --content-w:  720px;
    --side-pad:   24px;
}

/* Light mode overrides */
html.light {
    --tz-bg:         #f8faff;
    --tz-surface:    #ffffff;
    --tz-border:     #e2e8f0;
    --tz-text:       #0f172a;
    --tz-muted:      #64748b;
    --tz-faint:      #f1f5fd;
    --tz-code:       #f0f6ff;
    --tz-tag:        #dbeafe;

    --tz-accent:     oklch(48% 0.22 243);
    --tz-accent-bg:  oklch(95% 0.05 243);
    --tz-accent-mid: oklch(55% 0.18 243);
}

/* 2. Resets & Base
/* ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--tz-text);
    background: var(--tz-bg);
    transition: background 0.2s, color 0.2s;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--tz-border); border-radius: 3px; }

/* 3. Layout
/* ---------------------------------------------------------- */
.tz-viewport { display: flex; flex-direction: column; min-height: 100vh; }

.tz-outer {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--side-pad);
}

/* 4. Navigation
/* ---------------------------------------------------------- */
.tz-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 56px;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s, backdrop-filter 0.2s;
}

.tz-nav.is-scrolled {
    background: rgba(8,12,20,0.97);
    border-bottom-color: var(--tz-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

html.light .tz-nav.is-scrolled {
    background: rgba(248,250,255,0.97);
}

.tz-nav.is-mobile-open {
    background: var(--tz-surface);
    border-bottom-color: var(--tz-border);
}

.tz-nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.tz-nav-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--tz-text);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.15s;
}

.tz-nav-logo:hover { opacity: 0.8; }

.tz-nav-logo img {
    height: 28px;
    max-width: 160px;
    object-fit: contain;
}

.tz-logo-text-desktop { display: block; }
.tz-logo-text-mobile  { display: none; }

/* Desktop nav links */
.tz-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}
.tz-nav-links ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.tz-nav-links li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tz-nav-links a {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--tz-muted);
    padding: 6px 12px;
    border-radius: 6px;
    letter-spacing: 0.02em;
    transition: color 0.15s, background 0.15s;
}

.tz-nav-links a:hover {
    color: var(--tz-text);
    background: var(--tz-faint);
}

/* Nav actions */
.tz-nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tz-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    border-radius: 6px;
    color: var(--tz-muted);
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.tz-icon-btn:hover { color: var(--tz-text); background: var(--tz-faint); }

.tz-nav-signin {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--tz-muted);
    padding: 7px 12px;
    background: none;
    border: none;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.tz-nav-signin:hover { color: var(--tz-text); background: var(--tz-faint); }

.tz-nav-subscribe {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    background: var(--tz-accent);
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    letter-spacing: 0.02em;
    transition: opacity 0.15s;
    white-space: nowrap;
}

.tz-nav-subscribe:hover { opacity: 0.88; }

/* Hamburger */
.tz-nav-burger { display: none; }

/* Mobile drawer */
.tz-nav-drawer {
    display: none;
    border-top: 1px solid var(--tz-border);
    background: var(--tz-surface);
}

.tz-nav-drawer ul { list-style: none; }

.tz-nav-drawer a {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--tz-text);
    padding: 14px 20px;
    border-bottom: 1px solid var(--tz-border);
    letter-spacing: 0.02em;
    transition: background 0.15s;
}

.tz-nav-drawer a:hover { background: var(--tz-faint); }

.tz-nav-drawer-btns {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
}

.tz-drawer-signin {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--tz-text);
    background: none;
    border: 1px solid var(--tz-border);
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    transition: background 0.15s;
}

.tz-drawer-signin:hover { background: var(--tz-faint); }

.tz-drawer-subscribe {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    background: var(--tz-accent);
    border: none;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    transition: opacity 0.15s;
}

.tz-drawer-subscribe:hover { opacity: 0.88; }

/* 5. Main content area
/* ---------------------------------------------------------- */
.tz-main { flex: 1; }

/* 6. Homepage
/* ---------------------------------------------------------- */
.tz-home {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--side-pad) 80px;
}

/* Site Hero (hero_style = "Site")
/* ---------------------------------------------------------- */
.tz-site-hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: flex-end;
    margin-bottom: 48px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--tz-surface);
    border: 1px solid var(--tz-border);
}

/* No-cover fallback: accent gradient background */
.tz-site-hero:not(.has-cover) {
    background: linear-gradient(
        135deg,
        var(--tz-bg) 0%,
        color-mix(in srgb, var(--tz-accent) 8%, var(--tz-bg)) 100%
    );
    align-items: center;
}

.tz-site-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.tz-site-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border: none;
    border-radius: 0;
    display: block;
    transform: scale(1.02);
}

.tz-site-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to right,
            rgba(6,10,18,0.92) 0%,
            rgba(6,10,18,0.72) 45%,
            rgba(6,10,18,0.2) 100%
        ),
        linear-gradient(
            to top,
            rgba(6,10,18,0.70) 0%,
            transparent 50%
        );
}

html.light .tz-site-hero-overlay {
    background:
        linear-gradient(
            to right,
            rgba(12,18,32,0.82) 0%,
            rgba(12,18,32,0.58) 45%,
            rgba(12,18,32,0.12) 100%
        ),
        linear-gradient(
            to top,
            rgba(12,18,32,0.55) 0%,
            transparent 50%
        );
}

.tz-site-hero-content {
    position: relative;
    z-index: 2;
    padding: 64px 56px;
    max-width: 660px;
}

.tz-site-hero:not(.has-cover) .tz-site-hero-content {
    padding: 64px 56px;
}


.tz-site-hero-logo {
    max-height: 56px;
    max-width: 240px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
}

.tz-site-hero-title {
    font-size: 5.2rem;
    font-weight: 800;
    line-height: 1.06;
    color: #fff;
    margin-bottom: 18px;
    text-wrap: pretty;
    letter-spacing: -0.03em;
}

.tz-site-hero:not(.has-cover) .tz-site-hero-title {
    color: var(--tz-text);
}

.tz-site-hero-desc {
    font-size: 1.75rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 460px;
    text-wrap: pretty;
}

.tz-site-hero:not(.has-cover) .tz-site-hero-desc {
    color: var(--tz-muted);
}

.tz-site-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tz-site-hero-subscribe {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--tz-accent);
    color: #fff;
    border-radius: 10px;
    padding: 14px 28px;
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 20px color-mix(in srgb, var(--tz-accent) 40%, transparent);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.tz-site-hero-subscribe:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px color-mix(in srgb, var(--tz-accent) 55%, transparent);
    opacity: 0.93;
}

.tz-site-hero-signin {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.22);
    color: rgba(255,255,255,0.82);
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 10px;
    padding: 14px 28px;
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s;
}

.tz-site-hero-signin:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.12);
}

.tz-site-hero:not(.has-cover) .tz-site-hero-signin {
    border-color: var(--tz-border);
    color: var(--tz-muted);
    background: var(--tz-surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.tz-site-hero:not(.has-cover) .tz-site-hero-signin:hover {
    color: var(--tz-text);
    border-color: var(--tz-accent-mid);
    background: var(--tz-accent-bg);
}

/* Bottom fade to page background */
.tz-site-hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--tz-bg) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.tz-site-hero:not(.has-cover) .tz-site-hero-fade {
    display: none;
}

@media (max-width: 900px) {
    .tz-site-hero { min-height: 460px; align-items: center; }
    .tz-site-hero-fade { display: none; }
    .tz-site-hero-content { padding: 48px 32px; }
}

@media (max-width: 767px) {
    .tz-site-hero { min-height: 380px; border-radius: 10px; }
    .tz-site-hero-content { padding: 40px 24px; }
    .tz-site-hero-title { font-size: 3.6rem; }
    .tz-site-hero-desc { font-size: 1.6rem; margin-bottom: 28px; }
    .tz-site-hero-actions { flex-direction: column; align-items: flex-start; }
    .tz-site-hero-subscribe,
    .tz-site-hero-signin { width: 100%; justify-content: center; }
}

/* Featured Hero — Editorial */
.tz-hero {
    margin-bottom: 48px;
    cursor: pointer;
}

.tz-hero-image-wrap {
    width: 100%;
    height: 380px;
    border-radius: 10px;
    border: 1px solid var(--tz-border);
    overflow: hidden;
    margin-bottom: 28px;
    position: relative;
    background: repeating-linear-gradient(
        45deg,
        var(--tz-faint) 0px, var(--tz-faint) 10px,
        var(--tz-border) 10px, var(--tz-border) 11px
    );
    transition: transform 0.3s ease;
}

.tz-hero:hover .tz-hero-image-wrap { transform: scale(1.005); }

.tz-hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.tz-hero-badge-featured {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--tz-accent);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 1.0rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tz-hero-badge-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--tz-surface);
    border: 1px solid var(--tz-border);
    color: var(--tz-muted);
    font-family: var(--font-mono);
    font-size: 1.0rem;
    padding: 4px 10px;
    border-radius: 4px;
}

.tz-hero-body { max-width: 760px; }

.tz-hero-title {
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--tz-text);
    margin-bottom: 14px;
    text-wrap: pretty;
    transition: color 0.15s;
}

.tz-hero:hover .tz-hero-title { color: var(--tz-accent); }

.tz-hero-excerpt {
    font-size: 1.6rem;
    color: var(--tz-muted);
    line-height: 1.75;
    margin-bottom: 20px;
    text-wrap: pretty;
}

.tz-hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tz-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--tz-accent-bg);
    border: 1px solid var(--tz-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 1.0rem;
    font-weight: 600;
    color: var(--tz-accent);
    overflow: hidden;
    flex-shrink: 0;
}

.tz-avatar img { width: 100%; height: 100%; object-fit: cover; }

.tz-meta-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--tz-text);
    line-height: 1.3;
}

.tz-meta-line {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--tz-muted);
    line-height: 1.3;
}

/* Hero — Minimal style */
.tz-hero-minimal {
    padding-bottom: 40px;
    border-bottom: 1px solid var(--tz-border);
    margin-bottom: 40px;
}

.tz-hero-minimal .tz-hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--tz-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.tz-hero-minimal .tz-hero-title {
    font-size: 4.0rem;
    max-width: 640px;
}

.tz-hero-minimal .tz-hero-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.tz-hero-minimal .tz-meta-dot {
    color: var(--tz-border);
}

.tz-hero-minimal .tz-hero-read-btn {
    background: var(--tz-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: var(--font-mono);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.15s;
}

.tz-hero-minimal .tz-hero-read-btn:hover { opacity: 0.88; }

/* 7. Ad Slot
/* ---------------------------------------------------------- */
.tz-ad {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--tz-border);
    border-radius: 6px;
    background: repeating-linear-gradient(
        45deg,
        var(--tz-faint) 0px, var(--tz-faint) 6px,
        transparent 6px, transparent 12px
    );
    flex-direction: column;
    gap: 4px;
}

.tz-ad-leaderboard { width: 100%; max-width: 728px; height: 90px; }
.tz-ad-infeed      { width: 100%; height: 120px; }
.tz-ad-sidebar     { width: 300px; max-width: 100%; height: 250px; }
.tz-ad-footer      { width: 100%; max-width: 728px; height: 90px; }

.tz-ad-label {
    font-family: var(--font-mono);
    font-size: 1.0rem;
    color: var(--tz-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tz-ad-sublabel {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--tz-border);
}

.tz-ad-wrap { margin-bottom: 40px; display: flex; justify-content: center; }

/* 8. Article List Section Header
/* ---------------------------------------------------------- */
.tz-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tz-feed-count {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--tz-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tz-feed-count span { color: var(--tz-border); }

/* 9. Tag Bar
/* ---------------------------------------------------------- */
.tz-tag-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.tz-tag-bar::-webkit-scrollbar { display: none; }

.tz-tag-btn {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid var(--tz-border);
    color: var(--tz-muted);
    background: transparent;
    white-space: nowrap;
    letter-spacing: 0.04em;
    transition: all 0.15s;
    cursor: pointer;
    text-decoration: none;
}

.tz-tag-btn:hover,
.tz-tag-btn.is-active {
    border-color: var(--tz-accent);
    background: var(--tz-accent-bg);
    color: var(--tz-accent);
}

/* 10. Article Grid
/* ---------------------------------------------------------- */
.tz-feed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tz-feed-grid.is-compact  { grid-template-columns: repeat(3, 1fr); }
.tz-feed-grid.is-borderless { gap: 0; }

.tz-ad-infeed-wrap {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

/* 11. Post Card
/* ---------------------------------------------------------- */
.tz-card {
    background: var(--tz-surface);
    border: 1px solid var(--tz-border);
    border-radius: 8px;
    padding: 22px 24px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tz-card:hover {
    background: var(--tz-faint);
    border-color: var(--tz-accent-mid);
}

.tz-feed-grid.is-borderless .tz-card {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--tz-border);
    border-radius: 0;
    padding: 24px 0;
}

.tz-feed-grid.is-borderless .tz-card:hover {
    background: transparent;
}

.tz-feed-grid.is-compact .tz-card { padding: 18px 20px; }

/* Card image */
.tz-card-image {
    width: 100%;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 14px;
    background: repeating-linear-gradient(
        45deg,
        var(--tz-faint) 0px, var(--tz-faint) 8px,
        var(--tz-border) 8px, var(--tz-border) 9px
    );
    position: relative;
    flex-shrink: 0;
}

.tz-feed-grid.is-compact .tz-card-image { height: 100px; }

.tz-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tz-card-member-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--tz-surface);
    border: 1px solid var(--tz-border);
    border-radius: 4px;
    padding: 2px 7px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--tz-muted);
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Card top row */
.tz-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.tz-card-tag {
    font-family: var(--font-mono);
    font-size: 1.0rem;
    font-weight: 600;
    color: var(--tz-accent);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    text-decoration: none;
}

.tz-card-lock {
    display: flex;
    align-items: center;
    gap: 3px;
    font-family: var(--font-mono);
    font-size: 1.0rem;
    color: var(--tz-muted);
    background: var(--tz-faint);
    border: 1px solid var(--tz-border);
    border-radius: 3px;
    padding: 1px 6px;
}

.tz-card-views {
    font-family: var(--font-mono);
    font-size: 1.0rem;
    color: var(--tz-muted);
    margin-left: auto;
}

/* Card title */
.tz-card-title {
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--tz-text);
    margin-bottom: 8px;
    text-wrap: pretty;
    transition: color 0.15s;
}

.tz-card:hover .tz-card-title { color: var(--tz-accent); }

.tz-feed-grid.is-compact .tz-card-title { font-size: 1.5rem; }

/* Card excerpt */
.tz-card-excerpt {
    font-size: 1.3rem;
    color: var(--tz-muted);
    line-height: 1.7;
    margin-bottom: 14px;
    flex: 1;
}

.tz-feed-grid.is-compact .tz-card-excerpt { display: none; }

/* Card footer */
.tz-card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.tz-card-date,
.tz-card-read {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--tz-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tz-card-dot { color: var(--tz-border); }

.tz-card-arrow {
    margin-left: auto;
    color: var(--tz-accent-mid);
    opacity: 0;
    transition: opacity 0.15s;
}

.tz-card:hover .tz-card-arrow { opacity: 1; }

/* 12. Newsletter CTA
/* ---------------------------------------------------------- */
.tz-newsletter {
    background: var(--tz-accent-bg);
    border: 1px solid color-mix(in oklch, var(--tz-accent) 22%, transparent);
    border-radius: 10px;
    padding: 36px 40px;
    margin: 56px 0;
}

.tz-newsletter-eyebrow {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--tz-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.tz-newsletter-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--tz-text);
    margin-bottom: 8px;
    text-wrap: pretty;
}

.tz-newsletter-body {
    font-size: 1.4rem;
    color: var(--tz-muted);
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 420px;
}

.tz-newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 440px;
    margin-bottom: 16px;
}

.tz-newsletter-input {
    flex: 1;
    background: var(--tz-surface);
    border: 1px solid var(--tz-border);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 1.4rem;
    color: var(--tz-text);
    outline: none;
    transition: border-color 0.15s;
}

.tz-newsletter-input:focus { border-color: var(--tz-accent); }

.tz-newsletter-input::placeholder { color: var(--tz-muted); }

.tz-newsletter-btn {
    background: var(--tz-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: var(--font-mono);
    white-space: nowrap;
    transition: opacity 0.15s;
}

.tz-newsletter-btn:hover { opacity: 0.88; }

.tz-newsletter-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tz-newsletter-trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--tz-muted);
}

.tz-newsletter-success {
    display: none;
    align-items: center;
    gap: 10px;
    color: var(--tz-accent);
    font-family: var(--font-mono);
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.tz-newsletter-success:not([hidden]) {
    display: flex;
}

/* 13. Article Page
/* ---------------------------------------------------------- */
.tz-post-wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--side-pad) 80px;
}

/* Breadcrumb */
.tz-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--tz-muted);
    flex-wrap: wrap;
}

.tz-breadcrumb a { color: var(--tz-accent); transition: opacity 0.15s; }
.tz-breadcrumb a:hover { opacity: 0.8; }
.tz-breadcrumb-sep { color: var(--tz-border); }
.tz-breadcrumb-current { color: var(--tz-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }

/* Post layout grid */
.tz-post-layout {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 64px;
    align-items: start;
}

/* Article header */
.tz-article-header { margin-bottom: 36px; }

.tz-article-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.tz-article-tag {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--tz-accent);
    background: var(--tz-tag);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
}

.tz-article-tag:hover { opacity: 0.85; }

.tz-article-lock {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 1.0rem;
    color: var(--tz-muted);
    background: var(--tz-accent-bg);
    border: 1px solid color-mix(in oklch, var(--tz-accent) 33%, transparent);
    border-radius: 4px;
    padding: 2px 8px;
}

.tz-article-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--tz-text);
    margin-bottom: 18px;
    text-wrap: pretty;
    max-width: 640px;
}

.tz-article-excerpt {
    font-size: 1.8rem;
    color: var(--tz-muted);
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 24px;
    max-width: 600px;
}

.tz-article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--tz-border);
    flex-wrap: wrap;
}

.tz-article-meta .tz-avatar { width: 40px; height: 40px; font-size: 1.2rem; }

.tz-article-meta-info { flex: 1; }

.tz-article-author-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--tz-text);
}

.tz-article-meta-line {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--tz-muted);
}

/* Affiliate note */
.tz-affiliate-note {
    background: var(--tz-faint);
    border-left: 3px solid var(--tz-accent);
    border-radius: 0 4px 4px 0;
    padding: 12px 16px;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--tz-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Feature image */
.tz-article-feature-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 36px;
    border: 1px solid var(--tz-border);
}

.tz-article-feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Share bar */
.tz-share {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0 20px;
    border-bottom: 1px solid var(--tz-border);
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.tz-share-label {
    font-family: var(--font-mono);
    font-size: 1.0rem;
    color: var(--tz-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-right: 4px;
}

.tz-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--tz-border);
    color: var(--tz-muted);
    background: transparent;
    transition: all 0.15s;
    text-decoration: none;
}

.tz-share-btn:hover {
    border-color: var(--tz-accent-mid);
    color: var(--tz-accent);
    background: var(--tz-accent-bg);
}

.tz-share-copy {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid var(--tz-border);
    color: var(--tz-muted);
    background: transparent;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    transition: all 0.15s;
}

.tz-share-copy:hover {
    border-color: var(--tz-accent-mid);
    color: var(--tz-accent);
    background: var(--tz-accent-bg);
}

.tz-share-copy.is-copied {
    border-color: var(--tz-accent);
    color: var(--tz-accent);
    background: var(--tz-accent-bg);
}

/* 14. Article Content
/* ---------------------------------------------------------- */
.tz-article-content {
    color: var(--tz-text);
}

.tz-article-content p {
    font-size: 1.7rem;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--tz-text);
}

.tz-article-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--tz-text);
    margin: 40px 0 16px;
    border-left: 3px solid var(--tz-accent);
    padding-left: 14px;
    line-height: 1.3;
}

.tz-article-content h3 {
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--tz-text);
    margin: 32px 0 12px;
    line-height: 1.35;
}

.tz-article-content h4 {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--tz-text);
    margin: 24px 0 10px;
}

.tz-article-content a {
    color: var(--tz-accent);
    text-decoration: none;
}

.tz-article-content a:hover { text-decoration: underline; }

.tz-article-content strong { font-weight: 600; color: var(--tz-text); }
.tz-article-content em { font-style: italic; }

.tz-article-content ul,
.tz-article-content ol {
    margin: 0 0 24px 24px;
    font-size: 1.7rem;
    line-height: 1.8;
    color: var(--tz-text);
}

.tz-article-content li { margin-bottom: 6px; }

.tz-article-content blockquote {
    border-left: 3px solid var(--tz-accent);
    padding: 12px 20px;
    margin: 28px 0;
    background: var(--tz-faint);
    border-radius: 0 6px 6px 0;
    font-size: 1.7rem;
    color: var(--tz-muted);
    font-style: italic;
}

.tz-article-content code {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    background: var(--tz-code);
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--tz-text);
}

.tz-article-content pre {
    background: var(--tz-code);
    border: 1px solid var(--tz-border);
    border-radius: 8px;
    padding: 20px 24px;
    overflow-x: auto;
    margin: 28px 0;
}

.tz-article-content pre code {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    background: none;
    padding: 0;
    border-radius: 0;
    line-height: 1.65;
}

.tz-article-content hr {
    border: none;
    border-top: 1px solid var(--tz-border);
    margin: 40px 0;
}

.tz-article-content img {
    border-radius: 6px;
    border: 1px solid var(--tz-border);
}

.tz-article-content figure { margin: 28px 0; }
.tz-article-content figcaption {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--tz-muted);
    text-align: center;
    margin-top: 8px;
}

/* Ghost card asset overrides */
.tz-article-content .kg-card { margin: 28px 0; }

/* Image card */
.tz-article-content .kg-image-card img {
    border-radius: 6px;
    border: 1px solid var(--tz-border);
}
.tz-article-content .kg-image-card figcaption,
.tz-article-content .kg-gallery-card figcaption {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--tz-muted);
    text-align: center;
    margin-top: 8px;
    line-height: 1.5;
}

/* Gallery card */
.tz-article-content .kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tz-article-content .kg-gallery-row {
    display: flex;
    gap: 4px;
    align-items: stretch;
}
.tz-article-content .kg-gallery-image {
    flex: 1;
    overflow: hidden;
    border-radius: 4px;
    min-width: 0;
}
.tz-article-content .kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    border-radius: 4px;
}

/* Embed card — YouTube, Vimeo, Twitter, etc. */
.tz-article-content .kg-embed-card {
    margin: 28px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.tz-article-content .kg-embed-card iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 6px;
    border: none;
}
/* Twitter/X and Instagram embeds manage their own height */
.tz-article-content .kg-embed-card .twitter-tweet,
.tz-article-content .kg-embed-card .instagram-media,
.tz-article-content .kg-embed-card blockquote {
    width: 100% !important;
    max-width: 550px !important;
}
.tz-article-content .kg-embed-card .twitter-tweet iframe,
.tz-article-content .kg-embed-card .instagram-media iframe {
    aspect-ratio: unset;
    height: auto;
}

/* Video card */
.tz-article-content .kg-video-card {
    margin: 28px 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--tz-border);
    background: #000;
    position: relative;
}
.tz-article-content .kg-video-card video {
    width: 100%;
    display: block;
}
.tz-article-content .kg-video-card-container {
    position: relative;
}

/* Callout card */
.tz-article-content .kg-callout-card {
    background: var(--tz-faint);
    border: 1px solid var(--tz-border);
    border-left: 3px solid var(--tz-accent);
    border-radius: 0 8px 8px 0;
    padding: 18px 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.tz-article-content .kg-callout-emoji {
    font-size: 2rem;
    line-height: 1.2;
    flex-shrink: 0;
}
.tz-article-content .kg-callout-text {
    flex: 1;
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--tz-text);
}
.tz-article-content .kg-callout-text a { color: var(--tz-accent); }

/* Toggle card */
.tz-article-content .kg-toggle-card {
    border: 1px solid var(--tz-border);
    border-radius: 8px;
    overflow: hidden;
}
.tz-article-content .kg-toggle-heading-text {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--tz-text);
}
.tz-article-content .kg-toggle-heading {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 16px;
    user-select: none;
}
.tz-article-content .kg-toggle-card-icon svg {
    color: var(--tz-muted);
    transition: transform 0.2s;
}
.tz-article-content [data-kg-toggle-state="open"] .kg-toggle-card-icon svg {
    transform: rotate(180deg);
}
.tz-article-content .kg-toggle-content {
    border-top: 1px solid var(--tz-border);
    padding: 16px 20px;
    font-size: 1.6rem;
    line-height: 1.75;
}

/* Code card */
.tz-article-content .kg-code-card {
    margin: 28px 0;
}
.tz-article-content .kg-code-card pre {
    margin: 0;
    border-radius: 8px;
    background: var(--tz-code);
    border: 1px solid var(--tz-border);
    padding: 20px 24px;
    overflow-x: auto;
}
.tz-article-content .kg-code-card code {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    background: none;
    padding: 0;
    border-radius: 0;
    line-height: 1.65;
    color: var(--tz-text);
}

/* Bookmark card */
.tz-article-content .kg-bookmark-card {
    border: 1px solid var(--tz-border);
    border-radius: 8px;
    overflow: hidden;
    margin: 28px 0;
}
.tz-article-content .kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.tz-article-content .kg-bookmark-container:hover {
    background: var(--tz-faint);
}
.tz-article-content .kg-bookmark-content {
    flex: 1;
    padding: 18px 22px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}
.tz-article-content .kg-bookmark-title {
    font-weight: 600;
    font-size: 1.55rem;
    color: var(--tz-text);
    line-height: 1.4;
}
.tz-article-content .kg-bookmark-description {
    font-size: 1.3rem;
    color: var(--tz-muted);
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.tz-article-content .kg-bookmark-metadata {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}
.tz-article-content .kg-bookmark-icon {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    flex-shrink: 0;
}
.tz-article-content .kg-bookmark-publisher {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--tz-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tz-article-content .kg-bookmark-author {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--tz-muted);
}
.tz-article-content .kg-bookmark-thumbnail {
    width: 160px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--tz-faint);
}
.tz-article-content .kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 100px;
    border: none;
    border-radius: 0;
}

/* Audio card */
.tz-article-content .kg-audio-card {
    border: 1px solid var(--tz-border);
    border-radius: 8px;
    overflow: hidden;
    margin: 28px 0;
    background: var(--tz-faint);
}
.tz-article-content .kg-audio-player-container {
    padding: 16px 20px;
}
.tz-article-content .kg-audio-title {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--tz-text);
    margin-bottom: 12px;
}

/* File card */
.tz-article-content .kg-file-card {
    border: 1px solid var(--tz-border);
    border-radius: 8px;
    overflow: hidden;
    margin: 28px 0;
}
.tz-article-content .kg-file-card-container {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 22px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.tz-article-content .kg-file-card-container:hover {
    background: var(--tz-faint);
}
.tz-article-content .kg-file-title {
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--tz-text);
}
.tz-article-content .kg-file-description {
    font-size: 1.3rem;
    color: var(--tz-muted);
    margin-top: 3px;
}
.tz-article-content .kg-file-metadata {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--tz-muted);
    margin-top: 4px;
}
.tz-article-content .kg-file-card-download {
    margin-left: auto;
    color: var(--tz-accent);
    flex-shrink: 0;
}

/* Product card */
.tz-article-content .kg-product-card {
    border: 1px solid var(--tz-border);
    border-radius: 8px;
    overflow: hidden;
    margin: 28px 0;
}
.tz-article-content .kg-product-card-container {
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.tz-article-content .kg-product-card-image {
    width: 100px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}
.tz-article-content .kg-product-card-image img {
    border: none;
    border-radius: 6px;
}
.tz-article-content .kg-product-card-title {
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--tz-text);
    margin-bottom: 8px;
}
.tz-article-content .kg-product-card-description {
    font-size: 1.4rem;
    color: var(--tz-muted);
    line-height: 1.65;
    margin-bottom: 16px;
}
.tz-article-content .kg-product-card-button {
    display: inline-block;
    background: var(--tz-accent);
    color: #fff;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: var(--font-mono);
    text-decoration: none;
    transition: opacity 0.15s;
}
.tz-article-content .kg-product-card-button:hover { opacity: 0.88; }

/* NFT card */
.tz-article-content .kg-nft-card {
    border: 1px solid var(--tz-border);
    border-radius: 8px;
    overflow: hidden;
    margin: 28px 0;
}

/* Header card */
.tz-article-content .kg-header-card {
    background: var(--tz-faint);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin: 28px 0;
}
.tz-article-content .kg-header-card-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--tz-text);
    margin-bottom: 8px;
}
.tz-article-content .kg-header-card-subtitle {
    font-size: 1.6rem;
    color: var(--tz-muted);
}

/* Button card */
.tz-article-content .kg-button-card {
    text-align: center;
    margin: 28px 0;
}
.tz-article-content .kg-btn {
    display: inline-block;
    background: var(--tz-accent);
    color: #fff;
    border-radius: 6px;
    padding: 12px 28px;
    font-size: 1.4rem;
    font-weight: 600;
    font-family: var(--font-mono);
    text-decoration: none;
    transition: opacity 0.15s;
}
.tz-article-content .kg-btn:hover { opacity: 0.88; }

/* Related posts card */
.tz-article-content .kg-related-posts-card {
    margin: 28px 0;
}

/* Required Ghost content card width classes */
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin-left: calc(50% - 50vw + 5vw);
    margin-right: calc(50% - 50vw + 5vw);
    transform: translateX(calc(50vw - 50% - 5vw));
}

.kg-width-full {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
}

.kg-width-full img { width: 100%; }

/* 15. TOC Sidebar
/* ---------------------------------------------------------- */
.tz-toc {
    position: sticky;
    top: 72px;
}

.tz-toc-label {
    font-family: var(--font-mono);
    font-size: 1.0rem;
    color: var(--tz-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.tz-toc-nav a {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--tz-muted);
    padding: 5px 0 5px 12px;
    border-left: 2px solid var(--tz-border);
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 2px;
    transition: all 0.15s;
}

.tz-toc-nav a:hover,
.tz-toc-nav a.is-active {
    color: var(--tz-accent);
    border-left-color: var(--tz-accent);
}

/* Sidebar ad */
.tz-toc-sidebar-ad { margin-top: 32px; }

/* 16. Paywall
/* ---------------------------------------------------------- */
.tz-paywall-gradient {
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--tz-bg));
    pointer-events: none;
    margin-top: -120px;
    position: relative;
    z-index: 1;
}

.tz-paywall {
    background: var(--tz-surface);
    border: 1px solid var(--tz-border);
    border-radius: 12px;
    padding: 40px 48px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.tz-paywall-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--tz-accent-bg);
    border: 1px solid color-mix(in oklch, var(--tz-accent) 33%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--tz-accent);
}

.tz-paywall-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--tz-text);
    margin-bottom: 10px;
}

.tz-paywall-body {
    font-size: 1.4rem;
    color: var(--tz-muted);
    line-height: 1.65;
    max-width: 380px;
    margin: 0 auto 28px;
    text-wrap: pretty;
}

.tz-paywall-plans {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 480px;
    margin: 0 auto;
}

.tz-plan {
    border: 1px solid var(--tz-border);
    border-radius: 8px;
    padding: 20px 24px;
    background: var(--tz-surface);
    text-align: left;
}

.tz-plan.is-accent {
    border-color: var(--tz-accent);
    background: var(--tz-accent-bg);
}

.tz-plan-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.tz-plan-label {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--tz-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.tz-plan.is-accent .tz-plan-label { color: var(--tz-accent); }

.tz-plan-price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--tz-text);
}

.tz-plan-btn {
    background: transparent;
    color: var(--tz-accent);
    border: 1px solid var(--tz-accent);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-mono);
    transition: all 0.15s;
    white-space: nowrap;
}

.tz-plan.is-accent .tz-plan-btn {
    background: var(--tz-accent);
    color: #fff;
}

.tz-plan-btn:hover { opacity: 0.85; }

.tz-plan-perks {
    display: flex;
    flex-direction: column;
    gap: 6px;
    list-style: none;
}

.tz-plan-perk {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    color: var(--tz-muted);
}

.tz-plan-perk svg { color: var(--tz-accent); flex-shrink: 0; }

/* 17. Search Overlay
/* ---------------------------------------------------------- */
.tz-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(8, 12, 20, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

html.light .tz-search-overlay { background: rgba(15, 23, 42, 0.6); }

.tz-search-overlay[hidden] { display: none; }

.tz-search-panel {
    background: var(--tz-surface);
    border: 1px solid var(--tz-border);
    border-radius: 12px;
    width: 100%;
    max-width: 640px;
    margin: 0 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

.tz-search-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--tz-border);
    gap: 12px;
    color: var(--tz-muted);
}

.tz-search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 1.6rem;
    color: var(--tz-text);
    font-family: var(--font-sans);
}

.tz-search-input::placeholder { color: var(--tz-muted); }

.tz-search-close {
    background: none;
    border: none;
    color: var(--tz-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s;
}

.tz-search-close:hover { color: var(--tz-text); }

.tz-search-body {
    min-height: 80px;
    max-height: 400px;
    overflow-y: auto;
}

.tz-search-hint {
    padding: 24px 20px;
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--tz-muted);
    text-align: center;
}

.tz-search-tags {
    padding: 16px 20px;
}

.tz-search-tags-label {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--tz-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.tz-search-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tz-search-result {
    padding: 14px 20px;
    border-bottom: 1px solid var(--tz-border);
    cursor: pointer;
    transition: background 0.1s;
    text-decoration: none;
    display: block;
    color: inherit;
}

.tz-search-result:last-child { border-bottom: none; }
.tz-search-result:hover { background: var(--tz-faint); }

.tz-search-result-tag-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.tz-search-result-tag {
    font-family: var(--font-mono);
    font-size: 1.0rem;
    color: var(--tz-accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tz-search-result-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--tz-text);
    line-height: 1.4;
}

.tz-search-result-meta {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--tz-muted);
    margin-top: 2px;
}

.tz-search-footer {
    padding: 10px 20px;
    border-top: 1px solid var(--tz-border);
}

.tz-search-keys {
    display: flex;
    gap: 16px;
    align-items: center;
}

.tz-search-keys span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 1.0rem;
    color: var(--tz-muted);
}

.tz-search-keys kbd {
    background: var(--tz-faint);
    border: 1px solid var(--tz-border);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: var(--font-mono);
    font-size: 1.0rem;
    color: var(--tz-muted);
}

/* 18. Footer
/* ---------------------------------------------------------- */
/* Ghost {{navigation}} outputs <ul class="nav"> — remove bullets, make it flex */
.tz-footer-right .nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.tz-footer-right .nav li {
    list-style: none;
    display: flex;
}

.tz-footer-right .nav a {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--tz-muted);
    padding: 6px 10px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    text-decoration: none;
}

.tz-footer-right .nav a:hover {
    color: var(--tz-text);
    background: var(--tz-faint);
}

/* Ghost {{navigation}} in desktop nav also outputs <ul class="nav"> */
.tz-nav-links .nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tz-nav-links .nav li { list-style: none; }

.tz-nav-links .nav a {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--tz-muted);
    padding: 6px 12px;
    border-radius: 6px;
    letter-spacing: 0.02em;
    transition: color 0.15s, background 0.15s;
    text-decoration: none;
    display: block;
}

.tz-nav-links .nav a:hover {
    color: var(--tz-text);
    background: var(--tz-faint);
}

/* Ghost {{navigation}} in mobile drawer */
.tz-nav-drawer .nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tz-nav-drawer .nav li { list-style: none; }

.tz-nav-drawer .nav a {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--tz-text);
    padding: 14px 20px;
    border-bottom: 1px solid var(--tz-border);
    letter-spacing: 0.02em;
    transition: background 0.15s;
    text-decoration: none;
}

.tz-nav-drawer .nav a:hover { background: var(--tz-faint); }


.tz-footer {
    border-top: 1px solid var(--tz-border);
    padding: 32px 0;
    margin-top: auto;
}

.tz-footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--side-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.tz-footer-left {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--tz-muted);
    line-height: 1.5;
}

.tz-footer-left a { color: var(--tz-muted); transition: color 0.15s; }
.tz-footer-left a:hover { color: var(--tz-accent); }

.tz-footer-right {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.tz-footer-link {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--tz-muted);
    padding: 6px 10px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    text-decoration: none;
}

.tz-footer-link:hover { color: var(--tz-text); background: var(--tz-faint); }

.tz-footer-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    color: var(--tz-muted);
    background: none;
    border: none;
    transition: color 0.15s, background 0.15s;
    text-decoration: none;
}

.tz-footer-icon-btn:hover { color: var(--tz-text); background: var(--tz-faint); }

/* 19. Tag / Author archive pages
/* ---------------------------------------------------------- */
.tz-archive {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 48px var(--side-pad) 80px;
}

.tz-archive-header {
    padding-bottom: 40px;
    border-bottom: 1px solid var(--tz-border);
    margin-bottom: 48px;
}

.tz-archive-eyebrow {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--tz-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.tz-archive-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--tz-text);
    margin-bottom: 8px;
}

.tz-archive-desc {
    font-size: 1.6rem;
    color: var(--tz-muted);
    line-height: 1.6;
    max-width: 560px;
}

.tz-archive-meta {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--tz-muted);
    margin-top: 16px;
}

/* 20. Static pages (Privacy, Contact, Disclaimer)
/* ---------------------------------------------------------- */
.tz-page {
    max-width: var(--content-w);
    margin: 0 auto;
    padding: 48px var(--side-pad) 80px;
}

.tz-page-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--tz-text);
    margin-bottom: 8px;
}

.tz-page-updated {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--tz-muted);
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--tz-border);
}

.tz-page-content { margin-top: 32px; }

.tz-page-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--tz-text);
    margin: 32px 0 12px;
}

.tz-page-content p {
    font-size: 1.4rem;
    color: var(--tz-muted);
    line-height: 1.75;
    margin-bottom: 16px;
}

.tz-page-content a { color: var(--tz-accent); }
.tz-page-content a:hover { text-decoration: underline; }

/* 21. Pagination
/* ---------------------------------------------------------- */
.tz-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 0 0;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--tz-muted);
}

.tz-pagination a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--tz-border);
    border-radius: 6px;
    color: var(--tz-muted);
    transition: all 0.15s;
}

.tz-pagination a:hover {
    border-color: var(--tz-accent-mid);
    color: var(--tz-accent);
    background: var(--tz-accent-bg);
}

/* 21b. Error Page
/* ---------------------------------------------------------- */
.tz-error-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 80px var(--side-pad) 120px;
    text-align: center;
}

.tz-error-code {
    font-family: var(--font-mono);
    font-size: 8rem;
    font-weight: 700;
    color: var(--tz-border);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
}

.tz-error-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--tz-text);
    margin-bottom: 16px;
}

.tz-error-body {
    font-size: 1.6rem;
    color: var(--tz-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

.tz-error-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.tz-error-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--tz-accent);
    color: #fff;
    border-radius: 8px;
    padding: 12px 24px;
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s;
}

.tz-error-btn-primary:hover { opacity: 0.88; }

.tz-error-tags { text-align: center; }

.tz-error-tags-label {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--tz-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    display: block;
}

.tz-error-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

/* 21c. Private (Password) Page
/* ---------------------------------------------------------- */
.tz-private-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 80px var(--side-pad) 120px;
    text-align: center;
}

.tz-private-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--tz-accent-bg);
    border: 1px solid color-mix(in oklch, var(--tz-accent) 33%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--tz-accent);
}

.tz-private-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--tz-text);
    margin-bottom: 12px;
}

.tz-private-body {
    font-size: 1.5rem;
    color: var(--tz-muted);
    line-height: 1.65;
    margin-bottom: 32px;
}

.tz-private-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
    margin: 0 auto;
}

.tz-private-input {
    background: var(--tz-surface);
    border: 1px solid var(--tz-border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1.5rem;
    color: var(--tz-text);
    font-family: var(--font-sans);
    outline: none;
    text-align: center;
    letter-spacing: 0.05em;
    transition: border-color 0.15s;
}

.tz-private-input:focus { border-color: var(--tz-accent); }
.tz-private-input::placeholder { color: var(--tz-muted); letter-spacing: 0; }

.tz-private-btn {
    background: var(--tz-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.tz-private-btn:hover { opacity: 0.88; }

.tz-private-error {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: #f87171;
    margin-top: 4px;
}

/* 22. Reading Progress Bar
/* ---------------------------------------------------------- */
.tz-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--tz-accent);
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
    border-radius: 0 2px 2px 0;
}

/* 22b. Related posts section
/* ---------------------------------------------------------- */
.tz-related-section {
    border-top: 1px solid var(--tz-border);
    padding: 48px 0;
}

.tz-related-heading {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--tz-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
}

/* 22c. Utility
/* ---------------------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* 23. Responsive
/* ---------------------------------------------------------- */
@media (max-width: 1100px) {
    .tz-post-layout {
        grid-template-columns: 1fr 200px;
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .tz-post-layout {
        grid-template-columns: 1fr;
    }

    .tz-toc { display: none; }

    .tz-feed-grid.is-compact { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
    :root { --side-pad: 16px; }

    .tz-logo-text-desktop { display: none; }
    .tz-logo-text-mobile  { display: block; }

    .tz-nav-links,
    .tz-nav-actions { display: none; }

    .tz-nav-burger { display: flex; }

    .tz-nav-drawer.is-open { display: block; }

    .tz-hero-image-wrap { height: 200px; margin-bottom: 20px; }
    .tz-hero-title { font-size: 2.2rem; }
    .tz-hero-excerpt { display: none; }

    .tz-hero-minimal .tz-hero-title { font-size: 2.6rem; }

    .tz-feed-grid {
        grid-template-columns: 1fr;
    }

    .tz-feed-grid.is-compact { grid-template-columns: 1fr; }

    .tz-feed-header { flex-direction: column; align-items: flex-start; }

    .tz-newsletter { padding: 24px 20px; }
    .tz-newsletter-form { flex-direction: column; }

    .tz-article-title { font-size: 2.4rem; }
    .tz-article-excerpt { font-size: 1.5rem; }

    .tz-paywall { padding: 28px 20px; }
    .tz-paywall-plans { flex-direction: column; }

    .tz-breadcrumb-current { display: none; }

    .tz-search-overlay { padding-top: 40px; }
    .tz-search-panel { margin: 0 12px; }

    .tz-footer-inner { flex-direction: column; align-items: flex-start; }

    .tz-archive-title { font-size: 2.4rem; }

    .tz-ad-leaderboard { height: auto; min-height: 60px; }
}

/* ============================================================
   Cookie Consent Banner
   ============================================================ */
.tz-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: var(--tz-surface);
    border-top: 1px solid var(--tz-border);
    padding: 14px 24px;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.14);
}

.tz-cookie-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.tz-cookie-text {
    font-size: 1.3rem;
    color: var(--tz-muted);
    margin: 0;
    flex: 1;
    min-width: 200px;
    line-height: 1.5;
}

.tz-cookie-link {
    color: var(--tz-accent);
    text-decoration: underline;
}

.tz-cookie-btn {
    background: var(--tz-accent);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 22px;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

.tz-cookie-btn:hover { opacity: 0.85; }

/* ============================================================
   Transcript Sections (auto-collapsed by JS)
   ============================================================ */
.tz-transcript-section {
    background: var(--tz-surface);
    border: 1px solid var(--tz-border);
    border-radius: 10px;
    margin: 32px 0;
    overflow: hidden;
}

.tz-transcript-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--tz-text);
    text-align: left;
    transition: background 0.15s;
}

.tz-transcript-toggle:hover {
    background: var(--tz-accent-bg);
}

.tz-transcript-chevron {
    flex-shrink: 0;
    color: var(--tz-muted);
    transition: transform 0.2s ease;
}

.tz-transcript-body {
    padding: 0 24px 28px;
    font-size: 1.5rem;
    line-height: 1.85;
    color: var(--tz-muted);
    max-height: 520px;
    overflow-y: auto;
    border-top: 1px solid var(--tz-border);
    padding-top: 20px;
}

.tz-transcript-body p { margin-bottom: 1.4em; }
.tz-transcript-body p:last-child { margin-bottom: 0; }

/* Scrollbar styling for transcript */
.tz-transcript-body::-webkit-scrollbar { width: 6px; }
.tz-transcript-body::-webkit-scrollbar-track { background: transparent; }
.tz-transcript-body::-webkit-scrollbar-thumb {
    background: var(--tz-border);
    border-radius: 3px;
}

/* ============================================================
   Legal Footer Row
   ============================================================ */
.tz-footer-legal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 32px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-top: 1px solid var(--tz-border);
    font-size: 1.2rem;
    color: var(--tz-muted);
}

.tz-footer-legal a {
    color: var(--tz-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.tz-footer-legal a:hover { color: var(--tz-text); }

.tz-footer-legal-note {
    font-size: 1.1rem;
    opacity: 0.7;
}

@media (max-width: 600px) {
    .tz-footer-legal { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 20px 16px; }
    .tz-cookie-inner { flex-direction: column; align-items: flex-start; }
    .tz-cookie-btn { width: 100%; text-align: center; }
}

/* ============================================================
   Video Embed — prominence boost
   ============================================================ */
/* Add a subtle label above YouTube embeds */
.kg-embed-card + .kg-embed-card { margin-top: 24px; }

.tz-article-content .kg-embed-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    margin: 32px 0;
}

.tz-article-content .kg-embed-card iframe {
    display: block;
    border-radius: 0;
}

/* ============================================================
   Print Styles (improves AdSense compliance + usability)
   ============================================================ */
@media print {
    .tz-nav,
    .tz-footer,
    .tz-toc,
    .tz-share,
    .tz-ad-wrap,
    .tz-cookie-banner,
    .tz-progress-bar,
    .tz-related-section { display: none !important; }

    .tz-post-layout { display: block !important; }
    .tz-article-content { max-width: 100% !important; font-size: 12pt; line-height: 1.6; }
    .tz-article-title { font-size: 22pt; }
    .tz-transcript-body { max-height: none !important; overflow: visible !important; }
    .tz-transcript-body[hidden] { display: block !important; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
    a[href^="#"]::after,
    a[href^="javascript"]::after { content: ""; }
}

/* ============================================================
   Homepage Feature Section (page slug: homepage-feature)
   ============================================================ */
.tz-homepage-feature {
    margin-bottom: 48px;
}

.tz-homepage-feature-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 32px var(--gap);
    background: var(--tz-surface);
    border: 1px solid var(--tz-border);
    border-radius: 16px;
}

/* ── Video / embed ── */
.tz-homepage-feature-inner .kg-embed-card {
    margin: 0 0 24px;
    width: 100%;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 40px rgba(0,0,0,0.28);
}

/* Make iframes properly responsive — override Ghost's inline width/height */
.tz-homepage-feature-inner .kg-embed-card iframe {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 12px;
}

/* ── Image ── */
.tz-homepage-feature-inner .kg-image-card {
    margin: 0 0 24px;
    border-radius: 12px;
    overflow: hidden;
}

.tz-homepage-feature-inner .kg-image-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Text ── */
.tz-homepage-feature-inner p {
    font-size: 1.6rem;
    color: var(--tz-muted);
    line-height: 1.75;
    margin: 0 0 14px;
}

.tz-homepage-feature-inner p:last-child { margin-bottom: 0; }

.tz-homepage-feature-inner h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--tz-text);
    letter-spacing: -0.02em;
    margin: 0 0 10px;
    line-height: 1.2;
}

.tz-homepage-feature-inner h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--tz-text);
    margin: 0 0 8px;
}

/* ── Callout / other cards ── */
.tz-homepage-feature-inner .kg-callout-card {
    border-radius: 10px;
    margin: 0 0 20px;
}

/* ── Two-column layout: JS wraps all text into .tz-feature-text ── */
.tz-homepage-feature-inner.has-video-and-text {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* Video/embed takes ~60% of the width */
.tz-homepage-feature-inner.has-video-and-text .kg-embed-card,
.tz-homepage-feature-inner.has-video-and-text .kg-video-card,
.tz-homepage-feature-inner.has-video-and-text .kg-image-card {
    flex: 0 0 58%;
    max-width: 58%;
    margin: 0;
}

/* Text column takes the remaining space */
.tz-feature-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tz-feature-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--tz-text);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0;
}

.tz-feature-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--tz-text);
    line-height: 1.3;
    margin: 0;
}

.tz-feature-text p {
    font-size: 1.55rem;
    color: var(--tz-muted);
    line-height: 1.75;
    margin: 0;
}

.tz-feature-text a {
    color: var(--tz-accent);
    text-decoration: underline;
}

/* ── Divider before article grid ── */
.tz-homepage-feature + .tz-feed-header {
    border-top: 1px solid var(--tz-border);
    padding-top: 40px;
    margin-top: 0;
}

@media (max-width: 900px) {
    .tz-homepage-feature-inner.has-video-and-text {
        flex-direction: column;
    }
    .tz-homepage-feature-inner.has-video-and-text .kg-embed-card,
    .tz-homepage-feature-inner.has-video-and-text .kg-video-card,
    .tz-homepage-feature-inner.has-video-and-text .kg-image-card {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .tz-homepage-feature { margin-bottom: 32px; }
    .tz-homepage-feature-inner { padding: 24px 20px; border-radius: 12px; }
    .tz-homepage-feature-inner p { font-size: 1.5rem; }
    .tz-homepage-feature-inner .kg-embed-card { margin: 0 0 20px; }
}
