/* ===== READY-TO-RUN style.css (font rules synced to style1.css) ===== */

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

@font-face {
  font-family: 'Playfair Fallback';
  src: local('Georgia'), local('Times New Roman'), local('serif');
  size-adjust: 112%;
  ascent-override: 97%;
  descent-override: 27%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('Helvetica'), local('sans-serif');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

    /* ── Reset & Base ── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #FAFAF7;
  --card-1: #FFFFFF;  /* Pure White */
  --card-2: #FEF9F3;  /* Warm Cream */
  --card-3: #F5FAFF;  /* Ice Blue */
  --card-4: #F7FCF7;  /* Fresh Mint */
  --card-5: #FFF9F2;  /* Soft Peach */
  --card-6: #F9F3FA;  /* Light Lavender */
  --card-7: #F3FBFA;  /* Aqua Mist */
  --card-8: #FFF4F4;  /* Blush Pink */
  --card-9: #F8F8F4;  /* Warm Gray */
  --card-10: #F4F5FF; /* Soft Indigo */
  --card-11: #FFFEF5; /* Pale Yellow */
  --text-primary: #1A1A2E;
  --text-secondary: #4A4A5A;
  --text-muted: #7A7A8A;
  --accent: #C41E3A;
  --border: #E5E5E0;
  --shadow: rgba(0, 0, 0, 0.06);
}

html, body { height: 100%; }
body {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
}

