/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  --bg:           #000000;
  --bg-surface:   #050505;
  --bg-card:      #0a0a0a;
  --bg-input:     #111111;
  --border:       #141414;
  --border-mid:   #1e1e1e;
  --border-light: #2a2a2a;
  --text-primary:   #ffffff;
  --text-secondary: #888888;
  --text-muted:     #444444;
  --text-ghost:     #2a2a2a;
  --accent-india:   #ff3b30;
  --accent-world:   #30d158;
  --accent-tech:    #0a84ff;
  --accent-viral:   #ff9f0a;
  --accent-sports:  #bf5af2;
  --accent-jobs:    #30d158;
  --accent-default: #636366;
  --font-logo:    'Jost', sans-serif;
  --font-body:    'Geist', sans-serif;
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    14px;
  --radius-pill:  20px;
  --nav-height:   56px;
  --max-width:    1200px;
  --article-width: 720px;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; background: none; border: none; font: inherit; }
ul, ol { list-style: none; }

/* ─── Layout ─────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }
.container--article { max-width: var(--article-width); }

/* ─── Site header ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}

/* ════════════════════════════════════════════════════════════
   DESKTOP HEADER  (hidden on mobile)
   logo LEFT | beats RIGHT | search FAR RIGHT
   ════════════════════════════════════════════════════════════ */
.header-desktop { display: none !important; }

