
/* R50 author page: high-contrast cards and stable layout.
 * This file has a new path to bypass stale browser/CDN copies of prediction.css.
 */
.lb-author-profile--r50 {
  --lb-author-surface: #f7fafc;
  --lb-author-surface-strong: #ffffff;
  --lb-author-text: #122033;
  --lb-author-muted: #4e5e70;
  --lb-author-border: #cfdae5;
  --lb-author-link: #075fa8;
  --lb-author-accent: #0f6eb8;
  --lb-author-accent-soft: #e8f2fb;
  color: #eef3f9;
}

.lb-author-profile--r50 > section,
.lb-author-profile--r50 .lb-author-profile__methodology,
.lb-author-profile--r50 .lb-author-stats {
  min-width: 0;
}

.lb-author-profile--r50 .lb-author-profile__header {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  overflow: hidden;
  margin: 20px 0 28px;
  padding: 24px;
  border: 1px solid rgba(190, 210, 231, .5);
  border-radius: 18px;
  background:
    radial-gradient(circle at 90% 10%, rgba(44, 133, 205, .22), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
  box-shadow: 0 14px 36px rgba(0, 0, 0, .16);
}

.lb-author-profile--r50 .lb-author-profile__identity {
  min-width: 0;
}

.lb-author-profile--r50 .lb-author-profile__name {
  margin: 0 0 6px;
  color: #fff !important;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  line-height: 1.14;
}

.lb-author-profile--r50 .lb-author-profile__specialization {
  margin: 0 0 12px;
  color: #d4e4f4 !important;
  font-size: 1rem;
  font-weight: 750;
}

.lb-author-profile--r50 .lb-author-profile__bio {
  max-width: 76ch;
  margin: 0;
  color: #eef3f9 !important;
  line-height: 1.66;
}

.lb-author-profile--r50 .lb-author-profile__period {
  margin: 14px 0 0;
  color: #c4cfdd !important;
  font-size: .9rem;
}

.lb-author-profile--r50 .lb-avatar-fallback {
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.lb-author-profile--r50 .lb-author-profile__section-kicker {
  margin-bottom: 5px;
  color: #8fc7f2;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.lb-author-profile--r50 .lb-author-profile__methodology,
.lb-author-profile--r50 .lb-author-stats,
.lb-author-profile--r50 .lb-author-profile__predictions {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid rgba(207, 218, 229, .34);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
}

.lb-author-profile--r50 .lb-author-profile__methodology h2,
.lb-author-profile--r50 .lb-author-stats > h2,
.lb-author-profile--r50 .lb-author-profile__predictions h2 {
  margin: 0 0 12px;
}

.lb-author-profile--r50 .lb-author-profile__methodology p {
  max-width: 78ch;
  margin-bottom: 0;
  line-height: 1.65;
}

.lb-author-profile--r50 .lb-author-profile__section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.lb-author-profile--r50 .lb-author-profile__section-heading > p {
  max-width: 42ch;
  margin: 0;
  color: #c4cfdd;
  font-size: .92rem;
  text-align: right;
}

.lb-author-profile--r50 .lb-author-stats__period,
.lb-author-profile--r50 .lb-author-stats__forming,
.lb-author-profile--r50 .lb-empty-state {
  border: 1px solid var(--lb-author-border) !important;
  background: var(--lb-author-surface) !important;
  color: var(--lb-author-text) !important;
}

.lb-author-profile--r50 .lb-author-stats__period {
  margin-bottom: 16px;
  color: var(--lb-author-muted) !important;
  line-height: 1.55;
}

.lb-author-profile--r50 .lb-author-stats__forming {
  padding: 18px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

.lb-author-profile--r50 .lb-author-stats__forming h3 {
  color: var(--lb-author-text) !important;
}

.lb-author-profile--r50 .lb-author-stats__forming > p {
  color: var(--lb-author-muted) !important;
  line-height: 1.55;
}

.lb-author-profile--r50 .lb-author-stats dl > div {
  border: 1px solid #dce5ee !important;
  background: #fff !important;
  color: var(--lb-author-text) !important;
}

.lb-author-profile--r50 .lb-author-stats dt {
  color: var(--lb-author-muted) !important;
}

.lb-author-profile--r50 .lb-author-stats dd {
  color: var(--lb-author-text) !important;
}

/* Main problem from the supplied page: all teaser text gets an explicit
 * readable colour instead of inheriting the site's white body colour. */
.lb-author-profile--r50 .lb-prediction-teaser {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px !important;
  border: 1px solid var(--lb-author-border) !important;
  border-radius: 14px !important;
  background: var(--lb-author-surface) !important;
  color: var(--lb-author-text) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}

.lb-author-profile--r50 .lb-prediction-teaser *,
.lb-author-profile--r50 .lb-prediction-teaser strong,
.lb-author-profile--r50 .lb-prediction-teaser b {
  color: inherit;
}

.lb-author-profile--r50 .lb-prediction-teaser__topline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: var(--lb-author-muted) !important;
  font-size: .83rem;
  line-height: 1.35;
}

.lb-author-profile--r50 .lb-prediction-teaser__topline span::before {
  content: "•";
  margin-right: 10px;
  color: #8b9aad;
}

.lb-author-profile--r50 .lb-prediction-teaser h3 {
  margin: 10px 0 14px !important;
  color: var(--lb-author-text) !important;
  font-size: 1.12rem;
  line-height: 1.35;
}

.lb-author-profile--r50 .lb-prediction-teaser h3 a,
.lb-author-profile--r50 .lb-prediction-teaser__author a {
  color: var(--lb-author-link) !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.lb-author-profile--r50 .lb-prediction-teaser__pick {
  display: block !important;
  margin: 0 0 14px !important;
  padding: 13px !important;
  border: 1px solid #cbdceb !important;
  border-radius: 10px !important;
  background: var(--lb-author-accent-soft) !important;
  color: var(--lb-author-text) !important;
}

.lb-author-profile--r50 .lb-prediction-teaser__pick > span {
  display: block;
  margin-bottom: 6px;
  color: var(--lb-author-muted) !important;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lb-author-profile--r50 .lb-prediction-teaser__pick-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.lb-author-profile--r50 .lb-prediction-teaser__pick-row strong {
  color: var(--lb-author-text) !important;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.lb-author-profile--r50 .lb-prediction-teaser__pick-row b {
  display: inline-flex;
  min-width: 56px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border-radius: 8px;
  background: #d5e9f8 !important;
  color: #083e68 !important;
  font-size: 1rem;
}

.lb-author-profile--r50 .lb-prediction-teaser__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.lb-author-profile--r50 .lb-prediction-teaser__author {
  color: var(--lb-author-muted) !important;
  font-size: .82rem;
}

.lb-author-profile--r50 .lb-prediction-teaser__link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--lb-author-accent) !important;
  color: #fff !important;
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
}

.lb-author-profile--r50 .lb-prediction-teaser__link:hover,
.lb-author-profile--r50 .lb-prediction-teaser__link:focus-visible {
  background: #0a568f !important;
  color: #fff !important;
}

.lb-author-profile--r50 .lb-table-wrap table {
  background: var(--lb-author-surface) !important;
  color: var(--lb-author-text) !important;
}

.lb-author-profile--r50 .lb-table-wrap th,
.lb-author-profile--r50 .lb-table-wrap td {
  color: var(--lb-author-text) !important;
}

/* Defensive fallback for an old cached template that emitted an empty img. */
.lb-author-profile--r50 .lb-author-profile__header img[src=""] {
  display: none !important;
}

@media (max-width: 700px) {
  .lb-author-profile--r50 .lb-author-profile__header {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    padding: 17px;
  }

  .lb-author-profile--r50 .lb-author-profile__methodology,
  .lb-author-profile--r50 .lb-author-stats,
  .lb-author-profile--r50 .lb-author-profile__predictions {
    padding: 16px;
  }

  .lb-author-profile--r50 .lb-author-profile__section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .lb-author-profile--r50 .lb-author-profile__section-heading > p {
    text-align: left;
  }

  .lb-author-profile--r50 .lb-prediction-teaser__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .lb-author-profile--r50 .lb-prediction-teaser__link {
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 430px) {
  .lb-author-profile--r50 .lb-prediction-teaser__pick-row {
    grid-template-columns: 1fr;
  }

  .lb-author-profile--r50 .lb-prediction-teaser__pick-row b {
    justify-self: start;
  }
}

/* R51.5: author trust, expertise and evidence-rich profile. */
.lb-author-profile--r50 .lb-author-profile__photo,
.lb-author-profile--r50 .lb-avatar-fallback {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
}

.lb-author-profile--r50 .lb-author-profile__expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.lb-author-profile--r50 .lb-author-profile__expertise li {
  padding: 6px 10px;
  border: 1px solid rgba(143, 199, 242, .45);
  border-radius: 999px;
  background: rgba(15, 110, 184, .2);
  color: #eaf5ff;
  font-size: .82rem;
  font-weight: 750;
}

.lb-author-profile--r50 .lb-author-profile__bio p {
  max-width: 80ch;
  margin: 0 0 10px;
  color: #eef3f9 !important;
  line-height: 1.67;
}

.lb-author-profile--r50 .lb-author-profile__bio p:last-child {
  margin-bottom: 0;
}

.lb-author-profile--r50 .lb-author-profile__trust {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid rgba(143, 199, 242, .38);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 110, 184, .18), rgba(255,255,255,.035));
}

.lb-author-profile--r50 .lb-author-profile__trust h2 {
  margin: 0 0 14px;
}

.lb-author-profile--r50 .lb-author-profile__trust ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lb-author-profile--r50 .lb-author-profile__trust li {
  position: relative;
  padding-left: 24px;
  color: #e6eef7;
  line-height: 1.52;
}

.lb-author-profile--r50 .lb-author-profile__trust li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #8fc7f2;
  font-weight: 900;
}

.lb-author-profile--r50 .lb-author-profile__methodology p + p {
  margin-top: 12px;
}

.lb-author-profile--r50 .lb-author-stats__updated {
  margin: -6px 0 16px;
  color: #c4cfdd;
  font-size: .88rem;
}

.lb-author-profile--r50 .lb-author-stats__pending-note {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-left: 3px solid #0f6eb8;
  background: #eef6fc;
  color: #31465a !important;
  line-height: 1.5;
}

.lb-author-profile--r50 .lb-author-stats__warning {
  margin-top: 14px;
  color: #6b4d00 !important;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .lb-author-profile--r50 .lb-author-profile__header {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
  }

  .lb-author-profile--r50 .lb-author-profile__photo,
  .lb-author-profile--r50 .lb-avatar-fallback {
    width: 72px;
    height: 72px;
  }

  .lb-author-profile--r50 .lb-author-profile__trust ul {
    grid-template-columns: 1fr;
  }

  .lb-author-profile--r50 .lb-author-profile__section-heading {
    display: block;
  }

  .lb-author-profile--r50 .lb-author-profile__section-heading > p {
    margin-top: 8px;
    text-align: left;
  }
}

@media (min-width: 721px) {
  .lb-author-profile--r50 .lb-author-profile__header {
    grid-template-columns: 112px minmax(0, 1fr);
  }
}

/* R53: explicit authorship status and editorial accountability. */
.lb-author-profile--r50 .lb-author-profile__status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 12px;
  padding: 4px 10px;
  border: 1px solid rgba(143, 199, 242, .55);
  border-radius: 999px;
  background: rgba(15, 110, 184, .18);
  color: #dff1ff !important;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .02em;
}
.lb-author-profile--r50 .lb-author-profile__status.is-verified {
  border-color: rgba(134, 239, 172, .6);
  background: rgba(22, 163, 74, .18);
  color: #dcfce7 !important;
}
.lb-author-profile--r50 .lb-author-profile__accountability {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid rgba(207, 218, 229, .34);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
}
.lb-author-profile--r50 .lb-author-profile__accountability > h2 {
  margin: 0 0 16px;
}
.lb-author-profile--r50 .lb-author-profile__accountability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.lb-author-profile--r50 .lb-author-profile__accountability article {
  padding: 17px;
  border: 1px solid var(--lb-author-border);
  border-radius: 12px;
  background: var(--lb-author-surface);
  color: var(--lb-author-text);
}
.lb-author-profile--r50 .lb-author-profile__accountability h3 {
  margin: 0 0 8px;
  color: var(--lb-author-text) !important;
  font-size: 1rem;
}
.lb-author-profile--r50 .lb-author-profile__accountability p {
  margin: 0;
  color: var(--lb-author-muted) !important;
  line-height: 1.58;
}
@media (max-width: 720px) {
  .lb-author-profile--r50 .lb-author-profile__accountability-grid { grid-template-columns: 1fr; }
}