.app { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.nav-container { width: min(1320px, calc(100% - 32px)); }

.ticker-wrap { background: var(--accent); color: #fff; padding: 8px 0; font-size: 13px; min-height: 38px; gap: 16px;}
.ticker-label { font-weight: 700; letter-spacing: 1px; margin-right: 12px; }

.masthead { text-align: center; padding: 22px 0 16px; background: #f2f2f2; border-bottom: 1px solid var(--border); min-height: 128px; }
.masthead h1 { font-family: 'Playfair Display', 'Playfair Fallback', serif; font-size: clamp(34px, 5vw, 58px); line-height: 1.1; font-weight: 700; }
.brand-link { color: var(--text-primary); text-decoration: none; }
.brand-link:hover { color: var(--accent); }
.masthead p { color: var(--text-muted); min-height: 21px; }

.nav-wrap { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 2px solid var(--border); }
.nav-row {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.cats {
  flex: 0 1 auto;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding: 8px 0;
  min-height: 44px;
  align-items: center;
}
@media (max-width: 640px) {
  .cats {
    min-height: 88px;
  }
}
.cats::-webkit-scrollbar { display: none; }
.cat-btn {
  border: 1px solid var(--border);
  background: #f6f6f4;
  color: var(--text-secondary);
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.cat-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.search-wrap {
  display: flex;
  justify-content: center;
  margin-left: 0;
  flex: 0 0 300px;
}
.search-wrap form { width: 100%; max-width: 300px; }
.search {
  width: 100%; max-width: 300px; border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 12px; font-size: 14px; outline: none; background: #fbfbf9;
}

.main { flex: 1; padding: 22px 0 48px; }
.news-list { display: flex; flex-direction: column; gap: 14px; min-height: 2150px; }
.news-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: 0 2px 10px var(--shadow);
}
.news-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .6px;
}
.news-meta .cat { color: var(--accent); font-weight: 700; }
.news-title { font-family: 'Playfair Display', 'Playfair Fallback', serif; font-size: clamp(24px, 2.6vw, 26px); line-height: 1.32; margin: 8px 0; }
.news-summary { color: var(--text-secondary); font-size: 15px; line-height: 1.75; }
.news-footer { margin-top: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.read-btn { background: var(--accent); color: #fff; border: none; border-radius: 6px; font-size: 12px; font-weight: 700; padding: 9px 16px; text-decoration: none; text-transform: uppercase; }

.card-ai { background: var(--card-3); }
.card-technology { background: var(--card-10); }
.card-media { background: var(--card-6); }
.card-finance { background: var(--card-2); }
.card-telecom { background: var(--card-7); }
.card-consumer-retail { background: var(--card-5); }
.card-mobility { background: var(--card-4); }
.card-sports { background: var(--card-11); }
.card-other-industries { background: var(--card-8); }

.pagebar { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.pbtn { border: 1px solid var(--border); background: #fff; min-width: 36px; height: 36px; border-radius: 6px; padding: 0 10px; cursor: pointer; font-size: 13px; }
.pbtn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.back { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; text-decoration: none; display: inline-block; }
.article-card { border: 1px solid var(--border); border-radius: 10px; padding: 24px; background: #fff; }
.official-btn { display: inline-block; margin-top: 18px; background: var(--accent); color: #fff; text-decoration: none; border-radius: 6px; padding: 10px 14px; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.archive-box { margin-top: 24px; border: 1px solid var(--border); background: #fff; border-radius: 10px; padding: 16px; }
.archive-box h3 { font-size: 16px; margin-bottom: 8px; font-weight: 700; }
.archive-list a { color: var(--text-primary); text-decoration: none; display: block; padding: 6px 0; border-bottom: 1px dashed #ecece8; font-size: 14px; }
.archive-list a:last-child { border-bottom: none; }

/* Article pages that use news-common.js */

#ticker-container {
  min-height: 40px;
  overflow: hidden;
}



.article-wrapper { width: min(1120px, calc(100% - 32px)); margin: 18px auto 40px; }
.article-card-wrapper { border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; box-shadow: 0 2px 10px var(--shadow); background: #fff; }

/* Article body content */
.article-content p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  margin-top: 10px;
}

.article-content h2 {
  font-family: 'Playfair Display', 'Playfair Fallback', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.article-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 22px 0 10px;
}

.article-content ul,
.article-content ol {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
  margin: 10px 0 10px 22px;
}

.article-content li {
  margin-bottom: 6px;
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--card-8);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}

.article-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Key points box */
.key-points {
  background: var(--card-8);
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 20px 22px;
  margin: 22px 0;
}
.key-points h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin: 0 0 12px;
  border-bottom: none;
  padding-bottom: 0;
}
.key-points ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.key-points li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.key-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

/* Week badge */
.week-badge {
  display: inline-block;
  margin-top: 14px;
  background: var(--card-8);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.4px;
}

.department {
  display: inline-block;
  margin-top: 14px;
  color: #666;
  background: var(--card-3);
  background: #f1f1f1;
  color: #666;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.4px;
}

.Published_Date {
  display: inline-block;
  margin-top: 14px;
  background: #f1f1f1;
  color: #666;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.4px;
}

/* Official source section */
.official-source-box {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  background: var(--card-9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.official-source-box h2 {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
}
.official-link-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 16px;
  text-transform: uppercase;
  transition: background 0.2s;
}
.official-link-btn:hover {
  background: #a01830;
}

/* Related box */
.related-box {
  margin-top: 20px;
  border: 1px solid var(--border);
  background: #ffffffb9;
  border-radius: 10px;
  padding: 14px;
}
.related-box h2 {
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 700;
  border-bottom: none;
  padding-bottom: 0;
}
.related-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.related-box li a {
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  padding: 6px 0;
  border-bottom: 1px dashed #ecece8;
  font-size: 14px;
  transition: color 0.2s;
}
.related-box li:last-child a {
  border-bottom: none;
}
.related-box li a:hover {
  color: var(--accent);
}

#relatedWeekNews a {
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  padding: 6px 0;
  border-bottom: 1px dashed #ecece8;
  font-size: 14px;
}
#relatedWeekNews a:last-child { border-bottom: none; }
#relatedWeekNews a:hover { color: var(--accent); }

/* Share bar */
.share-bar {
  margin-top: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.share-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.share-btn svg {
  width: 15px;
  height: 15px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb .sep {
  margin: 0 6px;
  color: var(--border);
}
.breadcrumb .current {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 9px 16px;
  text-transform: uppercase;
  transition: all 0.2s;
}
.back-link:hover {
  background: var(--accent);
  color: #fff;
}
.back-link svg {
  width: 14px;
  height: 14px;
}

/* Reading progress */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  z-index: 9999;
  transition: width 0.1s linear;
}
.related-box li a {
  background: var(--card-3);
}
.related-box li a {
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 4px;
  border-bottom: none;
}
.related-box li:last-child a {
  margin-bottom: 0;
}

/* Same week archive alternating colors */
#relatedWeekNews a:nth-child(odd) {
  background: var(--card-1);
}
#relatedWeekNews a:nth-child(even) {
  background: var(--card-6);
}
#relatedWeekNews a {
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 4px;
  border-bottom: none;
}
#relatedWeekNews a:last-child {
  margin-bottom: 0;
}
.site-footer { margin-top: auto; background: #000; color: rgba(255,255,255,.75); padding: 30px 0 16px; }
.footer-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.16); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.82); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--accent); }
.copyright { text-align: center; font-size: 12px; margin-top: 12px; color: rgba(255,255,255,.75); }

/* Cookie */
.cookie {
  position: fixed; right: 14px; bottom: 14px; z-index: 70; background: #fff; border: 1px solid var(--border);
  width: min(430px, calc(100% - 22px)); border-radius: 12px; padding: 16px;
  box-shadow: 0 16px 42px rgba(0,0,0,.12);
}
.cookie h4 { font-size: 20px; font-family: 'Playfair Display', 'Playfair Fallback', serif; margin-bottom: 6px; }
.cookie p { font-size: 14px; color: var(--text-muted); }
.cookie-actions { margin-top: 12px; display: flex; gap: 8px; }
.cookie button { border-radius: 8px; padding: 9px 14px; border: 1px solid var(--border); cursor: pointer; }
.cookie .ok { background: var(--accent); color: #fff; border-color: var(--accent); }

@media (max-width: 1000px) {
  .nav-row { display: grid; grid-template-columns: 1fr; }
  .search-wrap { justify-content: flex-start; padding-bottom: 8px; }
  .search { max-width: none; }
  .news-list { min-height: 1200px; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 18px); }
  .news-card, .article-card { padding: 16px; }
  .news-summary { font-size: 14px; }
  .footer-top { flex-direction: column; }
  .cats, .nav-cats {
    flex-wrap: wrap;
    overflow: visible;
    row-gap: 8px;
  }
  .search-wrap, .nav-search { flex: 0 0 auto; width: 100%; }
  .nav-wrap {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
  }
  #tagline {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    font-weight: 600;
    font-style: italic;
    font-size: 14px !important;
    line-height: 1.5;
    letter-spacing: 0.4px !important;
    text-transform: none !important;
  }

  #usTime {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.5;
    letter-spacing: 0.2px !important;
    text-transform: none !important;
  }
}

/* Desktop / default */
#tagline {
  text-align: center !important;
  width: 100% !important;
  display: block !important;
  margin: 8px 0 10px 0 !important;
  padding: 0 !important;
  font-weight: 600;
  
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.6px !important;
  text-transform: none !important;
  color: var(--text-muted);
}

#usTime {
  text-align: center !important;
  width: 100% !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.3px !important;
  text-transform: none !important;
  color: var(--text-muted);
}
.news-tag {
  background: #fff1f3cb;
  color: #a11d33;
  border: 1px solid #a11d33;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.news-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .news-footer {
    align-items: flex-start;
  }

  .read-btn {
    margin-top: 0;
    flex-shrink: 0;
  }
}

#ticker-container a,
#ticker-container a:hover,
#ticker-container a:focus,
#ticker-container a:visited,
#ticker-container .tnews a {
  text-decoration: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}