/* BIOCIAN UX refinements. Loaded after the base theme styles. */

h1 {
  font-size: 3.25rem;
  line-height: 1.18;
}

/* Cohesive layout and reading experience. */
.reading-progress {
  position: fixed;
  z-index: 1200;
  top: var(--header-height);
  right: 0;
  left: 0;
  height: 4px;
  pointer-events: none;
  background: rgba(217, 226, 223, 0.72);
}

.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-green);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.admin-bar .reading-progress {
  top: calc(var(--header-height) + 32px);
}

.site-header {
  box-shadow: 0 1px 8px rgba(23, 33, 38, 0.04);
}

.content-area {
  padding-block: 42px 96px;
}

.breadcrumbs {
  margin-bottom: 24px;
  line-height: 1.55;
}

.archive-header,
.page-header {
  margin-bottom: 28px;
}

.archive-description,
.page-header + .entry-content > p:first-child {
  max-width: 720px;
  color: var(--color-muted);
}

.content-filters {
  padding-bottom: 26px;
  margin: -2px 0 38px;
  border-bottom: 1px solid var(--color-border);
}

.content-filters a {
  min-height: 40px;
  align-content: center;
}

.post-grid {
  align-items: stretch;
  gap: 38px 24px;
}

.post-card {
  display: grid;
  height: 100%;
  grid-template-rows: auto 1fr;
  transition: border-color 160ms ease, transform 160ms ease;
}

.post-card:focus-within {
  border-color: var(--color-green);
}

