.charter-library-page {
  height: auto;
  min-height: 100%;
  overflow: auto;
}

.charter-library-page .document-toolbar > div:first-child {
  display: grid;
}

.charter-stage {
  min-height: calc(100vh - 134px);
  padding: clamp(26px, 5vw, 64px) clamp(16px, 4vw, 44px);
  background-color: var(--surface);
  background-image: radial-gradient(rgb(63 49 0 / 10%) .7px, transparent .7px);
  background-size: 8px 8px;
}

.charter-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.charter-intro {
  max-width: 760px;
  margin-bottom: 30px;
}

.charter-intro > span,
.charter-card > div:first-child > span {
  color: #9a7c00;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.charter-intro h1 {
  margin: 7px 0 10px;
  color: var(--brand-dark);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
}

.charter-intro p {
  margin: 0;
  line-height: 1.7;
}

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

.charter-card {
  display: grid;
  min-height: 250px;
  padding: 24px;
  align-content: space-between;
  gap: 22px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--brand-yellow);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 10px 28px rgb(23 19 15 / 10%);
}

.charter-card h2 {
  margin: 8px 0 9px;
  color: var(--brand-dark);
  font-size: 1.08rem;
  line-height: 1.35;
}

.charter-card p,
.charter-card small {
  display: block;
  margin: 0;
  color: #625a40;
  line-height: 1.55;
}

.charter-card small {
  margin-top: 8px;
  font-size: .72rem;
  font-weight: 700;
}

.charter-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.charter-card__actions a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--brand-dark);
  border-radius: 6px;
  color: var(--brand-dark);
  background: var(--brand-yellow);
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
}

.charter-card__actions a:last-child {
  color: var(--white);
  background: var(--brand-dark);
}

.charter-card__actions a:hover,
.charter-card__actions a:focus-visible {
  color: var(--white);
  border-color: var(--brand-red);
  background: var(--brand-red);
  outline: 3px solid rgb(181 45 50 / 22%);
  outline-offset: 1px;
}

@media (max-width: 720px) {
  .charter-library-page .document-toolbar {
    justify-content: center;
  }

  .charter-library-page .document-toolbar > div:first-child {
    text-align: center;
  }

  .charter-library-page .document-toolbar strong {
    white-space: normal;
  }

  .charter-grid {
    grid-template-columns: 1fr;
  }

  .charter-card {
    min-height: 0;
  }
}