/* The LibrePortal bar on git.libreportal.org: the same bar as libreportal.org and the wiki.
   A self-contained port of Website/src/assets/header.css (the Website repo is the reference: change it
   there first, then here). Served by Forgejo as /assets/lp-bar.css, linked from templates/header.tmpl. */
.lp-bar{--t:#fff;--cy:#5fe0ff;position:sticky;top:0;z-index:1001;display:flex;flex:0 0 auto;/* Forgejo's body is a flex column: never squeeze the bar */
  align-items:center;justify-content:flex-start;gap:10px;box-sizing:border-box;height:60px;
  padding-inline:max(18px,calc((100% - 1760px) / 2 + 18px));color:var(--t);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;
  background:linear-gradient(90deg,rgba(10,16,48,.96) 0%,rgba(18,16,58,.96) 55%,rgba(8,22,58,.96) 100%);
  border-bottom:1px solid rgba(95,224,255,.14);box-shadow:0 1px 0 rgba(255,255,255,.04),0 10px 30px rgba(4,6,24,.3);line-height:1.2}
@media (min-width:769px){.lp-bar{padding-inline:max(min(62px,calc(4vw + 6px)),calc((100% - 1760px) / 2 + min(62px,calc(4vw + 6px))))}}
.lp-bar *{box-sizing:border-box}
.lp-bar a{text-decoration:none}
.lp-bar svg{width:18px;height:18px;flex:0 0 auto}
.lp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;min-width:40px;padding:0;cursor:pointer;color:var(--t);font-weight:600;font-size:.85rem;font-family:inherit;white-space:nowrap;
  border:1px solid rgba(255,255,255,.14);border-radius:10px;background:linear-gradient(160deg,rgba(29,79,154,.38) 0%,rgba(10,22,52,.55) 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.1);transition:background .16s,border-color .16s}
