/* =========================================================
   BLOG / INSIGHTS
   Archive, article layout, and editorial typography
   ========================================================= */

.tm-blog-hero {
  position: relative;
  padding: var(--tm-space-8) 0 var(--tm-space-7);
  border-bottom: 1px solid var(--tm-border);
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 107, 53, 0.14), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(79, 124, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #fff 0%, #fbfbf8 100%);
}

.tm-blog-hero::before {
  content: "";
  position: absolute;
  inset: auto -12% -42% auto;
  width: 68%;
  height: 80%;
  pointer-events: none;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(17, 17, 17, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.62), transparent 70%);
}

.tm-blog-hero__inner {
  position: relative;
  max-width: 820px;
}

.tm-blog-hero .tm-lead {
  max-width: 680px;
}

.tm-blog-hero--post .tm-blog-hero__inner {
  max-width: 920px;
}

.tm-blog-archive {
  padding-top: var(--tm-space-7);
}

.tm-blog-archive__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--tm-space-4);
  margin-bottom: var(--tm-space-5);
}

.tm-blog-archive__head h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.tm-blog-archive__head p {
  margin: 8px 0 0;
  max-width: 520px;
  color: var(--tm-muted);
}

.tm-blog-count {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(228, 226, 218, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--tm-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

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

.tm-blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 252, 250, 0.98));
  box-shadow: var(--tm-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tm-blog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: var(--tm-shadow-soft);
}

.tm-blog-card--featured {
  grid-column: span 2;
  min-height: 360px;
  border-color: rgba(255, 107, 53, 0.26);
  background:
    radial-gradient(circle at top right, rgba(79, 124, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 244, 0.98));
}

.tm-blog-card__media {
  display: block;
  margin: -10px -10px 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(228, 226, 218, 0.9);
  border-radius: 14px;
  background: var(--tm-bg-alt);
}

.tm-blog-card--featured .tm-blog-card__media {
  aspect-ratio: 2.3 / 1;
}

.tm-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tm-blog-card__eyebrow,
.tm-blog-back {
  color: var(--tm-orange-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tm-blog-card__eyebrow {
  margin-bottom: 18px;
}

.tm-blog-card h3 {
  margin: 0 0 12px;
  font-size: 1.45rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.tm-blog-card--featured h3 {
  max-width: 620px;
  font-size: 2.1rem;
  line-height: 1.04;
}

.tm-blog-card p {
  margin: 0;
  color: var(--tm-muted);
}

.tm-blog-card__summary {
  max-width: 620px;
}

.tm-blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
}

.tm-blog-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(228, 226, 218, 0.95);
  border-radius: 999px;
  color: var(--tm-orange-dark);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.tm-blog-card:hover .tm-blog-card__arrow {
  transform: translateX(3px);
  border-color: rgba(255, 107, 53, 0.32);
}

.tm-blog-card__arrow::before {
  content: "->";
}

.tm-blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: var(--tm-space-5);
  color: var(--tm-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.tm-blog-card .tm-blog-meta {
  margin-top: 0;
  font-size: 0.84rem;
}

.tm-blog-meta span,
.tm-blog-meta time {
  display: inline-flex;
  align-items: center;
}

.tm-blog-meta span:not(:first-child)::before,
.tm-blog-meta time:not(:first-child)::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--tm-border-strong);
}

.tm-blog-share {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.tm-blog-share__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(10, 102, 194, 0.26);
  border-radius: 12px;
  background: rgba(10, 102, 194, 0.08);
  color: #0a66c2;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.tm-blog-share__button:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 102, 194, 0.38);
  background: rgba(10, 102, 194, 0.12);
}

.tm-blog-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--tm-space-4);
  text-decoration: none;
}

.tm-blog-back::before {
  content: "<-";
  color: var(--tm-muted-2);
  transition: transform 0.18s ease;
}

.tm-blog-back:hover::before {
  transform: translateX(-3px);
}

.tm-blog-cover {
  position: relative;
  z-index: 1;
  margin-top: var(--tm-space-6);
  overflow: hidden;
  aspect-ratio: 2.25 / 1;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-lg);
  background: var(--tm-bg-alt);
  box-shadow: var(--tm-shadow-soft);
}

.tm-blog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tm-blog-article-section {
  padding: var(--tm-space-7) 0 var(--tm-space-6);
}

.tm-blog-article-shell {
  max-width: 760px;
  margin: 0 auto;
}

.tm-blog-prose {
  color: var(--tm-text);
  font-size: 1.07rem;
  line-height: 1.78;
}

.tm-blog-prose > *:first-child {
  margin-top: 0;
}

