:root {
  --bg: #ffffff;
  --text: #0b1220;
  --muted: #6b7280;
  --border: #e5e7eb;
  --grey: #f5f5f5;
  --author-bg: #f9fafb;
  --accent: #ee1c24;
  --chip: #f5f5f5;
  --chip-text: #1f2937;
  --article: 944px;
  --rail: 300px;
  --gap: 32px;
  --shell: 1276px;
  --header-h: 131px;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  /* Public site only. Admin is a separate PHP app and is not affected. */
  -webkit-user-select: none;
  user-select: none;
  /* Hindi-first: Noto Sans Devanagari for the whole site */
  font-family: var(--font-noto), system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100%;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; font-weight: 500; }
/* Stronger than leftover CKEditor/inline styles. Search boxes stay selectable. */
body.nm-nocopy,
body.nm-nocopy *:not(input):not(textarea):not(select):not([contenteditable="true"]) {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default;
}

h1, h2, h3, h4, .h1, .section-head h2, .cat-h1 {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: normal;
}
strong, b { font-weight: 700; }

.shell {
  width: min(var(--shell), calc(100% - 32px));
  margin: 0 auto;
}

/* Sticky chrome — logo + category strip (MP Breaking style).
   Keep above .pwa-overlay so hamburger stays tappable while install prompt is open. */
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #fff;
  box-shadow: 0 1px 0 var(--border);
}

