/* Polished TEKARIVO Product Knowledge visual system (EN & ES) */
.knowledge-hero-band {
  background: #071525;
  color: #fff;
  padding: clamp(44px, 5vw, 68px) 20px clamp(36px, 4vw, 48px);
}

.knowledge-hero-inner {
  max-width: 980px;
  margin: 0 auto;
}

.knowledge-main {
  max-width: 980px;
  padding: clamp(12px, 2vw, 24px) 0 88px;
}

/* 1. Centered Hero & Search Axis */
.knowledge-hero-inner > h1 {
  text-align: center;
  font-size: clamp(34px, 3.8vw, 50px);
  line-height: 1.12;
  letter-spacing: -.03em;
  color: #ffffff;
  margin: 0;
}

.knowledge-hero-inner > .knowledge-intro {
  max-width: 62ch;
  margin: 16px auto 30px;
  text-align: center;
  font-size: 16.5px;
  line-height: 1.68;
  color: #c7d9e2;
}

.knowledge-hero-inner .knowledge-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto 24px;
  font: 700 13px/1.4 'DM Sans', Arial, sans-serif;
  color: #d6e6ee;
  letter-spacing: .01em;
}

.knowledge-hero-inner .knowledge-search input {
  width: 100%;
  height: 52px;
  padding: 12px 18px 12px 46px;
  font: 500 15.5px/1.4 'DM Sans', Arial, sans-serif;
  color: #092331;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23547079' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 16px center;
  border: 1.5px solid #c9dae0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.knowledge-hero-inner .knowledge-search input:focus {
  outline: none;
  background-color: #fff;
  border-color: #14b8a6;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .25);
}

/* 2. Centered Pill Filter Tabs */
.knowledge-hero-inner .knowledge-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 22px;
}

