/* Newsletters page: the three research cards under the hero (Market News, Economic Insights, Trade Ideas).
   Each card is one link. Loaded only by /en/newsletters/. */

.nl-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  align-items: stretch;
}

.nl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  height: 100%;
  padding: 28px 28px 24px;
  border: 1px solid var(--light-border, #e7e7e8);
  border-radius: 16px;
  background-color: var(--primary-white, #fff);
  box-shadow: 0 1px 2px rgba(17, 12, 46, .04);
  color: var(--black, #000);
  text-decoration: none;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

/* Thin accent line along the top edge, revealed on hover. */
.nl-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-purple, #6139fb), var(--gradient-blue, #8fd5f5));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}

.nl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(97, 57, 251, .35);
  box-shadow: 0 18px 40px rgba(97, 57, 251, .10);
  color: var(--black, #000);
}

.nl-card:hover::before,
.nl-card:focus-visible::before { transform: scaleX(1); }

.nl-card:focus { outline: none; }
.nl-card:focus-visible {
  outline: 2px solid var(--accent-purple, #6139fb);
  outline-offset: 3px;
  border-color: rgba(97, 57, 251, .5);
}

.nl-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nl-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(97, 57, 251, .08);
  color: var(--accent-purple, #6139fb);
  transition: background-color .3s ease, color .3s ease;
}

.nl-card:hover .nl-card-icon,
.nl-card:focus-visible .nl-card-icon {
  background-color: var(--accent-purple, #6139fb);
  color: var(--primary-white, #fff);
}

.nl-card-kicker {
  padding: 4px 10px;
  border: 1px solid var(--light-border, #e7e7e8);
  border-radius: 100px;
  background-color: var(--secondary-white, #f9f9fa);
  color: var(--paragraph-text-color, rgba(0, 0, 0, .65));
  font-family: IBM Plex Mono, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nl-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.nl-cards .nl-card-title {
  margin: 0;
  color: var(--black, #000);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
}

.nl-cards .nl-card-text {
  margin: 0;
  color: rgba(0, 0, 0, .68);
  font-size: 16px;
  line-height: 1.6;
}

.nl-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px dashed var(--light-border, #e7e7e8);
  color: var(--black, #000);
  font-size: 15px;
  font-weight: 500;
}

.nl-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 100px;
  background-color: var(--black, #000);
  color: var(--primary-white, #fff);
  transition: background-color .3s ease, transform .3s ease;
}

.nl-card:hover .nl-card-arrow,
.nl-card:focus-visible .nl-card-arrow {
  background-color: var(--accent-purple, #6139fb);
  transform: translateX(3px);
}

@media screen and (max-width: 991px) {
  .nl-cards { grid-template-columns: 1fr 1fr; gap: 20px; }
  .nl-cards > .nl-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media screen and (max-width: 767px) {
  .nl-cards { grid-template-columns: 1fr; gap: 16px; }
  .nl-card { padding: 22px 20px 20px; gap: 16px; }
  .nl-cards .nl-card-title { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .nl-card, .nl-card::before, .nl-card-arrow, .nl-card-icon { transition: none; }
  .nl-card:hover, .nl-card:hover .nl-card-arrow { transform: none; }
}

:where(.ap-h1){font-size:2em;margin-block:.67em}:where(.ap-h2){font-size:1.5em;margin-block:.83em}:where(.ap-h3){font-size:1.17em;margin-block:1em}:where(.ap-h4){font-size:1em;margin-block:1.33em}:where(.ap-h5){font-size:.83em;margin-block:1.67em}:where(.ap-h6){font-size:.67em;margin-block:2.33em}
