/*
Theme Name: Reel Rich Ledger
Theme URI: https://reelrichclub.uk
Description: Astra child theme for reelrichclub.uk. Charcoal neon palette, single header contract, one content measure, board slot after the hero.
Author: Reel Rich Club
Template: astra
Version: 1.0.5
Text Domain: reelrich
*/

/* --- Astra flex-container override (mandatory on every network child) --- */
#content .ast-container,
.ast-container { display: block !important; width: 100% !important; max-width: 100% !important; }
#primary, .site-main, #main { flex: 1 1 100% !important; }

/* --- One width for everything: centered content column --- */
:root {
	--rr-ground: #14161a;
	--rr-surface: #1d2126;
	--rr-raised: #242930;
	--rr-ink: #eceee8;
	--rr-muted: #a8aeb6;
	--rr-accent: #b8e62e;
	--rr-accent-deep: #7fa816;
	--rr-line: #2e343b;
	--rr-radius: 4px;
}
html, body { overflow-x: clip; }
body { background: var(--rr-ground) !important; color: var(--rr-ink) !important; font-family: 'IBM Plex Sans', system-ui, sans-serif; margin: 0; }
#content, .site-content, #primary, .site-main, #main, .ast-container { background: transparent !important; }
h1, h2, h3, h4, h5, h6 { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-weight: 700; color: var(--rr-ink) !important; font-variant-numeric: tabular-nums; }
a { color: var(--rr-accent); text-decoration: none; }
a:hover { color: var(--rr-accent-deep); }

/* --- Content column: centered, one measure --- */
#primary, .site-main, #main { max-width: 1120px !important; margin-inline: auto !important; padding-inline: 24px; box-sizing: border-box; }
.entry-content { max-width: 1120px; margin-inline: auto; color: var(--rr-ink); }
.entry-content > * { max-width: 100%; }
.entry-content p, .entry-content li { color: var(--rr-ink); }
.entry-content table { width: 100%; border-collapse: collapse; background: var(--rr-surface); border: 1px solid var(--rr-line); border-radius: var(--rr-radius); }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--rr-line); text-align: left; color: var(--rr-ink); }
.entry-content th { color: var(--rr-accent) !important; font-weight: 600; }
.table-scroll { overflow-x: auto; width: 100%; }

/* --- Media safety (v1.0.5): nothing may stretch or offset the column --- */
.entry-content img,
.entry-content svg,
.entry-content figure,
.entry-content iframe { max-width: 100% !important; height: auto; }
.entry-content figure { margin-inline: auto; }
.entry-content .rr-hero-figure img,
.entry-content .rr-mid-figure img { width: 100%; max-width: 100%; display: block; }

/* --- Hide the parent Astra header/footer shells entirely --- */
.site-header, #masthead, .main-header-bar-wrap, .ast-above-header, .ast-below-header,
.ast-main-header-wrap, .ast-primary-header-bar, #site-header, header.site-header { display: none !important; }
.site-footer, #colophon, .ast-footer-overlay, .ast-below-footer, .site-below-footer,
.ast-fullwidth-below-footer, .site-above-footer, .ast-fullwidth-above-footer,
.ast-primary-footer, .site-primary-footer, .ast-small-footer-wrap,
.ast-footer-site-title, .ast-footer-credit { display: none !important; }

