/*
Theme Name: India Daily News 2026
Theme URI: https://indiadailyrise.com/
Author: India Daily News Desk
Author URI: https://indiadailyrise.com/
Description: Authentic newspaper UI replicating The Hindu's visual layout, typography (Merriweather, Playfair Display, Faustina, Merriweather Sans), 3-column hairline grid, red topic kickers, and real photojournalism cards.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: india-daily-2026
*/

:root {
  --th-bg: #FFFFFF;
  --th-bg-alt: #F7F7F7;
  --th-bg-opinion: #FAF8F5;
  --th-ink: #000000;
  --th-ink-body: #141414;
  --th-ink-sub: #505050;
  --th-ink-muted: #6E6E6E;
  --th-red: #B00020;
  --th-red-dark: #8E001A;
  --th-border: #D8D8D8;
  --th-border-dark: #000000;

  --font-serif-headline: 'Merriweather', 'Faustina', Georgia, 'Times New Roman', serif;
  --font-serif-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Merriweather Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container-width: 1300px;
}

[data-theme="dark"] {
  --th-bg: #121212;
  --th-bg-alt: #1C1C1C;
  --th-bg-opinion: #181818;
  --th-ink: #F5F5F5;
  --th-ink-body: #E5E5E5;
  --th-ink-sub: #B0B0B0;
  --th-ink-muted: #8E8E8E;
  --th-red: #FF3B5C;
  --th-red-dark: #FF6B84;
  --th-border: #2E2E2E;
  --th-border-dark: #E0E0E0;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--th-bg);
  color: var(--th-ink-body);
  font-family: var(--font-serif-headline);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

.th-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* ==========================================================================
   ENTERPRISE NEWSROOM HEADER, UTILITY BAR & SYMMETRIC MASTHEAD
   ========================================================================== */
.header-outer {
  background: var(--th-bg);
  border-bottom: 1px solid var(--th-border);
  position: relative;
  z-index: 1000;
}

/* Row 1: Executive Utility & Edition Bar */
.th-utility-bar {
  background: var(--th-bg-alt);
  border-bottom: 1px solid var(--th-border);
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: var(--th-ink-sub);
  min-height: 34px;
  display: flex;
  align-items: center;
}

.th-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.th-utility-left {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  white-space: nowrap;
  min-width: 0;
}

.th-utility-date {
  font-weight: 700;
  color: var(--th-ink);
}

.th-utility-sep {
  color: var(--th-border);
  font-size: 10px;
}

.th-utility-weather strong {
  color: var(--th-ink);
}

.th-aqi-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(176, 0, 32, 0.09);
  border: 1px solid rgba(176, 0, 32, 0.25);
  color: var(--th-red);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

[data-theme="dark"] .th-aqi-pill {
  background: rgba(255, 59, 92, 0.14);
  border-color: rgba(255, 59, 92, 0.35);
}

.th-aqi-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--th-red);
  flex-shrink: 0;
}

.th-utility-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.th-utility-links {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
  border-right: 1px solid var(--th-border);
}

.th-utility-links a {
  font-size: 11px;
  font-weight: 700;
  color: var(--th-ink-sub);
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

.th-utility-links a:hover {
  color: var(--th-red);
}

.th-header-socials {
  display: flex;
  align-items: center;
  gap: 6px;
}

.th-social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: transform 0.15s ease, opacity 0.15s ease;
  flex-shrink: 0;
}

.th-social-icon-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.th-social-icon-btn.is-wa { background: #25D366; }
.th-social-icon-btn.is-fb { background: #1877F2; }
.th-social-icon-btn.is-x  { background: #0f1419; }
.th-social-icon-btn.is-yt { background: #FF0000; }
.th-social-icon-btn.is-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.th-social-icon-btn.is-tg { background: #229ED9; }

[data-theme="dark"] .th-social-icon-btn.is-x {
  background: #272c33;
}

/* Row 2: Symmetric Masthead Row (1fr auto 1fr) */
.th-top-bar {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 16px 0 14px;
  border-bottom: 1px solid var(--th-border);
  gap: 12px;
}

@media (min-width: 992px) {
  .th-top-bar {
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
  }
}

.th-masthead-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  font-family: var(--font-sans);
}

.th-logo-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.th-masthead-h1 {
  margin: 0;
  padding: 0;
  font-size: inherit;
  line-height: 0;
  font-weight: inherit;
}

.th-masthead-title {
  font-family: var(--font-serif-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--th-ink);
  text-transform: uppercase;
}

.th-masthead-subtitle {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--th-ink-muted);
  margin-top: 6px;
}

.th-header-btns {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-family: var(--font-sans);
}

/* Identical 34px Geometry Across Left & Right Masthead Buttons */
.btn-th-outline,
.btn-th-subscribe,
.btn-th-red-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 15px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  border-radius: 3px;
  cursor: pointer;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.btn-th-outline {
  border: 1px solid var(--th-border-dark);
  background: transparent;
  color: var(--th-ink);
}

.btn-th-outline:hover {
  background: var(--th-ink);
  color: var(--th-bg);
}

/* Symmetric Red Elements (Live Desk & Subscribe share identical dimensions & color) */
.btn-th-subscribe,
.btn-th-red-cta {
  min-width: 116px;
  background: #C8102E;
  color: #FFFFFF !important;
  border: 1px solid #C8102E;
  box-shadow: 0 1px 2px rgba(200, 16, 46, 0.18);
}

.btn-th-subscribe:hover,
.btn-th-red-cta:hover {
  background: #9E0B22;
  border-color: #9E0B22;
  transform: translateY(-1px);
}

.th-btn-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  animation: pulseDot 1.4s infinite ease-in-out;
  flex-shrink: 0;
}

.th-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

/* Row 3: Main Section Navigation Bar */
.th-menu-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  gap: 16px;
  border-bottom: 2px solid var(--th-ink);
}

.th-menu-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0;
  flex: 1;
  justify-content: flex-start;
}
.th-menu-nav::-webkit-scrollbar {
  display: none;
}