/* Header */
.header {
  background: #fff;
  min-height: 64px;
  display: flex;
  align-items: center;
  overflow: visible;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--shell), calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0;
  overflow: visible;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: visible;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: visible;
  flex-shrink: 1;
  min-width: 0;
}
.logo img {
  height: 48px;
  max-height: 52px;
  width: auto;
  max-width: min(220px, 55vw);
  object-fit: contain;
  object-position: left center;
}
.logo-fallback {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-weight: 700;
}
.logo-fallback span:first-child {
  background: var(--accent);
  color: #fff;
  padding: 4px 8px;
  font-size: 22px;
  letter-spacing: 0.5px;
}
.logo-fallback span:last-child {
  background: #111;
  color: #fff;
  padding: 3px 8px;
  font-size: 11px;
  letter-spacing: 1px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.city-btn, .icon-btn, .hamburger {
  border: 1px solid var(--border);
  background: #fff;
  height: 40px;
  min-width: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  padding: 0 12px;
}
.city-btn-label { font-size: 14px; }
.icon-btn { border-radius: 9999px; padding: 0; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  width: 40px;
}
.hamburger span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.nav {
  border-top: 1px solid var(--border);
  background: #fff;
}
.nav-inner {
  width: min(var(--shell), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav a {
  flex: 0 0 auto;
  padding: 12px 12px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* Advanced mobile drawer */
.mnav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 90;
  animation: mnav-fade 0.2s ease;
}
.mnav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86vw, 340px);
  background: #fff;
  z-index: 95;
  display: flex;
  flex-direction: column;
  padding: 0 0 24px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.12);
  animation: mnav-slide 0.22s ease;
}
.mnav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.mnav-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}
.mnav-brand img {
  height: 40px;
  max-height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
}
.mnav-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: #fff;
  font-size: 18px;
  line-height: 1;
  color: var(--text);
  flex-shrink: 0;
}
.mnav-city {
  margin: 14px 16px 8px;
  width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
}
.mnav-install {
  margin: 0 16px 8px;
  width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid #fecaca;
  background: #fef2f2;
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
}
.mnav-install img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}
.mnav-install span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mnav-install strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.mnav-install small {
  font-size: 12px;
  color: var(--muted);
}
.mnav-city-ico {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.mnav-city span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.mnav-city strong {
  font-size: 14px;
  font-weight: 700;
}
.mnav-city small {
  font-size: 12px;
  color: var(--muted);
}
.mnav-label {
  margin: 16px 16px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.mnav-links {
  display: flex;
  flex-direction: column;
  padding: 0 8px;
}
.mnav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 12px;
  margin: 0 4px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.mnav-links a.active {
  background: #fef2f2;
  color: var(--accent);
}
.mnav-links a:active {
  background: #f3f4f6;
}
.mnav-chev {
  color: #9ca3af;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}
.mnav-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 8px;
}
.mnav-chips a {
  border: 1px solid var(--border);
  background: #f3f4f6;
  border-radius: 9999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
}
@keyframes mnav-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes mnav-slide {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* PWA install + notification prompts — below header (z 80) so nav still works */
.pwa-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.35);
  animation: mnav-fade 0.25s ease;
  /* Leave top chrome clickable even when backdrop covers the page */
  pointer-events: none;
}
.pwa-overlay .pwa-card {
  pointer-events: auto;
}
.pwa-card {
  position: relative;
  width: min(400px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px 18px;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  animation: pwa-up 0.28s ease;
}
.pwa-card-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: #fff;
  font-size: 16px;
  color: var(--muted);
}
.pwa-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  margin: 4px auto 12px;
  display: block;
}
.pwa-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}
.pwa-card > p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}
.pwa-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pwa-install-btn {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 9999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.pwa-install-btn--block {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
}
.pwa-later-btn {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px;
}
.pwa-ios-tip {
  text-align: left;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.pwa-ios-tip p {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}
.pwa-dismiss {
  background: transparent;
  border: 0;
  color: #9ca3af;
  font-size: 18px;
  min-width: 32px;
  min-height: 32px;
}
.pwa-promo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.pwa-promo img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
}
.pwa-promo strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.pwa-promo p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.pwa-promo .pwa-install-btn {
  margin-left: auto;
  flex-shrink: 0;
}
@keyframes pwa-up {
  from { transform: translateY(18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 768px) {
  .pwa-overlay {
    align-items: center;
  }
}

.layout {
  width: min(var(--shell), calc(100% - 32px));
  margin: 20px auto 48px;
  display: grid;
  grid-template-columns: minmax(0, var(--article)) var(--rail);
  gap: var(--gap);
  align-items: start;
  min-width: 0;
  max-width: 100%;
}
.layout > div {
  min-width: 0;
  max-width: 100%;
}

.crumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.crumb a { color: var(--accent); }

.h1 {
  font-size: 33px;
  line-height: 45px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: normal;
}
.news-title span {
  display: inline;
  font-weight: inherit;
}
.news-title span[style*="background"] {
  padding: 0 0.2em;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.meta-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  margin-bottom: 16px;
}
.meta-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}
.news-date {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--muted);
}
.news-date--article {
  margin-top: 0;
  font-size: 13px;
}
.cat-tile-text {
  min-width: 0;
}
.cat-tile-text .news-date,
.related-item-text .news-date {
  margin-top: 4px;
}
.byline { font-size: 14px; color: var(--muted); }
.byline strong { color: var(--text); font-weight: 600; }
.byline a { color: var(--text); font-weight: 600; }
.byline--modern {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}
.byline-avatar {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--grey);
  border: 1px solid var(--border);
}
.byline-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.byline-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
}
.byline-text {
  min-width: 0;
}
.byline-author {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  color: var(--text);
}
.byline-by {
  color: var(--muted);
  font-weight: 500;
}
.byline-author a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
}
.byline-author a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
.byline-desk {
  margin: 2px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}
