/* Historical rankings hub and individual ranking article styles */

/* Placement colors: 1st gold, 2nd silver, 3rd bronze, everyone else sky */
.p1 { color: var(--gold); }
.p2 { color: var(--silver); }
.p3 { color: var(--bronze); }
.pn { color: var(--sky); }

/* Eyebrow & Head Panel extensions */
.head-panel {
  padding: 36px 40px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.head-panel h1.display {
  font-size: 56px;
}
.lead {
  font-size: 16px;
  line-height: 1.5;
  max-width: 620px;
}
.chip {
  padding: 4px 12px;
  color: var(--text);
  font-size: 14px;
}
.meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}
.intro {
  font-size: 18px;
  line-height: 1.6;
  max-width: 680px;
}
.empty {
  padding: 24px;
  border-radius: 24px;
  color: var(--muted);
}

/* Historical Hub Action bar */
.historical-head-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.create-ranking-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid var(--sky);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: all 150ms ease;
}
.create-ranking-btn:hover {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  border-color: var(--text);
  color: var(--text);
}

/* Game switcher pill */
.switch {
  align-self: flex-start;
  display: inline-flex;
  flex-wrap: wrap;
  padding: 4px;
  gap: 2px;
}
.switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}
.switch a.on {
  background: var(--glass-fill);
  color: var(--text);
  font-weight: 700;
}

