/* Shared three-source layout: source spelling, modern spelling, source image. */
main.three-view{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);gap:12px;max-width:none;width:100%;align-items:start;padding:12px}
.three-view .book,.three-view .modern-panel,.three-view .scan{display:block!important;min-width:0;width:100%;max-width:none;overflow:hidden;margin:0}
.three-view .book::before{content:'Дореформенная орфография';display:block;font:600 12px system-ui;color:#6e624d;padding:8px 4px}
.three-view .book .leaf{display:none!important}
.three-view .book .leaf.active{display:block!important}
.three-view .leaf,.three-view .modern-panel .leaf{width:100%;min-height:0;overflow:visible}
.three-view .leaf-body{margin:9% 8%;font-size:clamp(12px,1.05vw,16px);line-height:1.2}
.three-view .leaf-caption{position:static;text-align:right;margin:5px 18px 10px}
.three-view .scan img{width:100%;height:auto;display:block}
.modern-panel{display:none}
.three-view .modern-panel{display:block}
.three-view .modern-panel-title{font:600 12px system-ui;color:#6e624d;padding:8px 4px}
.three-view .index-table{font-size:12px;line-height:1.16}
.bar #spelling[hidden]{display:none!important}
@media(max-width:960px){main.three-view{grid-template-columns:1fr;max-width:700px;margin:auto}.three-view .leaf-body{font-size:16px;margin:35px 20px 48px}.three-view .index-table{font-size:13px}}
