:root {
  --bg: #f5f4ef;
  --paper: #ffffff;
  --ink: #101318;
  --muted: #5b6570;
  --line: #d9dee6;
  --accent: #cb1f28;
  --accent-soft: #fde9ea;
  --chip: #edf1f7;
  --deep: #0e1624;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Four C Gandhi", "Noto Sans Devanagari", "Nirmala UI", sans-serif;
}

.container {
  width: min(1320px, calc(100% - 24px));
  margin: 0 auto;
}

.top-strip {
  background: var(--deep);
  color: #e7edf8;
}

.top-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 13px;
}

.top-strip-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3d4d;
  box-shadow: 0 0 0 4px rgba(255, 61, 77, 0.2);
}

.pipe {
  opacity: 0.5;
}

.market-strip {
  background: #0d1320;
  border-bottom: 1px solid #1f2b42;
}

.market-strip-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
}

.market-label {
  color: #9bd8ff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.market-ticker {
  display: inline-flex;
  gap: 12px;
  overflow: hidden;
  white-space: nowrap;
  min-height: 31px;
}

.market-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #24334f;
  border-radius: 999px;
  padding: 6px 10px;
  color: #e9f1ff;
  background: #121d2e;
  font-size: 12px;
}

.market-chip strong {
  color: #cae6ff;
}

.market-chip.up {
  color: #3ad486;
}

.market-chip.down {
  color: #ff7171;
}

.market-updated {
  color: #89a0bf;
  font-size: 12px;
}

.brand-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 3000;
}

.brand-header-inner {
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-wordmark {
  width: clamp(178px, 20vw, 240px);
  aspect-ratio: 5 / 1;
  border-radius: 8px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d90916;
  box-shadow: 0 5px 16px rgba(150, 0, 8, .16);
}

.brand-wordmark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-primary-nav {
  display: none;
}

.epaper-btn {
  text-decoration: none;
  border: 1px solid #f0bdbe;
  background: #fff5f5;
  color: #a0141b;
  border-radius: 999px;
  font-size: 12px;
  padding: 10px 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.search-wrap {
  display: flex;
  align-items: center;
  background: #f6f8fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  min-width: min(560px, 60vw);
}

.search-wrap input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
}

.search-wrap button {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 12px 14px;
  color: #616b76;
  font-weight: 700;
}

.menu-toggle {
  border: 1px solid #d4dbe7;
  background: #ffffff;
  color: #162033;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  display: none;
}

.category-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.fixed-nav {
  border-bottom: 0;
}

.category-nav-inner {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.single-line-nav {
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  overflow: visible;
  gap: 8px;
}

.category-main-line {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 35px;
}

.category-more {
  position: relative;
  flex: 0 0 auto;
}

.more-btn {
  width: 44px;
  min-width: 44px;
  height: 40px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

/* Legacy category bars from older templates are intentionally hidden */
#categoryFilterBar,
#categoryFilters,
.category-filter-row,
.category-filter-bar,
.top-category-filter,
.legacy-category-row {
  display: none !important;
}

.more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 220px;
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(15, 22, 35, 0.12);
  padding: 8px;
  max-height: 320px;
  overflow: auto;
}

.more-menu.open {
  display: grid;
  gap: 6px;
}

.more-item {
  border: 1px solid var(--line);
  background: #fff;
  color: #25303d;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.more-item.active {
  background: var(--accent-soft);
  border-color: #efbec1;
  color: #951117;
}

.pill {
  border: 1px solid var(--line);
  background: #fff;
  color: #25303d;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  display: inline-grid;
  place-items: center;
  color: currentColor;
  font-size: 15px;
  line-height: 1;
}

.pill.active {
  background: var(--accent-soft);
  border-color: #efbec1;
  color: #951117;
}

.fixed-nav .pill {
  font-weight: 800;
}

.trending-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.trending-strip-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
}

.trending-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8a1720;
  font-weight: 800;
}

.trending-tags {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
  min-height: 35px;
}

.trending-tags .pill {
  flex: 0 0 auto;
}

.breaking-strip {
  background: #151e2f;
  color: #f2f5fb;
}

.breaking-strip-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
}

.breaking-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: #ff8790;
}

.breaking-ticker {
  overflow: hidden;
}

.breaking-track {
  display: inline-flex;
  gap: 22px;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  min-height: 18px;
}

