/* NoRepTV sponsors (SPEC 48): the intro over the player (sponsors.js), the "Presented by" line (Home, live, replays),
   the public Sponsors page and a sponsor's private report page. Loaded only where one of them is on the page. */

/* The intro plays in #player itself (sponsors.js); this layer over it holds the label and buttons. The player is always
   black, so its text is white in both themes. --------------------------------------------------------------------- */

.sponsor-intro {
  position: absolute; inset: 0; z-index: 6;
  display: block; background: transparent; color: #fff; cursor: pointer;
}
.sponsor-intro[hidden] { display: none; }
.sponsor-intro-top, .sponsor-intro-bottom {
  position: absolute; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  pointer-events: none;
}
.sponsor-intro-top {
  top: 0; flex-wrap: nowrap; min-width: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}
.sponsor-intro-bottom {
  bottom: 0; flex-wrap: wrap; justify-content: flex-end;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
}
.sponsor-intro-top > *, .sponsor-intro-bottom > * { pointer-events: auto; }
.sponsor-ad {
  flex: none; padding: 2px 7px; border-radius: 5px;
  background: #f5c518; color: #111; font-size: 12px; font-weight: 800; letter-spacing: 0.02em; line-height: 1.35;
}
.sponsor-by {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 14px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.sponsor-intro .btn {
  height: 36px; padding: 0 14px; font-size: 14px;
  background: rgba(20, 20, 22, 0.82); color: #fff; border-color: rgba(255, 255, 255, 0.35);
}
.sponsor-intro .btn:hover { background: rgba(40, 40, 44, 0.92); }
.sponsor-intro .btn:focus-visible, .sponsor-resume:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.sponsor-visit { margin-right: auto; max-width: 60%; min-width: 0; overflow: hidden; }
/* its text in its own box: a long name ends in "…" and "Visit" stays (a .btn centres a bare text, cut at both ends) */
.sponsor-visit-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sponsor-intro .sponsor-visit { background: #fff; color: #111; border-color: #fff; }
.sponsor-intro .sponsor-visit:hover { background: #e9e9ec; }
.sponsor-code {
  padding: 4px 9px; border-radius: 6px; border: 1px dashed rgba(255, 255, 255, 0.6);
  font-size: 13px; background: rgba(0, 0, 0, 0.45); white-space: nowrap;
}
.sponsor-code strong { letter-spacing: 0.04em; }
.sponsor-code[hidden] { display: none; }
.sponsor-skip { min-width: 96px; font-variant-numeric: tabular-nums; }
.sponsor-skip[aria-disabled="true"] { cursor: default; color: rgba(255, 255, 255, 0.85); }
.sponsor-sound {
  position: absolute; top: 46px; right: 12px;
}
.sponsor-intro .sponsor-sound { background: #fff; color: #111; border-color: #fff; }
.sponsor-resume {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 64px; height: 64px; padding: 0;
  border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; cursor: pointer;
}
.sponsor-resume[hidden], .sponsor-sound[hidden] { display: none; }

@media (max-width: 480px) {
  .sponsor-intro-top, .sponsor-intro-bottom { padding: 7px 8px; gap: 6px; }
  .sponsor-by { font-size: 12.5px; }
  .sponsor-intro .btn { height: 32px; padding: 0 10px; font-size: 12.5px; }
  .sponsor-skip { min-width: 78px; }
  .sponsor-code { font-size: 12px; padding: 3px 7px; }
  .sponsor-sound { top: 38px; right: 8px; }
  .sponsor-resume { width: 52px; height: 52px; }
}
@media (max-width: 360px) {
  .sponsor-visit { max-width: 46%; }
  .sponsor-code { order: -1; flex-basis: 100%; text-align: right; background: none; border: 0; padding: 0 2px; }
}

/* "Presented by" ----------------------------------------------------------- */

.sponsor-presented { margin: 0 0 14px; font-size: 13.5px; color: var(--text-2); }
/* A pill on one line; on a narrow phone the words wrap (the radius keeps it rounded) so the sponsor's name, which comes
   last, is never the part cut off */
.sponsor-presented-link {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 4px 12px 4px 4px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
}
.sponsor-presented-link:hover { background: var(--surface-2); }
.sponsor-presented-link > span { min-width: 0; overflow-wrap: anywhere; }
.sponsor-presented-link strong { color: var(--text); }
.sponsor-presented-logo {
  flex: none; height: 24px; width: auto; max-width: 96px; object-fit: contain; border-radius: 999px;
  background: #fff; padding: 2px 6px;
}
.sponsor-presented-link:not(:has(img)) { padding-left: 12px; }
.sponsor-presented-live, .sponsor-presented-replay { margin: 10px 0 0; }
@media (max-width: 720px) {
  .sponsor-presented-live, .sponsor-presented-replay { padding: 0 16px; }
}

/* The public Sponsors page --------------------------------------------------- */

.sponsors-page { max-width: 860px; margin: 0 auto; }
.sp-hero { padding: 18px 0 8px; }
.sp-eyebrow {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px;
  color: var(--accent-text); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.sp-hero-title { font-family: var(--font-display); font-size: clamp(34px, 7vw, 54px); font-weight: 800; line-height: 1.02; margin: 0 0 12px; }
.sp-lede { font-size: 18px; color: var(--text-2); max-width: 640px; margin: 0; }
.sp-pillars { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.sp-pillars li { padding: 6px 12px; border-radius: 9px; background: var(--surface-2); font-size: 14px; font-weight: 600; }
.sp-pillars li:first-child { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent); }
.sp-pitch { margin: 26px 0 8px; }
.sp-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .sp-points { grid-template-columns: minmax(0, 1fr); } }
.sp-points li {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.sp-points li > .icon { flex: none; margin-top: 2px; color: var(--accent-text); }
.sp-points li div { display: grid; gap: 4px; }
.sp-points li span { color: var(--text-2); font-size: 14px; line-height: 1.5; }
.sp-terms {
  margin: 18px 0 0; padding: 16px 18px; border-radius: var(--radius);
  background: var(--accent-soft); border-left: 3px solid var(--accent);
}
.sp-terms p { margin: 0 0 6px; }
.sp-terms p:last-child { margin-bottom: 0; }
.sp-price { font-size: 17px; }
.sp-section-title { font-size: 22px; font-weight: 800; margin: 36px 0 8px; }
.sp-logos { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.sp-logos a {
  display: grid; place-items: center; min-width: 120px; height: 72px; padding: 10px 16px;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
}
.sp-logos img { max-height: 48px; max-width: 180px; width: auto; height: auto; object-fit: contain; }
.sp-logo-name { color: #111; font-weight: 800; font-size: 16px; }
.sp-apply { margin: 8px 0 24px; }
.sp-apply > .muted { margin: 0 0 14px; }
.sp-inquiry-form { margin-top: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.sp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.sp-inquiry-form > *, .sp-grid > .field { min-width: 0; }
.sp-inquiry-form input, .sp-inquiry-form select, .sp-inquiry-form textarea { min-width: 0; max-width: 100%; }
@media (max-width: 640px) {
  .sp-grid { grid-template-columns: minmax(0, 1fr); }
  .sp-inquiry-form { padding: 16px; }
}
.sp-field-error { margin-top: 6px; padding: 7px 10px; font-size: 13.5px; }
.sp-field-error[hidden], .sp-form-error[hidden] { display: none; }
.sp-form-error { margin: 12px 0 0; }
.field [aria-invalid="true"] { border-color: var(--danger-text) !important; }
.sp-money { position: relative; display: block; }
.sp-money > span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.field .sp-money input { padding-left: 26px !important; }
/* The honeypot: for bots only (people never see or reach it) */
.sp-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.sp-hp input { width: 1px; height: 1px; padding: 0; border: 0; }
.sp-inquiry-form input[type="file"] { max-width: 100%; }
.sp-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.sp-submit .muted { margin: 0; }
.sp-thanks {
  display: flex; align-items: center; gap: 14px; margin: 24px 0; padding: 22px;
  border-radius: 16px; background: color-mix(in srgb, var(--ok-text) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok-text) 30%, transparent);
}
.sp-thanks:focus { outline: none; }
.sp-thanks:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sp-thanks-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ok-text); color: var(--bg); }
.sp-thanks-text { margin: 0; font-size: 18px; font-weight: 700; }

/* A sponsor's private report page -------------------------------------------- */

.sp-report-page { max-width: 1100px; margin: 0 auto; }
.sp-report-who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.sp-report-who > div { min-width: 0; }
.sp-report-who .page-title { overflow-wrap: anywhere; }
.sp-report-logo {
  flex: none; width: auto; max-width: 140px; max-height: 64px; object-fit: contain;
  padding: 8px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
}
.sp-report-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 6px 0 8px; }
.sp-custom-range { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.sp-custom-range label { display: inline-flex; align-items: center; gap: 6px; }
.sp-custom-range input {
  padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--text);
}
.sp-report-foot { margin: 24px 0 0; }
@media (max-width: 480px) {
  .sp-report-who { align-items: flex-start; flex-direction: column; }
}
