/* ==========================================================================
   COMPONENTS · PRIVATE ROOM — the shared furniture of the member's three rooms
   (Library · the Dossier · Billing): the room header (kicker + serif title +
   standfirst + a mono member line) and the quiet tab strip that ties the three
   faces of "what is mine" together. Calm, private, no upsell. Composes
   op-kicker, op-mark. New (clean-room p-library); harvest candidate.
   ITCSS: 06-components.
   ========================================================================== */

/* — The room header — the calm cover of a private room — */
.op-room-head {
  display: grid;
  gap: var(--space-xs);
  padding-block: var(--space-lg) var(--space-md);
}
.op-room-head__title {
  font-family: var(--font-reading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--text);
  margin: 0;
}
.op-room-head__standfirst {
  font-family: var(--font-reading);
  font-size: var(--text-md);
  line-height: var(--leading-snug);
  color: var(--text-secondary);
  max-width: var(--measure-narrow);
  margin: 0;
}

/* The member identity line — set as a printed record line, mono where it counts */
.op-room-head__member {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2xs) var(--space-md);
  margin-top: var(--space-2xs);
  padding-top: var(--space-xs);
  border-top: 1px solid var(--rule);
  font-family: var(--font-furniture);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}
.op-room-head__member b {
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: var(--tracking-normal);
  font-size: var(--text-sm);
  font-family: var(--font-reading);
}
.op-room-head__member [data-numeric],
.op-room-head__member .op-room-head__id {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums lining-nums;
  text-transform: none;
  letter-spacing: var(--tracking-wide);
}

/* — The room tab strip — the three faces of "what is mine", one click apart.
     A hairline-ruled running strip; the current room is ink under a 2px ink
     rule (record, not reward); the accent is never spent here. — */
.op-room-nav {
  border-block: 1px solid var(--rule);
  margin-bottom: var(--space-lg);
}
.op-room-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}
.op-room-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  padding-block: var(--space-xs);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: var(--font-furniture);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-ink);
}
.op-room-nav__link:hover { color: var(--text); }
.op-room-nav__link[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--text);
}
.op-room-nav__count {
  font-family: var(--font-data);
  font-size: var(--text-3xs);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: var(--tracking-normal);
  color: var(--text-muted);
}

/* — A section head inside a room: a ruled kicker + an honest mono tally — */
.op-room-section {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2xs) var(--space-md);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-2xs);
  border-bottom: 2px solid var(--rule-strong);
}
.op-room-section__tally {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--text-muted);
}

/* A quiet editorial line — the one permitted "you could own more", never a pitch */
.op-room-aside {
  font-family: var(--font-furniture);
  font-size: var(--text-2xs);
  font-style: italic;
  color: var(--text-muted);
  max-width: 60ch;
}
.op-room-aside a { color: var(--text-secondary); }
.op-room-aside a:hover { color: var(--accent); }

/* The "two states shown" divider — when a surface prints its honest empty state
   below the populated one, so the design is proven both ways. Furniture, quiet. */
.op-room-statenote {
  margin-block: var(--space-2xl) var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px dashed var(--rule-strong);
  display: grid;
  gap: var(--space-3xs);
}

@media (max-width: 40rem) {
  .op-room-head__title { font-size: var(--text-xl); }
  .op-room-nav__list { gap: var(--space-md); }
}