.th-nav-link {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--th-ink);
  white-space: nowrap;
  padding: 11px 2px 9px;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.th-nav-link:hover,
.th-nav-link.active {
  color: #C8102E;
  border-bottom-color: #C8102E;
}

[data-theme="dark"] .th-nav-link:hover,
[data-theme="dark"] .th-nav-link.active {
  color: var(--th-red);
  border-bottom-color: var(--th-red);
}

.th-search-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--th-ink);
  background: var(--th-bg-alt);
  border: 1px solid var(--th-border);
  border-radius: 3px;
  padding: 5px 10px;
  height: 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.th-search-btn:hover {
  color: #C8102E;
  border-color: #C8102E;
}

.th-search-kbd {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  color: var(--th-ink-muted);
  background: var(--th-bg);
  border: 1px solid var(--th-border);
  border-radius: 2px;
  padding: 1px 4px;
  line-height: 1.1;
}

/* Row 4: Sub-navigation Topics Strip */
.th-topics-strip {
  background: var(--th-bg-alt);
  border-bottom: 1px solid var(--th-border);
  padding: 7px 0;
  font-family: var(--font-sans);
  font-size: 11.5px;
}

.th-topics-strip__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.th-topics-strip__inner::-webkit-scrollbar {
  display: none;
}

.th-topics-kicker {
  color: #C8102E;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

[data-theme="dark"] .th-topics-kicker {
  color: var(--th-red);
}

.th-topics-links {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.th-topics-links a {
  font-weight: 700;
  color: var(--th-ink-body);
  transition: color 0.15s ease;
}

.th-topics-links a:hover {
  color: #C8102E;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   THE HINDU CARD ELEMENTS (.element, .bigger, .row-element, .smaller)
   ========================================================================== */
.top-section {
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--th-border);
}

.th-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .th-top-grid {
    grid-template-columns: 6fr 3fr 3fr;
    gap: 0;
  }
}

.th-col-main {
  padding-right: 0;
}
.th-col-mid {
  padding: 0;
}
.th-col-right {
  padding-left: 0;
}

@media (min-width: 1024px) {
  .th-col-main {
    padding-right: 20px;
    border-right: 1px solid var(--th-border);
  }
  .th-col-mid {
    padding: 0 20px;
    border-right: 1px solid var(--th-border);
  }
  .th-col-right {
    padding-left: 20px;
  }
}

.element {
  padding: 14px 0;
  border-bottom: 1px solid var(--th-border);
}
.element:first-child {
  padding-top: 0;
}
.element:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Category / Topic Red Kicker (.label) */
.element .label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--th-red);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.element .label.kicker-outline span {
  border: 1px solid var(--th-red);
  padding: 2px 7px;
  border-radius: 2px;
  color: var(--th-red);
}

.element .label.live-span {
  color: var(--th-red);
}
.element .label.live-span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--th-red);
  animation: thLivePulse 1.6s infinite;
}

@keyframes thLivePulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.25); }
  100% { opacity: 1; transform: scale(1); }
}

/* Lead Story (.element.bigger) */
.element.bigger .picture {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9.2;
  overflow: hidden;
  background: var(--th-bg-alt);
  margin-bottom: 12px;
}

.element.bigger .picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.element.bigger:hover .picture img {
  transform: scale(1.02);
}

.element.bigger .title {
  font-family: var(--font-serif-headline);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  line-height: 1.28;
  color: var(--th-ink);
  margin-bottom: 8px;
}
.element.bigger .title a:hover {
  color: var(--th-red);
}

.element.bigger .sub-text {
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--th-ink-sub);
  margin-bottom: 8px;
}

