/* Collection search (/search/). Site tokens only, so light and dark themes both work. */
.kosh-wrap{padding:28px 0 60px;max-width:980px}
.page-kosh .crumbs{font-size:.9rem;color:var(--soft);margin-bottom:14px}
.page-kosh .crumbs a{color:var(--crimson);text-decoration:none}
.page-kosh .crumbs a:hover,.page-kosh .crumbs a:focus-visible{text-decoration:underline}

.kosh-head h1{font-family:var(--head);font-size:clamp(1.7rem,4.5vw,2.6rem);color:var(--green)}
html[lang="hi"] .kosh-head h1{font-family:var(--hi);font-weight:400}
.kosh-sub{margin:8px 0 0;color:var(--soft);font-size:1.05rem}

.kosh-form{margin-top:20px}
.kosh-label{display:block;font-weight:600;font-size:.95rem;margin-bottom:6px;color:var(--ink)}
.kosh-row{display:flex;gap:10px;flex-wrap:wrap}
.kosh-row input{flex:1;min-width:0;font:inherit;font-size:1.15rem;min-height:52px;padding:10px 16px;border:1.5px solid var(--rule);border-radius:12px;background:var(--card);color:var(--ink)}
.kosh-row input::placeholder{color:var(--soft)}
.kosh-go{font:inherit;font-weight:700;font-size:1rem;min-height:52px;min-width:44px;padding:10px 24px;border-radius:12px;border:1.5px solid transparent;background:var(--crimson-fill);color:#fff;cursor:pointer}
.kosh-go:hover{filter:brightness(1.06)}

.kosh-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:18px 0 6px;padding:14px;background:var(--card);border:1px solid var(--rule);border-radius:12px}
.kosh-chips{display:flex;flex-wrap:wrap;gap:8px}
.kosh-chips button{font:inherit;font-weight:600;font-size:.92rem;min-height:44px;padding:8px 16px;border-radius:999px;border:1.5px solid var(--rule);background:var(--paper);color:var(--ink);cursor:pointer}
.kosh-chips button[aria-pressed="true"]{background:var(--green-fill);border-color:var(--green-fill);color:#fff}
.kosh-field{display:grid;gap:4px;font-size:.85rem;color:var(--soft)}
.kosh-field select{font:inherit;color:var(--ink);background:var(--paper);border:1px solid var(--rule);border-radius:8px;padding:8px 12px;min-height:44px;min-width:150px;max-width:100%}

.kosh-state{margin:14px 0;color:var(--soft);border-left:3px solid var(--gold);padding-left:10px}
.kosh-count{min-height:1.4em;margin:10px 0;color:var(--green);font-weight:600}
.kosh-none{margin:16px 0;color:var(--soft)}

/* knowledge panel */
.kosh-panel{margin:14px 0 20px;padding:18px;background:var(--card);border:1.5px solid var(--gold);border-radius:14px;box-shadow:0 4px 14px var(--sh)}
.kpanel-head{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:baseline}
.kpanel-t{font-family:var(--head);font-size:1.35rem;margin:0}
html[lang="hi"] .kpanel-t{font-family:var(--hi);font-weight:400}
.kpanel-alt{color:var(--soft);font-size:1rem}
.kpanel-sub{margin:8px 0 0;font-weight:600;color:var(--ink)}
.kpanel-atlas{display:inline-block;margin-top:8px;color:var(--crimson);font-weight:700;text-decoration:none;min-height:44px;line-height:44px}
.kpanel-atlas:hover,.kpanel-atlas:focus-visible{text-decoration:underline}
.kpanel-list{margin:8px 0 0;padding-left:1.2em}
.kpanel-list li{margin:6px 0}
.kpanel-list a{color:var(--crimson);font-weight:600}

/* result groups */
.kgroup{margin:22px 0}
.kgroup-h{font-family:var(--head);font-size:1.2rem;margin-bottom:10px;color:var(--ink);border-bottom:1px dashed var(--rule);padding-bottom:6px}
html[lang="hi"] .kgroup-h{font-family:var(--hi);font-weight:400}
.klist{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.kcard{background:var(--card);border:1px solid var(--rule);border-radius:12px;padding:14px 16px}
.kcard-a{display:block;text-decoration:none;min-height:44px}
.kcard-t{display:inline;font-family:var(--head);font-weight:700;font-size:1.06rem;color:var(--ink)}
html[lang="hi"] .kcard-t{font-family:var(--hi);font-weight:400}
.kcard-a:hover .kcard-t,.kcard-a:focus-visible .kcard-t{text-decoration:underline;color:var(--crimson)}
.kcard-alt{display:inline;margin-left:8px;color:var(--soft);font-size:.92rem}
.kcard-d{margin:4px 0 0;font-size:.95rem;color:var(--soft)}
.kcard-meta{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0;font-size:.8rem}
.kbadge,.kchip{display:inline-block;padding:2px 10px;border-radius:999px;border:1px solid var(--rule);background:var(--paper);color:var(--soft);font-weight:600}
.kbadge-kind{border-color:var(--green);color:var(--green)}
.kbadge-verified{background:var(--mt-doc-bg);color:var(--mt-doc);border-color:transparent}
.kbadge-partially-verified{background:var(--mt-trad-bg);color:var(--mt-trad);border-color:transparent}
.kbadge-research-draft{background:var(--mt-uns-bg);color:var(--mt-uns);border-color:transparent}
.kmore{display:block;margin-top:10px;font:inherit;font-weight:700;font-size:.92rem;min-height:44px;padding:8px 16px;border-radius:10px;border:1.5px solid var(--green);background:var(--card);color:var(--green);cursor:pointer}
.kmore:hover{background:var(--paper2)}

/* start here */
.kstart{margin:26px 0 6px}
.kstart-h{font-family:var(--head);font-size:.82rem;letter-spacing:.09em;text-transform:uppercase;color:var(--soft);margin:22px 0 10px;font-weight:700}
html[lang="hi"] .kstart-h{font-family:var(--body);letter-spacing:0;text-transform:none;font-size:1rem}
.ktiles{list-style:none;margin:0;padding:0;display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}
.ktiles a{display:grid;gap:4px;height:100%;padding:16px 18px;background:var(--card);border:1px solid var(--rule);border-top:3px solid var(--gold);border-radius:12px;text-decoration:none;color:var(--ink);transition:transform .15s,box-shadow .15s}
.ktiles a:hover,.ktiles a:focus-visible{transform:translateY(-2px);box-shadow:0 10px 22px -14px var(--sh);border-top-color:var(--crimson)}
.ktiles b{font-family:var(--head);font-size:1.08rem}
html[lang="hi"] .ktiles b{font-family:var(--body);font-weight:700}
.ktiles span{color:var(--soft);font-size:.92rem;line-height:1.45}
.ktry{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.ktry a{display:inline-flex;align-items:center;min-height:44px;padding:6px 16px;border-radius:999px;border:1.5px solid var(--rule);background:var(--card);color:var(--ink);font-weight:600;text-decoration:none}
.ktry a:hover,.ktry a:focus-visible{border-color:var(--green);color:var(--green)}
@media (prefers-reduced-motion:reduce){.ktiles a{transition:none}.ktiles a:hover{transform:none}}

/* A-Z directory (no-JS fallback) */
.kosh-dir{margin-top:30px}
.kosh-dir h2{font-family:var(--head);font-size:1.4rem;color:var(--green)}
html[lang="hi"] .kosh-dir h2{font-family:var(--hi);font-weight:400}
.kosh-soft{color:var(--soft);font-size:.92rem}
.kosh-dir-group{margin:18px 0}
.kosh-dir-group h3{font-family:var(--head);font-size:1.1rem;color:var(--crimson);border-bottom:1px dashed var(--rule);padding-bottom:4px;margin-bottom:6px}
.kosh-dir-group ul{list-style:none;margin:0;padding:0}
.kosh-dir-group li{padding:6px 0}
.kosh-dir-group a{color:var(--ink);font-weight:600;text-decoration:none;display:inline-block;min-height:32px}
.kosh-dir-group a:hover,.kosh-dir-group a:focus-visible{text-decoration:underline;color:var(--crimson)}

@media (max-width:640px){
  .kosh-row{flex-direction:column}
  .kosh-go{width:100%}
  .kosh-filters{align-items:stretch}
  .kosh-field select{width:100%}
}
