/* Blog section: article typography, table of contents, card grid.
   Loaded together with style.css (shared header/nav/footer/faq/related). */

.blog-list-hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 64px 24px 24px;
  display: block;
}

.blog-list-hero .lp-hero-copy {
  max-width: 800px;
}

.blog-list-hero h1 {
  max-width: 760px;
  font-size: clamp(32px, 4.6vw, 52px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.blog-paths {
  padding-top: 24px;
}

.blog-section-heading {
  max-width: 620px;
  margin-bottom: 22px;
}

.blog-section-heading h2 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(23px, 3vw, 30px);
  letter-spacing: -0.025em;
  margin: 0 0 7px;
}

.blog-section-heading p {
  color: #5A6170;
  line-height: 1.55;
  margin: 0;
}

.blog-paths__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #DDE3EB;
  border-radius: 18px;
  overflow: hidden;
}

.blog-path {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  color: #12151C;
  text-decoration: none;
  border-right: 1px solid #DDE3EB;
  background: #fff;
  transition: background 0.15s ease;
}

.blog-path:last-child { border-right: 0; }
.blog-path:hover { background: #EEF3FB; }
.blog-path strong { font-family: 'Manrope', sans-serif; font-size: 15px; line-height: 1.3; }
.blog-path span { color: #5A6170; font-size: 13px; line-height: 1.45; }

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

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  border: 1px solid #E3E6EB;
  border-radius: 14px;
  background: #fff;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.blog-card:hover {
  border-color: oklch(70% 0.08 266);
  box-shadow: 0 8px 24px rgba(14, 19, 48, 0.06);
}


.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5A6170;
}

.blog-card__order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #12151C;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  flex-shrink: 0;
}

.blog-topic-block {
  scroll-margin-top: 90px;
}

.blog-topic-block + .blog-topic-block {
  border-top: 1px solid #E3E6EB;
}

.blog-topic-head {
  max-width: 700px;
  margin: 0 0 20px;
}

.blog-topic-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4A5160;
  background: #F5F6F8;
  border-radius: 100px;
  padding: 5px 12px;
  margin-bottom: 10px;
}

.blog-topic-pill--link {
  text-decoration: none;
  margin-bottom: 16px;
}

.blog-topic-pill--link:hover {
  color: #12151C;
}

.blog-topic-head h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 26px);
  margin: 0 0 8px;
}

.blog-topic-intro {
  font-size: 15px;
  line-height: 1.55;
  color: #4A5160;
  margin: 0;
}

.blog-card h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  margin: 0;
  color: #12151C;
}

.blog-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #4A5160;
  margin: 0;
}

.blog-card__outcome {
  margin-top: auto !important;
  padding-top: 13px;
  border-top: 1px solid #E3E6EB;
  color: #363C46 !important;
  font-size: 13px !important;
}

.blog-article {
  max-width: 760px;
}

.blog-narrow {
  max-width: 760px;
  margin: 0 auto;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.blog-related-card {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 64px;
  width: 100%;
  text-decoration: none;
  border: 1px solid #E3E6EB;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: #12151C;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.blog-related-card:hover {
  border-color: oklch(70% 0.08 266);
  background: oklch(97% 0.015 266);
}

.blog-article__header h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 12px;
}

.blog-reading-guide {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 3px;
  margin: 0 0 30px;
  padding: 16px 18px;
  border-left: 3px solid #4F6E9C;
  background: #F2F6FC;
  color: #363C46;
  font-size: 14px;
  line-height: 1.45;
}

.blog-reading-guide strong { color: #12151C; }
.blog-reading-guide span { color: #5A6170; }
.blog-reading-guide p { grid-column: 1 / -1; margin: 5px 0 0; }

.blog-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #5A6170;
  margin: 0 0 28px;
}

.blog-toc {
  border: 1px solid #E3E6EB;
  border-radius: 16px;
  background: #F5F6F8;
  padding: 20px 24px;
  margin: 0 0 32px;
}

.blog-toc__title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 10px;
  color: #12151C;
}

.blog-toc ol {
  margin: 0;
  padding: 0 0 0 20px;
}

.blog-toc li {
  font-size: 14px;
  line-height: 1.7;
}

.blog-toc a {
  color: #363C46;
  text-decoration: none;
}

.blog-toc a:hover {
  color: #12151C;
  text-decoration: underline;
}

.blog-article__body {
  font-size: 16px;
  line-height: 1.7;
  color: #262A33;
}

.blog-article__body h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 24px);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 40px 0 14px;
  scroll-margin-top: 90px;
}

.blog-article__body p {
  margin: 0 0 16px;
}

.blog-article__body ul,
.blog-article__body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.blog-article__body li {
  margin-bottom: 6px;
}

.blog-article__body code {
  font-family: monospace;
  background: #F5F6F8;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.92em;
}

.blog-article__body pre {
  background: #12151C;
  color: #F5F6F8;
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.blog-article__body pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.blog-article__body blockquote {
  margin: 0 0 16px;
  padding: 12px 18px;
  border-left: 3px solid #12151C;
  background: #F5F6F8;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #363C46;
}

.blog-table-scroll {
  overflow-x: auto;
  margin: 0 0 16px;
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.blog-table th,
.blog-table td {
  border: 1px solid #E3E6EB;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.blog-table th {
  background: #F5F6F8;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
}

.blog-cta {
  box-sizing: border-box;
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid #E3E6EB;
  border-radius: 16px;
  background: #F5F6F8;
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.blog-cta p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #363C46;
  flex: 1 1 360px;
}

.blog-next-section {
  padding-top: 24px;
  padding-bottom: 24px;
}

#contact-cta {
  padding-top: 24px;
}

.blog-next {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 24px 28px;
  border: 1px solid #CCD8EA;
  border-radius: 14px;
  background: #F2F6FC;
  color: #12151C;
  text-decoration: none;
}

.blog-next:hover { background: #E7EFFA; }
.blog-next span { color: #4F6E9C; font-size: 13px; font-weight: 700; }
.blog-next strong { font-family: 'Manrope', sans-serif; font-size: 18px; line-height: 1.3; }
.blog-next small { color: #5A6170; font-size: 14px; line-height: 1.45; }

@media (max-width: 900px) {
  .blog-paths__grid { grid-template-columns: repeat(2, 1fr); }
  .blog-path:nth-child(2) { border-right: 0; }
  .blog-path:nth-child(-n + 2) { border-bottom: 1px solid #DDE3EB; }
  .blog-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .blog-list-hero { padding-top: 40px; }
  .blog-paths__grid { grid-template-columns: 1fr; }
  .blog-path, .blog-path:nth-child(2) { border-right: 0; border-bottom: 1px solid #DDE3EB; }
  .blog-path:last-child { border-bottom: 0; }
  .blog-reading-guide { grid-template-columns: 1fr; gap: 4px; }
  .blog-cta {
    flex-direction: column;
    align-items: stretch;
  }
}
