/* FACTASH editorial publication layouts */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 2000;
  background: var(--primary);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.site-header .factash-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header .nav-link {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  color: var(--text);
}

.site-header .nav-link.active,
.site-header .nav-link[aria-current="page"] {
  color: var(--primary);
  box-shadow: inset 0 -2px 0 var(--primary);
}

.home-logo {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--text);
}

.home-logo span { color: var(--primary); }
.home-logo small {
  margin-top: 0.28rem;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.top-info-bar {
  background: var(--secondary);
  color: rgba(248, 250, 252, 0.9);
  font-size: 0.8rem;
  padding: 0.4rem 0;
}

.top-links { gap: 1rem; }
.top-links a,
.top-social a { color: rgba(248, 250, 252, 0.88); }
.top-social { gap: 0.85rem; }

.editorial-container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.article-measure {
  max-width: var(--measure);
}

.btn-premium {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
}

.btn-premium:hover {
  background: var(--primary-hover);
  color: #fff;
  transform: none;
  box-shadow: none;
}

.btn-outline-premium {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-weight: 600;
}

.premium-card,
.article-card,
.sidebar-widget,
.trending-widget,
.mini-pick-card,
.single-hero,
.single-cover-box,
.single-toc-box,
.single-article-content,
.single-related {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.premium-card:hover,
.article-card:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

.article-card {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-muted);
}

.article-card .card-body {
  padding: 1rem;
  display: grid;
  gap: 0.45rem;
}

.badge-cat,
.tiny-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  background: #e0eaff;
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.meta-row,
.single-meta-row,
.latest-meta,
.hero-meta {
  color: var(--text-subtle);
  font-size: var(--fs-meta);
}

.portal-section {
  padding: 2.5rem 0;
}

.portal-section + .portal-section {
  border-top: 1px solid var(--border);
}

.section-kicker {
  color: var(--primary);
  font-size: var(--fs-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.section-headline {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-headline h2 {
  margin: 0;
  font-size: var(--fs-h2);
}

.section-headline a {
  color: var(--primary);
  font-weight: 700;
  font-size: var(--fs-small);
  white-space: nowrap;
}

.editorial-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 1rem;
}

.editorial-hero-main {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.editorial-hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-hero-main .hero-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(2, 6, 23, 0.88));
  color: #fff;
}

.editorial-hero-main h1 {
  color: #fff;
  font-size: clamp(1.55rem, 2.8vw, 2.4rem);
  line-height: var(--lh-tight);
  margin: 0.55rem 0;
}

.editorial-hero-side {
  display: grid;
  gap: 0.75rem;
}

.editorial-hero-side a {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.75rem;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.editorial-hero-side img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.trending-list {
  counter-reset: trend;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trending-list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.trending-list li:last-child { border-bottom: 0; }

.trending-list li::before {
  counter-increment: trend;
  content: counter(trend, decimal-leading-zero);
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-display);
}

.factash-ad-slot {
  min-height: var(--ad-min-height);
  padding: 1rem 0;
}

.factash-ad-slot .container {
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  min-height: var(--ad-min-height);
  display: grid;
  place-items: center;
  padding: 0.75rem;
}

.factash-ad-slot ins.adsbygoogle {
  display: block;
  min-height: var(--ad-min-height);
  width: 100%;
}

.single-article-content {
  padding: 1.4rem;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.single-article-content h2,
.single-article-content h3 {
  scroll-margin-top: 96px;
}

.single-article-content p,
.single-article-content li {
  max-width: var(--measure);
}

.single-article-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
}

.single-toc-box {
  padding: 1rem 1.15rem;
  background: #eff6ff;
}

[data-theme="dark"] .single-toc-box {
  background: #0b172a;
}

.author-trust-note {
  font-size: var(--fs-caption);
  color: var(--text-subtle);
}

.text-subtle { color: var(--text-subtle); }

.footer {
  background: #0b1220;
  color: rgba(248, 250, 252, 0.9);
}

.footer-logo { color: #fff; font-size: 1.55rem; }
.footer-logo span { color: #93c5fd; }

@media (max-width: 991.98px) {
  .top-info-bar { display: none; }
  .editorial-hero { grid-template-columns: 1fr; }
  .editorial-hero-main { min-height: 340px; }
}

@media (max-width: 767.98px) {
  .section-headline { align-items: start; flex-direction: column; }
  .editorial-hero-side a { grid-template-columns: 72px 1fr; }
}
