/* Blog editorial system */
.blog-editorial-body {
  background: #ffffff;
  color: #0a0a0a;
}

.blog-editorial-body a {
  text-decoration: none;
}

.blog-smart-nav {
  top: 0;
  left: 0;
  right: 0;
}

.blog-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,1)),
    radial-gradient(circle at 85% 15%, rgba(0,0,0,0.12), transparent 26%);
}

.blog-hero__inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 8.5rem 0 4.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.82fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

.blog-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(0,0,0,0.16);
  border-radius: 999px;
  color: #111827;
  background: rgba(255,255,255,0.78);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.blog-kicker::before {
  content: "";
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  background: #0a0a0a;
}

.blog-hero h1,
.article-hero h1 {
  font-family: var(--font-display, 'Sora', system-ui, sans-serif);
  letter-spacing: 0 !important;
}

.blog-hero h1 {
  max-width: 780px;
  margin: 1.35rem 0 1.1rem;
  font-size: clamp(2.4rem, 6vw, 5.7rem);
  line-height: 0.98;
  font-weight: 800;
}

.blog-hero__copy {
  max-width: 700px;
  color: #3f3f46;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.62;
}

.blog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-top: 2rem;
  max-width: 680px;
}

.blog-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  min-width: min(100%, 15.5rem);
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.blog-button--primary {
  background: #0a0a0a;
  color: #fff;
  border: 1px solid #0a0a0a;
}

.blog-button--secondary {
  background: #fff;
  color: #0a0a0a;
  border: 1px solid rgba(0,0,0,0.16);
}

.blog-button:hover,
.blog-card:hover,
.blog-path-card:hover,
.blog-feature:hover {
  transform: translateY(-3px);
}

.blog-feature {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: #080808;
  color: #fff;
  box-shadow: 0 30px 90px rgba(0,0,0,0.18);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease;
}

.blog-feature__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #ffffff;
}

.blog-feature__media img,
.blog-card__media img,
.article-hero__media img,
.article-related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-feature__media img,
.blog-card__media img {
  box-sizing: border-box;
  padding: clamp(0.65rem, 1.2vw, 1rem);
  object-fit: contain;
  background: #ffffff;
}

.blog-feature__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.62), transparent 56%);
}

.blog-feature__content {
  padding: clamp(1.1rem, 3vw, 1.45rem);
}