/* --- Header base --- */
.rr-header { background: var(--rr-surface); border-bottom: 1px solid var(--rr-line); width: 100%; }
.rr-header-inner { max-width: 1120px; margin-inline: auto; padding: 16px 24px; }
.rr-brand-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; justify-content: center; text-align: center; }
.rr-brand, .rr-brand a { font-size: 1.5rem; font-weight: 700; color: var(--rr-accent) !important; letter-spacing: .02em; }
.rr-tagline { color: var(--rr-muted); font-size: .9rem; }
.rr-nav { margin-top: 10px; }
.rr-nav-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.rr-nav-list > li { display: block; }
.rr-nav-item { position: relative; }
.rr-nav-item > a, .rr-nav-list > li > a { display: block; padding: 8px 6px; color: var(--rr-ink) !important; font-weight: 600; font-size: .95rem; }
.rr-nav-item > a:hover, .rr-nav-list > li > a:hover { color: var(--rr-accent) !important; }
.rr-dropdown { display: none; position: absolute; top: 100%; left: 0; z-index: 10; min-width: 240px; background: var(--rr-raised); border: 1px solid var(--rr-line); border-radius: var(--rr-radius); box-shadow: 0 8px 24px rgba(0,0,0,.5); list-style: none; margin: 0; padding: 6px 0; }
.rr-nav-item:hover .rr-dropdown, .rr-nav-item:focus-within .rr-dropdown { display: block; }
.rr-dropdown a { display: block; padding: 8px 16px; color: var(--rr-ink) !important; font-size: .9rem; white-space: nowrap; }
.rr-dropdown a:hover { background: var(--rr-surface); color: var(--rr-accent) !important; }

/* --- Breadcrumb --- */
.rr-breadcrumb { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; color: var(--rr-muted); font-size: .85rem; }
.rr-breadcrumb li { display: inline-flex; align-items: center; margin: 0; padding: 0; background: none; border: none; }
.rr-breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--rr-line); }
.rr-breadcrumb a { color: var(--rr-muted) !important; }
.rr-breadcrumb a:hover { color: var(--rr-accent) !important; }

