@import url("enterprise-base.css");

/*
 * Scriptorium Lab Services FZCO
 * Enterprise Help Center presentation layer.
 *
 * The visual language is inspired by large enterprise documentation portals,
 * while all artwork, layout code, and brand treatments are original.
 */

:root {
  --help-navy: #1d2748;
  --help-navy-deep: #151d38;
  --help-teal: #2f7f7a;
  --help-teal-soft: #dfeeed;
  --help-gold: #c88d4a;
  --help-blue: #0a6d91;
  --help-text: #302d2a;
  --help-muted: #67615c;
  --help-border: #d8d5d1;
  --help-surface: #ffffff;
  --help-surface-soft: #f5f4f2;
}

/* Remove the company mark from the application header. */
.md-header__button.md-logo {
  display: none !important;
}

body {
  overflow-x: hidden;
  color: var(--help-text);
  background: #ffffff !important;
  background-image: none !important;
}

/* Original visual-art rails for topic pages. */
.md-main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #ffffff;
}

.md-main::before,
.md-main::after {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  width: clamp(6rem, 10vw, 11rem);
  content: "";
  pointer-events: none;
  background-image: url("../assets/help-art.png");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 100% auto;
  opacity: 1.0;
}

.md-main::before {
  left: 0;
}

.md-main::after {
  right: 0;
  transform: scaleX(-1);
}

.md-main__inner {
  position: relative;
  z-index: 1;
}

.md-content,
.md-content__inner,
.md-sidebar {
  background-color: rgba(255, 255, 255, 0.97);
  background-image: none !important;
}

/*.md-content__inner {
  box-shadow: 0 0 0 1px rgba(216, 213, 209, 0.4);
}
*/
.md-tabs {
  width: 100% !important;
}

.md-tabs__inner {
  padding-inline: clamp(0.75rem, 3vw, 2.5rem);
}

/* Home page */
.help-home {
  margin: -2.25rem clamp(-3.2rem, -3vw, -1.25rem) -3.5rem;
  color: var(--help-text);
  background: #ffffff;
}

.help-home a {
  text-decoration: none !important;
}

.help-home__hero {
  position: relative;
  min-height: 25rem;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(112deg, var(--help-navy-deep), var(--help-navy));
}

.help-home__hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 1.0);
}

.help-home__hero-art {
  position: absolute;
  top: -4rem;
  bottom: -5rem;
  width: min(25rem, 25vw);
  pointer-events: none;
  background: url("../assets/help-art.png") center / contain no-repeat;
  opacity: 1.0;
}

.help-home__hero-art--left {
  left: -4rem;
}

.help-home__hero-art--right {
  right: -4rem;
  transform: scaleX(-1);
}

.help-home__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 66rem;
  margin: 0 auto;
  padding: clamp(3.6rem, 7vw, 6rem) 1.5rem 7rem;
}

.help-home__eyebrow {
  margin: 0 0 0.65rem !important;
  color: #b8d7d4;
  font-size: 0.83rem !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.help-home h1 {
  max-width: none;
  margin: 0 0 0.8rem;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.018em;
}

.help-home__lead {
  max-width: 50rem !important;
  margin: 0 0 1.55rem !important;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem !important;
  line-height: 1.65 !important;
}

.help-home__search {
  display: flex;
  width: min(100%, 56rem);
  min-height: 3.35rem;
  padding: 0.72rem 1rem;
  gap: 0.7rem;
  align-items: center;
  color: #3d3935;
  font: inherit;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1.8rem rgba(4, 11, 31, 0.22);
}

.help-home__search:hover {
  border-color: #9fd3cf;
  box-shadow: 0 0 0 3px rgba(159, 211, 207, 0.28), 0 0.5rem 1.8rem rgba(4, 11, 31, 0.22);
}

.help-home__search-icon {
  color: var(--help-blue);
  font-size: 1.65rem;
  line-height: 1;
}

.help-home__catalog {
  position: relative;
  z-index: 2;
  padding: 0 1.5rem 3.5rem;
  background: #ffffff;
}

.help-home__catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 78rem;
  margin: -4.6rem auto 0;
}

.help-home__catalog-card {
  position: relative;
  min-height: 16rem;
  padding: 1.8rem 2rem;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--help-border);
  border-radius: 0.35rem;
  box-shadow: 0 0.75rem 2rem rgba(28, 37, 68, 0.12);
}

.help-home__catalog-card::after {
  position: absolute;
  top: -4rem;
  right: -3rem;
  width: 15rem;
  height: 15rem;
  content: "";
  pointer-events: none;
  background: url("../assets/help-art.png") center / contain no-repeat;
  opacity: 0.09;
  transform: rotate(12deg);
}

.help-home__catalog-mark {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.55rem;
  place-items: center;
  color: var(--help-navy);
  font-size: 1.35rem;
  font-weight: 700;
}

.help-home__catalog-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 1.2rem;
  color: #171513;
  font-size: 1.48rem;
  font-weight: 700;
}

.help-home__link-columns {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
}

.help-home__link-columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-home__link-columns li {
  margin: 0 0 0.48rem;
  font-size: 0.98rem;
}

.help-home__link-columns a {
  color: #161412;
}

.help-home__link-columns a:hover {
  color: var(--help-blue);
  text-decoration: underline !important;
  text-underline-offset: 0.16em;
}

.help-home__services {
  padding: 3.75rem 1.5rem 4.25rem;
  background: #ffffff;
  border-top: 1px solid #ece9e6;
}

.help-home__section-inner {
  max-width: 78rem;
  margin: 0 auto;
}

.help-home__services h2 {
  margin: 0 0 0.5rem;
  color: #282522;
  font-size: 2rem;
  font-weight: 700;
}

