/* Scoped styles for KONA 8-locale /oem-odm/ & /solutions/ (VMC + Mustad + BKK B2B benchmark) */
html[data-kona-section="oem-odm"] main,
html[data-kona-section="solutions"] main {
  color: #0F172A;
  background: #FFFFFF;
}

.kos-wrap {
  width: min(1220px, calc(100% - 32px));
  margin-inline: auto;
}

.kos-hero {
  background: linear-gradient(135deg, #0F172A 0%, #14213D 58%, #2E1A66 100%);
  color: #FFFFFF;
  padding: 36px 0 34px;
  border-bottom: 3px solid #512DA8;
}

.kos-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C4B5FD;
}

.kos-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3.1vw, 38px);
  line-height: 1.18;
  font-weight: 900;
  color: #FFFFFF;
}

.kos-direct-answer {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(196, 181, 253, 0.35);
  border-left: 4px solid #A78BFA;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.62;
  color: #F1F5F9;
}

.kos-direct-answer strong {
  color: #FFFFFF;
}

.kos-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.kos-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 12.5px;
  font-weight: 700;
  color: #F8FAFC;
}

.kos-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.kos-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.12s ease, opacity 0.12s ease;
  box-sizing: border-box;
  text-align: center;
  max-width: 100%;
}

.kos-btn:hover {
  transform: translateY(-1px);
}

.kos-btn--primary {
  background: #512DA8;
  color: #FFFFFF !important;
  border-color: #7C5AE6;
}

.kos-btn--wa {
  background: #15803D;
  color: #FFFFFF !important;
  border-color: #22C55E;
}

.kos-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.38);
}

.kos-btn--light {
  background: #FFFFFF;
  color: #3F208A !important;
  border-color: #CBD5E1;
}

.kos-role-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-top: 6px;
}

.kos-role-label {
  font-size: 13px;
  font-weight: 700;
  color: #CBD5E1;
  margin-inline-end: 4px;
}

.kos-role-btn,
.kos-pill-btn {
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.kos-role-btn.is-active,
.kos-pill-btn.is-active {
  background: #FFFFFF;
  color: #3F208A;
  border-color: #FFFFFF;
}

.kos-sec {
  padding: 36px 0;
  border-bottom: 1px solid #E2E8F0;
}

.kos-sec--alt {
  background: #F8FAFC;
}

.kos-sec-head {
  margin-bottom: 20px;
}

.kos-sec-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #512DA8;
}

.kos-sec-head h2 {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.25;
  color: #0F172A;
  font-weight: 900;
}

.kos-sec-sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
  max-width: 78ch;
}

/* Data tables with automatic <=768px card stacking */
.kos-table-wrap {
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  overflow: hidden;
  background: #FFFFFF;
}

.kos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}

.kos-table th,
.kos-table td {
  padding: 13px 14px;
  text-align: start;
  vertical-align: top;
  border-bottom: 1px solid #E2E8F0;
}

.kos-table thead th {
  background: #14213D;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 13.5px;
}

.kos-table tbody tr:last-child th,
.kos-table tbody tr:last-child td {
  border-bottom: 0;
}

.kos-table tbody tr:nth-child(even) {
  background: #F8FAFC;
}

.kos-table tbody th {
  font-weight: 800;
  color: #14213D;
  width: 20%;
}

.kos-inline-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

/* Grids */
.kos-5step {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.kos-step-card,
.kos-card {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kos-step-num {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  background: #EDE9FE;
  color: #3F208A;
  font-size: 12px;
  font-weight: 900;
}

.kos-step-card h3,
.kos-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  color: #0F172A;
  font-weight: 800;
}

.kos-step-card p,
.kos-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}

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

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

.kos-4grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* Real Gao'an facility photo cards */
.kos-media-card {
  margin: 0;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.kos-media-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #E2E8F0;
}

.kos-media-card figcaption {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #1E293B;
  font-weight: 700;
}

.kos-video-box {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  background: #14213D;
  color: #FFFFFF;
  border-radius: 14px;
  padding: 18px;
}

.kos-video-box video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #0F172A;
  display: block;
}

.kos-video-copy h3 {
  margin: 0 0 8px;
  color: #FFFFFF;
  font-size: 19px;
}

.kos-video-copy p {
  margin: 0 0 12px;
  color: #E2E8F0;
  font-size: 14.5px;
  line-height: 1.55;
}

/* Interactive OEM RFQ Configurator */
.kos-rfq-box {
  background: #FFFFFF;
  border: 2px solid #512DA8;
  border-radius: 14px;
  padding: 22px;
  position: relative;
}

.kos-rfq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-bottom: 14px;
}

.kos-rfq-grid label {
  display: grid;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 800;
  color: #14213D;
}

