.blog-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}

.blog-hero {
  display: grid;
  gap: 22px;
  padding: 32px 0 24px;
  border-bottom: 1px solid #e5e7eb;
}

.blog-hero--compact {
  padding-top: 24px;
}

.blog-kicker,
.blog-card__category {
  display: inline-flex;
  width: fit-content;
  color: #0f766e;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  text-decoration: none;
}

.blog-hero h1 {
  max-width: 820px;
  margin: 8px 0 10px;
  color: #111827;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
}

.blog-hero p {
  max-width: 760px;
  margin: 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.55;
}

.blog-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-category-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #1f2937;
  background: #fff;
  text-decoration: none;
  font-weight: 700;
}

.blog-category-tabs a.is-active,
.blog-category-tabs a:hover {
  border-color: #0f766e;
  background: #ecfdf5;
  color: #065f46;
}

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

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

.blog-card {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.blog-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.blog-card__image {
  display: block;
  background: #f3f4f6;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card--featured .blog-card__image {
  height: 100%;
  min-height: 260px;
  aspect-ratio: auto;
}

.blog-card__image img,
.blog-post__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.blog-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
}

.blog-card--featured h2 {
  font-size: 30px;
}

.blog-card h2 a {
  color: #111827;
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: #0f766e;
}

.blog-card p,
.blog-empty p {
  margin: 0;
  color: #4b5563;
  line-height: 1.55;
}

.blog-card time,
.blog-post__meta {
  color: #6b7280;
  font-size: 14px;
}

.blog-sidebar {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 16px;
}

.blog-side-section {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.blog-side-section h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 18px;
  letter-spacing: 0;
}

.blog-side-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.blog-side-list a,
.blog-anchor-cloud a {
  color: #1f2937;
  text-decoration: none;
  line-height: 1.35;
}

.blog-side-list a:hover,
.blog-anchor-cloud a:hover {
  color: #0f766e;
  text-decoration: underline;
}

.blog-side-section--results {
  padding: 14px;
  background: #f8fafc;
}

.blog-result-list {
  display: grid;
  gap: 12px;
}

.blog-result-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.blog-result-card__head {
  display: grid;
  gap: 6px;
}

.blog-result-card__title {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.blog-result-card__title:hover {
  color: #0f766e;
  text-decoration: underline;
}

.blog-result-card__meta,
.blog-result-card__prizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-result-card__meta span,
.blog-result-card__prizes span {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 7px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.2;
}

.blog-result-card__prizes span {
  color: #1f2937;
}

.blog-result-card__prizes strong {
  margin-right: 3px;
  color: #0f766e;
}

.blog-result-card__first {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #b7ead7;
  background: linear-gradient(180deg, #ecfdf5 0%, #dff9ec 100%);
  color: #064e3b;
}

.blog-result-card__first strong,
.blog-result-card__first em,
.blog-result-card__first small {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.blog-result-card__first strong {
  grid-column: 1 / -1;
  color: #047857;
  text-transform: uppercase;
}

.blog-result-card__first span {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.blog-result-card__first small {
  justify-self: start;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-anchor-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-anchor-cloud a {
  display: inline-flex;
  padding: 7px 9px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
  font-size: 13px;
}

.blog-empty {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  background: #fff;
}

.blog-empty h1,
.blog-empty h2 {
  margin: 0 0 10px;
  color: #111827;
}

.blog-post {
  min-width: 0;
}

.blog-post__header {
  display: grid;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e5e7eb;
}

.blog-post__header h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: 0;
}

.blog-post__header p {
  margin: 0;
  color: #4b5563;
  font-size: 19px;
  line-height: 1.55;
}

.blog-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-post__image {
  margin: 22px 0;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background: #f3f4f6;
}

.blog-post__content {
  color: #1f2937;
  font-size: 19px;
  line-height: 1.82;
}

.blog-post__content h2,
.blog-post__content h3,
.blog-post__content h4 {
  margin: 36px 0 14px;
  color: #111827;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: 0;
}

.blog-post__content h1 {
  margin: 40px 0 16px;
  color: #111827;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.blog-post__content h2 {
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  font-size: 32px;
}

.blog-post__content h3 {
  font-size: 26px;
}

.blog-post__content h4 {
  font-size: 22px;
}

.blog-post__content h5,
.blog-post__content h6 {
  margin: 28px 0 10px;
  color: #111827;
  font-weight: 900;
  line-height: 1.2;
}

.blog-post__content p,
.blog-post__content ul,
.blog-post__content ol,
.blog-post__content blockquote {
  margin: 0 0 18px;
}

.blog-post__content ul,
.blog-post__content ol {
  display: grid;
  gap: 8px;
  padding: 14px 18px 14px 34px;
  border-left: 4px solid #0f766e;
  border-radius: 8px;
  background: #f8fafc;
}

.blog-post__content li {
  padding-left: 4px;
  color: #1f2937;
}

.blog-post__content li::marker {
  color: #0f766e;
  font-weight: 900;
}

.blog-post__content li p {
  margin: 0;
}

.blog-post__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.blog-post__content table {
  width: 100%;
  margin: 0 0 22px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
}

.blog-post__content iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  margin: 0 0 22px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f3f4f6;
}

.blog-post__content .embed-block {
  margin: 0 0 22px;
}

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

.blog-post__content th {
  background: #f3f4f6;
  color: #111827;
  font-weight: 800;
}

.blog-post__content tr:nth-child(even) td {
  background: #f9fafb;
}

.blog-post__content a {
  color: #0f766e;
  font-weight: 700;
}

@media (max-width: 900px) {
  .blog-layout,
  .blog-card--featured {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .blog-card--featured .blog-card__image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 640px) {
  .blog-shell {
    padding-inline: 12px;
  }

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

  .blog-hero h1,
  .blog-post__header h1 {
    font-size: 34px;
  }
}
