/* SS-326: the agreed pilot's Founder Graph controls, scoped to trend Search. */
.pd-search-chart [data-search-chart] .search-controls{display:flex;gap:12px;margin:14px 0 12px;align-items:center;flex-wrap:wrap}
.pd-search-chart .search-group-tabs{display:flex;flex:0 0 auto;width:max-content;max-width:100%;margin:0;padding:4px;gap:4px;background:#fff;border:1px solid #DEDFE7;border-radius:999px;box-shadow:none}
.pd-search-chart .search-controls [data-search-group]{appearance:none;background:none;border:none;color:#5d5866;font:500 13.5px 'Instrument Sans',system-ui,sans-serif;padding:8px 18px;border-radius:999px;cursor:pointer;white-space:nowrap;flex:0 0 auto;min-height:0;box-shadow:none;text-decoration:none;transition:background .14s ease,color .14s ease}
.pd-search-chart .search-controls [data-search-group]:hover{background:#F2EFF4;color:#18191e}
.pd-search-chart .search-controls [data-search-group][aria-pressed=true]{background:#191721;color:#FCFBFA;font-weight:600}
.trend-source-chart .word-select{position:relative;flex-direction:row;align-items:center;gap:8px;flex:0 0 auto;max-width:100%;border:0;background:transparent;border-radius:0;color:var(--chart-accent);font:400 14px/1.5 var(--pd-font-body);min-height:48px;padding:0}
.trend-source-chart .choice-text{display:block;color:var(--chart-accent);text-decoration:underline;text-underline-offset:3px;white-space:nowrap;border:0;background:transparent}
.trend-source-chart .choice-arrow{width:12px;height:12px;flex:none;stroke:currentColor;fill:none;stroke-width:1.6}
.trend-source-chart .word-select select{position:absolute;inset:0;width:100%;height:100%;min-height:0;opacity:0;margin:0;padding:0;border:0;background:transparent;cursor:pointer}
.trend-source-chart .word-select:focus-within .choice-text{outline:2px solid var(--chart-accent);outline-offset:4px}
.pd-search-chart [data-search-chart] .search-overlap{color:var(--chart-muted);font:400 12px/1.5 'Instrument Sans',Arial,sans-serif;margin:10px 0 0}
.pd-search-chart.pd-big-chart [data-search-chart] .legend-item.unavailable{opacity:1;text-decoration:none;cursor:default}
.pd-search-chart [data-search-chart] .legend-item small{display:block;font:400 10px/1.4 'Instrument Sans',Arial,sans-serif;color:var(--chart-muted)}
.pd-search-chart [data-search-chart] .chart-legend:not(.expanded) .extra{display:none}
/* Company embeds can load the shared chart sheet after this one. */
.pd-search-chart.pd-big-chart [data-search-chart] button.more-legend{display:block}
.trend-source-chart .source-choice{display:none}
/* The desktop pilot treatment; phones use the unchanged pre-v516 source tabs
   in payday-big-chart.css, including their horizontal scroll and tap targets. */
@media(min-width:761px){
.pd-big-chart.pd-search-chart .trend-source-pills{display:inline-flex;gap:4px;padding:4px;background:#fff;border:1px solid #DEDFE7;border-radius:999px;width:max-content;max-width:100%;justify-content:flex-start;flex:0 0 auto;align-self:flex-start}
.pd-big-chart.pd-search-chart .trend-source-pills .source-tab{min-height:0;height:auto;padding:0;margin:0;border:0;background:none}
.pd-big-chart.pd-search-chart .trend-source-pills .source-tab .source-label{border:0;padding:8px 18px;border-radius:999px;font:500 13.5px/1.2 'Instrument Sans',system-ui,sans-serif;color:#5d5866;background:none;transition:background .14s ease,color .14s ease}
.pd-big-chart.pd-search-chart .trend-source-pills :is(.source-tab[aria-selected=true],.source-only) .source-label{background:#191721;color:#FCFBFA;font-weight:600}
.pd-big-chart.pd-search-chart .trend-source-pills .source-tab:not([aria-selected=true]):not(.source-only):hover .source-label{background:#F2EFF4;color:#191721}
}
.pd-search-chart [data-search-chart] .chart-metric.latest .chart-meta{white-space:normal;overflow-wrap:anywhere}
@media(max-width:760px){
 .pd-search-chart .search-group-tabs{display:flex;flex-wrap:wrap;width:auto;border-radius:24px}
 .pd-search-chart [data-search-chart] .search-overlap{font-size:10px}
 .pd-search-chart [data-search-chart] .search-controls{flex-wrap:nowrap;gap:24px;margin:8px 0 12px}
 .trend-source-chart .trend-chart-caption>.source-choice{margin:8px 0 12px}
}

/* Search is a heading, with no source chooser at either width. */
.pd-big-chart .chart-source-name{font:600 14px/1.5 var(--pd-font-body);color:var(--chart-ink);margin:12px 0 0}

@media(max-width:600px){
 html body .search-group-tabs:has([data-search-group]){display:flex;flex-wrap:nowrap!important;gap:8px;width:100%!important;max-width:100%;min-width:0;box-sizing:border-box;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none;overscroll-behavior-x:contain;background:none;border:0;border-radius:0;padding:2px 0}
 html body .search-group-tabs:has([data-search-group])::-webkit-scrollbar{display:none}
 html body .search-group-tabs.search-group-tabs [data-search-group]{flex:0 0 auto;display:inline-flex;align-items:center;min-height:44px;padding:0 14px!important;border:1px solid var(--pd-line)!important;border-radius:999px!important;background:var(--pd-surface-raised)!important;color:var(--pd-ink);font:500 14px/1 var(--pd-font-body);white-space:nowrap}
 html:root body:not(.pd-oauth) .search-group-tabs.search-group-tabs.search-group-tabs [data-search-group][aria-pressed=true]{--pd-focus-tint:#191721;--pd-hover-text:#fff;--pd-focus-radius:999px;background:#191721!important;border-color:#191721!important;color:#fff!important}
}
@media(max-width:600px){html:root body:not(.pd-oauth) .search-group-tabs.search-group-tabs.search-group-tabs [data-search-group][aria-pressed=true]:focus-visible{border-color:#426bdd!important}}
