.articles-loading,
.articles-empty {
  color: #8c919b;
  font-style: italic;
  margin: 1rem 0 2rem;
}

.articles-intro {
  max-width: 42rem;
  margin: 0 auto 2rem;
  color: #444;
  line-height: 1.6;
}

.page-content #articles-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  column-gap: 1.5rem;
  row-gap: 2.25rem;
  gap: 2.25rem 1.5rem;
  align-items: start;
  margin: 0 auto 3rem;
  max-width: 960px;
  padding: 0.25rem 0 1rem;
}

.articles-card {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 1.5rem 1.5rem 1.35rem;
  border: 1px solid #ddd;
  border-bottom: 3px solid #003875;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  height: auto;
}

.articles-card:hover,
.articles-card:focus {
  box-shadow: 0 4px 16px rgba(0, 56, 117, 0.12);
  border-bottom-color: #ffcc0d;
  color: inherit;
}

.page-content #articles-list .articles-card__title {
  font-family: Oswald, sans-serif;
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 0;
  color: #003875;
}

.page-content #articles-list .articles-card__excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0.85rem 0 0;
  color: #333;
  flex: 1 1 auto;
}

.page-content #articles-list .articles-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 1.15rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #e8e8e8;
  font-size: 0.85rem;
  color: #8c919b;
}

.articles-card__source {
  font-weight: 600;
  color: #555;
}

.articles-detail-wrap {
  max-width: 720px;
  margin: 0 auto 3rem;
}

.articles-detail__date {
  color: #8c919b;
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}

.articles-detail__body h2 {
  font-family: Oswald, sans-serif;
  font-size: 1.35rem;
  color: #003875;
  margin: 2rem 0 0.75rem;
}

.articles-detail__body p {
  line-height: 1.65;
  margin: 0 0 1rem;
}

.articles-back {
  display: inline-block;
  margin: 0 0 1.5rem;
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #003875;
  text-decoration: none;
}

.articles-back:hover,
.articles-back:focus {
  color: #325175;
}

.articles-source {
  margin-top: 2.5rem;
  padding: 1.25rem 1.35rem;
  background: #f7f7f7;
  border-left: 4px solid #003875;
}

.articles-source h2 {
  font-family: Oswald, sans-serif;
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  color: #003875;
}

.articles-source dl {
  margin: 0;
}

.articles-source dt {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #8c919b;
  margin-top: 0.65rem;
}

.articles-source dt:first-child {
  margin-top: 0;
}

.articles-source dd {
  margin: 0.15rem 0 0;
  line-height: 1.5;
  word-break: break-word;
}

.articles-source a {
  color: #003875;
}

.articles-not-found {
  max-width: 560px;
  margin: 2rem auto;
  text-align: center;
}

.articles-not-found h2 {
  font-family: Oswald, sans-serif;
  color: #003875;
}

.secondary-menu .menu-item-articles.current-menu-item > a,
.secondary-menu .menu-item-articles.current-menu-item > a:hover {
  color: #ffcc0d;
}

.main-menu .menu-item-articles.current-menu-item > a {
  color: #325175;
}

@media (max-width: 600px) {
  .page-content #articles-list {
    grid-template-columns: 1fr;
    row-gap: 1.75rem;
    gap: 1.75rem;
  }

  .page-content #articles-list .articles-card__title {
    font-size: 1.2rem;
  }
}
