/* CPM 3D — Blog archive page styles (extends home-pop.css + shop-pop.css page-hero) */

/* ===== Blog hero ===== */
.page-hero[data-screen-label="Blog hero"] {
  width: 100vw;
  max-width: 100vw;
}
.page-hero[data-screen-label="Blog hero"] .page-hero-bg {
  background:
    linear-gradient(90deg, rgba(16, 29, 58, 0.78) 0%, rgba(16, 29, 58, 0.34) 20%, rgba(7, 17, 38, 0.74) 50%, rgba(16, 29, 58, 0.34) 80%, rgba(16, 29, 58, 0.8) 100%),
    linear-gradient(180deg, rgba(16, 29, 58, 0.1) 0%, rgba(16, 29, 58, 0.62) 100%),
    url("brand/blog-journal-hero.png") center 48% / cover no-repeat,
    var(--ink);
}
.page-hero[data-screen-label="Blog hero"] h1 {
  max-width: min(980px, calc(100vw - 48px));
  text-wrap: balance;
}
.page-hero[data-screen-label="Blog hero"] .lede { max-width: min(560px, calc(100vw - 48px)); }

/* ===== Archive ===== */
.blog-archive { padding: 64px 0 110px; }

.fchips { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.fchip {
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em;
  background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink);
  border-radius: var(--radius-pill); box-shadow: 3px 3px 0 var(--ink);
  padding: 10px 22px; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.fchip:hover { transform: translate(-1.5px, -1.5px); box-shadow: 4.5px 4.5px 0 var(--ink); }
.fchip.active { background: var(--yellow); }

/* ----- Featured post ----- */
.featured-card {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch;
  background: var(--paper); border: var(--ow) solid var(--ink);
  border-radius: var(--radius-lg); box-shadow: 7px 7px 0 var(--ink);
  overflow: hidden; margin-bottom: 56px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.featured-card:hover { transform: translate(-2px, -2px); box-shadow: 10px 10px 0 var(--ink); }
.featured-card .ph {
  min-height: 340px;
  border-right: var(--ow) solid var(--ink);
  border-radius: 0;
  position: relative;
  background-image: var(--post-image);
  background-size: cover;
  background-position: center;
}
.featured-card .ph::after,
.post-grid .bcard .ph::after,
.blog-post-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 29, 58, 0) 52%, rgba(16, 29, 58, 0.22) 100%),
    radial-gradient(circle at 12% 18%, rgba(255, 247, 223, 0.22), transparent 34%);
  pointer-events: none;
}
.blog-archive .ph .ph-tag,
.blog-archive .featured-badge,
.blog-archive .bcard .ph > .tag { display: none; }
.featured-badge {
  position: absolute; top: 18px; left: 18px; transform: rotate(-4deg);
  font-family: var(--font-display); font-size: 14px; letter-spacing: 0.08em;
  background: var(--red); color: #FFFFFF; border: 2px solid var(--ink);
  box-shadow: 2.5px 2.5px 0 var(--ink); border-radius: 999px; padding: 5px 15px;
}
.featured-body { padding: 44px 46px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; justify-content: center; }
.featured-body .tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--yellow); color: var(--ink); border: 2px solid var(--ink);
  box-shadow: 2.5px 2.5px 0 var(--ink); border-radius: var(--radius-pill); padding: 5px 14px;
}
.featured-body h2 { font-size: 38px; line-height: 1.12; }
.featured-body p { color: var(--text-soft); font-size: 15.5px; font-weight: 500; line-height: 1.7; }
.featured-body .bmeta { font-size: 12.5px; color: var(--text-soft); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 700; }

/* ----- Post grid ----- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-grid .bcard .ph {
  height: 215px;
  background-image: var(--post-image);
  background-size: cover;
  background-position: center;
}
.post-grid .no-posts {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px;
  background: var(--paper); border: var(--ow) solid var(--ink);
  border-radius: var(--radius-md); box-shadow: 5px 5px 0 var(--ink);
  font-weight: 600; color: var(--text-soft);
}

/* ===== Individual blog posts ===== */
body.cpm3d-blog-post-body .wp-site-blocks > header.wp-block-template-part,
body.cpm3d-blog-post-body .wp-site-blocks > footer.wp-block-template-part,
body.cpm3d-blog-post-body .wp-site-blocks > main > .wp-block-post-title {
  display: none !important;
}