/* --- Board scorecard cards --- */
.rr-board-wrap { margin: 24px 0; padding-bottom: 8px; }
.rr-board-lead { color: var(--rr-muted); font-size: .95rem; margin-bottom: 16px; }
.rr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.rr-card { background: var(--rr-surface); border: 1px solid var(--rr-line); border-radius: var(--rr-radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.rr-card-rank { font-size: 1.1rem; color: var(--rr-muted); }
.rr-card-name { font-size: 1.2rem; font-weight: 700; color: var(--rr-ink); }
.rr-dial { position: relative; width: 74px; height: 74px; }
.rr-dial svg { width: 74px; height: 74px; transform: rotate(-90deg); }
.rr-dial-val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--rr-accent); font-size: 1.05rem; }
.rr-card-offer { font-size: .95rem; color: var(--rr-ink); }
.rr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rr-chip { background: var(--rr-raised); border: 1px solid var(--rr-line); border-radius: var(--rr-radius); padding: 3px 8px; font-size: .78rem; color: var(--rr-muted); }
.rr-cta { display: inline-block; background: var(--rr-accent); color: #14161a !important; font-weight: 700; padding: 10px 18px; border-radius: var(--rr-radius); text-align: center; }
.rr-cta:hover { background: var(--rr-accent-deep); color: #14161a !important; }
.rr-licence { font-size: .78rem; color: var(--rr-muted); }

/* --- Calculator --- */
.rr-calc { background: var(--rr-surface); border: 1px solid var(--rr-line); border-radius: var(--rr-radius); padding: 20px; margin: 24px 0; }
.rr-calc-title { margin-top: 0; color: var(--rr-ink); }
.rr-calc label { display: block; margin: 8px 0; color: var(--rr-muted); font-size: .9rem; }
.rr-calc input { background: var(--rr-ground); color: var(--rr-ink); border: 1px solid var(--rr-line); border-radius: var(--rr-radius); padding: 6px 10px; margin-left: 8px; width: 110px; }
.rr-calc-note { color: var(--rr-muted); font-size: .82rem; }
.rr-calc-value { color: var(--rr-accent); }

/* --- FAQ --- */
.rr-q { font-size: 1.05rem; margin: 20px 0 6px; color: var(--rr-accent) !important; }
.rr-a { margin: 0 0 12px; color: var(--rr-ink) !important; }

/* --- Licence aside --- */
.rr-aside { background: var(--rr-surface); border-left: 3px solid var(--rr-accent); border-radius: var(--rr-radius); padding: 14px 18px; margin: 24px 0; color: var(--rr-muted); font-size: .92rem; }

/* --- Contents bar --- */
.rr-toc { background: var(--rr-surface); border: 1px solid var(--rr-line); border-radius: var(--rr-radius); padding: 14px 18px; margin: 20px 0; }
.rr-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.rr-toc li { margin: 4px 0; }
.rr-toc a { color: var(--rr-ink) !important; }
.rr-toc a:hover { color: var(--rr-accent) !important; }
@media (max-width: 600px) { .rr-toc ol { columns: 1; } }

/* --- Honesty block --- */
.rr-honesty { border: 1px solid var(--rr-line); border-radius: var(--rr-radius); background: var(--rr-surface); padding: 14px 18px; margin: 24px 0; color: var(--rr-muted); font-size: .92rem; }

/* --- Hero --- */
.rr-hero { margin: 8px 0 20px; }
.rr-h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 10px; }
.rr-standfirst { color: var(--rr-muted); font-size: 1.05rem; max-width: 60ch; }
.rr-figure { margin: 20px 0; text-align: center; }
.rr-figure img { max-width: 100%; height: auto; border: 1px solid var(--rr-line); border-radius: var(--rr-radius); }

/* --- Illustrations (v1.0.4): hero and mid-page figures --- */
.rr-hero-figure { margin: 24px 0 28px; }
.rr-hero-figure img { width: 100%; height: auto; display: block; border: 1px solid var(--rr-line); border-radius: 8px; }
.rr-mid-figure { margin: 32px 0; }
.rr-mid-figure img { width: 100%; height: auto; display: block; border: 1px solid var(--rr-line); border-radius: 8px; }
@media (max-width: 600px) {
	.rr-hero-figure, .rr-mid-figure { margin-inline: -12px; }
	.rr-hero-figure img, .rr-mid-figure img { border-radius: 0; border-inline: none; }
}

/* --- Footer: three-column dark footer (v1.0.3) --- */
.rr-footer { background: #0f1114; border-top: 1px solid var(--rr-line); margin-top: 40px; width: 100%; }
.rr-footer-inner { max-width: 1120px; margin-inline: auto; padding: 32px 24px 0; }
.rr-footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.rr-footer-brand { color: var(--rr-accent) !important; font-size: 1.25rem; font-weight: 700; margin: 0 0 10px; }
.rr-footer-desc { color: var(--rr-muted); font-size: .9rem; line-height: 1.6; margin: 0 0 12px; }
.rr-footer-age { color: var(--rr-muted); font-size: .82rem; margin: 0; }
.rr-badge-18 { display: inline-block; border: 1px solid var(--rr-muted); border-radius: 50%; width: 30px; height: 30px; line-height: 28px; text-align: center; font-weight: 700; margin-right: 8px; color: var(--rr-ink); }
.rr-footer-heading { color: var(--rr-ink) !important; font-weight: 700; font-size: .95rem; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .06em; }
.rr-footer-list { list-style: none; margin: 0; padding: 0; }
.rr-footer-list li { margin: 6px 0; }
.rr-footer-list a { color: var(--rr-muted) !important; font-size: .9rem; }
.rr-footer-list a:hover { color: var(--rr-accent) !important; }
.rr-footer-bar { border-top: 1px solid var(--rr-line); margin-top: 28px; padding: 14px 0 18px; color: var(--rr-muted); font-size: .82rem; text-align: center; }
@media (max-width: 800px) { .rr-footer-cols { grid-template-columns: 1fr; gap: 24px; } }

/* --- Header polish (v1.0.3): brand left, nav right, one row --- */
.rr-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 14px; }
.rr-brand-row { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.rr-nav { margin-top: 0; flex: 1 1 auto; }
.rr-nav-list { justify-content: flex-end; }
@media (max-width: 900px) {
	.rr-header-inner { flex-direction: column; align-items: stretch; }
	.rr-brand-row { text-align: center; align-items: center; }
	.rr-nav-list { justify-content: center; }
}