/* The lower Wisdom row follows the paired daylight / evening reference.
   Existing room links and Add wisdom behavior stay unchanged. */
body[data-page=wisdom] .wisdom-page[data-wisdom-mode=view] {
  --wisdom-lower-ink:#f7e6c4;
  --wisdom-lower-muted:#edd9b5;
  --wisdom-lower-edge:#c99c57;
  --wisdom-lower-rim:linear-gradient(118deg,#9e6e31,#ffe7ac 20%,#b38545 42%,#e8c283 72%,#a16b2c);
  --wisdom-lower-paper:linear-gradient(125deg,#3a2514,#20150d 78%);
  --wisdom-lower-button:linear-gradient(140deg,#77502b,#352313 85%);
  --wisdom-lower-shadow:#0006;
}
:root[data-theme=heirloom_light] body[data-page=wisdom] .wisdom-page[data-wisdom-mode=view] {
  --wisdom-lower-ink:#3c2818;
  --wisdom-lower-muted:#705035;
  --wisdom-lower-edge:#b38477;
  --wisdom-lower-rim:linear-gradient(118deg,#926358,#fae8dc 20%,#bd9181 42%,#f1d8c9 72%,#936359);
  --wisdom-lower-paper:linear-gradient(125deg,#fffaf1,#f8eddb);
  --wisdom-lower-button:linear-gradient(135deg,#fcf5e8,#f2e5d1);
  --wisdom-lower-shadow:#7850272b;
}
body[data-page=wisdom] .wisdom-page .wisdom-room:is([href="#rules"],[href="#stones"]),
:root[data-theme=heirloom_light] body[data-page=wisdom] .wisdom-page .wisdom-room:is([href="#rules"],[href="#stones"]) {
  display:flex;
  flex-direction:column;
  border:1.3px solid var(--wisdom-lower-edge)!important;
  border-radius:11px;
  background:var(--wisdom-lower-paper);
  --shelf-rim:var(--wisdom-lower-rim);
  box-shadow:inset 0 1px #fff5,0 4px 8px var(--wisdom-lower-shadow);
}
body[data-page=wisdom] .wisdom-page :is(.wisdom-art-rules,.wisdom-art-stones),
:root[data-theme=heirloom_light] body[data-page=wisdom] .wisdom-page :is(.wisdom-art-rules,.wisdom-art-stones) {
  display:block;
  width:100%;
  aspect-ratio:1.85;
  padding:0;
  flex:none;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  border-bottom:1px solid var(--wisdom-lower-edge);
}
body[data-page=wisdom] .wisdom-page .wisdom-art-rules,
:root[data-theme=heirloom_light] body[data-page=wisdom] .wisdom-page .wisdom-art-rules {
  background-image:url('/assets/images/275320d412eebac2/family-rules.png');
}
body[data-page=wisdom] .wisdom-page .wisdom-art-stones,
:root[data-theme=heirloom_light] body[data-page=wisdom] .wisdom-page .wisdom-art-stones {
  background-image:url('/assets/images/b2e1cdb0bfae9dca/twelve-stones.png');
}
/* These photographs already include the stack, contact shadow and cast light. */
body[data-page=wisdom] .wisdom-page .wisdom-art-stones img,
body[data-page=wisdom] .wisdom-page .wisdom-art-stones::before,
body[data-page=wisdom] .wisdom-page .wisdom-art-stones::after,
:root[data-theme=heirloom_light] body[data-page=wisdom] .wisdom-page .wisdom-art-stones img,
:root[data-theme=heirloom_light] body[data-page=wisdom] .wisdom-page .wisdom-art-stones::before,
:root[data-theme=heirloom_light] body[data-page=wisdom] .wisdom-page .wisdom-art-stones::after {display:none}
body[data-page=wisdom] .wisdom-page .wisdom-room:is([href="#rules"],[href="#stones"]) .wisdom-room-copy,
:root[data-theme=heirloom_light] body[data-page=wisdom] .wisdom-page .wisdom-room:is([href="#rules"],[href="#stones"]) .wisdom-room-copy {
  flex:1;
  padding:10px 11px 27px;
  background:var(--wisdom-lower-paper)!important;
  color:var(--wisdom-lower-ink);
  --light-text:var(--wisdom-lower-ink);
}
body[data-page=wisdom] .wisdom-page .wisdom-room:is([href="#rules"],[href="#stones"]) p,
:root[data-theme=heirloom_light] body[data-page=wisdom] .wisdom-page .wisdom-room:is([href="#rules"],[href="#stones"]) p {
  color:var(--wisdom-lower-muted);
  --light-text:var(--wisdom-lower-muted);
  line-height:1.35;
}
body[data-page=wisdom] .wisdom-page .wisdom-room:is([href="#rules"],[href="#stones"]) .wisdom-room-copy>span {
  color:var(--wisdom-lower-ink);
  --light-text:var(--wisdom-lower-muted);
  right:11px;
  bottom:4px;
  font-size:22px;
}
body[data-page=wisdom] .wisdom-page[data-wisdom-mode=view]>.wisdom-add-button,
:root[data-theme=heirloom_light] body[data-page=wisdom] .wisdom-page[data-wisdom-mode=view]>.wisdom-add-button {
  display:flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  max-width:100%;
  min-height:44px;
  margin:16px auto 4px;
  padding:10px 28px;
  border:1.5px solid var(--wisdom-lower-edge)!important;
  border-radius:999px;
  background:var(--wisdom-lower-button)!important;
  color:var(--wisdom-lower-ink);
  --light-text:var(--wisdom-lower-ink);
  font:20px/1.2 Georgia,serif;
  box-shadow:inset 0 1px 1px #fff6,0 3px 6px var(--wisdom-lower-shadow)!important;
}
@media(max-width:355px) {
  body[data-page=wisdom] .wisdom-page .wisdom-room:is([href="#rules"],[href="#stones"]) .wisdom-room-copy,
  :root[data-theme=heirloom_light] body[data-page=wisdom] .wisdom-page .wisdom-room:is([href="#rules"],[href="#stones"]) .wisdom-room-copy {padding-inline:8px}
}
