/* The desktop frame for every page but the radio (stage 3; Tony, 2026-11-27). On a wide screen with a mouse the icon
   row at the top becomes a web site's top bar (the logo, then Listen, Find a song and "N saved" in words) and a footer
   closes the page (About & contact, Bluesky and Facebook, Appearance). The radio page carries its own copy of these
   rules in build_roll.py. Phones and tablets never match the rule below, and the new pieces carry the "hidden" mark
   in the page itself, so nothing changes for them even if this file fails to load.
   html.dsk is set in each page's head. */
@media (min-width: 1100px) and (min-height: 700px) and (hover: hover) and (pointer: fine) {
  html.dsk { --dpad: max(40px, calc((100vw - 1180px) / 2)); --dteal: var(--green, var(--teal, #0891b2)); }
  html.dsk body { display: flex; flex-direction: column; min-height: 100vh; overflow-x: clip; }
  html.dsk main, html.dsk body > .wrap { flex: 1 0 auto; width: 100%; }
  /* the top bar: About, the shared list and the not-found page keep theirs inside the text column; Search has its own */
  html.dsk main > header { height: 64px; margin: -18px calc(280px - 50vw) 28px; padding: 0 var(--dpad); border-bottom: 1px solid var(--line, #e0e4e5); box-shadow: none; }
  html.dsk .bar { border-bottom: 1px solid var(--line, #e0e4e5); box-shadow: none; margin-bottom: 20px; }
  html.dsk .bar .in { max-width: none; height: 64px; padding: 0 var(--dpad); }
  html.dsk main > header img, html.dsk .bar img { height: 27px; }
  html.dsk main > header .icons, html.dsk .bar .icons { display: none; }
  html.dsk .dnav[hidden] { display: flex; align-items: center; gap: 6px; margin-right: -14px; }
  html.dsk .dnav a, html.dsk .dnav button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 500; line-height: 1.2; color: var(--muted); text-decoration: none; padding: 9px 14px; border-radius: 999px; cursor: pointer; }
  html.dsk .dnav a:hover, html.dsk .dnav button:hover { background: rgba(8, 145, 178, 0.08); color: var(--fg); }
  html.dsk .dnav a.here { background: rgba(8, 145, 178, 0.1); color: var(--dteal); }
  /* "N saved" (Tony, 2026-11-28; was "Rediscovered" and a number in a pill): the phone's words, gray at 0, then teal */
  html.dsk .dnav #dnavred { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
  html.dsk .dnav #dnavred.has { color: var(--dteal); }
  /* the footer: last on the page, at the bottom of the window when the page is short */
  html.dsk #dfoot[hidden] { order: 99; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex: none; box-sizing: border-box; height: 58px; margin-top: 40px; padding: 0 var(--dpad); border-top: 1px solid var(--line, #e0e4e5); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 13px; line-height: 1.3; color: var(--muted); }
  html.dsk #dfoot b { font-weight: 600; }
  html.dsk #dfoot .dfr { display: flex; align-items: center; gap: 20px; }
  html.dsk #dfoot .dfr > a { color: var(--muted); text-decoration: none; }
  html.dsk #dfoot .dfr > a:hover { color: var(--fg); }
  html.dsk #dfoot .dsoc { display: flex; align-items: center; gap: 10px; }
  html.dsk #dfoot .dsoc a { display: block; line-height: 0; }
  html.dsk #dfoot .dsoc svg { width: 20px; height: 20px; display: block; }
}
