/* The Practice home's redesign (owner, 2026-11-17). Loaded after style.css,
   so these rules take over the home's earlier look: the title without its
   wash, one card for a class game, "Practice on your own" with the ensemble
   filter as one joined control and the jump links as a quiet line under it,
   and For directors at the foot. The top bar's Sign in, on every page, is in
   style.css. */

/* ------------------------------------------------------------ the Practice home */
.home > .hub-head {
  padding: 0;
  background: none;
}

.home > .home-practice,
.home > .home-directors {
  margin-top: 3rem;
}

/* The way into a class game: its words, and the home's one filled button. */
.home-way {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.25rem 1.5rem;
}

.home-way-text {
  flex: 1 1 16rem;
  min-width: 0;
}

.home-way-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  line-height: 1.4;
}

.home-way-text p {
  margin: 0;
}

.home-practice {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.home-practice-head {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.home-practice-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.home-practice-title {
  margin: 0;
}

/* The ensemble filter as one joined control: the picked choice filled and bolder, so it isn't told by color alone. */
.home .ensemble-filter {
  flex-wrap: nowrap;
  gap: 0;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card);
}

.home .ensemble-filter button {
  height: auto;
  min-height: 2.75rem;
  padding: 0 1.125rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--foreground);
  font-weight: 400;
}

.home .ensemble-filter button + button {
  border-inline-start: 1px solid var(--input-border);
}

.home .ensemble-filter button.active {
  background: var(--accent);
  color: var(--accent-foreground);
  font-weight: 600;
}

.home .ensemble-filter button:not(.active):hover {
  background: var(--muted);
  opacity: 1;
}

/* Inside the box, which clips anything outside it. */
.home .ensemble-filter button:focus-visible {
  outline-offset: -3px;
}

/* Jump to: plain links in a line, unlike the filter's boxed choices. */
.home-jumps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1.25rem;
}

.home-jumps-label {
  font-size: 0.875rem;
}

.home .jump-chips {
  column-gap: 1.25rem;
  row-gap: 0;
}

.home .jump-chip {
  height: auto;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--primary);
  font-weight: 500;
}

.home .jump-chip:hover {
  background: none;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  opacity: 1;
}

.home .hub-foot {
  margin: 0;
}

/* What directors do from here: a quiet panel at the foot, apart from the students' part of the page. */
.home-directors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--muted);
}

.home-directors-text {
  flex: 1 1 20rem;
  min-width: 0;
}

.home-directors-text h2 {
  margin: 0 0 0.375rem;
}

.home-directors-text p {
  margin: 0;
}

.home-directors-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-directors .btn-outline:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

@media (max-width: 560px) {
  .home > .home-practice,
  .home > .home-directors {
    margin-top: 2.25rem;
  }

  .home-way {
    padding: 1rem 1.125rem;
  }

  .home-way .btn,
  .home-directors-actions .btn {
    width: 100%;
  }

  .home .practice-bar-filter {
    width: 100%;
  }

  .home .ensemble-filter {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .home .ensemble-filter button {
    padding: 0 0.25rem;
  }

  .home-directors {
    padding: 1.25rem;
  }

  .home-directors-actions {
    width: 100%;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-chevron {
    transition: none;
  }
}
