/* Homepage template (template-home.php) */
.page-template-template-home #content > .ast-container,
.page-template-template-home .site-content > .ast-container {
	max-width: none; padding: 0; display: block;
}
.page-template-template-home #primary { margin: 0; padding: 0; width: 100%; }

.rwg-home { font-size: 17px; line-height: 1.65; color: var(--rwg-ink); }
.rwg-home :where(h1, h2, h3, p, ul, ol, dl, dd, figure, table) { margin: 0; }
.rwg-home :where(ul, ol) { padding: 0; list-style: none; }
.rwg-home h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; color: var(--rwg-navy); max-width: 22ch; }
.rwg-home h3 { font-size: 21px; line-height: 1.2; color: var(--rwg-navy); }
.rwg-home p + p { margin-top: 1em; }
.rwg-answer { font-size: 19.5px; line-height: 1.55; color: var(--rwg-ink); margin-top: 18px !important; max-width: 60ch; }
.rwg-muted { color: var(--rwg-muted); font-size: 15px; }
.rwg-link { font-weight: 600; text-underline-offset: 3px; }
.rwg-section { padding: 96px 0; border-top: 1px solid var(--rwg-line); }

.rwg-btn--ghost {
	background: transparent; color: var(--rwg-navy); border-color: var(--rwg-navy);
}
.rwg-btn--ghost:hover { background: var(--rwg-navy); color: var(--rwg-paper-on-navy); }

/* Hero */
.rwg-hero { padding: 72px 0 0; overflow: hidden; }
.rwg-hero__grid {
	display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center;
}
.rwg-hero__title {
	font-size: clamp(40px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -0.025em;
	color: var(--rwg-navy); max-width: 16ch;
}
.rwg-hero__lede { font-size: 20px; line-height: 1.55; color: var(--rwg-muted); margin-top: 24px !important; max-width: 40ch; }
.rwg-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.rwg-hero__media { position: relative; margin-right: -12vw !important; }
.rwg-hero__media::before {
	content: ""; position: absolute; inset: 28px auto -28px -28px; width: 70%;
	border: 2px solid var(--rwg-accent); border-radius: var(--rwg-radius); z-index: 0;
}
.rwg-hero__img {
	position: relative; z-index: 1; display: block; width: 100%; height: 520px;
	object-fit: cover; border-radius: var(--rwg-radius);
	box-shadow: 0 30px 60px -30px rgba(19, 35, 63, .45);
}
.rwg-hero__disclosure {
	margin-top: 64px !important; padding: 14px 0; border-top: 1px solid var(--rwg-line);
	font-size: 14px; color: var(--rwg-muted);
}
.rwg-hero__disclosure strong { color: var(--rwg-ink); }

/* Figures band */
.rwg-figures { background: var(--rwg-navy); color: var(--rwg-paper-on-navy); padding: 64px 0 48px; }
.rwg-figures__title { color: var(--rwg-paper-on-navy) !important; font-size: clamp(24px, 2.6vw, 30px) !important; max-width: none !important; }
.rwg-figures__list {
	display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 36px;
	border-top: 1px solid rgba(239, 230, 210, .25);
}
.rwg-figures__list > div { padding: 26px 24px 8px 0; border-right: 1px solid rgba(239, 230, 210, .18); display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.rwg-figures__list > div + div { padding-left: 24px; }
.rwg-figures__list > div:last-child { border-right: 0; }
.rwg-figures__list dt {
	font-family: var(--rwg-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase;
	color: #CDBF9F;
}
.rwg-figures__list dd {
	font-family: var(--rwg-display); font-weight: 500; font-size: clamp(44px, 5vw, 68px);
	line-height: 1; color: #E2C17E; letter-spacing: -0.02em;
}
.rwg-figures__src { margin-top: 30px !important; font-size: 14px; color: #CDBF9F; }
.rwg-figures__src a { color: var(--rwg-paper-on-navy); }

/* What is */
.rwg-what__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 72px; align-items: start; }
.rwg-prose p:not(.rwg-answer) { max-width: 64ch; }
.rwg-prose h2 + .rwg-answer + p { margin-top: 22px; }
.rwg-metals {
	background: var(--rwg-surface); border: 1px solid var(--rwg-line); border-radius: var(--rwg-radius);
	padding: 30px; margin-top: 8px;
}
.rwg-metals table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 16px; }
.rwg-metals th { font-family: var(--rwg-mono); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--rwg-muted); text-align: left; padding: 0 0 10px; border-bottom: 1px solid var(--rwg-line); }
.rwg-metals td { padding: 11px 0; border-bottom: 1px solid var(--rwg-line); }
.rwg-metals td:last-child { font-family: var(--rwg-mono); text-align: right; }
.rwg-metals th:last-child { text-align: right; }
.rwg-metals p { font-size: 14.5px; color: var(--rwg-muted); }

/* Steps */
.rwg-steps { background: var(--rwg-surface); }
.rwg-steps__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; }
.rwg-steps__media { position: sticky; top: 40px; margin-left: -8vw !important; }
.rwg-steps__img { display: block; width: 100%; height: 560px; object-fit: cover; border-radius: var(--rwg-radius); }
.rwg-steps__list { counter-reset: step; margin-top: 30px !important; }
.rwg-steps__list li { counter-increment: step; position: relative; padding: 24px 0 24px 64px; border-top: 1px solid var(--rwg-line); }
.rwg-steps__list li::before {
	content: counter(step); position: absolute; left: 0; top: 18px;
	font-family: var(--rwg-display); font-size: 40px; line-height: 1; color: var(--rwg-accent);
}
.rwg-steps__list p { margin-top: 8px !important; color: var(--rwg-muted); max-width: 56ch; }

