/* Public startup repository: [aifg_startup_repository]. Inherits the theme's font; scoped to .aifg-repo. */
.aifg-repo {
  --repo-ink: #16181d;
  --repo-muted: #5f6573;
  --repo-line: #e3e5eb;
  --repo-soft: #f5f6f9;
  --repo-accent: #5b3fd1;
  --repo-accent-soft: #ece8fc;
  --repo-accent-strong: #3f27a8;
  color: var(--repo-ink);
  margin: 0 auto;
  max-width: 1100px;
  line-height: 1.5;
}
.aifg-repo *, .aifg-repo *::before, .aifg-repo *::after { box-sizing: border-box; }
.aifg-repo .repo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Search */
.aifg-repo .repo-search { background: var(--repo-soft); border: 1px solid var(--repo-line); border-radius: 14px; padding: 16px; display: grid; gap: 10px; margin: 0 0 18px; }
.aifg-repo .repo-search-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.aifg-repo .repo-input { min-width: 0; min-height: 46px; border: 1px solid var(--repo-line); border-radius: 10px; padding: 8px 14px; background: #fff; color: var(--repo-ink); font: inherit; font-size: 16px; margin: 0; max-width: 100%; box-shadow: none; }
.aifg-repo select.repo-input { height: 46px; }
.aifg-repo .repo-q { flex: 1 1 320px; }
.aifg-repo .repo-input:focus { outline: 2px solid var(--repo-accent); outline-offset: 1px; border-color: var(--repo-accent); }
.aifg-repo .repo-btn { min-height: 46px; border: 0; border-radius: 10px; padding: 0 22px; background: #000; color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; letter-spacing: normal; text-transform: none; }
.aifg-repo .repo-btn:hover, .aifg-repo .repo-btn:focus { background: #333; color: #fff; }
.aifg-repo .repo-btn:focus-visible, .aifg-repo a:focus-visible, .aifg-repo summary:focus-visible { outline: 2px solid var(--repo-accent); outline-offset: 2px; }
/* Filter fields + searchable comboboxes (repository.js) */
.aifg-repo .repo-filters { align-items: flex-end; }
.aifg-repo .repo-field { flex: 1 1 220px; min-width: 0; max-width: 360px; display: grid; gap: 4px; }
.aifg-repo .repo-field .repo-input { width: 100%; max-width: none; }
.aifg-repo .repo-label { font-size: 13px; font-weight: 600; color: var(--repo-muted); }
.aifg-repo .repo-combo { position: relative; }
.aifg-repo .repo-combo-input { width: 100%; padding-right: 64px; cursor: pointer; text-overflow: ellipsis; }
.aifg-repo .repo-combo-input:focus { cursor: text; }
.aifg-repo .repo-combo.is-set .repo-combo-input { border-color: var(--repo-accent); background: var(--repo-accent-soft); font-weight: 600; }
.aifg-repo .repo-combo-toggle, .aifg-repo .repo-combo-clear { position: absolute; top: 0; bottom: 0; border: 0; background: transparent; padding: 0; margin: 0; cursor: pointer; color: var(--repo-muted); min-height: 0; box-shadow: none; }
.aifg-repo .repo-combo-toggle { right: 0; width: 38px; }
.aifg-repo .repo-combo-toggle::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -6px 0 0 -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.aifg-repo .repo-combo.is-open .repo-combo-toggle::before { transform: rotate(-135deg); margin-top: -2px; }
.aifg-repo .repo-combo-clear { right: 34px; width: 28px; font-size: 22px; line-height: 1; color: var(--repo-accent-strong); }
.aifg-repo .repo-combo-clear:hover { color: var(--repo-ink); }
.aifg-repo .repo-combo-list { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--repo-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, .14); max-height: 320px; overflow-y: auto; min-width: 260px; }
.aifg-repo .repo-combo-option { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 15px; line-height: 1.35; margin: 0; }
.aifg-repo .repo-combo-option.is-active { background: var(--repo-soft); }
.aifg-repo .repo-combo-option[aria-selected="true"] { color: var(--repo-accent-strong); font-weight: 600; }
.aifg-repo .repo-combo-option[aria-selected="true"]::before { content: "✓"; margin-right: -4px; order: -1; }
.aifg-repo .repo-combo-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.aifg-repo .repo-combo-text mark { background: #fff1a8; color: inherit; padding: 0; border-radius: 2px; }
.aifg-repo .repo-combo-count { flex: none; font-size: 13px; color: var(--repo-muted); font-variant-numeric: tabular-nums; font-weight: 400; }
.aifg-repo .repo-combo-empty { padding: 10px; color: var(--repo-muted); font-size: 15px; margin: 0; }
.aifg-repo .repo-combo.is-loading { opacity: .6; pointer-events: none; }
.aifg-repo .repo-reset { color: var(--repo-accent); font-size: 15px; text-decoration: underline; }
.aifg-repo .repo-count { color: var(--repo-muted); font-size: 15px; margin: 0 0 14px; }

/* Cards */
.aifg-repo .repo-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.aifg-repo .repo-card { background: #fff; border: 1px solid var(--repo-line); border-radius: 14px; padding: 20px 22px; min-width: 0; display: flex; flex-direction: column; }
.aifg-repo .repo-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.aifg-repo .repo-card-title { font-size: 20px; line-height: 1.3; margin: 0; padding: 0; font-weight: 600; color: var(--repo-ink); overflow-wrap: anywhere; letter-spacing: normal; text-transform: none; }
.aifg-repo .repo-pill { flex: none; background: var(--repo-accent-soft); color: var(--repo-accent-strong); border-radius: 99px; padding: 3px 10px; font-size: 13px; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.aifg-repo .repo-meta { color: var(--repo-muted); font-size: 14px; margin: 4px 0 0; }
.aifg-repo .repo-logo { margin: 0 0 12px; height: 56px; display: flex; align-items: center; }
.aifg-repo .repo-logo a { display: flex; height: 100%; align-items: center; }
.aifg-repo .repo-logo img.repo-logo-img { max-height: 56px; max-width: 180px; width: auto; height: auto; object-fit: contain; }
.aifg-repo .repo-card-title a { color: inherit; text-decoration: none; }
.aifg-repo .repo-card-title a:hover, .aifg-repo .repo-card-title a:focus-visible { color: var(--repo-accent); text-decoration: underline; }.aifg-repo .repo-solution { margin: 12px 0 0; font-size: 16px; overflow-wrap: anywhere; }

/* Equal-height cards: the profile link sits at the bottom of every card */
.aifg-repo .repo-solution { margin-bottom: 14px; }
.aifg-repo .repo-details { margin-top: auto; border-top: 1px solid var(--repo-line); padding-top: 10px; }
.aifg-repo .repo-meta + .repo-details { margin-top: auto; }
.aifg-repo .repo-details summary { cursor: pointer; color: var(--repo-accent); font-weight: 600; font-size: 15px; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.aifg-repo .repo-details summary::-webkit-details-marker { display: none; }
.aifg-repo .repo-details summary::after { content: "▾"; font-size: 12px; transition: transform .15s; }
.aifg-repo .repo-details[open] summary::after { transform: rotate(180deg); }
.aifg-repo .repo-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 14px 0 0; }
.aifg-repo .repo-facts dt { font-size: 13px; color: var(--repo-muted); margin: 0; font-weight: 400; }
.aifg-repo .repo-facts dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.aifg-repo .repo-facts a, .aifg-repo .repo-answer a { color: var(--repo-accent); }
.aifg-repo .repo-answer { background: var(--repo-soft); border-radius: 10px; padding: 12px 14px; margin-top: 12px; }
.aifg-repo .repo-answer h4 { font-size: 14px; margin: 0 0 4px; padding: 0; font-weight: 600; color: var(--repo-ink); letter-spacing: normal; text-transform: none; }
.aifg-repo .repo-answer p { margin: 0; font-size: 15px; overflow-wrap: anywhere; }

/* Pagination */
.aifg-repo .repo-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 26px 0 8px; }
.aifg-repo .repo-page { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--repo-line); border-radius: 10px; color: var(--repo-ink); text-decoration: none; font-size: 15px; background: #fff; }
.aifg-repo a.repo-page:hover { border-color: var(--repo-accent); color: var(--repo-accent); }
.aifg-repo .repo-page.is-current { background: var(--repo-accent); border-color: var(--repo-accent); color: #fff; font-weight: 600; }
.aifg-repo .repo-gap { align-self: center; color: var(--repo-muted); padding: 0 4px; }

@media (max-width: 760px) {
  .aifg-repo .repo-list, .aifg-repo .repo-facts { grid-template-columns: minmax(0, 1fr); }
  .aifg-repo .repo-card { padding: 16px; }
  .aifg-repo .repo-search { padding: 12px; }
  .aifg-repo .repo-input, .aifg-repo select.repo-input { width: 100%; max-width: 100%; flex: 1 1 100%; }
  .aifg-repo .repo-field { flex: 1 1 100%; max-width: none; }
  .aifg-repo .repo-btn { flex: 1 1 100%; }
}
