:root {
  color-scheme: light;
  --brand: #0969d9;
  --brand-dark: #072b60;
  --ink: #0f172a;
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-padding-top: 96px;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a,
button,
input {
  outline-offset: 4px;
}

:focus-visible {
  outline: 3px solid rgba(9, 105, 217, .38);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: .8rem;
  left: .8rem;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  padding: .65rem .95rem;
  font-size: .85rem;
  font-weight: 800;
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 42px;
  max-width: 214px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 12px 24px rgba(15, 23, 42, .08));
}

.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  border-radius: 1.35rem;
  background: #fff;
  padding: .55rem .8rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
}

.footer-logo {
  width: auto;
  height: 44px;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
}

.site-header {
  background-color: #fff;
  transition: box-shadow .25s ease, background-color .25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}

.icon-btn {
  height: 42px;
  width: 42px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.icon-btn:hover {
  transform: translateY(-1px);
  background: #eff6ff;
  color: var(--brand);
}

.nav-link {
  padding: .68rem .88rem;
  border-radius: 999px;
  color: #475569;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand);
  background: #eff6ff;
}

.mobile-link {
  padding: .9rem 1rem;
  border-radius: 1.05rem;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  border: 1px solid #eef2f7;
  transition: .2s ease;
}

.mobile-link:hover {
  background: #eff6ff;
  color: var(--brand);
  border-color: #bfdbfe;
}

.breaking-label {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: #dc2626;
  color: #fff;
  border-radius: 999px;
  padding: .35rem .7rem;
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .04em;
  flex: 0 0 auto;
}

.ticker-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  gap: 2rem;
  color: #e2e8f0;
  animation: ticker 24s linear infinite;
  white-space: nowrap;
}

.ticker-track span::after {
  content: '•';
  margin-left: 2rem;
  color: #60a5fa;
}

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

.search-input {
  width: 100%;
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  padding: 1rem 1rem 1rem 3rem;
  background: #fff;
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, .02);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(9, 105, 217, .12);
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: .38rem .72rem;
  font-size: .72rem;
  line-height: 1;
  font-weight: 800;
}

.badge-blue {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 28px rgba(9, 105, 217, .28);
}

.hero-card,
.news-card,
.article-card,
.sidebar-box,
.feature-card,
.spotlight-card,
.stat-card {
  will-change: transform;
}

.hero-card,
.news-card,
.article-card,
.sidebar-box {
  background: white;
  border: 1px solid #e2e8f0;
}

.news-card,
.article-card {
  overflow: hidden;
  color: inherit;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.news-card:hover,
.article-card:hover,
.spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(15, 23, 42, .10);
  border-color: #bfdbfe;
}

.news-card.compact {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 1rem;
  padding: .75rem;
  border-radius: 1.5rem;
}

.news-card.compact img {
  height: 138px;
  width: 100%;
  object-fit: cover;
  border-radius: 1.1rem;
}

.news-card h2,
.news-card h3 {
  margin-top: .65rem;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -.01em;
}

.news-card p {
  margin-top: .35rem;
  font-size: .8rem;
  line-height: 1.65;
  color: #64748b;
}

.quick-stats .stat-card {
  display: flex;
  align-items: center;
  gap: .8rem;
  border: 1px solid #e2e8f0;
  border-radius: 1.35rem;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .04);
}

.stat-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 1rem;
  background: #eff6ff;
  font-size: 1.3rem;
  flex: 0 0 auto;
}

.stat-card strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.1;
  font-weight: 900;
  color: var(--ink);
}

.stat-card span {
  display: block;
  margin-top: .15rem;
  font-size: .75rem;
  color: #64748b;
  font-weight: 600;
}

.section-kicker {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 900;
}

.section-title {
  margin-top: .25rem;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.03em;
}

