/* Frontend layout refinements shared by author lists and article details. */
.authors-page .author-feedback-inline {
  position: static;
  inset: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  margin: 0;
  border-radius: 22px;
  white-space: nowrap;
  box-shadow: 0 7px 20px rgba(44, 42, 63, .09);
}

.authors-page:not(.hidden) {
  display: block;
  min-height: 0;
  padding-bottom: 0;
}

.author-feedback-entry {
  display: flex;
  justify-content: center;
  margin: 2px 0 16px;
}

.authors-page .author-feedback-inline {
  width: auto;
  max-width: 100%;
  min-height: 38px;
  height: auto;
  padding: 8px 15px;
  border-color: #eadfe3;
  border-radius: 19px;
  background: #fff;
  color: #786771;
  box-shadow: 0 4px 14px rgba(44,42,63,.06);
}

.authors-page .author-feedback-inline:hover,
.authors-page .author-feedback-inline:focus-visible {
  border-color: #efb6c7;
  color: var(--accent);
  outline: none;
}

.authors-page .all-author-grid {
  align-content: start;
  padding-bottom: 4px;
}

.authors-page .author-pagination {
  position: static;
  inset: auto;
  left: auto;
  bottom: auto;
  z-index: auto;
  width: min(100%, 340px);
  margin: 18px auto 4px;
  padding: 0 4px;
  transform: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.authors-page .author-pagination button {
  min-height: 34px;
  padding: 6px 12px;
  border-color: #e4e2e8;
  border-radius: 17px;
  background: rgba(255,255,255,.78);
  color: #625f69;
  box-shadow: none;
}

.authors-page .author-pagination button:disabled {
  border-color: transparent;
  background: transparent;
  color: #bbb8c0;
}

.follow-grid:has(.follow-card) {
  gap: 0;
  overflow: hidden;
  border: 1px solid #e9e7ec;
  border-radius: 8px;
  background: #fff;
}

.follow-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 15px 14px;
  border: 0;
  border-bottom: 1px solid #efedf1;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  transition: background-color .2s ease;
}

.follow-card:last-child { border-bottom: 0; }
.follow-card:hover {
  transform: none;
  border-color: #efedf1;
  background: #fcfbfc;
  box-shadow: none;
}

.follow-card > .avatar {
  grid-column: 1;
  width: 52px;
  height: 52px;
  margin: 0;
  border-width: 2px;
  box-shadow: none;
}

.follow-card > .follow-card-main { grid-column: 2; min-width: 0; }

.follow-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.follow-card-title h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.follow-card .follow-update {
  flex: none;
  max-width: 50%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d9587a;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
  white-space: normal;
}

.follow-card .follow-update::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 1px;
}

.follow-card .follow-no-update {
  border: 0;
  background: transparent;
  color: #8a8790;
}