.help-home__section-lead {
  max-width: 48rem !important;
  color: var(--help-muted);
  font-size: 1.04rem !important;
}

.help-home__service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.help-home__service {
  min-height: 12.5rem;
  padding: 1.35rem;
  color: var(--help-text) !important;
  background: #ffffff;
  border: 1px solid var(--help-border);
  border-top: 4px solid var(--help-teal);
  border-radius: 0.3rem;
}

.help-home__service:nth-child(2) {
  border-top-color: var(--help-blue);
}

.help-home__service:nth-child(3) {
  border-top-color: var(--help-gold);
}

.help-home__service:nth-child(4) {
  border-top-color: #4f7a52;
}

.help-home__service:hover,
.help-home__service:focus-visible {
  border-color: var(--help-blue);
  box-shadow: 0 0.5rem 1.4rem rgba(29, 39, 72, 0.1);
  transform: translateY(-2px);
}

.help-home__service-number {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--help-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.help-home__service strong {
  display: block;
  margin-bottom: 0.55rem;
  color: #1d1a18;
  font-size: 1.22rem;
}

.help-home__service > span:last-child {
  color: var(--help-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.help-home__assurance {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  padding: 1.7rem max(1.5rem, calc((100vw - 78rem) / 2));
  align-items: center;
  background: var(--help-teal-soft);
  border-top: 1px solid #bfd8d5;
}

.help-home__assurance h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.help-home__assurance p {
  margin: 0;
  color: #425653;
  font-size: 0.98rem;
}

/* Footer with company logo beside the legal and address information. */
.md-footer,
.md-footer-meta {
  color: #ffffff;
  background: #312d2a;
}

.md-footer-meta {
  display: block !important;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.md-footer-meta__inner {
  display: flex;
  max-width: 92rem;
  padding: 1.15rem 1.25rem 1.35rem;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.md-copyright {
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
}

.sls-footer__identity {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}

.sls-footer__logo {
  display: block;
  width: 7rem;
  max-height: 7rem;
  padding: 0.35rem;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 0.3rem;
}

.sls-footer__details {
  display: block;
}

.sls-footer__copyright {
  display: block;
  margin-bottom: 0.42rem;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 650;
}

.sls-footer__address {
  display: block;
  max-width: 65rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.8rem;
  line-height: 1.55;
}

.sls-footer__address strong {
  color: #ffffff;
}

/* Social icons in footer */
.md-social {
  display: flex;
  gap: 0.85rem;
}

.md-social__link {
  display: inline-flex;
  width: 3.0rem;
  height: 3.0rem;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
}

/* Downloads page */
.downloads-intro {
  max-width: 56rem;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.2rem 0 2rem;
}

.download-format {
  padding: 1rem;
  background: var(--help-surface-soft);
  border: 1px solid var(--help-border);
  border-radius: 0.3rem;
}

.download-format strong {
  display: block;
  margin-bottom: 0.25rem;
}

.download-table a[download] {
  font-weight: 650;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #ffbf47 !important;
  outline-offset: 3px;
}

@page {
  size: A4 portrait;
  margin: 18mm 16mm 20mm;
}

@media print {
  html,
  body {
    background: #ffffff !important;
  }

  .md-header,
  .md-tabs,
  .md-sidebar,
  .md-footer,
  .md-top,
  .md-dialog,
  .md-content__button,
  .help-home__hero-art,
  .md-main::before,
  .md-main::after {
    display: none !important;
  }

  .md-main,
  .md-content,
  .md-content__inner,
  .help-home,
  .help-home__hero,
  .help-home__catalog,
  .help-home__services,
  .help-home__assurance {
    width: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #111111 !important;
    background: #ffffff !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .help-home__hero {
    page-break-after: avoid;
  }

  .help-home h1,
  .help-home__lead,
  .help-home__eyebrow {
    color: #111111 !important;
  }

  .help-home__catalog-grid,
  .help-home__service-grid,
  .help-home__link-columns,
  .help-home__assurance {
    display: block !important;
  }

  .help-home__catalog-card,
  .help-home__service,
  .md-typeset .admonition,
  .md-typeset details,
  .md-typeset table,
  pre,
  blockquote {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  h1,
  h2,
  h3,
  h4 {
    break-after: avoid;
    page-break-after: avoid;
  }

  a {
    color: #005b78 !important;
    text-decoration: underline !important;
  }
}

@media screen and (max-width: 76rem) {
  .md-main::before,
  .md-main::after {
    width: 5rem;
    opacity: 0.1;
  }

  .help-home__service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 60rem) {
  .md-main::before,
  .md-main::after {
    display: none;
  }

  .help-home {
    margin: -1.75rem -1.25rem -2.75rem;
  }

  .help-home__hero-art {
    width: 12rem;
    opacity: 0.45;
  }

  .help-home__catalog-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 44rem) {
  .help-home__hero-inner {
    padding: 3rem 1rem 6rem;
  }

  .help-home h1 {
    font-size: 2.35rem;
  }

  .help-home__catalog {
    padding-inline: 0.85rem;
  }

  .help-home__catalog-card {
    padding: 1.3rem;
  }

  .help-home__link-columns,
  .help-home__service-grid,
  .help-home__assurance {
    grid-template-columns: 1fr;
  }

  .md-footer-meta__inner {
    display: block;
    padding: 1rem 0.8rem 1.2rem;
  }

  .sls-footer__identity {
    grid-template-columns: 4.25rem minmax(0, 1fr);
  }

  .sls-footer__logo {
    width: 4rem;
    max-height: 4rem;
  }

  .md-social {
    margin-top: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .help-home__service {
    transition: none;
  }
}
