/* Malayalam newspaper typography */
.newspaper--malayalam {
  --font-body: 'Noto Serif Malayalam', 'Noto Sans Malayalam', serif;
  --font-headline: 'Noto Serif Malayalam', Georgia, serif;
  --font-sans: 'IBM Plex Sans Malayalam', 'Noto Sans Malayalam', sans-serif;
}

.newspaper--malayalam .masthead__title {
  font-family: 'Noto Serif Malayalam', serif;
  letter-spacing: 0.02em;
}

.newspaper--malayalam .lead__headline,
.newspaper--malayalam .article__headline,
.newspaper--malayalam .editorial__headline {
  font-family: 'Noto Serif Malayalam', serif;
  line-height: 1.35;
}

.newspaper--malayalam .lead__cols,
.newspaper--malayalam .article__cols,
.newspaper--malayalam .editorial__cols {
  text-align: justify;
  hyphens: none;
  line-height: 1.85;
}

.newspaper--malayalam .drop-cap::first-letter {
  font-family: 'Noto Serif Malayalam', serif;
  font-size: 3.8rem;
}

.newspaper--malayalam .story-gate__title {
  font-family: 'Noto Serif Malayalam', serif;
}

.lang-switch {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dotted var(--rule-light);
  font-family: var(--font-sans);
  font-size: 0.72rem;
}

.lang-switch a {
  color: var(--accent-red);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.lang-switch a:hover {
  text-decoration: underline;
}

.newspaper--malayalam .story-gate__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: center;
}

.story-listen__masthead-hint {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dotted var(--rule-light);
  font-family: 'Noto Sans Malayalam', sans-serif;
  font-size: 0.72rem;
  color: var(--accent-red);
  text-align: center;
}

.story-listen__masthead-hint strong {
  font-weight: 700;
}

/* Malayalam listen / text-to-speech bar */
.story-listen {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(26, 26, 26, 0.94);
  border-top: 2px solid #8b1c1c;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
}

.story-listen__inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.story-listen__label {
  font-family: 'Noto Sans Malayalam', sans-serif;
  font-size: 0.85rem;
  color: #f3ede0;
  margin: 0;
}

.story-listen__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.story-listen__btn {
  font-family: 'Noto Sans Malayalam', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  border: none;
  border-radius: 4px;
  background: #8b1c1c;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.story-listen__btn:hover:not(:disabled) {
  background: #a52222;
}

.story-listen__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.story-listen__btn--ghost {
  background: transparent;
  border: 1px solid rgba(243, 237, 224, 0.35);
  color: #f3ede0;
}

.story-listen__btn--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

html.story-unlocked .newspaper {
  padding-bottom: 5.5rem;
}

@media (max-width: 520px) {
  .story-listen__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .story-listen__controls {
    justify-content: center;
  }
}
