/* LinkPulse Blog Styles */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---- Theme: Night (default) ---- */
:root, :root[data-theme="night"] {
    --bg: #0a0a18;
    --surface: #111125;
    --surface2: #181830;
    --border: #1e1e38;
    --text: #e8e8f0;
    --muted: #7a7a96;
    --accent: #ff6b2b;
    --accent-glow: rgba(255, 107, 43, 0.12);
    --green: #22c55e;
    --red: #ef4444;
    --yellow: #eab308;
    --gradient-a: rgba(79, 70, 180, 0.15);
    --gradient-b: rgba(30, 60, 160, 0.12);
}

/* ---- Theme: Day ---- */
:root[data-theme="day"] {
    --bg: #faf8f4;
    --surface: #ffffff;
    --surface2: #f5f3ee;
    --border: #e5e2da;
    --text: #1a1a2e;
    --muted: #6b6b80;
    --accent: #e8571a;
    --accent-glow: rgba(232, 87, 26, 0.08);
    --green: #16a34a;
    --red: #dc2626;
    --yellow: #ca8a04;
    --gradient-a: rgba(255, 220, 180, 0.3);
    --gradient-b: rgba(255, 200, 140, 0.15);
}

/* ---- Theme: Dusk ---- */
:root[data-theme="dusk"] {
    --bg: #161822;
    --surface: #1c1f2e;
    --surface2: #222538;
    --border: #2c3048;
    --text: #e0e2ec;
    --muted: #808498;
    --accent: #ff6b2b;
    --accent-glow: rgba(255, 107, 43, 0.10);
    --green: #22c55e;
    --red: #ef4444;
    --yellow: #eab308;
    --gradient-a: rgba(100, 80, 150, 0.10);
    --gradient-b: rgba(60, 80, 130, 0.08);
}

/* ---- Auto-detect ---- */
@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        --bg: #faf8f4; --surface: #ffffff; --surface2: #f5f3ee; --border: #e5e2da;
        --text: #1a1a2e; --muted: #6b6b80; --accent: #e8571a;
        --accent-glow: rgba(232, 87, 26, 0.08); --green: #16a34a; --red: #dc2626;
        --yellow: #ca8a04; --gradient-a: rgba(255, 220, 180, 0.3); --gradient-b: rgba(255, 200, 140, 0.15);
    }
}

/* ---- Base ---- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background 0.5s ease, color 0.5s ease;
}

.w { max-width: 880px; margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Ambient Gradient ---- */
.ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 600px;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse 80% 50% at 30% 10%, var(--gradient-a), transparent),
                radial-gradient(ellipse 60% 40% at 70% 20%, var(--gradient-b), transparent);
    transition: background 0.5s ease;
}

/* ---- Nav ---- */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    position: relative;
    z-index: 10;
}

.top-nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links { list-style: none; display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.active { color: var(--text); }

/* ---- Logo ---- */
.logo {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    line-height: 1;
    transition: color 0.5s ease;
}
.logo:hover { text-decoration: none; }
.logo-text span { color: var(--accent); transition: color 0.5s ease; position: relative; }

.logo-pulse-line {
    display: block;
    width: 36px;
    height: 6px;
    position: absolute;
    bottom: -5px;
    left: 0;
    overflow: visible;
}

.logo-pulse-line .pulse-path {
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    transition: stroke 0.5s ease;
}

@keyframes ecgPulse {
    0% { stroke-dashoffset: 60; opacity: 0.3; }
    40% { stroke-dashoffset: 0; opacity: 1; }
    70% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: -60; opacity: 0.3; }
}

.logo-pulse-line .pulse-path {
    animation: ecgPulse 4s ease-in-out infinite;
}

/* ---- Theme Toggle (detached top-right) ---- */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 50;
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px;
    gap: 2px;
    transition: background 0.5s ease, border-color 0.5s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.theme-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
}

.theme-btn svg { width: 16px; height: 16px; }
.theme-btn:hover { color: var(--text); }
.theme-btn.active { background: var(--text); color: var(--bg); }

@media (max-width: 1099px) {
    .theme-toggle {
        position: static;
        box-shadow: none;
    }
}
@media (max-width: 768px) {
    .theme-toggle { display: none; }
}