.breaking-chip {
  font-size: 13px;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.page-main {
  padding: 16px 0 24px;
  display: grid;
  gap: 16px;
}

.toi-layout {
  grid-template-columns: 280px minmax(0, 1fr) 340px;
  align-items: start;
}

.toi-left-rail,
.toi-center-feed,
.toi-right-rail {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}

.toi-center-feed > *,
.hero-grid,
.hero-story {
  min-width: 0;
  max-width: 100%;
}

.hero-story-link,
a.story-card,
a.stream-card,
a.list-item,
a.mini-story,
a.pill {
  color: inherit;
  text-decoration: none;
}

.hero-story-link {
  display: contents;
}

.rail-card {
  height: fit-content;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.hero-story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  overflow: hidden;
}

.hero-copy {
  padding: 18px;
}

.kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7e8791;
  font-size: 11px;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.08;
  font-family: "Merriweather", "Noto Sans Devanagari", serif;
}

.hero-copy p {
  margin: 0 0 12px;
  color: #43515f;
  line-height: 1.7;
}

.meta-line {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #667481;
  font-size: 12px;
}

.hero-media {
  min-height: 340px;
  background: linear-gradient(140deg, #dae3f2, #f0f4fb);
}

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

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  background: #111827;
}

.video-thumbnail-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(9, 14, 24, .86);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .22);
  pointer-events: none;
}

.hero-side {
  padding: 14px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.card-head h2,
.card-head h3 {
  margin: 0;
  font-family: "Merriweather", "Noto Sans Devanagari", serif;
}

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

.list-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
}

.list-item h4 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.3;
  font-family: "Merriweather", "Noto Sans Devanagari", serif;
}

.list-item p {
  margin: 0;
  color: #4b5967;
  line-height: 1.6;
}

.section {
  padding: 14px;
}

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

.story-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
}

.thumb {
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: linear-gradient(140deg, #dae3f2, #f0f4fb);
}

.story-copy {
  padding: 12px;
}

.story-copy h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.22;
  font-family: "Merriweather", "Noto Sans Devanagari", serif;
}

.story-copy p {
  margin: 0 0 8px;
  color: #495767;
  line-height: 1.65;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 370px;
  gap: 14px;
}

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

.stream-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
}

.stream-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.24;
  font-family: "Merriweather", "Noto Sans Devanagari", serif;
}

.stream-card p {
  margin: 0 0 8px;
  color: #4b5967;
  line-height: 1.64;
}

.quick-brief-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
  line-height: 1.35;
}

.quick-brief-card p {
  font-size: 14px;
  line-height: 1.55;
}

.rail-tags {
  overflow-x: visible;
  overflow-y: auto;
  max-height: 320px;
  align-content: start;
  flex-wrap: wrap;
}

.section-actions {
  padding-top: 10px;
}

.btn-secondary {
  border: 1px solid #c4ccd8;
  background: #eef2f8;
  color: #273341;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

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

.metric {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.metric span {
  display: block;
  color: #6f7a85;
  font-size: 12px;
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 25px;
  font-family: "Merriweather", "Noto Sans Devanagari", serif;
}

#categorySections {
  display: grid;
  gap: 12px;
}

.category-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.category-block h3 {
  margin: 0 0 10px;
  font-family: "Merriweather", "Noto Sans Devanagari", serif;
}

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

.mini-story {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}

.mini-story h4 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.3;
}

.ad-strip {
  margin-top: 12px;
  min-height: 90px;
}

.ad-inline-section {
  margin-top: 14px;
  min-height: 90px;
}

.toi-left-rail [data-pk-ad="home-rail"] {
  min-height: 129px;
}

[data-pk-ad][hidden],
.ad-inline-section[hidden] {
  display: none !important;
}

.ad-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.ad-link {
  display: block;
  line-height: 0;
}

.ad-card img,
.ad-side-item img {
  width: 100%;
  height: auto;
  display: block;
}

.ad-top img {
  max-height: 160px;
  object-fit: cover;
}

.ad-inline img {
  max-height: 220px;
  object-fit: cover;
}

.ad-side-item {
  padding: 0;
  overflow: hidden;
}

.hero-publisher-panel {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: linear-gradient(135deg, #fff7f2, #eef6ff);
  color: #162033;
}

.hero-publisher-panel strong {
  font-family: "Merriweather", "Noto Sans Devanagari", serif;
  font-size: 34px;
}

.hero-publisher-panel span {
  color: var(--muted);
  line-height: 1.5;
}

.hero-publisher-panel a,
.publisher-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  border: 1px solid #f0bdbe;
  background: #fff5f5;
  color: #a0141b;
  border-radius: 999px;
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 800;
}

