/* ==========================================================================
   Balochistan Dispatch - Dawn-Inspired Editorial Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Lora:ital,wght@0,400..700;1,400..700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --font-editorial-title: 'Playfair Display', Georgia, serif;
  --font-editorial-body: 'Lora', Georgia, serif;
  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Dawn-Style Colors */
  --bg-newsprint: #faf9f6;
  --bg-white: #ffffff;
  --color-ink: #111111;
  --color-muted: #555555;
  --color-border: #dcdad5;
  --color-accent: #8b0000; /* Deep Crimson */
  --color-ad-bg: #f4f3ef;
  
  /* Admin Panel specific */
  --admin-sidebar-bg: #1a1e29;
  --admin-sidebar-hover: #262c3e;
  --admin-active: #3b82f6;
  --admin-success: #10b981;
  --admin-warning: #f59e0b;
  --admin-danger: #ef4444;
}

/* Light / Dark Mode Tokens */
body.dark-mode {
  --bg-newsprint: #121212;
  --bg-white: #1e1e1e;
  --color-ink: #f1f1f1;
  --color-muted: #a0a0a0;
  --color-border: #333333;
  --color-accent: #ff4d4d;
  --color-ad-bg: #252525;
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-newsprint);
  color: var(--color-ink);
  font-family: var(--font-ui);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header Styles */
header {
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 20px 0 20px;
  background-color: var(--bg-newsprint);
}

.top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.brand-section {
  text-align: center;
  padding: 25px 0;
  border-bottom: 3px double var(--color-ink);
}

.brand-title {
  font-family: var(--font-editorial-title);
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  text-transform: capitalize;
  text-decoration: none;
  color: var(--color-ink);
  display: inline-block;
  line-height: 1.1;
}

.brand-sub {
  font-family: var(--font-editorial-title);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-muted);
  margin-top: 5px;
}

