/**
 * Advertising Performance Report (.wb-pd)
 *
 * A reporting interface, not a SaaS dashboard: thin rules, square-ish
 * corners, tabular numerals, one navy accent. Tokens only; no hardcoded
 * colours. Mobile first.
 *
 * @package WinbondsWeb
 */

.wb-pd {
  --pd-line: var(--wb-color-border);
  --pd-line-strong: var(--wb-color-border-strong);
  --pd-radius: var(--wb-radius-sm);
  color: var(--wb-color-text);
  font-variant-numeric: tabular-nums;
  overflow-x: clip; /* no page-level horizontal overflow; tables scroll inside their own wrapper */
}
.wb-pd *, .wb-pd *::before, .wb-pd *::after { box-sizing: border-box; }
.wb-pd [hidden] { display: none !important; }

/* Header -------------------------------------------------------------------- */
.wb-pd__header { max-width: 46rem; margin-bottom: var(--wb-space-6); }
.wb-pd__eyebrow {
  margin: 0 0 var(--wb-space-3);
  font-size: var(--wb-text-xs);
  font-weight: var(--wb-fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wb-red-600);
}
.wb-pd__title {
  margin: 0 0 var(--wb-space-3);
  font-size: var(--wb-h2);
  font-weight: var(--wb-fw-bold);
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--wb-color-ink);
}
.wb-pd__lead { margin: 0; font-size: var(--wb-text-lg); line-height: var(--wb-lh-relaxed); color: var(--wb-color-text-muted); }

.wb-pd__dev-note {
  margin: var(--wb-space-6) 0 0;
  padding-top: var(--wb-space-3);
  border-top: 1px solid var(--pd-line);
  font-size: var(--wb-text-xs);
  color: var(--wb-color-text-muted);
}
.wb-pd__status { margin: var(--wb-space-5) 0; color: var(--wb-color-text-muted); font-size: var(--wb-text-sm); }
.wb-pd__status.is-error { color: var(--wb-red-600); }

