/* NN News Panchang */
.nn-panchang-bar{
  position:absolute;
  bottom:5px;
  right:24px;
  width:min(590px,48%);
  height:31px;
  display:flex;
  align-items:center;
  overflow:hidden;
  background:rgba(255,255,255,.88);
  border:1px solid #d6dfd7;
  border-radius:6px;
  z-index:4;
  font-family:Hind,sans-serif;
}
.nn-panchang-scroll{
  flex:1;
  min-width:0;
  overflow:hidden;
  white-space:nowrap;
}
.nn-panchang-moving{
  display:inline-block;
  white-space:nowrap;
  padding-left:100%;
  animation:nn-panchang-move 32s linear infinite;
  color:#194e3c;
  font-size:13px;
  font-weight:600;
}
.nn-panchang-bar:hover .nn-panchang-moving{
  animation-play-state:paused;
}
@keyframes nn-panchang-move{
  to{transform:translateX(-100%)}
}
.nn-panchang-open{
  flex:none;
  height:100%;
  padding:0 13px;
  border:0;
  border-radius:0;
  background:#14513f;
  color:white;
  font-size:13px;
  font-weight:700;
}
.nn-panchang-overlay[hidden]{display:none!important}
.nn-panchang-overlay{
  position:fixed;
  inset:0;
  z-index:10000;
  background:rgba(5,22,15,.72);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
}
.nn-panchang-dialog{
  width:min(560px,100%);
  max-height:90dvh;
  overflow:auto;
  border-radius:13px;
  padding:17px;
  background:var(--card,#fff);
  color:var(--ink,#19251f);
  box-shadow:0 20px 80px #0005;
}
.nn-panchang-top,
.nn-panchang-monthbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.nn-panchang-top h2{margin:0;font-size:21px}
.nn-panchang-monthbar{
  margin:15px 0 10px;
  padding:8px;
  background:#14513f;
  color:white;
  border-radius:8px;
}
.nn-panchang-monthbar button{
  padding:5px 13px;
  background:transparent;
  color:white;
}
.nn-panchang-days{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:4px;
}
.nn-panchang-weekday{
  text-align:center;
  font-size:11px;
  font-weight:700;
  padding:7px 0;
}
.nn-panchang-date{
  min-width:0;
  min-height:59px;
  border-radius:6px;
  border:1px solid #dfe6dc;
  background:var(--card,#fff);
  color:var(--ink,#19251f);
  padding:4px 2px;
  font-size:14px;
  line-height:1.1;
  text-align:center;
}
.nn-panchang-date small{
  display:block;
  margin-top:4px;
  font-size:9px;
  line-height:1.15;
  color:var(--muted,#66736b);
}
.nn-panchang-date.is-selected{
  border-color:#d2a13d;
  outline:2px solid #d2a13d;
}
.nn-panchang-detail{
  margin-top:13px;
  padding:13px;
  border-radius:8px;
  background:var(--bg,#f7f9f7);
  font-size:13px;
  line-height:1.8;
}
.nn-panchang-note{
  font-size:11px;
  color:var(--muted,#66736b);
}
@media(max-width:700px){
  .nn-panchang-bar{
    position:relative;
    right:auto;
    bottom:auto;
    width:calc(100% - 24px);
    margin:-7px 12px 7px;
    height:32px;
  }
  .nn-panchang-date{min-height:55px;font-size:13px}
  .nn-panchang-date small{font-size:8px}
}
@media(prefers-reduced-motion:reduce){
  .nn-panchang-moving{animation:none;padding-left:8px}
}

/* Desktop: right-align Panchang ticker */
@media (min-width: 701px) {
  .masthead-shell .nn-panchang-bar {
    left: auto !important;
    right: 24px !important;
    margin-left: auto !important;
    width: min(590px, 48%) !important;
  }
}


/* NN NEWS: unified desktop right alignment */
@media (min-width: 701px) {
  .masthead-shell .masthead {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    justify-content: space-between;
  }

  .masthead-shell .masthead .head-actions {
    display: flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
  }

  .masthead-shell .nn-panchang-bar {
    right: max(24px, calc((100vw - 1440px)/2 + 24px)) !important;
    left: auto !important;
  }
}