/* Breaking Ticker */
.breaking-ticker {
  background-color: var(--color-ink);
  color: var(--bg-white);
  padding: 10px 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

.ticker-label {
  background-color: var(--color-accent);
  padding: 2px 8px;
  font-weight: bold;
  text-transform: uppercase;
  margin-right: 15px;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.ticker-content {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.ticker-text {
  display: inline-block;
  animation: ticker-animation 25s linear infinite;
  padding-left: 100%;
}

.ticker-text:hover {
  animation-play-state: paused;
}

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

@keyframes ticker-animation {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

/* Navigations */
.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  background-color: var(--bg-newsprint);
  border-bottom: 1px solid var(--color-border);
}

.main-nav, .secondary-nav {
  display: flex;
  list-style: none;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0 10px;
}

.main-nav {
  border-bottom: 1px solid var(--color-border);
}

.secondary-nav {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--color-border);
}

.main-nav::-webkit-scrollbar, .secondary-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a, .secondary-nav a {
  display: block;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.main-nav a {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.secondary-nav a {
  font-family: var(--font-editorial-title);
  font-style: italic;
  font-size: 0.95rem;
}

.main-nav a:hover, .secondary-nav a:hover, .main-nav li.active a, .secondary-nav li.active a {
  color: var(--color-accent);
}

.nav-toggle-btn {
  display: none;
  width: 100%;
  text-align: left;
  background: var(--bg-newsprint);
  border: none;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-ink);
  padding: 12px 16px;
}

/* Main Layout Grid **/
.layout-wrapper {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

@media (max-width: 1100px) {
  .layout-wrapper {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .left-column {
    display: none; /* Hide standard left column, merge contents elsewhere */
  }
}

@media (max-width: 800px) {
  .layout-wrapper {
    grid-template-columns: 1fr;
  }
  .right-column {
    border-left: none !important;
    padding-left: 0 !important;
  }

  .nav-toggle-btn {
    display: block;
  }

  .nav-container {
    display: none;
    flex-direction: column;
  }

  .nav-container.open {
    display: flex;
  }

  .main-nav, .secondary-nav {
    flex-direction: column;
    overflow-x: visible;
    white-space: normal;
    padding: 0;
  }

  .main-nav a, .secondary-nav a {
    padding: 12px 16px;
  }

  .lead-story img {
    height: 150px;
  }

  .grid-card img {
    height: 170px;
  }

  .top-meta {
    flex-wrap: wrap;
    gap: 6px;
  }
}

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

.left-column {
  border-right: 1px solid var(--color-border);
  padding-right: 20px;
}

.right-column {
  border-left: 1px solid var(--color-border);
  padding-left: 20px;
}

/* Typography & Print Accents */
h2.section-header {
  font-family: var(--font-editorial-title);
  font-size: 1.3rem;
  border-bottom: 2px solid var(--color-ink);
  margin-bottom: 15px;
  padding-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.double-line-divider {
  border-top: 3px double var(--color-border);
  margin: 25px 0;
  width: 100%;
}

/* Article Cards */
.lead-story {
  margin-bottom: 25px;
}

.secondary-stories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.section-feature-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-bottom: 15px;
}

.section-secondary-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (max-width: 700px) {
  .section-feature-grid {
    grid-template-columns: 1fr;
  }
}

.secondary-story-card {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.secondary-story-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.secondary-story-thumb {
  flex: 0 0 130px;
  display: block;
}

.secondary-story-thumb img {
  width: 130px;
  height: 95px;
  object-fit: cover;
}

.secondary-story-content {
  flex: 1;
  min-width: 0;
}

.secondary-story-title {
  font-family: var(--font-editorial-title);
  font-size: 1rem;
  line-height: 1.3;
  margin: 4px 0;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.secondary-story-date {
  font-size: 0.75rem;
  color: var(--color-muted);
}

@media (max-width: 700px) {
  .secondary-stories {
    grid-template-columns: 1fr;
  }
}

.lead-story img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border: 1px solid var(--color-border);
  margin-bottom: 15px;
}

.lead-title {
  font-family: var(--font-editorial-title);
  font-size: 2.2rem;
  line-height: 1.15;
  margin-bottom: 10px;
  font-weight: 800;
}

.lead-title a, .story-title a, .secondary-story-title a {
  color: inherit;
  text-decoration: none;
}

.lead-title a:hover, .story-title a:hover, .secondary-story-title a:hover {
  text-decoration: underline;
}

.lead-subtitle {
  font-family: var(--font-editorial-body);
  font-size: 1.15rem;
  color: var(--color-muted);
  margin-bottom: 10px;
}

.meta-info {
  font-size: 0.8rem;
  color: var(--color-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
}

.meta-info .author {
  font-weight: 600;
  color: var(--color-ink);
}

.meta-info .sponsored-label {
  background-color: var(--color-accent);
  color: white;
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: bold;
}

.lead-excerpt {
  font-family: var(--font-editorial-body);
  font-size: 1.05rem;
  color: var(--color-ink);
}

/* Side/List Stories */
.story-list-item {
  border-bottom: 1px solid var(--color-ink);
  padding: 15px 0;
}

.story-list-item:last-child {
  border-bottom: none;
}

.story-category {
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.story-title {
  font-family: var(--font-editorial-title);
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 6px;
  font-weight: 700;
}

.story-desc {
  font-family: var(--font-editorial-body);
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.4;
}

/* Opinions Column (Dawn-style) */
.opinion-box {
  background-color: var(--bg-white);
  border: 1px solid var(--color-border);
  padding: 15px;
  margin-bottom: 20px;
}

.opinion-item {
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}

.opinion-item:last-child {
  border-bottom: none;
}

.opinion-author {
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--color-accent);
}

.opinion-quote {
  font-family: var(--font-editorial-title);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.3;
  margin-top: 4px;
}

/* Grid Sections (homepage management) */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.grid-card {
  background-color: var(--bg-white);
  border: 1px solid var(--color-border);
  padding: 18px;
  transition: transform .2s ease;
}

.grid-card:hover {
  transform: translateY(-3px);
}

.grid-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 12px;
}

/* District Tabs (homepage) */
.district-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.district-tab {
  flex: 0 0 auto;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 6px 16px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.district-tab:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.district-tab.active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

/* Top Stories River */
.story-river {
  display: flex;
  flex-direction: column;
}

.river-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}

.river-item:last-child {
  border-bottom: none;
}

.river-thumb {
  flex: 0 0 140px;
  display: block;
}

.river-thumb img {
  width: 140px;
  height: 100px;
  object-fit: cover;
}

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

.river-meta {
  font-size: 0.75rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

.river-meta span {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 600;
}

@media (max-width: 500px) {
  .river-thumb, .river-thumb img {
    flex-basis: 90px;
    width: 90px;
    height: 70px;
  }

  .lead-story img {
    height: 180px;
  }

  .district-tabs {
    -webkit-overflow-scrolling: touch;
  }

  .listen-bar {
    gap: 8px;
    padding: 10px 0;
  }

  .listen-progress {
    order: 1;
    flex-basis: 100%;
  }
}

/* Most Read (24h) numbered list */
.most-read-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.most-read-rank {
  font-family: var(--font-editorial-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  flex-shrink: 0;
}

/* Category Strips (horizontal scrolling cards, homepage only) */
.category-block-section .section-grid {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
}

.category-block-section .grid-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
}

/* Ad Areas */
.ad-header-banner {
  max-width: 1300px;
  margin: 10px auto;
  background-color: var(--color-ad-bg);
  border: 1px solid var(--color-border);
  padding: 10px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-sidebar-banner {
  background-color: var(--color-ad-bg);
  border: 1px solid var(--color-border);
  padding: 20px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

.ad-footer-banner {
  max-width: 1300px;
  margin: 20px auto;
  background-color: var(--color-ad-bg);
  border: 1px solid var(--color-border);
  padding: 15px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-in-article {
  background-color: var(--color-ad-bg);
  border: 1px solid var(--color-border);
  padding: 15px;
  margin: 25px 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-muted);
  text-transform: uppercase;
}

.ad-hidden {
  display: none !important;
}

/* When a real ad (AdSense unit or house ad) is injected, stack the small
   "Advertisement" disclosure label above it and let the unit size itself. */
.ad-header-banner,
.ad-sidebar-banner,
.ad-footer-banner,
.ad-in-article {
  flex-direction: column;
}

.ad-label {
  display: block;
  width: 100%;
  font-size: 0.6rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  text-align: center;
}

.ad-header-banner .adsbygoogle,
.ad-sidebar-banner .adsbygoogle,
.ad-footer-banner .adsbygoogle,
.ad-in-article .adsbygoogle {
  display: block;
  width: 100%;
}

/* Footer styles */
footer.site-footer {
  background-color: var(--color-ink);
  color: var(--bg-white);
  padding: 40px 20px;
  margin-top: 40px;
  border-top: 3px double var(--bg-white);
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.footer-column h3 {
  font-family: var(--font-editorial-title);
  font-size: 1.2rem;
  border-bottom: 1px solid #444;
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-column ul li a:hover {
  color: var(--bg-white);
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1300px;
  margin: 30px auto 0 auto;
  border-top: 1px solid #444;
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #999;
}

/* Newsletter Widget */
.newsletter-widget {
  background-color: #faf0e6; /* Linen */
  border: 2px solid #8b4513;
  padding: 20px;
  margin-top: 25px;
  text-align: center;
  color: #333;
}

body.dark-mode .newsletter-widget {
  background-color: #2b2620;
  border-color: var(--color-accent);
  color: #eee;
}

.newsletter-title {
  font-family: var(--font-editorial-title);
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.newsletter-desc {
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.newsletter-form input[type="email"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--color-border);
  outline: none;
  font-size: 0.9rem;
}

.newsletter-form button {
  width: 100%;
  padding: 10px;
  background-color: var(--color-accent);
  color: white;
  border: none;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background-color: #660000;
}

/* Search Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.search-modal {
  background-color: var(--bg-white);
  border: 3px double var(--color-ink);
  width: 90%;
  max-width: 600px;
  padding: 25px;
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal-backdrop.active .search-modal {
  transform: translateY(0);
}

.close-modal-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-ink);
}

.search-input-group {
  display: flex;
  margin-top: 15px;
}

.search-input-group input {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--color-border);
  font-size: 1rem;
  background-color: var(--bg-newsprint);
  color: var(--color-ink);
  outline: none;
}

.search-input-group button {
  padding: 12px 24px;
  background-color: var(--color-ink);
  color: var(--bg-white);
  border: none;
  font-weight: bold;
  cursor: pointer;
}

/* Detail Article View styling */
.article-detail-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 20px;
}

.article-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.article-header h1 {
  font-family: var(--font-editorial-title);
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 12px;
}

.article-image {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
}

.article-body {
  font-family: var(--font-editorial-body);
  font-size: 1.15rem;
  line-height: 1.7;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body h2 {
  font-family: var(--font-editorial-title);
  font-size: 1.65rem;
  line-height: 1.3;
  margin: 36px 0 16px;
  color: var(--color-ink);
}

.article-body h3 {
  font-family: var(--font-editorial-title);
  font-size: 1.35rem;
  line-height: 1.35;
  margin: 28px 0 14px;
  color: var(--color-ink);
}

.article-body strong {
  font-weight: 700;
}

.article-body em {
  font-style: italic;
}

.article-body mark {
  background: color-mix(in srgb, var(--color-accent) 15%, transparent);
  color: inherit;
  padding: 0 2px;
}

.article-body blockquote {
  margin: 24px 0;
  padding: 4px 20px;
  border-left: 3px solid var(--color-accent);
  color: var(--color-muted);
  font-style: italic;
  font-size: 1.2rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px 24px;
  padding: 0;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Tables inserted via the admin editor (quill-better-table) render bare and
   unstyled on the public article page unless given explicit rules here --
   the editor's own table CSS only loads on /admin.html. */
.article-body table {
  display: block;
  overflow-x: auto;
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.article-body table tbody {
  display: table;
  width: 100%;
}

.article-body table tr:nth-child(even) {
  background: var(--color-ad-bg);
}

.article-body table th,
.article-body table td {
  border: 1px solid var(--color-border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  color: var(--color-ink);
}

.article-body table th {
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-family: var(--font-ui);
}

.article-body table tr:first-child td {
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
}

.article-body .qlbt-cell-line {
  min-height: 1.2em;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin: 30px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}

.gallery-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid var(--color-border);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  margin: 30px 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* ==========================================================================
   Admin Panel Specific Styles
   ========================================================================== */

.admin-body {
  background-color: #f3f4f6;
  color: #1f2937;
  font-family: var(--font-ui);
}

.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background-color: var(--admin-sidebar-bg);
  color: #9ca3af;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.admin-brand {
  padding: 0 20px 20px 20px;
  border-bottom: 1px solid #2d3748;
  color: white;
  text-align: center;
}

.admin-brand h2 {
  font-family: var(--font-editorial-title);
  font-size: 1.25rem;
}

.admin-menu {
  list-style: none;
  margin-top: 20px;
  flex: 1;
}

.admin-menu-item a {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  color: #9ca3af;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.admin-menu-item a:hover, .admin-menu-item.active a {
  background-color: var(--admin-sidebar-hover);
  color: white;
}

.admin-menu-item.active a {
  border-left: 4px solid var(--admin-active);
}

.admin-logout-btn {
  margin: 20px;
  padding: 10px;
  background-color: #374151;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

.admin-content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.admin-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  background: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 25px;
}

.admin-card h3 {
  margin-bottom: 15px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 10px;
}

.admin-tab-section {
  display: none;
}

.admin-tab-section.active {
  display: block;
}

/* Admin Form controls */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  outline: none;
  font-size: 0.95rem;
}

.form-control:focus {
  border-color: var(--admin-active);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.btn {
  padding: 10px 20px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--admin-active);
  color: white;
}

.btn-primary:hover {
  background-color: #2563eb;
}

.btn-success {
  background-color: var(--admin-success);
  color: white;
}

.btn-success:hover {
  background-color: #059669;
}

.btn-danger {
  background-color: var(--admin-danger);
  color: white;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-secondary {
  background-color: #6b7280;
  color: white;
}

/* Admin Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.admin-table th, .admin-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.admin-table th {
  background-color: #f9fafb;
  font-weight: bold;
}

.admin-table tr:hover {
  background-color: #f3f4f6;
}

.status-pill {
  padding: 3px 8px;
  font-size: 0.75rem;
  border-radius: 9999px;
  font-weight: bold;
  text-transform: uppercase;
}

.status-published {
  background-color: #d1fae5;
  color: #065f46;
}

.status-draft {
  background-color: #f3f4f6;
  color: #374151;
}

.status-scheduled {
  background-color: #fef3c7;
  color: #92400e;
}

/* Drag-arrange items visual list */
.sortable-item {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  margin-bottom: 8px;
  cursor: grab;
}

.sortable-item:active {
  cursor: grabbing;
  background-color: #e5e7eb;
}

.drag-handle {
  margin-right: 15px;
  color: #9ca3af;
  font-size: 1.2rem;
}

/* Permission Matrix CSS */
.permission-matrix {
  width: 100%;
  border-collapse: collapse;
}

.permission-matrix th, .permission-matrix td {
  border: 1px solid #e5e7eb;
  padding: 10px;
  text-align: center;
}

.permission-matrix td:first-child {
  text-align: left;
  font-weight: bold;
}

/* Simple utility styles */
.text-center { text-align: center; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.gap-10 { gap: 10px; }
.mt-20 { margin-top: 20px; }

/* Grid Dashboard analytics cards */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.analytic-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.analytic-card .title {
  color: #6b7280;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: bold;
}

.analytic-card .value {
  font-size: 2rem;
  font-weight: bold;
  margin: 10px 0;
  color: #111827;
}

.analytic-card .trend {
  font-size: 0.8rem;
}

.trend-up { color: var(--admin-success); }
.trend-down { color: var(--admin-danger); }

/* UI Float Controls */
.top-controls {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 4px 15px;
  gap: 10px;
}

.mode-toggle-btn {
  background: none;
  border: 1px solid var(--color-border);
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--color-ink);
  text-transform: uppercase;
}

/* XML Sitemap and OG display fields */
.code-display-box {
  background-color: #1e1e1e;
  color: #9cdcfe;
  font-family: monospace;
  padding: 15px;
  border-radius: 4px;
  max-height: 350px;
  overflow-y: auto;
  white-space: pre-wrap;
  font-size: 0.85rem;
  border: 1px solid #333;
}
/* Professional Share Buttons */
.share-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:20px 0;
}

.share-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:10px 16px;
    border:none;
    border-radius:999px;
    cursor:pointer;
    font-size:14px;
    font-weight:600;
    color:#fff;
    transition:all .25s ease;
}

.share-btn:hover{
    transform:translateY(-2px);
    opacity:.92;
}

.share-btn.x{
    background:#000;
}

.share-btn.facebook{
    background:#1877F2;
}

.share-btn.whatsapp{
    background:#25D366;
}

.share-btn.telegram{
    background:#229ED9;
}

.share-btn.copy{
    background:#666;
}

.share-buttons-compact .share-btn{
    width:36px;
    height:36px;
    padding:0;
    border-radius:50%;
    font-size:1rem;
}

.listen-bar{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 0;
    border-top:1px solid var(--color-border);
    border-bottom:1px solid var(--color-border);
    margin:15px 0;
    flex-wrap:wrap;
}

.listen-label{
    font-size:0.75rem;
    font-weight:700;
    letter-spacing:0.5px;
    color:var(--color-muted);
    text-transform:uppercase;
}

.listen-play-btn{
    width:32px;
    height:32px;
    border-radius:50%;
    border:none;
    background:var(--color-accent);
    color:#fff;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:0.85rem;
    flex-shrink:0;
}

.listen-time{
    font-size:0.8rem;
    color:var(--color-muted);
    white-space:nowrap;
}

.listen-progress{
    flex:1;
    min-width:80px;
    height:4px;
    background:var(--color-border);
    border-radius:2px;
    overflow:hidden;
}

.listen-progress-fill{
    height:100%;
    width:0%;
    background:var(--color-accent);
    transition:width .2s linear;
}

.listen-speed{
    display:flex;
    gap:4px;
}

.speed-btn{
    background:none;
    border:1px solid var(--color-border);
    border-radius:4px;
    padding:2px 6px;
    font-size:0.75rem;
    cursor:pointer;
    color:var(--color-muted);
}

.speed-btn.active{
    background:var(--color-accent);
    color:#fff;
    border-color:var(--color-accent);
}

@media (max-width:500px){
    .listen-label{
        display:none;
    }
}

@media (max-width:768px){

.share-btn{
    flex:1 1 calc(50% - 10px);
}

}
/* ==========================================
   BALOCHISTAN DISPATCH TV
========================================== */

.youtube-section{
    background: var(--bg-white);
    border: 1px solid var(--color-border);
    margin: 30px 0;
    padding: 20px;
}

.youtube-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
}

.youtube-header h2{
    margin:0;
    font-family: var(--font-ui);
    font-size:1.3rem;
    font-weight:700;
    color:var(--color-ink);
    display:flex;
    align-items:center;
    gap:10px;
}

.video-badge{
    background:var(--color-accent);
    color:#fff;
    font-size:0.7rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:0.5px;
    padding:4px 10px;
    border-radius:3px;
}

.video-carousel-wrapper{
    overflow:hidden;
    width:100%;
    margin-top:20px;
}

.video-carousel-track{
    display:flex;
    gap:15px;
    width:max-content;
    animation:scrollVideos 40s linear infinite;
}

.video-carousel-wrapper:hover .video-carousel-track{
    animation-play-state:paused;
}

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

.video-card{
    flex:0 0 200px;
    text-decoration:none;
    color:inherit;
}

.video-card-thumb{
    position:relative;
    width:200px;
    height:112px;
    overflow:hidden;
}

.video-card-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.video-play-icon{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    width:36px;
    height:36px;
    background:rgba(0,0,0,0.6);
    color:#fff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:0.9rem;
}

.video-card-title{
    font-size:0.85rem;
    font-weight:600;
    color:var(--color-ink);
    margin-top:8px;
    line-height:1.3;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.subscribe-btn{
    background:#ff0000;
    color:#fff;
    padding:10px 18px;
    text-decoration:none;
    border-radius:4px;
    font-weight:700;
    transition:.3s;
}

.subscribe-btn:hover{
    background:#cc0000;
}

.youtube-video{
    position:relative;
    width:100%;
    aspect-ratio:16/9;
}

.youtube-video iframe{
    width:100%;
    height:100%;
    border:0;
}

@media(max-width:768px){

.youtube-header{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
}

.youtube-header h2{
    font-size:1.4rem;
}

}
#relatedArticlesGrid .card {
  cursor: pointer;
  pointer-events: auto;
}

/* Sticky Donation Bar */
.donation-sticky-bar{
    position:fixed;
    bottom:-140px;
    left:0;
    right:0;
    background:var(--color-ink);
    color:#fff;
    padding:16px 24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    z-index:1000;
    box-shadow:0 -4px 20px rgba(0,0,0,0.25);
    transition:bottom .4s ease;
    flex-wrap:wrap;
}

.donation-sticky-bar.visible{
    bottom:0;
}

.donation-sticky-content{
    display:flex;
    align-items:center;
    gap:14px;
}

.donation-sticky-icon{
    font-size:1.8rem;
    color:var(--color-accent);
}

.donation-sticky-text{
    display:flex;
    flex-direction:column;
}

.donation-sticky-text strong{
    font-family: var(--font-editorial-title);
    font-size:1.1rem;
}

.donation-sticky-text span{
    color:#ccc;
    font-size:0.8rem;
}

.donation-sticky-actions{
    display:flex;
    align-items:center;
    gap:12px;
}

.donation-sticky-donate-btn{
    background:var(--color-accent);
    color:#fff;
    border:none;
    padding:10px 24px;
    border-radius:30px;
    font-weight:700;
    cursor:pointer;
    font-size:0.9rem;
    transition:transform .2s ease;
}

.donation-sticky-donate-btn:hover{
    transform:scale(1.05);
}

.donation-sticky-close{
    background:none;
    border:none;
    color:#fff;
    font-size:1.5rem;
    cursor:pointer;
    line-height:1;
    opacity:0.7;
}

.donation-sticky-close:hover{
    opacity:1;
}

@media (max-width:600px){
    .donation-sticky-bar{
        padding:12px 16px;
    }
    .donation-sticky-text span{
        display:none;
    }
}

/* Donation Modal */
.donation-modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.6);
    z-index:2000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.donation-modal-box{
    background:var(--bg-white);
    max-width:420px;
    width:100%;
    padding:30px;
    border-radius:6px;
    position:relative;
    border-top:4px solid var(--color-accent);
}

.donation-modal-close{
    position:absolute;
    top:12px;
    right:16px;
    background:none;
    border:none;
    font-size:1.5rem;
    cursor:pointer;
    color:var(--color-muted);
}

.donation-modal-box h3{
    font-family: var(--font-editorial-title);
    margin:0 0 10px;
    font-size:1.4rem;
    color:var(--color-ink);
}

.donation-modal-desc{
    color:var(--color-muted);
    font-size:0.9rem;
    margin-bottom:20px;
}

.donation-modal-details{
    font-size:0.9rem;
    line-height:1.8;
    background:var(--bg-newsprint);
    color:var(--color-ink);
    padding:15px;
    border-radius:4px;
}

/* Media Kit / Sponsored Content pitch pages */
.static-page-wrapper{
    max-width:900px;
    margin:0 auto;
    padding:40px 20px 60px;
}

.static-page-hero h1{
    font-family: var(--font-editorial-title);
    font-size:2.2rem;
    color:var(--color-ink);
    margin-bottom:10px;
}

.static-page-hero p{
    font-family: var(--font-editorial-body);
    font-size:1.1rem;
    color:var(--color-muted);
    max-width:650px;
    line-height:1.6;
}

.pitch-cards{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:20px;
    margin:35px 0;
}

.pitch-card{
    background:var(--bg-white);
    border:1px solid var(--color-border);
    padding:20px;
}

.pitch-card h3{
    font-family: var(--font-editorial-title);
    font-size:1.15rem;
    color:var(--color-accent);
    margin-bottom:8px;
}

.pitch-card p{
    font-size:0.9rem;
    color:var(--color-muted);
    line-height:1.5;
}

.inquiry-form-wrapper{
    background:var(--bg-white);
    border:1px solid var(--color-border);
    padding:30px;
    margin-top:30px;
}

.inquiry-form-wrapper h2{
    font-family: var(--font-editorial-title);
    font-size:1.5rem;
    margin-bottom:20px;
    color:var(--color-ink);
}

.inquiry-form input,
.inquiry-form textarea{
    width:100%;
    padding:12px;
    border:1px solid var(--color-border);
    font-family: var(--font-ui);
    font-size:0.95rem;
    margin-bottom:15px;
    background:var(--bg-newsprint);
    color:var(--color-ink);
    box-sizing:border-box;
}

.inquiry-form textarea{
    resize:vertical;
    min-height:100px;
}

.inquiry-form button{
    background:var(--color-accent);
    color:#fff;
    border:none;
    padding:12px 28px;
    font-weight:700;
    cursor:pointer;
    font-size:0.95rem;
}

.inquiry-form button:hover{
    opacity:0.9;
}

.inquiry-form button:disabled{
    opacity:0.6;
    cursor:not-allowed;
}

#inquiryFormMsg{
    margin-top:12px;
    font-weight:600;
    font-size:0.9rem;
}

/* WhatsApp Channel Button */
.whatsapp-channel-btn{
    display:inline-flex;
    align-items:center;
    gap:10px;
    background:#25D366;
    color:#fff;
    padding:12px 24px;
    border-radius:30px;
    text-decoration:none;
    font-weight:700;
    font-size:0.95rem;
    transition:transform .2s ease;
}

.whatsapp-channel-btn:hover{
    transform:translateY(-2px);
    color:#fff;
}

/* Comments Section */
.comment-item{
    border-bottom:1px solid var(--color-border);
    padding:15px 0;
}

.comment-author{
    font-weight:700;
    color:var(--color-ink);
    font-size:0.95rem;
}

.comment-date{
    font-size:0.75rem;
    color:var(--color-muted);
    margin-bottom:6px;
}

.comment-text{
    font-size:0.95rem;
    line-height:1.5;
    color:var(--color-ink);
}

.comment-form-wrapper{
    background:var(--bg-white);
    border:1px solid var(--color-border);
    padding:25px;
    margin-top:20px;
}

.comment-form-wrapper h4{
    font-family: var(--font-editorial-title);
    font-size:1.15rem;
    margin:0 0 6px;
    color:var(--color-ink);
}

#commentFormMsg{
    margin-top:10px;
    font-weight:600;
    font-size:0.9rem;
}

.meta-info .live-badge {
  background-color: #cc0000;
  color: white;
  padding: 2px 8px;
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.lead-live-badge {
  display: inline-block;
  background-color: #cc0000;
  color: white;
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  animation: livePulse 2s infinite;
}

/* ===================== */
/* PHOTO ESSAYS */
/* ===================== */
.pe-hero {
  background: linear-gradient(135deg, #b45309 0%, #9a3412 45%, #7c2d12 100%);
  color: #fff8f0;
  padding: 50px 30px;
  text-align: center;
  margin-bottom: 30px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.pe-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 10px, transparent 10px, transparent 20px);
  pointer-events: none;
}
.pe-hero-title {
  font-family: var(--font-editorial-title);
  font-size: 2.4rem;
  margin: 0 0 10px;
  position: relative;
}
.pe-hero-sub {
  font-family: var(--font-editorial-body);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  opacity: 0.95;
  position: relative;
}
.pe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.pe-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(154, 52, 18, 0.18);
}
.pe-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.pe-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.pe-card:hover .pe-card-img img {
  transform: scale(1.05);
}
.pe-card-body {
  padding: 14px 16px 18px;
  border-top: 3px solid #b45309;
}
.pe-card-location {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b45309;
  font-weight: 600;
  margin-bottom: 6px;
}
.pe-card-title {
  font-family: var(--font-editorial-title);
  font-size: 1.15rem;
  margin: 0;
  line-height: 1.3;
}
.pe-detail-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 30px;
  padding: 20px 15px;
  border-bottom: 3px double #b45309;
}
.pe-detail-location {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b45309;
  font-weight: 700;
  margin-bottom: 8px;
}
.pe-detail-header h1 {
  font-family: var(--font-editorial-title);
  font-size: 2rem;
  margin: 0 0 12px;
}
.pe-detail-desc {
  font-family: var(--font-editorial-body);
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.pe-photo-stream {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 820px;
  margin: 0 auto;
}
.pe-photo-block {
  margin: 0;
}
.pe-photo-block img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}
.pe-photo-caption {
  font-family: var(--font-editorial-body);
  font-style: italic;
  color: var(--color-muted);
  font-size: 0.92rem;
  margin-top: 10px;
  padding: 0 4px;
}
.pe-photo-credit {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 0 4px;
}
.pe-credit-name {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-ink);
}
.pe-instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  padding: 4px 10px;
  border-radius: 20px;
}
.pe-facebook-link {
  background: #1877f2;
}
.pe-instagram-link:hover {
  opacity: 0.9;
}

/* Photo Essay Immersive Reading Mode */
body.pe-immersive .top-controls,
body.pe-immersive header,
body.pe-immersive #breakingNewsTicker,
body.pe-immersive .nav-toggle-btn,
body.pe-immersive .nav-container,
body.pe-immersive #adHeaderBanner {
  display: none !important;
}
.pe-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: #b45309;
  margin-bottom: 24px;
  padding: 8px 16px;
  border: 1px solid #b45309;
  border-radius: 20px;
  transition: background .2s ease, color .2s ease;
}
.pe-back-btn:hover {
  background: #b45309;
  color: #fff;
}

/* Photo Essay Immersive Mode: full-width, no sidebars */
body.pe-immersive .left-column,
body.pe-immersive aside.right-column {
  display: none !important;
}
body.pe-immersive .layout-wrapper {
  grid-template-columns: 1fr !important;
  max-width: 900px;
}
body.pe-immersive #photoEssaysGridLayout .pe-grid {
  max-width: none;
}
.pe-home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  opacity: 0.9;
  margin-bottom: 14px;
}
.pe-home-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Photo Essays: full-page color + magazine layout */
/* Static admin-editable pages (About/Contact/Privacy/Terms/etc.) reuse the
   article-detail container but aren't real articles -- hide the chrome
   that doesn't make sense for them. */
body.static-page-view #detailCategory,
body.static-page-view .meta-info,
body.static-page-view #detailFeaturedImage,
body.static-page-view #detailImageCredit,
body.static-page-view #adInArticle,
body.static-page-view #listenBar,
body.static-page-view .share-buttons,
body.static-page-view #whatsappChannelBtn,
body.static-page-view #commentsSection,
body.static-page-view #relatedArticlesSection,
body.static-page-view #detailGallerySection,
body.static-page-view #detailVideoSection {
  display: none !important;
}

