/* 2.3.32: Match the public profile shell to the homepage exactly.
 * The homepage uses a 1280px border-box shell with 20px inner gutters,
 * so visible content is 1240px wide on desktop. Keep the author header,
 * profile card, tabs, toolbar and CV document on those same two edges. */
.header-author .main-header > .container,
#foliopool-author-view .main-author > .container-author {
  width: 100% !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

#foliopool-author-view .main-author,
#foliopool-author-view .author-box-info,
#foliopool-author-view .author-content-wrapper,
#foliopool-author-view .profile-contact-inner,
#foliopool-author-view .fp-public-cv-wrap,
#foliopool-author-view .fp-public-cv-toolbar,
#foliopool-author-view .fp-public-cv-document {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

#foliopool-author-view .author-content-wrapper > .profile-image {
  min-width: 0;
  flex: 1 1 auto;
}

@media (max-width: 767px) {
  .header-author .main-header > .container,
  #foliopool-author-view .main-author > .container-author {
    width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* Smooth navigation between portfolio profile tabs. */
#foliopool-author-view {
  position: relative;
  min-height: 260px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 170ms ease, transform 170ms ease;
}

#foliopool-author-view.is-loading {
  cursor: progress;
}

#foliopool-author-view.is-leaving {
  opacity: 0.45;
  transform: translateY(5px);
}

#foliopool-author-view.is-entering {
  opacity: 0;
  transform: translateY(7px);
}

#foliopool-author-view.is-loading::after {
  content: "";
  position: absolute;
  z-index: 999;
  top: 168px;
  left: 50%;
  width: 32px;
  height: 32px;
  margin-left: -16px;
  border: 3px solid rgba(25, 71, 196, 0.18);
  border-top-color: #1947c4;
  border-radius: 50%;
  animation: foliopool-author-tab-spin 720ms linear infinite;
  pointer-events: none;
}

#foliopool-author-view.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 998;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.72));
  pointer-events: none;
}

.author-box-info .menu-profile-list a[aria-current="page"] {
  cursor: default;
}

.foliopool-author-tab-status {
  position: fixed;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes foliopool-author-tab-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
  #foliopool-author-view.is-loading::after {
    top: 145px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #foliopool-author-view {
    transition: none;
  }

  #foliopool-author-view.is-loading::after {
    animation-duration: 1.2s;
  }
}
