.knowledge-page .content-page {
  display: grid;
  gap: 24px;
}

.knowledge-hero,
.knowledge-article-hero {
  margin-bottom: 0;
}

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

.knowledge-topic-card {
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-md);
  color: var(--ui-ink);
  text-decoration: none;
  background:
    radial-gradient(circle at 100% 0%, rgba(78, 169, 90, 0.13), transparent 42%),
    #fff;
  box-shadow: var(--ui-shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.knowledge-topic-card:hover {
  border-color: rgba(47, 148, 55, 0.32);
  color: var(--ui-ink);
  box-shadow: var(--ui-shadow-md);
  transform: translateY(-3px);
}

.knowledge-topic-label {
  margin-bottom: 15px;
  color: var(--ui-green-dark);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.knowledge-topic-card h2 {
  margin: 0 0 12px;
  color: var(--ui-ink);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

.knowledge-topic-card p {
  margin: 0 0 26px;
  color: var(--ui-copy);
  line-height: 1.65;
}

.knowledge-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--ui-green-dark);
  font-weight: 750;
}

.knowledge-tools,
.knowledge-related {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.knowledge-tools h2,
.knowledge-related h2 {
  margin: 0 0 8px;
}

.knowledge-tools p:last-child {
  max-width: 700px;
  margin-bottom: 0;
}

.knowledge-tools .content-actions {
  flex: 0 0 auto;
  margin-top: 0;
}

.knowledge-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ui-copy);
  font-size: 0.9rem;
}

.knowledge-breadcrumb a {
  color: var(--ui-green-dark);
  font-weight: 700;
}

.knowledge-article {
  display: grid;
  gap: 24px;
}

.knowledge-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(275px, 0.75fr);
  align-items: start;
  gap: 22px;
}

.knowledge-copy {
  padding: clamp(28px, 5vw, 50px);
}

.knowledge-copy section + section {
  margin-top: 38px;
  padding-top: 34px;
  border-top: 1px solid var(--ui-line);
}

.knowledge-copy h2 {
  margin: 0 0 15px;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
}

.knowledge-copy p {
  margin: 0 0 15px;
  font-size: 1rem;
  line-height: 1.78;
}

.knowledge-copy p:last-child {
  margin-bottom: 0;
}

.knowledge-sidebar {
  position: sticky;
  top: 104px;
}

.knowledge-facts dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.knowledge-facts dl div {
  display: grid;
  gap: 5px;
  padding: 15px 0;
  border-bottom: 1px solid var(--ui-line);
}

.knowledge-facts dt {
  color: var(--ui-copy);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.knowledge-facts dd {
  margin: 0;
  color: var(--ui-ink);
  font-weight: 750;
}

.knowledge-facts .ui-button {
  width: 100%;
}

.knowledge-related ul {
  min-width: min(100%, 430px);
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.knowledge-related li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--ui-line);
  color: var(--ui-ink);
  font-weight: 700;
  text-decoration: none;
}

.knowledge-related li a:hover {
  color: var(--ui-green-dark);
}

@media (max-width: 850px) {
  .knowledge-layout,
  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-sidebar {
    position: static;
  }

  .knowledge-topic-card {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .knowledge-tools,
  .knowledge-related {
    align-items: stretch;
    flex-direction: column;
  }

  .knowledge-tools .content-actions {
    width: 100%;
  }

  .knowledge-tools .ui-button {
    flex: 1 1 100%;
  }

  .knowledge-related ul {
    width: 100%;
    min-width: 0;
  }
}
