/* Shared Education/Event list-sort appearance, scoped to the two other growth lists. */
#root :is(.sg-project-page-v1 .sg-project-list-area .sg-project-work-table th,.sg-promo-screen .sg-promo-results-panel .sg-promo-column-sort) > button.list-sort-heading {
 appearance:none;display:inline-flex;position:relative;align-items:center;justify-content:center;gap:6px;
 min-height:0;margin:0;padding:0;border:0!important;border-radius:3px;background:transparent!important;
 box-shadow:none!important;color:inherit;font:inherit;white-space:nowrap;cursor:pointer;
}
#root :is(.sg-project-page-v1 .sg-project-list-area .sg-project-work-table th,.sg-promo-screen .sg-promo-results-panel .sg-promo-column-sort) > button.list-sort-heading > span {
 display:inline-block;position:absolute;left:calc(100% + 6px);margin:0;flex:none;width:12px;
 font-size:13px!important;line-height:1;text-align:center;color:#678a96;
}
#root :is(.sg-project-page-v1 .sg-project-list-area .sg-project-work-table th,.sg-promo-screen .sg-promo-results-panel .sg-promo-column-sort) > button.list-sort-heading:hover {background:transparent;color:#007b83}
#root :is(.sg-project-page-v1 .sg-project-list-area .sg-project-work-table th,.sg-promo-screen .sg-promo-results-panel .sg-promo-column-sort) > button.list-sort-heading:focus-visible {outline:2px solid #087f8c;outline-offset:3px}
#root :is(.sg-project-page-v1 .sg-project-list-area .sg-project-work-table th,.sg-promo-screen .sg-promo-results-panel .sg-promo-column-sort):is([aria-sort="ascending"],[aria-sort="descending"]) > button.list-sort-heading {color:#006d77}
#root .sg-project-page-v1 .sg-project-search-criteria {margin-block-start:8px}

/* Reuse the Education/Event outer panel and inner list frame dimensions. */
@media screen and (min-width:761px) {
 #root :is(.sg-project-page-v1 .sg-project-list-area,.sg-promo-screen .sg-promo-results-panel) {
  box-sizing:border-box;min-width:0;background:#fff!important;border:1px solid #dce5ed!important;
  border-radius:9px!important;box-shadow:none!important;padding:10px!important;
 }
 #root :is(.sg-project-page-v1 .sg-project-list-area .sg-project-results-viewport,.sg-promo-screen .sg-promo-results-panel>.sg-growth-list-frame) {
  box-sizing:border-box;min-width:0;max-width:100%;border:1px solid #d5e3e7!important;
  border-radius:6px!important;isolation:isolate;margin-top:6px;
 }
 #root .sg-promo-screen .sg-promo-results-panel>.sg-growth-list-frame{overflow:hidden}
 #root .sg-promo-screen .sg-growth-list-frame>.sg-promo-column-head{
  display:block;overflow:hidden;scrollbar-gutter:stable;background:#f8fafc;border-bottom:1px solid #c7dadd;color:#234658
 }
 #root .sg-promo-screen .sg-growth-list-frame>.sg-promo-list-results{scrollbar-gutter:stable}
 #root .sg-project-page-v1 .sg-project-list-area .sg-project-work-table>thead>tr>th{background:#f8fafc;color:#234658;border-block-end:1px solid #c7dadd}
}
@media screen and (max-width:760px) {
 #root .sg-promo-screen .sg-growth-list-frame>.sg-promo-column-head{display:none}
}

@media screen {
 #root .sg-promo-compact .sg-growth-list-frame>.sg-promo-list-results{max-height:none;overflow-y:auto;overscroll-behavior-y:contain;scroll-padding-block:8px}
 #root .sg-promo-compact .sg-growth-list-frame>.sg-promo-list-results:has(>li:nth-child(6)),
 #root .sg-promo-compact .sg-promo-first-screen-right:has(>.sg-promo-detail) .sg-growth-list-frame>.sg-promo-list-results{max-height:min(270px,40dvh)}
}
@media screen and (max-width:700px) {
 #root .sg-promo-compact .sg-growth-list-frame>.sg-promo-list-results:has(>li:nth-child(6)){max-height:min(300px,40dvh)}
 #root .sg-promo-compact .sg-promo-first-screen-right:has(>.sg-promo-detail) .sg-growth-list-frame>.sg-promo-list-results{max-height:min(260px,32dvh)}
}

/* PC details span both index columns, like Project. Mobile keeps the same flow. */
@media screen and (min-width:761px) {
 #root .sg-promo-screen .sg-promo-workspace[data-edit="yes"]>.sg-promo-first-screen-right{display:contents}
 #root .sg-promo-screen .sg-promo-workspace[data-edit="yes"]>.sg-promo-index{grid-column:1;grid-row:1;align-self:start}
 #root .sg-promo-screen .sg-promo-workspace[data-edit="yes"]>.sg-promo-first-screen-right>.sg-promo-results-panel{grid-column:2;grid-row:1;min-width:0;align-self:start}
 #root .sg-promo-screen .sg-promo-workspace[data-edit="yes"]>.sg-promo-first-screen-right>.sg-promo-detail{grid-column:1/-1;grid-row:2;width:auto;min-width:0;max-width:none;margin-inline:0}
}
