/* NN NEWS HP — Panchang + current date in the desktop-only utility bar.
   The existing Panchang DOM and event handlers are reused: there is no duplicate
   ticker or button. All rules in this file are DESKTOP ONLY. */
@media (min-width: 701px) {
  .utility {
    position: relative;
    z-index: 43;
  }
  .utility .utility-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    min-width: 0;
  }
  .utility .utility-inner > span:first-child,
  .utility .utility-inner > span:last-child {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .utility .nn-desktop-panchang {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .utility .nn-desktop-date {
    flex: 0 0 auto;
    color: var(--deep);
    font-weight: 700;
    font-size: .75rem;
    white-space: nowrap;
    line-height: 1.2;
  }
  .utility .nn-desktop-date::after {
    content: ' ·';
    color: var(--gold);
    margin-left: 6px;
  }
  .utility .nn-desktop-panchang .nn-panchang-bar {
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    position: relative !important;
  }
  .utility .nn-desktop-panchang .nn-panchang-scroll {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    height: 26px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    overflow: hidden !important;
    background: transparent !important;
  }
  .utility .nn-desktop-panchang .nn-panchang-moving {
    color: var(--deep);
    font-size: .76rem;
    font-weight: 600;
    white-space: nowrap;
  }
  .utility .nn-desktop-panchang .nn-panchang-open {
    flex: 0 0 auto !important;
    position: static !important;
    transform: none !important;
    width: auto !important;
    min-width: 0 !important;
    height: 27px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 3px 10px !important;
    border-radius: 5px !important;
    font-size: .74rem !important;
    font-weight: 700;
    line-height: 1.3 !important;
    white-space: nowrap;
    background: var(--deep);
    color: #fff;
  }
}
@media (min-width: 701px) and (max-width: 1120px) {
  .utility .utility-inner { gap: 9px; }
  .utility .nn-desktop-panchang { gap: 6px; }
  .utility .nn-desktop-date { font-size: .68rem; }
  .utility .nn-desktop-panchang .nn-panchang-moving { font-size: .69rem; }
  .utility .nn-desktop-panchang .nn-panchang-open {
    padding: 3px 6px !important;
    font-size: .69rem !important;
  }
}

/* Desktop Panchang button alignment */
@media (min-width: 701px) {
  #nn-panchang-open {
    position: relative;
    top: 1px;
  }
}

/* Desktop-only: center Panchang icon and text better inside button */
@media (min-width: 701px) {
  #nn-panchang-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1;
  }

  #nn-panchang-open::before,
  #nn-panchang-open > * {
    position: relative;
    top: 1px;
  }
}

/* Desktop: move only Panchang icon and text downward */
@media (min-width: 701px) {
  #nn-panchang-open .nn-panchang-label {
    display: inline-block;
    transform: translateY(2px);
  }
}

/* NN News: vertical alignment of desktop Panchang */
@media (min-width: 701px) {
  .nn-panchang-scroll {
    transform: translateY(3px);
  }

  #nn-panchang-open {
    transform: translateY(3px);
  }
}

/* NN News: vertical alignment of desktop Panchang */
@media (min-width: 701px) {
  .nn-panchang-scroll {
    transform: translateY(3px);
  }

  #nn-panchang-open {
    transform: translateY(3px);
  }
}

/* Desktop Panchang text: 5px vertical adjustment */
@media (min-width: 701px) {
  #nn-panchang-text {
    position: relative !important;
    top: 5px !important;
  }
}

/* Desktop Panchang text: 5px vertical adjustment */
@media (min-width: 701px) {
  #nn-panchang-text {
    position: relative !important;
    bottom: 3px !important;
  }
}

/* Desktop Panchang ticker: lift text 3px */
@media (min-width: 701px) {
  #nn-panchang-text {
    top: 2px !important;
  }
}


/* NN_PANCHANG_NO_FLICKER_V1 */
@media (min-width: 701px) {

  /* Hide Panchang at its original desktop location */
  .masthead-shell > .nn-panchang-bar {
    visibility: hidden !important;
  }

  /* Reveal after relocation to the utility bar */
  .utility .nn-desktop-panchang > .nn-panchang-bar {
    visibility: visible !important;
  }

}
