/* pa-views-b.css · W15 location page + Compare (27 Nov 2026, WAT). Admin tokens only: no new colours, fonts or radii. */

/* ── Entity head: breadcrumb, the name as a picker (the kit's .msel.sel, set at title size), ‹ › stepper ── */
.pa-crumb { grid-row: 1; grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; margin: 0 0 var(--space-1); font-size: var(--tiny); color: var(--color-text-tertiary); }
.pa-crumb a { color: var(--color-text-secondary); text-underline-offset: 2px; }
.pa-ph:has(.pa-crumb) { grid-template-rows: auto auto auto auto; }
.pa-ph:has(.pa-crumb) .ap-title { grid-row: 2; }
.pa-ph:has(.pa-crumb) .pa-tags { grid-row: 3; }
.pa-ph:has(.pa-crumb) .hd1__n { grid-row: 4; }
.pa-ph:has(.pa-crumb):not(:has(.pa-tags)) .hd1__n { grid-row: 3; }
@media (min-width: 761px) { .pa-ph:has(.pa-crumb) > .acts { grid-row: 1; align-self: end; } }
.pa-ph .ap-title .msel.sel.pa-pick, .pa-ph .ap-title .msel.sel { height: auto; min-height: 0; max-width: 100%; margin: 0 0 0 -6px; padding: 2px 26px 2px 6px; border: 0; border-radius: var(--radius-xs); background-color: transparent; background-position: right 6px center; font-family: var(--font-family-display); font-size: 22px; line-height: 1.2; font-weight: var(--font-weight-semibold); letter-spacing: -0.01em; color: var(--color-text-primary); }
.pa-ph .ap-title .msel.sel:focus-visible { outline: 2px solid var(--color-border-focus); outline-offset: 1px; }
@media (hover: hover) and (pointer: fine) { .pa-ph .ap-title .msel.sel:hover { background-color: var(--color-bg-surface); } }
.pa-step { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; }
.pa-step__b { width: 28px; height: 28px; }
.pa-step__b svg { width: 16px; height: 16px; }
.pa-step__b[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.pa-step__of { margin-left: var(--space-1); font-size: 11px; color: var(--color-text-tertiary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pa-spons { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.pa-tag-l { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: var(--radius-xs); background: var(--color-bg-surface); color: var(--color-text-primary); font-size: 11px; font-weight: var(--font-weight-medium); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .pa-tag-l:hover { background: var(--color-lilac-50); color: var(--color-text-accent); } }
.pa-tag-l:focus-visible { outline: 2px solid var(--color-border-focus); outline-offset: 1px; }

/* six location tiles: 3 across at 1280 and under, 2 at phone (pa.css) */
.pa-tiles--6 { --n: 6; }
@container page (max-width: 1100px) { .pa-tiles.pa-tiles--6 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@container page (max-width: 560px) { .pa-tiles.pa-tiles--6 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.pa-loc, .pa-cmpg { margin-top: var(--space-5); }

/* ── Compare: side by side ── */
.pa-cmp-acts { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--space-2); }
.pa-cmp-acts .pa-acts { flex-wrap: nowrap; }
.pa-cmp-acts .msel.sel { height: 36px; padding: 0 28px 0 var(--space-3); border: 1px solid var(--color-border-default); border-radius: var(--radius-sm); background-color: var(--color-bg-canvas); font-size: var(--font-size-13); font-weight: var(--font-weight-medium); color: var(--color-text-primary); }
.pa-cmp-acts .msel.sel:disabled { color: var(--color-text-tertiary); cursor: not-allowed; }
.pa-cmp-acts .msel.sel:focus-visible { outline: 2px solid var(--color-border-focus); outline-offset: 1px; }
.pa-cmp__w { border: 1px solid var(--color-border-subtle); border-radius: var(--radius-sm); }
.pa-cmp { width: 100%; min-width: 560px; }
.pa-cmp th, .pa-cmp td { height: 44px; padding: 6px var(--space-3); vertical-align: middle; font-size: var(--font-size-13); }
.pa-cmp thead th { height: 40px; font-size: var(--tiny); font-weight: var(--font-weight-medium); color: var(--color-text-secondary); white-space: nowrap; }
.pa-cmp th.pa-cmp__m { text-align: left; font-weight: var(--font-weight-regular); color: var(--color-text-primary); min-width: 180px; }
.pa-cmp thead th.pa-cmp__m { color: var(--color-text-secondary); }
.pa-cmp__e { width: 22%; }
.pa-cmp__eh { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; }
.pa-cmp__eh a { color: var(--color-text-primary); text-decoration: none; }
.pa-cmp__eh a:hover { text-decoration: underline; text-underline-offset: 2px; }
.pa-cmp__x { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: var(--radius-xs); background: none; color: var(--color-text-tertiary); cursor: pointer; }
.pa-cmp__x svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
@media (hover: hover) and (pointer: fine) { .pa-cmp__x:hover { background: var(--color-bg-surface); color: var(--color-text-primary); } }
.pa-cmp td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pa-cmp td .n { font-variant-numeric: tabular-nums; }
.pa-cmp td.pa-best, .pa-cmp td.pa-best .n { font-weight: var(--font-weight-semibold); }
.pa-cmp td.pa-cmp__t { white-space: normal; color: var(--color-text-secondary); }
.pa-cmp__s { display: block; margin-top: 1px; font-size: 11px; font-weight: var(--font-weight-regular); color: var(--color-text-tertiary); }
.pa-cmp__tag { display: inline-flex; align-items: center; height: 18px; margin-left: 6px; padding: 0 6px; border: 1px dashed var(--color-border-strong); border-radius: var(--radius-xs); font-size: 11px; color: var(--color-text-secondary); white-space: nowrap; vertical-align: 1px; }
.pa-cmp tbody tr + tr > * { border-top: 1px solid var(--color-border-subtle); }

/* ── Compare: small multiples on one scale ── */
.pa-sms { display: grid; gap: var(--space-3); }
.pa-sm { display: block; padding: 2px 0; border-radius: var(--radius-xs); }
.pa-sm:focus-visible { outline: 2px solid var(--color-border-focus); outline-offset: 2px; }
.pa-sm__h { margin: 0; font-size: var(--tiny); color: var(--color-text-secondary); font-variant-numeric: tabular-nums; }
.pa-sm__h b { font-weight: var(--font-weight-medium); color: var(--color-text-primary); }
.pa-sm .pa-sm__l { height: 44px; margin-top: var(--space-1); }
.pa-sm__base { fill: none; stroke: var(--color-border-subtle); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pa-sm__ax { display: flex; justify-content: space-between; gap: var(--space-3); margin: var(--space-2) 0 0; font-size: 11px; color: var(--color-text-tertiary); font-variant-numeric: tabular-nums; }

/* ── Compare: audience groups ── */
.pa-cags { display: grid; gap: var(--space-4); }
.pa-cag .pa-sub__h { margin-bottom: var(--space-1); }

@container page (max-width: 760px) {
  .pa-cmp-acts { justify-content: stretch; width: 100%; }
  .pa-cmp-acts > .msel.sel { flex: 1 1 100%; }
  .pa-cmp-acts .pa-acts { width: 100%; }
  .pa-step { margin-left: 0; }
  .pa-ph .ap-title .msel.sel { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .pa-cmp__x, .pa-tag-l { transition: none; } }

/* 390: the head stacks crumb · title · tags · sub line, then the actions on their own row; the measure column stays put while the
   entity columns scroll inside the card (no page scroll) */
@media (max-width: 760px) {
  .pa-ph:has(.pa-crumb) > .acts { grid-row: 5; }
  .pa-cmp th.pa-cmp__m { position: sticky; left: 0; z-index: 1; min-width: 132px; max-width: 150px; white-space: normal; background: var(--color-bg-canvas); box-shadow: 1px 0 0 var(--color-border-subtle); }
  .pa-cmp__tag { margin: 2px 0 0; white-space: normal; height: auto; }
}
