:root {
    --primary: #1a6b3c;
    --primary-dark: #0f4d2a;
    --primary-deeper: #0a3a20;
    --primary-light: #2d8f54;
    --accent: #f7b733;
    --accent-dark: #e5a520;
    --accent-soft: #fdeecb;
    --bg-cream: #f5f3ee;
    --bg-white: #ffffff;
    --surface: #ffffff;
    --text-dark: #17251d;
    --text-muted: #566159;
    --text-light: #8a938c;
    --border: #e7e3da;
    --border-strong: #d8d3c8;
    --success: #22c55e;
    --warning: #f59e0b;
    --error: #ef4444;
    --ring: rgba(26,107,60,0.16);
    --shadow-sm: 0 1px 2px rgba(20,38,29,0.05);
    --shadow-md: 0 6px 18px -6px rgba(20,38,29,0.14);
    --shadow-lg: 0 20px 45px -18px rgba(20,38,29,0.28);
    --shadow-glow: 0 10px 40px -12px rgba(26,107,60,0.35);
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 22px;
    --pill: 999px;
    --grad-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --grad-hero: radial-gradient(1200px 500px at 50% -10%, rgba(45,143,84,0.10), transparent 60%), linear-gradient(180deg, #ffffff 0%, var(--bg-cream) 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
::selection { background: rgba(26,107,60,0.16); }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.65;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* Eyebrow label */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--primary); background: rgba(26,107,60,0.08); padding: 6px 14px; border-radius: var(--pill); margin-bottom: 18px; }

/* Header */
.header {
    background: rgba(255,255,255,0.82);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(20,38,29,0.02), 0 8px 24px -20px rgba(20,38,29,0.4);
}
.header-content { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-dark); }
.logo-icon {
    width: 42px; height: 42px;
    background: var(--grad-primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 18px;
    font-family: 'Space Grotesk', sans-serif;
    box-shadow: var(--shadow-glow); letter-spacing: 0.5px;
}
.logo-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px; color: var(--primary); letter-spacing: -0.2px; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links > a, .nav-item > a { color: var(--text-muted); text-decoration: none; font-size: 14.5px; font-weight: 600; transition: all 0.18s; padding: 8px 14px; border-radius: var(--pill); }
.nav-links > a:hover, .nav-item > a:hover, .nav-links a.active { color: var(--primary); background: rgba(26,107,60,0.07); }

/* Dropdown nav */
.nav-item { position: relative; }
.nav-item > a::after { content: " ▾"; font-size: 10px; color: var(--text-light); }
.nav-dropdown {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(6px);
    background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 8px; min-width: 264px;
    opacity: 0; visibility: hidden; transition: opacity 0.18s, transform 0.18s; margin-top: 8px; z-index: 200;
}
.nav-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown a { display: block; padding: 11px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--text-muted); text-decoration: none; transition: all 0.15s; }
.nav-dropdown a:hover { background: var(--bg-cream); color: var(--primary); }

/* Hero */
.hero { background: var(--grad-hero); padding: 72px 24px 48px; text-align: center; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(26,107,60,0.06) 1px, transparent 0); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 70%); mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 70%); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(30px, 5.2vw, 48px);
    font-weight: 700; color: var(--text-dark);
    line-height: 1.12; width: 1000px; margin: 0 auto 20px; max-width: 100%; letter-spacing: -0.8px;
}
.hero h1 span { color: var(--primary); }
.hero-description { font-size: 18.5px; color: var(--text-muted); max-width: 700px; margin: 0 auto 26px; }
.trust-badges { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.trust-badge { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); background: var(--bg-white); border: 1px solid var(--border); padding: 9px 16px; border-radius: var(--pill); box-shadow: var(--shadow-sm); }
.trust-badge svg { color: var(--primary); }

/* Hero stat chips */
.hero-stats { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.stat { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 22px; box-shadow: var(--shadow-sm); min-width: 120px; }
.stat b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 24px; color: var(--primary); line-height: 1; }
.stat span { font-size: 12.5px; color: var(--text-muted); }

/* Breadcrumbs */
.breadcrumbs { max-width: 1180px; margin: 0 auto; padding: 22px 24px 0; font-size: 13px; color: var(--text-light); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin: 0 10px; color: var(--border-strong); font-weight: 400; }
.breadcrumbs li[aria-current] { color: var(--primary); font-weight: 600; }

/* Section headings */
.section-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(24px, 3.5vw, 32px); font-weight: 700; color: var(--text-dark); margin-bottom: 10px; letter-spacing: -0.5px; }
.section-intro { color: var(--text-muted); max-width: 740px; margin-bottom: 30px; font-size: 16.5px; }
.section-intro a { font-weight: 600; }

