/* Sacralib V2.18 — correct V2.17 scenery dimensions and unify parchment.
 * Owner-only inner-page styling. The homepage and public site are not modified.
 * Native Figma murals are 160x2048 and 152x2048 respectively: never stretch them.
 */
body.sv218-page-theme.sv217-page-theme {
  background-color:#f2e9dc!important;
  /* ONE continuous page-length wash; no stacked/tiled background edges. */
  background-image:linear-gradient(180deg,#f7f0e5 0%,#f1e8da 64%,#eee4d5 100%)!important;
  background-repeat:no-repeat!important;
  background-position:center top!important;
  background-size:100% 100%!important;
  background-attachment:scroll!important;
  position:relative;
}
/* The legacy fullscreen overlay paints a second, viewport-sized wash over
   the page and creates the abrupt rectangular seam seen on long articles. */
body.sv218-page-theme.sv217-page-theme::before{
  content:none!important;display:none!important;
}
html:has(body.sv218-page-theme){background-color:#eee4d5!important;}
body.sv218-page-theme.sv217-page-theme :is(.page-shell,.content-stage,#articleView){
  background:transparent!important;
  box-shadow:none!important;
}
/* Static scenery belongs to the DOCUMENT, not a fixed 860px-high viewport box.
   CSS aspect-ratio keeps each original image undistorted at every width. */
body.sv218-page-theme .sv217-landscapes{
  position:absolute!important;inset:0 0 auto!important;
  height:0!important;z-index:0!important;overflow:visible!important;pointer-events:none!important;
}
body.sv218-page-theme .sv217-scenery{
  position:absolute!important;top:59px!important;bottom:auto!important;
  width:var(--sv217-art-width,140px)!important;
  height:auto!important;
  max-height:none!important;
  background-position:center top!important;
  background-size:100% auto!important;
  background-repeat:no-repeat!important;
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 31%,rgba(0,0,0,.86) 56%,rgba(0,0,0,.36) 78%,transparent 97%)!important;
  mask-image:linear-gradient(to bottom,#000 0%,#000 31%,rgba(0,0,0,.86) 56%,rgba(0,0,0,.36) 78%,transparent 97%)!important;
}
body.sv218-page-theme .sv217-scenery-left{aspect-ratio:160 / 2048!important;}
body.sv218-page-theme .sv217-scenery-right{aspect-ratio:152 / 2048!important;}
/* Ensure real content is above decoration while the broad page shell stays transparent. */
body.sv218-page-theme :is(.page-shell,.content-stage,.site-footer,#siteFooter){position:relative;z-index:1;}
/* Sidebar follows the SIX homepage editorial cards, not the full navigation bar. */
body.sv218-page-theme .sv218-nav-panel{
  margin:0!important;padding:0!important;
  background:linear-gradient(155deg,#fdf9f1,#f5ecdd)!important;
  border:1px solid #d6c3a6!important;border-radius:4px!important;
  overflow:hidden!important;
  box-shadow:0 2px 5px rgba(61,39,18,.045),0 7px 17px rgba(65,44,20,.11)!important;
}
body.sv218-page-theme .sv218-nav-heading{
  display:flex!important;align-items:center!important;gap:9px!important;
  margin:0!important;padding:13px 12px!important;
  border-bottom:1px solid #d7c2a3!important;
  color:#342719!important;font:600 15px/1.22 Georgia,serif!important;
}
body.sv218-page-theme .sv218-nav-heading .sv217-nav-icon{width:31px!important;height:34px!important;object-fit:contain!important;}
body.sv218-page-theme .sv218-nav-group{
  display:block;margin:0!important;border:0!important;border-bottom:1px solid #dbcbb1!important;
}
body.sv218-page-theme .sv218-nav-group:last-child{border-bottom:0!important;}
body.sv218-page-theme .sv218-nav-summary{
  display:flex!important;align-items:center!important;gap:8px!important;
  padding:8px 9px!important;min-height:46px!important;
  list-style:none!important;cursor:pointer!important;
  color:#4e3321!important;font:600 13px/1.2 Georgia,serif!important;
}
body.sv218-page-theme .sv218-nav-summary::-webkit-details-marker{display:none!important;}
body.sv218-page-theme .sv218-nav-summary::after{
  content:'⌄';margin-left:auto!important;font:600 16px/1 Georgia,serif!important;color:#90683e!important;
}
body.sv218-page-theme .sv218-nav-group[open]>.sv218-nav-summary::after{transform:rotate(180deg);}
body.sv218-page-theme .sv218-nav-group[open]>.sv218-nav-summary,
body.sv218-page-theme .sv218-nav-summary:hover{background:#eadcc5!important;}
body.sv218-page-theme .sv218-nav-summary .sv217-nav-icon{
  display:block!important;width:28px!important;height:30px!important;flex:none!important;object-fit:contain!important;
}
body.sv218-page-theme .sv218-nav-links{display:grid!important;gap:0!important;padding:4px 7px 8px!important;}
body.sv218-page-theme .sv218-nav-link{
  display:block!important;position:relative!important;padding:7px 6px 7px 17px!important;
  font:400 13px/1.27 Georgia,serif!important;color:#4b3625!important;
  border:0!important;border-bottom:1px solid #e4d5bf!important;text-decoration:none!important;
  overflow-wrap:anywhere!important;
}
body.sv218-page-theme .sv218-nav-link::before{
  content:'›';position:absolute;left:5px;color:#98663a;font:700 17px/1 Georgia,serif;
}
body.sv218-page-theme .sv218-nav-link:hover,
body.sv218-page-theme .sv218-nav-link.is-current{
  background:#e6d8c0!important;color:#6a3b23!important;
}
body.sv218-page-theme .sv218-nav-link.is-current{border-left:2px solid #936233!important;font-weight:700!important;}
body.sv218-page-theme .sv218-directory-sidebar{display:grid!important;gap:12px!important;align-content:start!important;min-width:0;}
body.sv218-page-theme .sv218-directory-sidebar>.sv218-nav-panel{width:100%!important;}
body.sv218-page-theme .sv218-directory-sidebar>.sv216-world-card{margin:0!important;min-height:176px!important;}
@media(max-width:1040px){
  body.sv218-page-theme .sv217-landscapes{display:none!important;}
}
@media(max-width:840px){
  body.sv218-page-theme .sv218-nav-summary{min-height:50px!important;}
  body.sv218-page-theme .sv218-nav-link{padding-block:10px!important;}
  body.sv218-page-theme .sv218-directory-sidebar{position:static!important;max-height:none!important;overflow:visible!important;}
}
@media(prefers-reduced-motion:reduce){
  body.sv218-page-theme .sv218-nav-summary::after{transition:none!important;}
}