/* Fit */
.rwg-fit__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 44px; border-top: 2px solid var(--rwg-navy); }
.rwg-fit__col { padding: 30px 40px 0 0; }
.rwg-fit__col--no { padding-left: 40px; border-left: 1px solid var(--rwg-line); }
.rwg-fit__col li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--rwg-line); }
.rwg-fit__col li::before { position: absolute; left: 0; top: 12px; font-weight: 700; }
.rwg-fit__col--yes li::before { content: "+"; color: var(--rwg-accent-ink); }
.rwg-fit__col--no li::before { content: "\2212"; color: #9A3B2E; }
.rwg-fit__col h3 { margin-bottom: 10px; }

/* Costs */
.rwg-costs__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.rwg-costs .rwg-muted { margin-top: 18px; }
.rwg-table-wrap { overflow-x: auto; }
.rwg-table { width: 100%; border-collapse: collapse; background: var(--rwg-surface); border: 1px solid var(--rwg-line); border-radius: var(--rwg-radius); font-size: 15.5px; }
.rwg-table th { text-align: left; font-family: var(--rwg-mono); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--rwg-muted); padding: 16px 18px; border-bottom: 1px solid var(--rwg-line); }
.rwg-table td { padding: 15px 18px; border-bottom: 1px solid var(--rwg-line); vertical-align: top; }
.rwg-table tr:last-child td { border-bottom: 0; }
.rwg-table td:first-child { font-weight: 600; color: var(--rwg-navy); white-space: nowrap; }

/* Scams band */
.rwg-band { background: var(--rwg-navy); color: var(--rwg-paper-on-navy); padding: 96px 0; }
.rwg-band h2 { color: var(--rwg-paper-on-navy) !important; }
.rwg-band a { color: #E2C17E; }
.rwg-scams__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: start; }
.rwg-scams__num { font-family: var(--rwg-display); font-weight: 500; font-size: clamp(88px, 12vw, 168px); line-height: .9; color: #E2C17E; letter-spacing: -0.04em; }
.rwg-scams__cap { margin-top: 18px !important; max-width: 34ch; color: #CDBF9F; }
.rwg-scams__list { margin: 24px 0 !important; }
.rwg-scams__list li { padding: 12px 0 12px 28px; border-bottom: 1px solid rgba(239, 230, 210, .18); position: relative; }
.rwg-scams__list li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 2px; background: var(--rwg-accent); }

/* Partner */
.rwg-partner__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 80px; align-items: start; }
.rwg-partner__grid > div:first-child p:not(.rwg-answer) { margin: 18px 0 30px; max-width: 60ch; }
.rwg-partner__reviews { padding-top: 10px; }
.rwg-rule-list { margin-top: 14px !important; border-top: 1px solid var(--rwg-line); }
.rwg-rule-list li a {
	display: flex; justify-content: space-between; gap: 16px; padding: 14px 0;
	border-bottom: 1px solid var(--rwg-line); color: var(--rwg-navy); text-decoration: none; font-weight: 500;
}
.rwg-rule-list li a::after { content: "\2192"; color: var(--rwg-accent-ink); transition: transform .15s ease; }
.rwg-rule-list li a:hover::after { transform: translateX(4px); }
.rwg-rule-list li a:hover { color: var(--rwg-accent-ink); }