/* Blocks -------------------------------------------------------------------- */
.wb-pd__block { padding-top: var(--wb-space-7); }
.wb-pd__block + .wb-pd__block { margin-top: var(--wb-space-7); border-top: 1px solid var(--pd-line); }
.wb-pd__h3 {
  margin: 0 0 var(--wb-space-4);
  font-size: var(--wb-h4);
  font-weight: var(--wb-fw-bold);
  letter-spacing: -0.02em;
  color: var(--wb-color-ink);
}
.wb-pd__note, .wb-pd__map-note, .wb-pd__method { margin: var(--wb-space-3) 0 0; font-size: var(--wb-text-sm); color: var(--wb-color-text-muted); line-height: var(--wb-lh-relaxed); }
.wb-pd__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Filters -------------------------------------------------------------------- */
.wb-pd__filters {
  border: 1px solid var(--pd-line);
  border-radius: var(--pd-radius);
  background: var(--wb-color-bg-soft);
  padding: var(--wb-space-4);
}
.wb-pd__filters-row { display: grid; gap: var(--wb-space-3); grid-template-columns: 1fr; }
.wb-pd__field { position: relative; display: flex; flex-direction: column; gap: var(--wb-space-1); min-width: 0; }
.wb-pd__label { font-size: var(--wb-text-xs); font-weight: var(--wb-fw-semibold); letter-spacing: 0.04em; text-transform: uppercase; color: var(--wb-color-text-muted); }
.wb-pd__ctl {
  width: 100%;
  min-height: 44px;
  padding: 0 var(--wb-space-3);
  font: inherit;
  font-size: var(--wb-text-sm);
  color: var(--wb-color-ink);
  background: var(--wb-color-surface);
  border: 1px solid var(--pd-line-strong);
  border-radius: var(--pd-radius);
  appearance: none;
}
select.wb-pd__ctl {
  padding-right: 2.25rem;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.wb-pd__ctl:focus-visible, .wb-pd__sort:focus-visible, .wb-pd__tab:focus-visible, .wb-pd__chip:focus-visible,
.wb-pd__seg-btn:focus-visible, .wb-pd__reset:focus-visible, .wb-pd__rowbtn:focus-visible, .wb-pd__svg:focus-visible,
.wb-pd__table-wrap:focus-visible, .wb-pd__opt input:focus-visible, .wb-pd__search input:focus-visible {
  outline: 2px solid var(--wb-color-focus-ring);
  outline-offset: 2px;
}
.wb-pd__dates-in { display: flex; align-items: center; gap: var(--wb-space-2); }
.wb-pd__dates-in .wb-pd__ctl { min-width: 0; }

.wb-pd__ms-btn { display: flex; align-items: center; justify-content: space-between; gap: var(--wb-space-2); text-align: left; cursor: pointer; }
.wb-pd__ms-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-pd__caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); flex: none; }
.wb-pd__ms-pop {
  display: none;
  position: absolute; z-index: var(--wb-z-dropdown); top: calc(100% + 4px); left: 0; right: 0;
  min-width: 14rem;
  background: var(--wb-color-surface);
  border: 1px solid var(--pd-line-strong);
  border-radius: var(--pd-radius);
  box-shadow: var(--wb-shadow-lg);
  padding: var(--wb-space-2);
}
.wb-pd__ms.is-open .wb-pd__ms-pop { display: block; }
.wb-pd__ms-search { width: 100%; min-height: 40px; margin-bottom: var(--wb-space-2); padding: 0 var(--wb-space-3); font: inherit; font-size: var(--wb-text-sm); color: var(--wb-color-ink); background: var(--wb-color-bg-soft); border: 1px solid var(--pd-line); border-radius: var(--pd-radius); }
.wb-pd__ms-list { list-style: none; margin: 0; padding: 0; max-height: 15rem; overflow-y: auto; overscroll-behavior: contain; }
.wb-pd__opt { display: flex; align-items: center; gap: var(--wb-space-2); min-height: 40px; padding: 0 var(--wb-space-2); border-radius: var(--wb-radius-xs); font-size: var(--wb-text-sm); color: var(--wb-color-text); cursor: pointer; }
.wb-pd__opt:hover { background: var(--wb-color-bg-soft); }
.wb-pd__opt input { width: 16px; height: 16px; margin: 0; accent-color: var(--wb-navy-600); }
.wb-pd__opt--all { font-weight: var(--wb-fw-semibold); color: var(--wb-color-ink); border-bottom: 1px solid var(--pd-line); border-radius: 0; margin-bottom: var(--wb-space-1); }
.wb-pd__ms-empty { margin: var(--wb-space-2); font-size: var(--wb-text-sm); color: var(--wb-color-text-muted); }

.wb-pd__filters-meta { display: flex; flex-direction: column; gap: var(--wb-space-3); margin-top: var(--wb-space-4); padding-top: var(--wb-space-3); border-top: 1px solid var(--pd-line); }
.wb-pd__active { margin: 0; display: flex; flex-wrap: wrap; gap: var(--wb-space-1) var(--wb-space-4); font-size: var(--wb-text-xs); color: var(--wb-color-text-muted); }
.wb-pd__active b { font-weight: var(--wb-fw-semibold); color: var(--wb-color-ink); margin-right: var(--wb-space-1); }
.wb-pd__filters-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wb-space-3); }

