/*
  File role: the look of the knowledge library (/ro/knowledge-library/).

  Identity comes from the site, not from this page: the dark #001120 and the ember #E4812F are the ones /ro/ and
  /ro/e-reg/ use, and so is their split: ember on actions and focus, the dark navy on what is selected. No green
  (on /ro/e-reg/ it only marks "included"). The greys are the tokens of general/styles.css (:root), the typefaces
  the global Inter Tight + Inter. Corners are 7px (code-writing rule 11); chips stay pill-shaped.

  Everything is scoped under body.kl, a class only this page carries, so no rule written here can reach the shared
  header, the footer or another page.

  @file_version 1.0.9
*/

body.kl {
  --kl-abyss:   #001120;              /* the dark of /ro/ */
  --kl-deep:    #04203c;              /* the band under it */
  --kl-ember:   #E4812F;              /* the accent of /ro/, on the main action */
  --kl-ember-dark: #cf7120;           /* the ember on hover, as on /ro/e-reg/ */
  --kl-ink:     var(--text);
  --kl-muted:   var(--muted);
  --kl-line:    var(--border);
  --kl-paper:   #ffffff;
  --kl-paper-2: #f5f7fb;
  --kl-radius:  7px;

  background: var(--kl-paper-2);
  color: var(--kl-ink);
}

body.kl .kl-wrap {
  width: min(1120px, 100vw - 32px);
  margin: 0 auto;
}

/* Screen-reader-only text: the label of the search field. */
body.kl .kl-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---- The menu over the scene, the same treatment as /ro/e-reg/ ----
   Fixed, not sticky: the site sets overflow-x:hidden on html and body, which cancels position:sticky. Transparent
   at the top; once the page moves, the bar takes the dark of the scene. */
body.kl .vogo-header {
  position: fixed;
  left: 0; right: 0; top: 0;
  background: transparent;
  box-shadow: none;
  transition: background .25s ease, box-shadow .25s ease;
}
body.kl .vogo-header .vh-band-top {
  background: transparent;
  border-bottom-color: transparent;
}
body.kl .vogo-header.is-solid {
  background: linear-gradient(180deg, rgba(0,17,32,.97) 0%, rgba(0,17,32,.92) 100%), var(--kl-abyss);
  box-shadow: 0 1px 0 rgba(0,0,0,.28);
}

/* ---- Hero ----
   The scene of /ro/aiao/, the same picture and the same veil (user's choice, 26.09.2026): the process designer,
   dark behind the words. The picture is read from /ro/aiao/img/, not copied. */
body.kl .kl-hero {
  background:
    linear-gradient(100deg, rgba(0,17,32,.97) 0%, rgba(0,17,32,.93) 34%, rgba(4,32,60,.72) 62%, rgba(4,32,60,.52) 100%),
    url('/ro/aiao/img/designer-proces.webp') right center / cover no-repeat,
    var(--kl-abyss);
  color: #fff;
}
@media (max-width: 720px) {
  body.kl .kl-hero {
    background:
      linear-gradient(180deg, rgba(0,17,32,.9) 0%, rgba(0,17,32,.95) 100%),
      url('/ro/aiao/img/designer-proces.webp') center center / cover no-repeat,
      var(--kl-abyss);
  }
}
body.kl .kl-hero__inner {
  padding: calc(clamp(40px, 7vw, 80px) + var(--vh-h, 57px)) 0 clamp(36px, 6vw, 64px);
  max-width: 680px;
}
body.kl .kl-kicker {
  margin: 0 0 12px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--kl-ember);
}
body.kl .kl-hero h1 {
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 16px;
  color: #fff;
}
body.kl .kl-lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255,255,255,.82);
  margin: 0 0 24px;
  max-width: 56ch;
}
body.kl .kl-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .95rem;
  color: rgba(255,255,255,.72);
}
body.kl .kl-stats strong {
  color: #fff;
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-size: 1.15rem;
  margin-right: 4px;
}
/* The link to the specialist terminology (11.10.2026): the last item of the line, in the ember of the actions. */
body.kl .kl-stats__link {
  color: var(--kl-ember);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(228,129,47,.45);
}
body.kl .kl-stats__link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* ---- Library ---- */
body.kl .kl-library {
  padding: 0 0 72px;
}

/* The toolbar sits on the seam between the scene and the list, so search is the first thing under the title. */
body.kl .kl-toolbar {
  position: relative;
  margin-top: -28px;
  padding: 14px 16px;
  background: var(--kl-paper);
  border: 1px solid var(--kl-line);
  border-radius: var(--kl-radius);
  box-shadow: 0 10px 30px rgba(0,17,32,.10);
  display: grid;
  gap: 12px;
}