@media (min-width: 768px) {
  .header-mobile { display: none !important; }
  .header-desktop { display: flex !important;
    display: flex;
    align-items: stretch;
    border-bottom: .5px solid var(--border-mid);
    height: 44px;
  }

  /* Logo */
  .hd-logo {
    display: flex;
    align-items: center;
    padding: 0 20px 0 18px;
    font-family: var(--font-logo);
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    white-space: nowrap;
    border-right: .5px solid var(--border-mid);
    flex-shrink: 0;
    line-height: 1;
  }
  .hd-logo .dot { color: var(--accent-india); }

  /* Beats — push to right with margin-left auto */
  .hd-beats {
    display: flex;
    align-items: stretch;
    margin-left: auto;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .hd-beats::-webkit-scrollbar { display: none; }

  .hd-item {
    display: flex;
    align-items: center;
    padding: 0 13px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .08em;
    color: #555;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    position: relative;
    top: 1px;
    transition: color .15s, border-color .15s;
  }
  .hd-item:hover { color: #fff; }
  .hd-item--active {
    color: #fff;
    font-weight: 600;
    border-bottom-color: var(--accent-india);
  }

  /* Search */
  .hd-search {
    display: flex;
    align-items: center;
    padding: 0 18px;
    color: #555;
    border-left: .5px solid var(--border-mid);
    flex-shrink: 0;
    transition: color .15s;
  }
  .hd-search:hover { color: #fff; }
}

/* ════════════════════════════════════════════════════════════
   MOBILE HEADER  (hidden on desktop)
   row 1: logo left, search right
   row 2: scrollable beats
   ════════════════════════════════════════════════════════════ */
.header-mobile { display: block; } /* mobile default */

.hm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  height: 52px;
  border-bottom: .5px solid var(--border);
}
.hm-logo {
  font-family: var(--font-logo);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
}
.hm-logo .dot { color: var(--accent-india); }
.hm-search {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #111;
  border: .5px solid #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
}

.hm-beats {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: .5px solid var(--border);
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overflow-y: hidden;
  padding: 0 8px;
}
.hm-beats::-webkit-scrollbar { display: none; }

.hm-item {
  display: flex;
  align-items: center;
  padding: 0 12px;
  height: 38px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  color: #555;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  position: relative;
  top: 1px;
  transition: color .15s, border-color .15s;
  flex-shrink: 0;
}
.hm-item:hover { color: #fff; }
.hm-item--active {
  color: #fff;
  font-weight: 600;
  border-bottom-color: var(--accent-india);
}

/* ─── Hero Story ─────────────────────────────────────────────── */
.hero-story { position: relative; border-bottom: .5px solid var(--border); overflow: hidden; }
.hero-story__img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.hero-story__img-placeholder {
  width: 100%;
  height: 260px;
  background: radial-gradient(ellipse at 60% 25%, #18103a 0%, #020208 68%);
}
.hero-story__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000 0%, rgba(0,0,0,.6) 45%, transparent 72%);
}
.hero-story__content {
  position: absolute;
  bottom: 20px;
  left: 18px;
  right: 18px;
}
.hero-story__beat {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hero-story__title {
  font-family: var(--font-logo);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.18;
  letter-spacing: -.5px;
  margin-bottom: 8px;
}
.hero-story__title a { color: #fff; text-decoration: none; }
.hero-story__deck {
  font-size: 13px;
  font-weight: 200;
  color: rgba(255,255,255,.45);
  line-height: 1.5;
  margin-bottom: 8px;
  display: none;
}
.hero-story__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: rgba(255,255,255,.3);
  font-weight: 300;
}
.hero-story__meta-dot { width: 2px; height: 2px; border-radius: 50%; background: rgba(255,255,255,.2); }

@media (min-width: 768px) {
  .hero-story__img,
  .hero-story__img-placeholder { height: 480px; }
  .hero-story__title { font-size: 34px; letter-spacing: -.8px; }
  .hero-story__deck { display: block; font-size: 15px; }
  .hero-story__content { bottom: 32px; left: 32px; right: 40%; }
}

/* ─── Section Header ─────────────────────────────────────────── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px 8px;
}
.section-header__name {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.section-header__more {
  font-size: 12px;
  color: var(--accent-tech);
  font-weight: 300;
}

/* ─── Story Card (horizontal list) ──────────────────────────── */
.story-list { border-bottom: .5px solid var(--border); }
.story-card {
  display: flex;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: .5px solid var(--border);
  align-items: flex-start;
  transition: background .12s;
}
.story-card:last-child { border-bottom: none; }
.story-card:hover { background: var(--bg-surface); }
.story-card__thumb {
  width: 76px;
  height: 58px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  object-fit: cover;
  background: var(--bg-card);
}
.story-card__body { flex: 1; min-width: 0; }
.story-card__beat {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.story-card__title {
  font-family: var(--font-logo);
  font-size: 14px;
  font-weight: 500;
  color: #d0d0d0;
  line-height: 1.35;
  margin-bottom: 4px;
  letter-spacing: -.15px;
}
.story-card__meta {
  font-size: 11px;
  color: var(--text-ghost);
  font-weight: 300;
}

@media (min-width: 768px) {
  .story-card { padding: 14px 24px; }
  .story-card__thumb { width: 110px; height: 80px; }
  .story-card__title { font-size: 16px; }
}

/* ─── Desktop Grid ───────────────────────────────────────────── */
@media (min-width: 768px) {
  .story-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border-top: .5px solid var(--border);
    border-bottom: .5px solid var(--border);
  }
  .story-grid .story-card {
    flex-direction: column;
    background: var(--bg);
    border-bottom: none;
    padding: 16px;
  }
  .story-grid .story-card:hover { background: var(--bg-surface); }
  .story-grid .story-card__thumb {
    width: 100%;
    height: 160px;
    margin-bottom: 10px;
  }
}

/* ─── Jobs Strip ─────────────────────────────────────────────── */
.jobs-strip {
  padding: 14px 18px;
  background: var(--bg-surface);
  border-top: .5px solid var(--border);
  border-bottom: .5px solid var(--border);
}
.jobs-strip__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.jobs-strip__title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-jobs);
}
.jobs-strip__all {
  font-size: 12px;
  color: var(--accent-tech);
  font-weight: 300;
}
.jobs-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overflow-y: hidden;
}
.jobs-scroll::-webkit-scrollbar { display: none; }
.job-card {
  flex-shrink: 0;
  width: 152px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  border: .5px solid var(--border-mid);
  transition: border-color .15s;
}
.job-card:hover { border-color: var(--border-light); }
.job-card__title {
  font-family: var(--font-logo);
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  line-height: 1.3;
  margin-bottom: 3px;
  letter-spacing: -.15px;
}
.job-card__org {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 7px;
  font-weight: 300;
}
.job-card__tag {
  font-size: 10px;
  font-weight: 500;
  background: rgba(48,209,88,.08);
  color: var(--accent-jobs);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: .5px solid rgba(48,209,88,.15);
  display: inline-block;
}

