/* Neutral asset layout also respects custom branding and native hidden state. */
.ryderz-module-banner {
  display:block;
  width:160px;
  max-width:100%;
  height:auto;
  aspect-ratio:1672 / 941;
  object-fit:contain;
  border-radius:8px;
  margin:0 0 12px;
}
.ryderz-original-banner {
  display:block;
  width:100%;
  max-width:360px;
  height:auto;
  aspect-ratio:1672 / 941;
  object-fit:contain;
  border-radius:10px;
  margin:0 0 18px;
}
.login-panel .ryderz-original-banner { margin-inline:auto; }
.ryderz-login { position:relative; isolation:isolate; overflow:hidden; }
.ryderz-login .login-panel { position:relative; z-index:1; }
.ryderz-login-background { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; opacity:.3; pointer-events:none; }
@media (max-width:720px), (forced-colors:active) { .ryderz-login-background { display:none; } }
.ryderz-community-banner { display:block; width:100%; max-width:440px; margin-top:20px; border-radius:10px; }
.ryderz-community-banner img { display:block; width:100%; height:auto; aspect-ratio:2172 / 724; object-fit:contain; border-radius:inherit; }
.ryderz-original-banner[hidden], .ryderz-community-banner[hidden] { display:none; }
.ryderz-community-banner:focus-visible { outline:3px solid var(--outline); outline-offset:4px; }

.ryderz-home-welcome { display:grid; grid-template-columns:minmax(0,1fr) auto; min-width:0; gap:clamp(20px,4vw,40px); }
.ryderz-home-welcome .welcome-copy { min-width:0; max-width:100%; }
.ryderz-home-welcome .welcome-copy :is(h1,p), .ryderz-home-eyebrow { overflow-wrap:anywhere; }
.ryderz-home-actions { min-width:0; }
.ryderz-home-actions .button { min-width:0; min-height:44px; max-width:100%; white-space:normal; overflow-wrap:anywhere; text-align:center; }
.ryderz-home-actions .icon { flex-shrink:0; }
.ryderz-home-brand { width:clamp(132px,18vw,190px); min-width:0; min-height:0; gap:12px; }
.ryderz-home-brand strong { position:relative; right:auto; bottom:auto; max-width:100%; overflow:visible; white-space:normal; overflow-wrap:anywhere; text-align:center; }
.ryderz-home-brand.ryderz-home-art { width:clamp(220px,28vw,360px); }
.ryderz-home-brand.ryderz-home-art .ryderz-original-banner { width:100%; height:auto; max-width:360px; margin:0; border-radius:12px; }

/* Main opts in via applyRyderzBrand. A stale marker cannot override another
   configured theme. Specificity beats the later dynamic :root branding sheet. */
:root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) {
  --ryderz-space:#080f20;
  --ryderz-surface:#142039;
  --ryderz-text:#f3f6ff;
  --ryderz-muted:#becce3;
  --ryderz-cyan:#64efff;
  --ryderz-magenta:#fa8cde;
  --canvas:#f5f7fc;
  --paper:#ffffff;
  --wash:#edf2f8;
  --ink:#17243b;
  --muted:#51617a;
  --line:#d6deea;
  --outline:#54647f;
  --edge:#91a1ba;
  --frame:#17243b;
  --shadow:#080f20;
  --accent:var(--ryderz-cyan);
  --accent-on:#080f20;
  --accent-hover:#98f5ff;
  --accent-wash:#e7fbfd;
  --accent-ink:#07545f;
  --accent-line:#137a87;
  --nav:var(--ryderz-space);
  --nav-hover:#1c2b44;
  --nav-ink:var(--ryderz-text);
  --nav-muted:var(--ryderz-muted);
  --nav-line:#526785;
  --nav-shadow:#040812;
  --nav-picker:var(--ryderz-surface);
}
:root[data-site-brand="ryderz"][data-site-mode="dark"]:is(:not([data-site-theme]),[data-site-theme="classic"]) {
  --canvas:var(--ryderz-space);
  --paper:var(--ryderz-surface);
  --wash:#1c2b44;
  --ink:var(--ryderz-text);
  --muted:var(--ryderz-muted);
  --line:#344760;
  --outline:#90a8ca;
  --edge:#617797;
  --frame:#617797;
  --accent-wash:#123342;
  --accent-ink:var(--ryderz-cyan);
  --accent-line:#4dbaca;
}

