/* Rankstar public site — the mobile menu sheet (below 1100px). Linked with a media query, so wide
   screens never block on it. */
@layer components {
  /* drawer */
  .rs-drawer { box-sizing: border-box; margin: 0; position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; background: var(--color-bg); color: var(--tx); padding: var(--nav-inset) var(--gutter) 1.5rem; overflow-y: auto; overscroll-behavior: contain; }
  .rs-drawer[open] { display: flex; flex-direction: column; animation: rs-sheet var(--dur-base) var(--ease-out); }
  .rs-drawer::backdrop { background: transparent; }
  /* on open the panel itself takes focus (autofocus on the dialog), not the logo: no frame around the logo on a tap (Paul, Nov 16); Tab then reaches the logo and links */
  .rs-drawer:focus { outline: none; }
  .rs-drawer__top { display: flex; align-items: center; justify-content: space-between; height: var(--rs-bar); padding-left: .75rem; }
  .rs-drawer__nav { flex: 1; padding-block: 1rem; }
  .rs-drawer__nav ul { list-style: none; padding: 0; }
  .rs-drawer__nav > ul > li { border-bottom: 1px solid var(--bd); }
  .rs-drawer__link, .rs-drawer__group > summary { display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem; padding-inline: .75rem; font-size: 1.25rem; font-weight: 500; text-decoration: none; list-style: none; cursor: pointer; }
  .rs-drawer__group > summary::-webkit-details-marker { display: none; }
  .rs-drawer__group > summary .rs-i { transition: transform var(--dur-base) var(--ease-standard); }
  .rs-drawer__group[open] > summary .rs-i { transform: rotate(180deg); }
  .rs-drawer__group ul { padding: 0 .75rem 1rem; display: grid; gap: .25rem; }
  .rs-drawer__group a { display: flex; align-items: center; gap: .75rem; padding-block: .5rem; text-decoration: none; color: var(--tx); font-weight: 500; }
  .rs-drawer__group a .rs-mega__tile { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9px; background: var(--aw); box-shadow: inset 0 0 0 1px var(--al); color: var(--ac); }
  .rs-drawer__group a .rs-mega__tile .rs-i { width: 1rem; height: 1rem; }
  .rs-drawer__group a .rs-drawer__price { margin-left: auto; }
  .rs-drawer__sub { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--t3); padding-top: 1rem; }
  .rs-drawer__price { font-variant-numeric: tabular-nums; color: var(--ac); font-weight: 600; font-size: .875rem; white-space: nowrap; }
  .rs-drawer__foot { display: grid; gap: 1rem; }
  .rs-drawer__foot .rs-doors { display: grid; gap: .75rem; }
  .rs-drawer__tools { display: flex; flex-wrap: wrap; gap: 1.25rem; }
  .rs-drawer__tools .rs-trail { text-decoration: none; color: var(--t2); }
  .rs-drawer__tools .rs-i { width: 1.25rem; height: 1.25rem; }
}
