.ntl-article-archive {
  min-height: 420px;
  padding: 40px 0 70px;
  background: var(--ntl-light);
}

.ntl-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 20px;
  align-items: start;
}

.ntl-article-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .13);
  transition: box-shadow .35s ease-in-out;
}

.ntl-article-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1300 / 709;
  overflow: hidden;
  background: #e8e8e8;
}

.ntl-article-card__media img,
.ntl-article-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .7s ease-out;
}

.ntl-article-card__placeholder { display: block; }

.ntl-article-card__date {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  width: 54px;
  min-height: 54px;
  padding: 5px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: var(--ntl-dark);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
  font-style: normal;
  line-height: 1;
}

.ntl-article-card__date span { font-size: 20px; font-weight: 400; }
.ntl-article-card__date small { margin-top: 5px; font-size: 11px; font-weight: 600; }

.ntl-article-card__body {
  position: relative;
  display: flex;
  padding: 26px 24px 24px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ntl-article-card__category {
  display: inline-block;
  max-width: calc(100% - 30px);
  padding: 5px 10px;
  border-radius: 4px;
  color: #fff;
  background: var(--ntl-primary-accessible);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.ntl-article-card__body > .ntl-article-card__category {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ntl-article-card h2 {
  margin: 0 0 14px;
  color: var(--ntl-dark);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
}

.ntl-article-card h2 a { color: inherit; transition: color .25s ease; }
.ntl-article-card h2 a:hover,
.ntl-article-card h2 a:focus-visible { color: rgba(51, 51, 51, .58); }

.ntl-article-card p {
  margin: 0 0 18px;
  color: #8a8a8a;
  font-size: 15px;
  line-height: 1.65;
}

.ntl-article-card__more {
  margin-top: auto;
  color: var(--ntl-primary-dark);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  transition: color .25s ease;
}

.ntl-article-card__more:hover,
.ntl-article-card__more:focus-visible { color: var(--ntl-primary); }

@media (hover: hover) {
  .ntl-article-card:hover .ntl-article-card__media img { transform: scale(1.05); }
}

.ntl-article-card:focus-within .ntl-article-card__media img { transform: scale(1.05); }
.ntl-article-card:hover,
.ntl-article-card:focus-within { box-shadow: 0 5px 17px rgba(0, 0, 0, .22); }
.ntl-article-card a:focus-visible { outline: 3px solid var(--ntl-primary); outline-offset: 3px; }

.ntl-article-archive .page-numbers {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 0;
  margin: 42px 0 0;
  list-style: none;
}

.ntl-article-archive .page-numbers a,
.ntl-article-archive .page-numbers .current {
  display: grid;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  place-items: center;
  border-radius: 4px;
  background: #fff;
}

.ntl-article-archive .page-numbers .current,
.ntl-article-archive .page-numbers a:hover,
.ntl-article-archive .page-numbers a:focus-visible { color: #fff; background: var(--ntl-primary); }

.ntl-article-single { padding: 55px 15px 80px; background: #fff; }
.ntl-article-single__article { width: min(100%, 920px); margin-inline: auto; }
.ntl-article-single__header { width: min(100%, 880px); margin: 0 auto 30px; text-align: center; }
.ntl-article-single__header h1 { margin: 18px 0 14px; color: var(--ntl-dark); font-size: clamp(30px, 3vw, 42px); font-weight: 600; line-height: 1.28; }
.ntl-article-single__meta { display: flex; justify-content: center; gap: 10px 22px; margin: 0; color: #999; font-size: 14px; }
.ntl-article-single__hero { width: min(100%, 640px); margin: 0 auto 42px; overflow: hidden; border-radius: 8px; aspect-ratio: 16 / 9; }
.ntl-article-single__hero img { width: 100%; height: 100%; object-fit: cover; }
.ntl-article-single__content { width: min(100%, 820px); margin-inline: auto; color: var(--ntl-text); font-size: 17px; line-height: 1.75; }
.ntl-article-single__content > *:first-child { margin-top: 0; }
.ntl-article-single__content h2,
.ntl-article-single__content h3,
.ntl-article-single__content h4 { color: var(--ntl-heading); }
.ntl-article-single__content h2 { margin: 48px 0 18px; font-size: 30px; line-height: 1.35; }
.ntl-article-single__content h3 { margin: 36px 0 15px; font-size: 24px; line-height: 1.4; }
.ntl-article-single__content p,
.ntl-article-single__content ul,
.ntl-article-single__content ol { margin-top: 0; margin-bottom: 16px; }
.ntl-article-single__content figure,
.ntl-article-single__content .wp-block-image { width: min(100%, 820px); margin: 34px auto; }
.ntl-article-single__content img { width: 100%; height: auto; border-radius: 6px; }
.ntl-article-single__content a { color: var(--ntl-primary-dark); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .18em; transition: color .22s ease, text-decoration-color .22s ease; }
.ntl-article-single__content a:hover,
.ntl-article-single__content a:focus-visible { color: var(--ntl-primary); text-decoration-color: currentColor; }
.ntl-article-single__content a:focus-visible { outline: 2px solid var(--ntl-primary); outline-offset: 3px; }

.ntl-related { width: 100%; padding-top: 60px; margin-top: 60px; border-top: 1px solid #e5e5e5; }
.ntl-related__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.ntl-related__head h2 { margin: 0; color: var(--ntl-heading); font-size: 28px; }
.ntl-related__controls { display: flex; gap: 8px; }
.ntl-related__controls button { display: grid; width: 42px; height: 42px; padding: 0; place-items: center; border: 1px solid #d6d6d6; border-radius: 50%; color: var(--ntl-dark); background: #fff; font-size: 27px; line-height: 1; cursor: pointer; transition: color .25s ease, border-color .25s ease, background-color .25s ease; }
.ntl-related__controls button:hover,
.ntl-related__controls button:focus-visible { border-color: var(--ntl-primary); color: #fff; background: var(--ntl-primary); }
.ntl-related__controls button:disabled { opacity: .35; cursor: default; }
.ntl-related__viewport { overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ntl-related__viewport::-webkit-scrollbar { display: none; }
.ntl-related__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; align-items: start; }
.ntl-related .ntl-article-card { scroll-snap-align: start; }
.ntl-related .ntl-article-card__body { padding-inline: 20px; }
.ntl-related .ntl-article-card h2 { font-size: 18px; }
.ntl-related .ntl-article-card p { font-size: 14px; }

@media (max-width: 900px) {
  .ntl-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ntl-related__track { grid-auto-columns: calc((100% - 20px) / 2); }
}

@media (max-width: 620px) {
  .ntl-article-archive { padding: 28px 0 50px; }
  .ntl-article-grid { grid-template-columns: 1fr; gap: 24px; }
  .ntl-article-card__body { min-height: 0; }
  .ntl-article-single { padding: 38px 15px 55px; }
  .ntl-article-single__header h1 { font-size: 29px; }
  .ntl-article-single__meta { flex-direction: column; gap: 2px; }
  .ntl-article-single__content { font-size: 16px; }
  .ntl-article-single__content h2 { font-size: 25px; }
  .ntl-related { padding-top: 45px; margin-top: 45px; }
  .ntl-related__head h2 { font-size: 24px; }
  .ntl-related__track { grid-auto-columns: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ntl-article-card__media img,
  .ntl-article-card,
  .ntl-related__viewport { transition: none; scroll-behavior: auto; }
}
