/* Scope layout changes to the branded manager header and release footer. */
img[src*="/combined-"] {
  display: block;
  width: 336px;
  height: 75px;
  max-width: 100%;
  object-fit: contain;
}
header:has(img[src*="/combined-"]) {
  min-height: 92px;
  gap: 12px;
  flex-wrap: wrap;
}
header a:has(img[src*="/combined-"]) {
  height: auto;
  min-width: 0;
  flex-shrink: 0;
}
.cig-release-footer {
  padding: 8px 16px;
  text-align: center;
  font-size: 12px;
  border-top: 1px solid #78908840;
  color: #567168;
}
.dark .cig-release-footer { color: #a2b8ae; }
/* Instance cards must not let an unbroken name/token widen the phone grid. */
body:has(.cig-release-footer) .grid:has(> .bg-card) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
body:has(.cig-release-footer) .grid > .bg-card { min-width: 0; overflow-wrap: anywhere; }
.cig-release-footer a { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 4px; min-height: 36px; }
.cig-release-footer a:hover { text-decoration: underline; }
body:has(.cig-release-footer) #root .min-h-screen { min-height: calc(100dvh - 53px); }
.cig-releases { margin: 0; background: #f5f8f7; color: #2c313e; font: 16px/1.7 system-ui, sans-serif; }
.cig-releases main { max-width: 760px; margin: 32px auto; padding: 24px; }
.cig-releases img { max-width: 100%; height: auto; }
.cig-releases article { padding: 20px; margin: 24px 0; border: 1px solid #dbe4e0; border-radius: 12px; background: white; }
.cig-releases h2 { margin: 0; }
.cig-releases time { color: #567168; }
.cig-back { display: inline-flex; align-items: center; min-height: 40px; color: #315cbf; }
@media (max-width: 575px) {
  img[src*="/combined-"] { width: 288px; height: 65px; }
  header:has(img[src*="/combined-"]) { justify-content: center; padding-bottom: 12px; }
  header:has(img[src*="/combined-"]) > div:last-child { margin-inline-start: auto; }
  .cig-release-footer { font-size: 11px; }
}
@media (pointer: coarse) {
  body:has(.cig-release-footer) button,
  body:has(.cig-release-footer) input,
  body:has(.cig-release-footer) select { min-height: 40px; }
  body:has(.cig-release-footer) button { min-width: 40px; }
  body:has(.cig-release-footer) input { font-size: 16px; }
}
