/* SalishCurrent v9 — one original, persistent Island panorama on EVERY page.
   Unpublished preview. This stylesheet deliberately supersedes the older
   per-section scene photos without changing route-specific card photos. */

/* Render the ORIGINAL image just once, behind the page and fixed to the viewport.
   A fixed pseudo-element behaves more predictably in iOS Safari than background-attachment: fixed. */
html{background:#d8e5df!important}
body{background:transparent!important;background-image:none!important;min-height:100vh}
body::before{
 content:"";
 position:fixed;
 inset:0;
 z-index:0;
 pointer-events:none;
 background-image:linear-gradient(125deg,rgba(241,249,240,.08),rgba(237,246,238,.17)),url('/sc-island-original-backdrop-reference.webp');
 background-size:cover,cover;
 background-position:center center,center 53%;
 background-repeat:no-repeat;
 background-color:#bed4ce;
}
body>#root{position:relative;z-index:1;min-height:100vh;background:transparent!important}
/* Don't allow a second copy of the photo to move with the document. */
body .sc-homepage,
body .pagebody{
 background:transparent!important;
 background-image:none!important;
 background-color:transparent!important;
 background-attachment:scroll!important;
}
body .sc-homepage{isolation:auto!important}

/* All hero banners show the same underlying landscape, including Events.
   Left-hand translucent gradient keeps text legible without replacing the image. */
body .sc-homepage>.townmast,
body .pagehead,
body .pagehead[data-page],
body .pagehead[data-page="Fishing"],
body .pagehead[data-page="Whale Watching"],
body .pagehead[data-page="Tides"],
body .pagehead[data-page="Travel"]{
 background:linear-gradient(94deg,rgba(247,251,245,.85),rgba(244,251,244,.65) 46%,rgba(239,250,242,.27) 79%,rgba(239,250,242,.12))!important;
 background-image:linear-gradient(94deg,rgba(247,251,245,.85),rgba(244,251,244,.65) 46%,rgba(239,250,242,.27) 79%,rgba(239,250,242,.12))!important;
 background-color:transparent!important;
 background-attachment:scroll!important;
}
body .sc-homepage>.townmast::before,
body .sc-homepage>.townmast::after,
body .pagehead::before,
body .pagehead::after{background-image:none!important}
body .sc-homepage .townmast-art{display:none!important}

/* Each editorial section is a soft, transparent surface that floats above ONE
   fixed scene. Keep each section's cards and thumbnails fully opaque. */
body .sc-homepage>.island-wire,
body .sc-homepage>.sc-discover-directory,
body .sc-homepage>.sc-community-accordion,
body .sc-homepage>.sc-schools-hub,
body .sc-homepage>.sc-local-events,
body .pagebody>section:not(.weatherdesk),
body .pagebody>.section:not(.weatherdesk),
body .pagebody>.sc-event-hub,
body .pagebody>.sc-market-guide,
body .pagebody>.sc-travel-hub,
body .pagebody>.sc-water-detail,
body .pagebody>.island-directory,
body .pagebody>.sc-forestry-distinct{
 background:linear-gradient(130deg,rgba(250,252,247,.83),rgba(242,250,242,.73) 58%,rgba(250,253,246,.71))!important;
 background-image:linear-gradient(130deg,rgba(250,252,247,.83),rgba(242,250,242,.73) 58%,rgba(250,253,246,.71))!important;
 background-color:transparent!important;
 background-attachment:scroll!important;
 border-color:rgba(121,163,138,.32);
}
/* Slight variation in opacity provides rhythm without changing the image. */
body .sc-homepage>.sc-discover-directory,
body .pagebody>.section.island-directory,
body .pagebody>.sc-forestry-distinct{
 background:linear-gradient(115deg,rgba(231,246,232,.72),rgba(250,253,247,.65) 69%,rgba(236,247,239,.73))!important;
}
/* Keep weather visually distinct but allow a glimpse of the real background. */
body .sc-homepage>.weatherdesk,
body .pagebody>.weatherdesk{
 background:linear-gradient(110deg,rgba(217,237,226,.88),rgba(237,243,221,.84),rgba(247,237,208,.85))!important;
 background-image:linear-gradient(110deg,rgba(217,237,226,.88),rgba(237,243,221,.84),rgba(247,237,208,.85))!important;
}
body .pagebody>.shell.sc-dedicated-notes{background:transparent!important}

/* Keep this visitor invitation separate from the footer.
   More bottom breathing room, without turning it into another giant section. */
body .sc-homepage .shell.feedbackstrip{
 margin:24px auto 56px!important;
 padding:18px 21px!important;
 border:1px solid rgba(193,218,198,.9)!important;
 background:rgba(249,254,248,.86)!important;
 background-image:none!important;
 box-shadow:0 5px 20px rgba(29,79,57,.13)!important;
}
body .sc-homepage{padding-bottom:10px}
body .footer{position:relative;z-index:1}

/* Mobile: image stays fixed at viewport level; crop toward Island coast and
   avoid heavy painting effects over the full page. */
@media(max-width:800px){
 body::before{background-position:center center,58% center}
 body .sc-homepage>.townmast,
 body .pagehead,
 body .pagehead[data-page]{
  background:linear-gradient(90deg,rgba(249,252,247,.83),rgba(247,251,244,.56) 68%,rgba(245,251,246,.3))!important;
 }
 body .sc-homepage .shell.feedbackstrip{
  margin:19px auto 48px!important;
  padding:15px 16px!important;
 }
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto!important}
}

/* Final cascade corrections: these highly specific v8 selectors were still
   drawing independent scrolling photos instead of revealing the ONE fixed
   orca-and-trees image behind all content. */
body .pagebody>.section.island-directory,
body .pagebody>.section.island-outdoors.sc-forestry-distinct,
body .pagebody>.section.sc-market-guide,
body .pagebody>.section.sc-event-hub,
body .pagebody>.section.sc-community-directory,
body .pagebody>.section.sc-travel-hub{
 background-image:linear-gradient(125deg,rgba(243,251,242,.79),rgba(251,253,247,.70))!important;
 background:linear-gradient(125deg,rgba(243,251,242,.79),rgba(251,253,247,.70))!important;
 background-color:transparent!important;
}
body .pagebody>.sc-forestry-distinct .outdoor-access,
body .pagebody>.sc-forestry-distinct .outdoor-access-heading{background-image:none!important}

/* A legacy alternating editorial section still repeated the photograph as a
   separate scrolling layer. Preserve the transparent section, not a second image. */
body .pagebody>.section:nth-of-type(3n+3):not(.weatherdesk),
body .pagebody>.section:nth-of-type(2n+3):not(.weatherdesk){
 background:linear-gradient(125deg,rgba(246,252,247,.81),rgba(239,248,240,.71))!important;
 background-image:linear-gradient(125deg,rgba(246,252,247,.81),rgba(239,248,240,.71))!important;
 background-color:transparent!important;
}
