/* V10.6 — light theme contrast refinements only. Preserve V10.5 dark scheme. */
/* A genuinely light, legible pair of diagrams for the broadcast and asset case studies. */
html:not(.dark) #projects .case-visual svg > rect {
  fill:#e6f3fa !important;stroke:#b3d6e7 !important;
}
html:not(.dark) #projects .case-visual svg > g[fill="#142e48"] rect,
html:not(.dark) #projects .case-visual svg > g[fill="#183953"] rect{
  fill:#ffffff !important;stroke:#2183a6 !important;
}
html:not(.dark) #projects .case-visual svg > g[fill="#eefaff"] text,
html:not(.dark) #projects .case-visual svg > g[fill="#f0fcff"] text{
  fill:#143c57 !important;
}
html:not(.dark) #projects .case-visual svg text[fill="#bde8f0"],
html:not(.dark) #projects .case-visual svg text[fill="#9ed7e8"]{
  fill:#3b6981 !important;
}
html:not(.dark) #projects .case-visual svg g[stroke="#66e9de"]{
  stroke:#058e9c !important;
}
html:not(.dark) #projects .case-visual svg g[fill="#66e9de"]{
  fill:#058e9c !important;
}
html:not(.dark) #projects .case-visual svg path[stroke="#27647e"]{
  stroke:#8dbbd0 !important;
}
/* Contact: retain natural photo colour on the left, fade into clean cards on right. */
@media(min-width:768px){
 html:not(.dark) #contact::before{
   opacity:.96 !important;
   background-image:
     linear-gradient(90deg,rgba(249,253,255,.015) 0%,rgba(249,253,255,.01) 45%,rgba(249,253,255,.28) 70%,#fff 100%),
     var(--one-photo) !important;
   -webkit-mask-image:linear-gradient(90deg,#000 0%,#000 54%,rgba(0,0,0,.52) 77%,transparent 100%) !important;
   mask-image:linear-gradient(90deg,#000 0%,#000 54%,rgba(0,0,0,.52) 77%,transparent 100%) !important;
 }
}
@media(max-width:767px){
 html:not(.dark) #contact::before{
   opacity:.78 !important;
   background-image:linear-gradient(180deg,rgba(250,253,255,.02) 0%,rgba(250,253,255,.02) 45%,rgba(250,253,255,.5) 74%,#fff 100%),var(--one-photo) !important;
   -webkit-mask-image:linear-gradient(180deg,#000 0%,#000 56%,transparent 100%) !important;
   mask-image:linear-gradient(180deg,#000 0%,#000 56%,transparent 100%) !important;
 }
}
/* The original dark-mode neon-shadow treatments become heavy black halos on white. */
html:not(.dark) #overview h1,
html:not(.dark) #overview #hero-subtitle,
html:not(.dark) #overview #hero-summary,
html:not(.dark) #overview .hero-copy{
  text-shadow:none !important;
}
/* Maintain consistent readable section introductions and prevent oversized heading gaps. */
#projects .project-heading-copy h2{margin-bottom:10px !important}
#projects .project-heading-copy{display:flex;flex-direction:column;gap:10px}
#projects .project-heading-copy p{margin-top:0 !important}
/* Smooth keyboard/link focus, with distinct contrast in light mode. */
html:not(.dark) a:focus-visible,
html:not(.dark) button:focus-visible,
html:not(.dark) summary:focus-visible{outline-color:#067ba7 !important}
@media print{
 html:not(.dark) #contact::before{display:none !important}
 html:not(.dark) #projects .case-visual svg > rect{fill:#edf5f9 !important}
}