.post-card__body {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.post-card__title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.post-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.section-heading {
  padding-bottom: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.home-hero__inner {
  min-height: min(640px, calc(100vh - var(--header-height)));
}

.home-section,
.home-band {
  padding-block: 72px;
}

.content-area--article {
  padding-top: 30px;
}

.content-area--article .breadcrumbs {
  max-width: 1080px;
  margin-inline: auto;
}

.article-header {
  max-width: 960px;
  margin-bottom: 30px;
}

.article-header h1 {
  font-size: 2.75rem;
  line-height: 1.2;
}

.article-header .entry-meta {
  margin-top: 4px;
}

.article-featured-image {
  margin-bottom: 50px;
}

.article-featured-image img {
  border: 1px solid var(--color-border);
}

.article-layout {
  grid-template-columns: 216px minmax(0, 780px);
  gap: 52px;
}

.article-toc {
  max-height: calc(100vh - var(--header-height) - 62px);
  padding: 20px 18px;
  overflow: auto;
}

.article-toc a {
  display: block;
  padding-block: 3px;
  border-right: 3px solid transparent;
}

.article-toc a.is-active,
.article-toc a[aria-current="location"] {
  border-color: var(--color-green);
  color: var(--color-green-dark);
  font-weight: 700;
}

.article-toc .toc-level-3 {
  padding-left: 8px;
}

.entry-content {
  font-size: 1.08rem;
  line-height: 1.85;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-top: 0;
  margin-bottom: 1.35em;
}

.entry-content li + li {
  margin-top: 0.4em;
}

.entry-content img:not(.emoji) {
  border-radius: var(--radius);
}

.entry-content h2 {
  padding-top: 0.25em;
  border-top: 1px solid var(--color-border);
}

.related-posts {
  padding-top: 56px;
  margin-top: 64px;
}

.post-navigation a {
  min-height: 100%;
  padding: 20px;
  background: var(--color-soft);
}

.contact-page__header,
.policy-hub__header {
  padding: 18px 0 44px;
}

.contact-layout {
  gap: 64px;
  padding-top: 38px;
}

.contact-form-panel {
  min-width: 0;
}

.contact-form-panel input,
.contact-form-panel textarea {
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.contact-form-panel input:focus,
.contact-form-panel textarea:focus {
  border-color: var(--color-green) !important;
  box-shadow: 0 0 0 3px rgba(20, 125, 100, 0.12) !important;
}

.policy-link {
  min-height: 176px;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.policy-link:hover,
.policy-link:focus {
  transform: translateY(-2px);
}

.content-area--shop {
  padding-top: 30px;
}

.woocommerce ul.products.columns-1 {
  max-width: 1020px;
}

.woocommerce ul.products.columns-1 li.product {
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 12px 44px;
  padding: 28px;
}

.woocommerce div.product {
  align-items: start;
}

.woocommerce div.product .summary {
  padding-top: 8px;
}

.product-facts div {
  min-height: 84px;
}

.woocommerce div.product form.cart {
  margin-bottom: 6px;
}

.woocommerce-checkout form.checkout {
  gap: 48px;
}

.woocommerce-checkout #order_review,
.woocommerce-account .woocommerce-form-login {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
}

.woocommerce-checkout #order_review {
  padding: 22px;
}

.woocommerce-MyAccount-navigation a {
  min-height: 44px;
  align-content: center;
}

.error-404 {
  min-height: 62vh;
  align-content: center;
}

@media (max-width: 1080px) {
  .article-layout {
    max-width: 820px;
    margin-inline: auto;
  }

  .article-toc {
    max-height: none;
  }
}

@media (max-width: 782px) {
  .admin-bar .reading-progress {
    top: calc(var(--header-height) + 46px);
  }
}

@media (max-width: 700px) {
  .content-area {
    padding-block: 26px 64px;
  }

  .breadcrumbs {
    margin-bottom: 18px;
  }

  .archive-header,
  .page-header {
    margin-bottom: 22px;
  }

  .content-filters {
    gap: 7px;
    padding-bottom: 22px;
    margin-bottom: 28px;
  }

  .content-filters a {
    min-height: 38px;
    padding: 6px 11px;
    font-size: 0.82rem;
  }

  .post-grid {
    gap: 28px;
  }

  .post-card__body {
    padding-block: 15px 20px;
  }

  .post-card__title {
    margin-top: 8px;
    -webkit-line-clamp: 2;
  }

  .home-section,
  .home-band {
    padding-block: 52px;
  }

  .section-heading {
    align-items: flex-start;
    padding-bottom: 15px;
    margin-bottom: 24px;
  }

  .content-area--article {
    padding-top: 22px;
  }

  .article-header {
    margin-bottom: 26px;
  }

  .article-header h1 {
    font-size: 2rem;
    line-height: 1.22;
  }

  .article-featured-image {
    margin-bottom: 30px;
  }

  .article-layout {
    margin-top: 0;
  }

  .entry-content {
    font-size: 1.04rem;
    line-height: 1.82;
  }

  .entry-content h2 {
    margin-top: 2em;
    font-size: 1.55rem;
  }

  .share-actions--compact {
    width: 100%;
  }

  .share-actions--compact .share-actions__buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .share-actions--compact .share-button {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .contact-page__header,
  .policy-hub__header {
    padding: 10px 0 30px;
  }

  .contact-layout {
    gap: 42px;
    padding-top: 28px;
  }

  .woocommerce ul.products.columns-1 li.product {
    padding: 16px;
  }

  .woocommerce div.product .summary {
    padding-top: 0;
  }

  .mobile-buy-bar > div {
    flex: 1 1 auto;
    min-width: 0;
  }

  .mobile-buy-bar strong,
  .mobile-buy-bar ins,
  .mobile-buy-bar .woocommerce-Price-amount,
  .mobile-buy-bar .woocommerce-Price-currencySymbol {
    display: inline !important;
    white-space: nowrap;
  }

  .mobile-buy-bar button {
    flex: 0 0 auto;
  }

  .checkout-steps {
    margin-bottom: 26px;
  }

  .woocommerce-checkout #order_review {
    padding: 16px;
  }

  .error-404 {
    min-height: 54vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-card,
  .policy-link,
  .contact-form-panel input,
  .contact-form-panel textarea {
    transition: none;
  }
}

/* Compact, performance-minded single article layout. */
.content-area--article {
  padding-top: 22px;
}

.content-area--article .breadcrumbs {
  margin-bottom: 16px;
}

.article-intro {
  width: min(100%, 1120px);
  margin: 0 auto 42px;
}

.article-intro--with-image {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 42px;
}

.article-intro .article-header {
  max-width: none;
  margin: 0;
}

.article-intro .article-header h1 {
  margin: 10px 0 14px;
  font-size: 2.25rem;
  line-height: 1.3;
}

.article-intro .entry-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  line-height: 1.55;
}

.article-intro .share-actions--compact {
  width: 100%;
  padding-top: 0;
  margin: 20px 0 0;
  border-top: 0;
}

.article-featured-image {
  min-width: 0;
  margin: 0;
}

.article-featured-image img {
  display: block;
  width: 100%;
  max-height: 390px;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  object-fit: cover;
}

.single-article .ez-toc-container {
  display: none !important;
}

.related-posts,
.post-navigation,
.site-footer {
  content-visibility: auto;
}

.related-posts {
  contain-intrinsic-size: auto 680px;
}

.post-navigation {
  contain-intrinsic-size: auto 150px;
}

.site-footer {
  contain-intrinsic-size: auto 360px;
}

.biocian-tool-post .article-intro,
.biocian-tool-post .article-intro--with-image {
  display: block;
  max-width: 900px;
}

@media (max-width: 1080px) {
  .article-intro--with-image {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: 30px;
  }

  .article-intro .article-header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 760px) {
  .content-area--article {
    padding-top: 14px;
  }

  .content-area--article .breadcrumbs {
    margin-bottom: 14px;
  }

  .article-intro,
  .article-intro--with-image {
    display: block;
    margin-bottom: 28px;
  }

  .article-intro .article-header h1 {
    margin-block: 8px 12px;
    font-size: 1.75rem;
    line-height: 1.38;
  }

  .article-intro .share-actions--compact {
    margin-top: 16px;
  }

  .article-featured-image {
    margin-top: 24px;
  }

  .article-featured-image img {
    max-height: 245px;
    aspect-ratio: 16 / 9;
  }
}

/* Visible author and editorial trust signals. */
.single-post .article-intro .entry-meta {
  gap: 8px 12px;
  line-height: 1.55;
}

.article-date {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.article-date > span {
  color: #72817c;
}

.article-date--updated time {
  color: var(--color-green-dark);
  font-weight: 700;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
}

.article-byline__avatar {
  display: block;
  width: 44px;
  min-width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid #cddbd6;
  border-radius: 50%;
  background: #edf3f1;
}

.article-byline__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-byline > span,
.article-byline__label,
.article-byline small {
  display: block;
}

.article-byline__label {
  color: #71817b;
  font-size: 0.72rem;
  line-height: 1.35;
}

.article-byline a:not(.article-byline__avatar) {
  color: #1f302a;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.article-byline a:not(.article-byline__avatar):hover {
  color: var(--color-green);
}

.article-byline small {
  margin-top: 2px;
  color: #687973;
  font-size: 0.73rem;
  line-height: 1.35;
}

.article-author {
  display: grid;
  width: min(100%, 900px);
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  padding: 28px 0;
  margin: 58px auto 0;
  border-block: 1px solid var(--color-border);
}

.article-author__avatar,
.author-archive-profile > img {
  display: block;
  aspect-ratio: 1;
  border: 1px solid #cfddd8;
  border-radius: 50%;
  background: #edf3f1;
  object-fit: cover;
}

.article-author__eyebrow {
  margin: 0 0 4px;
  color: var(--color-green-dark);
  font-size: 0.76rem;
  font-weight: 800;
}

.article-author h2 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.35;
}

.article-author h2 a {
  color: #1e2c27;
  text-decoration: none;
}

.article-author__role {
  margin: 4px 0 10px;
  color: #586a63;
  font-size: 0.88rem;
  font-weight: 700;
}

.article-author__bio {
  margin: 0;
  color: #45564f;
  line-height: 1.7;
}

.article-author__details {
  display: grid;
  gap: 7px;
  margin: 16px 0 0;
}

.article-author__details > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
}

.article-author__details dt {
  color: #26352f;
  font-weight: 800;
}

.article-author__details dd {
  margin: 0;
  color: #53645e;
}

.article-author__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: var(--color-green-dark);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.author-archive-profile {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 30px 0 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--color-border);
}

.author-archive-profile h1 {
  margin: 0;
  font-size: 2.35rem;
}

.author-archive-profile > div > p:not(.article-author__eyebrow, .article-author__role) {
  max-width: 720px;
  color: #485a53;
  line-height: 1.7;
}

.author-archive-profile__count {
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 620px) {
  .single-post .article-intro .entry-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .article-meta-separator {
    display: none;
  }

  .article-author {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 16px;
    padding-block: 22px;
    margin-top: 42px;
  }

  .article-author__avatar {
    width: 68px;
    height: 68px;
  }

  .article-author h2 {
    font-size: 1.2rem;
  }

  .article-author__details > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .author-archive-profile {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 16px;
    padding-top: 18px;
  }

  .author-archive-profile > img {
    width: 76px;
    height: 76px;
  }

  .author-archive-profile h1 {
    font-size: 1.75rem;
  }
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.article-toc__toggle {
  display: none;
}

@media (min-width: 1081px) {
  .article-layout > .article-toc[hidden] {
    display: block !important;
    visibility: hidden;
  }
}

.article-header h1 {
  max-width: 980px;
  margin-inline: auto;
  font-size: 3rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.archive-header,
.page-header {
  max-width: 920px;
}

.archive-header h1,
.page-header h1 {
  font-size: 3rem;
}

.header-search,
.header-cart {
  gap: 7px;
}

.header-search svg,
.header-cart svg {
  flex: 0 0 auto;
}

.content-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 34px;
}

.content-filters a {
  padding: 7px 13px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-ink);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.content-filters a:hover,
.content-filters a:focus {
  border-color: var(--color-green);
  background: var(--color-mist);
}

.home-trust {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
}

.home-trust__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-trust__inner > * {
  display: block;
  padding: 20px 24px;
  border-right: 1px solid var(--color-border);
  color: var(--color-ink);
  text-decoration: none;
}

.home-trust__inner > *:first-child {
  border-left: 1px solid var(--color-border);
}

.home-trust strong,
.home-trust span span {
  display: block;
}

.home-trust strong {
  font-size: 0.88rem;
}

.home-trust span span {
  margin-top: 3px;
  color: var(--color-muted);
  font-size: 0.75rem;
}

.share-actions--compact {
  width: auto;
  margin-top: 18px;
  padding-top: 0;
  border-top: 0;
}

.share-actions--compact h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.share-actions--compact .share-actions__buttons {
  justify-content: center;
}

.share-actions--compact .share-button {
  min-height: 40px;
  padding: 7px 12px;
  font-size: 0.82rem;
}

.share-actions--footer {
  margin-top: 48px;
}

.biocian-tool-post .article-featured-image {
  display: none;
}

.biocian-tool-post .article-header {
  margin-bottom: 28px;
}

.tool-priority-panel {
  width: min(100%, 820px);
  padding: 24px !important;
  margin: 0 auto 46px !important;
  border: 1px solid var(--color-border) !important;
  border-top: 5px solid var(--color-green) !important;
  border-radius: var(--radius) !important;
  background: var(--color-soft) !important;
  box-shadow: var(--shadow-soft);
}

.tool-priority-panel::before {
  display: block;
  margin-bottom: 14px;
  color: var(--color-green-dark);
  font-size: 1.1rem;
  font-weight: 800;
  content: "เริ่มทำแบบประเมิน";
}

.tool-priority-panel input,
.tool-priority-panel select,
.tool-priority-panel button {
  min-height: 46px;
}

.biocian-tool-post .article-layout {
  margin-top: 24px;
}

.biocian-tool-post .article-toc {
  display: none;
}

.biocian-tool-post .article-layout {
  display: block;
}

.woocommerce ul.products.columns-1 {
  grid-template-columns: minmax(0, 1fr);
  max-width: 900px;
}

.woocommerce ul.products.columns-1 li.product {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 10px 38px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  width: 100% !important;
  max-width: none;
  margin: 0 !important;
}

.woocommerce ul.products.columns-1 li.product > .woocommerce-LoopProduct-link {
  display: contents;
}

.woocommerce ul.products.columns-1 li.product img,
.woocommerce ul.products.columns-1 li.product .biocian-packshot {
  grid-row: 1 / 5;
  grid-column: 1;
  width: 100%;
  margin: 0;
}

.woocommerce ul.products.columns-1 .woocommerce-loop-product__title,
.woocommerce ul.products.columns-1 .loop-product-summary,
.woocommerce ul.products.columns-1 .price,
.woocommerce ul.products.columns-1 li.product > .button {
  grid-column: 2;
}

.woocommerce ul.products.columns-1 .woocommerce-loop-product__title {
  align-self: end;
  padding-top: 0;
  font-size: 1.65rem;
}

.loop-product-summary {
  margin: 0;
  color: var(--color-muted);
}

.woocommerce ul.products.columns-1 li.product > .button {
  justify-self: start;
  margin-top: 8px;
}

.woocommerce div.product .product_title {
  max-width: 680px;
  font-size: 2.5rem;
  line-height: 1.2;
}

.biocian-packshot .biocian-packshot__source {
  transform: scale(2.15);
  transform-origin: 91% 64%;
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0 4px;
  border: 1px solid var(--color-border);
  background: var(--color-border);
}

.product-facts div {
  padding: 12px;
  background: var(--color-white);
}

.product-facts strong,
.product-facts span {
  display: block;
}

.product-facts strong {
  font-size: 0.86rem;
}

.product-facts span {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.product-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.86rem;
}

.mobile-buy-bar {
  display: none;
}

.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
  margin: 0 0 34px;
  counter-reset: none;
  list-style: none;
}

.checkout-steps li {
  padding: 10px 12px;
  border-bottom: 3px solid var(--color-border);
  color: var(--color-muted);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
}

.checkout-steps .is-current {
  border-color: var(--color-green);
  color: var(--color-green-dark);
}

.checkout-policy-note {
  margin: 18px 0 14px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-green);
  border-radius: 6px;
  background: #f7faf8;
  color: var(--color-muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.checkout-policy-note p {
  margin: 0 0 8px;
}

.checkout-policy-note p:last-child {
  margin-bottom: 0;
}

.checkout-policy-note strong {
  color: var(--color-text);
}

.checkout-policy-consent label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-top: 12px;
  color: var(--color-text);
  cursor: pointer;
}

.checkout-policy-consent input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
}

