.content{position:relative}
.site-guide-launcher{position:absolute;right:30px;top:20px;z-index:4}
body> .site-guide-launcher,main:not(.content)> .site-guide-launcher{position:fixed;right:20px;top:16px}
.site-guide-launcher button{display:flex!important;align-items:center;gap:10px;min-height:46px;padding:8px 16px!important;border:1px solid #b5c4d8;border-radius:10px;background:#fff;color:#071b38;font:600 16px Arial;cursor:pointer;box-shadow:0 2px 7px #0002}
.site-guide-pdf{display:grid;place-items:center;width:27px;height:32px;border:1px solid #c43131;border-radius:3px;color:#b32525;font:bold 10px Arial;background:#fff}
#rainova-guide-dialog{width:min(1000px,94vw);max-width:94vw;max-height:90vh;padding:0;border:0;border-radius:12px;background:#dce1e7;color:#111;overflow:auto;box-shadow:0 15px 60px #0007}
#rainova-guide-dialog::backdrop{background:#07121dc4}
.guide-viewer-toolbar{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#14243b;color:#fff;padding:14px 20px;font:16px Arial}
.guide-viewer-toolbar>div{display:flex;gap:10px}
.guide-viewer-toolbar button{padding:9px 14px;border:1px solid #94aac9;border-radius:6px;background:#fff;color:#101d30;cursor:pointer;font:14px Arial}
.guide-paper{margin:26px auto;width:calc(100% - 64px);max-width:780px;box-sizing:border-box;background:white;padding:48px 52px;box-shadow:0 2px 10px #0002;font:16px/1.65 Arial,sans-serif;color:#171c22;overflow-wrap:anywhere}
.guide-paper h1{font-size:28px;line-height:1.25;margin:12px 0 28px}.guide-paper h2{font-size:21px;margin:28px 0 12px;border-bottom:1px solid #d5dce5;padding-bottom:6px}.guide-paper h3{font-size:18px;margin:0 0 8px}.guide-paper p{margin:8px 0 16px}.guide-paper li{margin:10px 0}.guide-paper .guide-kicker{font-size:12px;letter-spacing:1px;color:#415571}.guide-step{margin:22px 0;border-left:3px solid #b9cce4;padding:4px 0 4px 18px;break-inside:avoid}.guide-check{font-size:14px;color:#44546a}.guide-footer{font-size:13px;border-top:1px solid #c9d3df;padding-top:18px}.guide-print{margin:0;background:white}.guide-print .guide-paper{margin:0 auto;box-shadow:none;width:100%;max-width:none}
#rainova-guide-dialog .guide-paper h1{font-size:28px!important;line-height:1.25;text-transform:none!important}
#rainova-guide-dialog .guide-paper h2{font-size:21px!important;text-transform:none!important}
#rainova-guide-dialog .guide-paper h3{font-size:18px!important;text-transform:none!important}
.guide-paper dt{margin-top:12px}.guide-paper dd{margin:2px 0 12px 20px}
.guide-paper{background:#edf1f5}
.guide-colour-key{margin:18px 0 24px}.guide-colour-key p{margin:8px 0!important}
.guide-paper .guide-admin{background:#fff0ef;border:2px solid #ad201c;color:#8d1612;padding:18px 20px;margin:18px 0;border-radius:8px;break-inside:avoid}
.guide-paper .guide-admin h2,.guide-paper .guide-admin h3,.guide-paper .guide-admin p,.guide-paper .guide-admin li,.guide-paper .guide-admin strong{color:#8d1612!important}
.guide-paper .guide-rainova{background:#fff;border:2px solid #627389;color:#172331;padding:18px 20px;margin:18px 0;border-radius:8px;break-inside:avoid}
.guide-paper .guide-about{background:#dfe8f2;border-left:4px solid #345c85;padding:12px 18px;margin:20px 0}
.guide-owner{display:block;font:700 12px Arial;letter-spacing:.6px;margin-bottom:8px}
.guide-topic-picker{display:block;margin:20px auto 0;width:calc(100% - 64px);max-width:780px;font:600 15px Arial;color:#172331}.guide-topic-picker select{display:block;width:100%;margin-top:8px;padding:10px;background:#fff;color:#172331;border:1px solid #63768e;border-radius:6px}
.form-guide-button{margin:8px 0 8px 12px!important;background:#fff!important;color:#8d1612!important;border:1px solid #ad201c!important;padding:8px 12px!important;border-radius:6px!important;font-size:14px!important}
@media print{.guide-topic-picker,.form-guide-button{display:none!important}}
.guide-paper .guide-step h3{margin-top:0}.guide-paper .guide-admin h2,.guide-paper .guide-rainova h2{margin-top:0}
.guide-paper p,.guide-paper li,.guide-paper dd{font-weight:400!important}.guide-paper strong,.guide-paper h1,.guide-paper h2,.guide-paper h3{font-weight:700!important}
@media print{.guide-admin,.guide-rainova,.guide-about{print-color-adjust:exact;-webkit-print-color-adjust:exact}.guide-paper .guide-admin{border:2px solid #8d1612}.guide-owner{font-weight:700}}
@media(max-width:650px){.site-guide-launcher{right:16px;top:8px}.site-guide-launcher button{min-height:36px;font-size:13px;padding:4px 9px!important}.site-guide-pdf{width:21px;height:25px;font-size:8px}.guide-paper{width:calc(100% - 24px);padding:24px 20px;margin:12px auto}.guide-viewer-toolbar{padding:12px;align-items:flex-start}.guide-viewer-toolbar>div{flex-wrap:wrap}#rainova-guide-dialog .guide-paper h1{font-size:23px!important}}
@media print{.site-guide-launcher,.guide-viewer-toolbar{display:none!important}.guide-paper{margin:0;box-shadow:none;width:100%;max-width:none;padding:0;font-size:11pt}.guide-paper h1,.guide-paper h2,.guide-paper h3{break-after:avoid}.guide-print{margin:18mm}@page{size:A4;margin:18mm}}
/* One page margin, not an additional body margin. Compact print spacing keeps
   steps readable and prevents a final instruction line becoming a spare page. */
@media print{
 .guide-print{margin:0}
 .guide-paper{font:10.5pt/1.4 Arial,sans-serif}
 .guide-paper h1{font-size:20pt;line-height:1.2;margin:8px 0 16px}
 .guide-paper h2{font-size:14pt;margin:16px 0 8px}
 .guide-paper h3{font-size:11.5pt;margin:0 0 6px}
 .guide-paper p{margin:6px 0 10px}
 .guide-paper .guide-admin,.guide-paper .guide-rainova{padding:10px 12px;margin:10px 0}
 .guide-paper .guide-about{padding:8px 12px;margin:10px 0;break-inside:avoid}
 .guide-footer{font-size:9pt;break-before:avoid;break-inside:avoid}
 @page{size:A4;margin:18mm;@bottom-right{content:"Page " counter(page);font:9pt Arial;color:#415571}}
}
/* One page guide beneath the agency brand, outside forms and dialogs. */
.workspace .topbar>.agency-header-brand{display:flex;flex-direction:column;align-items:flex-end;gap:10px;margin-left:auto;padding:0;border:0;border-radius:0;background:transparent;color:#fff;flex:0 0 190px;max-width:100%}
.workspace .topbar .agency-header-brand>.agency-brand-logo{display:block;width:190px;max-width:100%;height:62px;object-fit:contain;margin:0;background:transparent;padding:0;border:0}
.agency-header-brand>.site-guide-launcher{position:static;align-self:flex-end;margin:0}
.workspace .topbar.rainova-owner-header>.agency-header-brand{grid-column:3;grid-row:1;justify-self:end;margin-left:0}
@media(max-width:1150px){.workspace .topbar.rainova-owner-header>.agency-header-brand{grid-column:1;grid-row:3}}
body>header .site-guide-launcher{position:static;align-self:center}