body.cpm3d-blog-post-body .wp-site-blocks > main,
body.cpm3d-blog-post-body .entry-content.wp-block-post-content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

.blog-post-hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  color: var(--cream);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(16, 29, 58, 0.86), rgba(16, 29, 58, 0.22) 55%, rgba(16, 29, 58, 0.78)),
    var(--post-image) center / cover no-repeat,
    var(--ink);
}
.blog-post-hero .container {
  position: relative;
  z-index: 2;
  padding-top: 96px;
  padding-bottom: 122px;
}
.blog-post-hero .crumbs {
  width: fit-content;
  margin: 0 0 26px;
}
.blog-post-hero h1 {
  max-width: 850px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.98;
  color: var(--cream);
  text-wrap: balance;
}
.blog-post-hero .post-dek {
  max-width: 650px;
  margin-top: 24px;
  color: rgba(250, 245, 234, 0.88);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}
.blog-post-hero .post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.blog-post-hero .post-meta span {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-post-wrap { padding: 74px 0 112px; }
.blog-post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: start;
}
.blog-post-main {
  background: var(--paper);
  border: var(--ow) solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 7px 7px 0 var(--ink);
  padding: clamp(30px, 5vw, 58px);
}
.blog-post-main .lead {
  font-size: 22px;
  line-height: 1.58;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 34px;
}
.blog-post-main h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.06;
  margin: 44px 0 16px;
}
.blog-post-main h3 {
  font-size: 25px;
  line-height: 1.15;
  margin: 30px 0 12px;
}
.blog-post-main p,
.blog-post-main li {
  color: var(--text-soft);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.78;
}
.blog-post-main ul,
.blog-post-main ol { padding-left: 24px; margin: 14px 0 28px; }
.blog-post-main li + li { margin-top: 9px; }
.blog-post-main a { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; font-weight: 800; }
.blog-post-main .callout {
  margin: 34px 0;
  padding: 24px 26px;
  background: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 4px 4px 0 var(--ink);
}
.blog-post-main .callout strong { color: var(--ink); }
.blog-sources {
  margin-top: 46px;
  padding-top: 28px;
  border-top: 2.5px dashed rgba(16, 29, 58, 0.24);
}
.blog-sources h2 { font-size: 28px; margin-top: 0; }
.blog-sources li { font-size: 15px; line-height: 1.55; }
.blog-post-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 124px;
}
.blog-side-card {
  background: var(--paper);
  border: var(--ow) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 24px;
}
.blog-side-card h3 { font-size: 24px; line-height: 1.15; margin-bottom: 10px; }
.blog-side-card p {
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.55;
  font-weight: 600;
}
.blog-side-card .btn { margin-top: 18px; width: 100%; justify-content: center; }
.blog-side-card .mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.blog-side-card .mini-list span {
  display: inline-flex;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--cream);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ===== Newsletter band ===== */
.nl-band { position: relative; background: var(--band); color: var(--cream); }
.nl-inner { padding: 26px 0 92px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.nl-inner h2 { color: var(--cream); font-size: 50px; line-height: 1.08; max-width: 700px; }
.nl-inner h2 .c-yellow { text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.45); }
.nl-inner p { color: rgba(250, 245, 234, 0.78); font-size: 15.5px; font-weight: 500; max-width: 520px; }
.nl-form { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.nl-form input {
  font-family: inherit; font-size: 15px; font-weight: 500; color: var(--ink);
  background: var(--paper); border: var(--ow) solid var(--ink); border-radius: var(--radius-pill);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4); padding: 14px 24px; width: 320px; outline: none;
}
.nl-form input::placeholder { color: var(--text-soft); }
.nl-success {
  display: none; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 24px; color: var(--cream);
}
.nl-success .ck {
  width: 40px; height: 40px; border-radius: 50%; background: var(--mint);
  border: 2.5px solid var(--ink); box-shadow: 2.5px 2.5px 0 rgba(0, 0, 0, 0.4);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--ink);
}
.nl-wrap.subscribed .nl-form { display: none; }
.nl-wrap.subscribed .nl-success { display: inline-flex; }

