/* Buyer-task repairs: scoped home actions, mobile guide navigation and four topic archives. */
html body.oko-multilingual .feature-section .text-link {
  color: #1e3653;
  text-decoration: underline;
  text-underline-offset: 4px;
}
html body.oko-fees-localized .feature-card p + p { margin-top: 12px; }
html body.oko-fees-localized .feature-card a {
  display: inline-block;
  margin-top: 16px;
  color: #1e3653;
  font-weight: 650;
  text-underline-offset: 4px;
}
@media (min-width: 981px) {
  html body.oko-fees-localized .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 701px) and (max-width: 980px) {
  html body.oko-fees-localized .feature-card:last-child { grid-column: 1 / -1; }
}
html body[data-oko-kind="home"] #main .xsg-home-hero__actions .xsg-button {
  white-space: normal;
  text-align: start;
}
html body[data-oko-kind="home"] #main .xsg-home-hero__actions .xsg-button > span:first-child {
  min-width: 0;
}

/* The existing guide aside remains the desktop navigation. */
html body.oko-preview #primary.xsg-sourcing-agent-unified .oko-mobile-guide-toc {
  display: none;
}
@media (max-width: 980px) {
  html body.oko-preview #primary.xsg-sourcing-agent-unified .oko-mobile-guide-toc {
    display: block;
    box-sizing: border-box;
    width: min(1180px, calc(100% - 40px));
    margin: 24px auto 0;
    border: 1px solid #c8d8e5;
    border-radius: 14px;
    background: #f4f7fa;
    color: #1e3653;
  }
  html body.oko-preview #primary.xsg-sourcing-agent-unified .oko-mobile-guide-toc > summary {
    padding: 16px 18px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.4;
    color: #1e3653;
  }
  html body.oko-preview #primary.xsg-sourcing-agent-unified .oko-mobile-guide-toc nav {
    display: grid;
    gap: 2px;
    padding: 0 12px 12px;
  }
  html body.oko-preview #primary.xsg-sourcing-agent-unified .oko-mobile-guide-toc a {
    display: block;
    min-width: 0;
    padding: 12px 10px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 550;
    line-height: 1.45;
    color: #1e3653;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
  }
  html body.oko-preview #primary.xsg-sourcing-agent-unified .oko-mobile-guide-toc a:hover {
    background: #dceeff;
  }
  html body.oko-preview #primary.xsg-sourcing-agent-unified .oko-mobile-guide-toc :is(summary, a):focus-visible {
    outline: 3px solid #1e3653;
    outline-offset: 3px;
  }
}

/* Reuse the service illustration language for the legacy topic cards. */
html body.oko-preview:is(.category-product-development, .category-supplier-management, .category-logistics-compliance, .category-retail-readiness) #oko-content .ast-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}
html body.oko-preview:is(.category-product-development, .category-supplier-management, .category-logistics-compliance, .category-retail-readiness) #oko-content article.ast-article-post {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  float: none;
  border: 0;
  background: transparent;
}
html body.oko-preview:is(.category-product-development, .category-supplier-management, .category-logistics-compliance, .category-retail-readiness) #oko-content .ast-article-inner {
  height: 100%;
  padding: 0;
  border: 1px solid #dce5ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}
html body.oko-preview:is(.category-product-development, .category-supplier-management, .category-logistics-compliance, .category-retail-readiness) #oko-content .post-content {
  width: 100%;
  min-width: 0;
  padding: 22px;
}
html body.oko-preview:is(.category-product-development, .category-supplier-management, .category-logistics-compliance, .category-retail-readiness) #oko-content .ast-blog-featured-section {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: #f4f7fa;
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
}
html body.oko-preview:is(.category-product-development, .category-supplier-management, .category-logistics-compliance, .category-retail-readiness) #oko-content .oko-topic-card-image {
  display: block;
  width: 100%;
  height: 190px;
  max-width: 100%;
  padding: 10px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
html body.oko-preview:is(.category-product-development, .category-supplier-management, .category-logistics-compliance, .category-retail-readiness) #oko-content .entry-title {
  margin: 12px 0;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -.025em;
}
html body.oko-preview:is(.category-product-development, .category-supplier-management, .category-logistics-compliance, .category-retail-readiness) #oko-content .entry-title a {
  color: #1e3653;
}
html body.oko-preview:is(.category-product-development, .category-supplier-management, .category-logistics-compliance, .category-retail-readiness) #oko-content :is(.cat-links, .entry-meta, .entry-meta a, .entry-meta span) {
  color: #405b73;
  font-size: 12px;
  line-height: 1.55;
}
html body.oko-preview:is(.category-product-development, .category-supplier-management, .category-logistics-compliance, .category-retail-readiness) #oko-content .ast-excerpt-container p {
  margin: 16px 0 0;
  color: #405b73;
  font-size: 15px;
  line-height: 1.65;
}
html body.oko-preview.category-logistics-compliance #oko-content .ast-row {
  grid-template-columns: minmax(0, 720px);
}
@media (max-width: 1024px) {
  html body.oko-preview:is(.category-product-development, .category-supplier-management, .category-retail-readiness) #oko-content .ast-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  html body.oko-preview:is(.category-product-development, .category-supplier-management, .category-logistics-compliance, .category-retail-readiness) #oko-content .ast-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  html body.oko-preview:is(.category-product-development, .category-supplier-management, .category-logistics-compliance, .category-retail-readiness) #oko-content .entry-title {
    font-size: 22px;
  }
}
/* Back to top: square white chevron, aligned above the existing WhatsApp control. */
html body.oko-preview .oko-back-to-top {
  position: fixed;
  right: calc(32px + env(safe-area-inset-right, 0px));
  bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  z-index: 1490;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 4px;
  background: #1e3653 !important;
  color: #fff !important;
  box-shadow: 0 3px 12px rgba(30, 54, 83, .18);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
html body.oko-preview .oko-back-to-top[hidden] { display: none !important; }
html body.oko-preview .oko-back-to-top:is(:hover, :active) { background: #2d527b !important; }
html body.oko-preview .oko-back-to-top:focus-visible {
  outline: 3px solid #1e3653;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}
html body.oko-preview .oko-back-to-top__icon {
  display: block;
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border: 0;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  transform: rotate(45deg);
  pointer-events: none;
}
@media (max-width: 640px) {
  html body.oko-preview .oko-back-to-top {
    right: calc(21px + env(safe-area-inset-right, 0px));
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }
}
@media print { html body.oko-preview .oko-back-to-top { display: none !important; } }
