.document-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:18px 0}.document-toolbar input[type=number]{width:85px}.document-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}.document-source iframe{width:100%;height:650px;border:1px solid #dce5ef}.document-block{border:1px solid #dce5ef;border-radius:8px;padding:14px;margin:12px 0;background:#f8fafc}.document-block textarea{min-height:100px;white-space:pre-wrap}.document-block select{max-width:180px}.document-table-wrap{overflow:auto;margin:16px 0}.document-table-wrap table{border-collapse:collapse;width:100%;font-size:15px}.document-table-wrap th,.document-table-wrap td{padding:10px;border:1px solid #ccd7e4;white-space:pre-wrap}.document-table-wrap th{background:#eef4fb}.document-preview{padding:20px;border:1px solid #dce5ef;line-height:1.85;overflow-wrap:anywhere;max-height:700px;overflow:auto}.document-preview h3{color:#1c5196}.document-source{min-width:0}.document-editor{min-width:0}@media(min-width:1100px){.document-workspace{grid-template-columns:1fr 1fr}}#docStatus{white-space:pre-wrap}

#docPreview .document-preview-block{cursor:pointer;border-radius:5px}
#docPreview .document-preview-block:hover,#docPreview .document-preview-block:focus-visible{background:#edf4ff;outline:2px solid #759bce;outline-offset:3px}
.document-block.document-block-selected{border:2px solid #235799;background:#edf4ff;box-shadow:0 0 0 3px #23579918}
.document-block-selected>label{color:#235799;font-weight:800}

.stack-composer{border:2px solid #b4cbe8;border-radius:12px;padding:18px;background:#fff;margin:18px 0}.stack-composer input:not([type=checkbox]),.stack-composer select,.stack-composer textarea{width:100%;box-sizing:border-box;padding:10px;border:1px solid #bbcadd;border-radius:6px;font:inherit}.stack-composer textarea{min-height:140px}.stack-composer label{display:block;margin:12px 0}.stack-composer button{margin:4px}.stack-composer button[aria-pressed=true]{background:#20599b;color:white}.stack-grid{max-height:420px;overflow:auto}.stack-grid textarea{min-width:110px;min-height:65px;width:100%;font:inherit}.stack-grid td,.stack-grid th{padding:4px}.stack-photo{max-width:100%;max-height:300px;object-fit:contain}.stack-insert{display:block;width:100%;border:1px dashed #9fb8d5!important;background:white;color:#20599b}.stack-card-preview{max-height:250px;overflow:auto;white-space:pre-wrap;margin-top:10px}.stack-card-preview img{max-height:180px}.document-source{max-height:900px;overflow:auto}@media(min-width:1100px){.document-workspace{grid-template-columns:minmax(260px,.65fr) minmax(0,1.35fr)}}

/* Shared document typography: editor preview, block cards and published text. */
.document-content{line-height:1.9;overflow-wrap:anywhere}
.document-content>h3{margin:52px 0 24px;padding:18px 0 14px;border-top:0;border-bottom:2px solid #1c5196;color:#1c5196;font-size:22px;font-weight:800;line-height:1.65;scroll-margin-top:28px}
.document-content>h3:first-child{margin-top:8px}
.document-content>h4{margin:32px 0 14px;padding:0;color:#263b53;font-size:18px;font-weight:700;line-height:1.7;scroll-margin-top:24px}
.document-content>h3+h4{margin-top:22px}
.document-content>p{margin:0 0 18px;font-size:16px;line-height:1.95;white-space:pre-wrap;word-break:keep-all}
.document-content>p+p{margin-top:8px}
.document-content>.document-table-wrap{margin:22px 0 28px;line-height:1.75}
.document-content>figure{margin:26px 0!important}
.document-content figcaption{margin-top:10px;text-align:center;font-size:14px;color:#526176;line-height:1.7}
.stack-card-preview{white-space:normal;max-height:none;overflow:visible}
.document-block[data-block-type="heading"]{margin-top:36px}
.document-block[data-block-type="article"]{margin-top:22px}
.stack-card-preview>h4:first-child{margin-top:12px}
@media(max-width:600px){.document-content>h3{margin-top:40px;font-size:20px}.document-content>h4{margin-top:26px}.document-content>p{line-height:1.9}}

.document-content>.document-paragraph{box-sizing:border-box;white-space:pre-wrap}
.document-number-row{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:.4em;margin-bottom:.55em;white-space:normal}
.document-number-row>span{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}
.document-number-row>.document-number-label{text-align:left;white-space:nowrap}
.document-number-intro{display:block;white-space:pre-wrap}
.stack-paragraph-sample{padding:16px;border:1px solid #ccd7e4;border-radius:8px;background:#f8fafc;margin:14px 0}

/* Keep agreement body text consistent across document page layouts. */
.info-page [data-managed-document] p,.info-page [data-managed-document].document-content>p{color:#222}
