@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&family=Ubuntu:wght@500;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.tmt-blog {
  margin: 0;
  font-family: 'Open Sans', system-ui, sans-serif;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  line-height: 1.6;
}

.tmt-blog a {
  color: hsl(var(--primary));
  text-decoration: none;
}

.tmt-blog a:hover {
  text-decoration: underline;
}

.tmt-blog-container {
  width: min(1100px, calc(100% - 3rem));
  margin: 0 auto;
}

.tmt-blog-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(var(--background) / 0.95);
  border-bottom: 1px solid hsl(var(--border));
  backdrop-filter: blur(8px);
}

.tmt-blog-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 0.75rem 0;
}

.tmt-blog-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: hsl(var(--foreground));
  font-family: 'Ubuntu', system-ui, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.tmt-blog-brand:hover {
  text-decoration: none;
}

.tmt-blog-brand img {
  display: block;
  height: 2.5rem;
  width: auto;
}

.tmt-blog-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.tmt-blog-nav a {
  color: hsl(var(--foreground));
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.tmt-blog-nav a:hover,
.tmt-blog-nav a.is-active {
  color: hsl(var(--primary));
}

.tmt-blog-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--brand-slate)));
  color: hsl(var(--primary-foreground));
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.tmt-blog-cta:hover {
  text-decoration: none;
  opacity: 0.95;
}

.tmt-blog-main {
  padding: 3rem 0 4rem;
}

.tmt-blog-hero {
  margin-bottom: 2.5rem;
  text-align: center;
}

.tmt-blog-eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: hsl(var(--secondary));
  color: hsl(var(--primary));
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tmt-blog-hero h1 {
  margin: 0 0 0.75rem;
  font-family: 'Ubuntu', system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
}

.tmt-blog-hero p {
  max-width: 42rem;
  margin: 0 auto;
  color: hsl(var(--muted-foreground));
  font-size: 1.05rem;
}

.tmt-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.tmt-blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--card));
  box-shadow: 0 8px 24px hsl(var(--foreground) / 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tmt-blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px hsl(var(--foreground) / 0.08);
}

.tmt-blog-card__image img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

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

.tmt-blog-card__meta {
  margin-bottom: 0.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
}

.tmt-blog-card__title {
  margin: 0 0 0.75rem;
  font-family: 'Ubuntu', system-ui, sans-serif;
  font-size: 1.2rem;
  line-height: 1.3;
}

.tmt-blog-card__title a {
  color: hsl(var(--foreground));
  text-decoration: none;
}

.tmt-blog-card__title a:hover {
  color: hsl(var(--primary));
}

.tmt-blog-card__excerpt {
  margin: 0 0 1rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
}

.tmt-blog-card__more {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
}

.tmt-blog-pagination {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.tmt-blog-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tmt-blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  color: hsl(var(--foreground));
  text-decoration: none;
}

.tmt-blog-pagination .page-numbers.current,
.tmt-blog-pagination .page-numbers:hover {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.tmt-blog-empty {
  padding: 3rem 1.5rem;
  border: 1px dashed hsl(var(--border));
  border-radius: var(--radius);
  text-align: center;
  color: hsl(var(--muted-foreground));
}

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

.tmt-blog-article__back {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
  font-weight: 500;
}

.tmt-blog-article__header {
  margin-bottom: 2rem;
}

.tmt-blog-article__header h1 {
  margin: 0 0 0.75rem;
  font-family: 'Ubuntu', system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
}

.tmt-blog-article__meta {
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
}

.tmt-blog-article__image {
  margin-bottom: 2rem;
}

.tmt-blog-article__image img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}

.tmt-blog-content {
  color: hsl(var(--foreground));
  font-size: 1.05rem;
}

.tmt-blog-content > *:first-child {
  margin-top: 0;
}

.tmt-blog-content > *:last-child {
  margin-bottom: 0;
}

.tmt-blog-content h2,
.tmt-blog-content h3,
.tmt-blog-content h4 {
  margin: 2rem 0 0.75rem;
  font-family: 'Ubuntu', system-ui, sans-serif;
  line-height: 1.25;
}

.tmt-blog-content p,
.tmt-blog-content ul,
.tmt-blog-content ol,
.tmt-blog-content blockquote,
.tmt-blog-content pre {
  margin: 0 0 1.25rem;
}

.tmt-blog-content ul,
.tmt-blog-content ol {
  padding-left: 1.5rem;
}

.tmt-blog-content blockquote {
  padding: 1rem 1.25rem;
  border-left: 4px solid hsl(var(--primary));
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
}

.tmt-blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 2px);
}

.tmt-blog-content a {
  color: hsl(var(--primary));
  text-decoration: underline;
}

.tmt-blog-footer {
  margin-top: 4rem;
  padding: 2.5rem 0;
  background: hsl(var(--brand-asphalt));
  color: hsl(var(--brand-white));
}

.tmt-blog-footer a {
  color: hsl(var(--brand-white));
}

.tmt-blog-footer__grid {
  display: grid;
  gap: 1.5rem;
}

.tmt-blog-footer__title {
  margin: 0 0 0.5rem;
  font-family: 'Ubuntu', system-ui, sans-serif;
  font-size: 1.1rem;
}

.tmt-blog-footer__text,
.tmt-blog-footer__meta {
  margin: 0;
  color: hsl(var(--brand-iron));
  font-size: 0.95rem;
}

.tmt-blog-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--brand-slate));
  color: hsl(var(--brand-iron));
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .tmt-blog-nav {
    display: flex;
  }

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

  .tmt-blog-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .tmt-blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