.woocommerce-checkout #order_review {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  align-self: start;
}

.woocommerce-account .woocommerce-form-login {
  max-width: 560px;
  padding: 28px !important;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  font-size: 1.05rem;
}

.woocommerce-checkout .woocommerce-info::before {
  display: none;
}

.woocommerce-checkout .woocommerce-info {
  padding-left: 18px;
}

.company-page,
.contact-page,
.policy-hub {
  max-width: var(--container);
}

.company-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  min-height: 520px;
  gap: 64px;
  padding-block: 34px 80px;
}

.company-intro h1,
.contact-page__header h1,
.policy-hub__header h1 {
  margin-bottom: 18px;
  font-size: 3.25rem;
}

.company-intro__lead,
.contact-page__header > p:last-child,
.policy-hub__header > p:not(.eyebrow, .policy-updated) {
  max-width: 720px;
  color: var(--color-muted);
  font-size: 1.12rem;
}

.company-brand-panel {
  display: grid;
  min-height: 330px;
  align-content: center;
  padding: 48px;
  border: 1px solid var(--color-border);
  border-left: 8px solid var(--color-yellow);
  background: var(--color-soft);
}

.company-brand-panel strong {
  font-family: Arial, sans-serif;
  font-size: 3.4rem;
  line-height: 1;
}

