/* Ambobs task polish: footer, search pagination, post-page author and hashtag UI. */

/* Post page: CMS-style author attribution above reactions and replies. */
html.ambobs-post-page-route .feed-heading h1 {
  display: none !important;
}

.post-page-author {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 18px 0 0;
  padding: 14px 0;
  border-top: 1px solid var(--season-border, #2b2b2b);
  border-bottom: 1px solid var(--season-border, #2b2b2b);
}

.post-page-author-label {
  color: var(--season-muted, #9a9a9a);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.post-page-author-link {
  color: var(--season-accent, #eec170) !important;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
}

.post-page-author-link:hover,
.post-page-author-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

html.ambobs-post-page-route .post-card > .post-head .post-author {
  display: none !important;
}

/* Search pagination: always centered within the result column. */
.feed-list > .user-posts-load-more {
  justify-self: center !important;
  align-self: center;
  width: max-content;
  margin: 8px auto 2px !important;
}

/* Footer: keep legal links, but keep the total post counter out of the footer. */
.site-footer .footer-post-count,
.site-footer .footer-stats > strong {
  display: none !important;
}

.site-footer .legal-links,
.site-footer .legal-links a,
.site-footer .legal-links button {
  color: #eec170 !important;
}

.site-footer .legal-links a:hover,
.site-footer .legal-links a:focus-visible,
.site-footer .legal-links button:hover,
.site-footer .legal-links button:focus-visible {
  color: #F8F8FF !important;
}

.site-footer .footer-stats {
  gap: 5px;
}

/* Browse Topics and hashtag-page UI. */
.hashtag-popover .hashtag-list,
.hashtag-profile .favorite-hashtags > div,
.hashtag-profile .profile-tag-list {
  gap: 7px !important;
}

.hashtag-popover .hashtag-item {
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}

.hashtag-popover .hashtag-item:hover,
.hashtag-popover .hashtag-item:focus-visible {
  transform: translateX(2px);
}

.hashtag-profile {
  border-color: var(--season-border, #eec170);
}

.hashtag-profile .user-profile-row {
  align-items: center;
  gap: 16px;
}

.hashtag-profile .user-profile-row h2 {
  margin-bottom: 5px;
}

.hashtag-profile .profile-stats {
  margin-top: 16px;
}

.hashtag-profile .favorite-hashtags {
  margin-top: 18px;
  padding-top: 16px;
}

.hashtag-profile .favorite-hashtags a {
  color: #242522 !important;
  border-color: #eec170 !important;
  background: #f8e7bd !important;
}

.hashtag-profile .favorite-hashtags a:hover,
.hashtag-profile .favorite-hashtags a:focus-visible {
  color: #111111 !important;
  background: #eec170 !important;
  transform: translateY(-1px);
}

@media (max-width: 680px) {
  .post-page-author {
    margin-top: 14px;
    padding: 12px 0;
  }

  .post-page-author-link {
    font-size: 13px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer .legal-links {
    width: 100%;
  }
}
