.gd-authors-page,
.gd-author-profile {
  padding: 46px clamp(18px, 4vw, 72px) 72px;
}

.gd-authors-hero {
  max-width: 1450px;
  margin: 0 auto 30px;
  padding: 42px;
  border: 1px solid var(--gd-border);
  border-radius: 24px;
  background: linear-gradient(120deg, #fff, #fbf4e8);
  box-shadow: var(--gd-shadow);
}

.gd-authors-hero h1 {
  margin: 8px 0 6px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1;
}

.gd-authors-hero p {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--gd-muted);
  font-size: 18px;
}

.gd-author-search {
  display: flex;
  max-width: 560px;
}

.gd-author-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--gd-border);
  border-radius: 12px 0 0 12px;
  padding: 14px 16px;
  font: inherit;
}

.gd-author-search button {
  border: 0;
  border-radius: 0 12px 12px 0;
  padding: 0 24px;
  background: var(--gd-gold);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.gd-authors-grid {
  max-width: 1450px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.gd-author-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 260px;
  overflow: hidden;
  border: 1px solid var(--gd-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--gd-shadow);
}

.gd-author-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ece5da;
  color: var(--gd-gold-dark);
  font-size: 44px;
  font-weight: 900;
  text-decoration: none;
}

.gd-author-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gd-author-card__body {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.gd-author-card h2 {
  margin: 0;
  font-size: 25px;
}

.gd-author-card h2 a {
  color: inherit;
  text-decoration: none;
}

.gd-author-card__subtitle {
  margin: 5px 0 12px !important;
  color: var(--gd-gold-dark) !important;
  font-weight: 800;
}

.gd-author-card__body > p {
  margin: 0;
  color: var(--gd-muted);
  font-size: 14px;
}

.gd-author-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 13px;
}

.gd-author-card__footer a {
  font-weight: 900;
  text-decoration: none;
}

.gd-authors-empty {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px;
  text-align: center;
  border: 1px solid var(--gd-border);
  border-radius: 20px;
  background: #fff;
}

.gd-author-profile {
  max-width: 1600px;
  margin: 0 auto;
}

.gd-author-profile__hero {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 50px;
  align-items: start;
}

.gd-author-profile__portrait {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
  background: #ded5c8;
  color: var(--gd-gold-dark);
  font-size: 80px;
  font-weight: 900;
  box-shadow: var(--gd-shadow);
}

.gd-author-profile__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gd-author-profile__intro {
  padding: 6px 0 0;
}

.gd-author-profile__intro h1 {
  margin: 0 0 10px;
  font-family: Georgia, serif;
  font-size: clamp(52px, 7vw, 90px);
  line-height: 0.98;
}

.gd-author-profile__subtitle {
  margin: 0 0 22px;
  color: var(--gd-gold-dark);
  font-family: Georgia, serif;
  font-size: 26px;
}

.gd-author-profile__bio {
  max-width: 860px;
  font-size: 17px;
}

.gd-author-profile__bio p {
  margin: 0 0 16px;
}

.gd-author-profile__bio img,
.gd-author-profile__bio figure {
  max-width: 100%;
  height: auto;
}

.gd-author-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.gd-author-tags span {
  padding: 9px 15px;
  border: 1px solid #dfbd75;
  border-radius: 999px;
  color: #8d6518;
  font-weight: 800;
}

.gd-author-profile__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  margin-top: 34px;
}

.gd-author-profile__content--full {
  grid-template-columns: 1fr;
}

.gd-author-books,
.gd-author-related,
.gd-other-authors {
  padding: 26px;
  border: 1px solid var(--gd-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--gd-shadow);
}

.gd-author-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.gd-author-section-head h2,
.gd-author-related h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 28px;
}

.gd-author-section-head span {
  color: var(--gd-muted);
}

.gd-author-books__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gd-author-book-card {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--gd-border);
  border-radius: 14px;
  background: #fff;
}

.gd-author-book-card__cover {
  display: block;
  background: #f5f1ea;
}

.gd-author-book-card__cover img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.gd-author-book-card > div {
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.gd-author-book-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.gd-author-book-card h3 a {
  color: inherit;
  text-decoration: none;
}

.gd-author-book-card__price {
  font-size: 20px;
  font-weight: 900;
}

.gd-author-book-card__button {
  margin-top: auto;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.gd-author-related {
  align-self: start;
}

.gd-author-related-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--gd-border);
  border-radius: 14px;
}

.gd-author-related-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 105px;
  background: #e8e1d7;
  text-decoration: none;
}

.gd-author-related-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gd-author-related-card > div {
  padding: 14px 14px 14px 0;
}

.gd-author-related-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.gd-author-related-card h3 a {
  color: inherit;
  text-decoration: none;
}

.gd-author-related-card > div > a {
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.gd-other-authors {
  margin-top: 24px;
}

.gd-other-authors__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gd-other-author-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--gd-border);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
}

.gd-other-author-card__image {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: #e8e1d7;
  color: var(--gd-gold-dark);
  font-weight: 900;
}

.gd-other-author-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gd-other-author-card small {
  display: block;
  margin-top: 4px;
  color: var(--gd-muted);
}

.gd-other-author-card em {
  font-size: 24px;
  font-style: normal;
  color: var(--gd-gold-dark);
}

@media (max-width: 1200px) {
  .gd-authors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gd-author-profile__content {
    grid-template-columns: 1fr;
  }

  .gd-author-related {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .gd-author-related h2 {
    grid-column: 1 / -1;
  }

  .gd-author-related-card {
    margin: 0;
  }

  .gd-author-books__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .gd-authors-grid {
    grid-template-columns: 1fr;
  }

  .gd-author-profile__hero {
    grid-template-columns: 1fr;
  }

  .gd-author-profile__portrait {
    max-width: 430px;
  }

  .gd-author-books__grid,
  .gd-other-authors__grid,
  .gd-author-related {
    grid-template-columns: 1fr;
  }

  .gd-author-related h2 {
    grid-column: auto;
  }

  .gd-author-profile__intro h1 {
    font-size: 52px;
  }
}

@media (max-width: 560px) {
  .gd-authors-page,
  .gd-author-profile {
    padding: 28px 16px 54px;
  }

  .gd-authors-hero {
    padding: 26px;
  }

  .gd-author-card {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .gd-author-card__body {
    padding: 18px;
  }

  .gd-author-card h2 {
    font-size: 21px;
  }

  .gd-author-book-card {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .gd-author-profile__subtitle {
    font-size: 21px;
  }
}
