/* SOF2 RMG: the /rmg/ page. Uses the SOF2MP theme's colours, with fallbacks for other themes. */

.sof2r-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 12px; padding: 0; list-style: none; font-size: .95rem; color: var(--muted, #aab6b5); }
.sof2r-crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--dim, #7f8d8b); }
.sof2r-crumbs a { color: var(--gold, #d3a45d); text-decoration: none; }
.sof2r-crumbs a:hover { text-decoration: underline; }

/* Hero */
.sof2r-hero { padding-bottom: 36px; }
.sof2r-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 32px; align-items: center; }
.sof2r-hero-grid > :only-child { grid-column: 1 / -1; }
.sof2r-eyebrow { margin: 0 0 10px; font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold, #d3a45d); }
.sof2r-badge { display: inline-block; margin-right: 10px; padding: 3px 10px; border-radius: 999px; background: var(--gold, #d3a45d); color: #141410; font-weight: 800; font-size: .75rem; letter-spacing: .08em; vertical-align: 1px; }
.sof2r-hero .lead { max-width: 720px; }
.sof2r-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* "Test it on" box */
.sof2r-play { padding: 20px 22px; border: 1px solid var(--line, #26333b); border-left: 4px solid var(--green, #7fd18c); border-radius: var(--radius, 14px); background: var(--panel, #131b21); }
.sof2r-play p { margin: 0; }
.sof2r-play-eyebrow { font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim, #7f8d8b); }
.sof2r-play-name { margin: 6px 0 4px !important; font-family: var(--font-display, inherit); font-size: 1.35rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.sof2r-play-name a { color: var(--text, #eef1ee); text-decoration: none; }
.sof2r-play-name a:hover { color: var(--gold-2, #f2ce8d); }
.sof2r-play-status { color: var(--muted, #aab6b5); }
.sof2r-play-status.is-online::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--green, #7fd18c); box-shadow: 0 0 0 4px rgba(127, 209, 140, .15); vertical-align: 1px; }
.sof2r-play-actions { margin-top: 14px; }

/* Layout: page + "At a glance" column (hidden on narrow screens, where it would only repeat the page) */
.sof2r-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 56px; align-items: start; }
.sof2r-side { position: sticky; top: 96px; }
.sof2r-side-box { padding: 18px 20px; border: 1px solid var(--line, #26333b); border-radius: var(--radius, 14px); background: var(--panel, #131b21); }
.sof2r-side-title { margin: 0 0 10px !important; font-family: var(--font-body, inherit) !important; font-size: .78rem !important; letter-spacing: .1em; text-transform: uppercase; color: var(--dim, #7f8d8b); }
.sof2r-facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 20px; font-size: .95rem; }
.sof2r-facts dt { color: var(--dim, #7f8d8b); }
.sof2r-facts dd { margin: 0; color: var(--text, #eef1ee); font-weight: 600; overflow-wrap: anywhere; }
.sof2r-facts code { padding: 1px 6px; border: 1px solid var(--line, #26333b); border-radius: 6px; background: var(--bg-2, #0e141a); color: var(--gold-2, #f2ce8d); font-size: .85em; font-weight: 400; }
.sof2r-toc { margin: 0; padding: 0; list-style: none; }
.sof2r-toc li { margin: 2px 0; }
.sof2r-toc a { display: block; padding: 4px 0 4px 10px; border-left: 2px solid var(--line, #26333b); color: var(--muted, #aab6b5); text-decoration: none; }
.sof2r-toc a:hover { border-left-color: var(--gold, #d3a45d); color: var(--gold-2, #f2ce8d); }
.sof2r-section[id] { scroll-margin-top: 100px; }

/* Body */
.sof2r-main { max-width: 860px; font-size: 1.08rem; line-height: 1.7; }
.sof2r-section { margin: 0 0 44px; }
.sof2r-section h2, .sof2r-thanks h2 { margin: 0 0 12px; }
.sof2r-section h3 { margin: 26px 0 10px; }
.sof2r-section p { margin: 0 0 12px; color: var(--muted, #aab6b5); }
.sof2r-section ul { margin: 0 0 12px; padding-left: 1.3em; }
.sof2r-section li { margin: 6px 0; }
.sof2r-section strong { color: var(--text, #eef1ee); }
.sof2r-main code { padding: 2px 7px; border: 1px solid var(--line, #26333b); border-radius: 6px; background: var(--bg-2, #0e141a); color: var(--gold-2, #f2ce8d); font-size: .92em; white-space: nowrap; }

.sof2r-ticks, .sof2r-crosses { list-style: none; padding-left: 0 !important; }
.sof2r-ticks li, .sof2r-crosses li { position: relative; padding-left: 30px; }
.sof2r-ticks li::before, .sof2r-crosses li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.sof2r-ticks li::before { content: "✓"; color: var(--green, #7fd18c); }
.sof2r-crosses li::before { content: "✕"; color: var(--red, #e0675c); }
.sof2r-punch { padding: 12px 16px; border-left: 3px solid var(--gold, #d3a45d); background: rgba(211, 164, 93, .08); border-radius: 0 8px 8px 0; color: var(--text, #eef1ee) !important; font-weight: 600; }

.sof2r-stat { margin: 22px 0; padding: 20px 24px; border: 1px solid rgba(211, 164, 93, .35); border-radius: var(--radius, 14px); background: linear-gradient(90deg, rgba(211, 164, 93, .14), var(--panel, #131b21) 75%); }
.sof2r-stat p { margin: 0 0 8px; }
.sof2r-stat p:last-child { margin-bottom: 0; }
.sof2r-stat-n { margin: 0 0 4px !important; font-family: var(--font-display, inherit); font-size: 2.6rem; font-weight: 700; line-height: 1.05; color: var(--gold-2, #f2ce8d) !important; }
.sof2r-codes { display: flex; flex-wrap: wrap; gap: 10px; }

/* Map styles */
.sof2r-styles { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; align-items: start; }
.sof2r-style { padding: 20px 22px; border: 1px solid var(--line, #26333b); border-radius: var(--radius, 14px); background: var(--panel, #131b21); }
.sof2r-style h4 { margin: 0 0 6px; font-family: var(--font-display, inherit); font-size: 1.4rem; }
.sof2r-style p { margin-bottom: 10px; }
.sof2r-style ul { margin: 0; font-size: 1rem; color: var(--muted, #aab6b5); }

/* Boxes and notes */
.sof2r-box { padding: 22px 24px; border: 1px solid var(--line, #26333b); border-radius: var(--radius, 14px); background: var(--panel, #131b21); }
.sof2r-box .btn { margin-top: 6px; }
.sof2r-note { margin: 14px 0; padding: 14px 18px; border: 1px solid var(--line, #26333b); border-left: 4px solid var(--blue, #6fa3dc); border-radius: 10px; background: var(--panel, #131b21); }
.sof2r-note.is-warning { border-left-color: var(--red, #e0675c); }
.sof2r-note p { margin: 0 !important; }
.sof2r-thanks { padding: 26px 28px; border: 1px solid rgba(211, 164, 93, .35); border-radius: var(--radius, 14px); background: linear-gradient(90deg, rgba(211, 164, 93, .12), var(--panel, #131b21) 70%); }
.sof2r-thanks p { margin: 0; color: var(--muted, #aab6b5); }

@media (max-width: 1100px) {
	.sof2r-layout { grid-template-columns: minmax(0, 1fr); }
	.sof2r-side { display: none; }
}
@media (max-width: 900px) {
	.sof2r-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.sof2r-styles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
	.sof2r-actions .btn { flex: 1 1 auto; }
	.sof2r-main { font-size: 1rem; }
	.sof2r-box, .sof2r-thanks, .sof2r-style { padding: 18px; }
	.sof2r-main code { white-space: normal; overflow-wrap: anywhere; }
}
