.astrot-documents-page {
  background: linear-gradient(180deg, #f7f2e9 0%, #fbf7ef 100%);
  color: #27362d;
  padding: 32px 0 56px;
}

.astrot-documents-hero {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
  border: 1px solid rgba(162, 112, 73, .24);
  border-radius: 24px;
  background: #fffdf8;
  color: #27362d;
  box-shadow: 0 18px 44px rgba(7, 22, 35, .07);
}

.astrot-documents-hero__inner,
.astrot-documents-content__inner {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
}

.astrot-documents-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: stretch;
  width: 100%;
  padding: 42px;
}

.astrot-documents-hero__copy {
  display: grid;
  align-content: center;
}

.astrot-documents-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(7, 22, 35, .07);
  color: #995b32;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.astrot-documents-hero h1 {
  margin: 0;
  color: #27362d;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.astrot-documents-hero p {
  max-width: 58ch;
  margin: 18px 0 0;
  color: #70665b;
  font-size: 17px;
  line-height: 1.6;
}

.astrot-documents-summary {
  min-height: 190px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(162, 112, 73, .24);
  border-radius: 24px;
  background: #fffdf8;
}

.astrot-documents-summary__icon {
  color: #26352d;
  font-size: 28px;
}

.astrot-documents-summary__count {
  color: #27362d;
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

.astrot-documents-summary__label {
  color: #70665b;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.astrot-documents-content {
  padding: 28px 0 0;
}

.astrot-documents-content__inner {
  display: grid;
  gap: 20px;
}

.astrot-documents-actions {
  display: flex;
  justify-content: flex-end;
}

.astrot-documents-edit-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 17px;
  border: 1px solid rgba(49, 67, 58, .22);
  border-radius: 999px;
  background: #26352d;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(49, 67, 58, .16);
}

.astrot-documents-edit-button:hover,
.astrot-documents-edit-button:focus {
  background: #1f2c26;
  color: #ffffff;
  text-decoration: none;
}

.astrot-documents-category-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.astrot-documents-category-card {
  min-height: 116px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon count";
  gap: 7px 12px;
  align-content: center;
  padding: 18px;
  border: 1px solid rgba(162, 112, 73, .24);
  border-radius: 18px;
  background: #fffdf8;
  color: #27362d;
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(7, 22, 35, .07);
}

.astrot-documents-category-card:hover,
.astrot-documents-category-card:focus {
  border-color: rgba(153, 91, 50, .38);
  color: #27362d;
  text-decoration: none;
}

.astrot-documents-category-card__icon {
  grid-area: icon;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f3ece0;
  color: #26352d;
  font-size: 18px;
}

.astrot-documents-category-card__title {
  grid-area: title;
  min-width: 0;
  color: #27362d;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.astrot-documents-category-card__count {
  grid-area: count;
  color: #70665b;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.astrot-documents-search {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid rgba(162, 112, 73, .24);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 18px 44px rgba(7, 22, 35, .07);
}

.astrot-documents-search label {
  margin: 0;
  color: #27362d;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.astrot-documents-search__control {
  min-height: 52px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  padding: 0 8px 0 16px;
  border: 1px solid rgba(162, 112, 73, .24);
  border-radius: 14px;
  background: #fffdf8;
}

.astrot-documents-search__control .fa-search {
  color: #995b32;
  font-size: 16px;
}

.astrot-documents-search__control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #27362d;
  font-size: 16px;
  font-weight: 700;
}

.astrot-documents-search__control input::placeholder {
  color: #a8947d;
  font-weight: 600;
}

.astrot-documents-search__control button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: #f3ece0;
  color: #995b32;
}

.astrot-documents-search__control button:hover,
.astrot-documents-search__control button:focus {
  background: #efe4d7;
}

.astrot-documents-search__control button[hidden] {
  display: none;
}

.astrot-documents-no-results {
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(162, 112, 73, .24);
  border-radius: 18px;
  background: #fffdf8;
  color: #70665b;
  font-size: 16px;
  line-height: 1.6;
  box-shadow: 0 18px 44px rgba(7, 22, 35, .07);
}

.astrot-documents-category {
  border: 1px solid rgba(162, 112, 73, .24);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 18px 44px rgba(7, 22, 35, .07);
  overflow: hidden;
}

.astrot-documents-category__header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(162, 112, 73, .24);
  background: #fffaf4;
}

.astrot-documents-category__title {
  color: #27362d;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.astrot-documents-category__meta {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  background: #f3ece0;
  color: #995b32;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.astrot-documents-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 22px;
}

.astrot-documents-item {
  min-height: 172px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(162, 112, 73, .24);
  border-radius: 14px;
  background: #fffdf8;
  color: #27362d;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(7, 22, 35, .05);
}

.astrot-documents-item:hover,
.astrot-documents-item:focus {
  color: #27362d;
  text-decoration: none;
  border-color: rgba(153, 91, 50, .38);
}

.astrot-documents-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.astrot-documents-item__number {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f3ece0;
  color: #995b32;
  font-weight: 900;
}

.astrot-documents-item__icon {
  color: #26352d;
  font-size: 24px;
}

.astrot-documents-item__title {
  min-width: 0;
  color: #27362d;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.32;
}

.astrot-documents-item__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #26352d;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.astrot-documents-empty {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: #fffdf8;
  color: #70665b;
}

@media (max-width: 780px) {
  .astrot-documents-hero__inner {
    grid-template-columns: 1fr;
    padding: 42px 0;
  }

  .astrot-documents-summary {
    min-height: 130px;
  }

  .astrot-documents-actions {
    justify-content: stretch;
  }

  .astrot-documents-edit-button {
    width: 100%;
    justify-content: center;
  }

  .astrot-documents-category__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .astrot-documents-category__meta {
    width: 100%;
    justify-content: space-between;
  }

  .astrot-documents-list {
    grid-template-columns: 1fr;
  }

  .astrot-documents-item__action {
    white-space: normal;
  }
}

@media (min-width: 781px) and (max-width: 1040px) {
  .astrot-documents-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
