/* Scope cards are navigable report entrances. */
.scope-grid article {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #1b2024;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.scope-grid article:hover {
  border-color: rgba(238, 135, 55, .62);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.scope-card-link {
  min-height: 82px;
  padding: 15px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 30px;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  outline: none;
}

.scope-card-link:focus-visible {
  box-shadow: inset 0 0 0 2px var(--orange);
}

.scope-open {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #3a4247;
  border-radius: 50%;
  color: var(--orange);
  font-size: 13px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.scope-card-link:hover .scope-open {
  background: var(--orange);
  color: #101315;
  transform: rotate(-8deg);
}

.integration-card {
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.integration-card::after {
  content: "فتح التقرير ↗";
  color: var(--orange);
  font-size: 9px;
  font-weight: 800;
}

.integration-card:hover {
  transform: translateY(-2px);
  border-color: rgba(238, 135, 55, .55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.integration-card:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .scope-card-link { grid-template-columns: 30px minmax(0, 1fr) 30px; }
  .scope-card-link em { grid-column: 2; justify-self: start; }
  .scope-open { grid-column: 3; grid-row: 1 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  .scope-grid article, .scope-open, .integration-card { transition: none; }
  .scope-grid article:hover, .scope-card-link:hover .scope-open, .integration-card:hover { transform: none; }
}