.kos-rfq-grid input,
.kos-rfq-grid select,
.kos-rfq-grid textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  padding: 9px 12px;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  font-size: 14.5px;
  color: #0F172A;
  background: #FFFFFF;
}

.kos-rfq-full {
  grid-column: 1 / -1;
}

.kos-trap {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.kos-rfq-status {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.kos-rfq-status.is-error {
  background: #FEF2F2;
  color: #991B1B;
  border-color: #FECACA;
}

.kos-rfq-status[hidden] {
  display: none;
}

/* Folded deep details */
.kos-fold {
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  background: #FFFFFF;
  padding: 14px 16px;
}

.kos-fold + .kos-fold {
  margin-top: 12px;
}

.kos-fold summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 15.5px;
  color: #14213D;
  list-style: none;
}

.kos-fold summary::-webkit-details-marker {
  display: none;
}

.kos-fold[open] summary {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E2E8F0;
}

/* Scenario cards on /solutions/ */
.kos-filter-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.kos-filter-count {
  font-size: 13px;
  font-weight: 700;
  color: #E2E8F0;
  margin-inline-start: auto;
}

.kos-scene-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.kos-scene-card {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.kos-scene-card[hidden] {
  display: none !important;
}

.kos-scene-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.kos-scene-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #EDE9FE;
  color: #3F208A;
  font-size: 12px;
  font-weight: 800;
}

.kos-scene-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  color: #14213D;
  font-weight: 900;
}

.kos-sku-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kos-sku-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 6px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #14213D !important;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
}

.kos-sku-chip:hover {
  border-color: #512DA8;
  color: #3F208A !important;
}

.kos-spec-dl {
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #334155;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 12px;
}

.kos-spec-dl div {
  margin: 0;
}

.kos-spec-dl dt {
  display: inline;
  font-weight: 800;
  color: #14213D;
}

.kos-spec-dl dd {
  display: inline;
  margin: 0;
}

.kos-scene-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

/* FAQ accordion */
.kos-faq-list {
  display: grid;
  gap: 10px;
}

.kos-faq {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 13px 16px;
}

.kos-faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 15.5px;
  color: #14213D;
}

.kos-faq-body {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #334155;
}

/* Mobile adaptation <= 768px (390x844 & 360x800 zero horizontal overflow) */
@media (max-width: 1024px) {
  .kos-5step {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kos-4grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kos-3grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kos-video-box {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .kos-2grid,
  .kos-3grid,
  .kos-4grid,
  .kos-5step,
  .kos-scene-grid,
  .kos-rfq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .kos-filter-wrap {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .kos-table thead {
    display: none;
  }

  .kos-table,
  .kos-table tbody,
  .kos-table tr,
  .kos-table th,
  .kos-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .kos-table tr {
    border-bottom: 2px solid #CBD5E1;
    padding: 8px 0;
  }

  .kos-table tr:last-child {
    border-bottom: 0;
  }

  .kos-table th,
  .kos-table td {
    border-bottom: 1px solid #F1F5F9;
    padding: 8px 12px;
  }

  .kos-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    color: #512DA8;
    text-transform: uppercase;
    margin-bottom: 2px;
  }

  .kos-btn {
    width: 100%;
  }

  html[data-kona-section="oem-odm"] footer.kona-u-footer,
  html[data-kona-section="solutions"] footer.kona-u-footer {
    padding-bottom: 96px !important;
  }
}

@media (min-width: 1100px) and (max-width: 1360px) {
  html[data-kona-section="oem-odm"] .kona-u-nav-in,
  html[data-kona-section="solutions"] .kona-u-nav-in {
    gap: 8px !important;
    padding-inline: 12px !important;
  }
  html[data-kona-section="oem-odm"] .kona-u-logo img,
  html[data-kona-section="solutions"] .kona-u-logo img {
    max-width: 126px !important;
  }
  html[data-kona-section="oem-odm"] .kona-u-nav,
  html[data-kona-section="solutions"] .kona-u-nav {
    gap: 9px !important;
  }
  html[data-kona-section="oem-odm"] .kona-u-nav > li > a,
  html[data-kona-section="solutions"] .kona-u-nav > li > a {
    padding-inline: 2px !important;
    font-size: 12.5px !important;
  }
  html[data-kona-section="oem-odm"] .kona-u-right,
  html[data-kona-section="solutions"] .kona-u-right {
    gap: 6px !important;
  }
  html[data-kona-section="oem-odm"] .kona-u-search input,
  html[data-kona-section="solutions"] .kona-u-search input {
    width: 88px !important;
  }
  html[data-kona-section="oem-odm"] .kona-u-cta,
  html[data-kona-section="solutions"] .kona-u-cta {
    padding-inline: 9px !important;
    font-size: 12.5px !important;
  }
}
