/*
 * Event share poster.
 * The on-screen card is half the PNG (html2canvas scale 2):
 *   17px here = 34px on Story and Square, 25px here = 50px on the wide card.
 * Safe area, sticker well, and stripe are halved the same way
 * (story 250/72 and a 170px sticker well at export).
 */

.team-dossier__card.team-dossier__card--poster {
  --r: var(--team-dossier-accent, var(--accent, #ff3152));
  --r-rgb: var(--team-dossier-accent-rgb, var(--accent-rgb, 255, 49, 82));
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: #09080f;
  color: #fff;
  font-family: Outfit, "Helvetica Neue", sans-serif;
  border-radius: 0;
}

.team-dossier__card.team-dossier__card--poster.size-story {
  width: 540px;
  height: 960px;
}

.team-dossier__card.team-dossier__card--poster.size-square {
  width: 540px;
  height: 540px;
}

.team-dossier__card.team-dossier__card--poster.size-og {
  width: 600px;
  height: 315px;
}

.team-dossier__card--poster .ev {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.team-dossier__card--poster .ev * {
  box-sizing: border-box;
}

.team-dossier__card--poster .ev-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 59px, rgba(255, 255, 255, 0.03) 59px 60px),
    repeating-linear-gradient(90deg, transparent 0 59px, rgba(255, 255, 255, 0.03) 59px 60px);
}

.team-dossier__card--poster .ev-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(circle, rgba(var(--r-rgb), 0.3) 0%, transparent 65%);
}

.team-dossier__card--poster .ev-glow--a {
  width: 650px;
  height: 650px;
  left: -280px;
  top: 90px;
}

.team-dossier__card--poster .ev-glow--b {
  width: 450px;
  height: 450px;
  right: -230px;
  bottom: -100px;
  opacity: 0.55;
}

.team-dossier__card--poster.has-photo .ev-glow--a {
  width: 600px;
  height: 600px;
  left: -280px;
  top: auto;
  bottom: -230px;
}

.team-dossier__card--poster.has-photo .ev-glow--b {
  display: none;
}

.team-dossier__card--poster .ev-stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--r);
  z-index: 5;
}

.team-dossier__card--poster .ev-wm {
  position: absolute;
  z-index: 2;
  left: 15px;
  top: -35px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 220px;
  line-height: 0.8;
  white-space: nowrap;
  pointer-events: none;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.05);
}

.team-dossier__card--poster .ev-safe {
  position: absolute;
  z-index: 6;
  top: 125px;
  bottom: 125px;
  left: 36px;
  right: 36px;
  display: flex;
  flex-direction: column;
}

.team-dossier__card--poster .ev-sticker {
  flex: 0 0 85px;
}

.team-dossier__card--poster .ev-push {
  flex: 1 1 auto;
  min-height: 14px;
}

.team-dossier__card--poster .ev-top,
.team-dossier__card--poster .ev-date,
.team-dossier__card--poster .ev-chips,
.team-dossier__card--poster .ev-title,
.team-dossier__card--poster .ev-info,
.team-dossier__card--poster .ev-games,
.team-dossier__card--poster .ev-cta,
.team-dossier__card--poster .ev-sticker {
  flex-shrink: 0;
}

.team-dossier__card--poster .ev-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.team-dossier__card--poster .ev-brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.team-dossier__card--poster .ev-brand span {
  color: var(--r);
}

.team-dossier__card--poster .ev-logo {
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  background: #16141e;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.team-dossier__card--poster.size-story:not(.has-photo) .ev-logo {
  width: 56px;
  height: 56px;
}

.team-dossier__card--poster.has-photo .ev-logo {
  background: rgba(22, 20, 30, 0.85);
}

.team-dossier__card--poster .ev-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.team-dossier__card--poster .ev-date {
  display: flex;
  align-items: flex-end;
  gap: 13px;
  margin-top: 18px;
  line-height: 0.8;
}

.team-dossier__card--poster .ev-month {
  font-family: "Bebas Neue", sans-serif;
  font-size: 70px;
  color: var(--r);
  letter-spacing: 0.02em;
}

.team-dossier__card--poster .ev-days {
  font-family: "Bebas Neue", sans-serif;
  font-size: 115px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.team-dossier__card--poster .ev-dow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9c9d6;
  margin-bottom: 8px;
}

