.mst-pdfs,
.mst-pdfs *,
.mst-pdfs *::before,
.mst-pdfs *::after {
  box-sizing: border-box;
}

.mst-pdfs {
  --mst-green: #006600;
  --mst-green-deep: #0c3b18;
  --mst-green-dark: #082b12;
  --mst-gold: #b8933f;
  --mst-cream: #f4f0e6;
  --mst-paper: #fbf9f3;
  --mst-ink: #22221d;
  --mst-muted: #6d6a5e;
  --mst-line: #e6e0d1;
  width: 100%;
  padding: clamp(58px, 8vw, 110px) 0;
  color: var(--mst-ink);
  background: var(--mst-cream);
  font-family: var(--sans, "Mulish", Arial, sans-serif);
  font-size: 16px;
  line-height: 1.65;
}

.mst-pdfs__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.mst-pdfs__head {
  max-width: 760px;
  margin-bottom: 42px;
}

.mst-pdfs__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 17px;
  color: var(--mst-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.mst-pdfs__eyebrow::before {
  width: 30px;
  height: 2px;
  background: var(--mst-gold);
  content: "";
}

.mst-pdfs__head h2 {
  margin: 0 0 16px;
  color: var(--mst-ink);
  font-family: var(--serif, Georgia, serif);
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.08;
}

.mst-pdfs__head h2 em {
  color: var(--mst-green);
  font-style: italic;
}

.mst-pdfs__head > p:last-child {
  margin: 0;
  color: #3b3a33;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.7;
}

.mst-pdfs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.mst-pdf-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--mst-line);
  border-radius: 7px;
  box-shadow: 0 18px 44px -28px rgba(28, 26, 15, .35);
}

.mst-pdf-card__preview {
  position: relative;
  display: grid;
  min-height: 188px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(184, 147, 63, .22), transparent 31%),
    linear-gradient(145deg, var(--mst-green-deep), var(--mst-green-dark));
}

.mst-pdf-card__preview::after {
  position: absolute;
  right: -45px;
  bottom: -68px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  content: "";
}

.mst-pdf-card__badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 5px 9px;
  color: #fff;
  background: var(--mst-green);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.mst-pdf-card__paper {
  position: relative;
  display: block;
  width: 93px;
  height: 124px;
  padding: 22px 14px 14px;
  background: var(--mst-paper);
  border: 1px solid rgba(0, 0, 0, .12);
  box-shadow: 0 18px 30px -14px rgba(0, 0, 0, .58);
  transform: rotate(-2deg);
}

.mst-pdf-card__paper::after {
  position: absolute;
  top: 0;
  right: 0;
  border-width: 0 22px 22px 0;
  border-style: solid;
  border-color: #ddd5c3 var(--mst-green-deep);
  content: "";
}

.mst-pdf-card__paper i {
  display: block;
  width: 100%;
  height: 6px;
  margin-bottom: 8px;
  background: #ded8ca;
  border-radius: 2px;
}

.mst-pdf-card__paper i:first-child {
  width: 60%;
  height: 8px;
  margin-bottom: 12px;
  background: var(--mst-green);
}

.mst-pdf-card__paper i:nth-child(3) { width: 78%; }
.mst-pdf-card__paper i:nth-child(5) { width: 88%; }

.mst-pdf-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.mst-pdf-card__kicker {
  margin: 0 0 8px;
  color: var(--mst-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.mst-pdf-card__body h3 {
  margin: 0 0 10px;
  color: var(--mst-green-deep);
  font-family: var(--serif, Georgia, serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

.mst-pdf-card__body > p:not(.mst-pdf-card__kicker):not(.mst-pdf-card__filename) {
  margin: 0 0 18px;
  color: #3b3a33;
  font-size: 15px;
}

.mst-pdf-card__filename {
  max-width: 100%;
  overflow: hidden;
  margin: auto 0 16px;
  padding-top: 6px;
  color: var(--mst-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mst-pdf-card__actions {
  display: flex;
  gap: 9px;
}

.mst-pdf-card__button {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 10px 13px;
  border: 1.5px solid transparent;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none !important;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .15s ease;
}

.mst-pdf-card__button:hover {
  transform: translateY(-1px);
}

.mst-pdf-card__button--primary {
  color: #fff !important;
  background: var(--mst-green);
}

.mst-pdf-card__button--primary:hover {
  background: #0a5a12;
}

.mst-pdf-card__button--ghost {
  color: var(--mst-green) !important;
  border-color: #d9d2c0;
  background: transparent;
}

.mst-pdf-card__button--ghost:hover {
  border-color: var(--mst-green);
  background: rgba(0, 102, 0, .04);
}

.mst-pdf-card.is-empty .mst-pdf-card__preview {
  background:
    radial-gradient(circle at 88% 12%, rgba(184, 147, 63, .12), transparent 31%),
    linear-gradient(145deg, #565b54, #30382f);
}

.mst-pdf-card.is-empty .mst-pdf-card__badge {
  background: #6d6a5e;
}

.mst-pdf-card.is-empty .mst-pdf-card__paper {
  opacity: .55;
  filter: grayscale(1);
}

.mst-pdf-card.is-empty .mst-pdf-card__kicker {
  color: var(--mst-muted);
}

.mst-pdf-card__empty {
  margin: 0 !important;
  padding: 15px 16px;
  color: #4f4d45 !important;
  background: var(--mst-paper);
  border-left: 3px solid var(--mst-gold);
  border-radius: 0 4px 4px 0;
  font-size: 15px !important;
  font-weight: 650;
}

@media (max-width: 940px) {
  .mst-pdfs__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .mst-pdfs__grid {
    grid-template-columns: 1fr;
  }

  .mst-pdf-card__preview {
    min-height: 164px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mst-pdf-card__button {
    transition: none;
  }
}
