/* The row of sponsors (docs/revenue.md section 3.5) and the sponsor pages. Plain content: no
   glass, only a soft fade at the row's edges. Colours by role, from app.css. */
.spon { padding-block: 0 3.5rem; margin-top: -1rem; }
.spon-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; }
.spon-label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.spon-cta { font-size: 0.9375rem; color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.spon-cta:hover, .spon-cta:focus-visible { color: var(--accent); text-decoration: underline; }
.spon-none { margin-top: 0.75rem; color: var(--muted); }

.spon-view { margin-top: 1.25rem; overflow: hidden; }
.spon-moving { -webkit-mask-image: linear-gradient(to right, transparent, #000 4rem, #000 calc(100% - 4rem), transparent); mask-image: linear-gradient(to right, transparent, #000 4rem, #000 calc(100% - 4rem), transparent); }
.spon-track { display: flex; width: max-content; animation: spon-move var(--spon-secs, 60s) linear infinite; will-change: transform; }
.spon-list { display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; margin: 0; list-style: none; }
.spon-still { flex-wrap: wrap; justify-content: center; padding-right: 0; gap: 1rem 2.5rem; }
.spon-item { flex: none; }
@keyframes spon-move { to { transform: translateX(-50%); } }
/* Paused while the pointer is over it, while focus is inside it, and by the pause control. */
.spon-moving:hover .spon-track, .spon-moving:focus-within .spon-track, .spon-pause-box:checked ~ .spon-moving .spon-track { animation-play-state: paused; }

.spon-mark { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: var(--r-s, 6px); color: var(--muted); text-decoration: none; }
.spon-box { display: flex; align-items: center; justify-content: center; width: 144px; height: 48px; }
.spon-box img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }
.spon-mark img { filter: grayscale(1); opacity: 0.7; transition: filter 0.25s, opacity 0.25s; }
.spon-mark:hover img, .spon-mark:focus-visible img { filter: none; opacity: 1; }
.spon-mark:hover, .spon-mark:focus-visible { color: var(--ink); }
.spon-mark:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.spon-name { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.02em; }
.spon-filler .spon-box { border: 1px dashed var(--line-strong); border-radius: var(--r-s, 6px); }
.spon-filler .spon-name { font-weight: 500; font-size: 0.875rem; letter-spacing: 0; color: var(--faint); }
.spon-filler:hover .spon-name, .spon-filler:focus-visible .spon-name { color: var(--accent); }

.spon-pause-box { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.spon-pause { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.75rem; min-height: 44px; padding: 0 0.875rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.8125rem; color: var(--muted); cursor: pointer; user-select: none; }
.spon-pause:hover { color: var(--ink); border-color: var(--line-strong); }
.spon-pause-box:focus-visible ~ .spon-pause { outline: 2px solid var(--accent); outline-offset: 2px; }
.spon-pause .spon-pause-off, .spon-pause-box:checked ~ .spon-pause .spon-pause-on { display: none; }
.spon-pause-box:checked ~ .spon-pause .spon-pause-off { display: inline; }

@media (max-width: 640px) {
  .spon-box { width: 112px; height: 36px; }
  .spon-list { gap: 1.75rem; padding-right: 1.75rem; }
  .spon-still { padding-right: 0; gap: 0.5rem 1.75rem; }
  .spon-name { font-size: 0.9375rem; }
}

/* Without a logo for dark backgrounds, the logo sits on a light tile in dark mode. */
@media (prefers-color-scheme: dark) {
  /* A quiet tile: light enough for a dark-on-light logo, dimmed with the rest of the row. */
  .spon-tile .spon-box { background: color-mix(in srgb, var(--ink) 62%, var(--bg)); border-radius: var(--r-s, 6px); padding: 4px 8px; box-sizing: content-box; width: 128px; height: 40px; transition: background 0.25s; }
  .spon-mark.spon-tile img { opacity: 0.85; }
  .spon-mark.spon-tile:hover .spon-box, .spon-mark.spon-tile:focus-visible .spon-box { background: var(--ink); }
}
@media (prefers-color-scheme: dark) and (max-width: 640px) {
  .spon-tile .spon-box { width: 100px; height: 30px; padding: 3px 6px; }
}

/* Asked for less motion: nothing moves; the marks wrap into centred rows. */
@media (prefers-reduced-motion: reduce) {
  .spon-track { animation: none; width: auto; }
  .spon-copy, .spon-pause, .spon-pause-box { display: none; }
  .spon-moving { -webkit-mask-image: none; mask-image: none; }
  .spon-moving .spon-list { flex-wrap: wrap; justify-content: center; padding-right: 0; gap: 1rem 2.5rem; }
  .spon-mark img { transition: none; }
}

/* Previews on the sponsor's page and the review page: the light and the dark background. */
.spon-previews { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.spon-preview { --spon-light-bg: #fafbfc; --spon-dark-bg: #0d1017; --spon-tile-bg: #eef0f4; position: relative; display: flex; align-items: center; justify-content: center; padding: 1.25rem 1.5rem 1.75rem; border: 1px solid var(--line); border-radius: var(--r-m, 10px); }
.spon-on-light { background: var(--spon-light-bg); color: #1a1d24; }
.spon-on-dark { background: var(--spon-dark-bg); color: #e8eaef; }
.spon-on-dark.spon-tile .spon-box { background: var(--spon-tile-bg); border-radius: var(--r-s, 6px); padding: 4px 8px; box-sizing: content-box; width: 128px; height: 40px; }
.spon-preview-label { position: absolute; bottom: 0.35rem; left: 0.6rem; font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.6; }
.spon-state { font-size: 0.875rem; color: var(--muted); }
.spon-state-live { color: var(--accent); font-weight: 600; }
.spon-state-rejected, .spon-state-removed { color: var(--danger); }
.spon-url { overflow-wrap: anywhere; text-align: right; }
.spon-steps { display: grid; gap: 0.75rem; padding-left: 1.25rem; list-style: decimal; }