.publisher-note p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.publisher-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.legal-page {
  max-width: 940px;
  padding: 32px 16px 64px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  text-decoration: none;
}

.legal-brand .brand-logo-wrap {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.legal-brand .brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
  display: block;
}

.legal-card {
  padding: 28px;
}

.legal-kicker {
  margin: 0 0 8px;
  color: #a0141b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.legal-card h1 {
  margin: 0;
  font-family: "Merriweather", "Noto Sans Devanagari", serif;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1;
}

.legal-updated {
  margin: 10px 0 22px;
  color: var(--muted);
  font-weight: 700;
}

.legal-card h2 {
  margin: 26px 0 8px;
  font-size: 20px;
  color: #111827;
}

.legal-card p {
  margin: 0 0 12px;
  color: #344256;
  font-size: 16px;
  line-height: 1.75;
}

.legal-card a {
  color: #a0141b;
  font-weight: 800;
}

.site-footer {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  background: #ecf1f8;
}

.footer-inner {
  padding: 18px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
}

.footer-inner h4,
.footer-inner h5 {
  margin: 0 0 8px;
}

.footer-inner p {
  margin: 0;
  color: #4e5e6e;
}

.footer-inner .legal-publisher {
  margin-top: 8px;
  max-width: 460px;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.5;
}