body.pe-immersive {
  background-color: #f4e3d1 !important;
}
body.dark-mode.pe-immersive {
  background-color: #2b2118 !important;
}
.pe-magazine-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.pe-magazine-layout.pe-magazine-layout--solo {
  max-width: 640px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .pe-magazine-layout:not(.pe-magazine-layout--solo) {
    grid-template-columns: 220px 1fr 260px;
    align-items: start;
  }
}
.pe-side-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pe-card-small {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.pe-card-small .pe-card-img {
  width: 76px;
  height: 58px;
  flex: none;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: unset;
}
.pe-card-small .pe-card-body {
  padding: 0;
  border-top: none;
}
.pe-card-small .pe-card-title {
  font-size: 0.92rem;
}
.pe-card-small .pe-card-location {
  font-size: 0.65rem;
}
.pe-card-feature .pe-card-img {
  aspect-ratio: 16 / 10;
}
.pe-card-feature .pe-card-title {
  font-size: 1.65rem;
}
.pe-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 34px;
}

/* Photo Essays: refined hero + adaptive magazine layout */
.pe-hero {
  padding: 26px 30px !important;
  margin-bottom: 24px !important;
}
.pe-hero-title {
  font-size: 1.9rem !important;
  margin: 4px 0 6px !important;
}
.pe-hero-sub {
  font-size: 0.92rem !important;
}
.pe-magazine-layout {
  display: grid;
  gap: 28px;
}
.pe-magazine-layout--solo,
.pe-magazine-layout--left-only .pe-feature-col,
.pe-magazine-layout--right-only .pe-feature-col,
.pe-magazine-layout--full .pe-feature-col {
  grid-column: auto;
}
.pe-magazine-layout--solo {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}
@media (min-width: 800px) {
  .pe-magazine-layout--left-only {
    grid-template-columns: 240px 1fr;
  }
  .pe-magazine-layout--right-only {
    grid-template-columns: 1fr 280px;
  }
  .pe-magazine-layout--full {
    grid-template-columns: 220px 1fr 260px;
  }
}
.pe-card-feature .pe-card-img {
  aspect-ratio: 16 / 9;
}
.pe-card-feature .pe-card-title {
  font-size: 2rem !important;
  line-height: 1.25;
}
.pe-card-feature .pe-card-body {
  padding: 20px 4px !important;
}