/* Upper 3-Column Broadsheet Section Headers */
.th-col-header {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--th-ink);
  padding-bottom: 9px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--th-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.th-col-header > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.th-live-dot-inline {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C8102E;
  animation: thLivePulse 1.5s infinite;
  flex-shrink: 0;
}

.th-col-header-link {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #C8102E;
  text-transform: uppercase;
  white-space: nowrap;
}

.th-col-header-link:hover {
  text-decoration: underline;
}

/* Author Byline (.by-line) — Prevents Awkward Mid-Date Line Breaks */
.by-line {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--th-ink-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 7px;
  line-height: 1.4;
}

.by-line .person-name {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--th-ink-body);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.by-line .person-name:hover {
  color: var(--th-red);
}

.by-line-meta {
  color: var(--th-ink-muted);
  white-space: nowrap;
}

.by-line time {
  white-space: nowrap;
}

.th-read-more-inline {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #C8102E;
  white-space: nowrap;
}

.th-read-more-inline:hover {
  text-decoration: underline;
}

/* Row Element (.element.row-element) */
.element.row-element {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.element.row-element .picture {
  width: 128px;
  height: 84px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--th-bg-alt);
}
.element.row-element .picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.element.row-element.thumb-right .picture {
  width: 82px;
  height: 82px;
  order: 2;
}
.element.row-element.thumb-right .content {
  order: 1;
  flex: 1;
}

.element.row-element .content {
  flex: 1;
  min-width: 0;
}

.element.row-element .title,
.element.smaller .title {
  font-family: var(--font-serif-headline);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.38;
  color: var(--th-ink);
}
.element.row-element .title a:hover,
.element.smaller .title a:hover {
  color: var(--th-red);
}

/* ==========================================================================
   SECTION BLOCKS & DIVIDERS (.title-with-link, .section-title)
   ========================================================================== */
.th-section-block {
  padding: 28px 0;
  border-bottom: 1px solid var(--th-border);
}

.th-section-block.bg-opinion {
  background-color: var(--th-bg-opinion);
}

.title-with-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--th-border-dark);
  position: relative;
}

.section-title {
  font-family: var(--font-serif-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 900;
  color: var(--th-ink);
  letter-spacing: -0.01em;
}
.section-title a:hover {
  color: var(--th-red);
}

.see-more {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--th-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.see-more:hover {
  text-decoration: underline;
}

/* 4-Column Newspaper Grid with Hairlines */
.th-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .th-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .th-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .th-grid-4 > .th-card-col {
    padding: 0 18px;
    border-right: 1px solid var(--th-border);
  }
  .th-grid-4 > .th-card-col:first-child {
    padding-left: 0;
  }
  .th-grid-4 > .th-card-col:last-child {
    padding-right: 0;
    border-right: none;
  }
}

.th-card .picture {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--th-bg-alt);
  margin-bottom: 10px;
}
.th-card .picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.th-card:hover .picture img {
  transform: scale(1.03);
}

.th-card .label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--th-red);
  margin-bottom: 5px;
}

.th-card .title {
  font-family: var(--font-serif-headline);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.38;
  color: var(--th-ink);
  margin-bottom: 6px;
}
.th-card .title a:hover {
  color: var(--th-red);
}

.th-card .sub-text {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--th-ink-sub);
  line-height: 1.48;
  margin-bottom: 6px;
}

/* ==========================================================================
   SINGLE ARTICLE VIEW (THE HINDU ARTICLE LAYOUT)
   ========================================================================== */
.th-article-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px 15px 50px;
}

.th-article-kicker {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--th-red);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.th-article-headline {
  font-family: var(--font-serif-headline);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  line-height: 1.24;
  color: var(--th-ink);
  margin-bottom: 12px;
}

.th-article-subheadline {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--th-ink-sub);
  margin-bottom: 16px;
}

.th-article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--th-border);
  border-bottom: 1px solid var(--th-border);
  margin-bottom: 22px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--th-ink-muted);
  gap: 12px;
}

.th-article-figure {
  margin-bottom: 24px;
  background: var(--th-bg-alt);
}
.th-article-figure img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.th-article-caption {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--th-ink-muted);
  padding: 8px 12px;
  border-bottom: 1px solid var(--th-border);
}

.th-article-body {
  font-family: var(--font-serif-headline);
  font-size: var(--article-font-size, 18px);
  line-height: 1.8;
  color: var(--th-ink-body);
}
.th-article-body p {
  margin-bottom: 20px;
}
.th-article-body h2, .th-article-body h3 {
  font-family: var(--font-serif-headline);
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--th-ink);
}

/* Search Modal & Toast */
.idn-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 15px;
}
.idn-modal-backdrop.is-open {
  display: flex;
}
.idn-search-modal {
  width: 100%;
  max-width: 640px;
  background: var(--th-bg);
  border: 1px solid var(--th-border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.idn-search-modal__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--th-border);
}
.idn-search-modal__input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 16px;
  font-family: var(--font-sans);
  color: var(--th-ink);
  outline: none;
}
.idn-search-results {
  max-height: 380px;
  overflow-y: auto;
  padding: 12px 18px;
  font-family: var(--font-sans);
}
.idn-search-hit {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--th-border);
}
.idn-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--th-ink);
  color: var(--th-bg);
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2500;
}
.idn-toast.is-visible {
  opacity: 1;
}

