/* Dnipro Rijeka · preview-only refinement v1.3, 29 Nov 2026.
   Smaller mobile app bar controls; comfortably padded section title pills.
   No changes to the production site, page routing, content, or images. */

/* The editor's old headings were exported as very tight background panels.
   Give their text an actual inset and preserve a balanced two-column layout. */
body.dn-proto #publicSite #news .section-head,
body.dn-proto #publicSite #events .section-head,
body.dn-proto #publicSite #gallery .section-head.gallery-info-card{
  box-sizing:border-box!important;
  padding:clamp(24px,2.6vw,36px) clamp(26px,3.3vw,44px)!important;
  min-height:138px!important;
  border-radius:26px!important;
  background:var(--p-card)!important;
  border:1px solid var(--p-line)!important;
  box-shadow:0 12px 34px rgba(20,57,111,.065)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:clamp(20px,3vw,46px)!important;
  overflow:visible!important;
  text-align:left!important;
}
body.dn-proto[data-site-theme="dark"] #publicSite #news .section-head,
body.dn-proto[data-site-theme="dark"] #publicSite #events .section-head,
body.dn-proto[data-site-theme="dark"] #publicSite #gallery .section-head.gallery-info-card{
  background:var(--p-card)!important;
  border-color:rgba(187,213,251,.16)!important;
  box-shadow:0 14px 38px rgba(0,0,0,.13)!important;
}
body.dn-proto #publicSite :is(#news,#events,#gallery) .section-head>div{
  min-width:0!important;flex:1 1 55%!important;
}
body.dn-proto #publicSite :is(#news,#events,#gallery) .section-head>p{
  min-width:0!important;flex:1 1 39%!important;
  max-width:460px!important;
  margin:0!important;
  text-align:left!important;
  overflow-wrap:break-word!important;
}
body.dn-proto #publicSite :is(#news,#events,#gallery) .section-head h2{
  margin:9px 0 0!important;
  padding:0!important;
  line-height:1.16!important;
  max-width:100%!important;
  overflow-wrap:break-word!important;
  text-align:left!important;
}
body.dn-proto #publicSite :is(#news,#events,#gallery) .section-head .eyebrow{
  margin:0!important;
  line-height:1.45!important;
  text-align:left!important;
}

/* Restore the earlier, compact mobile navbar and header controls.
   Keep v1.2's stronger contrast for dark/light themes. */
@media(max-width:700px){
  body.dn-proto .dn-proto-tabs{gap:7px!important;padding:0 13px 10px!important}
  body.dn-proto .dn-proto-tab{
    min-height:39px!important;
    padding:9px 14px!important;
    font-size:11.5px!important;
    line-height:1.2!important;
    border-radius:14px!important;
    white-space:nowrap!important;
  }
  body.dn-proto #publicSite #top .dn-proto-settings{gap:5px!important}
  body.dn-proto #publicSite #top .dn-proto-language{min-width:65px!important}
  body.dn-proto #publicSite #top .dn-proto-language>summary{
    min-height:38px!important;
    padding:7px 9px!important;
    font-size:11px!important;
  }
  body.dn-proto #publicSite #top .dn-proto-theme{
    width:39px!important;height:38px!important;
    padding:5px!important;
    font-size:17px!important;
    border-radius:13px!important;
  }
  body.dn-proto #publicSite #news .section-head,
  body.dn-proto #publicSite #events .section-head,
  body.dn-proto #publicSite #gallery .section-head.gallery-info-card{
    flex-direction:column!important;
    align-items:stretch!important;
    gap:15px!important;
    min-height:0!important;
    padding:23px 22px 25px!important;
    border-radius:23px!important;
  }
  body.dn-proto #publicSite :is(#news,#events,#gallery) .section-head>div,
  body.dn-proto #publicSite :is(#news,#events,#gallery) .section-head>p{
    flex:none!important;width:100%!important;max-width:100%!important;
  }
  body.dn-proto #publicSite :is(#news,#events,#gallery) .section-head h2{
    font-size:clamp(27px,7.5vw,38px)!important;
    line-height:1.15!important;
  }
}
@media(max-width:360px){
 body.dn-proto #publicSite #top .dn-proto-settings{gap:4px!important}
 body.dn-proto #publicSite #top .dn-proto-language{min-width:61px!important}
 body.dn-proto #publicSite #top .dn-proto-language>summary{font-size:10.5px!important;padding:7px 8px!important}
 body.dn-proto #publicSite #top .dn-proto-theme{width:36px!important}
 body.dn-proto .dn-proto-tab{font-size:11px!important;padding:9px 13px!important}
 body.dn-proto #publicSite #news .section-head,
 body.dn-proto #publicSite #events .section-head,
 body.dn-proto #publicSite #gallery .section-head.gallery-info-card{padding:22px 18px 24px!important}
}