/* Logo wall - responsive grid of logo tiles; optional grayscale; optional (off by default) moving row. */
.lw { margin: 0; display: grid; gap: 14px; }
.lw-cap { text-align: center; font-size: .8em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--e-ink-3); }
.lw-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.lw-fixed .lw-list { grid-template-columns: repeat(var(--lw-cols, 4), minmax(0, 1fr)); }
@media (max-width: 420px) { .lw-fixed .lw-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lw-item { display: flex; }
.lw-logo {
    flex: 1; display: flex; align-items: center; justify-content: center; min-height: 72px; padding: 12px 14px;
    border-radius: 14px; background: var(--e-surface); border: 1px solid var(--e-line); color: var(--e-ink-2); text-decoration: none;
    transition: border-color .2s var(--e-ease), background-color .2s var(--e-ease);
}
a.lw-logo:hover { border-color: color-mix(in srgb, var(--e-accent) 40%, var(--e-line)); }
.lw-logo img { display: block; width: 100%; max-width: 140px; height: 40px; object-fit: contain; }
.lw-word { display: inline-flex; align-items: center; gap: 7px; font-weight: 750; font-size: .98em; letter-spacing: -.01em; line-height: 1.15; text-align: center; overflow-wrap: anywhere; min-width: 0; }
.lw-mark { flex: none; display: block; width: 14px; height: 14px; background: currentColor; border-radius: 50%; opacity: .85; }
.lw-w1 { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8em; }
.lw-w1 .lw-mark { border-radius: 3px; }
.lw-w2 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-style: italic; font-size: 1.05em; }
.lw-w2 .lw-mark { border-radius: 0; transform: rotate(45deg); width: 11px; height: 11px; }
.lw-w3 { font-weight: 850; letter-spacing: -.04em; }
.lw-w3 .lw-mark { width: 16px; height: 8px; border-radius: 999px; }

.lw-gray .lw-logo img { filter: grayscale(1); opacity: .72; transition: filter .25s var(--e-ease), opacity .25s var(--e-ease); }
.lw-gray .lw-word { color: var(--e-ink-3); transition: color .25s var(--e-ease); }
.lw-gray .lw-logo:hover img, .lw-gray .lw-logo:focus-visible img { filter: none; opacity: 1; }
.lw-gray .lw-logo:hover .lw-word, .lw-gray .lw-logo:focus-visible .lw-word { color: var(--e-ink); }
html[data-theme="dark"] .lw-logo img { background: rgba(255, 255, 255, .9); border-radius: 6px; padding: 2px 4px; }
@media (prefers-color-scheme: dark) { html[data-theme="auto"] .lw-logo img { background: rgba(255, 255, 255, .9); border-radius: 6px; padding: 2px 4px; } }

/* moving row: only when the publisher turns it on; paused on hover, focus and by the button */
.lw-viewport { overflow: hidden; border-radius: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lw-track { display: flex; width: max-content; animation: lw-scroll var(--lw-dur, 30s) linear infinite; }
.lw-marquee .lw-list { display: flex; gap: 10px; padding-right: 10px; }
.lw-marquee .lw-item { width: 150px; }
.lw-marquee:hover .lw-track, .lw-marquee:focus-within .lw-track, .lw-paused .lw-track { animation-play-state: paused; }
.lw-controls { display: flex; justify-content: center; }
.lw-pause { font-size: .8em; min-height: 40px; padding: 4px 16px; border-radius: 999px; }
@keyframes lw-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .lw-track { animation: none; width: auto; }
    .lw-marquee .lw-list[aria-hidden="true"], .lw-controls { display: none; }
    .lw-marquee .lw-list { flex-wrap: wrap; justify-content: center; }
}
.lw-issues { margin: 0; padding-left: 28px; }
html[data-compact="1"] .lw-logo { min-height: 60px; padding: 8px 10px; }
