/* ============================================================
   iMusic — Composers page.
   Left nav (composer list) + right content pane (profile).
   Mirrors lessons/style.css's layout language so the two sections
   read as one site, but kept intentionally simpler — composer
   profiles have one fixed shape, not a generic block system.
   Layers on top of ../site.css.
   ============================================================ */

.composers-layout {
  width: 100%;
  box-sizing: border-box;
  padding: 40px 32px 90px;
  display: flex;
  align-items: flex-start;
  gap: 36px;
}

/* ---------- Left nav ---------- */

.composers-nav {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 90px;
}

.composers-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.composers-nav-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.composers-nav-content a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 4px;
  transition: background 120ms ease, color 120ms ease;
}

.composers-nav-content a:hover {
  background: rgba(201, 162, 74, 0.12);
  color: var(--brass);
}

.composers-nav-content a.active {
  background: var(--brass);
  color: var(--bg-soft);
  font-weight: 600;
}

/* ---------- Content pane ---------- */

.composer-content {
  flex: 1;
  min-width: 0;
}

.composer-content:focus {
  outline: none;
}

.composer-breadcrumb {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0 0 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.composer-breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
}

.composer-breadcrumb a:hover {
  color: var(--brass);
  text-decoration: underline;
}

.composer-breadcrumb span[aria-current] {
  color: var(--ink);
}

.composer-content h1 {
  font-family: "Playfair Display", "Georgia", serif;
  font-size: 36px;
  letter-spacing: 1px;
  color: var(--brass);
  margin: 0 0 6px;
  font-weight: 700;
}

.composer-meta {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.composer-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0 0 22px;
  padding: 14px 18px;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-soft) 100%);
}

.composer-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.composer-fact .fact-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.composer-fact span:last-child {
  font-size: 14px;
  color: var(--ink);
}

.composer-bio p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.9;
  max-width: 760px;
}

.composer-content h2 {
  font-family: "Playfair Display", "Georgia", serif;
  font-size: 20px;
  color: var(--brass);
  margin: 32px 0 12px;
  font-weight: 600;
}

.composer-contributions,
.composer-compositions {
  max-width: 760px;
  padding-left: 22px;
  margin: 0;
}

.composer-contributions li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.9;
  margin-bottom: 12px;
}

.composer-compositions {
  list-style: none;
  padding-left: 0;
}

.composer-compositions li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  padding: 10px 0;
  border-bottom: 1px solid var(--card-border);
}

.composer-compositions li:last-child {
  border-bottom: none;
}

.composer-compositions strong {
  color: var(--brass);
}

.composer-compositions a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brass-dim);
  text-underline-offset: 2px;
}

.composer-compositions a:hover {
  color: var(--brass);
}

.composition-note {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .composers-layout {
    flex-direction: column;
    padding: 24px 16px 60px;
    gap: 20px;
  }

  .composers-nav {
    width: 100%;
    position: static;
  }

  .composers-nav-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .composers-nav-content a {
    margin-bottom: 0;
  }
}

/* ---------- Plain theme ---------- */

body.theme-plain .composer-content h1,
body.theme-plain .composer-content h2 {
  color: var(--brass);
}

body.theme-plain .composers-nav-content a.active {
  color: #fff;
}
