/* Reading and classroom layer; preserve the existing visual identity. */
:root{--reader-height:145px}body{font-size:16px}#reading-strip[hidden]{display:none!important}#reader-tools{position:sticky;top:66px;z-index:12;margin-left:235px;background:#fffefb;border-bottom:1px solid #d9ddcf;box-shadow:0 3px 12px #2830200a;padding:12px 28px;color:#26362d}.reader-context{display:grid;grid-template-columns:1fr auto;gap:4px 18px;align-items:center}.reader-context strong{font-size:16px}.reader-context span{grid-row:2;font-size:14px;line-height:1.45;color:#515e50}.reader-context a{grid-column:2;grid-row:1 / 3;font-size:14px;text-decoration:underline;text-underline-offset:3px;color:#395733}.reader-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;align-items:center}.reader-actions button,.guide-actions button,.guide-actions a{font-size:14px;min-height:42px;padding:9px 12px;border-radius:7px;border:1px solid #bbc6b5;color:#35472f;background:white}.reader-modes{display:flex;gap:3px;padding:3px;border-radius:9px;background:#edf1e7}.reader-modes button{border:0;background:transparent}.reader-modes button.active{background:#3e5140;color:white}.after-hours .reader-modes button.active{background:#7c412a}.reader-actions button[aria-pressed=true]:not([data-mode]){background:#e3eddb;border-color:#536b45}.reader-actions button:hover{box-shadow:inset 0 0 0 1px #637959}.reader-actions button:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #3873ac;outline-offset:3px}#mode-intro{display:flex;align-items:center;gap:15px;border:1px solid #d4ddc9;border-radius:9px;padding:13px 16px;margin:14px 0;background:#f0f5eb}#mode-intro[hidden]{display:none}#mode-intro p{font-size:14px;line-height:1.6;margin:0;color:#36472f}#mode-intro button{font-size:14px;white-space:nowrap;padding:10px;border:1px solid #b3c2a6;border-radius:6px}.modebar{display:none!important}.post>p,.comment-body>p,.rashi-panel-body>p,.end-note,.stakes-card>p,.discussion-question p,.source-context p,.related-case p{font-size:16px;line-height:1.7}.post .edit-note{font-size:14px}.userline>b,.rashi-panel>summary b{font-size:15px;font-weight:750;overflow-wrap:anywhere}.userline{flex-wrap:wrap}.author-tag,.post-meta small,.header-source,.source-card b,.source-card small,.source-context b,.comment-actions button,.thread-tools select,.thread-tools label,.text-toggle,.event,.hebrew-gloss p,.speaker-key>summary,.rashi-summary-label,.disclosure,.sidebar-footer,.teaching-note summary{font-size:14px}.children{border-left:2px solid #aebea5;padding-left:18px;margin-left:10px}.comment-body{padding-left:20px}.comment{padding-top:8px}.comment-actions{flex-wrap:wrap;gap:5px}.comment-actions button,.collapse{min-height:40px}.collapse{min-width:40px}.aside-joke{border:2px dashed #a26d35;background:#fff1d9!important;border-radius:8px;padding:12px;margin:12px 0}.aside-joke small{display:block;font-size:12px;font-weight:750;letter-spacing:.04em;color:#75491f}.aside-joke span{font-size:15px}.aside-joke br{display:none}.top-stakes p{font-size:16px}.top-stakes summary{font-size:14px}.teaching-note{margin:22px 0;border:1px solid #c5d3bb;border-radius:8px;padding:14px;background:#f2f6ed}.teaching-note summary{font-weight:700;cursor:pointer}.teaching-note p{line-height:1.7;font-size:16px}.guide-actions{display:flex;gap:8px;flex-wrap:wrap;padding-top:16px;border-top:1px solid #d4ddc9}.guide-actions a{background:#3e5140;color:white;text-decoration:none}#guide-dialog{width:min(760px,calc(100% - 24px));max-width:760px}#guide-dialog h3{font-size:16px;margin:22px 0 8px;color:#395733}#guide-dialog p,#guide-dialog li{font-size:16px;line-height:1.65;color:#26362d}#guide-dialog li{margin:8px 0}#guide-dialog .guide-ref{font-size:14px;color:#596651}#guide-status textarea{width:100%;min-height:180px}#gemara,.comment,.pinned,textarea{scroll-margin-top:calc(80px + var(--reader-height))}.classroom-view .rightbar,.classroom-view .banner,.classroom-view .community-heading,.classroom-view .vote-group,.classroom-view .award-button,.classroom-view .post-award,.classroom-view .sort-control,.classroom-view .aside-joke,.classroom-view .live-card{display:none!important}.classroom-view .page-grid{grid-template-columns:minmax(0,850px);justify-content:center}.classroom-view .top-stakes{background:#edf4e6}.classroom-view .teaching-note{border-left:4px solid #637e4d}.present-view .leftnav,.present-view .tabs,.present-view .note-form,.present-view .personal-note,.present-view .notes-heading,.present-view .thread-feedback,.present-view .comment-actions,.present-view footer,.present-view .site-disclosure,.present-view #mode-intro{display:none!important}.present-view main,.present-view #reader-tools{margin-left:0}.present-view main{max-width:1100px;margin:0 auto}.present-view .page-grid{grid-template-columns:minmax(0,1fr)}.present-view .comment-body>p,.present-view .post>p,.present-view .rashi-panel-body>p,.present-view .end-note,.present-view .stakes-card p{font-size:22px;line-height:1.7}.present-view .post h2{font-size:36px}.present-view .userline>b{font-size:19px}.present-view .topbar .search-wrap,.present-view .top-about{display:none}.present-view .comment{margin-bottom:25px}.present-view .children{border-left-width:3px}
@media(max-width:1200px){#reader-tools{margin-left:200px;padding:12px 20px}}@media(max-width:1000px){#reader-tools{margin-left:175px}}@media(max-width:767px){#reader-tools{top:60px;margin-left:0;padding:9px 12px}.reader-context{display:block}.reader-context strong{display:block;font-size:15px}.reader-context span{display:none}.reader-context a{display:block;font-size:14px;margin-top:3px}.reader-actions{gap:5px;margin-top:7px}.reader-modes{width:100%;padding:2px}.reader-modes button{flex:1;padding:8px 5px}.reader-actions>button{flex:1;font-size:14px;padding:7px 5px;min-height:38px}.reader-modes button{font-size:14px;min-height:38px}.post{padding:16px 14px 0}.post h2{font-size:26px}.comment-body{padding-left:0}.children{margin-left:4px;padding-left:10px;border-left-width:2px}.children .children{margin-left:0;padding-left:9px}.comment{margin-bottom:17px}.userline{gap:6px;align-items:center}.userline>b{font-size:14px;max-width:calc(100% - 80px)}.author-tag{font-size:12px;order:3;width:100%;padding-left:36px}.collapse{margin-left:auto}.comment-body>p{font-size:16px;line-height:1.65}.comment-actions{gap:4px}.comment-actions button{font-size:14px}.comment-actions .vote-group{font-size:14px}.hebrew-gloss summary>small,.source-card small{font-size:14px}.source-card{align-items:flex-start}.source-card b{font-size:16px}.rashi-panel>summary b{font-size:14px}.rashi-summary-label{font-size:14px}.rashi-panel-body>p{font-size:16px}.top-stakes p{font-size:16px}.top-stakes summary{font-size:14px}.speaker-key>summary{font-size:14px;flex-wrap:wrap}.key-caption{font-size:12px}.thread-tools{flex-wrap:wrap}.thread-tools select{font-size:14px;max-width:150px}.thread-tools h3{font-size:16px}.thread-tools .text-toggle{font-size:14px}#mode-intro{align-items:flex-start;padding:12px;gap:8px}.banner{overflow:hidden}.present-view .comment-body>p,.present-view .post>p{font-size:20px}.present-view .post h2{font-size:30px}.search-wrap input{font-size:16px}.guide-actions>*{width:100%;text-align:center}}
@media print{.topbar,#reader-tools,.leftnav,.rightbar,.tabs,.modebar,.banner,.community-heading,.comment-actions,.post-actions,.note-form,.personal-note,.notes-heading,.thread-feedback,.site-disclosure,footer,#mode-intro{display:none!important}body,main{background:white!important;margin:0!important;padding:0!important}.page-grid{display:block}.comment,.post,.pinned{break-inside:avoid}dialog{display:none}}
.topbar .brand{font-size:23px;letter-spacing:-.6px;white-space:nowrap;width:auto;min-width:230px}.brand-icon{display:none}@media(max-width:767px){.topbar .brand{font-size:19px;min-width:0}.topbar{gap:9px}.search-wrap{min-width:0}.search-wrap input{width:65px}.brand-dot{display:none}}
