/*
Theme Name: D.UA Weather
Description: Publisher child theme for weather.d.ua. D.UA network navigation and all weather presentation live here; forecasts/search stay in the D.UA Weather plugin.
Template: publisher
Version: 0.6.1
Text Domain: dua-weather-theme
*/
body.dw-shell {
  --dw-font: Roboto,Arial,sans-serif; --dw-accent: #197bad; --dw-width: 1360px; --dw-gutter: 24px;
  margin: 0; border-top: 3px solid var(--dw-accent); background: #fafafa; color: #2d2d2d;
  font: 16px/1.6 var(--dw-font); -webkit-font-smoothing: antialiased;
}
.dw-shell *, .dw-shell *::before, .dw-shell *::after { box-sizing: border-box; }
.dw-shell :is(.dw-shell-header,.dw-shell-footer) :is(a,strong,span,p,li,h2,h3,button) { font-family: var(--dw-font) !important; }
.dw-shell a { text-underline-offset: 3px; }
.dw-shell :is(a,button,input):focus-visible { outline: 3px solid #1b77af; outline-offset: 3px; }
.dw-shell .dw-shell-container { max-width: var(--dw-width); width: 100%; padding: 0 var(--dw-gutter); margin: 0 auto; }
.dw-shell .dw-shell-header { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid #e8e8e8; }
.dw-shell .dw-topbar.topbar { height: auto; overflow: visible; }
.dw-shell .dw-topbar { border-bottom: 1px solid #efefef; }
.dw-shell .dw-topbar-inner { display: flex; align-items: center; gap: 16px; min-height: 35px; }
.dw-shell .dw-top-date { display: inline-flex; align-items: center; min-height: 25px; padding: 1px 10px; margin: 4px 0; white-space: nowrap; background: var(--dw-accent); color: #fff; }
.dw-shell .dw-network-nav { min-width: 0; flex: 1; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.dw-shell .dw-network-nav::-webkit-scrollbar { display: none; }
.dw-shell .dw-network-menu { display: flex; align-items: center; gap: 20px; list-style: none; padding: 0; margin: 0; width: max-content; }
.dw-shell .dw-network-menu li { list-style: none; margin: 0; padding: 0; }
.dw-shell .dw-network-menu a { display: inline-flex; align-items: center; min-height: 34px; border-bottom: 2px solid transparent; white-space: nowrap; font-size: 14px; font-weight: 500; color: #707070; text-decoration: none; }
.dw-shell .dw-network-menu a:is(:hover,[aria-current=true]) { color: var(--dw-accent); border-bottom-color: var(--dw-accent); }
.dw-shell .dw-shell-header-inner { display: grid; grid-template-columns: auto auto minmax(0,1fr); grid-template-areas: 'brand navigation search'; align-items: center; gap: 24px; min-height: 60px; }
.dw-shell .dw-brand { display: inline-flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; text-decoration: none; color: #242424; line-height: 1; padding: 7px 0; }
.dw-shell .dw-brand-name { font-size: 39px; font-weight: 800; letter-spacing: -.06em; white-space: nowrap; }
.dw-shell .dw-brand-name>span { color: #2199d4; }
.dw-shell .dw-brand-section { font-size: 12px; font-weight: 800; letter-spacing: .09em; color: var(--dw-accent); margin-top: 2px; }
.dw-shell .dw-brand-custom img { max-width: 170px; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.dw-shell .dw-shell-header :is(.dw-brand,.dw-brand-custom) { grid-area: brand; }
.dw-shell .dw-shell-header .dw-brand { padding: 3px 0; }
.dw-shell .dw-shell-header .dw-brand-name { font-size: 32px; }
.dw-shell .dw-shell-header .dw-brand-section { font-size: 10px; }
.dw-shell .dw-shell-header .dw-brand-custom :is(a,picture) { display: block; line-height: 1; }
.dw-shell .dw-shell-header .dw-brand-custom img { display: block; width: 130px; height: 56px; max-width: 100%; max-height: 56px; object-fit: contain; }
.dw-shell .dw-header-nav { grid-area: navigation; display: block; margin-left: clamp(48px,7.2vw,92px); }
.dw-shell .dw-primary-menu { display: flex; gap: 18px; align-items: stretch; margin: 0; padding: 0; list-style: none; }
.dw-shell .dw-primary-menu li { list-style: none; margin: 0; padding: 0; }
.dw-shell .dw-primary-menu a { display: inline-flex; align-items: center; min-height: 60px; border-bottom: 3px solid transparent; color: #3e3e3e; text-decoration: none; white-space: nowrap; }
.dw-shell .dw-primary-menu a:is(:hover,[aria-current=location]) { border-bottom-color: var(--dw-accent); color: var(--dw-accent); }
.dw-shell :is(.dw-menu-toggle,.dw-search-toggle) { display: none; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 0 12px; min-height: 44px; border: 1px solid #e4e4e4; border-radius: 8px; background: #fff; color: #343434; font-size: 16px; font-weight: 500; line-height: 1; text-transform: none !important; box-shadow: none; }
.dw-shell :is(.dw-menu-toggle,.dw-search-toggle) svg { width: 20px; height: 20px; }
.dw-shell .dw-menu-toggle { grid-area: menu-toggle; }
.dw-shell .dw-search-toggle { grid-area: search-toggle; width: 44px; padding: 0; }
.dw-shell .dw-header-search-slot { grid-area: search; min-width: 0; width: 100%; max-width: 640px; margin: 0; justify-self: end; }
.dw-shell .dw-header-search-fallback { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border: 1px solid #d3dfe7; border-radius: 8px; color: #717171; font-size: 14px; text-decoration: none; }
.dw-shell .dw-header-search-fallback svg { flex: 0 0 20px; width: 20px; height: 20px; }
.dw-shell .dw-header-search-slot .dw-city-form { grid-template-columns: minmax(0,1fr) 74px 44px; gap: 8px; }
.dw-shell .dw-header-search-slot .dw-search-wrap { position: static; }
.dw-shell .dw-header-search-slot input.dw-city-input { height: 42px; min-height: 42px; padding: 0 28px 0 38px; font-size: 16px; }
.dw-shell .dw-header-search-slot .dw-search-icon { left: 11px; top: 11px; width: 20px; height: 20px; }
.dw-shell .dw-header-search-slot :is(.dw-find,.dw-geo) { min-height: 42px; height: 42px; padding: 0 10px; font-size: 14px; gap: 0; }
.dw-shell .dw-header-search-slot .dw-find>span { display: none; }
.dw-shell .dw-header-search-slot .dw-geo { padding: 0; background: #fff; }
.dw-shell .dw-header-search-slot .dw-geo[hidden] { display: none; }
.dw-shell .dw-header-search-slot .dw-search-results { max-height: min(360px,55vh); }
.dw-shell .dw-header-search-slot :is(.dw-search-hint,.dw-geo span) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.dw-shell .dw-search-in-header .dw-toolbar { display: none; }
.dw-shell .dw-page { padding: 0; }
.dw-shell .dw-page>.content-wrap { width: 100%; max-width: none; padding: 0; margin: 0; background: transparent; }
.dw-shell .dw-page>.content-wrap>.container { max-width: var(--dw-width); width: 100%; padding: 28px var(--dw-gutter) 0; margin: 0 auto; float: none; background: #fff; }
.dw-shell .dw-page>.content-wrap>.container::before,.dw-shell .dw-page>.content-wrap>.container::after { display: none; }
.dw-shell .dua-weather { font-family: var(--dw-font); }
.dw-shell :is(.dua-weather,.dw-search-surface) button { text-transform: none !important; }
.dw-shell .dua-weather .dw-geo { white-space: nowrap; }
.dw-shell .dw-shell-footer { border-top: 1px solid #e4e9ed; background: #fff; color: #53616d; }
.dw-shell .dw-footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 70px; padding-top: 42px; padding-bottom: 36px; }
.dw-shell .dw-footer-column { min-width: 0; }
.dw-shell .dw-shell-footer .dw-brand { margin-bottom: 18px; }
.dw-shell .dw-shell-footer .dw-brand-name { color: #27323c; }
.dw-shell .dw-shell-footer .dw-brand-section { color: var(--dw-accent); }
.dw-shell .dw-footer-column>p,.dw-shell .dw-footer-widget { margin: 0; max-width: 410px; font-size: 14px; line-height: 1.8; color: #53616d; }
.dw-shell .dw-footer-column>p+p { margin-top: 12px; }
.dw-shell .dw-footer-title { display: flex; align-items: center; gap: 15px; margin: 4px 0 19px; color: #27323c; font-size: 18px; line-height: 1.4; font-weight: 600; }
.dw-shell .dw-footer-title::after { content: ''; flex: 1; height: 4px; background: #e4e9ed; }
.dw-shell .dw-footer-menu { padding: 0; margin: 0; list-style: none; }
.dw-shell .dw-footer-menu li { padding: 0; margin: 0 0 7px; list-style: none; line-height: 1.5; }
.dw-shell .dw-footer-menu a,.dw-shell .dw-footer-column>p a { color: #53616d; font-size: 14px; text-decoration: none; }
.dw-shell .dw-footer-menu a:hover,.dw-shell .dw-footer-column>p a:hover { color: var(--dw-accent); text-decoration: underline; }
.dw-shell .dw-footer-widget { margin-bottom: 24px; }
.dw-shell .dw-footer-bottom { border-top: 1px solid #e4e9ed; }
.dw-shell .dw-shell-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; color: #53616d; font-size: 13px; }
.dw-shell .dw-shell-footer-inner p { margin: 0; font: inherit; }
.dw-shell .dw-shell-footer-inner a { color: #53616d; text-decoration: none; }
.dw-shell .dw-shell-footer-inner a:hover { color: var(--dw-accent); }
.dw-shell .dw-basic-content { padding-top: 50px; padding-bottom: 65px; min-height: 60vh; }
.dw-shell .dw-basic-content h1 { font: 700 34px/1.25 var(--dw-font); letter-spacing: -.02em; }
.dw-shell .dw-skip-link { position: absolute; top: -100px; left: 20px; padding: 10px 15px; color: #fff; background: #2d2d2d; z-index: 100000; border-radius: 8px; }
.dw-shell .dw-skip-link:focus { top: 10px; }
@media(max-width:1000px) {
  .dw-shell .dw-topbar-inner { gap: 12px; }
  .dw-shell .dw-network-menu { gap: 16px; }
  .dw-shell .dw-footer-grid { gap: 35px; }
}
@media(max-width:1023px) {
  .dw-shell .dw-shell-header-inner { grid-template-columns: auto minmax(0,1fr) auto auto; grid-template-rows: minmax(56px,auto) auto auto; grid-template-areas: 'brand . search-toggle menu-toggle' 'search search search search' 'navigation navigation navigation navigation'; gap: 0 8px; min-height: 56px; }
  .dw-shell .dw-header-nav { width: 100%; margin: 0; }
  .dw-shell .dw-primary-menu { flex-wrap: wrap; gap: 0 22px; padding: 0 0 10px; }
  .dw-shell .dw-primary-menu a { min-height: 44px; }
  .dw-shell.dw-nav-ready .dw-header-nav:not(.is-open) { display: none; }
  .dw-shell.dw-nav-ready .dw-menu-toggle { display: inline-flex; }
  .dw-shell.dw-nav-ready.dw-header-search-ready .dw-search-toggle { display: inline-flex; }
  .dw-shell.dw-nav-ready.dw-header-search-ready .dw-header-search-slot:not(.is-open) { display: none; }
  .dw-shell .dw-header-search-slot { max-width: none; padding: 0 0 10px; }
  .dw-shell .dw-header-search-slot .dw-city-form { grid-template-columns: minmax(0,1fr) 64px 44px; gap: 6px; }
  .dw-shell .dw-header-search-slot :is(input.dw-city-input,.dw-find,.dw-geo) { height: 44px; min-height: 44px; }
  .dw-shell .dw-header-search-slot .dw-find { padding: 0 8px; }
  .dw-shell .dw-header-search-slot .dw-search-icon { top: 12px; }
}
@media(max-width:780px) {
  body.dw-shell { --dw-gutter: 18px; }
  .dw-shell .dw-topbar .dw-top-date { display: none; }
  .dw-shell .dw-network-menu { gap: 19px; }
  .dw-shell .dw-network-menu a { min-height: 37px; }
  .dw-shell .dw-brand-name { font-size: 35px; }
  .dw-shell .dw-brand-section { font-size: 11px; }
  .dw-shell .dw-brand-custom img { max-height: 58px; max-width: 155px; }
  .dw-shell .dw-page>.content-wrap>.container { padding-top: 24px; }
  .dw-shell .dw-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; padding-top: 32px; padding-bottom: 28px; }
  .dw-shell .dw-footer-column:first-child { grid-column: 1/-1; }
  .dw-shell .dw-footer-column>p { max-width: 560px; }
  .dw-shell .dw-shell-footer .dw-brand { margin-bottom: 13px; }
  .dw-shell .dw-shell-footer-inner { display: block; }
  .dw-shell .dw-shell-footer-inner p+p { margin-top: 7px; }
}
@media(max-width:440px) {
  body.dw-shell { --dw-gutter: 16px; }
  .dw-shell .dw-primary-menu { display: block; padding: 6px 0 13px; }
  .dw-shell .dw-primary-menu a { display: flex; min-height: 45px; border-bottom: 1px solid #ededed; }
  .dw-shell .dw-primary-menu li:last-child a { border-bottom-color: transparent; }
  .dw-shell .dw-footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .dw-shell .dw-footer-column:first-child { grid-column: auto; }
  .dw-shell .dw-footer-title { margin-bottom: 15px; }
}


/* Match the enhanced header before first paint; no-JS navigation stays expanded. */
.dw-js .dw-shell .dua-weather>.dw-toolbar,.dw-js .dw-shell .dua-weather>.dw-city-form,.dw-js .dw-shell .dua-weather>.dw-search-hint{display:none}
@media(max-width:1023px){
 .dw-js .dw-shell .dw-header-nav:not(.is-open),.dw-js .dw-shell .dw-header-search-slot:not(.is-open){display:none}
 .dw-js .dw-shell :is(.dw-menu-toggle,.dw-search-toggle){display:inline-flex}
}

/* Match the progressive navigation controls before their JS enhancement. */
@media(max-width:720px){
 .dw-js .dw-quick-navigation .dw-quick{grid-template-columns:36px minmax(0,1fr) 36px;grid-template-rows:auto 36px}
 .dw-js .dw-quick-track{grid-column:2;grid-row:2;scrollbar-width:none}
 .dw-js .dw-quick-track::-webkit-scrollbar{display:none}
}
