/* Hammelk v220: tiny three-slide date / Tehran / Mashhad rotator.
   Only the shared mobile topbar changes; desktop and the details dialog remain intact. */
@media screen and (max-width: 900px) {
  body.hm185-app .app-shell .hm-header-v182 #hmHeaderInfo.hm-header-info-v182 {
    flex: 0 0 112px!important;
    width: 112px!important;
    max-width: 112px!important;
    min-width: 0!important;
    height: 44px;
    position: relative;
    margin-inline: 0!important;
    justify-content: center;
    isolation: isolate;
  }
  body.hm185-app #hmHeaderInfo .hm182-date,
  body.hm185-app #hmHeaderInfo .hm182-weather {
    box-sizing: border-box;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 2px 3px!important;
    margin: 0!important;
    gap: 5px;
    align-items: center;
    justify-content: center;
    border: 0!important;
    border-radius: 8px!important;
    background: transparent!important;
    box-shadow: none!important;
  }
  /* The date is the usable initial fallback before JavaScript boots. */
  body.hm185-app #hmHeaderInfo .hm182-date { display: flex!important; }
  body.hm185-app #hmHeaderInfo .hm182-weather { display: none!important; }
  body.hm185-app #hmHeaderInfo .hm182-date-full,
  body.hm185-app #hmHeaderInfo .hm182-hijri { display: none!important; }
  body.hm185-app #hmHeaderInfo .hm182-date-short {
    display: block!important;
    font-size: 12px!important;
    font-weight: 750;
    white-space: nowrap;
  }
  body.hm185-app #hmHeaderInfo .hm182-today-label {
    display: block!important;
    font-size: 10px!important;
    color: #62748d;
  }
  body.hm185-app #hmHeaderInfo .hm182-calendar-icon {
    display: block!important;
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
  body.hm185-app #hmHeaderInfo .hm182-occasion {display: none!important;}
  body.hm185-app #hmHeaderInfo[data-mobile-slide="tehran"] .hm182-date,
  body.hm185-app #hmHeaderInfo[data-mobile-slide="mashhad"] .hm182-date {display: none!important;}
  body.hm185-app #hmHeaderInfo[data-mobile-slide="tehran"] .hm182-weather:not([hidden]),
  body.hm185-app #hmHeaderInfo[data-mobile-slide="mashhad"] .hm182-weather:not([hidden]) {display: flex!important;}
  body.hm185-app #hmHeaderInfo .hm182-weather[hidden] {display: none!important;}
  body.hm185-app #hmHeaderInfo .hm182-weather .hm182-city {display: none!important;}
  body.hm185-app #hmHeaderInfo[data-mobile-slide="tehran"] .hm182-city[data-weather-city="tehran"],
  body.hm185-app #hmHeaderInfo[data-mobile-slide="mashhad"] .hm182-city[data-weather-city="mashhad"] {
    display: grid!important;
    grid-template-columns: 18px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 5px;
    align-items: center;
    min-width: 0;
    line-height: 1.3;
  }
  body.hm185-app #hmHeaderInfo .hm182-city .hm182-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
  body.hm185-app #hmHeaderInfo .hm182-city > span:not(.hm182-stale-mark) {
    grid-column: 2;
    grid-row: 1;
    font-size: 11px!important;
    font-weight: 650;
  }
  body.hm185-app #hmHeaderInfo .hm182-city > .hm182-temperature {
    grid-column: 2;
    grid-row: 2;
    font-size: 13px!important;
    font-weight: 800;
    min-width: 0;
    line-height: 1.4;
    text-align: right;
  }
  body.hm185-app #hmHeaderInfo .hm182-city .hm182-stale-mark {inset-inline-end: -2px;top: -3px;}
  body.hm185-app #hmHeaderInfo .hm182-date:not([hidden]),
  body.hm185-app #hmHeaderInfo .hm182-weather:not([hidden]) .hm182-city {
    animation: hm220-header-enter .22s ease-out both;
  }
}
@media screen and (max-width: 359px) {
  body.hm185-app .app-shell .hm-header-v182 #hmHeaderInfo.hm-header-info-v182 {
    flex-basis: 102px!important;
    width: 102px!important;
    max-width: 102px!important;
  }
  body.hm185-app #hmHeaderInfo .hm182-calendar-icon {width: 16px;height: 16px;flex-basis: 16px;}
  body.hm185-app #hmHeaderInfo .hm182-date-short {font-size: 11px!important;}
}
@keyframes hm220-header-enter {
  from {opacity: .2;transform: translateY(3px);}
  to {opacity: 1;transform: translateY(0);}
}
@media (prefers-reduced-motion: reduce) {
  body.hm185-app #hmHeaderInfo .hm182-date,
  body.hm185-app #hmHeaderInfo .hm182-weather .hm182-city {animation: none!important;}
}
