/* Independent editorial spotlight; all ranking metrics keep their own styling. */
.gateway-feature {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
  border: 1px solid #30685b;
  border-radius: 14px;
  background: radial-gradient(ellipse at 100% 0, #205449 0, transparent 60%), #102c29;
  color: #f1fbf7;
  box-shadow: 0 6px 20px #102c2914;
}

.gateway-feature::before {
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: linear-gradient(90deg, #8deac7, #8deac700);
  content: "";
}

.gateway-feature-top,
.gateway-feature-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gateway-feature-top {
  flex-wrap: wrap;
  justify-content: space-between;
  row-gap: 6px;
}

.gateway-feature-badge {
  color: #a3f2d1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}

.gateway-feature-license {
  color: #b7cfc6;
  font-size: 10.5px;
}

.gateway-feature-identity {
  margin-top: 18px;
}

.gateway-feature-mark {
  display: grid;
  flex: 0 0 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #589a83;
  border-radius: 11px;
  background: #244e43;
  color: #b0f6d8;
}

.gateway-feature-mark .svg-icon {
  width: 25px;
  height: 25px;
  color: #b0f6d8;
}

.gateway-feature-identity h3 {
  margin: 0;
  color: #f1fbf7;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.5px;
}

.gateway-feature-identity div > span {
  display: block;
  margin-top: 5px;
  color: #b7cfc6;
  font-size: 10.5px;
  overflow-wrap: anywhere;
}

.gateway-feature .gateway-feature-title {
  margin: 16px 0 8px;
  color: #f1fbf7;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.5;
  text-wrap: balance;
}

.gateway-feature .gateway-feature-description {
  margin: 0;
  color: #c0d6cd;
  font-size: 12px;
  line-height: 1.7;
}

.gateway-feature-flow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  margin: 16px 0;
  padding: 11px 9px;
  border: 1px solid #3f6d60;
  border-radius: 8px;
  background: #173a32;
  color: #d3e9df;
  font-size: 11px;
  white-space: nowrap;
}

.gateway-feature-flow strong {
  padding: 5px 8px;
  border: 1px solid #6cbd9e;
  border-radius: 5px;
  background: #254f40;
  color: #a3f2d1;
  font-size: 11px;
}

.gateway-feature-points {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gateway-feature-points li {
  display: flex;
  gap: 7px;
  color: #d9eae3;
  font-size: 11.5px;
  line-height: 1.5;
}

.gateway-feature-points li > span {
  color: #a3f2d1;
}

.gateway-feature-trial {
  display: grid;
  gap: 4px;
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid #3f6d60;
  line-height: 1.6;
}

.gateway-feature-trial strong {
  color: #d1f5e4;
  font-size: 12px;
}

.gateway-feature-trial > span {
  color: #b7cfc6;
  font-size: 11px;
}

.gateway-feature-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 15px;
}

.gateway-feature a.gateway-feature-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px;
  border: 1px solid #a3f2d1;
  border-radius: 7px;
  background: #a3f2d1;
  color: #102c29;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.gateway-feature-primary .svg-icon {
  width: 15px;
  height: 15px;
  color: inherit;
}

.gateway-feature a.gateway-feature-guide {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 42px;
  color: #d3e9df;
  font-size: 11.5px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gateway-feature a:hover {
  filter: brightness(1.12);
}

.gateway-feature a:focus-visible {
  outline: 3px solid #e0ffe9;
  outline-offset: 3px;
}

.gateway-feature .gateway-feature-support {
  margin: 11px 0 0;
  color: #b7cfc6;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 980px) {
  body[data-githubai-view="trends"] #agentGatewayFeature { grid-row: 2; }
  body[data-githubai-view="trends"] #osiProductEntry { grid-row: 3; }
  body[data-githubai-view="trends"] #heroHotProject { grid-row: 4; }
  body[data-githubai-view="trends"] .ranking-primary .project-list { grid-row: 5; }
  body[data-githubai-view="trends"] .ranking-insights-content { grid-row: 6; }
}
