/* Desktop proposals only. Mobile keeps the previously approved page. */
@media(min-width:761px) {
/* Reference-informed study room. Scoped to this page; existing navigation, books,
   stat tiles, clock internals and tap-lamp behavior are retained. */
body.reading-room-home.kh-reference-preview .reading-room-stage {
  position:relative!important; height:auto!important; min-height:0!important;
  padding:24px 24px 20px!important; overflow:visible!important;
  background:
    radial-gradient(ellipse at 35% 20%,#fffaf0b3,transparent 64%),
    repeating-linear-gradient(92deg,#9c785008 0 1px,transparent 1px 5px),
    linear-gradient(180deg,#e6dccb 0%,#ece4d6 64%,#dbcbb5 64%,#c6ab87 67%,#7b4f31 68%,#694027 100%)!important;
  box-shadow:inset 0 -2px 0 #452918,0 6px 18px #37241521!important;
}
body.reading-room-home.kh-reference-preview .room-reference-window {display:none!important}
body.reading-room-home.kh-reference-preview .reading-room-stage::after {display:none!important}
body.reading-room-home.kh-reference-preview .reading-room-stage .hub-hero {
  position:relative!important; inset:auto!important; width:min(1080px,100%)!important;
  height:auto!important; min-height:0!important; margin:0 auto!important; padding:0!important;
  overflow:visible!important; background:none!important;
}
body.reading-room-home.kh-reference-preview .reading-room-stage .hub-hero-grid {
  position:relative!important; inset:auto!important; display:grid!important;
  grid-template-columns:180px repeat(5,minmax(0,1fr))!important;
  grid-template-rows:148px 268px!important;
  grid-template-areas:"title quote quote quote quote quote" "atlas atlas atlas lamp lamp lamp"!important;
  gap:20px 20px!important; height:436px!important; min-height:0!important; width:100%!important;
}
/* A single physical parchment frame under the existing clock and live quotation. */
body.reading-room-home.kh-reference-preview .hub-hero-grid::before {
  content:""; position:absolute; z-index:-1; inset:0 0 auto; height:148px; box-sizing:border-box;
  border:9px solid #775039; border-radius:10px;
  background:radial-gradient(ellipse at 50% 24%,#fbf3de 0,#f0e1bc 75%,#d4bb87 100%);
  box-shadow:inset 0 0 0 2px #ab8554,inset 0 0 22px #7d552d22,0 2px 0 #ab815b,0 9px 17px #3926172e;
}
body.reading-room-home.kh-reference-preview .scene-clock-overlay,
body.reading-room-home.kh-reference-preview[data-theme="dark"] .scene-clock-overlay {
  grid-area:title!important; position:relative!important; inset:auto!important;
  width:100%!important; height:148px!important; min-height:0!important; margin:0!important; padding:0!important;
  border:0!important; border-radius:0!important; background:transparent!important;box-shadow:none!important;overflow:visible!important;
}
body.reading-room-home.kh-reference-preview .scene-clock-overlay .ist-clock {
  position:absolute!important; top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;
  margin:0!important;padding:0!important;
}
body.reading-room-home.kh-reference-preview .scene-clock-overlay .ist-clock-face {
  width:94px!important;height:94px!important;
}
body.reading-room-home.kh-reference-preview .scene-clock-overlay .ist-clock-caption {
  display:none!important;
}
body.reading-room-home.kh-reference-preview .scene-quote-overlay {
  grid-area:quote!important; position:relative!important; inset:auto!important; width:100%!important;
  height:148px!important; min-height:0!important; margin:0!important;padding:0!important;
  border:0!important; border-radius:0!important; background:none!important;box-shadow:none!important;overflow:visible!important;
}
body.reading-room-home.kh-reference-preview .scene-quote-overlay .quote-frame-inner {
  position:absolute!important; inset:20px 64px 20px 0!important; min-height:0!important; width:auto!important;height:auto!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  margin:0!important;padding:12px 30px!important; border:0!important; border-left:1px solid #8c622a32!important;
  border-radius:0!important; background:none!important;box-shadow:none!important;backdrop-filter:none!important;
}
body.reading-room-home.kh-reference-preview .scene-quote-overlay #readingQuote {
  color:#452e1c!important;font-family:Georgia,"Times New Roman",serif!important;font-size:clamp(20px,2.15vw,30px)!important;
  font-weight:500!important;line-height:1.35!important;letter-spacing:-.015em!important;text-align:center!important;text-shadow:none!important;
}
body.reading-room-home.kh-reference-preview .scene-quote-overlay #readingQuote::after {display:none!important}
body.reading-room-home.kh-reference-preview .scene-quote-overlay .quote-cycle-cue {
  right:24px!important;bottom:29px!important;width:32px!important;height:32px!important;
  border:1px solid #b49b65!important;border-radius:50%!important;color:#725029!important;
  background:linear-gradient(135deg,#fff4ce,#d4b779)!important;box-shadow:0 2px 4px #76533135!important;
}
/* Freestanding brass globe, with no blue panel behind it. */
body.reading-room-home.kh-reference-preview .scene-atlas-hotspot,
body.reading-room-home.kh-reference-preview[data-theme="dark"] .scene-atlas-hotspot {
  grid-area:atlas!important;position:relative!important;inset:auto!important;width:100%!important;
  height:268px!important;min-height:0!important;margin:0!important;padding:0!important;
  display:block!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;
}
body.reading-room-home.kh-reference-preview .scene-atlas-hotspot::before,
body.reading-room-home.kh-reference-preview .scene-atlas-hotspot::after {display:none!important;content:none!important}
body.reading-room-home.kh-reference-preview .scene-atlas-hotspot .atlas-preview-visual {
  position:absolute!important;inset:0 0 37px!important;display:grid!important;place-items:center!important;
  min-height:0!important;background:none!important;border:0!important;border-radius:0!important;overflow:visible!important;
}
body.reading-room-home.kh-reference-preview .scene-atlas-hotspot .atlas-preview-globe {
  display:block!important; width:244px!important;height:244px!important;max-width:100%!important;
  aspect-ratio:1!important;background:url('/knowledge-hub/assets/brass-globe-reference.webp') center / contain no-repeat!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;filter:drop-shadow(0 5px 5px #3423122e)!important;
  transform:none!important;animation:none!important;
}
body.reading-room-home.kh-reference-preview .scene-atlas-hotspot .atlas-preview-copy {
  position:absolute!important;left:50%!important;right:auto!important;bottom:0!important;
  transform:translateX(-50%)!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:24px!important;width:250px!important;max-width:90%!important;min-height:35px!important;margin:0!important;padding:9px 14px!important;
  border:1px solid #b19b72!important;border-radius:5px!important;
  background:linear-gradient(145deg,#f7edd9,#deccaa)!important;color:#3d2b1b!important;box-shadow:0 3px 7px #32200e40,inset 0 1px 0 #fff8df!important;
  backdrop-filter:none!important;text-shadow:none!important;
}
body.reading-room-home.kh-reference-preview .scene-atlas-hotspot .atlas-preview-copy strong {
  color:inherit!important;font:700 12px/1.1 Inter,sans-serif!important;letter-spacing:.05em!important;
}
body.reading-room-home.kh-reference-preview .scene-atlas-hotspot .atlas-preview-copy > b {
  color:#634622!important;font:700 10px/1 Inter,sans-serif!important;
}
body.reading-room-home.kh-reference-preview .scene-atlas-hotspot .atlas-preview-copy small,
body.reading-room-home.kh-reference-preview .scene-atlas-hotspot .atlas-preview-copy > span {display:none!important}
/* Existing lamp artwork and the current Tap Lamp treatment; same live control. */
body.reading-room-home.kh-reference-preview .scene-lamp-hotspot {
  grid-area:lamp!important; position:relative!important; inset:auto!important; justify-self:end!important;
  width:min(100%,400px)!important;height:268px!important;min-height:0!important;margin:0!important;padding:0!important;
  overflow:hidden!important;border:1px solid #775332!important;border-radius:58px 58px 7px 7px!important;
  background:#25140c url('/knowledge-hub/assets/reading-room-benchmark.png') no-repeat 100% 15.5% / auto 240%!important;
  box-shadow:inset 0 0 0 3px #eac27024,inset 0 -18px 24px #1d0d0533,0 7px 15px #38251736!important;
}
body.reading-room-home.kh-reference-preview .scene-lamp-hotspot .hero-art {display:none!important}
body.reading-room-home.kh-reference-preview .scene-lamp-hotspot::before {
  content:"Tap lamp"!important;position:absolute!important;z-index:8!important;top:auto!important;right:7px!important;bottom:7px!important;left:auto!important;
  display:block!important;width:auto!important;height:auto!important;padding:5px 8px!important;clip:auto!important;clip-path:none!important;
  border:1px solid rgba(255,229,170,.62)!important;border-radius:999px!important;background:rgba(18,12,8,.82)!important;color:#fff0c8!important;
  font:800 10px/1 var(--sans)!important;letter-spacing:.055em!important;text-transform:uppercase!important;text-shadow:0 1px 1px #000!important;
  box-shadow:0 2px 8px rgba(0,0,0,.35)!important;opacity:1!important;visibility:visible!important;pointer-events:none!important;
}
body.reading-room-home.kh-reference-preview .scene-stats-overlay {
  position:relative!important;inset:auto!important;width:100%!important; height:62px!important;min-height:0!important;
  margin:20px auto 0!important;padding:0!important;gap:8px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
/* The separate search adapter owns its controls and popup. */
body.reading-room-home.kh-reference-preview .scene-search-overlay {
  position:relative!important;inset:auto!important; width:min(1080px,100%)!important; height:auto!important;min-height:0!important;
  margin:18px auto 0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
body.reading-room-home.kh-reference-preview[data-theme="dark"] .reading-room-stage {
  background:radial-gradient(ellipse at 79% 54%,#c9975930,transparent 43%),repeating-linear-gradient(92deg,#b68b5608 0 1px,transparent 1px 5px),linear-gradient(180deg,#29251f,#343027 64%,#58422a 65%,#52351f 68%,#302017 100%)!important;
}
body.reading-room-home.kh-reference-preview[data-theme="dark"] .hub-hero-grid::before {
  background:radial-gradient(ellipse at 50% 20%,#e9d6af,#cbb387 100%);border-color:#62442e;
}
body.reading-room-home.kh-reference-preview[data-theme="dark"] .scene-atlas-hotspot .atlas-preview-globe {filter:brightness(.84) drop-shadow(0 5px 5px #0005)!important}
@media(max-width:1050px) and (min-width:761px) {
  body.reading-room-home.kh-reference-preview .reading-room-stage .hub-hero-grid {grid-template-columns:150px repeat(5,minmax(0,1fr))!important}
  body.reading-room-home.kh-reference-preview .scene-lamp-hotspot {background-size:auto 240%!important;background-position:100% 15.5%!important}
}


@media(min-width:761px) {
  body.reading-room-home.kh-reference-preview .scene-atlas-hotspot .atlas-preview-visual {inset:-18px 0 0!important;place-items:start center!important}
  body.reading-room-home.kh-reference-preview .scene-atlas-hotspot .atlas-preview-globe {width:286px!important;height:286px!important}
  body.reading-room-home.kh-reference-preview .scene-atlas-hotspot .atlas-preview-copy {z-index:2}
}

/* Keep the search helper legible against the existing wooden desk surface. */
body.reading-room-home.kh-reference-preview .hub-search-zone.kh-search-enhanced .kh-search-tools {color:#eee1ca!important}

/* Retain the original stat-band corner treatment on the new desk. */
body.reading-room-home.kh-reference-preview .scene-stats-overlay {border-radius:16px!important}

}
/* The two requested note replacements are real HTML, not baked text. */
body.reading-room-home.kh-reference-preview .kh-ref-sticky {position:absolute;z-index:5;display:flex;align-items:center;justify-content:center;text-align:center;flex-direction:column;padding:5px 3px;background:linear-gradient(135deg,#efe0a4,#e4c875);color:#422d1c;box-shadow:1px 3px 4px #140e0866;font:600 13px/1.06 Caveat,Georgia,serif;letter-spacing:0;pointer-events:none;transform:rotate(-3deg)}
body.reading-room-home.kh-reference-preview .kh-ref-sticky::before {content:"";position:absolute;top:3px;left:50%;width:4px;height:4px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#fce5a5,#9b742a);box-shadow:1px 1px 1px #573c2366}
@media(min-width:761px){
 body.reading-room-home.kh-reference-preview .kh-ref-curious {left:62px;top:130px;width:45px;height:43px}
 body.reading-room-home.kh-reference-preview .kh-ref-review {left:235px;top:117px;width:46px;height:51px;font-size:12px;transform:rotate(2deg)}
}
/* Approved mobile composition is untouched except the local Atlas and two notes. */
@media(max-width:760px) {
 body.reading-room-home.kh-reference-preview .scene-atlas-hotspot,
 body.reading-room-home.kh-reference-preview[data-theme="dark"] .scene-atlas-hotspot {
   border:1px solid #9f7c4c!important;border-radius:46px 46px 7px 7px!important;
   background:radial-gradient(ellipse at 48% 26%,#fff8e9,#e4d3b4 70%,transparent 71%),linear-gradient(180deg,#eadcc6 80%,#b58651 81%,#70472b 100%)!important;
   box-shadow:inset 0 0 0 2px #ffe8b629,0 5px 10px #30170836!important;
 }
 body.reading-room-home.kh-reference-preview .scene-atlas-hotspot::before,
 body.reading-room-home.kh-reference-preview .scene-atlas-hotspot::after {display:none!important;content:none!important}
 body.reading-room-home.kh-reference-preview .scene-atlas-hotspot .atlas-preview-visual {position:absolute!important;inset:1px 0 29px!important;background:none!important;border:0!important;border-radius:0!important;display:grid!important;place-items:center!important;overflow:visible!important}
 body.reading-room-home.kh-reference-preview .scene-atlas-hotspot .atlas-preview-globe {width:147px!important;height:147px!important;max-width:100%!important;background:url('/knowledge-hub/assets/brass-globe-reference.webp') center/contain no-repeat!important;border:0!important;border-radius:0!important;box-shadow:none!important;filter:drop-shadow(0 2px 3px #36231640)!important;animation:none!important;transform:none!important}
 body.reading-room-home.kh-reference-preview .scene-atlas-hotspot .atlas-preview-copy {position:absolute!important;left:6px!important;right:6px!important;bottom:6px!important;display:flex!important;gap:6px!important;align-items:center!important;justify-content:space-between!important;padding:7px 8px!important;border:1px solid #bba16e!important;border-radius:5px!important;background:linear-gradient(135deg,#f5ebd5,#d8bd8b)!important;color:#382817!important;box-shadow:0 2px 4px #30170640!important;backdrop-filter:none!important;text-shadow:none!important}
 body.reading-room-home.kh-reference-preview .scene-atlas-hotspot .atlas-preview-copy strong {color:inherit!important;font:700 9px/1.1 Inter,sans-serif!important;letter-spacing:.02em!important}
 body.reading-room-home.kh-reference-preview .scene-atlas-hotspot .atlas-preview-copy > b {color:#61441e!important;font:700 8px/1 Inter,sans-serif!important}
 body.reading-room-home.kh-reference-preview .scene-atlas-hotspot .atlas-preview-copy small,
 body.reading-room-home.kh-reference-preview .scene-atlas-hotspot .atlas-preview-copy > span {display:none!important}
 body.reading-room-home.kh-reference-preview .kh-ref-curious {left:0;top:68px;width:34px;height:32px;font-size:9px;padding-top:5px}
 body.reading-room-home.kh-reference-preview .kh-ref-review {left:100px;top:54px;width:32px;height:39px;font-size:8px;padding-top:5px;transform:rotate(2deg)}
 body.reading-room-home.kh-reference-preview .kh-ref-sticky::before {width:3px;height:3px;top:2px}
}
@media(max-width:760px){
  /* Only the enlarged search component needs extra flow height. */
  body.reading-room-home.kh-reference-preview .scene-search-overlay {height:auto!important;min-height:62px!important}
  body.reading-room-home.kh-reference-preview .hub-search-zone.kh-search-enhanced .kh-search-tools {color:#274b64!important}
  body.reading-room-home.kh-reference-preview[data-theme="dark"] .hub-search-zone.kh-search-enhanced .kh-search-tools {color:#d5e6f3!important}
  body.reading-room-home.kh-reference-preview .kh-ref-curious {left:clamp(0px,calc(95% - 171px),34px)}
  body.reading-room-home.kh-reference-preview .kh-ref-review {left:calc(95% - 71px)}
}
@media(min-width:560px) and (max-width:760px){
  body.reading-room-home.kh-reference-preview .kh-ref-curious {left:0}
  body.reading-room-home.kh-reference-preview .kh-ref-review {left:calc(100% - 154px)}
}
@media(min-width:761px){
  body.reading-room-home.kh-reference-preview .kh-ref-curious {left:clamp(2px,calc(100% - 372px),28px);top:110px;width:79px;height:47px;font-size:14px}
  body.reading-room-home.kh-reference-preview .kh-ref-review {left:calc(100% - 165px)}
}