@media (min-width: 768px) {
  .jobs-scroll { flex-wrap: wrap; gap: 10px; }
  .job-card { width: calc(25% - 8px); }
}

/* ─── Viral Scroll ───────────────────────────────────────────── */
.viral-scroll {
  display: flex;
  gap: 10px;
  padding: 4px 18px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.viral-scroll::-webkit-scrollbar { display: none; }
.viral-card {
  flex-shrink: 0;
  width: 148px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: .5px solid var(--border);
  background: var(--bg-surface);
  transition: border-color .15s;
}
.viral-card:hover { border-color: var(--border-light); }
.viral-card__thumb {
  height: 90px;
  object-fit: cover;
  width: 100%;
  background: var(--bg-card);
  display: block;
}
.viral-card__body { padding: 9px 10px; }
.viral-card__title {
  font-family: var(--font-logo);
  font-size: 12px;
  font-weight: 500;
  color: #999;
  line-height: 1.35;
  letter-spacing: -.1px;
}
.viral-card__time {
  font-size: 10px;
  color: var(--text-ghost);
  margin-top: 4px;
  font-weight: 300;
}

@media (min-width: 768px) {
  .viral-scroll { flex-wrap: wrap; padding: 4px 18px 16px; }
  .viral-card { width: calc(25% - 8px); flex-shrink: unset; }
  .viral-card__thumb { height: 140px; }
}

/* ─── Beat Colour Map ────────────────────────────────────────── */
.beat-india, .beat-tag--india   { color: var(--accent-india); }
.beat-world, .beat-tag--world   { color: var(--accent-world); }
.beat-tech, .beat-tag--tech     { color: var(--accent-tech); }
.beat-viral, .beat-tag--viral   { color: var(--accent-viral); }
.beat-sports, .beat-tag--sports { color: var(--accent-sports); }
.beat-jobs, .beat-tag--jobs     { color: var(--accent-jobs); }

/* ─── Article Page ───────────────────────────────────────────── */
.article-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  border-bottom: .5px solid var(--border);
}
.article-topbar__back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--accent-tech);
  font-weight: 300;
}
.article-topbar__actions { display: flex; gap: 8px; }

.article-hero {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: var(--bg-card);
}
@media (min-width: 768px) { .article-hero { height: 420px; } }

.article-body {
  padding: 0 18px;
  max-width: var(--article-width);
  margin: 0 auto;
}
@media (min-width: 768px) { .article-body { padding: 0 24px; } }

.article-beat {
  padding: 16px 0 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.article-title {
  font-family: var(--font-logo);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -.8px;
  margin-bottom: 10px;
}
@media (min-width: 768px) { .article-title { font-size: 36px; letter-spacing: -1.2px; } }

.article-deck {
  font-size: 15px;
  font-weight: 200;
  color: #4a4a4a;
  line-height: 1.6;
  letter-spacing: .01em;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: .5px solid var(--border);
}
@media (min-width: 768px) { .article-deck { font-size: 18px; } }

.article-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.byline-info { display: flex; align-items: center; gap: 10px; }
.byline-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-input);
  border: .5px solid var(--border-mid);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-logo);
  font-size: 11px; font-weight: 700;
  color: var(--text-muted);
}
.byline-name {
  font-size: 13px;
  color: #555;
  font-weight: 400;
}
.byline-date {
  font-size: 11px;
  color: var(--text-ghost);
  font-weight: 300;
  margin-top: 1px;
}
.byline-actions { display: flex; gap: 8px; }
.byline-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--bg-input);
  border: .5px solid var(--border-mid);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: color .15s;
}
.byline-btn:hover { color: var(--text-primary); }

.article-tags {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: .5px solid var(--border);
}
.article-tag {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-ghost);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: .5px solid var(--border-mid);
  transition: all .15s;
}
.article-tag:hover { color: var(--text-muted); border-color: var(--border-light); }
.article-tag--active {
  color: var(--accent-tech);
  border-color: rgba(10,132,255,.2);
  background: rgba(10,132,255,.06);
}
.read-time {
  font-size: 11px;
  color: var(--text-ghost);
  font-weight: 300;
  margin-left: auto;
}

