
/* ---- r18 (Erik, 28 Nov: "entire site"): one hover across Integral [+] Facticity, the publication and the Library (revised the same day:
   "orange trim, yellow/gold writing every where"): gold text, and an orange trim on list rows, as on the area cards and directories. Current-state marks (the selected type,
   the current tab) stay gold. Appended to news.css by the prototype build; "html" raises these above the rules they replace. */
html .nw-years a:hover, html .nw-types a:hover, html .nw-pager a:hover,
html .nw-index li a:hover, html .nw-foot a:hover, html .nw-arch-year a:hover, html .ic-people a.ic-person:hover,
html .nw-top-share a:hover, html .nw-top-share button:hover, html .nw-toc-top:hover, html .nw-prose a:hover, html .nw-prov a:hover,
html .nw-afoot-subjects a:hover, html .nw-share a:hover, html .nw-copy:hover, html .nw-near a:hover span, html .nw-terms a:hover,
html .rg-row a:hover, html .rg-toggle:hover, html .lb-guide h4 a:hover, html .lb-line a:hover, html .nw-info-list a:hover,
html .nw-info-formats summary:hover, html .nw-info-all:hover::after, html .nw-look > summary:hover, html .rgp-trail a:hover,
html .rgp-tree a:hover, html .rgp-all:hover, html .rgp-card:hover a.wk-link, html .wk-raw:hover,
html .cf-views button:hover, html .cf-jump button:hover, html .cf-now-title:hover, html .ic-bib a:hover .ic-ref-title, html .ic-refs a:hover .ic-ref-title { color:var(--nw-gold, #e2bd70); }
html .ic-bib a:hover .ic-ref-title, html .ic-refs a:hover .ic-ref-title { text-decoration-color:currentColor; }
html .nw-types a:hover small, html .nw-years a:hover small, html .nw-index li:has(> a:hover) small, html .nw-terms li:has(> a:hover) small { color:var(--nw-gold, #e2bd70); }
html .ic-item.is-refs .ic-notes-btn:hover, html .ic-notes-btn:hover { border-color:var(--nw-coral, #f08d6d); color:var(--nw-gold, #e2bd70); }
html .ic-pp:hover, html .cf-arrow:hover { background:rgba(240,141,109,.16); }
html .cf-now-pp:hover .k, html .cf-now-skip:hover .k { color:var(--nw-gold, #e2bd70); text-shadow:none; }
/* list rows (sidebar types, subjects and years; directories; a record's subject list): an orange trim on hover */
html :is(.nw-types, .nw-years, .nw-index, .nw-terms) li:has(> a:hover) { outline:1px solid var(--nw-coral, #f08d6d); outline-offset:3px; border-radius:3px; }
html :is(.nw-types, .nw-years, .nw-index, .nw-terms) li:has(> a:hover) a { text-decoration:none; }
/* Erik, 28 Nov ("home/articles too orange trim & titles from white to yellow/gold"): publication rows (front page and type pages) take the
   orange trim around the whole row, and their titles turn from white to gold while the row is hovered; the front page's lead titles too */
html .nw-row::before { left:-14px; right:-14px; top:-1px; bottom:-1px; width:auto; background:none; border:1px solid var(--nw-coral, #f08d6d); border-radius:4px; }
html .nw-row:hover .nw-row-link, html .nw-row-link:hover, html .nw-row:focus-within .nw-row-link, html .nw-main h2 a:hover, html .nw-side h3 a:hover { color:var(--nw-gold, #e2bd70); }
/* the publication's masthead and menus: gold text on hover, as everywhere */
html .nw-bar .social-link:hover, html .nw-bar .eh-menu-btn:hover, html .nw-bar .site-menu a:hover, html .nw-brand .nw-pubnav a:hover, html .nw-brand .nw-pubnav a[aria-current]:hover, html .cf-now .cf-now-ep:hover { color:var(--nw-gold, #e2bd70); }
/* Erik, 28 Nov ("anyway to do the big ones on the home page?"): the front page's lead story and the four beside it take the orange trim
   around the whole story, and their titles turn gold */
html .nw-main { position:relative; }
html .nw-main::before, html .nw-side li::before { content:""; position:absolute; border:1px solid var(--nw-coral, #f08d6d); border-radius:5px; opacity:0; transition:opacity .2s; pointer-events:none; }
html .nw-main::before { inset:-12px 4px -12px; }
html .nw-side li::before { inset:-10px -10px; }
html .nw-main:hover::before, html .nw-main:focus-within::before, html .nw-side li:hover::before, html .nw-side li:focus-within::before { opacity:1; }
html .nw-main:hover h2 a, html .nw-side li:hover h3 a, html .nw-side li:focus-within h3 a { color:var(--nw-gold, #e2bd70); }
/* Erik, 28 Nov ("the content & information side bar too"): the contents rail and the information panel, on articles, Encyclopedia entries and
   Research Guides: each item takes the orange trim and gold text on hover (no underline while trimmed) */
html :is(.nw-toc, .rgp-onpage) li:has(> a:hover), html .nw-info-list :is(li, dd):has(> a:hover), html :is(.rgp-part-area, .rgp-part-sec):hover {
  outline:1px solid var(--nw-coral, #f08d6d); outline-offset:3px; border-radius:3px; }
html :is(.nw-toc, .rgp-onpage) li > a:hover, html :is(.nw-toc, .rgp-onpage) li > a:hover span, html .nw-info-list a:hover, html .ref-surface .nw-info-list a:hover,
html :is(.rgp-part-area, .rgp-part-sec):hover, html .ref-surface :is(.rgp-part-area, .rgp-part-sec):hover span { color:var(--nw-gold, #e2bd70); text-decoration:none; }
html .ref-surface :is(.nw-toc, .rgp-onpage) li > a:hover, html .ref-surface :is(.nw-toc, .rgp-onpage) li > a:hover span { color:var(--nw-gold, #e2bd70); text-decoration:none; } /* above the Library surface's own contents hover */
/* the sidebars scroll (overflow:auto), which cut the trim off at their edges (Erik, 28 Nov: "not going all around"): they get 5px of room
   inside, given back by an equal negative margin, so nothing moves and the whole trim shows */
html .nw-rail.nw-rail { padding:4px 5px 12px; margin:-4px -5px 0; }
html .nw-info-body.nw-info-body { padding:4px 6px 12px 5px; margin:-4px 0 0 -5px; }
/* Erik, 28 Nov ("still some bugs"): no underline inside a trimmed card; publication rows on the collection pages and Library search results
   take the same orange trim and gold title as the other rows, and open on a click anywhere in the row */
html .ref-surface .rgp-card:hover a.wk-link, html .ref-surface .rgp-cards > li.rgp-card:hover a.wk-link { color:var(--nw-gold, #e2bd70); text-decoration:none; }
html .col-pub, html .lib-res > li { border-radius:3px; outline:1px solid transparent; outline-offset:4px; transition:outline-color .15s; cursor:pointer; }
html .col-pub:hover, html .lib-res > li:hover { outline-color:var(--nw-coral, #f08d6d); }
html .col-pub:hover > a, html .ref-surface .nw-prose .col-in .col-pub:hover > a, html .lib-res > li:hover h3 a { color:var(--nw-gold, #e2bd70); text-decoration:none; }
/* Erik, 28 Nov ("links/footer, check entire site again"): every other link and disclosure in the publication and the Library (bibliographies,
   related entries, links to this entry, citation and source, footers, menus) takes the same hover: gold text, no underline, an orange trim.
   Links inside an item that is trimmed as a whole (rows, cards, tiles, tabs, list items) are left to that item, so no box is drawn twice. */
html :is(.news-page, .index-cards, .ic-mast, .nw-bar, .nw-brand, .footbar) :is(a, summary):hover:not(.nw-skip, .enc-card, .col-c, .lib-tab, .rgp-part-area, .rgp-part-sec, :has(img)):not(:is(.nw-row, .nw-side li, .nw-main, .col-pub, .lib-res > li, .rgx-item, .rgx-head, .rgx-fhead, .rgp-card, .enc-card, .lib-arealist, .lib-stats, .lib-tabs, .nw-terms li, .nw-types li, .nw-years li, .nw-index li, .nw-toc li, .rgp-onpage li, .nw-info-list li, .nw-info-list dd, .rgp-part, .ic-card, .cf-views, .cf-jump, .cf-stage, .nw-thumb, figure, .nw-bar, .nw-brand, .eh-drawer) *) {
  color:var(--nw-gold, #e2bd70) !important; text-decoration:none !important; outline:1px solid var(--nw-coral, #f08d6d); outline-offset:2px; border-radius:3px;
  -webkit-box-decoration-break:clone; box-decoration-break:clone; }
/* Erik, 28 Nov ("Do podcast too"): the podcast archive. Each episode card takes the orange trim and a gold title; the controls inside a card
   turn gold (the card carries the trim, so no second box); the view switch, episode numbers and arrows are trimmed on their own */
html .ic-card { outline:1px solid transparent; outline-offset:3px; transition:outline-color .15s; }
html .ic-item:hover .ic-card, html .ic-card:focus-within { outline-color:var(--nw-coral, #f08d6d); }
html .ic-item:hover .ic-title a, html .ic-card:focus-within .ic-title a { color:var(--nw-gold, #e2bd70); text-decoration:none; }
html .ic-card :is(a, button, summary):hover { color:var(--nw-gold, #e2bd70) !important; text-decoration:none !important; }
html :is(.cf-views, .cf-jump) button:hover, html .cf-arrow:hover { color:var(--nw-gold, #e2bd70) !important; outline:1px solid var(--nw-coral, #f08d6d); outline-offset:2px; border-radius:3px; }
/* Erik, 28 Nov ("a few broken/bugs"): the next row's divider painted over the bottom of a hovered row's trim; the hovered row now sits above it */
html .nw-row:is(:hover, :focus-within) { z-index:2; }
html .nw-row::before { z-index:2; }
/* on phones the episode numbers and the cards sit in sideways-scrolling strips, which cut a trim drawn outside them: draw it just inside */
@media (max-width:700px) { html .ic-card { outline-offset:-1px; } html .cf-jump button:hover { outline-offset:-1px; } }
/* Erik, 28 Nov ("just orange underline across the top menus"): the top menus take gold text and an orange underline on hover, no box; the
   publication menu's underline sits where its gold current-page underline sits; the menu button, logo and social icons turn gold */
html .nw-brand .nw-pubnav a { position:relative; }
html .nw-brand .nw-pubnav a:hover::after { content:""; position:absolute; left:0; right:0; bottom:3px; height:1px; background:var(--nw-coral, #f08d6d); }
html :is(.nw-bar .site-menu, .eh-drawer) a:hover { color:var(--nw-gold, #e2bd70) !important; text-decoration:underline; text-decoration-color:var(--nw-coral, #f08d6d); text-decoration-thickness:1px; text-underline-offset:7px; outline:none; }
html :is(.nw-bar, .nw-brand, .eh-drawer) :is(a, summary, button):hover { outline:none; }
html .nw-bar :is(.social-link, .eh-menu-btn, details.nw-menu > summary):hover { color:var(--nw-gold, #e2bd70); }
html .nw-bar details.nw-menu > summary:hover i { background:var(--nw-gold, #e2bd70); }
/* Erik, 28 Nov ("these links are broken & cant click through"): the row trim lay over the row's link and took the click; it now lets clicks through */
html .nw-row::before, html .nw-main::before, html .nw-side li::before { pointer-events:none; }
html .nw-row, html .nw-side li, html .nw-main { cursor:pointer; }
