/* Slim title bar on every page except the landing page – redesign 24-Oct-2026.
   Also loaded by the static tools (tool.php), so it is self-contained: own font, own colors. */

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/source-sans-3-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.fs-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid #e3ebe7;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  transition: transform 0.22s ease;
  will-change: transform;
}

.fs-bar.is-hidden {
  transform: translateY(-100%);
}

.fs-bar__in {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.45rem 0 0.5rem;
}

.fs-bar__text {
  min-width: 0;
}

.fs-bar__course,
.fs-bar__title {
  margin: 0;
  line-height: 1.25;
}

.fs-bar__course {
  font-size: 13px;
  font-weight: 500;
  color: #5b6d66;
  letter-spacing: 0.01em;
}

.fs-bar__long {
  font-weight: 400;
}

.fs-bar__title {
  font-size: 18px;
  font-weight: 600;
  color: #008a54;
}

.fs-bar__name {
  color: inherit;
  text-decoration: none;
}

a.fs-bar__name:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.fs-bar__sub {
  font-weight: 400;
  color: #1d2a25;
}

.fs-bar__sub::before {
  content: " · ";
  color: #5b6d66;
}

.fs-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.75rem;
  font-size: 14px;
  color: #5b6d66;
}

.fs-bar__actions code {
  font-size: 13px;
}

.fs-bar__link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.85rem;
  border: 1px solid #cfe0d8;
  border-radius: 999px;
  color: #1d2a25;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.fs-bar__link:hover {
  border-color: #008a54;
  color: #008a54;
}

.fs-bar__meta {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .fs-bar__long {
    display: none;
  }
}

@media (max-width: 560px) {
  .fs-bar__in {
    width: min(100% - 1.5rem, 1200px);
    flex-wrap: wrap;
  }
  /* several buttons: they move under the title as one row that scrolls sideways if needed */
  .fs-bar__actions {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .fs-bar__link {
    min-height: 30px;
    padding: 0 0.7rem;
    font-size: 13px;
  }
  .fs-bar__title {
    font-size: 17px;
  }
  .fs-bar__meta {
    display: none;
  }
}

@media print {
  .fs-bar {
    position: static;
  }
}
