/* Nomenclature — header button + dropdown overlay */

/* ── Header button ── */
.nom-btn {
  position: relative;
  cursor: pointer;
  background: none;
  border: 1px solid var(--accent-color, #7a1f1f);
  border-radius: 3px;
  padding: 0.15rem 0.55rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-color, #7a1f1f);
  line-height: 1.4;
  white-space: nowrap;
  user-select: none;
  margin-left: auto;   /* push to far right of the nav */
  vertical-align: baseline;
  align-self: center;
}

.nom-btn:hover {
  background: #f8f0f0;
}

.nom-btn[aria-expanded="true"] {
  background: #f8f0f0;
}

/* ── Dropdown panel ── */
.nom-dropdown {
  display: none;
  position: fixed;
  top: 0;          /* will be set by JS after measuring header height */
  right: 1rem;
  width: min(680px, 96vw);
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  padding: 0.9rem 1.1rem 1.1rem;
  z-index: 200;
}

.nom-dropdown.is-open {
  display: block;
}

/* ── Table inside dropdown ── */
.nom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.nom-table th {
  text-align: left;
  padding: 0.25rem 0.6rem;
  border-bottom: 2px solid #999;
}

.nom-table td {
  padding: 0.05rem 0.6rem;
  vertical-align: top;
  border-bottom: 1px solid #eee;
  line-height: 1.1;
}

.nom-symbol {
  white-space: nowrap;
  width: 1%;
  font-style: italic;
}

.nom-vector {
  font-weight: bold;
}

.nom-group-row td {
  font-weight: 600;
  padding-top: 0.5rem;
  border-bottom: 1px solid #ccc;
  color: #333;
  background: #fafafa;
}

.nom-group-row:first-child td {
  padding-top: 0.25rem;
}

.nom-relations-head {
  margin: 1rem 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #333;
}