.footer-inner .legal-publisher strong {
  display: inline;
  font-weight: 850;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.footer-links a {
  color: #3d4f63;
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.social-links a {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bcc8d8;
  border-radius: 50%;
  color: #25384b;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  background: #fff;
}

.social-links a:hover {
  background: #edf2f8;
}

.article-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 18, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9000;
}

.article-modal.show {
  display: flex;
}

.article-dialog {
  width: min(860px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 14px;
}

.modal-close {
  margin-left: auto;
  display: block;
  border: 1px solid #c4ccd8;
  background: #eef2f8;
  color: #24303d;
  border-radius: 10px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 700;
}

.modal-kicker {
  margin: 10px 0 8px;
  color: #7e8791;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 800;
}

.article-dialog h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.12;
  font-family: "Merriweather", "Noto Sans Devanagari", serif;
}

.modal-meta {
  margin: 0;
  color: #5a6978;
}

.modal-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-link {
  color: #213347;
}

.modal-media {
  margin-top: 12px;
  min-height: 0;
  background: linear-gradient(140deg, #dae3f2, #f0f4fb);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

.modal-media img,
.modal-media video {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(45vh, 420px);
  object-fit: contain;
}

.modal-body {
  margin-top: 14px;
  line-height: 1.95;
  font-size: 17px;
  color: #1b2530;
  white-space: pre-wrap;
  font-family: "Noto Sans Devanagari", "Inter", sans-serif;
}

.modal-audio {
  margin-top: 14px;
}

.modal-audio audio {
  width: 100%;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 14px;
  color: #5f6973;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 12px 0;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: min(320px, 88vw);
  height: 100vh;
  background: #fff;
  border-left: 1px solid var(--line);
  z-index: 9500;
  padding: 14px;
  transition: right 0.25s ease;
  overflow: auto;
}

.mobile-menu.show {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mobile-menu-header h3 {
  margin: 0;
}

.mobile-menu-header button {
  border: 1px solid #c4ccd8;
  background: #eef2f8;
  color: #24303d;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 700;
}

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

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 14, 24, 0.48);
  z-index: 9400;
  display: none;
}

.menu-backdrop.show {
  display: block;
}

.back-to-top-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #c8d1de;
  background: #ffffff;
  color: #111c2b;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(10, 17, 30, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9200;
}

.back-to-top-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.skeleton-block {
  border-radius: 12px;
  background: linear-gradient(90deg, #ebeff5 25%, #f7f9fc 37%, #ebeff5 63%);
  background-size: 400% 100%;
  animation: newsSkeleton 1.2s ease infinite;
  border: 1px solid #d8dee8;
}

.skeleton-lg {
  min-height: 260px;
}

.hero-story > .skeleton-lg {
  min-height: 340px;
}

.skeleton-md {
  min-height: 86px;
  margin-bottom: 8px;
}

.skeleton-card {
  min-height: 290px;
}

.skeleton-row {
  min-height: 130px;
  margin-bottom: 10px;
}

@keyframes newsSkeleton {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.story-main {
  grid-template-columns: minmax(0, 880px) 320px;
  align-items: start;
  justify-content: center;
  gap: 18px;
}

.story-article,
.story-side {
  padding: clamp(16px, 2vw, 24px);
}

.story-meta {
  margin: 0 0 6px;
  color: #4f6174;
  font-size: 15px;
}

.story-article > h1 {
  margin-bottom: 8px;
}

.story-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  z-index: 9600;
  background: linear-gradient(90deg, #cd2030, #ff5573);
}

.story-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
}

.story-tools .btn-secondary {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
}

.story-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.story-icon-btn span {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  line-height: 1;
  font-size: 13px;
}

.story-icon-btn strong {
  font-size: 13px;
}

.story-icon-btn.compact {
  width: 44px;
  padding: 0;
  justify-content: center;
}

.story-icon-btn.compact span {
  width: auto;
  height: auto;
  background: transparent;
  color: inherit;
  font-weight: 900;
}

.story-cover-wrap {
  margin: 4px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(140deg, #dae3f2, #f0f4fb);
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.story-cover-wrap img,
.story-cover-wrap video {
  width: 100%;
  max-height: min(62vh, 560px);
  object-fit: contain;
  display: block;
}

.story-cover-wrap.has-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  background: #f4f7fb;
}

.story-media-gallery-item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.story-media-gallery-item:first-child:nth-last-child(odd) {
  grid-column: 1 / -1;
}

.story-media-gallery-item img,
.story-media-gallery-item video {
  width: 100%;
  height: clamp(220px, 34vw, 440px);
  object-fit: contain;
  background: #111827;
}

.story-media-gallery-item figcaption {
  padding: 9px 11px;
  overflow: hidden;
  color: #445164;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-body {
  max-width: 900px;
  color: #1d2b3a;
  font-size: 14px;
  line-height: 1.62;
  letter-spacing: 0;
  word-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  white-space: normal;
}

.story-body p {
  margin: 0 0 10px;
}

.story-body p:last-child {
  margin-bottom: 0;
}

.story-audio-wrap {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.story-audio-wrap audio {
  width: 100%;
}

.story-audio-item {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) minmax(220px, 1fr);
  align-items: center;
  gap: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f7f9fc;
}

.story-audio-item > div {
  display: grid;
  gap: 3px;
}

.story-audio-item strong {
  overflow: hidden;
  color: #172535;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-audio-item span {
  color: var(--muted);
  font-size: 11px;
}

.story-related-wrap {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

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

.story-related-grid .mini-story {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  min-height: 128px;
  padding: 10px;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.story-related-grid .mini-story:hover {
  transform: translateY(-2px);
  border-color: #d71920;
}

.mini-story-thumb {
  width: 112px;
  height: 96px;
  border-radius: 6px;
  overflow: hidden;
  background: #e8edf5;
}

.mini-story-thumb img,
.mini-story-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mini-story-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 5px;
}

.mini-story-copy span {
  color: #d71920;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-story-copy h4 {
  margin: 0;
  overflow: hidden;
  color: #172535;
  font-size: 17px;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-story-copy p {
  margin: 0;
  color: #5d6b7a;
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1140px) {
  .toi-layout {
    grid-template-columns: 1fr;
  }

  .toi-center-feed {
    order: 1;
  }

  .toi-left-rail {
    order: 2;
  }

  .toi-right-rail {
    order: 3;
  }

  .hero-grid,
  .content-grid,
  .story-main {
    grid-template-columns: 1fr;
  }

  .story-main {
    justify-content: stretch;
  }

  .hero-story {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 980px) {
  .search-wrap {
    min-width: 300px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 18px, 1320px);
  }

  .top-strip-inner,
  .brand-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-strip-inner {
    gap: 6px;
    padding: 8px 0;
  }

  .top-strip-right {
    width: 100%;
    justify-content: space-between;
    font-size: 12px;
  }

  .brand-header-inner {
    gap: 10px;
    padding: 10px 0;
  }

  .market-strip-inner,
  .breaking-strip-inner,
  .trending-strip-inner {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .market-ticker {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .market-updated {
    display: none;
  }

  .brand {
    width: 100%;
  }

  .brand-wordmark {
    width: min(220px, 62vw);
    border-radius: 7px;
    flex: 0 0 auto;
  }

  .header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .search-wrap {
    grid-column: 1 / -1;
    min-width: 100%;
    width: 100%;
    order: 0;
    min-height: 42px;
  }

  .search-wrap input {
    padding: 10px 12px;
    font-size: 13px;
  }

  .epaper-btn,
  .menu-toggle {
    min-height: 42px;
    padding: 9px 11px;
    font-size: 11px;
  }

  .epaper-btn {
    width: 100%;
  }

  .category-main-line,
  .single-line-nav {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .category-main-line .pill {
    flex: 0 0 auto;
  }

  .breaking-track {
    animation-duration: 42s;
  }

  .page-main {
    padding: 12px 0 20px;
    gap: 12px;
  }

  .toi-layout {
    gap: 12px;
  }

  .toi-left-rail,
  .toi-right-rail {
    display: none;
  }

  .hero-story {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 14px;
  }

  .hero-copy h1 {
    font-size: clamp(28px, 9vw, 38px);
    line-height: 1.08;
  }

  .hero-media {
    min-height: 210px;
  }

  .hero-story > .skeleton-lg {
    min-height: 520px;
  }

  .card,
  .article-dialog {
    border-radius: 14px;
  }

  .section,
  .rail-card,
  .story-article,
  .story-side {
    padding: 13px;
  }

  .ad-strip,
  .ad-card {
    min-height: 74px;
  }

  .story-body,
  .modal-body {
    font-size: 15.8px;
    line-height: 1.64;
  }

  .story-body p {
    margin-bottom: 9px;
  }

  .story-cover-wrap.has-gallery {
    grid-template-columns: 1fr;
    padding: 7px;
  }

  .story-media-gallery-item:first-child:nth-last-child(odd) {
    grid-column: auto;
  }

  .story-media-gallery-item img,
  .story-media-gallery-item video {
    height: min(72vw, 360px);
  }

  .story-audio-item {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .category-nav {
    display: none;
  }

  .story-grid,
  .category-story-grid,
  .metric-grid,
  .story-related-grid {
    grid-template-columns: 1fr;
  }

  .story-related-grid .mini-story {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .mini-story-thumb {
    width: 96px;
    height: 78px;
  }

  .rail-tags {
    max-height: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .article-dialog {
    width: min(94vw, 860px);
    padding: 12px;
  }

  .article-dialog h2 {
    font-size: clamp(24px, 6vw, 34px);
  }
}

/* Public reader theme and newsroom-grade layout */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090d14;
  --paper: #111722;
  --ink: #f3f5f8;
  --muted: #aab4c2;
  --line: #2a3443;
  --accent: #ed3944;
  --accent-soft: #3a171c;
  --chip: #1a2230;
  --deep: #070a10;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f4ef;
  --paper: #ffffff;
  --ink: #101318;
  --muted: #5b6570;
  --line: #d9dee6;
  --accent: #cb1f28;
  --accent-soft: #fde9ea;
  --chip: #edf1f7;
  --deep: #0e1624;
}

body,
.brand-header,
.category-nav,
.trending-strip,
.story-card,
.ad-card,
.mobile-menu,
.more-menu,
.more-item,
.pill {
  background-color: var(--paper);
  color: var(--ink);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--chip);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 32%, transparent);
  outline-offset: 2px;
}

html[data-theme="dark"] .search-wrap,
html[data-theme="dark"] .menu-toggle,
html[data-theme="dark"] .mobile-menu-header button,
html[data-theme="dark"] .stream-card,
html[data-theme="dark"] .mini-story,
html[data-theme="dark"] .metric,
html[data-theme="dark"] .article-dialog,
html[data-theme="dark"] .story-article,
html[data-theme="dark"] .story-side {
  background: #141b27;
  color: var(--ink);
  border-color: var(--line);
}

html[data-theme="dark"] .stream-card p,
html[data-theme="dark"] .hero-copy > p:not(.kicker),
html[data-theme="dark"] .story-copy p,
html[data-theme="dark"] .mini-story p,
html[data-theme="dark"] .publisher-note p,
html[data-theme="dark"] .footer-inner p,
html[data-theme="dark"] .list-item p {
  color: var(--muted);
}

html[data-theme="dark"] .story-body,
html[data-theme="dark"] .story-body p,
html[data-theme="dark"] .story-body li,
html[data-theme="dark"] .story-body blockquote {
  color: #e5ebf3;
}

html[data-theme="dark"] .story-meta,
html[data-theme="dark"] .story-media-gallery-item figcaption {
  color: #aeb9c8;
}

html[data-theme="dark"] .story-cover-wrap,
html[data-theme="dark"] .story-cover-wrap.has-gallery,
html[data-theme="dark"] .story-media-gallery-item {
  background: #0d131d;
  border-color: #303a49;
}

html[data-theme="dark"] .site-footer {
  background: #0c111a;
}

html[data-theme="dark"] .epaper-btn {
  background: #2c1519;
  color: #ffb8bd;
  border-color: #663038;
}

html[data-theme="dark"] .pk-user-btn,
html[data-theme="dark"] .pk-user-menu {
  background: #141b27;
  color: var(--ink);
  border-color: var(--line);
}

.reader-rail {
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  background: var(--paper);
}

.reader-rail h2 {
  margin: 8px 0 10px;
  font-family: "Merriweather", "Noto Sans Devanagari", serif;
  font-size: 25px;
  line-height: 1.35;
}

.reader-rail > p:not(.kicker) {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.reader-rail-action {
  min-height: 44px;
  margin-top: 18px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.rail-advertisements {
  padding-top: 4px;
  container-type: inline-size;
}

.toi-layout {
  grid-template-columns: 270px minmax(0, 1fr) 300px;
  gap: 18px;
}

@media (max-width: 1140px) {
  .toi-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .toi-center-feed { order: 1; }
  .toi-right-rail { order: 2; }
  .toi-left-rail { display: none; }
}

@media (max-width: 760px) {
  .top-strip,
  .market-strip {
    display: none;
  }

  .brand-header-inner {
    flex-flow: row wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
  }

  .brand {
    width: auto;
    flex: 1 1 150px;
  }

  .brand-wordmark {
    width: min(158px, 43vw);
  }

  .header-actions {
    width: 100%;
    grid-template-columns: 40px minmax(0, 1fr) auto auto;
    align-items: center;
  }

  .search-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 40px;
  }

  .theme-toggle {
    grid-column: 1;
    grid-row: 1;
  }

  .epaper-btn {
    grid-column: 2;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .menu-toggle {
    grid-column: 4;
    grid-row: 1;
  }

  .header-actions .pk-user-entry {
    grid-column: 3;
    grid-row: 1;
  }

  .header-actions .pk-user-btn {
    width: 42px;
    min-height: 42px;
    padding: 0;
    justify-content: center;
  }

  .header-actions .pk-user-label {
    display: none;
  }

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

  .toi-right-rail {
    display: none;
  }

  .card,
  .article-dialog {
    border-radius: 8px;
  }
}

/* Bhaskar-inspired compact Hindi news layout */
html[data-theme="light"] {
  --bg: #f2f3f5;
  --line: #dde2e8;
  --accent: #d71920;
  --accent-soft: #fff0f1;
  --chip: #f4f6f8;
  --deep: #111827;
}

body {
  background: var(--bg);
}

.container {
  width: min(1180px, calc(100% - 20px));
}

.top-strip-inner {
  padding: 7px 0;
  font-size: 12px;
}

.market-strip-inner {
  padding: 6px 0;
}

.brand-header {
  background: #d71920;
  border-bottom: 0;
}

.brand-header-inner {
  padding: 10px 0;
}

.brand-wordmark {
  width: clamp(174px, 20vw, 232px);
  border-radius: 4px;
  box-shadow: none;
}

.search-wrap {
  min-width: min(430px, 44vw);
  border-color: rgba(255, 255, 255, .75);
  border-radius: 6px;
  background: #fff;
}

.search-wrap input {
  padding: 10px 12px;
  font-size: 13px;
}

.epaper-btn,
.menu-toggle {
  border-color: rgba(255, 255, 255, .78);
  border-radius: 6px;
  background: #fff;
  color: #b20f17;
  padding: 9px 12px;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  border-radius: 6px;
  background: #fff;
  color: #b20f17;
}

.category-nav,
.trending-strip {
  background: #fff;
  border-bottom: 1px solid #d8dde5;
  box-shadow: 0 1px 0 rgba(10, 17, 28, .04);
}

.category-nav-inner {
  padding: 7px 0;
}

.category-main-line {
  gap: 4px;
}

.pill {
  border-color: transparent;
  border-radius: 4px;
  background: transparent;
  padding: 7px 10px;
  color: #1c2430;
  font-size: 13px;
}

.pill.active,
.more-item.active {
  background: #d71920;
  border-color: #d71920;
  color: #fff;
}

.breaking-strip {
  border-top: 1px solid #bf141a;
  border-bottom: 1px solid #bf141a;
  background: #d71920;
}

.breaking-strip-inner {
  padding: 8px 0;
}

.breaking-label {
  color: #fff;
}

.breaking-chip {
  color: #fff;
  font-weight: 700;
}

.trending-strip-inner {
  padding: 8px 0;
}

.trending-label {
  color: #d71920;
}

.page-main {
  padding: 12px 0 22px;
  gap: 12px;
}

.toi-layout {
  grid-template-columns: 250px minmax(0, 1fr) 292px;
  gap: 12px;
}

.toi-left-rail,
.toi-center-feed,
.toi-right-rail {
  gap: 12px;
}

.card,
.rail-card,
.story-card,
.stream-card,
.list-item,
.mini-story,
.category-block,
.reader-rail,
.article-dialog,
.ad-card {
  border-radius: 8px;
}

.card {
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.section,
.rail-card {
  padding: 12px;
}

.card-head {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.card-head h2,
.card-head h3 {
  font-size: 20px;
  line-height: 1.2;
}

.card-head h2::before,
.card-head h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  margin-right: 7px;
  border-radius: 2px;
  background: #d71920;
  vertical-align: -3px;
}

.hero-story {
  grid-template-columns: minmax(0, 1fr);
}

.hero-copy {
  padding: 14px 14px 12px;
  order: 2;
}

.hero-copy h1 {
  margin-bottom: 8px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.16;
}

.hero-copy p {
  margin-bottom: 9px;
  line-height: 1.55;
}

.hero-media {
  min-height: 0;
  aspect-ratio: 16 / 9;
  order: 1;
}

.story-grid,
.category-story-grid {
  gap: 10px;
}

.story-copy {
  padding: 10px;
}

.story-copy h3 {
  margin-bottom: 6px;
  font-size: 19px;
  line-height: 1.25;
}

.story-copy p {
  margin-bottom: 7px;
  font-size: 14px;
  line-height: 1.48;
}

.stream-list,
.list {
  gap: 8px;
}

.stream-card,
.list-item,
.mini-story {
  padding: 10px;
}

.stream-card h3 {
  margin-bottom: 6px;
  font-size: 20px;
  line-height: 1.25;
}

.stream-card p,
.list-item p {
  margin-bottom: 7px;
  font-size: 14px;
  line-height: 1.5;
}

.quick-brief-card h3,
.list-item h4,
.mini-story h4 {
  font-size: 16px;
  line-height: 1.28;
}

.kicker {
  margin-bottom: 6px;
  color: #d71920;
  letter-spacing: .08em;
}

.meta-line {
  gap: 8px;
  font-size: 11px;
}

.reader-rail {
  padding: 16px;
  border-top-width: 3px;
}

.reader-rail h2 {
  font-size: 21px;
  line-height: 1.28;
}

.ad-strip {
  margin-top: 10px;
}

html[data-theme="dark"] .brand-header,
html[data-theme="dark"] .breaking-strip {
  background: #d71920;
}

html[data-theme="dark"] .category-nav,
html[data-theme="dark"] .trending-strip {
  background: #111722;
}

html[data-theme="dark"] .pill {
  color: #edf2f8;
}

html[data-theme="dark"] .pill.active,
html[data-theme="dark"] .more-item.active {
  background: #ed3944;
  border-color: #ed3944;
  color: #fff;
}

@media (max-width: 1140px) {
  .toi-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 18px, 1180px);
  }

  .brand-header-inner {
    padding: 8px 0;
  }

  .brand-wordmark {
    width: min(156px, 43vw);
  }

  .header-actions {
    gap: 7px;
  }

  .epaper-btn,
  .menu-toggle,
  .theme-toggle {
    min-height: 40px;
  }

  .page-main,
  .toi-layout,
  .toi-center-feed {
    gap: 10px;
  }

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

  .toi-left-rail,
  .toi-right-rail {
    display: none;
  }

  .section,
  .rail-card,
  .story-article,
  .story-side {
    padding: 10px;
  }

  .story-grid,
  .category-story-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .story-copy h3,
  .stream-card h3 {
    font-size: 18px;
  }
}

/* Theme changes colours only; layout is shared with the light reader. */
html[data-theme="dark"] {
  --bg: #181818;
  --paper: #202020;
  --ink: #f3f3f3;
  --muted: #b8b8b8;
  --line: #343434;
  --accent: #ed3944;
  --accent-soft: #3a171c;
  --chip: #252525;
  --deep: #202020;
}

html[data-theme="dark"] body {
  background: #181818;
}

html[data-theme="dark"] .top-strip,
html[data-theme="dark"] .market-strip,
html[data-theme="dark"] .brand-header,
html[data-theme="dark"] .category-nav,
html[data-theme="dark"] .trending-strip {
  background: #222;
  border-color: #353535;
}

html[data-theme="dark"] .search-wrap {
  border-color: #3a3a3a;
  background: #181818;
}

html[data-theme="dark"] .search-wrap input {
  color: #f5f5f5;
}

html[data-theme="dark"] .search-wrap input::placeholder {
  color: #a6a6a6;
}

html[data-theme="dark"] .epaper-btn,
html[data-theme="dark"] .menu-toggle,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .pk-user-btn {
  border-color: #3a3a3a;
  background: #252525;
  color: #f3f3f3;
}

html[data-theme="dark"] .pill {
  color: #dedede;
}

html[data-theme="dark"] .pill.active {
  background: #d71920;
  color: #fff;
}

html[data-theme="dark"] .category-main-line .pill-icon {
  background: #2c2c2c;
  color: #eee;
}

html[data-theme="dark"] .category-main-line .pill.active .pill-icon {
  background: #d71920;
  color: #fff;
}

html[data-theme="dark"] .more-btn {
  border-color: #343434;
  background: #202020;
  color: #eee;
}

html[data-theme="dark"] .story-icon-btn span {
  background: #d71920;
  color: #fff;
}

html[data-theme="dark"] .story-icon-btn.compact span {
  background: transparent;
  color: inherit;
}

html[data-theme="dark"] .story-related-grid .mini-story {
  background: #202020;
  border-color: #343434;
}

html[data-theme="dark"] .story-related-grid .mini-story:hover {
  background: #262626;
  border-color: #d71920;
}

html[data-theme="dark"] .mini-story-thumb {
  background: #141414;
}

html[data-theme="dark"] .mini-story-copy span {
  color: #ff513f;
}

html[data-theme="dark"] .mini-story-copy h4 {
  color: #f2f2f2;
}

html[data-theme="dark"] .mini-story-copy p,
html[data-theme="dark"] .story-related-grid .meta-line {
  color: #b8b8b8;
}

html[data-theme="dark"] .breaking-strip {
  background: #141414;
  border-top: 1px solid #343434;
  border-bottom: 1px solid #343434;
}

html[data-theme="dark"] .breaking-label,
html[data-theme="dark"] .trending-label {
  color: #ff513f;
}

html[data-theme="dark"] .trending-strip {
  background: #181818;
}

.side-section-menu {
  display: grid;
  gap: 10px;
}

.side-section-link {
  min-height: 56px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
}

.side-section-link span {
  font-size: 24px;
  line-height: 1;
}

.side-section-link strong {
  font-size: 18px;
  line-height: 1.2;
}

.side-section-link em {
  padding: 3px 6px;
  border-radius: 999px;
  background: #f9423a;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

html[data-theme="dark"] .side-section-link {
  color: #dedede;
}

html[data-theme="dark"] .side-section-link.active,
html[data-theme="dark"] .side-section-link:hover {
  background: #282828;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .rail-card,
html[data-theme="dark"] .story-card,
html[data-theme="dark"] .stream-card,
html[data-theme="dark"] .list-item,
html[data-theme="dark"] .mini-story,
html[data-theme="dark"] .category-block,
html[data-theme="dark"] .reader-rail,
html[data-theme="dark"] .article-dialog,
html[data-theme="dark"] .ad-card {
  background: #222;
  border-color: #343434;
  box-shadow: none;
}

html[data-theme="dark"] .hero-story {
  background: var(--paper);
}

html[data-theme="dark"] .hero-copy h1 {
  color: #f1f1f1;
}

html[data-theme="dark"] .hero-copy .kicker + h1::first-line {
  color: inherit;
}

html[data-theme="dark"] .hero-copy p {
  color: #cfcfcf;
}

html[data-theme="dark"] .hero-media {
  background: #252525;
}

html[data-theme="dark"] .card-head {
  border-bottom-color: #343434;
}

html[data-theme="dark"] .card-head h2,
html[data-theme="dark"] .card-head h3,
html[data-theme="dark"] .stream-card h3,
html[data-theme="dark"] .story-copy h3,
html[data-theme="dark"] .quick-brief-card h3,
html[data-theme="dark"] .list-item h4,
html[data-theme="dark"] .mini-story h4 {
  color: #eeeeee;
}

html[data-theme="dark"] .kicker {
  color: #ff513f;
}

html[data-theme="dark"] .reader-rail {
  border-top-color: #d71920;
}

html[data-theme="dark"] .reader-rail-action {
  background: #d71920;
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  .breaking-ticker,
  .breaking-track {
    max-width: 100%;
  }

  .mobile-menu {
    right: min(-320px, -88vw);
  }

}