.lp-btn:hover,.lp-btn:focus-visible{border-color:rgba(95,224,255,.6);background:linear-gradient(160deg,rgba(36,96,180,.5) 0%,rgba(12,28,66,.66) 100%);color:var(--t)}
.lp-btn svg{color:var(--cy)}
.lp-sponsor svg{color:#f472b6}
.lp-brand{display:flex;align-items:center;flex:0 0 auto;height:40px;padding:0 8px 0 3px;border-radius:10px;border:1px solid rgba(255,255,255,.14);
  background:linear-gradient(160deg,rgba(29,79,154,.38) 0%,rgba(10,22,52,.55) 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.1);transition:background .16s,border-color .16s}
.lp-brand:hover,.lp-brand:focus-within{border-color:rgba(95,224,255,.6);background:linear-gradient(160deg,rgba(36,96,180,.5) 0%,rgba(12,28,66,.66) 100%)}
.lp-logo{display:grid;place-items:center;height:34px;padding:0 2px}
.lp-logo img{width:28px;height:28px}
.lp-wordmark{padding:0 2px 0 4px;font-size:1.08rem;font-weight:700;letter-spacing:-.01em;color:var(--t);white-space:nowrap}
.lp-wordmark b{color:#00d4ff;font-weight:700}
.lp-switch{display:flex;align-items:stretch;gap:2px;flex:0 0 auto;height:38px;padding:3px;border-radius:12px;border:1px solid rgba(255,255,255,.14);
  background:radial-gradient(130% 160% at 100% 0%,#1b4a92 0%,#102a5c 45%,#0a1634 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 4px 16px rgba(8,20,50,.3),0 0 22px rgba(46,140,255,.1)}
.lp-switch a{display:flex;align-items:center;gap:6px;padding:0 12px;border-radius:9px;border:1px solid transparent;color:rgba(226,236,255,.86);font-size:.85rem;font-weight:700;transition:background .16s,color .16s}
.lp-switch a:not(.is-active):hover{background:rgba(255,255,255,.08);color:#fff}
.lp-switch a.is-active{background:linear-gradient(90deg,rgba(95,224,255,.3),rgba(95,224,255,.12));border-color:rgba(95,224,255,.55);color:#fff}
.lp-switch svg{width:16px;height:16px;color:var(--cy)}
.lp-switch a.is-active svg{color:#fff}
.lp-right{display:flex;align-items:center;gap:8px;margin-left:auto;min-width:0}
.lp-search{flex:0 1 260px;min-width:0;justify-content:flex-start;gap:10px;padding:0 12px;color:rgba(235,244,255,.7);font-weight:500}
.lp-label{flex:1;text-align:left;overflow:hidden;text-overflow:ellipsis}
.lp-search kbd{font:600 .72rem ui-monospace,Menlo,monospace;padding:2px 7px;border-radius:5px;border:1px solid rgba(95,224,255,.35);color:rgba(235,244,255,.75);background:none}
.lp-cta{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;height:40px;padding:0 16px;border-radius:10px;color:#fff;font-weight:700;font-size:.9rem;white-space:nowrap;border:1px solid rgba(95,224,255,.5);
  background:linear-gradient(135deg,#0b7fb0 0%,#1557b8 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 6px 18px rgba(8,90,160,.35)}
.lp-cta:hover{background:linear-gradient(135deg,#0d8fc6 0%,#1a63cf 100%);color:#fff}
.lp-cta svg{color:#fff;width:15px;height:15px}
/* A phone: brand, search, Get started and the menu; the sites move into the menu. */
@media (max-width:768px){.lp-bar{gap:8px}.lp-search{flex:0 0 40px;width:40px;padding:0;justify-content:center}.lp-label,.lp-search kbd,.lp-switch,.lp-sponsor{display:none}.lp-cta{padding:0 14px}}
@media (max-width:480px){.lp-bar,.lp-right{gap:6px}}
@media (max-width:380px){.lp-cta{width:40px;padding:0;font-size:0;gap:0}.lp-wordmark{font-size:1rem}}
/* The menu: the same panel as the other sites. */
.lp-scrim{position:fixed;inset:60px 0 0 0;background:rgba(3,7,18,.55);z-index:1050;opacity:0;pointer-events:none;transition:opacity .25s}
.lp-menu-open .lp-scrim{opacity:1;pointer-events:auto}
.lp-menu-open{overflow:hidden}
.lp-drawer{position:fixed;top:60px;left:0;bottom:0;width:min(88vw,360px);padding:16px;display:flex;flex-direction:column;gap:2px;overflow-y:auto;overscroll-behavior:contain;color:#eef4ff;
  background:radial-gradient(130% 90% at 100% 0%,#1b4a92 0%,#102a5c 36%,#0a1634 100%);border-right:1px solid rgba(255,255,255,.14);border-radius:0 20px 20px 0;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),10px 0 34px rgba(8,20,50,.45),0 0 44px rgba(46,140,255,.12);scrollbar-width:thin;scrollbar-color:rgba(95,224,255,.55) rgba(255,255,255,.06);
  transform:translateX(-105%);visibility:hidden;transition:transform .3s ease,visibility .3s ease;z-index:1100;font-family:inherit}
.lp-menu-open .lp-drawer{transform:none;visibility:visible}
.lp-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:0 2px 12px;margin-bottom:4px;border-bottom:1px solid rgba(255,255,255,.12);font-weight:700;font-size:1rem;color:#fff}
.lp-close{display:grid;place-items:center;width:36px;height:36px;padding:0;cursor:pointer;color:#fff;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);border-radius:10px}
.lp-close:hover{background:rgba(95,224,255,.14)}
.lp-close svg{width:18px;height:18px}
/* the sites: the website menu's rows, a dark navy gradient with a cyan edge */
.lp-drawer a{display:flex;align-items:center;gap:10px;min-height:44px;margin:4px 0;padding:0 12px;border-radius:12px;font-size:.95rem;font-weight:650;color:#fff;text-decoration:none;
  border:1px solid rgba(95,224,255,.34);background:radial-gradient(130% 160% at 100% 0%,#1d559f 0%,#123268 50%,#0b1a3e 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 4px 14px rgba(8,20,50,.3)}
.lp-drawer a:hover{background:radial-gradient(130% 160% at 100% 0%,#2563b4 0%,#163a78 50%,#0d1f48 100%);border-color:rgba(95,224,255,.6);color:#fff}
.lp-drawer a svg{width:18px;height:18px;flex:0 0 auto;color:#5fe0ff}
.lp-drawer a .lp-ext{margin-left:auto;width:15px;height:15px;opacity:.8}
.lp-drawer a[aria-current]{background:linear-gradient(90deg,rgba(95,224,255,.26),rgba(95,224,255,.1));box-shadow:inset 3px 0 0 #5fe0ff}
.lp-drawer-foot{margin-top:auto;padding-top:16px;border-top:1px solid rgba(255,255,255,.12)}
.lp-drawer .lp-drawer-foot a{justify-content:center;border:1px solid rgba(95,224,255,.5);background:linear-gradient(135deg,#0b7fb0 0%,#1557b8 100%)}
.lp-drawer .lp-drawer-foot a svg{color:#fff}
@media (prefers-reduced-motion:reduce){.lp-drawer,.lp-scrim,.lp-btn{transition:none}}

/* ---- Pinned (2026-11-16): every size and inset in the bar is set here in pixels, so it is identical to the pixel on
   all four LibrePortal sites (libreportal.org, the wiki, get, git) whatever the page's own base styles: root font size
   (Forgejo's is 14px), body line height, a browser's button defaults, the page's own width and gutters. The same block,
   with the same numbers, is in Website/src/assets/header.css, the catalogue page and forgejo-bar/assets/lp-bar.css.  Every item in the bar is 40px tall, the logo box's height, on one centre line (owner 2026-11-16). ---- */
.lp-bar{box-sizing:border-box;height:60px;gap:10px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Fira Sans","Droid Sans","Helvetica Neue",sans-serif;font-size:16px;line-height:1.65;
  padding-inline:max(min(62px,calc(4vw + 6px)),calc((100% - 1760px) / 2 + min(62px,calc(4vw + 6px))));
  background:linear-gradient(90deg,rgba(10,16,48,.96) 0%,rgba(18,16,58,.96) 55%,rgba(8,22,58,.96) 100%);-webkit-backdrop-filter:blur(16px) saturate(140%);backdrop-filter:blur(16px) saturate(140%);
  border-bottom:1px solid rgba(95,224,255,.14);box-shadow:0 1px 0 rgba(255,255,255,.04),0 10px 30px rgba(4,6,24,.3)}
.lp-bar .lp-right{gap:8px;flex:1 1 0;min-width:0;justify-content:flex-end}
.lp-bar .lp-brand{padding:0 8px 0 3px}
.lp-bar .lp-switch{height:40px;box-sizing:border-box;padding:3px;align-items:stretch}
.lp-bar .lp-wordmark{font-size:17.28px;font-weight:700;letter-spacing:-.1728px;line-height:1.65}
.lp-bar .lp-switch a{font-size:13.6px;font-weight:700;line-height:1.65}
.lp-bar .lp-btn{font-size:13.6px;line-height:1.65}
.lp-bar .lp-search{font-weight:500;flex:0 1 179px;width:auto;min-width:0}
.lp-bar .lp-label{font-size:13.6px;font-weight:500;line-height:normal}
.lp-bar .lp-search kbd{font:600 11.52px/normal "SF Mono",Monaco,Menlo,"Ubuntu Mono","Courier New",monospace;padding:2px 7px}
.lp-bar .lp-cta{height:40px;min-height:40px;box-sizing:border-box;border-radius:10px;padding:0 16px;gap:6px;font-size:15.2px;font-weight:700;line-height:18.24px}
.lp-bar .lp-cta svg{width:15px;height:15px}
@media (max-width:768px),(pointer:coarse){.lp-bar{-webkit-backdrop-filter:none;backdrop-filter:none;background:linear-gradient(90deg,rgba(10,16,48,.95) 0%,rgba(18,16,58,.95) 55%,rgba(8,22,58,.95) 100%)}}
@media (max-width:768px){.lp-bar{gap:8px;padding-inline:18px}.lp-bar .lp-search{flex:0 0 40px;width:40px}.lp-bar .lp-cta{padding:0 14px}}
@media (max-width:480px){.lp-bar,.lp-bar .lp-right{gap:6px}}
@media (max-width:420px){.lp-bar,.lp-bar .lp-right{gap:5px}.lp-bar .lp-brand{padding:0 6px 0 2px}}
@media (max-width:380px){.lp-bar .lp-cta{width:40px;padding:0;font-size:0;gap:0;justify-content:center}.lp-bar .lp-wordmark{font-size:16px}}