.actions { display: flex; align-items: center; gap: 8px; }
.share-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.share-btn {
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.share-btn--fb { background: #1877f2; }
.share-btn--x { background: #0f1419; }
.share-btn--wa { background: #25d366; }
.share-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
}
.share-btn:active {
  transform: scale(0.96);
}

.summary {
  background: var(--grey);
  padding: 16px;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1.45;
  margin: 0 0 18px;
}

.article-lead {
  float: left;
  width: 400px;
  max-width: 100%;
  margin: 0 20px 12px 0;
}
.article-lead img {
  width: 100%;
  max-width: 400px;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  object-position: center;
  background: var(--grey);
  border-radius: 4px;
}
.caption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.body {
  font-size: clamp(17px, 4.5vw, 19px);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.75;
}
/* Nuke legacy CKEditor spacing — old articles use nested div/span + br spacers */
.body * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  line-height: inherit !important;
}
.body p,
.body li {
  margin-bottom: 0.7em !important;
}
.body h2,
.body h3,
.body h4 {
  margin: 1em 0 0.45em !important;
  font-weight: 700;
  clear: both;
  line-height: 1.3 !important;
}
.body h2 { font-size: 26px; }
.body h3 { font-size: 22px; }
.body div {
  margin: 0 !important;
  padding: 0 !important;
}
.body p:empty,
.body div:empty,
.body span:empty {
  display: none !important;
}
.body img {
  max-width: 100% !important;
  height: auto !important;
  margin: 12px auto;
  display: block;
  object-fit: contain;
}
.body img[align="left"],
.body img[style*="float:left"],
.body img[style*="float: left"] {
  float: left;
  display: inline;
  margin: 6px 16px 12px 0;
}
.body img[align="right"],
.body img[style*="float:right"],
.body img[style*="float: right"] {
  float: right;
  display: inline;
  margin: 6px 0 12px 16px;
}
.body::after { content: ""; display: block; clear: both; }

.related {
  background: var(--grey);
  padding: 16px;
  border-radius: 8px;
  margin: 20px 0;
  clear: both;
}
.related-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  flex-wrap: wrap;
}
.related-head h2 {
  font-size: 20px;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.related-head .share-actions {
  margin-left: auto;
}
.related h2 {
  font-size: 20px;
  margin: 0 0 12px;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.related-item {
  display: grid;
  grid-template-columns: 22px 1fr 96px;
  gap: 8px;
  align-items: start;
}
.related-item .num { color: #9ca3af; font-weight: 700; font-size: 18px; }
.related-item h3 { font-size: 15px; line-height: 1.35; margin: 0; font-weight: 600; }
.related-item img {
  width: 96px;
  height: 72px;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
  background: #fff;
}

.author-box {
  background: var(--author-bg);
  padding: 24px;
  border-radius: 8px;
  display: flex;
  gap: 16px;
  margin-top: 0;
  margin-bottom: 20px;
  clear: both;
}
.author-page .section-head {
  margin-top: 4px;
}
article .author-box {
  margin-top: 28px;
  margin-bottom: 0;
}
.author-box img {
  width: 80px;
  height: 80px;
  border-radius: 9999px;
  object-fit: cover;
  background: #e5e7eb;
}
.author-box h3 { margin: 0 0 4px; font-size: 16px; }
.author-kicker { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.author-box p { margin: 0 0 8px; font-size: 14px; color: #374151; line-height: 1.5; }
.author-box a { color: var(--accent); font-size: 14px; }

.rail { position: sticky; top: 12px; }
.ad {
  border: 1px dashed var(--border);
  min-height: 250px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  background: #fff;
}
.ad img { width: 100%; height: auto; object-fit: contain; }

.taza h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 18px;
  margin: 0 0 10px;
}
.taza .more { color: var(--accent); font-size: 13px; font-weight: 600; }
.taza-item {
  display: grid;
  grid-template-columns: 1fr 64px;
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
}
.taza-item h4 { margin: 0; font-size: 13px; line-height: 1.35; font-weight: 600; }
.taza-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
}

.cities-rail h3 {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 18px;
  margin: 0 0 12px;
  line-height: 1.25;
}
.cities-rail-note {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.cities-rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.cities-rail-list li + li {
  border-top: 1px solid var(--border);
}
.cities-rail-list a {
  display: block;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.cities-rail-list a:hover {
  background: #f8f8f8;
  color: var(--accent);
}

.list-item {
  display: grid;
  grid-template-columns: 1fr 84px;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.list-item:last-child { border-bottom: 0; }
.list-item h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-item img,
.list-ph {
  width: 84px;
  height: 64px;
  object-fit: contain;
  object-position: center;
  border-radius: 4px;
  background: var(--grey);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.hero-lead { display: block; }
.hero-lead img,
.hero-ph {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
  border-radius: 4px;
  background: var(--grey);
}
.hero-lead h2 {
  font-size: 22px;
  line-height: 1.45;
  margin: 12px 0 0;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}
.hero-side .list-item { padding: 10px 0; }
.hero-side .list-item h3 { font-size: 14px; }
.hero-side .list-item img,
.hero-side .list-ph { width: 72px; height: 54px; }

.topic-block {
  margin: 0 0 32px;
}
.topic-empty {
  margin: 8px 0 0;
  padding: 18px 16px;
  background: #f5f5f5;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* YouTube Shorts — modern horizontal rail (scrollbar hidden) */
.shorts-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.shorts-rail::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.shorts-card {
  flex: 0 0 auto;
  /* Desktop: ~4 cards visible in the rail */
  width: calc((100% - 42px) / 4);
  max-width: 200px;
  scroll-snap-align: start;
  display: block;
}
.shorts-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.shorts-thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.shorts-thumb img,
.shorts-ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shorts-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  padding-left: 3px;
  pointer-events: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.shorts-thumb:hover .shorts-play {
  transform: translate(-50%, -50%) scale(1.06);
  background: #fff;
}
.shorts-title {
  display: block;
  overflow: visible;
  margin: 10px 2px 0;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}
.shorts-thumb--tone1 { background: linear-gradient(160deg, #7f1d1d, #ee1c24 55%, #111); }
.shorts-thumb--tone2 { background: linear-gradient(160deg, #1e3a5f, #2563eb 55%, #0f172a); }
.shorts-thumb--tone3 { background: linear-gradient(160deg, #14532d, #16a34a 55%, #052e16); }
.shorts-thumb--tone4 { background: linear-gradient(160deg, #4c1d95, #7c3aed 55%, #1e1b4b); }
.shorts-thumb--tone5 { background: linear-gradient(160deg, #7c2d12, #ea580c 55%, #1c1917); }

/* Shorts popup player — ~70% viewport, mobile-first */
.shorts-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: shorts-modal-in 0.2s ease-out;
}
@keyframes shorts-modal-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.shorts-modal__panel {
  width: min(100%, 420px);
  height: min(70vh, 720px);
  max-height: 70dvh;
  display: flex;
  flex-direction: column;
  background: #0b0d12;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  animation: shorts-panel-in 0.22s ease-out;
}
@keyframes shorts-panel-in {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.shorts-modal__bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 14px;
  background: #12151c;
}
.shorts-modal__title {
  flex: 1 1 auto;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #f5f5f5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shorts-modal__close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.shorts-modal__close:hover,
.shorts-modal__close:active {
  background: rgba(255, 255, 255, 0.28);
}
.shorts-modal__player {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: #000;
}
.shorts-modal__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.section-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: normal;
}
.section-head .more {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.pills a,
.pills button {
  border: 1px solid var(--border);
  background: #f3f4f6;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
}
.pills a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* MP Breaking–style dense photo grid */
.cards,
.cards--home {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 18px;
}
.cards--more {
  margin-top: 16px;
}
.card {
  display: block;
}
.card img,
.card-ph {
  width: 100%;
  height: auto;
  max-height: 180px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 4px;
  background: var(--grey);
}
.card h3 {
  font-size: 14px;
  margin: 8px 0 0;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Featured left + list right (MP category sections) */
.topic-split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: start;
}
.topic-feature { display: block; }
.topic-feature img,
.topic-feature-ph {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  object-position: center;
  border-radius: 4px;
  background: var(--grey);
}
.topic-feature h3 {
  font-size: 17px;
  line-height: 1.45;
  margin: 10px 0 0;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}
.topic-feature--solo {
  display: block;
  max-width: 720px;
}
.topic-feature--solo img,
.topic-feature--solo .topic-feature-ph {
  max-height: 420px;
}
.topic-feature--solo h3 {
  font-size: 20px;
  line-height: 1.45;
}

/* Category listing — image + title + date (no time) */
.cat-page {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 8px 0 20px;
  min-width: 0;
}
.cat-tile {
  display: block;
  border-bottom: 0;
  min-width: 0;
  transition: opacity 0.15s ease;
}
.cat-tile:hover h3 {
  color: var(--accent);
}
.cat-tile img,
.cat-tile-ph {
  width: 100%;
  height: auto;
  max-height: 200px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  background: var(--grey);
}
.cat-tile-ph {
  min-height: 120px;
}
.cat-tile h3 {
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  margin: 10px 0 0;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.cat-h1 { font-size: 40px; margin: 8px 0 8px; }
.cat-intro { color: var(--muted); margin: 0 0 20px; font-size: 15px; }

.static-page {
  max-width: var(--article);
  padding: 8px 0 40px;
}
.static-page .h1 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.25;
}
.static-page .crumb span {
  color: var(--muted);
}
.static-page-lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}
.static-page .body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.static-page .body ul,
.static-page .body ol {
  padding-left: 1.35em !important;
  margin: 0.4em 0 1em !important;
}
.static-page .body li {
  margin-bottom: 0.4em !important;
}
.static-page .body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8em 0 1.2em !important;
  font-size: 16px;
}
.static-page .body th,
.static-page .body td {
  border: 1px solid var(--border);
  padding: 8px 10px !important;
  text-align: left;
}
.static-page-empty {
  color: var(--muted);
  margin: 0;
}

.district { margin: 0 0 16px; }
.district > button {
  background: #111;
  color: #fff;
  border: 0;
  padding: 8px 14px;
  font-size: 14px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
  text-align: center;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 18px; justify-content: center; font-size: 14px; margin-bottom: 16px; }
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 0 8px;
}
.footer-social {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  line-height: 0;
}
.footer-social:hover { background: var(--accent); color: #fff; }
.store-btns { display: flex; gap: 12px; justify-content: center; margin: 16px 0; }
.store-btns img { height: 40px; width: auto; }
.socials { display: flex; gap: 14px; justify-content: center; font-size: 14px; }
.copy { color: var(--muted); font-size: 13px; margin-top: 16px; }

/* Brand colour: page stays white. These marks follow the colour chosen in admin. */
.site-chrome { border-top: 4px solid var(--accent); }
.section-head h2 { color: var(--accent); }
.city-btn { border-color: var(--accent); color: var(--accent); }
.nav a.active { border-bottom-width: 3px; }
.footer-social { background: var(--accent); }
@media (min-width: 768px) {
  .nav { background: var(--accent); border-top: 0; }
  .nav a { color: var(--on-accent); }
  .nav a.active { color: var(--on-accent); border-bottom-color: var(--on-accent); }
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-box {
  background: #fff;
  border-radius: 14px;
  width: min(520px, 100%);
  max-height: min(68vh, 560px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}
.modal-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.modal-close {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: #fff;
  font-size: 18px;
  line-height: 1;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.modal-tools {
  padding: 12px 16px 8px;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.modal-search {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
}
.modal-body {
  padding: 12px 16px 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  min-height: 0;
}
.modal-empty {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 14px;
}
.city-group { margin-bottom: 16px; }
.city-letter {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 14px;
}
.city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.city-grid a {
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 10px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.ph {
  background: #e5e7eb;
  width: 100%;
  height: 100%;
}

.pager { display: flex; gap: 12px; margin-top: 20px; }
.pager a { border: 1px solid var(--border); padding: 8px 14px; border-radius: 6px; }

@media (max-width: 1279px) {
  .layout { grid-template-columns: 1fr; gap: 28px; }
  .rail { position: static; max-width: 420px; }
  .hero { grid-template-columns: 1fr; gap: 16px; }
  .topic-split { grid-template-columns: 1fr; gap: 12px; }
  .cards,
  .cards--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile — clean MP-style news app */
@media (max-width: 767px) {
  .shell,
  .header-inner,
  .nav-inner,
  .layout {
    width: calc(100% - 20px);
    max-width: 100%;
  }
  .layout {
    margin: 10px auto 32px;
    gap: 0;
  }
  /* Sidebar off phone — single column like MP mobile */
  .rail { display: none; }

  .header { min-height: 60px; overflow: visible; }
  .header-inner { padding: 10px 0; gap: 8px; overflow: visible; }
  .logo img {
    height: 40px;
    max-height: 44px;
    max-width: min(200px, 52vw);
    object-fit: contain;
  }
  .city-btn-label { display: none; }
  .city-btn svg { width: 16px; height: 16px; }
  .icon-btn { width: 36px; height: 36px; min-width: 36px; }
  .hamburger {
    display: inline-flex;
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .nav { display: block; background: var(--accent); border-top: 0; }
  .nav a {
    padding: 10px 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--on-accent);
  }
  .nav a.active {
    color: var(--on-accent);
    border-bottom-color: var(--on-accent);
  }
  .city-btn {
    height: 36px;
    min-width: 36px;
    padding: 0 8px;
    gap: 0;
    background: var(--accent);
    color: var(--on-accent);
    border-color: var(--accent);
  }

  .hero {
    margin-bottom: 18px;
    gap: 14px;
  }
  /* Keep Breaking list on phone — stacked under the lead story */
  .hero-side {
    display: block;
    border-top: 1px solid var(--border);
    padding-top: 4px;
  }
  .hero-side .list-item {
    padding: 12px 0;
    gap: 12px;
    border-bottom: 1px solid var(--border);
  }
  .hero-side .list-item:last-child {
    border-bottom: none;
  }
  .hero-side .list-item h3 {
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
  }
  .hero-side .list-item img,
  .hero-side .list-ph {
    width: 88px;
    height: 66px;
    flex-shrink: 0;
  }
  .hero-lead img,
  .hero-ph {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
    background: var(--grey);
  }
  .hero-lead h2 {
    font-size: 17px;
    line-height: 1.5;
    margin-top: 10px;
    font-weight: 700;
    color: var(--text);
  }

  .shorts-card {
    /* Mobile: 2 shorts visible */
    width: calc((100% - 14px) / 2);
    max-width: none;
  }
  .shorts-thumb {
    width: 100%;
    border-radius: 14px;
  }
  .shorts-play { width: 44px; height: 44px; }
  .shorts-title { font-size: 13px; }
  .shorts-modal {
    padding: max(8px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }
  .shorts-modal__panel {
    width: min(92vw, 400px);
    height: 70vh;
    max-height: 70dvh;
    border-radius: 16px;
  }
  .shorts-modal__close {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
  .topic-block { margin: 0 0 22px; }
  .section-head {
    margin-bottom: 10px;
    padding-bottom: 6px;
  }
  .section-head h2 {
    font-size: 16px;
    font-weight: 700;
  }
  .section-head .more { font-size: 12px; }

  .pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 12px;
    gap: 6px;
  }
  .pills::-webkit-scrollbar { display: none; }
  .pills a {
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .topic-split { gap: 8px; }
  .topic-feature img,
  .topic-feature-ph {
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
    background: var(--grey);
  }
  .topic-feature h3 {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
    color: var(--text);
  }
  .list-item {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
  }
  .list-item h3 {
    order: 2;
    font-size: 14px;
  }
  .list-item img,
  .list-ph {
    order: 1;
    width: 100px;
    height: 75px;
    object-fit: cover;
  }

  .topic-side .list-item {
    padding: 10px 0;
    gap: 12px;
    grid-template-columns: 100px minmax(0, 1fr);
  }
  .topic-side .list-item h3 {
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
    order: 2;
  }
  .topic-side .list-item img,
  .topic-side .list-ph {
    width: 100px;
    height: 75px;
    object-fit: cover;
    object-position: center;
    background: var(--grey);
    order: 1;
  }

  .cards,
  .cards--home {
    display: flex;
    flex-direction: column;
    gap: 0;
    grid-template-columns: none;
  }
  .cards--more { margin-top: 4px; }
  .card {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .card:last-child {
    border-bottom: 0;
  }
  .card img,
  .card-ph {
    width: 100px;
    height: 75px;
    max-height: none;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    background: var(--grey);
  }
  .card h3 {
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
    font-weight: 600;
    color: var(--text);
    -webkit-line-clamp: 3;
  }

  .cat-tiles {
    display: flex;
    flex-direction: column;
    gap: 0;
    grid-template-columns: none;
  }
  .cat-tile {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .cat-tile:last-child {
    border-bottom: 0;
  }
  .cat-tile-text {
    min-width: 0;
    grid-column: 2;
  }
  .cat-tile-text .news-date {
    margin-top: 4px;
  }
  .cat-tile img,
  .cat-tile-ph,
  .cat-tile .ph {
    grid-column: 1;
    width: 100px;
    height: 75px;
    max-height: none;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    background: var(--grey);
    min-height: 0;
  }
  .cat-tile h3 {
    font-size: 14px;
    line-height: 1.45;
    font-weight: 600;
    margin: 0;
  }
  .cat-h1 { font-size: 24px; line-height: 1.3; }
  .h1 { font-size: 20px; line-height: 1.4; }
  .static-page { padding-bottom: 24px; }
  .static-page .h1 { font-size: 26px; line-height: 1.3; }
  .static-page-lead { font-size: 15px; margin-bottom: 16px; }
  .summary { font-size: 15px; line-height: 1.5; }
  .meta-row {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
  }
  .meta-left {
    flex: 1 1 0;
    min-width: 0;
  }
  .byline--modern {
    gap: 8px;
    width: auto;
    max-width: none;
    flex: none;
    min-width: 0;
  }
  .byline-avatar {
    width: 40px;
    height: 40px;
  }
  .byline-author { font-size: 14px; }
  .byline-desk { font-size: 11px; }
  .share-actions {
    gap: 6px;
    margin-left: 0;
    flex: 0 0 auto;
  }
  .share-btn {
    width: 36px;
    height: 36px;
  }
  .share-btn svg {
    width: 15px;
    height: 15px;
  }
  .article-lead { float: none; width: 100%; margin: 0 0 14px; }
  .article-lead img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
    background: var(--grey);
  }
  .related-head {
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 12px;
  }
  .related-head h2 {
    font-size: 17px;
    line-height: 1.3;
  }
  .related-head .share-btn {
    width: 40px;
    height: 40px;
  }
  .related-item {
    grid-template-columns: 22px 1fr 96px;
  }
  .related-item img {
    width: 96px;
    height: 72px;
    object-fit: contain;
    background: #fff;
  }
  .body { font-size: 17px; line-height: 1.75; font-weight: 400; letter-spacing: normal; }
  .body img {
    max-width: 100% !important;
    height: auto !important;
  }
  .related-grid { grid-template-columns: 1fr; }

  .city-grid { grid-template-columns: 1fr 1fr; }
  .modal {
    padding: 24px 16px;
    align-items: center;
  }
  .modal-box {
    width: min(420px, 100%);
    max-height: 70vh;
    border-radius: 14px;
  }
  .modal-head { padding: 12px 14px; }
  .modal-head h2 { font-size: 17px; }
  .modal-tools { padding: 10px 14px 8px; }
  .modal-body { padding: 10px 14px 16px; }

  .footer { padding: 24px 0 28px; }
  .footer-links { font-size: 13px; }

  .pwa-overlay { padding: 12px; align-items: flex-end; }
  .pwa-card { padding: 18px 16px 14px; }
  .pwa-card h3 { font-size: 16px; }
}
