/* BERGEN / TIME FOR TIME — an editorial forecast strip from MET Norway (Yr).
   Original icon drawings, no third-party weather widget. */
.bergen-weather{
  position:relative;
  z-index:4;
  background:#F6D76B;
  color:#14171D;
  border-top:2px solid #14171D;
  border-bottom:2px solid #14171D;
  box-shadow:0 5px 0 #14171D;
  overflow:hidden;
}
.bergen-weather-header{
  min-height:50px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding-block:6px 5px;
}
.bergen-weather-heading{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  column-gap:clamp(8px,1vw,15px);
  row-gap:5px;
}
.bergen-weather-heading h2{
  font:900 clamp(1.35rem,2.3vw,2.15rem)/.95 var(--sans);
  letter-spacing:-.095em;
  margin:0;
  color:#14171D;
}
.bergen-weather-heading h2 span{color:#023BE6;}

.bergen-weather-note{
  align-self:center;
  color:#023BE6;
  font:italic 600 clamp(.72rem,.95vw,.9rem)/1.15 Georgia,'Times New Roman',serif;
  white-space:nowrap;
  transform:rotate(-2deg);
}
.bergen-weather-toolbar{display:flex;align-items:center;gap:clamp(10px,1.5vw,20px);flex-shrink:0;}
.bergen-weather-status{
  font:750 .56rem/1.35 var(--sans);
  letter-spacing:.085em;
  max-width:130px;
  text-align:right;
  text-transform:uppercase;
}
.bergen-weather-viewport{
  width:100%;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
  scrollbar-color:#023BE6 transparent;
  touch-action:pan-x pan-y;
  background:#FAFAF7;
  border-top:2px solid #14171D;
  border-bottom:2px solid #14171D;
  outline-offset:-4px;
}
.bergen-weather-viewport:focus-visible{outline:3px solid #023BE6;}
.bergen-weather-track{display:flex;width:max-content;min-width:100%;align-items:stretch;}
.bergen-weather-group{display:flex;flex:none;width:max-content;}
.bergen-weather-hour{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  gap:4px;
  flex:0 0 clamp(128px,10.5vw,160px);
  min-width:128px;
  height:132px;
  padding:11px 12px 9px;
  border-right:2px solid #14171D;
  background:#FAFAF7;
  color:#14171D;
  transition:background .2s,color .2s;
}
.bergen-weather-hour.is-current{background:#023BE6;color:#FAFAF7;}
.bergen-weather-hour:hover{background:#E4EAFF;color:#14171D;}
.bergen-weather-hour.is-current:hover{background:#023BE6;color:#FAFAF7;}
.bergen-weather-hour-top{display:flex;justify-content:space-between;gap:8px;width:100%;align-items:baseline;}
.bergen-weather-day{font-size:.52rem;font-weight:850;letter-spacing:.1em;text-transform:uppercase;white-space:nowrap;}
.bergen-weather-time{font-size:.66rem;font-weight:900;letter-spacing:-.015em;}
.bergen-weather-symbol{
  display:grid;
  place-items:center;
  width:37px;
  height:38px;
  margin:0;
}
.bergen-weather-symbol svg{
  width:42px;
  height:42px;
  display:block;
  overflow:visible;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.bergen-weather-symbol svg .weather-outline{stroke:currentColor;stroke-width:2.6;fill:none;}
.bergen-weather-symbol svg .weather-cloud{stroke:currentColor;stroke-width:2.4;fill:#E4EAFF;}
.bergen-weather-symbol svg .weather-sun{stroke:currentColor;stroke-width:2.5;fill:#F6D76B;}
.bergen-weather-symbol svg .weather-bolt{stroke:currentColor;stroke-width:2;fill:#F6D76B;}
.bergen-weather-hour.is-current .weather-cloud{fill:#FAFAF7;}
.bergen-weather-temp{
  font:900 clamp(1.35rem,1.85vw,1.85rem)/1 var(--sans);
  letter-spacing:-.075em;
  white-space:nowrap;
}
.bergen-weather-bottom{
  width:100%;
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:baseline;
  font-size:.56rem;
  font-weight:750;
}
.bergen-weather-rain{white-space:nowrap;}
.bergen-weather-description{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  min-width:0;
  max-width:100px;
  text-align:right;
  opacity:.8;
}
.bergen-weather-loading,.bergen-weather-error{
  display:flex;
  align-items:center;
  min-height:158px;
  padding:28px max(24px,calc((100vw - 1240px)/2));
  color:#14171D;
  background:#FAFAF7;
  font:800 clamp(.9rem,1.1vw,1.15rem)/1.5 var(--sans);
  letter-spacing:.04em;
}
.bergen-weather-error a{color:#023BE6;text-underline-offset:5px;}
.bergen-weather-footer{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:22px;
  padding-block:8px 10px;
  font-size:.52rem;
  line-height:1.6;
  letter-spacing:.065em;
  font-weight:850;
}
.bergen-weather-footer a{color:inherit;text-underline-offset:3px;}
.bergen-weather-footer a:hover{color:#023BE6;}
@media(max-width:900px){
  .bergen-weather-header{align-items:center;flex-direction:row;flex-wrap:wrap;gap:9px;padding-block:7px;}
  .bergen-weather-toolbar{width:auto;justify-content:flex-end;margin-left:auto;}
  .bergen-weather-status{text-align:left;max-width:none;}
}
@media(max-width:700px){
  .bergen-weather-note{font-size:.75rem;}
  .bergen-weather-header{gap:10px;}
  .bergen-weather-heading{gap:7px 10px;}
  .bergen-weather-heading h2{font-size:clamp(1.35rem,5.5vw,1.75rem);}
  .bergen-weather-hour{flex-basis:120px;min-width:120px;height:123px;padding:10px 11px 8px;}
  .bergen-weather-symbol{width:34px;height:35px;}
  .bergen-weather-symbol svg{width:38px;height:38px;}
  .bergen-weather-footer{align-items:flex-start;flex-direction:column;gap:4px;font-size:.51rem;}
}
@media(prefers-reduced-motion:reduce){
  .bergen-weather-hour{transition:none;}
}
