/* WordPress-only integration styles. Existing static selectors remain untouched. */

.admin-bar .header {
  top: 32px;
}

.blog-image-featured > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.blog-card-image-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(4, 5, 16, 0.04), rgba(4, 5, 16, 0.34)),
    radial-gradient(circle at 70% 12%, rgba(139, 108, 255, 0.12), transparent 40%);
  pointer-events: none;
}

.blog-image-featured .blog-card-category {
  z-index: 6;
}

.editorial-featured-copy > span,
.editorial-mini-story > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editorial-featured-copy strong,
.editorial-mini-story strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.navigation.pagination {
  width: min(1320px, 100%);
  margin: 48px auto 0;
}

.navigation.pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
}

.navigation.pagination .page-numbers {
  min-width: 44px;
  min-height: 44px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 700;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers.current {
  color: #080914;
  border-color: #fff;
  background: #fff;
}

.single-post-hero {
  position: relative;
  min-height: 680px;
  padding-top: 190px;
  padding-bottom: 110px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.single-post-hero-inner {
  position: relative;
  z-index: 3;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.single-post-back {
  display: inline-flex;
  margin-bottom: 44px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.single-post-back:hover {
  color: #fff;
}

.single-post-category {
  display: block;
  margin-bottom: 19px;
  color: #d9c8ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.single-post-hero h1 {
  max-width: 1080px;
  font-size: clamp(54px, 7.4vw, 108px);
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: -0.075em;
}

.single-post-meta {
  margin-top: 34px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 700;
}

.single-post-meta i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8b6cff;
  box-shadow: 0 0 10px #8b6cff;
}

.single-post-lead {
  max-width: 820px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.6;
}

.single-post-shell {
  width: min(1180px, calc(100% - 12vw));
  margin: 0 auto;
  padding: 0 0 120px;
}

.single-post-featured-image {
  width: 100%;
  margin: -46px 0 82px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.35);
}

.single-post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.single-post-content {
  width: min(800px, 100%);
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.86;
}

.single-post-content > * + * {
  margin-top: 1.45em;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
  margin-top: 2.2em;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.single-post-content h2 { font-size: clamp(36px, 4vw, 56px); }
.single-post-content h3 { font-size: clamp(28px, 3vw, 40px); }
.single-post-content h4 { font-size: 24px; }

.single-post-content a {
  color: #d9c8ff;
  text-decoration: underline;
  text-decoration-color: rgba(217, 200, 255, 0.42);
  text-underline-offset: 4px;
}

.single-post-content ul,
.single-post-content ol {
  padding-left: 1.35em;
}

.single-post-content li + li {
  margin-top: 0.55em;
}

.single-post-content blockquote {
  padding: 28px 32px;
  border-left: 2px solid #8b6cff;
  border-radius: 0 22px 22px 0;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(139, 108, 255, 0.08);
  font-size: 1.08em;
}

.single-post-content img,
.single-post-content video,
.single-post-content iframe {
  max-width: 100%;
  height: auto;
  border-radius: 22px;
}

.single-post-content .wp-caption,
.single-post-content figure {
  max-width: 100%;
}

.single-post-content figcaption {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 13px;
  line-height: 1.5;
}

.single-post-footer {
  width: min(800px, 100%);
  margin: 72px auto 0;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 700;
}

.single-post-footer a {
  color: #fff;
}

.single-post-footer i {
  color: #d9c8ff;
  font-style: normal;
}

.generic-page-hero,
.error-page-hero {
  min-height: 610px;
}

.generic-page-shell {
  padding-top: 90px;
}

.error-page-hero .hero-actions {
  margin-top: 34px;
}

@media (max-width: 782px) {
  .admin-bar .header { top: 46px; }
}

@media (max-width: 760px) {
  .single-post-hero {
    min-height: 560px;
    padding-top: 150px;
    padding-bottom: 80px;
  }

  .single-post-hero h1 {
    font-size: clamp(48px, 14vw, 72px);
  }

  .single-post-shell {
    width: min(100% - 36px, 1180px);
    padding-bottom: 88px;
  }

  .single-post-featured-image {
    margin-top: -24px;
    margin-bottom: 52px;
    border-radius: 25px;
  }

  .single-post-content {
    font-size: 17px;
    line-height: 1.78;
  }

  .single-post-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
