/* Retirement With Gold: site-wide layer over Astra. Tokens from the "Vault Ledger" design. */
:root {
	--rwg-bg: #F4EFE4;
	--rwg-surface: #FFFCF5;
	--rwg-ink: #16202E;
	--rwg-navy: #13233F;
	--rwg-muted: #5A6272;
	--rwg-line: #DDD3BF;
	--rwg-accent: #B5893A;
	--rwg-accent-ink: #7C5A1C;
	--rwg-paper-on-navy: #EFE6D2;
	--rwg-display: "Fraunces", Georgia, serif;
	--rwg-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--rwg-mono: "IBM Plex Mono", ui-monospace, monospace;
	--rwg-radius: 6px;
	--rwg-wrap: 1240px;
}

body {
	background: var(--rwg-bg);
	color: var(--rwg-ink);
	font-family: var(--rwg-body);
}
body, button, input, select, textarea, .ast-button, .ast-custom-button {
	font-family: var(--rwg-body);
}
:where(h1, h2, h3, h4, h5, h6),
.entry-content :where(h1, h2, h3, h4, h5, h6),
.entry-title {
	font-family: var(--rwg-display);
	color: var(--rwg-navy);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.01em;
}
a { color: var(--rwg-accent-ink); }
a:hover, a:focus { color: var(--rwg-navy); }

