/**
 * Public blog — hub-style guides index and article pages
 */

.blog-pg {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding-bottom: 2rem;
}

.blog-pg-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  padding: 0;
  margin-bottom: 0.85rem;
}

.blog-pg-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #ecd9c8;
  background: #fffaf5;
  color: #6b5c4f;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.blog-pg-shortcut:hover {
  background: #fff6ee;
  border-color: #e8b896;
  color: #3d2e1f;
}

.blog-pg-shortcut em {
  font-size: 0.78rem;
  color: #d96c3d;
}

.blog-pg-shortcut--current {
  background: #fff6ee;
  border-color: #e8b896;
  color: #3d2e1f;
  cursor: default;
}

.blog-pg-shortcut--current:hover {
  background: #fff6ee;
  border-color: #e8b896;
  color: #3d2e1f;
}

.blog-pg-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: #6b5c4f;
  text-align: center;
}

.blog-pg-meta strong {
  color: #3d2e1f;
  font-weight: 600;
}

.blog-pg-catalog {
  background: var(--hub-surface-bg-soft, linear-gradient(180deg, #fff 0%, #fffefb 100%));
  border: 1px solid #e0d4c8;
  border-radius: 16px;
  padding: 1rem 1rem 0.85rem;
  box-shadow: 0 4px 22px rgba(61, 46, 31, 0.07);
  margin-bottom: 1.25rem;
}

.blog-pg-featured {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #ecd9c8;
  text-decoration: none;
  color: inherit;
}

.blog-pg-featured:hover {
  color: inherit;
}

.blog-pg-featured__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #f3ebe3;
}

.blog-pg-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.blog-pg-featured:hover .blog-pg-featured__media img {
  transform: scale(1.03);
}

.blog-pg-featured__kicker {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d96c3d;
}

.blog-pg-featured__date {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b5c4f;
  margin-bottom: 0.25rem;
}

.blog-pg-kw {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5a8f6e;
  margin-bottom: 0.35rem;
}

.blog-pg-featured__title {
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
  color: #3d2e1f;
  margin: 0 0 0.45rem;
}

.blog-pg-featured:hover .blog-pg-featured__title {
  color: #c45a2e;
}

.blog-pg-featured__excerpt {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #6b5c4f;
  margin: 0 0 0.55rem;
}

.blog-pg-read {
  font-size: 0.82rem;
  font-weight: 600;
  color: #d96c3d;
}

.blog-pg-month {
  margin-bottom: 1rem;
}

.blog-pg-month:last-child {
  margin-bottom: 0;
}

.blog-pg-month__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3d6b4a;
  margin: 0 0 0.55rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #dceee2;
}

.blog-pg-stream {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-pg-row {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0.75rem 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid #f0e6dc;
  text-decoration: none;
  color: inherit;
}

.blog-pg-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.blog-pg-row:hover {
  color: inherit;
}

.blog-pg-row__date {
  font-size: 0.82rem;
  font-weight: 700;
  color: #5a8f6e;
  padding-top: 0.12rem;
}

.blog-pg-row__copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.blog-pg-row__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #3d2e1f;
}

.blog-pg-row:hover .blog-pg-row__title {
  color: #c45a2e;
}

.blog-pg-row__excerpt {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #6b5c4f;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.blog-pg-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #ecd9c8;
}

.blog-pg-pager__side--end {
  text-align: right;
}

.blog-pg-pager__link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #d96c3d;
  text-decoration: none;
}

.blog-pg-pager__link:hover {
  color: #3d2e1f;
  text-decoration: underline;
}

.blog-pg-pager__link--disabled {
  color: #9ca3af;
  pointer-events: none;
}

.blog-pg-footnote {
  margin: 0;
  font-size: 0.78rem;
  color: #6b5c4f;
  text-align: center;
}

.blog-pg-footnote a {
  color: #d96c3d;
  font-weight: 600;
}

/* Article */
.blog-article-hero {
  display: grid;
  gap: 0;
  background: var(--hub-surface-bg, #fff);
  border: 1px solid #e0d4c8;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(61, 46, 31, 0.07);
  margin-bottom: 1rem;
}

.blog-article-hero__media {
  max-height: 11rem;
  overflow: hidden;
  background: #f3ebe3;
}

.blog-article-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 11rem;
  object-fit: cover;
  object-position: center;
}