.wb-pd__seg { display: inline-flex; border: 1px solid var(--pd-line-strong); border-radius: var(--pd-radius); overflow: hidden; background: var(--wb-color-surface); }
.wb-pd__seg-btn { min-height: 40px; padding: 0 var(--wb-space-4); font: inherit; font-size: var(--wb-text-sm); font-weight: var(--wb-fw-medium); color: var(--wb-color-text); background: transparent; border: 0; cursor: pointer; }
.wb-pd__seg-btn + .wb-pd__seg-btn { border-left: 1px solid var(--pd-line); }
.wb-pd__seg-btn.is-on { background: var(--wb-navy-600); color: var(--wb-color-white); }
.wb-pd__reset {
  min-height: 40px; padding: 0 var(--wb-space-4);
  font: inherit; font-size: var(--wb-text-sm); font-weight: var(--wb-fw-semibold);
  color: var(--wb-navy-600); background: transparent;
  border: 1px solid var(--wb-navy-600); border-radius: var(--pd-radius); cursor: pointer;
}
.wb-pd__reset:hover { background: var(--wb-color-brand-soft); }

.wb-pd__empty { margin-top: var(--wb-space-5); padding: var(--wb-space-6) var(--wb-space-4); text-align: center; border: 1px dashed var(--pd-line-strong); border-radius: var(--pd-radius); }
.wb-pd__empty p { margin: 0 0 var(--wb-space-3); color: var(--wb-color-text); }
.wb-pd__empty-inline { margin: 0; padding: var(--wb-space-6) var(--wb-space-4); text-align: center; font-size: var(--wb-text-sm); color: var(--wb-color-text-muted); }

/* Metrics — homepage-style stat rows, no boxes ----------------------------- */
.wb-pd__metrics { margin: 0; }
.wb-pd__metric-grid { display: grid; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wb-pd__metric { margin: 0; min-width: 0; }
.wb-pd__metric dd { margin: 0; }
.wb-pd__metric-l { font-size: var(--wb-text-xs); font-weight: var(--wb-fw-semibold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--wb-color-text-muted); }
.wb-pd__metric-v { margin-top: var(--wb-space-2) !important; font-weight: var(--wb-fw-bold); letter-spacing: -0.02em; color: var(--wb-color-ink); line-height: 1.1; overflow-wrap: anywhere; }
.wb-pd__metric-v.is-na { color: var(--wb-color-text-soft); font-weight: var(--wb-fw-medium); }
.wb-pd__metric-s { margin-top: var(--wb-space-1) !important; font-size: var(--wb-text-xs); color: var(--wb-color-text-soft); line-height: 1.4; }

/* Primary: big figures on a hairline-ruled row, the homepage "stat" idiom */
.wb-pd__metrics--primary .wb-pd__metric-grid { border-top: 1px solid var(--pd-line); }
.wb-pd__metrics--primary .wb-pd__metric { padding: var(--wb-space-5) var(--wb-space-4) var(--wb-space-5) 0; border-bottom: 1px solid var(--pd-line); }
.wb-pd__metrics--primary .wb-pd__metric-v { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); font-weight: var(--wb-fw-extrabold); letter-spacing: -0.035em; }
.wb-pd__metrics--primary .wb-pd__metric:first-child .wb-pd__metric-l::before {
  content: ""; display: block; width: 26px; height: 2px; margin-bottom: var(--wb-space-3);
  border-radius: 2px; background: var(--wb-gradient-brand);
}

/* Secondary: compact label/value pairs, quieter */
.wb-pd__metrics--secondary { margin-top: var(--wb-space-2); }
.wb-pd__metrics--secondary .wb-pd__metric { padding: var(--wb-space-4) var(--wb-space-4) var(--wb-space-4) 0; border-bottom: 1px solid var(--wb-color-border-soft); }
.wb-pd__metrics--secondary .wb-pd__metric-v { font-size: var(--wb-text-xl); }