@media (max-width: 1080px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-card .ph { border-right: none; border-bottom: var(--ow) solid var(--ink); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-post-grid { grid-template-columns: 1fr; }
  .blog-post-side { position: static; }
}

@media (max-width: 720px) {
  .blog-archive { padding-top: 48px; overflow-x: hidden; }
  .fchips {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    justify-content: center;
    gap: 10px;
    margin-bottom: 38px;
  }
  .fchip {
    flex: 0 1 auto;
    padding: 9px 15px;
    font-size: 12px;
    max-width: calc(100vw - 48px);
    text-align: center;
  }
  .page-hero[data-screen-label="Blog hero"] h1 {
    max-width: calc(100vw - 32px);
    font-size: 38px;
    line-height: 1;
    white-space: nowrap;
    text-wrap: normal;
  }
  .page-hero[data-screen-label="Blog hero"] h1 .c-yellow::before {
    content: none;
    white-space: normal;
  }
  .page-hero[data-screen-label="Blog hero"] .lede {
    max-width: 300px;
    font-size: 14px;
    line-height: 1.42;
  }
  .nl-inner {
    padding: 34px 24px 54px;
    gap: 16px;
  }
  .nl-inner h2 {
    max-width: 430px;
    font-size: 34px;
    line-height: 1.05;
  }
  .nl-inner p {
    max-width: 360px;
    font-size: 14px;
    line-height: 1.45;
  }
  .nl-form {
    width: min(100%, 360px);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .nl-form input {
    box-sizing: border-box;
    width: 100%;
    text-align: center;
    padding: 14px 18px;
  }
  .nl-form .btn {
    width: 100%;
    min-height: 52px;
    justify-content: center;
  }
  .nl-band + .wave,
  .nl-band + .wave + .wave {
    height: 54px;
  }
  .nl-band + .wave svg,
  .nl-band + .wave + .wave svg {
    height: 100%;
  }
  .nl-band + .wave + .wave + .footer .footer-main {
    padding-top: 34px;
  }
  .blog-post-hero { min-height: 610px; overflow-x: hidden; }
  .blog-post-hero .container {
    padding: 70px 24px 104px;
    max-width: 100vw;
  }
  .blog-post-hero .crumbs {
    max-width: calc(100vw - 48px);
    font-size: 11px;
  }
  .blog-post-hero h1 {
    max-width: calc(100vw - 48px);
    font-size: clamp(34px, 9.2vw, 42px);
    line-height: 1.04;
    overflow-wrap: normal;
  }
  .blog-post-hero .post-dek {
    max-width: calc(100vw - 48px);
    font-size: 14px;
    line-height: 1.5;
  }
  .blog-post-hero .post-meta {
    max-width: calc(100vw - 48px);
    gap: 8px;
  }
  .blog-post-hero .post-meta span {
    font-size: 10.5px;
    padding: 6px 10px;
  }
  .blog-post-wrap { padding-top: 52px; }
  .blog-post-grid { gap: 26px; }
  .blog-post-main { padding: 28px 24px 34px; }
  .blog-post-main .lead { font-size: 18px; }
  .blog-post-main p,
  .blog-post-main li { font-size: 15.5px; }
}

@media (max-width: 460px) {
  .page-hero[data-screen-label="Blog hero"] h1 { font-size: 29px; }
  .nl-inner {
    padding: 32px 24px 48px;
  }
  .nl-inner h2 {
    max-width: 330px;
    font-size: 30px;
  }
  .nl-form {
    width: min(100%, 330px);
  }
  .nl-band + .wave,
  .nl-band + .wave + .wave {
    height: 44px;
  }
  .nl-band + .wave + .wave + .footer .footer-main {
    padding-top: 28px;
  }
  .blog-post-hero h1 { font-size: 33px; }
  .post-grid { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .page-hero[data-screen-label="Blog hero"] h1 { font-size: 24px; }
}