.company-brand-panel span {
  margin-top: 14px;
  color: var(--color-muted);
  font-size: 1rem;
}

.company-story {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 64px;
  padding-block: 72px;
  border-top: 1px solid var(--color-border);
}

.company-values {
  padding-block: 72px;
  border-top: 1px solid var(--color-border);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 42px;
  margin-top: 30px;
}

.value-grid article {
  display: grid;
  grid-template-columns: 44px 1fr;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
}

.value-grid article > span {
  grid-row: 1 / 3;
  color: var(--color-green);
  font-weight: 800;
}

.value-grid h3,
.value-grid p {
  margin-bottom: 0;
}

.value-grid p {
  margin-top: 6px;
  color: var(--color-muted);
}

.company-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 44px;
  border: 1px solid var(--color-border);
  border-top: 5px solid var(--color-green);
  background: var(--color-soft);
}

.company-cta h2,
.company-cta p {
  margin-bottom: 0;
}

.contact-page__header,
.policy-hub__header {
  padding: 30px 0 54px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
  padding-top: 42px;
  border-top: 1px solid var(--color-border);
}

.contact-details dl,
.contact-details dd {
  margin: 0;
}

.contact-details dl > div {
  padding: 15px 0;
  border-top: 1px solid var(--color-border);
}

.contact-details dt {
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.contact-details dd {
  margin-top: 3px;
  font-weight: 650;
}

.contact-note {
  margin-top: 24px;
  color: var(--color-muted);
  font-size: 0.82rem;
}

.contact-form-panel .elementor-heading-title,
.contact-form-panel .elementor-widget-heading {
  display: none;
}

.contact-form-panel .elementor,
.contact-form-panel .elementor-section,
.contact-form-panel .elementor-container,
.contact-form-panel .elementor-column,
.contact-form-panel .elementor-widget-wrap {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.contact-form-panel .wpforms-container {
  margin: 0;
}

.contact-form-panel .wpforms-submit {
  min-width: 150px !important;
  min-height: 46px !important;
  border: 0 !important;
  color: var(--color-white) !important;
  background: var(--color-green) !important;
  font-weight: 750 !important;
}

.policy-hub__header {
  max-width: 820px;
}

.policy-updated {
  color: var(--color-muted);
  font-size: 0.85rem;
}

.seller-summary,
.supplement-notice {
  padding: 30px;
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-green);
  background: var(--color-soft);
}

.seller-summary h2,
.supplement-notice h2 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.seller-summary p,
.supplement-notice p {
  margin-bottom: 0;
}

.policy-hub > section {
  margin-top: 56px;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.policy-link {
  display: block;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-ink);
  text-decoration: none;
}

.policy-link:hover,
.policy-link:focus {
  border-color: var(--color-green);
  background: var(--color-soft);
}

.policy-link > span {
  color: var(--color-green-dark);
  font-size: 0.75rem;
  font-weight: 800;
}

.policy-link h3 {
  margin: 10px 0 7px;
}

.policy-link p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.supplement-notice {
  margin-top: 56px;
  border-left-color: var(--color-yellow);
}

.error-404 {
  max-width: 820px;
  padding-block: 90px 120px;
}

.search .archive-header .search-form {
  max-width: 720px;
  margin-top: 22px;
}

@media (max-width: 900px) {
  h1,
  .archive-header h1,
  .page-header h1,
  .article-header h1,
  .company-intro h1,
  .contact-page__header h1,
  .policy-hub__header h1 {
    font-size: 2.5rem;
    line-height: 1.22;
  }

  .company-intro,
  .company-story,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .contact-form-panel .wpforms-field-row-block {
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
  }

  .contact-form-panel .wpforms-field-row-block + .wpforms-field-row-block {
    margin-top: 14px !important;
  }

  .company-intro {
    min-height: auto;
  }

  .company-brand-panel {
    min-height: 230px;
  }
}

@media (max-width: 700px) {
  h1,
  .archive-header h1,
  .page-header h1,
  .article-header h1,
  .company-intro h1,
  .contact-page__header h1,
  .policy-hub__header h1 {
    font-size: 2.25rem;
    line-height: 1.22;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: 1.75rem;
  }

  .breadcrumbs {
    display: block;
    max-height: 3.2em;
    margin-bottom: 22px;
    overflow: hidden;
    line-height: 1.55;
  }

  .entry-content .alignwide,
  .entry-content .alignfull {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    transform: none;
  }

  .article-toc {
    padding: 0;
    border: 1px solid var(--color-border);
    background: var(--color-soft);
  }

  .article-toc > h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .article-toc__toggle {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 0;
    color: var(--color-ink);
    background: transparent;
    font-weight: 750;
  }

  .article-toc nav {
    display: none;
    max-height: 280px;
    padding: 0 14px 14px;
    overflow: auto;
  }

  .article-toc.is-open nav {
    display: block;
  }

  .header-search span,
  .header-cart__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .header-search,
  .header-cart {
    width: 42px;
    min-width: 42px;
    justify-content: center;
    padding: 7px;
  }

  .header-cart {
    position: relative;
  }

  .header-cart__count {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
  }

  .home-trust__inner {
    grid-template-columns: 1fr;
  }

  .home-trust__inner > * {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .home-trust__inner > *:first-child {
    border-left: 0;
  }

  .share-actions--compact .share-actions__buttons {
    display: flex;
    flex-wrap: wrap;
  }

  .share-actions--compact .share-button {
    width: auto;
  }

  .woocommerce ul.products.columns-1 li.product {
    display: block;
    padding: 18px;
  }

  .woocommerce ul.products.columns-1 li.product > .woocommerce-LoopProduct-link {
    display: block;
  }

  .woocommerce ul.products.columns-1 .woocommerce-loop-product__title {
    font-size: 1.35rem;
  }

  .woocommerce div.product .product_title {
    font-size: 2rem;
  }

  .product-facts {
    grid-template-columns: 1fr;
  }

  .mobile-buy-bar {
    position: fixed;
    z-index: 1100;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    visibility: hidden;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-top: 1px solid var(--color-border);
    opacity: 0;
    background: var(--color-white);
    box-shadow: 0 -8px 24px rgba(23, 33, 38, 0.12);
    transform: translateY(100%);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .mobile-buy-bar.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-buy-bar > div > span,
  .mobile-buy-bar > div > strong {
    display: block;
  }

  .mobile-buy-bar > div > span {
    font-size: 0.75rem;
    font-weight: 700;
  }

  .mobile-buy-bar strong {
    color: var(--color-green-dark);
  }

  .mobile-buy-bar del {
    display: none;
  }

  .mobile-buy-bar button {
    min-height: 44px;
    padding: 8px 16px;
    border: 0;
    border-radius: var(--radius);
    color: var(--color-white);
    background: var(--color-green);
    font-weight: 750;
  }

  .woocommerce-checkout #order_review {
    position: static;
  }

  .checkout-steps li {
    padding-inline: 4px;
    font-size: 0.72rem;
  }

  .company-intro,
  .company-story,
  .company-values {
    padding-block: 44px;
  }

  .company-brand-panel {
    min-height: 190px;
    padding: 28px;
  }

  .company-brand-panel strong {
    font-size: 2.5rem;
  }

  .value-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .company-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px;
  }

  .contact-page__header,
  .policy-hub__header {
    padding: 20px 0 36px;
  }

  .contact-layout {
    padding-top: 32px;
  }

  .seller-summary,
  .supplement-notice,
  .policy-link,
  .tool-priority-panel {
    padding: 20px !important;
  }

  .error-404 {
    padding-block: 54px 80px;
  }
}

/* Final cascade for the refreshed layouts. */
.article-header h1 {
  font-size: 2.75rem;
  line-height: 1.2;
}

.article-header {
  max-width: 960px;
  margin-bottom: 30px;
}

.article-layout {
  grid-template-columns: 216px minmax(0, 780px);
  gap: 52px;
}

.article-toc {
  max-height: calc(100vh - var(--header-height) - 62px);
  overflow: auto;
}

.contact-page__header,
.policy-hub__header {
  padding: 18px 0 44px;
}

.contact-layout {
  gap: 64px;
  padding-top: 38px;
}

.woocommerce ul.products.columns-1 {
  max-width: 1020px;
}

.woocommerce ul.products.columns-1 li.product {
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 12px 44px;
  padding: 28px;
}

@media (max-width: 1080px) {
  .article-layout {
    display: block;
    max-width: 820px;
    margin-inline: auto;
  }

  .article-toc {
    max-height: none;
  }
}

@media (max-width: 700px) {
  .article-header h1 {
    font-size: 2rem;
    line-height: 1.22;
  }

  .article-header {
    margin-bottom: 26px;
  }

  .contact-page__header,
  .policy-hub__header {
    padding: 10px 0 30px;
  }

  .contact-layout {
    gap: 42px;
    padding-top: 28px;
  }

  .share-actions--compact .share-actions__buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .share-actions--compact .share-button {
    width: 100%;
    min-width: 0;
    padding-inline: 8px;
  }

  .woocommerce ul.products.columns-1 li.product {
    display: block;
    padding: 16px;
  }
}

/* Modern interactive home experience. */
.home-hero {
  --hero-x: 0;
  --hero-y: 0;
  position: relative;
  isolation: isolate;
  min-height: min(760px, calc(100svh - var(--header-height) - 54px));
  overflow: hidden;
  border-bottom: 0;
  color: var(--color-white);
  background: #10231f;
}

.home-hero__visual,
.home-hero__overlay {
  position: absolute;
  inset: 0;
}

.home-hero__visual {
  inset: -22px;
  z-index: -2;
  transform: translate(calc(var(--hero-x) * -10px), calc(var(--hero-y) * -8px)) scale(1.07);
  transition: transform 500ms cubic-bezier(0.2, 0.75, 0.25, 1);
  will-change: transform;
}

.home-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.06);
}

