/* RFC Research & Insights - scoped styles. Everything is under .rfc-rs so
   nothing leaks into the theme's header, footer, menus or other pages. */
.rfc-rs {
	--rs-green: #1C4E3C;
	--rs-green-dark: #143a2d;
	--rs-green-tint: #eef3f1;
	--rs-ink: #1f2a26;
	--rs-ink-2: #5a6661;
	--rs-line: #dfe5e3;
	--rs-bg: #f6f8f7;
	--rs-radius: 8px;
	color: var(--rs-ink);
	font-family: 'Open Sans', Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	background: #fff;
}
.rfc-rs *, .rfc-rs *::before, .rfc-rs *::after { box-sizing: border-box; }
.rfc-rs h1, .rfc-rs h2, .rfc-rs h3 { font-family: 'Poppins', Arial, sans-serif; color: var(--rs-ink); line-height: 1.25; margin: 0 0 .6em; }
.rfc-rs h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; letter-spacing: -.01em; }
.rfc-rs h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 600; }
.rfc-rs h3 { font-size: 1.15rem; font-weight: 600; }
.rfc-rs p { margin: 0 0 1em; }
.rfc-rs a { color: var(--rs-green); text-decoration: underline; text-underline-offset: 2px; }
.rfc-rs a:hover { color: var(--rs-green-dark); }
.rfc-rs a:focus-visible, .rfc-rs button:focus-visible, .rfc-rs [tabindex]:focus-visible { outline: 3px solid #2f7d5f; outline-offset: 2px; }

.rfc-rs-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.rfc-rs-narrow > * { max-width: 780px; }

/* Breadcrumbs */
.rfc-rs-crumbs ol { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; color: var(--rs-ink-2); }
.rfc-rs-crumbs li + li::before { content: "›"; margin-right: 6px; color: #9aa6a1; }
.rfc-rs-crumbs a { color: var(--rs-ink-2); text-decoration: none; }
.rfc-rs-crumbs a:hover { text-decoration: underline; color: var(--rs-green); }

/* Hero */
.rfc-rs-hero { background: var(--rs-bg); border-bottom: 1px solid var(--rs-line); padding: 36px 0 44px; }
.rfc-rs-eyebrow { font-family: 'Poppins', Arial, sans-serif; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rs-green); margin-bottom: 10px; }
.rfc-rs-subtitle { font-size: 1.2rem; color: var(--rs-ink-2); margin-bottom: 1.2em; }
.rfc-rs-subtitle--lg { font-family: 'Poppins', Arial, sans-serif; font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: var(--rs-green); font-weight: 500; }
.rfc-rs-intro { max-width: 760px; }
.rfc-rs-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 28px 0 0; border: 1px solid var(--rs-line); border-radius: var(--rs-radius); background: #fff; }
.rfc-rs-meta > div { padding: 14px 16px; border-right: 1px solid var(--rs-line); }
.rfc-rs-meta > div:last-child { border-right: 0; }
.rfc-rs-meta dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--rs-ink-2); margin: 0 0 4px; }
.rfc-rs-meta dd { margin: 0; font-weight: 600; font-size: .95rem; }
.rfc-rs-meta--compact { margin: 0 0 24px; }

/* KPI cards */
.rfc-rs-kpis { padding: 40px 0 8px; }
.rfc-rs-kpis__title { font-size: 1.1rem; color: var(--rs-ink-2); font-weight: 500; }
.rfc-rs-kpi-grid { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rfc-rs-kpi { background: #fff; border: 1px solid var(--rs-line); border-top: 4px solid var(--rs-green); border-radius: var(--rs-radius); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.rfc-rs-kpi__value { font-family: 'Poppins', Arial, sans-serif; font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 700; color: var(--rs-green); line-height: 1.1; font-variant-numeric: tabular-nums; }
.rfc-rs-kpi__label { font-weight: 600; font-size: .98rem; }
.rfc-rs-kpi__note { font-size: .82rem; color: var(--rs-ink-2); }

/* Layout with sticky TOC */
.rfc-rs-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding-top: 32px; padding-bottom: 64px; }
.rfc-rs-toc { position: sticky; top: 110px; align-self: start; font-size: .9rem; border-left: 2px solid var(--rs-line); padding-left: 16px; }
.rfc-rs-toc__title { font-family: 'Poppins', Arial, sans-serif; font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--rs-ink-2); }
.rfc-rs-toc ol { list-style: none; margin: 0; padding: 0; }
.rfc-rs-toc li { margin: 0 0 8px; }
.rfc-rs-toc a { color: var(--rs-ink); text-decoration: none; }
.rfc-rs-toc a:hover { color: var(--rs-green); text-decoration: underline; }
.rfc-rs-article { min-width: 0; max-width: 820px; }
.rfc-rs-section { padding: 8px 0 36px; margin-bottom: 36px; border-bottom: 1px solid var(--rs-line); scroll-margin-top: 110px; }
.rfc-rs-section ul { padding-left: 1.2em; margin: 0 0 1em; }
.rfc-rs-section li { margin-bottom: .35em; }