/* Photo Essays: further hero compression + centered card text */
.pe-hero {
  padding: 14px 24px !important;
  margin-bottom: 20px !important;
}
.pe-hero-title {
  font-size: 1.5rem !important;
  margin: 2px 0 4px !important;
}
.pe-hero-sub {
  font-size: 0.82rem !important;
  margin: 0 auto !important;
}
.pe-back-btn.pe-home-link,
.pe-home-link {
  margin-bottom: 4px !important;
  font-size: 0.78rem !important;
}
.pe-card-body {
  text-align: center;
}
.pe-card-location {
  text-align: center;
}
.pe-card-title {
  text-align: center;
}

/* ===================== */
/* FACT CHECK */
/* ===================== */
.fc-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #14293f 100%);
  color: #f5f0e6;
  padding: 26px 30px;
  text-align: center;
  margin-bottom: 24px;
  border-radius: 6px;
  border-bottom: 4px solid #c9a227;
}
.fc-hero-title {
  font-family: var(--font-editorial-title);
  font-size: 1.9rem;
  margin: 4px 0 6px;
}
.fc-hero-sub {
  font-family: var(--font-editorial-body);
  font-size: 0.92rem;
  max-width: 520px;
  margin: 0 auto;
  opacity: 0.9;
}
.fc-home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  color: #c9a227;
  margin-bottom: 4px;
}
.fc-home-link:hover {
  text-decoration: underline;
}
.fc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.fc-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.fc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(30, 58, 95, 0.18);
}
.fc-card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #14293f;
}
.fc-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fc-stamp {
  font-family: var(--font-ui);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  padding: 5px 12px;
  border: 2px solid #fff;
  border-radius: 3px;
  transform: rotate(-8deg);
  font-size: 0.75rem;
}
.fc-card-img-wrap .fc-stamp {
  position: absolute;
  top: 12px;
  right: 12px;
}
.fc-stamp-large {
  font-size: 1.1rem;
  padding: 8px 20px;
  display: inline-block;
}
.fc-verdict-false { background: #b91c1c; }
.fc-verdict-misleading { background: #d97706; }
.fc-verdict-true { background: #15803d; }
.fc-verdict-unverified { background: #52525b; }
.fc-card-body {
  padding: 14px 16px 18px;
  border-top: 3px solid #1e3a5f;
}
.fc-card-title {
  font-family: var(--font-editorial-title);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.35;
}
#factCheckDetailLayout {
  max-width: 720px;
  margin: 0 auto;
}
.fc-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: #1e3a5f;
  margin-bottom: 20px;
  padding: 8px 16px;
  border: 1px solid #1e3a5f;
  border-radius: 20px;
}
.fc-back-btn:hover {
  background: #1e3a5f;
  color: #fff;
}
.fc-detail-verdict-stamp {
  text-align: center;
  margin-bottom: 20px;
}
.fc-detail-claim-box {
  background: #f5f0e6;
  border-left: 4px solid #c9a227;
  padding: 20px 24px;
  margin-bottom: 24px;
  border-radius: 4px;
}
.fc-detail-claim-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a7422;
  font-weight: 700;
  margin-bottom: 8px;
}
.fc-detail-claim-box h1 {
  font-family: var(--font-editorial-title);
  font-size: 1.5rem;
  margin: 0;
  line-height: 1.4;
}
.fc-detail-image-wrap {
  margin-bottom: 24px;
}
.fc-detail-image-wrap img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
.fc-detail-explanation {
  font-family: var(--font-editorial-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-ink);
}
.fc-detail-explanation p {
  margin: 0 0 16px;
}

/* ===================== */
/* VIDEOS */
/* ===================== */
.vid-hero {
  background: linear-gradient(135deg, #2a2a2a 0%, #171717 100%);
  color: #f5f5f5;
  padding: 26px 30px;
  text-align: center;
  margin-bottom: 24px;
  border-radius: 6px;
  border-bottom: 4px solid #e8543f;
}
.vid-hero-title {
  font-family: var(--font-editorial-title);
  font-size: 1.9rem;
  margin: 4px 0 6px;
}
.vid-hero-sub {
  font-family: var(--font-editorial-body);
  font-size: 0.92rem;
  max-width: 520px;
  margin: 0 auto;
  opacity: 0.85;
}
.vid-home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  color: #e8543f;
  margin-bottom: 4px;
}
.vid-home-link:hover {
  text-decoration: underline;
}
.vid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.vid-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.vid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}
.vid-card-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #171717;
}
.vid-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vid-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  background: rgba(232, 84, 63, 0.9);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  padding-left: 3px;
}
.vid-category-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(23, 23, 23, 0.85);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 3px;
}
.vid-card-body {
  padding: 14px 16px 18px;
  border-top: 3px solid #e8543f;
}
.vid-card-title {
  font-family: var(--font-editorial-title);
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.35;
}
#videoDetailLayout {
  max-width: 820px;
  margin: 0 auto;
}
.vid-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: #171717;
  margin-bottom: 20px;
  padding: 8px 16px;
  border: 1px solid #171717;
  border-radius: 20px;
}
.vid-back-btn:hover {
  background: #171717;
  color: #fff;
}
.vid-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}
.vid-player-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.vid-detail-category {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e8543f;
  font-weight: 700;
  margin-bottom: 8px;
}
#videoDetailLayout h1 {
  font-family: var(--font-editorial-title);
  font-size: 1.7rem;
  margin: 0 0 16px;
}
.vid-detail-description {
  font-family: var(--font-editorial-body);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--color-ink);
}
.vid-detail-description p {
  margin: 0 0 14px;
}

