/* Integral [+] Facticity: the Research Guide template (prototype revision 8, local review, 28 Nov 2026).
   Loaded on Research Guide pages only. Same typography, palette and frame as the publication; what differs is the structure:
   a path through Library and Research Guides, the Research Guide label, a tree of the research area on the left, the guide's text as
   numbered sections with cards for the pages it points to, and an Explore panel on the right. No reading time, author or date. */

/* header: path, label, title */
.rgp-head { padding:clamp(22px,2.6vw,38px) 0 clamp(18px,1.8vw,26px); border-bottom:1px solid var(--nw-rule-2); scroll-margin-top:14px; }
.rgp-trail ol { display:flex; flex-wrap:wrap; align-items:center; gap:4px 0; margin:0; padding:0; list-style:none; font:500 11px/1.5 var(--sans); letter-spacing:.14em; text-transform:uppercase; }
.rgp-trail li + li::before { content:"›"; margin:0 10px; color:var(--nw-faint); letter-spacing:0; }
.rgp-trail a { color:var(--nw-soft); text-decoration:none; transition:color .15s; }
.rgp-trail a:hover, .rgp-trail a:focus-visible { color:var(--nw-gold); }
.rgp-label { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; margin:clamp(18px,1.8vw,26px) 0 0; color:var(--nw-gold); font:600 10.5px/1.5 var(--sans); letter-spacing:.24em; text-transform:uppercase; }
.rgp-mark { width:7px; height:7px; border:1px solid var(--nw-gold); transform:rotate(45deg); }
.rgp-status { color:var(--nw-faint); letter-spacing:.16em; }
.rgp-status::before { content:"·"; margin-right:12px; color:var(--nw-faint); }
.rgp-head h1 { max-width:17em; margin:clamp(10px,1.1vw,16px) 0 0 -.02em; color:var(--nw-cream); font:400 clamp(40px,4.7vw,72px)/1.02 var(--serif); text-wrap:balance; }

/* left rail: the research area, then this guide's sections */
.rgp-rail h2 { margin:0 0 10px; color:var(--nw-gold); font:600 10.5px/1.4 var(--sans); letter-spacing:.24em; text-transform:uppercase; }
.rgp-nav { margin-bottom:30px; }
.rgp-tree, .rgp-tree ul { margin:0; padding:0; list-style:none; }
.rgp-tree ul { margin-left:2px; padding-left:12px; border-left:1px solid var(--nw-rule); }
.rgp-tree a { display:block; padding:5px 0; color:var(--nw-text); font:400 15.5px/1.28 var(--serif); text-decoration:none; transition:color .15s; }
.rgp-tree ul a { color:var(--nw-soft); font-size:15px; }
.rgp-tree .rgp-tree-sec > a { font-style:italic; }
.rgp-tree a:hover, .rgp-tree a:focus-visible { color:var(--nw-gold); }
.rgp-tree a[aria-current] { position:relative; color:var(--nw-cream); }
.rgp-tree a[aria-current]::before { content:""; position:absolute; left:-14px; top:6px; bottom:6px; width:2px; background:var(--nw-gold); }
.rgp-all { display:inline-block; margin-top:10px; color:var(--nw-faint); font:400 12.5px/1.4 var(--sans); letter-spacing:.04em; text-decoration:none; }
.rgp-all::after { content:" →"; }
.rgp-all:hover, .rgp-all:focus-visible { color:var(--nw-gold); }
.rgp-onpage ol { margin:0; padding:0; list-style:none; counter-reset:rgp; }
.rgp-onpage li a { display:grid; grid-template-columns:30px minmax(0,1fr); padding:6px 0; color:var(--nw-soft); font:400 15px/1.28 var(--serif); text-decoration:none; }
.rgp-onpage li a::before { counter-increment:rgp; content:counter(rgp, decimal-leading-zero); color:var(--nw-faint); font:12px/1.65 var(--sans); }
.rgp-onpage li:last-child a::before { content:"—"; }
.rgp-onpage li a:hover, .rgp-onpage li a:focus-visible { color:var(--nw-cream); }

/* centre: lead, numbered sections, cards, sources */
.rgp-lead p { color:var(--nw-cream); font-size:1.12em; line-height:1.6; }
.rgp-lead p:first-child { margin-top:0; }
.rgp-sec { position:relative; margin-top:2.4em; padding-top:1.1em; border-top:1px solid var(--nw-rule); }
.rgp-num { display:block; margin-bottom:-.2em; color:var(--nw-gold); font:600 11px/1 var(--sans); letter-spacing:.2em; }
.rgp-sec > h2 { margin-top:.5em; }
.rgp-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:12px; margin:1.4em 0 1.6em !important; padding:0 !important; list-style:none; }
.rgp-cards > li.rgp-card { display:flex; flex-direction:column; gap:6px; margin:0 !important; padding:14px 16px 16px !important; text-indent:0 !important; border:1px solid var(--nw-rule); border-left:2px solid #b9a7e0; border-radius:2px; transition:border-color .15s; }
.rgp-cards > li.rgp-card::before { content:none !important; }
.rgp-card-guide { border-left-color:var(--nw-gold) !important; }
.rgp-card:hover, .rgp-card:focus-within { border-color:var(--nw-rule-2); }
.rgp-kind { color:#b9a7e0; font:600 10px/1.4 var(--sans); letter-spacing:.2em; text-transform:uppercase; }
.rgp-card-guide .rgp-kind { color:var(--nw-gold); }
.rgp-card a.wk-link { color:var(--nw-cream); font:400 1.12em/1.25 var(--serif); text-decoration:none; }
.rgp-card a.wk-link::after { content:""; position:absolute; inset:0; } /* the whole card follows the title link */
.rgp-card { position:relative; }
.rgp-card a.wk-link:focus-visible { outline:none; }
.rgp-card:has(a:focus-visible) { outline:1px solid var(--nw-gold); outline-offset:2px; }
.rgp-card:hover a.wk-link { color:var(--nw-gold); }
.rgp-preview { color:var(--nw-soft); font-size:.86em; line-height:1.45; }
.rgp-sources { margin-top:3.2em; padding-top:1.2em; border-top:1px solid var(--nw-rule-2); font-size:.92em; }
.rgp-sources-k { margin:0 0 .6em !important; color:var(--nw-gold); font:600 11px/1 var(--sans) !important; letter-spacing:.24em; text-transform:uppercase; }
.rgp-sources .rgp-ref + .rgp-ref { margin-top:1.6em; }
.rgp-sources .rgp-ref h2 { font-size:1.15em; }

/* right: Explore this guide, in the Article Information panel's place and style */
.rgp-explore dd li a + span, .rgp-explore dd > a + span { display:block; color:var(--nw-faint); font:400 12.5px/1.4 var(--sans); letter-spacing:.02em; }
.rgp-explore li + li { margin-top:7px !important; }

/* phones and tablets: the two panels fold above the text, as Contents and Article details do on entries */
@media (max-width:1179px) {
  .rgp-m .rgp-nav, .rgp-m .rgp-onpage { padding:4px 0 14px; }
  .rgp-m .rgp-nav > h2 { display:none; } /* the panel's own title already says Research Guides */
  .rgp-m .rgp-nav h2, .rgp-m .rgp-onpage h2 { margin:6px 0 8px; color:var(--nw-gold); font:600 10px/1.4 var(--sans); letter-spacing:.2em; text-transform:uppercase; }
}
@media (max-width:600px) {
  .rgp-trail ol { font-size:10px; letter-spacing:.1em; }
  .rgp-trail li + li::before { margin:0 7px; }
  .rgp-cards { grid-template-columns:1fr; }
}
