:root {
  --ink: #081629;
  --paper: #f6f7f8;
  --red: #df1d2f;
  --gold: #d39a26;
  --line: #dce1e6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans Gurmukhi", "Noto Sans Devanagari", "Libre Franklin", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.editorial-wrap {
  width: 100%;
  max-width: 1440px;
  margin: auto;
  padding: 0 28px;
}

.masthead {
  letter-spacing: -0.05em;
}

/* Smooth Infinite Ticker Scroll */
.ticker-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: smoothTicker 22s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes smoothTicker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.story-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(8, 22, 41, 0.12);
}

.story-image {
  transition: transform 0.5s ease;
}

.story-card:hover .story-image {
  transform: scale(1.04);
}

.filter-btn.active {
  background: #081629;
  color: white;
  border-color: #081629;
}

.nav-link {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.focus-ring:focus-visible {
  outline: 3px solid #d39a26;
  outline-offset: 3px;
}

@media (max-width: 850px) {
  .editorial-wrap {
    padding: 0 17px;
  }
  .masthead {
    font-size: 1.45rem;
  }
}

/* Keep this in sync with the menu-button's `md:hidden` (Tailwind md = 768px):
   the nav toggle must vanish and the desktop nav appear at the same width,
   or tablet-width screens end up with no navigation at all.
   !important is required because the Tailwind CDN script injects its own
   stylesheet after this one, so its same-specificity `.flex` utility would
   otherwise win the cascade tie and keep the desktop nav visible. */
@media (max-width: 767px) {
  .desktop-nav {
    display: none !important;
  }
  .mobile-nav.open {
    display: flex !important;
  }
}