/* pa-loctbl.css · 30 Nov 2026 (WAT) · the Locations list on the Partners grid (Mikky: "neat, optimised, game-like"). Screen only.
   A place is a spot on the map: its type as a pixel tile in a tint of the type's colour; the same colour draws its visits line and its
   return ring. Sponsors are their own solid marks, stacked. Sorted high first, each row carries its place (01, 02…), the top three in ink.
   Type colours are DS tokens; teal (leisure) and pink (event) are the documented DS gaps already used for partners p8 and p9. */
.sw--lt-leisure { --bi: #0E8A8A; --bw: #E3F5F5; }
.sw--lt-market { --bi: var(--color-amber-700); --bw: var(--color-amber-50); }
.sw--lt-mall { --bi: var(--color-lilac-700); --bw: var(--color-lilac-50); }
.sw--lt-business { --bi: var(--color-blue-600); --bw: var(--color-blue-50); }
.sw--lt-residential { --bi: var(--color-green-700); --bw: var(--color-green-50); }
.sw--lt-event { --bi: #C2418F; --bw: #FCEAF4; }
.sw--lt-airport, .sw--lt-other { --bi: var(--color-neutral-700); --bw: var(--color-neutral-100); }
.pa-ovt .ovt-r i[class*="sw--lt-"] { background: var(--bi); }

/* the type tile: the partner mark's size and grid, tinted instead of solid */
body:not(.rp-body) .pa-tbl .pa-lt.pa-ini { width: 34px; height: 34px; border-radius: 8px; background: var(--bw); color: var(--bi); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--bi) 14%, transparent); }
body:not(.rp-body) .pa-lt svg { display: block; width: 18px; height: 18px; fill: currentColor; }
body:not(.rp-body) .pa-lt svg path { stroke: none; }
body:not(.rp-body) .pa-lead:has(> .pa-lt) { gap: 12px; }
body:not(.rp-body) .pa-lead--sel:has(> .pa-lt) > .pa-lead__tick { width: 34px; height: 34px; margin-top: -17px; }
body:not(.rp-body) .pa-tbl .pa-lt { transition: transform 160ms var(--motion-easing-out); }
@media (hover: hover) and (pointer: fine) { body:not(.rp-body) .pa-tbl tbody tr:hover .pa-lt { transform: scale(1.04); } }

/* five columns on one grid, as Partners */
body:not(.rp-body) #card-dir-location .pa-tbl--l { table-layout: fixed; width: 100%; }
body:not(.rp-body) #card-dir-location .pa-tbl--l thead th:nth-child(1) { width: 29%; }
body:not(.rp-body) #card-dir-location .pa-tbl--l thead th:nth-child(2) { width: 22%; }
body:not(.rp-body) #card-dir-location .pa-tbl--l thead th:nth-child(3) { width: 23%; }
body:not(.rp-body) #card-dir-location .pa-tbl--l tbody :is(td, .pa-td-1) { height: 68px; font-size: 14px; }
body:not(.rp-body) #card-dir-location .pa-tbl--l :is(thead th, td):last-child { padding-right: 16px; }
body:not(.rp-body) #card-dir-location .pa-tbl--l .pa-lead { max-width: 100%; }
body:not(.rp-body) .pa-tbl--l .pa-lead .pa-under { font-size: var(--font-size-12); color: var(--color-text-tertiary); }

/* the place in the ranking: a quiet number in the gutter, the top three in ink */
body:not(.rp-body) .pa-tw:not(.is-stack) .pa-tbl--l.is-ranked tbody tr:not(.is-tail) { counter-increment: pa-rk; }
body:not(.rp-body) .pa-tw:not(.is-stack) .pa-tbl--l.is-ranked :is(thead th:first-child, .pa-td-1) { position: relative; padding-left: 44px; }
body:not(.rp-body) .pa-tw:not(.is-stack) .pa-tbl--l.is-ranked tbody tr:not(.is-tail) .pa-td-1::before { content: counter(pa-rk, decimal-leading-zero); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; font-size: var(--font-size-12); font-weight: var(--font-weight-medium); font-variant-numeric: tabular-nums; color: var(--color-text-tertiary); text-align: right; }
body:not(.rp-body) .pa-tw:not(.is-stack) .pa-tbl--l.is-ranked tbody[style$=" 0"] tr:nth-child(-n+3):not(.is-tail) .pa-td-1::before { color: var(--color-text-primary); font-weight: var(--font-weight-semibold); }

