/* Labrarium's bar above the free Cell Counter. Written by hand (make_cell_counter.py leaves this file alone). */

@font-face {
  font-family: "Libre Caslon Text";
  src: url("../fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Libre Caslon Display";
  src: url("../fonts/libre-caslon-display-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root { --lb: 46px; }
/* the counter fills the window below the bar */
.app { height: calc(100vh - var(--lb)); height: calc(100dvh - var(--lb)); }

.lb {
  position: relative; z-index: 5;
  display: flex; align-items: center; gap: 16px;
  box-sizing: border-box; height: var(--lb); padding: 0 14px;
  color: rgba(239, 231, 211, 0.74);
  background: #07080a;
  border-bottom: 1px solid rgba(239, 231, 211, 0.1);
  font: 400 14px/1.2 "Libre Caslon Text", Georgia, serif;
}
.lb a { color: inherit; text-decoration: none; }
.lb__home {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  min-height: 34px; padding: 0 10px 0 6px; border-radius: 999px;
  font: 400 18px/1 "Libre Caslon Display", "Libre Caslon Text", Georgia, serif; color: #efe7d3;
  transition: background-color 0.2s ease;
}
.lb .lb__home { color: #efe7d3; }
.lb__home:hover { background: rgba(239, 231, 211, 0.08); }
.lb__home svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lb__say { flex: 1; min-width: 0; margin: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb__say b { font-weight: 400; color: #f2c14e; }
.lb__app {
  flex: none; display: inline-flex; align-items: center;
  min-height: 32px; padding: 0 14px;
  border: 1px solid rgba(239, 231, 211, 0.34); border-radius: 999px;
  font-size: 13.5px; white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.lb .lb__app { color: #efe7d3; }
.lb__app:hover { background: rgba(239, 231, 211, 0.08); border-color: rgba(239, 231, 211, 0.7); }
.lb__feedback { flex: none; padding: 8px 2px; font-style: italic; white-space: nowrap; }
.lb__feedback:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.lb a:focus-visible { outline: 2px solid #f2c14e; outline-offset: 2px; }
.lb__short { display: none; }

@media (max-width: 820px) {
  .lb { gap: 8px; padding: 0 8px; }
  .lb__say span { display: none; }
}
@media (max-width: 480px) {
  .lb__say { visibility: hidden; }   /* no room for it on a phone */
  .lb__long { display: none; }
  .lb__short { display: inline; }
  .lb__app { padding: 0 11px; }
}
@media print { .lb { display: none; } }
