/*
================================================
Space Vanta Theme 1.0
Featured Functions Layout
Version: FEATURED-FUNCTIONS-LAYOUT-B3-003
Responsibility:
- Desktop / Mobile unified alignment for Find · Vision · Privileges
- Same icon frame · same column structure · same label baseline
================================================
*/


/* =================================================
   SHARED TRIGGER BASE
   ================================================= */

.sv-featured-trigger {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: currentColor;
}

.sv-featured-trigger__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 26px;
  flex: 0 0 26px;
  overflow: visible;
}

.sv-featured-trigger__label {
  font-size: 9px;
  line-height: 1;
  letter-spacing: .12em;
  white-space: nowrap;
  opacity: .88;
}


/* =================================================
   DESKTOP
   ================================================= */

@media (min-width: 768px) {

  .sv-header__desktop .sv-featured-functions--desktop {
    display: flex;
    align-items: flex-end;          /* baseline on labels */
    justify-content: flex-end;
    gap: 22px;
    width: max-content;
    max-width: 100%;
    justify-self: end;
  }

  .sv-header__desktop .sv-featured-functions--desktop .sv-featured-function {
    flex: 0 0 auto;
  }

  /* Force column + equal icon frame for all three */
  .sv-header__desktop .sv-featured-functions--desktop .sv-featured-trigger {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: auto;
    padding: 0;
  }

  .sv-header__desktop .sv-featured-functions--desktop .sv-featured-trigger__icon {
    width: 36px;
    height: 26px;
    flex: 0 0 26px;
  }

  .sv-header__desktop .sv-featured-functions--desktop .sv-featured-trigger__label {
    font-size: 10px;
    letter-spacing: .10em;
    opacity: .9;
  }
}


/* =================================================
   MOBILE — second layer
   ================================================= */

@media (max-width: 767px) {

  .sv-featured-functions--mobile {
    display: flex;
    align-items: flex-end;          /* labels sit on same baseline */
    justify-content: center;
    gap: 26px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .sv-featured-functions--mobile .sv-featured-function {
    position: relative;
    flex: 0 0 auto;
    min-width: 0;
  }

  /* Force column + equal icon frame for Find / Vision / Privileges */
  .sv-featured-functions--mobile .sv-featured-trigger {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: auto;
    padding: 0 2px;
  }

  .sv-featured-functions--mobile .sv-featured-trigger__icon {
    width: 36px;
    height: 26px;
    flex: 0 0 26px;
  }

  .sv-featured-functions--mobile .sv-featured-trigger__label {
    font-size: 9px;
    letter-spacing: .12em;
    opacity: .88;
  }
}


/* =================================================
   REDUCED MOTION
   ================================================= */

@media (prefers-reduced-motion: reduce) {

  .sv-featured-functions--mobile,
  .sv-featured-functions--desktop {
    transition: none;
  }
}