/* Trends -------------------------------------------------------------------- */
.wb-pd__trend-controls { display: flex; flex-direction: column; gap: var(--wb-space-3); margin-bottom: var(--wb-space-4); }
.wb-pd__tabs { display: flex; gap: var(--wb-space-1); overflow-x: auto; border-bottom: 1px solid var(--pd-line); scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.wb-pd__tab { flex: none; min-height: 44px; padding: 0 var(--wb-space-4); font: inherit; font-size: var(--wb-text-sm); font-weight: var(--wb-fw-medium); color: var(--wb-color-text-muted); background: transparent; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.wb-pd__tab:hover { color: var(--wb-color-ink); }
.wb-pd__tab.is-on { color: var(--wb-color-ink); border-bottom-color: var(--wb-red-500); font-weight: var(--wb-fw-semibold); }
.wb-pd__trend-opts { display: flex; flex-wrap: wrap; gap: var(--wb-space-3); }
.wb-pd__chart { margin: 0; border: 1px solid var(--pd-line); border-radius: var(--pd-radius); padding: var(--wb-space-4); background: var(--wb-color-surface); }
.wb-pd__chart-title { margin-bottom: var(--wb-space-3); font-size: var(--wb-text-sm); font-weight: var(--wb-fw-semibold); color: var(--wb-color-ink); }
.wb-pd__chart-box { position: relative; min-height: 240px; }
.wb-pd__svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.wb-pd__grid { stroke: var(--pd-line); stroke-width: 1; }
.wb-pd__tick { fill: var(--wb-color-text-muted); font-size: 11px; font-family: inherit; }
.wb-pd__bar { fill: var(--wb-navy-500); }
.wb-pd__line { fill: none; stroke: var(--wb-navy-500); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.wb-pd__pt { fill: var(--wb-color-surface); stroke: var(--wb-navy-500); stroke-width: 1.5; }
.wb-pd__cross { stroke: var(--wb-red-500); stroke-width: 1; stroke-dasharray: 3 3; }
.wb-pd__tip { position: absolute; top: 0; z-index: 2; display: flex; flex-direction: column; gap: 2px; padding: var(--wb-space-2) var(--wb-space-3); font-size: var(--wb-text-xs); color: var(--wb-color-white); background: var(--wb-navy-900); border-radius: var(--wb-radius-xs); pointer-events: none; white-space: nowrap; }
.wb-pd__tip b { font-weight: var(--wb-fw-semibold); }

/* Tables -------------------------------------------------------------------- */
.wb-pd__table-wrap { overflow-x: auto; border: 1px solid var(--pd-line); border-radius: var(--pd-radius); background: var(--wb-color-surface); -webkit-overflow-scrolling: touch; }
.wb-pd__table { width: 100%; min-width: 44rem; border-collapse: collapse; font-size: var(--wb-text-sm); }
.wb-pd__table--platform { min-width: 36rem; }
.wb-pd__table th, .wb-pd__table td { padding: var(--wb-space-3) var(--wb-space-4); border-bottom: 1px solid var(--pd-line); text-align: left; white-space: nowrap; }
.wb-pd__table thead th { background: var(--wb-color-bg-soft); font-size: var(--wb-text-xs); font-weight: var(--wb-fw-semibold); letter-spacing: 0.04em; text-transform: uppercase; color: var(--wb-color-text-muted); padding-block: 0; }
.wb-pd__table thead th:not(:first-child) { text-align: right; }
.wb-pd__table--platform thead th { padding-block: var(--wb-space-3); }
.wb-pd__table tbody tr:last-child > * { border-bottom: 0; }
.wb-pd__table tbody tr:hover { background: var(--wb-color-bg-soft); }
.wb-pd__table tbody th { font-weight: var(--wb-fw-medium); color: var(--wb-color-ink); }
.wb-pd__table td.is-num { text-align: right; color: var(--wb-color-text); }
.wb-pd__table td.is-na { color: var(--wb-color-text-soft); }
.wb-pd__table tr.is-selected { background: var(--wb-color-brand-soft); box-shadow: inset 3px 0 0 var(--wb-navy-600); }
.wb-pd__table--platform tbody th { position: sticky; left: 0; background: inherit; }
.wb-pd__sort { display: inline-flex; align-items: center; gap: var(--wb-space-2); min-height: 44px; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; }
.wb-pd__sort-i { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: 0.3; }
.wb-pd__sort.is-on { color: var(--wb-color-ink); }
.wb-pd__sort.is-on .wb-pd__sort-i { opacity: 1; }
.wb-pd__sort.is-asc .wb-pd__sort-i { border-top: 0; border-bottom: 5px solid currentColor; }
.wb-pd__rowbtn { display: inline-flex; align-items: center; gap: var(--wb-space-3); min-height: 32px; padding: 0; font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; text-align: left; }
.wb-pd__rowbtn:hover { color: var(--wb-navy-500); text-decoration: underline; }
.wb-pd__rank-n { display: inline-block; min-width: 1.5rem; font-size: var(--wb-text-xs); color: var(--wb-color-text-soft); }
.wb-pd__plat { display: inline-block; width: 8px; height: 8px; margin-right: var(--wb-space-2); border-radius: 50%; background: var(--wb-color-text-soft); }
.wb-pd__plat--meta { background: var(--wb-navy-500); }
.wb-pd__plat--google { background: var(--wb-yellow-500); }
.wb-pd__plat--linkedin { background: var(--wb-navy-300); }

.wb-pd__table-tools { display: flex; flex-direction: column; gap: var(--wb-space-3); margin-bottom: var(--wb-space-3); }
.wb-pd__search input { width: 100%; min-height: 44px; padding: 0 var(--wb-space-3); font: inherit; font-size: var(--wb-text-sm); color: var(--wb-color-ink); background: var(--wb-color-surface); border: 1px solid var(--pd-line-strong); border-radius: var(--pd-radius); }
.wb-pd__rank { display: flex; flex-wrap: wrap; gap: var(--wb-space-2); }
.wb-pd__chip { min-height: 36px; padding: 0 var(--wb-space-3); font: inherit; font-size: var(--wb-text-xs); font-weight: var(--wb-fw-medium); color: var(--wb-color-text); background: var(--wb-color-surface); border: 1px solid var(--pd-line-strong); border-radius: var(--wb-radius-full); cursor: pointer; }
.wb-pd__chip.is-on { color: var(--wb-color-white); background: var(--wb-navy-600); border-color: var(--wb-navy-600); }

/* Country + map -------------------------------------------------------------- */
.wb-pd__country-grid { display: grid; gap: var(--wb-space-5); grid-template-columns: minmax(0, 1fr); }
.wb-pd__map { border: 1px solid var(--pd-line); border-radius: var(--pd-radius); padding: var(--wb-space-3); background: var(--wb-color-bg-soft); align-self: start; }
.wb-pd__map svg { display: block; width: 100%; height: auto; }
.wb-pd__map-land { color: var(--wb-color-border-strong); }
.wb-pd__mp { cursor: pointer; outline: none; }
.wb-pd__mp circle { fill: none; stroke: var(--wb-color-text-soft); stroke-width: 1.5; }
.wb-pd__mp.is-active circle { fill: var(--wb-navy-500); fill-opacity: 0.55; stroke: var(--wb-navy-600); }
.wb-pd__mp.is-selected circle { fill: var(--wb-red-500); fill-opacity: 0.6; stroke: var(--wb-red-600); }
.wb-pd__mp:focus-visible circle { stroke-width: 3; stroke: var(--wb-color-focus-ring); }
.wb-pd__mp text { fill: var(--wb-color-text-muted); font-size: 12px; font-weight: 600; font-family: inherit; pointer-events: none; }

/* Insights ------------------------------------------------------------------- */
.wb-pd__insights { display: grid; gap: var(--wb-space-3); grid-template-columns: 1fr; }
.wb-pd__insight { padding: var(--wb-space-4); border: 1px solid var(--pd-line); border-left: 3px solid var(--wb-navy-600); border-radius: var(--pd-radius); background: var(--wb-color-surface); min-width: 0; }
.wb-pd__insight-l { margin: 0 0 var(--wb-space-2); font-size: var(--wb-text-xs); font-weight: var(--wb-fw-semibold); letter-spacing: 0.04em; text-transform: uppercase; color: var(--wb-color-text-muted); }
.wb-pd__insight-v { margin: 0; font-size: var(--wb-text-xl); font-weight: var(--wb-fw-bold); color: var(--wb-color-ink); letter-spacing: -0.01em; }
.wb-pd__insight-v.is-na { color: var(--wb-color-text-soft); font-weight: var(--wb-fw-medium); }
.wb-pd__insight-n { margin: var(--wb-space-1) 0 0; font-size: var(--wb-text-sm); color: var(--wb-color-text-muted); }
.wb-pd__delta { list-style: none; margin: var(--wb-space-3) 0 0; padding: 0; display: grid; gap: var(--wb-space-2); grid-template-columns: 1fr; }
.wb-pd__delta li { display: grid; grid-template-columns: 1fr auto auto; gap: var(--wb-space-3); align-items: baseline; padding: var(--wb-space-2) 0; border-top: 1px solid var(--pd-line-soft, var(--wb-color-border-soft)); font-size: var(--wb-text-sm); }
.wb-pd__delta-l { color: var(--wb-color-text-muted); }
.wb-pd__delta-v { color: var(--wb-color-ink); font-weight: var(--wb-fw-semibold); }
.wb-pd__delta-c { min-width: 4.5rem; text-align: right; font-weight: var(--wb-fw-semibold); color: var(--wb-color-text-muted); }
.wb-pd__delta-c.is-up { color: var(--wb-color-success); }
.wb-pd__delta-c.is-down { color: var(--wb-red-600); }

.wb-pd__method-list { margin: var(--wb-space-3) 0 0; padding-left: 1.1rem; display: grid; gap: var(--wb-space-2); font-size: var(--wb-text-sm); color: var(--wb-color-text-muted); line-height: var(--wb-lh-relaxed); }
.wb-pd__block--method .wb-pd__method { color: var(--wb-color-ink); }

/* Homepage summary (standalone section) ------------------------------------ */
.wb-pd__summary-head { display: flex; flex-direction: column; gap: var(--wb-space-3); margin-bottom: var(--wb-space-6); }
.wb-pd__summary-head .wb-editorial__lead { margin-bottom: 0; }
.wb-pd__textlink { font-size: var(--wb-text-sm); font-weight: var(--wb-fw-semibold); color: var(--wb-color-ink); text-decoration: underline; text-decoration-color: var(--wb-red-500); text-underline-offset: 4px; }
.wb-pd__textlink:hover { color: var(--wb-red-600); }
.wb-pd__scope { margin: 0; font-size: var(--wb-text-xs); color: var(--wb-color-text-muted); }
.wb-pd__summary-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wb-space-3) var(--wb-space-6); margin-top: var(--wb-space-7); }
.wb-pd__summary-cta .wb-btn span { margin-left: var(--wb-space-2); }

/* Inline CTA strips inside the full report --------------------------------- */
.wb-pd__cta-strip {
  display: flex; flex-direction: column; gap: var(--wb-space-4);
  margin-top: var(--wb-space-7);
  padding: var(--wb-space-5);
  border: 1px solid var(--pd-line);
  border-left: 3px solid var(--wb-red-500);
  border-radius: var(--pd-radius);
  background: var(--wb-color-bg-soft);
}
.wb-pd__cta-text { margin: 0; font-size: var(--wb-text-base); color: var(--wb-color-text); line-height: var(--wb-lh-relaxed); }
.wb-pd__cta-text strong { color: var(--wb-color-ink); }
.wb-pd__cta-actions { display: flex; flex-wrap: wrap; gap: var(--wb-space-3); }
.wb-pd__cta-strip--ink { background: var(--wb-navy-900); border-color: var(--wb-navy-800); border-left-color: var(--wb-yellow-400); }
.wb-pd__cta-strip--ink .wb-pd__cta-text { color: var(--wb-navy-100); }
.wb-pd__cta-strip--ink .wb-pd__cta-text strong { color: var(--wb-color-white); }

/* Report page: intro bar, audit form, sticky bar --------------------------- */
.wb-pr-intro { border-bottom: 1px solid var(--wb-color-border); background: var(--wb-color-bg); }
.wb-pr-intro__inner { display: flex; flex-direction: column; gap: var(--wb-space-4); padding-block: var(--wb-space-5); }
.wb-pr-intro__actions { display: flex; flex-wrap: wrap; gap: var(--wb-space-3); }
.wb-pr-intro__points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--wb-space-2) var(--wb-space-5); font-size: var(--wb-text-sm); color: var(--wb-color-text-muted); }
.wb-pr-intro__points li { display: inline-flex; align-items: center; gap: var(--wb-space-2); }
.wb-pr-intro__points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--wb-color-success); }