/* Footer */
.th-footer {
  background: var(--th-bg-alt);
  border-top: 3px solid var(--th-ink);
  padding: 40px 0 28px;
  margin-top: 40px;
  font-family: var(--font-sans);
}
.th-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--th-border);
}
@media (min-width: 768px) {
  .th-footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}
.th-footer-heading {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--th-ink);
  margin-bottom: 12px;
}
.th-footer-links li + li {
  margin-top: 7px;
}
.th-footer-links a {
  font-size: 13px;
  color: var(--th-ink-sub);
}
.th-footer-links a:hover {
  color: var(--th-red);
}


/* ==========================================================================
   ELITE NEWSROOM ENHANCEMENTS: READING PROGRESS, MARKET TICKER, AUDIO PLAYER
   ========================================================================== */

/* 1. Top Reading Progress Bar */
.idn-reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: var(--th-red);
  z-index: 999999;
  transition: width 0.08s linear;
  box-shadow: 0 0 10px rgba(176, 0, 32, 0.45);
}

/* 2. Global & Indian Live Financial Market Ticker Tape (Synchronized Zero-Jump Marquee) */
.th-market-ticker-wrap {
  background: #0b1120;
  color: #f8fafc;
  font-family: var(--font-sans);
  font-size: 11.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
  height: 36px;
  line-height: 36px;
}

[data-theme="dark"] .th-market-ticker-wrap {
  background: #060911;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.th-market-ticker-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  position: relative;
  padding: 0 15px;
  height: 36px;
  gap: 12px;
  overflow: hidden;
}

.th-market-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #020617;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 3px;
  padding: 0 10px;
  width: 134px;
  height: 24px;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #38bdf8 !important;
  font-size: 10px;
  line-height: 1;
  z-index: 3;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none !important;
}

.th-market-badge:hover {
  border-color: #38bdf8;
}

.th-market-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: pulseDot 1.6s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.th-market-scroller {
  overflow: hidden;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  padding: 0;
  height: 36px;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
}

/* Zero flex gap + internal padding-right ensures exact 50.000% loop symmetry with zero visual jump */
.th-market-items {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  white-space: nowrap;
  align-items: center;
  width: max-content;
  gap: 0;
  animation: tickerSlide 42s linear infinite;
  will-change: transform;
}

.th-market-scroller:hover .th-market-items,
.th-market-scroller:focus-within .th-market-items {
  animation-play-state: paused;
}

@keyframes tickerSlide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.th-market-item {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  white-space: nowrap;
  align-items: center;
  gap: 7px;
  padding-right: 30px;
  flex-shrink: 0;
  font-size: 11.5px;
  text-decoration: none !important;
}

.th-market-item:hover .ticker-name {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 991px) {
  .th-hide-tablet {
    display: none !important;
  }
  .th-top-bar {
    grid-template-columns: 1fr auto;
    padding: 12px 0 10px;
  }
  .th-masthead-left {
    display: none;
  }
  .th-logo-center {
    align-items: flex-start;
    text-align: left;
  }
  .th-masthead-subtitle {
    display: none;
  }
}

@media (max-width: 768px) {
  .th-utility-weather,
  .th-utility-left .th-utility-sep,
  .th-search-kbd,
  .th-hide-mobile {
    display: none !important;
  }
  .th-utility-inner {
    min-height: 30px;
  }
  .th-social-icon-btn {
    width: 22px;
    height: 22px;
  }
  .btn-th-outline,
  .btn-th-subscribe,
  .btn-th-red-cta {
    height: 30px;
    padding: 0 10px;
    min-width: 0;
    font-size: 10px;
  }
  .th-market-ticker-wrap,
  .th-market-ticker-inner,
  .th-market-scroller {
    height: 32px !important;
    line-height: 32px !important;
  }
  .th-market-badge {
    width: 106px !important;
    height: 22px !important;
    padding: 0 7px !important;
    font-size: 9px !important;
  }
  .th-market-item {
    font-size: 10.5px !important;
    padding-right: 20px !important;
  }
}

.th-market-item .ticker-name {
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.th-market-item .ticker-val {
  color: #ffffff;
  font-weight: 600;
}

.th-market-item .ticker-change.up {
  color: #4ade80;
  font-weight: 700;
}

.th-market-item .ticker-change.down {
  color: #f87171;
  font-weight: 700;
}

/* 3. Native "Listen to Article" TTS Player */
.th-audio-player {
  margin: 18px 0 24px;
  padding: 12px 18px;
  background: var(--th-bg-alt);
  border: 1px solid var(--th-border);
  border-left: 4px solid var(--th-red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 4px;
  font-family: var(--font-sans);
}

.th-audio-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-th-audio-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--th-red);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-th-audio-play:hover {
  background: var(--th-red-dark);
  transform: translateY(-1px);
}

.th-audio-meta {
  display: flex;
  flex-direction: column;
}

.th-audio-status {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--th-red);
}

