/* Meteo Bujština v17
 * Mobilna navigacija uvijek ostaje ispod loga prilikom skrolanja.
 * Svi linkovi dostupni su u horizontalnoj traci koja se povlači prstom.
 * Ne utječe na desktop ni na Netlify Forms, mapu ili API.
 */
@media (max-width: 860px) {
  html { scroll-padding-top: 136px; }
  .header {
    position: sticky !important;
    top: 0 !important;
    z-index: 90;
    background: #fff;
  }
  .header .nav-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 74px 48px;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0;
    gap: 0;
  }
  .header .brand {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: start;
    min-width: 0;
    padding: 0 18px;
  }
  /* Izbornik je već stalno vidljiv — nema potrebe za hamburgerom. */
  .header .nav-actions { display: none; }
  .header .nav-links,
  .header .nav-links.open {
    grid-column: 1;
    grid-row: 2;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center !important;
    justify-content: flex-start;
    gap: 7px !important;
    width: 100%;
    height: 48px !important;
    min-height: 48px;
    padding: 0 13px !important;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    background: #fff;
    border-top: 1px solid #e7eeec;
    border-bottom: 0;
    box-shadow: none !important;
  }
  .header .nav-links::-webkit-scrollbar { display: none; }
  .header .nav-links a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 31px;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: #f3f8f6;
    color: #456875;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
    scroll-snap-align: start;
  }
  .header .nav-links a:hover,
  .header .nav-links a:focus-visible {
    background: #e9f5f1;
    color: #176f67;
  }
  .header .nav-links a.active {
    color: #a73f2b !important;
    background: #fff0e9;
    border-color: #f0cdbc;
  }
  .header .nav-links a.active::after { display: none; }
  main section[id],
  main [id].section,
  #pregled, #kolumne, #postaje, #neverin, #o-projektu,
  .page-heading, .forecast-section, .request-section,
  .support-section, .about-panel {
    scroll-margin-top: 140px !important;
  }
}
@media (max-width: 620px) {
  html { scroll-padding-top: 125px; }
  .header .nav-main { grid-template-rows: 66px 46px; }
  .header .brand { padding: 0 14px; }
  .header .brand-logo { width: 208px; max-height: 55px; }
  .header .nav-links,
  .header .nav-links.open {
    height: 46px !important;
    min-height: 46px;
    padding: 0 10px !important;
  }
  main section[id],
  main [id].section,
  #pregled, #kolumne, #postaje, #neverin, #o-projektu,
  .page-heading, .forecast-section, .request-section,
  .support-section, .about-panel {
    scroll-margin-top: 126px !important;
  }
}
