/* Keep the briefing attached to the active DEM shortcut as the field wraps. */
.dem-rabigh-pair { display: grid; justify-items: center; gap: 24px; }
.hub:not(.hub-layout-classic) .hub-disc-row { align-items: start; }
.hub-layout-classic .dem-rabigh-pair { display: none; }
.hub-dem-wrap > .rabigh-feature {
  position: absolute;
  top: calc(100% + 22px);
  left: 50%;
  translate: -50% 0;
}
/* On smaller Classic layouts the satellite DEM is off-screen or close to Pile Bearing. */
@media (max-width: 1100px) {
  .hub.hub-layout-classic .hub-dem-wrap { display: none; }
  .hub.hub-layout-classic .dem-rabigh-pair { display: grid; }
  .hub.hub-layout-classic .dem-rabigh-pair > .hub-dem:not([hidden]) { display: flex !important; }
  .hub.hub-layout-classic .hub-disc-row { align-items: start; }
}

.rabigh-feature {
  --rabigh-ink: linear-gradient(110deg, #112d55 0%, #145478 36%, #00abc2 100%);
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 125px;
  height: 125px;
  border: 2px solid transparent;
  border-radius: 50%;
  text-align: center;
  text-decoration: none;
  color: #112d55;
  background: radial-gradient(ellipse at 34% 22%, #fffefb, #f8f4ec 57%, #e5dbca 89%, #ccbfab) padding-box,
              var(--rabigh-ink) border-box;
  box-shadow: inset 0 2px 2px #fff, inset 0 -4px 7px #7a62451c, 0 5px 13px #49332330;
  transition: transform .22s ease, box-shadow .22s ease;
}
.rabigh-feature:hover { transform: translateY(-2px); box-shadow: inset 0 2px 2px white, 0 8px 17px #49332338; }
.rabigh-feature:focus-visible { outline: 3px solid #153663; outline-offset: 4px; }
.rabigh-feature img { display: block; width: 69px; height: 64px; }
.rabigh-caption { font: 700 9px/1.18 Georgia, serif; letter-spacing: .055em; text-transform: uppercase; }
@supports (background-clip: text) {
  .rabigh-caption { background: linear-gradient(110deg, #112d55 0%, #145478 36%, #007080 100%); background-clip: text; color: transparent; }
}
.rabigh-new {
  position: absolute; top: 0; right: -6px;
  padding: 2px 9px 4px;
  border: 1px solid #8cd9e3;
  border-radius: 999px;
  font: 700 13px/1.2 Tahoma, sans-serif;
  color: #fffdf8;
  background: linear-gradient(105deg,#154364 30%,#00798e 47%,#154364 64%) 100% 0 / 300% 100%;
  box-shadow: 0 2px 8px #124a6338;
  animation: rabigh-glint 2.8s ease-in-out 3;
}
@keyframes rabigh-glint { 0%,35% { background-position: 100% 0; } 75%,100% { background-position: 0 0; } }
.card .rabigh-feature { margin: 20px auto 0; }
.card .rabigh-caption { max-width: 85px; }
@media (max-width: 640px) {
  .rabigh-feature { width: 116px; height: 116px; }
  .rabigh-feature img { width: 62px; height: 57px; }
}
@media (prefers-reduced-motion: reduce) {
  .rabigh-new { animation: none; }
  .rabigh-feature { transition: none; }
  .rabigh-feature:hover { transform: none; }
}
@media (forced-colors: active) {
  .rabigh-feature { border-color: LinkText; }
  .rabigh-caption { color: LinkText; }
}
