/* v182: isolated shared-header information. No changes to page business layouts. */
@media screen {
  .app-shell .topbar.topbar-modern.hm-header-v182{container:hm-topbar / inline-size;gap:16px!important;isolation:isolate}
  .app-shell .hm-header-v182 .topbar-title{flex:0 1 auto;max-width:210px;min-width:60px}
  .app-shell .hm-header-v182 .topbar-title>b,.app-shell .hm-header-v182 .topbar-meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .app-shell .hm-header-v182 .topbar-actions{flex:0 0 auto;margin-inline-start:0!important}
  .hm-header-info-v182{flex:1 1 auto;display:flex;align-items:center;justify-content:center;gap:22px;min-width:0;max-width:980px;margin-inline:auto;color:#34445f;font-family:inherit}
  .hm-header-info-v182 [hidden],.hm182-dialog [hidden],.hm182-settings [hidden]{display:none!important}
  .hm-header-info-v182 .hm182-open{appearance:none;background:transparent!important;border:0!important;box-shadow:none!important;padding:4px 3px;min-height:44px;color:inherit;font:inherit;cursor:pointer;border-radius:8px;text-align:right;line-height:1.5}
  .hm-header-info-v182 .hm182-open:hover{background:#f4f7fb!important}
  .hm-header-info-v182 .hm182-open:focus-visible,.hm182-dialog button:focus-visible,.hm182-dialog a:focus-visible{outline:2px solid #315bd6;outline-offset:3px}
  .hm182-icon{display:inline-block;width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
  .hm-header-info-v182 .hm182-date{display:flex;align-items:center;gap:9px;flex:0 0 auto;position:relative}
  .hm182-calendar-icon{color:#71829c}
  .hm182-date-copy{display:flex;flex-direction:column;gap:1px;white-space:nowrap}
  .hm182-date-full{font-size:12px!important;font-weight:750;line-height:1.65}
  .hm182-hijri{font-size:11px!important;color:#68768c;line-height:1.6}
  .hm182-date-short,.hm182-today-label,.hm182-occasion-indicator{display:none}
  .hm-header-info-v182 .hm182-occasion{display:flex;align-items:center;gap:8px;min-width:0;flex:0 1 310px;border-inline-start:1px solid #e5eaf1!important;border-radius:0!important;padding-inline-start:18px}
  .hm182-occasion-dot,.hm182-occasion-indicator{width:6px;height:6px;flex:0 0 6px;background:#b28530;border-radius:50%}
  .hm182-occasion-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
  .hm182-eyebrow{font-size:11px!important;color:#6b7890;font-weight:500;line-height:1.6}
  .hm182-occasion .hm182-eyebrow{color:#89651e}
  .hm182-occasion-title{font-size:12px!important;font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .hm182-more{font-size:11px!important;color:#8a6929;background:#fbf5e8;border-radius:5px;white-space:nowrap;padding:1px 4px}
  .hm-header-info-v182 .hm182-weather{display:flex;align-items:center;gap:14px;flex:0 0 auto;border-inline-start:1px solid #e5eaf1!important;border-radius:0!important;padding-inline-start:18px}
  .hm182-city{display:flex;align-items:center;gap:5px;position:relative;white-space:nowrap;font-size:12px!important}
  .hm182-city .hm182-icon{width:18px;height:18px;flex-basis:18px;color:#77879f}
  .hm182-city[data-icon="sun"] .hm182-icon,.hm182-city[data-icon="partly"] .hm182-icon{color:#a67b24}
  .hm182-temperature{font-size:13px!important;font-weight:750;font-variant-numeric:tabular-nums;min-width:26px;text-align:left}
  .hm182-stale-mark{color:#986f21;font-size:15px;position:absolute;inset-inline-end:-5px;top:-4px}
  /* Dialog enters the top layer: no clipping by sticky/overflow page containers. */
  .hm182-dialog{position:fixed;inset:auto;top:var(--hm182-panel-top,76px);left:var(--hm182-panel-left,20px);margin:0;width:460px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 90px);padding:0;overflow:auto;overscroll-behavior:contain;border:1px solid #dfe6ef;border-radius:16px;background:#fff;color:#2b3c54;box-shadow:0 16px 50px #24345424;font-family:inherit;font-size:13px;line-height:1.8;text-align:right}
  .hm182-dialog:not([open]){display:none!important}
  .hm182-dialog[open]{display:block}
  .hm182-dialog::backdrop{background:rgba(19,32,52,.10)}
  .hm182-dialog-heading{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 12px;border-bottom:1px solid #edf0f5;background:#fff;position:sticky;top:0;z-index:1}
  .hm182-dialog h2{font-size:17px!important;font-weight:800;margin:0;line-height:1.6}
  .hm182-close{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #e3e9f1;border-radius:9px;background:white;color:#68788d;cursor:pointer}
  .hm182-panel-dates{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:16px 20px;background:#f8fafc}
  .hm182-panel-dates>div{display:grid;gap:4px}
  .hm182-panel-dates strong{font-size:13px!important;font-weight:750}
  .hm182-note{font-size:12px!important;font-weight:400;color:#69788d;line-height:1.9;margin:8px 0;overflow-wrap:anywhere}
  .hm182-panel-dates>.hm182-note{grid-column:1/-1;margin:0;font-size:11px!important}
  .hm182-panel-section{padding:14px 20px;border-top:1px solid #edf0f5}
  .hm182-panel-section h3{font-size:14px!important;font-weight:750;margin:0 0 10px}
  .hm182-section-meta{font-size:11px!important;font-weight:400;color:#6f7e93;display:inline-block;margin-inline-start:8px}
  .hm182-occasion-list{margin:0;padding-inline-start:19px;color:#4f5e72;font-size:13px}
  .hm182-occasion-list:empty{display:none}
  .hm182-occasion-list li{padding:2px 0}
  .hm182-occasion-list li::marker{color:#b18a3e}
  .hm182-weather-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .hm182-weather-card{border:1px solid #e5eaf2;border-radius:11px;padding:11px 12px;min-width:0;background:#fff}
  .hm182-weather-card-top{display:flex;align-items:center;gap:7px;font-weight:700}
  .hm182-weather-card-top .hm182-icon{color:#7b8ca4}
  .hm182-weather-card bdi{font-size:25px!important;display:block;font-weight:750;line-height:1.7;direction:ltr;text-align:right}
  .hm182-weather-card p{font-size:12px!important;line-height:1.8;margin:0;color:#627189}
  .hm182-weather-card small{font-size:10px!important;line-height:1.8;display:block;color:#718096}
  .hm182-weather-card .hm182-stale-label{display:inline-block;background:#fcf2df;color:#8b6320;padding:0 5px;border-radius:4px;margin-top:3px;font-size:11px}
  .hm182-sources{font-size:10px;color:#7c899a;margin-top:10px;line-height:1.8}
  .hm182-sources a,.hm182-settings-link,.hm182-dialog-footer a{color:#355eac;text-decoration:underline;text-underline-offset:3px}
  .hm182-sources a{display:inline}
  .hm182-settings-link{font-size:12px}
  .hm182-dialog-footer{display:flex;justify-content:space-between;gap:10px;padding:12px 20px;border-top:1px solid #edf0f5;font-size:10px;color:#748197;background:#fafbfd}
  .hm182-dialog-footer a{white-space:nowrap}
  .hm182-weather-form{display:grid;gap:9px;max-width:760px}
  .hm182-check{display:flex!important;align-items:flex-start;gap:9px;font-size:13px;line-height:1.8;cursor:pointer}
  .hm182-check input[type=checkbox]{width:18px!important;height:18px!important;min-width:18px;flex:0 0 18px;margin:3px 0 0;accent-color:#4264b7}
  .hm182-settings-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:4px}
  .hm182-diagnostic{padding:12px 16px;border:1px solid #dce5ef;background:#f8fafc;border-radius:10px;margin-top:14px;white-space:pre-line;font-size:12px;line-height:1.9;overflow-wrap:anywhere}
  /* Container widths account for sidebar width and long page headings. */
  @container hm-topbar (max-width:950px){
    .hm-header-info-v182{gap:14px}
    .hm-header-info-v182 .hm182-occasion{flex-basis:210px;padding-inline-start:12px}
    .hm-header-info-v182 .hm182-weather{gap:10px;padding-inline-start:12px}
  }
  @container hm-topbar (max-width:820px){
    .hm-header-info-v182 .hm182-occasion{display:none}
    .hm182-occasion-indicator:not([hidden]){display:block;position:absolute;inset-inline-start:1px;top:4px}
  }
  @container hm-topbar (max-width:660px){
    .hm-header-info-v182 .hm182-weather{display:none}
  }
  @container hm-topbar (max-width:490px){
    .hm-header-info-v182{flex:0 0 auto;margin-inline-start:auto;margin-inline-end:0}
    .hm182-date-full,.hm182-hijri{display:none}
    .hm182-date-short{display:block;font-size:12px!important;font-weight:750}
    .hm182-today-label{display:block;font-size:10px!important;color:#697c98}
    .hm-header-info-v182 .hm182-date{gap:5px}
    .hm182-calendar-icon{width:17px;height:17px;flex-basis:17px}
  }
  @media(max-width:900px){
    .app-shell .topbar.topbar-modern.hm-header-v182{gap:10px!important}
    .app-shell .hm-header-v182 .topbar-title{max-width:190px}
    .app-shell .hm-header-v182 .menu-button{margin:0!important;flex:0 0 36px}
  }
  @media(max-width:520px){
    .app-shell .topbar.topbar-modern.hm-header-v182{gap:7px!important;padding-inline:10px!important}
    .app-shell .hm-header-v182 .topbar-title{flex:1 1 auto;min-width:0;max-width:140px}
    .app-shell .hm-header-v182 .topbar-actions{gap:6px!important}
    .app-shell .hm-header-v182 .topbar-actions .icon-button,.app-shell .hm-header-v182 .small-avatar{width:34px!important;height:36px!important;min-width:34px!important}
    .hm182-dialog{left:12px!important;top:70px!important;width:calc(100vw - 24px);max-height:calc(100dvh - 84px);border-radius:13px}
    .hm182-dialog-heading,.hm182-panel-section,.hm182-panel-dates{padding-inline:15px}
    .hm182-panel-dates{grid-template-columns:1fr;gap:10px}
    .hm182-dialog-footer{flex-wrap:wrap;padding-inline:15px}
  }
  @media(max-width:359px){
    .app-shell .topbar.topbar-modern.hm-header-v182{gap:5px!important;padding-inline:8px!important}
    .hm182-calendar-icon{display:none}
    .app-shell .hm-header-v182 .topbar-title>b{font-size:12px!important}
  }
  @media(prefers-reduced-motion:reduce){.hm-header-info-v182 *,.hm182-dialog *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
}
@media print{.hm-header-info-v182,.hm182-dialog{display:none!important}}
