/* The team page (/contributors). Same palette as the bingo card: cream paper,
   WAN Show burnt orange, Dosis. Fluid all the way down — no fixed widths, so
   nothing can push a phone into sideways scrolling. */

:root {
  --tp-paper: #f2eedd;
  --tp-paper-2: #e6e1cd;
  --tp-paper-img: url("https://cdn.wanshow.bingo/resources/images/slots/card_paper_texture.png");
  --tp-ink: #241a12;
  --tp-ink-muted: #6d5a4c;
  --tp-accent: #c13e05;
  --tp-accent-deep: #912700;
  --tp-accent-text: #a83605;
  --tp-line: rgba(193, 62, 5, 0.28);
  --tp-live: #e5312b;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Dosis', sans-serif;
  color: #fff;
  background: #1a1a1a;
  min-height: 100vh;
}
a { color: inherit; }

/* The photo behind the page — Site Images > "Contributors background". */
.tp-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.35) 100%),
    url("https://cdn.wanshow.bingo/resources/images/slots/contributors_background.jpg") center / cover no-repeat;
}

/* ---- nav (the same bar as the bingo page) ---- */
.tp-nav { background: rgba(51, 51, 51, 0.92); position: sticky; top: 0; z-index: 5; }
.tp-nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  min-height: 56px;
}
.tp-nav a { text-decoration: none; color: #fff; font-weight: 600; font-size: 17px; }
.tp-nav a:hover { color: #ffcfb8; }
.tp-home { font-weight: 800 !important; }
.tp-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- hero ---- */
.tp-hero { max-width: 1100px; margin: 0 auto; padding: 56px 16px 28px; text-align: center; }
.tp-hero h1 { margin: 0; font-size: clamp(30px, 5.5vw, 52px); font-weight: 800; line-height: 1.1; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.tp-hero p { margin: 12px auto 0; max-width: 640px; font-size: 19px; color: #f1e7df; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }
.tp-live-line {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 16px !important;
}
.tp-live-line::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tp-live); box-shadow: 0 0 0 3px rgba(229, 49, 43, 0.3); }

/* ---- panels ---- */
.tp-main { max-width: 1100px; margin: 0 auto; padding: 0 16px 40px; display: flex; flex-direction: column; gap: 22px; }
.tp-panel {
  background: rgba(20, 20, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(4px);
}
.tp-panel-head { margin-bottom: 16px; }
.tp-panel-head h2 { margin: 0; font-size: 26px; font-weight: 800; color: #fff; }
.tp-panel-head h2 i { color: #ff8a57; margin-right: 6px; }
.tp-panel-head p { margin: 6px 0 0; color: #d9cfc6; font-size: 16px; }

.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tp-grid-small { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* ---- a person ---- */
.tp-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background-color: var(--tp-paper);
  background-image: var(--tp-paper-img);
  color: var(--tp-ink);
  border: 2px solid var(--tp-accent);
  border-radius: 14px;
  padding: 20px 16px 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  min-width: 0;
}
.tp-photo, .tp-initial {
  width: 104px; height: 104px; border-radius: 50%;
  object-fit: cover; flex: 0 0 auto;
  border: 3px solid var(--tp-accent);
  background: var(--tp-paper-2);
}
.tp-grid-small .tp-photo, .tp-grid-small .tp-initial { width: 84px; height: 84px; }
.tp-initial {
  display: grid; place-items: center;
  font-size: 44px; font-weight: 800; color: #fff;
  background: linear-gradient(45deg, var(--tp-accent), var(--tp-accent-deep));
}
.tp-card h3 { margin: 12px 0 4px; font-size: 21px; font-weight: 800; overflow-wrap: anywhere; }
.tp-role { margin: 0 0 6px !important; color: var(--tp-accent-text) !important; font-weight: 700; }
.tp-card p { margin: 6px 0 0; font-size: 15px; line-height: 1.35; color: var(--tp-ink-muted); }
.tp-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: #4752c4;
  background: rgba(88, 101, 242, 0.12); border-radius: 999px; padding: 2px 10px;
}
.tp-socials { display: flex; gap: 12px; justify-content: center; margin-top: auto; padding-top: 12px; }
.tp-socials a, .tp-link {
  color: var(--tp-accent-text); font-size: 19px; text-decoration: none;
}
.tp-link {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  font-size: 14px; font-weight: 700; margin-top: auto; padding-top: 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tp-socials a:hover, .tp-link:hover { color: var(--tp-accent-deep); }

.tp-onair {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--tp-live); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
  border-radius: 999px; padding: 3px 9px;
}
.tp-onair::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.tp-card.is-live { box-shadow: 0 0 0 3px rgba(229, 49, 43, 0.45), 0 6px 16px rgba(0, 0, 0, 0.35); }

.tp-empty { grid-column: 1 / -1; color: #d9cfc6; font-size: 16px; margin: 0; }

/* ---- partners ---- */
.tp-partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tp-partner {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  background: #fff; color: var(--tp-ink); border-radius: 14px; padding: 18px;
}
.tp-partner img { max-width: 220px; max-height: 64px; width: auto; height: auto; }
.tp-partner p { margin: 0; color: var(--tp-ink-muted); }
.tp-btn {
  display: inline-block; margin-top: auto;
  background: var(--tp-accent); color: #fff; text-decoration: none; font-weight: 800;
  border-radius: 9px; padding: 8px 16px;
}
.tp-btn:hover { background: var(--tp-accent-deep); }
.tp-btn-off { background: transparent; color: #777; border: 1px solid rgba(0, 0, 0, 0.25); cursor: default; }
.tp-btn-off:hover { background: transparent; }

.tp-footer { text-align: center; color: #c9beb5; font-size: 14px; padding: 10px 16px 30px; line-height: 1.8; }
.tp-footer a { color: #ffcfb8; }

a:focus-visible { outline: 2px solid #ffcfb8; outline-offset: 2px; border-radius: 4px; }

@media (max-width: 560px) {
  .tp-hero { padding-top: 36px; }
  .tp-hero p { font-size: 17px; }
  .tp-panel { padding: 16px; border-radius: 14px; }
  .tp-links { gap: 12px; }
  .tp-nav a { font-size: 15px; }
  .tp-grid, .tp-grid-small { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; }
  .tp-photo, .tp-initial { width: 84px; height: 84px; }
  .tp-card h3 { font-size: 18px; }
}
