/* Reading surfaces and full-resolution media; original colour identity is preserved. */
:root{--watad-navy:#06234b;--watad-orange:#e79016}
#profile>.poster-page{isolation:isolate}
#profile .compact-documents>svg{display:block;width:100%;height:auto}
.compact-documents .document-preview{cursor:zoom-in}
.compact-documents .document-preview:hover rect{stroke:var(--watad-orange);stroke-width:2}
.compact-documents .document-preview:hover text{fill:var(--watad-navy)}
.compact-documents .document-preview:focus-visible{outline:3px solid var(--watad-orange)}
.expandable-photo{cursor:zoom-in}
.expandable-photo:focus-visible{outline:3px solid var(--watad-orange);outline-offset:3px}
#profile img{image-rendering:auto}
#media-viewer{position:fixed;inset:0;margin:auto;width:min(96vw,1500px);height:94vh;max-width:none;max-height:96vh;border:1px solid #49607a;border-radius:12px;padding:52px 18px 18px;background:#071a30;color:white;box-shadow:0 25px 100px #0009}
#media-viewer::backdrop{background:#031020e8;backdrop-filter:blur(5px)}
#media-viewer>img{display:block;width:100%;height:calc(100% - 65px);object-fit:contain;background:white}
#media-viewer form{position:absolute;right:12px;top:8px}
#media-viewer button{border:0;border-radius:7px;background:#e79016;color:#06234b;font-size:28px;width:38px;height:36px;cursor:pointer}
#media-viewer p{margin:10px 0 4px;font-size:13px;max-width:85%}
#media-viewer>a{color:#ffb94e;font-size:13px;text-decoration:underline}
.reader-toolbar a.download{white-space:nowrap}
@media screen and (prefers-reduced-motion:no-preference){
 #profile .in-viewport .float-rig,#profile .in-viewport .v28-fleet-layout img{animation:watad-rig-float 6s ease-in-out infinite!important;transform-origin:50% 100%}
 #profile .poster-page:not(.in-viewport) .float-rig{animation-play-state:paused!important}
 #profile .expandable-photo{transition:filter .25s ease,box-shadow .25s ease}
 #profile .expandable-photo:hover{filter:brightness(1.035);box-shadow:0 6px 20px #06234b26}
 @keyframes watad-rig-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
}
@media(max-width:600px){#media-viewer{width:98vw;height:92dvh;padding:48px 8px 10px}#media-viewer p{font-size:11px}.reader-controls label{flex-shrink:0}}
@media print{#media-viewer{display:none!important}.compact-documents{break-inside:avoid}.expandable-photo{box-shadow:none!important}}


/* Project covers are explicit images in both browser and PDF output. */
#profile .restored-photo-cover{position:relative!important;isolation:isolate;background:#06234b!important;overflow:hidden!important}
#profile .restored-photo-cover>.restored-cover-photo{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;object-position:center!important;z-index:-2!important;opacity:1!important;filter:none!important}
#profile .restored-photo-cover>.restored-cover-shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(6,29,52,.98),rgba(6,29,52,.73) 43%,rgba(6,29,52,.08));pointer-events:none}
#profile .restored-photo-cover>.restored-cover-shade{width:100%!important;height:100%!important;max-height:none!important;min-height:100%!important;margin:0!important;padding:0!important}

/* Keep colour off project photographs; local panels support text only. */
#profile .restored-photo-cover>.restored-cover-shade{display:none!important}
#profile .restored-photo-cover>.restored-cover-photo{filter:none!important;opacity:1!important;mix-blend-mode:normal!important}
#profile .restored-photo-cover>h2,
#profile .restored-photo-cover>h3,
#profile .restored-photo-cover>h4,
#profile .restored-photo-cover>p,
#profile .restored-photo-cover>small{
 background:#06234b!important;width:fit-content!important;max-width:78%!important;
 padding:5px 9px!important;box-decoration-break:clone;-webkit-box-decoration-break:clone;
}
#profile .restored-photo-cover>.v63-legacy-head{background:#06234b!important;width:fit-content!important;max-width:75%;padding:10px 14px}
#profile .restored-photo-cover>.v63-legacy-top{background:#06234b!important;padding:5px 9px}

/* One consistent photographic treatment; no boxes behind typography. */
#profile .restored-photo-cover>.restored-cover-shade{
 display:block!important;width:100%!important;height:100%!important;inset:0!important;
 background:linear-gradient(90deg,rgba(6,35,75,.94) 0%,rgba(6,35,75,.88) 42%,rgba(6,35,75,.76) 72%,rgba(6,35,75,.68) 100%)!important;opacity:1!important;pointer-events:none!important;
}
#profile .restored-photo-cover>h2,
#profile .restored-photo-cover>h3,
#profile .restored-photo-cover>h4,
#profile .restored-photo-cover>p,
#profile .restored-photo-cover>small{
 background:transparent!important;padding:0!important;max-width:100%!important;
 color:#fff!important;text-shadow:0 1px 3px rgba(0,0,0,.45);
}
#profile .restored-photo-cover>.v63-legacy-head,
#profile .restored-photo-cover>.v63-legacy-top{
 background:transparent!important;padding:0!important;max-width:100%!important;
 color:#fff!important;text-shadow:0 1px 3px rgba(0,0,0,.45);
}

.reader-toolbar .reader-controls{flex-wrap:wrap;gap:6px}.reader-toolbar a.download{font-size:12px;padding:8px 10px}

@media(max-width:640px){.reader-toolbar{height:auto!important;min-height:92px!important;top:0!important;align-items:center!important;padding:6px 8px!important;box-sizing:border-box!important}.reader-toolbar .reader-controls{display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;gap:4px!important;max-width:calc(100vw - 60px)!important}.reader-toolbar a.download{font-size:10px!important;padding:6px 7px!important;flex-shrink:0}.reader-toolbar .reader-controls button{padding:5px!important}body{padding-top:100px!important}}