.knowledge-hero-inner .knowledge-tabs button {
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #e6f0f5;
  font: 600 13.5px/1.3 'DM Sans', Arial, sans-serif;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.knowledge-hero-inner .knowledge-tabs button:hover:not([aria-pressed="true"]) {
  border-color: rgba(255, 255, 255, .52);
  background: rgba(255, 255, 255, .16);
  color: #ffffff;
}

.knowledge-hero-inner .knowledge-tabs button[aria-pressed="true"] {
  background: #ffffff;
  border-color: #ffffff;
  color: #071525;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

.knowledge-hero-inner .knowledge-count {
  text-align: center;
  margin: 0;
  font: 600 13px/1.4 'DM Sans', Arial, sans-serif;
  color: #9bb6c4;
}

/* 3. Topic Sections & Modern Accordion Cards */
.knowledge-main .knowledge-answers section {
  margin-top: 44px;
}

.knowledge-main .knowledge-answers h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.25;
  letter-spacing: -.02em;
  color: #092331;
}

.knowledge-main .knowledge-answers h2::before {
  content: "";
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: #e67e22;
  flex-shrink: 0;
}

.knowledge-main .knowledge-answers details {
  border: 1px solid #f6cfa5;
  box-shadow: 0 2px 10px rgba(217, 119, 6, .07);
  border-radius: 12px;
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.knowledge-main .knowledge-answers details:last-child {
  border-bottom: 1px solid #f6cfa5;
  margin-bottom: 0;
}

.knowledge-main .knowledge-answers details:hover {
  border-color: #eb9c4d;
  box-shadow: 0 8px 22px rgba(217, 119, 6, .14);
}

.knowledge-main .knowledge-answers details[open] {
  border-color: #d97706;
  box-shadow: 0 8px 24px rgba(9, 35, 49, .06);
}

.knowledge-main .knowledge-answers summary {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  list-style: none;
  min-height: 58px;
  box-sizing: border-box;
  padding: 18px 52px 18px 22px;
  font: 700 16.5px/1.45 Manrope, 'DM Sans', Arial, sans-serif;
  color: #092331;
  background: #fff3e6;
  color: #092331;
  transition: background-color .18s ease;
}

.knowledge-main .knowledge-answers summary::-webkit-details-marker {
  display: none;
}

.knowledge-main .knowledge-answers summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #f0be88;
  color: #b45309;
  display: grid;
  place-items: center;
  font: 600 19px/1 Arial, sans-serif;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.knowledge-main .knowledge-answers details:hover > summary {
  background: #ffe7cc;
}

.knowledge-main .knowledge-answers details[open] > summary,
.knowledge-main .knowledge-answers .knowledge-scenario[open] > summary {
  background: #ffdfb8;
  border-bottom: 1px solid #f0b678;
}

.knowledge-main .knowledge-answers details[open] > summary::after {
  content: "−";
  background: #d97706;
  border-color: #d97706;
  color: #fff;
}

/* Buying guide pill badge */
.knowledge-main .knowledge-scenario-label {
  display: inline-flex;
  align-items: center;
  margin-left: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #f2b879;
  color: #b45309;
  font: 700 11px/1.3 'DM Sans', Arial, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Simple FAQ paragraph body */
.knowledge-main .knowledge-answers details > p {
  margin: 0;
  padding: 20px 24px 24px;
  max-width: 78ch;
  color: #3d5863;
  font-size: 15.5px;
  line-height: 1.75;
}

/* Detailed Purchasing Guidance body */
.knowledge-main .knowledge-answers .purchasing-guidance {
  padding: 22px 24px 12px;
}

.knowledge-main .purchasing-guidance .pg-answer {
  margin: 0 0 20px;
  padding: 14px 18px;
  background: #fff8f0;
  border-left: 3.5px solid #e67e22;
  border-radius: 0 8px 8px 0;
  color: #092331;
  font: 600 16px/1.65 'DM Sans', Arial, sans-serif;
  max-width: none;
}

.knowledge-main .purchasing-guidance dl {
  margin: 0 0 18px;
  max-width: none;
}

.knowledge-main .purchasing-guidance dl > div {
  padding: 14px 0;
  border-top: 1px solid #e6eef0;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
}

.knowledge-main .purchasing-guidance dt {
  font: 700 13.5px/1.55 'DM Sans', Arial, sans-serif;
  color: #092331;
}

.knowledge-main .purchasing-guidance dd {
  margin: 0;
  color: #425c66;
  font: 400 15px/1.7 'DM Sans', Arial, sans-serif;
  max-width: none;
}

.knowledge-main .purchasing-guidance .pg-editorial {
  font-size: 13px;
  color: #607882;
  margin: 0 0 10px;
}

.knowledge-main .pg-sources {
  margin: 14px 0 8px;
  padding: 12px 16px;
  background: #f8fafb;
  border-radius: 8px;
  font-size: 13px;
}

.knowledge-main .pg-sources strong {
  color: #092331;
}

.knowledge-main .knowledge-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 24px 22px;
  padding: 9px 16px;
  border: 1px solid #d97706;
  border-radius: 8px;
  background: #fff;
  color: #b45309;
  font: 700 13.5px/1.3 'DM Sans', Arial, sans-serif;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}

.knowledge-main .knowledge-guide-link::after {
  content: "↗";
  font-size: 14px;
}

.knowledge-main .knowledge-guide-link:hover {
  background: #e67e22;
  color: #fff;
}

/* 4. Bottom CTA Card ("Need to confirm a model?") */
.knowledge-main .knowledge-note {
  margin-top: 56px;
  padding: 36px 40px;
  border-radius: 16px;
  background: linear-gradient(135deg, #071824 0%, #0e3240 100%);
  color: #fff;
  box-shadow: 0 14px 36px rgba(7, 24, 36, .14);
}

.knowledge-main .knowledge-note h2 {
  color: #fff;
  font-size: clamp(22px, 2.2vw, 28px);
  margin: 0 0 10px;
}

.knowledge-main .knowledge-note p {
  color: #c8dae2;
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 62ch;
  margin: 0 0 24px;
}

.knowledge-main .knowledge-note > a {
  border-radius: 8px;
  min-height: 46px;
  padding: 12px 22px;
  font-weight: 700;
  transition: transform .18s ease, opacity .18s ease;
}

.knowledge-main .knowledge-note > a:first-of-type {
  background: #fff;
  color: #071824;
}

.knowledge-main .knowledge-note > a:last-child {
  background: #10b981;
  color: #042118;
}

.knowledge-main .knowledge-note > a:hover {
  transform: translateY(-2px);
  opacity: .95;
}

/* Empty state */
.knowledge-main .knowledge-empty {
  text-align: center;
  padding: 36px 24px;
  border: 1px dashed #cbd8dc;
  border-radius: 12px;
  margin-top: 24px;
}

.knowledge-main .knowledge-empty button {
  border-radius: 8px;
  margin-top: 8px;
}

/* Mobile polish */
@media (max-width: 700px) {
  .knowledge-hero-band { padding: 34px 16px 28px; }
  .knowledge-main { padding: 10px 0 60px; }
  .knowledge-hero-inner > h1 { font-size: 32px; }
  .knowledge-hero-inner > .knowledge-intro { font-size: 15px; margin-bottom: 24px; }
  .knowledge-hero-inner .knowledge-tabs { justify-content: flex-start; gap: 8px; }
  .knowledge-hero-inner .knowledge-tabs button { padding: 7px 14px; font-size: 13px; }
  .knowledge-main .knowledge-answers section { margin-top: 34px; }
  .knowledge-main .knowledge-answers h2 { font-size: 21px; margin-bottom: 14px; }
  .knowledge-main .knowledge-answers summary { padding: 16px 48px 16px 16px; font-size: 15.5px; }
  .knowledge-main .knowledge-answers summary::after { right: 14px; width: 26px; height: 26px; }
  .knowledge-main .knowledge-answers details > p { padding: 16px 16px 20px; font-size: 15px; }
  .knowledge-main .knowledge-answers .purchasing-guidance { padding: 16px 16px 10px; }
  .knowledge-main .purchasing-guidance dl > div { grid-template-columns: 1fr; gap: 6px; }
  .knowledge-main .knowledge-guide-link { margin: 4px 16px 18px; }
  .knowledge-main .knowledge-note { padding: 28px 22px; margin-top: 40px; }
}
