/* ================= THE UTILITIES RAIL'S HEADER =================
   One header for every rail host (JS/alt/alt-utilities-rail-toolbar.js): the title, the ••• and the ×. The
   show/hide/reorder list that used to open in place is the Customize panel's Utilities section
   (CSS/alt/alt-customize.css). Built from the rail's own pieces: `.a-sec-h` headings and `.a-rail-card`
   surfaces. Loads after alt-rail.css; --a-* tokens only. */

.a-urail{ display:flex; flex-direction:column; gap:var(--a-2); min-width:0; }
.a-urail-h{ display:flex; flex-wrap:wrap; align-items:center; column-gap:var(--a-2); row-gap:var(--a-1); min-height:var(--a-ctl); }
.a-urail-t{ flex:0 0 auto; margin:0; }
.a-urail-acts{ margin-left:auto; display:flex; align-items:center; gap:2px; flex:0 0 auto; }

/* Group headings ("This note", "Utilities") sit between cards, so they take the rail's rhythm. */
.a-urail-gh{ margin:var(--a-1) 0 0; }
.a-urail-group{ display:flex; flex-direction:column; gap:var(--a-3); min-width:0; }

/* ---------- the empty card ---------- */
.a-urail-empty{ align-items:flex-start; }
.a-urail-empty .a-hint{ margin:0; }
.a-urail-empty > .a-btn{ margin-top:0; }

/* ---------- pointers ---------- */
@media (pointer:coarse){
  .a-urail-acts .a-btn{ min-width:var(--a-ctl-lg); min-height:var(--a-ctl-lg); }
}

/* The rail's close draws a chevron from 1024 up (a collapse: the edge tab brings the rail back) and an X where the rail stacks
   under the page and has no edge tab (a dismissal). Both glyphs are in the button; the width picks one. */
.a-urail-close .a-ug-wide, .a-urail-close .a-ug-narrow{ display:inline-flex; align-items:center; justify-content:center; }
.a-urail-close .a-ug-narrow{ display:none; }
/* The glyphs are one level down, so the button's own `> svg` size (alt-components.css) does not reach them. */
.a-urail-close .a-ug-wide > svg, .a-urail-close .a-ug-narrow > svg{ width:15px; height:15px; flex:0 0 auto; }
@media (max-width:1023px){
  .a-urail-close .a-ug-wide{ display:none; }
  .a-urail-close .a-ug-narrow{ display:inline-flex; }
}
