/* ── Page heading ────────────────────────────────────────── */
.pagetitle {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 2rem;
  margin-top: 1.5em;
}

/* ── Index heading ───────────────────────────────────────── */
.index-heading {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.4rem;
  margin:3rem 0 0.75rem;
  color: var(--color-navy, #1a2e4a);
}

/* ── Entry list ──────────────────────────────────────────── */
#index-entries {
  line-height: 1.8;
}

#index-entries a {
  color: var(--color-navy, #1a2e4a);
  text-decoration: underline;
  text-decoration-color: var(--color-verdigris, #4a9e8e);
  text-underline-offset: 2px;
}

#index-entries a:hover {
  color: var(--color-verdigris, #4a9e8e);
}

/* Separator between entries */
#index-entries a:not(:last-child)::after {
  content: ' · ';
  color: var(--color-navy, #1a2e4a);
  opacity: 0.4;
  text-decoration: none;
  display: inline;
}

/* ── General index table ─────────────────────────────────────── */

#index-entries table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
}

#index-entries tr {
  border-bottom: 1px solid #e0d8d0;
}

#index-entries tr:hover {
  background-color: #faf6f2;
}

.index-term,
.index-desc {
  padding: 0;
  vertical-align: top;
  text-align: left;
}
.index-desc {
  padding: 3px 0 3px 0;
}

/* Term column: fixed-ish width so descriptions align in a clean column */
.index-term {
  width: 12em;
  white-space: nowrap;
  font-weight: 600;
}

.index-term a {
  color: #772C21;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.index-term a:hover,
.index-term a:focus {
  border-bottom-color: #C08A2E;   /* ochre underline, matching favicon */
}

.index-term sup {
  font-size: 0.7em;
}

/* Description column: takes remaining space, wraps normally */
.index-desc {
  color: #333;
  font-size: 0.95em;
  line-height: 1.4;
}

/* ── Narrow viewports: stack term above description ───────────── */
@media (max-width: 600px) {
  #index-entries table,
  #index-entries tbody,
  #index-entries tr,
  .index-term,
  .index-desc {
    display: block;
    width: auto;
  }

  #index-entries tr {
    padding: 0.6em 0;
  }

  .index-term {
    white-space: normal;
    padding-bottom: 0.15em;
  }

  .index-desc {
    padding-top: 0;
  }
}

/* ── Status/loading messages (already referenced in genindex.js) ─ */
.index-status {
  margin-top: 1em;
  color: #666;
  font-style: italic;
}


/* ── Status messages ─────────────────────────────────────── */
.index-status {
  font-family: 'Source Sans 3', sans-serif;
  font-style: italic;
  color: var(--color-navy, #1a2e4a);
  opacity: 0.65;
  margin: 1rem 0;
}

.index-hint {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  margin-top: 1.5rem;
}




/* ── Theme picker ─────────────────────────────────────────── */
.theme-picker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 0.5rem;
}

.theme-picker select {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--brick, #1a2e4a);
  border-radius: 3px;
  min-width:17em;
}

.theme-picker button {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border: 1px solid var(--brick, #1a2e4a);
  border-radius: 3px;
  background: var(--brick, #1a2e4a);
  color: var(--color-cream, #f5f0e8);
  cursor: pointer;
}

.theme-blurb {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0.5rem 0 1.5rem;
  max-width: 42rem;
}