/*
Theme Name: ResellerTea
Theme URI: https://resellertea.com/
Author: ResellerTea
Description: Custom WordPress theme for the ResellerTea editorial site.
Version: 0.1.7
Text Domain: resellertea
*/

.brand-wordmark {
  display: inline-flex;
  gap: 0;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
}

.brand-wordmark .brand-reseller {
  color: #f6fbf8;
}

.brand-wordmark .brand-tea {
  color: #ffc400;
}

.wp-stage-note {
  padding: 10px 18px;
  color: #031112;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
  background: #ffc400;
}

.tea-card.featured .tea-card-copy {
  display: block;
}

.tea-card.featured .tea-card-media {
  float: right;
  width: min(46%, 280px);
  margin: 0 0 12px 18px;
  aspect-ratio: 16 / 9;
}

.tea-card.featured p {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  color: #d7e5dd;
  font-size: clamp(16px, 1.02vw, 17px);
  line-height: 1.48;
}

.tea-card.featured .tea-card-copy strong {
  display: inline-flex;
}

.tea-card.featured .tea-card-copy::after {
  display: block;
  clear: both;
  content: "";
}

.tea-card.has-compact-image:not(.featured) .tea-card-copy {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-areas:
    "image date"
    "image title"
    "byline byline"
    "summary summary";
  gap: 8px 12px;
  align-items: start;
}

.tea-card.has-compact-image:not(.featured) .tea-card-avatar {
  grid-area: image;
}

.tea-card.has-compact-image:not(.featured) span {
  grid-area: date;
}

.tea-card.has-compact-image:not(.featured) h3 {
  grid-area: title;
  font-size: clamp(22px, 1.85vw, 30px);
}

.tea-card.has-compact-image:not(.featured) small {
  grid-area: byline;
}

.tea-card.has-compact-image:not(.featured) p {
  grid-area: summary;
  display: -webkit-box;
  overflow: hidden;
  color: #d7e5dd;
  font-size: 16px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.tea-card-avatar {
  width: 64px;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-soft);
  border-radius: 7px;
}

.tea-card-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tea-card-avatar-fallback {
  display: grid;
  place-items: center;
  color: #051312;
  background: var(--gold);
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
}

.tea-card small {
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.tea-card span {
  font-size: 14px;
}

.fresh-tea-list h3 {
  font-size: 19px;
  line-height: 1.08;
}

.fresh-tea-list p {
  font-size: 13px;
  line-height: 1.35;
}

.wp-archive-page,
.wp-basic-page {
  padding: clamp(28px, 5vw, 70px) 0;
}

.section-title {
  max-width: 850px;
  margin: 0 0 24px;
}

.section-title > p,
.article-category,
.article-meta,
.profile-latest-videos span,
.profile-stat-list dt {
  text-transform: uppercase;
  letter-spacing: 0;
}

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

.tea-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tea-archive-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tea-archive-card a {
  display: grid;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.tea-archive-media {
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.38);
  border-bottom: 1px solid var(--line-soft);
}

.tea-archive-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tea-archive-media-fallback {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.26);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(82px, 10vw, 140px);
  letter-spacing: 0;
  background:
    radial-gradient(circle at 65% 40%, rgba(255, 196, 0, 0.28), transparent 28%),
    linear-gradient(135deg, #0e5250, #071111);
}

.tea-archive-copy {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 2.8vw, 24px);
}

.tea-archive-copy span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.tea-archive-copy h2 {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1;
}

.tea-archive-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.tea-profile-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  max-width: 100%;
  padding: 7px 9px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}

.tea-profile-chip img {
  width: 30px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 999px;
}

