/* Site bars on lesson and practice pages. The homepage keeps its own top bar in site.css. */
.site-chrome {
  --chrome-navy: var(--navy, #243c6c);
  --chrome-cream: var(--cream, #fcf0d8);
  --chrome-sky: var(--sky, #84c0e4);
  --chrome-sunny: var(--sunny, #fcc03c);
  --chrome-white: var(--white, #fff);
  position: relative;
  z-index: 40;
  background: var(--chrome-cream);
  color: var(--chrome-navy);
}
.site-chrome button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.site-chrome a { color: inherit; text-decoration: none; }
.site-chrome .topbar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1rem;
  width: min(100% - 2rem, 1080px);
  margin: 0 auto;
  padding: 0.75rem 0 0.35rem;
  box-sizing: border-box;
}
.site-chrome .brand {
  font-family: var(--font-display, "Fredoka", sans-serif);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.site-chrome .place-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin: 0;
}
.site-chrome .place-drop { position: relative; }
.site-chrome .place-drop-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.site-chrome .place-drop > button,
.site-chrome .unit-tab,
.site-chrome .nav-jump {
  font-family: var(--font-display, "Fredoka", sans-serif);
  font-weight: 650;
  min-height: 44px;
}
.site-chrome .place-drop > button,
.site-chrome .unit-tab {
  border-radius: 999px;
  background: var(--chrome-white);
  box-shadow: 0 8px 18px rgba(36, 60, 108, 0.1);
}
.site-chrome .place-drop > button { padding: 0.35rem 0.9rem 0.35rem 1rem; font-size: 1.05rem; }
.site-chrome .place-drop > button::after {
  content: "";
  display: inline-block;
  margin-left: 0.55rem;
  border-width: 6px 5px 0;
  border-style: solid;
  border-color: var(--chrome-navy) transparent transparent;
  vertical-align: 0.15em;
}
.site-chrome .place-drop > button[aria-expanded="true"] { background: var(--chrome-sunny); }
.site-chrome .place-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 11.5rem;
  padding: 0.35rem;
  border-radius: 18px;
  background: var(--chrome-white);
  box-shadow: 0 14px 28px rgba(36, 60, 108, 0.16);
}
.site-chrome .place-menu button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  border-radius: 12px;
  text-align: left;
  font-family: var(--font-display, "Fredoka", sans-serif);
  font-weight: 650;
}
.site-chrome .place-menu button:hover,
.site-chrome .place-menu button[aria-selected="true"] { background: var(--chrome-sunny); }
.site-chrome .topbar-account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.site-chrome .nav-plain { display: flex; align-items: center; }
.site-chrome .nav-jump {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  font-size: 0.95rem;
}
.site-chrome .unit-tabs {
  display: flex;
  gap: 0.45rem;
  width: min(100% - 2rem, 1080px);
  margin: 0 auto;
  padding: 0.35rem 0 0.15rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-chrome .unit-tabs::-webkit-scrollbar { display: none; }
.site-chrome .unit-tab {
  flex: 0 0 auto;
  padding: 0.4rem 0.95rem;
  border-radius: 16px 16px 8px 8px;
  background: color-mix(in srgb, var(--chrome-sky) 45%, white);
}
.site-chrome .unit-tab[aria-selected="true"] {
  background: var(--chrome-navy);
  color: var(--chrome-cream);
  box-shadow: none;
}
html:not([data-signed-in="yes"]) .site-chrome #profile-slot { display: none !important; }
html[data-signed-in="yes"] .site-chrome #account-link { display: none !important; }
@media (max-width: 820px) {
  .site-chrome .topbar-inner { flex-wrap: wrap; }
  .site-chrome .brand { order: 0; }
  .site-chrome .topbar-account { order: 1; margin-left: auto; }
  .site-chrome .place-nav { order: 2; flex: 1 0 100%; }
}
