/**  Top links  */
.top-container .top-links-container a {
  padding-left: 3rem;
  padding-right: 3rem;
}

.local-actions .local-actions__item a::before {
  display: none;
}

/**  Add content block */
.add-content-container {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  width: 100%;
}

a.add-content-block,
a.add-content-block:link,
a.add-content-block:visited {
  background: var(--gin-bg-layer, #fff);
  border: 1px solid var(--gin-border-color-layer, #d4d4d8);
  border-radius: var(--gin-border-m, 8px);
  padding: 0.875rem 1rem;
  display: flex !important;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

a.add-content-block:hover {
  border-color: var(--gin-color-primary, #003ecc);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.add-content-block__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gin-color-title, #222);
}

.add-content-block__description {
  color: var(--gin-color-text-light, #6b7280);
  font-size: 0.8125rem;
  line-height: 1.4;
  margin-top: 0.25rem;
  flex: 1;
}

.add-content-block__action {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gin-color-primary, #003ecc);
}

/* Middle */
.middle-content-container {
  display: flex;
}

.middle-content-container fieldset {
  width: 100%;
  background-color: white !important;
}

.middle-content-container .menu-block-container {
  max-width: 25%;
  margin-right: 3rem;
}

.middle-content-container .menu-block-container .edit-link {
  float: right;
}

@media(min-width: 800px) {
  .top-container {
    display: flex;
  }

  .top-container .top-links-container {
    margin-left: auto;
    z-index: 999;
    order: 2;
  }
}
