/* FPG "extra compact" spacing (fpg-webserver v2.51, Peter 2026-11-18: "I like extra compact" - mockup
   https://claude.ai/artifact/Kgmphw8jfmykaT3ofcoRCZ). Loaded LAST in base.html, after style.css, the site's own CSS and
   glass.css, so it wins over equal selectors. A site's more specific rules (e.g. hrsite's table.compact) still apply.
   Same file on every site - change it here and copy it. */

/* the top bar scrolls away with the page (Peter: "no reason for it to stay floating") - every device */
.topbar { position: relative; top: auto; }

/* computer (mouse) only - phones and tablets keep their touch-size buttons */
@media screen and (hover: hover), screen and (pointer: fine) {
  /* navy menu */
  .side { padding-top: 8px; }
  .side .brand { padding: 0 20px 8px; gap: 4px; margin-bottom: 2px; }
  .side .brand img { width: 120px; }
  .side .brand span { font-size: 11.5px; }
  .side .group { padding: 8px 20px 1px; font-size: 11px; }
  .side a.nav { min-height: 28px; font-size: 14px; }
  .side .badge { font-size: 12px; line-height: 1.5; }

  /* top bar */
  .topbar { padding: 4px 16px; gap: 8px; }
  html:has(link[href*="glass.css"]) .topbar { margin: 6px 12px 0; border-radius: 14px; }
  .topbar .search { min-height: 30px; padding: 0 10px; }
  .langs a { min-height: 28px; min-width: 32px; font-size: 13px; }
  .avatar-menu > summary { width: 30px; height: 30px; font-size: 13px; }
  .avatar-menu .menu { top: 36px; }
  .avatar-menu .item { min-height: 32px; }

  /* page */
  main.content { padding: 12px; gap: 8px; }
  h1 { font-size: 21px; margin: 0 0 2px; }
  h2 { font-size: 17px; margin: 0 0 6px; }
  h3 { font-size: 15px; margin: 8px 0 4px; }
  main.content > p { margin: 0; }
  main.content > h2, main.content > h3 { margin: 4px 0 0; }
  .card, .panel { padding: 8px 12px; }
  html:has(link[href*="glass.css"]) .card, html:has(link[href*="glass.css"]) .panel { border-radius: 14px; }
  .flash { padding: 6px 10px; }
  footer.foot { padding: 8px 12px; font-size: 12.5px; }

  /* number tiles */
  .stats { gap: 8px; }
  .stat { padding: 6px 10px; font-size: 13px; }
  .stat b { font-size: 20px; }
  html:has(link[href*="glass.css"]) .stat { border-radius: 12px; }

  /* tables */
  table { font-size: 13px; }
  th, td { padding: 2px 8px; line-height: 1.2; }
  th { font-size: 12px; }
  .pill { padding: 0 8px; font-size: 12px; line-height: 1.5; }

  /* forms and buttons */
  input:not([type=checkbox]):not([type=radio]), select { min-height: 30px; padding: 0 10px; }
  textarea { padding: 6px 10px; }
  label { font-size: 13px; }
  .btn, button { min-height: 30px; padding: 0 12px; font-size: 14px; }
  .btn.small, button.small { min-height: 24px; padding: 0 8px; font-size: 13px; }
  .field { gap: 3px; } .stack { gap: 8px; } .row { gap: 6px; } .grid3 { gap: 8px; }
  form.inline { gap: 6px; margin: .4rem 0; }
  label.check { min-height: 24px; }
}