.team-dossier__card--poster .ev-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.team-dossier__card--poster .ev-chip {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 7px 11px;
  border: 1.5px solid currentColor;
  border-radius: 0;
}

.team-dossier__card--poster .ev-chip.type {
  background: var(--r);
  border-color: var(--r);
  color: #fff;
}

.team-dossier__card--poster .ev-chip.is-open {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
}

.team-dossier__card--poster .ev-chip.is-soon {
  color: #eab308;
  background: rgba(234, 179, 8, 0.12);
}

.team-dossier__card--poster .ev-chip.is-closed {
  color: #9a9aa8;
}

.team-dossier__card--poster .ev-title {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 66px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.01em;
  margin-top: 11px;
  min-width: 0;
  overflow-wrap: break-word;
}

.team-dossier__card--poster .ev-title.is-md {
  font-size: 52px;
}

.team-dossier__card--poster .ev-title.is-sm {
  font-size: 40px;
}

.team-dossier__card--poster .ev-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 15px;
}

.team-dossier__card--poster .ev-line {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.05;
  min-width: 0;
}

.team-dossier__card--poster .ev-line svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  stroke: var(--r);
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.team-dossier__card--poster .ev-line-txt {
  min-width: 0;
}

.team-dossier__card--poster .ev-line .price {
  color: var(--r);
}

.team-dossier__card--poster .ev-games {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 15px;
}

.team-dossier__card--poster .ev-game {
  font-weight: 700;
  font-size: 19px;
  line-height: 1.1;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--r);
  border-radius: 0;
}

.team-dossier__card--poster .ev-game.is-extra {
  display: none;
}

.team-dossier__card--poster .ev-more {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: 17px;
  color: var(--r);
  padding: 7px 3px;
}

.team-dossier__card--poster .ev-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--r);
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0.05em;
  padding: 13px 18px 10px;
  border-radius: 0;
  box-shadow: 0 12px 35px -10px rgba(var(--r-rgb), 0.85);
}

.team-dossier__card--poster .ev-cta b {
  font-family: Outfit, sans-serif;
  font-weight: 800;
  font-size: 30px;
}

.team-dossier__card--poster .ev-media {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 45%;
  overflow: hidden;
  z-index: 1;
  background-color: #16141e;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 9px, transparent 9px 18px);
}

.team-dossier__card--poster .ev-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-dossier__card--poster .ev-fade {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 4;
}

.team-dossier__card--poster .ev-fade--top {
  top: 0;
  height: 22%;
  background: linear-gradient(180deg, rgba(9, 8, 15, 0.9), transparent);
}

