/* RMSC Downloads page — dark desert look, matching the DuneCross pages. */
body.rmsc-dl-page { background: #100b08 !important; }
body.rmsc-dl-page .uicore-page-title, body.rmsc-dl-page .entry-header, body.rmsc-dl-page .page-header, body.rmsc-dl-page h1.entry-title { display: none !important; }
body.rmsc-dl-page #content, body.rmsc-dl-page .site-content, body.rmsc-dl-page .uicore-content, body.rmsc-dl-page .uicore-content-wrapper, body.rmsc-dl-page #primary, body.rmsc-dl-page #main, body.rmsc-dl-page .site, body.rmsc-dl-page .site-main, body.rmsc-dl-page .content-area { background: transparent !important; }

.rmsc-dl { --dl-o: #e9640e; --dl-o2: #ff8a3d; --dl-sand: #f3b88f; --dl-card: #1a120c; --dl-line: rgba(255,255,255,.12); --dl-mute: rgba(255,255,255,.7);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: #fff; background: #100b08; line-height: 1.5; overflow-x: clip; font-size: 16px; }
.rmsc-dl *, .rmsc-dl *::before, .rmsc-dl *::after { box-sizing: border-box; }
.rmsc-dl h1, .rmsc-dl h2, .rmsc-dl h3 { color: #fff; margin: 0; padding: 0; font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: 0; line-height: 1; border: 0; }
.rmsc-dl p { margin: 0; padding: 0; }
.rmsc-dl img { max-width: 100%; height: auto; border: 0; border-radius: 0; box-shadow: none; }
.rmsc-dl button { font: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; }
.rmsc-dl-wrap { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.rmsc-dl-preview { position: sticky; top: 0; z-index: 50; padding: 10px 20px; background: #ffd27a; color: #1a1208; font-size: 14px; text-align: center; }

/* Header */
.rmsc-dl-hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 64px); background: radial-gradient(110% 90% at 80% 0%, #4a2a14 0%, #1f140d 55%, #100b08 100%); }
.rmsc-dl-dunes { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 45%; pointer-events: none; }
.rmsc-dl-dunes path { fill: rgba(233,100,14,.07); }
.rmsc-dl-dunes path + path { fill: rgba(16,11,8,.7); }
.rmsc-dl-hero .rmsc-dl-wrap { z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.rmsc-dl-k { color: var(--dl-sand); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.rmsc-dl .rmsc-dl-h1 { font-size: clamp(44px, 7vw, 84px); line-height: .95; }
.rmsc-dl-lead { max-width: 620px; color: var(--dl-mute); font-size: 17px; line-height: 1.6; }

/* Category chips */
.rmsc-dl-chips { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.rmsc-dl-chips::-webkit-scrollbar { display: none; }
.rmsc-dl .rmsc-dl-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; padding: 0 16px !important; border: 1px solid var(--dl-line) !important; border-radius: 999px !important; background: rgba(30,21,15,.75) !important; color: #fff !important; font-size: 14px !important; font-weight: 600 !important; line-height: 1 !important; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s; }
.rmsc-dl .rmsc-dl-chip span { color: var(--dl-mute); font-weight: 500; font-size: 13px; }
.rmsc-dl .rmsc-dl-chip:hover { border-color: rgba(255,138,61,.6) !important; }
.rmsc-dl .rmsc-dl-chip.is-on { background: var(--dl-o) !important; border-color: var(--dl-o) !important; }
.rmsc-dl .rmsc-dl-chip.is-on span { color: rgba(255,255,255,.85); }

/* Sections */
.rmsc-dl-body { padding-top: 12px; padding-bottom: 72px; }
.rmsc-dl-sec { padding-top: 44px; scroll-margin-top: 90px; }
.rmsc-dl-sec[hidden] { display: none; }
.rmsc-dl-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.rmsc-dl-head h2 { font-size: clamp(30px, 4vw, 42px); }
.rmsc-dl-head h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 10px; border-radius: 2px; background: var(--dl-o2); }
.rmsc-dl-head p { max-width: 640px; color: var(--dl-mute); font-size: 15px; }
.rmsc-dl-empty { padding: 60px 0; color: var(--dl-mute); font-size: 17px; text-align: center; }

/* Grid: column width follows the shape of the pictures in that section */
.rmsc-dl-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.rmsc-dl-grid.is-tall { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.rmsc-dl-grid.is-wide { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.rmsc-dl-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--dl-line); border-radius: 18px; background: var(--dl-card); transition: border-color .2s, transform .2s; }
.rmsc-dl-card:hover { border-color: rgba(255,138,61,.45); }
.rmsc-dl .rmsc-dl-prev { position: relative; display: block; width: 100%; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: #0b0806 !important; cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 5; }
.is-tall .rmsc-dl-prev { aspect-ratio: 9 / 17; }
.is-wide .rmsc-dl-prev { aspect-ratio: 16 / 9; }
.rmsc-dl .rmsc-dl-prev img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s ease; }
.rmsc-dl-prev:hover img { transform: scale(1.03); }
.rmsc-dl-zoom { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(16,11,8,.7); color: #fff; opacity: 0; transition: opacity .2s; }
.rmsc-dl-prev:hover .rmsc-dl-zoom, .rmsc-dl-prev:focus-visible .rmsc-dl-zoom { opacity: 1; }
.rmsc-dl-info { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 16px; flex: 1; }
.rmsc-dl .rmsc-dl-info h3 { font-size: 22px; line-height: 1.05; }
.rmsc-dl-note { color: var(--dl-mute); font-size: 14px; line-height: 1.45; }
.rmsc-dl-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-top: 2px !important; color: rgba(255,255,255,.5); font-size: 12.5px; }

/* Download buttons */
.rmsc-dl-btns { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 4px; }
.rmsc-dl .rmsc-dl-btn { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 14px; border-radius: 12px; background: rgba(233,100,14,.14); box-shadow: inset 0 0 0 1px rgba(255,138,61,.35); color: #fff !important; text-decoration: none !important; transition: background .2s; }
.rmsc-dl .rmsc-dl-btn:hover, .rmsc-dl .rmsc-dl-btn:focus-visible { background: var(--dl-o); }
.rmsc-dl .rmsc-dl-btn svg { flex: none; color: var(--dl-o2); }
.rmsc-dl .rmsc-dl-btn:hover svg { color: #fff; }
.rmsc-dl-btn span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.rmsc-dl-btn b { font-size: 14.5px; font-weight: 700; }
.rmsc-dl-btn small { color: rgba(255,255,255,.62); font-size: 12px; }
.rmsc-dl-btn:hover small { color: rgba(255,255,255,.85); }
.rmsc-dl .rmsc-dl-btn.is-solid { background: var(--dl-o); box-shadow: none; }
.rmsc-dl .rmsc-dl-btn.is-solid svg { color: #fff; }

/* Footer */
.rmsc-dl-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 56px; padding: 22px 24px; border: 1px solid var(--dl-line); border-radius: 18px; background: linear-gradient(135deg, #24170e, #160f0a); }
.rmsc-dl-foot p { flex: 1 1 380px; color: var(--dl-mute); font-size: 14.5px; }
.rmsc-dl .rmsc-dl-cta { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--dl-o); color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none !important; }
.rmsc-dl .rmsc-dl-cta:hover { background: var(--dl-o2); }

/* Preview box */
.rmsc-dl-box { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; }
.rmsc-dl-box::backdrop { background: rgba(8,6,4,.92); }
.rmsc-dl-box-in { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; height: 100%; padding: 56px 64px 24px; }
.rmsc-dl-box img { max-width: 100%; max-height: calc(100dvh - 160px); width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.rmsc-dl-box-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.rmsc-dl-box-bar strong { font-family: "Barlow Condensed", sans-serif; font-size: 22px; font-weight: 800; text-transform: uppercase; }
.rmsc-dl .rmsc-dl-x, .rmsc-dl .rmsc-dl-nav { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: rgba(255,255,255,.12) !important; color: #fff !important; font-size: 30px !important; line-height: 1 !important; cursor: pointer; }
.rmsc-dl .rmsc-dl-x:hover, .rmsc-dl .rmsc-dl-nav:hover { background: var(--dl-o) !important; }
.rmsc-dl .rmsc-dl-x { top: 12px; right: 12px; }
.rmsc-dl .rmsc-dl-nav { top: 50%; transform: translateY(-50%); }
.rmsc-dl .rmsc-dl-nav.is-prev { left: 10px; }
.rmsc-dl .rmsc-dl-nav.is-next { right: 10px; }

@media (max-width: 640px) {
	.rmsc-dl-grid, .rmsc-dl-grid.is-wide { grid-template-columns: 1fr; gap: 14px; }
	.rmsc-dl-grid.is-tall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.rmsc-dl-grid.is-square { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.is-tall .rmsc-dl-info, .is-square .rmsc-dl-info { padding: 10px 10px 12px; gap: 6px; }
	.rmsc-dl .is-tall .rmsc-dl-info h3, .rmsc-dl .is-square .rmsc-dl-info h3 { font-size: 18px; }
	.is-tall .rmsc-dl-note, .is-square .rmsc-dl-note { display: none; }
	.is-tall .rmsc-dl-btn, .is-square .rmsc-dl-btn { min-height: 44px; padding: 6px 10px; gap: 8px; }
	.is-tall .rmsc-dl-btn small, .is-square .rmsc-dl-btn small { font-size: 11px; }
	.rmsc-dl-zoom { opacity: 1; width: 32px; height: 32px; }
	.rmsc-dl-box-in { padding: 60px 12px 20px; }
	.rmsc-dl .rmsc-dl-nav { top: auto; bottom: 18px; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .rmsc-dl * { transition: none !important; } }
