/* Continuous Integrations — gallery styles.
   Fully scoped under .ci-wrap so nothing leaks into the theme.
   Fonts + primary text colors are INHERITED from the theme; accents use the
   theme's own tokens (var) with matched fallbacks so it's always on-brand. */

.ci-wrap {
  --ci-sapphire: var(--tw-color-sapphire, #0F4BBD);
  --ci-line:     var(--tw-color-black-pearl-10, #E6E7E9);
  --ci-muted:    var(--tw-color-black-pearl-60, #677079);
  --ci-faint:    var(--tw-color-black-pearl-40, #99A0A5);
  --ci-iceberg:  var(--tw-color-iceberg, #E3F1FD);
  --ci-sky:      var(--tw-color-sky-60, #BCDEFB);
  --ci-corner:   12px 0 12px 0;           /* theme's signature asymmetric corner */
  width: 100%;
  max-width: 1200px;
  padding-inline: 24px;
  padding-bottom: 80px;
  margin-inline: auto;
  background: #fff;
  color: inherit;
  font: inherit;
}
@media (max-width: 720px) {
  .ci-wrap { padding-bottom: 48px; }
}
.ci-wrap *, .ci-wrap *::before, .ci-wrap *::after { box-sizing: border-box; }

/* section headings */
.ci-wrap .sectlabel { font: inherit; font-size: 22px; font-weight: 800; color: inherit; margin: 22px 0 14px; display: flex; align-items: center; gap: 14px; }
.ci-wrap .sectlabel:first-child { margin-top: 0; }
.ci-wrap .sectlabel::after { content: ""; flex: 1; height: 1px; background: var(--ci-line); }

/* controls */
.ci-wrap .controls { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); padding: 10px 0 8px; margin: 4px 0; }
.ci-wrap .searchrow { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ci-wrap .search { flex: 1 1 220px; max-width: 280px; min-width: 180px; position: relative; }
.ci-wrap .search input { width: 100%; padding: 12px 14px 12px 40px; border: 1px solid var(--ci-line); border-radius: var(--ci-corner); font: inherit; font-size: 15px; background: #fff; color: inherit; }
.ci-wrap .search input:focus { outline: none; border-color: var(--ci-sapphire); box-shadow: 0 0 0 3px var(--ci-iceberg); }
.ci-wrap .search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ci-faint); }
/* With the category dropdown gone the search box takes the freed space; whatever
   filter control is still present gets pushed to the right edge of the row. */
.ci-wrap .searchrow.no-catfilter .search { flex: 1 1 auto; max-width: none; }
.ci-wrap .searchrow.no-catfilter #prod { margin-left: auto; }
.ci-wrap .searchrow.no-prodfilter #cats { margin-left: auto; }
.ci-wrap .seg { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.ci-wrap .seg button { border: 1px solid var(--ci-line); border-radius: var(--ci-corner); background: #fff; color: inherit; text-transform: uppercase; letter-spacing: .04em; font: inherit; font-size: 12px; font-weight: 600; padding: 9px 16px; cursor: pointer; transition: all .3s ease; }
.ci-wrap .seg button.on { background: var(--ci-sapphire); border-color: var(--ci-sapphire); color: #fff; }
.ci-wrap .filterline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ci-wrap .flabel { font: inherit; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ci-faint); font-weight: 600; margin-right: 2px; }
.ci-wrap .catselect { border: 1px solid var(--ci-line); border-radius: var(--ci-corner); background: #fff; color: inherit; font: inherit; font-size: 13px; padding: 8px 12px; cursor: pointer; min-width: 200px; }
.ci-wrap .catselect:focus { outline: none; border-color: var(--ci-sapphire); box-shadow: 0 0 0 3px var(--ci-iceberg); }

/* Core Banking hero: thirds layout. Column count is driven by data (each
   vendor's Core Banking hero-order term meta), never hardcoded — 1, 2, or
   3+ hero columns all work the same way, plus exactly one trailing
   "everyone else" column that absorbs any vendor without an order set. */
.ci-wrap .ci-hero { display: flex; align-items: stretch; }
.ci-wrap .herocol { flex: 1 1 0; min-width: 0; border-right: 1px solid var(--ci-line); padding: 18px 16px; }
.ci-wrap .herocol:last-child { border-right: none; }
.ci-wrap .herocol-head { display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.ci-wrap .herocol-chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 10px; }

.ci-wrap .herocol--rest { padding: 18px 16px; }
.ci-wrap .herorest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.ci-wrap .herotile { border: 1px solid var(--ci-line); border-radius: var(--ci-corner); padding: 10px; }
.ci-wrap .herotile-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin-bottom: 8px; }
.ci-wrap .herotile-name { font: inherit; font-size: 12px; font-weight: 700; overflow-wrap: break-word; }
.ci-wrap .herotile-chips { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }

.ci-wrap .herochip { font: inherit; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #F1F4F8; color: var(--ci-muted); white-space: normal; word-break: break-word; }

@media (max-width: 900px) {
  .ci-wrap .ci-hero { flex-direction: column; }
  .ci-wrap .herocol { width: 100%; border-right: none; border-bottom: 1px solid var(--ci-line); }
  .ci-wrap .herocol:last-child { border-bottom: none; }
}

.ci-wrap .pill { font: inherit; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.ci-wrap .pill.cat { background: #F1F4F8; color: var(--ci-muted); }
.ci-wrap a.prod { font: inherit; font-weight: 700; font-size: 11px; padding: 3px 8px; border-radius: 6px; background: var(--ci-iceberg); color: var(--ci-sapphire); white-space: nowrap; text-decoration: none; cursor: pointer; }
.ci-wrap a.prod.opcon { background: #E7F0E9; color: #2E7D46; }
.ci-wrap a.prod.enc { background: #EFE9F7; color: #6D3FA0; }
.ci-wrap .foot { border-top: 1px solid var(--ci-line); padding-top: 12px; margin-top: auto; }
.ci-wrap .learn { font: inherit; font-size: 13px; font-weight: 600; color: var(--ci-sapphire); text-decoration: none; position: relative; display: inline-block; }
.ci-wrap .learn::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: currentColor; transition: width .3s ease; }
.ci-wrap .learn:hover::after { width: 100%; }

/* logos (fallback = colored name tile) */
.ci-wrap .vlogo, .ci-wrap .rlogo { flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font: inherit; font-weight: 700; border-radius: 10px; }
.ci-wrap .vlogo { width: 44px; height: 44px; font-size: 15px; }
.ci-wrap .rlogo { width: 40px; height: 32px; font-size: 11px; }
.ci-wrap .vlogo.haslogo, .ci-wrap .rlogo.haslogo { background: #fff; border: 1px solid var(--ci-line); border-radius: 8px; overflow: hidden; padding: 6px; }
.ci-wrap .vlogo.haslogo { width: 120px; height: 48px; }
.ci-wrap .herotile .vlogo.haslogo { width: 76px; height: 30px; padding: 0; border: none; background: transparent; }
.ci-wrap .herotile .vlogo:not(.haslogo) { width: 34px; height: 34px; font-size: 12px; }
.ci-wrap .vlogo--lg.haslogo { width: 240px; height: 96px; border: none; background: transparent; padding: 0; }
.ci-wrap .vlogo--lg:not(.haslogo) { width: 88px; height: 88px; font-size: 30px; }
.ci-wrap .rlogo.haslogo { width: 52px; height: 32px; padding: 2px; }
/* width/height 100% (not auto) is required so object-fit:contain has a box to
   scale the image INTO -- with auto sizing, a wide/short logo can render at
   its intrinsic size and get clipped by the parent's overflow:hidden instead
   of shrinking to fit. */
.ci-wrap .vlogo.haslogo img, .ci-wrap .rlogo.haslogo img { width: 100%; height: 100%; object-fit: contain; }
/* Cap how tall a big hero logo can render, independent of its own aspect
   ratio -- some vendor files are cropped tight (little built-in margin) and
   would otherwise fill the box edge-to-edge and visually outweigh a wider,
   more loosely-cropped wordmark like Jack Henry's at the same box size. */
.ci-wrap .vlogo--lg.haslogo img { height: 60%; }

/* list */
.ci-wrap .list { border: 1px solid var(--ci-line); border-radius: 12px; overflow: hidden; background: #fff; }
.ci-wrap .rowhead, .ci-wrap .row { display: grid; grid-template-columns: 60px minmax(0,1.7fr) minmax(0,1.3fr) minmax(0,1.1fr); gap: 14px; align-items: center; padding: 12px 16px; }
/* Product column toggled off: the freed track goes to the integration name. */
.ci-wrap .list--noprods .rowhead, .ci-wrap .list--noprods .row { grid-template-columns: 60px minmax(0,3fr) minmax(0,1.1fr); }
.ci-wrap .rowhead { font: inherit; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ci-faint); font-weight: 600; background: #F1F4F8; }
.ci-wrap .row { border-bottom: 1px solid var(--ci-line); font-size: 13.5px; }
.ci-wrap .row:last-child { border-bottom: 0; }
.ci-wrap .row:hover { background: #FAFCFE; }
.ci-wrap .rname { font: inherit; font-weight: 600; color: inherit; }
.ci-wrap .rvendor { font: inherit; font-size: 12px; color: var(--ci-muted); }
.ci-wrap .rprods { display: flex; gap: 5px; flex-wrap: wrap; }
.ci-wrap .empty { text-align: center; padding: 60px 20px; color: var(--ci-muted); }

@media (max-width: 720px) {
  .ci-wrap .rowhead, .ci-wrap .row { grid-template-columns: 40px 1fr auto; }
  .ci-wrap .list--noprods .rowhead, .ci-wrap .list--noprods .row { grid-template-columns: 40px 1fr; }
  /* Category is dropped on narrow screens. Targeted by class, not nth-child, so
     it stays correct whether or not the product column is in the row. */
  .ci-wrap .rowhead > .hcat, .ci-wrap .row > .rcat { display: none; }
  .ci-wrap .rlogo.haslogo { width: 36px; height: 30px; }
}