.home-hero__overlay {
  z-index: -1;
  background: rgba(7, 20, 18, 0.61);
}

.home-hero__inner {
  display: grid;
  min-height: inherit;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  align-items: end;
  gap: 64px;
  padding-block: 90px 64px;
}

.home-hero__content {
  max-width: 800px;
  transform: translate(calc(var(--hero-x) * 4px), calc(var(--hero-y) * 3px));
  transition: transform 500ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.home-hero__content .eyebrow {
  color: #c6eee3;
}

.home-hero__content h1 {
  max-width: 800px;
  margin-bottom: 18px;
  color: var(--color-white);
  font-size: 4.75rem;
  line-height: 1.05;
}

.home-hero__content > p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.22rem;
  line-height: 1.75;
}

.button--light {
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--color-white);
  background: rgba(7, 20, 18, 0.36);
}

.button--light:hover,
.button--light:focus {
  border-color: var(--color-white);
  color: var(--color-ink);
  background: var(--color-white);
}

.home-hero__story {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 6px;
  color: var(--color-white);
  background: rgba(7, 20, 18, 0.54);
  text-decoration: none;
  transform: translate(calc(var(--hero-x) * -5px), calc(var(--hero-y) * -4px));
  transition: border-color 180ms ease, background-color 180ms ease, transform 500ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.home-hero__story:hover,
.home-hero__story:focus {
  border-color: rgba(255, 255, 255, 0.82);
  color: var(--color-white);
  background: rgba(7, 20, 18, 0.75);
}

.home-hero__story > span {
  grid-column: 1;
  color: #c6eee3;
  font-size: 0.78rem;
  font-weight: 700;
}

.home-hero__story strong {
  grid-column: 1;
  font-size: 1rem;
  line-height: 1.55;
}

.home-hero__story b {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-size: 1.35rem;
}

.home-products {
  background: #f4f7f6;
}

.section-heading > div > p:last-child:not(.eyebrow) {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--color-muted);
}