/* ---- Login + Get started (nav buttons) ---- */
.nav-login {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.2s, background 0.2s;
    white-space: nowrap;
}
.nav-login:hover {
    border-color: var(--text);
    background: var(--surface2);
    text-decoration: none;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--text);
    color: var(--bg);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
}
.btn-nav:hover { opacity: 0.9; text-decoration: none; transform: translateY(-1px); }

/* ---- Blog Index ---- */
.blog-header {
    padding: 80px 0 48px;
}

.blog-header h1 {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.15;
}

.blog-header p {
    color: var(--muted);
    font-size: 18px;
    margin-top: 12px;
    line-height: 1.6;
}

.article-grid {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 80px;
}

.article-card {
    display: block;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    transition: border-color 0.5s ease;
}

.article-card:first-child {
    border-top: 1px solid var(--border);
}

.article-card:hover {
    text-decoration: none;
}

.article-card h2 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.article-card:hover h2 {
    color: var(--accent);
}

.article-card .excerpt {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.article-card .meta {
    color: var(--muted);
    font-size: 13px;
}

/* ---- Article Page ----
   Three-column layout: 220px TOC | 680px content | 300px aside (newsletter +
   product CTA). At <1100px the TOC drops out; at <900px the right sidebar
   drops out and the inline-fallback newsletter renders at the top of the
   article body. Sticky positioning keeps both rails visible while reading. */
.article-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 680px) 300px;
    gap: 48px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    align-items: start;
}
.article-layout > .article-page,
.article-layout > main { min-width: 0; }

/* Left rail — sticky table of contents auto-built from h2/h3s. */
.article-toc {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 24px 0 24px 0;
    font-size: 13px;
    line-height: 1.5;
}
.article-toc-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-bottom: 12px;
}
.article-toc ul { list-style: none; padding: 0; margin: 0; }
.article-toc li { margin: 0; }
.article-toc a {
    display: block;
    padding: 6px 12px 6px 12px;
    border-left: 2px solid transparent;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s;
}
.article-toc a:hover { color: var(--text); }
.article-toc a.is-active {
    color: var(--text);
    border-left-color: var(--accent);
}

/* Right rail — persistent newsletter signup + product CTA. */
.article-aside {
    position: sticky;
    top: 24px;
    padding-top: 24px;
}
.aside-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: background 0.5s ease, border-color 0.5s ease;
}
.aside-card-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}
.aside-card h4 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
    color: var(--text);
}
.aside-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0 0 14px;
}
.aside-card .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}
.aside-card .newsletter-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
}
.aside-card .newsletter-input:focus {
    outline: 2px solid var(--accent);
    outline-offset: -1px;
    border-color: transparent;
}
.aside-card .newsletter-cta {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: filter 0.15s;
}
.aside-card .newsletter-cta:hover { filter: brightness(1.1); }
.aside-card .newsletter-cta[disabled] { opacity: 0.6; cursor: wait; }
.aside-card .newsletter-msg { margin-top: 10px; font-size: 12px; color: var(--muted); }
.aside-card .newsletter-msg.success { color: var(--green); }
.aside-card .newsletter-msg.error { color: var(--red); }
.aside-card .aside-fineprint {
    font-size: 11px;
    color: var(--muted);
    margin-top: 8px;
    line-height: 1.4;
}

/* Secondary aside card — product CTA below the newsletter signup. */
.aside-card.aside-card-cta {
    text-align: left;
}
.aside-card.aside-card-cta a {
    display: inline-block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}
.aside-card.aside-card-cta a:hover { text-decoration: underline; }

/* Article header / body inside the layout shrinks to the column width
   (overrides the 680px max-width set on those rules globally). */
.article-layout .article-header { max-width: none; padding-top: 24px; }
.article-layout .article-body  { max-width: none; }

/* Inline fallback newsletter — hidden on desktop+tablet (the right rail has
   it), shown at the TOP of the article body on mobile so a Subscribe button
   is visible above the fold without scrolling past the article. */
.article-newsletter-fallback { display: none; }

.article-page {
    position: relative;
    z-index: 1;
}

.article-header {
    padding: 60px 0 40px;
    max-width: 680px;
}

.back-link {
    color: var(--muted);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text);
    text-decoration: none;
}