.topic-chip {
  white-space: nowrap;
  border-radius: 999px;
  padding: .72rem 1rem;
  background: #f1f5f9;
  color: #475569;
  font-size: .85rem;
  font-weight: 800;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.topic-chip:hover,
.topic-chip.active {
  background: var(--brand);
  color: white;
  transform: translateY(-1px);
}

.article-card {
  display: block;
  border-radius: 1.6rem;
}

.article-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.article-card h3 {
  margin-top: .8rem;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -.02em;
}

.article-card p {
  margin-top: .5rem;
  color: #64748b;
  font-size: .88rem;
  line-height: 1.7;
}

.meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  gap: .7rem;
  color: #94a3b8;
  font-size: .75rem;
  font-weight: 600;
}

.sidebar-box {
  border-radius: 1.75rem;
  padding: 1.25rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .04);
}

.icon-pill {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.trending-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: .8rem;
  align-items: start;
  padding-bottom: 1rem;
  color: inherit;
  border-bottom: 1px solid #f1f5f9;
}

.trending-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.trending-item span {
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 900;
  color: #cbd5e1;
}

.trending-item p {
  font-size: .9rem;
  line-height: 1.5;
  font-weight: 800;
  transition: color .2s ease;
}

.trending-item:hover p {
  color: var(--brand);
}

.newsletter-box {
  background: radial-gradient(circle at 20% 0%, rgba(59, 130, 246, .55), transparent 34%), linear-gradient(135deg, #0757b8, #071b3d 70%);
}

.category-box {
  border-radius: 1rem;
  background: #f8fafc;
  padding: .9rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .85rem;
  font-weight: 800;
  color: #334155;
  border: 1px solid #eef2f7;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.category-box i {
  color: var(--brand);
  font-size: 1.12rem;
}

.category-box:hover {
  background: #eff6ff;
  color: var(--brand);
  border-color: #bfdbfe;
  transform: translateY(-2px);
}

.feature-card {
  border-radius: 1.4rem;
  background: #f8fafc;
  padding: 1.2rem;
  border: 1px solid #eef2f7;
}

.feature-card h3 {
  margin-top: .8rem;
  font-weight: 900;
}

.feature-card p {
  margin-top: .35rem;
  font-size: .83rem;
  line-height: 1.65;
  color: #64748b;
}

.orb {
  position: absolute;
  right: -120px;
  top: -140px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  pointer-events: none;
}

.orb-blue {
  background: radial-gradient(circle, rgba(9, 105, 217, .15), transparent 65%);
}

.spotlight-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 2rem;
  padding: 1.4rem;
  color: #0f172a;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  border: 1px solid #dbeafe;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
  position: relative;
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: auto -50px -80px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(9, 105, 217, .12);
}

.spotlight-card h2 {
  position: relative;
  margin-top: 1rem;
  max-width: 560px;
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.03em;
}

.spotlight-card p {
  position: relative;
  margin-top: .8rem;
  max-width: 560px;
  color: #475569;
  line-height: 1.75;
}

.spotlight-card a {
  position: relative;
  margin-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .9rem;
  font-weight: 900;
  color: var(--brand);
}

.spotlight-dark {
  background: radial-gradient(circle at 20% 0%, rgba(29, 123, 232, .6), transparent 32%), linear-gradient(135deg, #09285b, #071426 74%);
  color: #fff;
  border-color: rgba(255,255,255,.10);
}

.spotlight-dark p,
.spotlight-dark a {
  color: #dbeafe;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background-color .2s ease, transform .2s ease;
}

.social-btn:hover {
  background: var(--brand);
  transform: translateY(-2px);
}

.prose-news {
  font-size: 1rem;
  color: #334155;
  line-height: 1.95;
}

.prose-news p + p {
  margin-top: 1.25rem;
}

.prose-news strong {
  color: #0f172a;
  font-weight: 900;
}

.prose-news blockquote {
  margin: 1.6rem 0;
  padding: 1.25rem;
  border-left: 5px solid var(--brand);
  background: #eff6ff;
  border-radius: 0 1.25rem 1.25rem 0;
  font-weight: 800;
  color: #1e3a8a;
}


.prose-news h2 {
  margin: 1.65rem 0 .75rem;
  color: #0f172a;
  font-size: 1.45rem;
  line-height: 1.35;
  font-weight: 900;
}

.prose-news h3 {
  margin: 1.35rem 0 .6rem;
  color: #0f172a;
  font-size: 1.18rem;
  line-height: 1.4;
  font-weight: 900;
}

.prose-news ul,
.prose-news ol {
  margin: 1.1rem 0 1.1rem 1.35rem;
  padding-left: 1rem;
}

.prose-news ul { list-style: disc; }
.prose-news ol { list-style: decimal; }

.prose-news li + li {
  margin-top: .45rem;
}

.prose-news a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tag {
  border-radius: 999px;
  padding: .5rem .8rem;
  background: #f1f5f9;
  color: #475569;
  font-size: .8rem;
  font-weight: 800;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .2s ease;
}

.share-btn:hover {
  background: #eff6ff;
  color: var(--brand);
  transform: translateY(-2px);
}

.reading-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 90;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #1d7be8, #60a5fa);
  box-shadow: 0 0 22px rgba(29, 123, 232, .45);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 32px rgba(9, 105, 217, .3);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}

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

