/* Help: the platform picker (Windows, iPhone and iPad, Mac, Android). Same idea as the picker on betahelp.heyjosi.com: one tile per platform at the top of every
   Help page, the open one lit, the ones not ready marked "Soon", and a small bar that slides in under the top bar once the tiles scroll away.
   Each platform is its own page. Colours come from help.css, so it follows the same light, dark and theme button. */

.platforms { margin: 0 0 30px; }
.platforms-label { font: 700 12px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pick {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px 16px 14px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--text); text-decoration: none; overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s, background .2s;
}
.pick:hover { color: var(--text); border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pick[aria-current="page"] { border-color: var(--accent); background: var(--accent-wash); box-shadow: 0 0 0 1px var(--accent); }
.pick-logo {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin: 0 0 8px; border-radius: 12px; background: var(--raised);
  border: 1px solid var(--line); color: var(--muted); transition: color .2s, background .2s, border-color .2s;
}
.pick-logo svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pick-logo svg.fill { fill: currentColor; stroke: none; }
.pick:hover .pick-logo { color: var(--text); }
.pick[aria-current="page"] .pick-logo { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.pick-name { font-weight: 700; font-size: 16.5px; line-height: 1.15; color: var(--text); }
.pick-sub { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.soon {
  position: absolute; top: 11px; right: 11px; font: 700 9px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; font-style: normal;
  color: var(--on-accent); background: var(--accent-dim); border-radius: 999px; padding: 3px 7px;
}
.pick[data-soon] { opacity: .82; }

/* the small bar under the top bar once the tiles have scrolled away */
.platform-mini {
  position: fixed; z-index: 40; top: calc(var(--header-h) + 10px); left: 50%; display: flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(14px); box-shadow: var(--shadow);
  transform: translate(-50%, -14px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s; max-width: calc(100vw - 24px); overflow-x: auto; scrollbar-width: none;
}
.platform-mini::-webkit-scrollbar { display: none; }
.platform-mini.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.platform-mini a {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 13px; line-height: 1; white-space: nowrap; text-decoration: none;
  transition: color .2s, background .2s;
}
.platform-mini a:hover { color: var(--text); }
.platform-mini a[aria-current="page"] { color: var(--on-accent); background: var(--accent); }
.platform-mini svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.platform-mini svg.fill { fill: currentColor; stroke: none; }
.platform-mini .soon { position: static; }

@media (max-width: 900px) { .picker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .picker { gap: 8px; }
  .pick { align-items: center; text-align: center; padding: 12px 6px 11px; border-radius: 14px; }
  .pick-logo { width: 38px; height: 38px; margin-bottom: 5px; }
  .pick-name { font-size: 14px; }
  .pick-sub { display: none; }
  .soon { top: 5px; right: 5px; padding: 2px 5px; font-size: 8px; }
  .platform-mini a span { display: none; }
  .platform-mini a { padding: 8px 12px; }
  .platform-mini .soon { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pick, .platform-mini { transition: none; } .pick:hover { transform: none; } }

/* the pages for the platforms whose Help is not ready yet */
.soon-main { max-width: 900px; margin: 0 auto; padding: calc(var(--header-h) + 34px) 24px 64px; }
.soon-main h1 { font-size: 32px; line-height: 1.15; margin: 0 0 10px; }
.soon-main .lead { color: var(--muted); font-size: 18px; margin: 0 0 24px; }
.soonbox { margin: 26px 0; padding: 22px 24px; border: 1px dashed var(--line); border-radius: 16px; background: var(--panel); }
.soonbox h2 { margin: 0 0 8px; font-size: 21px; }
.soonbox p { margin: 8px 0; }
.soon-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.soon-links a { display: inline-block; padding: 9px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); color: var(--text); text-decoration: none; font-weight: 600; }
.soon-links a:hover { border-color: var(--accent); }
