/* Integral [+] Facticity Library: the section landing pages (30 Nov 2026; Erik: "Library Architecture & Disciplinary Classification").
   Loaded on the Library home and on the Collections, Research, Publications and Directories pages only. It adds no colours, faces or sizes
   of its own beyond the reference surface's: the tiles, figures and area lists are the Library home's existing components. */

/* the Library home: 01 and 02 side by side (the home's existing pair of panels), 03 Collections across the width, then 04 and 05 */
.ref-surface .lib-home .lib-stack.lib-stack-wide { grid-template-columns:1fr; }
.lib-stack + .lib-stack { padding-top:22px; }
.ref-surface .lib-home .lib-tile .lib-arealist.lib-arealist-1 { grid-template-columns:1fr; }
.ref-surface .lib-home .lib-stack-wide .lib-arealist.lib-arealist-wide { grid-template-columns:repeat(5,minmax(0,1fr)); }
.lib-stack-wide .lib-al-t b { white-space:normal; }
@media (max-width:1200px) { .ref-surface .lib-home .lib-stack-wide .lib-arealist.lib-arealist-wide { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px) { .ref-surface .lib-home .lib-stack-wide .lib-arealist.lib-arealist-wide { grid-template-columns:1fr; } }
.lib-tile-more .area-inline + .area-inline { margin-left:18px; }

/* Collections: each research area's collection, with the discipline and field collections within it */
.colx-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; padding:28px 0 36px; }
.colx-area { padding:20px 22px 22px; border:1px solid var(--ref-rule); border-radius:6px; background:var(--ref-panel); }
.colx-head { display:grid; grid-template-columns:auto auto minmax(0,1fr) auto; align-items:center; gap:0 12px; margin:0 0 10px; padding:0 0 12px; border-bottom:1px solid var(--ref-rule); }
.colx-no { color:var(--ref-faint); font:700 12px/1 var(--ref-sans); font-variant-numeric:tabular-nums; }
.colx-head .emb-ic { width:24px; height:24px; fill:none; stroke:var(--ref-accent); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.colx-head h2 { margin:0; font:400 21px/1.25 var(--ref-serif); }
.ref-surface .colx-head h2 a, .ref-surface .colx-list a { color:var(--ref-ink); text-decoration:none; }
.ref-surface .colx-head h2 a:hover, .ref-surface .colx-list a:hover { color:var(--nw-gold); text-decoration:underline; text-decoration-color:var(--nw-coral); text-underline-offset:4px; }
.colx-n { color:var(--ref-faint); font:400 12.5px/1.4 var(--ref-sans); white-space:nowrap; }
.colx-n em { margin-left:6px; color:var(--ref-accent); font-style:normal; }
.colx-list { margin:0; padding:0; list-style:none; }
.colx-list > li { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:baseline; gap:2px 12px; padding:6px 0; border-top:1px solid var(--ref-rule); }
.colx-list > li:first-child { border-top:0; }
.ref-surface .colx-list a { font:400 16.5px/1.35 var(--ref-serif); }
.colx-sub { grid-column:1 / -1; margin:2px 0 2px 6px; padding-left:12px; border-left:1px solid var(--ref-rule); }
.colx-sub > li { padding:3px 0; border-top:0; }
.ref-surface .colx-sub a { font-size:15px; font-style:italic; }
@media (max-width:900px) { .colx-grid { grid-template-columns:1fr; } }

/* Research: research clusters, their entries as the existing entry cards */
.rsx-clusters { padding:28px 0 36px; }
.rsx-cluster { margin:0 0 28px; }
.rsx-head { margin:0 0 14px; }
.rsx-kind { margin:0 0 4px; color:var(--ref-accent); font:700 10.5px/1.4 var(--ref-sans); letter-spacing:.14em; text-transform:uppercase; }
.rsx-head h2 { margin:0 0 6px; font:400 26px/1.2 var(--ref-serif); }
.ref-surface .rsx-head h2 a { color:var(--ref-ink); text-decoration:none; }
.ref-surface .rsx-head h2 a:hover { color:var(--nw-gold); text-decoration:underline; text-decoration-color:var(--nw-coral); text-underline-offset:4px; }
.rsx-meta { margin:0; color:var(--ref-soft); font:400 13.5px/1.5 var(--ref-sans); }
.ref-surface .rsx-meta a { color:var(--ref-soft); }
.ref-surface .rsx-meta a:hover { color:var(--nw-gold); }
.rsx-band h1 { margin:4px 0 8px; }
.rsx-band + .rsx-cluster { padding-top:24px; }
@media (max-width:900px) { .rsx-page .enc-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:600px) { .rsx-page .enc-cards { grid-template-columns:1fr; } }

/* Publications and Directories */
.pubx-types, .pubx-recent, .dirx-page .lib-tile-full { margin:28px 0 0; }
.pubx-recent { margin-bottom:36px; }
.pubx-list { margin:0; padding:0; list-style:none; }
.pubx-list li { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:baseline; gap:4px 16px; padding:9px 0; border-top:1px solid var(--ref-rule); }
.pubx-list li:first-child { border-top:0; }
.ref-surface .pubx-list a { color:var(--ref-ink); font:400 17px/1.35 var(--ref-serif); text-decoration:none; }
.ref-surface .pubx-list a:hover { color:var(--nw-gold); text-decoration:underline; text-decoration-color:var(--nw-coral); text-underline-offset:4px; }
.pubx-list span { color:var(--ref-faint); font:400 12.5px/1.5 var(--ref-sans); white-space:nowrap; }
@media (max-width:600px) { .pubx-list li { grid-template-columns:1fr; } .pubx-list span { white-space:normal; } }

/* 30 Nov 2026 (Erik, "Final Review Refinements") */
/* the Library home: each research cluster with its entries, each entry a link of its own */
.ref-surface .lib-arealist .lib-cluster-entries { display:block; margin:6px 0 0 18px; padding:2px 0 2px 14px; list-style:none; border-left:1px solid var(--ref-rule); }
.ref-surface .lib-arealist .lib-cluster-entries li { margin:0; }
.ref-surface .lib-arealist .lib-cluster-entries a { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:0 10px; height:auto; padding:6px 6px; border:0; border-radius:3px; background:none; color:var(--ref-ink); text-decoration:none; transform:none; }
.ref-surface .lib-arealist .lib-cluster-entries a:hover { transform:none; }
.ref-surface .lib-arealist .lib-cluster-entries a:hover span { color:var(--nw-gold); text-decoration:underline; text-decoration-color:var(--nw-coral); text-underline-offset:4px; }
.ref-surface .lib-arealist .lib-cluster-entries a:focus-visible { outline:2px solid var(--ref-focus); outline-offset:1px; }
.lib-cluster-entries .emb-ic { width:18px; height:18px; fill:none; stroke:var(--ref-accent); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.lib-cluster-entries span { min-width:0; font:400 16px/1.3 var(--ref-serif); }
.lib-cluster-entries em { color:var(--ref-faint); font:700 10px/1.4 var(--ref-sans); font-style:normal; letter-spacing:.12em; text-transform:uppercase; }

/* collection pages: the way to the field or discipline; the collections within it, as cards; the broader collection */
.ref-surface a.col-fieldlink { display:inline-flex; flex-wrap:wrap; align-items:baseline; gap:4px 14px; margin:16px 0 0; padding:12px 18px; 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 a.col-fieldlink:hover { border-color:var(--nw-coral); }
.ref-surface a.col-fieldlink:hover b { color:var(--nw-gold); }
.ref-surface a.col-fieldlink:focus-visible { outline:2px solid var(--ref-focus); outline-offset:2px; }
/* one trim: the link's own border turns coral on hover; the host's hover outline is suppressed */
html .ref-surface a.col-fieldlink:hover:not(:focus-visible) { outline:none !important; }
.col-fieldlink-k { color:var(--ref-accent); font:700 10.5px/1.4 var(--ref-sans); letter-spacing:.14em; text-transform:uppercase; }
.col-fieldlink b { font:400 20px/1.25 var(--ref-serif); }
.col-fieldlink-go { color:var(--ref-soft); font:600 13px/1.4 var(--ref-sans); }
.col-subs { margin:22px 0 4px; }
.col-subs h2 { margin:0 0 10px; color:var(--ref-faint); font:700 11px/1.4 var(--ref-sans); letter-spacing:.14em; text-transform:uppercase; }
.col-broader { margin:12px 0 0; color:var(--ref-soft); font:400 14px/1.5 var(--ref-sans); }
.ref-surface .col-broader a { color:var(--ref-ink); }

/* Graph: the Library's knowledge graph */
.gxl-stage { padding:22px 0 40px; }
.gxl-graph { min-height:640px; }
.ref-surface .lib-home .lib-arealist.lib-arealist-1 > li { display:block; }
.ref-surface .lib-home .lib-arealist.lib-arealist-1 > li > a { height:auto; }