/* sponsors: their marks, stacked; the first one's name, then how many more; the views they got, only when there were some */
.pa-spx { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-width: 0; }
.pa-spx__m { display: inline-flex; flex: none; padding-left: 2px; }
.pa-spx__m a { position: relative; z-index: calc(3 - var(--k)); display: block; margin-left: -8px; border-radius: 7px; text-decoration: none; transition: transform 160ms var(--motion-easing-out); }
.pa-spx__m a:first-child { margin-left: 0; }
.pa-spx__m .pa-bm { width: 26px; height: 26px; margin: 0; border-radius: 7px; box-shadow: 0 0 0 2px var(--color-bg-canvas); }
.pa-spx__m .pa-bm svg { width: 14px; height: 14px; }
.pa-spx__m a:focus-visible { z-index: 4; outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .pa-spx__m a:hover { z-index: 4; transform: translateY(-2px); }
  body:not(.rp-body) .pa-tbl tbody tr:hover .pa-spx__m .pa-bm { transform: none; box-shadow: 0 0 0 2px var(--color-bg-surface); }
}
.pa-spx__t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pa-spx__n { display: flex; align-items: baseline; gap: 4px; min-width: 0; white-space: nowrap; font-weight: var(--font-weight-medium); color: var(--color-text-primary); }
.pa-spx__n > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }   /* a long name gives way; "+2" never does */
.pa-spx__n small { flex: none; font-size: var(--font-size-12); font-weight: var(--font-weight-medium); color: var(--color-text-tertiary); }
.pa-spx__v { font-size: var(--font-size-12); color: var(--color-text-tertiary); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: default; }

/* visits: the period's line in the type's colour, the figure and its change; the rest is in the tip */
body:not(.rp-body) .pa-lvi { border-radius: 4px; cursor: default; }
body:not(.rp-body) .pa-tw:not(.is-stack) .pa-lvi > span { min-width: var(--fw, 64px); }
body:not(.rp-body) .pa-lvi:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: 4px; }
/* return rate: the ring in the type's colour */
.pa-lrr { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.pa-lrr .pa-ring { width: 24px; height: 24px; }
.pa-lrr b { min-width: 4.5ch; font-weight: var(--font-weight-medium); font-variant-numeric: tabular-nums; text-align: right; }

/* opening soon: one slim line, the tile steps back */
body:not(.rp-body) #card-dir-location .pa-tbl--l tr.is-soon :is(td, .pa-td-1) { height: 56px; }
body:not(.rp-body) .pa-tbl--l tr.is-soon .pa-lt { opacity: .5; }

/* phone: name, then sponsors, then three figures in a row; no gutter number, no line */
body:not(.rp-body) .is-stack .pa-tbl--l .pa-td-1 { padding-left: 0; }
body:not(.rp-body) .is-stack .pa-tbl--l .pa-td-1::before { content: none !important; }
body:not(.rp-body) .is-stack .pa-tbl--l tbody :is(td, .pa-td-1) { height: auto; }
body:not(.rp-body) .is-stack .pa-tbl--l td:has(.pa-spx), body:not(.rp-body) .is-stack .pa-tbl--l td:has(> .faint) { grid-column: 1 / -1; }
body:not(.rp-body) .is-stack .pa-tbl--l td:empty { display: none; }
body:not(.rp-body) .is-stack .pa-lrr { justify-content: flex-start; }
body:not(.rp-body) .is-stack .pa-lrr b { min-width: 0; text-align: left; }
body:not(.rp-body) .is-stack .pa-lrr .pa-ring { width: 20px; height: 20px; }

/* draw once, on the list's first visit, as the partner rings and lines do (pa-brand.css keyframes) */
@media (prefers-reduced-motion: no-preference) {
  body:not(.rp-body) .pa-play .pa-lt { animation: pa-pop 260ms cubic-bezier(0.23, 1, 0.32, 1) calc(var(--n, 0) * 35ms) backwards; }
}
@media (prefers-reduced-motion: reduce) { body:not(.rp-body) .pa-tbl .pa-lt, .pa-spx__m a { transition: none; } body:not(.rp-body) .pa-tbl tbody tr:hover .pa-lt, .pa-spx__m a:hover { transform: none; } }
