/* Skin chrome: nav drawer, skin picker, motion-off flattening. Palettes live in js/skins.js. */

.brand svg rect { fill: var(--accent-fill); }
.brand svg path { stroke: var(--accent-ink); }
.brand svg linearGradient stop { stop-color: var(--accent-fill); }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 36px; height: 36px; padding: 8px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface); cursor: pointer;
}
.nav-toggle-bars { display: block; height: 2px; background: var(--text); border-radius: 1px; }
.nav-toggle:hover { background: var(--wash); }

.site-drawer-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.45);
}
.site-drawer {
  position: fixed; top: 0; left: 0; z-index: 81; width: min(320px, 92vw); height: 100vh;
  background: var(--surface); color: var(--text); border-right: 1px solid var(--border);
  box-shadow: var(--shadow); padding: 16px 16px 32px; overflow: auto;
}
.site-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.site-drawer-title { margin: 0; font-weight: 700; font-size: 16px; }
.site-drawer-close {
  border: 0; background: none; color: var(--text2); font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.site-drawer-section { margin: 18px 0 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.site-drawer-link, .site-drawer-soon {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; color: var(--text);
}
.site-drawer-link:hover { background: var(--wash); text-decoration: none; }
.site-drawer-soon { opacity: .7; }
.site-drawer-label { font-weight: 650; }
.site-drawer-tag {
  display: inline-block; margin-left: 8px; font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); border: 1px solid var(--border); border-radius: 999px; padding: 1px 6px;
}
.site-drawer-soon { flex-direction: row; flex-wrap: wrap; align-items: baseline; }
.site-drawer-desc { display: block; width: 100%; font-size: 12px; color: var(--text2); font-weight: 400; }
body.drawer-open { overflow: hidden; }

.skin-pick-wrap { display: flex; align-items: center; gap: 6px; }
.skin-pick-label { font-size: 12px; color: var(--muted); font-weight: 650; }
.skin-pick {
  max-width: 180px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--page); color: var(--text);
}
.skin-home { display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; justify-content: center; }
.skin-home .skin-pick { max-width: 260px; }

html[data-motion="none"] body {
  background: var(--page) !important;
}
html[data-motion="none"] .stockhead .price,
html[data-motion="none"] .stat .v,
html[data-motion="none"] .card-head .latest b,
html[data-motion="none"] .home h1,
html[data-motion="none"] .brand span {
  background: none !important;
  -webkit-text-fill-color: unset !important;
  color: var(--text) !important;
  filter: none !important;
}
html[data-motion="none"] .stat .v.up { color: var(--up) !important; }
html[data-motion="none"] .stat .v.down { color: var(--down) !important; }
html[data-motion="none"] .topbar::after { display: none !important; }
html[data-motion="none"] *,
html[data-motion="none"] *::before,
html[data-motion="none"] *::after {
  animation: none !important;
  transition: none !important;
}

@media (max-width: 720px) {
  .skin-pick-label { display: none; }
  .skin-pick { max-width: 132px; }
}
