/* Authors Page-Specific Styling */

/* Skip Link for Accessibility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.sr-only-focusable:focus {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: 0.5rem 1rem !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  background-color: #000 !important;
  color: #fff !important;
  text-decoration: none !important;
  z-index: 9999 !important;
}

/* Hero Image */
.authors-square-hero {
  float: left;
  width: 500px;
  height: 500px;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  margin: 125px 2rem 1rem 100px; /* top, right, bottom, left */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hero Image Wrapper */
.hero-image-wrapper {
  margin-bottom: 2rem;
}

/* Link to Best Historical Fiction */
.authors-fiction-link {
  margin: 2rem 0;
  text-align: center;
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  clear: both;
}

.authors-fiction-link a {
  font-size: 1.1rem;
  font-weight: 500;
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.authors-fiction-link a:hover,
.authors-fiction-link a:focus {
  color: #004499;
  text-decoration: underline;
  outline: 2px solid #004499;
  outline-offset: 2px;
}

/* Author's Books Section */
.authors-books-section {
  margin: 3rem 0 2rem 0;
  clear: both;
}

.authors-books-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #333;
  border-bottom: 2px solid #0066cc;
  padding-bottom: 0.5rem;
}

.authors-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.authors-book-card-wrapper {
  /* Container for list semantics */
}

.authors-book-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.authors-book-card:hover,
.authors-book-card:focus {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

.authors-book-cover {
  flex-shrink: 0;
  width: 100px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.authors-book-info {
  flex: 1;
}

.authors-book-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 0.75rem 0;
  color: #333;
}

.authors-book-summary {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #666;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}