.tea-profile-chip strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.article-page:not(.creator-profile-page) {
  width: min(1280px, 100%);
  margin: 24px auto 0;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.story-module {
  width: min(1120px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.story-header-module {
  padding: clamp(22px, 3.5vw, 38px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story-header-module h1 {
  max-width: 1050px;
}

.story-header-module .article-deck {
  max-width: 980px;
}

.story-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 18px;
  align-items: start;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.story-main-column,
.story-side-column {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.story-side-column {
  position: sticky;
  top: 108px;
}

.story-layout .article-summary,
.story-layout .article-body,
.story-layout .article-disclaimer,
.story-layout .article-sources {
  margin-top: 0;
  margin-bottom: 0;
}

.story-layout .article-body {
  font-size: clamp(18px, 1.35vw, 20px);
}

.story-media-card {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story-media-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.story-media-card img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid var(--line-soft);
  border-radius: 7px;
}

.story-media-card.generated {
  aspect-ratio: 16 / 9;
  place-items: center;
  background:
    radial-gradient(circle at 70% 34%, rgba(255, 196, 0, 0.34), transparent 24%),
    linear-gradient(135deg, #083c39, #421205);
}

.story-media-card.generated strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(72px, 10vw, 120px);
  font-weight: 950;
  line-height: 1;
}

.story-related-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story-related-profile img {
  width: 64px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.story-related-profile div {
  display: grid;
  gap: 4px;
}

.story-related-profile span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.story-related-profile a {
  color: var(--gold);
  font-size: 20px;
  font-weight: 950;
  line-height: 1.1;
  text-decoration: none;
}

.story-side-column .article-sources {
  font-size: 15px;
}

.story-side-column .article-sources h2 {
  font-size: 24px;
}

.story-side-column .article-sources ul {
  display: grid;
  gap: 9px;
  padding-left: 18px;
}

.article-list-card,
.basic-page-card,
.tip-form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-list-card a,
.basic-page-card,
.tip-form-card {
  display: grid;
  gap: 14px;
  height: 100%;
  padding: clamp(18px, 3vw, 28px);
  text-decoration: none;
}

.article-list-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.article-list-card h2,
.article-list-card h3 {
  margin: 0;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.02;
}

.article-list-card p,
.basic-page-card,
.tip-form-card {
  color: var(--muted);
}

.tip-form-card label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 850;
}

.tip-form-card input,
.tip-form-card textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--text);
  background: #031112;
  border: 1px solid rgba(112, 178, 178, 0.7);
  border-radius: 6px;
}

.tip-form-card textarea {
  min-height: 170px;
  resize: vertical;
}

.tip-thanks {
  padding: 14px 16px;
  color: #031112;
  font-weight: 900;
  background: var(--gold);
  border-radius: 6px;
}

.profile-topic-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-topic-list li {
  padding: 11px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  font-weight: 750;
}

.profile-focus-card {
  margin-top: 14px;
}

.profile-store-links ul,
.article-sources ul {
  padding-left: 18px;
}

.profile-store-links a,
.article-sources a {
  color: var(--gold);
}

.rt-auth-page {
  padding: 24px 0 54px;
}

.rt-auth-shell {
  width: min(720px, 100%);
  margin: 0 auto;
}

.rt-auth-form,
.rt-auth-card,
.rt-community-gate,
.rt-comment-form,
.rt-comment-card,
.rt-no-comments {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.rt-auth-form,
.rt-auth-card {
  display: grid;
  gap: 15px;
  padding: clamp(18px, 3vw, 28px);
}

.rt-auth-form label,
.rt-comment-field {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 850;
}

.rt-auth-form input,
.rt-comment-form textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  color: var(--text);
  background: #031112;
  border: 1px solid rgba(112, 178, 178, 0.7);
  border-radius: 6px;
}

.rt-auth-form button,
.rt-auth-card button,
.rt-auth-actions a,
.rt-community-gate a,
.rt-comment-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(180deg, #ff4b1e, var(--orange));
  border: 0;
  border-radius: 6px;
}

.rt-auth-form p,
.rt-auth-card p,
.rt-community-gate p,
.rt-comment-identity,
.rt-no-comments {
  color: var(--muted);
  line-height: 1.5;
}

.rt-check-row {
  grid-template-columns: 22px 1fr;
  align-items: center;
}

.rt-check-row input {
  width: 18px;
}

.rt-honeypot {
  position: absolute;
  left: -9999px;
}

.rt-auth-notice,
.rt-auth-status,
.rt-inline-message {
  padding: 13px 14px;
  font-weight: 850;
  border-radius: 6px;
}

.rt-auth-notice.success,
.rt-auth-status.verified,
.rt-inline-message[data-type="success"] {
  color: #031112;
  background: var(--gold);
}

.rt-auth-notice.error,
.rt-inline-message[data-type="error"] {
  color: #fff;
  background: rgba(251, 58, 18, 0.28);
  border: 1px solid rgba(251, 58, 18, 0.66);
}

.rt-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rt-logout-link,
.rt-auth-form a {
  color: var(--gold);
  font-weight: 850;
}

.rt-community-panel {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 14px 0 0;
  background: transparent;
  border-top: 1px solid var(--line-soft);
  box-shadow: none;
}

.creator-profile-main .rt-community-panel {
  margin-top: 4px;
}

.rt-engagement-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.rt-reaction-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.rt-reaction-bar.compact {
  gap: 6px;
}

.rt-reaction-summary {
  display: inline-flex;
  gap: 4px;
  align-items: baseline;
  padding: 6px 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.rt-reaction-summary strong {
  color: var(--gold);
  font-size: 14px;
  line-height: 1;
}

.rt-reaction-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.rt-reaction-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}

.rt-reaction-button.active {
  color: #031112;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(255, 196, 0, 0.18);
}

.rt-reaction-button:disabled {
  cursor: wait;
  opacity: 0.88;
}

.rt-reaction-icon {
  font-size: 18px;
  line-height: 1;
}

.rt-reaction-count {
  position: absolute;
  top: -6px;
  right: -5px;
  min-width: 16px;
  padding: 1px 4px;
  color: #031112;
  background: var(--gold);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.35;
}

.rt-reaction-count[data-count="0"] {
  display: none;
}

.rt-comment-pill,
.rt-comment-zone summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.rt-comment-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}

.rt-comment-zone {
  display: block;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rt-comment-zone summary {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
}

.rt-comment-zone summary::-webkit-details-marker {
  display: none;
}

.rt-comment-zone summary::after {
  content: "+";
  color: var(--gold);
  font-size: 18px;
  font-weight: 950;
}

.rt-comment-zone[open] summary::after {
  content: "-";
}

.rt-comment-zone summary strong {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.rt-comment-drawer {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.rt-community-gate {
  display: grid;
  gap: 8px;
  padding: 12px;
  box-shadow: none;
}

.rt-community-gate.is-attention {
  animation: rt-gate-attention 0.9s ease-out;
}

.rt-community-gate > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@keyframes rt-gate-attention {
  0%,
  100% {
    box-shadow: none;
  }

  35% {
    box-shadow: 0 0 0 2px rgba(255, 196, 0, 0.4);
  }
}

.rt-comment-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  box-shadow: none;
}

.rt-comment-form-title {
  margin: 0;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.2;
}

.rt-comment-form textarea {
  min-height: 86px;
  resize: vertical;
}

.rt-comment-form .form-submit {
  margin: 0;
}

.rt-comment-submit {
  min-height: 38px;
  padding: 0 14px;
}

.rt-reply-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
}

.rt-reply-context button,
.rt-comment-action {
  color: var(--gold);
  font-weight: 850;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.rt-comment-list,
.rt-comment-children {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rt-comment-children {
  margin-top: 12px;
  padding-left: clamp(14px, 3vw, 34px);
}

.rt-comment-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  box-shadow: none;
}

.rt-comment-avatar img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.rt-comment-body {
  min-width: 0;
}

.rt-comment-body header {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.rt-comment-body header strong {
  color: var(--text);
}

.rt-comment-body header span,
.rt-comment-body header em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.rt-comment-content {
  margin-top: 7px;
  color: #edf7f4;
  line-height: 1.55;
}

.rt-comment-content p {
  margin: 0 0 10px;
}

.rt-comment-content p:last-child {
  margin-bottom: 0;
}

.rt-comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: 10px;
}

.rt-no-comments {
  margin: 0;
  padding: 4px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

@media (max-width: 900px) {
  .article-card-grid,
  .tea-archive-grid {
    grid-template-columns: 1fr;
  }

  .story-content-grid {
    grid-template-columns: 1fr;
  }

  .story-side-column {
    position: static;
  }

  .rt-reaction-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .tea-card.featured .tea-card-media {
    float: none;
    width: 100%;
    margin: 0 0 12px;
  }

  .tea-card.featured p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
  }

  .rt-comment-card {
    grid-template-columns: 1fr;
  }

  .rt-comment-avatar {
    display: none;
  }
}
