/* STRANGE ANTIQUITIES arm.css - PATCH NOTES skin.
   Per-arm identity = the antique-bronze chip (#8a6b3f) plus honest version chips;
   the shared single blue rule under the header is the motif. Signal blue from
   base.css carries links + primary actions; bronze is the arm's quiet accent
   (match count emphasis, glyph ink tint, the arm chip).

   Same hierarchy tiers as the Strange Horticulture arm (INTENT R1/R6):
     QUESTION tier  = live match count + candidate cards (the answer).
     BODY tier      = free-text search (also the purpose channel) + facet chips.
     DEMOTED tier   = how-it-works, spoiler, disclaimer, hub links. Smallest.
   Dominance order: H1 > match-count > candidate names > search > facet questions
   > demoted. Accessibility floor preserved (44px, 14px+ labels, 16px body). */

:root {
  --accent: #8a6b3f;      /* antique bronze chip */
  --accent-ink: #75592f;  /* accent text */
}

.arm-chip.arm-bronze { background: var(--accent); }

/* QUESTION TIER - live match count + cards */
.id-app { margin: 14px 0 0; }
.match-count {
  font-family: var(--sans); font-size: 20px; font-weight: 700; line-height: 1.3;
  color: var(--ink); margin: 0 0 4px;
}
.match-count .mc-n { font-family: var(--mono); color: var(--accent-ink); }
.match-count .mc-tap { display: block; font-size: 15px; font-weight: 400; color: var(--slate); margin-top: 2px; }

/* BODY TIER - free-text search + facet chip groups */
.id-search { margin: 12px 0 6px; }
.id-search .field-label { margin-bottom: 6px; }
.id-search-input {
  width: 100%; min-height: var(--tap); border: 1px solid var(--hair-strong);
  border-radius: 4px; background: var(--panel); color: var(--ink);
  font-family: var(--mono); font-size: 1.05rem; padding: 10px 14px;
}
.id-search-input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }

.id-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 2px; }
.btn-reset-id {
  flex: none; font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: 0; background: var(--panel); color: var(--ink);
  border: 1px solid var(--hair-strong); border-radius: 4px;
  min-height: 44px; padding: 8px 16px; cursor: pointer;
}
.btn-reset-id:hover { border-color: var(--slate); }
.btn-reset-id:disabled { opacity: 0.4; cursor: default; }

.facet-groups { margin: 8px 0 4px; }
.facet-group { margin: 0 0 12px; }
.facet-q {
  font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--ink);
  margin: 0 0 8px; letter-spacing: 0;
}
.facet-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.facet-chip {
  min-height: 44px; padding: 6px 12px;
  border: 1px solid var(--hair-strong); border-radius: 4px;
  background: var(--panel); color: var(--ink);
  font-family: var(--mono); font-size: 0.95rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.facet-chip:hover { border-color: var(--slate); }
.facet-chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.facet-chip.on .fc-count { color: #dbe4fb; }
.facet-chip:disabled { opacity: 0.4; cursor: default; color: var(--slate-soft); }
.facet-chip .fc-count { font-size: 0.78rem; color: var(--slate-soft); }
.facet-chip .fc-swatch {
  width: 13px; height: 13px; border-radius: 2px; flex: none;
  border: 1px solid rgba(0,0,0,0.28); display: inline-block;
}

/* CANDIDATE CARDS - reserved min-height (no CLS) */
.candidates { margin: 12px 0 6px; min-height: 320px; }
.cand-card {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--hair-strong); border-radius: 4px;
  background: var(--panel); padding: 12px 14px; margin: 0 0 8px;
}
.cand-glyph { flex: none; width: 40px; height: 40px; }
.cand-glyph svg { width: 40px; height: 40px; display: block; color: var(--accent-ink); }
.cand-body { min-width: 0; flex: 1 1 auto; }
.cand-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cand-name { font-family: var(--sans); font-weight: 700; font-size: 17px; color: var(--ink); line-height: 1.2; }
.cand-field { font-family: var(--mono); font-size: 0.78rem; color: var(--slate-soft); }
.cand-swatches { display: inline-flex; gap: 4px; margin-left: auto; flex: none; }
.cand-swatch {
  width: 14px; height: 14px; border-radius: 3px; flex: none;
  border: 1px solid var(--hair-strong); display: inline-block;
}
.cand-appearance { font-size: 15px; color: var(--ink); margin: 6px 0 0; line-height: 1.5; }
.cand-detail { font-family: var(--mono); font-size: 0.8rem; color: var(--slate); margin: 6px 0 0; line-height: 1.5; }
.cand-caveat { font-family: var(--mono); font-size: 0.8rem; color: var(--blue-ink); margin: 6px 0 0; line-height: 1.5; }

.candidates.shortlist .cand-card { padding: 16px 18px; gap: 14px; }
.candidates.shortlist .cand-glyph, .candidates.shortlist .cand-glyph svg { width: 48px; height: 48px; }
.candidates.shortlist .cand-name { font-size: 20px; }
.candidates.shortlist .cand-appearance { font-size: 16px; }

.cand-empty {
  font-family: var(--mono); font-size: 0.95rem; color: var(--slate);
  border: 1px dashed var(--hair-strong); border-radius: 4px; padding: 16px; text-align: left;
}

/* DEMOTED-REFERENCE TIER */
.demoted { margin: 26px 0 0; border-top: 1px solid var(--hair-strong); padding-top: 14px; }
.demoted h2 {
  /* R6 fix 2026-07-03: was 15px/700, identical to .facet-q (two tiers, one
     size = dominance-audit failure). Demoted-reference tier reads quiet. */
  font-family: var(--sans); font-weight: 400; font-size: 14px; color: var(--slate);
  margin: 16px 0 4px; letter-spacing: 0; text-transform: none;
}
.demoted h2:first-of-type { margin-top: 0; }
.demoted p { font-size: 15px; color: var(--slate); margin: 6px 0; max-width: 46em; }
.demoted .spoiler-note { font-family: var(--mono); font-size: 0.85rem; color: var(--slate); }
.demoted .disclaimer { font-family: var(--sans); font-size: 13.5px; color: var(--slate-soft); }
.demoted .provenance { font-family: var(--mono); font-size: 12.5px; color: var(--slate-soft); margin-top: 8px; }
.demoted-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; font-family: var(--mono); font-size: 13.5px; }
.demoted-links a {
  color: var(--blue); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--hair); border-radius: 4px; padding: 6px 10px;
  background: var(--page); min-height: 30px; display: inline-flex; align-items: center;
}
.demoted-links a:hover { border-color: var(--blue); text-decoration: none; }

.noscript-roster { font-size: 15px; color: var(--ink); margin: 12px 0; }
.noscript-roster p { margin: 6px 0; }

.fc-hint { font-family: var(--mono); font-size: 12.5px; color: var(--slate-soft); margin: 0 0 6px; }