.th-audio-runtime {
  font-size: 12px;
  color: var(--th-ink-muted);
}

.th-audio-center {
  flex: 1;
  max-width: 140px;
  display: flex;
  justify-content: center;
}

.th-audio-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  opacity: 0.35;
  transition: opacity 0.2s ease;
}

.th-audio-player.is-playing .th-audio-equalizer {
  opacity: 1;
}

.eq-bar {
  width: 3px;
  height: 4px;
  background: var(--th-red);
  border-radius: 1px;
  transition: height 0.15s ease;
}

.th-audio-player.is-playing .eq-bar:nth-child(1) { animation: eqBounce 0.8s infinite ease-in-out 0.1s; }
.th-audio-player.is-playing .eq-bar:nth-child(2) { animation: eqBounce 0.6s infinite ease-in-out 0.3s; }
.th-audio-player.is-playing .eq-bar:nth-child(3) { animation: eqBounce 0.9s infinite ease-in-out 0.15s; }
.th-audio-player.is-playing .eq-bar:nth-child(4) { animation: eqBounce 0.7s infinite ease-in-out 0.25s; }
.th-audio-player.is-playing .eq-bar:nth-child(5) { animation: eqBounce 0.85s infinite ease-in-out 0.05s; }
.th-audio-player.is-playing .eq-bar:nth-child(6) { animation: eqBounce 0.65s infinite ease-in-out 0.2s; }

@keyframes eqBounce {
  0%, 100% { height: 4px; }
  50% { height: 18px; }
}

.btn-th-audio-speed {
  background: transparent;
  border: 1px solid var(--th-border);
  color: var(--th-ink);
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-th-audio-speed:hover {
  background: var(--th-bg);
  border-color: var(--th-ink);
}

@media (max-width: 640px) {
  .th-audio-center {
    display: none;
  }
  .th-audio-player {
    padding: 10px 14px;
  }
}


/* ==========================================================================
   INDIA'S NO. 1 NEWS AGENCY ENHANCEMENTS: BREAKING ALERT, AQI, WHATSAPP, DROP CAP
   ========================================================================== */

/* 1. Live City Weather & AQI Header Badge */
.th-city-weather {
  margin-left: 14px;
  font-size: 11px;
  color: var(--th-ink-sub);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.aqi-badge {
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.aqi-badge.severe {
  background: #991b1b;
  color: #fee2e2;
}

.th-edition-switch {
  margin-left: auto;
  font-size: 11px;
  color: var(--th-ink-muted);
}

@media (max-width: 900px) {
  .th-city-weather, .th-edition-switch {
    display: none;
  }
}

/* 2. Continuous Right-to-Left Breaking News Ticker (India Daily Rise Broadcast Strip) */
.th-breaking-banner {
  background: #881337;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  height: 36px;
  line-height: 36px;
  overflow: hidden;
  position: relative;
}

.th-breaking-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  height: 36px;
  padding: 0 15px;
  gap: 12px;
  overflow: hidden;
}

.th-breaking-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #e11d48;
  color: #ffffff !important;
  width: 134px;
  height: 24px;
  padding: 0 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  line-height: 1;
  border-radius: 3px;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  z-index: 3;
}

.th-breaking-tag:hover {
  background: #f43f5e;
}

.th-breaking-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px #ffffff;
  animation: pulseDot 1.2s infinite ease-in-out;
  flex-shrink: 0;
}

.th-breaking-scroller {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 20px, black calc(100% - 20px), transparent);
}

/* Zero flex gap + internal spacing ensures exact -50% seamless infinite loop */
.th-breaking-track {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  gap: 0;
  animation: breakingMarquee 72s linear infinite;
  will-change: transform;
}

.th-breaking-scroller:hover .th-breaking-track,
.th-breaking-scroller:focus-within .th-breaking-track {
  animation-play-state: paused;
}

@keyframes breakingMarquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.th-breaking-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  flex-shrink: 0;
}

.th-breaking-item:hover .th-breaking-title {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.th-breaking-time {
  color: #fecdd3;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.th-breaking-sep {
  color: #fda4af;
  margin: 0 6px;
  font-weight: 700;
}

.th-breaking-title {
  color: #ffffff;
  font-size: 12.5px;
}

.th-breaking-divider {
  color: #fb7185;
  font-size: 9px;
  padding: 0 22px;
  flex-shrink: 0;
  opacity: 0.85;
}

.th-breaking-all {
  color: #ffe4e6 !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
  padding-left: 8px;
}

.th-breaking-all:hover {
  color: #ffffff !important;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .th-breaking-banner,
  .th-breaking-inner,
  .th-breaking-scroller {
    height: 32px;
    line-height: 32px;
  }
  .th-breaking-tag {
    width: 106px;
    height: 22px;
    padding: 0 7px;
    font-size: 9px;
  }
  .th-breaking-title {
    font-size: 11.5px;
  }
  .th-breaking-all {
    display: none;
  }
}

/* Footer Newsletter & Aligned Official Social Buttons */
.th-nl-input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--th-border);
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  background: var(--th-bg);
  color: var(--th-ink);
}

