.pg-resource-page,
.pg-resource-archive-page {
  background: #f3f4f6;
  padding: 28px 0 56px;
}

.pg-resource-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.pg-resource-hero,
.pg-resource-section,
.pg-resource-archive-hero {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.pg-resource-hero,
.pg-resource-archive-hero,
.pg-resource-section {
  padding: 28px;
  margin-bottom: 24px;
}

.pg-resource-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #6b7280;
}

.pg-resource-breadcrumb a {
  color: #374151;
  text-decoration: none;
}

.pg-resource-title,
.pg-resource-archive-title {
  margin: 0 0 14px;
  color: #111827;
  line-height: 1.05;
}

.pg-resource-title {
  font-size: 48px;
}

.pg-resource-archive-title {
  font-size: 44px;
}

.pg-resource-lead,
.pg-resource-archive-lead {
  margin: 0 0 18px;
  max-width: 860px;
  font-size: 18px;
  line-height: 1.7;
  color: #374151;
}

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

.pg-resource-btn,
.pg-resource-archive-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #111827;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s ease;
}

.pg-resource-btn--primary,
.pg-resource-archive-card__btn--primary {
  background: #111827;
  color: #ffffff;
}

.pg-resource-btn--primary:hover,
.pg-resource-archive-card__btn--primary:hover {
  background: #000000;
  color: #ffffff;
}

.pg-resource-btn--secondary,
.pg-resource-archive-card__btn--secondary {
  background: #ffffff;
  color: #111827;
}

.pg-resource-btn--secondary:hover,
.pg-resource-archive-card__btn--secondary:hover {
  background: #f9fafb;
  color: #111827;
}

.pg-resource-section__head h2 {
  margin: 0 0 20px;
  font-size: 30px;
  line-height: 1.15;
  color: #111827;
}

.pg-resource-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pg-resource-detail {
  padding: 18px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
}

.pg-resource-detail__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.pg-resource-detail__value,
.pg-resource-detail__value a {
  font-size: 17px;
  line-height: 1.6;
  color: #374151;
  text-decoration: none;
  word-break: break-word;
}

.pg-resource-content {
  font-size: 18px;
  line-height: 1.8;
  color: #1f2937;
}

.pg-resource-content p:last-child {
  margin-bottom: 0;
}

.pg-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pg-resource-card {
  padding: 20px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
}

.pg-resource-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #111827;
}

.pg-resource-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
}

.pg-resource-card a {
  color: #111827;
  text-decoration: none;
}

.pg-resource-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.pg-resource-archive-card {
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.pg-resource-archive-card__body {
  padding: 22px;
}

.pg-resource-archive-card__title {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
}

.pg-resource-archive-card__title a {
  color: #111827;
  text-decoration: none;
}

.pg-resource-archive-card__text {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
}

.pg-resource-archive-card__meta {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  color: #4b5563;
}

.pg-resource-archive-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pg-resource-empty {
  padding: 20px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
}

.pg-resource-empty p {
  margin: 0;
  color: #374151;
}

@media (max-width: 991px) {
  .pg-resource-title {
    font-size: 40px;
  }

  .pg-resource-archive-title {
    font-size: 38px;
  }
}

@media (max-width: 767px) {
  .pg-resource-page,
  .pg-resource-archive-page {
    padding: 18px 0 42px;
  }

  .pg-resource-shell {
    width: min(100% - 20px, 1240px);
  }

  .pg-resource-hero,
  .pg-resource-section,
  .pg-resource-archive-hero {
    padding: 18px;
  }

  .pg-resource-title {
    font-size: 32px;
  }

  .pg-resource-archive-title {
    font-size: 30px;
  }

  .pg-resource-lead,
  .pg-resource-archive-lead,
  .pg-resource-content {
    font-size: 16px;
  }

  .pg-resource-details,
  .pg-resource-grid,
  .pg-resource-archive-grid {
    grid-template-columns: 1fr;
  }

  .pg-resource-archive-card__title {
    font-size: 24px;
  }
}