:root {
  --post-shell: 1260px;
  --post-bg: #07111f;
  --post-bg-soft: rgba(12, 23, 42, 0.92);
  --post-panel: rgba(15, 25, 45, 0.88);
  --post-panel-strong: rgba(18, 30, 56, 0.96);
  --post-border: rgba(123, 162, 255, 0.14);
  --post-border-strong: rgba(93, 208, 255, 0.28);
  --post-text: #f5f7ff;
  --post-text-soft: #b3bfdc;
  --post-text-muted: #7f90b6;
  --post-blue: #5a94ff;
  --post-cyan: #6edcff;
  --post-teal: #59e6c5;
  --post-violet: #9f7bff;
  --post-gold: #ffcc73;
  --post-shadow: 0 28px 80px rgba(3, 7, 19, 0.42);
}

body[data-source-page="posts"],
body[data-source-page="post-article"] {
  background:
    radial-gradient(circle at top left, rgba(90, 148, 255, 0.14), transparent 28rem),
    radial-gradient(circle at 86% 12%, rgba(159, 123, 255, 0.12), transparent 22rem),
    linear-gradient(180deg, #06101d 0%, #081321 46%, #070e18 100%);
}

.post-shell {
  width: min(var(--post-shell), calc(100% - (var(--mt-page-padding) * 2)));
  margin: 0 auto;
}

.post-hero,
.post-panel,
.post-cta,
.post-article-shell,
.post-sidebar-card,
.post-banner-card {
  border: 1px solid var(--post-border);
  background: linear-gradient(180deg, rgba(15, 25, 45, 0.96), rgba(10, 18, 33, 0.96));
  box-shadow: var(--post-shadow);
}

.post-hero,
.post-article-shell {
  border-radius: 30px;
  overflow: hidden;
}

.post-panel,
.post-sidebar-card,
.post-banner-card,
.post-cta {
  border-radius: 22px;
}

.post-hero {
  position: relative;
  padding: 56px;
}

.post-hero::before,
.post-article-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
    radial-gradient(circle at top right, rgba(110, 220, 255, 0.12), transparent 24rem);
}

.post-hero-grid,
.post-featured-grid,
.post-cluster-grid,
.post-card-grid,
.post-article-grid,
.post-related-grid,
.post-tag-grid,
.post-meta-row,
.post-inline-links {
  display: grid;
  gap: 22px;
}

.post-hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.78fr);
  align-items: center;
}

.post-meta-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 26px;
}

.post-intelligence-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.post-intelligence-card {
  display: grid;
  gap: 8px;
  min-height: 146px;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(123, 162, 255, 0.14);
  background: linear-gradient(180deg, rgba(16, 28, 50, 0.96), rgba(10, 18, 33, 0.96));
  box-shadow: 0 20px 52px rgba(3, 8, 20, 0.28);
}

.post-intelligence-card span {
  color: var(--post-text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.post-intelligence-card strong {
  color: var(--post-text);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.post-intelligence-card small {
  color: var(--post-text-soft);
  font-size: 14px;
  line-height: 1.55;
}

.post-metric {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.post-metric strong {
  display: block;
  margin-bottom: 6px;
  color: var(--post-text);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.post-metric span {
  color: var(--post-text-soft);
  font-size: 14px;
}

.post-section {
  margin-top: 28px;
}

.post-section:first-child {
  margin-top: 0;
}

.post-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.post-section-heading p,
.post-breadcrumbs {
  margin: 0;
  color: var(--post-text-muted);
  font-size: 14px;
}

.post-featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-cluster-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card,
.post-cluster-card {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--post-border);
  background: linear-gradient(180deg, rgba(15, 24, 43, 0.95), rgba(9, 16, 29, 0.95));
  box-shadow: 0 18px 48px rgba(3, 8, 20, 0.32);
}

.post-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(159, 123, 255, 0.22), transparent 12rem),
    linear-gradient(135deg, #10203d 0%, #0a1220 100%);
}

.post-card-media img,
.post-banner-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card-media::after,
.post-banner-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 14, 25, 0.1), rgba(6, 11, 20, 0.6)),
    linear-gradient(135deg, rgba(16, 26, 48, 0.1), rgba(16, 26, 48, 0.74));
}

