/* =========================================================================
   views/website-analytics.css — the portal Website page's Analytics tab (src/features/sites/websiteAnalytics.js).
   Prefix wa-.

   The page is the admin Analytics page's parts: the shared stats primitives (components.css: .stat-strip,
   .stat-band / .stat-section, .bar-list), the line chart, glyphs and live dot (views/analytics.css: .anc-*, .an-*)
   and the shared .badge, .btn, emptyState / errorState. Here: the head (title and the date-range pill), the source
   filter's chip, the small enquiries strip, and the phone layout (the strip's figures wrap; the two-column bands stack by themselves at
   900px). Tokens only; nothing coloured beyond the text tiers, the gray steps and the sunk surface, so the dark theme needs no rules.
   ========================================================================= */
.wa { display: flex; flex-direction: column; min-width: 0; }
.wa-main { display: contents; }

/* the head: the title, the date-range pill at the right */
.wa-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; padding-bottom: var(--space-4); }
.wa-title { margin: 0; font-size: var(--text-lg); font-weight: var(--fw-semibold); color: var(--text-strong); }
.wa-range-dd { position: relative; }
.wa-range { gap: var(--space-1-5); font-variant-numeric: tabular-nums; }
.wa-range svg { width: 16px; height: 16px; flex: none; }   /* even (as every .btn icon): an odd icon in an even box lands half a pixel low */

/* the enquiries strip: the Insights sentence and its numbers, on the sunk surface */
.wa-enq { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-2); padding: var(--space-3-5) var(--space-4); border-radius: var(--radius-lg); background: var(--surface-sunk); }
.wa-enq[hidden] { display: none; }   /* (its own display beats the UA [hidden] rule) */
.wa-sentence { margin: 0; font-size: var(--text-md); font-weight: var(--fw-semibold); line-height: var(--leading-snug); color: var(--text-strong); text-wrap: pretty; }
.wa-sentence:empty { display: none; }
.wa-enq-row { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: var(--text-sm); color: var(--text-muted); }
.wa-enq-fig { display: inline-flex; align-items: center; gap: var(--space-1-5); }
.wa-enq-fig > b { font-size: var(--text-lg); font-weight: var(--fw-semibold); color: var(--text-strong); font-variant-numeric: tabular-nums; }
.wa-enq-from { display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--space-1) var(--space-3); }
.wa-enq-from-label { color: var(--text-soft); }
.wa-enq-src { display: inline-flex; align-items: center; gap: var(--space-1-5); white-space: nowrap; }
.wa-enq-src > b { font-weight: var(--fw-semibold); color: var(--text-strong); font-variant-numeric: tabular-nums; }

/* the source filter (a Sources row picked): "Only visits from [mark] google.com ×" over the strip, the chip on the
   quiet gray fill a picked row's bar takes, its × the shared ghost icon button */
.wa-filter { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2); min-width: 0; margin-bottom: var(--space-3); font-size: var(--text-sm); color: var(--text-soft); }
.wa-filter[hidden] { display: none; }
.wa-filter-chip { display: inline-flex; align-items: center; gap: var(--space-1-5); min-width: 0; max-width: 100%; height: var(--control-sm); padding: 0 var(--space-0-5) 0 var(--space-2-5); border-radius: var(--radius-full); background: var(--gray-150); font-weight: var(--fw-medium); color: var(--text-strong); }
.wa-filter-chip > svg, .wa-filter-chip > .an-ico svg { width: 16px; height: 16px; flex: none; }
.wa-filter-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wa-filter-x { border-radius: var(--radius-full); }
@media (hover: hover) and (pointer: fine) { .wa-filter-x:hover { background: var(--gray-200); } }
.wa-filter-x:active:not(:disabled) { background: var(--gray-200); }   /* (the shared press fill is the chip's own) */
/* (a finger-sized ×: the shared .icon-ghost--sm touch floor, the chip grown to hold it) */
@media (pointer: coarse) { .wa-filter-chip { height: var(--control-md); } }

.wa-note { margin: 0 0 var(--space-2); }
.wa-note--none { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-1) var(--space-2); }

@media (max-width: 640px) {
  .wa-head { padding-bottom: var(--space-3); }
  .wa-enq { padding: var(--space-3); }
  .wa-enq-row { gap: var(--space-2) var(--space-4); }
}