.wb-pr-audit { scroll-margin-top: 96px; }
.wb-pd--full { scroll-margin-top: 96px; }
.wb-pr-audit__grid { display: grid; gap: var(--wb-space-7); grid-template-columns: minmax(0, 1fr); align-items: start; }
.wb-pr-audit__lead { margin: var(--wb-space-3) 0 var(--wb-space-5); font-size: var(--wb-text-lg); line-height: var(--wb-lh-relaxed); color: var(--wb-color-text-muted); }
.wb-pr-audit__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--wb-space-3); }
.wb-pr-audit__list li { position: relative; padding-left: 1.75rem; color: var(--wb-color-text); line-height: var(--wb-lh-normal); }
.wb-pr-audit__list li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 1rem; height: 0.55rem; border-left: 2px solid var(--wb-red-500); border-bottom: 2px solid var(--wb-red-500); transform: rotate(-45deg); }
.wb-pr-audit__alt { margin: var(--wb-space-5) 0 0; font-size: var(--wb-text-sm); color: var(--wb-color-text-muted); }
.wb-pr-audit__alt a { font-weight: var(--wb-fw-semibold); color: var(--wb-color-ink); }
.wb-pr-audit__form { padding: var(--wb-space-6); border: 1px solid var(--wb-color-border); border-top: 3px solid var(--wb-red-500); border-radius: var(--wb-radius-md); background: var(--wb-color-surface); box-shadow: var(--wb-shadow-md); }
.wb-pr-audit__form-title { margin: 0 0 var(--wb-space-4); font-size: var(--wb-text-xl); font-weight: var(--wb-fw-bold); color: var(--wb-color-ink); }

