.articles-page {
  padding-top: 120px;
}

.articles-hero {
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  display: grid;
  align-items: end;
  margin: 0 auto;
  padding: 46px;
  overflow: hidden;
  border-radius: 42px;
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.92), rgba(255, 250, 242, 0.54), rgba(255, 250, 242, 0.16)),
    url("../assets/golden-dogs.png") center / cover;
  box-shadow: var(--shadow);
}

.articles-hero div {
  max-width: 760px;
}

.articles-hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 20px;
}

.article-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-categories article,
.article-card,
.admin-panel {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 242, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.article-categories article {
  padding: 26px;
}

.article-categories span,
.article-card span {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.article-categories h2 {
  margin-top: 12px;
  font-size: 38px;
}

.article-categories p,
.article-card p {
  color: var(--muted);
}

.article-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 26px;
}

.article-card h3 {
  font-size: 24px;
}

.article-card button,
.article-link {
  justify-self: start;
  border: 0;
  color: var(--brand-dark);
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.article-card .full-text {
  display: none;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  white-space: pre-line;
}

.article-card.is-open .full-text {
  display: block;
}

.admin-panel {
  padding: 34px;
}

.article-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.article-form label:nth-child(3),
.article-form label:nth-child(4),
.admin-actions,
.article-form .form-status {
  grid-column: 1 / -1;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.import-button {
  cursor: pointer;
}

.import-button input {
  display: none;
}

@media (max-width: 900px) {
  .article-categories,
  .article-list,
  .article-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .articles-page {
    padding-top: 96px;
  }

  .articles-hero {
    min-height: 620px;
    padding: 24px;
    border-radius: 30px;
    background:
      linear-gradient(180deg, rgba(255, 250, 242, 0.62), rgba(255, 250, 242, 0.94)),
      url("../assets/golden-dogs.png") center / cover;
  }
}