.team-dossier__card--poster .ev-fade--bot {
  top: 26%;
  height: 22%;
  background: linear-gradient(180deg, transparent, #09080f 88%);
}

/* Photo story: same stack, tightened like the mockup. */
.team-dossier__card--poster.has-photo.size-story .ev-month {
  font-size: 60px;
}

.team-dossier__card--poster.has-photo.size-story .ev-days {
  font-size: 95px;
}

.team-dossier__card--poster.has-photo.size-story .ev-date {
  margin-top: 0;
}

.team-dossier__card--poster.has-photo.size-story .ev-title {
  font-size: 58px;
  margin-top: 10px;
}

.team-dossier__card--poster.has-photo.size-story .ev-title.is-md {
  font-size: 46px;
}

.team-dossier__card--poster.has-photo.size-story .ev-title.is-sm {
  font-size: 36px;
}

.team-dossier__card--poster.has-photo .ev-info {
  gap: 7px;
}

.team-dossier__card--poster.has-photo.size-story .ev-line {
  font-size: 22px;
}

.team-dossier__card--poster.has-photo.size-story .ev-game {
  font-size: 18px;
}

.team-dossier__card--poster.has-photo.size-story .ev-cta {
  font-size: 35px;
  margin-top: 17px;
}

/* Square = IG post. Safe 80px at export (40px here). Min 17px here / 34px exported. */
.team-dossier__card--poster.size-square .ev-safe {
  top: 40px;
  bottom: 40px;
  left: 40px;
  right: 40px;
}

.team-dossier__card--poster.size-square .ev-brand {
  font-size: 28px;
}

.team-dossier__card--poster.size-square .ev-logo,
.team-dossier__card--poster.size-square.size-story:not(.has-photo) .ev-logo,
.team-dossier__card--poster.size-square:not(.has-photo) .ev-logo {
  width: 48px;
  height: 48px;
}

.team-dossier__card--poster.size-square .ev-date {
  margin-top: 10px;
  gap: 10px;
}

.team-dossier__card--poster.size-square .ev-month {
  font-size: 48px;
}

.team-dossier__card--poster.size-square .ev-days {
  font-size: 80px;
}

.team-dossier__card--poster.size-square .ev-dow {
  font-size: 17px;
  margin-bottom: 6px;
}

.team-dossier__card--poster.size-square .ev-chips {
  margin-top: 10px;
}

.team-dossier__card--poster.size-square .ev-title {
  font-size: 40px;
  margin-top: 8px;
}

.team-dossier__card--poster.size-square .ev-title.is-md {
  font-size: 34px;
}

.team-dossier__card--poster.size-square .ev-title.is-sm {
  font-size: 26px;
}

.team-dossier__card--poster.size-square .ev-info {
  margin-top: 8px;
}

.team-dossier__card--poster.size-square .ev-line {
  font-size: 20px;
}

.team-dossier__card--poster.size-square .ev-line svg {
  width: 22px;
  height: 22px;
}

.team-dossier__card--poster.size-square .ev-games {
  margin-top: 8px;
}

.team-dossier__card--poster.size-square .ev-game,
.team-dossier__card--poster.size-square .ev-more,
.team-dossier__card--poster.size-square .ev-chip {
  font-size: 17px;
}

.team-dossier__card--poster.size-square .ev-cta {
  font-size: 32px;
  padding: 8px 14px 6px;
}

.team-dossier__card--poster.size-square .ev-cta b {
  font-size: 26px;
}

.team-dossier__card--poster.size-square .ev-sticker {
  display: none;
}

.team-dossier__card--poster.has-photo.size-square .ev-days {
  font-size: 68px;
}

.team-dossier__card--poster.has-photo.size-square .ev-month {
  font-size: 40px;
}

.team-dossier__card--poster.has-photo.size-square .ev-title {
  font-size: 34px;
}

.team-dossier__card--poster.has-photo.size-square .ev-cta {
  margin-top: 10px;
}

/* Wide card = X, and the same file covers Facebook.
   Safe 80px at export (40px here) is inside Facebook's 56px inset.
   Min 25px here / 50px exported, which also clears Facebook's 38px floor.
   Games are cut so the rest can stay that large. */
.team-dossier__card--poster.size-og .ev-safe {
  top: 40px;
  bottom: 40px;
  left: 40px;
  right: 40px;
}

.team-dossier__card--poster.size-og .ev-wm,
.team-dossier__card--poster.size-og .ev-sticker {
  display: none;
}

.team-dossier__card--poster.size-og .ev-logo {
  display: none;
}

.team-dossier__card--poster.size-og .ev-brand {
  font-size: 25px;
}

.team-dossier__card--poster.size-og .ev-date {
  margin-top: 2px;
  gap: 8px;
}

.team-dossier__card--poster.size-og .ev-month {
  font-size: 32px;
}

.team-dossier__card--poster.size-og .ev-days {
  font-size: 46px;
}

.team-dossier__card--poster.size-og .ev-dow {
  font-size: 25px;
  margin-bottom: 2px;
  letter-spacing: 0.08em;
}

.team-dossier__card--poster.size-og .ev-chips {
  margin-top: 2px;
  gap: 6px;
}

.team-dossier__card--poster.size-og .ev-chip {
  font-size: 25px;
  padding: 2px 8px;
  border-width: 2px;
}

.team-dossier__card--poster.size-og .ev-title {
  font-size: 28px;
  margin-top: 2px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-dossier__card--poster.size-og .ev-info {
  margin-top: 4px;
}

.team-dossier__card--poster.size-og .ev-line {
  font-size: 25px;
  gap: 8px;
}

.team-dossier__card--poster.size-og .ev-line svg {
  width: 26px;
  height: 26px;
}

.team-dossier__card--poster.size-og .ev-line-txt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-dossier__card--poster.size-og .ev-games {
  display: none;
}

.team-dossier__card--poster.size-og .ev-cta {
  font-size: 30px;
  padding: 4px 12px 2px;
  margin-top: 4px;
}

.team-dossier__card--poster.size-og .ev-cta b {
  font-size: 26px;
}

.team-dossier__card--poster.size-og .ev-push {
  min-height: 0;
}

/* Story safe-area guides. Not used in the modal. */
.team-dossier__card--poster.size-story.iss-show-guides .ev-safe {
  outline: 1.5px dashed rgba(34, 197, 94, 0.9);
  outline-offset: -1.5px;
}

.team-dossier__card--poster.size-story.iss-show-guides .ev-sticker {
  outline: 1.5px dashed rgba(255, 214, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-dossier__card--poster.size-story.iss-show-guides .ev-sticker::after {
  content: "LINK STICKER";
  font: 500 13px "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.2em;
  color: #ffd600;
}

.team-dossier__card--poster.size-story.iss-show-guides .ev::before,
.team-dossier__card--poster.size-story.iss-show-guides .ev::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 125px;
  z-index: 30;
  pointer-events: none;
  background: repeating-linear-gradient(
    45deg,
    rgba(var(--r-rgb), 0.25) 0 7px,
    rgba(var(--r-rgb), 0.08) 7px 14px
  );
}

.team-dossier__card--poster.size-story.iss-show-guides .ev::before {
  top: 0;
}

.team-dossier__card--poster.size-story.iss-show-guides .ev::after {
  bottom: 0;
}

/* Name heroes (teams, orgs, news, champions) wrap and stay above the export minimum. */
.team-dossier__card--poster .ev-date:has(.is-name),
.team-dossier__card--poster .ev-date:has(.is-name-md),
.team-dossier__card--poster .ev-date:has(.is-name-sm) {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.team-dossier__card--poster .ev-date:has(.is-name) .ev-month,
.team-dossier__card--poster .ev-date:has(.is-name-md) .ev-month,
.team-dossier__card--poster .ev-date:has(.is-name-sm) .ev-month {
  font-size: 36px;
  line-height: 0.9;
}

.team-dossier__card--poster .ev-date:has(.is-name) .ev-dow,
.team-dossier__card--poster .ev-date:has(.is-name-md) .ev-dow,
.team-dossier__card--poster .ev-date:has(.is-name-sm) .ev-dow {
  margin: 2px 0 0;
}

.team-dossier__card--poster.size-og .ev-date:has(.ev-month):has(.is-name) .ev-dow,
.team-dossier__card--poster.size-og .ev-date:has(.ev-month):has(.is-name-md) .ev-dow,
.team-dossier__card--poster.size-og .ev-date:has(.ev-month):has(.is-name-sm) .ev-dow,
.team-dossier__card--poster.size-og .ev-date:has(.ev-month):has(.is-name) ~ .ev-title,
.team-dossier__card--poster.size-og .ev-date:has(.ev-month):has(.is-name-md) ~ .ev-title,
.team-dossier__card--poster.size-og .ev-date:has(.ev-month):has(.is-name-sm) ~ .ev-title {
  display: none;
}

.team-dossier__card--poster .ev-days.is-name,
.team-dossier__card--poster .ev-days.is-name-md,
.team-dossier__card--poster .ev-days.is-name-sm {
  min-width: 0;
  max-width: 100%;
  flex: 0 1 auto;
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 0.88;
}

.team-dossier__card--poster .ev-days.is-name {
  font-size: 72px;
}

.team-dossier__card--poster .ev-days.is-name-md {
  font-size: 52px;
}

.team-dossier__card--poster .ev-days.is-name-sm {
  font-size: 40px;
}

.team-dossier__card--poster.size-square .ev-days.is-name {
  font-size: 48px;
}

.team-dossier__card--poster.size-square .ev-days.is-name-md {
  font-size: 40px;
}

.team-dossier__card--poster.size-square .ev-days.is-name-sm {
  font-size: 32px;
}

.team-dossier__card--poster.size-og .ev-days.is-name,
.team-dossier__card--poster.size-og .ev-days.is-name-md,
.team-dossier__card--poster.size-og .ev-days.is-name-sm {
  font-size: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-hero__tags .article-hero__share {
  margin-left: auto;
  --accent: #ff3152;
  --accent-rgb: 255, 49, 82;
}