.home-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.home-product-grid--1 {
  grid-template-columns: minmax(0, 430px);
  justify-content: center;
}

.home-product-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 430px));
  justify-content: center;
}

.home-product-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-white);
  grid-template-rows: auto 1fr;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-product-card:hover,
.home-product-card:focus-within {
  border-color: #9eb8b1;
  box-shadow: 0 16px 36px rgba(23, 33, 38, 0.09);
  transform: translateY(-3px);
}

.home-product-card__image {
  position: relative;
  display: grid;
  min-height: 320px;
  place-items: center;
  overflow: hidden;
  padding: clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--color-border);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(232, 240, 237, 0.72)),
    #eef4f2;
}

.home-product-card__image > img,
.home-product-card__image .biocian-packshot {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.home-product-card__image > img {
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(24, 42, 36, 0.14));
  transition: transform 220ms ease;
}

.home-product-card__image .biocian-packshot {
  overflow: hidden;
}

.home-product-card__image .biocian-packshot__source {
  object-fit: cover;
  transform: scale(1.68);
  transform-origin: 87% 64%;
  filter: drop-shadow(0 18px 18px rgba(24, 42, 36, 0.14));
  transition: transform 220ms ease;
}

.home-product-card:hover .home-product-card__image > img,
.home-product-card:focus-within .home-product-card__image > img {
  transform: scale(1.025);
}

.home-product-card:hover .home-product-card__image .biocian-packshot__source,
.home-product-card:focus-within .home-product-card__image .biocian-packshot__source {
  transform: scale(1.72);
}

.home-product-card__sale {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 5px 9px;
  border-radius: 4px;
  color: var(--color-ink);
  background: var(--color-yellow);
  font-size: 0.76rem;
  font-weight: 800;
}

.home-product-card__body {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  padding: 24px;
}

.home-product-card__meta {
  margin: 0 0 8px;
  color: var(--color-green);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.home-product-card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  line-height: 1.5;
}

.home-product-card h3 a {
  color: var(--color-ink);
  text-decoration: none;
}

.home-product-card__footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  margin-top: auto;
  border-top: 1px solid var(--color-border);
}

.home-product-card__footer p {
  margin: 0;
  color: var(--color-green-dark);
  font-size: 1.05rem;
  font-weight: 800;
}

.home-product-card__footer > a {
  flex: 0 0 auto;
  font-weight: 750;
}

/* Product showcase refresh. */
.home-products {
  position: relative;
  overflow: hidden;
  border-block: 1px solid #dfe8e4;
  background: #f5f8f7;
}

.home-products .section-heading {
  align-items: end;
  margin-bottom: 34px;
}

.home-products .section-heading h2 {
  margin-top: 5px;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.18;
}

.home-products .section-heading > a {
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
}

.home-product-grid {
  gap: 20px;
}

.home-product-card {
  border-color: #d5e0dc;
  box-shadow: 0 8px 28px rgba(22, 45, 37, 0.05);
}

.home-product-card__image {
  min-height: 0;
  padding: 0;
  border-bottom: 0;
  background: #ffffff;
}

.home-product-card__image::after {
  content: none;
}

.home-product-card__index {
  position: absolute;
  top: 18px;
  right: 20px;
  color: #8ca099;
  font-size: 0.78rem;
  font-weight: 800;
}

.home-product-card__sale {
  top: 18px;
  left: 20px;
  color: #704900;
  background: #ffe39b;
}

.home-product-card__image .biocian-product-visual {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.home-product-card__image .biocian-product-image {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  transition: transform 220ms ease;
}

.home-product-card:hover .home-product-card__image .biocian-product-image,
.home-product-card:focus-within .home-product-card__image .biocian-product-image {
  transform: scale(1.025);
}

.home-product-card__body {
  min-height: 220px;
  padding: 22px 24px 24px;
}

.home-product-card__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #536860;
  text-transform: none;
}

.home-product-card__meta > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #19865f;
}

.home-product-card h3 {
  font-size: 1.18rem;
  line-height: 1.55;
}

.home-product-card__footer {
  align-items: center;
}

.home-product-card__footer p {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 1.25rem;
}

.home-product-card__footer del {
  color: #82928c;
  font-size: 0.78rem;
  font-weight: 500;
}

.home-product-card__footer ins {
  text-decoration: none;
}

.home-product-card__footer > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #a9bbb5;
  border-radius: 4px;
  color: #164a3a;
  text-decoration: none;
}

.home-product-card__footer > a:hover,
.home-product-card__footer > a:focus {
  border-color: var(--color-green);
  color: var(--color-white);
  background: var(--color-green);
}

@media (max-width: 700px) {
  .home-products .section-heading {
    align-items: start;
  }

  .home-product-grid,
  .home-product-grid--1,
  .home-product-grid--2 {
    width: calc(100vw - 14px);
    grid-template-columns: none;
    grid-auto-columns: min(84vw, 350px);
    grid-auto-flow: column;
    justify-content: start;
    gap: 14px;
    overflow-x: auto;
    padding: 2px 14px 18px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  .home-product-card {
    scroll-snap-align: start;
  }

  .home-product-card__image {
    min-height: 0;
  }
}

.post-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 7px;
  line-height: 1.65;
}

.post-card__body {
  padding-block: 20px 28px;
}

.post-card__title {
  min-height: 3.2em;
  margin: 12px 0 0;
  font-size: 1.12rem;
  line-height: 1.6;
}

.post-card__excerpt {
  line-height: 1.75;
}

.site-footer__main {
  padding-block: 40px 32px;
}

