.top {
  position: sticky; top: 0; z-index: 20;
  align-self: stretch; margin: 0 -1.25rem 1.6rem;
  background: rgba(36, 24, 52, 0.92); border-bottom: 1px solid var(--edge);
  backdrop-filter: blur(6px);
}
.top .site {
  padding: 0.6rem 1.25rem;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  border-bottom: 1px solid var(--edge);
}
.top .site .mark {
  grid-column: 2; justify-self: center; width: 4.6rem; height: auto;
  margin-bottom: -3rem; position: relative; z-index: 1;
  filter: drop-shadow(0 0 8px rgba(232, 220, 200, 0.75));
}
.top .menu { grid-column: 1; grid-row: 1; justify-self: start; position: relative; z-index: 2; }
.top .menu summary {
  list-style: none; width: 2.4rem; height: 2.4rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--edge); border-radius: 2px;
  color: var(--ink); cursor: pointer; font-size: 1.1rem; line-height: 1;
}
.top .menu summary::-webkit-details-marker { display: none; }
.top .menu summary:hover, .top .menu summary:focus-visible { border-color: var(--brass); color: var(--brass); }
.top .menu nav {
  position: absolute; top: calc(100% + 0.4rem); left: 0; min-width: 9rem; padding: 0.35rem 0;
  border: 1px solid var(--edge); border-radius: 2px; background: var(--field); text-align: left;
}
.top .menu nav a { display: block; padding: 0.5rem 0.9rem; color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.top .menu nav a:hover, .top .menu nav a:focus { color: var(--brass); background: rgba(201, 162, 39, 0.08); }

.slim {
  padding: 0.2rem 1.25rem;
  display: flex; align-items: center; gap: 0.6rem;
  max-width: calc(50% - 2.8rem);
}
.slim .slim-strip {
  flex: 1; min-width: 0; display: flex; gap: 1.4rem;
  overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth;
}
.slim .slim-strip::-webkit-scrollbar { display: none; }
.slim .slim-strip a {
  flex: none; padding: 0.45rem 0 0.3rem; white-space: nowrap;
  color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent;
}
.slim .slim-strip a:hover, .slim .slim-strip a:focus-visible { color: var(--ink); }
.slim .slim-strip a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brass); }
.slim .slim-step {
  flex: none; width: 2rem; height: 2rem; padding: 0;
  border: 1px solid var(--edge); border-radius: 2px; background: transparent;
  color: var(--ink); font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.slim .slim-step:hover, .slim .slim-step:focus-visible { border-color: var(--brass); color: var(--brass); }
.slim .slim-back, .slim .slim-here { display: none; }
@media (max-width: 40em) {
  .slim { max-width: none; justify-content: space-between; }
  .slim .slim-strip, .slim .slim-step { display: none; }
  .slim .slim-back { display: block; flex: none; padding: 0.45rem 0; color: var(--ink); text-decoration: none; white-space: nowrap; }
  .slim .slim-here { display: block; flex: none; max-width: calc(50% - 2.8rem); padding: 0.45rem 0;
    text-align: right; color: var(--ink); overflow-wrap: anywhere; margin-left: auto; }
}
html.program .top, html.program .front footer, html.program .get { display: none; }
html.program .front h1 { margin-top: 2rem; }