.blog-feature__label,
.blog-card__label,
.article-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.25rem 0.62rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-feature__label {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.blog-feature h2 {
  margin-top: 0.85rem;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.05;
  font-weight: 800;
}

.blog-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.blog-paths {
  padding: 2.2rem 0;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.blog-path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.blog-path-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 8rem;
  padding: 1.15rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  color: #0a0a0a;
  background: #fff;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.blog-path-card strong {
  font-size: 0.92rem;
  line-height: 1.2;
}

.blog-path-card span {
  color: #52525b;
  font-size: 0.8rem;
  line-height: 1.45;
}

.blog-library {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.blog-library__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.blog-library h2 {
  font-family: var(--font-display, 'Sora', system-ui, sans-serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  font-weight: 800;
}

.blog-library__head p {
  color: #52525b;
  line-height: 1.6;
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.blog-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  background: #fff;
  color: #0a0a0a;
  box-shadow: 0 18px 50px rgba(0,0,0,0.06);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.blog-card:hover {
  box-shadow: 0 24px 70px rgba(0,0,0,0.11);
}

.blog-card__media {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  overflow: hidden;
}

.blog-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.blog-card__label {
  width: fit-content;
  background: #0a0a0a;
  color: #fff;
}

.blog-card h3 {
  margin: 0.9rem 0 0.7rem;
  font-family: var(--font-display, 'Sora', system-ui, sans-serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.08;
  font-weight: 800;
}

.blog-card p {
  color: #52525b;
  font-size: 0.93rem;
  line-height: 1.58;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.2rem;
  color: #111827;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-final-cta {
  background: #050505;
  color: #fff;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.blog-final-cta__inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}

.blog-final-cta h2 {
  font-family: var(--font-display, 'Sora', system-ui, sans-serif);
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.02;
  font-weight: 800;
}

.blog-final-cta p {
  margin-top: 0.85rem;
  color: #d4d4d8;
  line-height: 1.62;
}

.article-hero {
  position: relative;
  overflow: hidden;
  padding-top: 4.4rem;
  background: #050505;
  color: #fff;
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 15%, rgba(255,255,255,0.18), transparent 28%),
    linear-gradient(90deg, rgba(0,0,0,0.92), rgba(0,0,0,0.68));
  pointer-events: none;
}

.article-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.64fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.article-meta-pill {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
}

.article-hero h1 {
  max-width: 760px;
  font-size: clamp(2.25rem, 5.2vw, 5rem);
  line-height: 1;
  font-weight: 800;
}

.article-hero__lead {
  max-width: 720px;
  margin-top: 1.2rem;
  color: #d4d4d8;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.66;
}

.article-hero__media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  background: #111;
  box-shadow: 0 28px 90px rgba(0,0,0,0.35);
}

.article-hero__media img {
  object-fit: contain;
  background: #ffffff;
}

.article-hero .blog-button--primary {
  background: #25D366;
  color: #052e16;
  border-color: #25D366;
}

.article-hero .blog-button--secondary {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

.article-layout {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 0;
  display: grid;
  grid-template-columns: 220px minmax(0, 780px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.article-toc {
  position: sticky;
  top: 6rem;
  padding: 1rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  background: #fff;
}

.article-toc strong {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-toc a {
  display: block;
  padding: 0.56rem 0;
  color: #52525b;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
}

.article-toc a:hover {
  color: #0a0a0a;
}

.article-prose {
  max-width: none;
}

.article-prose :where(h2,h3,h4) {
  font-family: var(--font-display, 'Sora', system-ui, sans-serif);
  letter-spacing: 0 !important;
}

.article-prose :where(h2) {
  margin-top: 2.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(0,0,0,0.12);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.08;
}

.article-prose :where(h3) {
  margin-top: 2.2rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.16;
}

.article-prose :where(p,li) {
  color: #3f3f46;
  line-height: 1.72;
}

.article-prose strong {
  color: #0a0a0a;
}

.article-prose a {
  color: #047857;
  font-weight: 800;
  text-decoration: none;
  background: transparent;
}

.article-prose a:hover {
  color: #0a0a0a;
}

.article-answer {
  margin-bottom: 2rem;
  padding: 1.35rem;
  border-left: 4px solid #0a0a0a;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,0.07);
}

.article-answer span {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-answer p {
  margin: 0;
}

.article-cta {
  margin: 2.5rem 0;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,0.07);
}

.article-cta h4 {
  margin: 0 0 0.65rem;
  color: #0a0a0a;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.1;
  font-weight: 800;
}

.article-cta p {
  margin: 0;
  color: #52525b;
}

.article-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.article-cta--dark {
  background: #050505;
  color: #fff;
}

.article-cta--dark h4,
.article-cta--dark p {
  color: #fff;
}

.article-prose table {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.article-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.12);
}

.article-related h2 {
  margin: 0 0 1rem !important;
  padding: 0 !important;
  border: 0 !important;
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.article-related-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  background: #fff;
  color: #0a0a0a;
  text-decoration: none;
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.article-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.15);
}

.article-related-card img {
  width: 100% !important;
  height: 220px !important;
  object-fit: contain !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
  padding: 1rem !important;
  transition: transform 0.4s ease !important;
}

.article-related-card div {
  padding: 1rem;
}

.article-related-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1rem;
  line-height: 1.2;
}

.article-related-card span {
  color: #52525b;
  font-size: 0.82rem;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .blog-button,
  .blog-card,
  .blog-path-card,
  .blog-feature {
    transition: none;
  }

  .blog-button:hover,
  .blog-card:hover,
  .blog-path-card:hover,
  .blog-feature:hover {
    transform: none;
  }
}

@media (max-width: 1023px) {
  .blog-hero__inner,
  .article-hero__inner,
  .blog-library__head,
  .blog-final-cta__inner {
    grid-template-columns: 1fr;
  }

  .blog-actions,
  .article-cta__actions {
    justify-content: stretch;
  }

  .blog-button {
    flex: 1 1 14rem;
  }

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

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

  .article-toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.2rem 1rem;
  }

  .article-toc strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .blog-hero__inner {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  .blog-hero h1,
  .article-hero h1 {
    font-size: clamp(2.1rem, 10vw, 3.2rem);
  }

  .blog-path-grid,
  .blog-card-grid,
  .article-related-grid,
  .article-toc {
    grid-template-columns: 1fr;
  }

  .blog-card__content,
  .blog-path-card,
  .article-answer,
  .article-cta {
    padding: 1rem;
  }

  .article-hero__inner {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

/* Current pass: stronger nav contrast, cleaner blog hero and monochrome CTAs. */
.blog-smart-nav a:not([class*="bg-white"]) {
  color: #e4e4e7 !important;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.74rem;
  font-weight: 800;
}

.blog-smart-nav a:not([class*="bg-white"]):hover,
.blog-smart-nav a[aria-current="page"] {
  color: #ffffff !important;
}

.blog-smart-nav a[class*="bg-white"] {
  color: #0a0a0a !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-smart-nav .hamburger-bars {
  color: #ffffff;
}

.blog-hero__inner {
  padding-top: clamp(6.4rem, 10vh, 7.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.25rem);
  align-items: center;
}

.blog-hero h1 {
  text-transform: uppercase;
  max-width: 860px;
  font-size: clamp(2.55rem, 5.25vw, 5rem);
  line-height: 1.02;
}

.blog-hero__copy {
  color: #27272a;
}

.blog-actions {
  justify-content: flex-start;
}

.blog-feature {
  max-width: 460px;
  justify-self: end;
}

.blog-feature__media {
  aspect-ratio: 1 / 1;
}

.blog-feature__content {
  padding: 1rem 1.1rem 1.15rem;
}

.blog-feature h2 {
  text-transform: uppercase;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.08;
}

.blog-feature__content p {
  display: none;
}

.blog-library h2,
.blog-card h3,
.blog-final-cta h2,
.article-hero h1,
.article-cta h4 {
  text-transform: uppercase;
}

.article-hero {
  padding-top: 5rem;
  overflow: clip;
}

.article-hero .blog-button--primary {
  background: #ffffff;
  color: #0a0a0a;
  border-color: #ffffff;
}

.article-hero .blog-button--secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.34);
}

.article-hero .blog-button--secondary:hover {
  background: #ffffff;
  color: #0a0a0a !important;
}

.article-prose a {
  color: #0a0a0a;
}

@media (max-width: 1023px) {
  .blog-feature {
    max-width: 520px;
    justify-self: start;
  }
}

@media (max-width: 767px) {
  .blog-hero__inner {
    padding-top: 5.75rem;
  }

  .blog-hero h1,
  .article-hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .blog-feature {
    max-width: 100%;
  }

  .article-hero {
    padding-top: 4.25rem;
  }
}



/* Safe typography rules: balance without cutting words */
h1, h2, h3, .font-display {
  text-wrap: balance;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
}
p, .font-body {
  text-wrap: pretty;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
}
.hero-reveal-item, .section-kicker, [id^="ty-kicker"], .blog-kicker {
  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: normal !important;
}