/* Calculator */
.calculator-section { max-width: 840px; margin: 0 auto; padding: 28px 24px 44px; }
.calculator-card { background: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--border); }
.calculator-header { background: var(--grad-primary); padding: 26px 34px; color: white; position: relative; overflow: hidden; }
.calculator-header::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; background: radial-gradient(circle, rgba(247,183,51,0.25), transparent 70%); }
.calculator-header h2 { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 600; margin-bottom: 6px; position: relative; }
.calculator-header p { font-size: 14px; opacity: 0.92; position: relative; }
.calculator-body { padding: 34px; }

.form-group { margin-bottom: 24px; }
.form-label { display: block; font-weight: 600; margin-bottom: 10px; color: var(--text-dark); font-size: 15px; }
.form-label small { font-weight: 400; color: var(--text-light); display: block; margin-top: 4px; }
.form-input {
    width: 100%; padding: 14px 18px; border: 1.5px solid var(--border-strong); border-radius: var(--radius);
    font-size: 16px; font-family: inherit; transition: all 0.2s; background: var(--bg-cream);
}
.form-input:focus { outline: none; border-color: var(--primary); background: var(--bg-white); box-shadow: 0 0 0 4px var(--ring); }
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235a5a5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 48px;
}
.radio-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.radio-option { position: relative; }
.radio-option input { position: absolute; opacity: 0; cursor: pointer; }
.radio-option label {
    display: flex; align-items: center; justify-content: center; padding: 14px 20px;
    border: 1.5px solid var(--border-strong); border-radius: var(--radius); cursor: pointer; transition: all 0.18s;
    text-align: center; height: 100%; font-weight: 600; background: var(--bg-cream); color: var(--text-muted);
}
.radio-option input:checked + label { border-color: var(--primary); background: rgba(26,107,60,0.09); color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.radio-option label:hover { border-color: var(--primary-light); }
.checkbox-group { display: flex; flex-direction: column; gap: 12px; }
.checkbox-option { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.checkbox-option input { width: 22px; height: 22px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; margin-top: 2px; }
.checkbox-option span { font-size: 15px; line-height: 1.5; }

.btn-group { display: flex; gap: 12px; margin-top: 30px; }
.btn {
    padding: 16px 26px; border: none; border-radius: var(--radius); font-size: 16px; font-weight: 600;
    font-family: inherit; cursor: pointer; transition: all 0.18s; display: inline-flex; align-items: center;
    justify-content: center; gap: 8px; text-decoration: none;
}
.btn-block { width: 100%; }
.btn-primary { background: var(--grad-primary); color: white; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(26,107,60,0.5); }
.btn-secondary { background: var(--bg-cream); color: var(--text-muted); border: 1.5px solid var(--border-strong); }
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text-dark); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* Results */
.results-container { display: none; animation: fadeIn 0.5s ease; margin-top: 26px; }
.results-container.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.result-card { padding: 26px; border-radius: var(--radius); margin-bottom: 20px; }
.result-eligible { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); border: 1.5px solid #86efac; }
.result-partial { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); border: 1.5px solid #fcd34d; }
.result-ineligible { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); border: 1.5px solid #fca5a5; }
.result-header { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.result-icon { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.result-eligible .result-icon { background: #22c55e; color: white; }
.result-partial .result-icon { background: #f59e0b; color: white; }
.result-ineligible .result-icon { background: #ef4444; color: white; }
.result-title { font-family: 'Space Grotesk', sans-serif; font-size: 24px; font-weight: 700; }
.result-eligible .result-title { color: #15803d; }
.result-partial .result-title { color: #b45309; }
.result-ineligible .result-title { color: #dc2626; }
.result-subtitle { font-size: 14px; color: var(--text-muted); }
.result-amount { font-family: 'Space Grotesk', sans-serif; font-size: 44px; font-weight: 700; color: var(--primary); margin: 10px 0; letter-spacing: -1px; }
.result-amount small { font-size: 15px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }

.requirements-list { margin-top: 16px; padding: 18px; background: rgba(255,255,255,0.6); border-radius: var(--radius); }
.requirements-list h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.requirements-list ul { list-style: none; font-size: 14.5px; }
.requirements-list li { padding: 7px 0; padding-left: 28px; position: relative; }
.requirements-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: bold; }
.requirements-list li.failed::before { content: "✗"; color: var(--error); }
.requirements-list li.warn::before { content: "!"; color: var(--warning); }

/* Cards / grids */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card {
    background: var(--bg-white); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm);
    border: 1px solid var(--border); display: flex; flex-direction: column; text-decoration: none; color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad-primary); transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card-icon {
    width: 52px; height: 52px; background: var(--grad-primary);
    border-radius: 14px; display: flex; align-items: center; justify-content: center; color: white; margin-bottom: 18px; font-size: 22px;
    box-shadow: var(--shadow-glow); font-family: 'Space Grotesk', sans-serif; font-weight: 700;
}
.card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 18.5px; font-weight: 600; margin-bottom: 8px; color: var(--text-dark); letter-spacing: -0.2px; }
.card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }
.card .card-cta { margin-top: auto; padding-top: 16px; color: var(--primary); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.card:hover .card-cta { gap: 8px; }
.card-tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--primary); background: rgba(26,107,60,0.08); padding: 4px 10px; border-radius: var(--pill); margin-bottom: 12px; align-self: flex-start; }

/* Article list rows */
.article-list { display: flex; flex-direction: column; gap: 4px; }
.article-row {
    display: flex; gap: 16px; align-items: baseline; padding: 18px; border-radius: var(--radius);
    text-decoration: none; color: inherit; transition: all 0.18s; border: 1px solid transparent;
}
.article-row:hover { background: var(--bg-white); border-color: var(--border); box-shadow: var(--shadow-sm); transform: translateX(3px); }
.article-row h3 { font-size: 16.5px; font-weight: 600; color: var(--text-dark); margin-bottom: 4px; }
.article-row p { font-size: 14px; color: var(--text-muted); }
.article-row .row-cat { font-size: 12px; color: var(--primary); font-weight: 700; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.4px; }

/* Section wrapper */
.section { max-width: 1180px; margin: 0 auto; padding: 52px 24px; }
.section-cream { background: var(--bg-cream); }
.section-white { background: var(--bg-white); }
.block-white { background: var(--bg-white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); margin-bottom: 24px; }

/* Grants table */
.grants-table-section { background: var(--bg-white); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); overflow-x: auto; }
.grants-table-section h2 { font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 700; margin-bottom: 22px; color: var(--text-dark); letter-spacing: -0.5px; }
.grants-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.grants-table th, .grants-table td { padding: 16px; text-align: left; border-bottom: 1px solid var(--border); }
.grants-table th { background: var(--primary-deeper); color: #fff; font-weight: 600; white-space: nowrap; }
.grants-table th:first-child { border-top-left-radius: 10px; }
.grants-table th:last-child { border-top-right-radius: 10px; }
.grants-table td { color: var(--text-muted); }
.grants-table tr:nth-child(even) td { background: var(--bg-cream); }
.grants-table tr:hover td { background: var(--accent-soft); }
.amount-badge { background: var(--grad-primary); color: white; padding: 6px 13px; border-radius: var(--pill); font-weight: 700; font-size: 13px; display: inline-block; white-space: nowrap; box-shadow: var(--shadow-sm); }

/* FAQ */
.faq-section h2 { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; margin-bottom: 22px; color: var(--text-dark); letter-spacing: -0.5px; }
.faq-item { background: var(--bg-white); border-radius: var(--radius); margin-bottom: 12px; border: 1px solid var(--border); overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.faq-item.open { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.faq-question { padding: 20px 24px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: background 0.2s; }
.faq-question:hover { background: var(--bg-cream); }
.faq-question::after { content: "+"; font-size: 24px; color: var(--primary); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 800px; }
.faq-answer-content { padding: 0 24px 20px; font-size: 15px; color: var(--text-muted); line-height: 1.7; }
.faq-answer-content a { color: var(--primary); font-weight: 600; }

/* Info callout */
.callout { font-size: 14.5px; color: var(--text-muted); padding: 16px 18px; background: var(--accent-soft); border-radius: var(--radius); border-left: 4px solid var(--warning); margin-bottom: 22px; }
.callout a { color: var(--primary); font-weight: 600; }
.callout-info { background: #e0f2fe; border-left-color: #0284c7; }
.callout-tip { background: #dcfce7; border-left-color: var(--success); }

/* Footer */
.footer { background: linear-gradient(180deg, var(--primary-deeper) 0%, #08160d 100%); color: white; padding: 56px 24px 32px; margin-top: 72px; }
.footer-content { max-width: 1120px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 34px; margin-bottom: 32px; }
.footer-col h4 { font-family: 'Space Grotesk', sans-serif; font-size: 14px; margin-bottom: 16px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.6px; }
.footer-col a { display: block; color: rgba(255,255,255,0.72); text-decoration: none; font-size: 14px; margin-bottom: 10px; transition: color 0.18s; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 14px; color: rgba(255,255,255,0.72); line-height: 1.7; }
.footer-brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand-logo .logo-text { color: white; }
.footer-disclaimer { font-size: 13px; color: rgba(255,255,255,0.6); margin: 26px 0 16px; line-height: 1.7; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 24px; }
.footer-disclaimer a { color: var(--accent); }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-copy a { color: var(--accent); }

/* Related blocks */
.related-block { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--border); }
.related-block h2 { font-family: 'Space Grotesk', sans-serif; font-size: 23px; margin-bottom: 20px; color: var(--text-dark); letter-spacing: -0.3px; }

/* Article prose */
.article-hero { background: var(--grad-hero); padding: 28px 24px 10px; }
.article-hero .container-narrow { padding-top: 8px; }
.article-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(28px, 4.2vw, 42px); font-weight: 700; line-height: 1.15; margin-bottom: 14px; color: var(--text-dark); letter-spacing: -0.8px; }
.article-meta { font-size: 13px; color: var(--text-light); margin-bottom: 10px; font-weight: 500; }
.article-lead { font-size: 19px; color: var(--text-muted); line-height: 1.6; }
.prose { font-size: 17.5px; color: #2b352e; line-height: 1.8; }
/* opening standfirst paragraph reads a little larger and darker */
.prose > p:first-of-type { font-size: 19px; line-height: 1.7; color: var(--text-dark); }
/* section headings get an accent bar above them for clear rhythm */
.prose h2 { font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 700; margin: 50px 0 16px; color: var(--text-dark); scroll-margin-top: 90px; letter-spacing: -0.5px; }
.prose h2::before { content: ""; display: block; width: 46px; height: 4px; border-radius: 4px; background: var(--grad-primary); margin-bottom: 18px; }
.prose h3 { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 600; margin: 34px 0 10px; color: var(--primary-dark); padding-left: 15px; border-left: 3px solid var(--accent); }
.prose p { margin-bottom: 18px; }
/* unordered lists: soft green markers */
.prose ul { list-style: none; margin: 0 0 22px; padding: 0; }
.prose ul > li { position: relative; padding-left: 30px; margin-bottom: 11px; }
.prose ul > li::before { content: ""; position: absolute; left: 5px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(26,107,60,0.12); }
/* ordered lists: numbered step circles (great for how-to guides) */
.prose ol { list-style: none; counter-reset: step; margin: 0 0 24px; padding: 0; }
.prose ol > li { position: relative; padding-left: 48px; margin-bottom: 16px; min-height: 30px; }
.prose ol > li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; background: var(--grad-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; box-shadow: var(--shadow-glow); }
.prose li { line-height: 1.72; }
.prose a { color: var(--primary); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(26,107,60,0.35); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { text-decoration-color: var(--primary); }
.prose strong { color: var(--primary-dark); font-weight: 700; }
.prose blockquote { position: relative; border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 18px 22px 18px 52px; margin: 4px 0 24px; border-radius: 0 var(--radius) var(--radius) 0; color: #6b5720; font-size: 16.5px; }
.prose blockquote::before { content: "\201C"; position: absolute; left: 16px; top: 6px; font-family: 'Space Grotesk', serif; font-size: 40px; line-height: 1; color: var(--accent-dark); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 0 0 22px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 13px; text-align: left; border-bottom: 1px solid var(--border); }
.prose th { background: var(--primary-deeper); color: #fff; font-weight: 600; }
.prose tr:nth-child(even) td { background: var(--bg-cream); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }
.prose code { background: rgba(26,107,60,0.09); color: var(--primary-dark); padding: 2px 7px; border-radius: 6px; font-size: 0.92em; font-weight: 600; }

/* Table of contents */
.toc { background: var(--bg-white); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 30px; box-shadow: var(--shadow-sm); }
.toc h2 { font-family: 'Space Grotesk', sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-light); margin-bottom: 12px; }
.toc ol { margin-left: 18px; font-size: 14.5px; }
.toc li { margin-bottom: 7px; }
.toc a { color: var(--text-muted); text-decoration: none; font-weight: 500; }
.toc a:hover { color: var(--primary); }

/* Inline calc CTA in article */
.calc-cta { display: flex; gap: 18px; align-items: center; background: linear-gradient(135deg, rgba(26,107,60,0.06), rgba(247,183,51,0.10)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 26px; margin: 28px 0; }
.calc-cta .card-icon { margin-bottom: 0; }
.calc-cta div { flex: 1; }
.calc-cta h3 { font-family: 'Space Grotesk', sans-serif; font-size: 18px; margin-bottom: 2px; }
.calc-cta p { font-size: 14.5px; color: var(--text-muted); }

.two-col { display: grid; grid-template-columns: 1fr; gap: 40px; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
    .nav-links { display: none; }
    .calculator-body { padding: 26px 20px; }
    .radio-group { grid-template-columns: 1fr; }
    .btn-group { flex-direction: column; }
    .grants-table-section { padding: 22px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .calc-cta { flex-direction: column; text-align: center; }
    .article-row { flex-direction: column; gap: 4px; }
    .hero { padding: 52px 20px 40px; }
    .section { padding: 40px 20px; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
