/* Integral [+] Facticity Library: Research Areas, the disciplinary index (local candidate, 30 Nov 2026; Erik's "Research Areas Development"
   and "Disciplinary Tree Correction"). Loaded on the Research Areas index and the research pages only. It adds no colours, faces or sizes of
   its own: the index keeps the r18 index's measures (numbers, emblems, display titles, small capitals, the coral trim and gold text on hover),
   and the research pages use the Research Guide template (research-guide.css) on the reference surface. Its class names (rix-, rsp-) keep it
   apart from the r18/r19 rules in reference.css, which stay as published. */

/* ---- the index: areas expand to their disciplines and fields; the chevron button expands, the title is the link */
.rix { margin:6px 0 0; }
.rix-bar { display:flex; align-items:baseline; justify-content:space-between; gap:16px; padding:0 4px 11px; border-bottom:1px solid var(--ref-rule-2); }
.rix-bar h2 { margin:0; color:var(--ref-faint); font:700 11px/1.4 var(--ref-sans); letter-spacing:.14em; text-transform:uppercase; }
.rix-tools button { margin:0 0 0 18px; padding:2px 0; border:0; background:none; color:var(--ref-soft); font:400 13.5px/1.4 var(--ref-sans); cursor:pointer; }
.rix-tools button:hover { color:var(--nw-gold); text-decoration:underline; text-decoration-color:var(--nw-coral); text-underline-offset:4px; }
.rix-list, .rix-fields { margin:0; padding:0; list-style:none; }
.rix-area { border-bottom:1px solid var(--ref-rule); }
.rix-head { display:grid; grid-template-columns:32px 26px 26px minmax(0,1fr) auto auto; align-items:center; gap:0 14px; padding:13px 6px 13px 0; }
.rix-tog { position:relative; display:block; width:32px; height:32px; margin:0; padding:0; border:1px solid transparent; border-radius:4px; background:none; cursor:pointer; transition:border-color .15s; }
.rix-tog::before { content:""; position:absolute; left:11px; top:10px; width:7px; height:7px; border-right:1.5px solid var(--ref-soft); border-bottom:1.5px solid var(--ref-soft); transform:rotate(-45deg); transition:transform .15s, top .15s, border-color .15s; }
.rix-tog[aria-expanded="true"]::before { left:11.5px; top:8.5px; transform:rotate(45deg); }
.rix-tog:hover { border-color:var(--nw-coral); }
.rix-tog:hover::before, .rix-tog[aria-expanded="true"]::before { border-color:var(--nw-gold); }
.rix-sp { display:block; flex:none; width:28px; height:28px; }
.rix-tog:focus-visible, .rix a:focus-visible, .rix-tools button:focus-visible { outline:2px solid var(--ref-focus); outline-offset:3px; }
.rix-no { color:var(--ref-faint); font:700 12px/1 var(--ref-sans); font-variant-numeric:tabular-nums; }
.rix .emb-ic { width:24px; height:24px; fill:none; stroke:var(--ref-accent); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
a.rix-t, a.rix-ft { justify-self:start; border-radius:3px; outline:1px solid transparent; outline-offset:5px; text-decoration:none; transition:color .15s, outline-color .15s; }
a.rix-t { color:var(--ref-ink); font:400 24px/1.25 var(--ref-serif); }
a.rix-t:hover, a.rix-ft:hover { color:var(--nw-gold); outline-color:var(--nw-coral); }
.rix-state { color:var(--ref-accent); font:700 10.5px/1.4 var(--ref-sans); letter-spacing:.12em; text-transform:uppercase; white-space:nowrap; }
a.rix-coll { padding:3px 0 3px 12px; border-left:1px solid var(--ref-rule-2); color:var(--ref-ink); font:700 10.5px/1.4 var(--ref-sans); letter-spacing:.12em; text-transform:uppercase; text-decoration:none; white-space:nowrap; }
a.rix-coll::after { content:" →"; color:var(--ref-accent); }
a.rix-coll:hover { color:var(--nw-gold); text-decoration:underline; text-decoration-color:var(--nw-coral); text-underline-offset:4px; }
/* disciplines and fields: a quiet tree under the emblem */
.rix-fields { margin:0 0 16px 101px; border-left:1px solid var(--ref-rule-2); }
.rix-fields > li { position:relative; padding:5px 0 5px 20px; }
.rix-fields > li::before { content:""; position:absolute; left:0; top:23px; width:14px; border-top:1px solid var(--ref-rule-2); }
.rix-fhead { display:flex; flex-wrap:wrap; align-items:center; gap:2px 10px; }
.rix-fhead .rix-tog { flex:none; width:28px; height:28px; }
.rix-fhead .rix-tog::before { left:9px; top:8px; }
.rix-fhead .rix-tog[aria-expanded="true"]::before { left:9.5px; top:6.5px; }
a.rix-ft { color:var(--ref-ink); font:italic 400 20px/1.3 var(--ref-serif); }
.rix-fk { color:var(--ref-faint); font:400 12.5px/1.4 var(--ref-sans); letter-spacing:.02em; }
.rix-sub { margin:4px 0 4px 13px; border-color:var(--ref-rule); }
.rix-sub > li::before { border-color:var(--ref-rule); }
@media (max-width:700px) {
  .rix-head { grid-template-columns:32px 22px 22px minmax(0,1fr); gap:4px 10px; padding:12px 0; }
  .rix-head .rix-state { grid-column:4; grid-row:2; white-space:normal; }
  .rix-head a.rix-coll { grid-column:4; grid-row:3; justify-self:start; padding-left:0; border-left:0; }
  a.rix-t { font-size:21px; }
  .rix-fields { margin-left:15px; }
  .rix-fields > li { padding-left:14px; }
  .rix-fields > li::before { width:10px; }
  .rix-sub { margin-left:13px; }
  a.rix-ft { font-size:18.5px; }
  .rix-bar { flex-wrap:wrap; } .rix-tools { white-space:nowrap; } .rix-tools button { margin:0 0 0 14px; }
}

/* references: a field listed a second time links to its one canonical page */
.rix-ref a.rix-ft { font-style:normal; }
.rix-ref .rix-fk::before { content:"↗ "; color:var(--ref-accent); }

/* ---- research pages: the Research Guide template, with the area's emblem and a status */
/* the rail: the line to this page unfolds; a folded branch is marked */
.rgp-tree li.rsp-more > a::after { content:" +"; color:var(--ref-faint); }
.rgp-tree li.rsp-tref > a { font-style:italic; }
.rsp-head .area-head { margin-top:10px; }
.rsp-status { color:var(--ref-faint); }
.rsp-status::before { content:"·"; margin:0 10px; }
.rsp-fhead .area-emblem { width:56px; height:56px; box-shadow:none; }
.rsp-fhead .area-emblem .emb-ic { width:28px; height:28px; }
.rsp-dev { margin:0 0 1.4em; padding:2px 0 2px 16px; border-left:2px solid var(--ref-accent); color:var(--ref-soft) !important; font:400 15.5px/1.6 var(--ref-sans) !important; }
.rsp-dev b { color:var(--ref-ink); font-weight:600; }
@media (max-width:600px) {
  .rsp-fhead .area-emblem { width:44px; height:44px; }
}

/* 30 Nov 2026 (Erik, "Final Review Refinements"): the Library Collection card in the main content of a Fields & Disciplines page */
.ref-surface .nw-prose a.rsp-colcard { display:grid; gap:4px; max-width:560px; margin:0 0 1.4em; padding:16px 20px; border:1px solid var(--ref-accent); border-radius:6px; background:var(--ref-panel); color:var(--ref-ink); text-decoration:none; transition:border-color .15s; }
.ref-surface .nw-prose a.rsp-colcard * { text-decoration:none; }
.ref-surface .nw-prose a.rsp-colcard:hover { border-color:var(--nw-coral); }
.ref-surface .nw-prose a.rsp-colcard:hover b { color:var(--nw-gold); }
.ref-surface .nw-prose a.rsp-colcard:focus-visible { outline:2px solid var(--ref-focus); outline-offset:2px; }
/* one trim: the card's own border turns coral on hover, so the host's hover outline is suppressed (as for the Library's other cards) */
html .ref-surface .nw-prose a.rsp-colcard:hover:not(:focus-visible) { outline:none !important; }
.rsp-colcard-k { color:var(--ref-accent); font:700 10.5px/1.4 var(--ref-sans); letter-spacing:.14em; text-transform:uppercase; }
.ref-surface .nw-prose a.rsp-colcard b { color:var(--ref-ink); font:400 24px/1.2 var(--ref-serif); }
.rsp-colcard-d { color:var(--ref-soft); font:400 14px/1.5 var(--ref-sans); }
.rsp-colcard-go { margin-top:4px; color:var(--ref-ink); font:600 13.5px/1.4 var(--ref-sans); }