.th-nl-input:focus {
  outline: 2px solid #C8102E;
  outline-offset: -1px;
}

.th-footer-social {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--th-border);
}

.th-footer-social__label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--th-ink);
  margin-bottom: 10px;
}

.th-footer-social__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.th-footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: 3px;
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  transition: transform 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.th-footer-social-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
  color: #ffffff !important;
}

.th-footer-social-btn.is-wa  { background: #1fa855; }
.th-footer-social-btn.is-fb  { background: #1877F2; }
.th-footer-social-btn.is-x   { background: #0f1419; }
.th-footer-social-btn.is-yt  { background: #E60000; }
.th-footer-social-btn.is-ig  { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.th-footer-social-btn.is-tg  { background: #229ED9; }
.th-footer-social-btn.is-rss { background: #E06D1B; }

[data-theme="dark"] .th-footer-social-btn.is-x {
  background: #272c33;
}

/* 3. High-Conversion WhatsApp Share Button (Aligned 34px Geometry with Meta Bar Controls) */
.btn-th-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: #1fa855;
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 3px;
  text-decoration: none !important;
  transition: background 0.15s ease, transform 0.12s ease;
}

.btn-th-whatsapp:hover {
  background: #188a44;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .btn-th-whatsapp {
    height: 30px;
    padding: 0 10px;
    font-size: 10px;
  }
}

/* 4. Trending Search Tag Pills */
.th-tag-pill {
  display: inline-block;
  padding: 4px 10px;
  background: var(--th-bg);
  border: 1px solid var(--th-border);
  color: var(--th-ink);
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.th-tag-pill:hover {
  background: var(--th-ink);
  color: var(--th-bg);
  border-color: var(--th-ink);
}

/* 5. Editorial Drop Cap for Lead Paragraphs */
.th-article-body > p:first-of-type::first-letter {
  font-family: var(--font-serif-display);
  font-size: 3.6rem;
  line-height: 0.82;
  float: left;
  margin: 0.15rem 0.65rem 0 0;
  font-weight: 900;
  color: var(--th-ink);
}

/* 6. Editorial Quote Callout (Bloomberg / Mint Broadsheet Style) */
.th-inarticle-quote {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--th-bg-alt);
  border-left: 4px solid var(--th-red);
  border-radius: 0 4px 4px 0;
}

.th-inarticle-quote blockquote {
  margin: 0;
  font-family: var(--font-serif-display);
  font-size: 19px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.5;
  color: var(--th-ink);
}

.th-inarticle-quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--th-ink-sub);
}

/* 7. Corporate Comparison & Economic Data Tables */
.th-comparison-table-wrap {
  margin: 32px 0;
  overflow-x: auto;
  border: 1px solid var(--th-border);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.th-editorial-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 13.5px;
  text-align: left;
  line-height: 1.5;
}

.th-editorial-table thead th {
  background: #0f172a;
  color: #f8fafc;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--th-red);
}

[data-theme="dark"] .th-editorial-table thead th {
  background: #020617;
  color: #38bdf8;
}

.th-editorial-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--th-border);
  color: var(--th-ink);
}

.th-editorial-table tbody tr:nth-child(even) {
  background: var(--th-bg-alt);
}

.th-editorial-table tbody tr:hover {
  background: rgba(184, 0, 32, 0.04);
}

.th-editorial-table td strong {
  color: var(--th-ink);
  font-weight: 700;
}

/* ==========================================================================
   8. MAGAZINE PERSONALITY FEATURE COMPONENTS (.idr-*) & MOBILE HEADER FIX
   ========================================================================== */
@media (max-width: 767px) {
  .header-outer {
    position: relative;
  }
}

.idr-feature-lead {
  font-size: 19px;
  line-height: 1.85;
  color: var(--th-ink);
  margin-bottom: 24px;
}

.idr-dossier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 30px 0;
  padding: 20px;
  background: var(--th-bg-alt);
  border: 1px solid var(--th-border);
  border-top: 4px solid var(--th-ink);
}

@media (min-width: 720px) {
  .idr-dossier-grid {
    grid-template-columns: 280px 1fr;
    align-items: start;
    padding: 24px;
  }
}

.idr-dossier-photo-wrap {
  background: #1c1a1d;
  border: 1px solid var(--th-border);
  overflow: hidden;
}