.tm-blog-prose > *:last-child {
  margin-bottom: 0;
}

.tm-blog-prose h2,
.tm-blog-prose h3 {
  max-width: 640px;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.tm-blog-prose h2 {
  margin: 2.5rem 0 1rem;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.tm-blog-prose h3 {
  margin: 1.75rem 0 0.35rem;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tm-blog-prose h4 {
  margin: 1.75rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}


.tm-blog-prose p,
.tm-blog-prose ul,
.tm-blog-prose ol,
.tm-blog-prose h2,
.tm-blog-prose h3 {
  max-width: 100%;
}

.tm-blog-prose p {
  margin: 0 0 1.25em;
}

.tm-blog-prose ul,
.tm-blog-prose ol {
  margin: 0 0 1.35em;
  padding-left: 1.2em;
}

.tm-blog-prose li {
  margin-bottom: 0.5em;
}

.tm-blog-prose strong {
  color: var(--tm-text);
}

.tm-blog-prose blockquote {
  max-width: 760px;
  margin: 2em 0;
  padding: 20px 22px;
  border-left: 4px solid var(--tm-orange);
  border-radius: 0 var(--tm-radius-sm) var(--tm-radius-sm) 0;
  background: rgba(255, 248, 244, 0.9);
  color: var(--tm-text);
}

.tm-blog-prose blockquote p {
  margin: 0;
}

.tm-blog-prose a {
  color: var(--tm-orange-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.tm-blog-next {
  padding: var(--tm-space-6) 0 0;
}

.tm-blog-next__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--tm-space-5);
  align-items: center;
  padding: 28px;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-lg);
  background:
    radial-gradient(circle at top right, rgba(255, 107, 53, 0.1), transparent 32%),
    linear-gradient(180deg, #fff, #fcfcfa);
  box-shadow: var(--tm-shadow);
}

.tm-blog-next__inner h2 {
  margin: 0 0 8px;
  font-size: 1.65rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.tm-blog-next__inner p:last-child {
  margin: 0;
  color: var(--tm-muted);
}

.tm-blog-empty {
  padding: 28px;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius);
  background: #fff;
}

.tm-blog-empty p {
  margin: 0;
  color: var(--tm-muted);
}

.tm-story-source {
  font-weight: 400;
  color: inherit;
  white-space: nowrap;
}

.tm-story-slash {
  color: var(--tm-orange);
}


.tm-signal-link {
  margin: 1.5rem 0 2rem;
}

.tm-signal-link em {
  color: var(--tm-text);
  font-style: italic;
}

.tm-signal-link a {
  color: var(--tm-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-style: italic;
}

.tm-signal-link a:hover {
  opacity: 0.8;
}

.tm-feature-image {
  margin: 2rem 0;
}

.tm-feature-image img {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  border: 1px solid var(--tm-border);
}

.tm-feature-image figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--tm-muted);
  font-style: italic;
}




@media (max-width: 980px) {
  .tm-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tm-blog-card--featured {
    grid-column: span 2;
  }

  .tm-blog-next__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .tm-blog-hero {
    padding: 56px 0 48px;
  }

  .tm-blog-archive {
    padding-top: 52px;
  }

  .tm-blog-archive__head {
    display: block;
  }

  .tm-blog-count {
    margin-top: 16px;
  }

  .tm-blog-grid,
  .tm-blog-card--featured {
    grid-template-columns: 1fr;
    grid-column: span 1;
  }

  .tm-blog-card,
  .tm-blog-next__inner {
    padding: 22px;
  }

  .tm-blog-card__media {
    margin: -8px -8px 18px;
    border-radius: 12px;
  }

  .tm-blog-card--featured {
    min-height: auto;
  }

  .tm-blog-card--featured h3,
  .tm-blog-card h3 {
    font-size: 1.35rem;
    line-height: 1.12;
  }

  .tm-blog-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .tm-blog-article-section {
    padding: 52px 0 40px;
  }

  .tm-blog-cover {
    margin-top: 34px;
    aspect-ratio: 1.55 / 1;
    border-radius: 18px;
  }

  .tm-blog-share__button {
    width: 100%;
  }

  .tm-blog-prose {
    font-size: 1rem;
    line-height: 1.72;
  }

  .tm-blog-prose h2 {
    font-size: 1.55rem;
  }
}

.tm-blog-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: var(--tm-radius);
  border: 1px solid var(--tm-border);
  box-shadow: var(--tm-shadow-soft);
}

.tm-blog-prose figure {
  max-width: 760px;
  margin: 2rem 0;
}

.tm-blog-prose figcaption {
  margin-top: 0.75rem;
  color: var(--tm-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