.footer-grid {
  grid-template-columns: minmax(300px, 1.45fr) minmax(150px, 0.7fr) minmax(210px, 1fr) minmax(210px, 0.9fr);
  gap: clamp(28px, 4vw, 58px);
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--color-white);
  font-size: 1rem;
  line-height: 1.4;
}

.footer-company__name {
  margin-bottom: 9px !important;
  color: var(--color-white) !important;
  font-size: 0.94rem !important;
  font-weight: 700;
}

.site-footer p,
.site-footer address,
.site-footer li {
  margin-bottom: 7px;
  line-height: 1.62;
}

.footer-company__description {
  max-width: 48ch;
  margin-bottom: 14px !important;
}

.footer-company__fact {
  display: grid;
  gap: 1px;
  margin-bottom: 9px !important;
}

.footer-company__fact strong,
.footer-contact__list span {
  color: #91aaa3;
  font-size: 0.76rem;
  font-weight: 700;
}

.footer-company__fact span {
  display: block;
}

.footer-company__link,
.footer-contact__form {
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
}

.footer-links,
.footer-contact__list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li,
.footer-contact__list li {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
  transition: color 160ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #8fd8c4;
}

.footer-contact > p {
  margin-bottom: 13px;
}

.footer-contact__list li {
  display: grid;
  gap: 1px;
}

.site-footer__bottom {
  padding-block: 11px;
}

@media (max-width: 1080px) {
  .home-hero__inner {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
  }

  .home-hero__content h1 {
    font-size: 4rem;
  }

  .home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: minmax(280px, 1.35fr) repeat(2, minmax(170px, 0.8fr));
    gap: 34px;
  }

  .footer-contact {
    grid-column: 2 / -1;
  }
}

