/* Colours and fonts come from inline :root variables set per site. */
body.rsg-site {
	background: var(--rsg-bg, #fff);
	color: var(--rsg-text, #1d2433);
	font-family: var(--rsg-body-font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	font-size: 17px;
	line-height: 1.65;
}
.rsg-site h1, .rsg-site h2, .rsg-site h3,
.rsg-site .entry-title, .rsg-site .site-title a {
	font-family: var(--rsg-heading-font, inherit);
	color: var(--rsg-heading, var(--rsg-text, #1d2433));
	letter-spacing: var(--rsg-heading-tracking, -0.01em);
	line-height: 1.2;
}
.rsg-site .entry-content h2 { font-size: 1.6rem; margin: 2.2em 0 .6em; }
.rsg-site .entry-content h3 { font-size: 1.22rem; margin: 1.6em 0 .4em; }
.rsg-site a { color: var(--rsg-accent, #0b6e75); text-underline-offset: 3px; }
.rsg-site a:hover { color: var(--rsg-accent-dark, #084f54); }
.rsg-site .site-header, .rsg-site .ast-primary-header-bar { background: var(--rsg-header-bg, var(--rsg-bg, #fff)); border-bottom: 1px solid var(--rsg-border, #e4e7ec); }
.rsg-site .site-footer, .rsg-site .site-below-footer-wrap { background: var(--rsg-footer-bg, #10182a); color: var(--rsg-footer-text, #c9d1e0); }
.rsg-site .site-footer a { color: var(--rsg-footer-link, #fff); }

/* Notice bar */
.rsg-notice {
	background: var(--rsg-notice-bg, #10182a);
	color: var(--rsg-notice-text, #fff);
	font-size: 14px;
	text-align: center;
	padding: 8px 16px;
}

/* Hero */
.rsg-hero {
	background: var(--rsg-surface, #f5f7fa);
	border: 1px solid var(--rsg-border, #e4e7ec);
	border-radius: var(--rsg-radius, 10px);
	padding: clamp(24px, 4vw, 48px);
	margin: 0 0 32px;
}
.rsg-hero .rsg-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 600; color: var(--rsg-accent, #0b6e75); margin: 0 0 8px; }
.rsg-hero p.rsg-lead { font-size: 1.2rem; max-width: 46em; }

/* Quick answer */
.rsg-quick {
	border-left: 4px solid var(--rsg-accent, #0b6e75);
	background: var(--rsg-surface, #f5f7fa);
	border-radius: 0 var(--rsg-radius, 10px) var(--rsg-radius, 10px) 0;
	padding: 18px 22px;
	margin: 0 0 28px;
}
.rsg-quick strong:first-child { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--rsg-accent, #0b6e75); margin-bottom: 4px; }
.rsg-quick p:last-child { margin-bottom: 0; }

/* Facts row */
.rsg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 24px 0 32px; }
.rsg-fact { background: var(--rsg-bg, #fff); border: 1px solid var(--rsg-border, #e4e7ec); border-radius: var(--rsg-radius, 10px); padding: 16px; }
.rsg-fact b { display: block; font-size: 1.7rem; font-family: var(--rsg-heading-font, inherit); color: var(--rsg-heading, inherit); line-height: 1.1; }
.rsg-fact span { font-size: 14px; color: var(--rsg-muted, #5b6475); }

/* Card grid */
.rsg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 20px 0 36px; padding: 0; list-style: none; }
.rsg-grid li { margin: 0; }
.rsg-card { display: block; height: 100%; background: var(--rsg-bg, #fff); border: 1px solid var(--rsg-border, #e4e7ec); border-radius: var(--rsg-radius, 10px); padding: 18px; text-decoration: none; color: inherit; box-shadow: var(--rsg-shadow, none); transition: border-color .15s, transform .15s; }
.rsg-card:hover { border-color: var(--rsg-accent, #0b6e75); }
.rsg-card strong { display: block; font-family: var(--rsg-heading-font, inherit); color: var(--rsg-heading, inherit); font-size: 1.08rem; margin-bottom: 4px; }
.rsg-card span { font-size: 15px; color: var(--rsg-muted, #5b6475); }

/* Tables */
.rsg-table-wrap { overflow-x: auto; margin: 20px 0 30px; }
.rsg-site .entry-content table.rsg-table { width: 100%; border-collapse: collapse; font-size: 15px; border: 1px solid var(--rsg-border, #e4e7ec); }
.rsg-table th { background: var(--rsg-surface, #f5f7fa); text-align: left; font-weight: 600; }
.rsg-table th, .rsg-table td { padding: 10px 12px; border-bottom: 1px solid var(--rsg-border, #e4e7ec); vertical-align: top; }
.rsg-table caption { caption-side: bottom; text-align: left; font-size: 13px; color: var(--rsg-muted, #5b6475); padding-top: 8px; }

/* Callouts */
.rsg-warn { background: var(--rsg-warn-bg, #fff6e5); border: 1px solid var(--rsg-warn-border, #f0c36d); border-radius: var(--rsg-radius, 10px); padding: 16px 20px; margin: 24px 0; }
.rsg-updated { font-size: 14px; color: var(--rsg-muted, #5b6475); margin-bottom: 20px; }
.rsg-sources { font-size: 14px; color: var(--rsg-muted, #5b6475); border-top: 1px solid var(--rsg-border, #e4e7ec); margin-top: 36px; padding-top: 14px; }
.rsg-sources h2 { font-size: 1.05rem !important; margin: 0 0 8px !important; }
.rsg-sources ol { margin-left: 1.2em; }

/* Timeline */
.rsg-timeline { list-style: none; margin: 20px 0 30px; padding: 0; border-left: 2px solid var(--rsg-border, #e4e7ec); }
.rsg-timeline li { position: relative; padding: 0 0 18px 20px; margin: 0; }
.rsg-timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--rsg-accent, #0b6e75); }
.rsg-timeline time { display: block; font-weight: 600; font-size: 14px; color: var(--rsg-accent, #0b6e75); }

/* FAQ */
.rsg-faq { margin: 40px 0 24px; }
.rsg-faq-item { border: 1px solid var(--rsg-border, #e4e7ec); border-radius: var(--rsg-radius, 10px); margin: 0 0 10px; background: var(--rsg-bg, #fff); }
.rsg-faq-item summary { cursor: pointer; font-weight: 600; padding: 14px 18px; list-style-position: inside; }
.rsg-faq-item > div { padding: 0 18px 12px; }

/* Disclaimer, CTA, signup */
.rsg-disclaimer { font-size: 14px; background: var(--rsg-surface, #f5f7fa); border-radius: var(--rsg-radius, 10px); padding: 14px 18px; margin: 28px 0 0; color: var(--rsg-muted, #5b6475); }
.rsg-cta { border: 1px solid var(--rsg-accent, #0b6e75); border-radius: var(--rsg-radius, 10px); padding: 20px 22px; margin: 28px 0; }
.rsg-cta-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 4px; }
.rsg-cta-note { font-size: 13px; color: var(--rsg-muted, #5b6475); margin: 0; }
.rsg-btn, .rsg-site .rsg-btn:visited { display: inline-block; background: var(--rsg-accent, #0b6e75); color: var(--rsg-accent-ink, #fff) !important; border: 0; border-radius: var(--rsg-btn-radius, 8px); padding: 12px 20px; font-weight: 600; text-decoration: none; cursor: pointer; }
.rsg-btn:hover { background: var(--rsg-accent-dark, #084f54); }
.rsg-signup { background: var(--rsg-surface, #f5f7fa); border: 1px solid var(--rsg-border, #e4e7ec); border-radius: var(--rsg-radius, 10px); padding: 24px; margin: 36px 0; }
.rsg-signup h2 { margin-top: 0 !important; }
.rsg-signup-row { display: flex; gap: 8px; flex-wrap: wrap; }
.rsg-signup-row input[type=email] { flex: 1 1 240px; padding: 11px 12px; border: 1px solid var(--rsg-border, #c8ced8); border-radius: 8px; }
.rsg-consent { font-size: 14px; }
.rsg-hp { position: absolute !important; left: -9999px !important; }
.rsg-ok { color: #1b6e2e; font-weight: 600; }
.rsg-err { color: #a12622; font-weight: 600; }
.rsg-missing { background: #fff3c4; padding: 0 4px; }

/* Gentle motion (UK site only), off for anyone who prefers reduced motion */
@media (prefers-reduced-motion: no-preference) {
	.rsg-motion .rsg-card, .rsg-motion .rsg-fact { animation: rsg-rise .5s ease both; }
	.rsg-motion .rsg-grid li:nth-child(2) .rsg-card { animation-delay: .06s; }
	.rsg-motion .rsg-grid li:nth-child(3) .rsg-card { animation-delay: .12s; }
	.rsg-motion .rsg-grid li:nth-child(4) .rsg-card { animation-delay: .18s; }
	.rsg-motion .rsg-card:hover { transform: translateY(-2px); }
}
@keyframes rsg-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
