.news-public-page {
  background: var(--paper);
  color: var(--ink);
}

.news-public-page .site-header {
  background: var(--ink);
}

.news-public-page .header-contact,
.news-public-page .menu-toggle {
  color: var(--paper);
}

.news-public-page .header-contact:hover,
.news-public-page .header-contact:focus-visible {
  color: var(--ink);
}

.news__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: clamp(2rem, 4vw, 4rem) 0;
  color: #625f59;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.news-story--no-cover .news-story__content {
  padding-top: clamp(1.5rem, 2.4vw, 2.75rem);
}

.news-archive {
  min-height: 75vh;
  padding-top: calc(var(--header-height) + clamp(4rem, 7vw, 8rem));
}

.news-archive .news__heading h1 {
  margin: 0;
  max-width: 11ch;
  font-family: var(--serif);
  font-size: clamp(3.1rem, 5vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.news-archive .news__heading h1 em {
  color: var(--red);
  font-weight: 400;
}

.news-archive__list .news-story {
  border-bottom: 1px solid var(--line-light);
}

.news-archive__list .news-story:nth-child(3n + 1) {
  border-left: 0;
}

.news-archive__list--plain {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-pagination {
  display: flex;
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 5rem);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.news-pagination a {
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.35rem;
  color: var(--red);
}

.news-pagination a:last-child {
  margin-left: auto;
}

.news-pagination a:focus-visible,
.article-page a:focus-visible,
.news-error a:focus-visible {
  outline-color: var(--red);
}

.article-page {
  min-height: 75vh;
  padding: calc(var(--header-height) + clamp(4rem, 7vw, 8rem)) var(--page-gutter) clamp(6rem, 10vw, 11rem);
  background: var(--paper);
  color: var(--ink);
}

.article-page__heading,
.article-page__cover {
  max-width: 72rem;
  margin-right: auto;
  margin-left: auto;
}

.article-page__back {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.35rem;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.article-page__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin: clamp(3rem, 6vw, 6rem) 0 1.5rem;
  color: #78736b;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-page h1 {
  max-width: 20ch;
  margin: clamp(2.5rem, 5vw, 5rem) 0 0;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.article-page__meta + h1 {
  margin-top: 0;
}

.article-page__excerpt {
  max-width: 46rem;
  margin: clamp(2rem, 4vw, 3.5rem) 0 0;
  overflow-wrap: anywhere;
  color: #625f59;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.7;
}

.article-page__cover {
  overflow: hidden;
  margin-top: clamp(3rem, 6vw, 6rem);
  aspect-ratio: 1.65;
  background: #d9d4ca;
}

.article-page__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-page__content {
  max-width: 44rem;
  margin: clamp(3rem, 7vw, 7rem) auto 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.02rem, 1.15vw, 1.15rem);
  line-height: 1.85;
}

.article-page__content > :first-child {
  margin-top: 0;
}

.article-page__content p,
.article-page__content ul,
.article-page__content ol,
.article-page__content blockquote {
  margin: 0 0 1.5em;
}

.article-page__content h1,
.article-page__content h2,
.article-page__content h3,
.article-page__content h4 {
  margin: 1.7em 0 0.65em;
  font-size: clamp(1.5rem, 2.2vw, 2.3rem);
  line-height: 1.25;
}

.article-page__content ul,
.article-page__content ol {
  padding-left: 1.6em;
}

.article-page__content blockquote {
  border-left: 3px solid var(--red);
  padding-left: 1.4rem;
  color: #625f59;
  font-family: var(--serif);
  font-style: italic;
}

.article-page__content a {
  color: var(--red-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.article-page__source {
  max-width: 44rem;
  margin: 2rem auto 0;
  color: #625f59;
  font-size: 0.8rem;
}

.article-page__source a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.article-page__end {
  margin: 3rem 0 0 max(0px, calc((100% - 44rem) / 2));
}

.news-error {
  min-height: 75vh;
  padding: calc(var(--header-height) + clamp(4rem, 7vw, 8rem)) var(--page-gutter) clamp(5rem, 8vw, 8rem);
  background: var(--paper);
  color: var(--ink);
}

.news-error h1 {
  max-width: 15ch;
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
}

.news-error > p:not(.eyebrow) {
  color: #625f59;
}

.news-error a {
  display: inline-block;
  margin-top: 2rem;
  border-bottom: 1px solid currentColor;
  color: var(--red);
}

.not-found {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(17rem, 0.7fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 9rem);
  padding: calc(var(--header-height) + clamp(3rem, 6vw, 7rem)) var(--page-gutter) clamp(5rem, 8vw, 8rem);
  background: var(--paper);
  color: var(--ink);
}

.not-found__intro .eyebrow {
  margin: 0 0 1.5rem;
  color: var(--red);
}

.not-found h1 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.07;
}

.not-found__intro > p:not(.eyebrow) {
  max-width: 35rem;
  margin: 2rem 0 0;
  color: #625f59;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.7;
}

.not-found__home {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding: 0.85rem 1.2rem;
  background: var(--red);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

.not-found__home:hover {
  background: var(--red-deep);
}

.not-found__paths {
  border-top: 1px solid var(--line-light);
  padding-top: 1.4rem;
}

.not-found__paths h2 {
  margin: 0 0 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.not-found__paths a {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
}

.not-found__paths a span {
  color: var(--red);
}

.not-found__paths a:hover {
  color: var(--red-deep);
}

.not-found a:focus-visible {
  outline-color: var(--red-deep);
}

@media (max-width: 70rem) {
  .news-archive__list--plain {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-archive__list .news-story:nth-child(3n + 1) {
    border-left: 1px solid var(--line-light);
  }

  .news-archive__list .news-story:nth-child(2n + 1) {
    border-left: 0;
  }

  .news-story--no-cover.news-story--featured .news-story__link {
    display: flex;
  }
}

@media (max-width: 52rem) {
  .not-found {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 4rem;
  }

  .news-public-page .site-nav a[href$="radar-bancario.html"],
  .news-public-page .site-nav a[href$="jurisbancario.html"] {
    color: #f5d4d4;
    background-image: none;
    -webkit-text-fill-color: currentColor;
    animation: none;
    text-shadow: none;
  }

  .news-archive__list--plain {
    grid-template-columns: 1fr;
  }

  .news-archive__list .news-story {
    border-left: 0;
  }

  .news-story--featured .news-story__content {
    padding-top: 1.5rem;
  }

  .article-page__cover {
    aspect-ratio: 1.3;
  }
}
