/* kosh-resources.css — the editable Resources pages (lib/resources.mjs): case
   studies, FAQs and the glossary. Cards, heroes and CTAs come from
   kosh-home.css and kosh-industries.css, linked before this file; this adds
   only what those pages need on top: article text, filters, the case-study
   layout, the A–Z bar and the glossary search. */

/* glossary term pages: one centred reading column */
.kh-term-page .container > * {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.kh-term-page .kh-eyebrow {
  display: block;
}

/* breadcrumb */
.kh-crumbs {
  margin: 0 0 1.75rem;
  font-size: 0.88rem;
  color: #5b6270;
}
.kh-crumbs a {
  color: #5b6270;
  text-decoration: none;
}
.kh-crumbs a:hover {
  color: var(--kosh-pink, #ff3972);
}
.kh-crumbs span {
  margin: 0 0.25rem;
}

/* long-form text: case-study stories and glossary definitions */
.kh-prose {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2b2f36;
}
.kh-prose h2 {
  margin: 2.25rem 0 0.85rem;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  text-transform: none;
  color: #1e1e1e;
}
.kh-prose h3 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: none;
  color: #1e1e1e;
}
.kh-prose > :first-child {
  margin-top: 0;
}
.kh-prose p,
.kh-prose ul,
.kh-prose ol {
  margin: 0 0 1.1rem;
}
.kh-prose ul,
.kh-prose ol {
  padding-left: 1.4rem;
}
.kh-prose li {
  margin-bottom: 0.4rem;
}
.kh-prose a {
  color: var(--kosh-pink, #ff3972);
}
.kh-prose table {
  width: 100%;
  margin: 0 0 1.25rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.kh-prose th,
.kh-prose td {
  padding: 0.6rem 0.75rem;
  border: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: top;
}
.kh-prose th {
  background: #f7f8fa;
  font-weight: 600;
}

/* filter pills (FAQ categories, glossary topics) */
.kh-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
}
#glossary .kh-filters {
  margin: 0 0 2rem;
}
.kh-filter {
  padding: 0.45rem 1rem;
  border: 1px solid #d9dde3;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1e1e1e;
  cursor: pointer;
}
.kh-filter:hover {
  border-color: #1e1e1e;
}
.kh-filter.is-on {
  border-color: #1e1e1e;
  background: #1e1e1e;
  color: #fff;
}

/* case study: KPI strip in the hero, facts beside the story */
.kh-cs-kpis {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.kh-cs-kpis li {
  min-width: 180px;
  padding: 1.1rem 1.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  text-align: center;
}
.kh-cs-kpis strong {
  display: block;
  font-size: 2.2rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--kosh-pink, #ff3972);
}
.kh-cs-kpis span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: #4a4f57;
}
.kh-cs-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .kh-cs-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.kh-cs-facts {
  display: grid;
  gap: 1rem;
}
.kh-cs-fact {
  padding: 1.25rem 1.35rem;
  background: #f7f8fa;
  border: 1px solid #eceef1;
  border-radius: 14px;
}
.kh-cs-fact h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e1e1e;
}
.kh-cs-fact h3 i {
  color: var(--kosh-pink, #ff3972);
  font-size: 1rem;
}
.kh-cs-fact ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #3b3f47;
}
.kh-cs-fact li + li {
  margin-top: 0.35rem;
}
.kh-cs-quote {
  margin: 0 0 2rem;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--kosh-pink, #ff3972);
  background: #fff5f8;
  border-radius: 0 14px 14px 0;
}
.kh-cs-quote p {
  margin: 0;
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.65;
  color: #1e1e1e;
}

/* FAQs: one titled group per category */
.kh-faq-cat {
  margin: 2.25rem 0 1rem;
  font-size: 1.35rem;
  font-weight: 600;
  text-align: left;
  color: #1e1e1e;
}
.kh-faq-group:first-child .kh-faq-cat {
  margin-top: 0;
}

/* glossary */
.kh-gl-search {
  max-width: 560px;
  margin: 1.75rem auto 0;
}
.kh-gl-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.9rem 1.2rem;
  border: 1.4px solid #d9dde3;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 1rem;
}
.kh-gl-search input:focus {
  outline: none;
  border-color: var(--kosh-pink, #ff3972);
}
.kh-az {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
}
.kh-az a,
.kh-az span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.kh-az a {
  border: 1px solid #d9dde3;
  color: #1e1e1e;
}
.kh-az a:hover {
  border-color: var(--kosh-pink, #ff3972);
  color: var(--kosh-pink, #ff3972);
}
.kh-az span {
  color: #c4c8cf;
}
.kh-gl-letter {
  scroll-margin-top: 120px;
  margin-bottom: 2.5rem;
}
.kh-gl-letter h2 {
  margin: 0 0 1rem;
  font-size: 2rem;
  font-weight: 700;
  text-align: left;
  color: #c4c8cf;
}
.kh-gl-empty {
  text-align: center;
  color: #5b6270;
}
a.kh-term {
  color: inherit;
  text-decoration: none;
}
.kh-term .kh-chip {
  align-self: flex-start;
  margin-top: auto;
}
.kh-term-page h1.kh-term-title {
  margin: 0.25rem auto 0.75rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  text-transform: none;
  color: #1e1e1e;
}
.kh-term-lede {
  max-width: 760px;
  margin: 0 0 2rem;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #4a4f57;
}

/* legal pages (lib/legal.mjs): contents list beside the text */
.kh-legal {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}
.kh-legal.kh-legal-single {
  grid-template-columns: minmax(0, 1fr);
}
.kh-legal-single .kh-legal-text {
  margin: 0 auto;
}
.kh-legal-toc {
  position: sticky;
  top: 110px;
  max-height: calc(100vh - 140px);
  overflow: auto;
  padding: 1.25rem 1.25rem 1rem;
  background: #f7f8fa;
  border: 1px solid #eceef1;
  border-radius: 14px;
}
.kh-legal-toc-title {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e1e1e;
}
.kh-legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.kh-legal-toc li + li {
  margin-top: 0.45rem;
}
.kh-legal-toc a {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #4a4f57;
  text-decoration: none;
}
.kh-legal-toc a:hover {
  color: var(--kosh-pink, #ff3972);
}
.kh-legal-text h2 {
  scroll-margin-top: 110px;
}
.kh-legal-text p {
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .kh-legal {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .kh-legal-toc {
    position: static;
    max-height: none;
  }
}
