:root {
  --ink: #161412;
  --muted: #655d55;
  --paper: #ead6b8;
  --surface: #fff5df;
  --line: #d2c1ac;
  --saffron: #f47a00;
  --deep-saffron: #d94a00;
  --maroon: #661400;
  --red: #9f1d00;
  --cream: #ffe4ad;
  --soft: #fff8ec;
  --shadow: 0 18px 42px rgba(37, 25, 14, 0.16);
}

body.news-home {
  --ink: #171717;
  --muted: #60646c;
  --paper: #f3f4f6;
  --surface: #ffffff;
  --line: #d9dde5;
  --red: #d71920;
  --maroon: #8c1016;
  --saffron: #ffc400;
  --cream: #fff3bf;
  --soft: #f6f7fa;
  --shadow: 0 14px 34px rgba(10, 15, 25, 0.12);
  background: #f2f3f6;
  font-family: "Nirmala UI", "Noto Sans Devanagari", "Mangal", Arial, sans-serif;
  line-height: 1.55;
}

body.news-home::before {
  display: none;
}

body.news-home .paper-top,
body.news-home .masthead,
body.news-home .nav-ribbon,
body.news-home main,
body.news-home footer {
  width: min(1220px, calc(100% - 24px));
}

body.news-home .paper-top {
  width: 100%;
  padding: 8px max(12px, calc((100vw - 1220px) / 2));
  background: #111827;
  color: #fff;
  border: 0;
}

body.news-home .paper-meta span:first-child {
  padding: 3px 8px;
  background: var(--red);
  border-radius: 3px;
  font-weight: 900;
  text-transform: uppercase;
}

body.news-home .top-actions {
  display: flex;
  gap: 8px;
}

body.news-home .top-actions .secondary-link {
  min-height: 34px;
  padding: 7px 12px;
  background: #fff;
  color: #111827;
  border: 0;
  border-radius: 4px;
  font-weight: 900;
}

body.news-home .masthead {
  margin-top: 0;
  padding: 18px 0;
  min-height: 0;
  grid-template-columns: 1fr auto;
  border: 0;
}

body.news-home .brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

body.news-home .brand img {
  max-width: 180px;
}

body.news-home .brand-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  letter-spacing: 0;
}

body.news-home .brand-title span,
body.news-home .brand-title em {
  display: inline;
  padding: 0;
  background: transparent;
  color: #111827;
  font-family: inherit;
  font-size: clamp(2rem, 5vw, 4.8rem);
  font-style: normal;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: none;
}

body.news-home .brand-title em {
  color: var(--red);
}

body.news-home .brand small {
  margin-top: 6px;
  color: #30343b;
  font-size: 0.96rem;
  font-weight: 800;
}

body.news-home .masthead-tools span {
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 3px;
}

body.news-home .epaper-btn {
  background: var(--saffron);
  color: #171717;
  border: 0;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 900;
}

body.news-home .nav-ribbon {
  width: 100%;
  padding: 0 max(12px, calc((100vw - 1220px) / 2));
  background: var(--red);
  border: 0;
  box-shadow: 0 4px 16px rgba(120, 0, 0, 0.18);
}

body.news-home .nav-ribbon a {
  padding: 13px 15px;
  color: #fff;
  border-radius: 0;
  font-weight: 900;
}

body.news-home .nav-ribbon a:hover {
  background: #9e1218;
}

body.news-home main {
  gap: 16px;
  padding: 16px 0 28px;
}

body.news-home .ticker {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
}

body.news-home .ticker strong {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  background: var(--red);
  color: #fff;
}

body.news-home .ticker p {
  margin: 0;
  padding: 10px 14px;
  color: #171717;
  font-weight: 800;
}

body.news-home .network-hero,
body.news-home .live-stage,
body.news-home .front-grid,
body.news-home .feature-grid,
body.news-home .maha-live-desk,
body.news-home .ai-writer-preview {
  margin: 0;
}

body.news-home .network-hero {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  min-height: 360px;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.76)),
    url("media/dharmveer-news-animated-ai-video-preview.jpg") center / cover;
  color: #fff;
  border: 0;
  border-radius: 4px;
}

body.news-home .network-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.07;
}

body.news-home .network-hero p:not(.kicker) {
  color: #f1f5f9;
  font-size: 1.08rem;
}

body.news-home .kicker {
  color: var(--saffron);
  font-weight: 900;
}

body.news-home .network-stats {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 4px;
  color: #111827;
}

body.news-home .network-stats div {
  border-color: #e3e6ec;
}

body.news-home .network-stats strong {
  color: var(--red);
}

body.news-home .primary-link,
body.news-home .secondary-link {
  border-radius: 4px;
  font-weight: 900;
}

body.news-home .primary-link {
  background: var(--red);
}

body.news-home .secondary-link {
  border-color: var(--red);
  color: var(--red);
}

