/* Growth > Project first screen only. Existing search/filter and detail behavior is untouched. */
@media screen {
  .sg-growth-search-projects.sg-project-first-layout > .sg-growth-search-index {
    padding: 8px; border-radius: 8px; min-width: 0;
  }
  .sg-growth-search-projects.sg-project-first-layout .sg-growth-search-label {
    display: flex; flex-direction: column; gap: 3px; margin: 0; font-weight: 600;
  }
  .sg-growth-search-projects.sg-project-first-layout .sg-growth-search-label :is(input, select),
  .sg-project-first-layout .sg-growth-search-label,
  .sg-project-first-layout .sg-project-result-panel :is(h2, p, button) {
    font-size: 13px; line-height: 1.35;
  }
  .sg-project-first-layout .sg-growth-search-label input {
    width: 100%; min-width: 0; box-sizing: border-box; min-height: 30px; padding: 4px 6px; font-weight: 400;
  }
  .sg-project-first-layout .sg-growth-project-right { min-width: 0; }
  .sg-project-first-layout .sg-project-result-panel {
    margin: 0; min-width: 0; border: 1px solid #e0e6ee; border-radius: 8px; padding: 8px; background: #fff;
  }
  .sg-project-first-layout .sg-project-result-panel + section { margin-top: 12px; }
  .sg-project-first-layout .sg-project-result-panel h2 { font-weight: 600; margin: 0 0 6px; }
  .sg-project-first-layout .sg-project-result-panel p { margin: 4px 0; }
  .sg-project-first-layout .sg-project-result-list { min-width: 0; list-style: none; margin: 0; padding: 0; }
  .sg-project-first-layout .sg-project-result-list > li + li { margin-top: 4px; }
  .sg-project-first-layout .sg-project-result-list button {
    width: 100%; min-height: 30px; padding: 4px 6px; text-align: start; white-space: normal; overflow-wrap: anywhere;
  }
  .sg-project-first-layout .sg-project-result-list button[aria-pressed="true"] { font-weight: 600; border-color: #5375a1; }
  .sg-project-first-layout .sg-project-result-list:focus-visible { outline: 2px solid #315d92; outline-offset: -2px; }
}
@media screen and (min-width:1051px) and (min-height:701px) {
  .sg-project-first-layout .sg-project-result-list { max-height: min(32dvh, 20rem); overflow-y: auto; }
}
@media screen and (max-width:700px) {
  .sg-project-first-layout .sg-project-result-list button { min-height: 40px; }
}