/* ===================== */
/* HOMEPAGE MAGAZINE BLOCKS */
/* ===================== */
.hp-mag-block {
  margin: 0 0 40px;
}
.hp-mag-masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 18px;
  border-radius: 4px 4px 0 0;
  margin-bottom: 0;
}
.hp-mag-name {
  font-family: var(--font-editorial-title);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.hp-mag-viewall {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}
.hp-mag-masthead--essays {
  background: linear-gradient(135deg, #b45309 0%, #9a3412 100%);
  color: #fff8f0;
}
.hp-mag-masthead--essays .hp-mag-viewall { color: #ffe8d1; }
.hp-mag-masthead--factcheck {
  background: linear-gradient(135deg, #1e3a5f 0%, #14293f 100%);
  color: #f5f0e6;
}
.hp-mag-masthead--factcheck .hp-mag-viewall { color: #c9a227; }
.hp-mag-masthead--videos {
  background: linear-gradient(135deg, #2a2a2a 0%, #171717 100%);
  color: #f5f5f5;
}
.hp-mag-masthead--videos .hp-mag-viewall { color: #e8543f; }
.hp-mag-essays-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  border: 1px solid var(--color-border);
  border-top: none;
  padding: 20px;
  background: var(--bg-white);
}
.hp-mag-essay-feature {
  display: block;
  text-decoration: none;
  color: inherit;
}
.hp-mag-essay-feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
}
.hp-mag-essay-feature-body {
  padding-top: 10px;
}
.hp-mag-essay-loc {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b45309;
  font-weight: 600;
  margin-bottom: 4px;
}
.hp-mag-essay-feature-body h3 {
  font-family: var(--font-editorial-title);
  font-size: 1.3rem;
  margin: 0;
  line-height: 1.3;
}
.hp-mag-essay-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hp-mag-essay-small {
  display: flex;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  align-items: center;
}
.hp-mag-essay-small img {
  width: 76px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  flex: none;
}
.hp-mag-essay-small span {
  font-family: var(--font-editorial-title);
  font-size: 0.95rem;
  line-height: 1.3;
}
.hp-mag-fc-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border: 1px solid var(--color-border);
  border-top: none;
  padding: 20px;
  background: var(--bg-white);
}
.hp-mag-fc-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.hp-mag-fc-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: #14293f;
  margin-bottom: 8px;
}
.hp-mag-fc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-mag-fc-img-wrap .fc-stamp {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.62rem;
  padding: 3px 8px;
}
.hp-mag-fc-card h3 {
  font-family: var(--font-editorial-title);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.3;
}
.hp-mag-vid-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border: 1px solid var(--color-border);
  border-top: none;
  padding: 20px;
  background: var(--bg-white);
}
.hp-mag-vid-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.hp-mag-vid-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: #171717;
  margin-bottom: 8px;
}
.hp-mag-vid-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-mag-vid-thumb-wrap .vid-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  background: rgba(232, 84, 63, 0.9);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  padding-left: 2px;
}
.hp-mag-vid-card h3 {
  font-family: var(--font-editorial-title);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.3;
}
@media (max-width: 700px) {
  .hp-mag-essays-row,
  .hp-mag-fc-row,
  .hp-mag-vid-row {
    grid-template-columns: 1fr;
  }
}