.article-header h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.article-meta {
    color: var(--muted);
    font-size: 14px;
    margin-top: 16px;
}

.article-body {
    max-width: 680px;
    padding-bottom: 48px;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 48px 0 16px;
    letter-spacing: -0.3px;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 36px 0 12px;
}

.article-body p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text);
    transition: color 0.5s ease;
}

.article-body ul, .article-body ol {
    margin: 0 0 20px 24px;
}

.article-body li {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 8px;
    color: var(--text);
}

.article-body strong {
    font-weight: 600;
}

.article-body code {
    background: var(--surface);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 15px;
    border: 1px solid var(--border);
    transition: background 0.5s ease, border-color 0.5s ease;
}

.article-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---- Article CTA ---- */
.article-cta {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 64px;
    text-align: center;
    background: var(--surface);
    transition: background 0.5s ease, border-color 0.5s ease;
}

.article-cta h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.article-cta p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.article-cta .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: filter 0.2s, transform 0.15s;
}

.article-cta .cta-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    text-decoration: none;
}

/* ---- Visual Components ---- */

/* Big stat callout */
.v-stat {
    text-align: center;
    padding: 40px 24px;
    margin: 40px 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: background 0.5s ease, border-color 0.5s ease;
}
.v-stat .number {
    font-size: 56px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -2px;
}
.v-stat .label {
    font-size: 15px;
    color: var(--muted);
    margin-top: 10px;
    line-height: 1.5;
}
.v-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 40px 0;
}
.v-stat-row .v-stat { margin: 0; padding: 28px 16px; }
.v-stat-row .v-stat .number { font-size: 36px; }

/* Flow chain diagram */
.v-chain {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    margin: 40px 0;
    padding: 28px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow-x: auto;
    transition: background 0.5s ease, border-color 0.5s ease;
}
.v-chain-step {
    padding: 10px 16px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.5s ease, border-color 0.5s ease;
}
.v-chain-arrow {
    flex-shrink: 0;
    padding: 0 4px;
    color: var(--muted);
    transition: color 0.5s ease;
}
.v-chain-arrow svg { display: block; }
.v-chain-step.danger {
    border-color: var(--red);
    color: var(--red);
}
.v-chain-note {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-top: -28px;
    padding: 8px 0 0;
    margin-bottom: 40px;
}

/* Horizontal bar chart */
.v-bars {
    margin: 40px 0;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: background 0.5s ease, border-color 0.5s ease;
}
.v-bars h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-bottom: 20px;
}
.v-bar {
    margin-bottom: 16px;
}
.v-bar:last-child { margin-bottom: 0; }
.v-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
    margin-bottom: 6px;
}
.v-bar-header .name { font-weight: 500; }
.v-bar-header .pct { color: var(--accent); font-weight: 700; font-size: 15px; }
.v-bar-track {
    height: 6px;
    background: var(--surface2);
    border-radius: 3px;
    overflow: hidden;
}
.v-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
}

/* Comparison columns */
.v-compare {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 40px 0;
}
.v-compare-col {
    padding: 24px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
    transition: background 0.5s ease, border-color 0.5s ease;
}
.v-compare-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-bottom: 12px;
}
.v-compare-col .impact {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1;
}
.v-compare-col .desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}
.v-compare-col.good .impact { color: var(--green); }
.v-compare-col.bad .impact { color: var(--red); }

/* Callout box */
.v-callout {
    padding: 24px 28px;
    margin: 40px 0;
    background: var(--accent-glow);
    border: 1px solid var(--accent);
    border-radius: 10px;
    transition: background 0.5s ease;
}
.v-callout p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 0 !important;
    color: var(--text);
}

/* Example box */
.v-example {
    padding: 28px;
    margin: 40px 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: background 0.5s ease, border-color 0.5s ease;
}
.v-example h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-bottom: 16px;
}
.v-example .row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
}
.v-example .row:last-child { border-bottom: none; }
.v-example .row .val { font-weight: 600; }
.v-example .row.total { color: var(--accent); font-weight: 600; }
.v-example .row.total .val { font-size: 18px; }

