

.substancespage-shell .em-host {
    padding: 0px 0px 100px
}

:root:not(.theme-dark) .substancespage-shell .em-host .em-grid {
  background: none;
}


.categories-sticky-shell {
  
    position: sticky;
    top: 0;
    z-index: 30;

    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px) saturate(1.05);
    -webkit-backdrop-filter: blur(10px) saturate(1.05);
    width: auto;
    padding: 1em;
    
}

@media (orientation: portrait) and (max-width: 519px) {
  
  body.nav-mobile-active
    .page-shell[data-route="library"][data-route-tab="categories"]
    > .content-refresh-transition {
    padding-top: 0;
  }

  body.nav-mobile-active .categories-sticky-shell {
    position: static;
    position: initial;
    
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding-top: calc(
      var(--floating-topbar-content-top) + 1em
    );
}
}




.theme-dark .categories-sticky-shell {
    background: rgba(20, 20, 20, 0.55);
}

.theme-dark .substancespage-shell .em-host .em-tile.category-tile {
  color: #ffffff;
}
.theme-dark .substancespage-shell .em-tile {
  opacity: .7!important;
}


.substancespage-shell .list-group-header {
        font-size: 18px;
        font-weight: 800;
        opacity: 0.65;
        margin: 1em 0em 1em 1em;
}





.secondary-grid .secondary-header {
  max-width: 100%;
  font-size: clamp(18px, calc(0.87vw + 2.5px), 30px);
  font-weight: 800;
  opacity: 0.55;

  text-align: center;
  align-self: center;
  grid-column: auto !important;

  white-space: normal;

  
  word-break: keep-all;        
  overflow-wrap: break-word;  

  hyphens: none;               
  -webkit-hyphens: none;
}






.substancespage-shell .category-tile {
    min-height: 110px;
    padding: 16px 10px;
    border-radius: 7px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;

    box-shadow: 0 1px 2px rgba(0,0,0,0.06);

    
    transition:
      transform 160ms cubic-bezier(.2,.8,.2,1),
      box-shadow 160ms ease;
    will-change: transform;
}


.substancespage-shell .category-tile:hover {
  transform: scale(1.035);
  z-index: 5;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}


.substancespage-shell .em-grid .category-tile:not(:hover) {
  transform: scale(0.985);
  opacity: 0.92;
}

.substancespage-shell .category-tile .em-tile__title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.15;
    margin-top: 0px;
    white-space: normal;
    
      word-break: keep-all;
  overflow-wrap: break-word;

  hyphens: none;
  -webkit-hyphens: none;
}

.substancespage-shell .category-tile .em-tile__meta {
    font-size: 12px;            
    opacity: 0.7;
    margin-top: 4px;
}




@media (min-width: 900px) {
    .substancespage-shell .secondary-grid {
        --cols: 3 !important;
    }
    .substancespage-shell .category-tile {
        min-height: 95px;
        padding: 12px 8px;
    }
}




.secondary-grid.is-masonry .category-tile {
  grid-row: span calc(1 * 10);
  grid-row: span calc(var(--tile-h, 1) * 10);
  grid-column: span 1;
  grid-column: span var(--tile-w, 1);
  align-self: stretch;
  height: auto;
}



.secondary-grid.is-masonry .secondary-header--group {
display: none;
}



.secondary-grid.is-masonry .em-tile__title {
  font-size: 1.2rem!important;

    white-space: normal!important;
  word-break: break-word!important;

}

.alerts-crawlable-archive {
  margin: 24px auto 40px;
  max-width: 1100px;
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 14px;
}

.alerts-crawlable-archive summary {
  cursor: pointer;
  font-weight: 700;
}

.alerts-crawlable-archive nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 16px 0;
}

.alerts-crawlable-archive ol {
  columns: 2;
  column-gap: 32px;
}

@media (max-width: 720px) {
  .alerts-crawlable-archive ol {
    columns: 1;
  }
}

