:root {
  --single-bg: #f7f7fb;
  --single-surface: #ffffff;
  --single-text: #131129;
  --single-muted: #5f6378;
  --single-border: #e7e8f1;
  --single-accent: #0e6fd8;
  --single-accent-strong: #0a5aad;
  --single-radius: 16px;
  --single-shadow: 0 10px 32px rgba(16, 20, 44, 0.08);
  --single-container: 1120px;
}

.site-main {
  background:
    radial-gradient(circle at 85% -5%, rgba(14, 111, 216, 0.1), transparent 40%),
    radial-gradient(circle at -10% 10%, rgba(12, 85, 164, 0.08), transparent 28%),
    var(--single-bg);
  color: var(--single-text);
  padding-bottom: 48px;
}

.site-main * {
  box-sizing: border-box;
}

.site-main .container {
  width: min(100% - 2rem, var(--single-container));
  margin-inline: auto;
}

.site-main a {
  color: var(--single-accent);
  text-decoration: none;
}

.site-main a:hover {
  color: var(--single-accent-strong);
  text-decoration: underline;
}

.article-hero {
  padding: 56px 0 28px;
}

.breadcrumbs {
  margin-bottom: 18px;
}

.breadcrumbs__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--single-muted);
  font-size: 0.9rem;
}

.breadcrumbs__item::after {
  content: "/";
  margin-left: 8px;
  opacity: 0.65;
}

.breadcrumbs__item:last-child::after {
  content: "";
}

.article-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #e74d3d;
  color: #fff;
}

.pill:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(0.95);
}

.dot,
.meta {
  color: var(--single-muted);
  font-size: 0.95rem;
}

.article-hero__title,
.wp-block-post-title.article-hero__title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 2.5vw, 3rem);
  line-height: 1.07;
  letter-spacing: -0.02em;
  color: #0d0b22;
}

.article-hero__excerpt,
.wp-block-post-excerpt.article-hero__excerpt {
  margin: 0;
  max-width: 74ch;
  color: var(--single-muted);
  font-size: 1.06rem;
}

.article-hero__excerpt p {
  margin: 0;
}

.featured-media {
  margin: 30px 0 0;
}

.wp-block-post-featured-image {
  margin: 0;
}

.wp-block-post-featured-image img,
.featured-media__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8;
  border-radius: var(--single-radius);
  border: 1px solid var(--single-border);
  background: linear-gradient(130deg, #e9edf8, #f8f9ff);
}

.featured-media__cap,
.wp-block-post-featured-image figcaption {
  margin-top: 10px;
  color: var(--single-muted);
  font-size: 0.9rem;
  text-align: center;
}

.section.article {
  padding: 24px 0 48px;
}

.article__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.article__content {
  min-width: 0;
}

.article__content > * {
  margin-top: 0;
}

.article__content .wp-block-post-content {
  background: var(--single-surface);
  border: 1px solid var(--single-border);
  border-radius: var(--single-radius);
  box-shadow: var(--single-shadow);
  padding: 32px;
  margin-bottom: 28px;
}

.article__content .wp-block-post-content h2,
.article__content .wp-block-post-content h3 {
  color: #0d0b22;
}

.article__content .wp-block-post-content p,
.article__content .wp-block-post-content li {
  color: #23253c;
  line-height: 1.75;
}

.content-block {
  background: var(--single-surface);
  border: 1px solid var(--single-border);
  border-radius: var(--single-radius);
  box-shadow: var(--single-shadow);
  padding: 28px;
  margin-bottom: 26px;
}

.content-block h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 2vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #0d0b22;
}

.lead {
  margin: 0;
  color: var(--single-muted);
  font-size: 1.04rem;
}

.cta-block__actions,
.footer-cta__actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.08s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn--primary {
  background: var(--single-accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(14, 111, 216, 0.27);
}

.btn--primary:hover {
  color: #fff;
  background: var(--single-accent-strong);
}

.btn--ghost {
  border-color: var(--single-border);
  background: #fff;
  color: #1d2341;
}

.btn--full {
  width: 100%;
}

.btn--lg {
  min-height: 46px;
}

.microcopy {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--single-muted);
}

.related__grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.post-card {
  padding: 18px;
  border: 1px solid var(--single-border);
  border-radius: 14px;
  background: #fff;
}

.post-card__meta {
  margin: 0 0 8px;
  color: var(--single-muted);
  font-size: 0.82rem;
}

.post-card__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.25;
}

.post-card__excerpt {
  margin: 0 0 10px;
  color: #2f3450;
  font-size: 0.95rem;
}

.post-card__link {
  font-weight: 700;
}

.article__sidebar {
  position: sticky;
  top: 96px;
}

.sidebar-card {
  background: var(--single-surface);
  border: 1px solid var(--single-border);
  border-radius: 14px;
  box-shadow: var(--single-shadow);
  padding: 20px;
  margin-bottom: 14px;
}

.sidebar-card__tag {
  margin: 0 0 8px;
  color: var(--single-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sidebar-card__title {
  margin: 0 0 8px;
  font-size: 1.85rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0d0b22;
}

.sidebar-card__text {
  margin: 0 0 12px;
  color: #2f3450;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-cta {
  padding: 8px 0 0;
}

.footer-cta__inner {
  background: linear-gradient(165deg, #111733, #1e2a63);
  color: #f2f4ff;
  border-radius: 22px;
  padding: clamp(26px, 4vw, 44px);
}

.footer-cta__inner h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 2.2vw, 2.5rem);
  line-height: 1.1;
}

.footer-cta__inner .lead,
.footer-cta__inner .microcopy {
  color: rgba(242, 244, 255, 0.86);
}

.footer-cta__inner .btn--ghost {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 1080px) {
  .article__grid {
    grid-template-columns: 1fr;
  }

  .article__sidebar {
    position: static;
  }

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

@media (max-width: 740px) {
  .article-hero {
    padding-top: 36px;
  }

  .article-hero__meta {
    gap: 6px;
  }

  .dot {
    display: none;
  }

  .article__content .wp-block-post-content,
  .content-block,
  .sidebar-card {
    padding: 20px;
  }

  .related__grid {
    grid-template-columns: 1fr;
  }

  .btn,
  .btn--lg {
    width: 100%;
  }
}