.post-card-body,
.post-cluster-card,
.post-panel,
.post-sidebar-card,
.post-cta {
  padding: 24px;
}

.post-card-body h3,
.post-cluster-card h3,
.post-sidebar-card h3,
.post-banner-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.post-card-body p,
.post-cluster-card p,
.post-sidebar-card p,
.post-banner-card p,
.post-article-copy p,
.post-article-copy li {
  color: var(--post-text-soft);
}

.post-chip-row,
.post-tags,
.post-inline-links,
.post-author-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.post-chip,
.post-tag,
.post-author-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--post-text-soft);
  font-size: 13px;
  font-weight: 600;
}

.post-tag {
  border-color: rgba(93, 208, 255, 0.18);
  color: #d6f5ff;
}

.post-tag-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.post-tag-group {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--post-border);
  background: rgba(255, 255, 255, 0.03);
}

.post-tag-group strong {
  display: block;
  margin-bottom: 12px;
  color: var(--post-text);
}

.post-tag-group a {
  color: var(--post-text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.post-cluster-card {
  min-height: 100%;
}

.post-cluster-card ul,
.post-sidebar-card ul {
  padding-left: 18px;
  margin-bottom: 0;
}

.post-article-shell {
  position: relative;
  padding: 34px;
}

.post-article-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
}

.post-article-header h1 {
  max-width: none;
  margin-bottom: 16px;
  font-size: clamp(38px, 5.2vw, 66px);
}

.post-article-lead {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: 20px;
  line-height: 1.7;
  color: #d5def6;
}

.post-banner-card {
  padding: 18px;
}

.post-banner-visual {
  position: relative;
  border-radius: 20px;
  aspect-ratio: 16 / 8.6;
  overflow: hidden;
  margin-bottom: 14px;
  background:
    radial-gradient(circle at top left, rgba(90, 148, 255, 0.2), transparent 14rem),
    linear-gradient(135deg, #10203d 0%, #0a1322 100%);
}

.post-banner-caption {
  color: var(--post-text-muted);
  font-size: 13px;
}

.post-article-copy h2 {
  margin-top: 28px;
}

.post-article-copy ul {
  padding-left: 18px;
}

.post-article-copy blockquote {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--post-cyan);
  border-radius: 0 18px 18px 0;
  background: rgba(255, 255, 255, 0.03);
  color: #d8e3ff;
}

.post-sidebar {
  display: grid;
  gap: 18px;
}

.post-sidebar-card strong {
  color: var(--post-text);
}

.post-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-related-card {
  min-height: 100%;
}

.post-cta {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}

.post-cta h2,
.post-cta p {
  margin-bottom: 0;
}

.post-link {
  color: #ebf1ff;
}

.post-link:hover,
.post-card a:hover,
.post-tag-group a:hover {
  color: var(--post-cyan);
}

.post-accent-line {
  width: 88px;
  height: 4px;
  margin: 18px 0 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--post-blue), var(--post-cyan), var(--post-teal));
}

@media (max-width: 1100px) {
  .post-hero-grid,
  .post-article-grid,
  .post-featured-grid,
  .post-cluster-grid,
  .post-related-grid,
  .post-tag-grid,
  .post-meta-row,
  .post-intelligence-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .post-article-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .post-hero,
  .post-article-shell {
    padding: 24px;
  }

  .post-featured-grid,
  .post-cluster-grid,
  .post-card-grid,
  .post-related-grid,
  .post-tag-grid,
  .post-meta-row,
  .post-hero-grid,
  .post-intelligence-strip {
    grid-template-columns: 1fr;
  }

  .post-section-heading {
    display: block;
  }
}