body.news-home .live-stage {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

body.news-home .live-player,
body.news-home .live-side,
body.news-home .lead-story,
body.news-home .headline-rail,
body.news-home .epaper-card,
body.news-home .feature-grid article,
body.news-home .maha-live-card,
body.news-home .ai-writer-preview,
body.news-home .writer-output,
body.news-home .writer-input {
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

body.news-home .live-side {
  background: #111827;
  color: #fff;
}

body.news-home .live-side h2,
body.news-home .live-side p {
  color: #fff;
}

body.news-home .live-badge,
body.news-home .lead-image span {
  background: var(--red);
  color: #fff;
  border-radius: 3px;
  font-weight: 900;
}

body.news-home .front-grid {
  align-items: stretch;
}

body.news-home .lead-story {
  overflow: hidden;
}

body.news-home .lead-copy h1,
body.news-home .headline-rail h2,
body.news-home .epaper-card strong,
body.news-home .section-heading h2 {
  color: #111827;
}

body.news-home .headline-rail h2 {
  padding-bottom: 10px;
  border-bottom: 4px solid var(--red);
}

body.news-home .headline-rail a {
  color: #111827;
  font-weight: 800;
}

body.news-home .headline-rail a:hover {
  color: var(--red);
}

body.news-home .epaper-card {
  background: linear-gradient(180deg, #fff 0%, #fff1f1 100%);
}

body.news-home .feature-grid article {
  border-top: 5px solid var(--red);
}

body.news-home .feature-grid h3,
body.news-home .maha-live-card h3,
body.news-home .writer-output h3 {
  color: #111827;
}

body.news-home .maha-live-card.active {
  border-color: var(--red);
}

body.news-home footer {
  margin-bottom: 18px;
  padding: 18px;
  background: #111827;
  color: #fff;
  border-radius: 4px;
}

body.news-home footer span {
  color: #e5e7eb;
}

body.bhagva-home {
  --red: #f47a00;
  --maroon: #7a2100;
  --saffron: #ffb000;
  --deep-saffron: #d94a00;
  --line: #e7c082;
  --shadow: 0 16px 36px rgba(122, 33, 0, 0.15);
  background:
    linear-gradient(180deg, #fff9ef 0%, #f7ead4 48%, #f2ddbd 100%);
}

body.bhagva-home .paper-top {
  background: linear-gradient(90deg, #6f1d00, #d94a00 54%, #ff9d00);
}

body.bhagva-home .paper-meta span:first-child,
body.bhagva-home .nav-ribbon,
body.bhagva-home .primary-link,
body.bhagva-home .ticker strong,
body.bhagva-home .live-badge {
  background: linear-gradient(90deg, #d94a00, #ff8a00);
}

body.bhagva-home .nav-ribbon {
  box-shadow: 0 5px 18px rgba(217, 74, 0, 0.24);
}

body.bhagva-home .nav-ribbon a:hover {
  background: #a93400;
}

body.bhagva-home .secondary-link {
  border-color: #d94a00;
  color: #9b3200;
}

body.bhagva-home .epaper-btn {
  background: #ffcf33;
  color: #4a1700;
}

body.bhagva-home .masthead {
  align-items: center;
}

body.bhagva-home .animated-logo-brand {
  position: relative;
  isolation: isolate;
}

body.bhagva-home .brand img {
  position: relative;
  z-index: 1;
  width: min(230px, 38vw);
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(122, 33, 0, 0.18);
  animation: dharmveerLogoFloat 3.8s ease-in-out infinite;
}

body.bhagva-home .logo-orbit {
  display: none;
}

body.bhagva-home .brand-title span,
body.bhagva-home .brand-title em {
  color: #5b1a00;
}

body.bhagva-home .brand-title em {
  color: #d94a00;
}

body.bhagva-home .brand small {
  color: #6f1d00;
}

body.bhagva-home .language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
}

body.bhagva-home .language-toggle button {
  min-height: 30px;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-weight: 900;
}

body.bhagva-home .language-toggle button.active {
  background: #fff;
  color: #7a2100;
}

body.bhagva-home .bhagva-hero {
  background:
    linear-gradient(120deg, #5b1a00 0%, #b63b00 56%, #ff9300 100%);
  color: #fff;
  overflow: hidden;
}

body.bhagva-home .bhagva-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -44% auto;
  width: 46%;
  aspect-ratio: 1;
  border: 34px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

body.bhagva-home .network-hero {
  position: relative;
}

body.bhagva-home .network-stats {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.93);
}

body.bhagva-home .network-stats strong,
body.bhagva-home .headline-rail a:hover,
body.bhagva-home .maha-live-card span,
body.bhagva-home .epaper-card strong {
  color: #d94a00;
}

body.bhagva-home .live-player {
  background: linear-gradient(135deg, #1f0a00, #5b1a00);
}

body.bhagva-home .live-side,
body.bhagva-home footer {
  background: linear-gradient(135deg, #421300, #7a2100);
}

body.bhagva-home .lead-story,
body.bhagva-home .headline-rail,
body.bhagva-home .epaper-card,
body.bhagva-home .feature-grid article,
body.bhagva-home .maha-live-card {
  border-color: #e7c082;
}

body.bhagva-home .text-only-lead .lead-copy {
  padding: 28px;
}

body.bhagva-home .feature-grid article {
  border-top-color: #f47a00;
}

@keyframes dharmveerLogoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-5px) scale(1.025);
  }
}

@keyframes dharmveerLogoOrbit {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  body.news-home .masthead,
  body.news-home .network-hero,
  body.news-home .live-stage {
    grid-template-columns: 1fr;
  }

  body.news-home .brand {
    align-items: flex-start;
  }

  body.news-home .brand img {
    max-width: 116px;
  }

  body.news-home .brand-title {
    display: grid;
    gap: 0;
  }

  body.news-home .ticker {
    grid-template-columns: 1fr;
  }
}

body.bhagva-home {
  --red: #f47a00;
  --maroon: #7a2100;
  --saffron: #ffb000;
  --deep-saffron: #d94a00;
  --line: #e7c082;
  --shadow: 0 16px 36px rgba(122, 33, 0, 0.15);
  background:
    linear-gradient(180deg, #fff9ef 0%, #f7ead4 48%, #f2ddbd 100%);
}

body.bhagva-home .paper-top,
body.bhagva-home .live-side,
body.bhagva-home footer {
  background: linear-gradient(135deg, #421300, #7a2100);
}

body.bhagva-home .paper-meta span:first-child,
body.bhagva-home .nav-ribbon,
body.bhagva-home .primary-link,
body.bhagva-home .ticker strong,
body.bhagva-home .live-badge {
  background: linear-gradient(90deg, #d94a00, #ff8a00);
}

body.bhagva-home .nav-ribbon a:hover {
  background: #a93400;
}

body.bhagva-home .secondary-link {
  border-color: #d94a00;
  color: #9b3200;
}

body.bhagva-home .epaper-btn {
  background: #ffcf33;
  color: #4a1700;
}

body.bhagva-home .brand img {
  width: min(150px, 28vw);
  max-width: 180px;
  padding: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 28px rgba(122, 33, 0, 0.18);
  animation: dharmveerLogoFloat 3.8s ease-in-out infinite;
}

body.bhagva-home .logo-orbit {
  position: absolute;
  left: 4px;
  width: min(166px, 31vw);
  aspect-ratio: 1;
  border: 3px solid rgba(255, 138, 0, 0.55);
  border-top-color: #7a2100;
  border-radius: 50%;
  animation: dharmveerLogoOrbit 5s linear infinite;
}

body.bhagva-home .language-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
}

body.bhagva-home .language-toggle button {
  min-height: 30px;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-weight: 900;
}

body.bhagva-home .language-toggle button.active {
  background: #fff;
  color: #7a2100;
}

body.bhagva-home .bhagva-hero,
body.bhagva-home .network-hero.bhagva-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, #5b1a00 0%, #b63b00 56%, #ff9300 100%);
  color: #fff;
}

body.bhagva-home .bhagva-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -44% auto;
  width: 46%;
  aspect-ratio: 1;
  border: 34px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

body.bhagva-home .lead-image {
  display: none;
}

body.bhagva-home .text-only-lead .lead-copy {
  padding: 28px;
}

body.bhagva-home .network-stats strong,
body.bhagva-home .headline-rail a:hover,
body.bhagva-home .maha-live-card span,
body.bhagva-home .epaper-card strong,
body.bhagva-home .brand-title em {
  color: #d94a00;
}

body.bhagva-home .brand-title span {
  color: #5b1a00;
}

body.bhagva-home .lead-story,
body.bhagva-home .headline-rail,
body.bhagva-home .epaper-card,
body.bhagva-home .feature-grid article,
body.bhagva-home .maha-live-card,
body.bhagva-home .live-player {
  border-color: #e7c082;
}

/* Final Dharmveer News bhagva homepage lock. */
body.bhagva-home {
  --red: #f47a00;
  --maroon: #7a2100;
  --saffron: #ffb000;
  --deep-saffron: #d94a00;
  --line: #e7c082;
  --shadow: 0 16px 36px rgba(122, 33, 0, 0.15);
  background:
    linear-gradient(180deg, #fff9ef 0%, #f7ead4 48%, #f2ddbd 100%);
}

body.bhagva-home .paper-top,
body.bhagva-home .live-side,
body.bhagva-home footer {
  background: linear-gradient(135deg, #421300, #7a2100);
}

body.bhagva-home .paper-meta span:first-child,
body.bhagva-home .nav-ribbon,
body.bhagva-home .primary-link,
body.bhagva-home .ticker strong,
body.bhagva-home .live-badge {
  background: linear-gradient(90deg, #d94a00, #ff8a00);
}

body.bhagva-home .nav-ribbon a:hover {
  background: #a93400;
}

body.bhagva-home .secondary-link {
  border-color: #d94a00;
  color: #9b3200;
}

body.bhagva-home .epaper-btn {
  background: #ffcf33;
  color: #4a1700;
}

body.bhagva-home .brand img {
  width: min(150px, 28vw);
  max-width: 180px;
  padding: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 28px rgba(122, 33, 0, 0.18);
  animation: dharmveerLogoFloat 3.8s ease-in-out infinite;
}

body.bhagva-home .logo-orbit {
  position: absolute;
  left: 4px;
  width: min(166px, 31vw);
  aspect-ratio: 1;
  border: 3px solid rgba(255, 138, 0, 0.55);
  border-top-color: #7a2100;
  border-radius: 50%;
  animation: dharmveerLogoOrbit 5s linear infinite;
}

body.bhagva-home .language-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
}

body.bhagva-home .language-toggle button {
  min-height: 30px;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-weight: 900;
}

body.bhagva-home .language-toggle button.active {
  background: #fff;
  color: #7a2100;
}

body.bhagva-home .bhagva-hero,
body.bhagva-home .network-hero.bhagva-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, #5b1a00 0%, #b63b00 56%, #ff9300 100%);
  color: #fff;
}

body.bhagva-home .bhagva-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -44% auto;
  width: 46%;
  aspect-ratio: 1;
  border: 34px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

body.bhagva-home .lead-image {
  display: none;
}

body.bhagva-home .text-only-lead .lead-copy {
  padding: 28px;
}

body.bhagva-home .network-stats strong,
body.bhagva-home .headline-rail a:hover,
body.bhagva-home .maha-live-card span,
body.bhagva-home .epaper-card strong,
body.bhagva-home .brand-title em {
  color: #d94a00;
}

body.bhagva-home .brand-title span {
  color: #5b1a00;
}

body.bhagva-home .lead-story,
body.bhagva-home .headline-rail,
body.bhagva-home .epaper-card,
body.bhagva-home .feature-grid article,
body.bhagva-home .maha-live-card,
body.bhagva-home .live-player {
  border-color: #e7c082;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(244, 122, 0, 0.22), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(102, 20, 0, 0.16), transparent 30%),
    linear-gradient(180deg, #f2dfbf 0, #ead6b8 44%, #dcc39c 100%);
  font-family: "Kohinoor Devanagari", "Nirmala UI", "Noto Serif Devanagari", "Mangal", serif;
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(102, 20, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 20, 0, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(#000, transparent 62%);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.paper-top,
.masthead,
.nav-ribbon,
main,
.footer {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

main {
  display: flex;
  flex-direction: column;
}

body:has(.edition-masthead) main {
  width: min(1280px, calc(100% - 20px));
}

body:has(.epaper-viewer) main {
  width: min(1280px, calc(100% - 20px));
}

.paper-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}

.paper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 800;
}

.top-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--maroon);
  font-weight: 900;
}

.masthead {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 0;
  padding: 20px 18px 14px;
  background:
    radial-gradient(circle at center top, rgba(255, 255, 255, 0.9), transparent 45%),
    linear-gradient(180deg, #fff8e9 0, #ffe7b8 62%, #dca15f 100%);
  border: 1px solid var(--line);
  border-top: 0;
  border-bottom: 7px solid var(--ink);
  border-left: 0;
  border-right: 0;
}

.masthead-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.masthead-tools span,
.epaper-btn {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--maroon);
  background: var(--soft);
  font-weight: 950;
}

.masthead-tools span {
  display: grid;
  place-items: center;
  padding: 0 12px;
  font-size: 0.78rem;
}

.brand {
  display: grid;
  justify-content: center;
  align-items: center;
  color: inherit;
  text-align: center;
  text-decoration: none;
  min-width: 0;
}

.brand > span:last-child {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.brand-title {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--deep-saffron);
  font-family: "Kohinoor Devanagari", "Noto Serif Devanagari", "Nirmala UI", "Mangal", serif;
  font-weight: 1000;
  letter-spacing: 0;
  min-width: 0;
}

.brand-title span {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  padding: 2px 12px 0;
  margin-bottom: 0;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-size: clamp(0.9rem, 1.45vw, 1.2rem);
  line-height: 1;
  font-weight: 1000;
  -webkit-text-stroke: 0;
}

.brand-title em {
  display: block;
  color: var(--red);
  font-style: normal;
  font-size: clamp(4.1rem, 9vw, 8.4rem);
  line-height: 1;
  font-weight: 1000;
  -webkit-text-stroke: 2px var(--red);
  text-shadow:
    0 2px 0 #fff,
    0 5px 0 rgba(102, 20, 0, 0.16);
}

.brand small {
  display: block;
  margin-top: 10px;
  color: var(--maroon);
  font-size: clamp(0.95rem, 1.7vw, 1.15rem);
  line-height: 1.35;
  font-weight: 950;
}

.epaper-btn,
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--saffron), var(--maroon));
  border: 0;
  border-radius: 2px;
  padding: 0 16px;
  font-weight: 950;
}

.nav-ribbon {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  background: var(--ink);
  border-bottom: 4px solid var(--saffron);
  box-shadow: none;
}

.nav-ribbon a {
  flex: 0 0 auto;
  padding: 12px 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.nav-ribbon a:hover {
  background: var(--red);
}

.ticker {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
  border: 1px solid var(--line);
  background: #fff3d7;
  box-shadow: var(--shadow);
}

.ticker strong {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 8px 14px;
  color: #fff;
  background: var(--red);
}

.ticker p {
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.network-hero,
.ai-writer-preview,
.feature-board,
.automation-flow,
.citizen-reporter,
.admin-panel {
  margin: 18px 0 24px;
  padding: clamp(20px, 4vw, 34px);
  background: linear-gradient(135deg, rgba(255, 245, 223, 0.98), rgba(255, 228, 173, 0.72));
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.network-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: center;
}

.network-hero h1 {
  max-width: 820px;
  font-size: clamp(1.9rem, 4.2vw, 3.8rem);
  line-height: 1.16;
}

.network-hero p:not(.kicker) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.02rem;
}

.network-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.network-stats div,
.writer-input,
.writer-output,
.admin-output,
.flow-steps div {
  padding: 16px;
  background: rgba(255, 248, 236, 0.9);
  border: 1px solid var(--line);
}

.network-stats strong {
  color: var(--red);
  font-size: 1.8rem;
}

.network-stats span {
  color: var(--muted);
  font-weight: 900;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.primary-link,
.secondary-link {
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0 16px;
  border-radius: 2px;
  font-weight: 950;
  text-decoration: none;
}

.primary-link {
  color: #fff;
  background: linear-gradient(135deg, var(--saffron), var(--maroon));
}

.secondary-link {
  color: var(--maroon);
  background: var(--cream);
  border: 1px solid var(--line);
}

.writer-grid,
.admin-writer-grid,
.citizen-reporter {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 16px;
}

.writer-input,
.writer-output,
.admin-output {
  display: grid;
  gap: 10px;
}

.writer-input label {
  color: var(--muted);
  font-weight: 900;
}

.writer-input textarea,
.writer-input select,
.report-form input,
.report-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}

.writer-input textarea,
.report-form textarea {
  min-height: 130px;
  resize: vertical;
}

.writer-output span,
.admin-output span {
  color: var(--red);
  font-weight: 950;
}

.writer-output h3,
.admin-output h3 {
  margin: 0;
  color: var(--maroon);
}

.feature-grid,
.admin-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article,
.admin-cards article {
  padding: 18px;
  background: linear-gradient(180deg, #fff8ec, #ffe4ad);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.feature-grid span {
  font-size: 1.6rem;
}

.feature-grid h3,
.admin-cards h3 {
  margin: 8px 0;
  color: var(--maroon);
  line-height: 1.35;
}

.feature-grid p,
.admin-cards p {
  margin: 0;
  color: var(--muted);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.flow-steps strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--red);
  border-radius: 50%;
  margin-bottom: 10px;
}

.flow-steps span {
  color: var(--ink);
  font-weight: 900;
}

.report-form {
  display: grid;
  gap: 10px;
}

.admin-shell {
  width: min(1280px, calc(100% - 20px));
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0 34px;
}

.admin-sidebar {
  position: sticky;
  top: 14px;
  align-self: start;
  padding: 18px;
  background: #202020;
  color: #fff;
  border-radius: 2px;
}

.admin-brand {
  display: grid;
  margin-bottom: 18px;
  color: #fff;
  text-decoration: none;
}

.admin-brand span {
  color: #ffb34d;
  font-weight: 950;
}

.admin-brand strong {
  color: var(--deep-saffron);
  font-size: 2.4rem;
  line-height: 1;
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
}

.admin-sidebar a:not(.admin-brand) {
  padding: 10px 12px;
  color: #f7f2ea;
  background: #303030;
  text-decoration: none;
  font-weight: 900;
}

.admin-content {
  min-width: 0;
}

.admin-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-topline h1 {
  margin: 0;
  color: var(--maroon);
}

.article-topbar {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.site-brand-bug {
  position: fixed;
  left: 14px;
  top: 14px;
  z-index: 30;
  display: grid;
  justify-items: center;
  padding: 7px 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--saffron), var(--maroon));
  border: 2px solid #fff4dc;
  box-shadow: 0 10px 24px rgba(38, 28, 18, 0.22);
  text-decoration: none;
}

.site-brand-bug strong {
  color: #fff4dc;
  font-size: 1.28rem;
  line-height: 0.94;
  font-weight: 1000;
  text-shadow: 0 2px 0 rgba(80, 12, 0, 0.35);
}

.site-brand-bug span {
  color: #fff;
  font-size: 0.74rem;
  line-height: 1;
  font-weight: 1000;
}

.site-brand-bug small {
  color: #fff4dc;
  font-size: 0.52rem;
  font-weight: 1000;
  line-height: 1;
}

.article-brand {
  display: grid;
  justify-items: start;
  color: var(--deep-saffron);
  text-decoration: none;
}

.article-brand strong {
  color: var(--deep-saffron);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 0.88;
  font-weight: 1000;
  -webkit-text-stroke: 1px var(--deep-saffron);
  text-shadow:
    0 2px 0 #fff6e7,
    0 5px 0 rgba(102, 20, 0, 0.12);
}

.article-brand span {
  color: var(--maroon);
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 1000;
}

.article-brand small {
  color: #8a2a00;
  font-size: 0.82rem;
  font-weight: 1000;
  line-height: 1.15;
}

.article-topbar nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.article-topbar nav a {
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.article-shell {
  width: min(1180px, calc(100% - 28px));
  display: block;
  margin: 22px auto 42px;
}

.article-page {
  padding: clamp(22px, 4vw, 44px);
  background:
    linear-gradient(rgba(28, 27, 25, 0.022) 1px, transparent 1px),
    #fffdf8;
  background-size: 100% 26px;
  border: 1px solid #cfc3b4;
  box-shadow: 0 24px 60px rgba(38, 28, 18, 0.16);
}

.article-paper-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 5px double var(--ink);
  color: var(--ink);
  font-weight: 900;
}

.article-paper-head strong {
  display: grid;
  justify-items: center;
  color: var(--deep-saffron);
  font-family: "Noto Serif Devanagari", "Mukta", "Noto Sans Devanagari", "Mangal", serif;
  line-height: 0.88;
  font-weight: 1000;
  text-shadow:
    0 2px 0 #fff,
    0 4px 0 rgba(102, 20, 0, 0.12);
}

.article-paper-head .article-logo-name-only {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 18px);
  line-height: 1;
  font-family: "Kokila", "Noto Serif Devanagari", "Mukta", "Mangal", serif;
  text-shadow: 0 2px 0 #fff8dc, 0 4px 0 rgba(80, 0, 0, 0.14);
  white-space: nowrap;
}

.article-paper-head .article-logo-main {
  color: #a70e17;
  font-size: clamp(5.4rem, 10.2vw, 9.4rem);
  line-height: 0.74;
  font-weight: 1000;
  letter-spacing: 0;
  -webkit-text-stroke: 0.8px #6e0007;
}

.article-paper-head .article-logo-news {
  color: #fffaf0;
  font-family: "Noto Sans Devanagari", "Mukta", "Nirmala UI", "Mangal", sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.55rem);
  line-height: 1;
  font-weight: 1000;
  font-style: normal;
  margin-bottom: clamp(0.46rem, 1vw, 0.82rem);
  padding: 0.24em 0.48em 0.2em;
  background: #111827;
  border: 3px solid #a70e17;
  border-radius: 2px;
  text-shadow: none;
  box-shadow: inset 0 0 0 2px #fff8dc, 0 3px 0 rgba(80, 0, 0, 0.16);
  -webkit-text-stroke: 0;
}

.article-paper-head small {
  color: #8a2a00;
  font-size: clamp(0.9rem, 1.45vw, 1.22rem);
  line-height: 1.12;
  margin-top: 4px;
  -webkit-text-stroke: 0;
}

.article-paper-head span:last-child {
  text-align: right;
}

.article-section-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  margin-bottom: 16px;
  color: var(--maroon);
  border-bottom: 2px solid var(--red);
  font-weight: 950;
}

.article-page h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Serif Devanagari", "Mukta", "Noto Sans Devanagari", "Mangal", serif;
  font-size: clamp(2.4rem, 5.8vw, 5.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.article-summary {
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 800;
  border-left: 5px solid var(--deep-saffron);
  padding-left: 14px;
}

.article-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0 16px;
  color: var(--muted);
  border-top: 1px solid #cfc3b4;
  border-bottom: 1px solid #cfc3b4;
  font-weight: 900;
}

.article-page img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  border: 1px solid #cfc3b4;
}

.article-body {
  columns: 3 230px;
  column-gap: 30px;
  column-rule: 1px solid #d8cdbf;
}

.article-body p {
  margin-top: 0;
  color: #312a24;
  font-size: 1.02rem;
  line-height: 1.65;
}

.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.article-tags span {
  padding: 5px 9px;
  color: var(--maroon);
  background: var(--cream);
  border: 1px solid var(--line);
  font-weight: 900;
}

