/* ================================================================
   TERRITÓRIO MLS — Author Page (Athletic-style Editorial Profile)
   Mobile-first. Self-contained. No dark-mode dependency.
   ================================================================ */

/* ── Page-level overrides ── */
body.author,
body.author.one-container .site-content {
  background: #fafafa;
  color: #111;
}

body.author .site-content,
body.author.one-container .site-content {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.author .site.grid-container {
  max-width: 100%;
  padding: 0;
}

body.author .featured-image.page-header-image { display: none; }

/* Strip GP default archive header */
body.author .page-header,
body.author .archive-title,
body.author .author-info {
  display: none !important;
}

/* ── Container ── */
.author-page {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 48px;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
}

/* ================================================================
   HERO SECTION
   ================================================================ */

.author-hero {
  padding: 32px 0 28px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 36px;
}

.author-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

/* ── Avatar ── */
.author-hero__avatar img {
  border-radius: 999px;
  width: 88px;
  height: 88px;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.10);
}

/* ── Identity ── */
.author-hero__name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 4px 0 0;
  color: #111;
}

.author-hero__role {
  font-size: 15px;
  font-weight: 500;
  color: #6b7280;
  margin: 6px 0 0;
}

.author-hero__location {
  font-size: 13px;
  color: #9ca3af;
  margin: 2px 0 0;
}

/* ── Social ── */
.author-hero__social {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  justify-content: center;
}

.author-social-link {
  color: #6b7280;
  transition: color .15s;
  display: flex;
  align-items: center;
}

.author-social-link:hover {
  color: #111;
}

/* ── Bio ── */
.author-hero__bio {
  max-width: 640px;
  margin: 8px auto 0;
}

.author-hero__bio p {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.55;
  color: #374151;
  margin: 0;
}

/* ── Stats ── */
.author-hero__stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 16px;
  padding-top: 16px;
}

.author-stat {
  text-align: center;
}

.author-stat strong {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  display: block;
}

.author-stat span {
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ================================================================
   SECTION TITLE
   ================================================================ */

.author-section-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #111;
}

/* ================================================================
   FEATURED STORIES
   ================================================================ */

.author-featured {
  margin-bottom: 40px;
}

.author-featured-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Main feature ── */
.author-feat-main {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity .15s;
}

.author-feat-main:hover {
  opacity: .85;
}

.author-feat-main__media {
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 14px;
}

.author-feat-main__media img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.author-feat__cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c0392b;
  display: block;
  margin-bottom: 4px;
}

.author-feat-main__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(22px, 5vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #111;
}

.author-feat-main__excerpt {
  font-size: 15px;
  line-height: 1.5;
  color: #4b5563;
  margin: 0 0 8px;
}

.author-feat__date {
  font-size: 12px;
  color: #9ca3af;
}

/* ── Story stack ── */
.author-feat-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.author-feat-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
  transition: opacity .15s;
}

.author-feat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.author-feat-row:hover {
  opacity: .85;
}

.author-feat-row__thumb {
  border-radius: 4px;
  overflow: hidden;
}

.author-feat-row__thumb img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  display: block;
}

.author-feat-row__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.25;
  margin: 0 0 4px;
  color: #111;
}

/* ================================================================
   LATEST STORIES FEED
   ================================================================ */

.author-latest {
  margin-bottom: 40px;
}

.author-latest-feed {
  display: flex;
  flex-direction: column;
}

.author-story-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: opacity .15s;
}

.author-story-row:first-child {
  padding-top: 0;
}

.author-story-row:hover {
  opacity: .85;
}

.author-story-row__thumb {
  border-radius: 4px;
  overflow: hidden;
}

.author-story-row__thumb img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  display: block;
}

.author-story-row__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.25;
  margin: 0 0 4px;
  color: #111;
}

.author-story-row__meta {
  font-size: 12px;
  color: #9ca3af;
}

/* ── Load More ── */
.author-load-more {
  text-align: center;
  margin-top: 28px;
}

.author-load-more__btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 10px 28px;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}

.author-load-more__btn:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* ================================================================
   TOPICS / BEATS
   ================================================================ */

.author-topics {
  margin-bottom: 40px;
}

.author-topics__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.author-topic {
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  background: #fff;
}

/* ================================================================
   NEWSLETTER CTA
   ================================================================ */

.author-cta {
  text-align: center;
  padding: 32px 20px;
  border-top: 1px solid #e5e7eb;
  margin-top: 8px;
}

.author-cta__text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  color: #374151;
  margin: 0 0 14px;
}

.author-cta__btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #111;
  border-radius: 6px;
  padding: 10px 24px;
  text-decoration: none;
  transition: background .15s;
}

.author-cta__btn:hover {
  background: #333;
}

/* ================================================================
   DESKTOP (768px+)
   ================================================================ */

@media (min-width: 768px) {

  .author-page {
    padding: 0 32px 64px;
  }

  .author-hero {
    padding: 48px 0 36px;
    margin-bottom: 48px;
  }

  .author-hero__inner {
    display: grid;
    grid-template-columns: auto 1fr 1.2fr;
    align-items: start;
    text-align: left;
    gap: 28px;
  }

  .author-hero__avatar img {
    width: 112px;
    height: 112px;
  }

  .author-hero__social {
    justify-content: flex-start;
  }

  .author-hero__bio {
    margin: 0;
    max-width: none;
  }

  .author-hero__stats {
    justify-content: flex-start;
    margin-top: 20px;
  }

  .author-hero__name {
    font-size: clamp(42px, 5vw, 64px);
  }

  /* Featured grid: large + side stack */
  .author-featured-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
  }

  .author-feat-stack {
    gap: 24px;
    justify-content: space-between;
  }

  .author-feat-row {
    grid-template-columns: 96px 1fr;
    gap: 16px;
  }

  .author-feat-row__thumb img {
    width: 96px;
    height: 72px;
  }

  /* Latest feed — wider thumbs on desktop */
  .author-story-row {
    grid-template-columns: 140px 1fr;
    gap: 20px;
    padding: 20px 0;
  }

  .author-story-row__thumb img {
    width: 140px;
    height: 88px;
  }

  .author-story-row__title {
    font-size: 18px;
  }
}

/* ================================================================
   LARGE DESKTOP (1024px+)
   ================================================================ */

@media (min-width: 1024px) {

  .author-feat-main__title {
    font-size: 30px;
  }

  .author-feat-row__title {
    font-size: 17px;
  }

  .author-story-row {
    grid-template-columns: 160px 1fr;
  }

  .author-story-row__thumb img {
    width: 160px;
    height: 100px;
    border-radius: 6px;
  }

  .author-story-row__title {
    font-size: 19px;
  }
}