/* ===================== */
/* STICKY SIDEBARS + SECTION FLOW */
/* ===================== */
.layout-wrapper {
  align-items: start;
}
.left-column,
.right-column {
  position: sticky;
  top: 20px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.category-block-section {
  margin-bottom: 0;
}
.category-block-section .section-header {
  margin-bottom: 14px;
}
.double-line-divider {
  margin: 22px 0;
}
.hp-mag-block {
  margin-top: 4px;
}
@media (max-width: 900px) {
  .left-column,
  .right-column {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}

/* ===================== */
/* COMPACT SIDEBAR CARDS */
/* ===================== */
h2.section-header {
  font-size: 1.05rem !important;
}
.sb-compact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}
.sb-compact-item:last-child {
  border-bottom: none;
}
.sb-compact-thumb {
  width: 64px;
  height: 48px;
  flex: none;
  border-radius: 3px;
  overflow: hidden;
}
.sb-compact-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sb-compact-body {
  flex: 1;
  min-width: 0;
}
.sb-compact-title {
  font-family: var(--font-editorial-title);
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--color-ink);
  margin-bottom: 4px;
}
.sb-compact-date {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: var(--color-muted);
}
.opinion-box .section-header,
.left-column .section-header {
  font-size: 0.95rem !important;
}

/* ===================== */
/* TOP STORY ROW (Dawn-style side-by-side) */
/* ===================== */
.top-story-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 30px;
  align-items: start;
}
.top-story-row .secondary-stories {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .top-story-row {
    grid-template-columns: 1fr;
  }
}

/* ===================== */
/* FULL-WIDTH LEAD HEADER (Dawn-style) */
/* ===================== */
#leadHeaderContainer {
  margin-bottom: 16px;
}
#leadHeaderContainer .lead-title {
  font-size: 2rem;
  max-width: 900px;
}
#leadHeaderContainer .lead-subtitle {
  max-width: 800px;
}
.lead-story .story-category {
  display: none;
}

/* ===================== */
/* DAWN-STYLE SECONDARY STORIES REFINEMENT */
/* ===================== */
.secondary-story-card .story-category {
  display: none;
}
.secondary-story-thumb {
  flex: 0 0 72px;
}
.secondary-story-thumb img {
  width: 72px;
  height: 54px;
}
.secondary-story-title {
  font-size: 0.92rem;
  margin: 0 0 4px;
}
.lead-story img {
  border: none;
}

/* ===================== */
/* RELATED STORIES BELOW LEAD (not beside) */
/* ===================== */
.top-story-row {
  grid-template-columns: 1fr !important;
}
.related-stories-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 20px 0 10px;
}
.top-story-row .secondary-stories {
  max-width: 700px;
}

/* ===================== */
/* HEADER REORDER: masthead first, compact meta below */
/* ===================== */
header {
  padding: 16px 20px 0 20px !important;
}
.brand-section {
  padding: 8px 0 10px !important;
  border-bottom: none !important;
}
.brand-title {
  font-size: 2.6rem !important;
}
.brand-sub {
  font-size: 0.95rem !important;
  margin-top: 2px !important;
}
.top-meta {
  border-bottom: 1px solid var(--color-border) !important;
  border-top: 1px solid var(--color-border);
  padding: 6px 0 !important;
  font-size: 0.75rem !important;
}

/* ===================== */
/* CLOSE TOP GAP + BIGGER MASTHEAD */
/* ===================== */
body {
  margin: 0 !important;
}
.top-controls {
  padding: 6px 15px !important;
}
header {
  padding: 0 20px 0 20px !important;
}
.brand-section {
  padding: 4px 0 8px !important;
}
.brand-title {
  font-size: 3.2rem !important;
}

/* ===================== */
/* CORNER DARK MODE BUTTON + TALLER MASTHEAD */
/* ===================== */
.top-controls {
  display: none !important;
}
header {
  position: relative;
  padding-top: 10px !important;
}
.mode-toggle-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  z-index: 5;
}
.brand-title {
  font-size: 3.4rem !important;
  line-height: 1 !important;
  display: inline-block;
}

/* ===================== */
/* FOOTER SOCIAL ICONS */
/* ===================== */
.footer-social-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.footer-social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s ease, transform .2s ease;
}
.footer-social-icon:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