@media (max-width: 760px) {
  .home-hero {
    min-height: min(650px, calc(100svh - var(--header-height)));
  }

  .home-hero__visual {
    inset: 0;
    transform: scale(1.04);
  }

  .home-hero__inner {
    display: flex;
    min-height: inherit;
    align-items: stretch;
    justify-content: flex-end;
    flex-direction: column;
    gap: 28px;
    padding-block: 74px 28px;
  }

  .home-hero__content {
    transform: none;
  }

  .home-hero__content h1 {
    font-size: 3rem;
    line-height: 1.08;
  }

  .home-hero__content > p:not(.eyebrow) {
    font-size: 1rem;
    line-height: 1.65;
  }

  .home-hero__story {
    padding: 16px;
    transform: none;
  }

  .home-product-grid,
  .home-product-grid--1,
  .home-product-grid--2 {
    grid-template-columns: 1fr;
  }

  .home-product-card__body {
    min-height: 0;
    padding: 20px;
  }

  .home-product-card__image {
    min-height: 280px;
    padding: 20px;
  }

  .post-card__title {
    min-height: 0;
    line-height: 1.55;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-contact {
    grid-column: auto;
  }

  .site-footer__main {
    padding-block: 28px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__visual,
  .home-hero__content,
  .home-hero__story,
  .home-product-card {
    transform: none !important;
    transition: none !important;
  }
}

/* Theme contact form. */
.biocian-contact-form-wrap {
  width: 100%;
}

.biocian-contact-form {
  display: grid;
  gap: 20px;
}

.biocian-contact-form__field label {
  display: block;
  margin-bottom: 7px;
  color: var(--color-text);
  font-weight: 700;
}

.biocian-contact-form__field input,
.biocian-contact-form__field textarea {
  width: 100%;
  border: 1px solid #aebbb7;
  border-radius: 5px;
  color: var(--color-text);
  background: #fff;
  font: inherit;
  line-height: 1.5;
}

.biocian-contact-form__field input {
  min-height: 48px;
  padding: 10px 13px;
}

.biocian-contact-form__field textarea {
  min-height: 180px;
  padding: 12px 13px;
  resize: vertical;
}

.biocian-contact-form__field input:focus,
.biocian-contact-form__field textarea:focus {
  border-color: var(--color-green);
  outline: 3px solid rgba(19, 125, 100, 0.18);
  outline-offset: 1px;
}

.biocian-contact-form__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.biocian-contact-form__actions p {
  flex: 1 1 260px;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.biocian-contact-form__notice {
  margin-bottom: 20px;
  padding: 13px 15px;
  border: 1px solid;
  border-radius: 5px;
  line-height: 1.6;
}

.biocian-contact-form__notice.is-success {
  border-color: #80bca8;
  color: #07533e;
  background: #edf8f3;
}

.biocian-contact-form__notice.is-error {
  border-color: #d9a8a8;
  color: #762727;
  background: #fff5f5;
}

.biocian-contact-form__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 520px) {
  .biocian-contact-form__actions .button {
    width: 100%;
  }
}

/* Editorial title treatment for single posts. */
.single-post .article-intro--with-image {
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr);
  gap: 48px;
}

.single-post .article-intro .article-header {
  position: relative;
  padding-inline-start: 26px;
  text-align: start;
}

.single-post .article-intro .article-header::before {
  position: absolute;
  top: 4px;
  left: 0;
  width: 4px;
  height: 56px;
  background: var(--color-green);
  content: "";
}

.single-post .article-intro .article-header h1 {
  max-width: none;
  margin: 12px 0 16px;
  font-size: 2.1rem;
  font-weight: 750;
  line-height: 1.48;
  text-wrap: wrap;
  overflow-wrap: normal;
}

.single-post .article-intro .article-header .entry-categories {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  font-size: 0.82rem;
  font-weight: 800;
}

.single-post .article-intro .entry-meta {
  justify-content: flex-start;
}

.single-post .article-intro .share-actions--compact {
  justify-content: flex-start;
}

.single-post .article-intro:not(.article-intro--with-image) .article-header {
  width: 100%;
  margin-inline: auto;
}

@media (max-width: 1080px) {
  .single-post .article-intro--with-image {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
    gap: 32px;
  }

  .single-post .article-intro .article-header h1 {
    font-size: 2.05rem;
  }
}

/* Compact single-post header without a featured image. */
.single-post .content-area--article {
  padding-top: 16px;
}

.single-post .article-intro {
  width: min(100%, 1120px);
  margin-bottom: 28px;
}

.single-post .article-header__utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.single-post .article-header__utility .article-byline,
.single-post .article-header__utility .share-actions--compact {
  margin: 0;
}

.single-post .article-header__utility .article-byline > span {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.single-post .article-header__utility .article-byline small {
  display: none;
}

.single-post .article-byline__avatar {
  width: 36px;
  min-width: 36px;
  height: 36px;
}

.single-post .article-author {
  width: min(100%, 820px);
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding-block: 20px;
  margin-top: 36px;
}

.single-post .article-author__avatar {
  width: 56px;
  height: 56px;
}

.single-post .article-author h2 {
  font-size: 1.15rem;
}

.single-post .article-author__role {
  margin: 2px 0 6px;
  font-size: 0.8rem;
}

.single-post .article-author__bio {
  font-size: 0.88rem;
  line-height: 1.6;
}

.single-post .article-author__link {
  margin-top: 9px;
  font-size: 0.8rem;
}

@media (max-width: 760px) {
  .single-post .content-area--article {
    padding-top: 8px;
  }

  .single-post .content-area--article > .breadcrumbs {
    display: none;
  }

  .single-post .article-intro {
    margin-bottom: 16px;
  }

  .single-post .article-intro .article-header {
    padding-inline-start: 12px;
  }

  .single-post .article-intro .article-header::before {
    top: 2px;
    height: 34px;
  }

  .single-post .article-intro .article-header h1 {
    margin-block: 6px 9px;
    font-size: 1.55rem;
    line-height: 1.48;
  }

  .single-post .article-intro .article-header .entry-categories {
    min-height: 22px;
    font-size: 0.74rem;
  }

  .single-post .article-intro .entry-meta {
    flex-direction: row;
    align-items: center;
    gap: 3px 8px;
    font-size: 0.73rem;
    line-height: 1.4;
  }

  .single-post .article-intro .entry-meta:has(.article-date--updated) .article-date:not(.article-date--updated) {
    display: none;
  }

  .single-post .article-date > span {
    display: none;
  }

  .single-post .article-meta-separator {
    display: inline;
  }

  .single-post .article-header__utility {
    margin-top: 10px;
  }

  .single-post .article-byline {
    min-width: 0;
    gap: 7px;
  }

  .single-post .article-byline__avatar {
    width: 30px;
    min-width: 30px;
    height: 30px;
  }

  .single-post .article-byline__label,
  .single-post .article-byline small {
    display: none;
  }

  .single-post .article-byline a:not(.article-byline__avatar) {
    display: block;
    max-width: 19ch;
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .single-post .share-actions--compact .share-actions__buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
  }

  .single-post .share-actions--compact .share-button {
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 5px;
  }

  .single-post .share-actions--compact .share-button > span:not(.share-button__mark) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .single-post .article-author {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 11px;
    padding-block: 16px;
    margin-top: 28px;
  }

  .single-post .article-author__avatar {
    width: 44px;
    height: 44px;
  }

  .single-post .article-author__eyebrow {
    display: none;
  }

  .single-post .article-author h2 {
    font-size: 1rem;
  }

  .single-post .article-author__role {
    margin-bottom: 4px;
    font-size: 0.74rem;
  }

  .single-post .article-author__bio {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .single-post .article-author__link {
    margin-top: 7px;
    font-size: 0.76rem;
  }
}

/* Compact E-E-A-T author profile. Keep all profile data visible. */
.single-post .article-author {
  width: min(100%, 820px);
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 2px 12px;
  padding: 14px 16px;
  margin-top: 24px;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-green);
  border-radius: 4px;
  background: #fbfdfc;
}

.single-post .article-author__content {
  display: contents;
}

.single-post .article-author__avatar {
  width: 48px;
  height: 48px;
  grid-column: 1;
  grid-row: 1 / span 3;
}

.single-post .article-author__eyebrow,
.single-post .article-author h2,
.single-post .article-author__role {
  grid-column: 2;
}

.single-post .article-author__eyebrow {
  align-self: end;
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.25;
}

.single-post .article-author h2 {
  font-size: 1rem;
  line-height: 1.3;
}

.single-post .article-author__role {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.35;
}

.single-post .article-author__bio,
.single-post .article-author__details,
.single-post .article-author__link {
  grid-column: 1 / -1;
}

.single-post .article-author__bio {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.single-post .article-author__details {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 16px;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid var(--color-border);
  font-size: 0.76rem;
  line-height: 1.45;
}

.single-post .article-author__details > div {
  display: flex;
  grid-template-columns: none;
  gap: 4px;
}

.single-post .article-author__details dt {
  flex: 0 0 auto;
}

.single-post .article-author__details dt::after {
  content: ":";
}

.single-post .article-author__link {
  margin-top: 8px;
  font-size: 0.76rem;
}

@media (max-width: 760px) {
  .single-post .article-author {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 1px 10px;
    padding: 12px;
    margin-top: 20px;
  }

  .single-post .article-author__avatar {
    display: block;
    width: 40px;
    height: 40px;
  }

  .single-post .article-author__eyebrow {
    display: block;
    font-size: 0.65rem;
  }

  .single-post .article-author h2 {
    font-size: 0.92rem;
  }

  .single-post .article-author__role {
    font-size: 0.7rem;
  }

  .single-post .article-author__bio {
    margin-top: 7px;
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .single-post .article-author__details {
    grid-template-columns: 1fr;
    font-size: 0.72rem;
  }

  .single-post .article-author__link {
    margin-top: 7px;
    font-size: 0.72rem;
  }
}

.commerce-scope-notice {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 11px 14px;
  margin: 0 0 18px;
  border: 1px solid #bfd8cf;
  border-left: 3px solid var(--color-green);
  border-radius: 4px;
  background: #f5faf8;
  color: #31463e;
  font-size: 0.82rem;
  line-height: 1.5;
}

.commerce-scope-notice strong {
  color: #153d30;
  font-size: 0.86rem;
}

.single-product .commerce-scope-notice {
  margin-top: 16px;
}

.commerce-scope-notice--policy {
  margin-bottom: 24px;
}

@media (max-width: 760px) {
  .commerce-scope-notice {
    padding: 10px 12px;
    margin-bottom: 14px;
    font-size: 0.76rem;
  }

  .commerce-scope-notice strong {
    font-size: 0.8rem;
  }
}
