* {box-sizing:border-box}
html {background:#101c26;color-scheme:light}
body.wisdom-home {margin:0;color:#fff5dc;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.wisdom-home [hidden] {display:none!important}
.room-skip {position:absolute;left:.5rem;top:-5rem;z-index:20;padding:.6rem;background:#fff;color:#10263f}
.room-skip:focus {top:.5rem}
.room-bar {min-height:4rem;display:flex;align-items:center;gap:1rem;padding:.45rem max(1rem,calc((100vw - 76rem)/2));background:#101c26;border-bottom:1px solid #7c6845}
.room-bar a {color:#fff1d3;text-decoration:none}
.room-bar :focus-visible,.wisdom-home main :focus-visible {outline:3px solid #e5b967;outline-offset:3px}
.room-brand {display:flex;align-items:center;gap:.7rem;font:600 1.1rem Georgia,serif;line-height:1.15}
.room-brand img {object-fit:contain}
.room-brand small {display:block;font:600 .7rem/1.7 system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#dfc58d}
.room-bar nav {margin-left:auto;display:flex;align-items:center;gap:clamp(.6rem,2.1vw,1.8rem)}
.room-bar nav a,.room-sun {min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.room-bar nav a {font-size:.94rem}
.room-bar nav a:hover {text-decoration:underline;text-underline-offset:.3em}
.room-sun {min-width:44px;font-size:1.1rem}
#roomGate {max-width:34rem;margin:12vh auto;padding:1.6rem;text-align:center;color:#f6e4c3}
#roomGate a,#roomGate button {display:inline-block;color:inherit;padding:.7rem;margin:.3rem}
#roomGate button {background:#203748;border:1px solid #bc9f68;border-radius:.4rem;font:inherit}
#wisdomRoom {isolation:isolate;position:relative;display:flex;flex-direction:column;align-items:center;min-height:calc(100svh - 4rem);padding:clamp(1.2rem,4.2vh,3.3rem) clamp(1rem,5vw,5rem) clamp(1rem,3vh,2rem);background:#2c241e}
#wisdomRoom::before {content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(180deg,rgba(9,18,26,.2),rgba(10,18,27,.12) 45%,rgba(10,18,27,.58)),var(--temple-image);background-size:cover;background-position:center}
.temple-heading {text-align:center;text-shadow:0 2px 12px #120d08,0 1px 32px #120d08;margin-bottom:clamp(1.1rem,3vh,2.3rem)}
.temple-heading p {display:flex;align-items:center;justify-content:center;gap:.8rem;margin:0 0 .35rem;font-weight:650;font-size:.8rem;text-transform:uppercase;letter-spacing:.2em;color:#f6d599}
.temple-heading p::before,.temple-heading p::after {content:"";width:2rem;height:1px;background:#d8b676}
.temple-heading h1 {margin:0;font:normal clamp(2.7rem,5.8vw,5.2rem)/1 Georgia,"Times New Roman",serif;letter-spacing:-.045em;color:#fff6df}
#wisdomChatMount {width:min(100%,56rem);min-width:0}
#wisdomChatMount #btwAskLodgeRoot {z-index:1}
#wisdomChatMount #btwAskLodgeRoot .btw-ask-panel {position:relative;inset:auto!important;width:100%!important;max-width:none!important;height:clamp(25rem,65dvh,55rem);max-height:none;border:1px solid #d2b57b;box-shadow:0 20px 65px #080f1bab}
#wisdomChatMount .btw-ask-launcher,#wisdomChatMount .btw-ask-close,#wisdomChatMount .btw-ask-welcome-toast {display:none!important}
#wisdomChatMount #btwAskLodgeRoot .btw-ask-header {background:linear-gradient(100deg,#142b3a,#213d50);border-bottom:1px solid #c2a370}
#wisdomChatMount #btwAskLodgeRoot .btw-ask-scroll {background:#f6f3ec;padding:clamp(.85rem,2vw,1.4rem);gap:.8rem}
#wisdomChatMount #btwAskLodgeRoot .btw-ask-message {max-width:min(86%,46rem);font-size:1rem;line-height:1.55}
#wisdomChatMount #btwAskLodgeRoot .btw-ask-options {padding:.5rem 1rem}
#wisdomChatMount #btwAskLodgeRoot .btw-ask-options button {font-size:.875rem;min-height:40px}
#wisdomChatMount #btwAskLodgeRoot .btw-ask-form {padding:.65rem 1rem}
#wisdomChatMount #btwAskLodgeRoot .btw-ask-form input {font-size:1rem}
#wisdomChatMount #btwAskLodgeRoot .btw-ask-disclaimer {font-size:.72rem}
@media(max-width:600px) {
 .room-bar {gap:.2rem;padding:.25rem .45rem}
 .room-brand {gap:.35rem;font-size:.78rem}
 .room-brand img {width:34px;height:34px}
 .room-brand small {font-size:.58rem;letter-spacing:.04em}
 .room-bar nav {gap:.55rem}
 .room-bar nav a {font-size:.8rem}
 .room-sun {min-width:32px}
 #wisdomRoom {padding:1.05rem .65rem max(.8rem,env(safe-area-inset-bottom))}
 .temple-heading {margin:0 0 1rem}
 .temple-heading p {font-size:.7rem}
 #wisdomChatMount #btwAskLodgeRoot .btw-ask-panel {height:clamp(26rem,calc(100dvh - 10.5rem),55rem)}
 #wisdomChatMount #btwAskLodgeRoot .btw-ask-header {border-radius:15px 15px 0 0}
 #wisdomChatMount #btwAskLodgeRoot .btw-ask-form {padding:.5rem}
 #wisdomChatMount #btwAskLodgeRoot .btw-ask-options {padding:.4rem .5rem}
}
@media(max-width:370px) {.room-brand span{max-width:6rem}.room-bar nav{gap:.4rem}}
.temple-portico {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:1rem;width:100%;max-width:82rem;margin-bottom:clamp(.85rem,2vh,1.45rem)}
.temple-heading {grid-column:2;grid-row:1;margin:0}
.pillar-plaque,.weekly-east button,.wisdom-study-form button {
  cursor:pointer;font:650 .92rem/1.25 system-ui,sans-serif;border-radius:.45rem;min-height:44px;padding:.6rem 1rem
}
.pillar-plaque {color:#fff1ce;background:#25313be8;border:1px solid #cfad70;box-shadow:0 2px 10px #120c0866;letter-spacing:.015em}
.pillar-plaque:hover,.pillar-plaque:focus-visible {background:#38434b;border-color:#ffe2a2}
.pillar-history {grid-column:1;grid-row:1;justify-self:start}
.pillar-study {grid-column:3;grid-row:1;justify-self:end}
.weekly-east {display:flex;align-items:center;justify-content:space-between;gap:.75rem 1.2rem;width:min(100%,56rem);margin:0 0 .85rem;padding:.8rem 1.05rem;color:#f9f2de;background:#182934f2;border:1px solid #aa905f;border-radius:.7rem;flex-wrap:wrap}
.weekly-east>div {flex:1 1 20rem}
.weekly-east h2 {margin:0 0 .2rem;color:#e8c98b;font:600 .78rem/1.4 system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase}
.weekly-east p {margin:0;font:normal 1.05rem/1.4 Georgia,serif}
.weekly-east button,.wisdom-study-form button {background:#e1c280;color:#172534;border:1px solid #e1c280}
.weekly-east [role=status]:empty,#wisdomStudyStatus:empty {display:none}
#wisdomChatMount #btwAskLodgeRoot .btw-ask-panel {height:clamp(26rem,calc(100dvh - 19rem),56rem)}
.wisdom-reflect-mode {display:flex;align-items:center;justify-content:space-between;gap:.4rem;font-size:.82rem;padding:.2rem .8rem;background:#faf1de;color:#42361f}
.wisdom-reflect-mode button {background:none;text-decoration:underline;border:0;min-height:32px;color:#294258;cursor:pointer}
.pillar-dialog {position:fixed;inset:0;margin:auto;width:min(32rem,calc(100% - 1.2rem));max-height:calc(100dvh - 2rem);overflow:auto;color:#182c39;background:#faf6eb;border:1px solid #b5995d;border-radius:.9rem;padding:clamp(1rem,3vw,1.65rem);box-shadow:0 18px 90px #080f1b88}
.pillar-dialog::backdrop {background:#09121bbc}
#wisdomRoom[hidden] .pillar-dialog {display:none}
.pillar-dialog-head {display:flex;align-items:center;gap:.75rem;justify-content:space-between;margin-bottom:1rem}
.pillar-dialog h2 {font:normal 2rem/1.1 Georgia,serif;margin:0}
.pillar-dialog-head button {min-width:44px;min-height:44px;color:#172a39;background:#fffaf0;border:1px solid #ccbc9d;border-radius:.4rem;font:1.6rem/1 system-ui;cursor:pointer}
.history-shelf {list-style:none;padding:0;margin:0}
.history-shelf li+li {border-top:1px solid #d8cbb3}
.history-shelf a,.study-source {display:block;padding:.8rem .2rem;color:#213c50;font-weight:650;text-underline-offset:.2em}
.history-shelf small,#wisdomStudyResult small {display:block;font-size:.82rem;font-weight:400;margin-top:.24rem;color:#4c5c64}
.wisdom-study-form {display:grid;grid-template-columns:1fr 1fr;gap:.8rem}
.wisdom-study-form label {display:grid;gap:.3rem;font-size:.9rem;font-weight:650}
.wisdom-study-form label:first-child,.wisdom-study-form button {grid-column:1/-1}
.wisdom-study-form select {width:100%;min-width:0;min-height:44px;font-size:1rem;color:#182c39;background:white;border:1px solid #b8b2a3;border-radius:.3rem;padding:.3rem}
#wisdomStudyResult {margin-top:1rem;border-top:1px solid #cab996;padding-top:1rem}
#wisdomStudyResult h3 {font:600 1.2rem/1.3 Georgia,serif;margin:0}
#wisdomStudyResult p,#wisdomStudyStatus {line-height:1.45;margin:.5rem 0}
#studyPillarDialog button:disabled {opacity:.65;cursor:wait}
@media(max-width:760px){
 .temple-portico {grid-template-columns:1fr 1fr;gap:.65rem;margin-bottom:.65rem}
 .temple-heading {grid-row:1;grid-column:1/-1;margin:0}
 .pillar-history,.pillar-study {grid-row:2;justify-self:stretch;padding:.45rem .35rem}
 .pillar-study {grid-column:2}
 .weekly-east {padding:.65rem .75rem;gap:.4rem .55rem}
 .weekly-east>div {flex-basis:15rem}
 .weekly-east button {min-height:44px}
 #wisdomChatMount #btwAskLodgeRoot .btw-ask-panel {height:clamp(26rem,65dvh,48rem)}
}