/* ===================== */
/* PRAYER TIMES PAGE */
/* ===================== */
.prayer-page h1 {
  font-family: var(--font-editorial-title);
  font-size: 2rem;
  margin-bottom: 10px;
}
.prayer-intro {
  font-family: var(--font-editorial-body);
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.prayer-city-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.prayer-city-tab {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  background: var(--bg-white);
  color: var(--color-ink);
  border-radius: 20px;
  cursor: pointer;
}
.prayer-city-tab.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.prayer-date-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.prayer-times-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.prayer-time-card {
  background: var(--bg-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: 4px;
  padding: 16px 10px;
  text-align: center;
}
.prayer-time-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 6px;
}
.prayer-time-value {
  font-family: var(--font-editorial-title);
  font-size: 1.3rem;
  font-weight: 700;
}
.prayer-disclaimer {
  font-size: 0.8rem;
  color: var(--color-muted);
  font-style: italic;
}

/* ===================== */
/* WEATHER TICKER (top of page) */
/* ===================== */
.weather-ticker {
  background: var(--color-ink);
  color: #f0ede6;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  padding: 6px 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  justify-content: center;
}
.weather-ticker-item {
  white-space: nowrap;
}
.weather-ticker-item b {
  color: var(--color-accent);
  font-weight: 700;
}
body.dark-mode .weather-ticker {
  background: #000;
}

/* ===================== */
/* WEATHER FORECAST PAGE */
/* ===================== */
.weather-page h1 {
  font-family: var(--font-editorial-title);
  font-size: 2rem;
  margin-bottom: 10px;
}
.weather-intro {
  font-family: var(--font-editorial-body);
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.weather-city-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.weather-city-tab {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  background: var(--bg-white);
  color: var(--color-ink);
  border-radius: 20px;
  cursor: pointer;
}
.weather-city-tab.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.weather-date-row {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--color-muted);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.weather-current-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}
.weather-current-card {
  background: var(--bg-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: 4px;
  padding: 18px 10px;
  text-align: center;
}
.weather-current-main {
  grid-row: span 1;
}
.weather-current-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 6px;
}
.weather-current-temp {
  font-family: var(--font-editorial-title);
  font-size: 2rem;
  font-weight: 700;
}
.weather-current-value {
  font-family: var(--font-editorial-title);
  font-size: 1.3rem;
  font-weight: 700;
}
.weather-forecast-title {
  font-family: var(--font-editorial-title);
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.weather-forecast-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.weather-forecast-card {
  background: var(--bg-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 12px 8px;
  text-align: center;
}
.weather-forecast-day {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.weather-forecast-cond {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-bottom: 4px;
}
.weather-forecast-temps {
  font-family: var(--font-editorial-title);
  font-size: 0.95rem;
  font-weight: 700;
}
.weather-disclaimer {
  font-size: 0.8rem;
  color: var(--color-muted);
  font-style: italic;
}

/* ===================== */
/* WEATHER ICONS */
/* ===================== */
.weather-current-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 6px;
}
.weather-forecast-icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 2px;
}

/* ===================== */
/* RAMAZAN CALENDAR PAGE */
/* ===================== */
.ramazan-page h1 {
  font-family: var(--font-editorial-title);
  font-size: 2rem;
  margin-bottom: 10px;
}
.ramazan-intro {
  font-family: var(--font-editorial-body);
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.ramazan-city-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.ramazan-city-tab {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  background: var(--bg-white);
  color: var(--color-ink);
  border-radius: 20px;
  cursor: pointer;
}
.ramazan-city-tab.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.ramazan-year-label {
  font-family: var(--font-editorial-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.ramazan-table-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
}
.ramazan-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 0.85rem;
}
.ramazan-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--color-ink);
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ramazan-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-border);
}
.ramazan-table tr:nth-child(even) {
  background: var(--bg-newsprint);
}
.ramazan-disclaimer {
  font-size: 0.8rem;
  color: var(--color-muted);
  font-style: italic;
}

/* ===================== */
/* LANGUAGE SWITCHER */
/* ===================== */
.lang-switcher {
  position: absolute;
  top: 10px;
  left: 20px;
  display: flex;
  gap: 4px;
  z-index: 5;
}
.lang-switch-btn {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  background: var(--bg-white);
  color: var(--color-ink);
  border-radius: 14px;
  cursor: pointer;
}
.lang-switch-btn.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
@media (max-width: 600px) {
  .lang-switcher {
    position: static;
    justify-content: center;
    padding: 8px 0 0;
  }
  /* Dark-mode button was absolutely positioned top-right and overlapped the
     centered masthead once the title wrapped to two lines. On phones, let it
     flow as a small right-aligned button above the title instead. */
  .mode-toggle-btn {
    position: static;
    display: block;
    margin: 0 0 6px auto;
    font-size: 0.7rem;
    padding: 4px 10px;
  }
  .brand-title {
    font-size: 2.1rem !important;
  }
  .brand-section {
    padding: 12px 0 !important;
  }
}

/* ===================== */
/* TOP AUTHORS WIDGET */
/* ===================== */
.top-authors-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.top-author-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}
.top-author-item:last-child {
  border-bottom: none;
}
.top-author-num {
  color: var(--color-accent);
  font-weight: 700;
  margin-right: 4px;
}
.top-author-item a {
  text-decoration: none;
  font-family: var(--font-editorial-title);
  color: var(--color-ink);
}
.top-author-item a:hover {
  text-decoration: underline;
}
.top-author-rank-1 a { font-size: 1.3rem; font-weight: 800; }
.top-author-rank-2 a { font-size: 1.12rem; font-weight: 700; }
.top-author-rank-3 a { font-size: 1.02rem; font-weight: 600; }
.top-author-rank-4 a { font-size: 0.92rem; font-weight: 500; color: var(--color-muted); }
.top-author-rank-5 a { font-size: 0.88rem; font-weight: 500; color: var(--color-muted); }

/* ===================== */
/* DATE ARCHIVE CALENDAR */
/* ===================== */
.archive-calendar {
  font-family: var(--font-ui);
}
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cal-nav-btn {
  background: var(--bg-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-ink);
  line-height: 1;
}
.cal-nav-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.cal-month-label {
  font-family: var(--font-editorial-title);
  font-weight: 700;
  font-size: 0.95rem;
}
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.65rem;
  color: var(--color-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
}
.cal-cell-day {
  cursor: pointer;
  border-radius: 50%;
  color: var(--color-ink);
  border: 1px solid transparent;
}
.cal-cell-day:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  font-weight: 700;
}
.cal-cell-today {
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
}
.cal-cell-today:hover {
  color: #fff;
}

/* ==========================================================================
   Homepage modular layout
   The 3-column .layout-wrapper grid (left rail | article | right rail) keeps
   running the full page height on every other view (article, category,
   photo essay, etc). On the homepage specifically, portal.js adds
   body.home-view, and everything below turns that same markup into a
   Dawn-style stack of full-width sections instead of persistent side rails.
   ========================================================================== */
body.home-view .layout-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 1300px;
  margin: 0 auto;
}

/* Several homepage story-list cards (related stories under the lead, the
   two secondary stories in each category block, the photo-essay magazine
   row) pin their thumbnail to a small fixed pixel width -- fine in the old
   340px sidebar, but left a lot of dead space once those blocks became
   full-width sections. Give each a sizing pass that fills the column
   instead. Sibling blocks (fact-check/video magazine rows) already scale
   with %, so they're left alone. */
/* Lead story beside related stories (not stacked below) -- overrides an
   earlier session's .top-story-row{grid-template-columns:1fr !important}
   which forced them to stack; that needs matching !important to win. */
body.home-view .top-story-row {
  grid-template-columns: 1.6fr 1fr !important;
  grid-template-rows: auto 1fr;
}
body.home-view #leadStoryContainer {
  grid-column: 1;
  grid-row: 1 / 3;
}
/* Standfirst slot is unused in this layout (the excerpt lives under the
   lead image instead); collapse it so it never leaves an empty gap. */
body.home-view .lead-standfirst {
  display: none;
}
body.home-view .lead-story .lead-excerpt {
  font-family: var(--font-editorial-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-ink);
  margin: 10px 0 0;
}
body.home-view .related-stories-label {
  grid-column: 2;
  grid-row: 1;
  margin-top: 0;
}
body.home-view .top-story-row .secondary-stories {
  grid-column: 2;
  grid-row: 2;
}
body.home-view .top-story-row .secondary-stories {
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
body.home-view .top-story-row .secondary-story-card {
  flex-direction: row;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
  margin-bottom: 8px;
}
body.home-view .top-story-row .secondary-story-thumb {
  flex: 0 0 64px;
  width: auto;
}
body.home-view .top-story-row .secondary-story-thumb img {
  width: 64px;
  height: 46px;
  aspect-ratio: unset;
  object-fit: cover;
}
body.home-view .top-story-row .secondary-story-title {
  font-size: 0.82rem;
  line-height: 1.25;
  margin: 0;
}
/* Compact the lead image so the whole top-story row (lead + related +
   LIVE ticker) fits near the top of the page without an extra scroll,
   matching dawn.com's more modest hero height. */
body.home-view .lead-story img {
  height: 300px;
  margin-bottom: 8px;
}
body.home-view #leadHeaderContainer {
  margin-bottom: 10px;
}
body.home-view #leadHeaderContainer .lead-title {
  font-size: 1.7rem;
  line-height: 1.15;
  margin-bottom: 4px;
}
/* The subtitle moves beside the image as the standfirst on the homepage,
   so don't repeat it under the headline. */
body.home-view #leadHeaderContainer .lead-subtitle {
  display: none;
}
body.home-view .lead-story .meta-info {
  margin-bottom: 0;
}

