@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Unbounded:wght@600;700&display=swap');

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ——— Page shell ——— */
body.p24-blog-page {
  background-color: #f4f5f6;
  background-image: repeating-linear-gradient(-18deg, transparent 0 22px, rgba(22, 28, 34, 0.035) 22px 23px);
  background-attachment: fixed;
  font-family: Manrope, system-ui, sans-serif;
  color: #17211c;
}
body.p24-blog-page .site-content-fullwidth {
  background: transparent;
  padding: 0;
}
body.p24-blog-page h1,
body.p24-blog-page h2,
body.p24-blog-page h3,
body.p24-blog-page .blog-page-title,
body.p24-blog-page .blog-card-title,
body.p24-blog-page .blog-widget-title,
body.p24-blog-page .blog-single-title {
  font-family: Unbounded, Manrope, sans-serif;
  letter-spacing: -0.04em;
}

/* ——— Full-bleed hero (archive) ——— */
.p24-blog-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: calc(var(--p24-header-pad, 12px) + var(--p24-header-h, 56px) + 28px) 0 56px;
  min-height: 400px;
  color: #f4f7f5;
  background: #101613;
  border-radius: 0 0 32px 32px;
}
.p24-blog-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 26%, rgba(0, 0, 0, 0.4) 40%, #000 56%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 26%, rgba(0, 0, 0, 0.4) 40%, #000 56%, #000 100%);
}
.p24-blog-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 42%;
}
.p24-blog-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #101613 0%, #101613 32%, rgba(16, 22, 19, 0.9) 46%, rgba(16, 22, 19, 0.35) 66%, rgba(16, 22, 19, 0.1) 100%),
    linear-gradient(180deg, rgba(16, 22, 19, 0.18) 0%, transparent 48%, rgba(16, 22, 19, 0.28) 100%);
}
.p24-blog-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1450px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
body.p24-blog-page .p24-blog-hero .blog-breadcrumbs {
  margin: 0 0 16px;
  padding: 0;
  background: none;
  border: 0;
}
body.p24-blog-page .p24-blog-hero .blog-breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0 !important;
  list-style: none;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  color: rgba(244, 247, 245, 0.62);
  font-size: 14px;
  font-family: Manrope, system-ui, sans-serif;
  letter-spacing: 0;
  box-shadow: none;
}
body.p24-blog-page .p24-blog-hero .blog-breadcrumbs-item {
  color: rgba(244, 247, 245, 0.62);
}
body.p24-blog-page .p24-blog-hero .blog-breadcrumbs-item:not(:last-child)::after {
  content: '/';
  margin: 0 8px;
  color: rgba(244, 247, 245, 0.45);
  font-size: 14px;
  font-weight: 500;
}
body.p24-blog-page .p24-blog-hero .blog-breadcrumbs a {
  color: #8ddeb0 !important;
  text-decoration: none;
  font-weight: 600;
}
body.p24-blog-page .p24-blog-hero .blog-breadcrumbs a:hover {
  color: #b6efc9 !important;
  text-decoration: none;
}
body.p24-blog-page .p24-blog-hero .blog-breadcrumbs-current {
  color: rgba(244, 247, 245, 0.78);
  font-weight: 600;
  max-width: none;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.p24-blog-hero__eye {
  margin: 0 0 8px;
  color: #8ddeb0;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-family: Manrope, system-ui, sans-serif;
}
.p24-blog-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.05;
  color: #fff;
}
.p24-blog-hero__lead {
  margin: 0;
  max-width: 680px;
  color: rgba(244, 247, 245, 0.78);
  font-size: 17px;
  line-height: 1.5;
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}
.p24-blog-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.p24-blog-stats li {
  min-width: 140px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.p24-blog-stats strong { display: block; font-size: 20px; color: #fff; }
.p24-blog-stats span {
  color: rgba(244, 247, 245, 0.62);
  font-size: 13px;
  font-family: Manrope, system-ui, sans-serif;
  letter-spacing: 0;
  font-weight: 600;
}

/* ——— Rubric chips under hero ——— */
.p24-blog-cats {
  width: 100%;
  margin: 0;
  padding: 22px 0 0;
}
.p24-blog-cats__inner {
  max-width: 1450px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.p24-blog-cats a {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #e3e8e5;
  background: #fff;
  color: #17211c;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 22px rgba(16, 22, 19, 0.04);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.p24-blog-cats a:hover {
  border-color: #c9d2cd;
}
.p24-blog-cats a.is-active {
  background: #101613;
  border-color: #101613;
  color: #fff;
}

/* ——— 1450 layout ——— */
body.p24-blog-page .blog-layout-wrap,
body.p24-blog-page .blog-layout-archive {
  max-width: 1450px;
  margin: 0 auto;
  padding: 22px 24px 64px;
  box-sizing: border-box;
}
body.p24-blog-page.blog.archive .blog-layout-wrap {
  padding-top: 18px;
}
body.p24-blog-page .blog-content-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
body.p24-blog-page .site-main-with-sidebar,
body.p24-blog-page .site-sidebar {
  width: auto;
  max-width: none;
}
body.p24-blog-page .blog-sidebar {
  position: sticky;
  top: 92px;
}
body.p24-blog-page .blog-page-header {
  display: none; /* moved into hero on archive */
}
body.p24-blog-page.blog:not(.archive) .blog-page-header {
  display: block;
}

/* ——— Cards ——— */
body.p24-blog-page .blog-grid-archive {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
body.p24-blog-page .blog-card {
  background: #fff;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(16, 22, 19, 0.05);
  overflow: hidden;
}
body.p24-blog-page .blog-card-archive:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(16, 22, 19, 0.1);
  border-color: transparent;
}
body.p24-blog-page .blog-card-archive .blog-card-img {
  height: 200px;
}
body.p24-blog-page .blog-card-body {
  padding: 18px 20px 20px;
}
body.p24-blog-page .blog-card-title {
  font-size: 18px;
  line-height: 1.3;
  color: #101613;
}
body.p24-blog-page .blog-card-title a:hover { color: #17824a; }
body.p24-blog-page .blog-card-excerpt {
  color: #5d675f;
}
body.p24-blog-page .blog-card-meta time,
body.p24-blog-page .blog-card-meta .blog-views {
  color: #6d776f;
}
body.p24-blog-page .blog-read-more {
  color: #17824a;
  font-weight: 800;
  text-decoration: none;
}
body.p24-blog-page .blog-category-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef1ef;
  color: #146b3a;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  font-family: Manrope, system-ui, sans-serif;
  letter-spacing: 0;
}
body.p24-blog-page .blog-empty {
  background: #fff;
  border: 1px dashed #d5dbd7;
  border-radius: 22px;
  color: #5d675f;
}

/* ——— Sidebar (new style) ——— */
body.p24-blog-page .blog-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
body.p24-blog-page .blog-widget {
  background: #fff;
  border: 0;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(16, 22, 19, 0.06);
}
body.p24-blog-page .blog-widget-title {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #101613;
}
body.p24-blog-page .blog-widget-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
body.p24-blog-page .blog-widget-links li { margin: 0; }
body.p24-blog-page .blog-widget-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: #f7f8f8;
  border: 1px solid #e3e8e5;
  color: #17211c;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
body.p24-blog-page .blog-widget-links a:hover {
  background: #fff;
  border-color: #cfd7d2;
  color: #146b3a;
}
body.p24-blog-page .blog-widget-links a.is-active {
  background: #101613;
  border-color: #101613;
  color: #fff;
}
body.p24-blog-page .blog-widget-posts {
  gap: 8px;
}
body.p24-blog-page .blog-widget-posts a {
  padding: 10px;
  margin: 0;
  border-radius: 16px;
  border: 1px solid #e8ece9;
  background: #fafbfa;
}
body.p24-blog-page .blog-widget-posts a:hover {
  background: #fff;
  border-color: #d5dbd7;
}
body.p24-blog-page .blog-widget-posts li.is-active a {
  background: #101613;
  border-color: #101613;
}
body.p24-blog-page .blog-widget-posts li.is-active .blog-widget-post-title,
body.p24-blog-page .blog-widget-posts li.is-active time,
body.p24-blog-page .blog-widget-posts li.is-active .blog-views {
  color: #f4f7f5;
}
body.p24-blog-page .blog-widget-thumb {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 12px;
}
body.p24-blog-page .blog-widget-post-title {
  font-size: 13px;
  font-weight: 700;
  color: #101613;
  font-family: Manrope, system-ui, sans-serif;
  letter-spacing: 0;
}
body.p24-blog-page .blog-widget-post-meta time,
body.p24-blog-page .blog-widget-post-top .blog-views {
  font-size: 11px;
  color: #6d776f;
}
body.p24-blog-page .blog-widget-cta p {
  color: #5d675f;
  margin: 0 0 14px;
}
body.p24-blog-page .blog-widget-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #17824a;
  color: #fff !important;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  box-shadow: none;
}
body.p24-blog-page .blog-widget-btn:hover {
  background: #146b3a;
}
body.p24-blog-page .blog-toc-list-sidebar {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
body.p24-blog-page .blog-toc-list-sidebar a {
  display: block;
  padding: 8px 12px;
  border-radius: 12px;
  color: #3d4942;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  background: #f7f8f8;
}
body.p24-blog-page .blog-toc-list-sidebar a:hover {
  color: #146b3a;
  background: #eef6f1;
}

/* ——— Single post: solid dark hero ——— */
.p24-blog-hero--solid {
  min-height: 0;
  background: #101613;
}
.p24-blog-hero--solid .p24-blog-hero__media,
.p24-blog-hero--solid .p24-blog-hero__shade {
  display: none;
}
.p24-blog-hero--single {
  padding: calc(var(--p24-header-pad, 12px) + var(--p24-header-h, 56px) + 20px) 0 36px;
  border-radius: 0 0 28px 28px;
}
.p24-blog-hero--single .p24-blog-hero__inner {
  max-width: 1450px;
}
.p24-blog-hero--single .p24-blog-hero__eye {
  margin: 0 0 10px;
}
.p24-blog-hero--single .blog-single-title {
  margin: 0 0 14px;
  max-width: 920px;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  color: #fff;
  font-family: Unbounded, Manrope, sans-serif;
  letter-spacing: -0.04em;
}
.p24-blog-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: rgba(244, 247, 245, 0.68);
  font-size: 14px;
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}
.p24-blog-hero__meta time,
.p24-blog-hero__meta .blog-views {
  margin: 0;
  color: rgba(244, 247, 245, 0.68);
}
body.p24-blog-page.blog:not(.archive) .blog-layout-wrap {
  padding-top: 22px;
}

/* Intro: lead left + photo right (photo keeps ratio, ~42% width) */
body.p24-blog-page .blog-single-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 42%);
  gap: 22px 28px;
  align-items: center;
  margin: 0 0 26px;
  padding: 16px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(16, 22, 19, 0.05);
}
body.p24-blog-page .blog-single-intro__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
body.p24-blog-page .blog-single-intro__lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: #3d4942;
  font-weight: 600;
}
body.p24-blog-page .blog-single-intro .blog-category-badge {
  margin: 0;
}
body.p24-blog-page .blog-single-intro .blog-single-hero-wrap {
  margin: 0;
  max-width: 100%;
}
body.p24-blog-page .blog-single-hero {
  border-radius: 18px;
  width: 100%;
  height: auto;
  display: block;
}
body.p24-blog-page .blog-single-hero-wrap--compact {
  max-width: 520px;
  margin: 0 0 22px;
}
/* duplicate lead already shown in intro */
body.p24-blog-page .blog-single-main--split-intro .blog-post-content > .blog-lead:first-child {
  display: none;
}
body.p24-blog-page .blog-back-link a {
  color: #146b3a;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 980px) {
  .p24-blog-hero { min-height: 360px; }
  .p24-blog-hero--solid,
  .p24-blog-hero--single { min-height: 0; }
  .p24-blog-hero--single {
    padding: calc(var(--p24-header-pad, 12px) + var(--p24-header-h, 56px) + 16px) 0 28px;
  }
  .p24-blog-hero__media {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .p24-blog-hero__media img { object-position: 55% 35%; }
  .p24-blog-hero__shade {
    background:
      linear-gradient(180deg,
        rgba(16, 22, 19, 0.52) 0%,
        rgba(16, 22, 19, 0.4) 30%,
        rgba(16, 22, 19, 0.55) 58%,
        rgba(16, 22, 19, 0.78) 100%),
      linear-gradient(115deg,
        rgba(16, 22, 19, 0.48) 0%,
        rgba(16, 22, 19, 0.28) 42%,
        rgba(16, 22, 19, 0.12) 72%,
        rgba(16, 22, 19, 0.06) 100%);
  }
  body.p24-blog-page .blog-content-area {
    grid-template-columns: 1fr;
  }
  body.p24-blog-page .blog-sidebar { position: static; }
  body.p24-blog-page .blog-grid-archive { grid-template-columns: 1fr; }
  body.p24-blog-page .blog-single-intro {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 12px;
  }
  body.p24-blog-page .blog-single-intro .blog-single-hero-wrap {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }
  .p24-blog-cats__inner,
  .p24-blog-hero__inner,
  body.p24-blog-page .blog-layout-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }
}