.wb-pr-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--wb-z-sticky);
  display: flex; gap: var(--wb-space-2); align-items: center;
  padding: var(--wb-space-3) var(--wb-space-4) calc(var(--wb-space-3) + env(safe-area-inset-bottom));
  background: var(--wb-navy-900);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform var(--wb-duration-base) var(--wb-ease);
}
.wb-pr-sticky.is-hidden { transform: translateY(110%); }
.wb-pr-sticky__call { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, 0.26); border-radius: var(--wb-radius-md); color: var(--wb-yellow-400); }
.wb-pr-sticky__call svg { width: 20px; height: 20px; }
.page-template-template-performance-report .wb-site-footer { padding-bottom: 80px; }

/* Full report — same surface language as the homepage visuals --------------
 * Panels use the homepage card radius and soft shadow; block headings use the
 * editorial title type with the red-to-yellow rule. */
.wb-pd--full { --pd-radius: var(--wb-radius-lg); }
.wb-pd--full .wb-pd__filters,
.wb-pd--full .wb-pd__chart,
.wb-pd--full .wb-pd__table-wrap,
.wb-pd--full .wb-pd__map,
.wb-pd--full .wb-pd__insight {
  border-radius: var(--wb-radius-xl);
  box-shadow: var(--wb-shadow-sm);
}
.wb-pd--full .wb-pd__filters { background: var(--wb-color-surface); padding: var(--wb-space-5); }
.wb-pd--full .wb-pd__chart { padding: var(--wb-space-5); }
.wb-pd--full .wb-pd__insight { border-left-width: 1px; padding: var(--wb-space-5); }
.wb-pd--full .wb-pd__insight::before { content: ""; display: block; width: 26px; height: 2px; margin-bottom: var(--wb-space-3); border-radius: 2px; background: var(--wb-gradient-brand); }
.wb-pd--full .wb-pd__cta-strip { border-radius: var(--wb-radius-xl); }
.wb-pd__h3 { font-size: var(--wb-h3); letter-spacing: -0.03em; line-height: 1.15; }
.wb-pd--full .wb-pd__block { padding-top: var(--wb-space-8); }
.wb-pd--full .wb-pd__block + .wb-pd__block { margin-top: var(--wb-space-6); border-top: 0; }
.wb-pd--full .wb-pd__h3::before { content: ""; display: block; width: 26px; height: 2px; margin-bottom: var(--wb-space-4); border-radius: 2px; background: var(--wb-gradient-brand); }