:root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) :is(.ryderz-home-welcome,.login-panel) {
  --canvas:var(--ryderz-space);
  --paper:var(--ryderz-surface);
  --wash:#1c2b44;
  --ink:var(--ryderz-text);
  --muted:var(--ryderz-muted);
  --line:#526785;
  --edge:#617797;
  --outline:var(--ryderz-cyan);
  --frame:#617797;
  --accent-wash:#123342;
  --accent-ink:var(--ryderz-cyan);
  --accent-line:#4dbaca;
  color:var(--ink);
  background:var(--ryderz-space);
  border:1px solid var(--edge);
  border-block-start:2px solid var(--ryderz-cyan);
  box-shadow:none;
}
:root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .ryderz-home-eyebrow { color:var(--ryderz-cyan); }
:root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .workspace-shell .page:has(>.home-layout,>.module-library) { width:100%; max-width:1480px; margin-inline:auto; }
:root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .ryderz-home-welcome { align-items:center; min-height:0; padding:clamp(20px,2.5vw,32px); }
:root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .ryderz-home-welcome .welcome-copy h1 { font-size:clamp(26px,2.8vw,34px); max-width:20ch; letter-spacing:-.6px; }
:root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .home-layout>.page-title h2 { font-size:clamp(23px,2vw,28px); }
:root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .module-library :is(.catalog-filters button,.catalog-categories button,.module-pin,.module-configure) { min-height:44px; }
:root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .ryderz-home-welcome .welcome-copy p { max-width:54ch; color:var(--muted); line-height:1.65; }
:root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .ryderz-home-actions .welcome-action { background:var(--accent); color:var(--accent-on); border-color:var(--accent-line); box-shadow:none; }
:root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .ryderz-home-actions .welcome-action:hover { background:var(--accent-hover); }
:root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .ryderz-home-brand img { filter:none; }
:root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .ryderz-home-brand-glow { display:none; }
:root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .brand img { width:32px; height:32px; aspect-ratio:1; object-fit:contain; flex-shrink:0; }
:root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .brand strong { font-size:22px; }
:root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .login { min-height:100svh; background:var(--ryderz-space); }
:root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .login-panel { min-width:0; max-width:440px; padding:clamp(20px,5vw,32px); }
:root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .login-panel :is(h1,small,.notice) { overflow-wrap:anywhere; }
:root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .login-panel > small { color:var(--muted); }
:root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .login-panel .button { white-space:normal; overflow-wrap:anywhere; }
:root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) :is(a,button,input,select,textarea,summary):focus-visible { outline:3px solid var(--outline); outline-offset:3px; }
:root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .sidebar :is(a,button,summary):focus-visible { outline:3px solid var(--ryderz-cyan); outline-offset:-3px; }
:root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .sidebar :is(.nav-link,.rail-link).active:focus-visible { outline-color:var(--accent-on); }

@media (max-width:950px) {
  .ryderz-home-welcome { grid-template-columns:minmax(0,1fr); }
  .ryderz-home-brand { display:none; }
  .ryderz-home-brand.ryderz-home-art { display:block; width:100%; max-width:420px; order:-1; }
}
@media (max-width:720px) {
  .ryderz-original-banner, .ryderz-community-banner { max-width:100%; }
  .ryderz-home-welcome { padding:20px; }
  .ryderz-home-welcome .welcome-copy p { max-width:100%; }
  .ryderz-home-brand.ryderz-home-art { max-width:240px; }
}
@media (prefers-reduced-motion:reduce) {
  .ryderz-home-actions .button, .ryderz-community-banner,
  :root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .login-panel .button { animation:none; transition:none; }
  .ryderz-home-actions .button:hover, .ryderz-home-actions .button:active,
  :root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .login-panel .button:hover,
  :root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .login-panel .button:active { transform:none; }
}
@media (forced-colors:active) {
  :root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) :is(.ryderz-home-welcome,.login-panel) { background:Canvas; color:CanvasText; border-color:CanvasText; box-shadow:none; }
  :root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .ryderz-home-brand-glow { display:none; }
  :root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) :is(a,button,input,select,textarea,summary):focus-visible,
  :root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .sidebar :is(a,button,summary):focus-visible,
  :root[data-site-brand="ryderz"]:is(:not([data-site-theme]),[data-site-theme="classic"]) .sidebar :is(.nav-link,.rail-link).active:focus-visible { outline-color:Highlight; }
}