/* Archive card list */
.list-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}
.rk {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.rk .yr {
  flex: 0 0 64px;
  padding-top: 28px;
  font: 14px 'JetBrains Mono', monospace;
  color: var(--muted);
}
.rk .card {
  flex: 1 1 480px;
  min-width: 0;
  padding: 18px 24px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease;
}
.rk .card:hover {
  border-color: var(--glass-border);
  background: var(--faint);
}

/* Dedicated community icon column spanning full height of 3 rows */
.rk .hub-icon-col {
  width: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rk .hub-icon {
  width: 68px;
  height: 68px;
  min-width: 68px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Main content area containing 3 horizontal left-aligned rows */
.rk .main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}

/* Row 1: Ranking Identity */
.rk .row-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rk .name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Row 2: Ranking Details */
.rk .row-details {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rk .row-details .chip {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
}
.rk .row-details .period {
  font-size: 13px;
  color: var(--muted);
}

/* Row 3: Ranking Summary & Action */
.rk .row-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-top: 2px;
}
.rk .top-three {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text);
}
.rk .top-player-item {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.rk .top-player-item b {
  font-size: inherit;
}
.rk .dot-sep {
  color: var(--muted);
  font-weight: 400;
}
.rk .players-count {
  font-size: 12px;
}
.rk .view-link {
  color: var(--sky);
  font-size: 13px;
  font-weight: 600;
  margin-left: auto;
  white-space: nowrap;
  transition: transform 120ms ease;
}
.rk .card:hover .view-link {
  transform: translateX(3px);
}

.status {
  font: 11px 'JetBrains Mono', monospace;
  border-radius: 999px;
  padding: 2px 8px;
  border: 1px solid var(--glass-border);
  color: var(--muted);
}
.status.yearly,
.status.current {
  color: var(--sky);
  border-color: var(--sky);
}

@media (max-width: 768px) {
  .rk .card {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }
  .rk .hub-icon-col {
    width: 52px;
  }
  .rk .hub-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
  }
  .rk .view-link {
    margin-left: 0;
    width: 100%;
    margin-top: 4px;
  }
}

/* Article Layout */
.layout {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.side {
  flex: 1 1 260px;
  max-width: 100%;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 24px;
  transition: all 200ms ease;
}
.side-top-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 16px 14px;
  background: transparent;
  border: none;
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  border-bottom: 1px solid var(--line);
  transition: background 150ms ease;
}
.side-top-toggle:hover {
  background: var(--faint);
}
.side.collapsed .side-top-toggle {
  border-bottom: none;
}
.side-top-toggle .top-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}
.side-top-toggle b {
  font-size: 20px;
  color: var(--text);
  line-height: 1.25;
}
.side-top-toggle span {
  font-size: 14px;
}
.side-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--muted);
  background: var(--faint);
  transition: transform 200ms ease, color 150ms ease, background 150ms ease;
}
.side-top-toggle:hover .side-chevron {
  color: var(--sky);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.side:not(.collapsed) .side-chevron {
  transform: rotate(180deg);
}
.side-players {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}
.side.collapsed .side-players {
  display: none;
}
.jump {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 18px;
  color: var(--text);
  text-decoration: none;
}
.jump:hover {
  background: var(--faint);
}
.jump .n {
  width: 28px;
  font: 700 14px 'JetBrains Mono', monospace;
}
.col {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.entry {
  scroll-margin-top: 20px;
}
.entry.full {
  padding: 28px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.top-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}
.who {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ident {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.ident.has-sponsor {
  align-items: center;
}
.player-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.rank {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.05;
}
.ident.has-sponsor .rank {
  font-size: 72px;
  line-height: 1;
}
.ident h2 {
  font-size: 40px;
  line-height: 1.05;
  margin: 0;
}
.player-sponsor {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--muted);
}
.pts {
  font-size: 20px;
  color: var(--sky);
}
.text {
  font-size: 16px;
  line-height: 1.65;
}
.markdown-content p {
  margin: 0 0 12px 0;
}
.markdown-content p:last-child {
  margin-bottom: 0;
}
.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
  color: var(--text);
  margin: 16px 0 8px 0;
  font-weight: 700;
}
.markdown-content h1 { font-size: 22px; }
.markdown-content h2 { font-size: 19px; }
.markdown-content h3 { font-size: 17px; }
.markdown-content ul,
.markdown-content ol {
  margin: 0 0 12px 0;
  padding-left: 24px;
}
.markdown-content ul {
  list-style-type: disc;
}
.markdown-content ul ul {
  list-style-type: circle;
}
.markdown-content ul ul ul {
  list-style-type: square;
}
.markdown-content ul ul,
.markdown-content ol ul,
.markdown-content ul ol,
.markdown-content ol ol {
  margin: 4px 0;
  padding-left: 20px;
}
.markdown-content li {
  margin-bottom: 4px;
}
.markdown-content blockquote {
  margin: 12px 0;
  padding: 8px 16px;
  border-left: 3px solid var(--sky);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-radius: 0 12px 12px 0;
  color: var(--text);
  font-style: italic;
}
.markdown-content a {
  color: var(--sky);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.markdown-content a:hover {
  color: var(--text);
}
.markdown-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--faint);
  color: var(--sky);
}
.markdown-content pre {
  margin: 12px 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--glass-shadow);
  border: 1px solid var(--line);
  overflow-x: auto;
}
.markdown-content pre code {
  background: transparent;
  padding: 0;
  color: var(--text);
}
.lists {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.list {
  flex: 1 1 280px;
}
.list h3 {
  font: 12px 'JetBrains Mono', monospace;
  color: var(--muted);
  margin-bottom: 6px;
}
.list div {
  padding: 12px 4px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.entry.med {
  padding: 20px;
  border-radius: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.rank-md {
  width: 48px;
  font-size: 24px;
  font-weight: 700;
}
.player-heading-med {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.player-heading-med .player-sponsor {
  font-size: 11px;
}
.entry.med.has-sponsor .rank-md {
  font-size: 30px;
  line-height: 1;
}
.entry.med .who {
  flex: 1 1 200px;
  gap: 6px;
}
.entry.med .tag {
  font-size: 24px;
  font-weight: 700;
}
.entry.med .pts {
  font-size: 18px;
}
.minlist {
  padding: 12px 24px;
  border-radius: 24px;
}
.row {
  display: grid;
  grid-template-columns: 36px 40px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.row:first-child {
  border-top: 0;
}
.row .n {
  font: 700 17px 'JetBrains Mono', monospace;
}
.row.has-sponsor .n {
  font-size: 23px;
  line-height: 1;
}
.row-player-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}
.row-player-info .player-sponsor {
  font-size: 10px;
}
.row b {
  font-size: 17px;
}
.row .pts {
  font-size: 16px;
}

/* Article image box */
.article-image-box {
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.article-image-box img {
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  border-radius: 20px;
  display: block;
}
.article-image-caption {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

/* Pictures and stock icons */
.photo {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  background: linear-gradient(160deg, var(--ph-a), var(--ph-b));
}
.photo i {
  font-style: normal;
  font-weight: 700;
  color: var(--muted);
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo.lg {
  flex: 0 0 180px;
  height: 220px;
  border-radius: 20px;
}
.photo.lg i {
  font-size: 96px;
}
.photo.md {
  flex: 0 0 88px;
  height: 88px;
  border-radius: 18px;
}
.photo.md i {
  font-size: 48px;
}
.photo.sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.photo.sm i {
  font-size: 18px;
  color: var(--muted);
}
.stocks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stock {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  flex-shrink: 0;
}
.stock i {
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
}
.stock img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Creator Placeholder Page styles */
.creator-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.creator-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.creator-step-card {
  padding: 24px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.creator-step-num {
  font: 700 24px 'JetBrains Mono', monospace;
  color: var(--sky);
}
.creator-step-card h3 {
  font-size: 18px;
}
.creator-step-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