.follow-card-main > p {
  min-height: 0;
  margin: 5px 0 9px;
  display: -webkit-box;
  overflow: hidden;
  color: #77747d;
  font-size: 11px;
  line-height: 1.55;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.follow-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.follow-card-footer .platform-author-tag { margin: 0; }
.follow-card-footer small { color: #95929a; white-space: nowrap; }
.follow-record {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: none;
  padding: 2px 6px;
  border: 1px solid #f0d4d8;
  border-radius: 4px;
  background: #fff8f8;
  color: #8f515b;
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
}
.follow-record b { color: #c23c50; font-weight: 700; }
.follow-card-arrow { margin-left: auto; color: #b7b4bd; font-size: 20px; line-height: 1; }

.follow-card .platform-author-tag {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.platform-author-tag {
  gap: 4px;
  border-color: transparent;
  font-weight: 700;
}

.platform-author-tag .platform-status-icon {
  display: inline-grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 9px;
  line-height: 1;
}

.platform-author-tag.listed .platform-status-icon { background: #237a50; }
.platform-author-tag.unlisted .platform-status-icon { background: #936822; }

.author-listing-notice {
  width: 100%;
  max-width: 440px;
  margin: 2px 0 20px;
  padding: 11px 13px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 0;
  border-left: 3px solid;
  border-radius: 7px;
}

.author-listing-notice .listing-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(44, 42, 63, .08);
  font-weight: 900;
}

.author-listing-notice .listing-copy { min-width: 0; }
.author-listing-notice strong,
.author-listing-notice span { display: block; }
.author-listing-notice strong { margin-bottom: 2px; font-size: 12px; }
.author-listing-notice .listing-copy span { color: #66636d; font-size: 11px; line-height: 1.5; }

.article-page {
  position: relative;
  isolation: isolate;
  width: 100%;
  margin: 0 auto;
}

.article-page > :not(.article-detail-status) {
  position: relative;
  z-index: 2;
}

.article-page .article-author-card {
  margin: 0 0 24px;
  padding: 14px 15px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border: 1px solid #ece8ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(48, 42, 55, 0.07);
  cursor: pointer;
}

.article-page .article-author-card:hover,
.article-page .article-author-card:focus-visible {
  transform: translateY(-1px);
  border-color: #efb9ca;
  box-shadow: 0 9px 24px rgba(71, 54, 65, 0.11);
  outline: none;
}

.article-page .article-author-avatar {
  width: 56px;
  height: 56px;
  border-width: 2px;
  box-shadow: 0 3px 10px rgba(42, 36, 47, 0.12);
}

.article-page .article-author-info { min-width: 0; }
.article-page .article-author-info .article-author-label {
  margin: 0 0 3px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}
.article-page .article-author-info strong {
  margin: 0 0 3px;
  overflow: hidden;
  color: #2f2b33;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.article-page .article-author-info em {
  overflow: hidden;
  color: #8b8891;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.article-page .article-author-link {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.article-page .article-author-link b { font-size: 18px; font-weight: 500; }

.article-page .article-kicker {
  width: fit-content;
  margin: 0 0 9px;
  padding: 3px 7px;
  border-radius: 4px;
  background: #f3f1f4;
  color: #6f6b75;
  letter-spacing: 0;
}

.article-detail-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  margin: 0 0 9px;
}

.article-detail-status .article-kicker {
  position: relative;
  z-index: 2;
  margin: 0;
}

.article-detail-stamps {
  position: absolute;
  z-index: 1;
  top: 108px;
  right: 4%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex: none;
  pointer-events: none;
}

.article-public-stamp {
  display: grid;
  place-items: center;
  width: 180px;
  height: 64px;
  border: 5px double #2b7fb8;
  border-radius: 9px;
  color: #2b7fb8;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-12deg);
  opacity: .88;
  background: rgba(236, 248, 255, .72);
  box-shadow: inset 0 0 0 2px currentColor, 0 3px 10px rgba(43, 127, 184, .18);
  filter: saturate(1.45) contrast(1.12);
  text-shadow: 0 0 3px rgba(43, 127, 184, .28);
  pointer-events: none;
}

.article-detail-stamps .inspection-verdict-stamp-detail {
  width: 148px;
  height: 148px;
  border-width: 6px;
  font-size: 62px;
  opacity: .82;
  filter: saturate(1.45) contrast(1.12) drop-shadow(0 3px 4px rgba(34, 32, 38, .12));
  text-shadow: 0 0 3px currentColor;
}

.article-detail-stamps .inspection-verdict-stamp-detail.verdict-green { font-size: 34px; }
.article-detail-stamps .inspection-verdict-stamp-detail.verdict-black { opacity: .7; }

.article-page > h1 {
  margin: 0;
  color: #27252d;
  font-size: 30px;
  line-height: 1.38;
  font-weight: 750;
  text-align: left;
  overflow-wrap: anywhere;
}

.article-page > .byline {
  margin: 11px 0 0;
  padding: 0;
  display: block;
  border: 0;
  color: #918e98;
  font-size: 12px;
  line-height: 1.6;
}

.article-page > .article-lead {
  width: min(100%, 660px);
  margin: 21px auto 4px;
  padding: 14px 18px;
  border-top: 1px solid #e6e3e8;
  border-bottom: 1px solid #e6e3e8;
  text-align: center;
}

.article-page > .article-lead::before { content: none; }

.article-page .article-lead > .detail-subtitle {
  max-width: 620px;
  margin: 0 auto;
  padding: 0;
  color: #66626c;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  text-align: center;
  text-wrap: balance;
}

.article-page .article-free-content,
.article-page .article-paid-content {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #eae8ed;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
}

.article-page .content-label {
  margin-bottom: 13px;
  padding: 0 0 0 9px;
  border-left: 3px solid #81778a;
  border-radius: 0;
  background: transparent;
  color: #4f4b55;
  font-size: 12px;
}

.article-page .article-paid-content .content-label {
  border-left-color: var(--accent);
  background: transparent;
  color: #4f4b55;
}

.article-page .article-paid-content.locked {
  border-color: #e9e5ea;
  background: #fff;
}

.article-page .paid-content-mask {
  min-height: 190px;
  background: #faf9fb;
  border: 1px solid #efedf1;
  border-radius: 6px;
}

@media (max-width: 520px) {
  .follow-card {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 11px;
    padding: 14px 12px;
  }

  .follow-card > .avatar { width: 48px; height: 48px; }
  .follow-card .follow-update { max-width: 52%; }

  .article-page .article-author-card {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 11px;
    padding: 13px;
  }
  .article-page .article-author-avatar { width: 52px; height: 52px; }
  .article-page .article-author-info strong { font-size: 15px; }
  .article-page .article-author-link { font-size: 11px; }

  .article-detail-stamps {
    top: 100px;
    right: 3%;
    gap: 10px;
  }
  .article-public-stamp {
    width: 144px;
    height: 52px;
    border-width: 4px;
    font-size: 21px;
  }
  .article-detail-stamps .inspection-verdict-stamp-detail {
    width: 112px;
    height: 112px;
    border-width: 5px;
    font-size: 47px;
  }
  .article-detail-stamps .inspection-verdict-stamp-detail.verdict-green { font-size: 26px; }

  .article-page > h1 { font-size: 25px; line-height: 1.42; }
  .article-page > .article-lead { margin-top: 19px; padding: 12px 8px; }
  .article-page .article-lead > .detail-subtitle {
    padding: 0;
    font-size: 14px;
    line-height: 1.75;
  }
  .article-page .article-free-content,
  .article-page .article-paid-content { padding: 15px; }
}

@media (max-width: 350px) {
  .follow-card { grid-template-columns: 46px minmax(0, 1fr); padding: 12px; gap: 10px; }
  .follow-card .avatar { width: 46px; height: 46px; }
  .follow-card-title { display: block; }
  .follow-card .follow-update { display: inline-block; max-width: 100%; margin-top: 5px; }
  .follow-card-footer { flex-wrap: wrap; gap: 5px 7px; }
  .article-page .article-author-card { grid-template-columns: 46px minmax(0, 1fr); }
  .article-page .article-author-avatar { width: 46px; height: 46px; }
  .article-page .article-author-link { grid-column: 2; justify-self: start; }
}

/* Article cards: keep every field, but group them into clear reading layers. */
.article-info-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  width: 100%;
  min-width: 0;
  padding: 14px;
  overflow: hidden;
  border: 1px solid #e9e7ec;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(44, 42, 63, .04);
}

.article-info-card:hover {
  transform: translateY(-1px);
  border-color: #ddd9e1;
  box-shadow: 0 8px 22px rgba(44, 42, 63, .07);
}

.article-info-card > .feed-cover {
  position: relative;
  z-index: 2;
  grid-column: 1;
  width: 74px;
  height: 74px;
  border-radius: 7px;
  background: #f1eff3;
}

.article-info-card > .feed-info,
.article-info-card > .purchase-info {
  position: relative;
  z-index: 2;
  grid-column: 2;
  min-width: 0;
  overflow: visible;
}

.article-card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}

.article-card-title-row h3,
.article-info-card .purchase-info h3 {
  min-width: 0;
  flex: 1;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: #2b2930;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-info-card .purchased-mark {
  position: static;
  flex: none;
  transform: none;
  margin-top: 1px;
  padding: 2px 6px;
  border-width: 1px;
  border-radius: 4px;
  font-size: 9px;
  line-height: 1.4;
  opacity: 1;
}

.article-card-source {
  display: block;
  min-width: 0;
  margin-top: 6px;
  color: #77737d;
  font-size: 11px;
  line-height: 1.5;
}

.article-card-source strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #55515b;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-info-card .article-card-source .article-subtitle {
  display: block;
  max-width: none;
  margin-top: 5px;
  padding: 1px 0 1px 8px;
  border-left: 2px solid #e8e4e9;
  border-radius: 0;
  background: transparent;
  color: #74707a;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: normal;
}

.article-info-card .article-card-source .article-subtitle::before {
  content: none;
}

.article-card-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 25px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #f0eef2;
}

.article-card-price {
  display: flex;
  align-items: baseline;
  min-width: 0;
  gap: 6px;
}

.article-info-card .price {
  color: #d94f74;
  font-size: 13px;
  font-weight: 800;
}

.article-info-card .original-price {
  margin: 0;
  color: #aaa6ae;
  font-size: 9px;
}

.article-info-card .article-card-stats {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  min-width: 0;
  margin: 0;
  color: #89858e;
  font-size: 10px;
  white-space: nowrap;
}

.article-info-card .article-heat,
.article-info-card .article-reads {
  color: #89858e;
  font-weight: 500;
}

.article-info-card .feed-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 7px;
  color: #aaa6ae;
  font-size: 10px;
  line-height: 1.45;
}

.article-info-card .feed-date-row > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-card-link {
  flex: none;
  color: #716c77;
  font-weight: 700;
  white-space: nowrap;
}

.article-card-link b { font-size: 15px; font-weight: 400; }
.article-info-card > .arrow { display: none; }

.article-info-card .public-watermark {
  position: absolute;
  z-index: 1;
  left: 20%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 176px;
  height: 58px;
  padding: 0;
  border: 5px double #2b7fb8;
  border-radius: 8px;
  background: transparent;
  color: #236fa2;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  opacity: .88;
  transform: translateY(-50%) rotate(-13deg);
  background: rgba(236, 248, 255, .72);
  box-shadow: inset 0 0 0 2px currentColor, 0 3px 10px rgba(43, 127, 184, .18);
  filter: saturate(1.45) contrast(1.12);
  text-shadow: 0 0 3px rgba(43, 127, 184, .28);
  pointer-events: none;
}

.article-info-card .article-verdict-watermark {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: 6%;
  width: 120px;
  height: 120px;
  border-width: 5px;
  font-size: 50px;
  opacity: .82;
  transform: translateY(-50%) rotate(12deg);
  filter: saturate(1.45) contrast(1.12) drop-shadow(0 3px 4px rgba(34, 32, 38, .12));
  text-shadow: 0 0 3px currentColor;
  pointer-events: none;
}

.article-info-card .article-verdict-watermark.verdict-green { font-size: 28px; }
.article-info-card .article-verdict-watermark.verdict-black { opacity: .7; }

.article-verdict-badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.article-verdict-badge.verdict-red { color: #b82025; background: #fff0ef; }
.article-verdict-badge.verdict-black { color: #29292e; background: #eeeeef; }
.article-verdict-badge.verdict-green { color: #14763d; background: #eaf8ef; }

.article-info-card .article-verdict-watermark.verdict-red,
.article-detail-stamps .inspection-verdict-stamp-detail.verdict-red { background: rgba(255, 241, 241, .76); }
.article-info-card .article-verdict-watermark.verdict-black,
.article-detail-stamps .inspection-verdict-stamp-detail.verdict-black { background: rgba(245, 245, 247, .8); }
.article-info-card .article-verdict-watermark.verdict-green,
.article-detail-stamps .inspection-verdict-stamp-detail.verdict-green { background: rgba(238, 251, 243, .78); }

.article-info-card .past-view-label,
.article-info-card .unknown-price,
.article-info-card .inspection-open-label {
  min-height: 22px;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 10px;
}

.article-info-card .inspection-verdict-stamp-feed {
  position: static;
  flex: none;
  width: 34px;
  height: 34px;
  transform: rotate(8deg);
  font-size: 14px;
}

.article-info-card .inspection-verdict-stamp-feed.verdict-green { font-size: 10px; }
.article-info-card.inspection-feed-card .feed-info { padding-right: 0; }

@media (max-width: 520px) {
  .article-info-card {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 11px;
    padding: 12px;
  }

  .article-info-card > .feed-cover { width: 66px; height: 66px; }
  .article-info-card .public-watermark {
    left: 17%;
    top: 50%;
    width: 148px;
    height: 50px;
    font-size: 21px;
  }
  .article-info-card .article-verdict-watermark {
    right: 4%;
    width: 104px;
    height: 104px;
    font-size: 43px;
  }
  .article-info-card .article-verdict-watermark.verdict-green { font-size: 24px; }
  .article-card-title-row h3,
  .article-info-card .purchase-info h3 { font-size: 14px; }
  .article-card-source strong { max-width: 100%; }
  .article-card-details { align-items: flex-end; }
  .article-info-card .article-card-stats { flex-wrap: wrap; row-gap: 2px; }
}

@media (max-width: 350px) {
  .article-info-card { grid-template-columns: 58px minmax(0, 1fr); gap: 9px; padding: 10px; }
  .article-info-card > .feed-cover { width: 58px; height: 58px; }
  .article-card-details { display: block; }
  .article-info-card .article-card-stats { justify-content: flex-start; margin-top: 5px; }
}
