/*
 * Glossary: hub + section pages (inc/glossary.php, page-glossary*.php).
 * Loaded only on those two templates.
 *
 * Site design system, not the prototype's: DIN Pro; #00395d titles and
 * links, #033758 in-article headings, 18px / 1.8 black text (15.8px on a
 * phone), green accent #43b649, lines #d7dada, light grey #f2f3f3, secondary
 * text #58595b. Spacing follows the Pack 2 scale (24 / 32 /
 * clamp(32px, 3.34vw, 64px)).
 *
 * Layout "engineering reference" (owner's choice 03.11.2026 out of three
 * drafts): numbered two-column hub; on a section page the contents stick on
 * the left from 1200px and sit above the definitions below that.
 */

/* ===== Base ===== */

.kts-gl-wrap {
  font-family: "DIN Pro", sans-serif;
}

.kts-gl-head {
  margin: 0 0 clamp(32px, 3.34vw, 64px);
}

.kts-gl-head__h1 {
  margin: 0 0 clamp(18px, 1.67vw, 32px);
  line-height: 1.15;
}

.kts-gl-intro {
  max-width: 960px;
  font-size: clamp(15.8px, 0.94vw, 18px);
  line-height: 1.8;
  color: #000000;
}

.kts-gl-intro p {
  margin: 0;
}

.kts-gl-intro p + p {
  margin-top: 1em;
}

.kts-glossary ul,
.kts-glossary ol,
.kts-glossary dl,
.kts-glossary dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kts-glossary a {
  color: #00395d;
  text-decoration: none;
}

.kts-glossary a:hover {
  color: #43b649;
}

.kts-glossary a:focus-visible,
.kts-gl-cta a:focus-visible,
.kts-gl-pager a:focus-visible {
  outline: 2px solid #43b649;
  outline-offset: 2px;
}

/* A link to a section or term that is not published yet: plain text. */
.kts-gl-soon {
  color: inherit;
}

.kts-gl-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  vertical-align: middle;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #58595b;
  background-color: #f2f3f3;
}

/* --- Hub --- */

.kts-gl-hub__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: 0 0 clamp(32px, 3.34vw, 64px);
  font-size: 16px;
  color: #58595b;
}

.kts-gl-hub__stats strong {
  margin-right: 6px;
  font-weight: 700;
  font-size: clamp(24px, 1.67vw, 32px);
  color: #00395d;
}

.kts-gl-hub__grid {
  display: grid;
  gap: 24px;
}

.kts-gl-card {
  position: relative;
}

.kts-gl-card__title {
  margin: 0 0 8px;
  font-weight: 500;
  font-size: clamp(19px, 1.25vw, 24px);
  line-height: 1.3;
  color: #00395d;
}

.kts-gl-card.is-soon .kts-gl-card__title {
  color: #58595b;
}

.kts-gl-card__desc {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.6;
  color: #58595b;
}

.kts-gl-card__group + .kts-gl-card__group {
  margin-top: 12px;
}

.kts-gl-card__group-title {
  display: inline-block;
  margin-bottom: 4px;
  font-weight: 500;
  font-size: 15px;
  color: #033758;
}

.kts-gl-card__terms {
  font-size: 15px;
  line-height: 1.6;
}


.kts-gl-card.is-soon .kts-gl-card__group-title {
  color: #58595b;
}

.kts-gl-card__terms li,
.kts-gl-toc__terms li {
  display: inline;
}

@media (min-width: 1200px) {
  .kts-gl-toc__terms li {
    display: block;
  }

  .kts-gl-toc__terms .kts-gl-sep {
    display: none;
  }
}

.kts-gl-sep {
  margin-right: 6px;
  color: #bbcdd9;
}

.kts-gl-card__terms span {
  color: #58595b;
}

/* --- Section --- */

.kts-gl-toc__title {
  margin: 0 0 16px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #bbcdd9;
}

.kts-gl-toc__group + .kts-gl-toc__group {
  margin-top: 16px;
}

.kts-gl-toc__group-title {
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 16px;
}

.kts-gl-toc__terms {
  font-size: 15px;
  line-height: 1.5;
}

.kts-gl-group + .kts-gl-group {
  margin-top: clamp(40px, 3.34vw, 64px);
}

.kts-gl-group__title {
  margin: 0 0 8px;
  font-weight: 400;
  font-size: clamp(24px, 1.67vw, 32px);
  line-height: 1.3;
  color: #033758;
  scroll-margin-top: 24px;
}

.kts-gl-term {
  scroll-margin-top: 24px;
  padding: 24px 0;
  border-bottom: 1px solid #d7dada;
  transition: background-color 0.3s ease;
}

.kts-gl-term:target {
  background-color: #f2f3f3;
  box-shadow: -16px 0 0 #f2f3f3, 16px 0 0 #f2f3f3;
}

