/* SalishCurrent v12 — cohesive, compact banner + weather.
   Both share the same 13% neutral surface over the fixed original panorama.
   Cards retain their own backgrounds; content below weather keeps section borders. */

/* 1: Join the hero / dedicated title and forecast into one open surface. */
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"],
body .pagehead[data-page="Events & Calendar"],
body .sc-homepage>.weatherdesk,
body .pagebody>.weatherdesk,
body .pagebody>.sc-alert-weather .weatherdesk{
 background:rgba(249,252,247,.13)!important;
 background-image:none!important;
 background-color:rgba(249,252,247,.13)!important;
 border-top:0!important;
 border-bottom:0!important;
 box-shadow:none!important;
 backdrop-filter:none!important;
 -webkit-backdrop-filter:none!important;
}

/* 2: Reduce upper whitespace without losing the title or daily conditions. */
body .sc-homepage>.townmast{
 min-height:0!important;
 height:auto!important;
}
body .sc-homepage .townmast-inner{
 min-height:0!important;
 height:auto!important;
 padding-top:11px!important;
 padding-bottom:9px!important;
}
body .sc-homepage .townmast h1{
 font-size:clamp(30px,3.35vw,43px)!important;
 line-height:1.07!important;
 margin-top:5px!important;
 margin-bottom:5px!important;
}
body .sc-homepage .townmast-copy p{
 line-height:1.42!important;
 margin-top:0!important;
 margin-bottom:0!important;
}
body .sc-homepage .townmast-info-cards{
 align-self:center!important;
}
body .sc-homepage .townmast-info-cards>.townmast-quake,
body .sc-homepage .townmast-info-cards>.sc-sky-mini{
 min-height:74px!important;
}
body .sc-homepage .townmast-quake{
 padding:8px 10px!important;
}

/* Dedicated pages: the reader sees title, context and useful weather sooner. */
body .pagehead,
body .pagehead[data-page]{
 min-height:0!important;
 height:auto!important;
 padding-top:9px!important;
 padding-bottom:10px!important;
}
body .pagehead h1{
 font-size:clamp(30px,3.25vw,44px)!important;
 line-height:1.12!important;
 margin-top:5px!important;
 margin-bottom:5px!important;
}
body .pagehead .return-city{
 margin-bottom:3px!important;
}
body .pagehead p{
 line-height:1.4!important;
 margin-bottom:0!important;
}

/* 3: Compact weather layout, retain every reading and forecast control. */
body .weatherdesk.compact-weather{
 padding-top:3px!important;
 padding-bottom:5px!important;
 min-height:0!important;
 height:auto!important;
 margin-top:0!important;
 margin-bottom:0!important;
}
body .weatherdesk.compact-weather .weather-toprow{
 margin-top:0!important;
 margin-bottom:3px!important;
 min-height:0!important;
}
body .weatherdesk.compact-weather .weather-expand{
 padding:6px 9px!important;
 min-height:29px!important;
 line-height:1.2!important;
}
body .weatherdesk.compact-weather .weather-tools{
 gap:7px!important;
}
body .weatherdesk.compact-weather .weather-nowtonight{
 gap:7px!important;
 align-items:stretch!important;
}
body .weatherdesk.compact-weather .weather-timecard,
body .weatherdesk.compact-weather .weather-always{
 min-height:79px!important;
 height:auto!important;
 padding:5px 9px!important;
}
body .weatherdesk.compact-weather .weather-timecard{
 gap:8px!important;
}
body .weatherdesk.compact-weather .weather-timeicon{
 width:36px!important;
 height:36px!important;
 min-width:36px!important;
 flex-basis:36px!important;
}
body .weatherdesk.compact-weather .weather-timecopy>strong{
 font-size:26px!important;
 line-height:1.05!important;
}
body .weatherdesk.compact-weather .weather-always{
 gap:8px!important;
}
body .weatherdesk.compact-weather .weather-always>div{
 gap:3px!important;
}
body .weatherdesk.compact-weather .weather-always>div>span{
 font-size:10px!important;
}
body .weatherdesk.compact-weather .weather-always>div>strong{
 font-size:14px!important;
 line-height:1.18!important;
}
body .weatherdesk.compact-weather .weather-always>div>small{
 font-size:9px!important;
 line-height:1.3!important;
}
body .weatherdesk.compact-weather .weather-always .wx-source strong{
 overflow-wrap:anywhere;
}

/* Section separators resume AFTER the weather block, not between hero/weather. */
body .sc-homepage>.island-wire,
body .pagebody>.section:not(.weatherdesk):not(.sc-alert-weather),
body .pagebody>.sc-forestry-distinct,
body .pagebody>.sc-event-hub{
 border-top:1px solid rgba(121,163,138,.28)!important;
}

/* 4: Small-screen layout: preserve all weather metrics, keep 2-row structure. */
@media(max-width:850px){
 body .sc-homepage .townmast-inner{
  padding-top:10px!important;
  padding-bottom:7px!important;
 }
 body .sc-homepage .townmast h1{
  font-size:clamp(29px,7.4vw,35px)!important;
  line-height:1.08!important;
 }
 body .sc-homepage .townmast-info-cards{
  margin-top:7px!important;
 }
 body .sc-homepage .townmast-info-cards>.townmast-quake,
 body .sc-homepage .townmast-info-cards>.sc-sky-mini{
  min-height:76px!important;
 }
 body .pagehead,
 body .pagehead[data-page]{
  padding-top:8px!important;
  padding-bottom:9px!important;
 }
 body .pagehead h1{
  font-size:clamp(27px,7.2vw,34px)!important;
 }
 body .weatherdesk.compact-weather{
  padding-top:2px!important;
  padding-bottom:3px!important;
 }
 body .weatherdesk.compact-weather .weather-toprow{
  margin-bottom:2px!important;
 }
 body .weatherdesk.compact-weather .weather-timecard,
 body .weatherdesk.compact-weather .weather-always{
  min-height:65px!important;
  padding:4px 6px!important;
 }
 body .weatherdesk.compact-weather .weather-timecopy>strong{
  font-size:24px!important;
 }
 body .weatherdesk.compact-weather .weather-timeicon{
  width:33px!important;
  height:33px!important;
  min-width:33px!important;
  flex-basis:33px!important;
 }
 body .weatherdesk.compact-weather .weather-nowtonight{
  gap:5px!important;
 }
 body .weatherdesk.compact-weather .weather-always>div>small{
  font-size:8.5px!important;
 }
}

/* v5 still enforced a 240px desktop minimum on this exact nested selector.
   Override it expressly instead of hiding space with clipping or negative margins. */
body main.sc-homepage section.townmast > .shell.townmast-inner{
 min-height:0!important;
 height:auto!important;
 padding-top:11px!important;
 padding-bottom:10px!important;
}
@media(max-width:850px){
 body main.sc-homepage section.townmast > .shell.townmast-inner{
  min-height:0!important;
  padding-top:10px!important;
  padding-bottom:7px!important;
 }
}

/* Keep the Island weather locality readable beside the forecast control
   on narrow phones without forcing a larger weather header. */
@media(max-width:500px){
 body .weatherdesk.compact-weather .weather-locality strong{
  font-size:12px!important;
  letter-spacing:-.025em!important;
  line-height:1.16!important;
 }
}