.idr-dossier-photo-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.idr-dossier-caption {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.45;
  color: var(--th-ink-sub);
  padding: 10px 12px;
  background: var(--th-bg);
  border-top: 1px solid var(--th-border);
  font-weight: 600;
}

.idr-dossier-meta {
  font-family: var(--font-sans);
}

.idr-dossier-kicker {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--th-red);
  margin-bottom: 6px;
}

.idr-dossier-title {
  font-family: var(--font-serif-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--th-ink);
  margin: 0 0 12px !important;
}

.idr-dossier-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 18px !important;
  font-size: 14px;
  line-height: 1.6;
}

.idr-dossier-list li {
  padding: 7px 0;
  border-bottom: 1px solid var(--th-border);
  color: var(--th-ink-body);
}

.idr-dossier-list li strong {
  color: var(--th-ink);
  display: inline-block;
  min-width: 145px;
}

.idr-ig-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff !important;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.25);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.idr-ig-btn:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

.idr-pullquote {
  margin: 32px 0;
  padding: 24px 22px;
  background: var(--th-bg-opinion);
  border-left: 5px solid var(--th-red);
  border-top: 1px solid var(--th-border);
  border-right: 1px solid var(--th-border);
  border-bottom: 1px solid var(--th-border);
}

.idr-pullquote-text {
  font-family: var(--font-serif-display);
  font-size: clamp(19px, 2.5vw, 24px);
  font-weight: 700;
  line-height: 1.48;
  color: var(--th-ink);
  font-style: italic;
  margin: 0 0 12px !important;
}

.idr-pullquote-attr {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--th-ink-sub);
}

.idr-disciplines-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 26px 0 30px;
  font-family: var(--font-sans);
}

@media (min-width: 640px) {
  .idr-disciplines-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.idr-discipline-card {
  padding: 18px 20px;
  background: var(--th-bg-alt);
  border: 1px solid var(--th-border);
  border-left: 3px solid var(--th-ink);
}

.idr-discipline-card h4 {
  font-family: var(--font-serif-headline);
  font-size: 17px;
  font-weight: 700;
  color: var(--th-ink);
  margin: 0 0 6px !important;
}

.idr-discipline-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--th-ink-sub);
  margin: 0 !important;
}

.idr-stats-banner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 28px 0;
  padding: 20px 22px;
  background: var(--th-bg-alt);
  border: 2px solid var(--th-ink);
  font-family: var(--font-sans);
}

@media (min-width: 640px) {
  .idr-stats-banner {
    grid-template-columns: repeat(3, 1fr);
  }
}

.idr-stat-box {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--th-border);
}

.idr-stat-box:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

@media (min-width: 640px) {
  .idr-stat-box {
    padding-bottom: 0;
    padding-right: 16px;
    border-bottom: none;
    border-right: 1px solid var(--th-border);
  }
  .idr-stat-box:last-child {
    border-right: none;
    padding-right: 0;
  }
}

.idr-stat-num {
  font-family: var(--font-serif-display);
  font-size: 28px;
  font-weight: 900;
  color: var(--th-red);
  line-height: 1.15;
}

.idr-stat-lbl {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--th-ink);
  margin-top: 4px;
}

.idr-stat-sub {
  font-size: 11.5px;
  color: var(--th-ink-muted);
  margin-top: 2px;
}

.idr-qa-section {
  margin: 36px 0;
  padding: 24px 20px;
  background: var(--th-bg-alt);
  border: 1px solid var(--th-border);
  border-top: 4px solid var(--th-red);
}

.idr-qa-note {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--th-ink-sub);
  padding: 12px 16px;
  background: var(--th-bg);
  border-left: 3px solid var(--th-ink);
  margin-bottom: 24px;
}

.idr-qa-item {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--th-border);
}

.idr-qa-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.idr-qa-q {
  font-family: var(--font-serif-headline);
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.42;
  color: var(--th-ink);
  margin: 0 0 10px !important;
}

.idr-qa-q span {
  color: var(--th-red);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.idr-qa-a {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--th-ink-body);
  margin: 0 !important;
}

.idr-closing-spotlight {
  margin: 34px 0;
  padding: 26px 22px;
  background: #141416;
  color: #f8fafc;
  border-left: 5px solid #B00020;
}

.idr-closing-spotlight h3 {
  font-family: var(--font-serif-display);
  font-size: 23px;
  font-weight: 900;
  color: #ffffff !important;
  margin: 0 0 14px !important;
}

.idr-closing-spotlight p {
  font-size: 17px;
  line-height: 1.8;
  color: #e2e8f0 !important;
  margin-bottom: 16px !important;
}

.idr-closing-spotlight p:last-child {
  margin-bottom: 0 !important;
}

.idr-connect-banner {
  margin: 30px 0;
  padding: 20px 22px;
  background: var(--th-bg-alt);
  border: 1px solid var(--th-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-sans);
}



