/* ==========================================================================
   COMPONENTS · SPECIALTIES (p-categories) — the by-need front door and the
   specialty detail. New furniture this unit genuinely needed on top of the
   built system + the M1 systems (s1 nameplate/breadcrumb/crosslink/colophon,
   s2 the Finding, s3 lists/collections). Everything below references tokens
   only and is linked AFTER offprint.css and the M1 component sheets.

   Pieces:
     .op-axis            — the "two front doors / one record" figure (index)
     .op-specialty-index — the contents-of-the-record list of 8 specialties
     .op-offer           — the one quiet, editorial membership ask (detail only)

   The specialty HUB (#show) composition — orientation, legality lead, the
   "where the choice turns" spread and the factor register — lives beside this
   in _specialty.css. (The old transpose furniture, .op-standing/.op-tgroup, was
   retired with the fake specialty average and specialty-vs-specialty ledger.)
   ========================================================================== */


/* --------------------------------------------------------------------------
   THE SECOND AXIS, MADE A DOOR — a printed figure that frames the whole index:
   the record has two equal front doors, by place and by need. This page is the
   by-need door, so it reads as current; the other is a live route out.
   -------------------------------------------------------------------------- */
.op-axis {
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  padding: var(--space-md);
}
.op-axis__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.op-axis__caption {
  font-family: var(--font-furniture);
  font-size: var(--text-2xs);
  font-style: italic;
  color: var(--text-muted);
}
.op-axis__doors {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
}
.op-axis__door {
  display: grid;
  gap: var(--space-3xs);
  align-content: start;
  padding: var(--space-md);
  border: 1px solid var(--rule);
  border-radius: var(--radius-xs);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: var(--transition-ink), transform var(--duration-fast) var(--ease-standard);
}
a.op-axis__door:hover { transform: translateY(-2px); border-color: var(--rule-strong); box-shadow: var(--shadow-raised); }
a.op-axis__door:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* The door you are standing in: a rubric register tick + ink keyline. */
.op-axis__door--current {
  border-color: var(--ink);
  background: var(--surface-raised);
  box-shadow: inset 3px 0 0 var(--accent);
}
.op-axis__door-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-furniture);
  font-size: var(--text-3xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-muted);
}
.op-axis__door--current .op-axis__door-label { color: var(--accent); }
.op-axis__door-name {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  font-family: var(--font-reading);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  letter-spacing: var(--tracking-tight);
  color: var(--text);
}
.op-axis__door-count {
  font-family: var(--font-data);
  font-size: var(--text-md);
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--text-secondary);
}
.op-axis__door-sub {
  font-family: var(--font-furniture);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}
.op-axis__door-here {
  font-family: var(--font-furniture);
  font-size: var(--text-3xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}
/* The hinge between the doors — where the two axes meet. */
.op-axis__hinge {
  display: grid;
  place-items: center;
  gap: var(--space-2xs);
  align-content: center;
  text-align: center;
}
.op-axis__hinge-mark {
  font-family: var(--font-data);
  font-size: var(--text-lg);
  color: var(--accent);
  line-height: 1;
}
.op-axis__hinge-note {
  font-family: var(--font-furniture);
  font-size: var(--text-3xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  max-inline-size: 7rem;
  line-height: var(--leading-normal);
}
.op-axis__hinge-note a { color: inherit; }

@media (max-width: 56.25rem) {
  .op-axis__doors { grid-template-columns: 1fr; }
  .op-axis__hinge { padding-block: var(--space-2xs); }
  .op-axis__hinge-note { max-inline-size: none; }
}


/* --------------------------------------------------------------------------
   THE SPECIALTY INDEX — not a department of cards but a contents page: a ruled
   index of the eight sections of the record, each a substantial, lay-legible
   entry that a frightened reader can scan to find where their question lives.
   -------------------------------------------------------------------------- */
.op-specialty-index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--rule-strong);
}
.op-specialty-index__entry {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) 13rem;
  gap: var(--space-md);
  align-items: start;
  padding: var(--space-lg) var(--space-2xs);
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: background var(--duration-fast) var(--ease-standard);
}
.op-specialty-index__entry:hover { background: var(--surface-raised); }
.op-specialty-index__entry:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }

.op-specialty-index__figure {
  font-family: var(--font-data);
  font-size: var(--text-lg);
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--text-muted);
  line-height: 1.1;
  padding-top: 0.15em;
}
.op-specialty-index__body { display: grid; gap: var(--space-2xs); }
.op-specialty-index__name {
  font-family: var(--font-reading);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--text);
}
.op-specialty-index__entry:hover .op-specialty-index__name { color: var(--accent); }
.op-specialty-index__subs {
  font-family: var(--font-furniture);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}
.op-specialty-index__desc {
  font-family: var(--font-reading);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
  max-width: 58ch;
}
.op-specialty-index__desc b { color: var(--text); font-weight: var(--weight-semibold); }

.op-specialty-index__meta {
  display: grid;
  gap: var(--space-2xs);
  justify-items: end;
  text-align: right;
}
.op-specialty-index__count {
  font-family: var(--font-data);
  font-size: var(--text-md);
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--text);
}
.op-specialty-index__count small {
  font-family: var(--font-furniture);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}
.op-specialty-index__enter {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-furniture);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text);
}
.op-specialty-index__enter::after { content: "\2192"; color: var(--accent); }

@media (max-width: 56.25rem) {
  .op-specialty-index__entry {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: var(--space-sm) var(--space-md);
    padding-block: var(--space-md);
  }
  .op-specialty-index__meta {
    grid-column: 2;
    grid-row: auto;
    justify-items: start;
    text-align: left;
    flex-direction: row;
    border-top: 1px solid var(--rule-faint);
    padding-top: var(--space-2xs);
    width: 100%;
  }
  .op-specialty-index__meta {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
  }
}


/* --------------------------------------------------------------------------
   THE QUIET OFFER — the single editorial membership ask, detail page only,
   where a reader this deep has real intent. Restraint is the conversion
   strategy: an ink top rule (NEVER the rubric), one solid-ink key, a mono
   price, no banner, no urgency, no popup. The dominant call is still "keep
   reading" — this sits to one side, calm.
   -------------------------------------------------------------------------- */
.op-offer {
  display: grid;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--surface-raised);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--ink);
  border-radius: var(--radius-sm);
}
.op-offer__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-md) var(--space-xl);
  align-items: center;
}
.op-offer__lede {
  font-family: var(--font-reading);
  font-size: var(--text-md);
  line-height: var(--leading-snug);
  color: var(--text);
  max-width: 46ch;
}
.op-offer__lede b { font-weight: var(--weight-semibold); }
.op-offer__points {
  list-style: none;
  margin: var(--space-2xs) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3xs);
  font-family: var(--font-furniture);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.op-offer__points li { display: flex; gap: 0.6em; }
.op-offer__points li::before { content: "\2014"; color: var(--text-muted); }
.op-offer__aside { display: grid; gap: var(--space-xs); justify-items: start; }
.op-offer__price {
  font-family: var(--font-data);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1;
  color: var(--text);
}
.op-offer__price small {
  display: block;
  margin-top: var(--space-3xs);
  font-family: var(--font-furniture);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}
.op-offer__fine {
  font-family: var(--font-furniture);
  font-size: var(--text-2xs);
  color: var(--text-muted);
  line-height: var(--leading-normal);
}
.op-offer__fine a { color: inherit; }

@media (max-width: 56.25rem) {
  .op-offer__body { grid-template-columns: 1fr; gap: var(--space-md); }
  .op-offer__aside { justify-items: stretch; }
  .op-offer__aside .op-btn { width: 100%; }
}