.rwg-wrap { max-width: var(--rwg-wrap); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header, .ast-primary-header-bar, .main-header-bar {
	background: var(--rwg-surface) !important;
	border-bottom: 1px solid var(--rwg-line) !important;
}
.rwg-wordmark {
	display: inline-flex; align-items: center; gap: 10px;
	text-decoration: none; color: var(--rwg-navy);
}
.rwg-wordmark__mark { width: 32px; height: 32px; flex: none; }
.rwg-wordmark__text {
	font-family: var(--rwg-display); font-weight: 600; font-size: 21px;
	letter-spacing: -0.01em; color: var(--rwg-navy); white-space: nowrap;
}
.rwg-wordmark__text em { font-style: italic; font-weight: 500; color: var(--rwg-accent-ink); }
.main-header-menu .menu-link, .ast-header-break-point .main-header-menu .menu-link {
	font-family: var(--rwg-body); font-weight: 500; font-size: 16px; color: var(--rwg-ink) !important;
}
.main-header-menu .menu-link:hover { color: var(--rwg-accent-ink) !important; }

/* Posts and pages */
.ast-separate-container, .ast-plain-container { background: var(--rwg-bg); }
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
	background: var(--rwg-surface);
	border: 1px solid var(--rwg-line);
	border-radius: var(--rwg-radius);
}
.single .entry-content, .page .entry-content {
	font-size: 17.5px; line-height: 1.7; color: var(--rwg-ink);
}
.single .entry-content > p, .single .entry-content > ul, .single .entry-content > ol,
.page:not(.home) .entry-content > p { max-width: 70ch; }
.entry-content h2 { font-size: clamp(26px, 3vw, 34px); margin: 1.6em 0 .5em; }
.entry-content h3 { font-size: clamp(20px, 2.2vw, 24px); margin: 1.4em 0 .4em; }
.entry-content img { border-radius: var(--rwg-radius); }
.entry-content table {
	width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--rwg-surface);
}
.entry-content th, .entry-content td { border: 1px solid var(--rwg-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry-content th { background: #EDE5D3; color: var(--rwg-navy); font-weight: 600; }
.entry-content blockquote {
	border-left: 3px solid var(--rwg-accent); background: transparent;
	padding: 4px 0 4px 18px; margin: 1.4em 0; font-style: normal;
}

/* Answer-first summary box used in rewritten posts */
.rwg-summary {
	background: #EDE5D3; border-left: 4px solid var(--rwg-accent);
	border-radius: var(--rwg-radius); padding: 18px 22px; margin: 0 0 1.6em;
}
.rwg-summary p:last-child, .rwg-summary ul:last-child { margin-bottom: 0; }

/* FTC disclosure (auto-inserted on pages with affiliate links) */
.rwg-disclosure {
	font-size: 14.5px; line-height: 1.55; color: var(--rwg-muted);
	background: var(--rwg-surface); border: 1px solid var(--rwg-line);
	border-radius: var(--rwg-radius); padding: 12px 16px; margin: 0 0 1.6em;
}
.rwg-disclosure strong { color: var(--rwg-ink); }

/* Affiliate buttons inside posts */
.entry-content .wp-block-button__link, .rwg-btn {
	display: inline-block; font-family: var(--rwg-body); font-weight: 600;
	font-size: 16.5px; line-height: 1.2; text-decoration: none;
	padding: 15px 26px; border-radius: var(--rwg-radius);
	background: var(--rwg-accent); color: var(--rwg-navy); border: 1px solid var(--rwg-accent);
	transition: background-color .15s ease, transform .1s ease;
}
.entry-content .wp-block-button__link:hover, .rwg-btn--primary:hover {
	background: #C79A49; color: var(--rwg-navy);
}
.entry-content .wp-block-button__link:active, .rwg-btn:active { transform: translateY(1px); }
.entry-content .wp-block-button__link:focus-visible, .rwg-btn:focus-visible {
	outline: 3px solid var(--rwg-navy); outline-offset: 3px;
}

/* Footer */
.rwg-footer-note { background: var(--rwg-surface); border-top: 1px solid var(--rwg-line); }
.rwg-footer-note p { font-size: 14px; color: var(--rwg-muted); margin: 0; padding: 18px 0; max-width: 90ch; }
.site-footer, .site-below-footer-wrap, .ast-small-footer {
	background: var(--rwg-navy) !important; color: var(--rwg-paper-on-navy) !important;
}
.site-footer a, .site-below-footer-wrap a { color: var(--rwg-paper-on-navy) !important; }

/* Glossary tooltips */
.glossary-tooltip-item, .glossary-link a { color: var(--rwg-accent-ink); border-bottom-color: var(--rwg-accent); }

@media (max-width: 600px) {
	.rwg-wordmark__text { font-size: 18px; }
	.single .entry-content, .page .entry-content { font-size: 16.5px; }
}

/* Scroll-to-top button */
#ast-scroll-top { background-color: var(--rwg-navy) !important; color: var(--rwg-paper-on-navy) !important; border-radius: var(--rwg-radius); }
.ast-footer-copyright, .ast-footer-copyright p { color: #CDBF9F !important; font-size: 14px; }
.ast-mobile-menu-trigger-minimal, .menu-toggle, .ast-button-wrap .menu-toggle { color: var(--rwg-navy) !important; }
.ast-mobile-svg, .menu-toggle svg { fill: var(--rwg-navy) !important; }

/* Post FAQ */
.rwg-post-faq { border-top: 2px solid var(--rwg-navy); margin: 1em 0 2em; max-width: 70ch; }
.rwg-post-faq details { border-bottom: 1px solid var(--rwg-line); }
.rwg-post-faq summary { cursor: pointer; padding: 16px 0; font-family: var(--rwg-display); font-weight: 600; font-size: 19px; color: var(--rwg-navy); }
.rwg-post-faq details p { margin: 0 0 16px; }
.rwg-sources { font-size: 14.5px; color: var(--rwg-muted); }
.entry-meta, .entry-meta * { color: var(--rwg-muted) !important; font-size: 15px; }
.entry-meta a:hover { color: var(--rwg-accent-ink) !important; }

/* Contact form */
.entry-content .wpforms-container { max-width: 70ch; margin-left: auto !important; margin-right: auto !important; }
.entry-content .wpforms-container input, .entry-content .wpforms-container textarea { border: 1px solid var(--rwg-line) !important; border-radius: var(--rwg-radius) !important; background: var(--rwg-surface) !important; font-family: var(--rwg-body) !important; }
.entry-content .wpforms-container input:focus, .entry-content .wpforms-container textarea:focus { outline: 2px solid var(--rwg-accent) !important; border-color: var(--rwg-accent) !important; }
.entry-content .wpforms-container .wpforms-field-label { color: var(--rwg-navy) !important; font-weight: 600 !important; }
.entry-content .wpforms-container button[type=submit] { background: var(--rwg-accent) !important; color: var(--rwg-navy) !important; border: 0 !important; border-radius: var(--rwg-radius) !important; font-weight: 600 !important; padding: 14px 26px !important; height: auto !important; }
.entry-content .wpforms-container button[type=submit]:hover { background: #C79A49 !important; }

/* Calculator */
.rwg-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--rwg-line); border-radius: var(--rwg-radius); background: var(--rwg-surface); margin: 1.5em 0 2em; overflow: hidden; }
.rwg-calc form { padding: 24px; display: grid; gap: 16px; }
.rwg-calc__field { display: grid; gap: 4px; }
.rwg-calc__label { font-weight: 600; color: var(--rwg-navy); font-size: 15.5px; }
.rwg-calc__input { display: flex; align-items: center; border: 1px solid var(--rwg-line); border-radius: var(--rwg-radius); background: #fff; padding: 0 12px; }
.rwg-calc__input:focus-within { outline: 2px solid var(--rwg-accent); border-color: var(--rwg-accent); }
.rwg-calc__input span { color: var(--rwg-muted); font-family: var(--rwg-mono); font-size: 14px; }
.rwg-calc__input input { border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; width: 100%; padding: 10px 6px !important; font-size: 17px; font-family: var(--rwg-mono); color: var(--rwg-ink); }
.rwg-calc__hint { font-size: 13px; color: var(--rwg-muted); line-height: 1.4; }
.rwg-calc__out { background: var(--rwg-navy); color: var(--rwg-paper-on-navy); padding: 28px; }
.rwg-calc__headline > span { display: block; font-family: var(--rwg-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #CDBF9F; }
.rwg-calc__headline strong { display: block; font-family: var(--rwg-display); font-weight: 500; font-size: clamp(40px, 5vw, 56px); line-height: 1.05; color: #E2C17E; margin: 8px 0 4px; }
.rwg-calc__headline em { font-style: normal; color: #CDBF9F; }
.rwg-calc__rows { margin: 22px 0 0; border-top: 1px solid rgba(239,230,210,.25); }
.rwg-calc__rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(239,230,210,.15); }
.rwg-calc__rows dt { font-size: 15px; }
.rwg-calc__rows dd { margin: 0; font-family: var(--rwg-mono); white-space: nowrap; }
.rwg-calc__be dt, .rwg-calc__be dd { color: #E2C17E; font-weight: 600; }
.rwg-calc__note { font-size: 13px; color: #CDBF9F; margin: 18px 0 0; }
@media (max-width: 760px) { .rwg-calc { grid-template-columns: 1fr; } }