body.kl .kl-search {
  position: relative;
  display: flex;
  align-items: center;
}
body.kl .kl-search > .bi-search {
  position: absolute;
  left: 14px;
  color: var(--kl-muted);
  pointer-events: none;
}
body.kl .kl-search input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 42px;
  font: inherit;
  font-size: 1rem;
  color: var(--kl-ink);
  background: var(--kl-paper);
  border: 1px solid var(--kl-line);
  border-radius: var(--kl-radius);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
body.kl .kl-search input:hover {
  border-color: var(--kl-muted);
}
body.kl .kl-search input:focus {
  border-color: var(--kl-ember);
  box-shadow: 0 0 0 3px rgba(228,129,47,.18);
}
/* The browser's own clear cross is replaced by ours, which also resets the counter. */
body.kl .kl-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
body.kl .kl-search__clear {
  position: absolute;
  right: 6px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--kl-radius);
  background: transparent;
  color: var(--kl-muted);
  cursor: pointer;
}
body.kl .kl-search__clear:hover {
  background: var(--kl-paper-2);
  color: var(--kl-ink);
}
body.kl .kl-search__clear[hidden] {
  display: none;
}

/* ---- Filters (29.09.2026, compact): one row per group — a short label on the left, small chips after it ---- */
body.kl .kl-filters {
  display: grid;
  gap: 6px;
  padding-top: 2px;
}
body.kl .kl-filter {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: start;
  gap: 8px;
}
body.kl .kl-filter__label {
  padding-top: 5px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--kl-muted);
}
@media (max-width: 560px) {
  body.kl .kl-filter {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  body.kl .kl-filter__label {
    padding-top: 0;
  }
}
/* END Filters */

body.kl .kl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
body.kl .kl-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font: inherit;
  font-size: .8rem;
  color: var(--kl-ink);
  background: var(--kl-paper);
  border: 1px solid var(--kl-line);
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
body.kl .kl-chip:hover {
  border-color: var(--kl-deep);
}
body.kl .kl-chip[aria-pressed="true"] {
  background: var(--kl-abyss);
  border-color: var(--kl-abyss);
  color: #fff;
}
/* A tag chip: the same weight as the other chips; its size is set below. */
body.kl .kl-chip--tag {
  font-size: .74rem;   /* the tag is all capitals: a touch smaller, so it reads as big as the other chips */
}
body.kl .kl-chip__n {
  font-size: .72rem;
  font-weight: 600;
  color: var(--kl-muted);
}
body.kl .kl-chip[aria-pressed="true"] .kl-chip__n {
  color: rgba(255,255,255,.85);
}

body.kl .kl-count {
  margin: 0;
  font-size: .9rem;
  color: var(--kl-muted);
}

/* ---- Cards ---- */
body.kl .kl-grid {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}
body.kl .kl-card {
  display: flex;
  flex-direction: column;
  background: var(--kl-paper);
  border: 1px solid var(--kl-line);
  border-radius: var(--kl-radius);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}
body.kl .kl-card:hover {
  box-shadow: 0 12px 28px rgba(0,17,32,.10);
  transform: translateY(-2px);
}
body.kl .kl-card[hidden] {
  display: none;
}

/* One picture frame for every type, 16:9, so the grid keeps its rows whatever the mix. */
body.kl .kl-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  overflow: hidden;
  cursor: pointer;
  background: var(--kl-abyss);
}
body.kl .kl-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* A document shows the top of its first page, as a sheet laid on the desk. */
body.kl .kl-media--doc {
  background: linear-gradient(160deg, #e9edf3 0%, #dfe5ee 100%);
}
body.kl .kl-media--doc img {
  width: 62%;
  height: auto;
  margin: 18px auto 0;
  object-fit: initial;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 6px 18px rgba(0,17,32,.18);
  transition: transform .25s ease;
}
body.kl .kl-media--doc:hover img {
  transform: translateY(-4px);
}
body.kl .kl-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0,17,32,.72);
  color: #fff;
  font-size: 2rem;
  transition: background .2s ease, transform .2s ease;
}
body.kl .kl-media--video:hover .kl-play {
  background: var(--kl-ember);
  transform: scale(1.06);
}

