/*
	Rage of Mages 2 getting-started guide (rom2/install, shortcut, account, play, faq).
	Sits on top of main.css, dark.css and rom2.css. Never edit main.css for these pages.
*/

/* progress indicator */
.guide-progress { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5em; padding: 0; margin: 0 0 2em 0; counter-reset: gstep; }
.guide-progress li { flex: 1 1 9em; margin: 0; padding: 0; counter-increment: gstep; }
.guide-progress a { display: block; padding: 0.6em 0.8em; border-radius: 8px; border: solid 2px #dfe4e1; color: #6b7770; text-decoration: none; font-size: 0.9em; line-height: 1.3; }
.guide-progress a::before { content: counter(gstep) ". "; font-weight: 700; }
.guide-progress li.is-done a { border-color: #b1ddab; color: #3d6b37; }
.guide-progress li.is-current a { border-color: #3d6b37; background: #3d6b37; color: #fff; font-weight: 700; }
.guide-progress li.is-extra a::before { content: "? "; }

/* numbered flow */
ol.guide-steps { margin: 0 0 1.5em 0; padding-left: 0; list-style: none; counter-reset: gs; }
ol.guide-steps > li { position: relative; counter-increment: gs; padding: 0 0 1.5em 3em; margin: 0; }
ol.guide-steps > li::before { content: counter(gs); position: absolute; left: 0; top: 0; width: 2em; height: 2em; line-height: 2em; text-align: center; border-radius: 50%; background: #3d6b37; color: #fff; font-weight: 700; }
ol.guide-steps > li h3 { margin: 0 0 0.4em 0; }

.guide-shot { display: block; width: 100%; max-width: 720px; height: auto; aspect-ratio: 16 / 9; margin: 0.75em 0 0.5em 0; border-radius: 8px; border: solid 1px #dfe4e1; }
.guide-shot-caption { font-size: 0.85em; color: #7c8681; margin: 0 0 1em 0; }

/* copyable command / path */
.guide-copy { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.5em; margin: 0.5em 0 1em 0; }
.guide-copy code { flex: 1 1 20em; display: block; padding: 0.7em 0.9em; border-radius: 6px; background: #f2f5f3; color: #2c3530; font-size: 0.95em; word-break: break-all; }
.guide-copy .button { margin: 0; }
.guide-copied { font-size: 0.9em; color: #2e7d32; font-weight: 700; min-height: 1.2em; margin: 0; }

.guide-download-soon { padding: 1em 1.25em; border-radius: 8px; background: #fdf5e6; color: #5d4a22; }

/* prev / next */
.guide-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1em; margin-top: 2em; padding-top: 1.5em; border-top: solid 1px #dfe4e1; }
.guide-nav .button { margin: 0; }
.guide-nav .guide-nav-spacer { flex: 1; }

/* FAQ */
.guide-faq details { border-bottom: solid 1px #dfe4e1; padding: 0.8em 0; }
.guide-faq summary { cursor: pointer; font-weight: 700; color: #3d4a43; }
.guide-faq details > div { padding: 0.6em 0 0 1em; }

/* archived page note */
.guide-archived { margin: 0 0 1.5em 0; padding: 0.8em 1.1em; border-radius: 8px; background: #fbefd5; color: #6e5212; font-weight: 700; }

/* step cards on rom2.html */
.guide-cards .feature img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

html[data-theme="dark"] .guide-progress a { border-color: #34393c; color: #a3aba6; }
html[data-theme="dark"] .guide-progress li.is-done a { border-color: #3d6b37; color: #b1ddab; }
html[data-theme="dark"] .guide-progress li.is-current a { background: #3d6b37; border-color: #3d6b37; color: #eceeed; }
html[data-theme="dark"] .guide-shot { border-color: #34393c; }
html[data-theme="dark"] .guide-shot-caption { color: #a3aba6; }
html[data-theme="dark"] .guide-copy code { background: #2a2e30; color: #eceeed; }
html[data-theme="dark"] .guide-copied { color: #7fd48a; }
html[data-theme="dark"] .guide-download-soon { background: #45391c; color: #f3d898; }
html[data-theme="dark"] .guide-nav { border-top-color: #34393c; }
html[data-theme="dark"] .guide-faq details { border-bottom-color: #34393c; }
html[data-theme="dark"] .guide-faq summary { color: #eceeed; }
html[data-theme="dark"] .guide-archived { background: #45391c; color: #f3d898; }
