[hidden]{display:none!important}.version-wrap{max-width:1240px}.version-card{padding:26px;margin-bottom:24px}.version-card h2{font-size:1.25rem;line-height:1.4;margin:0 0 12px}.version-card h3{font-size:1rem}.version-card p{line-height:1.6}.muted{color:#627089}.version-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:24px;align-items:start}.field{display:flex;flex-direction:column;gap:8px;margin:20px 0;font-size:1rem;font-weight:600}.field input,.field textarea,.field select,.preview-controls input,.section-review select{font:inherit;color:#172442;background:white;border:1px solid #cbd6e7;border-radius:7px;padding:10px 12px;width:100%;min-height:44px}.field input[type=file]{font-size:.875rem}.field-row{display:grid;grid-template-columns:1fr 1.7fr;gap:20px}.field-row .field{margin-top:0}.explain-list{padding-left:24px;line-height:1.7;margin:20px 0}.explain-list li{margin:14px 0}.version-notice{padding:18px;background:#edf2ff;border-radius:9px;font-size:.925rem;line-height:1.6}.version-notice p{margin:8px 0 0}.version-current{padding:24px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 24px;border-left:4px solid #3155d9}.version-current h2{font-size:1.25rem;margin:6px 0}.version-current p{margin:0;color:#627089;line-height:1.6}.field .muted{font-size:.875rem;font-weight:400}.error{color:#a12935;line-height:1.6}.error:empty,.message:empty{display:none}.message{padding:14px 18px;background:#e7f3ec;color:#1e5840;border:1px solid #bbdccc;border-radius:8px}.version-status{display:inline-flex;padding:5px 10px;border-radius:5px;background:#edf2ff;color:#3155d9;font-size:.875rem;font-weight:600}.history-row{padding:22px 0;border-top:1px solid #e0e6f0;display:flex;align-items:center;justify-content:space-between;gap:20px}.history-row h3{margin:0 0 8px;font-size:1.05rem;line-height:1.45}.history-row p{margin:5px 0;color:#627089;font-size:.925rem;max-width:650px;overflow-wrap:anywhere}.history-row .button-group{flex-shrink:0;flex-wrap:wrap;justify-content:flex-end}.section-heading{display:flex;align-items:start;justify-content:space-between;gap:20px}.review-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:24px}.preview-canvas{background:#e9edf5;padding:10px;overflow:auto;max-height:70vh;min-height:200px;text-align:center}.preview-canvas canvas{max-width:100%;height:auto;display:block;margin:auto;box-shadow:0 2px 8px #17244220}.preview-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0}.preview-controls input{width:74px;display:inline-block}.section-review{max-height:70vh;overflow:auto;border:1px solid #e0e6f0;border-radius:8px}.section-row{padding:13px 14px;border-bottom:1px solid #e0e6f0;display:grid;grid-template-columns:1fr 150px;gap:12px;align-items:center;font-size:.875rem}.section-row select{font-size:.875rem;padding:8px}.section-row button{background:transparent;color:#3155d9;text-align:left;font:inherit;line-height:1.5}.review-actions{display:flex;gap:24px;justify-content:space-between;align-items:center;margin-top:24px}.review-check{display:flex;gap:12px;align-items:flex-start;font-size:1rem;line-height:1.6;margin:20px 0}.review-check input{width:19px;height:19px;margin-top:4px;accent-color:#3155d9;flex-shrink:0}progress{width:100%;height:14px;accent-color:#3155d9;margin-top:24px}#publish-dialog{max-width:620px;height:auto}#publish-dialog .version-card{margin:0}.button:disabled{opacity:.5;cursor:not-allowed}.reader-wrap{max-width:1500px}.reader-grid{display:grid;grid-template-columns:290px minmax(0,1fr);gap:22px}.reader-aside{padding:18px;max-height:calc(100vh - 225px);overflow:auto}.reader-aside label{font-size:.875rem;display:block;margin-bottom:8px}.reader-aside input,.reader-aside select{width:100%;padding:11px 10px;margin-bottom:14px;border:1px solid #cbd6e7;border-radius:6px;font:inherit;background:white;color:#172442}.edition-entry{display:block;padding:13px 6px;border-bottom:1px solid #e0e6f0;font-size:.925rem;line-height:1.45;color:#172442}.edition-entry.active{background:#edf2ff;color:#3155d9}.edition-entry small{display:block;margin-top:4px;color:#627089}.edition-toolbar{padding:12px 16px;border-bottom:1px solid #e0e6f0;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.edition-toolbar input{width:70px;min-height:42px;font:inherit;text-align:center;border:1px solid #cbd6e7;border-radius:6px}.edition-paper-scroll{padding:20px;max-height:calc(100vh - 250px);overflow:auto;background:#e9edf5;min-height:400px}.edition-paper{position:relative;max-width:100%;margin:auto;background:white;box-shadow:0 2px 8px #17244220}.edition-paper canvas{display:block;width:100%}.edition-paper .page-link{position:absolute;border:0;background:transparent;cursor:pointer}.edition-paper .page-link:hover,.edition-paper .page-link:focus-visible{background:#3155d922;outline:2px solid #3155d9}.edition-bar{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:22px}.edition-bar h1{font-size:1.7rem;line-height:1.3;margin:8px 0}.edition-bar p{margin:0;color:#627089;line-height:1.6}.reader-status{padding:12px 16px;font-size:.875rem;color:#627089;line-height:1.5}.reader-mobile-index{display:none}.preview-banner{padding:12px 16px;background:#fff1d8;color:#684d10;border:1px solid #e2cd9e;border-radius:8px;margin-bottom:20px;line-height:1.6}.reader-footer-actions{display:flex;gap:22px;padding:22px 0;font-size:.9rem}.button-group{flex-wrap:wrap}
@media(max-width:1000px){.version-layout,.review-grid{grid-template-columns:1fr}.reader-grid{grid-template-columns:240px 1fr}.history-row{align-items:flex-start}.history-row .button-group{max-width:220px}.version-card{padding:22px}}
@media(max-width:760px){.version-card{padding:18px}.field-row,.reader-grid{grid-template-columns:1fr}.field-row{gap:0}.version-current,.history-row,.review-actions,.edition-bar{flex-direction:column;align-items:stretch}.history-row .button-group{max-width:none;justify-content:flex-start}.section-row{grid-template-columns:1fr}.section-heading{flex-wrap:wrap}.reader-aside{max-height:280px}.reader-mobile-index{display:block}.edition-paper-scroll{padding:7px;max-height:75vh;min-height:260px}.edition-toolbar{padding:10px}.edition-bar h1{font-size:1.5rem}.version-current .button{align-self:flex-start}.topbar nav{grid-template-columns:repeat(2,1fr)}.preview-controls{gap:7px}.reader-footer-actions{flex-wrap:wrap}}
/* Give the reference page the available screen, without changing admin or charting. */
.reading-guidelines{height:100dvh;display:flex;flex-direction:column}
.reading-guidelines>.topbar{height:64px;min-height:64px;flex-shrink:0}
.reading-guidelines .reader-wrap{width:100%;max-width:none;margin:0;padding:12px 20px 0;flex:1;min-height:0;display:flex;flex-direction:column}
.reading-guidelines .edition-bar{margin-bottom:10px;align-items:center;gap:12px;flex-shrink:0}
.reading-guidelines .edition-bar .eyebrow{display:none}
.reading-guidelines .edition-bar h1{font-size:1.25rem;margin:0 0 3px}
.reading-guidelines .edition-bar p{font-size:.85rem}
.reading-guidelines .reader-grid{flex:1;min-height:0;grid-template-columns:250px minmax(0,1fr);gap:12px}
.reading-guidelines .reader-aside{min-height:0;max-height:none;padding:14px}
.reading-guidelines .reader-panel{min-width:0;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.reading-guidelines .edition-toolbar{padding:8px 12px;gap:8px}
.reading-guidelines .edition-paper-scroll{min-height:0;max-height:none;padding:10px;overflow:auto}
.reading-guidelines .reader-status{margin:0;padding:7px 12px;font-size:.8rem;line-height:1.3}
.reading-guidelines .reader-footer-actions{margin:0;max-width:none;padding:8px 20px;flex-shrink:0;font-size:.8rem}
.edition-text{position:absolute;inset:0;overflow:clip;line-height:1;text-align:initial;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;pointer-events:none}
.edition-text :is(span,br){position:absolute;color:transparent;white-space:pre;transform-origin:0 0}
.edition-text mark{color:transparent;background:rgb(255 210 0 / 48%);padding:0;border-radius:2px}
.reader-expanded{overflow:hidden}
.reading-guidelines.reader-expanded .reader-panel{position:fixed;inset:8px;z-index:50;background:white;box-shadow:0 0 0 20px #e9edf5}
@media(max-width:1000px) and (min-width:761px){.reading-guidelines .reader-grid{grid-template-columns:210px minmax(0,1fr)}.reading-guidelines .reader-wrap{padding:10px 12px 0}}
@media(max-width:760px){
 .reading-guidelines{height:auto;min-height:100dvh;display:block}
 .reading-guidelines>.topbar{height:auto;min-height:114px}
 .reading-guidelines .reader-wrap{padding:12px;display:block}
 .reading-guidelines .edition-bar{align-items:stretch}
 .reading-guidelines .reader-grid{display:flex;flex-direction:column}
 .reading-guidelines .reader-aside{max-height:240px}
 .reading-guidelines .reader-panel{height:80dvh;min-height:360px;order:-1}
 .reading-guidelines.reader-expanded .reader-panel{height:auto;min-height:0;inset:0;border-radius:0}
 .reading-guidelines .edition-toolbar{padding:7px;gap:6px}
 .reading-guidelines .edition-toolbar .button-group{gap:5px}
 .reading-guidelines .edition-toolbar button{padding:8px 10px}
 .reading-guidelines .edition-paper-scroll{padding:6px}
}
.edition-text{--scale-round-x:1px;--scale-round-y:1px}
.edition-text[data-main-rotation="90"]{transform:rotate(90deg) translateY(-100%)}
.edition-text[data-main-rotation="180"]{transform:rotate(180deg) translate(-100%,-100%)}
.edition-text[data-main-rotation="270"]{transform:rotate(270deg) translateX(-100%)}
/* Let the complete, readable page determine document height in normal view. */
.reading-guidelines:not(.reader-expanded){height:auto;min-height:100dvh;display:block}
.reading-guidelines:not(.reader-expanded) .reader-wrap{display:block}
.reading-guidelines:not(.reader-expanded) .reader-grid{align-items:start}
.reading-guidelines:not(.reader-expanded) .reader-panel{display:block;height:auto;min-height:0;overflow:visible}
.reading-guidelines:not(.reader-expanded) .edition-paper-scroll{height:auto;max-height:none;overflow:visible}
.reading-guidelines:not(.reader-expanded) .edition-toolbar{position:sticky;top:0;z-index:5;background:white;border-radius:14px 14px 0 0}
.reading-guidelines:not(.reader-expanded) .reader-aside{position:sticky;top:12px;max-height:calc(100dvh - 24px)}
@media(max-width:760px){
 .reading-guidelines:not(.reader-expanded) .reader-grid{align-items:stretch}
 .reading-guidelines:not(.reader-expanded) .reader-aside{position:static;max-height:320px}
}
.edition-sheet{margin:0 0 24px;scroll-margin-top:120px}
.edition-sheet:last-child{margin-bottom:0}
.edition-page-label{margin:0 0 8px;color:#52627a;font-size:.8rem;line-height:1.4}
.offline-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;margin-bottom:12px;border:1px solid #d6dfed;border-radius:10px;background:#edf2ff}
.offline-controls p{font-size:.875rem;margin:4px 0 0;color:#52627a}
.offline-controls .button-group{flex-shrink:0}
@media(max-width:760px){.reading-guidelines .reader-panel{order:0}.offline-controls{flex-direction:column;align-items:stretch}.reading-guidelines:not(.reader-expanded) .reader-aside{max-height:none;overflow:visible}.reading-guidelines .reader-aside #edition-results{max-height:240px;overflow:auto}}
.edition-entry{--section-color:#52627a;--section-tint:#f1f4f8;border-left:4px solid var(--section-color);padding:12px 10px;margin:6px 0;border-radius:6px;background:var(--section-tint)}
.edition-entry.category-adult{--section-color:#2855b3;--section-tint:#edf3ff}
.edition-entry.category-pediatric{--section-color:#14704e;--section-tint:#e9f7ef}
.edition-entry.category-medications{--section-color:#7643a5;--section-tint:#f4edfc}
.edition-entry.category-procedures{--section-color:#a2510d;--section-tint:#fff3e6}
.edition-entry.category-policies{--section-color:#126b7b;--section-tint:#e7f6f8}
.edition-entry.category-checklists{--section-color:#a23564;--section-tint:#fff0f5}
.edition-entry small{color:var(--section-color);font-weight:600}
.edition-entry.active{color:#172442;outline:2px solid var(--section-color);outline-offset:-2px;background:var(--section-tint)}

.pdf-save-dialog{width:calc(100% - 32px);max-width:520px;height:auto;max-height:calc(100dvh - 40px);padding:24px;border:1px solid #d6dfed;border-radius:14px;color:#172442;background:white;overflow:auto;box-shadow:0 16px 64px #17244233}
.pdf-save-dialog::backdrop{background:#17244288}
.pdf-save-dialog h2{margin:0 0 12px;font-size:1.4rem}
.pdf-save-dialog p{line-height:1.6;overflow-wrap:anywhere}
.pdf-save-edition{color:#627089;font-size:.9rem}
.pdf-save-dialog progress{margin:0 0 20px}
.pdf-save-help{padding:14px;background:#edf2ff;border-radius:8px;font-size:.95rem}
.pdf-save-dialog .button-group{gap:10px}
.pdf-save-dialog .button,.pdf-save-dialog .button-secondary{min-height:48px}

@media(max-width:760px){.topbar nav{grid-template-columns:repeat(3,minmax(0,1fr));height:auto}.topbar nav a{height:auto;min-height:48px;text-align:center;justify-content:center}.reading-guidelines>.topbar{height:auto}}
