.technical-library-page {
  --tl-ink: #082943;
  --tl-deep: #052b49;
  --tl-blue: #087fc4;
  --tl-muted: #5f7485;
  --tl-line: #d7e3eb;
  background: #ffffff;
  color: var(--tl-ink);
  overflow-x: hidden;
}

.technical-library-page *,
.technical-library-page *::before,
.technical-library-page *::after {
  box-sizing: border-box;
}

.tl-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.tl-hero {
  padding: 92px 0 62px;
  background: var(--tl-deep);
  color: #ffffff;
}

.tl-eyebrow,
.tl-card-type {
  margin: 0;
  color: #55b9ef;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.45;
  text-transform: uppercase;
}

.technical-library-page[dir='rtl'] .tl-eyebrow,
.technical-library-page[dir='rtl'] .tl-card-type {
  letter-spacing: 0;
}

.tl-hero h1 {
  max-width: 760px;
  margin: 16px 0 0;
  color: #ffffff;
  font-size: clamp(42px, 5vw, 62px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
}

.technical-library-page[dir='rtl'] .tl-hero h1 {
  letter-spacing: 0;
  line-height: 1.15;
}

.tl-hero-intro {
  max-width: 760px;
  margin: 22px 0 0;
  color: #d3e0e9;
  font-size: 17px;
  line-height: 1.75;
}

.tl-section-nav {
  border-bottom: 1px solid var(--tl-line);
  background: #ffffff;
}

.tl-section-nav .tl-shell {
  display: flex;
  gap: 34px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tl-section-nav a {
  display: inline-flex;
  min-height: 64px;
  flex: 0 0 auto;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: #315168;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.tl-section-nav a:hover,
.tl-section-nav a:focus-visible {
  border-color: var(--tl-blue);
  color: #076da8;
}

.tl-section {
  padding: 82px 0 92px;
  scroll-margin-top: 100px;
}

.tl-section-muted {
  background: #f1f5f8;
}

.tl-section-heading {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 36px;
}

.tl-section-heading h2 {
  margin: 0;
  color: var(--tl-ink);
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.06;
}

.technical-library-page[dir='rtl'] .tl-section-heading h2 {
  letter-spacing: 0;
  line-height: 1.2;
}

.tl-section-heading p {
  max-width: 650px;
  margin: 0;
  color: var(--tl-muted);
  font-size: 15px;
  line-height: 1.75;
}

.tl-document-grid,
.tl-certificate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.tl-document-card {
  display: flex;
  min-width: 0;
  min-height: 330px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--tl-line);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(6, 42, 68, .06);
}

.tl-document-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 4px;
  background: #e7f3fa;
  color: #087fc4;
}

.tl-document-icon svg,
.tl-pdf-preview svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.tl-document-copy {
  margin-top: 23px;
}

.tl-document-copy h3,
.tl-certificate-body h3,
.tl-specification-card h3 {
  margin: 10px 0 0;
  color: var(--tl-ink);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
}

.tl-languages {
  margin: 14px 0 0;
  color: var(--tl-muted);
  font-size: 13px;
  line-height: 1.6;
}

.tl-languages span {
  color: #36566c;
  font-weight: 800;
}

.tl-card-actions {
  display: grid;
  gap: 9px;
  margin-top: auto;
  padding-top: 24px;
}

.tl-card-actions a,
.tl-specification-card > a {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 15px;
  border: 1px solid #b9cedc;
  border-radius: 4px;
  color: #075f94;
  font-size: 13px;
  font-weight: 800;
}

.tl-card-actions a:first-child {
  border-color: var(--tl-blue);
  background: var(--tl-blue);
  color: #ffffff;
}

.tl-card-actions a:hover,
.tl-card-actions a:focus-visible,
.tl-specification-card > a:hover,
.tl-specification-card > a:focus-visible {
  border-color: #0a73ae;
  background: #0a73ae;
  color: #ffffff;
}

.tl-certificate-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--tl-line);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(6, 42, 68, .06);
}

.tl-certificate-preview {
  display: grid;
  width: 100%;
  height: 300px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--tl-line);
  background: #e6edf2;
  color: #0a75b2;
}