/* Article body content */
.article-content { padding-bottom: 24px; }
.article-content p {
  font-size: 16px;
  font-weight: 300;
  color: #888;
  line-height: 1.78;
  letter-spacing: .005em;
  margin-bottom: 18px;
}
@media (min-width: 768px) { .article-content p { font-size: 17px; } }
.article-content p strong { font-weight: 500; color: #bbb; }
.article-content p em { font-style: italic; color: #666; }
.article-content h2 {
  font-family: var(--font-logo);
  font-size: 20px;
  font-weight: 600;
  color: #e0e0e0;
  letter-spacing: -.4px;
  margin: 24px 0 12px;
}
.article-content h3 {
  font-family: var(--font-logo);
  font-size: 17px;
  font-weight: 600;
  color: #ccc;
  letter-spacing: -.3px;
  margin: 20px 0 10px;
}

/* Pull quote */
.pullquote {
  margin: 22px 0;
  padding: 16px 18px;
  border-left: 2px solid var(--accent-india);
  background: #080808;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.pullquote p {
  font-family: var(--font-logo);
  font-size: 18px !important;
  font-weight: 500 !important;
  color: #ccc !important;
  line-height: 1.4 !important;
  letter-spacing: -.3px;
  font-style: italic;
  margin-bottom: 8px !important;
}
.pullquote cite {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 300;
  font-style: normal;
}

/* Key facts box */
.facts-box {
  background: #080808;
  border: .5px solid var(--border-mid);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 18px 0;
}
.facts-box__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.facts-box ul { list-style: none; }
.facts-box li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
  border-bottom: .5px solid var(--border);
  font-size: 13px;
  color: #555;
  font-weight: 300;
  line-height: 1.5;
}
.facts-box li:last-child { border-bottom: none; }
.facts-box li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent-india);
  flex-shrink: 0;
  margin-top: 6px;
}
.facts-box li strong { color: #888; font-weight: 400; }

/* ─── Related Stories ────────────────────────────────────────── */
.related-stories {
  border-top: .5px solid var(--border);
  padding: 16px 18px;
}
.related-stories__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-ghost);
  margin-bottom: 12px;
}
.related-card {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: .5px solid var(--border);
  align-items: flex-start;
  transition: opacity .12s;
}
.related-card:last-child { border-bottom: none; }
.related-card:hover { opacity: .75; }
.related-card__thumb {
  width: 60px; height: 48px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  object-fit: cover;
  background: var(--bg-card);
}
.related-card__beat {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.related-card__title {
  font-family: var(--font-logo);
  font-size: 13px;
  font-weight: 500;
  color: #666;
  line-height: 1.35;
  letter-spacing: -.15px;
}

/* ─── Swipe Indicator ────────────────────────────────────────── */
.swipe-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: .5px solid var(--border);
  font-size: 11px;
  color: var(--text-ghost);
  font-weight: 300;
}
.swipe-indicator__beat { color: var(--text-muted); font-weight: 400; }
.swipe-indicator__pos { color: var(--text-ghost); }
.swipe-arrow {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: .5px solid var(--border-mid);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all .15s;
}
.swipe-arrow:hover { border-color: var(--border-light); color: var(--text-primary); }

/* ─── Bottom Nav (mobile) ────────────────────────────────────── */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  padding: 10px 0 max(22px, env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: .5px solid var(--border);
  position: sticky;
  bottom: 0;
  z-index: 100;
}
.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-ghost);
  transition: color .15s;
  min-width: 60px;
}
.bottom-nav__item.active,
.bottom-nav__item:hover { color: var(--text-primary); }
.bottom-nav__label { font-size: 10px; font-weight: 300; }
.bottom-nav__item.active .bottom-nav__label { font-weight: 400; }

@media (min-width: 768px) { .bottom-nav { display: none; } }

