:root {
  --materials-width: 1340px;
}

[hidden] {
  display: none !important;
}

button {
  font-family: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: #031014;
  background: var(--cyan-soft);
  font-size: 13px;
  font-weight: 750;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header.is-condensed {
  min-height: 64px;
  background: rgba(2, 7, 10, 0.96);
}

.header-nav a.is-current {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.materials-page {
  min-height: 100vh;
  color: #101820;
  background: linear-gradient(180deg, #edf4f5, #f8fbfb);
}

.materials-catalog {
  padding: calc(var(--header-height) + 52px) var(--page-gutter) 116px;
}

.materials-catalog-inner {
  width: min(var(--materials-width), 100%);
  margin: 0 auto;
}

.back-link {
  width: fit-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(16, 24, 32, 0.14);
  border-radius: 10px;
  color: #54636c;
  background: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 680;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    transform 180ms var(--ease-out);
}

.back-link span:first-child {
  color: #087f92;
  font-size: 17px;
  line-height: 1;
}

.back-link:hover,
.back-link:focus-visible {
  color: #101820;
  border-color: rgba(8, 127, 146, 0.34);
  background: rgba(255, 255, 255, 0.86);
  transform: translateX(-2px);
}

.catalog-heading {
  margin-top: 34px;
}

.catalog-heading h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(38px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.catalog-description {
  max-width: 900px;
  margin: 16px 0 0;
  color: #65737e;
  font-size: clamp(15px, 1.25vw, 17px);
  font-weight: 470;
  line-height: 1.58;
}

.catalog-description a {
  color: #075f6d;
  text-decoration-line: underline;
  text-decoration-color: rgba(8, 127, 146, 0.34);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.catalog-description a:hover,
.catalog-description a:focus-visible {
  color: #034a55;
  text-decoration-color: currentColor;
}

.filters-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 30px;
  padding: 16px 0;
  border-top: 1px solid rgba(16, 24, 32, 0.12);
  border-bottom: 1px solid rgba(16, 24, 32, 0.12);
}

.topics-list {
  min-width: 0;
  display: none;
  flex-wrap: wrap;
  gap: 8px;
}

.has-js .topics-list {
  display: flex;
}

.topic-button {
  scroll-margin-top: calc(var(--header-height) + 16px);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 10px;
  color: #53616a;
  background: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.2;
  cursor: pointer;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 180ms var(--ease-out);
}

.topic-button:hover,
.topic-button:focus-visible {
  color: #075f6d;
  border-color: rgba(8, 127, 146, 0.34);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.topic-button.is-active {
  color: #ffffff;
  border-color: #0b313a;
  background: #0b313a;
  box-shadow: 0 8px 22px rgba(5, 50, 59, 0.13);
}

.materials-count {
  flex: 0 0 auto;
  margin: 0;
  color: #5f6d77;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.materials-grid .material-card {
  min-width: 0;
  min-height: 460px;
  height: 460px;
  padding: 0;
  color: #101820;
  border-color: rgba(16, 24, 32, 0.13);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(245, 251, 251, 0.78)),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 34px rgba(23, 82, 92, 0.045);
  transition:
    border-color 180ms ease,
    box-shadow 220ms ease,
    transform 220ms var(--ease-out);
}

.materials-grid .material-card::after {
  display: none;
}

.materials-grid .material-card--published {
  cursor: pointer;
}

.materials-grid .material-card--published .journal-read {
  align-items: center;
  gap: 9px;
  font-weight: 720;
}

.materials-grid .material-card--published .journal-read b {
  font-size: 17px;
  font-weight: 500;
  transition: transform 180ms var(--ease-out);
}

.materials-grid .material-card--published:hover .journal-read b,
.materials-grid .material-card--published:focus-visible .journal-read b {
  transform: translateX(3px);
}

.materials-grid .journal-card-body {
  min-height: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 24px;
}

.materials-grid .journal-category {
  max-width: 100%;
  min-height: 28px;
  padding: 7px 12px;
  border-radius: 9px;
  color: #087f92;
  background: #e2f1f3;
  font-size: 9px;
  letter-spacing: 0.055em;
  line-height: 1.35;
  white-space: normal;
}

.materials-grid .journal-card h3 {
  max-width: 100%;
  margin: 17px 0 0;
  font-size: clamp(21px, 1.8vw, 25px);
  font-weight: 690;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.materials-grid .journal-summary {
  display: -webkit-box;
  max-width: 100%;
  margin: 13px 0 0;
  overflow: hidden;
  color: #65737e;
  font-size: 14px;
  font-weight: 470;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.materials-grid .journal-read {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 16px;
  color: #087f92;
  font-size: 13px;
}

.has-js .materials-grid .journal-card {
  opacity: 1;
  transform: none;
}

.has-js .materials-grid .material-card.is-preview {
  min-height: 82px;
  height: 82px;
  opacity: 0.58;
  pointer-events: none;
  border-color: rgba(8, 127, 146, 0.12);
  box-shadow: none;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.72) 58%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.72) 58%, transparent 100%);
}

.materials-grid .material-card.is-preview .journal-media {
  min-height: 112px;
  flex-basis: 112px;
  border-bottom: 0;
}

.materials-grid .material-card.is-preview .journal-card-body {
  display: none;
}

.material-card.is-entering {
  animation: material-card-enter 460ms var(--ease-out) both;
}

.materials-empty {
  margin: 34px 0 0;
  padding: 38px 0;
  border-top: 1px solid rgba(16, 24, 32, 0.12);
  border-bottom: 1px solid rgba(16, 24, 32, 0.12);
  color: #65737e;
  font-size: 15px;
}

.load-more-row {
  display: none;
  justify-content: center;
  margin-top: 42px;
}

.has-js .load-more-row {
  display: flex;
}

.load-more-button {
  min-width: 190px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 17px 0 20px;
  border: 1px solid rgba(8, 127, 146, 0.3);
  border-radius: 10px;
  color: #075f6d;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(23, 82, 92, 0.06);
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    transform 180ms var(--ease-out);
}

.load-more-button span:last-child {
  font-size: 18px;
  line-height: 1;
}

.load-more-button:hover,
.load-more-button:focus-visible {
  color: #ffffff;
  border-color: #087f92;
  background: #087f92;
  transform: translateY(-2px);
}

.cookie-settings-link {
  display: none;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  font: inherit;
  cursor: pointer;
  transition: color 160ms ease;
}

.has-js .cookie-settings-link {
  display: inline-block;
}

.cookie-settings-link:hover,
.cookie-settings-link:focus-visible {
  color: var(--cyan);
}

.back-link:focus-visible,
.topic-button:focus-visible,
.load-more-button:focus-visible,
.material-card--published:focus-visible,
.brand:focus-visible,
.cookie-settings-link:focus-visible {
  outline: 3px solid rgba(8, 127, 146, 0.4);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .materials-grid .material-card:hover {
    border-color: rgba(8, 127, 146, 0.28);
    box-shadow: 0 18px 42px rgba(23, 82, 92, 0.1);
    transform: translateY(-3px);
  }
}

@media (max-width: 1100px) {
  .materials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 64px;
    --page-gutter: 18px;
  }

  .site-header {
    min-height: var(--header-height);
  }

  .header-nav a:not(.header-cta) {
    display: none;
  }

  .header-nav .header-cta {
    min-height: 38px;
    margin-left: 0;
    padding: 0 12px;
    font-size: 12px;
  }

  .materials-catalog {
    padding-top: calc(var(--header-height) + 32px);
    padding-bottom: 76px;
  }

  .catalog-heading {
    margin-top: 28px;
  }

  .catalog-heading h1 {
    font-size: 38px;
  }

  .filters-row {
    display: block;
    margin-top: 24px;
    padding: 14px 0;
  }

  .topics-list {
    width: calc(100% + (var(--page-gutter) * 2));
    margin-left: calc(var(--page-gutter) * -1);
    padding: 0 var(--page-gutter);
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-padding-inline: var(--page-gutter);
    scrollbar-width: none;
  }

  .topics-list::-webkit-scrollbar {
    display: none;
  }

  .topic-button {
    flex: 0 0 auto;
  }

  .materials-count {
    margin-top: 14px;
  }

  .materials-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 26px;
  }

  .materials-grid .material-card {
    min-height: 450px;
    height: 450px;
  }

  .materials-grid .journal-card h3 {
    font-size: clamp(21px, 6vw, 23px);
  }

  .load-more-row {
    margin-top: 32px;
  }

  .load-more-button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .brand-copy strong {
    font-size: 14px;
  }

  .header-nav .header-cta {
    padding: 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes material-card-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