button.tl-certificate-preview {
  cursor: zoom-in;
}

.tl-certificate-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tl-pdf-preview {
  gap: 12px;
  align-content: center;
}

.tl-pdf-preview svg {
  width: 54px;
  height: 54px;
}

.tl-pdf-preview span {
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .12em;
}

.tl-certificate-body {
  padding: 24px;
}

.tl-certificate-body h3 {
  min-height: 54px;
  margin-top: 0;
}

.tl-certificate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 22px;
}

.tl-certificate-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #b9cedc;
  border-radius: 4px;
  color: #075f94;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.tl-certificate-actions a:first-child {
  border-color: var(--tl-blue);
  background: var(--tl-blue);
  color: #ffffff;
}

.tl-certificate-actions a:hover,
.tl-certificate-actions a:focus-visible {
  border-color: #0a73ae;
  background: #0a73ae;
  color: #ffffff;
}

.tl-specification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tl-specification-card {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--tl-line);
  background: #ffffff;
}

.tl-specification-card h3 {
  margin-top: 0;
}

.tl-specification-card p {
  max-width: 600px;
  margin: 12px 0 0;
  color: var(--tl-muted);
  font-size: 14px;
  line-height: 1.7;
}

.tl-specification-card > a {
  min-width: 168px;
}

.tl-lightbox[hidden] {
  display: none;
}

.tl-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(2, 19, 32, .9);
}

.tl-lightbox figure {
  display: flex;
  width: min(940px, 100%);
  max-height: calc(100vh - 70px);
  flex-direction: column;
  margin: 0;
  padding: 14px;
  background: #ffffff;
}

.tl-lightbox img {
  width: 100%;
  min-height: 0;
  max-height: calc(100vh - 130px);
  object-fit: contain;
}

.tl-lightbox figcaption {
  padding: 12px 8px 2px;
  color: var(--tl-ink);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.tl-lightbox-close {
  position: fixed;
  z-index: 1;
  top: 18px;
  inset-inline-end: 20px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: #ffffff;
  color: #052b49;
  font-size: 26px;
  line-height: 1;
}

body.tl-lightbox-open {
  overflow: hidden;
}

.tl-state {
  min-height: 440px;
  padding: 120px 0;
}

.tl-state p {
  padding: 24px;
  border: 1px solid #e2c8c8;
  background: #fff4f4;
  color: #992f2f;
}

@media (max-width: 950px) {
  .tl-section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .tl-document-grid,
  .tl-certificate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tl-specification-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .tl-shell {
    width: calc(100% - 30px);
  }

  .tl-hero {
    padding: 62px 0 44px;
  }

  .tl-hero h1 {
    font-size: 38px;
  }

  .tl-hero-intro {
    margin-top: 17px;
    font-size: 15px;
    line-height: 1.7;
  }

  .tl-section-nav .tl-shell {
    gap: 24px;
  }

  .tl-section-nav a {
    min-height: 56px;
    font-size: 13px;
  }

  .tl-section {
    padding: 58px 0 64px;
  }

  .tl-section-heading {
    margin-bottom: 27px;
  }

  .tl-section-heading h2 {
    font-size: 31px;
  }

  .tl-document-grid,
  .tl-certificate-grid {
    grid-template-columns: 1fr;
  }

  .tl-document-card {
    min-height: 0;
    padding: 23px;
  }

  .tl-card-actions a,
  .tl-certificate-actions a,
  .tl-specification-card > a {
    min-height: 50px;
  }

  .tl-certificate-preview {
    height: 270px;
  }

  .tl-certificate-body h3 {
    min-height: 0;
  }

  .tl-specification-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 23px;
  }

  .tl-specification-card > a {
    width: 100%;
    min-width: 0;
  }

  .tl-lightbox {
    padding: 14px;
  }

  .tl-lightbox figure {
    max-height: calc(100dvh - 54px);
    padding: 8px;
  }

  .tl-lightbox img {
    max-height: calc(100dvh - 110px);
  }

  .tl-lightbox-close {
    top: 8px;
    inset-inline-end: 8px;
  }
}