/* Library */
.rwg-library { background: var(--rwg-surface); }
.rwg-library__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; margin-top: 40px; align-items: start; }
.rwg-feature { display: block; text-decoration: none; color: var(--rwg-ink); }
.rwg-feature__img { display: block; width: 100%; height: 360px; object-fit: cover; border-radius: var(--rwg-radius); }
.rwg-feature__body { display: block; padding-top: 20px; }
.rwg-feature__title { display: block; font-family: var(--rwg-display); font-size: 28px; line-height: 1.15; color: var(--rwg-navy); font-weight: 600; }
.rwg-feature__desc { display: block; margin-top: 8px; color: var(--rwg-muted); }
.rwg-feature:hover .rwg-feature__title { color: var(--rwg-accent-ink); }
.rwg-library__list { margin-top: 0 !important; }

/* FAQ */
.rwg-faq__grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 64px; align-items: start; }
.rwg-faq__list { border-top: 2px solid var(--rwg-navy); }
.rwg-faq details { border-bottom: 1px solid var(--rwg-line); }
.rwg-faq summary {
	list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
	font-family: var(--rwg-display); font-size: 21px; line-height: 1.25; color: var(--rwg-navy); font-weight: 600;
}
.rwg-faq summary::-webkit-details-marker { display: none; }
.rwg-faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--rwg-body); font-size: 26px; color: var(--rwg-accent-ink); }
.rwg-faq details[open] summary::after { content: "\2212"; }
.rwg-faq details p { padding: 0 0 22px; color: var(--rwg-ink); max-width: 64ch; }
.rwg-faq summary:focus-visible { outline: 3px solid var(--rwg-accent); outline-offset: 2px; }

/* Close */
.rwg-close { border-top: 1px solid rgba(239, 230, 210, .15); }
.rwg-close__inner > * { max-width: 720px; }
.rwg-close p { margin: 18px 0 32px !important; color: #CDBF9F; font-size: 19px; }

.rwg-legal { padding: 28px 0; background: var(--rwg-bg); }
.rwg-legal p { font-size: 13.5px; color: var(--rwg-muted); max-width: 100ch; }

/* Responsive */
@media (max-width: 1000px) {
	.rwg-hero__grid, .rwg-what__grid, .rwg-steps__grid, .rwg-costs__grid,
	.rwg-scams__grid, .rwg-partner__grid, .rwg-library__grid, .rwg-faq__grid { grid-template-columns: 1fr; gap: 40px; }
	.rwg-hero__media { margin-right: 0 !important; }
	.rwg-hero__img { height: 340px; }
	.rwg-steps__media { position: static; margin-left: 0 !important; }
	.rwg-steps__img { height: 300px; }
	.rwg-figures__list { grid-template-columns: 1fr 1fr; }
	.rwg-figures__list > div:nth-child(2) { border-right: 0; }
	.rwg-figures__list > div:nth-child(3) { padding-left: 0; }
}
@media (max-width: 640px) {
	.rwg-section, .rwg-band { padding: 64px 0; }
	.rwg-hero { padding-top: 40px; }
	.rwg-hero__media::before { display: none; }
	.rwg-hero__lede { font-size: 18px; }
	.rwg-fit__cols { grid-template-columns: 1fr; }
	.rwg-fit__col--no { padding-left: 0; border-left: 0; padding-top: 36px; }
	.rwg-figures__list { grid-template-columns: 1fr 1fr; }
	.rwg-figures__list > div { padding: 18px 12px 4px 0; }
	.rwg-figures__list > div + div { padding-left: 12px; }
	.rwg-figures__list > div:nth-child(3) { padding-left: 0; }
	.rwg-btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	.rwg-home * { transition: none !important; }
}

/* Astra table border reset inside homepage */
.rwg-home table, .rwg-home th, .rwg-home td { border-left: 0; border-right: 0; }
.rwg-home .rwg-table { border: 1px solid var(--rwg-line); }
.rwg-band .rwg-btn--primary, .rwg-band .rwg-btn--primary:hover { color: var(--rwg-navy); }
@media (max-width: 640px) {
	.rwg-table thead { display: none; }
	.rwg-table, .rwg-table tbody, .rwg-table tr, .rwg-table td { display: block; width: 100%; }
	.rwg-table tr { padding: 14px 16px; border-bottom: 1px solid var(--rwg-line); }
	.rwg-table tr:last-child { border-bottom: 0; }
	.rwg-table td { padding: 3px 0; border: 0 !important; }
	.rwg-table td:first-child { font-size: 17px; padding-bottom: 6px; }
	.rwg-table td:nth-child(2)::before { content: 'Charged: '; font-weight: 600; color: var(--rwg-muted); }
	.rwg-table td:nth-child(3)::before { content: 'Ask: '; font-weight: 600; color: var(--rwg-muted); }
}
