/* v1.24.1 public UI refinement: restore the two-font system and clear content hierarchy. */
body > main {
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
}

.site-header,
.site-footer,
.footer-legal,
.floating-whatsapp {
  font-family: Inter, Arial, sans-serif;
}

body > main h1 {
  font-family: Manrope, Inter, sans-serif !important;
  font-weight: 700;
}

body > main h2,
body > main h3 {
  font-family: Manrope, Inter, sans-serif !important;
  font-weight: 650 !important;
}

body > main :is(p, li, label, input, select, textarea) {
  font-family: Inter, Arial, sans-serif !important;
}

body > main .section-heading h2,
body > main .professional-section-heading h2,
body > main .product-document-heading h2,
body > main .blog-featured-copy h2 {
  font-size: clamp(32px, 2.8vw, 36px) !important;
  line-height: 1.18 !important;
}

body > main :is(button, input, select, textarea) {
  font-family: inherit !important;
}

body > main .blog-article-content h2 {
  font-size: clamp(28px, 2.5vw, 32px) !important;
  line-height: 1.25 !important;
}

body > main .blog-article-content h3 {
  font-size: clamp(20px, 2vw, 24px) !important;
  line-height: 1.3 !important;
}

.blog-index-page .blog-empty-state h2 {
  font-size: clamp(24px, 2.3vw, 30px) !important;
  line-height: 1.25 !important;
}

body > main :is(
  .professional-category-grid h3,
  .application-product-grid h3,
  .product-planning-grid h3,
  .product-document-grid h3,
  .product-document-customization h3,
  .buyer-verification-grid h3,
  .buyer-evidence-grid h3,
  .cpl-process-grid h3,
  .cpl-faq-grid h3,
  .cpl-product-buyer-list h3,
  .article-checklist h3
) {
  font-size: clamp(17px, 1.45vw, 20px) !important;
  line-height: 1.3 !important;
}

body > main :is(.project-form-heading h2, .application-brief-heading h2) {
  font-size: clamp(24px, 2.4vw, 30px) !important;
  line-height: 1.2 !important;
}

body > main .eyebrow,
body > main .page-hero .eyebrow {
  font-family: Inter, Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.065em !important;
  line-height: 1.35 !important;
}

/* Blog comparison tables retain a compact reading scale. */
body > main .blog-article-content table {
  font-size: 14px;
  line-height: 1.45;
}

/* Native details/summary stays keyboard-operable; the chevron shows open/closed state. */
body main[class] details > summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 2px;
  color: var(--cpl-green, #203e35);
  cursor: pointer;
  font-family: Manrope, Inter, sans-serif !important;
  font-size: 16px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  list-style: none;
}

body main[class] details > summary::-webkit-details-marker {
  display: none;
}

body main[class] details > summary::marker {
  content: "";
}

