/* ZAGO.GR v0.40 — PRESERVE original weather graphics; only redistribute layout. */
/* Restore the current metrics below the title, not concentrated beside city selectors. */
@media(min-width:800px){
  #weather{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(170px,clamp(175px,32%,235px));column-gap:14px;row-gap:7px;align-items:start;}
  #weather>.zago39-weather-head{display:contents!important;}
  #weather>.zago39-weather-head>h2{grid-column:1!important;grid-row:1!important;margin:3px 0 0!important;}
  #weather .zago39-selector-stack{grid-column:2!important;grid-row:1/span 2!important;margin:0!important;width:100%!important;max-width:100%!important;align-self:start!important;}
  #weather>.current{grid-column:1!important;grid-row:2!important;margin:2px 0 9px!important;align-self:center!important;min-width:0!important;}
  #weather>.weather-controls{grid-column:1/-1!important;grid-row:3!important;min-width:0!important;}
  #weather>.forecast{grid-column:1/-1!important;grid-row:4!important;min-width:0!important;}
  #weather>.msg,#weather>.weather-source{grid-column:1/-1!important;}
  #weather .current{grid-template-columns:minmax(100px,1.1fr) minmax(60px,auto) minmax(0,2.1fr)!important;gap:7px!important;align-items:center!important;}
  #weather .current>.metrics{grid-column:3!important;grid-row:1!important;min-width:0!important;}
  #weather .current>.extremes{grid-column:2!important;grid-row:1!important;min-width:0!important;}
}
/* At these widths, stack the compact metrics under current temp to avoid squeeze. */
@media(min-width:800px) and (max-width:1379px){
  #weather .current{grid-template-columns:minmax(0,1fr) auto!important;}
  #weather .current>.metrics{grid-column:1/-1!important;grid-row:2!important;}
  #weather .current>.extremes{grid-column:2!important;grid-row:1!important;}
}
/* On smaller viewports keep the original stacked mobile layout and all original icons. */
@media(max-width:799px){
  #weather{display:block!important;}
  #weather>.zago39-weather-head{display:flex!important;}
  #weather .zago39-selector-stack{margin-left:auto!important;}
  #weather>.current{margin:8px 0 12px!important;}
}
/* The existing working link, moved below the two existing city selectors. */
#weather .zago39-selector-stack .zago40-forecast-link{display:flex!important;align-items:center;justify-content:center;box-sizing:border-box;width:100%!important;max-width:100%!important;white-space:normal!important;text-align:center!important;padding:8px 7px!important;margin:6px 0 0!important;line-height:1.35!important;color:#ffcf80!important;font-weight:700!important;min-height:34px;}
body.light #weather .zago39-selector-stack .zago40-forecast-link{color:#7c4b15!important;border-color:#bc8230!important;background:#e9eef4!important;}
/* Greek date and calculated Moon; a single discreet vertical separator. */
.calendar .zago28-date-row{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;min-width:0!important;max-width:100%!important;}
.calendar #zago28FullDate{flex:1 1 auto!important;width:auto!important;min-width:0!important;overflow-wrap:break-word!important;}
.calendar .zago40-moon-separator{flex:0 0 1px;width:1px;height:25px;background:#8097ad;opacity:.58;}
.calendar .zago40-moon-area{display:flex;position:relative;align-items:center;flex:0 0 auto;}
.calendar .zago40-moon{display:grid;place-items:center;width:32px;height:32px;padding:1px;background:transparent;border:0;border-radius:50%;cursor:pointer;}
.calendar .zago40-moon svg{display:block;width:30px;height:30px;}
.calendar .zago40-moon:focus-visible{outline:2px solid #ffc178;outline-offset:2px;}
.calendar .zago40-moon-tip{position:absolute;z-index:50;right:0;top:calc(100% + 5px);min-width:145px;max-width:225px;background:#183247;color:#fff;border:1px solid #69859e;padding:7px 9px;border-radius:5px;box-shadow:0 7px 15px #0007;font-size:11px;line-height:1.45;text-align:center;white-space:normal;}
.calendar .zago40-moon-tip[hidden]{display:none!important;}
body.light .calendar .zago40-moon-tip{background:#f4f8fc;color:#203650;border-color:#7e9bb5;}
@media(max-width:420px){.calendar .zago28-date-row{gap:6px!important}.calendar .zago40-moon{width:28px;height:28px}.calendar .zago40-moon svg{width:27px;height:27px}.calendar .zago40-moon-separator{height:21px}}
