/* ══════════ SEO Resource Pages — Clean Style ══════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #fff; color: #374151;
    -webkit-font-smoothing: antialiased;
    line-height: 1.7; font-size: 16px;
}
a { color: #4361ee; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── Nav ── */
.seo-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb; padding: 14px 0;
}
.seo-nav .wrap {
    max-width: 1120px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.seo-nav .logo {
    font-weight: 800; font-size: 18px; color: #111827;
    display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.seo-nav .logo:hover { text-decoration: none; }
.seo-nav .logo img { width: 32px; height: 32px; border-radius: 8px; }
.seo-nav .nav-links {
    display: flex; align-items: center; gap: 24px;
}
.seo-nav .nav-links a {
    font-size: 14px; font-weight: 500; color: #6b7280; text-decoration: none;
}
.seo-nav .nav-links a:hover { color: #111827; text-decoration: none; }
.seo-nav .lang-picker { position: relative; }
.seo-nav .lang-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid #d1d5db; color: #374151;
    font-size: 14px; font-weight: 600; padding: 9px 14px;
    border-radius: 10px; cursor: pointer;
}
.seo-nav .lang-btn:hover { border-color: #9ca3af; }
.seo-nav .lang-btn svg { flex-shrink: 0; }
.seo-nav .lang-dropdown {
    display: none; position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 220px; background: #fff; border: 1px solid #e5e7eb;
    border-radius: 14px; box-shadow: 0 20px 40px rgba(17,24,39,0.12);
    padding: 8px; z-index: 120;
}
.seo-nav .lang-picker.open .lang-dropdown { display: block; }
.seo-nav .lang-dropdown a {
    display: block; padding: 10px 12px; border-radius: 10px;
    color: #374151; font-size: 14px; font-weight: 500;
}
.seo-nav .lang-dropdown a:hover { background: #f9fafb; text-decoration: none; }
.seo-nav .lang-dropdown a.lang-active {
    color: #4361ee; background: rgba(67,97,238,0.06); font-weight: 600;
}
.seo-nav .cta {
    background: #4361ee; color: #fff; font-weight: 600; font-size: 14px;
    padding: 10px 22px; border-radius: 10px; text-decoration: none;
    transition: background .2s;
}
.seo-nav .cta:hover { background: #3651d4; text-decoration: none; }

/* ── Article container ── */
article {
    max-width: 720px; margin: 0 auto; padding: 48px 24px 80px;
}

/* ── Breadcrumb ── */
.breadcrumb {
    font-size: 13px; color: #9ca3af; margin-bottom: 28px;
}
.breadcrumb a { color: #6b7280; text-decoration: none; }
.breadcrumb a:hover { color: #4361ee; text-decoration: underline; }

/* ── Article badge ── */
.article-badge {
    display: inline-block; font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 4px 12px; border-radius: 6px;
    margin-bottom: 16px;
}
.badge-article { background: #dbeafe; color: #2563eb; }
.badge-guide { background: #d1fae5; color: #059669; }
.badge-comparison { background: #ede9fe; color: #7c3aed; }

/* ── Title ── */
article h1 {
    font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: #111827;
    line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.5px;
}

/* ── Meta ── */
.meta {
    font-size: 14px; color: #9ca3af; margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}

/* ── Intro / description ── */
.intro {
    font-size: 17px; color: #6b7280; line-height: 1.7;
    border-left: 3px solid #4361ee; padding-left: 16px;
    margin-bottom: 32px; font-style: italic;
}

/* ── Table of Contents ── */
.toc {
    background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 24px 28px; margin-bottom: 36px;
}
.toc h4 {
    font-size: 13px; font-weight: 700; color: #111827; margin-bottom: 12px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.toc ol { margin: 0 0 0 20px; }
.toc li { font-size: 14px; margin-bottom: 6px; line-height: 1.5; }
.toc a { color: #4361ee; text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ── Headings ── */
article h2 {
    font-size: 26px; font-weight: 800; color: #111827;
    margin: 48px 0 16px; letter-spacing: -0.3px;
    scroll-margin-top: 80px;
}
article h3 {
    font-size: 20px; font-weight: 700; color: #111827;
    margin: 36px 0 12px;
    scroll-margin-top: 80px;
}

/* ── Body text ── */
article p { margin-bottom: 18px; font-size: 16px; line-height: 1.75; }
article ul, article ol { margin: 0 0 18px 24px; font-size: 16px; line-height: 1.75; }
article li { margin-bottom: 8px; }
article strong { color: #111827; font-weight: 600; }
article blockquote {
    border-left: 3px solid #e5e7eb; padding-left: 16px;
    color: #6b7280; font-style: italic; margin: 24px 0;
}

/* ── CTA box (blue gradient banner like ReSubs) ── */
.cta-box {
    background: linear-gradient(135deg, #4361ee, #6366f1);
    border: none; border-radius: 14px;
    padding: 22px 28px; margin: 48px 0;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px;
}
.cta-box h3 {
    font-size: 17px; font-weight: 700; color: #fff; margin: 0 0 4px 0;
}
.cta-box p {
    color: rgba(255,255,255,0.8); margin: 0; font-size: 14px;
}
.cta-box a { display: inline-block; flex-shrink: 0; }
.cta-box a:hover { text-decoration: none; opacity: 0.9; }
.cta-box img { height: 40px; }
@media (max-width: 600px) {
    .cta-box { flex-direction: column; text-align: center; }
}

/* ── Stat cards ── */
.stat-card {
    background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px;
    padding: 24px; text-align: center; margin: 24px 0;
}
.stat-card .stat-number {
    font-size: 48px; font-weight: 800; color: #111827;
    line-height: 1; margin-bottom: 8px;
}
.stat-card .stat-desc { font-size: 15px; color: #6b7280; }
.stat-card .stat-source { font-size: 12px; color: #9ca3af; margin-top: 8px; }

/* ── Hero visual / editorial panel ── */
.hero-visual {
    margin: 28px 0 32px;
    padding: 28px;
    border-radius: 18px;
    border: 1px solid #dbeafe;
    background:
        radial-gradient(circle at top left, rgba(67,97,238,0.16), transparent 34%),
        radial-gradient(circle at bottom right, rgba(16,185,129,0.12), transparent 32%),
        linear-gradient(135deg, #f8fbff, #f8fafc 58%, #f5fff9);
}
.hero-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #4361ee;
    margin-bottom: 10px;
}
.hero-visual h3 {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin: 0 0 8px 0;
}
.hero-visual p {
    font-size: 15px;
    color: #4b5563;
    margin: 0 0 16px 0;
}
.hero-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.hero-tile {
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(219,234,254,0.9);
    border-radius: 14px;
    padding: 16px;
}
.hero-value {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    margin-bottom: 6px;
}
.hero-label {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}
.hero-source {
    margin-top: 12px;
    font-size: 11px;
    color: #94a3b8;
}

/* ── Stat strip ── */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0 8px;
}
.stat-pill {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 16px;
}
.stat-pill-number {
    font-size: 30px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    margin-bottom: 6px;
}
.stat-pill-label {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}
.stat-strip-source {
    font-size: 11px;
    color: #9ca3af;
    text-align: right;
    margin-bottom: 16px;
}

/* ── Framework cards ── */
.framework {
    margin: 32px 0;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f9fafb;
}
.framework-kicker {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #0f766e;
    margin-bottom: 8px;
}
.framework h3 {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px 0;
}
.framework > p {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 16px 0;
}
.framework-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.framework-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
}
.framework-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #4361ee;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}
.framework-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
}
.framework-card p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* ── Chart / Visual panel ── */
.chart-panel {
    margin: 30px 0;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.chart-panel-head {
    margin-bottom: 16px;
}
.chart-panel-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #4361ee;
    margin-bottom: 8px;
}
.chart-panel-head h3 {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 6px 0;
}
.chart-panel-head p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}
.chart-panel-source {
    margin-top: 12px;
    font-size: 11px;
    color: #94a3b8;
}

/* ── Savings math / before-after cost compare ── */
.savings-math {
    margin: 30px 0;
    padding: 24px;
    border-radius: 18px;
    border: 1px solid #dbeafe;
    background:
        radial-gradient(circle at top left, rgba(67,97,238,0.12), transparent 34%),
        linear-gradient(135deg, #f8fbff, #f8fafc);
}
.savings-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #2563eb;
    margin-bottom: 8px;
}
.savings-math h3 {
    font-size: 24px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px 0;
}
.savings-math > p {
    font-size: 15px;
    color: #4b5563;
    margin: 0 0 16px 0;
}
.savings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.1fr;
    gap: 14px;
}
.savings-card {
    background: rgba(255,255,255,0.86);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
}
.savings-card-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    margin-bottom: 8px;
}
.savings-card-value {
    font-size: 34px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    margin-bottom: 6px;
}
.savings-card p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}
.savings-highlight {
    background: linear-gradient(135deg, #111827, #334155);
    border-color: transparent;
}
.savings-highlight .savings-card-label,
.savings-highlight p {
    color: rgba(255,255,255,0.8);
}
.savings-highlight .savings-card-value {
    color: #fff;
}
.savings-source {
    margin-top: 12px;
    font-size: 11px;
    color: #94a3b8;
}

/* ── Scenario / rule grid ── */
.scenario-grid {
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.scenario-grid-head {
    grid-column: 1 / -1;
    margin-bottom: 4px;
}
.scenario-grid-head h3 {
    font-size: 22px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 6px 0;
}
.scenario-grid-head p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}
.scenario-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    background: #fff;
}
.scenario-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #7c3aed;
    margin-bottom: 10px;
}
.scenario-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
}
.scenario-card p {
    font-size: 14px;
    color: #4b5563;
    margin: 0 0 12px 0;
}
.scenario-card ul {
    margin: 0 0 0 18px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}
.scenario-card li {
    margin-bottom: 4px;
}

/* ── Timeline ── */
.timeline {
    margin: 28px 0;
    padding-left: 22px;
    border-left: 2px solid #dbeafe;
}
.timeline-item {
    position: relative;
    padding-bottom: 18px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: "";
    position: absolute;
    left: -29px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #4361ee;
    box-shadow: 0 0 0 4px #eff6ff;
}
.timeline-date {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #4361ee;
    margin-bottom: 4px;
}
.timeline-title {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}
.timeline-item p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* ── Audit table / worksheet ── */
.audit-table {
    margin: 28px 0;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
}
.audit-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(160px, 1.2fr) minmax(180px, 1.3fr);
}
.audit-row > div {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    line-height: 1.6;
}
.audit-row:last-child > div { border-bottom: none; }
.audit-head > div {
    background: #f9fafb;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #111827;
}

/* ── Methodology / source box ── */
.methodology-box {
    margin: 24px 0;
    padding: 20px 22px;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
}
.methodology-box h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #334155;
    margin: 0 0 8px 0;
}
.methodology-box p {
    font-size: 14px;
    color: #475569;
    margin: 0 0 10px 0;
}
.methodology-box ul {
    margin: 0 0 0 18px;
    font-size: 14px;
    color: #475569;
}
.methodology-box li { margin-bottom: 4px; }

/* ── Bar chart (CSS only) ── */
.bar-chart { margin: 28px 0; }
.bar-chart h4,
.pct-bars h4 {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 14px 0;
}
.bar-chart .bar-row {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.bar-chart .bar-label {
    font-size: 13px; font-weight: 500; color: #374151;
    min-width: 0; text-align: right;
}
.bar-chart .bar-track {
    min-width: 0;
    height: 28px;
    background: #f3f4f6;
    border-radius: 6px;
    overflow: hidden;
}
.bar-chart .bar-fill {
    height: 100%;
    max-width: 100%;
    border-radius: 6px;
    display: block;
    font-size: 0;
    color: transparent;
    transition: width 0.6s ease;
}
.bar-chart .bar-value {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
}
.bar-chart .bar-source {
    font-size: 11px; color: #9ca3af; margin-top: 8px; text-align: right;
}

/* ── Comparison table ── */
.compare-table-wrap {
    margin: 28px 0;
    overflow-x: auto;
    border-radius: 12px;
}
.compare-table-wrap .compare-table {
    margin: 0;
    min-width: 560px;
}
.compare-table {
    width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 14px;
    border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden;
}
.compare-table th {
    background: #f9fafb; text-align: left; padding: 14px 16px;
    border-bottom: 2px solid #e5e7eb; font-weight: 700; color: #111827;
    font-size: 13px;
}
.compare-table td {
    padding: 12px 16px; border-bottom: 1px solid #f3f4f6;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: #f9fafb; }
.check { color: #10b981; font-weight: 700; }
.cross { color: #ef4444; }

/* ── TL;DR Callout Box ── */
.tldr {
    background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 12px;
    padding: 20px 24px; margin: 28px 0;
}
.tldr-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.8px; color: #0284c7; margin-bottom: 8px;
}
.tldr p {
    font-size: 15px; color: #374151; line-height: 1.65; margin: 0;
}
.tldr ul {
    margin: 8px 0 0 18px; font-size: 15px; color: #374151; line-height: 1.65;
}
.tldr li { margin-bottom: 4px; }

/* ── Pros / Cons Cards ── */
.pros-cons {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0;
}
.pros-card, .cons-card {
    border-radius: 12px; padding: 20px 22px;
    border: 1px solid #e5e7eb;
}
.pros-card { background: #f0fdf4; border-color: #bbf7d0; }
.cons-card { background: #fef2f2; border-color: #fecaca; }
.pros-card h4, .cons-card h4 {
    font-size: 13px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; margin: 0 0 10px 0;
}
.pros-card h4 { color: #16a34a; }
.cons-card h4 { color: #dc2626; }
.pros-card li, .cons-card li {
    font-size: 14px; line-height: 1.6; margin-bottom: 6px; color: #374151;
}
.pros-card ul, .cons-card ul { margin: 0 0 0 16px; }
@media (max-width: 600px) {
    .pros-cons { grid-template-columns: 1fr; }
}

/* ── Percentage Bars (compact) ── */
.pct-bars { margin: 28px 0; }
.pct-row {
    display: grid;
    grid-template-columns: minmax(150px, 240px) minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.pct-label {
    font-size: 13px; font-weight: 600; color: #374151;
    min-width: 0; text-align: right;
}
.pct-track {
    min-width: 0;
    height: 22px;
    background: #f3f4f6;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}
.pct-fill {
    height: 100%;
    max-width: 100%;
    border-radius: 6px;
    display: block;
    font-size: 0;
    color: transparent;
}
.pct-value {
    font-size: 11px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
}
.pct-note {
    font-size: 11px; color: #9ca3af; margin-top: 6px; text-align: right;
}
@media (max-width: 600px) {
    .pct-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 12px;
    }
    .pct-label {
        grid-column: 1 / -1;
        text-align: left;
        font-size: 12px;
    }
    .pct-note { text-align: left; }
}

/* ── Callout Box (info/warning/tip) ── */
.callout {
    border-radius: 12px; padding: 18px 22px; margin: 24px 0;
    font-size: 15px; line-height: 1.65;
}
.callout-info { background: #eff6ff; border-left: 4px solid #3b82f6; }
.callout-warn { background: #fffbeb; border-left: 4px solid #f59e0b; }
.callout-tip { background: #f0fdf4; border-left: 4px solid #10b981; }
.callout strong { display: block; margin-bottom: 4px; }
.callout p { margin: 0; }

/* ── Related articles ── */
.related {
    margin-top: 60px; padding: 32px;
    background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 16px;
}
.related h2,
.related h3,
.keep-reading h2 {
    font-size: 18px; font-weight: 700; color: #111827; margin: 0 0 16px 0;
}
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { margin-bottom: 10px; }
.related a {
    font-size: 15px; color: #4361ee; display: flex; align-items: center; gap: 6px;
}
.related ul a::before { content: "→"; color: #9ca3af; }
.related-grid,
.keep-reading-grid,
.keep-grid,
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.related-card,
.keep-card,
.card {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
}
.related-card:hover,
.keep-card:hover,
.card:hover {
    text-decoration: none;
    border-color: #dbeafe;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.related-badge,
.keep-badge,
.card-badge {
    display: inline-block;
    margin-bottom: 10px;
}
.related-card h3,
.related-card h4,
.keep-card h3,
.keep-card h4,
.card h3,
.card h4,
.related-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
    line-height: 1.45;
}
.related-card p,
.keep-card p,
.card p,
.related-copy {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 10px;
    line-height: 1.55;
}
.related-link,
.keep-link,
.keep-card .keep-link,
.card .keep-link,
.related-card .related-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #4361ee;
}

/* ── Footer ── */
.seo-footer,
.site-footer,
article + footer {
    border-top: 1px solid #e5e7eb;
    padding: 48px 0;
    margin-top: 0;
}
.seo-footer .wrap,
.site-footer .wrap,
article + footer .wrap,
.mega-footer .wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}
.seo-footer .footer-grid,
.site-footer .footer-grid,
article + footer .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.seo-footer .footer-brand,
.site-footer .footer-brand,
article + footer .footer-brand {
    min-width: 0;
}
.seo-footer .footer-brand .logo,
.site-footer .footer-brand .logo,
article + footer .footer-brand .logo,
.seo-footer .footer-logo,
.site-footer .footer-logo,
article + footer .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    color: #111827;
    text-decoration: none;
    margin-bottom: 8px;
}
.seo-footer .footer-brand .logo:hover,
.site-footer .footer-brand .logo:hover,
article + footer .footer-brand .logo:hover {
    text-decoration: none;
}
.seo-footer .footer-brand .logo img,
.site-footer .footer-brand .logo img,
article + footer .footer-brand .logo img,
.seo-footer .footer-logo img,
.site-footer .footer-logo img,
article + footer .footer-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}
.seo-footer .footer-brand p,
.site-footer .footer-brand p,
article + footer .footer-brand p,
.seo-footer .footer-grid > div:first-child p,
.site-footer .footer-grid > div:first-child p,
article + footer .footer-grid > div:first-child p {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    margin: 8px 0 16px;
}
.seo-footer .footer-brand .cta,
.site-footer .footer-brand .cta,
article + footer .footer-brand .cta {
    display: inline-block;
    background: none;
    padding: 0;
    border-radius: 0;
}
.seo-footer .footer-brand .cta img,
.site-footer .footer-brand .cta img,
article + footer .footer-brand .cta img {
    height: 40px;
    width: auto;
}
.seo-footer .footer-brand-title,
.site-footer .footer-brand-title,
article + footer .footer-brand-title {
    display: inline-block;
    font-size: 16px;
    color: #111827;
}
.seo-footer .footer-store-badge,
.site-footer .footer-store-badge,
article + footer .footer-store-badge {
    height: 40px;
    width: auto;
}
.seo-footer ul,
.site-footer ul,
article + footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.seo-footer li,
.site-footer li,
article + footer li {
    margin-bottom: 10px;
}
.seo-footer .footer-col h4,
.site-footer .footer-col h4,
article + footer .footer-col h4,
.seo-footer .footer-grid > div:not(:first-child) h4,
.site-footer .footer-grid > div:not(:first-child) h4,
article + footer .footer-grid > div:not(:first-child) h4,
.seo-footer .footer-links h4,
.site-footer .footer-links h4,
article + footer .footer-links h4,
.seo-footer .resources-footer h4,
.site-footer .resources-footer h4,
article + footer .resources-footer h4 {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.seo-footer .footer-col a,
.site-footer .footer-col a,
article + footer .footer-col a,
.seo-footer .footer-grid > div:not(:first-child) a,
.site-footer .footer-grid > div:not(:first-child) a,
article + footer .footer-grid > div:not(:first-child) a,
.seo-footer .footer-links a,
.site-footer .footer-links a,
article + footer .footer-links a,
.seo-footer .resources-footer a,
.site-footer .resources-footer a,
article + footer .resources-footer a {
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
    text-decoration: none;
    line-height: 1.5;
}
.seo-footer .footer-col a:hover,
.site-footer .footer-col a:hover,
article + footer .footer-col a:hover,
.seo-footer .footer-grid > div:not(:first-child) a:hover,
.site-footer .footer-grid > div:not(:first-child) a:hover,
article + footer .footer-grid > div:not(:first-child) a:hover,
.seo-footer .footer-links a:hover,
.site-footer .footer-links a:hover,
article + footer .footer-links a:hover,
.seo-footer .resources-footer a:hover,
.site-footer .resources-footer a:hover,
article + footer .resources-footer a:hover {
    color: #4361ee;
}
.seo-footer .footer-links,
.site-footer .footer-links,
article + footer .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.seo-footer .footer-bottom,
.site-footer .footer-bottom,
article + footer .footer-bottom {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}
.seo-footer .resources-footer,
.site-footer .resources-footer,
article + footer .resources-footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1.1fr;
    gap: 48px;
    align-items: start;
}
.seo-footer .view-all,
.site-footer .view-all,
article + footer .view-all {
    display: inline-block;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #4361ee;
}
.seo-footer .copyright,
.site-footer .copyright,
article + footer .copyright {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}
.seo-footer .footer-bottom:not(:has(.resources-footer)),
.site-footer .footer-bottom:not(:has(.resources-footer)),
article + footer .footer-bottom:not(:has(.resources-footer)) {
    font-size: 12px;
    color: #9ca3af;
}

/* ── Mega Footer (full article listing) ── */
.mega-footer {
    border-top: 1px solid #e5e7eb; padding: 56px 0 72px;
}
.mega-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px;
    align-items: start;
}
.mega-col {
    min-width: 0;
}
.mega-col h4 {
    font-size: 16px; font-weight: 700; color: #111827;
    margin-bottom: 18px;
}
.mega-col a {
    display: block;
    max-width: 30ch;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.55;
    margin-bottom: 12px;
    text-decoration: none;
    text-wrap: auto;
}
.mega-col a:hover { color: #4361ee; }

@media (max-width: 768px) {
    .seo-footer .footer-grid,
    .site-footer .footer-grid,
    article + footer .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .seo-footer .footer-links,
    .site-footer .footer-links,
    article + footer .footer-links {
        grid-template-columns: 1fr 1fr;
    }
    .seo-footer .resources-footer,
    .site-footer .resources-footer,
    article + footer .resources-footer {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .seo-nav .nav-links a:not(.cta) { display: none; }
    .seo-nav .lang-picker { display: none; }
    .mega-grid { grid-template-columns: 1fr; gap: 28px; }
    .mega-col a { max-width: none; }
    .hero-grid,
    .stat-strip,
    .framework-grid,
    .audit-row,
    .savings-grid,
    .scenario-grid {
        grid-template-columns: 1fr;
    }
    .stat-strip-source { text-align: left; }
    .bar-chart .bar-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 12px;
    }
    .bar-chart .bar-label {
        grid-column: 1 / -1;
        text-align: left;
        font-size: 12px;
    }
    .bar-chart .bar-source { text-align: left; }
    .mega-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 480px) {
    .seo-footer .footer-grid,
    .site-footer .footer-grid,
    article + footer .footer-grid,
    .seo-footer .footer-links,
    .site-footer .footer-links,
    article + footer .footer-links {
        grid-template-columns: 1fr;
    }
}