body main[class] details > summary::after {
  position: static !important;
  display: block;
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin-left: auto;
  border: 0;
  border-right: 1.7px solid currentColor !important;
  border-bottom: 1.7px solid currentColor !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: currentColor !important;
  content: "" !important;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

body main[class] details[open] > summary::after {
  transform: rotate(225deg) translateY(-2px);
}

body main[class] details > summary:focus-visible {
  border-radius: 4px;
  outline: 2px solid #203e35;
  outline-offset: 3px;
}

body main[class] details > summary:focus:not(:focus-visible) {
  outline: none;
}

body main[class] details > summary.planning-example-summary {
  width: min(100%, 320px);
  min-height: 50px;
  padding: 7px 12px;
  border: 1px solid rgba(32, 62, 53, 0.24);
  border-radius: 5px;
  background: #f8f7f2;
}

.planning-example-summary > span {
  display: grid;
  gap: 1px;
}

.planning-example-summary small {
  color: #53655d;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}

main.product-detail-page > details.product-buyer-scenario {
  display: block;
  padding-block: 12px !important;
}

.product-buyer-scenario > summary.planning-example-summary {
  margin: 0;
}

.product-buyer-scenario > div {
  max-width: 850px;
  padding: 4px 0 22px;
}

.product-buyer-scenario[open] > div {
  display: block;
}

/* Retain the compact four-column gallery while allowing readable wrapped labels. */
.product-detail-page .product-hero-media .product-gallery-thumb {
  display: flex;
  height: 100%;
  min-width: 0;
  min-height: 118px;
  flex-direction: column;
  overflow: hidden;
}

.product-detail-page .product-hero-media .product-gallery-thumbs > div {
  display: flex;
  height: 100%;
}

.product-detail-page .product-hero-media .product-gallery-thumb img {
  flex: 0 0 auto;
}

.product-detail-page .product-hero-media .product-gallery-thumb span {
  display: flex;
  min-height: 3.75em;
  align-items: center;
  justify-content: center;
  padding: 5px 6px 2px;
  font-family: Inter, Arial, sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere;
  text-align: center;
}

.product-detail-page .product-hero-media .product-gallery-thumb:focus-visible {
  outline: 2px solid #203e35;
  outline-offset: 2px;
}

/* Use consistent currentColor line icons for the existing menu and contact marks. */
.menu-item-has-children > a::after,
.language-arrow {
  border-right-width: 1.7px;
  border-bottom-width: 1.7px;
}

.footer-contact-link svg {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-contact-link.whatsapp svg {
  background: transparent;
}

/* Smaller forest-green contact control; inline product/contact routes remain available. */
.floating-whatsapp {
  display: inline-flex;
  width: auto;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: #203e35;
  color: #fff;
  box-shadow: 0 4px 14px rgba(24, 47, 41, 0.16);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  transform: translateY(-1px);
  background: #294e42;
  box-shadow: 0 6px 18px rgba(24, 47, 41, 0.2);
}

.floating-whatsapp:focus-visible {
  outline: 2px solid #203e35;
  outline-offset: 3px;
}

.floating-whatsapp svg {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-whatsapp span {
  display: inline-block;
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.floating-whatsapp--context-hidden {
  display: none !important;
}

@media (max-width: 760px) {
  body > main .section-heading h2,
  body > main .professional-section-heading h2,
  body > main .product-document-heading h2,
  body > main .blog-featured-copy h2 {
    font-size: clamp(26px, 7.2vw, 30px) !important;
    line-height: 1.22 !important;
  }

  body > main .blog-article-content h2 {
    font-size: clamp(26px, 6.8vw, 30px) !important;
  }

  .blog-index-page .blog-empty-state h2 {
    font-size: clamp(24px, 6.2vw, 26px) !important;
  }

  body > main .blog-article-content h3 {
    font-size: clamp(19px, 5.2vw, 22px) !important;
  }

  body > main :is(
    .professional-category-grid h3,
    .application-product-grid h3,
    .product-planning-grid h3,
    .product-document-grid h3,
    .product-document-customization h3,
    .buyer-verification-grid h3,
    .buyer-evidence-grid h3,
    .cpl-process-grid h3,
    .cpl-faq-grid h3,
    .cpl-product-buyer-list h3,
    .article-checklist h3
  ) {
    font-size: clamp(17px, 4.8vw, 20px) !important;
  }

  body > main :is(.project-form-heading h2, .application-brief-heading h2) {
    font-size: clamp(22px, 6vw, 28px) !important;
  }

  .product-detail-page .product-hero-media .product-gallery-thumb {
    min-height: 116px;
  }

  .product-detail-page .product-hero-media .product-gallery-thumb span {
    padding-right: 3px;
    padding-left: 3px;
    font-size: 12px !important;
  }

  .floating-whatsapp {
    width: 50px;
    min-width: 50px;
    min-height: 50px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
  }

  .floating-whatsapp span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* v1.25.0: editorial journal layout, inspired by the coffee-packaging benchmark. */
.blog-index-page .blog-masthead {
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  grid-template-areas: "copy art" "search art";
  align-items: start;
  gap: 20px clamp(32px, 6vw, 84px);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(44px, 6vw, 78px) clamp(24px, 6vw, 88px) clamp(46px, 6vw, 76px);
  background: #f3f5f1;
}
.blog-index-page .blog-masthead-copy { grid-area: copy; align-self: end; }
.blog-index-page .blog-masthead-copy .eyebrow { margin-bottom: 18px; color: #68786d; }
.blog-index-page .blog-masthead h1 {
  max-width: 12ch;
  margin: 0 0 16px;
  color: #203e35;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5.2vw, 68px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.02;
}
.blog-index-page .blog-masthead-copy > p:last-child { max-width: 42ch; font-size: 17px; line-height: 1.65; }
.blog-index-page .journal-masthead-art {
  grid-area: art;
  align-self: stretch;
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
  min-width: 0;
  margin: 0;
}
.blog-index-page .journal-masthead-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 390px;
  aspect-ratio: 1.45;
  object-fit: cover;
  object-position: center 52%;
}
.blog-index-page .journal-masthead-art figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 9px;
  color: #65716a;
  font-size: 11px;
  letter-spacing: .035em;
}
.blog-index-page .journal-masthead-art figcaption span:first-child { color: #203e35; font-weight: 700; }
.blog-index-page .blog-search {
  grid-area: search;
  align-self: start;
  max-width: 490px;
  padding: 0;
  border: 0;
  background: transparent;
}
.blog-index-page .blog-search > label { margin-bottom: 8px; color: #42544a; font-size: 11px; letter-spacing: .08em; }
.blog-index-page .blog-search > div { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.blog-index-page .blog-search input { min-width: 0; border: 0; border-bottom: 1px solid #aeb7af; background: transparent; }
.blog-index-page .blog-search button { min-width: 92px; border: 0; background: #203e35 !important; color: #fff; }
.blog-index-page .journal-reading-path {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 76px) clamp(24px, 6vw, 88px) 38px;
  background: #fff;
}
.blog-index-page .journal-reading-path .section-heading { margin-bottom: 28px; }
.blog-index-page .journal-reading-path .section-heading h2 { max-width: 26ch; }
.blog-index-page .journal-reading-path .buyer-verification-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(18px, 3vw, 38px);
  border: 0;
  background: transparent;
}
.blog-index-page .journal-reading-path .buyer-verification-grid article {
  min-width: 0;
  padding: 15px 0 0;
  border: 0;
  border-top: 1px solid #d9dfd9;
  background: transparent;
}
.blog-index-page .journal-reading-path .buyer-verification-grid article > span { color: #8c593c; font-size: 12px; font-weight: 700; }
.blog-index-page .journal-reading-path .buyer-verification-grid h3 { margin: 12px 0 7px; color: #203e35; font-size: 18px; }
.blog-index-page .journal-reading-path .buyer-verification-grid p { margin: 0; color: #66716a; font-size: 14px; line-height: 1.58; }
.blog-index-page .buyer-resource-entry {
  grid-template-columns: minmax(210px, .72fr) minmax(0, 1.8fr);
  align-items: start;
  gap: 30px;
  max-width: 1264px;
  margin-top: 20px;
  padding: 27px 0 30px;
  border-top: 1px solid #e1e5e1;
  border-bottom: 1px solid #e1e5e1;
}
.blog-index-page .buyer-resource-entry h2 { max-width: 14ch; font-family: Georgia, "Times New Roman", serif; font-size: clamp(25px, 2.7vw, 34px); font-weight: 500; }
.blog-index-page .buyer-resource-entry-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 22px; }
.blog-index-page .buyer-resource-entry-grid a {
  position: relative;
  min-height: 0;
  gap: 7px;
  padding: 10px 22px 10px 0;
  border: 0;
  border-radius: 0;
  border-right: 1px solid #e1e5e1;
  background: transparent;
}
.blog-index-page .buyer-resource-entry-grid a:last-child { border-right: 0; }
.blog-index-page .buyer-resource-entry-grid a::after { content: "↗"; position: absolute; top: 10px; right: 8px; color: #8c593c; }
.blog-index-page .buyer-resource-entry-grid a:hover { border-color: #e1e5e1; transform: none; }
.blog-index-page .blog-results-section { max-width: 1440px; padding-top: 52px; }
.blog-index-page .blog-featured-card,
.blog-index-page .blog-card { border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.blog-index-page .blog-featured-media,
.blog-index-page .blog-card-media { overflow: hidden; border-radius: 0; }
.blog-index-page .blog-featured-copy,
.blog-index-page .blog-card-body { padding-right: 0; padding-left: 0; }
.blog-index-page .blog-card-grid { column-gap: 26px; row-gap: 42px; }
.blog-index-page .blog-card-meta { color: #777f79; }
.blog-index-page .blog-category-filter { gap: 18px 22px; }
.blog-index-page .blog-category-filter a { border-radius: 0; }
@media (max-width: 900px) {
  .blog-index-page .blog-masthead { grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); gap: 22px 34px; padding-inline: 34px; }
  .blog-index-page .journal-reading-path { padding-inline: 34px; }
  .blog-index-page .journal-reading-path .buyer-verification-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .blog-index-page .buyer-resource-entry { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 640px) {
  .blog-index-page .blog-masthead { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "art" "search"; gap: 20px; padding: 36px 22px 38px; }
  .blog-index-page .blog-masthead h1 { max-width: 11ch; font-size: clamp(40px, 12vw, 54px); }
  .blog-index-page .blog-masthead-copy > p:last-child { font-size: 15px; }
  .blog-index-page .journal-masthead-art { grid-template-rows: auto auto; }
  .blog-index-page .journal-masthead-art img { min-height: 0; aspect-ratio: 1.32; }
  .blog-index-page .blog-search { width: 100%; max-width: none; }
  .blog-index-page .journal-reading-path { padding: 42px 22px 26px; }
  .blog-index-page .journal-reading-path .buyer-verification-grid { gap: 21px 18px; }
  .blog-index-page .journal-reading-path .buyer-verification-grid p { font-size: 13px; }
  .blog-index-page .buyer-resource-entry { margin-inline: 22px; padding-block: 22px; }
  .blog-index-page .buyer-resource-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .blog-index-page .buyer-resource-entry-grid a { border-right: 0; border-top: 1px solid #e1e5e1; }
  .blog-index-page .blog-results-section { padding-top: 36px; }
}

/* Final editorial balance refinements for the resources index. */
.blog-index-page .buyer-resource-entry { grid-template-columns: minmax(0, 1fr); gap: 15px; }
.blog-index-page .buyer-resource-entry > div:first-child { display: grid; grid-template-columns: minmax(0, 1fr); }
.blog-index-page .buyer-resource-entry h2 { max-width: none; }
@media (max-width: 640px) {
  .blog-index-page .buyer-resource-entry h2 { font-size: 22px; line-height: 1.2; }
}
.blog-index-page .blog-category-filter a {
  min-height: 40px;
  padding: 9px 0 7px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.blog-index-page .blog-category-filter a:hover,
.blog-index-page .blog-category-filter a.is-active {
  border: 0;
  border-bottom: 2px solid #203e35;
  background: transparent;
  color: #203e35;
}
.blog-index-page .blog-category-filter a span { color: #77817a; }