/* Tablet -------------------------------------------------------------------- */
@media (min-width: 640px) {
  .wb-pd__filters-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb-pd__metric-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wb-pd__metric-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb-pd__insights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wb-pd__insight--wide { grid-column: 1 / -1; }
  .wb-pd__delta { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--wb-space-6); }
  .wb-pd__table-tools { flex-direction: row; align-items: center; justify-content: space-between; }
  .wb-pd__search { flex: 1 1 16rem; max-width: 22rem; }
  .wb-pd__filters-meta { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .wb-pd__cta-strip { flex-direction: row; align-items: center; justify-content: space-between; }
  .wb-pd__cta-text { max-width: 44rem; }
  .wb-pr-intro__inner { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
}

/* Desktop ------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .wb-pd__filters-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .wb-pd__dates { grid-column: 1 / -1; max-width: 26rem; }
  .wb-pd__metric-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .wb-pd__metric-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wb-pd__trend-controls { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .wb-pd__tabs { border-bottom: 0; }
  .wb-pd__country-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .wb-pd__insights { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wb-pd__table { min-width: 0; }
  .wb-pd__summary-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--wb-space-8); }
  .wb-pd__metrics--primary .wb-pd__metric + .wb-pd__metric { padding-left: var(--wb-space-5); border-left: 1px solid var(--pd-line); }
  .wb-pd__metrics--secondary .wb-pd__metric:not(:nth-child(4n+1)) { padding-left: var(--wb-space-5); }
  .wb-pd__scope { text-align: right; max-width: 22rem; }
  .wb-pr-audit__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); gap: var(--wb-space-10); }
  .wb-pr-sticky { display: none; }
  .page-template-template-performance-report .wb-site-footer { padding-bottom: 0; }
}

/* Phones: filters become one horizontally scrollable strip ----------------- */
@media (max-width: 639px) {
  .wb-pd__filters-row {
    display: flex; gap: var(--wb-space-3);
    overflow-x: auto; padding-bottom: var(--wb-space-3);
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  }
  .wb-pd__filters-row > .wb-pd__field { flex: 0 0 72%; scroll-snap-align: start; }
  /* the open menu must escape the scroller, so anchor it to the viewport width */
  .wb-pd__ms.is-open .wb-pd__ms-pop { position: fixed; left: var(--wb-space-4); right: var(--wb-space-4); top: auto; bottom: var(--wb-space-4); max-height: 70vh; z-index: var(--wb-z-modal); }
  .wb-pd__ms-list { max-height: 45vh; }
  .wb-pd__ctl, .wb-pd__ms-search, .wb-pd__search input { font-size: 16px; } /* prevents iOS zoom on focus */
  .wb-pd__filters-actions { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  .wb-pr-sticky { transition: none; }
  .wb-pd * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .wb-pd__filters, .wb-pd__trend-controls, .wb-pd__cta-strip, .wb-pr-sticky, .wb-pr-intro { display: none; }
}
