/* Reference structure additions using the target design tokens only. */

.author-bio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.author-bio-copy,
.author-video-column {
  min-width: 0;
}

.author-video-frame {
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--bg-soft);
  box-shadow: var(--sh-md);
}

.author-video-mount {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ink-strong);
}

.author-video-mount img,
.author-video-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-video-poster {
  position: relative;
  padding: 0;
  border: 0;
  background: var(--ink-strong);
  cursor: pointer;
  overflow: hidden;
}

.author-video-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(23, 22, 26, .65));
  pointer-events: none;
}

.author-video-poster img {
  transition: transform .45s var(--ease), filter .45s var(--ease);
}

.author-video-poster:hover img {
  transform: scale(1.05);
  filter: saturate(1.08);
}

.author-video-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  color: var(--white);
  background: var(--grad-brand);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--sh-lg);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.author-video-poster:hover .author-video-play {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: var(--sh-xl);
}

.author-video-duration {
  position: absolute;
  z-index: 2;
  right: .8rem;
  bottom: .8rem;
  padding: .25rem .5rem;
  color: var(--white);
  background: rgba(23, 22, 26, .72);
  border-radius: var(--r-sm);
  font-size: .72rem;
}

.author-video-story {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  color: var(--white);
  text-align: center;
  background: var(--grad-brand);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}

.author-video-mount.is-playing .author-video-story {
  opacity: 1;
  pointer-events: auto;
}

.author-video-mount.is-playing .author-video-poster {
  opacity: 0;
  pointer-events: none;
}

.author-video-story-inner {
  max-width: 34rem;
}

.author-video-story img {
  width: 76px;
  height: 76px;
  margin: 0 auto 1rem;
  border: 3px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  object-fit: cover;
}

.author-video-story span {
  display: block;
  margin-bottom: .45rem;
  color: var(--orange-200);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.author-video-story h3,
.author-video-story p {
  color: var(--white);
}

.author-video-story p {
  margin: 0;
  color: rgba(255, 255, 255, .8);
}

.author-video-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: rgba(23, 22, 26, .35);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
}

.author-video-plaque {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  font-size: .84rem;
}

.author-highlight {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.4rem;
  border-left: 3px solid var(--orange);
}

.author-highlight p {
  margin: 0 0 .55rem;
}

.author-video-note {
  font-size: .86rem;
}

.author-book-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.author-testimonial-swiper {
  overflow: hidden;
  padding: .4rem .4rem 3rem;
}

.author-testimonial-card {
  min-height: 270px;
  height: 100%;
  padding: clamp(1.35rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
}

.author-testimonial-quote {
  float: right;
  color: var(--maroon-300);
  font-size: 2.5rem;
  opacity: .45;
}

.author-testimonial-person {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
}

.author-testimonial-person img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.author-testimonial-person b,
.author-testimonial-person span {
  display: block;
}

.author-testimonial-person span {
  color: var(--muted);
  font-size: .72rem;
}

.author-testimonial-stars {
  margin-bottom: .75rem;
  color: var(--orange);
  font-size: .8rem;
}

.author-testimonial-card > p {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.75;
}

.author-social-sheet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
}

.author-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.author-social-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .65rem .85rem;
  color: var(--maroon);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  box-shadow: var(--sh-xs);
  font-size: .78rem;
  font-weight: 600;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.author-social-link:hover {
  color: var(--maroon);
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}

.auth-stage {
  padding-block: clamp(2rem, 6vw, 5rem);
  background: var(--bg-soft);
}

.auth-layout {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.auth-story {
  display: flex;
  min-height: 600px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: var(--white);
  background: var(--grad-brand);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
}

.auth-story h1,
.auth-story p,
.auth-story .eyebrow {
  color: var(--white);
}

.auth-story p {
  color: rgba(255, 255, 255, .78);
}

.auth-story-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--white);
}

.auth-story-brand img {
  width: 62px;
  height: 62px;
}

.auth-story-brand span span {
  display: block;
  color: rgba(255, 255, 255, .7);
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.auth-promises {
  display: grid;
  gap: .8rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.auth-promises li {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: rgba(255, 255, 255, .86);
}

.auth-promises i {
  width: 1.4rem;
  color: var(--orange-200);
}

.auth-quote {
  margin: 2rem 0 0;
  font-style: italic;
}

.auth-quote cite {
  display: block;
  margin-top: .4rem;
  color: var(--orange-200);
  font-size: .78rem;
  font-style: normal;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.auth-story,
.auth-sheet {
  min-width: 0;
}

.auth-sheet {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  box-shadow: var(--sh-md);
}

.auth-heading {
  margin-bottom: 1.5rem;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-field label {
  display: block;
  margin-bottom: .4rem;
  font-size: .82rem;
  font-weight: 600;
}

.auth-control {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 48px;
  padding: 0 .85rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
}

.auth-control:focus-within {
  border-color: var(--maroon-300);
  box-shadow: 0 0 0 3px rgba(165, 86, 122, .12);
}

.auth-control > i {
  color: var(--maroon);
}

.auth-control input,
.auth-control select,
.auth-control textarea {
  width: 100%;
  min-width: 0;
  padding: .7rem 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.auth-password-toggle {
  flex: 0 0 auto;
  color: var(--muted);
  background: transparent;
  border: 0;
}

.auth-options {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .82rem;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.auth-submit {
  width: 100%;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.4rem 0 1rem;
  color: var(--muted);
  font-size: .78rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-social {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}

.auth-social-btn {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
}

.auth-switch {
  margin: 1.25rem 0 0;
  color: var(--muted);
  text-align: center;
  font-size: .84rem;
}

@media (max-width: 767.98px) {
  .author-bio-layout,
  .auth-layout {
    grid-template-columns: 1fr;
  }

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

  .author-social-sheet {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 479.98px) {
  .author-book-grid {
    grid-template-columns: 1fr;
  }
}
