/* The Featured dock under the big Mac on the home page, where the floppies were (Justinas, 14 Nov 2026). Like iPip's dock,
   in MacPip's own look: a paper bar with an ink border and a hard shadow, one seat per app, the name under each icon.
   tv.js tunes the Mac's screen to a seat on hover, focus or a first tap, and marks the one playing with .tvon.
   The same dock is the phone's Featured bar: it scrolls sideways inside itself, so the page never does.
   Colors are the site's vars, so night.css follows. Sides use logical properties, so Arabic flips by itself. */

/* The Featured section never grows past the card it sits in, so a full dock scrolls instead of spilling out. */
.clh-feat{min-width:0;max-width:100%}

/* The scroller holds room above the bar for a magnified icon and room after it for the hard shadow. */
.dockbox{display:block;max-width:100%;margin-top:-10px;padding:16px 8px 10px 2px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.dockbox::-webkit-scrollbar{display:none}
.boot .dockbox{animation:stagein .5s .34s var(--ease) backwards}
.quick .dockbox{animation:stagein .62s .31s var(--ease) backwards}
.dock{display:inline-flex;align-items:flex-start;gap:2px;width:max-content;padding:8px 6px 5px;border:1.5px solid var(--ink);border-radius:12px;background:var(--paper);box-shadow:4px 4px 0 var(--ink)}

/* A seat: the icon, its name under it, and a small square that lights under the app the Mac is playing. */
.dki{flex:none;position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;width:48px;color:var(--ink);text-decoration:none;-webkit-tap-highlight-color:transparent}
.dkic{flex:none;display:grid;place-items:center;width:40px;height:40px;transform-origin:50% 100%;transition:transform .18s var(--ease)}
.dki .icon{margin:0;border:1px solid var(--ink);border-radius:10px;box-shadow:0 2px 0 var(--ink)}
.dkplus{box-sizing:border-box;border:1.5px dashed var(--mute);border-radius:10px;background:var(--cl-gold);color:var(--mute);font:18px/1 var(--pixel)}
.dkname{display:block;max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:10px/1.2 var(--sans);color:var(--mute)}
.dkdot{display:block;width:4px;height:4px;background:transparent}
.dki:hover .dkname,.dki.tvon .dkname{color:var(--ink)}
.dki.tvon .dkdot{background:var(--ink)}
.dki.tvon .icon{box-shadow:0 0 0 2px var(--cl-goldline),0 2px 0 2px var(--ink)}
.dki.tvon .dkplus{border-color:var(--ink);color:var(--ink)}
/* An empty seat's "Your app here" takes two short lines, so eight seats still fit under the Mac. */
.dkopen .dkname{overflow:visible;white-space:normal;text-align:center;font-size:9.5px;line-height:1.15;color:var(--mute)}
.dki:focus-visible{outline:none}
.dki:focus-visible .dkic{outline:2px solid var(--ink);outline-offset:3px;border-radius:12px}

/* Nine seats (the Top Spot and all eight Featured spots sold): a little smaller again (drawn at 38px by the server). */
.dkfull .dki{width:44px}
.dkfull .dkic{width:38px;height:38px}
.dkfull .dki .icon,.dkfull .dkplus{border-radius:9px}
/* A mouse gets a thin scrollbar when the dock is wider than its place. Touch swipes, with no bar. */
@media (hover:hover){.dockbox{scrollbar-width:thin}.dockbox::-webkit-scrollbar{display:block;height:6px}.dockbox::-webkit-scrollbar-thumb{background:var(--line);border-radius:3px}}

/* Magnify on hover, like a dock: the icon under the mouse grows the most, its neighbours a little. Only for a mouse, and never with reduced motion. */
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .dki:hover .dkic{transform:translateY(-4px) scale(1.28)}
  .dki:hover+.dki .dkic,.dki:has(+.dki:hover) .dkic{transform:translateY(-1px) scale(1.1)}
  .dki.tvon:not(:hover) .dkic{transform:translateY(-2px)}
}
@media (prefers-reduced-motion:reduce){.dkic{transition:none}}

/* Phones: one row that swipes inside itself, as wide as the page allows. */
@media (max-width:640px){
  .dockbox{padding-top:8px;margin-top:-4px}
  .dock{gap:2px;padding:7px 6px 4px;box-shadow:3px 3px 0 var(--ink)}
  .dki{width:56px}
  /* Where the dock leaves no room beside it, the Tuesday envelope sits under it (public/firstview.js), so the card grows to hold it. */
  .stagein>.pitchtail:has(.mx-btn.mx-low:not([hidden])){padding-block-end:44px}
}