/* Stack diagram */
.v-stack {
    margin: 40px 0;
}
.v-stack-layer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: -1px;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.5s ease, border-color 0.5s ease;
}
.v-stack-layer:first-child { border-radius: 10px 10px 0 0; }
.v-stack-layer:last-child { border-radius: 0 0 10px 10px; }
.v-stack-layer .tools {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}
.v-stack-layer.gap {
    border-color: var(--accent);
    border-style: dashed;
    background: var(--accent-glow);
    color: var(--accent);
    font-weight: 600;
}

/* Pull quote */
.v-quote {
    margin: 48px 0;
    padding: 28px 0;
    text-align: center;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.3px;
    color: var(--text);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: border-color 0.5s ease;
}

/* Checklist */
.v-checklist {
    margin: 40px 0;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: background 0.5s ease, border-color 0.5s ease;
}
.v-checklist h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-bottom: 16px;
}
.v-check-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    line-height: 1.5;
    border-bottom: 1px solid var(--border);
}
.v-check-item:last-child { border-bottom: none; }
.v-check-item .mark { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; }
.v-check-item .mark svg { width: 18px; height: 18px; }
.v-check-item .mark.no { color: var(--red); }
.v-check-item .mark.yes { color: var(--green); }

/* Responsive visual components */
@media (max-width: 768px) {
    .v-stat .number { font-size: 40px; }
    .v-stat-row { grid-template-columns: 1fr; }
    .v-compare { grid-template-columns: 1fr; }
    .v-chain { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
    .v-example .row { font-size: 14px; }
}

/* ---- Footer ---- */
footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.5s ease, color 0.5s ease;
    margin-bottom: 24px;
}

footer nav { display: flex; gap: 24px; }
footer nav a { color: var(--muted); font-size: 13px; transition: color 0.2s; white-space: nowrap; }
footer nav a:hover { color: var(--text); }

/* ---- Responsive ---- */

/* <1100px: drop the TOC, content keeps the right newsletter rail. */
@media (max-width: 1100px) {
    .article-layout {
        grid-template-columns: minmax(0, 680px) 300px;
        max-width: 1024px;
    }
    .article-toc { display: none; }
}

/* <900px: drop the right rail, render the inline fallback newsletter at the
   top of the article body so a subscribe button is visible above the fold. */
@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: minmax(0, 1fr);
        max-width: 720px;
        gap: 0;
    }
    .article-aside { display: none; }
    .article-newsletter-fallback {
        display: block;
        margin: 8px 0 28px;
        padding: 18px 20px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 12px;
    }
    .article-newsletter-fallback .aside-card-eyebrow {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-weight: 700;
        color: var(--accent);
        margin-bottom: 6px;
    }
    .article-newsletter-fallback h4 {
        font-size: 17px; font-weight: 700; margin: 0 0 6px; line-height: 1.3;
    }
    .article-newsletter-fallback p {
        font-size: 14px; color: var(--muted); margin: 0 0 12px; line-height: 1.5;
    }
    .article-newsletter-fallback .newsletter-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
    .article-newsletter-fallback .newsletter-input {
        flex: 1 1 220px; padding: 11px 14px; font-size: 14px;
        border: 1px solid var(--border); border-radius: 8px;
        background: var(--bg); color: var(--text); font-family: inherit;
    }
    .article-newsletter-fallback .newsletter-cta {
        padding: 11px 20px; font-size: 14px; font-weight: 600;
        background: var(--accent); color: #fff; border: 0; border-radius: 8px;
        cursor: pointer; font-family: inherit;
    }
    .article-newsletter-fallback .newsletter-msg {
        margin: 8px 0 0; font-size: 12px; color: var(--muted); width: 100%;
    }
    .article-newsletter-fallback .newsletter-msg.success { color: var(--green); }
    .article-newsletter-fallback .newsletter-msg.error { color: var(--red); }
}

@media (max-width: 768px) {
    .blog-header { padding: 48px 0 32px; }
    .blog-header h1 { font-size: 32px; }
    .article-header { padding: 36px 0 28px; }
    .article-header h1 { font-size: 30px; }
    .article-card h2 { font-size: 19px; }
    .nav-links { display: none; }
    .nav-login, .btn-nav { padding: 6px 12px; font-size: 13px; }
    footer { flex-direction: column; gap: 12px; text-align: center; }
}