/* Figures & charts */
.rfc-rs-figure { margin: 28px 0; padding: 20px; border: 1px solid var(--rs-line); border-radius: var(--rs-radius); background: #fff; }
.rfc-rs-figure__title { font-family: 'Poppins', Arial, sans-serif; font-weight: 600; font-size: 1rem; margin-bottom: 8px; }
.rfc-rs-chart { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rfc-rs-chart svg { display: block; width: 100%; min-width: 560px; height: auto; }
.rfc-rs-chart .rfc-hit { cursor: crosshair; }
.rfc-rs-tooltip { position: fixed; z-index: 50; pointer-events: none; background: var(--rs-ink); color: #fff; font-size: .82rem; line-height: 1.3; padding: 6px 10px; border-radius: 6px; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); }
.rfc-rs-source-note { font-size: .82rem; color: var(--rs-ink-2); line-height: 1.5; margin: 8px 0 0; }

/* Tables */
.rfc-rs-table-wrap { overflow-x: auto; margin: 20px 0 0; border: 1px solid var(--rs-line); border-radius: var(--rs-radius); }
.rfc-rs-table-wrap--tall { max-height: 520px; overflow-y: auto; }
.rfc-rs-table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.rfc-rs-table caption { text-align: left; font-family: 'Poppins', Arial, sans-serif; font-weight: 600; padding: 12px 14px; font-size: .95rem; background: var(--rs-bg); border-bottom: 1px solid var(--rs-line); }
.rfc-rs-table th, .rfc-rs-table td { padding: 9px 14px; border-bottom: 1px solid var(--rs-line); text-align: left; vertical-align: top; }
.rfc-rs-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--rs-ink-2); background: #fff; position: sticky; top: 0; }
.rfc-rs-table tbody th { font-weight: 600; }
.rfc-rs-table .num { text-align: right; white-space: nowrap; }
.rfc-rs-table tbody tr:last-child > * { border-bottom: 0; }
.rfc-rs-table tbody tr:hover { background: var(--rs-green-tint); }

/* Callouts */
.rfc-rs-callout { background: var(--rs-green-tint); border-left: 4px solid var(--rs-green); border-radius: 0 var(--rs-radius) var(--rs-radius) 0; padding: 18px 22px; margin: 24px 0 0; font-size: .95rem; }
.rfc-rs-callout ul { margin-bottom: 0; }

/* FAQ */
.rfc-rs-faq h3 { margin-top: 1.4em; margin-bottom: .35em; }

/* Downloads & citation */
.rfc-rs-download-list { list-style: none !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.rfc-rs-download-list li { margin: 0; }
.rfc-rs-download-list .rfc-rs-btn { width: 100%; justify-content: space-between; }
.rfc-rs-download-list small { font-weight: 400; opacity: .75; margin-left: 8px; white-space: nowrap; }
.rfc-rs-citation { display: flex; gap: 16px; align-items: flex-start; background: var(--rs-bg); border: 1px solid var(--rs-line); border-radius: var(--rs-radius); padding: 16px 18px; margin-bottom: 16px; }
.rfc-rs-citation p { margin: 0; font-size: .92rem; flex: 1; }
.rfc-rs-attribution { font-size: .9rem; background: var(--rs-bg); padding: 14px 16px; border-radius: var(--rs-radius); }
.rfc-rs-sources { padding-left: 1.4em; }

/* Buttons - follow the RFC brand green */
.rfc-rs-btn { display: inline-flex; align-items: center; gap: 8px; font-family: 'Poppins', Arial, sans-serif; font-weight: 600; font-size: .95rem; padding: 12px 22px; border-radius: 6px; background: var(--rs-green); color: #fff !important; text-decoration: none !important; border: 2px solid var(--rs-green); cursor: pointer; transition: background .15s ease; }
.rfc-rs-btn:hover { background: var(--rs-green-dark); border-color: var(--rs-green-dark); }
.rfc-rs-btn--outline { background: #fff; color: var(--rs-green) !important; }
.rfc-rs-btn--outline:hover { background: var(--rs-green-tint); }
.rfc-rs-btn--small { padding: 8px 14px; font-size: .85rem; white-space: nowrap; }

/* CTA */
.rfc-rs-cta { background: var(--rs-green); color: #fff; border-radius: 12px; padding: 36px 36px 28px; margin-top: 12px; }
.rfc-rs-cta h2, .rfc-rs-cta p { color: #fff; }
.rfc-rs-cta a:not(.rfc-rs-btn) { color: #fff; }
.rfc-rs-cta .rfc-rs-btn { background: #fff; color: var(--rs-green) !important; border-color: #fff; }
.rfc-rs-cta .rfc-rs-btn:hover { background: var(--rs-green-tint); }
.rfc-rs-cta__contact { font-size: .95rem; opacity: .95; }

/* Research centre */
.rfc-rs-band { background: var(--rs-bg); padding: 56px 0; }
.rfc-rs-section-block { padding: 56px 0; }
.rfc-rs-lead { color: var(--rs-ink-2); max-width: 720px; }
.rfc-rs-feature { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--rs-line); border-radius: 12px; overflow: hidden; }
.rfc-rs-feature__body { padding: 32px; }
.rfc-rs .rfc-rs-feature__title { font-size: 1.6rem; margin-bottom: .5em; }
.rfc-rs-feature__title a { color: var(--rs-ink); text-decoration: none; }
.rfc-rs-feature__title a:hover { color: var(--rs-green); }
.rfc-rs-feature__stat { background: var(--rs-green); color: #fff; padding: 32px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.rfc-rs-feature__number { font-family: 'Poppins', Arial, sans-serif; font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.rfc-rs-feature__label { font-size: 1.02rem; font-weight: 600; }
.rfc-rs-feature__delta { font-size: .95rem; opacity: .9; }
.rfc-rs-feature__src { font-size: .78rem; opacity: .8; margin-top: 10px; }
.rfc-rs-tags { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rfc-rs-tags li { font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--rs-green-tint); color: var(--rs-green); }
.rfc-rs-cards { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rfc-rs-card { border: 1px solid var(--rs-line); border-radius: var(--rs-radius); padding: 22px; background: #fff; }
.rfc-rs .rfc-rs-card--soon h3 { color: var(--rs-ink-2); margin: 10px 0 0; font-size: 1.05rem; }
.rfc-rs-badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rs-ink-2); border: 1px solid var(--rs-line); border-radius: 999px; padding: 3px 10px; }
.rfc-rs-contact { list-style: none; padding: 0; margin: 0 0 22px; }
.rfc-rs-contact li { margin-bottom: 6px; }
.rfc-rs-contact span { display: inline-block; min-width: 92px; color: var(--rs-ink-2); font-size: .9rem; }

/* Responsive */
@media (max-width: 1024px) {
	.rfc-rs-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.rfc-rs-toc { position: static; border-left: 0; border: 1px solid var(--rs-line); border-radius: var(--rs-radius); padding: 16px 18px; margin-bottom: 32px; }
	.rfc-rs-toc ol { columns: 2; column-gap: 24px; }
	.rfc-rs-kpi-grid { grid-template-columns: repeat(2, 1fr); }
	.rfc-rs-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
	.rfc-rs { font-size: 16px; }
	.rfc-rs-wrap { padding: 0 18px; }
	.rfc-rs-feature { grid-template-columns: 1fr; }
	.rfc-rs-feature__body, .rfc-rs-feature__stat { padding: 24px; }
	.rfc-rs-meta { grid-template-columns: 1fr 1fr; }
	.rfc-rs-meta > div { border-right: 0; border-bottom: 1px solid var(--rs-line); }
	.rfc-rs-figure { padding: 14px; margin-left: -4px; margin-right: -4px; }
	.rfc-rs-citation { flex-direction: column; }
	.rfc-rs-cta { padding: 26px 22px 20px; }
	.rfc-rs-cards { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
	.rfc-rs-kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.rfc-rs-kpi { padding: 14px; }
	.rfc-rs-kpi__value { font-size: 1.7rem; }
	.rfc-rs-toc ol { columns: 1; }
	.rfc-rs-meta > div { padding: 12px; }
}
@media print {
	.rfc-rs-toc, .rfc-rs-cta, .rfc-rs-downloads .rfc-rs-btn, .rfc-rs-tooltip { display: none !important; }
	.rfc-rs-table-wrap--tall { max-height: none; }
}
@media (prefers-reduced-motion: reduce) { .rfc-rs * { transition: none !important; } }