.alerts-content-transition {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.services-content {
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.services-page {
  --services-page-inline-padding: clamp(14px, 3vw, 28px);
  box-sizing: border-box;
  width: min(100%, 760px);
  max-width: 100vw;
  min-width: 0;
  margin: 0 auto;
  padding: 24px var(--services-page-inline-padding) calc(112px + env(safe-area-inset-bottom));
  color: #17181a;
  color: var(--text-color, #17181a);
}

.services-page__header {
  padding: 4px 2px 20px;
}

.services-page__header h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.services-page__header p {
  max-width: 580px;
  margin: 10px 0 0;
  color: color-mix(in srgb, currentColor 62%, transparent);
  font-size: 15px;
  line-height: 1.45;
}

.services-page__search,
.services-search-skeleton {
  width: 100%;
  min-width: 0;
  margin: 0 0 24px;
}

.services-page__search .lab-search-shell,
.services-page__search .lab-search-row,
.services-page__search .lab-search-bar {
  width: 100%;
  min-width: 0;
}

.services-search-skeleton {
  box-sizing: border-box;
  height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  border-radius: 16px;
  background: color-mix(in srgb, currentColor 7%, transparent);
}

.services-search-skeleton .gp-skeleton-line {
  width: min(42%, 220px);
  height: 12px;
}

.services-loading {
  min-width: 0;
}

.services-loading .gp-skeleton-media {
  aspect-ratio: auto;
  height: 178px;
}

.services-page__empty {
  margin: 24px 2px;
  color: color-mix(in srgb, currentColor 64%, transparent);
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}

.services-list {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-gap: 18px;
  gap: 18px;
}

.service-country-groups {
  display: grid;
  min-width: 0;
  grid-gap: 34px;
  gap: 34px;
}

.service-country {
  width: 100%;
  min-width: 0;
  content-visibility: auto;
  contain-intrinsic-block-size: auto 720px;
}

.services-page__load-sentinel {
  width: 100%;
  height: 1px;
}

.service-country__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 2px 12px;
}

.service-country__header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.service-country__header span {
  display: grid;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  place-items: center;
  border-radius: 999px;
  color: color-mix(in srgb, currentColor 62%, transparent);
  background: color-mix(in srgb, currentColor 8%, transparent);
  font-size: 12px;
  font-weight: 750;
}

.service-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(35, 39, 45, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(30, 37, 48, 0.08);
}

.service-card__map-button {
  display: grid;
  width: 28px;
  height: 28px;
  margin: -6px -6px -6px -7px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.service-card__map-button:active {
  transform: scale(0.92);
}

.service-card__map-button:focus-visible {
  outline: 2px solid #7768e8;
  outline: 2px solid var(--accent, #7768e8);
  outline-offset: 1px;
}

.service-card__hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 142px;
  padding: 18px 20px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.94);
  background: #7768e8;
}

.service-card__hero::before,
.service-card__hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.service-card__hero::before {
  width: 210px;
  height: 210px;
  top: -118px;
  right: -38px;
}

.service-card__hero::after {
  width: 150px;
  height: 150px;
  left: 18%;
  bottom: -116px;
}

.service-card__hero--blue { background: #3183bf; }
.service-card__hero--coral { background: #d66b61; }
.service-card__hero--green { background: #478d78; }
.service-card__hero--amber { background: #c58a34; }

.service-card__hero .mdi-icon {
  position: relative;
  z-index: 1;
}

.service-card__hero img {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-page__loader {
  width: 32px;
  height: 32px;
  margin: 42px auto;
  border: 3px solid color-mix(in srgb, currentColor 14%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: services-loader-spin 700ms linear infinite;
}

.service-card__hero .mdi-icon {
  width: 42px;
  height: 42px;
  opacity: 0.88;
}

.service-card__body {
  min-width: 0;
  padding: 18px 20px 20px;
}

.service-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 5px;
  color: color-mix(in srgb, currentColor 56%, transparent);
  font-size: 12px;
  font-weight: 650;
}

.service-card__eyebrow span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.service-card__eyebrow .mdi-icon {
  width: 16px;
  height: 16px;
}

.service-card h3 {
  margin: 7px 0 6px;
  font-size: 20px;
  line-height: 1.16;
  letter-spacing: -0.018em;
  overflow-wrap: anywhere;
}

.service-card p {
  margin: 0;
  color: color-mix(in srgb, currentColor 68%, transparent);
  font-size: 14px;
  line-height: 1.45;
}

.service-card__contacts {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  margin-top: 16px;
}

.service-card__contacts div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.service-card__contacts .mdi-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: color-mix(in srgb, currentColor 48%, transparent);
}

.service-card__contacts b {
  min-width: 0;
  overflow-wrap: anywhere;
  color: color-mix(in srgb, currentColor 82%, transparent);
  font-size: 12px;
  font-weight: 720;
}

.theme-dark .services-page { color: #f5f5f7; }
.theme-dark .service-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(34, 35, 39, 0.94);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

@media (orientation: portrait) and (max-width: 519px) {
  
  body.nav-mobile-active
    .page-shell[data-route="alerts"][data-route-tab="services"]
    .services-page {
    padding-top: calc(
      var(--floating-topbar-content-top)
      + 20px
    );
    padding-top: calc(
      var(--floating-topbar-content-top)
      + var(--app-route-content-gap, 20px)
    );
  }
}

@media (min-width: 720px) {
  .services-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 719px) {
  .services-page__search,
  .services-search-skeleton {
    width: auto;
    margin-inline: calc(-1 * var(--services-page-inline-padding));
  }

  .services-list {
    width: auto;
    margin-inline: calc(-1 * var(--services-page-inline-padding));
  }
}

@keyframes services-loader-spin {
  to { transform: rotate(360deg); }
}