.back-to-top:hover {
  transform: translateY(-2px);
}

.animate-pop {
  animation: pop .24s ease both;
}

@keyframes pop {
  from { transform: translateY(10px) scale(.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.no-scrollbar {
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .brand-logo {
    height: 36px;
    max-width: 184px;
  }

  .footer-logo {
    height: 36px;
    max-width: 184px;
  }

  .topbar .breaking-label {
    padding-inline: .55rem;
  }

  .quick-stats .stat-card {
    align-items: flex-start;
    flex-direction: column;
    gap: .55rem;
    padding: .9rem;
  }

  .article-card img {
    height: 200px;
  }
}

@media (max-width: 520px) {
  html {
    scroll-padding-top: 76px;
  }

  .brand-logo {
    height: 32px;
    max-width: 160px;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
  }

  .news-card.compact {
    grid-template-columns: 1fr;
  }

  .news-card.compact img {
    height: 190px;
  }

  .article-card {
    border-radius: 1.35rem;
  }

  .article-card img {
    height: 190px;
  }

  .sidebar-box {
    border-radius: 1.35rem;
  }

  .prose-news {
    font-size: .96rem;
    line-height: 1.85;
  }

  .footer-logo-wrap {
    padding: .45rem .65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ticker-track {
    animation: none;
  }
}
/* Admin Panel */
.admin-shell { min-height: 100vh; background: #f8fafc; }
.admin-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 1.5rem; box-shadow: 0 12px 30px rgba(15, 23, 42, .06); }
.admin-input { width: 100%; border: 1px solid #cbd5e1; border-radius: 1rem; padding: .82rem 1rem; outline: none; transition: .2s; background: #fff; }
.admin-input:focus { border-color: #1d7be8; box-shadow: 0 0 0 4px rgba(29, 123, 232, .12); }
.admin-label { display: block; font-size: .82rem; font-weight: 800; color: #334155; margin-bottom: .45rem; }
.admin-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; padding: .75rem 1rem; font-weight: 800; transition: .2s; }
.admin-btn-primary { background: #0757b8; color: #fff; }
.admin-btn-primary:hover { background: #0a3f86; }
.admin-btn-light { background: #f1f5f9; color: #0f172a; }
.admin-btn-light:hover { background: #e2e8f0; }
.admin-btn-danger { background: #fee2e2; color: #b91c1c; }
.admin-btn-danger:hover { background: #fecaca; }
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.admin-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #64748b; background: #f8fafc; padding: .9rem 1rem; }
.admin-table td { padding: 1rem; border-top: 1px solid #e2e8f0; vertical-align: middle; }
.admin-sidebar-link { display: flex; align-items: center; gap: .7rem; padding: .75rem 1rem; border-radius: 1rem; font-weight: 700; color: #cbd5e1; transition: .2s; }
.admin-sidebar-link:hover, .admin-sidebar-link.active { background: rgba(255,255,255,.10); color: #fff; }
@media (max-width: 768px) { .admin-table-wrap { overflow-x: auto; } .admin-table { min-width: 800px; } }