.kts-gl-term__title {
  margin: 0 0 8px;
  font-weight: 500;
  font-size: clamp(19px, 1.15vw, 22px);
  line-height: 1.3;
  color: #00395d;
}

.kts-gl-term__anchor {
  color: inherit;
}

.kts-gl-term__def {
  font-size: clamp(15.8px, 0.94vw, 18px);
  line-height: 1.8;
  color: #000000;
}

.kts-gl-term__def p {
  margin: 0;
}

.kts-gl-term__def p + p,
.kts-gl-term__def ul {
  margin-top: 0.6em;
}

.kts-gl-term__def ul li {
  position: relative;
  padding-left: 1.3em;
}

.kts-gl-term__def ul li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 0;
  width: 6px;
  height: 6px;
  background: currentColor;
}

.kts-gl-term__def a {
  color: #145274;
  text-decoration: underline;
  text-decoration-color: #bbcdd9;
  text-underline-offset: 3px;
}

.kts-gl-term__def a:hover {
  color: #43b649;
  text-decoration-color: currentColor;
}

.kts-gl-term__def .kts-gl-term__also {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #58595b;
}

.kts-gl-term__also-label {
  font-weight: 500;
}

.kts-gl-term__def .kts-gl-term__also a {
  color: #58595b;
}

.kts-gl-term__def .kts-gl-term__link {
  margin-top: 12px;
}

.kts-gl-term__def .kts-gl-term__link a {
  text-decoration: none;
}

/* --- Tables (model ranges inside a definition or under a subgroup title) --- */

.kts-gl-group__intro {
  margin: 16px 0 8px;
}

.kts-gl-group__intro table,
.kts-gl-term__def table {
  width: 100%;
  margin: 16px 0 0;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.kts-gl-group__intro th,
.kts-gl-group__intro td,
.kts-gl-term__def th,
.kts-gl-term__def td {
  padding: 10px 12px;
  border-bottom: 1px solid #d7dada;
  text-align: left;
  vertical-align: top;
}

.kts-gl-group__intro th,
.kts-gl-term__def th {
  font-weight: 500;
  color: #033758;
  background-color: #f2f3f3;
}

.kts-gl-group__intro a {
  color: #145274;
  text-decoration: underline;
  text-decoration-color: #bbcdd9;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  /* Wide tables scroll inside themselves instead of widening the page. */
  .kts-gl-group__intro table,
  .kts-gl-term__def table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* --- Call to action --- */

.kts-gl-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  margin: clamp(32px, 3.34vw, 64px) 0 0;
  padding: clamp(24px, 3.34vw, 64px);
  background-color: #00395d;
  color: #ffffff;
}

.kts-gl-cta__text {
  flex: 1 1 420px;
  max-width: 760px;
  font-size: clamp(15.8px, 0.94vw, 18px);
  line-height: 1.7;
}

.kts-gl-cta__text p {
  margin: 0;
}

.kts-gl-cta__title {
  margin-bottom: 8px !important;
  font-weight: 500;
  font-size: clamp(22px, 1.46vw, 28px);
  line-height: 1.25;
}

.kts-gl-cta__text a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kts-gl-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}

.kts-gl-cta .kts-gl-cta__link {
  color: #ffffff;
}

.kts-gl-cta .kts-gl-cta__link:hover {
  color: #43b649;
}

/* --- Prev / next --- */

.kts-gl-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #d7dada;
  font-size: 16px;
}

.kts-gl-pager a {
  color: #00395d;
  text-decoration: none;
}

.kts-gl-pager a:hover {
  color: #43b649;
}

/* The FAQ block (inc/faq.php) sits between the terms and the CTA. */
.kts-gl-page .kts-faq {
  max-width: 960px;
}

/* ===== Layout ===== */

.kts-gl-card {
  padding: 24px 0 0 56px;
  border-top: 1px solid #d7dada;
}

.kts-gl-card__num {
  position: absolute;
  top: 22px;
  left: 0;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  color: #43b649;
}

.kts-gl-card.is-soon .kts-gl-card__num {
  color: #bbcdd9;
}

@media (min-width: 992px) {
  .kts-gl-hub__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 64px;
  }
}

.kts-gl-toc {
  margin-bottom: 40px;
  padding: 24px;
  background-color: #f2f3f3;
}

.kts-gl-toc__terms li {
  padding: 2px 0;
}

@media (min-width: 1200px) {
  .kts-gl-section {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }

  .kts-gl-toc {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    margin: 0;
    overflow: auto;
  }

  .kts-gl-body {
    max-width: 860px;
  }
}

@media (max-width: 1199px) {
  /* Above the definitions the contents read as an inline list. */
  .kts-gl-toc__terms {
    display: block;
  }
}
