.knowledge-page .page-shell {
  background:
    radial-gradient(circle at 92% 4%, rgba(76, 163, 87, .18), transparent 28%),
    radial-gradient(circle at 9% 8%, rgba(255, 255, 255, .92), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(246,237,219,.97));
}

.knowledge-hero {
  min-height: 330px;
  padding: 78px 18px 48px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: 42px;
}

.knowledge-hero-copy { max-width: 940px; }
.knowledge-eyebrow {
  min-height: 38px;
  padding: 0 15px;
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(35,117,54,.22);
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(47,120,57,.08);
  font-size: 13px;
  font-weight: 900;
}
.knowledge-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(54px, 5.4vw, 86px);
  line-height: .94;
  letter-spacing: -4px;
  font-weight: 950;
}
.knowledge-hero p {
  max-width: 820px;
  margin: 0;
  color: #302b25;
  font-size: 19px;
  line-height: 1.55;
  font-weight: 540;
}
.knowledge-hero-meta {
  width: 215px;
  min-height: 175px;
  padding: 24px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(35,117,54,.22);
  border-radius: 28px;
  background: rgba(255,255,255,.58);
  box-shadow: 0 18px 38px rgba(45,77,42,.08);
}
.knowledge-hero-meta strong { color: var(--green-dark); font-size: 60px; line-height: .9; font-weight: 950; }
.knowledge-hero-meta span { margin-top: 11px; color: #39332b; font-size: 14px; font-weight: 850; }
.knowledge-hero-meta small { margin-top: 8px; color: #6e665d; font-size: 10px; }

.knowledge-browser {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,250,241,.72);
  box-shadow: 0 18px 42px rgba(61,44,19,.06);
}
.knowledge-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 20px; }
.knowledge-toolbar > p { margin: 0; color: #635b52; font-size: 13px; white-space: nowrap; }
.knowledge-toolbar > p strong { color: var(--green-dark); }
.knowledge-search { min-height: 58px; display: grid; grid-template-columns: 24px minmax(0,1fr) 38px; align-items: center; gap: 10px; padding: 0 10px 0 18px; border: 1px solid rgba(38,74,43,.20); border-radius: 18px; background: #fff; }
.knowledge-search:focus-within { border-color: #369345; box-shadow: 0 0 0 3px rgba(54,147,69,.10); }
.knowledge-search > i { color: var(--green-dark); }
.knowledge-search input { width: 100%; border: 0; outline: 0; color: #181b18; background: transparent; font: inherit; font-size: 15px; }
.knowledge-search button { width: 36px; height: 36px; border: 0; border-radius: 11px; color: #536057; background: #edf0eb; cursor: pointer; }
.knowledge-filters { margin: 20px 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.knowledge-filters button { min-height: 38px; padding: 0 12px; border: 1px solid rgba(35,117,54,.17); border-radius: 999px; color: #2b5232; background: rgba(72,169,86,.06); cursor: pointer; font: inherit; font-size: 11px; font-weight: 820; }
.knowledge-filters button span { margin-left: 4px; opacity: .62; }
.knowledge-filters button.is-active { color: #fff; border-color: #237536; background: #237536; }
.knowledge-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: start; }
.knowledge-card { scroll-margin-top: 24px; border: 1px solid rgba(213,199,174,.92); border-radius: 20px; background: rgba(255,255,255,.64); overflow: clip; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.knowledge-card:hover { border-color: rgba(35,117,54,.34); box-shadow: 0 14px 30px rgba(45,77,42,.08); }
.knowledge-card:target { border-color: #237536; box-shadow: 0 0 0 4px rgba(35,117,54,.12), 0 18px 36px rgba(45,77,42,.12); }
.knowledge-card[hidden] { display: none; }
.knowledge-card details > summary { min-height: 200px; padding: 20px; display: flex; flex-direction: column; list-style: none; cursor: pointer; }
.knowledge-card details > summary::-webkit-details-marker { display: none; }
.knowledge-category { width: fit-content; padding: 5px 8px; border-radius: 8px; color: #21672e; background: rgba(72,169,86,.10); font-size: 9px; font-weight: 950; letter-spacing: .04em; text-transform: uppercase; }
.knowledge-card summary > strong { margin-top: 14px; color: #151915; font-size: 20px; line-height: 1.2; font-weight: 950; }
.knowledge-summary { margin-top: 9px; color: #504b44; font-size: 13px; line-height: 1.58; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.knowledge-open { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; color: #237536; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.knowledge-open i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #237536; transition: transform .2s ease; }
.knowledge-card details[open] .knowledge-open i { transform: rotate(45deg); }
.knowledge-card details[open] .knowledge-summary { display: block; }
.knowledge-content { padding: 0 20px 22px; border-top: 1px solid rgba(35,73,40,.10); }
.knowledge-content section { margin-top: 16px; padding: 14px 15px; border-radius: 14px; background: rgba(235,240,233,.72); }
.knowledge-content section.is-warning { color: #603f1d; background: #fff1d9; }
.knowledge-content h2 { margin: 0 0 8px; color: #205b2a; font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .04em; }
.knowledge-content ul, .knowledge-content ol { margin: 0; padding-left: 19px; }
.knowledge-content li { margin: 5px 0; color: #373d38; font-size: 12px; line-height: 1.5; }
.knowledge-content footer { margin-top: 18px; padding-top: 15px; border-top: 1px solid rgba(35,73,40,.11); }
.knowledge-content footer > div:first-child { display: flex; align-items: center; gap: 6px; color: #507057; font-size: 9px; font-weight: 800; }
.knowledge-sources { margin-top: 10px; display: grid; gap: 6px; }
.knowledge-sources > span { color: #6a716c; font-size: 9px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.knowledge-sources a { width: fit-content; color: #176026; font-size: 10px; line-height: 1.35; text-decoration: underline; text-underline-offset: 2px; }
.knowledge-empty { padding: 56px 20px; text-align: center; color: #556059; }
.knowledge-empty[hidden] { display: none; }
.knowledge-empty i { display: block; margin-bottom: 14px; color: #237536; font-size: 36px; }
.knowledge-empty strong { color: #1f2821; font-size: 18px; }
.knowledge-empty p { margin: 8px 0 0; font-size: 13px; }
.knowledge-accuracy { margin-top: 24px; padding: 25px 28px; display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 18px; align-items: center; border-radius: 24px; color: #eaf4eb; background: linear-gradient(135deg,#1e2922,#121814); }
.knowledge-accuracy > i { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: #18301d; background: #64d56f; font-size: 19px; }
.knowledge-accuracy strong { font-size: 16px; font-weight: 950; }
.knowledge-accuracy p { margin: 5px 0 0; color: rgba(234,244,235,.72); font-size: 12px; line-height: 1.55; }

html[data-theme="dark"] .knowledge-page .page-shell { background: radial-gradient(circle at 90% 4%,rgba(50,135,62,.14),transparent 28%),#020504; }
html[data-theme="dark"] .knowledge-hero h1 { color: #f4f7f4; }
html[data-theme="dark"] .knowledge-hero p { color: #bdc7be; }
html[data-theme="dark"] .knowledge-eyebrow { color: #91e99d; border-color: rgba(105,220,121,.28); background: rgba(91,213,104,.08); }
html[data-theme="dark"] .knowledge-hero-meta, html[data-theme="dark"] .knowledge-browser { border-color: rgba(104,151,113,.20); background: rgba(11,16,13,.86); }
html[data-theme="dark"] .knowledge-hero-meta strong, html[data-theme="dark"] .knowledge-toolbar > p strong { color: #83df90; }
html[data-theme="dark"] .knowledge-hero-meta span { color: #e1e8e2; }
html[data-theme="dark"] .knowledge-hero-meta small, html[data-theme="dark"] .knowledge-toolbar > p { color: #aeb9b0; }
html[data-theme="dark"] .knowledge-search { border-color: rgba(104,151,113,.24); background: #111713; }
html[data-theme="dark"] .knowledge-search:focus-within { border-color: #64d56f; box-shadow: 0 0 0 3px rgba(100,213,111,.14); }
html[data-theme="dark"] .knowledge-search > i { color: #83df90; }
html[data-theme="dark"] .knowledge-search input { color: #eef4ef; }
html[data-theme="dark"] .knowledge-search input::placeholder { color: #879289; opacity: 1; }
html[data-theme="dark"] .knowledge-search button { color: #c4cec5; background: #202822; }
html[data-theme="dark"] .knowledge-filters button { color: #afe8b7; border-color: rgba(91,213,104,.20); background: rgba(91,213,104,.06); }
html[data-theme="dark"] .knowledge-filters button:hover { border-color: rgba(91,213,104,.38); background: rgba(91,213,104,.13); }
html[data-theme="dark"] .knowledge-filters button.is-active { color: #071109; border-color: #64d56f; background: #64d56f; }
html[data-theme="dark"] .knowledge-card { border-color: rgba(104,151,113,.18); background: rgba(16,22,18,.91); }
html[data-theme="dark"] .knowledge-card:hover { border-color: rgba(100,213,111,.36); box-shadow: 0 14px 30px rgba(0,0,0,.22); }
html[data-theme="dark"] .knowledge-card:target { border-color: #64d56f; box-shadow: 0 0 0 4px rgba(100,213,111,.13), 0 18px 36px rgba(0,0,0,.28); }
html[data-theme="dark"] .knowledge-card summary > strong, html[data-theme="dark"] .knowledge-empty strong { color: #eef4ef; }
html[data-theme="dark"] .knowledge-category { color: #9be3a5; background: rgba(91,213,104,.10); }
html[data-theme="dark"] .knowledge-summary { color: #bac4bc; }
html[data-theme="dark"] .knowledge-open, html[data-theme="dark"] .knowledge-content h2 { color: #83df90; }
html[data-theme="dark"] .knowledge-content { border-color: rgba(104,151,113,.16); }
html[data-theme="dark"] .knowledge-content section { background: #171e19; }
html[data-theme="dark"] .knowledge-content section.is-warning { color: #f2d6a6; background: #2b2113; }
html[data-theme="dark"] .knowledge-content section.is-warning h2 { color: #f1c86e; }
html[data-theme="dark"] .knowledge-content li { color: #d7ded8; }
html[data-theme="dark"] .knowledge-content footer { border-color: rgba(104,151,113,.16); }
html[data-theme="dark"] .knowledge-content footer > div:first-child { color: #a7c9ad; }
html[data-theme="dark"] .knowledge-sources > span, html[data-theme="dark"] .knowledge-empty { color: #aeb9b0; }
html[data-theme="dark"] .knowledge-empty i { color: #83df90; }
html[data-theme="dark"] .knowledge-sources a { color: #9be3a5; }

@media (max-width: 800px) {
  .knowledge-hero { min-height: auto; padding: 48px 8px 32px; grid-template-columns: 1fr; gap: 22px; }
  .knowledge-hero h1 { font-size: clamp(48px,15vw,70px); letter-spacing: -3px; }
  .knowledge-hero p { font-size: 16px; }
  .knowledge-hero-meta { width: 100%; min-height: 115px; grid-template-columns: auto auto; column-gap: 12px; align-items: center; }
  .knowledge-hero-meta strong { grid-row: 1 / span 2; font-size: 52px; }
  .knowledge-hero-meta span, .knowledge-hero-meta small { margin: 0; text-align: left; }
  .knowledge-browser { padding: 16px; border-radius: 23px; }
  .knowledge-toolbar { grid-template-columns: 1fr; gap: 10px; }
  .knowledge-toolbar > p { padding-left: 4px; }
  .knowledge-filters { flex-wrap: nowrap; margin: 16px -16px 20px; padding: 0 16px 5px; overflow-x: auto; scrollbar-width: thin; }
  .knowledge-filters button { flex: 0 0 auto; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .knowledge-card details > summary { min-height: 190px; }
  .knowledge-accuracy { padding: 22px; align-items: start; }
}