/* Top Stories river: on the homepage, lay it out as two tight columns with
   a divider bar down the middle (like dawn.com) instead of one long,
   stretched-out single column. Smaller thumbnails + less padding pull the
   rows closer together. */
body.home-view #latestNewsContainer .story-river {
  display: block;
  column-count: 2;
  column-gap: 34px;
  column-rule: 1px solid var(--color-border);
}
body.home-view #latestNewsContainer .river-item {
  break-inside: avoid;
  padding: 10px 0;
  gap: 12px;
}
body.home-view #latestNewsContainer .river-thumb {
  flex: 0 0 96px;
}
body.home-view #latestNewsContainer .river-thumb img {
  width: 96px;
  height: 68px;
}
body.home-view #latestNewsContainer .river-item .story-title {
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 4px;
}
/* Trim the summary so rows stay compact in the two-column grid. */
body.home-view #latestNewsContainer .river-item .story-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.85rem;
}
@media (max-width: 700px) {
  body.home-view #latestNewsContainer .story-river {
    column-count: 1;
  }
}

@media (max-width: 900px) {
  body.home-view .top-story-row {
    grid-template-columns: 1fr !important;
  }
  body.home-view #leadStoryContainer {
    grid-column: 1;
    grid-row: auto;
  }
  body.home-view .lead-standfirst {
    grid-column: 1;
    grid-row: auto;
  }
  body.home-view .related-stories-label {
    grid-column: 1;
    grid-row: auto;
  }
  body.home-view .top-story-row .secondary-stories {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Each category block (e.g. "Climate & Environment") shows 4 stories,
   dawn.com-style: one lead with a slightly larger image on the left, then
   three shorter cards across the right. The lead column is kept narrow so
   its image reads as "somewhat large" rather than oversized. */
body.home-view .section-feature-grid {
  grid-template-columns: 1.3fr 2.4fr;
  gap: 24px;
  align-items: start;
}
body.home-view .section-feature-grid > .grid-card {
  border: none;
  padding: 0;
}
body.home-view .section-feature-grid > .grid-card img {
  aspect-ratio: auto;
  height: 230px;
  object-fit: cover;
  border-bottom: none;
}
body.home-view .section-feature-grid > .grid-card:hover {
  transform: none;
}

/* Three shorter cards in a row, each with its own Dawn-sized image. */
body.home-view .section-secondary-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
body.home-view .section-secondary-list .secondary-story-card {
  flex-direction: column;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
body.home-view .section-secondary-list .secondary-story-thumb {
  flex: none;
  width: 100%;
}
body.home-view .section-secondary-list .secondary-story-thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  aspect-ratio: unset;
}
body.home-view .section-secondary-list .secondary-story-title {
  font-size: 0.95rem;
  line-height: 1.25;
}

/* Byline + relative publish date under each section card (dawn.com-style).
   Scoped to .section-byline so it only appears in category-section blocks. */
.section-byline {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-top: 6px;
}
.section-byline-author {
  font-weight: 600;
  color: var(--color-ink);
}

@media (max-width: 700px) {
  body.home-view .section-feature-grid {
    grid-template-columns: 1fr;
  }
  body.home-view .section-secondary-list {
    grid-template-columns: 1fr 1fr;
  }
}

body.home-view .hp-mag-essay-small img {
  width: 120px;
  height: 84px;
}

body.home-view .center-column {
  order: 1;
  width: 100%;
}

body.home-view .left-column,
body.home-view .right-column {
  border: none;
  padding: 0;
  margin: 40px 0 0;
  position: static;
  max-height: none;
  overflow: visible;
}

body.home-view .left-column {
  order: 2;
}

/* Latest Feed / Trending become a horizontal scroll strip (like a live
   updates ticker) instead of a tall vertical rail. */
body.home-view #latestFeedContainer,
body.home-view #trendingStoriesContainer {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

body.home-view #latestFeedContainer .sb-compact-item,
body.home-view #trendingStoriesContainer .sb-compact-item {
  flex: 0 0 240px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px;
}

/* Opinions / Most Read / Must Read use the same card markup as Latest
   Feed/Trending -- give them the same horizontal-strip treatment instead
   of a boxed vertical list, and let those boxes run full width so the
   strip has room. */
body.home-view .opinion-box:has(#opinionsList),
body.home-view .opinion-box:has(#mostReadContainer),
body.home-view .opinion-box:has(#mustReadContainer) {
  grid-column: 1 / -1;
}

body.home-view #opinionsList,
body.home-view #mostReadContainer,
body.home-view #mustReadContainer {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

body.home-view #opinionsList .sb-compact-item,
body.home-view #mostReadContainer .sb-compact-item,
body.home-view #mustReadContainer .sb-compact-item {
  flex: 0 0 240px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 10px;
}

/* Opinions / Most Read / Top Authors / Newsletter etc. become an engagement
   card row instead of one long vertical stack. */
body.home-view .right-column {
  order: 3;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: stretch;
}

body.home-view .right-column .opinion-box,
body.home-view .right-column .newsletter-widget {
  margin: 0;
  height: 100%;
  box-sizing: border-box;
}

body.home-view .right-column > h2:first-child,
body.home-view .right-column .search-input-group,
body.home-view .right-column .ad-sidebar-banner {
  grid-column: 1 / -1;
}

body.home-view .right-column .search-input-group {
  max-width: 420px;
}

@media (max-width: 700px) {
  body.home-view #latestFeedContainer .sb-compact-item,
  body.home-view #trendingStoriesContainer .sb-compact-item {
    flex-basis: 200px;
  }
}
.ad-header-banner {
}
.ad-header-banner, .ad-in-article {
  padding: 0;
  background-color: #04386A;
  overflow: hidden;
}
.ad-header-banner { height: 140px; }
.ad-in-article { height: 200px; }
.ad-header-banner a, .ad-in-article a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-header-banner img, .ad-in-article img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Article body inline images */
.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 4px;
}

/* Related Articles: text-only titles, no thumbnails */
#relatedArticlesSection img {
  display: none;
}

/* Related Articles: simple one-line title list */
#relatedArticlesGrid {
  display: block;
}
#relatedArticlesGrid .grid-card {
  border: none;
  background: none;
  box-shadow: none;
  padding: 8px 0;
  margin: 0;
  border-bottom: 1px solid #e5e5e5;
}
#relatedArticlesGrid .grid-card img {
  display: none;
}
#relatedArticlesGrid .story-title {
  margin: 0;
  font-size: 1rem;
}

/* ==========================================================================
   LIVE badge + LIVE updates ticker (Dawn-style live coverage)
   ========================================================================== */

/* Homepage: ticker sits beside the top story row (like dawn.com), not down
   in the reordered engagement row with Opinions/Most Read/etc. Only takes
   the 2-column shape once JS confirms there's actually live content. */
.top-news-live-row {
  display: block;
}
.top-news-live-row.has-live {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .top-news-live-row.has-live {
    grid-template-columns: 1fr;
  }
}

/* The sidebar ticker instance is for article/category pages; the homepage
   uses the one above the lead story instead, so hide this one there to
   avoid showing the same ticker twice. */
body.home-view .right-column #liveUpdatesBox {
  display: none !important;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-accent);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 8px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #fff;
  animation: live-pulse 1.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.live-ticker-box {
  border-top: 3px solid var(--color-accent);
}
.live-ticker-header {
  display: flex;
  align-items: center;
  background: var(--color-ad-bg);
  border-bottom: none !important;
  margin: -15px -15px 10px !important;
  padding: 10px 15px !important;
}
.live-ticker-list {
  max-height: 420px;
  overflow-y: auto;
}
/* Homepage top-row ticker: keep it roughly the same height as the
   compacted lead image column beside it instead of running taller. */
#liveUpdatesBoxTop .live-ticker-list {
  max-height: 330px;
}
.live-ticker-date-sep {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
  padding: 10px 0 6px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 6px;
}
.live-ticker-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}
.live-ticker-item:last-child {
  border-bottom: none;
}
.live-ticker-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}
.live-ticker-time {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--color-muted);
  margin-bottom: 2px;
}
.live-ticker-image {
  display: block;
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 6px;
}
.live-ticker-text {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--color-ink);
}
/* Every update reads as a bold headline, like dawn.com's live blog rail.
   On hover we only show the hand cursor -- no underline bar appears. */
.live-ticker-text a {
  color: var(--color-ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.live-ticker-text a:hover {
  text-decoration: none;
  color: var(--color-accent);
}