/* ─── Footer (desktop) ───────────────────────────────────────── */
.site-footer {
  display: none;
  border-top: .5px solid var(--border);
  padding: 32px 24px;
  margin-top: 40px;
}
.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr 1fr 1fr;
  gap: 32px;
}
.footer-logo {
  font-family: var(--font-logo);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
  margin-bottom: 10px;
}
.footer-logo .dot { color: var(--accent-india); }
.footer-tagline { font-size: 12px; color: var(--text-muted); font-weight: 300; line-height: 1.5; }
.footer-col__title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-ghost);
  font-weight: 300;
  margin-bottom: 8px;
  transition: color .15s;
}
.footer-col a:hover { color: var(--text-muted); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding-top: 16px;
  border-top: .5px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-ghost);
  font-weight: 300;
}
@media (min-width: 768px) { .site-footer { display: block; } }

/* ─── Utilities ──────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
.text-muted { color: var(--text-muted); }
.mt-0 { margin-top: 0; }

/* ═══════════════════════════════════════════════════════════════
   DESKPOST UPDATE — all discussion items applied
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. rem base for iOS Dynamic Type ──────────────────────── */
html { font-size: 100%; }

/* ─── 2. Text sizes increased ───────────────────────────────── */
.story-card__beat  { font-size: 0.6875rem; }   /* 11px */
.story-card__title { font-size: 1rem; }         /* 16px */
.story-card__meta  { font-size: 0.6875rem; }    /* 11px */
.section-header__name { font-size: 0.6875rem; } /* 11px */
.viral-card__title { font-size: 0.875rem; }     /* 14px */
.viral-card__time  { font-size: 0.6875rem; }    /* 11px */
.job-card__title   { font-size: 0.875rem; }     /* 14px */

