/* SalishCurrent v13 — consistent background, centered forecast & branded card watermark.
   Original backdrop and licensed card photography remain unchanged. */

/* Consistent neutral atmosphere: same opacity on EVERY full-width content
   surface; thin green rules are intentionally retained for section clarity. */
body .sc-homepage>.townmast,
body .sc-homepage>.weatherdesk,
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 .pagehead,
body .pagehead[data-page],
body .pagebody>.weatherdesk,
body .pagebody>section:not(.weatherdesk),
body .pagebody>.section:not(.weatherdesk),
body .pagebody>.section:nth-of-type(3n+3):not(.weatherdesk),
body .pagebody>.section:nth-of-type(2n+3):not(.weatherdesk),
body .pagebody>.section.island-directory,
body .pagebody>.section.island-outdoors.sc-forestry-distinct,
body .pagebody>.sc-event-hub,
body .pagebody>.sc-market-guide,
body .pagebody>.sc-water-detail,
body .pagebody>.sc-travel-hub,
body .pagebody>.sc-forestry-distinct,
body .footer{
 background:rgba(249,252,247,.13)!important;
 background-image:none!important;
 background-color:rgba(249,252,247,.13)!important;
 backdrop-filter:none!important;
 -webkit-backdrop-filter:none!important;
 filter:none!important;
}
body .sc-homepage>.island-wire,
body .sc-homepage>.sc-discover-directory,
body .pagebody>.section:not(.weatherdesk):not(.sc-alert-weather),
body .pagebody>.sc-event-hub,
body .pagebody>.sc-forestry-distinct{
 border-top:1px solid rgba(121,163,138,.33)!important;
}
body .sc-homepage>.townmast,
body .pagehead,
body .pagebody>.weatherdesk,
body .sc-homepage>.weatherdesk{
 border-top:0!important;
 border-bottom:0!important;
 box-shadow:none!important;
}
/* Keep the real original backdrop immovable, unchanged and clear. */
body::before{
 background-image:linear-gradient(135deg,rgba(251,252,249,.013),rgba(250,252,249,.025)),url('/sc-island-original-backdrop-reference.webp')!important;
 background-size:cover,cover!important;
 filter:none!important;
 opacity:1!important;
}

/* The weather cards span their allocated columns but place their contents at
   the actual visual centre instead of clustering against the left edge. */
body .weatherdesk.compact-weather .weather-nowtonight{
 grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.05fr)!important;
 gap:9px!important;
 align-items:stretch!important;
}
body .weatherdesk.compact-weather .weather-timecard{
 display:flex!important;
 align-items:center!important;
 justify-content:center!important;
 gap:15px!important;
 text-align:center!important;
 padding-inline:12px!important;
}
body .weatherdesk.compact-weather .weather-timecopy{
 width:auto!important;
 min-width:0!important;
 display:grid!important;
 grid-template-columns:minmax(65px,auto) minmax(110px,auto)!important;
 grid-template-rows:auto auto!important;
 justify-content:center!important;
 align-content:center!important;
 column-gap:14px!important;
 row-gap:3px!important;
 text-align:center!important;
}
body .weatherdesk.compact-weather .weather-timecopy>span{
 grid-column:1/-1!important;
 text-align:center!important;
}
body .weatherdesk.compact-weather .weather-timecopy>strong,
body .weatherdesk.compact-weather .weather-timecopy>small{
 text-align:center!important;
 align-self:center!important;
}
body .weatherdesk.compact-weather .weather-always{
 justify-items:stretch!important;
 text-align:center!important;
}
body .weatherdesk.compact-weather .weather-always>div{
 align-items:center!important;
 justify-content:center!important;
 text-align:center!important;
}
body .weatherdesk.compact-weather .weather-locality{
 align-items:baseline!important;
}
body .weatherdesk.compact-weather .weather-tools{
 margin-left:auto!important;
}

/* Replace the old circular corner ring with a real SalishCurrent logo.
   The SVG endpoint is already used in the main site header. */
body .sc-destination-card::after{
 content:""!important;
 position:absolute!important;
 right:-17px!important;
 bottom:-22px!important;
 width:153px!important;
 height:146px!important;
 border:0!important;
 border-radius:0!important;
 background-image:url('https://salishcurrent.live/api/brand-logo.svg')!important;
 background-position:center!important;
 background-repeat:no-repeat!important;
 background-size:contain!important;
 opacity:.14!important;
 filter:brightness(0) invert(1)!important;
 pointer-events:none!important;
 z-index:0!important;
 transform:rotate(-9deg)!important;
}
body .sc-destination-card>.sc-destination-icon,
body .sc-destination-card>.sc-destination-topline,
body .sc-destination-card>strong,
body .sc-destination-card>.sc-destination-summary,
body .sc-destination-card>.sc-destination-action{
 position:relative!important;
 z-index:1!important;
}
body .sc-destination-card{isolation:isolate!important}
body .sc-destination-card:hover::after{opacity:.20!important}

/* Small screens keep two compact temperatures, with readable centered
   condition descriptions; full-width observations remain on their own row. */
@media(max-width:850px){
 body .weatherdesk.compact-weather .weather-nowtonight{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:6px!important;
 }
 body .weatherdesk.compact-weather .weather-always{
  grid-column:1/-1!important;
 }
 body .weatherdesk.compact-weather .weather-timecard{
  gap:5px!important;
  padding-inline:4px!important;
 }
 body .weatherdesk.compact-weather .weather-timecopy{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:1px!important;
  width:auto!important;
  min-width:0!important;
  text-align:center!important;
 }
 body .weatherdesk.compact-weather .weather-timecopy>span,
 body .weatherdesk.compact-weather .weather-timecopy>strong,
 body .weatherdesk.compact-weather .weather-timecopy>small{
  width:auto!important;
  text-align:center!important;
 }
 body .sc-destination-card::after{
  width:100px!important;
  height:110px!important;
  right:-8px!important;
  bottom:-17px!important;
  opacity:.14!important;
 }
}
@media(prefers-reduced-motion:reduce){
 body .sc-destination-card:hover::after{opacity:.14!important}
}