.blog-article-hero__body {
  padding: 0.95rem 1.1rem 1.05rem;
  border-top: 3px solid #d96c3d;
}

.blog-article-hero__brand {
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d96c3d;
}

.blog-article-hero__title {
  margin: 0 0 0.35rem;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(1.2rem, 1.05rem + 0.45vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  color: #3d2e1f;
}

.blog-article-hero__lead {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #6b5c4f;
}

.blog-pg-article {
  background: var(--hub-surface-bg, #fff);
  border: 1px solid #e0d4c8;
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.35rem;
  box-shadow: 0 4px 22px rgba(61, 46, 31, 0.07);
  margin-bottom: 1.25rem;
}

.blog-pg-article .mk-prose {
  max-width: 42rem;
  margin: 0 auto;
}

.blog-pg-cta {
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef7f0 0%, #fff8f2 100%);
  border: 1px solid #a8c9b4;
  text-align: center;
}

.blog-pg-cta p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #5c4a3a;
}

.blog-pg-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8734a, #d96c3d);
  color: #fffaf5;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.blog-pg-cta-btn:hover {
  background: linear-gradient(135deg, #d96c3d, #c45a2e);
  color: #fff;
}

.blog-pg-related {
  background: var(--hub-surface-bg-soft, linear-gradient(180deg, #fff 0%, #fffefb 100%));
  border: 1px solid #e0d4c8;
  border-radius: 16px;
  padding: 1rem 1rem 0.85rem;
  box-shadow: 0 2px 12px rgba(61, 46, 31, 0.06);
  margin-bottom: 1rem;
}

.blog-pg-related h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #3d2e1f;
  margin: 0 0 0.65rem;
}

.blog-pg-related .blog-pg-row__title {
  font-size: 0.92rem;
}

.blog-pg-related-all {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.blog-pg-related-all a {
  color: #d96c3d;
  text-decoration: none;
}

.blog-pg-related-all a:hover {
  text-decoration: underline;
}

.blog-pg-sticky-cta {
  display: none;
}

/* Visual pass */
.blog-pg--visual .blog-pg-catalog {
  border-top: 3px solid #5a8f6e;
}

.blog-pg--visual .blog-pg-featured {
  border-top: 3px solid #d96c3d;
  border-bottom-color: #ecd9c8;
  padding-top: 0.15rem;
}

.blog-pg--visual .blog-pg-article {
  border-top: 3px solid #d96c3d;
}

.blog-pg--visual.blog-pg--article:has(.blog-article-hero) .blog-pg-article {
  border-top: none;
}

.blog-pg--visual .blog-pg-related {
  border-top: 3px solid #5a8f6e;
}

@media (min-width: 768px) {
  .blog-pg-shortcuts {
    justify-content: flex-start;
  }

  .blog-pg-meta {
    justify-content: flex-start;
    text-align: left;
  }

  .blog-pg-featured {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
  }

  .blog-article-hero {
    grid-template-columns: minmax(11rem, 32%) minmax(0, 1fr);
    align-items: stretch;
  }

  .blog-article-hero__media {
    max-height: none;
    min-height: 100%;
    border-right: 1px solid #ecd9c8;
  }

  .blog-article-hero__media img {
    min-height: 100%;
  }

  .blog-article-hero__body {
    border-top: none;
    border-left: 3px solid #d96c3d;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .blog-pg--article {
    padding-bottom: 5.5rem;
  }

  .blog-pg-sticky-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #ecd9c8;
    box-shadow: 0 -8px 24px rgba(61, 46, 31, 0.08);
    backdrop-filter: blur(10px);
  }

  .blog-pg-sticky-cta__note {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #5a8f6e;
    max-width: 7.5rem;
    line-height: 1.3;
  }

  .blog-pg-sticky-cta__btn {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-pg-featured__media img {
    transition: none;
  }

  .blog-pg-featured:hover .blog-pg-featured__media img {
    transform: none;
  }
}

.blog-pg-author {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