/* ==========================================================================
   OFFICIAL CNN-NEWS18 BRAND INTEGRATION (INDIA DAILY RISE UI)
   ========================================================================== */
.th-masthead-brand {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.th-masthead-logo {
  height: 54px;
  width: auto;
  max-width: 280px;
  display: inline-block;
  object-fit: contain;
  vertical-align: middle;
  margin-bottom: 0;
  transition: transform 0.15s ease;
}

.th-masthead-logo:hover {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .th-masthead-logo {
    height: 40px;
    max-width: 210px;
  }
}

.th-footer-logo {
  height: 44px;
  width: auto;
  max-width: 240px;
  display: inline-block;
  object-fit: contain;
  background: #ffffff;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* Archive Explorer Pills */
.th-archive-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 24px;
}

.th-year-pill {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border: 1px solid var(--th-border);
  background: var(--th-bg);
  color: var(--th-ink);
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.th-year-pill:hover,
.th-year-pill.active {
  background: var(--th-red);
  color: #ffffff;
  border-color: var(--th-red);
}

/* Category Hub & Search Page Utilities */
.th-page-hero {
  padding: 24px 0 16px;
  border-bottom: 2px solid var(--th-ink);
  margin-bottom: 24px;
}

.th-page-title {
  font-family: var(--font-serif-display);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  color: var(--th-ink);
  line-height: 1.15;
}

.th-page-desc {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--th-ink-sub);
  margin-top: 6px;
}

.th-search-box {
  display: flex;
  gap: 8px;
  margin: 16px 0 8px;
  max-width: 640px;
}

.th-search-input {
  flex: 1;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  border: 1px solid var(--th-border);
  background: var(--th-bg);
  color: var(--th-ink);
  border-radius: 3px;
}

.th-sample-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--th-bg-alt);
  border: 1px solid var(--th-border);
  color: var(--th-red);
  padding: 2px 6px;
  border-radius: 2px;
  margin-bottom: 6px;
}

.th-sample-callout {
  margin: 18px 0;
  padding: 14px 18px;
  background: var(--th-bg-alt);
  border-left: 4px solid var(--th-red);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--th-ink);
  line-height: 1.55;
}

/* ==========================================================================
   ACCESSIBILITY, CONTEXTUAL INTERNAL LINKING & LIVE BLOG UTILITIES (SEO)
   ========================================================================== */
.th-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000000;
  background: var(--th-red);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  transition: top 0.15s ease;
}

.th-skip-link:focus {
  top: 0;
  outline: 2px solid #ffffff;
  outline-offset: -3px;
}

.th-also-read-box {
  margin: 22px 0;
  padding: 13px 18px;
  background: var(--th-bg-alt);
  border-left: 4px solid var(--th-red);
  border-top: 1px solid var(--th-border);
  border-right: 1px solid var(--th-border);
  border-bottom: 1px solid var(--th-border);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.th-also-read-kicker {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--th-red);
  flex-shrink: 0;
}

.th-also-read-link {
  font-family: var(--font-serif-headline);
  font-weight: 700;
  color: var(--th-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.th-also-read-link:hover {
  color: var(--th-red);
}

.th-toc-box {
  margin: 0 0 28px;
  padding: 18px 22px;
  background: var(--th-bg-alt);
  border: 1px solid var(--th-border);
  border-top: 3px solid var(--th-ink);
  font-family: var(--font-sans);
}

.th-live-entry {
  position: relative;
  padding: 20px 22px;
  margin-bottom: 18px;
  background: var(--th-bg);
  border: 1px solid var(--th-border);
  border-left: 4px solid var(--th-red);
  border-radius: 3px;
}

.th-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--th-red);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}

/* Broadsheet DataPulse Semantic Comparison Tables & Visual Briefing Cards */
.th-datapulse-table-wrap {
  margin: 26px 0;
  overflow-x: auto;
  border: 1px solid var(--th-border);
  border-top: 3px solid var(--th-ink);
  background: var(--th-bg);
}

.th-data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.5;
  text-align: left;
}

.th-data-table caption {
  padding: 12px 16px;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--th-red);
  background: var(--th-bg-alt);
  border-bottom: 1px solid var(--th-border);
  text-align: left;
}

.th-data-table th {
  padding: 10px 16px;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--th-ink);
  background: var(--th-bg-alt);
  border-bottom: 2px solid var(--th-border);
}

.th-data-table td {
  padding: 11px 16px;
  color: var(--th-ink-body);
  border-bottom: 1px solid var(--th-border);
  vertical-align: top;
}

.th-data-table tbody tr:last-child td {
  border-bottom: none;
}

.th-datapulse-figure {
  margin: 26px 0;
  border: 1px solid var(--th-border);
  background: var(--th-bg-alt);
  padding: 10px;
  border-radius: 4px;
}

.th-datapulse-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.th-ticker-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.th-ticker-link:hover .idx-name {
  text-decoration: underline;
}