body.kl .kl-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
}
body.kl .kl-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: .8rem;
}
body.kl .kl-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 600;
}
body.kl .kl-badge--video     { background: #fdeee2; color: #9a4d10; }
body.kl .kl-badge--guide     { background: #e7eef8; color: var(--kl-deep); }
body.kl .kl-badge--datasheet { background: #eef0f3; color: var(--kl-ink); }
body.kl .kl-badge--document  { background: #f3efe8; color: #5c4630; }
body.kl .kl-product {
  color: var(--kl-muted);
}
/* The language the card is shown in: a small code, next to the product. */
body.kl .kl-lang {
  margin-left: auto;
  padding: 2px 7px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--kl-deep);
  border: 1px solid var(--kl-line);
  border-radius: var(--kl-radius);
}
/* The material's unique code (29.09.2026): small, monospaced digits, after the product. */
body.kl .kl-code {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  color: var(--kl-deep);
}
/* The material's tags, under its summary: quiet, one line. */
body.kl .kl-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -4px 0 12px;
}
body.kl .kl-tag {
  padding: 1px 7px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--kl-deep);
  background: var(--kl-paper-2);
  border: 1px solid var(--kl-line);
  border-radius: var(--kl-radius);
}

body.kl .kl-card__title {
  font-family: "Inter Tight", Inter, system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 8px;
}
body.kl .kl-card__summary {
  margin: 0 0 12px;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--kl-muted);
}
body.kl .kl-card__facts {
  margin: auto 0 14px;
  font-size: .82rem;
  color: var(--kl-muted);
}
/* The video's address on YouTube, in the facts line: navy, ember on hover, like the other links of the page. */
body.kl .kl-card__link {
  color: var(--kl-deep);
  text-decoration: none;
}
body.kl .kl-card__link:hover {
  color: var(--kl-ember);
  text-decoration: underline;
}
/* The other languages of a document, under its facts: small, the codes as links. */
body.kl .kl-card__langs {
  margin: -8px 0 14px;
  font-size: .82rem;
  color: var(--kl-muted);
}
body.kl .kl-card__langs a {
  margin-left: 6px;
  font-weight: 600;
  color: var(--kl-deep);
  text-decoration: none;
}
body.kl .kl-card__langs a:hover {
  color: var(--kl-ember);
  text-decoration: underline;
}
body.kl .kl-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.kl .kl-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--kl-ink);
  background: var(--kl-paper);
  border: 1px solid var(--kl-line);
  border-radius: var(--kl-radius);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
body.kl .kl-btn:hover {
  border-color: var(--kl-ink);
}
body.kl .kl-btn--primary {
  background: var(--kl-ember);
  border-color: var(--kl-ember);
  color: #fff;
}
body.kl .kl-btn--primary:hover {
  background: var(--kl-ember-dark);
  border-color: var(--kl-ember-dark);
}

/* The companion material, under the actions: quiet, one line. */
body.kl .kl-related {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 12px;
  padding: 0;
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: var(--kl-deep);
  background: none;
  border: 0;
  text-decoration: none;
  cursor: pointer;
}
body.kl .kl-related:hover {
  color: var(--kl-ember);
  text-decoration: underline;
}

body.kl :is(.kl-chip, .kl-btn, .kl-related, .kl-media, .kl-search__clear):focus-visible {
  outline: 2px solid var(--kl-ember);
  outline-offset: 3px;
}

/* ---- Nothing found ---- */
body.kl .kl-empty {
  margin-top: 24px;
  padding: 40px 20px;
  text-align: center;
  background: var(--kl-paper);
  border: 1px dashed var(--kl-line);
  border-radius: var(--kl-radius);
  color: var(--kl-muted);
}
body.kl .kl-empty[hidden] {
  display: none;
}
body.kl .kl-empty__title {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--kl-ink);
}

/* ---- Video window ---- */
body.kl .kl-player {
  width: min(1080px, 100vw - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--kl-radius);
  background: var(--kl-abyss);
  color: #fff;
  overflow: hidden;
}
body.kl .kl-player::backdrop {
  background: rgba(0,10,20,.78);
}
body.kl .kl-player__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 18px;
}
body.kl .kl-player__title {
  flex: 1;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}
body.kl .kl-player__close {
  flex: none;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--kl-radius);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}
body.kl .kl-player__close:hover {
  background: rgba(255,255,255,.18);
}
body.kl .kl-player__frame {
  aspect-ratio: 16 / 9;
  background: #000;
}
body.kl .kl-player__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  body.kl .kl-card,
  body.kl .kl-media--doc img,
  body.kl .kl-play {
    transition: none;
  }
  body.kl .kl-card:hover,
  body.kl .kl-media--doc:hover img {
    transform: none;
  }
}