/* ─── 3. Grey text lightened for low brightness ─────────────── */
.story-card__title { color: #b8b8b8; }
.story-card__meta  { color: #666; }
.viral-card__title { color: #aaa; }
.job-card__org     { color: #666; }
.section-header__name { color: #666; }
.hm-item           { color: #777; }
.hd-item           { color: #777; }

/* ─── 4. Article reading — softer background + text ─────────── */
.article-body      { background: #0d0d0d; }
.article-content p { color: #c8c8c8; }
.article-content p strong { color: #e0e0e0; }
.article-content p em     { color: #aaa; }
.article-title     { color: #f0f0f0; }
.article-deck      { color: #666; }
.article-content h2 { color: #e8e8e8; }
.article-content h3 { color: #ddd; }
.pullquote p       { color: #ccc !important; }
.byline-name       { color: #777; }
.byline-date       { color: #444; }
.article-tag       { color: #444; }
.ap-body           { color: #c0c0c0; }

/* ─── 5. Article text sizes increased ───────────────────────── */
.article-title { font-size: 1.75rem; }          /* 28px */
.article-deck  { font-size: 1rem; }             /* 16px */
.article-content p { font-size: 1.0625rem; }    /* 17px */
@media (min-width: 768px) {
  .article-title { font-size: 2.25rem; }        /* 36px */
  .article-content p { font-size: 1.0625rem; }  /* 17px */
}

/* ─── 6. Logo dot — breathing space ─────────────────────────── */
.hd-logo .dot,
.hm-logo .dot,
.site-logo .dot {
  margin: 0 2px;
  display: inline-block;
}

/* ─── 7. Desktop menu bar height + logo size ─────────────────── */
.header-desktop { height: 54px !important; }
.hd-logo { font-size: 26px !important; }
.hd-item { height: 54px !important; font-size: 0.6875rem; }
.hd-search { height: 54px; }

/* ─── 8. Mobile logo size ────────────────────────────────────── */
.hm-logo { font-size: 25px !important; }

/* ─── 9. Desktop beat sections — 4-card grid ────────────────── */
@media (min-width: 768px) {
  /* Override story-list to grid for beat sections */
  .beat-section-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1px;
    background: var(--border);
    border-top: .5px solid var(--border);
    border-bottom: .5px solid var(--border);
  }
  .beat-section-grid .story-card {
    flex-direction: column !important;
    background: var(--bg) !important;
    border-bottom: none !important;
    padding: 0 !important;
  }
  .beat-section-grid .story-card:hover { background: var(--bg-surface) !important; }
  .beat-section-grid .story-card__thumb {
    width: 100% !important;
    height: 140px !important;
    border-radius: 0 !important;
    margin-bottom: 0;
  }
  .beat-section-grid .story-card__body {
    padding: 10px 12px 14px;
  }
  .beat-section-grid .story-card__title { font-size: 0.875rem !important; }
}

/* ─── 10. Jobs strip — no excerpt tag showing ───────────────── */
.job-card__tag { 
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── 11. Header icons — saves + settings ────────────────────── */
.header-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #111;
  border: .5px solid #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  text-decoration: none;
  transition: color .15s;
  flex-shrink: 0;
}
.header-icon-btn:hover { color: #fff; }
@media (min-width: 768px) {
  .hd-search-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    border-left: .5px solid #1e1e1e;
    padding: 0 14px;
  }
  .hd-search-wrap .header-icon-btn {
    background: transparent;
    border: none;
  }
}

/* ─── 12. Thin footer ────────────────────────────────────────── */
.site-footer-thin {
  border-top: .5px solid #1a1a1a;
  padding: 20px 18px;
  text-align: center;
  background: #000;
}
.site-footer-thin__logo {
  font-family: var(--font-logo);
  font-size: 14px;
  font-weight: 800;
  color: #333;
  letter-spacing: -.5px;
  margin-bottom: 10px;
}
.site-footer-thin__logo .dot { color: #5a1010; margin: 0 2px; }
.site-footer-thin__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 10px;
}
.site-footer-thin__links a {
  font-family: var(--font-body);
  font-size: 11px;
  color: #333;
  font-weight: 300;
  transition: color .15s;
  text-decoration: none;
}
.site-footer-thin__links a:hover { color: #666; }
.site-footer-thin__copy {
  font-family: var(--font-body);
  font-size: 11px;
  color: #252525;
  font-weight: 300;
}
.site-footer-thin__copy .sep { color: #1a1a1a; margin: 0 6px; }

/* ─── 13. Category page — hide story count ───────────────────── */
.category-count { display: none !important; }

/* ─── 14. Viral section — 2-col mobile already, enforce ─────── */
.viral-scroll {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
  overflow-x: visible !important;
  padding: 4px 18px 16px !important;
}
.viral-card { width: auto !important; flex-shrink: unset !important; }
@media (min-width: 768px) {
  .viral-scroll {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* ─── Floating scroll-to-top button ─────────────────────────── */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #111;
  border: .5px solid #2a2a2a;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .25s, transform .25s, background .15s;
  z-index: 200;
  pointer-events: none;
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top-btn:hover { background: #1c1c1c; color: #fff; }
.scroll-top-btn:active { transform: scale(0.94); }

/* Hide old bottom nav if still rendered anywhere */
.bottom-nav { display: none !important; }

/* ─── Touch scroll freeze fix ────────────────────────────────── */
body { touch-action: pan-y; }
.jobs-strip__cards,
.hm-beats,
.hd-beats { touch-action: pan-x; }

/* ─── Menu glow — elegant ambient pulse on page load ────────── */
.site-header {
  overflow: visible !important;
  animation: headerGlow 3.8s ease-out 0.4s both;
}

@keyframes headerGlow {
  0%   { box-shadow: 0 8px 0px   0px  rgba(255, 59, 48, 0); }
  18%  { box-shadow: 0 8px 70px  28px rgba(255, 59, 48, 0.32); }
  55%  { box-shadow: 0 8px 55px  22px rgba(255, 59, 48, 0.22); }
  100% { box-shadow: 0 8px 0px   0px  rgba(255, 59, 48, 0); }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  .site-header { animation: none; }
}

/* ═══════════════════════════════════════════════════════════════
   POINTS 1,3,4,5,7,8 — UI updates
   ═══════════════════════════════════════════════════════════════ */

/* ── Point 1: Home icon in theme red ────────────────────────── */
.hm-item--home,
.hd-item--home {
  color: var(--accent-india) !important;
  padding: 0 10px;
}
.hm-home-icon,
.hd-home-icon {
  display: block;
  color: var(--accent-india);
}
.hm-item--home.hm-item--active,
.hd-item--home.hd-item--active {
  border-bottom-color: var(--accent-india);
}

/* ── Point 1: Scroll-to-top in theme red ────────────────────── */
.scroll-top-btn {
  background: var(--accent-india) !important;
  border-color: var(--accent-india) !important;
  color: #fff !important;
}
.scroll-top-btn:hover {
  background: #e0342a !important;
}

/* ── Point 3: IPL special tab ───────────────────────────────── */
.hm-item--ipl,
.hd-item--ipl {
  color: #ff6b00 !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center;
  gap: 5px;
}
.ipl-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff6b00;
  flex-shrink: 0;
  animation: iplPulse 1.8s ease-in-out infinite;
}
@keyframes iplPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(0.7); }
}
.hm-item--ipl.hm-item--active,
.hd-item--ipl.hd-item--active {
  border-bottom-color: #ff6b00 !important;
}

/* ── Point 3: Agritech beat colour ──────────────────────────── */
.beat-agritech, .beat-tag--agritech { color: #34c759; }

/* ── Point 4: Floating share pill ───────────────────────────── */
.article-share-pill {
  display: flex;
  justify-content: flex-end;
  padding: 10px 18px 0;
  position: relative;
  z-index: 10;
}
.share-pill-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #111;
  border: .5px solid #2a2a2a;
  color: #aaa;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  padding: 7px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.share-pill-btn:hover,
.share-pill-btn.shared {
  background: var(--accent-india);
  border-color: var(--accent-india);
  color: #fff;
}
/* Sticky share pill on scroll */
.article-share-pill.sticky {
  position: fixed;
  bottom: 24px;
  right: 20px;
  padding: 0;
  z-index: 200;
}
.article-share-pill.sticky .share-pill-btn {
  background: var(--accent-india);
  border-color: var(--accent-india);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,59,48,.35);
}
@media (min-width: 768px) {
  .article-share-pill { padding: 14px 24px 0; }
}

/* ── Point 9: Article topbar ad slot ────────────────────────── */
.article-topbar__ad {
  width: 120px;
  height: 28px;
  /* Empty — ad network fills this later */
}

/* ── Point 5: Editorial slider ──────────────────────────────── */
.editorial-slider-section {
  border-bottom: .5px solid var(--border);
  margin-bottom: 0;
}
.editorial-slider-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.es-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #111;
  border: .5px solid #2a2a2a;
  color: #555;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .15s;
}
.es-arrow:hover { color: #fff; background: #1c1c1c; }

.editorial-slider {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}
.editorial-slider::-webkit-scrollbar { display: none; }

.es-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border-right: .5px solid var(--border);
  text-decoration: none;
  transition: background .15s;
}
.es-card:hover { background: var(--bg-surface); }
.es-card:last-child { border-right: none; }

.es-card__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.es-card__img--empty {
  height: 160px;
  background: radial-gradient(ellipse at 50% 30%, #18103a, #020208);
}
.es-card__body {
  padding: 12px 14px 16px;
  flex: 1;
}
.es-card__beat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.es-card__title {
  font-family: var(--font-logo);
  font-size: 15px;
  font-weight: 700;
  color: #e8e8e8;
  line-height: 1.3;
  margin-bottom: 6px;
}
.es-card__deck {
  font-size: 12px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.es-card__time { font-size: 11px; color: #444; }

@media (min-width: 768px) {
  .es-card { flex: 0 0 320px; }
  .es-card__img { height: 180px; }
}

/* ─── Share topbar button — larger, icon only ────────────────── */
.share-topbar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #111;
  border: .5px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.share-topbar-btn:hover,
.share-topbar-btn.shared { background: #1c1c1c; color: #fff; }

/* ─── Floating share icon — bottom right, appears mid-article ── */
.floating-share-btn {
  position: fixed;
  bottom: 28px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #111;
  border: .5px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity .25s, transform .25s, background .15s, color .15s;
  z-index: 199;
  pointer-events: none;
}
.floating-share-btn.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.floating-share-btn:hover { background: #1c1c1c; color: #fff; }
.floating-share-btn.shared { color: var(--accent-india); }

/* ─── Scroll-to-top — bottom center, dark + grey arrow ──────── */
.scroll-top-btn {
  position: fixed !important;
  bottom: 24px !important;
  right: auto !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(16px) !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: #141414 !important;
  border: .5px solid #2a2a2a !important;
  color: #666 !important;
  box-shadow: none !important;
}
.scroll-top-btn.visible {
  transform: translateX(-50%) translateY(0) !important;
}
.scroll-top-btn:hover {
  background: #1c1c1c !important;
  color: #999 !important;
}
.scroll-top-btn:active { transform: translateX(-50%) scale(0.94) !important; }

/* On article pages — shift floating share to not overlap scroll btn */
.article-page .floating-share-btn {
  bottom: 28px;
  right: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   BATCH EXECUTE — items 1,2,4,8,9,10,11
   ═══════════════════════════════════════════════════════════════ */

/* ── 1 & 11. Article deck — lighter grey ─────────────────────── */
.article-deck {
  color: #6a6a6a !important;
}

/* ── 2. Menu item text — lighter + slightly bigger ───────────── */
.hm-item {
  color: #666 !important;
  font-size: 11.5px !important;
}
.hd-item {
  color: #666 !important;
  font-size: 11.5px !important;
}
.hm-item--active { color: #fff !important; }
.hd-item--active { color: #fff !important; }

/* ── 4. Share button — Telegram-style 3D red paper plane ─────── */
.floating-share-btn {
  width: 50px !important;
  height: 50px !important;
  background: radial-gradient(circle at 35% 30%, #ff6b5e, #e02d20 60%, #b81e14) !important;
  border: none !important;
  box-shadow:
    0 2px 0 #8a1209,
    0 4px 12px rgba(200,30,20,0.45),
    inset 0 1px 0 rgba(255,255,255,0.25) !important;
  color: #fff !important;
  position: fixed;
  bottom: 28px;
  right: 20px;
  border-radius: 50%;
  transition: transform .15s, box-shadow .15s !important;
}
.floating-share-btn:hover {
  transform: translateY(-1px) scale(1.04) !important;
  box-shadow:
    0 3px 0 #8a1209,
    0 6px 18px rgba(200,30,20,0.55),
    inset 0 1px 0 rgba(255,255,255,0.25) !important;
}
.floating-share-btn:active {
  transform: translateY(1px) scale(0.97) !important;
  box-shadow:
    0 1px 0 #8a1209,
    0 2px 8px rgba(200,30,20,0.35),
    inset 0 1px 0 rgba(255,255,255,0.15) !important;
}
/* Hide share btn when footer is visible */
.floating-share-btn.hide { opacity: 0 !important; pointer-events: none !important; }

/* ── 8. Beat section grid — responsive columns ───────────────── */
@media (min-width: 768px) {
  .beat-section-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}
@media (min-width: 1100px) {
  .beat-section-grid {
    grid-template-columns: repeat(5, 1fr) !important;
  }
}
@media (min-width: 1400px) {
  .beat-section-grid {
    grid-template-columns: repeat(6, 1fr) !important;
  }
}

/* ── 9. Home button — aligned, bigger, greyscale → red active ── */
.hm-item--home,
.hd-item--home {
  color: #666 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 12px !important;
}
.hm-item--home .hm-home-icon,
.hd-item--home .hd-home-icon {
  width: 16px !important;
  height: 16px !important;
  color: #666 !important;
  transition: color .15s !important;
}
.hm-item--home.hm-item--active,
.hd-item--home.hd-item--active {
  color: var(--accent-india) !important;
  border-bottom-color: var(--accent-india) !important;
}
.hm-item--home.hm-item--active .hm-home-icon,
.hd-item--home.hd-item--active .hd-home-icon {
  color: var(--accent-india) !important;
}

/* ── 10. Footer text — lighter grey, visible at low brightness ── */
.site-footer-thin__logo { color: #555 !important; }
.site-footer-thin__logo .dot { color: #7a2020 !important; }
.site-footer-thin__links a { color: #555 !important; }
.site-footer-thin__links a:hover { color: #999 !important; }
.site-footer-thin__copy { color: #444 !important; }
.site-footer-thin__copy .sep { color: #333 !important; }

/* ── 3. Menu bar — frosted liquid glass ─────────────────────── */
.site-header {
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  border-bottom: .5px solid rgba(255,255,255,0.06) !important;
}
/* Keep glow animation working */
.site-header {
  overflow: visible !important;
}
