/* The GNOME 2 panel (homepage/panel.html) on both pages of the website: 24 px, fixed at the top; the page's
   window starts under it. Colours are the window's (window.css, clearlooks.css), loaded before this file. */
:root { --panel-height: 24px; }   /* gnome-panel's default, and a phone's; a tall desktop screen gets more below */
/* A desktop screen with room (768 px high and more): a 28 px panel with 13 px text, as GNOME 2 looked on the screens
   of its day, where 24 px of 768 was more than it is of today's. */
@media (min-width: 701px) and (min-height: 768px) {
  :root { --panel-height: 28px; }
  .panel { font-size: 13px; }
}
.panel { position: fixed; top: 0; left: 0; right: 0; z-index: 25; box-sizing: border-box; height: var(--panel-height); display: flex; align-items: stretch;
         gap: 2px; padding: 0 2px; font-size: 12px; color: var(--fg); user-select: none;
         background: linear-gradient(var(--cl-shine, #fff), var(--bg) 40%, var(--cl-menubar-low, var(--bg))); border-bottom: 1px solid var(--cl-shade3, var(--line)); }
body:has(> .panel) { padding-top: calc(var(--panel-height) + 16px); }
body.maximized:has(> .panel) { padding-top: var(--panel-height); }
/* Panel buttons are flat until pointed at; the open main menu and the window of the page are pressed in. */
.panel .panel-button { display: flex; align-items: center; gap: 5px; margin: 1px 0; padding: 0 5px; border: 1px solid transparent; border-radius: 3px;
                       background: none; box-shadow: none; color: inherit; font: inherit; text-decoration: none; cursor: default; }
.panel .panel-button:hover { background: var(--cl-btn-hover, var(--ctl-hover)); border-color: var(--ctl-border); }
.panel .panel-button.open, .panel .panel-button.pressed, .panel .panel-button.pressed:hover {
  background: var(--cl-btn-active, var(--sel)); border-color: var(--ctl-border); box-shadow: inset 2px 2px 3px rgba(0, 0, 0, 0.17); }
.panel-button img { display: block; }
/* The launchers' marks are painted in the text colour through a mask, so they follow the dark background too.
   The mask URLs are relative to this file, at the site root, so they hold on both pages. */
.mark { display: inline-block; width: 16px; height: 16px; background: currentColor; mask: center / contain no-repeat; -webkit-mask: center / contain no-repeat; }
.mark.github { mask-image: url(marks/github.svg); -webkit-mask-image: url(marks/github.svg); }
.mark.gitlab { mask-image: url(marks/gitlab.svg); -webkit-mask-image: url(marks/gitlab.svg); }
.panel-sep { margin: 3px 4px; border-left: 1px solid var(--cl-sep, var(--line)); border-right: 1px solid var(--cl-sep-hi, #fff); }
.window-list { flex: 1; min-width: 0; display: flex; gap: 2px; }
.tray { display: flex; gap: 2px; }   /* the notification area, left of the clock */
.task { width: 170px; min-width: 0; }   /* the window list gives every window the same width */
.task span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-clock { display: flex; align-items: center; padding: 0 8px; white-space: nowrap; }
/* The main menu: window.css's menu, under its button. Its items are links. */
.panel-menu { top: calc(var(--panel-height) - 1px); left: 2px; }
.panel-menu .menu-item { color: inherit; text-decoration: none; }
/* Narrow window (a phone): the thin panel, the main menu by its icon alone, no clock. */
@media (max-width: 700px) {
  .task { width: auto; }
  .panel-clock, #main-menu span { display: none; }
}
