/* The Explore shell (owner 2026-11-04, canvas "Explore — Research Doors"): the Library's side rail around every Explore
   page, and the Research doors on /knowledge. The rail itself is styled by librarypage.css (body.librarypage). */
body.exshell { background: #F4EDE0; }
.xs-shell { min-height: calc(100vh - 66px); }
.xs-main .tb-page { min-height: 0; background: transparent; }
.xs-main .home-body { max-width: 1240px; }

/* the doors under The Research: a step in, and quieter */
.librarypage .lp-nav.xs-sub { min-height: 38px; font-size: 14.5px; font-weight: 400; color: #D9DEEA; padding-left: 30px; }
.lp-nav.xs-sub svg { opacity: .65; }
@media (min-width: 761px) { body.lp-side-closed .librarypage .lp-nav.xs-sub, body.lp-side-closed .lp-nav.xs-sub { padding: 0; min-height: 36px; } }
body.lp-side-closed .lp-nav.xs-sub svg { width: 15px; height: 15px; }

/* ---- the Research page (/knowledge) ------------------------------------------------------------------------------ */
.tb-page .swrap.rs-wrap { max-width: none; padding: 0 0 64px; }
.rs-hero .lp-herogrid { grid-template-columns: minmax(0, 1fr); padding-top: 30px; padding-bottom: 28px; }
.rs-hero .lp-facts { max-width: 640px; font-size: 17px; }
.rs-acts { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 0; font-size: 15px; }
.rs-acts a { color: #D4B67A; text-underline-offset: 4px; }
.rs-body { display: flex; flex-direction: column; gap: 54px; padding: 34px 48px 0; }
.rs-door { display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 84px; }
.rs-door-h { display: flex; align-items: baseline; gap: 18px; margin-top: -6px; }
.rs-door-h h2 { margin: 0; font: 400 30px/1.15 "Fraunces", Georgia, serif; color: #1f170f; }
.rs-door-h .rs-line { flex: 1; height: 1px; background: #cdb98f; align-self: center; }
.rs-door > .xsub { margin: -10px 0 0; }
.rs-shelf { display: flex; flex-direction: column; gap: 10px; }
.rs-shelf-h { display: flex; align-items: center; gap: 10px; }
.rs-shelf-h h3 { margin: 0; flex: 1; font: 400 12px "Playfair Display SC", Georgia, serif; letter-spacing: .22em; color: #6B4A2F; }
.rs-btn { width: 44px; height: 36px; border: 1px solid #DDCDB3; border-radius: 8px; background: #F8F3EA; color: #6B4A2F; font: 18px/1 Georgia, serif; cursor: pointer; }
.rs-btn:hover { border-color: #A07C52; background: #EFE5D3; }
.rs-btn[disabled] { opacity: .35; cursor: default; }
.rs-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 42px) / 4); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: #cdb98f transparent; padding-bottom: 8px; margin: 0; list-style: none; }
.rs-row > li { display: flex; min-width: 0; }
/* a card: the square art in a frame beside the title, then the article's opening sentence (the art is square: never cropped) */
.rs-card { flex: 1; scroll-snap-align: start; display: grid; grid-template-columns: 64px minmax(0, 1fr); min-width: 0; grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 12px;
  align-content: start; min-height: 200px; padding: 16px 18px 18px; box-sizing: border-box; border: 1px solid #2F416B; border-radius: 10px;
  background: radial-gradient(120% 90% at 50% 0%, #26304a 0%, #19202c 70%); text-decoration: none; }
.librarypage .lp-shell a.rs-card { color: #F1E8D7; }
.rs-card:hover, .rs-card:focus-visible { border-color: #C4A46A; }
.rs-art { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 9px; overflow: hidden;
  background: #141a27; box-shadow: 0 0 0 1px rgba(212, 182, 122, .35); }
.rs-art .rs-pic { width: 100%; height: 100%; object-fit: cover; display: block; }
.rs-art .rs-emb { width: 44px; height: 44px; object-fit: contain; }
.rs-ico { display: flex; color: #C4A46A; }
.rs-t { align-self: center; min-width: 0; font: 400 17px/1.22 "Fraunces", Georgia, serif; color: #F4EDE0; overflow-wrap: break-word; hyphens: auto; }
.rs-d { grid-column: 1 / -1; font: 14.5px/1.5 "Fraunces", Georgia, serif; color: #CFC3AD;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rs-az { scroll-margin-top: 84px; }
.rs-az h2 { margin: 0 0 14px; font: 400 30px/1.15 "Fraunces", Georgia, serif; color: #1f170f; }
.rs-azlist { margin: 0; padding: 0; list-style: none; columns: 4 13rem; column-gap: 28px; }
.rs-azlist li { break-inside: avoid; }
.rs-azlist a { display: block; padding: 5px 0; font: 16px/1.35 "Fraunces", Georgia, serif; text-decoration: none; }
.rs-azlist a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rs-empty { margin: 0; font: 17px "Fraunces", Georgia, serif; color: #4A3628; }
.rs-hide { display: none !important; }
.rs-desk { padding: 0 48px; }
@media (max-width: 1100px) { .rs-row { grid-auto-columns: calc((100% - 14px) / 2); } }
@media (max-width: 760px) {
  .rs-body { padding: 24px 16px 0; gap: 40px; }
  .rs-desk { padding: 0 16px; }
  .rs-row { grid-auto-columns: 84%; }
  .rs-btn { display: none; }
  .rs-door-h h2, .rs-az h2 { font-size: 25px; }
  .rs-acts { gap: 0 18px; margin-top: 6px; }
  .rs-acts a { display: inline-flex; align-items: center; min-height: 44px; }   /* finger-sized */
}

/* Explore overview: the Research as the third way in, dark like the Research cards */
a.xpath.xpath-dark { border-color: #2F416B; background: radial-gradient(120% 90% at 50% 0%, #26304a 0%, #19202c 70%); text-decoration: none; }
.librarypage .lp-shell a.xpath-dark, a.xpath.xpath-dark h4 { color: #F4EDE0; }
a.xpath.xpath-dark .k, a.xpath.xpath-dark .xgo { color: #D4B67A; }
a.xpath.xpath-dark p { color: #CFC3AD; }
a.xpath.xpath-dark:hover { border-color: #C4A46A; }
#teachings { scroll-margin-top: 84px; }
