.forecast-block{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--sv-text,#f8fafc);
  --fc-card:var(--sv-card,#24384a);
  --fc-surface:var(--sv-surface,#1a2738);
  --fc-border:var(--sv-border,rgba(255,255,255,.12));
  --fc-muted:var(--sv-muted,#aebbd0);
  --fc-accent:var(--sv-accent,#42a5f5);
}

.forecast-tools{
  display:flex;
  gap:.7rem;
  align-items:center;
  margin-bottom:1rem;
}
.forecast-location-btn{
  display:flex;
  align-items:center;
  gap:.45rem;
  border:1px solid var(--fc-border);
  background:var(--fc-surface);
  color:var(--sv-text,#f8fafc);
  border-radius:999px;
  padding:.68rem 1rem;
  font:inherit;
  cursor:pointer;
}
.forecast-location-btn svg{
  width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8
}
.forecast-search-wrap{
  position:relative;
  flex:1;
  max-width:430px;
}
.forecast-search-wrap input{
  width:100%;
  box-sizing:border-box;
  border:1px solid var(--fc-border);
  border-radius:999px;
  padding:.72rem 1rem .72rem 2.35rem;
  font:inherit;
  background:var(--fc-surface);
  color:var(--sv-text,#f8fafc);
}
.forecast-search-icon{
  position:absolute;
  left:.85rem;
  top:.77rem;
  width:18px;height:18px;
  fill:none;stroke:currentColor;stroke-width:1.8;
}
.forecast-suggestions{
  position:absolute;
  z-index:50;
  left:0;right:0;
  top:calc(100% + .35rem);
  border:1px solid var(--fc-border);
  border-radius:12px;
  background:var(--fc-card);
  box-shadow:0 12px 35px rgba(0,0,0,.25);
  overflow:hidden;
}
.forecast-suggestions button{
  display:block;
  width:100%;
  padding:.78rem .95rem;
  border:0;
  border-bottom:1px solid var(--fc-border);
  background:transparent;
  color:inherit;
  text-align:left;
  font:inherit;
  cursor:pointer;
}
.forecast-suggestions button:last-child{border-bottom:0}
.forecast-suggestions button:hover,
.forecast-suggestions button:focus{background:var(--fc-surface)}
.forecast-status{margin:.4rem 0 .8rem;font-size:.92rem;color:var(--fc-muted)}

.forecast-head{
  display:flex;
  justify-content:space-between;
  gap:1rem;
  align-items:flex-start;
  margin-bottom:1rem;
}
.forecast-head h2{
  margin:0;
  font-size:clamp(1.35rem,3vw,1.9rem);
  font-weight:400;
}
.forecast-updated{
  font-size:.8rem;
  color:var(--fc-muted);
  white-space:nowrap;
}

.forecast-current--met{
  display:flex;
  align-items:center;
  gap:2rem;
  padding:2rem;
  background:var(--fc-card);
  border:1px solid var(--fc-border);
  border-radius:var(--sv-radius-sm,14px);
  box-shadow:var(--sv-shadow-soft,0 8px 24px rgba(0,0,0,.12));
}
.forecast-current-main{
  display:flex;
  align-items:center;
  gap:1.25rem;
  flex:0 0 auto;
  padding-right:2rem;
  border-right:1px solid var(--fc-border);
}
.forecast-current-icon{
  width:105px;
  height:105px;
  flex:0 0 auto;
}
.forecast-current-reading{min-width:120px}
.forecast-current-temp{
  font-size:3.1rem;
  font-weight:300;
  line-height:1;
}
.forecast-current-label{
  margin-top:.65rem;
  color:var(--fc-muted);
  font-size:1rem;
}
.forecast-current-time{
  margin-top:.25rem;
  color:var(--fc-muted);
  font-size:.78rem;
}
.forecast-current-facts{
  display:flex;
  flex-wrap:wrap;
  gap:1rem 2rem;
  align-items:center;
  flex:1;
}
.forecast-current-facts span{
  display:flex;
  gap:.35rem;
  align-items:baseline;
  font-size:.95rem;
  white-space:nowrap;
}
.forecast-current-facts b{font-weight:650}

.forecast-days-detail{margin-top:2rem}
.forecast-days-detail>h3{
  margin:0 0 1rem;
  font-size:1.65rem;
  font-weight:400;
}
.forecast-day-list{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.forecast-day-row{
  background:var(--fc-card);
  border:1px solid var(--fc-border);
  border-radius:5px;
  overflow:hidden;
  box-shadow:var(--sv-shadow-soft,0 5px 15px rgba(0,0,0,.08));
}
.forecast-day-summary{
  width:100%;
  display:grid;
  grid-template-columns:150px 70px 150px repeat(3,minmax(130px,1fr)) 36px;
  align-items:center;
  gap:1rem;
  padding:1rem 1.4rem;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  text-align:left;
  cursor:pointer;
}
.forecast-day-summary:hover,
.forecast-day-row.is-open .forecast-day-summary{
  background:var(--fc-surface);
}
.forecast-day-date{
  display:flex;
  flex-direction:column;
  gap:.15rem;
}
.forecast-day-date strong{
  font-size:1rem;
  text-transform:capitalize;
}
.forecast-day-date small{
  font-size:.86rem;
  color:var(--fc-muted);
}
.forecast-day-symbol{
  display:flex;
  align-items:center;
  justify-content:center;
  width:54px;
  height:54px;
}
.forecast-day-range strong{font-size:1.05rem}
.forecast-day-metric{
  display:flex;
  flex-direction:column;
  gap:.25rem;
}
.forecast-day-metric small{
  font-size:.68rem;
  letter-spacing:.06em;
  color:var(--fc-muted);
}
.forecast-day-metric strong{
  font-size:.92rem;
  font-weight:650;
}
.forecast-day-chevron{
  width:12px;
  height:12px;
  border-right:3px solid var(--fc-muted);
  border-bottom:3px solid var(--fc-muted);
  transform:rotate(45deg);
  transition:transform .2s ease;
  justify-self:center;
}
.forecast-day-row.is-open .forecast-day-chevron{
  transform:rotate(225deg);
}

.forecast-day-hours{
  background:var(--fc-surface);
  border-top:1px solid var(--fc-border);
}
.forecast-hours-table-wrap{
  width:100%;
  overflow-x:auto;
}
.forecast-hours-table{
  width:100%;
  border-collapse:collapse;
  min-width:720px;
}
.forecast-hours-table th,
.forecast-hours-table td{
  padding:.85rem .7rem;
  text-align:center;
  border-bottom:1px solid var(--fc-border);
}
.forecast-hours-table th{
  font-size:.72rem;
  font-weight:650;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--fc-muted);
}
.forecast-hours-table td{
  font-size:.86rem;
}
.forecast-hours-table th:first-child,
.forecast-hours-table td:first-child{
  text-align:left;
  padding-left:1rem;
}
.forecast-hours-table tbody tr:last-child td{border-bottom:0}
.forecast-hours-table tbody tr:hover{background:var(--fc-card)}
.forecast-hours-table td small{
  display:block;
  margin-top:.18rem;
  color:var(--fc-muted);
  font-size:.72rem;
}
.forecast-table-icon{
  display:inline-block;
  width:34px;
  height:34px;
}

.weather-svg{
  width:100%;
  height:100%;
  overflow:visible;
  fill:none;
  stroke:currentColor;
  stroke-linejoin:round;
}
.weather-svg.sun circle{fill:#f6b91a;stroke:#f6b91a}
.weather-svg.sun g,.weather-svg.partly .behind{stroke:#f6b91a}
.weather-svg.moon{fill:#9eb3d5;stroke:#9eb3d5}
.weather-svg .cloud{fill:#8292a7;stroke:#b8c4d3;stroke-width:2}
.weather-svg.partly .behind circle{fill:#f6b91a;stroke:#f6b91a}
.weather-svg.partly .behind path{stroke:#f6b91a;stroke-width:3;stroke-linecap:round}
.weather-svg.rain .precip{stroke:#42a5f5}
.forecast-error{
  padding:1rem;
  border:1px solid var(--fc-border);
  border-radius:12px;
  background:var(--fc-card);
}

@media(max-width:1100px){
  .forecast-day-summary{
    grid-template-columns:120px 60px 120px repeat(3,minmax(105px,1fr)) 30px;
    gap:.7rem;
    padding:.9rem 1rem;
  }
}

@media(max-width:820px){
  .forecast-tools{
    align-items:stretch;
    flex-wrap:wrap;
  }
  .forecast-location-btn{flex:0 0 auto}
  .forecast-search-wrap{min-width:190px;flex:1}
  .forecast-head{
    flex-direction:column;
    gap:.25rem;
  }
  .forecast-updated{white-space:normal}

  .forecast-current--met{
    align-items:flex-start;
    gap:1rem;
    padding:1.15rem;
  }
  .forecast-current-main{
    flex-direction:column;
    gap:.55rem;
    padding-right:1rem;
    min-width:105px;
  }
  .forecast-current-icon{width:72px;height:72px}
  .forecast-current-reading{text-align:center;min-width:0}
  .forecast-current-temp{font-size:2.35rem}
  .forecast-current-label{font-size:.88rem}
  .forecast-current-time{font-size:.7rem}
  .forecast-current-facts{
    flex-direction:column;
    align-items:flex-start;
    gap:.55rem;
  }
  .forecast-current-facts span{
    font-size:.84rem;
    white-space:normal;
  }

  .forecast-days-detail>h3{font-size:1.35rem}
  .forecast-day-summary{
    display:flex;
    flex-wrap:wrap;
    gap:.5rem .7rem;
    padding:.8rem;
  }
  .forecast-day-date{min-width:72px}
  .forecast-day-symbol{width:42px;height:42px}
  .forecast-day-range{min-width:92px}
  .forecast-day-metric{
    flex-direction:row;
    gap:.3rem;
    align-items:center;
  }
  .forecast-day-metric small{display:none}
  .forecast-day-metric strong{
    font-size:.8rem;
    white-space:nowrap;
  }
  .forecast-day-chevron{
    margin-left:auto;
  }
}

@media(max-width:520px){
  .forecast-current--met{padding:.9rem}
  .forecast-current-main{min-width:92px}
  .forecast-current-icon{width:60px;height:60px}
  .forecast-current-temp{font-size:2rem}
  .forecast-current-facts span{font-size:.78rem}
  .forecast-day-summary{gap:.4rem .55rem}
  .forecast-day-date strong{font-size:.86rem}
  .forecast-day-date small{font-size:.74rem}
  .forecast-day-range strong{font-size:.88rem}
}

.forecast-rain-notice{
  margin:1rem 0 0;
  display:flex;
  align-items:center;
  gap:.65rem;
  padding:.9rem 1rem;
  border-left:3px solid #42a5f5;
  border-radius:8px;
  background:rgba(66,165,245,.12);
  color:var(--sv-text,#f8fafc);
}
.forecast-rain-drop{
  width:20px;height:20px;display:inline-flex;flex:0 0 auto;
}
.forecast-rain-drop svg{
  width:100%;height:100%;fill:#42a5f5;
}

.forecast-meteogram-card{
  margin-top:1.2rem;
  padding:1rem 1rem .65rem;
  background:var(--fc-card);
  border:1px solid var(--fc-border);
  border-radius:var(--sv-radius-sm,14px);
  box-shadow:var(--sv-shadow-soft,0 8px 24px rgba(0,0,0,.12));
}
.forecast-chart-tabs{
  display:flex;
  gap:1.2rem;
  padding:0 .3rem .65rem;
  margin-bottom:.35rem;
  border-bottom:1px solid var(--fc-border);
  color:var(--fc-muted);
}
.forecast-chart-tabs span{
  padding:.45rem .6rem;
  font-weight:650;
}
.forecast-chart-tabs .active{
  color:var(--sv-text,#f8fafc);
  border-bottom:3px solid var(--fc-accent);
}
.forecast-meteogram{
  width:100%;
  min-height:390px;
}
.forecast-wind-heading{
  margin:.8rem .3rem .2rem;
  font-size:.85rem;
  font-weight:650;
  color:var(--fc-muted);
  text-transform:uppercase;
  letter-spacing:.05em;
}
.forecast-wind-chart{
  width:100%;
  min-height:220px;
}
.forecast-chart-weather-icon{
  width:38px;
  height:38px;
}
.forecast-chart-weather-icon-overlay{
  position:absolute;
  z-index:12;
  width:40px;
  height:40px;
  pointer-events:none;
}
.forecast-chart-weather-icon-overlay .weather-svg{
  width:40px;
  height:40px;
}
.forecast-chart-weather-icon-overlay .weather-svg .cloud{
  fill:transparent;
  stroke:#f8fafc;
  stroke-width:3;
}
.forecast-chart-weather-icon-overlay .weather-svg.sun circle{
  fill:#f6b91a;
  stroke:#f6b91a;
}
.forecast-chart-weather-icon-overlay .weather-svg.sun g,
.forecast-chart-weather-icon-overlay .weather-svg.partly .behind{
  stroke:#f6b91a;
}
.forecast-chart-weather-icon-overlay .weather-svg.moon{
  fill:#9eb3d5;
  stroke:#9eb3d5;
}
.forecast-chart-weather-icon-overlay .weather-svg.rain .precip{
  stroke:#42a5f5;
  stroke-width:3;
}

.forecast-sun-info{
  display:flex;
  align-items:center;
  gap:1.2rem;
  flex-wrap:wrap;
  padding:.9rem 1rem;
  border-bottom:1px solid var(--fc-border);
  background:var(--fc-card);
  font-size:.9rem;
}
.forecast-sun-info>span{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
}
.forecast-sun-mark{
  width:22px;
  height:22px;
  border-radius:50%;
  position:relative;
  display:inline-block;
  flex:0 0 auto;
}
.forecast-sun-mark::before{
  content:"";
  position:absolute;
  left:2px;right:2px;top:9px;
  height:2px;
  background:currentColor;
}
.forecast-sun-mark::after{
  content:"";
  position:absolute;
  width:8px;height:8px;
  border:2px solid currentColor;
  border-bottom:0;
  border-radius:8px 8px 0 0;
  left:5px;
  top:2px;
}
.forecast-sunrise-mark{color:#f59e0b}
.forecast-sunset-mark{color:#ef4444}
.forecast-sunset-mark::after{
  transform:rotate(180deg);
  top:10px;
}

@media(max-width:820px){
  .forecast-meteogram-card{padding:.7rem .35rem .4rem}
  .forecast-meteogram{min-height:330px}
  .forecast-wind-chart{min-height:190px}
  .forecast-sun-info{gap:.7rem;font-size:.8rem}
}