/* Блок «59 учеников школы». Три варианта на общих данных (wall-data.js, wall.js).
   A: мозаика лиц и белая карточка ученика (на странице). B: график. C: карточки и лента.
   Все классы начинаются с wl-. Цвета и шрифты берутся из style.css. */

.wl { position: relative; }
.wl + .cta { margin-top: clamp(40px, 5vw, 68px); }
.wl-i { width: 1.2em; height: 1.2em; flex: none; display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Запасной вид без скрипта: простой список из 59 ссылок */
.wl-plain { columns: 4 210px; column-gap: 30px; }
.wl-plain li { break-inside: avoid; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .3) 0 7px, transparent 7px 15px) bottom / 100% 1.5px no-repeat; }
.wl-plain a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; text-decoration: none; font-size: 16px; }
.wl-plain b { color: var(--amber); font: 800 17px/1 var(--f-d); }
.wl-plain s { text-decoration: none; opacity: .8; }

/* Переключатель групп */
.wl-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: clamp(20px, 2.4vw, 30px); }
.wl-chip {
  display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 9px 0 16px; cursor: pointer; white-space: nowrap;
  border-radius: 14px; font: 650 16px/1 var(--f-d); color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .08)); border: 1.5px solid rgba(255, 255, 255, .34);
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.wl-chip i { font: 800 13px/1 var(--f-d); font-style: normal; padding: 6px 8px; border-radius: 9px; background: rgba(255, 255, 255, .2); font-variant-numeric: tabular-nums; }
.wl-chip[aria-pressed="true"] { background: #fff; color: var(--sky-1); border-color: #fff; box-shadow: 0 12px 26px -12px rgba(3, 18, 96, .7); }
.wl-chip[aria-pressed="true"] i { background: var(--amber); color: var(--ink); }
@media (hover: hover) { .wl-chip:not([aria-pressed="true"]):hover { background: rgba(255, 255, 255, .26); } }
.wl-chip:active { transform: scale(.97); }
.wl-short { display: none; }

/* Цифры «было → стало» */
.wl-n { display: inline-flex; align-items: baseline; gap: .22em; font: 800 12.5px/1 var(--f-d); letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.wl-n s { text-decoration: none; font-weight: 600; color: rgba(255, 255, 255, .86); }
.wl-n b { font-weight: 800; color: var(--amber); }
.wl-n .wl-i { width: .78em; height: .78em; align-self: center; opacity: .75; stroke-width: 2.6; }
.wl-nm { font: 650 12px/1.15 var(--f-d); letter-spacing: -.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl img.is-broken, .wl-dlg img.is-broken { visibility: hidden; }
.wl-ini { display: grid; place-items: center; font: 800 26px/1 var(--f-d); color: rgba(255, 255, 255, .92); }

.wl-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 16px; font-size: 14.5px; line-height: 1.4; color: rgba(255, 255, 255, .86); }
.wl-foot span .wl-i { color: var(--amber); margin: -2px 8px 0 0; }
.wl-foot a { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-weight: 650; color: #fff; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 4px; white-space: nowrap; }
.wl-more { display: none; text-align: center; margin-top: 16px; }
.wl-more .wl-i { transition: transform .3s var(--ease); }
.wl-more [aria-expanded="true"] .wl-i { transform: rotate(180deg); }

/* ---------- A. Мозаика лиц ---------- */
.wl-a { display: grid; grid-template-columns: minmax(0, 1fr) 344px; gap: 20px; align-items: start; }
.wl-mos { container-type: inline-size; min-width: 0; }
.wl-mosaic {
  --cols: 10; --gap: 8px;
  --row: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols) * 1.24);
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: var(--row); gap: var(--gap); grid-auto-flow: dense;
}
.wl-ti[hidden] { display: none; }
.wl-ti--big { grid-column: span 2; grid-row: span 2; }
.wl-t {
  position: relative; isolation: isolate; display: block; width: 100%; height: 100%; padding: 0; overflow: hidden; cursor: pointer; text-align: left;
  border: 0; border-radius: 13px; color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .1));
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3);
  transition: transform .28s var(--ease), box-shadow .2s;
}
.wl-ti--big .wl-t { border-radius: 18px; }
.wl-t-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.wl-t::after { content: ""; position: absolute; inset: 34% 0 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 34, 132, 0), rgba(8, 34, 132, .72) 52%, rgba(6, 26, 110, .94)); }
.wl-t.is-none::after { display: none; }
.wl-t .wl-ini { position: absolute; inset: 0 0 42%; z-index: -1; font-size: 24px; }
.wl-t .wl-ini .wl-i { width: 28px; height: 28px; }
.wl-cap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 3px; padding: 0 6px 7px; }
.wl-ti--big .wl-cap { padding: 0 13px 13px; gap: 4px; }
.wl-ti--big .wl-nm { font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.wl-sub { font: 500 12px/1.2 var(--f-t); color: rgba(255, 255, 255, .88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-ti--big .wl-n { font-size: 25px; letter-spacing: -.035em; margin-top: 3px; }
.wl-mark { position: absolute; left: 6px; top: 6px; display: inline-flex; align-items: center; gap: 5px; padding: 4px; border-radius: 8px; background: var(--amber); color: var(--ink); }
.wl-mark .wl-i { width: 12px; height: 12px; stroke-width: 2.3; }
.wl-mark i { font: 750 12px/1 var(--f-d); font-style: normal; padding-right: 3px; }
.wl-ti--big .wl-mark { left: 10px; top: 10px; padding: 5px 7px; }
.wl-t[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--sky-1), 0 0 0 5.5px var(--amber), 0 16px 30px -12px rgba(3, 18, 96, .8); z-index: 1; }
@media (hover: hover) { .wl-t:hover { transform: translateY(-3px) scale(1.035); z-index: 2; } .wl-ti--big .wl-t:hover { transform: translateY(-3px) scale(1.015); } }
.wl-t:active { transform: scale(.97); }
.wl-t:focus-visible { outline-offset: 2px; border-radius: 13px; }

/* Белая карточка ученика */
.wl-card { position: sticky; top: 104px; display: grid; gap: 14px; padding: 12px 12px 14px; color: var(--ink); outline: 0; }
.wl-ph { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 18px; background: linear-gradient(135deg, var(--sky-0), var(--sky-2) 60%, var(--sky-3)); }
.wl-ph-img { width: 100%; height: 100%; object-fit: cover; }
.wl-ph.is-none { aspect-ratio: auto; min-height: 104px; }
.wl-ph .wl-ini { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 64px; color: rgba(255, 255, 255, .34); }
.wl-ph .wl-ini .wl-i { width: 60px; height: 60px; stroke-width: 1.6; }
.wl-plate { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 8px 13px 9px; border-radius: 13px; color: #fff; background: rgba(14, 54, 186, .82); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .42), 0 10px 22px -10px rgba(3, 18, 96, .8); }
.wl-plate b { display: block; font: 750 19px/1.1 var(--f-d); letter-spacing: -.02em; }
.wl-plate span { display: block; margin-top: 3px; font: 500 13px/1.25 var(--f-t); color: rgba(255, 255, 255, .92); }
.wl-nums { display: flex; align-items: flex-end; gap: 10px; padding: 2px 6px 0; }
.wl-nums small { display: block; margin-bottom: 6px; font: 600 13px/1 var(--f-t); color: var(--ink-3); }
.wl-nums span { display: block; font-family: var(--f-d); font-variant-numeric: lining-nums tabular-nums; }
.wl-was span { font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -.03em; color: var(--ink-3); }
.wl-now span { font-weight: 800; font-size: 58px; line-height: .86; letter-spacing: -.05em; color: var(--ink); background: linear-gradient(transparent 58%, #ffd15e 58%, #ffb627 94%, transparent 94%); padding: 0 3px; margin: 0 -3px; border-radius: 4px; }
.wl-nums > .wl-i { width: 22px; height: 22px; margin-bottom: 4px; color: #e89a00; stroke-width: 2.6; }
.wl-unit { margin-left: 2px; padding-bottom: 1px; font: 600 13px/1.25 var(--f-t); color: var(--ink-2); }
.wl-unit em { display: block; width: max-content; margin-top: 6px; padding: 5px 8px; border-radius: 8px; font: 750 13px/1 var(--f-d); font-style: normal; background: var(--plate); color: var(--ink); }
.wl-txt { display: grid; gap: 12px; padding: 2px 6px 0; }
.wl-q { padding-left: 13px; border-left: 3px solid var(--amber); font: 500 15.5px/1.46 var(--f-t); color: var(--ink); text-wrap: pretty; }
.wl-f h4 { margin: 0 0 7px; font: 700 13px/1.2 var(--f-d); letter-spacing: .01em; color: var(--ink-3); }
.wl-f ul { display: grid; gap: 6px; }
.wl-f li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.38; color: var(--ink); }
.wl-f li::before { content: ""; position: absolute; left: 1px; top: .42em; width: 11px; height: 11px; background: linear-gradient(var(--blue), var(--blue)) center / 100% 2px no-repeat, linear-gradient(var(--blue), var(--blue)) center / 2px 100% no-repeat; }
.wl-w { font-size: 14.5px; line-height: 1.46; color: var(--ink-2); text-wrap: pretty; }
.wl-w b { color: var(--ink); font-weight: 700; }
.wl-none { color: var(--ink-3); }
.wl-link { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 14px; border-radius: 15px; background: var(--blue); color: #fff; font: 700 16px/1.1 var(--f-d); text-decoration: none; transition: background .2s, transform .2s var(--ease); }
.wl-link .wl-i { width: 18px; height: 18px; stroke-width: 2.4; }
@media (hover: hover) { .wl-link:hover { background: #1447c6; } .wl-link:hover .wl-i { transform: translate(2px, -2px); } }
.wl-link .wl-i { transition: transform .2s var(--ease); }
.wl-link:active { transform: scale(.985); }
.wl-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 600 13.5px/1 var(--f-t); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.wl-pager button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 14px; cursor: pointer; background: var(--cloud); color: var(--ink); transition: background .2s, transform .2s var(--ease); }
@media (hover: hover) { .wl-pager button:hover { background: var(--plate); } }
.wl-pager button:active { transform: scale(.94); }

/* Карточка на телефоне: окно снизу */
.wl-dlg { width: min(480px, 100vw); max-width: none; max-height: none; margin: auto auto 0; padding: 0; border: 0; background: none; overflow: visible; color: var(--ink); }
.wl-dlg::backdrop { background: rgba(5, 18, 80, .64); }
.wl-dlg-in { position: relative; max-height: 90vh; max-height: 90dvh; overflow: auto; overscroll-behavior: contain; border-radius: 28px 28px 0 0; background: #fff; }
.wl-dlg .wl-card { position: static; border-radius: 0; box-shadow: none; padding: 12px 12px calc(14px + env(safe-area-inset-bottom)); }
.wl-x { position: sticky; top: 20px; float: right; z-index: 2; margin: 20px 20px -64px 0; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer; background: #fff; color: var(--ink); box-shadow: 0 6px 16px -6px rgba(3, 18, 96, .6); }
.wl-x .wl-i { width: 22px; height: 22px; stroke-width: 2.4; }
@keyframes wl-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes wl-in { from { opacity: 0; transform: scale(.94); } }

/* ---------- B. График ---------- */
.wl-b { display: grid; gap: 16px; }
.wl-plot { padding: 18px clamp(12px, 2.2vw, 30px) clamp(14px, 1.8vw, 22px); }
.wl-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; font: 600 14px/1.2 var(--f-t); color: rgba(255, 255, 255, .92); }
.wl-legend span { display: inline-flex; align-items: center; gap: 8px; }
.wl-legend i { width: 14px; height: 14px; border-radius: 4px; }
.wl-k1 { background: rgba(255, 255, 255, .55); }
.wl-k2 { background: linear-gradient(180deg, var(--amber-hi), var(--amber)); }
.wl-hint { margin-left: auto; opacity: .82; }
.wl-chart { --ax: 38px; --ft: 30px; position: relative; height: clamp(250px, 29vw, 370px); margin-top: 52px; }
.wl-grid { position: absolute; inset: 0 0 var(--ft) 0; }
.wl-grid span { position: absolute; left: var(--ax); right: 0; bottom: var(--y); height: 0; border-top: 1.5px dashed rgba(255, 255, 255, .22); }
.wl-grid span:last-child { border-top: 1.5px solid rgba(255, 255, 255, .6); }
.wl-grid i { position: absolute; right: calc(100% + 8px); top: -.55em; font: 600 12px/1 var(--f-d); font-style: normal; color: rgba(255, 255, 255, .78); font-variant-numeric: tabular-nums; }
.wl-cols { position: absolute; left: var(--ax); right: 0; top: 0; bottom: var(--ft); display: grid; grid-template-columns: repeat(59, minmax(0, 1fr)); touch-action: pan-y; }
.wl-col { position: relative; min-width: 0; padding: 0; border: 0; background: none; cursor: pointer; transition: opacity .3s; -webkit-tap-highlight-color: transparent; }
.wl-stem, .wl-gain { position: absolute; left: 50%; width: min(64%, 13px); transform: translateX(-50%); }
.wl-stem { bottom: 0; height: var(--b); background: rgba(255, 255, 255, .5); }
.wl-gain { bottom: var(--b); height: calc(var(--a) - var(--b)); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--amber-hi), var(--amber)); opacity: .86; transition: opacity .2s, box-shadow .2s; }
.wl-col[aria-pressed="true"] .wl-gain { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 26px 2px rgba(255, 200, 80, .9); }
.wl-col[aria-pressed="true"] .wl-stem { background: #fff; box-shadow: 0 0 0 2px #fff; }
.wl-col.is-off { opacity: .14; pointer-events: none; }
.wl-col:focus-visible { outline-offset: -1px; }
.wl-face { position: absolute; left: 50%; top: calc(100% + 8px); width: calc(100% - 3px); max-width: 18px; aspect-ratio: 1; height: auto; transform: translateX(-50%); border-radius: 50%; object-fit: cover; transition: transform .2s var(--ease); }
.wl-face.wl-ini { font: 700 9px/1 var(--f-d); background: rgba(255, 255, 255, .26); color: #fff; }
.wl-col[aria-pressed="true"] .wl-face { transform: translateX(-50%) scale(1.45); box-shadow: 0 0 0 2px var(--amber); z-index: 1; }
.wl-tip { position: absolute; z-index: 3; left: 50%; top: 0; transform: translate(-50%, -100%); display: flex; align-items: center; gap: 9px; padding: 5px 14px 5px 5px; border-radius: 999px; background: #fff; color: var(--ink); white-space: nowrap; pointer-events: none; box-shadow: 0 14px 30px -12px rgba(3, 18, 96, .8); transition: left .22s var(--ease), top .22s var(--ease); }
.wl-tip-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.wl-tip .wl-ini { background: var(--plate); color: var(--ink); font-size: 18px; }
.wl-tip .wl-ini .wl-i { width: 20px; height: 20px; }
.wl-tip > span { display: grid; gap: 3px; }
.wl-tip b { font: 700 14px/1 var(--f-d); }
.wl-tip .wl-n { font-size: 16px; }
.wl-tip .wl-n s { color: var(--ink-3); }
.wl-tip .wl-n b { font: inherit; color: var(--ink); background: linear-gradient(transparent 55%, #ffd15e 55%); padding: 0 2px; }
.wl-scrub { display: none; margin-top: 10px; font-size: 14px; text-align: center; color: rgba(255, 255, 255, .86); }
.wl-card--wide { position: static; grid-template-columns: 264px minmax(0, .82fr) minmax(0, 1.3fr); grid-template-rows: auto auto 1fr; grid-template-areas: "ph nums txt" "ph link txt" "ph pager txt"; column-gap: 26px; row-gap: 14px; padding: 12px 26px 12px 12px; min-height: 250px; }
.wl-card--wide .wl-ph { grid-area: ph; aspect-ratio: auto; height: 100%; min-height: 226px; }
.wl-card--wide .wl-nums { grid-area: nums; padding: 14px 0 0; }
.wl-card--wide .wl-txt { grid-area: txt; padding: 14px 0 6px; align-content: start; }
.wl-card--wide .wl-link { grid-area: link; }
.wl-card--wide .wl-pager { grid-area: pager; align-self: start; }
.wl-card--wide .wl-q { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }

/* ---------- C. Карточки и лента ---------- */
.wl-rcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wl-rc { display: grid; grid-template-rows: auto auto 1fr auto; gap: 16px; padding: 12px 12px 14px; }
.wl-rc .wl-ph { border-radius: 18px; }
.wl-rc-n { display: flex; align-items: flex-end; gap: 10px; padding: 0 8px; font: 800 clamp(44px, 4.6vw, 62px)/.86 var(--f-d); letter-spacing: -.05em; font-variant-numeric: lining-nums tabular-nums; }
.wl-rc-n s { text-decoration: none; font-size: .5em; font-weight: 650; letter-spacing: -.03em; color: rgba(255, 255, 255, .86); line-height: 1; }
.wl-rc-n b { font-weight: 800; color: var(--amber); }
.wl-rc-n .wl-i { width: 20px; height: 20px; margin-bottom: 2px; opacity: .8; stroke-width: 2.6; }
.wl-rc-n small { padding-bottom: 1px; font: 600 13px/1.25 var(--f-t); letter-spacing: 0; color: rgba(255, 255, 255, .88); }
.wl-rc-t { padding: 0 8px; }
.wl-rc .wl-q { color: #fff; font-size: 16px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.wl-rc .wl-f h4 { color: rgba(255, 255, 255, .8); }
.wl-rc .wl-f li { color: #fff; font-size: 16px; }
.wl-rc .wl-f li::before { background: linear-gradient(var(--amber), var(--amber)) center / 100% 2px no-repeat, linear-gradient(var(--amber), var(--amber)) center / 2px 100% no-repeat; }
.wl-rc .wl-w { color: rgba(255, 255, 255, .92); font-size: 16px; }
.wl-rc .wl-w b { color: #fff; }
.wl-rc-link { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 15px; background: #fff; color: var(--sky-1); font: 700 16px/1.1 var(--f-d); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.wl-rc-link .wl-i { width: 18px; height: 18px; stroke-width: 2.4; }
@media (hover: hover) { .wl-rc-link:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(3, 18, 96, .8); } }
.wl-pills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 8px; margin-top: 16px; }
.wl-pl { min-width: 0; border-radius: 16px; background: linear-gradient(180deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .07)); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); transition: background .2s; }
.wl-pl-b { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 16px; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 12px 8px 8px; border: 0; border-radius: 16px; background: none; color: #fff; cursor: pointer; text-align: left; }
.wl-pl-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.wl-pl-b .wl-ini { background: rgba(255, 255, 255, .2); font-size: 17px; }
.wl-pl-b .wl-ini .wl-i { width: 20px; height: 20px; }
.wl-pl-b .wl-nm { font-size: 16px; font-weight: 600; }
.wl-pl-b .wl-n { font-size: 17px; }
.wl-chev { width: 16px; height: 16px; opacity: .7; transition: transform .25s var(--ease); }
@media (hover: hover) { .wl-pl:not(.is-open):hover { background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .14)); } }
.wl-pl.is-open { grid-column: 1 / -1; background: #fff; box-shadow: 0 24px 50px -30px rgba(3, 18, 96, .8); color: var(--ink); }
.wl-pl.is-open .wl-pl-b { grid-template-columns: 40px auto auto 1fr; color: var(--ink); }
.wl-pl.is-open .wl-chev { transform: rotate(180deg); justify-self: end; }
.wl-pl.is-open .wl-n s { color: var(--ink-3); }
.wl-pl.is-open .wl-n b { color: var(--ink); background: linear-gradient(transparent 55%, #ffd15e 55%); padding: 0 2px; }
.wl-pl.is-open .wl-ini { background: var(--plate); color: var(--ink); }
.wl-pl-d { display: grid; gap: 12px; justify-items: start; max-width: 820px; padding: 2px 18px 18px 58px; }
.wl-pl-d[hidden] { display: none; }
.wl-pl-who { font: 600 14px/1.3 var(--f-t); color: var(--ink-3); }
.wl-pl-d .wl-link { padding: 0 20px; }
.wl-c:not(.is-open):not(.is-all) .wl-pl:nth-child(n + 13) { display: none; }
.wl-c .wl-more { display: block; }
.wl-c.is-all .wl-more { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .wl-dlg[open] .wl-dlg-in { animation: wl-up .38s var(--ease); }
  .wl-pl.is-open { animation: wl-in .3s var(--ease); }
  .wl-rc { animation: wl-in .4s var(--ease) backwards; }
  .wl-rc:nth-child(2) { animation-delay: 60ms; }
  .wl-rc:nth-child(3) { animation-delay: 120ms; }
}
@media (prefers-reduced-motion: reduce) {
  .wl-t, .wl-chip, .wl-link, .wl-tip, .wl-face, .wl-gain, .wl-col, .wl-pager button, .wl-rc-link, .wl-chev, .wl-more .wl-i { transition: none; }
  .wl-t:hover, .wl-ti--big .wl-t:hover, .wl-rc-link:hover { transform: none; }
}

@media (max-width: 1100px) {
  .wl-a { grid-template-columns: minmax(0, 1fr) 316px; gap: 16px; }
  .wl-mosaic { --cols: 8; }
  .wl-pills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wl-card--wide { grid-template-columns: 220px minmax(0, .9fr) minmax(0, 1.2fr); column-gap: 20px; padding-right: 20px; }
  .wl-face { display: none; }
  .wl-chart { --ft: 0px; }
}
@media (max-width: 900px) {
  .wl-a { grid-template-columns: minmax(0, 1fr); }
  .wl-a > .wl-card { display: none; }
  .wl-mosaic { --cols: 10; }
  .wl-rcs { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  .wl-rc { grid-template-rows: auto; }
  .wl-pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wl-card--wide { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: none; padding: 12px 12px 14px; min-height: 0; max-width: 520px; margin-inline: auto; width: 100%; }
  .wl-card--wide > * { grid-area: auto !important; }
  .wl-card--wide .wl-ph { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .wl-card--wide .wl-ph.is-none { aspect-ratio: auto; min-height: 104px; }
  .wl-card--wide .wl-nums { padding: 2px 6px 0; }
  .wl-card--wide .wl-txt { padding: 2px 6px 0; }
  .wl-card--wide .wl-q { display: block; }
  .wl-scrub { display: block; }
  .wl-c:not(.is-open):not(.is-all) .wl-pl:nth-child(n + 7) { display: none; }
}
@media (max-width: 720px) {
  .wl-long { display: none; }
  .wl-short { display: inline; }
  .wl-chip { min-height: 44px; padding: 0 7px 0 13px; font-size: 15px; gap: 7px; }
  .wl-bar { gap: 6px; }
  .wl-mosaic { --cols: 7; --gap: 6px; }
  .wl-foot a { margin-left: 0; }
  .wl-chart { --ax: 28px; margin-top: 64px; }
  .wl-grid i { font-size: 11px; right: calc(100% + 5px); }
  .wl-stem, .wl-gain { width: 68%; border-radius: 2px 2px 0 0; }
  .wl-stem { border-radius: 0; }
  .wl-hint { margin-left: 0; }
}
@media (max-width: 520px) {
  .wl-mosaic { --cols: 4; --row: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols) * 1.14); }
  .wl-ti--big2 { grid-column: auto; grid-row: auto; }
  .wl-ti--big2 .wl-t { border-radius: 12px; }
  .wl-ti--big2 .wl-cap { padding: 0 6px 7px; gap: 3px; }
  .wl-ti--big2 .wl-nm { font-size: 12px; font-weight: 650; letter-spacing: -.005em; }
  .wl-ti--big2 .wl-n { font-size: 12.5px; letter-spacing: -.02em; margin-top: 0; }
  .wl-ti--big2 .wl-sub, .wl-ti--big2 .wl-mark i { display: none; }
  .wl-ti--big2 .wl-mark { left: 5px; top: 5px; padding: 4px; }
  .wl-t { border-radius: 12px; }
  .wl-t .wl-ini { inset: 0 0 48%; font-size: 22px; }
  .wl-t .wl-ini .wl-i { width: 24px; height: 24px; }
  .wl-ti--big:not(.wl-ti--big2) .wl-nm { font-size: 17px; }
  .wl-ti--big:not(.wl-ti--big2) .wl-n { font-size: 22px; }
  .wl-a .wl-more { display: block; }
  .wl-mos.is-short .wl-more { display: none; }
  .wl-mos:not(.is-open):not(.is-short) .wl-mosaic {
    max-height: calc(var(--row) * 6.4 + var(--gap) * 6); overflow: hidden;
    -webkit-mask: linear-gradient(180deg, #000 calc(100% - 46px), transparent); mask: linear-gradient(180deg, #000 calc(100% - 46px), transparent);
  }
  .wl-pills { grid-template-columns: minmax(0, 1fr); }
  .wl-pl-d { padding: 2px 14px 16px; }
  .wl-pl-d .wl-link { width: 100%; }
  .wl-now span { font-size: 54px; }
}
@media (max-width: 374px) {
  .wl-nm { font-size: 11px; }
  .wl-t .wl-n { font-size: 11.5px; }
  .wl-cap { padding: 0 5px 6px; }
  .wl-chip { font-size: 14.5px; padding: 0 6px 0 11px; }
  .wl-chip i { padding: 5px 6px; font-size: 12px; }
  .wl-now span { font-size: 48px; }
  .wl-was span { font-size: 26px; }
  .wl-pl-b { grid-template-columns: 36px minmax(0, 1fr) auto 14px; gap: 8px; }
  .wl-pl-img { width: 36px; height: 36px; }
  .wl-pl-b .wl-nm { font-size: 15px; }
  .wl-pl-b .wl-n { font-size: 15.5px; }
}