.article-language-links,
.article-language-bar {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.article-language-links a,
.article-language-bar a {
  padding: 7px 11px;
  color: #8f2a00;
  background: #fff4e8;
  border: 1px solid #f0b46c;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.article-language-links .article-pdf-link,
.article-language-bar .article-pdf-link {
  color: #fff;
  background: #1c1b19;
  border-color: #1c1b19;
}

.article-actions {
  position: fixed;
  top: 92px;
  right: 18px;
  z-index: 10;
  display: grid;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(38, 28, 18, 0.16);
  backdrop-filter: blur(10px);
}

.article-actions button,
.article-actions a {
  width: 38px;
  height: 38px;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  background: #1c1b19;
  border: 0;
  border-radius: 2px;
  font-weight: 950;
  font-size: 1.05rem;
  text-decoration: none;
}

.article-actions button:hover,
.article-actions a:hover {
  background: var(--deep-saffron);
}

.article-page {
  position: relative;
  overflow: hidden;
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 58px);
  background:
    linear-gradient(90deg, rgba(25, 25, 25, 0.035) 1px, transparent 1px),
    linear-gradient(#fffdf7, #fbf7ee);
  background-size: 42px 100%, 100% 100%;
  border: 1px solid #1f2933;
  box-shadow:
    0 1px 0 #fff inset,
    0 28px 80px rgba(20, 18, 14, 0.22);
}

.article-page::before {
  content: "SPECIAL EDITORIAL";
  display: block;
  margin-bottom: 16px;
  padding: 10px 0;
  color: #fffaf0;
  background: linear-gradient(90deg, #111827 0%, #9f1239 46%, #f59e0b 100%);
  border-top: 4px solid #111827;
  border-bottom: 3px solid #f59e0b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-align: center;
}

body[data-article-lang="mr"] .article-page::before {
  content: "विशेष संपादकीय";
  font-family: "Noto Serif Devanagari", "Mukta", "Nirmala UI", serif;
  letter-spacing: 0.04em;
}

body[data-article-lang="hi"] .article-page::before {
  content: "विशेष संपादकीय";
  font-family: "Noto Serif Devanagari", "Mukta", "Nirmala UI", serif;
  letter-spacing: 0.04em;
}

.article-paper-head {
  border-bottom: 2px solid #111827;
  padding-bottom: 6px;
}

.article-section-line {
  margin-top: 10px;
  padding: 10px 12px;
  color: #7f1d1d;
  background:
    linear-gradient(90deg, rgba(255, 214, 10, 0.18), rgba(255, 255, 255, 0.9) 42%, rgba(185, 28, 28, 0.12)),
    #fffdf7;
  border-top: 3px solid #b91c1c;
  border-bottom: 3px solid #111827;
  font-family: Georgia, "Times New Roman", serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-page h1 {
  max-width: 900px;
  margin: 20px auto 14px;
  color: #101820;
  font-family: Georgia, "Times New Roman", "Noto Serif Devanagari", serif;
  font-size: clamp(2.15rem, 4.6vw, 4.65rem);
  line-height: 1.05;
  text-align: center;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
  padding-bottom: 12px;
  border-bottom: 5px solid #b91c1c;
  box-shadow: 0 3px 0 #f59e0b;
}

.article-summary {
  max-width: 780px;
  margin: 0 auto 18px;
  padding: 16px 18px 0;
  color: #3d4653;
  border-top: 1px solid #9ca3af;
  border-left: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif Devanagari", serif;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.article-language-bar {
  justify-content: center;
  gap: 10px;
  margin: 18px 0 20px;
}

.article-language-bar a,
.article-language-links a {
  border-radius: 2px;
  color: #fffaf0;
  background: linear-gradient(180deg, #b91c1c, #7f1d1d);
  border: 1px solid #111827;
  box-shadow: 3px 3px 0 #111827;
}

.article-meta {
  justify-content: center;
  margin-bottom: 22px;
  color: #111827;
  border-color: #111827;
  font-family: Georgia, "Times New Roman", serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.article-page img {
  max-height: 520px;
  margin: 0 auto 26px;
  border: 5px solid #111827;
  filter: saturate(0.92) contrast(1.06);
}

.article-body {
  max-width: 980px;
  margin: 0 auto;
  columns: 2 360px;
  column-gap: 46px;
  column-rule: 1px solid #111827;
}

.article-body p {
  margin-bottom: 1.02rem;
  color: #1f2933;
  font-family: Georgia, "Times New Roman", "Noto Serif Devanagari", serif;
  font-size: 1.08rem;
  line-height: 1.78;
}

.article-body p:first-child::first-letter {
  float: left;
  padding: 10px 10px 4px 0;
  color: #111827;
  font-size: 5rem;
  line-height: 0.76;
  font-weight: 900;
}

.article-body strong {
  color: #111827;
  font-family: Georgia, "Times New Roman", "Noto Serif Devanagari", serif;
  font-size: 1.18rem;
}

.news-card {
  cursor: pointer;
}

.news-card:focus-visible {
  outline: 3px solid var(--deep-saffron);
  outline-offset: 3px;
}

.live-control-grid,
.live-stage {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
}

.live-setup-card,
.live-side {
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.live-page {
  width: min(1280px, calc(100% - 20px));
  padding: 18px 0 34px;
}

.live-header {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  background: #202020;
  color: #fff;
}

.live-header h1 {
  margin: 0;
  color: #fff4dc;
}

.live-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  border: 1px solid #333;
}

.live-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.tv-logo-overlay {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  color: #fff;
  background: rgba(116, 24, 0, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.tv-logo-overlay span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--maroon);
  background: #ffb34d;
  border-radius: 50%;
  font-weight: 1000;
}

.tv-logo-overlay strong {
  font-size: 0.95rem;
  font-weight: 1000;
}

.obs-overlay-body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: transparent;
}

.obs-overlay-body::before {
  display: none;
}

.live-overlay-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: transparent;
}

.obs-logo {
  position: fixed;
  top: 34px;
  right: 44px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #fff;
  background: #e65100;
  border: 4px solid #fff;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.48),
    0 0 0 3px rgba(255, 138, 0, 0.7);
}

.obs-logo.image-logo {
  width: 230px;
  min-height: 138px;
  justify-content: center;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  border-color: #ff8a00;
  border-radius: 6px;
}

.obs-logo.image-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 126px;
  object-fit: contain;
}

.obs-logo span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #741800;
  background: #fff4dc;
  border-radius: 50%;
  font-size: 1.85rem;
  font-weight: 1000;
}

.obs-logo strong {
  display: block;
  color: #fff;
  font-size: 2.15rem;
  line-height: 0.9;
  font-weight: 1000;
  text-shadow:
    0 2px 0 rgba(116, 24, 0, 0.5),
    0 0 12px rgba(255, 255, 255, 0.18);
}

.obs-logo small {
  display: block;
  color: #fff4dc;
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: 0;
}

.obs-live-tag {
  position: fixed;
  top: 122px;
  right: 44px;
  z-index: 20;
  padding: 6px 14px;
  color: #fff;
  background: #111;
  border-left: 6px solid #ff8a00;
  font-weight: 1000;
  letter-spacing: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.obs-live-tag span {
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: #ff1d1d;
  box-shadow: 0 0 0 rgba(255, 29, 29, 0.8);
  animation: livePulse 1.1s infinite;
}

.coming-soon-screen {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 7vw;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(255, 138, 0, 0.36), transparent 34%),
    linear-gradient(135deg, rgba(116, 24, 0, 0.94), rgba(230, 81, 0, 0.88));
}

.coming-soon-screen div {
  text-align: center;
  padding: 36px;
  border: 3px solid rgba(255, 244, 220, 0.72);
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.coming-soon-screen p {
  margin: 0 0 10px;
  color: #ffdf9b;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 1000;
}

.coming-soon-screen h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3.2rem, 8vw, 8rem);
  line-height: 1;
  text-shadow: 0 6px 0 rgba(116, 24, 0, 0.42);
}

.coming-soon-screen span {
  display: block;
  margin-top: 18px;
  color: #fff4dc;
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 950;
}

.obs-lower-third {
  position: fixed;
  z-index: 20;
  left: 26px;
  right: 26px;
  bottom: 82px;
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 86px;
  color: #fff;
  background: rgba(18, 18, 18, 0.96);
  border: 3px solid #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.flash-news-strip {
  position: fixed;
  z-index: 20;
  left: 26px;
  right: 26px;
  bottom: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 46px;
  color: #111;
  background: #fff;
  border: 3px solid #ff8a00;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: flashBarGlow 1.2s infinite alternate;
}

.flash-news-strip strong {
  display: grid;
  place-items: center;
  padding: 0 18px;
  color: #fff;
  background: #ff8a00;
  font-weight: 1000;
}

.flash-marquee {
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.flash-marquee p,
.flash-news-strip p {
  margin: 0;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 100%;
  padding: 0 34px;
  color: #741800;
  font-size: 1.08rem;
  font-weight: 950;
  animation: flashScroll 19s linear infinite;
}

.breaking-label {
  display: grid;
  place-items: center;
  padding: 0 20px;
  background: linear-gradient(180deg, #ff2a2a, #a50000);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 1000;
  text-align: center;
}

.breaking-copy {
  display: grid;
  align-content: center;
  padding: 10px 18px;
  background: #fff;
  color: #111;
}

.breaking-copy strong {
  color: #b00000;
  font-size: 1.55rem;
  line-height: 1.15;
  font-weight: 950;
}

.breaking-copy span {
  margin-top: 5px;
  color: #333;
  font-size: 1rem;
  font-weight: 900;
}

@keyframes livePulse {
  0% {
    transform: scale(0.86);
    box-shadow: 0 0 0 0 rgba(255, 29, 29, 0.78);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 9px rgba(255, 29, 29, 0);
  }

  100% {
    transform: scale(0.86);
    box-shadow: 0 0 0 0 rgba(255, 29, 29, 0);
  }
}

@keyframes flashBarGlow {
  from {
    border-color: #ff8a00;
  }

  to {
    border-color: #ff1d1d;
  }
}

@keyframes flashScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

@keyframes anchorTalk {
  from {
    transform: translateY(0) scale(1);
    box-shadow:
      0 20px 48px rgba(0, 0, 0, 0.36),
      inset 0 -22px 40px rgba(68, 10, 0, 0.34);
  }

  to {
    transform: translateY(-4px) scale(1.025);
    box-shadow:
      0 26px 58px rgba(0, 0, 0, 0.42),
      inset 0 -16px 34px rgba(68, 10, 0, 0.28);
  }
}

@keyframes promoSweep {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.ai-live-body {
  min-height: 100vh;
  overflow: hidden;
  background: #15110f;
}

.ai-live-body::before {
  display: none;
}

.ai-live-app {
  width: 100vw;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0;
  margin: 0;
  background: #15110f;
}

.ai-broadcast {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 76% 18%, rgba(255, 153, 0, 0.38), transparent 24%),
    linear-gradient(135deg, #2b0500 0%, #7f1700 45%, #d45600 100%);
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.ai-live-topbar {
  position: absolute;
  top: 24px;
  left: 26px;
  right: 26px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.ai-live-topbar img {
  width: 210px;
  max-height: 118px;
  object-fit: contain;
  padding: 7px;
  background: rgba(255, 255, 255, 0.96);
  border: 4px solid #ff8a00;
  border-radius: 6px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.ai-live-topbar div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(10, 10, 10, 0.94);
  border-left: 6px solid #ff1d1d;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

.ai-live-topbar span {
  color: #fff;
  font-weight: 1000;
}

.ai-live-topbar strong {
  color: #ffdf9b;
  font-size: 1.05rem;
}

.ai-news-scene {
  height: calc(100% - 160px);
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 142px 54px 118px;
}

.ai-anchor-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.ai-anchor-face {
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 36%, #fff2cf 0 18%, transparent 19%),
    linear-gradient(145deg, #ffb34d, #8f1c00);
  border: 7px solid #fff5df;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.36),
    inset 0 -22px 40px rgba(68, 10, 0, 0.34);
}

.ai-anchor-face span {
  color: #fff;
  font-size: 4.4rem;
  line-height: 1;
  font-weight: 1000;
  text-shadow: 0 5px 0 rgba(80, 12, 0, 0.36);
}

.anchor-speaking .ai-anchor-face {
  animation: anchorTalk 0.52s ease-in-out infinite alternate;
}

.ai-anchor-panel p {
  margin: 0;
  padding: 7px 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-weight: 950;
}

.ai-program-panel {
  display: grid;
  grid-template-rows: minmax(220px, 0.86fr) auto;
  gap: 14px;
  min-width: 0;
}

.ai-media-window {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: #111;
  border: 5px solid #fff;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
}

.ai-media-window video,
.ai-media-window img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.ai-media-window span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 9px 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  font-weight: 950;
}

.ai-media-placeholder {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: grid;
  place-items: center;
  color: #ffdf9b;
  background:
    radial-gradient(circle at center, rgba(255, 138, 0, 0.38), transparent 36%),
    linear-gradient(135deg, #250300, #7f1700);
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 1000;
}

.dharmveer-promo-scene {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 82% 22%, rgba(255, 196, 94, 0.42), transparent 28%),
    linear-gradient(135deg, #210300 0%, #8b1a00 48%, #ee7600 100%);
  background-size: 30px 30px, 30px 30px, auto, auto;
}

.dharmveer-promo-scene::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 180deg, transparent, rgba(255, 255, 255, 0.18), transparent 30%);
  animation: promoSweep 7s linear infinite;
}

.dharmveer-promo-scene img {
  position: relative;
  z-index: 1;
  width: 220px;
  max-height: 150px;
  object-fit: contain;
  padding: 8px;
  background: rgba(255, 255, 255, 0.96);
  border: 4px solid #ffdf9b;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.dharmveer-promo-scene div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.dharmveer-promo-scene span {
  width: fit-content;
  padding: 5px 12px;
  color: #741800;
  background: #ffdf9b;
  font-weight: 1000;
}

.dharmveer-promo-scene strong {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 5.6rem);
  line-height: 0.95;
  font-weight: 1000;
  text-shadow: 0 6px 0 rgba(82, 12, 0, 0.42);
}

.dharmveer-promo-scene p {
  max-width: 760px;
  margin: 0;
  color: #fff8ec;
  font-size: clamp(1.05rem, 2.2vw, 1.75rem);
  line-height: 1.22;
  font-weight: 950;
}

.dharmveer-promo-scene small {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 1;
  padding: 5px 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
  font-weight: 900;
}

.ai-headline-card {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 20px 24px;
  background: rgba(255, 248, 236, 0.96);
  color: #18110c;
  border: 5px solid #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.ai-headline-card span {
  width: fit-content;
  padding: 5px 12px;
  color: #fff;
  background: #b00000;
  font-weight: 1000;
}

.ai-headline-card h1 {
  color: #741800;
  font-size: clamp(1.6rem, 3.6vw, 3.2rem);
  line-height: 1.04;
  font-weight: 1000;
}

.ai-headline-card p {
  margin: 0;
  color: #33221a;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 900;
}

.ai-lower-third {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 74px;
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 78px;
  border: 3px solid #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.ai-lower-third strong {
  display: grid;
  place-items: center;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(180deg, #ff2a2a, #a50000);
  font-size: 1.38rem;
  text-align: center;
}

.ai-lower-third p {
  margin: 0;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 10px 18px;
  color: #b00000;
  background: #fff;
  font-size: 1.42rem;
  line-height: 1.18;
  font-weight: 950;
}

.ai-flash-strip {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 42px;
  color: #111;
  background: #fff;
  border: 3px solid #ff8a00;
  overflow: hidden;
  animation: flashBarGlow 1.2s infinite alternate;
}

.ai-flash-strip strong {
  display: grid;
  place-items: center;
  padding: 0 18px;
  color: #fff;
  background: #ff8a00;
  font-weight: 1000;
}

.ai-flash-strip div {
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.ai-flash-strip p {
  flex: 0 0 auto;
  min-width: 100%;
  margin: 0;
  padding: 0 34px;
  color: #741800;
  font-size: 1.02rem;
  font-weight: 950;
  animation: flashScroll 20s linear infinite;
}

.ai-live-control {
  min-height: 100vh;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  color: #fff4dc;
  background: #1f1b18;
  border-left: 1px solid rgba(255, 228, 173, 0.18);
}

.ai-live-control h2 {
  margin: 0;
  color: #ffb34d;
  font-size: 1.35rem;
}

.ai-live-control label {
  color: #fff;
  font-weight: 900;
}

.ai-live-control textarea,
.ai-live-control input {
  width: 100%;
  min-height: 42px;
  padding: 10px;
  color: #161412;
  background: #fff8ec;
  border: 1px solid #ffb34d;
  border-radius: 2px;
}

.ai-live-control textarea {
  min-height: 118px;
  resize: vertical;
}

.ai-control-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 8px;
}

.ai-record-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ai-auto-live-card {
  display: grid;
  gap: 4px;
  padding: 10px;
  color: #fff;
  background: rgba(0, 107, 72, 0.34);
  border: 1px solid rgba(168, 240, 194, 0.42);
}

.ai-auto-live-card strong {
  color: #a8f0c2;
  font-size: 0.98rem;
}

.ai-auto-live-card span {
  color: #f6ead9;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.35;
}

.ai-control-actions button,
.ai-record-actions button {
  min-height: 40px;
  color: #fff;
  background: #9f1d00;
  border: 0;
  border-radius: 2px;
  font-weight: 950;
}

.ai-record-actions button:last-child {
  background: #3f3a35;
}

.ai-record-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.ai-upload-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ai-upload-links a {
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  color: #741800;
  background: #ffdf9b;
  border: 1px solid #ffb34d;
  border-radius: 2px;
  font-size: 0.88rem;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
}

.ai-live-control p {
  margin: 8px 0 0;
  color: #d8cdbf;
  font-size: 0.92rem;
  line-height: 1.45;
}

.ai-live-control p strong {
  color: #ffdf9b;
  overflow-wrap: anywhere;
}

.ai-live-body.clean-output .ai-live-app {
  grid-template-columns: 1fr;
}

.ai-live-body.clean-output .ai-live-control {
  display: none;
}

.ai-live-body.clean-output .ai-broadcast {
  min-height: 100vh;
}

.encoder-body {
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 228, 173, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #161412, #3a1208 58%, #8c2500);
  background-size: 100% 30px, auto;
}

.encoder-body::before {
  display: none;
}

.encoder-app {
  width: min(1360px, calc(100% - 24px));
  padding: 18px 0 34px;
  color: #fff4dc;
}

.encoder-header {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  background: #202020;
  border: 1px solid rgba(255, 179, 77, 0.24);
}

.encoder-header h1 {
  margin: 0;
  color: #fff;
}

.encoder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.encoder-preview-panel,
.platform-panel {
  background: rgba(20, 18, 16, 0.94);
  border: 1px solid rgba(255, 179, 77, 0.28);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.encoder-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.encoder-screen video,
.encoder-screen canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.encoder-screen video {
  opacity: 0;
  pointer-events: none;
}

.encoder-idle {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(244, 122, 0, 0.28), transparent 36%),
    rgba(0, 0, 0, 0.56);
  text-align: center;
}

.encoder-idle[hidden] {
  display: none;
}

.encoder-idle img {
  width: min(220px, 46vw);
  padding: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid #ff8a00;
}

.encoder-idle strong {
  color: #ffdf9b;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

.encoder-idle span {
  color: #fff4dc;
  font-weight: 900;
}

.encoder-status-strip {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  color: #d8cdbf;
  background: #111;
  border-top: 1px solid rgba(255, 179, 77, 0.22);
  font-weight: 900;
}

.encoder-status-strip strong {
  padding: 4px 10px;
  color: #fff;
  background: #555;
}

.encoder-status-strip strong.is-live {
  background: #b00000;
  animation: livePulse 1.1s infinite;
}

.encoder-control,
.platform-card,
.relay-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #211b17;
  border: 1px solid rgba(255, 179, 77, 0.26);
}

.encoder-control h2,
.platform-panel h2,
.platform-card h3,
.relay-panel h3 {
  margin: 0;
  color: #ffb34d;
}

.encoder-control label,
.platform-card label,
.encoder-switches label {
  color: #fff;
  font-weight: 900;
}

.encoder-control input,
.encoder-control textarea,
.platform-card input {
  width: 100%;
  min-height: 42px;
  padding: 10px;
  color: #161412;
  background: #fff8ec;
  border: 1px solid #ffb34d;
  border-radius: 2px;
}

.encoder-control textarea {
  min-height: 92px;
  resize: vertical;
}

.encoder-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.browser-push-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.encoder-wide-button {
  min-height: 40px;
  color: #fff;
  background: #3f3a35;
  border: 0;
  border-radius: 2px;
  font-weight: 950;
}

.promo-button {
  background: #e65100;
}

.promo-page-body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #050505;
}

.promo-page-body::before {
  display: none;
}

.promo-showreel {
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(rgba(255, 138, 0, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 32%, rgba(255, 138, 0, 0.34), transparent 30%),
    linear-gradient(135deg, #050505, #2b0500 55%, #e65100);
  background-size: 100% 42px, auto, auto;
}

.promo-frame {
  width: min(1180px, calc(100vw - 54px));
  min-height: min(640px, calc(100vh - 54px));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
  text-align: center;
  border: 6px solid #ff8a00;
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.12),
    0 28px 90px rgba(0, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.38);
  animation: promoFramePulse 2.2s infinite alternate;
}

.promo-frame img {
  width: min(360px, 54vw);
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 4px solid #ff8a00;
}

.promo-copy span {
  color: #ffdf9b;
  font-size: clamp(1rem, 2vw, 1.6rem);
  font-weight: 1000;
}

.promo-copy h1 {
  color: #fff;
  font-size: clamp(3.4rem, 9vw, 8.8rem);
  line-height: 0.92;
  text-shadow: 0 8px 0 rgba(0, 0, 0, 0.35);
}

.promo-copy p {
  color: #fff4dc;
  font-size: clamp(1.1rem, 2.5vw, 2rem);
  font-weight: 950;
}

.promo-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.promo-points strong {
  padding: 10px 14px;
  color: #111;
  background: #ffdf9b;
  border: 2px solid #fff;
  font-weight: 1000;
}

.video-maker-body {
  min-height: 100vh;
  background: #111;
}

.video-maker-body::before {
  display: none;
}

.video-maker {
  width: min(1320px, calc(100% - 24px));
  padding: 18px 0 34px;
  color: #fff4dc;
}

.video-maker header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 16px;
  background: #202020;
  border: 1px solid rgba(255, 179, 77, 0.3);
}

.video-maker h1 {
  color: #fff;
}

.video-maker button,
.video-maker a {
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0 16px;
  color: #fff;
  background: #e65100;
  border: 0;
  border-radius: 2px;
  font-weight: 950;
  text-decoration: none;
}

.video-maker canvas {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
  border: 1px solid rgba(255, 179, 77, 0.4);
}

.video-maker p {
  color: #d8cdbf;
  font-weight: 850;
}

@keyframes promoFramePulse {
  from {
    transform: scale(0.985);
  }

  to {
    transform: scale(1);
  }
}

.encoder-action-grid button,
.browser-push-actions button,
.relay-panel button {
  min-height: 40px;
  color: #fff;
  background: #9f1d00;
  border: 0;
  border-radius: 2px;
  font-weight: 950;
}

.browser-push-actions button {
  background: #006b48;
}

.browser-push-actions button:last-child {
  background: #3f3a35;
}

.encoder-action-grid button:disabled,
.browser-push-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.encoder-switches {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 244, 220, 0.06);
  border: 1px solid rgba(255, 179, 77, 0.2);
}

.encoder-switches input {
  width: 18px;
  min-height: 18px;
  margin-right: 8px;
  accent-color: #ff8a00;
}

.encoder-control p,
.relay-panel p {
  margin: 0;
  color: #d8cdbf;
  line-height: 1.45;
}

.platform-panel,
.server-setup-panel {
  margin-top: 16px;
  padding: 18px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.platform-card.is-armed {
  border-color: #37d67a;
  box-shadow: inset 0 0 0 2px rgba(55, 214, 122, 0.18);
}

.platform-state {
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  color: #161412;
  background: #ffdf9b;
  font-weight: 950;
}

.platform-card.is-armed .platform-state {
  color: #052c15;
  background: #a8f0c2;
}

.relay-panel {
  grid-template-columns: 1fr auto auto;
  align-items: center;
  margin-top: 12px;
}

.server-setup-panel {
  background: rgba(20, 18, 16, 0.94);
  border: 1px solid rgba(255, 179, 77, 0.28);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.server-setup-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
}

.server-form,
.server-output {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #211b17;
  border: 1px solid rgba(255, 179, 77, 0.26);
}

.server-form label {
  color: #fff;
  font-weight: 900;
}

.server-form input,
.server-form select {
  width: 100%;
  min-height: 42px;
  padding: 10px;
  color: #161412;
  background: #fff8ec;
  border: 1px solid #ffb34d;
  border-radius: 2px;
}

.server-actions,
.server-output-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.server-actions button,
.server-output-tabs button {
  min-height: 38px;
  padding: 0 12px;
  color: #fff;
  background: #9f1d00;
  border: 0;
  border-radius: 2px;
  font-weight: 950;
}

.server-output-tabs button {
  background: #3f3a35;
}

.server-output-tabs button.active {
  color: #161412;
  background: #ffdf9b;
}

.server-output pre {
  min-height: 360px;
  max-height: 560px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  color: #f6ead9;
  background: #111;
  border: 1px solid rgba(255, 179, 77, 0.22);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.86rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.publish-url-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.publish-url-grid article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  background: rgba(255, 244, 220, 0.06);
  border: 1px solid rgba(255, 179, 77, 0.22);
}

.publish-url-grid span {
  color: #ffdf9b;
  font-size: 0.82rem;
  font-weight: 950;
}

.publish-url-grid strong {
  color: #fff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.media-manager-body {
  min-height: 100vh;
  background: #161412;
}

.media-manager-body::before {
  display: none;
}

.media-manager {
  width: min(1360px, calc(100% - 24px));
  padding: 18px 0 34px;
  color: #fff4dc;
}

.media-manager-head {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #2b0500, #7f1700);
  border: 1px solid rgba(255, 179, 77, 0.42);
}

.media-manager-head img {
  width: 138px;
  padding: 6px;
  background: #fff;
  border: 3px solid #ff8a00;
}

.media-manager-head p {
  margin: 0 0 4px;
  color: #ffb34d;
  font-weight: 950;
}

.media-manager-head h1 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.manager-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.manager-panel,
.manager-output > div {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 16px;
  background: #fff8ec;
  color: #161412;
  border: 1px solid #ffb34d;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.manager-panel h2,
.manager-output h2 {
  margin: 0;
  color: #741800;
  font-size: 1.2rem;
  line-height: 1.2;
}

.manager-panel label {
  color: #661400;
  font-size: 0.88rem;
  font-weight: 950;
}

.manager-panel input,
.manager-panel textarea,
.manager-panel select {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  color: #161412;
  background: #fff;
  border: 1px solid #d2c1ac;
  border-radius: 2px;
}

.manager-panel textarea {
  min-height: 96px;
  resize: vertical;
}

.manager-panel button {
  min-height: 40px;
  color: #fff;
  background: #9f1d00;
  border: 0;
  border-radius: 2px;
  font-weight: 950;
}

.manager-panel p {
  margin: 0;
  color: #655d55;
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 800;
}

.media-preview {
  min-height: 136px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #655d55;
  background: #f4ead8;
  border: 1px dashed #d94a00;
  font-weight: 900;
}

.media-preview img,
.media-preview video {
  width: 100%;
  max-height: 190px;
  object-fit: contain;
}

.manager-output {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.manager-list {
  display: grid;
  gap: 8px;
}

.manager-list article {
  padding: 10px;
  background: #fff;
  border-left: 4px solid #d94a00;
}

.manager-list strong {
  display: block;
  color: #9f1d00;
  line-height: 1.25;
}

.manager-list p {
  margin: 5px 0;
  color: #312a24;
  font-size: 0.92rem;
  line-height: 1.4;
}

.manager-list small {
  color: #655d55;
  font-weight: 900;
}

.newsroom-body {
  min-height: 100vh;
  background: #161412;
}

.newsroom-body::before {
  display: none;
}

.newsroom-app {
  width: min(1280px, calc(100% - 24px));
  padding: 18px 0 34px;
}

.newsroom-head {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  margin-bottom: 16px;
  color: #fff;
  background: linear-gradient(135deg, #2b0500, #7f1700);
  border: 1px solid rgba(255, 179, 77, 0.42);
}

.newsroom-head img {
  width: 138px;
  padding: 6px;
  background: #fff;
  border: 3px solid #ff8a00;
}

.newsroom-head p {
  margin: 0 0 4px;
  color: #ffb34d;
  font-weight: 950;
}

.newsroom-head h1 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.login-panel {
  display: grid;
  place-items: center;
  min-height: 62vh;
}

.login-panel > div,
.reporter-panel,
.admin-panel-room,
.live-approved-panel,
.newsroom-user {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  color: #161412;
  background: #fff8ec;
  border: 1px solid #ffb34d;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.login-panel > div {
  width: min(440px, 100%);
}

.login-panel h2,
.reporter-panel h2,
.admin-panel-room h2,
.live-approved-panel h2 {
  margin: 0;
  color: #741800;
}

.login-panel label,
.reporter-panel label {
  color: #661400;
  font-weight: 950;
}

.login-panel input,
.login-panel select,
.reporter-panel input,
.reporter-panel textarea,
.approval-actions input {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid #d2c1ac;
  border-radius: 2px;
}

.reporter-panel textarea {
  min-height: 138px;
  resize: vertical;
}

.login-panel button,
.reporter-panel button,
.newsroom-user button,
.approval-actions button,
.admin-room-top button {
  min-height: 40px;
  color: #fff;
  background: #9f1d00;
  border: 0;
  border-radius: 2px;
  font-weight: 950;
}

.login-panel p {
  margin: 0;
  color: #655d55;
}

.newsroom-workspace {
  display: grid;
  grid-template-columns: 220px minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.newsroom-user strong {
  color: #741800;
  font-size: 1.2rem;
}

.newsroom-user span {
  color: #655d55;
  font-weight: 900;
}

.newsroom-user a {
  min-height: 38px;
  display: grid;
  place-items: center;
  color: #741800;
  background: #ffdf9b;
  text-decoration: none;
  font-weight: 950;
}

.admin-panel-room,
.live-approved-panel {
  min-height: 420px;
}

.admin-room-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.approval-list {
  display: grid;
  gap: 10px;
}

.approval-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: #fff;
  border-left: 5px solid #d94a00;
}

.approval-card.approved {
  border-left-color: #157a34;
}

.approval-card.rejected {
  border-left-color: #555;
  opacity: 0.72;
}

.approval-card span {
  width: fit-content;
  padding: 3px 8px;
  color: #fff;
  background: #9f1d00;
  font-size: 0.72rem;
  font-weight: 1000;
}

.approval-card.approved span {
  background: #157a34;
}

.approval-card.rejected span {
  background: #555;
}

.approval-card strong {
  color: #741800;
  line-height: 1.25;
}

.approval-card p {
  margin: 0;
  color: #312a24;
  line-height: 1.45;
}

.approval-card small {
  color: #655d55;
  font-weight: 850;
}

.approval-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 7px;
  align-items: center;
}

.empty-list {
  margin: 0;
  color: #655d55;
  font-weight: 900;
}

.live-badge {
  display: inline-block;
  padding: 5px 10px;
  color: #fff;
  background: var(--red);
  font-weight: 950;
}

.live-ticker {
  display: grid;
  grid-template-columns: auto 1fr;
  margin: 16px 0;
  background: #202020;
  color: #fff;
}

.live-ticker strong {
  padding: 10px 14px;
  background: var(--red);
}

.live-ticker p {
  margin: 0;
  padding: 10px 14px;
  font-weight: 900;
}

.live-features {
  margin-top: 16px;
}

.maha-live-desk {
  margin: 16px 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.maha-live-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.maha-live-card {
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.maha-live-card.active {
  border-color: var(--red);
  box-shadow: inset 4px 0 0 var(--red);
}

.maha-live-card span {
  color: var(--red);
  font-weight: 950;
}

.maha-live-card h3 {
  margin: 8px 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.maha-live-card p {
  margin: 0;
  color: var(--muted);
}

.epaper-viewer {
  order: 1;
  margin: 14px 0 26px;
  padding: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(244, 122, 0, 0.2), transparent 34%),
    radial-gradient(circle at 82% 6%, rgba(102, 20, 0, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(255, 245, 223, 0.98), rgba(255, 228, 173, 0.82));
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.epaper-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 0;
  background:
    radial-gradient(circle at center top, rgba(255, 255, 255, 0.78), transparent 48%),
    linear-gradient(180deg, #fff8e9 0, #ffe4ad 56%, #dca15f 100%);
  border-bottom: 6px solid var(--ink);
}

.epaper-toolbar p {
  margin: 0 0 4px;
  color: var(--red);
  font-weight: 950;
}

.epaper-toolbar h2 {
  margin: 0;
  color: var(--maroon);
  font-size: clamp(1.35rem, 2.4vw, 2.05rem);
  line-height: 1;
}

.toolbar-edition-name {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 9px;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--maroon);
  border-radius: 2px;
  font-weight: 900;
}

.toolbar-time {
  display: inline-block;
  margin-top: 8px;
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.toolbar-controls {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar-controls label {
  display: grid;
  gap: 5px;
  color: var(--maroon);
  font-size: 0.84rem;
  font-weight: 900;
}

.toolbar-controls select,
.toolbar-controls input,
.toolbar-controls button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff8ec;
  color: var(--ink);
  font-weight: 900;
  padding: 0 10px;
}

.toolbar-controls button {
  color: #fff;
  background: var(--maroon);
}

.epaper-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0;
  min-height: 720px;
}

.edition-switcher {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 18px;
  background: #fff7d6;
  border-top: 1px solid rgba(17, 17, 17, 0.16);
  border-bottom: 1px solid rgba(17, 17, 17, 0.16);
}

.edition-switcher a {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #111;
  background: #fffdf8;
  border: 1px solid rgba(17, 17, 17, 0.28);
  border-radius: 999px;
  text-decoration: none;
  font: 900 0.82rem/1 "Mukta", "Nirmala UI", Arial, sans-serif;
}

.edition-switcher a.active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.page-thumbs {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px 14px;
  background:
    linear-gradient(rgba(255, 228, 173, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #21160f, #15110e);
  background-size: 100% 28px;
  border-right: 1px solid var(--maroon);
}

.page-thumbs button {
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 8px;
  min-height: 62px;
  border: 1px solid rgba(255, 228, 173, 0.35);
  border-radius: 2px;
  background: rgba(255, 245, 223, 0.06);
  color: #eee5d7;
  text-align: left;
  font-weight: 900;
}

.page-thumbs button span {
  grid-row: 1 / 3;
}

.page-thumbs button small {
  color: #a99d90;
  font-size: 0.74rem;
  font-weight: 800;
}

.page-thumbs button.active {
  background: linear-gradient(180deg, #fff8ec, var(--cream));
  color: var(--maroon);
  border-color: var(--saffron);
  box-shadow: inset 4px 0 0 var(--deep-saffron);
}

.page-thumbs span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 34px;
  background: #3a3a3a;
  color: #fff;
  border-radius: 3px;
}

.page-thumbs button.active span {
  background: var(--deep-saffron);
}

.paper-preview {
  width: min(800px, calc(100% - 44px));
  min-height: 1020px;
  justify-self: center;
  margin: 28px 22px 38px;
  padding: 24px;
  color: var(--ink);
  background:
    linear-gradient(rgba(102, 20, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 20, 0, 0.018) 1px, transparent 1px),
    #fff8ec;
  background-size: 100% 26px;
  border: 1px solid var(--line);
  box-shadow:
    0 28px 74px rgba(37, 25, 14, 0.3),
    inset 0 0 0 8px rgba(255, 228, 173, 0.32);
}

.reader-page-tools {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin: -8px -8px 16px;
  padding: 8px 10px;
  color: #59483b;
  background: linear-gradient(180deg, #fff5df, #ffe4ad);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 900;
}

.reader-page-tools span:last-child {
  text-align: right;
}

.paper-preview-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 6px 0 12px;
  border-bottom: 6px double var(--maroon);
  color: var(--maroon);
  font-weight: 900;
}

.paper-brand-title {
  display: grid;
  justify-items: center;
  color: var(--red);
  font-family: "Kohinoor Devanagari", "Noto Serif Devanagari", "Nirmala UI", "Mangal", serif;
  font-weight: 1000;
  gap: 4px;
}

.paper-brand-title span {
  display: inline-grid;
  place-items: center;
  min-height: 22px;
  padding: 1px 9px 0;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-size: clamp(0.7rem, 1.15vw, 0.9rem);
  line-height: 1;
  -webkit-text-stroke: 0;
}

.paper-brand-title em {
  color: var(--red);
  font-style: normal;
  font-size: clamp(2.5rem, 5.5vw, 4.55rem);
  line-height: 0.9;
  font-weight: 1000;
  -webkit-text-stroke: 1.3px var(--red);
  text-shadow:
    0 1px 0 #fff,
    0 3px 0 rgba(102, 20, 0, 0.13);
}

.paper-brand-title small {
  margin-top: 4px;
  color: var(--maroon);
  font-size: clamp(0.68rem, 1.2vw, 0.92rem);
  line-height: 1;
  font-weight: 1000;
}

.paper-brand-title.logo-title {
  display: block;
  width: min(760px, 78vw);
  max-width: 100%;
  justify-self: center;
}

.edition-paper-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 150px;
  object-fit: contain;
}

.paper-preview-head span:last-child {
  text-align: right;
}

.print-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 12px;
  padding-top: 14px;
}

.print-lead,
.print-column,
.print-ad {
  border: 1px solid var(--line);
  background: var(--soft);
}

.print-lead {
  min-height: 260px;
  padding: 18px;
}

.print-lead span {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  color: #fff;
  background: var(--red);
  font-weight: 950;
}

.print-lead h3 {
  margin: 0 0 10px;
  color: var(--maroon);
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  line-height: 1.05;
}

.print-lead p,
.print-column p {
  color: var(--muted);
  font-weight: 800;
}

.print-column {
  padding: 14px;
}

.print-column h4 {
  margin: 0 0 8px;
  color: var(--maroon);
  font-size: 1.25rem;
}

.print-column p {
  margin: 0;
  padding: 9px 0;
  border-top: 1px solid #d65a00;
}

.print-ad {
  grid-column: 1 / -1;
  min-height: 70px;
  display: grid;
  place-items: center;
  color: var(--maroon);
  font-weight: 950;
  background: repeating-linear-gradient(135deg, #fff1d2 0 12px, #f4dfbd 12px 24px);
}

.front-grid {
  display: grid;
  grid-template-columns: 1fr 330px;
  grid-template-areas:
    "lead rail"
    "lead epaper";
  gap: 16px;
}

.lead-story,
.headline-rail,
.epaper-card,
.edition-band,
.ai-panel,
.reader-box,
.news-card {
  background: #fff3d7;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.lead-story {
  grid-area: lead;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 480px;
  overflow: hidden;
}

.lead-image {
  position: relative;
  min-height: 320px;
}

.lead-image img,
.news-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lead-image span {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 12px;
  color: #fff;
  background: var(--red);
  font-weight: 950;
}

.lead-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 48px);
}

.kicker,
.section-heading p,
.tag {
  margin: 0 0 8px;
  color: var(--red);
  font-weight: 950;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.8vw, 3.4rem);
  line-height: 1.18;
  font-weight: 850;
}

.lead-copy > p:not(.kicker) {
  color: var(--muted);
  font-size: 1rem;
}

.headline-rail {
  grid-area: rail;
  padding: 18px;
}

.headline-rail h2,
.epaper-card strong {
  margin: 0 0 12px;
  color: var(--maroon);
  font-size: 1.45rem;
}

.headline-rail a {
  display: block;
  padding: 11px 0;
  color: var(--ink);
  border-top: 1px solid var(--line);
  font-weight: 850;
  text-decoration: none;
}

.epaper-card {
  grid-area: epaper;
  padding: 18px;
  background: linear-gradient(135deg, var(--cream), #fff);
}

.epaper-card span {
  color: var(--red);
  font-weight: 950;
}

.epaper-card strong {
  display: block;
  font-size: 2rem;
}

.epaper-card p {
  color: var(--muted);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  line-height: 1.24;
}

.edition-band {
  padding: 22px;
  margin: 24px 0;
  color: var(--ink);
  background: var(--surface);
}

.edition-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
}

.edition-feature,
.edition-block {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--cream);
}

.edition-feature {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
}

.edition-feature span,
.edition-feature p,
.edition-block h3 {
  font-weight: 950;
}

.edition-feature strong {
  margin: 10px 0;
  color: var(--deep-saffron);
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 0.95;
}

.edition-block {
  padding: 16px;
}

.edition-block.metro {
  grid-column: 1 / -1;
}

.edition-block h3 {
  margin: 0 0 12px;
}

.edition-grid,
.metro-list {
  display: grid;
  gap: 7px;
}

.edition-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.metro-list {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.edition-grid button,
.metro-list button {
  min-height: 38px;
  padding: 7px 8px;
  color: var(--maroon);
  background: #fff8ed;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 900;
}

.edition-grid button.selected,
.metro-list button.selected {
  color: #fff;
  background: var(--maroon);
  outline: 2px solid #fff8ed;
}

.edition-switcher {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.epaper-editions {
  margin-top: 16px;
  padding: 16px;
  background: #222;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
}

.epaper-editions .section-heading p,
.epaper-editions .section-heading h2 {
  color: #fff4dc;
}

.epaper-editions .edition-switcher a {
  background: #fff4dc;
}

.edition-switcher a {
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 7px 9px;
  color: var(--maroon);
  background: #fff8ed;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.92rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.edition-switcher a.active {
  color: #fff;
  background: var(--maroon);
}

.home-link {
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  color: #fff;
  background: var(--maroon);
  border-radius: 4px;
  font-weight: 900;
  text-decoration: none;
}

.edition-hero {
  order: 2;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  margin: 0 0 20px;
  padding: 18px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.edition-hero h1 {
  color: var(--maroon);
  max-width: 820px;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

.edition-hero p:not(.kicker) {
  max-width: 740px;
  color: var(--muted);
  font-size: 1rem;
}

.edition-summary {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 16px;
  color: var(--maroon);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-weight: 900;
}

.edition-front {
  margin-bottom: 24px;
}

.print-edition {
  order: 3;
  margin-bottom: 24px;
  padding: 18px;
  background: #fffdf8;
  border: 1px solid var(--line);
  box-shadow: 0 24px 44px rgba(38, 28, 18, 0.14);
}

.print-edition-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 4px double var(--ink);
  color: var(--ink);
  font-weight: 900;
}

.print-edition-bar strong {
  color: var(--red);
  font-size: 1.1rem;
}

.print-edition-bar span:last-child {
  text-align: right;
}

.print-news-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.72fr 0.7fr;
  gap: 0;
  border-left: 1px solid var(--ink);
  border-top: 1px solid var(--ink);
  margin-top: 14px;
}

.print-main-story,
.print-side-news,
.print-photo-box,
.print-briefs,
.print-classified {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: #fffdf8;
}

.print-main-story {
  grid-row: span 2;
  padding: 18px;
}

.print-main-story h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(2rem, 4.8vw, 4.8rem);
  line-height: 1.02;
}

.print-main-story p:not(.kicker),
.print-briefs p,
.print-side-news a {
  color: #312a24;
}

.print-side-news {
  padding: 14px;
}

.print-side-news h2,
.print-briefs h3 {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 1.25rem;
}

.print-side-news a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-weight: 900;
  text-decoration: none;
}

.print-photo-box {
  position: relative;
  min-height: 220px;
}

.print-photo-box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03);
}

.print-photo-box span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 9px;
  color: #fff;
  background: var(--red);
  font-weight: 950;
}

.print-briefs {
  padding: 14px;
}

.print-briefs p {
  margin: 0;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-weight: 750;
}

.print-classified {
  grid-column: 2 / 4;
  min-height: 76px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: repeating-linear-gradient(135deg, #fffdf8 0 12px, #f4ead8 12px 24px);
  font-weight: 950;
}

.auto-news-panel {
  order: 4;
  margin-bottom: 24px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.auto-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.auto-news-card {
  min-height: 100%;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.auto-news-card span {
  color: var(--red);
  font-weight: 950;
}

.auto-news-card h3 {
  margin: 8px 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.25;
}

.auto-news-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.auto-news-card small {
  color: var(--muted);
  font-weight: 850;
}

.epaper-editions .section-heading {
  align-items: start;
  display: block;
}

.epaper-editions .section-heading h2 {
  margin-top: 2px;
}

.news-section {
  padding: 6px 0 28px;
}

.category-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 12px;
}

.category-tabs button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  color: var(--maroon);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-weight: 950;
}

.category-tabs button.active {
  color: #fff;
  background: var(--maroon);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.news-card {
  overflow: hidden;
  background: linear-gradient(180deg, #fff8ec, #ffe8bd);
}

.news-card.is-hidden {
  display: none;
}

.news-card img {
  height: 160px;
}

.news-card .tag,
.news-card h3,
.news-card p {
  margin-left: 14px;
  margin-right: 14px;
}

.news-card .tag {
  display: inline-block;
  margin-top: 14px;
}

.news-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.45;
}

.news-card p {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--muted);
}

.desk-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  padding-bottom: 36px;
}

.ai-panel,
.reader-box {
  padding: 20px;
}

.section-heading.compact {
  display: block;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.signal-grid div {
  padding: 14px;
  background: var(--cream);
  border-radius: 2px;
}

.signal-grid strong {
  display: block;
  color: var(--maroon);
  font-size: 1.55rem;
}

.signal-grid span,
.reader-box,
.brief-form label {
  color: var(--muted);
}

.brief-form label,
.reader-box label {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.input-row input,
.reader-box select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 12px;
  background: #fff;
}

.input-row button {
  min-height: 42px;
  padding: 0 14px;
  color: #fff;
  background: var(--maroon);
  border: 0;
  border-radius: 2px;
  font-weight: 950;
}

.reader-box h2 {
  margin-top: 0;
  color: var(--maroon);
}

.reader-box select {
  margin-bottom: 14px;
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}

.toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--deep-saffron);
}

.full {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0 34px;
  color: var(--muted);
  border-top: 3px solid var(--maroon);
}

.footer strong {
  color: var(--maroon);
}

@media (max-width: 980px) {
  .masthead,
  .front-grid,
  .lead-story,
  .print-news-grid,
  .network-hero,
  .writer-grid,
  .admin-writer-grid,
  .citizen-reporter,
  .admin-shell,
  .live-control-grid,
  .live-stage,
  .live-header,
  .encoder-header,
  .encoder-layout,
  .article-shell,
  .edition-layout,
  .desk-grid {
    grid-template-columns: 1fr;
  }

  .epaper-layout {
    grid-template-columns: 1fr;
  }

  .page-thumbs {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    overflow-x: auto;
    border-right: 0;
    border-bottom: 4px solid var(--ink);
  }

  .paper-preview {
    width: min(800px, calc(100% - 24px));
    margin: 18px auto 28px;
  }

  .front-grid {
    grid-template-areas: "lead" "rail" "epaper";
  }

  .print-main-story,
  .print-classified {
    grid-column: auto;
    grid-row: auto;
  }

  .masthead {
    min-height: 0;
    gap: 12px;
    padding: 16px 12px;
  }

  .masthead-tools,
  .epaper-btn {
    justify-self: center;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auto-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .admin-cards,
  .maha-live-grid,
  .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edition-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .edition-switcher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metro-list,
  .signal-grid,
  .platform-grid,
  .relay-panel,
  .publish-url-grid,
  .server-setup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .paper-top,
  .article-topbar,
  .epaper-toolbar,
  .section-heading,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-title span {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    margin-bottom: 0;
  }

  .brand-title em {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
    line-height: 1;
    -webkit-text-stroke: 0.8px var(--red);
  }

  .ticker,
  .article-paper-head,
  .paper-preview-head,
  .reader-page-tools,
  .print-edition-bar,
  .print-grid,
  .edition-hero,
  .input-row,
  .news-grid,
  .auto-news-grid,
  .feature-grid,
  .admin-cards,
  .maha-live-grid,
  .flow-steps,
  .edition-grid,
  .edition-switcher,
  .metro-list,
  .signal-grid,
  .encoder-action-grid,
  .browser-push-actions,
  .platform-grid,
  .relay-panel,
  .publish-url-grid,
  .server-setup-grid,
  .encoder-status-strip {
    grid-template-columns: 1fr;
  }

  .ticker p {
    padding: 0 12px 10px;
    white-space: normal;
  }

  .paper-preview-head span:last-child {
    text-align: left;
  }

  .paper-brand-title em {
    font-size: clamp(2.4rem, 16vw, 4rem);
  }

  .article-paper-head span:last-child {
    text-align: left;
  }

  .article-body {
    columns: 1;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }
}

/* Dharmveer News channel homepage overrides. */
body.news-home {
  --ink: #171717;
  --muted: #60646c;
  --paper: #f3f4f6;
  --surface: #ffffff;
  --line: #d9dde5;
  --red: #d71920;
  --maroon: #8c1016;
  --saffron: #ffc400;
  --cream: #fff3bf;
  --soft: #f6f7fa;
  --shadow: 0 14px 34px rgba(10, 15, 25, 0.12);
  background: #f2f3f6;
  font-family: "Nirmala UI", "Noto Sans Devanagari", "Mangal", Arial, sans-serif;
  line-height: 1.55;
}

body.news-home::before {
  display: none;
}

body.news-home .paper-top,
body.news-home .masthead,
body.news-home .nav-ribbon,
body.news-home main,
body.news-home footer {
  width: min(1220px, calc(100% - 24px));
}

body.news-home .paper-top {
  width: 100%;
  padding: 8px max(12px, calc((100vw - 1220px) / 2));
  background: #111827;
  color: #fff;
  border: 0;
}

body.news-home .paper-meta span:first-child {
  padding: 3px 8px;
  background: var(--red);
  border-radius: 3px;
  font-weight: 900;
  text-transform: uppercase;
}

body.news-home .top-actions {
  display: flex;
  gap: 8px;
}

body.news-home .top-actions .secondary-link {
  min-height: 34px;
  padding: 7px 12px;
  background: #fff;
  color: #111827;
  border: 0;
  border-radius: 4px;
  font-weight: 900;
}

body.news-home .masthead {
  margin-top: 0;
  padding: 18px 0;
  min-height: 0;
  grid-template-columns: 1fr auto;
  border: 0;
}

body.news-home .brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

body.news-home .brand img {
  max-width: 180px;
}

body.news-home .brand-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  letter-spacing: 0;
}

body.news-home .brand-title span,
body.news-home .brand-title em {
  display: inline;
  padding: 0;
  background: transparent;
  color: #111827;
  font-family: inherit;
  font-size: clamp(2rem, 5vw, 4.8rem);
  font-style: normal;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

body.news-home .brand-title em {
  color: var(--red);
}

body.news-home .brand small {
  margin-top: 6px;
  color: #30343b;
  font-size: 0.96rem;
  font-weight: 800;
}

body.news-home .masthead-tools span {
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 3px;
}

body.news-home .epaper-btn {
  background: var(--saffron);
  color: #171717;
  border: 0;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 900;
}

body.news-home .nav-ribbon {
  width: 100%;
  padding: 0 max(12px, calc((100vw - 1220px) / 2));
  background: var(--red);
  border: 0;
  box-shadow: 0 4px 16px rgba(120, 0, 0, 0.18);
}

body.news-home .nav-ribbon a {
  padding: 13px 15px;
  color: #fff;
  border-radius: 0;
  font-weight: 900;
}

body.news-home .nav-ribbon a:hover {
  background: #9e1218;
}

body.news-home main {
  gap: 16px;
  padding: 16px 0 28px;
}

body.news-home .ticker {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
}

body.news-home .ticker strong {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  background: var(--red);
  color: #fff;
}

body.news-home .ticker p {
  margin: 0;
  padding: 10px 14px;
  color: #171717;
  font-weight: 800;
}

body.news-home .network-hero,
body.news-home .live-stage,
body.news-home .front-grid,
body.news-home .feature-grid,
body.news-home .maha-live-desk,
body.news-home .ai-writer-preview {
  margin: 0;
}

body.news-home .network-hero {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  min-height: 360px;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.76)),
    url("media/dharmveer-news-animated-ai-video-preview.jpg") center / cover;
  color: #fff;
  border: 0;
  border-radius: 4px;
}

body.news-home .network-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.07;
}

body.news-home .network-hero p:not(.kicker) {
  color: #f1f5f9;
  font-size: 1.08rem;
}

body.news-home .kicker {
  color: var(--saffron);
  font-weight: 900;
}

body.news-home .network-stats {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 4px;
  color: #111827;
}

body.news-home .network-stats div {
  border-color: #e3e6ec;
}

body.news-home .network-stats strong {
  color: var(--red);
}

body.news-home .primary-link,
body.news-home .secondary-link {
  border-radius: 4px;
  font-weight: 900;
}

body.news-home .primary-link {
  background: var(--red);
}

body.news-home .secondary-link {
  border-color: var(--red);
  color: var(--red);
}

body.news-home .live-stage {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

body.news-home .live-player,
body.news-home .live-side,
body.news-home .lead-story,
body.news-home .headline-rail,
body.news-home .epaper-card,
body.news-home .feature-grid article,
body.news-home .maha-live-card,
body.news-home .ai-writer-preview,
body.news-home .writer-output,
body.news-home .writer-input {
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

body.news-home .live-side {
  background: #111827;
  color: #fff;
}

body.news-home .live-side h2,
body.news-home .live-side p {
  color: #fff;
}

body.news-home .live-badge,
body.news-home .lead-image span {
  background: var(--red);
  color: #fff;
  border-radius: 3px;
  font-weight: 900;
}

body.news-home .front-grid {
  align-items: stretch;
}

body.news-home .lead-story {
  overflow: hidden;
}

body.news-home .lead-copy h1,
body.news-home .headline-rail h2,
body.news-home .epaper-card strong,
body.news-home .section-heading h2 {
  color: #111827;
}

body.news-home .headline-rail h2 {
  padding-bottom: 10px;
  border-bottom: 4px solid var(--red);
}

body.news-home .headline-rail a {
  color: #111827;
  font-weight: 800;
}

body.news-home .headline-rail a:hover {
  color: var(--red);
}

body.news-home .epaper-card {
  background: linear-gradient(180deg, #fff 0%, #fff1f1 100%);
}

body.news-home .feature-grid article {
  border-top: 5px solid var(--red);
}

body.news-home .feature-grid h3,
body.news-home .maha-live-card h3,
body.news-home .writer-output h3 {
  color: #111827;
}

body.news-home .maha-live-card.active {
  border-color: var(--red);
}

body.news-home footer {
  margin-bottom: 18px;
  padding: 18px;
  background: #111827;
  color: #fff;
  border-radius: 4px;
}

body.news-home footer span {
  color: #e5e7eb;
}

@media (max-width: 760px) {
  body.news-home .masthead,
  body.news-home .network-hero,
  body.news-home .live-stage {
    grid-template-columns: 1fr;
  }

  body.news-home .brand {
    align-items: flex-start;
  }

  body.news-home .brand img {
    max-width: 116px;
  }

  body.news-home .brand-title {
    display: grid;
    gap: 0;
  }

  body.news-home .ticker {
    grid-template-columns: 1fr;
  }
}
/* Editorial publisher workspace. */
.editorial-publisher-body {
  background: #f1f2f5;
  color: #171717;
  font-family: "Nirmala UI", "Noto Sans Devanagari", "Mangal", Arial, sans-serif;
}

.editorial-publisher {
  width: min(1320px, calc(100% - 28px));
  margin: 18px auto 42px;
}

.editorial-publisher-head,
.editorial-workbench {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid #d7dce5;
  box-shadow: 0 12px 30px rgba(10, 15, 25, 0.08);
}

.editorial-publisher-head p,
.editorial-preview-shell .section-heading p {
  margin: 0;
  color: #8c1016;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.editorial-publisher-head h1 {
  margin: 4px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.editorial-workbench {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: start;
}

.editorial-form,
.editorial-assist {
  display: grid;
  gap: 12px;
}

.editorial-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.editorial-form label,
.editorial-assist label {
  display: grid;
  gap: 6px;
  color: #333;
  font-weight: 900;
}

.editorial-form input,
.editorial-form textarea,
.editorial-form select,
.editorial-assist input,
.publish-result textarea {
  width: 100%;
  padding: 10px 12px;
  color: #171717;
  background: #fff;
  border: 1px solid #c7ccd6;
  border-radius: 4px;
  font: inherit;
}

.editorial-form textarea {
  min-height: 92px;
  resize: vertical;
}

.editorial-form .editorial-body-input {
  min-height: 280px;
}

.editorial-actions,
.editorial-publish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.editorial-assist {
  padding: 16px;
  background: #fff8ed;
  border: 1px solid #efc48d;
}

.editorial-assist h2 {
  margin: 0;
  font-size: 1.35rem;
}

.editorial-suggestions,
.publish-result {
  padding: 12px;
  background: #fff;
  border: 1px solid #ead8c1;
}

.editorial-design-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}

.editorial-design-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.editorial-design-head strong {
  color: #111827;
  font-size: 1rem;
}

.editorial-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.editorial-control-grid label {
  padding: 10px;
  background: #fff;
  border: 1px solid #d8dee8;
}

.editorial-control-grid input[type="range"] {
  padding: 0;
  accent-color: #b91c1c;
}

.editorial-control-grid output {
  color: #8c1016;
  font-size: 0.82rem;
  font-weight: 950;
}

.editorial-design-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editorial-page-copy-controls {
  display: grid;
  gap: 10px;
}

.editorial-page-copy-controls textarea {
  min-height: 76px;
  resize: vertical;
}

.editorial-suggestions ul {
  margin: 8px 0 12px;
  padding-left: 20px;
}

.publish-result textarea {
  min-height: 180px;
  font-family: Consolas, monospace;
  font-size: 0.84rem;
}

.editorial-preview-shell {
  padding: 18px;
  background: #fff;
  border: 1px solid #d7dce5;
  box-shadow: 0 12px 30px rgba(10, 15, 25, 0.08);
}

.editorial-preview {
  margin-top: 14px;
}

.editorial-preview.article-page {
  --editorial-font: "Noto Serif Devanagari", "Mukta", Georgia, serif;
  --editorial-title-size: 58px;
  --editorial-summary-size: 19px;
  --editorial-body-size: 16px;
  --editorial-columns: 2;
  --editorial-image-width: 100%;
  --editorial-image-height: 300px;
  --editorial-masthead-width: 96%;
  --editorial-paper-width: 1120px;
  --editorial-body-line-height: 1.48;
  --editorial-paragraph-gap: 12px;
  --editorial-image-border: 3px;
  --editorial-title-align: center;
  --editorial-body-align: justify;
  --editorial-image-fit: contain;
  --editorial-image-align: center top;
  --editorial-accent: #d71920;
  --editorial-rule: #111;
  --editorial-summary-bg: #fff7d6;
  --editorial-paper-bg: #fffdf7;
  --editorial-paper-grid: rgba(0, 0, 0, 0.04);
  --editorial-page-padding: clamp(18px, 3vw, 30px);
  --editorial-section-gap: 12px;
}

@media (max-width: 980px) {
  .editorial-publisher-head,
  .editorial-workbench,
  .editorial-row {
    grid-template-columns: 1fr;
  }

  .editorial-control-grid,
  .editorial-design-row {
    grid-template-columns: 1fr;
  }
}

@media print {
  body.editorial-publisher-body {
    background: #fff3df !important;
  }

  body.editorial-publisher-body .editorial-publisher-head,
  body.editorial-publisher-body .editorial-workbench,
  body.editorial-publisher-body .editorial-preview-shell > .section-heading {
    display: none !important;
  }

  body.editorial-publisher-body .editorial-publisher {
    width: 100% !important;
    margin: 0 !important;
  }

  body.editorial-publisher-body .editorial-preview-shell {
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.editorial-publisher-body .editorial-preview {
    max-width: none !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: 2px solid #8c1016 !important;
  }
}
.article-page .article-paper-logo-image {
  display: block;
  width: 52% !important;
  max-width: 420px !important;
  height: auto !important;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  margin: -10px auto 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  filter: none;
  mix-blend-mode: multiply;
}

html[lang="en"] .article-page .article-paper-logo-image {
  width: min(680px, 94%);
  height: clamp(96px, 11vw, 138px);
  object-fit: cover;
  object-position: center center;
  margin: 2px auto 8px;
}

html[lang="mr"] .article-page .article-paper-logo-image,
html[lang="hi"] .article-page .article-paper-logo-image {
  width: 52% !important;
  max-width: 420px !important;
}

.article-paper-head strong:has(.article-paper-logo-image) {
  grid-column: 1 / -1;
  grid-row: 1;
  line-height: 1;
  text-shadow: none;
}

.article-paper-head:has(.article-paper-logo-image) > span:first-child {
  grid-column: 1;
  grid-row: 2;
}

.article-paper-head:has(.article-paper-logo-image) > span:last-child {
  grid-column: 2 / -1;
  grid-row: 2;
}

.article-topbar {
  justify-content: flex-end;
}

@media (max-width: 620px) {
  .article-page .article-paper-logo-image {
    width: 72% !important;
    max-width: 340px !important;
    height: auto !important;
    margin: -6px auto 0;
  }

  html[lang="en"] .article-page .article-paper-logo-image {
    width: 96%;
    height: 82px;
  }
}

.article-page .article-hero-image {
  width: min(760px, 100%);
  max-height: 440px;
  object-fit: contain;
  object-position: center center;
  background: #fffaf2;
}

.article-page .article-image-portrait {
  width: min(420px, 100%);
  max-height: 520px;
  object-fit: contain;
  object-position: center top;
  background: #fffaf2;
}

@media (max-width: 620px) {
  .article-page .article-hero-image,
  .article-page .article-image-portrait {
    width: 100%;
    max-height: 430px;
  }
}

.article-paper-head strong:has(.article-paper-logo-image) .article-logo-main,
.article-paper-head strong:has(.article-paper-logo-image) .article-logo-news,
.article-paper-head strong:has(.article-paper-logo-image) small {
  display: none;
}

.article-page .article-paper-head strong:has(.article-paper-logo-image) {
  width: min(42%, 360px) !important;
  max-width: 360px !important;
  min-width: 0 !important;
  justify-self: center !important;
}

.article-page .article-paper-head strong:has(.article-paper-logo-image) .article-paper-logo-image {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: -6px auto 0 !important;
}

html[lang="en"] .article-page .article-paper-head strong:has(.article-paper-logo-image) {
  width: min(46%, 390px) !important;
  max-width: 390px !important;
}

@media print {
  .article-page .article-paper-head strong:has(.article-paper-logo-image) {
    width: 320px !important;
    max-width: 320px !important;
  }

  html[lang="en"] .article-page .article-paper-head strong:has(.article-paper-logo-image) {
    width: 350px !important;
    max-width: 350px !important;
  }
}

@media (max-width: 620px) {
  .article-page .article-paper-head strong:has(.article-paper-logo-image) {
    width: min(60%, 280px) !important;
    max-width: 280px !important;
  }

  html[lang="en"] .article-page .article-paper-head strong:has(.article-paper-logo-image) {
    width: min(66%, 310px) !important;
    max-width: 310px !important;
  }
}

.article-page .article-paper-head {
  gap: 4px !important;
  padding-top: 0 !important;
  padding-bottom: 8px !important;
}

.article-page .article-paper-head strong:has(.article-paper-logo-image) {
  width: min(86%, 860px) !important;
  max-width: 860px !important;
  margin: -4px auto -8px !important;
}

.article-page .article-paper-head strong:has(.article-paper-logo-image) .article-paper-logo-image,
html[lang="mr"] .article-page .article-paper-logo-image,
html[lang="hi"] .article-page .article-paper-logo-image,
html[lang="en"] .article-page .article-paper-logo-image {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center center !important;
}

html[lang="en"] .article-page .article-paper-head strong:has(.article-paper-logo-image) {
  width: min(86%, 840px) !important;
  max-width: 840px !important;
}

.article-page .article-section-line {
  margin-top: 8px !important;
}

@media print {
  .article-page .article-paper-head {
    gap: 2px !important;
    padding-bottom: 6px !important;
  }

  .article-page .article-paper-head strong:has(.article-paper-logo-image) {
    width: 680px !important;
    max-width: 680px !important;
    margin: -6px auto -8px !important;
  }

  html[lang="en"] .article-page .article-paper-head strong:has(.article-paper-logo-image) {
    width: 660px !important;
    max-width: 660px !important;
  }
}

@media (max-width: 620px) {
  .article-page .article-paper-head strong:has(.article-paper-logo-image),
  html[lang="en"] .article-page .article-paper-head strong:has(.article-paper-logo-image) {
    width: 96% !important;
    max-width: 96% !important;
    margin: -2px auto -6px !important;
  }
}

.article-page {
  max-width: var(--editorial-paper-width, 1120px) !important;
  padding: var(--editorial-page-padding, clamp(18px, 3vw, 30px)) !important;
  background:
    linear-gradient(90deg, var(--editorial-paper-grid, rgba(0, 0, 0, 0.04)) 1px, transparent 1px),
    var(--editorial-paper-bg, #fffdf7) !important;
  background-size: 38px 100%, 100% 100% !important;
}

.article-page::before {
  margin-bottom: 8px !important;
  padding: 7px 0 !important;
}

.article-page .article-paper-head {
  border-bottom: 4px solid var(--editorial-rule, #111) !important;
  padding-bottom: 4px !important;
}

.article-page .article-paper-head strong:has(.article-paper-logo-image) {
  width: min(var(--editorial-masthead-width, 96%), 1080px) !important;
  max-width: 1080px !important;
  margin: -8px auto -12px !important;
}

.article-page[data-page-layout="frontpage"] .article-paper-head {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}

.article-page[data-page-layout="frontpage"] .article-paper-head strong:has(.article-paper-logo-image) {
  width: min(var(--editorial-masthead-width, 98%), 1120px) !important;
  max-width: 1120px !important;
  margin: -10px auto -14px !important;
}

.article-page[data-page-layout="frontpage"] .article-paper-head strong:has(.article-paper-logo-image) .article-paper-logo-image {
  transform: none;
  transform-origin: center center;
}

.article-page .article-section-line {
  margin: 6px 0 10px !important;
  padding: 6px 10px !important;
  border-top: 2px solid var(--editorial-accent, #b91c1c) !important;
  border-bottom: 2px solid var(--editorial-rule, #111) !important;
  font-size: 0.86rem !important;
}

.editorial-top-ad,
.editorial-bottom-ad {
  display: none;
  margin: 8px 0;
  padding: 8px 10px;
  color: #111;
  background: #fff400;
  border: 2px solid var(--editorial-accent, #d71920);
  font-weight: 950;
  text-align: center;
}

.article-paper-head .editorial-top-ad {
  margin: 0;
}

.editorial-front-grid {
  display: none;
}

.article-page[data-page-layout="frontpage"] .editorial-top-ad,
.article-page[data-page-layout="frontpage"] .editorial-bottom-ad {
  display: block;
}

.article-page[data-page-layout="frontpage"] > .article-hero-image,
.article-page[data-page-layout="frontpage"] > #previewBody,
.article-page[data-page-layout="frontpage"] > #previewTitle,
.article-page[data-page-layout="frontpage"] > #previewSummary,
.article-page[data-page-layout="frontpage"] > .article-meta {
  display: none !important;
}

.article-page[data-show-image="off"] > .article-hero-image,
.article-page[data-show-image="off"] .editorial-image-package,
.article-page[data-show-image="off"] .article-hero-image,
.article-page[data-show-image="off"] .article-image-portrait {
  display: none !important;
}

.article-page[data-page-layout="frontpage"] .editorial-front-grid {
  display: grid;
  grid-template-columns: minmax(105px, 0.62fr) minmax(0, 2.55fr) minmax(135px, 0.92fr);
  gap: 10px;
  align-items: start;
}

.article-page[data-page-layout="frontpage"] .article-paper-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(185px, 28%);
  gap: 8px 12px !important;
  align-items: center !important;
  padding: 0 0 4px !important;
  border-bottom: 0 !important;
}

.article-page[data-page-layout="frontpage"] .article-paper-head strong:has(.article-paper-logo-image) {
  grid-column: 1;
  grid-row: 1;
  justify-self: start !important;
  width: min(var(--editorial-masthead-width, 96%), 680px) !important;
  max-width: 680px !important;
  margin: -2px 0 -6px !important;
}

.article-page[data-page-layout="frontpage"] .article-paper-head strong:has(.article-paper-logo-image) .article-paper-logo-image {
  transform: scale(1);
  transform-origin: left center;
}

.article-page[data-page-layout="frontpage"] .article-paper-head .editorial-top-ad {
  grid-column: 2;
  grid-row: 1;
  min-height: 58px;
  display: grid;
  align-items: center;
  padding: 8px;
  color: #b00020;
  background: #fff400;
  border: 3px solid #ffea00;
  box-shadow: inset 0 0 0 2px #ef4444;
  font-size: clamp(0.68rem, 1.4vw, 0.92rem);
  line-height: 1.15;
}

.article-page[data-page-layout="frontpage"] .article-paper-head:has(.article-paper-logo-image) > span:first-child {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  width: 100%;
}

.article-page[data-page-layout="frontpage"] .article-paper-head:has(.article-paper-logo-image) > span:last-child {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
}

.article-page[data-page-layout="frontpage"] .article-section-line {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 0 0 8px !important;
  color: #111 !important;
  background: #eef2f7 !important;
  border-top: 2px solid var(--editorial-rule, #111) !important;
  border-bottom: 2px solid var(--editorial-rule, #111) !important;
  font-family: "Nirmala UI", "Noto Sans Devanagari", Arial, sans-serif !important;
  font-size: 0.78rem !important;
  line-height: 1.2 !important;
  text-transform: none !important;
}

.article-page[data-page-layout="frontpage"] .article-section-line span:last-child {
  justify-self: end;
  color: #334155;
  font-weight: 900;
  text-align: right;
}

.article-page[data-page-layout="frontpage"] h1 {
  max-width: none !important;
  margin: 8px 0 8px !important;
  font-size: clamp(2.25rem, 5vw, 4.8rem) !important;
  line-height: 0.98 !important;
  text-align: left !important;
}

.article-page[data-page-layout="frontpage"] .article-summary {
  max-width: none !important;
  margin: 0 0 8px !important;
  text-align: left !important;
}

.editorial-front-title {
  display: none;
}

.editorial-front-summary {
  display: none;
}

.article-page[data-page-layout="frontpage"] .editorial-front-title {
  display: block;
  margin: 0 0 8px !important;
  padding-bottom: 7px !important;
  color: #111 !important;
  border-bottom: 5px solid var(--editorial-accent, #d71920) !important;
  box-shadow: 0 3px 0 #f59e0b !important;
  font-family: var(--editorial-font, "Noto Serif Devanagari", "Mukta", Georgia, serif) !important;
  font-size: clamp(1.55rem, 3.8vw, 3.35rem) !important;
  line-height: 1.02 !important;
  text-align: left !important;
}

.article-page[data-page-layout="frontpage"] .editorial-front-summary {
  display: block;
  margin: 0 0 8px !important;
  padding: 8px 10px !important;
  color: #111 !important;
  background: var(--editorial-summary-bg, #fff7d6) !important;
  border: 1px solid #d6a500 !important;
  font-size: clamp(0.82rem, 1.8vw, var(--editorial-summary-size, 19px)) !important;
  font-weight: 850;
  line-height: 1.35 !important;
  text-align: left !important;
}

.editorial-front-main {
  min-width: 0;
}

.editorial-image-package {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(120px, 0.9fr);
  gap: 8px;
  align-items: stretch;
  float: right;
  width: min(var(--editorial-image-width, 48%), 360px) !important;
  max-width: 48%;
  margin: 2px 0 8px 12px !important;
}

.editorial-image-package[data-side-position="left"] {
  grid-template-columns: minmax(120px, 0.9fr) minmax(0, 1.1fr);
}

.editorial-image-package[data-side-position="left"] .article-hero-image {
  grid-column: 2;
}

.editorial-image-package[data-side-position="below"] {
  grid-template-columns: 1fr;
}

.article-page[data-page-layout="frontpage"] .editorial-front-main .article-hero-image {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  max-height: var(--editorial-image-height, 300px) !important;
  margin: 0 !important;
}

.editorial-image-side-content {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 8px;
  background: #fff7d6;
  border: 2px solid var(--editorial-accent, #d71920);
  color: #111;
  font-family: var(--editorial-font, "Noto Serif Devanagari", "Mukta", Georgia, serif);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.3;
}

.editorial-image-side-content:empty {
  display: none;
}

.editorial-image-side-content p {
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.editorial-image-side-content p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.article-page[data-page-layout="frontpage"] .editorial-front-main .article-body {
  column-count: 2 !important;
  column-gap: 18px !important;
  column-rule: 1px solid var(--editorial-rule, #111) !important;
}

.editorial-front-rail {
  display: grid;
  gap: 8px;
  padding: 8px;
  background: #fffaf0;
  border-top: 6px solid var(--editorial-accent, #d71920);
  border-bottom: 2px solid var(--editorial-rule, #111);
}

.editorial-front-rail p {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #c7b58f;
  color: #111;
  font-size: clamp(0.66rem, 1.45vw, 0.86rem);
  font-weight: 900;
  line-height: 1.28;
}

.article-page[data-page-layout="frontpage"] .editorial-bottom-ad {
  margin-top: 10px;
  color: #8c1016;
  background: #fff7ed;
  border: 2px solid #f97316;
  font-size: 1rem;
}

.article-page[data-page-layout="feature"] .editorial-front-grid {
  display: block;
}

.article-page[data-page-layout="feature"] .editorial-front-rail,
.article-page[data-page-layout="feature"] > .article-hero-image,
.article-page[data-page-layout="feature"] > #previewBody,
.article-page[data-page-layout="feature"] .editorial-top-ad,
.article-page[data-page-layout="feature"] .editorial-bottom-ad {
  display: none !important;
}

.article-page[data-page-layout="feature"] .editorial-front-main {
  max-width: 900px;
  margin: 0 auto;
}

.article-page h1 {
  max-width: 980px !important;
  margin: var(--editorial-section-gap, 12px) auto 8px !important;
  padding-bottom: 8px !important;
  font-family: var(--editorial-font, "Noto Serif Devanagari", "Mukta", Georgia, serif) !important;
  font-size: var(--editorial-title-size, clamp(2.1rem, 4.8vw, 4.6rem)) !important;
  line-height: 1.03 !important;
  text-align: var(--editorial-title-align, center) !important;
  border-bottom: 4px solid var(--editorial-accent, #d71920) !important;
  box-shadow: 0 3px 0 #f59e0b !important;
}

.article-summary {
  max-width: 900px !important;
  margin: 0 auto 10px !important;
  padding: 10px 14px !important;
  color: #222 !important;
  background: var(--editorial-summary-bg, #fff7d6) !important;
  border: 1px solid #d6a500 !important;
  font-size: var(--editorial-summary-size, clamp(1rem, 1.7vw, 1.2rem)) !important;
  line-height: 1.45 !important;
  text-align: var(--editorial-title-align, center) !important;
}

.article-language-bar {
  justify-content: center !important;
  margin: 8px 0 10px !important;
}

.article-meta {
  justify-content: center !important;
  margin-bottom: 10px !important;
  padding: 6px 0 !important;
  font-size: 0.86rem !important;
}

.article-front-note {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 6px 0 10px;
  padding: 6px 8px;
  color: #111;
  background: #f3f4f6;
  border-top: 2px solid #111;
  border-bottom: 1px solid #111;
  font-weight: 950;
  font-size: 0.86rem;
}

.article-front-note strong {
  color: #fff;
  background: var(--editorial-accent, #d71920);
  padding: 3px 7px;
}

.article-news-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 190px;
  gap: 14px;
  align-items: start;
}

.article-main-copy {
  min-width: 0;
}

.article-side-rail {
  border-top: 6px solid var(--editorial-accent, #d71920);
  border-bottom: 2px solid var(--editorial-rule, #111);
  background: #fffaf0;
  padding: 8px;
  font-family: "Noto Serif Devanagari", "Mukta", Georgia, serif;
}

.article-side-rail h2 {
  margin: 0 0 8px;
  padding: 5px 7px;
  color: #fff;
  background: #111827;
  font-size: 1rem;
  line-height: 1.1;
}

.article-side-rail ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-side-rail li,
.article-side-rail p {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #c7b58f;
  color: #171717;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.35;
}

.article-side-rail strong {
  display: block;
  margin-top: 8px;
  color: #9f1239;
  font-size: 0.84rem;
}

.article-lead-package {
  float: right;
  width: min(42%, 330px);
  margin: 2px 0 10px 14px;
}

.article-page .article-hero-image,
.article-page .article-image-portrait {
  width: var(--editorial-image-width, 100%) !important;
  max-height: var(--editorial-image-height, 300px) !important;
  height: var(--editorial-image-height, auto) !important;
  margin: 0 !important;
  object-fit: var(--editorial-image-fit, contain) !important;
  object-position: var(--editorial-image-align, center top) !important;
  background: #fff !important;
  border: var(--editorial-image-border, 3px) solid var(--editorial-rule, #111) !important;
}

.article-photo-caption {
  padding: 5px 7px;
  color: #fff;
  background: #111;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
}

.article-body {
  max-width: none !important;
  column-count: var(--editorial-columns, 2) !important;
  column-gap: 24px !important;
  column-rule: 1px solid var(--editorial-rule, #222) !important;
}

.article-body p {
  margin: 0 0 var(--editorial-paragraph-gap, 12px) !important;
  color: #111 !important;
  font-family: var(--editorial-font, "Noto Serif Devanagari", "Mukta", Georgia, serif) !important;
  font-size: var(--editorial-body-size, 0.98rem) !important;
  line-height: var(--editorial-body-line-height, 1.48) !important;
  text-align: var(--editorial-body-align, justify);
}

.article-body strong {
  display: block;
  break-inside: avoid;
  margin: 4px 0 3px;
  padding: 5px 7px;
  color: #fff !important;
  background: var(--editorial-accent, #d71920);
  font-size: 1.04rem !important;
  line-height: 1.25;
}

.article-body p:first-child::first-letter {
  font-size: 4rem !important;
  padding: 8px 8px 2px 0 !important;
}

.article-page[data-drop-cap="off"] .article-body p:first-child::first-letter {
  float: none !important;
  font-size: inherit !important;
  padding: 0 !important;
}

.article-bottom-strip {
  clear: both;
  margin-top: 14px;
  padding: 9px 12px;
  color: #fff;
  background: linear-gradient(90deg, #111827, #d71920 55%, #f59e0b);
  font-weight: 950;
  text-align: center;
}

@media print {
  .article-topbar,
  .article-actions,
  .article-language-bar,
  .article-tags {
    display: none !important;
  }

  .article-page {
    max-width: none !important;
    padding: 14px !important;
  }

  .article-news-layout {
    grid-template-columns: 145px minmax(0, 1fr) 165px !important;
    gap: 10px !important;
  }

  .article-page h1 {
    font-size: 34px !important;
  }

  .article-summary {
    font-size: 13px !important;
  }

  .article-lead-package {
    width: 250px !important;
  }

  .article-page .article-hero-image,
  .article-page .article-image-portrait {
    max-height: 230px !important;
  }

  .article-body {
    columns: 2 220px !important;
  }

  .article-body p {
    font-size: 10.4px !important;
    line-height: 1.35 !important;
  }

  .article-side-rail li,
  .article-side-rail p {
    font-size: 9.4px !important;
  }
}

@media (max-width: 820px) {
  .article-news-layout {
    grid-template-columns: 1fr;
  }

  .article-page[data-page-layout="frontpage"] .editorial-front-grid {
    grid-template-columns: 1fr;
  }

  .article-page[data-page-layout="frontpage"] .article-paper-head {
    grid-template-columns: 1fr;
  }

  .article-page[data-page-layout="frontpage"] .article-paper-head .editorial-top-ad,
  .article-page[data-page-layout="frontpage"] .article-paper-head:has(.article-paper-logo-image) > span:last-child {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
  }

  .article-page[data-page-layout="frontpage"] .editorial-front-main .article-hero-image {
    float: none;
    max-width: 100%;
    width: 100% !important;
    margin: 0 0 10px !important;
  }

  .article-lead-package {
    float: none;
    width: min(420px, 100%);
    margin: 0 auto 12px;
  }

  .article-body {
    columns: 1 !important;
  }
}

body.editorial-publisher-body .editorial-preview-shell {
  overflow-x: auto;
}

body.editorial-publisher-body .article-page[data-page-layout="frontpage"] {
  min-width: 0;
  width: 100%;
}

body.editorial-publisher-body .article-page[data-page-layout="frontpage"] .article-paper-head {
  grid-template-columns: minmax(0, 1fr) minmax(120px, 27%) !important;
}

body.editorial-publisher-body .article-page[data-page-layout="frontpage"] .article-paper-head .editorial-top-ad {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: stretch !important;
}

body.editorial-publisher-body .article-page[data-page-layout="frontpage"] .article-paper-head:has(.article-paper-logo-image) > span:last-child {
  grid-column: 2 !important;
  grid-row: 2 !important;
  justify-self: end !important;
}

.paper-preview-head .paper-brand-title.logo-title {
  display: block !important;
  width: min(760px, 78vw) !important;
  max-width: 100% !important;
  justify-self: center !important;
}

.paper-preview-head .edition-paper-logo {
  display: block !important;
  width: 100% !important;
  max-width: 760px !important;
  height: auto !important;
  max-height: 150px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  filter: drop-shadow(0 3px 0 rgba(255, 255, 255, 0.82));
}

/* Dainik Dharmveer e-paper ready layout */
body:has(.epaper-viewer) {
  background: #efe5d4 !important;
}

.epaper-viewer {
  width: min(1280px, calc(100% - 24px)) !important;
  margin: 18px auto 36px !important;
  background: #fffaf0 !important;
  border: 1px solid #211812 !important;
  box-shadow: 0 18px 54px rgba(35, 20, 8, 0.18) !important;
}

.site-brand-bug {
  display: none !important;
}

.epaper-toolbar {
  display: grid !important;
  grid-template-columns: minmax(280px, 1fr) auto !important;
  gap: 18px !important;
  align-items: center !important;
  padding: 12px 18px !important;
  color: #fff !important;
  background: #111 !important;
  border-bottom: 5px solid #d71920 !important;
}

.epaper-toolbar h2 {
  margin: 2px 0 !important;
  color: #fff !important;
  font-size: clamp(1.4rem, 3vw, 2.2rem) !important;
  line-height: 1 !important;
}

.epaper-toolbar p,
.toolbar-edition-name,
.toolbar-time {
  color: #fff7d6 !important;
  font-weight: 900 !important;
}

.toolbar-controls {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

.toolbar-controls label {
  color: #fff7d6 !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
}

.toolbar-controls select,
.toolbar-controls input,
.toolbar-controls button {
  min-height: 34px !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  background: #fffdf8 !important;
  color: #111 !important;
  font-weight: 900 !important;
}

.edition-switcher {
  background: #f7dfb8 !important;
  border-bottom: 3px solid #111 !important;
}

.epaper-layout {
  grid-template-columns: 178px minmax(0, 1fr) !important;
  background: #d8c5a7 !important;
}

.page-thumbs {
  background: #211812 !important;
  border-right: 5px solid #d71920 !important;
}

.page-thumbs button {
  min-height: 92px !important;
  color: #fff !important;
  background: #312219 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16) !important;
  text-align: left !important;
}

.page-thumbs button.active {
  background: #d71920 !important;
}

.page-thumbs button span {
  display: inline-grid !important;
  place-items: center !important;
  width: 28px !important;
  height: 28px !important;
  margin-right: 8px !important;
  color: #111 !important;
  background: #fff7d6 !important;
  border-radius: 50% !important;
  font-weight: 1000 !important;
}

.paper-preview {
  width: min(940px, calc(100% - 24px)) !important;
  margin: 18px auto 34px !important;
  padding: 14px 18px 20px !important;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    #fffdf6 !important;
  background-size: 36px 36px !important;
  border: 2px solid #1b120d !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22) !important;
}

.reader-page-tools {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  gap: 10px !important;
  padding: 7px 0 9px !important;
  border-bottom: 2px solid #111 !important;
  color: #211812 !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
}

.reader-page-tools span:last-child {
  text-align: right !important;
}

.paper-preview-head {
  grid-template-columns: 1fr minmax(340px, 760px) 1fr !important;
  gap: 12px !important;
  align-items: center !important;
  padding: 10px 0 8px !important;
  border-bottom: 4px solid #111 !important;
}

.paper-preview-head > span {
  color: #211812 !important;
  font-size: 0.88rem !important;
  font-weight: 1000 !important;
}

.paper-preview-head .paper-brand-title.logo-title {
  width: min(760px, 100%) !important;
}

.paper-preview-head .edition-paper-logo {
  max-height: 128px !important;
}

.print-grid {
  display: grid !important;
  grid-template-columns: 1.45fr 0.85fr !important;
  grid-template-areas:
    "lead column"
    "lead ad" !important;
  gap: 12px !important;
  padding: 14px 0 !important;
  border-bottom: 2px solid #111 !important;
}

.print-lead {
  grid-area: lead !important;
  padding: 14px !important;
  background: #fff !important;
  border: 2px solid #111 !important;
}

.print-lead span,
.edition-section-bar strong,
.edition-story-grid article span {
  display: inline-block !important;
  padding: 4px 8px !important;
  color: #fff !important;
  background: #d71920 !important;
  font-weight: 1000 !important;
}

.print-lead h3 {
  margin: 10px 0 !important;
  color: #111 !important;
  font-size: clamp(2rem, 5vw, 4.2rem) !important;
  line-height: 1.03 !important;
  font-weight: 1000 !important;
}

.print-lead p {
  margin: 0 !important;
  color: #33251c !important;
  font-size: 1.08rem !important;
  line-height: 1.6 !important;
  font-weight: 750 !important;
}

.print-column {
  grid-area: column !important;
  padding: 12px !important;
  background: #fff7d6 !important;
  border: 2px solid #d71920 !important;
}

.print-column h4 {
  margin: 0 0 8px !important;
  color: #d71920 !important;
  font-size: 1.25rem !important;
}

.print-column p {
  margin: 8px 0 !important;
  font-weight: 800 !important;
  line-height: 1.42 !important;
}

.print-ad {
  grid-area: ad !important;
  display: grid !important;
  place-items: center !important;
  min-height: 105px !important;
  color: #6b4b24 !important;
  background: repeating-linear-gradient(135deg, #fff7d6, #fff7d6 8px, #f2ddb1 8px, #f2ddb1 16px) !important;
  border: 2px dashed #b7791f !important;
  font-weight: 1000 !important;
}

.edition-section-bar {
  display: flex !important;
  justify-content: space-between !important;
  gap: 12px !important;
  align-items: center !important;
  margin: 14px 0 10px !important;
  padding: 8px 0 !important;
  border-top: 2px solid #111 !important;
  border-bottom: 2px solid #111 !important;
}

.edition-section-bar span {
  color: #39291d !important;
  font-weight: 900 !important;
}

.edition-story-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
}

.edition-story-grid article {
  padding: 10px !important;
  background: #fff !important;
  border: 1px solid #111 !important;
}

.edition-story-grid h4 {
  margin: 8px 0 !important;
  color: #111 !important;
  font-size: 1.08rem !important;
  line-height: 1.22 !important;
}

.edition-story-grid p {
  margin: 0 !important;
  color: #33251c !important;
  font-size: 0.92rem !important;
  line-height: 1.45 !important;
  font-weight: 700 !important;
}

.edition-ready-strip {
  margin-top: 12px !important;
  padding: 9px 10px !important;
  color: #fff !important;
  background: #111 !important;
  font-weight: 900 !important;
}

@media (max-width: 820px) {
  .epaper-layout,
  .print-grid,
  .edition-story-grid,
  .paper-preview-head {
    grid-template-columns: 1fr !important;
    grid-template-areas: none !important;
  }

  .paper-preview {
    width: calc(100% - 16px) !important;
    padding: 10px !important;
  }

  .paper-preview-head > span,
  .reader-page-tools span:last-child {
    text-align: left !important;
  }
}

/* Dainik Dharmveer sub-editions and newspaper masthead */
.sub-edition-strip {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  padding: 12px 18px !important;
  background: #fff !important;
  border-bottom: 4px solid #111 !important;
  box-shadow: inset 0 -1px 0 rgba(17, 17, 17, 0.16) !important;
}

.edition-switcher.current-edition-strip {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  padding: 10px 18px !important;
  background: #fff8e8 !important;
  border-bottom: 1px solid rgba(17, 17, 17, 0.22) !important;
  box-shadow: none !important;
  max-height: none !important;
  overflow: visible !important;
}

.edition-switcher.current-edition-strip strong {
  color: #d71920 !important;
  font-size: 0.86rem !important;
  font-weight: 1000 !important;
}

.edition-switcher.current-edition-strip a {
  display: inline-grid !important;
  place-items: center !important;
  min-height: 32px !important;
  padding: 5px 14px !important;
  background: #111 !important;
  border: 1px solid #111 !important;
  color: #fff !important;
  font-weight: 1000 !important;
  text-decoration: none !important;
}

.edition-switcher.current-edition-strip span {
  color: #3d3128 !important;
  font-weight: 900 !important;
}

.sub-edition-strip strong {
  margin-right: 4px !important;
  color: #d71920 !important;
  font-size: 0.9rem !important;
  font-weight: 1000 !important;
  white-space: nowrap !important;
}

.sub-edition-strip button {
  border: 1px solid #111 !important;
  background: #fff8e8 !important;
  color: #111 !important;
  min-height: 34px !important;
  padding: 6px 12px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.sub-edition-strip button.active,
.sub-edition-strip button:hover {
  background: #d71920 !important;
  border-color: #d71920 !important;
  color: #fff !important;
}

.toolbar-home-link {
  display: inline-grid !important;
  place-items: center !important;
  min-height: 34px !important;
  padding: 6px 13px !important;
  border: 1px solid #ffd46a !important;
  background: #ffd46a !important;
  color: #111 !important;
  font-weight: 1000 !important;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22) !important;
}

.toolbar-home-link:hover {
  background: #fff !important;
  border-color: #fff !important;
}

.paper-logo-home-link {
  display: block !important;
  color: inherit !important;
  text-decoration: none !important;
}

.paper-preview-head {
  grid-template-columns: 1fr !important;
  text-align: center !important;
  border-top: 6px solid #111 !important;
  border-bottom: 4px double #111 !important;
  padding: 10px 10px 12px !important;
  gap: 4px !important;
}

.paper-preview-head > span {
  text-align: center !important;
  letter-spacing: 0 !important;
}

.paper-preview-head .paper-brand-title.logo-title {
  width: min(860px, 100%) !important;
  margin: 0 auto !important;
}

.paper-preview-head .edition-paper-logo {
  width: 100% !important;
  max-width: 860px !important;
  max-height: 150px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

.page-thumbs {
  max-height: 1160px !important;
  overflow-y: auto !important;
}

@media (max-width: 820px) {
  .sub-edition-strip {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
  }

  .sub-edition-strip button {
    flex: 0 0 auto !important;
  }

  .paper-preview-head .edition-paper-logo {
    max-height: 118px !important;
  }
}

body.editorial-publisher-body .article-page[data-page-layout="frontpage"] .editorial-front-grid {
  grid-template-columns: minmax(76px, 0.58fr) minmax(0, 2.3fr) minmax(86px, 0.78fr) !important;
  gap: 8px !important;
}

body.editorial-publisher-body .article-page[data-page-layout="frontpage"] .editorial-front-main .article-hero-image {
  max-width: 48% !important;
}

body.editorial-publisher-body .article-page[data-page-layout="frontpage"] .editorial-front-main .editorial-image-package {
  float: right !important;
  max-width: 48% !important;
  width: min(var(--editorial-image-width, 48%), 380px) !important;
  margin: 2px 0 8px 12px !important;
}

/* Dainik Dharmveer admin control room */
.hidden {
  display: none !important;
}

.dd-admin-body {
  margin: 0;
  color: #151515;
  background: #ece3d6;
  font-family: "Nirmala UI", "Mukta", Arial, sans-serif;
}

.dd-login-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #fff8e8, #e9d2ae);
}

.dd-login-card {
  width: min(430px, 100%);
  display: grid;
  gap: 12px;
  padding: 22px;
  background: #fffdf8;
  border: 2px solid #111;
  box-shadow: 0 18px 44px rgba(28, 18, 8, 0.2);
}

.dd-login-card img {
  width: 100%;
  max-height: 130px;
  object-fit: contain;
}

.dd-login-card h1,
.dd-login-card p {
  margin: 0;
}

.dd-login-card label,
.dd-admin-form label {
  display: grid;
  gap: 6px;
  color: #31261d;
  font-size: 0.82rem;
  font-weight: 900;
}

.dd-login-card input,
.dd-admin-form input,
.dd-admin-form select {
  min-height: 40px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #111;
  font: inherit;
}

.dd-login-card button,
.dd-admin-form button,
.dd-section-head button,
.dd-admin-actions button,
.dd-table-wrap button,
.dd-desk-grid button {
  min-height: 38px;
  padding: 8px 14px;
  color: #fff;
  background: #d71920;
  border: 1px solid #d71920;
  font-weight: 950;
  cursor: pointer;
}

.dd-login-error {
  color: #b91c1c;
  font-weight: 900;
}

.dd-admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}

.dd-admin-sidebar {
  padding: 14px;
  background: #111;
  color: #fff;
}

.dd-admin-brand img {
  width: 100%;
  max-height: 86px;
  object-fit: contain;
  padding: 6px;
  background: #fff;
}

.dd-admin-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.dd-admin-sidebar button {
  min-height: 42px;
  padding: 10px 12px;
  color: #fff;
  background: #2a2a2a;
  border: 1px solid #3b3b3b;
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}

.dd-admin-sidebar button.active {
  background: #d71920;
  border-color: #d71920;
}

.dd-admin-sidebar button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dd-admin-main {
  padding: 18px;
}

.dd-admin-top,
.dd-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.dd-admin-top p,
.dd-section-head p {
  margin: 0;
  color: #d71920;
  font-weight: 1000;
  text-transform: uppercase;
}

.dd-admin-top h1,
.dd-section-head h2 {
  margin: 2px 0 0;
  line-height: 1.1;
}

.dd-admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dd-admin-actions a,
.dd-desk-grid a,
.dd-designer-grid a {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  padding: 8px 14px;
  color: #111;
  background: #ffd46a;
  border: 1px solid #111;
  font-weight: 950;
  text-decoration: none;
}

.dd-stat-grid,
.dd-desk-grid,
.dd-designer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dd-stat-grid article,
.dd-desk-grid article,
.dd-designer-grid a,
.dd-card-stage,
.dd-table-wrap,
.dd-admin-form {
  background: #fffdf8;
  border: 1px solid #111;
  box-shadow: 0 10px 28px rgba(30, 20, 10, 0.08);
}

.dd-stat-grid article {
  padding: 16px;
}

.dd-stat-grid span {
  display: block;
  color: #d71920;
  font-size: 2rem;
  font-weight: 1000;
}

.dd-desk-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.dd-desk-grid article,
.dd-designer-grid a {
  padding: 16px;
  place-items: start;
}

.dd-admin-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  margin-bottom: 14px;
}

.dd-staff-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dd-admin-form button {
  align-self: end;
}

.dd-table-wrap {
  overflow-x: auto;
}

.dd-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.dd-table-wrap th,
.dd-table-wrap td {
  padding: 10px;
  border-bottom: 1px solid #ddd0bb;
  text-align: left;
}

.dd-table-wrap th {
  background: #111;
  color: #fff;
}

.dd-card-stage {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}

.dd-id-card {
  width: 390px;
  min-height: 610px;
  overflow: hidden;
  background: #fff;
  border: 2px solid #111;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.dd-id-card header {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: #fff7d6;
  border-bottom: 5px solid #d71920;
  text-align: center;
}

.dd-id-card header img {
  width: 100%;
  max-height: 88px;
  object-fit: contain;
}

.dd-id-card header span {
  color: #fff;
  background: #111;
  padding: 6px;
  font-weight: 1000;
}

.dd-id-body {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
}

.dd-id-photo {
  width: 112px;
  height: 132px;
  display: grid;
  place-items: center;
  background: #f3f4f6;
  border: 2px solid #111;
  font-weight: 1000;
}

.dd-id-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dd-id-body h3 {
  margin: 0;
  color: #111;
  font-size: 1.35rem;
  line-height: 1.1;
}

.dd-id-body p {
  margin: 5px 0 10px;
  color: #d71920;
  font-weight: 1000;
}

.dd-id-body dl,
.dd-id-body div {
  min-width: 0;
}

.dd-id-body dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.dd-id-body dl div {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
}

.dd-id-body dt {
  color: #6b5e4f;
  font-size: 0.72rem;
  font-weight: 900;
}

.dd-id-body dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.dd-barcode {
  display: flex;
  align-items: end;
  gap: 2px;
  height: 74px;
  margin: 10px 18px;
  padding: 10px;
  background: #fff;
  border: 1px solid #111;
}

.dd-barcode span {
  display: block;
  background: #111;
}

.dd-id-card footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  color: #fff;
  background: #111;
  font-size: 0.78rem;
  font-weight: 900;
}

.dd-id-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 610px;
  overflow-y: auto;
}

.dd-id-list button {
  display: grid;
  gap: 3px;
  padding: 10px;
  background: #fff7d6;
  border: 1px solid #111;
  text-align: left;
  cursor: pointer;
}

.dd-id-list span,
.dd-designer-grid span {
  color: #5f5448;
  font-size: 0.84rem;
  font-weight: 800;
}

.dd-designer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dd-designer-grid a {
  display: grid;
}

@media print {
  body.dd-admin-body * {
    visibility: hidden;
  }

  .dd-id-card,
  .dd-id-card * {
    visibility: visible;
  }

  .dd-id-card {
    position: fixed;
    inset: 12px auto auto 12px;
    box-shadow: none;
  }
}

@media (max-width: 900px) {
  .dd-admin-shell,
  .dd-card-stage {
    grid-template-columns: 1fr;
  }

  .dd-stat-grid,
  .dd-desk-grid,
  .dd-admin-form,
  .dd-staff-form,
  .dd-designer-grid {
    grid-template-columns: 1fr;
  }

  .dd-id-card {
    width: min(390px, 100%);
  }
}
